Version 1.12.5.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.12.5\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-08-28 10: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:1018 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
102 msgid "EXAMPLES"
103 msgstr ""
104
105 #. type: textblock
106 #: ../cat/virt-cat.pod:34
107 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
108 msgstr ""
109
110 #. type: verbatim
111 #: ../cat/virt-cat.pod:37
112 #, no-wrap
113 msgid ""
114 " virt-cat -d mydomain /etc/fstab\n"
115 "\n"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:39
120 msgid "List syslog messages from a VM disk image file:"
121 msgstr ""
122
123 #. type: verbatim
124 #: ../cat/virt-cat.pod:41
125 #, no-wrap
126 msgid ""
127 " virt-cat -a disk.img /var/log/messages | tail\n"
128 "\n"
129 msgstr ""
130
131 #. type: textblock
132 #: ../cat/virt-cat.pod:43
133 msgid "Find out what DHCP IP address a VM acquired:"
134 msgstr ""
135
136 #. type: verbatim
137 #: ../cat/virt-cat.pod:45
138 #, no-wrap
139 msgid ""
140 " virt-cat -d mydomain /var/log/messages | \\\n"
141 "   grep 'dhclient: bound to' | tail\n"
142 "\n"
143 msgstr ""
144
145 #. type: textblock
146 #: ../cat/virt-cat.pod:48
147 msgid "Find out what packages were recently installed:"
148 msgstr ""
149
150 #. type: verbatim
151 #: ../cat/virt-cat.pod:50
152 #, no-wrap
153 msgid ""
154 " virt-cat -d mydomain /var/log/yum.log | tail\n"
155 "\n"
156 msgstr ""
157
158 #. type: textblock
159 #: ../cat/virt-cat.pod:52
160 msgid "Find out who is logged on inside a virtual machine:"
161 msgstr ""
162
163 #. type: verbatim
164 #: ../cat/virt-cat.pod:54
165 #, no-wrap
166 msgid ""
167 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
168 " who /tmp/utmp\n"
169 "\n"
170 msgstr ""
171
172 #. type: textblock
173 #: ../cat/virt-cat.pod:57
174 msgid "or who was logged on:"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../cat/virt-cat.pod:59
179 #, no-wrap
180 msgid ""
181 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
182 " last -f /tmp/wtmp\n"
183 "\n"
184 msgstr ""
185
186 #. type: =head1
187 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
188 msgid "OPTIONS"
189 msgstr ""
190
191 #. type: =item
192 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
193 msgid "B<--help>"
194 msgstr ""
195
196 #. type: textblock
197 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
198 msgid "Display brief help."
199 msgstr ""
200
201 #. type: =item
202 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
203 msgid "B<-a> file"
204 msgstr ""
205
206 #. type: =item
207 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
208 msgid "B<--add> file"
209 msgstr ""
210
211 #. type: textblock
212 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
213 msgid ""
214 "Add I<file> which should be a disk image from a virtual machine.  If the "
215 "virtual machine has multiple block devices, you must supply all of them with "
216 "separate I<-a> options."
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
221 msgid ""
222 "The format of the disk image is auto-detected.  To override this and force a "
223 "particular format use the I<--format=..> option."
224 msgstr ""
225
226 #. type: =item
227 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
228 msgid "B<-c> URI"
229 msgstr ""
230
231 #. type: =item
232 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
233 msgid "B<--connect> URI"
234 msgstr ""
235
236 #. type: textblock
237 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
238 msgid ""
239 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
240 "to the default libvirt hypervisor."
241 msgstr ""
242
243 #. type: textblock
244 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
245 msgid ""
246 "If you specify guest block devices directly (I<-a>), then libvirt is not "
247 "used at all."
248 msgstr ""
249
250 #. type: =item
251 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
252 msgid "B<-d> guest"
253 msgstr ""
254
255 #. type: =item
256 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
257 msgid "B<--domain> guest"
258 msgstr ""
259
260 #. type: textblock
261 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
262 msgid ""
263 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
264 "instead of names."
265 msgstr ""
266
267 #. type: =item
268 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
269 msgid "B<--echo-keys>"
270 msgstr ""
271
272 #. type: textblock
273 #: ../cat/virt-cat.pod:100
274 msgid ""
275 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
276 "so you cannot see what you are typing.  If you are not worried about Tempest "
277 "attacks and there is no one else in the room you can specify this flag to "
278 "see what you are typing."
279 msgstr ""
280
281 #. type: =item
282 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
283 msgid "B<--format=raw|qcow2|..>"
284 msgstr ""
285
286 #. type: =item
287 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
288 msgid "B<--format>"
289 msgstr ""
290
291 #. type: textblock
292 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
293 msgid ""
294 "The default for the I<-a> option is to auto-detect the format of the disk "
295 "image.  Using this forces the disk format for I<-a> options which follow on "
296 "the command line.  Using I<--format> with no argument switches back to "
297 "auto-detection for subsequent I<-a> options."
298 msgstr ""
299
300 #. type: textblock
301 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2652
302 msgid "For example:"
303 msgstr ""
304
305 #. type: verbatim
306 #: ../cat/virt-cat.pod:116
307 #, no-wrap
308 msgid ""
309 " virt-cat --format=raw -a disk.img file\n"
310 "\n"
311 msgstr ""
312
313 #. type: textblock
314 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
315 msgid "forces raw format (no auto-detection) for C<disk.img>."
316 msgstr ""
317
318 #. type: verbatim
319 #: ../cat/virt-cat.pod:120
320 #, no-wrap
321 msgid ""
322 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
323 "\n"
324 msgstr ""
325
326 #. type: textblock
327 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
328 msgid ""
329 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
330 "auto-detection for C<another.img>."
331 msgstr ""
332
333 #. type: textblock
334 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
335 msgid ""
336 "If you have untrusted raw-format guest disk images, you should use this "
337 "option to specify the disk format.  This avoids a possible security problem "
338 "with malicious guests (CVE-2010-3851)."
339 msgstr ""
340
341 #. type: =item
342 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
343 msgid "B<--keys-from-stdin>"
344 msgstr ""
345
346 #. type: textblock
347 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
348 msgid ""
349 "Read key or passphrase parameters from stdin.  The default is to try to read "
350 "passphrases from the user by opening C</dev/tty>."
351 msgstr ""
352
353 #. type: =item
354 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
355 msgid "B<-v>"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
360 msgid "B<--verbose>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
365 msgid "Enable verbose messages for debugging."
366 msgstr ""
367
368 #. type: =item
369 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184 ../resize/virt-resize.pod:484
370 msgid "B<-V>"
371 msgstr ""
372
373 #. type: =item
374 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186 ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
375 msgid "B<--version>"
376 msgstr ""
377
378 #. type: textblock
379 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
380 msgid "Display version number and exit."
381 msgstr ""
382
383 #. type: =item
384 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199 ../tools/virt-tar.pl:158
385 msgid "B<-x>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
390 msgid "Enable tracing of libguestfs API calls."
391 msgstr ""
392
393 #. type: =head1
394 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
395 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
396 msgstr ""
397
398 #. type: textblock
399 #: ../cat/virt-cat.pod:154
400 msgid "Previous versions of virt-cat allowed you to write either:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../cat/virt-cat.pod:156
405 #, no-wrap
406 msgid ""
407 " virt-cat disk.img [disk.img ...] file\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
413 msgid "or"
414 msgstr ""
415
416 #. type: verbatim
417 #: ../cat/virt-cat.pod:160
418 #, no-wrap
419 msgid ""
420 " virt-cat guestname file\n"
421 "\n"
422 msgstr ""
423
424 #. type: textblock
425 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
426 msgid ""
427 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
428 "the confusing case where a disk image might have the same name as a guest."
429 msgstr ""
430
431 #. type: textblock
432 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
433 msgid "For compatibility the old style is still supported."
434 msgstr ""
435
436 #. type: =head1
437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
438 msgid "USING GUESTFISH"
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:170
443 msgid ""
444 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
445 "C<virt-cat> doesn't work."
446 msgstr ""
447
448 #. type: textblock
449 #: ../cat/virt-cat.pod:173
450 msgid "Using C<virt-cat> is approximately equivalent to doing:"
451 msgstr ""
452
453 #. type: verbatim
454 #: ../cat/virt-cat.pod:175
455 #, no-wrap
456 msgid ""
457 " guestfish --ro -i -d domname download file -\n"
458 "\n"
459 msgstr ""
460
461 #. type: textblock
462 #: ../cat/virt-cat.pod:177
463 msgid ""
464 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
465 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
466 msgstr ""
467
468 #. type: textblock
469 #: ../cat/virt-cat.pod:181
470 msgid ""
471 "The command above uses libguestfs's guest inspection feature and so does not "
472 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
473 "disk images that don't contain guests.  To display a file from a disk image "
474 "directly, use:"
475 msgstr ""
476
477 #. type: verbatim
478 #: ../cat/virt-cat.pod:186
479 #, no-wrap
480 msgid ""
481 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
482 "\n"
483 msgstr ""
484
485 #. type: textblock
486 #: ../cat/virt-cat.pod:188
487 msgid ""
488 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
489 "the disk image 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:352 ../rescue/virt-rescue.pod:262 ../resize/virt-resize.pod:568 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl: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:354 ../rescue/virt-rescue.pod:264 ../resize/virt-resize.pod:570 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl: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 ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:575 ../test-tool/libguestfs-test-tool.pod:77
508 msgid "EXIT STATUS"
509 msgstr ""
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:201 ../cat/virt-filesystems.pod:374 ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377 ../resize/virt-resize.pod:577
513 msgid "This program returns 0 if successful, or non-zero if there was an error."
514 msgstr ""
515
516 #. type: =head1
517 #: ../cat/virt-cat.pod:204 ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308 ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284 ../resize/virt-resize.pod:580 ../ruby/examples/guestfs-ruby.pod:36 ../src/guestfs.pod:3026 ../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
518 msgid "SEE ALSO"
519 msgstr ""
520
521 #. type: textblock
522 #: ../cat/virt-cat.pod:206
523 msgid ""
524 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
525 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
526 msgstr ""
527
528 #. type: =head1
529 #: ../cat/virt-cat.pod:213 ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
530 msgid "AUTHOR"
531 msgstr ""
532
533 #. type: textblock
534 #: ../cat/virt-cat.pod:215 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294 ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
535 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
536 msgstr ""
537
538 #. type: =head1
539 #: ../cat/virt-cat.pod:217 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372 ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400 ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323 ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61 ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55 ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:605 ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:3102 ../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
540 msgid "COPYRIGHT"
541 msgstr ""
542
543 #. type: textblock
544 #: ../cat/virt-cat.pod:219 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:607
545 msgid "Copyright (C) 2010-2011 Red Hat Inc."
546 msgstr ""
547
548 #. type: textblock
549 #: ../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:1269 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:609 ../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
550 msgid ""
551 "This program is free software; you can redistribute it and/or modify it "
552 "under the terms of the GNU General Public License as published by the Free "
553 "Software Foundation; either version 2 of the License, or (at your option) "
554 "any later version."
555 msgstr ""
556
557 #. type: textblock
558 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:614 ../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
559 msgid ""
560 "This program is distributed in the hope that it will be useful, but WITHOUT "
561 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
562 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
563 "more details."
564 msgstr ""
565
566 #. type: textblock
567 #: ../cat/virt-cat.pod:231 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310 ../resize/virt-resize.pod:619 ../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
568 msgid ""
569 "You should have received a copy of the GNU General Public License along with "
570 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
571 "Ave, Cambridge, MA 02139, USA."
572 msgstr ""
573
574 #. type: textblock
575 #: ../cat/virt-filesystems.pod:5
576 msgid ""
577 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
578 "virtual machine or disk image"
579 msgstr ""
580
581 #. type: verbatim
582 #: ../cat/virt-filesystems.pod:9
583 #, no-wrap
584 msgid ""
585 " virt-filesystems [--options] -d domname\n"
586 "\n"
587 msgstr ""
588
589 #. type: verbatim
590 #: ../cat/virt-filesystems.pod:11
591 #, no-wrap
592 msgid ""
593 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
594 "\n"
595 msgstr ""
596
597 #. type: textblock
598 #: ../cat/virt-filesystems.pod:15
599 msgid ""
600 "This tool allows you to discover filesystems, partitions, logical volumes, "
601 "and their sizes in a disk image or virtual machine.  It is a replacement for "
602 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
603 msgstr ""
604
605 #. type: textblock
606 #: ../cat/virt-filesystems.pod:20
607 msgid ""
608 "One use for this tool is from shell scripts to iterate over all filesystems "
609 "from a disk image:"
610 msgstr ""
611
612 #. type: verbatim
613 #: ../cat/virt-filesystems.pod:23
614 #, no-wrap
615 msgid ""
616 " for fs in $(virt-filesystems -a disk.img); do\n"
617 "   # ...\n"
618 " done\n"
619 "\n"
620 msgstr ""
621
622 #. type: textblock
623 #: ../cat/virt-filesystems.pod:27
624 msgid ""
625 "Another use is to list partitions before using another tool to modify those "
626 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
627 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
628 msgstr ""
629
630 #. type: textblock
631 #: ../cat/virt-filesystems.pod:32
632 msgid ""
633 "Various command line options control what this program displays.  You need "
634 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
635 "guest respectively.  If you just specify that then the program shows "
636 "filesystems found, one per line, like this:"
637 msgstr ""
638
639 #. type: verbatim
640 #: ../cat/virt-filesystems.pod:37
641 #, no-wrap
642 msgid ""
643 " $ virt-filesystems -a disk.img\n"
644 " /dev/sda1\n"
645 " /dev/vg_guest/lv_root\n"
646 "\n"
647 msgstr ""
648
649 #. type: textblock
650 #: ../cat/virt-filesystems.pod:41
651 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
652 msgstr ""
653
654 #. type: verbatim
655 #: ../cat/virt-filesystems.pod:44
656 #, no-wrap
657 msgid ""
658 " $ virt-filesystems -a disk.img -l\n"
659 " Name                   Type         VFS   Label  Size\n"
660 " /dev/sda1              filesystem   ext4  boot   524288000\n"
661 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
662 "\n"
663 msgstr ""
664
665 #. type: textblock
666 #: ../cat/virt-filesystems.pod:49
667 msgid ""
668 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
669 "shown as well:"
670 msgstr ""
671
672 #. type: verbatim
673 #: ../cat/virt-filesystems.pod:52
674 #, no-wrap
675 msgid ""
676 " $ virt-filesystems -a disk.img --extra\n"
677 " /dev/sda1\n"
678 " /dev/vg_guest/lv_root\n"
679 " /dev/vg_guest/lv_swap\n"
680 " /dev/vg_guest/lv_data\n"
681 "\n"
682 msgstr ""
683
684 #. type: textblock
685 #: ../cat/virt-filesystems.pod:58
686 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
687 msgstr ""
688
689 #. type: verbatim
690 #: ../cat/virt-filesystems.pod:60
691 #, no-wrap
692 msgid ""
693 " $ virt-filesystems -a disk.img --partitions\n"
694 " /dev/sda1\n"
695 " /dev/sda2\n"
696 "\n"
697 msgstr ""
698
699 #. type: textblock
700 #: ../cat/virt-filesystems.pod:64
701 msgid ""
702 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
703 "I<--physical-volumes>, I<--block-devices> to list those items."
704 msgstr ""
705
706 #. type: textblock
707 #: ../cat/virt-filesystems.pod:67
708 msgid ""
709 "You can use these options in combination as well (if you want a combination "
710 "including filesystems, you have to add I<--filesystems>).  Notice that some "
711 "items fall into several categories (eg. C</dev/sda1> might be both a "
712 "partition and a filesystem).  These items are listed several times.  To get "
713 "a list which includes absolutely everything that virt-filesystems knows "
714 "about, use the I<--all> option."
715 msgstr ""
716
717 #. type: textblock
718 #: ../cat/virt-filesystems.pod:74
719 msgid ""
720 "UUIDs (because they are quite long) are not shown by default.  Add the "
721 "I<--uuid> option to display device and filesystem UUIDs in the long output."
722 msgstr ""
723
724 #. type: textblock
725 #: ../cat/virt-filesystems.pod:78
726 msgid ""
727 "I<--all --long --uuid> is a useful combination to display all possible "
728 "information about everything."
729 msgstr ""
730
731 #. type: verbatim
732 #: ../cat/virt-filesystems.pod:81
733 #, no-wrap
734 msgid ""
735 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
736 " Name      Type       VFS  Label           Size Parent   UUID\n"
737 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
738 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
739 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
740 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
741 " /dev/sda  device     -    -               20G  -        -\n"
742 "\n"
743 msgstr ""
744
745 #. type: textblock
746 #: ../cat/virt-filesystems.pod:89
747 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
748 msgstr ""
749
750 #. type: =item
751 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
752 msgid "B<--all>"
753 msgstr ""
754
755 #. type: textblock
756 #: ../cat/virt-filesystems.pod:112
757 msgid ""
758 "Display everything.  This is currently the same as specifying these options: "
759 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
760 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
761 "be added to this list in future)."
762 msgstr ""
763
764 #. type: textblock
765 #: ../cat/virt-filesystems.pod:117
766 msgid "See also I<--long>."
767 msgstr ""
768
769 #. type: =item
770 #: ../cat/virt-filesystems.pod:119
771 msgid "B<--blkdevs>"
772 msgstr ""
773
774 #. type: =item
775 #: ../cat/virt-filesystems.pod:121
776 msgid "B<--block-devices>"
777 msgstr ""
778
779 #. type: textblock
780 #: ../cat/virt-filesystems.pod:123
781 msgid "Display block devices."
782 msgstr ""
783
784 #. type: =item
785 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
786 msgid "B<--csv>"
787 msgstr ""
788
789 #. type: textblock
790 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
791 msgid ""
792 "Write out the results in CSV format (comma-separated values).  This format "
793 "can be imported easily into databases and spreadsheets, but read L</NOTE "
794 "ABOUT CSV FORMAT> below."
795 msgstr ""
796
797 #. type: textblock
798 #: ../cat/virt-filesystems.pod:150
799 msgid ""
800 "When prompting for keys and passphrases, virt-filesystems normally turns "
801 "echoing off so you cannot see what you are typing.  If you are not worried "
802 "about Tempest attacks and there is no one else in the room you can specify "
803 "this flag to see what you are typing."
804 msgstr ""
805
806 #. type: =item
807 #: ../cat/virt-filesystems.pod:155
808 msgid "B<--extra>"
809 msgstr ""
810
811 #. type: textblock
812 #: ../cat/virt-filesystems.pod:157
813 msgid ""
814 "This causes filesystems that are not ordinary, mountable filesystems to be "
815 "displayed.  This category includes swapspace, and filesystems that are empty "
816 "or contain unknown data."
817 msgstr ""
818
819 #. type: textblock
820 #: ../cat/virt-filesystems.pod:161
821 msgid "This option implies I<--filesystems>."
822 msgstr ""
823
824 #. type: =item
825 #: ../cat/virt-filesystems.pod:163
826 msgid "B<--filesystems>"
827 msgstr ""
828
829 #. type: textblock
830 #: ../cat/virt-filesystems.pod:165
831 msgid ""
832 "Display mountable filesystems.  If no display option was selected then this "
833 "option is implied."
834 msgstr ""
835
836 #. type: textblock
837 #: ../cat/virt-filesystems.pod:168
838 msgid "With I<--extra>, non-mountable filesystems are shown too."
839 msgstr ""
840
841 #. type: verbatim
842 #: ../cat/virt-filesystems.pod:181
843 #, no-wrap
844 msgid ""
845 " virt-filesystems --format=raw -a disk.img\n"
846 "\n"
847 msgstr ""
848
849 #. type: verbatim
850 #: ../cat/virt-filesystems.pod:185
851 #, no-wrap
852 msgid ""
853 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
854 "\n"
855 msgstr ""
856
857 #. type: =item
858 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
859 msgid "B<-h>"
860 msgstr ""
861
862 #. type: =item
863 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
864 msgid "B<--human-readable>"
865 msgstr ""
866
867 #. type: textblock
868 #: ../cat/virt-filesystems.pod:198
869 msgid "In I<--long> mode, display sizes in human-readable format."
870 msgstr ""
871
872 #. type: =item
873 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
874 msgid "B<-l>"
875 msgstr ""
876
877 #. type: =item
878 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
879 msgid "B<--long>"
880 msgstr ""
881
882 #. type: textblock
883 #: ../cat/virt-filesystems.pod:209
884 msgid "Display extra columns of data (\"long format\")."
885 msgstr ""
886
887 #. type: textblock
888 #: ../cat/virt-filesystems.pod:211
889 msgid "A title row is added unless you also specify I<--no-title>."
890 msgstr ""
891
892 #. type: textblock
893 #: ../cat/virt-filesystems.pod:213
894 msgid ""
895 "The extra columns displayed depend on what output you select, and the "
896 "ordering of columns may change in future versions.  Use the title row, "
897 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
898 "programs."
899 msgstr ""
900
901 #. type: textblock
902 #: ../cat/virt-filesystems.pod:218
903 msgid ""
904 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
905 "default is to show raw numbers of I<bytes>."
906 msgstr ""
907
908 #. type: textblock
909 #: ../cat/virt-filesystems.pod:221
910 msgid "Use I<--uuid> to display UUIDs too."
911 msgstr ""
912
913 #. type: =item
914 #: ../cat/virt-filesystems.pod:223
915 msgid "B<--lvs>"
916 msgstr ""
917
918 #. type: =item
919 #: ../cat/virt-filesystems.pod:225
920 msgid "B<--logvols>"
921 msgstr ""
922
923 #. type: =item
924 #: ../cat/virt-filesystems.pod:227
925 msgid "B<--logical-volumes>"
926 msgstr ""
927
928 #. type: textblock
929 #: ../cat/virt-filesystems.pod:229
930 msgid ""
931 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
932 "of whether the LVs contain filesystems."
933 msgstr ""
934
935 #. type: =item
936 #: ../cat/virt-filesystems.pod:232
937 msgid "B<--no-title>"
938 msgstr ""
939
940 #. type: textblock
941 #: ../cat/virt-filesystems.pod:234
942 msgid "In I<--long> mode, don't add a title row."
943 msgstr ""
944
945 #. type: textblock
946 #: ../cat/virt-filesystems.pod:236
947 msgid ""
948 "Note that the order of the columns is not fixed, and may change in future "
949 "versions of virt-filesystems, so using this option may give you unexpected "
950 "surprises."
951 msgstr ""
952
953 #. type: =item
954 #: ../cat/virt-filesystems.pod:240
955 msgid "B<--parts>"
956 msgstr ""
957
958 #. type: =item
959 #: ../cat/virt-filesystems.pod:242
960 msgid "B<--partitions>"
961 msgstr ""
962
963 #. type: textblock
964 #: ../cat/virt-filesystems.pod:244
965 msgid ""
966 "Display partitions.  In this mode, these are displayed irrespective of "
967 "whether the partitions contain filesystems."
968 msgstr ""
969
970 #. type: =item
971 #: ../cat/virt-filesystems.pod:247
972 msgid "B<--pvs>"
973 msgstr ""
974
975 #. type: =item
976 #: ../cat/virt-filesystems.pod:249
977 msgid "B<--physvols>"
978 msgstr ""
979
980 #. type: =item
981 #: ../cat/virt-filesystems.pod:251
982 msgid "B<--physical-volumes>"
983 msgstr ""
984
985 #. type: textblock
986 #: ../cat/virt-filesystems.pod:253
987 msgid "Display LVM physical volumes."
988 msgstr ""
989
990 #. type: =item
991 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
992 msgid "B<--uuid>"
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-filesystems.pod:257
997 msgid "B<--uuids>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../cat/virt-filesystems.pod:259
1002 msgid "In I<--long> mode, display UUIDs as well."
1003 msgstr ""
1004
1005 #. type: =item
1006 #: ../cat/virt-filesystems.pod:273
1007 msgid "B<--vgs>"
1008 msgstr ""
1009
1010 #. type: =item
1011 #: ../cat/virt-filesystems.pod:275
1012 msgid "B<--volgroups>"
1013 msgstr ""
1014
1015 #. type: =item
1016 #: ../cat/virt-filesystems.pod:277
1017 msgid "B<--volume-groups>"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../cat/virt-filesystems.pod:279
1022 msgid "Display LVM volume groups."
1023 msgstr ""
1024
1025 #. type: =head1
1026 #: ../cat/virt-filesystems.pod:287
1027 msgid "COLUMNS"
1028 msgstr ""
1029
1030 #. type: textblock
1031 #: ../cat/virt-filesystems.pod:289
1032 msgid ""
1033 "Note that columns in the output are subject to reordering and change in "
1034 "future versions of this tool."
1035 msgstr ""
1036
1037 #. type: =item
1038 #: ../cat/virt-filesystems.pod:294
1039 msgid "B<Name>"
1040 msgstr ""
1041
1042 #. type: textblock
1043 #: ../cat/virt-filesystems.pod:296
1044 msgid "The filesystem, partition, block device or LVM name."
1045 msgstr ""
1046
1047 #. type: textblock
1048 #: ../cat/virt-filesystems.pod:298
1049 msgid ""
1050 "For device and partition names these are displayed as canonical libguestfs "
1051 "names, so that for example C</dev/sda2> is the second partition on the first "
1052 "device."
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-filesystems.pod:302
1057 msgid ""
1058 "If the I<--long> option is B<not> specified, then only the name column is "
1059 "shown in the output."
1060 msgstr ""
1061
1062 #. type: =item
1063 #: ../cat/virt-filesystems.pod:305
1064 msgid "B<Type>"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:307
1069 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1070 msgstr ""
1071
1072 #. type: =item
1073 #: ../cat/virt-filesystems.pod:309
1074 msgid "B<VFS>"
1075 msgstr ""
1076
1077 #. type: textblock
1078 #: ../cat/virt-filesystems.pod:311
1079 msgid ""
1080 "If there is a filesystem, then this column displays the filesystem type if "
1081 "one could be detected, eg. C<ext4>."
1082 msgstr ""
1083
1084 #. type: =item
1085 #: ../cat/virt-filesystems.pod:314
1086 msgid "B<Label>"
1087 msgstr ""
1088
1089 #. type: textblock
1090 #: ../cat/virt-filesystems.pod:316
1091 msgid ""
1092 "If the object has a label (used for identifying and mounting filesystems) "
1093 "then this column contains the label."
1094 msgstr ""
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:319
1098 msgid "B<Size>"
1099 msgstr ""
1100
1101 #. type: textblock
1102 #: ../cat/virt-filesystems.pod:321
1103 msgid ""
1104 "The size of the object in bytes.  If the I<--human> option is used then the "
1105 "size is displayed in a human-readable form."
1106 msgstr ""
1107
1108 #. type: =item
1109 #: ../cat/virt-filesystems.pod:324
1110 msgid "B<Parent>"
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../cat/virt-filesystems.pod:326
1115 msgid ""
1116 "The parent column records the parent relationship between objects.  For "
1117 "example, if the object is a partition, then this column contains the name of "
1118 "the containing device.  If the object is a logical volume, then this column "
1119 "is the name of the volume group."
1120 msgstr ""
1121
1122 #. type: =item
1123 #: ../cat/virt-filesystems.pod:331
1124 msgid "B<UUID>"
1125 msgstr ""
1126
1127 #. type: textblock
1128 #: ../cat/virt-filesystems.pod:333
1129 msgid ""
1130 "If the object has a UUID (used for identifying and mounting filesystems and "
1131 "block devices) then this column contains the UUID as a string."
1132 msgstr ""
1133
1134 #. type: textblock
1135 #: ../cat/virt-filesystems.pod:337
1136 msgid "The UUID is only displayed if the I<--uuid> option is given."
1137 msgstr ""
1138
1139 #. type: =head1
1140 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1141 msgid "NOTE ABOUT CSV FORMAT"
1142 msgstr ""
1143
1144 #. type: textblock
1145 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1146 msgid ""
1147 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1148 "should be easy to parse, but it is definitely not easy to parse."
1149 msgstr ""
1150
1151 #. type: textblock
1152 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1153 msgid ""
1154 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1155 "reliably.  This example has two columns:"
1156 msgstr ""
1157
1158 #. type: verbatim
1159 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1160 #, no-wrap
1161 msgid ""
1162 " \"foo,bar\",baz\n"
1163 "\n"
1164 msgstr ""
1165
1166 #. type: textblock
1167 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1168 msgid ""
1169 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1170 "reliably.  This example has one row:"
1171 msgstr ""
1172
1173 #. type: verbatim
1174 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1175 #, no-wrap
1176 msgid ""
1177 " \"foo\n"
1178 " bar\",baz\n"
1179 "\n"
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1184 msgid ""
1185 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1186 "packaged in major Linux distributions)."
1187 msgstr ""
1188
1189 #. type: textblock
1190 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1191 msgid ""
1192 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1193 "or Python's built-in csv library)."
1194 msgstr ""
1195
1196 #. type: textblock
1197 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1198 msgid "Most spreadsheets and databases can import CSV directly."
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-filesystems.pod:379
1203 msgid ""
1204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1205 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1206 "L<http://libguestfs.org/>."
1207 msgstr ""
1208
1209 #. type: textblock
1210 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1211 msgid "Copyright (C) 2010 Red Hat Inc."
1212 msgstr ""
1213
1214 #. type: textblock
1215 #: ../cat/virt-ls.pod:5
1216 msgid "virt-ls - List files in a virtual machine"
1217 msgstr ""
1218
1219 #. type: verbatim
1220 #: ../cat/virt-ls.pod:9
1221 #, no-wrap
1222 msgid ""
1223 " virt-ls [--options] -d domname directory [directory ...]\n"
1224 "\n"
1225 msgstr ""
1226
1227 #. type: verbatim
1228 #: ../cat/virt-ls.pod:11
1229 #, no-wrap
1230 msgid ""
1231 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1232 "...]\n"
1233 "\n"
1234 msgstr ""
1235
1236 #. type: textblock
1237 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1238 msgid "Old style:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-ls.pod:15
1243 #, no-wrap
1244 msgid ""
1245 " virt-ls [--options] domname directory\n"
1246 "\n"
1247 msgstr ""
1248
1249 #. type: verbatim
1250 #: ../cat/virt-ls.pod:17
1251 #, no-wrap
1252 msgid ""
1253 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1254 "\n"
1255 msgstr ""
1256
1257 #. type: textblock
1258 #: ../cat/virt-ls.pod:21
1259 msgid ""
1260 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1261 "more from a virtual machine or disk image."
1262 msgstr ""
1263
1264 #. type: textblock
1265 #: ../cat/virt-ls.pod:24
1266 msgid ""
1267 "Multiple directory names can be given, in which case the output from each is "
1268 "concatenated."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-ls.pod:27
1273 msgid ""
1274 "To list directories from a libvirt guest use the I<-d> option to specify the "
1275 "name of the guest.  For a disk image, use the I<-a> option."
1276 msgstr ""
1277
1278 #. type: textblock
1279 #: ../cat/virt-ls.pod:31
1280 msgid ""
1281 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1282 "may need to use L<guestfish(1)>, or write a program directly to the "
1283 "L<guestfs(3)> API."
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-ls.pod:37
1288 msgid "Get a list of all files and directories in a virtual machine:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-ls.pod:39
1293 #, no-wrap
1294 msgid ""
1295 " virt-ls -R -d guest /\n"
1296 "\n"
1297 msgstr ""
1298
1299 #. type: textblock
1300 #: ../cat/virt-ls.pod:41
1301 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1302 msgstr ""
1303
1304 #. type: verbatim
1305 #: ../cat/virt-ls.pod:43
1306 #, no-wrap
1307 msgid ""
1308 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1309 "\n"
1310 msgstr ""
1311
1312 #. type: textblock
1313 #: ../cat/virt-ls.pod:45
1314 msgid "List all public-writable directories in a Linux virtual machine:"
1315 msgstr ""
1316
1317 #. type: verbatim
1318 #: ../cat/virt-ls.pod:47
1319 #, no-wrap
1320 msgid ""
1321 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1322 "\n"
1323 msgstr ""
1324
1325 #. type: textblock
1326 #: ../cat/virt-ls.pod:49
1327 msgid "List all Unix domain sockets in a Linux virtual machine:"
1328 msgstr ""
1329
1330 #. type: verbatim
1331 #: ../cat/virt-ls.pod:51
1332 #, no-wrap
1333 msgid ""
1334 " virt-ls -lR -d guest / | grep '^s'\n"
1335 "\n"
1336 msgstr ""
1337
1338 #. type: textblock
1339 #: ../cat/virt-ls.pod:53
1340 msgid "List all regular files with filenames ending in '.png':"
1341 msgstr ""
1342
1343 #. type: verbatim
1344 #: ../cat/virt-ls.pod:55
1345 #, no-wrap
1346 msgid ""
1347 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1348 "\n"
1349 msgstr ""
1350
1351 #. type: textblock
1352 #: ../cat/virt-ls.pod:57
1353 msgid "To display files larger than 10MB in home directories:"
1354 msgstr ""
1355
1356 #. type: verbatim
1357 #: ../cat/virt-ls.pod:59
1358 #, no-wrap
1359 msgid ""
1360 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1361 "\n"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-ls.pod:61
1366 msgid "Find everything modified in the last 7 days:"
1367 msgstr ""
1368
1369 #. type: verbatim
1370 #: ../cat/virt-ls.pod:63
1371 #, no-wrap
1372 msgid ""
1373 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1374 "\n"
1375 msgstr ""
1376
1377 #. type: textblock
1378 #: ../cat/virt-ls.pod:65
1379 msgid "Find regular files modified in the last 24 hours:"
1380 msgstr ""
1381
1382 #. type: verbatim
1383 #: ../cat/virt-ls.pod:67
1384 #, no-wrap
1385 msgid ""
1386 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1387 "\n"
1388 msgstr ""
1389
1390 #. type: =head2
1391 #: ../cat/virt-ls.pod:69
1392 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../cat/virt-ls.pod:71
1397 msgid ""
1398 "Find the differences between files in a guest and an earlier snapshot of the "
1399 "same guest."
1400 msgstr ""
1401
1402 #. type: verbatim
1403 #: ../cat/virt-ls.pod:74
1404 #, no-wrap
1405 msgid ""
1406 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1407 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1408 " diff -u old new | less\n"
1409 "\n"
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-ls.pod:78
1414 msgid ""
1415 "The commands above won't find files where the content has changed but the "
1416 "metadata (eg. file size and modification date) is the same.  To do that, you "
1417 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1418 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1419 "of every regular file in the virtual machine."
1420 msgstr ""
1421
1422 #. type: =head1
1423 #: ../cat/virt-ls.pod:84
1424 msgid "OUTPUT MODES"
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../cat/virt-ls.pod:86
1429 msgid ""
1430 "C<virt-ls> has four output modes, controlled by different combinations of "
1431 "the I<-l> and I<-R> options."
1432 msgstr ""
1433
1434 #. type: =head2
1435 #: ../cat/virt-ls.pod:89
1436 msgid "SIMPLE LISTING"
1437 msgstr ""
1438
1439 #. type: textblock
1440 #: ../cat/virt-ls.pod:91
1441 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1442 msgstr ""
1443
1444 #. type: verbatim
1445 #: ../cat/virt-ls.pod:93
1446 #, no-wrap
1447 msgid ""
1448 " $ virt-ls -d guest /\n"
1449 " bin\n"
1450 " boot\n"
1451 " [etc.]\n"
1452 "\n"
1453 msgstr ""
1454
1455 #. type: =head2
1456 #: ../cat/virt-ls.pod:98
1457 msgid "LONG LISTING"
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-ls.pod:100
1462 msgid ""
1463 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1464 "(more specifically, like the C<guestfs_ll> function)."
1465 msgstr ""
1466
1467 #. type: verbatim
1468 #: ../cat/virt-ls.pod:103
1469 #, no-wrap
1470 msgid ""
1471 " $ virt-ls -l -d guest /\n"
1472 " total 204\n"
1473 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1474 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1475 " [etc.]\n"
1476 "\n"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-ls.pod:109
1481 msgid ""
1482 "Note that while this is useful for displaying a directory, do not try "
1483 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1484 "instead."
1485 msgstr ""
1486
1487 #. type: =head2
1488 #: ../cat/virt-ls.pod:113
1489 msgid "RECURSIVE LISTING"
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-ls.pod:115
1494 msgid ""
1495 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1496 "and directories recursively:"
1497 msgstr ""
1498
1499 #. type: verbatim
1500 #: ../cat/virt-ls.pod:118
1501 #, no-wrap
1502 msgid ""
1503 " $ virt-ls -R -d guest /tmp\n"
1504 " foo\n"
1505 " foo/bar\n"
1506 " [etc.]\n"
1507 "\n"
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-ls.pod:123
1512 msgid ""
1513 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1514 "converts C<\\0> characters to C<\\n>."
1515 msgstr ""
1516
1517 #. type: =head2
1518 #: ../cat/virt-ls.pod:126
1519 msgid "RECURSIVE LONG LISTING"
1520 msgstr ""
1521
1522 #. type: textblock
1523 #: ../cat/virt-ls.pod:128
1524 msgid ""
1525 "Using I<-lR> options together changes the output to display directories "
1526 "recursively, with file stats, and optionally other features such as "
1527 "checksums and extended attributes."
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-ls.pod:132
1532 msgid ""
1533 "Most of the interesting features of C<virt-ls> are only available when using "
1534 "I<-lR> mode."
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../cat/virt-ls.pod:135
1539 msgid ""
1540 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1541 "you cannot use the output in another program (because filenames can contain "
1542 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1543 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1544 "on you by creating filenames with embedded newline characters.  To B<safely> "
1545 "parse the output in another program, use the I<--csv> (Comma-Separated "
1546 "Values) option."
1547 msgstr ""
1548
1549 #. type: textblock
1550 #: ../cat/virt-ls.pod:143
1551 msgid ""
1552 "Note that this output format is completely unrelated to the C<ls -lR> "
1553 "command."
1554 msgstr ""
1555
1556 #. type: verbatim
1557 #: ../cat/virt-ls.pod:146
1558 #, no-wrap
1559 msgid ""
1560 " $ virt-ls -lR -d guest /bin\n"
1561 " d 0555       4096 /bin\n"
1562 " - 0755        123 /bin/alsaunmute\n"
1563 " - 0755      28328 /bin/arch\n"
1564 " l 0777          4 /bin/awk -> gawk\n"
1565 " - 0755      27216 /bin/basename\n"
1566 " - 0755     943360 /bin/bash\n"
1567 " [etc.]\n"
1568 "\n"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-ls.pod:155
1573 msgid "These basic fields are always shown:"
1574 msgstr ""
1575
1576 #. type: =item
1577 #: ../cat/virt-ls.pod:159
1578 msgid "type"
1579 msgstr ""
1580
1581 #. type: textblock
1582 #: ../cat/virt-ls.pod:161
1583 msgid ""
1584 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1585 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1586 "link), C<s> (socket) or C<u> (unknown)."
1587 msgstr ""
1588
1589 #. type: =item
1590 #: ../cat/virt-ls.pod:171
1591 msgid "permissions"
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-ls.pod:173
1596 msgid "The Unix permissions, displayed as a 4 digit octal number."
1597 msgstr ""
1598
1599 #. type: =item
1600 #: ../cat/virt-ls.pod:175
1601 msgid "size"
1602 msgstr ""
1603
1604 #. type: textblock
1605 #: ../cat/virt-ls.pod:177
1606 msgid ""
1607 "The size of the file.  This is shown in bytes unless I<-h> or "
1608 "I<--human-readable> option is given, in which case this is shown as a "
1609 "human-readable number."
1610 msgstr ""
1611
1612 #. type: =head2
1613 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
1614 msgid "path"
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-ls.pod:183
1619 msgid "The full path of the file or directory."
1620 msgstr ""
1621
1622 #. type: =item
1623 #: ../cat/virt-ls.pod:185
1624 msgid "link"
1625 msgstr ""
1626
1627 #. type: textblock
1628 #: ../cat/virt-ls.pod:187
1629 msgid "For symbolic links only, the link target."
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-ls.pod:191
1634 msgid ""
1635 "In I<-lR> mode, additional command line options enable the display of more "
1636 "fields."
1637 msgstr ""
1638
1639 #. type: textblock
1640 #: ../cat/virt-ls.pod:194
1641 msgid ""
1642 "With the I<--uids> flag, these additional fields are displayed before the "
1643 "path:"
1644 msgstr ""
1645
1646 #. type: =item
1647 #: ../cat/virt-ls.pod:199
1648 msgid "uid"
1649 msgstr ""
1650
1651 #. type: =item
1652 #: ../cat/virt-ls.pod:201
1653 msgid "gid"
1654 msgstr ""
1655
1656 #. type: textblock
1657 #: ../cat/virt-ls.pod:203
1658 msgid ""
1659 "The UID and GID of the owner of the file (displayed numerically).  Note "
1660 "these only make sense in the context of a Unix-like guest."
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:208
1665 msgid "With the I<--times> flag, these additional fields are displayed:"
1666 msgstr ""
1667
1668 #. type: =item
1669 #: ../cat/virt-ls.pod:212
1670 msgid "atime"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-ls.pod:214
1675 msgid "The time of last access."
1676 msgstr ""
1677
1678 #. type: =item
1679 #: ../cat/virt-ls.pod:216
1680 msgid "mtime"
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../cat/virt-ls.pod:218
1685 msgid "The time of last modification."
1686 msgstr ""
1687
1688 #. type: =item
1689 #: ../cat/virt-ls.pod:220
1690 msgid "ctime"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../cat/virt-ls.pod:222
1695 msgid "The time of last status change."
1696 msgstr ""
1697
1698 #. type: textblock
1699 #: ../cat/virt-ls.pod:226
1700 msgid ""
1701 "The time fields are displayed as string dates and times, unless one of the "
1702 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../cat/virt-ls.pod:229
1707 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1708 msgstr ""
1709
1710 #. type: =item
1711 #: ../cat/virt-ls.pod:233
1712 msgid "device"
1713 msgstr ""
1714
1715 #. type: textblock
1716 #: ../cat/virt-ls.pod:235
1717 msgid ""
1718 "The device containing the file (displayed as major:minor).  This may not "
1719 "match devices as known to the guest."
1720 msgstr ""
1721
1722 #. type: =item
1723 #: ../cat/virt-ls.pod:238
1724 msgid "inode"
1725 msgstr ""
1726
1727 #. type: textblock
1728 #: ../cat/virt-ls.pod:240
1729 msgid "The inode number."
1730 msgstr ""
1731
1732 #. type: =item
1733 #: ../cat/virt-ls.pod:242
1734 msgid "nlink"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../cat/virt-ls.pod:244
1739 msgid "The number of hard links."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-ls.pod:246
1744 msgid "rdev"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-ls.pod:248
1749 msgid "For block and char special files, the device (displayed as major:minor)."
1750 msgstr ""
1751
1752 #. type: =item
1753 #: ../cat/virt-ls.pod:251
1754 msgid "blocks"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../cat/virt-ls.pod:253
1759 msgid "The number of 512 byte blocks allocated to the file."
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-ls.pod:257
1764 msgid ""
1765 "With the I<--checksum> flag, the checksum of the file contents is shown "
1766 "(only for regular files).  Computing file checksums can take a considerable "
1767 "amount of time."
1768 msgstr ""
1769
1770 #. type: =item
1771 #: ../cat/virt-ls.pod:280
1772 msgid "B<--checksum>"
1773 msgstr ""
1774
1775 #. type: =item
1776 #: ../cat/virt-ls.pod:282
1777 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:284
1782 msgid ""
1783 "Display checksum over file contents for regular files.  With no argument, "
1784 "this defaults to using I<md5>.  Using an argument, you can select the "
1785 "checksum type to use."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
1790 msgid ""
1791 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
1792 "LISTING> above."
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../cat/virt-ls.pod:316
1797 msgid ""
1798 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
1799 "so you cannot see what you are typing.  If you are not worried about Tempest "
1800 "attacks and there is no one else in the room you can specify this flag to "
1801 "see what you are typing."
1802 msgstr ""
1803
1804 #. type: =item
1805 #: ../cat/virt-ls.pod:321
1806 msgid "B<--extra-stats>"
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-ls.pod:323
1811 msgid "Display extra stats."
1812 msgstr ""
1813
1814 #. type: verbatim
1815 #: ../cat/virt-ls.pod:339
1816 #, no-wrap
1817 msgid ""
1818 " virt-ls --format=raw -a disk.img /dir\n"
1819 "\n"
1820 msgstr ""
1821
1822 #. type: verbatim
1823 #: ../cat/virt-ls.pod:343
1824 #, no-wrap
1825 msgid ""
1826 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
1827 "\n"
1828 msgstr ""
1829
1830 #. type: textblock
1831 #: ../cat/virt-ls.pod:356
1832 msgid "Display file sizes in human-readable format."
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-ls.pod:370
1837 msgid "B<-R>"
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-ls.pod:372
1842 msgid "B<--recursive>"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-ls.pod:374
1847 msgid ""
1848 "Select the mode.  With neither of these options, C<virt-ls> produces a "
1849 "simple, flat list of the files in the named directory.  See L</SIMPLE "
1850 "LISTING>."
1851 msgstr ""
1852
1853 #. type: textblock
1854 #: ../cat/virt-ls.pod:378
1855 msgid ""
1856 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
1857 "L</LONG LISTING>."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:381
1862 msgid ""
1863 "C<virt-ls -R> produces a recursive list of files starting at the named "
1864 "directory.  See L</RECURSIVE LISTING>."
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-ls.pod:384
1869 msgid ""
1870 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
1871 "parsed.  See L</RECURSIVE LONG LISTING>."
1872 msgstr ""
1873
1874 #. type: =item
1875 #: ../cat/virt-ls.pod:387
1876 msgid "B<--times>"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:389
1881 msgid "Display time fields."
1882 msgstr ""
1883
1884 #. type: =item
1885 #: ../cat/virt-ls.pod:394
1886 msgid "B<--time-days>"
1887 msgstr ""
1888
1889 #. type: textblock
1890 #: ../cat/virt-ls.pod:396
1891 msgid "Display time fields as days before now (negative if in the future)."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-ls.pod:398
1896 msgid ""
1897 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
1898 "of the file is between 0 and 86399 seconds."
1899 msgstr ""
1900
1901 #. type: =item
1902 #: ../cat/virt-ls.pod:404
1903 msgid "B<--time-relative>"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:406
1908 msgid "Display time fields as seconds before now (negative if in the future)."
1909 msgstr ""
1910
1911 #. type: =item
1912 #: ../cat/virt-ls.pod:411
1913 msgid "B<--time-t>"
1914 msgstr ""
1915
1916 #. type: textblock
1917 #: ../cat/virt-ls.pod:413
1918 msgid "Display time fields as seconds since the Unix epoch."
1919 msgstr ""
1920
1921 #. type: =item
1922 #: ../cat/virt-ls.pod:418
1923 msgid "B<--uids>"
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../cat/virt-ls.pod:420
1928 msgid "Display UID and GID fields."
1929 msgstr ""
1930
1931 #. type: textblock
1932 #: ../cat/virt-ls.pod:445
1933 msgid "Previous versions of virt-ls allowed you to write either:"
1934 msgstr ""
1935
1936 #. type: verbatim
1937 #: ../cat/virt-ls.pod:447
1938 #, no-wrap
1939 msgid ""
1940 " virt-ls disk.img [disk.img ...] /dir\n"
1941 "\n"
1942 msgstr ""
1943
1944 #. type: verbatim
1945 #: ../cat/virt-ls.pod:451
1946 #, no-wrap
1947 msgid ""
1948 " virt-ls guestname /dir\n"
1949 "\n"
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-ls.pod:497
1954 msgid ""
1955 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
1956 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
1957 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1958 msgstr ""
1959
1960 #. type: textblock
1961 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:298
1962 msgid "Copyright (C) 2009-2011 Red Hat Inc."
1963 msgstr ""
1964
1965 #. type: textblock
1966 #: ../df/virt-df.pod:5
1967 msgid "virt-df - Display free space on virtual filesystems"
1968 msgstr ""
1969
1970 #. type: verbatim
1971 #: ../df/virt-df.pod:9
1972 #, no-wrap
1973 msgid ""
1974 " virt-df [--options]\n"
1975 "\n"
1976 msgstr ""
1977
1978 #. type: verbatim
1979 #: ../df/virt-df.pod:11
1980 #, no-wrap
1981 msgid ""
1982 " virt-df [--options] -d domname\n"
1983 "\n"
1984 msgstr ""
1985
1986 #. type: verbatim
1987 #: ../df/virt-df.pod:13
1988 #, no-wrap
1989 msgid ""
1990 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
1991 "\n"
1992 msgstr ""
1993
1994 #. type: verbatim
1995 #: ../df/virt-df.pod:17
1996 #, no-wrap
1997 msgid ""
1998 " virt-df [--options] domname\n"
1999 "\n"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../df/virt-df.pod:19
2004 #, no-wrap
2005 msgid ""
2006 " virt-df [--options] disk.img [disk.img ...]\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../df/virt-df.pod:23
2012 msgid ""
2013 "C<virt-df> is a command line tool to display free space on virtual machine "
2014 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2015 "allocated to a virtual machine, but can look inside disk images to see how "
2016 "much space is really being used."
2017 msgstr ""
2018
2019 #. type: textblock
2020 #: ../df/virt-df.pod:28
2021 msgid ""
2022 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2023 "to get a list of all active and inactive guests, and performs a C<df>-type "
2024 "operation on each one in turn, printing out the results."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../df/virt-df.pod:32
2029 msgid ""
2030 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
2031 "C<df>-type operation on either the single named libvirt domain, or on the "
2032 "disk image(s) listed on the command line (which must all belong to a single "
2033 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
2034 "single guest>.  If you want to run on multiple guests, then you have to "
2035 "invoke C<virt-df> multiple times."
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../df/virt-df.pod:39
2040 msgid ""
2041 "Use the I<--csv> option to get a format which can be easily parsed by other "
2042 "programs.  Other options are similar to the standard L<df(1)> command."
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../df/virt-df.pod:45
2047 msgid ""
2048 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2049 "output human-readable:"
2050 msgstr ""
2051
2052 #. type: verbatim
2053 #: ../df/virt-df.pod:48
2054 #, no-wrap
2055 msgid ""
2056 " # virt-df -d F14x64 -h\n"
2057 " Filesystem                       Size     Used  Available  Use%\n"
2058 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2059 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2060 "\n"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../df/virt-df.pod:53
2065 msgid "Show disk usage for a disk image file called C<test.img>:"
2066 msgstr ""
2067
2068 #. type: verbatim
2069 #: ../df/virt-df.pod:55
2070 #, no-wrap
2071 msgid ""
2072 " $ virt-df -a test1.img\n"
2073 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2074 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2075 "\n"
2076 msgstr ""
2077
2078 #. type: verbatim
2079 #: ../df/virt-df.pod:112
2080 #, no-wrap
2081 msgid ""
2082 " virt-df --format=raw -a disk.img\n"
2083 "\n"
2084 msgstr ""
2085
2086 #. type: verbatim
2087 #: ../df/virt-df.pod:116
2088 #, no-wrap
2089 msgid ""
2090 " virt-df --format=raw -a disk.img --format -a another.img\n"
2091 "\n"
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../df/virt-df.pod:129
2096 msgid "Print sizes in human-readable format."
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../df/virt-df.pod:131
2101 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2102 msgstr ""
2103
2104 #. type: =item
2105 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2106 msgid "B<-i>"
2107 msgstr ""
2108
2109 #. type: =item
2110 #: ../df/virt-df.pod:135
2111 msgid "B<--inodes>"
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../df/virt-df.pod:137
2116 msgid "Print inodes instead of blocks."
2117 msgstr ""
2118
2119 #. type: =item
2120 #: ../df/virt-df.pod:139
2121 msgid "B<--one-per-guest>"
2122 msgstr ""
2123
2124 #. type: textblock
2125 #: ../df/virt-df.pod:141
2126 msgid ""
2127 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2128 "disks from several guests to a single libguestfs appliance."
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../df/virt-df.pod:144
2133 msgid "You might use this option in the following circumstances:"
2134 msgstr ""
2135
2136 #. type: =item
2137 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412 ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108 ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116 ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128 ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142 ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150 ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254 ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938 ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952 ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064 ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077 ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112 ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652 ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763 ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052 ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420 ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437 ../src/guestfs.pod:2818 ../src/guestfs.pod:2823 ../src/guestfs.pod:2827 ../src/guestfs.pod:2831 ../src/guestfs.pod:2835 ../src/guestfs.pod:2849 ../src/guestfs.pod:2854 ../src/guestfs.pod:3079 ../src/guestfs.pod:3083 ../src/guestfs.pod:3087 ../src/guestfs.pod:3091 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2138 msgid "*"
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../df/virt-df.pod:150
2143 msgid ""
2144 "If you think an untrusted guest might actively try to exploit the libguestfs "
2145 "appliance kernel, then this prevents one guest from interfering with the "
2146 "stats printed for another guest."
2147 msgstr ""
2148
2149 #. type: textblock
2150 #: ../df/virt-df.pod:156
2151 msgid ""
2152 "If the kernel has a bug which stops it from accessing a filesystem in one "
2153 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2154 "and report stats for further guests."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../df/virt-df.pod:165
2159 msgid ""
2160 "Print UUIDs instead of names.  This is useful for following a guest even "
2161 "when the guest is migrated or renamed, or when two guests happen to have the "
2162 "same name."
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../df/virt-df.pod:169
2167 msgid ""
2168 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2169 "images, we still print the disk image name even when this option is "
2170 "specified."
2171 msgstr ""
2172
2173 #. type: textblock
2174 #: ../df/virt-df.pod:229
2175 msgid ""
2176 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
2177 "L<http://libguestfs.org/>."
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../edit/virt-edit.pod:5
2182 msgid "virt-edit - Edit a file in a virtual machine"
2183 msgstr ""
2184
2185 #. type: verbatim
2186 #: ../edit/virt-edit.pod:9
2187 #, no-wrap
2188 msgid ""
2189 " virt-edit [--options] -d domname file [file ...]\n"
2190 "\n"
2191 msgstr ""
2192
2193 #. type: verbatim
2194 #: ../edit/virt-edit.pod:11
2195 #, no-wrap
2196 msgid ""
2197 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2198 "\n"
2199 msgstr ""
2200
2201 #. type: verbatim
2202 #: ../edit/virt-edit.pod:13
2203 #, no-wrap
2204 msgid ""
2205 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2206 "\n"
2207 msgstr ""
2208
2209 #. type: verbatim
2210 #: ../edit/virt-edit.pod:17
2211 #, no-wrap
2212 msgid ""
2213 " virt-edit domname file\n"
2214 "\n"
2215 msgstr ""
2216
2217 #. type: verbatim
2218 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2219 #, no-wrap
2220 msgid ""
2221 " virt-edit disk.img [disk.img ...] file\n"
2222 "\n"
2223 msgstr ""
2224
2225 #. type: =head1
2226 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2227 msgid "WARNING"
2228 msgstr ""
2229
2230 #. type: textblock
2231 #: ../edit/virt-edit.pod:23
2232 msgid ""
2233 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2234 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2235 "doing this, but doesn't catch all cases."
2236 msgstr ""
2237
2238 #. type: textblock
2239 #: ../edit/virt-edit.pod:29
2240 msgid ""
2241 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2242 "exists in the named virtual machine (or disk image)."
2243 msgstr ""
2244
2245 #. type: textblock
2246 #: ../edit/virt-edit.pod:32
2247 msgid ""
2248 "Multiple filenames can be given, in which case they are each edited in "
2249 "turn.  Each filename must be a full path, starting at the root directory "
2250 "(starting with '/')."
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../edit/virt-edit.pod:36
2255 msgid "If you want to just view a file, use L<virt-cat(1)>."
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../edit/virt-edit.pod:38
2260 msgid ""
2261 "For more complex cases you should look at the L<guestfish(1)> tool (see "
2262 "L</USING GUESTFISH> below)."
2263 msgstr ""
2264
2265 #. type: textblock
2266 #: ../edit/virt-edit.pod:41
2267 msgid ""
2268 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2269 "that and much more."
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../edit/virt-edit.pod:46
2274 msgid "Edit the named files interactively:"
2275 msgstr ""
2276
2277 #. type: verbatim
2278 #: ../edit/virt-edit.pod:48
2279 #, no-wrap
2280 msgid ""
2281 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2282 "\n"
2283 msgstr ""
2284
2285 #. type: verbatim
2286 #: ../edit/virt-edit.pod:50
2287 #, no-wrap
2288 msgid ""
2289 " virt-edit -d mydomain /etc/passwd\n"
2290 "\n"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../edit/virt-edit.pod:52
2295 msgid "For Windows guests, some Windows paths are understood:"
2296 msgstr ""
2297
2298 #. type: verbatim
2299 #: ../edit/virt-edit.pod:54
2300 #, no-wrap
2301 msgid ""
2302 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2303 "\n"
2304 msgstr ""
2305
2306 #. type: textblock
2307 #: ../edit/virt-edit.pod:56
2308 msgid ""
2309 "If Perl is installed, you can also edit files non-interactively (see "
2310 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
2311 msgstr ""
2312
2313 #. type: verbatim
2314 #: ../edit/virt-edit.pod:60
2315 #, no-wrap
2316 msgid ""
2317 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2318 "\n"
2319 msgstr ""
2320
2321 #. type: =item
2322 #: ../edit/virt-edit.pod:81
2323 msgid "B<-b> extension"
2324 msgstr ""
2325
2326 #. type: =item
2327 #: ../edit/virt-edit.pod:83
2328 msgid "B<--backup> extension"
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../edit/virt-edit.pod:85
2333 msgid ""
2334 "Create a backup of the original file I<in the guest disk image>.  The backup "
2335 "has the original filename with C<extension> added."
2336 msgstr ""
2337
2338 #. type: textblock
2339 #: ../edit/virt-edit.pod:88
2340 msgid ""
2341 "Usually the first character of C<extension> would be a dot C<.> so you would "
2342 "write:"
2343 msgstr ""
2344
2345 #. type: verbatim
2346 #: ../edit/virt-edit.pod:91
2347 #, no-wrap
2348 msgid ""
2349 " virt-edit -b .orig [etc]\n"
2350 "\n"
2351 msgstr ""
2352
2353 #. type: textblock
2354 #: ../edit/virt-edit.pod:93
2355 msgid "By default, no backup file is made."
2356 msgstr ""
2357
2358 #. type: =item
2359 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2360 msgid "B<-c URI>"
2361 msgstr ""
2362
2363 #. type: =item
2364 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2365 msgid "B<--connect URI>"
2366 msgstr ""
2367
2368 #. type: textblock
2369 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
2370 msgid ""
2371 "If you specify guest block devices directly, then libvirt is not used at "
2372 "all."
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../edit/virt-edit.pod:114
2377 msgid ""
2378 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2379 "off so you cannot see what you are typing.  If you are not worried about "
2380 "Tempest attacks and there is no one else in the room you can specify this "
2381 "flag to see what you are typing."
2382 msgstr ""
2383
2384 #. type: =item
2385 #: ../edit/virt-edit.pod:119
2386 msgid "B<-e> EXPR"
2387 msgstr ""
2388
2389 #. type: =item
2390 #: ../edit/virt-edit.pod:121
2391 msgid "B<--expr> EXPR"
2392 msgstr ""
2393
2394 #. type: textblock
2395 #: ../edit/virt-edit.pod:123
2396 msgid ""
2397 "Instead of launching the external editor, non-interactively apply the Perl "
2398 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2399 "EDITING> below."
2400 msgstr ""
2401
2402 #. type: textblock
2403 #: ../edit/virt-edit.pod:127
2404 msgid ""
2405 "Be careful to properly quote the expression to prevent it from being altered "
2406 "by the shell."
2407 msgstr ""
2408
2409 #. type: textblock
2410 #: ../edit/virt-edit.pod:130
2411 msgid "Note that this option is only available when Perl 5 is installed."
2412 msgstr ""
2413
2414 #. type: =item
2415 #: ../edit/virt-edit.pod:132
2416 msgid "B<--format> raw|qcow2|..."
2417 msgstr ""
2418
2419 #. type: verbatim
2420 #: ../edit/virt-edit.pod:143
2421 #, no-wrap
2422 msgid ""
2423 " virt-edit --format=raw -a disk.img file\n"
2424 "\n"
2425 msgstr ""
2426
2427 #. type: verbatim
2428 #: ../edit/virt-edit.pod:147
2429 #, no-wrap
2430 msgid ""
2431 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2432 "\n"
2433 msgstr ""
2434
2435 #. type: textblock
2436 #: ../edit/virt-edit.pod:181
2437 msgid "Previous versions of virt-edit allowed you to write either:"
2438 msgstr ""
2439
2440 #. type: verbatim
2441 #: ../edit/virt-edit.pod:187
2442 #, no-wrap
2443 msgid ""
2444 " virt-edit guestname file\n"
2445 "\n"
2446 msgstr ""
2447
2448 #. type: =head1
2449 #: ../edit/virt-edit.pod:195
2450 msgid "NON-INTERACTIVE EDITING"
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../edit/virt-edit.pod:197
2455 msgid ""
2456 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2457 "administrator can interactively edit the file."
2458 msgstr ""
2459
2460 #. type: textblock
2461 #: ../edit/virt-edit.pod:200
2462 msgid ""
2463 "There are two ways also to use C<virt-edit> from scripts in order to make "
2464 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2465 "like this, it's less error-prone to write scripts directly using the "
2466 "libguestfs API and Augeas for configuration file editing.)"
2467 msgstr ""
2468
2469 #. type: textblock
2470 #: ../edit/virt-edit.pod:206
2471 msgid ""
2472 "The first method is to temporarily set C<$EDITOR> to any script or program "
2473 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2474 "update C<tmpfile> in place however it likes."
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../edit/virt-edit.pod:210
2479 msgid ""
2480 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2481 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2482 "instances of C<foo> with C<bar> in a file:"
2483 msgstr ""
2484
2485 #. type: verbatim
2486 #: ../edit/virt-edit.pod:214
2487 #, no-wrap
2488 msgid ""
2489 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2490 "\n"
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../edit/virt-edit.pod:216
2495 msgid ""
2496 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2497 "For example to delete root's password you could do:"
2498 msgstr ""
2499
2500 #. type: verbatim
2501 #: ../edit/virt-edit.pod:219
2502 #, no-wrap
2503 msgid ""
2504 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2505 "\n"
2506 msgstr ""
2507
2508 #. type: textblock
2509 #: ../edit/virt-edit.pod:221
2510 msgid ""
2511 "What really happens is that the snippet is evaluated as a Perl expression "
2512 "for each line of the file.  The line, including the final C<\\n>, is passed "
2513 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2514 msgstr ""
2515
2516 #. type: textblock
2517 #: ../edit/virt-edit.pod:226
2518 msgid ""
2519 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2520 "C<apache> user account from the password file you can do:"
2521 msgstr ""
2522
2523 #. type: verbatim
2524 #: ../edit/virt-edit.pod:229
2525 #, no-wrap
2526 msgid ""
2527 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2528 "\n"
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../edit/virt-edit.pod:231
2533 msgid ""
2534 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2535 "the end of the file is rather difficult this way since there is no concept "
2536 "of \"last line of the file\" - your expression just doesn't get called "
2537 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2538 "want to do this."
2539 msgstr ""
2540
2541 #. type: textblock
2542 #: ../edit/virt-edit.pod:237
2543 msgid ""
2544 "The variable C<$lineno> contains the current line number.  As is "
2545 "traditional, the first line in the file is number C<1>."
2546 msgstr ""
2547
2548 #. type: textblock
2549 #: ../edit/virt-edit.pod:240
2550 msgid ""
2551 "The return value from the expression is ignored, but the expression may call "
2552 "C<die> in order to abort the whole program, leaving the original file "
2553 "untouched."
2554 msgstr ""
2555
2556 #. type: textblock
2557 #: ../edit/virt-edit.pod:244
2558 msgid ""
2559 "Remember when matching the end of a line that C<$_> may contain the final "
2560 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2561 "newline then neither of these.  Thus to match or substitute some text at the "
2562 "end of a line, use this regular expression:"
2563 msgstr ""
2564
2565 #. type: verbatim
2566 #: ../edit/virt-edit.pod:249
2567 #, no-wrap
2568 msgid ""
2569 " /some text(\\r?\\n)?$/\n"
2570 "\n"
2571 msgstr ""
2572
2573 #. type: textblock
2574 #: ../edit/virt-edit.pod:251
2575 msgid ""
2576 "Alternately, use the perl C<chomp> function, being careful not to chomp "
2577 "C<$_> itself (since that would remove all newlines from the file):"
2578 msgstr ""
2579
2580 #. type: verbatim
2581 #: ../edit/virt-edit.pod:255
2582 #, no-wrap
2583 msgid ""
2584 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2585 "\n"
2586 msgstr ""
2587
2588 #. type: =head1
2589 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2590 msgid "WINDOWS PATHS"
2591 msgstr ""
2592
2593 #. type: textblock
2594 #: ../edit/virt-edit.pod:259
2595 msgid ""
2596 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2597 "paths (eg. C<E:\\foo\\bar.txt>)."
2598 msgstr ""
2599
2600 #. type: textblock
2601 #: ../edit/virt-edit.pod:262
2602 msgid "If and only if the guest is running Windows then:"
2603 msgstr ""
2604
2605 #. type: textblock
2606 #: ../edit/virt-edit.pod:268
2607 msgid ""
2608 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2609 "to the correct filesystem."
2610 msgstr ""
2611
2612 #. type: textblock
2613 #: ../edit/virt-edit.pod:273
2614 msgid ""
2615 "Any backslash (C<\\>) characters in the path are replaced with forward "
2616 "slashes so that libguestfs can process it."
2617 msgstr ""
2618
2619 #. type: textblock
2620 #: ../edit/virt-edit.pod:278
2621 msgid ""
2622 "The path is resolved case insensitively to locate the file that should be "
2623 "edited."
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../edit/virt-edit.pod:283
2628 msgid "There are some known shortcomings:"
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../edit/virt-edit.pod:289
2633 msgid "Some NTFS symbolic links may not be followed correctly."
2634 msgstr ""
2635
2636 #. type: textblock
2637 #: ../edit/virt-edit.pod:293
2638 msgid "NTFS junction points that cross filesystems are not followed."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../edit/virt-edit.pod:299
2643 msgid ""
2644 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2645 "C<virt-edit> doesn't work."
2646 msgstr ""
2647
2648 #. type: textblock
2649 #: ../edit/virt-edit.pod:302
2650 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2651 msgstr ""
2652
2653 #. type: verbatim
2654 #: ../edit/virt-edit.pod:304
2655 #, no-wrap
2656 msgid ""
2657 " guestfish --rw -i -d domname edit /file\n"
2658 "\n"
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../edit/virt-edit.pod:306
2663 msgid ""
2664 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2665 "path to the file."
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../edit/virt-edit.pod:309
2670 msgid ""
2671 "The command above uses libguestfs's guest inspection feature and so does not "
2672 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2673 "disk images that don't contain guests.  To edit a file on a disk image "
2674 "directly, use:"
2675 msgstr ""
2676
2677 #. type: verbatim
2678 #: ../edit/virt-edit.pod:314
2679 #, no-wrap
2680 msgid ""
2681 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2682 "\n"
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../edit/virt-edit.pod:316
2687 msgid ""
2688 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2689 "the disk image to edit, and C</file> is the full path to the file."
2690 msgstr ""
2691
2692 #. type: textblock
2693 #: ../edit/virt-edit.pod:320
2694 msgid ""
2695 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2696 "C<write> or C<upload> instead:"
2697 msgstr ""
2698
2699 #. type: verbatim
2700 #: ../edit/virt-edit.pod:323
2701 #, no-wrap
2702 msgid ""
2703 " guestfish --rw -i -d domname touch /newfile\n"
2704 "\n"
2705 msgstr ""
2706
2707 #. type: verbatim
2708 #: ../edit/virt-edit.pod:325
2709 #, no-wrap
2710 msgid ""
2711 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
2712 "\n"
2713 msgstr ""
2714
2715 #. type: verbatim
2716 #: ../edit/virt-edit.pod:327
2717 #, no-wrap
2718 msgid ""
2719 " guestfish --rw -i -d domname upload localfile /newfile\n"
2720 "\n"
2721 msgstr ""
2722
2723 #. type: =head1
2724 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086 ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2965 ../test-tool/libguestfs-test-tool.pod:82
2725 msgid "ENVIRONMENT VARIABLES"
2726 msgstr ""
2727
2728 #. type: =item
2729 #: ../edit/virt-edit.pod:333
2730 msgid "C<EDITOR>"
2731 msgstr ""
2732
2733 #. type: textblock
2734 #: ../edit/virt-edit.pod:335
2735 msgid ""
2736 "If set, this string is used as the editor.  It may contain arguments, "
2737 "eg. C<\"emacs -nw\">"
2738 msgstr ""
2739
2740 #. type: textblock
2741 #: ../edit/virt-edit.pod:338
2742 msgid "If not set, C<vi> is used."
2743 msgstr ""
2744
2745 #. type: textblock
2746 #: ../edit/virt-edit.pod:356
2747 msgid ""
2748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
2749 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2750 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
2751 msgstr ""
2752
2753 #. type: textblock
2754 #: ../examples/guestfs-examples.pod:5
2755 msgid "guestfs-examples - Examples of using libguestfs from C"
2756 msgstr ""
2757
2758 #. type: verbatim
2759 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
2760 #, no-wrap
2761 msgid ""
2762 " #include <guestfs.h>\n"
2763 " \n"
2764 msgstr ""
2765
2766 #. type: verbatim
2767 #: ../examples/guestfs-examples.pod:11
2768 #, no-wrap
2769 msgid ""
2770 " guestfs_h *g = guestfs_create ();\n"
2771 " guestfs_add_drive_ro (g, \"disk.img\");\n"
2772 " guestfs_launch (g);\n"
2773 "\n"
2774 msgstr ""
2775
2776 #. type: verbatim
2777 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
2778 #, no-wrap
2779 msgid ""
2780 " cc prog.c -o prog -lguestfs\n"
2781 "or:\n"
2782 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
2783 "\n"
2784 msgstr ""
2785
2786 #. type: textblock
2787 #: ../examples/guestfs-examples.pod:21
2788 msgid ""
2789 "This manual page contains examples of calling libguestfs from the C "
2790 "programming language.  If you are not familiar with using libguestfs, you "
2791 "also need to read L<guestfs(3)>."
2792 msgstr ""
2793
2794 #. type: =head1
2795 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
2796 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
2801 msgid "@EXAMPLE1@"
2802 msgstr ""
2803
2804 #. type: =head1
2805 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
2806 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
2807 msgstr ""
2808
2809 #. type: textblock
2810 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
2811 msgid "@EXAMPLE2@"
2812 msgstr ""
2813
2814 #. type: textblock
2815 #: ../examples/guestfs-examples.pod:35
2816 msgid ""
2817 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
2818 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
2819 "L<http://libguestfs.org/>."
2820 msgstr ""
2821
2822 #. type: =head1
2823 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396 ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319 ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod: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:3098 ../test-tool/libguestfs-test-tool.pod:93
2824 msgid "AUTHORS"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398 ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321 ../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:3100 ../test-tool/libguestfs-test-tool.pod:95
2829 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96 ../python/examples/guestfs-python.pod:59 ../ruby/examples/guestfs-ruby.pod:53
2834 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
2835 msgstr ""
2836
2837 #. type: textblock
2838 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404 ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98 ../perl/examples/guestfs-perl.pod:59 ../python/examples/guestfs-python.pod:61 ../ruby/examples/guestfs-ruby.pod:55
2839 msgid ""
2840 "The examples in this manual page may be freely copied, modified and "
2841 "distributed without any restrictions."
2842 msgstr ""
2843
2844 #. type: textblock
2845 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407 ../java/examples/guestfs-java.pod:68 ../ocaml/examples/guestfs-ocaml.pod:101 ../perl/examples/guestfs-perl.pod:62 ../python/examples/guestfs-python.pod:64 ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3107
2846 msgid ""
2847 "This library is free software; you can redistribute it and/or modify it "
2848 "under the terms of the GNU Lesser General Public License as published by the "
2849 "Free Software Foundation; either version 2 of the License, or (at your "
2850 "option) any later version."
2851 msgstr ""
2852
2853 #. type: textblock
2854 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412 ../java/examples/guestfs-java.pod:73 ../ocaml/examples/guestfs-ocaml.pod:106 ../perl/examples/guestfs-perl.pod:67 ../python/examples/guestfs-python.pod:69 ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3112
2855 msgid ""
2856 "This library is distributed in the hope that it will be useful, but WITHOUT "
2857 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
2858 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
2859 "for more details."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417 ../java/examples/guestfs-java.pod:78 ../ocaml/examples/guestfs-ocaml.pod:111 ../perl/examples/guestfs-perl.pod:72 ../python/examples/guestfs-python.pod:74 ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3117
2864 msgid ""
2865 "You should have received a copy of the GNU Lesser General Public License "
2866 "along with this library; if not, write to the Free Software Foundation, "
2867 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
2868 msgstr ""
2869
2870 #. type: =end
2871 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
2872 msgid "comment"
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../examples/guestfs-recipes.pod:5
2877 msgid ""
2878 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
2879 "here.  The only way which works for both sorts of output is to just write "
2880 "the URL directly.  Do NOT use L<...> for URLs."
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../examples/guestfs-recipes.pod:9
2885 msgid ""
2886 "We break with tradition here and don't use ALL CAPS for the section "
2887 "headings, as this makes them much easier to read."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../examples/guestfs-recipes.pod:16
2892 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../examples/guestfs-recipes.pod:20
2897 msgid ""
2898 "This page contains recipes for and links to things you can do using "
2899 "libguestfs, L<guestfish(1)> and the virt tools."
2900 msgstr ""
2901
2902 #. type: =head1
2903 #: ../examples/guestfs-recipes.pod:23
2904 msgid "Audit a virtual machine for setuid files"
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../examples/guestfs-recipes.pod:25
2909 msgid ""
2910 "The link below contains a small program which can be used to audit a Linux "
2911 "virtual machine to see what setuid and setgid files it contains."
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../examples/guestfs-recipes.pod:28
2916 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
2917 msgstr ""
2918
2919 #. type: =head1
2920 #: ../examples/guestfs-recipes.pod:30
2921 msgid "Change the background image in a Windows XP VM"
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../examples/guestfs-recipes.pod:32
2926 msgid ""
2927 "The links below explain how to use L<guestfish(1)> to change the background "
2928 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
2929 "be substantially different for each version of Windows."
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../examples/guestfs-recipes.pod:37
2934 msgid ""
2935 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
2936 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
2937 msgstr ""
2938
2939 #. type: =head1
2940 #: ../examples/guestfs-recipes.pod:40
2941 msgid "Cloning a virtual machine (Linux)"
2942 msgstr ""
2943
2944 #. type: textblock
2945 #: ../examples/guestfs-recipes.pod:42
2946 msgid ""
2947 "The guestfish technique described in the link below works well for most "
2948 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
2949 "slightly."
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../examples/guestfs-recipes.pod:46
2954 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../examples/guestfs-recipes.pod:48
2959 msgid ""
2960 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
2961 "discussion."
2962 msgstr ""
2963
2964 #. type: textblock
2965 #: ../examples/guestfs-recipes.pod:51
2966 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2967 msgstr ""
2968
2969 #. type: =head1
2970 #: ../examples/guestfs-recipes.pod:53
2971 msgid "Cloning a virtual machine (Windows)"
2972 msgstr ""
2973
2974 #. type: textblock
2975 #: ../examples/guestfs-recipes.pod:55
2976 msgid ""
2977 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
2978 "straightforward.  Currently there is code in the Aeolus Oz project which "
2979 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
2980 "we may add sysprepping ability."
2981 msgstr ""
2982
2983 #. type: textblock
2984 #: ../examples/guestfs-recipes.pod:60
2985 msgid ""
2986 "https://github.com/clalancette/oz "
2987 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2988 msgstr ""
2989
2990 #. type: =head1
2991 #: ../examples/guestfs-recipes.pod:63
2992 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../examples/guestfs-recipes.pod:65
2997 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
2998 msgstr ""
2999
3000 #. type: verbatim
3001 #: ../examples/guestfs-recipes.pod:67
3002 #, no-wrap
3003 msgid ""
3004 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3005 "\n"
3006 msgstr ""
3007
3008 #. type: textblock
3009 #: ../examples/guestfs-recipes.pod:69
3010 msgid "To export just a subdirectory, eg. C</files>, do:"
3011 msgstr ""
3012
3013 #. type: verbatim
3014 #: ../examples/guestfs-recipes.pod:71
3015 #, no-wrap
3016 msgid ""
3017 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3018 "\n"
3019 msgstr ""
3020
3021 #. type: =head1
3022 #: ../examples/guestfs-recipes.pod:73
3023 msgid "Create empty disk images"
3024 msgstr ""
3025
3026 #. type: textblock
3027 #: ../examples/guestfs-recipes.pod:75
3028 msgid ""
3029 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3030 "The useful guide below explains the options available."
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../examples/guestfs-recipes.pod:78
3035 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
3036 msgstr ""
3037
3038 #. type: =head1
3039 #: ../examples/guestfs-recipes.pod:80
3040 msgid "Dump raw filesystem content from inside a disk image or VM"
3041 msgstr ""
3042
3043 #. type: textblock
3044 #: ../examples/guestfs-recipes.pod:82
3045 msgid ""
3046 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3047 "filesystem content from any filesystem in a disk image or a VM (even one "
3048 "which is encrypted or buried inside an LV):"
3049 msgstr ""
3050
3051 #. type: verbatim
3052 #: ../examples/guestfs-recipes.pod:86
3053 #, no-wrap
3054 msgid ""
3055 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3056 "\n"
3057 msgstr ""
3058
3059 #. type: verbatim
3060 #: ../examples/guestfs-recipes.pod:88
3061 #, no-wrap
3062 msgid ""
3063 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3064 "\n"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../examples/guestfs-recipes.pod:90
3069 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3070 msgstr ""
3071
3072 #. type: =head1
3073 #: ../examples/guestfs-recipes.pod:92
3074 msgid "Edit grub configuration in a VM"
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../examples/guestfs-recipes.pod:94
3079 msgid "You can use this to:"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../examples/guestfs-recipes.pod:100
3084 msgid "Fix a virtual machine that does not boot."
3085 msgstr ""
3086
3087 #. type: textblock
3088 #: ../examples/guestfs-recipes.pod:104
3089 msgid "Change which kernel is used to boot the VM."
3090 msgstr ""
3091
3092 #. type: textblock
3093 #: ../examples/guestfs-recipes.pod:108
3094 msgid "Change kernel command line options."
3095 msgstr ""
3096
3097 #. type: textblock
3098 #: ../examples/guestfs-recipes.pod:112
3099 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3100 msgstr ""
3101
3102 #. type: verbatim
3103 #: ../examples/guestfs-recipes.pod:114
3104 #, no-wrap
3105 msgid ""
3106 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3107 "\n"
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../examples/guestfs-recipes.pod:116
3112 msgid ""
3113 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3114 "this:"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../examples/guestfs-recipes.pod:119
3119 #, no-wrap
3120 msgid ""
3121 " virt-rescue -d BrokenGuest\n"
3122 "\n"
3123 msgstr ""
3124
3125 #. type: =head1
3126 #: ../examples/guestfs-recipes.pod:121
3127 msgid "Export any directory from a VM"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../examples/guestfs-recipes.pod:123
3132 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3133 msgstr ""
3134
3135 #. type: verbatim
3136 #: ../examples/guestfs-recipes.pod:126
3137 #, no-wrap
3138 msgid ""
3139 " virt-copy-out -d Guest /home .\n"
3140 "\n"
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1639 ../tools/virt-win-reg.pl:706
3145 msgid "Notes:"
3146 msgstr ""
3147
3148 #. type: textblock
3149 #: ../examples/guestfs-recipes.pod:134
3150 msgid ""
3151 "The final dot of the command is not a printing error.  It means we want to "
3152 "copy out to the current directory."
3153 msgstr ""
3154
3155 #. type: textblock
3156 #: ../examples/guestfs-recipes.pod:139
3157 msgid "This creates a directory called C<home> under the current directory."
3158 msgstr ""
3159
3160 #. type: textblock
3161 #: ../examples/guestfs-recipes.pod:143
3162 msgid ""
3163 "If the guest is a Windows guest then you can use drive letters and "
3164 "backslashes, but you must prefix the path with C<win:> and quote it to "
3165 "protect it from the shell, like this:"
3166 msgstr ""
3167
3168 #. type: verbatim
3169 #: ../examples/guestfs-recipes.pod:147
3170 #, no-wrap
3171 msgid ""
3172 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3173 "\n"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../examples/guestfs-recipes.pod:149
3178 msgid "To get the output as a compressed tarball, do:"
3179 msgstr ""
3180
3181 #. type: verbatim
3182 #: ../examples/guestfs-recipes.pod:151
3183 #, no-wrap
3184 msgid ""
3185 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3186 "\n"
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../examples/guestfs-recipes.pod:153
3191 msgid ""
3192 "Although it sounds tempting, this is usually not a reliable way to get a "
3193 "backup from a running guest.  See the entry in the FAQ: "
3194 "http://libguestfs.org/FAQ.html#backup"
3195 msgstr ""
3196
3197 #. type: =head1
3198 #: ../examples/guestfs-recipes.pod:157
3199 msgid "Find out which user is using the most space"
3200 msgstr ""
3201
3202 #. type: textblock
3203 #: ../examples/guestfs-recipes.pod:159
3204 msgid ""
3205 "This simple script examines a Linux guest to find out which user is using "
3206 "the most space in their home directory:"
3207 msgstr ""
3208
3209 #. type: verbatim
3210 #: ../examples/guestfs-recipes.pod:162
3211 #, no-wrap
3212 msgid ""
3213 " #!/bin/sh -\n"
3214 " \n"
3215 msgstr ""
3216
3217 #. type: verbatim
3218 #: ../examples/guestfs-recipes.pod:164
3219 #, no-wrap
3220 msgid ""
3221 " set -e\n"
3222 " \n"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../examples/guestfs-recipes.pod:166
3227 #, no-wrap
3228 msgid ""
3229 " vm=\"$1\"\n"
3230 " dir=/home\n"
3231 " \n"
3232 msgstr ""
3233
3234 #. type: verbatim
3235 #: ../examples/guestfs-recipes.pod:169
3236 #, no-wrap
3237 msgid ""
3238 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3239 " \n"
3240 msgstr ""
3241
3242 #. type: verbatim
3243 #: ../examples/guestfs-recipes.pod:171
3244 #, no-wrap
3245 msgid ""
3246 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3247 "     echo -n \"$dir/$d\"\n"
3248 "     echo -ne '\\t'\n"
3249 "     guestfish --remote du \"$dir/$d\";\n"
3250 " done | sort -nr -k 2\n"
3251 " \n"
3252 msgstr ""
3253
3254 #. type: verbatim
3255 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3256 #, no-wrap
3257 msgid ""
3258 " guestfish --remote exit\n"
3259 "\n"
3260 msgstr ""
3261
3262 #. type: =head1
3263 #: ../examples/guestfs-recipes.pod:179
3264 msgid "Get DHCP address from a VM"
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../examples/guestfs-recipes.pod:181
3269 msgid ""
3270 "The link below explains the many different possible techniques for getting "
3271 "the last assigned DHCP address of a virtual machine."
3272 msgstr ""
3273
3274 #. type: textblock
3275 #: ../examples/guestfs-recipes.pod:184
3276 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
3277 msgstr ""
3278
3279 #. type: textblock
3280 #: ../examples/guestfs-recipes.pod:186
3281 msgid ""
3282 "In the libguestfs source examples directory you will find the latest version "
3283 "of the C<virt-dhcp-address.c> program."
3284 msgstr ""
3285
3286 #. type: =head1
3287 #: ../examples/guestfs-recipes.pod:189
3288 msgid "Get the operating system product name string"
3289 msgstr ""
3290
3291 #. type: textblock
3292 #: ../examples/guestfs-recipes.pod:191
3293 msgid "Save the following script into a file called C<product-name.sh>:"
3294 msgstr ""
3295
3296 #. type: verbatim
3297 #: ../examples/guestfs-recipes.pod:193
3298 #, no-wrap
3299 msgid ""
3300 " #!/bin/sh -\n"
3301 " set -e\n"
3302 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3303 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3304 " guestfish --remote inspect-get-product-name \"$root\"\n"
3305 " guestfish --remote exit\n"
3306 "\n"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../examples/guestfs-recipes.pod:200
3311 msgid "Make the script executable and run it on a named guest:"
3312 msgstr ""
3313
3314 #. type: verbatim
3315 #: ../examples/guestfs-recipes.pod:202
3316 #, no-wrap
3317 msgid ""
3318 " # product-name.sh RHEL60x64\n"
3319 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3320 "\n"
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../examples/guestfs-recipes.pod:205
3325 msgid ""
3326 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3327 "C<xpath> command line tool or from your favourite programming language:"
3328 msgstr ""
3329
3330 #. type: verbatim
3331 #: ../examples/guestfs-recipes.pod:209
3332 #, no-wrap
3333 msgid ""
3334 " # virt-inspector RHEL60x64 > xml\n"
3335 " # xpath '//product_name' < xml\n"
3336 " Found 1 nodes:\n"
3337 " -- NODE --\n"
3338 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
3339 "(Santiago)</product_name>\n"
3340 "\n"
3341 msgstr ""
3342
3343 #. type: =head1
3344 #: ../examples/guestfs-recipes.pod:215
3345 msgid "Get the default boot kernel for a Linux VM"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../examples/guestfs-recipes.pod:217
3350 msgid ""
3351 "The link below contains a program to print the default boot kernel for a "
3352 "Linux VM."
3353 msgstr ""
3354
3355 #. type: textblock
3356 #: ../examples/guestfs-recipes.pod:220
3357 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../examples/guestfs-recipes.pod:222
3362 msgid ""
3363 "It uses Augeas, and the technique is generally applicable for many different "
3364 "tasks, such as:"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../examples/guestfs-recipes.pod:229
3369 msgid "listing the user accounts in the guest"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../examples/guestfs-recipes.pod:233
3374 msgid "what repositories is it configured to use"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../examples/guestfs-recipes.pod:237
3379 msgid "what NTP servers does it connect to"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:241
3384 msgid "what were the boot messages last time it booted"
3385 msgstr ""
3386
3387 #. type: textblock
3388 #: ../examples/guestfs-recipes.pod:245
3389 msgid "listing who was logged in recently"
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../examples/guestfs-recipes.pod:249
3394 msgid "http://augeas.net/"
3395 msgstr ""
3396
3397 #. type: =head1
3398 #: ../examples/guestfs-recipes.pod:251
3399 msgid "Install RPMs in a guest"
3400 msgstr ""
3401
3402 #. type: textblock
3403 #: ../examples/guestfs-recipes.pod:253
3404 msgid ""
3405 "The link below contains a method to install RPMs in a guest.  In fact the "
3406 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3407 "installs them next time the guest is booted.  You could use this technique "
3408 "to install vital security updates in an offline guest."
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../examples/guestfs-recipes.pod:259
3413 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3414 msgstr ""
3415
3416 #. type: =head1
3417 #: ../examples/guestfs-recipes.pod:261
3418 msgid "List applications installed in a VM"
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../examples/guestfs-recipes.pod:263
3423 msgid "Save the following to a file C<list-apps.sh>:"
3424 msgstr ""
3425
3426 #. type: verbatim
3427 #: ../examples/guestfs-recipes.pod:265
3428 #, no-wrap
3429 msgid ""
3430 " #!/bin/sh -\n"
3431 " set -e\n"
3432 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3433 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3434 " guestfish --remote inspect-list-applications \"$root\"\n"
3435 " guestfish --remote exit\n"
3436 "\n"
3437 msgstr ""
3438
3439 #. type: textblock
3440 #: ../examples/guestfs-recipes.pod:272
3441 msgid ""
3442 "Make the file executable and then you can run it on any named virtual "
3443 "machine:"
3444 msgstr ""
3445
3446 #. type: verbatim
3447 #: ../examples/guestfs-recipes.pod:275
3448 #, no-wrap
3449 msgid ""
3450 " # list-apps.sh WinGuest\n"
3451 " [0] = {\n"
3452 "   app_name: Mozilla Firefox (3.6.12)\n"
3453 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3454 "   app_epoch: 0\n"
3455 "   app_version: 3.6.12 (en-GB)\n"
3456 "   app_release:\n"
3457 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3458 "   app_trans_path:\n"
3459 "   app_publisher: Mozilla\n"
3460 "   app_url: http://www.mozilla.com/en-GB/\n"
3461 "   app_source_package:\n"
3462 "   app_summary:\n"
3463 "   app_description: Mozilla Firefox\n"
3464 " }\n"
3465 " [1] = {\n"
3466 "   app_name: VLC media player\n"
3467 "   app_display_name: VLC media player 1.1.5\n"
3468 "   app_epoch: 0\n"
3469 "   app_version: 1.1.5\n"
3470 "   app_release:\n"
3471 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3472 "   app_trans_path:\n"
3473 "   app_publisher: VideoLAN\n"
3474 "   app_url: http://www.videolan.org/\n"
3475 "   app_source_package:\n"
3476 "   app_summary:\n"
3477 "   app_description:\n"
3478 " }\n"
3479 "\n"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../examples/guestfs-recipes.pod:305
3484 msgid ""
3485 "If you want to run the script on disk images (instead of libvirt virtual "
3486 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
3487 "L<virt-inspector(1)>."
3488 msgstr ""
3489
3490 #. type: =head1
3491 #: ../examples/guestfs-recipes.pod:309
3492 msgid "List files and directories in a VM"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../examples/guestfs-recipes.pod:311
3497 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3498 msgstr ""
3499
3500 #. type: verbatim
3501 #: ../examples/guestfs-recipes.pod:313
3502 #, no-wrap
3503 msgid ""
3504 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3505 "\n"
3506 msgstr ""
3507
3508 #. type: =head1
3509 #: ../examples/guestfs-recipes.pod:315
3510 msgid "List services in a Windows VM"
3511 msgstr ""
3512
3513 #. type: textblock
3514 #: ../examples/guestfs-recipes.pod:317
3515 msgid ""
3516 "The link below contains a script that can be used to list out the services "
3517 "from a Windows VM, and whether those services run at boot time or are loaded "
3518 "on demand."
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../examples/guestfs-recipes.pod:321
3523 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
3524 msgstr ""
3525
3526 #. type: =head1
3527 #: ../examples/guestfs-recipes.pod:323
3528 msgid "Make a disk image sparse"
3529 msgstr ""
3530
3531 #. type: textblock
3532 #: ../examples/guestfs-recipes.pod:325
3533 msgid ""
3534 "The link below contains some guides for making a disk image sparse (or "
3535 "reintroducing sparseness)."
3536 msgstr ""
3537
3538 #. type: textblock
3539 #: ../examples/guestfs-recipes.pod:328
3540 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3541 msgstr ""
3542
3543 #. type: =head1
3544 #: ../examples/guestfs-recipes.pod:330
3545 msgid "Monitor disk usage over time"
3546 msgstr ""
3547
3548 #. type: textblock
3549 #: ../examples/guestfs-recipes.pod:332
3550 msgid ""
3551 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3552 "The link below contains a guide."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../examples/guestfs-recipes.pod:335
3557 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3558 msgstr ""
3559
3560 #. type: =head1
3561 #: ../examples/guestfs-recipes.pod:337
3562 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../examples/guestfs-recipes.pod:339
3567 msgid ""
3568 "L<guestfish(1)> plus the tools described in the link below can be used to "
3569 "read out the Windows Event Log from any virtual machine running Windows "
3570 "Vista or a later version."
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../examples/guestfs-recipes.pod:343
3575 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
3576 msgstr ""
3577
3578 #. type: =head1
3579 #: ../examples/guestfs-recipes.pod:345
3580 msgid "Remove root password (Linux)"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../examples/guestfs-recipes.pod:347
3585 msgid ""
3586 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3587 "files.  One use is to remove the root password from a Linux guest:"
3588 msgstr ""
3589
3590 #. type: verbatim
3591 #: ../examples/guestfs-recipes.pod:350
3592 #, no-wrap
3593 msgid ""
3594 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3595 "\n"
3596 msgstr ""
3597
3598 #. type: =head1
3599 #: ../examples/guestfs-recipes.pod:352
3600 msgid "Remove Administrator password (Windows)"
3601 msgstr ""
3602
3603 #. type: textblock
3604 #: ../examples/guestfs-recipes.pod:354
3605 msgid ""
3606 "The link below contains one technique for removing the Administrator "
3607 "password from a Windows VM, or to be more precise, it gives you a command "
3608 "prompt the next time you log in which you can use to bypass any security:"
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../examples/guestfs-recipes.pod:359
3613 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
3614 msgstr ""
3615
3616 #. type: =head1
3617 #: ../examples/guestfs-recipes.pod:361
3618 msgid "Unpack a live CD"
3619 msgstr ""
3620
3621 #. type: textblock
3622 #: ../examples/guestfs-recipes.pod:363
3623 msgid ""
3624 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3625 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
3626 "layers, as outlined in the guide below."
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../examples/guestfs-recipes.pod:367
3631 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
3632 msgstr ""
3633
3634 #. type: =head1
3635 #: ../examples/guestfs-recipes.pod:369
3636 msgid "Uploading and downloading files"
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../examples/guestfs-recipes.pod:371
3641 msgid ""
3642 "The link below contains general tips on uploading (copying in)  and "
3643 "downloading (copying out) files from VMs."
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../examples/guestfs-recipes.pod:374
3648 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
3649 msgstr ""
3650
3651 #. type: =head1
3652 #: ../examples/guestfs-recipes.pod:376
3653 msgid "Use libguestfs tools on VMware ESX guests"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../examples/guestfs-recipes.pod:378
3658 msgid ""
3659 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
3660 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../examples/guestfs-recipes.pod:382
3665 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
3666 msgstr ""
3667
3668 #. type: textblock
3669 #: ../examples/guestfs-recipes.pod:386
3670 msgid ""
3671 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
3672 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3673 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../examples/guestfs-recipes.pod:402
3678 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
3679 msgstr ""
3680
3681 #. type: =head2
3682 #: ../fish/guestfish-actions.pod:1
3683 msgid "add-cdrom"
3684 msgstr ""
3685
3686 #. type: verbatim
3687 #: ../fish/guestfish-actions.pod:3
3688 #, no-wrap
3689 msgid ""
3690 " add-cdrom filename\n"
3691 "\n"
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
3696 msgid "This function adds a virtual CD-ROM disk image to the guest."
3697 msgstr ""
3698
3699 #. type: textblock
3700 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
3701 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
3702 msgstr ""
3703
3704 #. type: textblock
3705 #: ../fish/guestfish-actions.pod:15
3706 msgid ""
3707 "This call checks for the existence of C<filename>.  This stops you from "
3708 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3709 "and C<http:> URLs.  To specify those, use the general L</config> call "
3710 "instead."
3711 msgstr ""
3712
3713 #. type: textblock
3714 #: ../fish/guestfish-actions.pod:22
3715 msgid ""
3716 "If you just want to add an ISO file (often you use this as an efficient way "
3717 "to transfer large files into the guest), then you should probably use "
3718 "L</add-drive-ro> instead."
3719 msgstr ""
3720
3721 #. type: textblock
3722 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
3723 msgid ""
3724 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
3725 "instead."
3726 msgstr ""
3727
3728 #. type: textblock
3729 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991 ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365 ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297 ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459 ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383 ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443 ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198 ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034 ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6579 ../src/guestfs-actions.pod:6612 ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7719 ../src/guestfs-actions.pod:7897
3730 msgid ""
3731 "Deprecated functions will not be removed from the API, but the fact that "
3732 "they are deprecated indicates that there are problems with correct use of "
3733 "these functions."
3734 msgstr ""
3735
3736 #. type: =head2
3737 #: ../fish/guestfish-actions.pod:35
3738 msgid "add-domain"
3739 msgstr ""
3740
3741 #. type: =head2
3742 #: ../fish/guestfish-actions.pod:37
3743 msgid "domain"
3744 msgstr ""
3745
3746 #. type: verbatim
3747 #: ../fish/guestfish-actions.pod:39
3748 #, no-wrap
3749 msgid ""
3750 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
3751 "[allowuuid:..]\n"
3752 "\n"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../fish/guestfish-actions.pod:41
3757 msgid ""
3758 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
3759 "It works by connecting to libvirt, requesting the domain and domain XML from "
3760 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
3765 msgid ""
3766 "The number of disks added is returned.  This operation is atomic: if an "
3767 "error is returned, then no disks are added."
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
3772 msgid ""
3773 "This function does some minimal checks to make sure the libvirt domain is "
3774 "not running (unless C<readonly> is true).  In a future version we will try "
3775 "to acquire the libvirt lock on each disk."
3776 msgstr ""
3777
3778 #. type: textblock
3779 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
3780 msgid ""
3781 "Disks must be accessible locally.  This often means that adding disks from a "
3782 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
3783 "unless those disks are accessible via the same device path locally too."
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
3788 msgid ""
3789 "The optional C<libvirturi> parameter sets the libvirt URI (see "
3790 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
3791 "default libvirt URI (or one set through an environment variable, see the "
3792 "libvirt documentation for full details)."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
3797 msgid ""
3798 "The optional C<live> flag controls whether this call will try to connect to "
3799 "a running virtual machine C<guestfsd> process if it sees a suitable "
3800 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
3801 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
3802 "DAEMONS> for more information."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
3807 msgid ""
3808 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
3809 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
3810 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
3811 "as usual."
3812 msgstr ""
3813
3814 #. type: textblock
3815 #: ../fish/guestfish-actions.pod:76
3816 msgid ""
3817 "The other optional parameters are passed directly through to "
3818 "L</add-drive-opts>."
3819 msgstr ""
3820
3821 #. type: textblock
3822 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312 ../fish/guestfish-actions.pod:3447
3823 msgid ""
3824 "This command has one or more optional arguments.  See L</OPTIONAL "
3825 "ARGUMENTS>."
3826 msgstr ""
3827
3828 #. type: =head2
3829 #: ../fish/guestfish-actions.pod:81
3830 msgid "add-drive"
3831 msgstr ""
3832
3833 #. type: verbatim
3834 #: ../fish/guestfish-actions.pod:83
3835 #, no-wrap
3836 msgid ""
3837 " add-drive filename\n"
3838 "\n"
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../fish/guestfish-actions.pod:85
3843 msgid ""
3844 "This function is the equivalent of calling L</add-drive-opts> with no "
3845 "optional parameters, so the disk is added writable, with the format being "
3846 "detected automatically."
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../fish/guestfish-actions.pod:89
3851 msgid ""
3852 "Automatic detection of the format opens you up to a potential security hole "
3853 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3854 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3855 "you should think about replacing calls to this function with calls to "
3856 "L</add-drive-opts>, and specifying the format."
3857 msgstr ""
3858
3859 #. type: =head2
3860 #: ../fish/guestfish-actions.pod:96
3861 msgid "add-drive-opts"
3862 msgstr ""
3863
3864 #. type: =head2
3865 #: ../fish/guestfish-actions.pod:98
3866 msgid "add"
3867 msgstr ""
3868
3869 #. type: verbatim
3870 #: ../fish/guestfish-actions.pod:100
3871 #, no-wrap
3872 msgid ""
3873 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
3874 "\n"
3875 msgstr ""
3876
3877 #. type: textblock
3878 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
3879 msgid ""
3880 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3881 "The first time you call this function, the disk appears as C</dev/sda>, the "
3882 "second time as C</dev/sdb>, and so on."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
3887 msgid ""
3888 "You don't necessarily need to be root when using libguestfs.  However you "
3889 "obviously do need sufficient permissions to access the filename for whatever "
3890 "operations you want to perform (ie. read access if you just want to read the "
3891 "image or write access if you want to modify the image)."
3892 msgstr ""
3893
3894 #. type: textblock
3895 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
3896 msgid "This call checks that C<filename> exists."
3897 msgstr ""
3898
3899 #. type: textblock
3900 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
3901 msgid "The optional arguments are:"
3902 msgstr ""
3903
3904 #. type: =item
3905 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
3906 msgid "C<readonly>"
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
3911 msgid ""
3912 "If true then the image is treated as read-only.  Writes are still allowed, "
3913 "but they are stored in a temporary snapshot overlay which is discarded at "
3914 "the end.  The disk that you add is not modified."
3915 msgstr ""
3916
3917 #. type: =item
3918 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
3919 msgid "C<format>"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../fish/guestfish-actions.pod:127
3924 msgid ""
3925 "This forces the image format.  If you omit this (or use L</add-drive> or "
3926 "L</add-drive-ro>) then the format is automatically detected.  Possible "
3927 "formats include C<raw> and C<qcow2>."
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
3932 msgid ""
3933 "Automatic detection of the format opens you up to a potential security hole "
3934 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3935 "RHBZ#642934.  Specifying the format closes this security hole."
3936 msgstr ""
3937
3938 #. type: =item
3939 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
3940 msgid "C<iface>"
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../fish/guestfish-actions.pod:138
3945 msgid ""
3946 "This rarely-used option lets you emulate the behaviour of the deprecated "
3947 "L</add-drive-with-if> call (q.v.)"
3948 msgstr ""
3949
3950 #. type: =head2
3951 #: ../fish/guestfish-actions.pod:145
3952 msgid "add-drive-ro"
3953 msgstr ""
3954
3955 #. type: =head2
3956 #: ../fish/guestfish-actions.pod:147
3957 msgid "add-ro"
3958 msgstr ""
3959
3960 #. type: verbatim
3961 #: ../fish/guestfish-actions.pod:149
3962 #, no-wrap
3963 msgid ""
3964 " add-drive-ro filename\n"
3965 "\n"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../fish/guestfish-actions.pod:151
3970 msgid ""
3971 "This function is the equivalent of calling L</add-drive-opts> with the "
3972 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
3973 "is added read-only, with the format being detected automatically."
3974 msgstr ""
3975
3976 #. type: =head2
3977 #: ../fish/guestfish-actions.pod:156
3978 msgid "add-drive-ro-with-if"
3979 msgstr ""
3980
3981 #. type: verbatim
3982 #: ../fish/guestfish-actions.pod:158
3983 #, no-wrap
3984 msgid ""
3985 " add-drive-ro-with-if filename iface\n"
3986 "\n"
3987 msgstr ""
3988
3989 #. type: textblock
3990 #: ../fish/guestfish-actions.pod:160
3991 msgid ""
3992 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
3993 "interface emulation to use at run time."
3994 msgstr ""
3995
3996 #. type: =head2
3997 #: ../fish/guestfish-actions.pod:170
3998 msgid "add-drive-with-if"
3999 msgstr ""
4000
4001 #. type: verbatim
4002 #: ../fish/guestfish-actions.pod:172
4003 #, no-wrap
4004 msgid ""
4005 " add-drive-with-if filename iface\n"
4006 "\n"
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../fish/guestfish-actions.pod:174
4011 msgid ""
4012 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4013 "interface emulation to use at run time."
4014 msgstr ""
4015
4016 #. type: =head2
4017 #: ../fish/guestfish-actions.pod:184
4018 msgid "aug-clear"
4019 msgstr ""
4020
4021 #. type: verbatim
4022 #: ../fish/guestfish-actions.pod:186
4023 #, no-wrap
4024 msgid ""
4025 " aug-clear augpath\n"
4026 "\n"
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4031 msgid ""
4032 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4033 "L<augtool(1)> C<clear> command."
4034 msgstr ""
4035
4036 #. type: =head2
4037 #: ../fish/guestfish-actions.pod:191
4038 msgid "aug-close"
4039 msgstr ""
4040
4041 #. type: verbatim
4042 #: ../fish/guestfish-actions.pod:193
4043 #, no-wrap
4044 msgid ""
4045 " aug-close\n"
4046 "\n"
4047 msgstr ""
4048
4049 #. type: textblock
4050 #: ../fish/guestfish-actions.pod:195
4051 msgid ""
4052 "Close the current Augeas handle and free up any resources used by it.  After "
4053 "calling this, you have to call L</aug-init> again before you can use any "
4054 "other Augeas functions."
4055 msgstr ""
4056
4057 #. type: =head2
4058 #: ../fish/guestfish-actions.pod:200
4059 msgid "aug-defnode"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../fish/guestfish-actions.pod:202
4064 #, no-wrap
4065 msgid ""
4066 " aug-defnode name expr val\n"
4067 "\n"
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4072 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../fish/guestfish-actions.pod:207
4077 msgid ""
4078 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4079 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4080 "containing that single node."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4085 msgid ""
4086 "On success this returns a pair containing the number of nodes in the "
4087 "nodeset, and a boolean flag if a node was created."
4088 msgstr ""
4089
4090 #. type: =head2
4091 #: ../fish/guestfish-actions.pod:215
4092 msgid "aug-defvar"
4093 msgstr ""
4094
4095 #. type: verbatim
4096 #: ../fish/guestfish-actions.pod:217
4097 #, no-wrap
4098 msgid ""
4099 " aug-defvar name expr\n"
4100 "\n"
4101 msgstr ""
4102
4103 #. type: textblock
4104 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4105 msgid ""
4106 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4107 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4112 msgid ""
4113 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4114 "evaluates to something which is not a nodeset."
4115 msgstr ""
4116
4117 #. type: =head2
4118 #: ../fish/guestfish-actions.pod:226
4119 msgid "aug-get"
4120 msgstr ""
4121
4122 #. type: verbatim
4123 #: ../fish/guestfish-actions.pod:228
4124 #, no-wrap
4125 msgid ""
4126 " aug-get augpath\n"
4127 "\n"
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4132 msgid ""
4133 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4134 "node, the C<value> is returned."
4135 msgstr ""
4136
4137 #. type: =head2
4138 #: ../fish/guestfish-actions.pod:233
4139 msgid "aug-init"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../fish/guestfish-actions.pod:235
4144 #, no-wrap
4145 msgid ""
4146 " aug-init root flags\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: textblock
4151 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4152 msgid ""
4153 "Create a new Augeas handle for editing configuration files.  If there was "
4154 "any previous Augeas handle associated with this guestfs session, then it is "
4155 "closed."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../fish/guestfish-actions.pod:241
4160 msgid "You must call this before using any other L</aug-*> commands."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4165 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4170 msgid ""
4171 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4172 "logical I<or> of the following integers:"
4173 msgstr ""
4174
4175 #. type: =item
4176 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4177 msgid "C<AUG_SAVE_BACKUP> = 1"
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4182 msgid "Keep the original file with a C<.augsave> extension."
4183 msgstr ""
4184
4185 #. type: =item
4186 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4187 msgid "C<AUG_SAVE_NEWFILE> = 2"
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4192 msgid ""
4193 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4194 "original.  Overrides C<AUG_SAVE_BACKUP>."
4195 msgstr ""
4196
4197 #. type: =item
4198 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4199 msgid "C<AUG_TYPE_CHECK> = 4"
4200 msgstr ""
4201
4202 #. type: textblock
4203 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4204 msgid "Typecheck lenses."
4205 msgstr ""
4206
4207 #. type: textblock
4208 #: ../fish/guestfish-actions.pod:266
4209 msgid ""
4210 "This option is only useful when debugging Augeas lenses.  Use of this option "
4211 "may require additional memory for the libguestfs appliance.  You may need to "
4212 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4213 msgstr ""
4214
4215 #. type: =item
4216 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4217 msgid "C<AUG_NO_STDINC> = 8"
4218 msgstr ""
4219
4220 #. type: textblock
4221 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4222 msgid "Do not use standard load path for modules."
4223 msgstr ""
4224
4225 #. type: =item
4226 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4227 msgid "C<AUG_SAVE_NOOP> = 16"
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4232 msgid "Make save a no-op, just record what would have been changed."
4233 msgstr ""
4234
4235 #. type: =item
4236 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4237 msgid "C<AUG_NO_LOAD> = 32"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../fish/guestfish-actions.pod:281
4242 msgid "Do not load the tree in L</aug-init>."
4243 msgstr ""
4244
4245 #. type: textblock
4246 #: ../fish/guestfish-actions.pod:285
4247 msgid "To close the handle, you can call L</aug-close>."
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4252 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4253 msgstr ""
4254
4255 #. type: =head2
4256 #: ../fish/guestfish-actions.pod:289
4257 msgid "aug-insert"
4258 msgstr ""
4259
4260 #. type: verbatim
4261 #: ../fish/guestfish-actions.pod:291
4262 #, no-wrap
4263 msgid ""
4264 " aug-insert augpath label true|false\n"
4265 "\n"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4270 msgid ""
4271 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4272 "or after C<path> (depending on the boolean flag C<before>)."
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4277 msgid ""
4278 "C<path> must match exactly one existing node in the tree, and C<label> must "
4279 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4280 msgstr ""
4281
4282 #. type: =head2
4283 #: ../fish/guestfish-actions.pod:301
4284 msgid "aug-load"
4285 msgstr ""
4286
4287 #. type: verbatim
4288 #: ../fish/guestfish-actions.pod:303
4289 #, no-wrap
4290 msgid ""
4291 " aug-load\n"
4292 "\n"
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4297 msgid "Load files into the tree."
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4302 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4303 msgstr ""
4304
4305 #. type: =head2
4306 #: ../fish/guestfish-actions.pod:310
4307 msgid "aug-ls"
4308 msgstr ""
4309
4310 #. type: verbatim
4311 #: ../fish/guestfish-actions.pod:312
4312 #, no-wrap
4313 msgid ""
4314 " aug-ls augpath\n"
4315 "\n"
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../fish/guestfish-actions.pod:314
4320 msgid ""
4321 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4322 "resulting nodes into alphabetical order."
4323 msgstr ""
4324
4325 #. type: =head2
4326 #: ../fish/guestfish-actions.pod:317
4327 msgid "aug-match"
4328 msgstr ""
4329
4330 #. type: verbatim
4331 #: ../fish/guestfish-actions.pod:319
4332 #, no-wrap
4333 msgid ""
4334 " aug-match augpath\n"
4335 "\n"
4336 msgstr ""
4337
4338 #. type: textblock
4339 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4340 msgid ""
4341 "Returns a list of paths which match the path expression C<path>.  The "
4342 "returned paths are sufficiently qualified so that they match exactly one "
4343 "node in the current tree."
4344 msgstr ""
4345
4346 #. type: =head2
4347 #: ../fish/guestfish-actions.pod:325
4348 msgid "aug-mv"
4349 msgstr ""
4350
4351 #. type: verbatim
4352 #: ../fish/guestfish-actions.pod:327
4353 #, no-wrap
4354 msgid ""
4355 " aug-mv src dest\n"
4356 "\n"
4357 msgstr ""
4358
4359 #. type: textblock
4360 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4361 msgid ""
4362 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4363 "C<dest> is overwritten if it exists."
4364 msgstr ""
4365
4366 #. type: =head2
4367 #: ../fish/guestfish-actions.pod:332
4368 msgid "aug-rm"
4369 msgstr ""
4370
4371 #. type: verbatim
4372 #: ../fish/guestfish-actions.pod:334
4373 #, no-wrap
4374 msgid ""
4375 " aug-rm augpath\n"
4376 "\n"
4377 msgstr ""
4378
4379 #. type: textblock
4380 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4381 msgid "Remove C<path> and all of its children."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4386 msgid "On success this returns the number of entries which were removed."
4387 msgstr ""
4388
4389 #. type: =head2
4390 #: ../fish/guestfish-actions.pod:340
4391 msgid "aug-save"
4392 msgstr ""
4393
4394 #. type: verbatim
4395 #: ../fish/guestfish-actions.pod:342
4396 #, no-wrap
4397 msgid ""
4398 " aug-save\n"
4399 "\n"
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4404 msgid "This writes all pending changes to disk."
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../fish/guestfish-actions.pod:346
4409 msgid ""
4410 "The flags which were passed to L</aug-init> affect exactly how files are "
4411 "saved."
4412 msgstr ""
4413
4414 #. type: =head2
4415 #: ../fish/guestfish-actions.pod:349
4416 msgid "aug-set"
4417 msgstr ""
4418
4419 #. type: verbatim
4420 #: ../fish/guestfish-actions.pod:351
4421 #, no-wrap
4422 msgid ""
4423 " aug-set augpath val\n"
4424 "\n"
4425 msgstr ""
4426
4427 #. type: textblock
4428 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4429 msgid "Set the value associated with C<path> to C<val>."
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../fish/guestfish-actions.pod:355
4434 msgid ""
4435 "In the Augeas API, it is possible to clear a node by setting the value to "
4436 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4437 "this call.  Instead you must use the L</aug-clear> call."
4438 msgstr ""
4439
4440 #. type: =head2
4441 #: ../fish/guestfish-actions.pod:360
4442 msgid "available"
4443 msgstr ""
4444
4445 #. type: verbatim
4446 #: ../fish/guestfish-actions.pod:362
4447 #, no-wrap
4448 msgid ""
4449 " available 'groups ...'\n"
4450 "\n"
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4455 msgid ""
4456 "This command is used to check the availability of some groups of "
4457 "functionality in the appliance, which not all builds of the libguestfs "
4458 "appliance will be able to provide."
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../fish/guestfish-actions.pod:368
4463 msgid ""
4464 "The libguestfs groups, and the functions that those groups correspond to, "
4465 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4466 "runtime by calling L</available-all-groups>."
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4471 msgid ""
4472 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4473 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4474 "and Augeas (configuration file editing) functions."
4475 msgstr ""
4476
4477 #. type: textblock
4478 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4479 msgid "The command returns no error if I<all> requested groups are available."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4484 msgid ""
4485 "It fails with an error if one or more of the requested groups is unavailable "
4486 "in the appliance."
4487 msgstr ""
4488
4489 #. type: textblock
4490 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4491 msgid ""
4492 "If an unknown group name is included in the list of groups then an error is "
4493 "always returned."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4498 msgid "I<Notes:>"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../fish/guestfish-actions.pod:392
4503 msgid "You must call L</launch> before calling this function."
4504 msgstr ""
4505
4506 #. type: textblock
4507 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4508 msgid ""
4509 "The reason is because we don't know what groups are supported by the "
4510 "appliance/daemon until it is running and can be queried."
4511 msgstr ""
4512
4513 #. type: textblock
4514 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4515 msgid ""
4516 "If a group of functions is available, this does not necessarily mean that "
4517 "they will work.  You still have to check for errors when calling individual "
4518 "API functions even if they are available."
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4523 msgid ""
4524 "It is usually the job of distro packagers to build complete functionality "
4525 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4526 "with all requirements satisfied, will support everything."
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../fish/guestfish-actions.pod:414
4531 msgid ""
4532 "This call was added in version C<1.0.80>.  In previous versions of "
4533 "libguestfs all you could do would be to speculatively execute a command to "
4534 "find out if the daemon implemented it.  See also L</version>."
4535 msgstr ""
4536
4537 #. type: =head2
4538 #: ../fish/guestfish-actions.pod:421
4539 msgid "available-all-groups"
4540 msgstr ""
4541
4542 #. type: verbatim
4543 #: ../fish/guestfish-actions.pod:423
4544 #, no-wrap
4545 msgid ""
4546 " available-all-groups\n"
4547 "\n"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../fish/guestfish-actions.pod:425
4552 msgid ""
4553 "This command returns a list of all optional groups that this daemon knows "
4554 "about.  Note this returns both supported and unsupported groups.  To find "
4555 "out which ones the daemon can actually support you have to call "
4556 "L</available> on each member of the returned list."
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:431
4561 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4562 msgstr ""
4563
4564 #. type: =head2
4565 #: ../fish/guestfish-actions.pod:433
4566 msgid "base64-in"
4567 msgstr ""
4568
4569 #. type: verbatim
4570 #: ../fish/guestfish-actions.pod:435
4571 #, no-wrap
4572 msgid ""
4573 " base64-in (base64file|-) filename\n"
4574 "\n"
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4579 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867 ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260 ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758 ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
4584 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4585 msgstr ""
4586
4587 #. type: =head2
4588 #: ../fish/guestfish-actions.pod:442
4589 msgid "base64-out"
4590 msgstr ""
4591
4592 #. type: verbatim
4593 #: ../fish/guestfish-actions.pod:444
4594 #, no-wrap
4595 msgid ""
4596 " base64-out filename (base64file|-)\n"
4597 "\n"
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
4602 msgid ""
4603 "This command downloads the contents of C<filename>, writing it out to local "
4604 "file C<base64file> encoded as base64."
4605 msgstr ""
4606
4607 #. type: =head2
4608 #: ../fish/guestfish-actions.pod:451
4609 msgid "blockdev-flushbufs"
4610 msgstr ""
4611
4612 #. type: verbatim
4613 #: ../fish/guestfish-actions.pod:453
4614 #, no-wrap
4615 msgid ""
4616 " blockdev-flushbufs device\n"
4617 "\n"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
4622 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469 ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513 ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532 ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796 ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
4627 msgid "This uses the L<blockdev(8)> command."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../fish/guestfish-actions.pod:460
4632 msgid "blockdev-getbsz"
4633 msgstr ""
4634
4635 #. type: verbatim
4636 #: ../fish/guestfish-actions.pod:462
4637 #, no-wrap
4638 msgid ""
4639 " blockdev-getbsz device\n"
4640 "\n"
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
4645 msgid "This returns the block size of a device."
4646 msgstr ""
4647
4648 #. type: textblock
4649 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
4650 msgid ""
4651 "(Note this is different from both I<size in blocks> and I<filesystem block "
4652 "size>)."
4653 msgstr ""
4654
4655 #. type: =head2
4656 #: ../fish/guestfish-actions.pod:471
4657 msgid "blockdev-getro"
4658 msgstr ""
4659
4660 #. type: verbatim
4661 #: ../fish/guestfish-actions.pod:473
4662 #, no-wrap
4663 msgid ""
4664 " blockdev-getro device\n"
4665 "\n"
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
4670 msgid ""
4671 "Returns a boolean indicating if the block device is read-only (true if "
4672 "read-only, false if not)."
4673 msgstr ""
4674
4675 #. type: =head2
4676 #: ../fish/guestfish-actions.pod:480
4677 msgid "blockdev-getsize64"
4678 msgstr ""
4679
4680 #. type: verbatim
4681 #: ../fish/guestfish-actions.pod:482
4682 #, no-wrap
4683 msgid ""
4684 " blockdev-getsize64 device\n"
4685 "\n"
4686 msgstr ""
4687
4688 #. type: textblock
4689 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
4690 msgid "This returns the size of the device in bytes."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:486
4695 msgid "See also L</blockdev-getsz>."
4696 msgstr ""
4697
4698 #. type: =head2
4699 #: ../fish/guestfish-actions.pod:490
4700 msgid "blockdev-getss"
4701 msgstr ""
4702
4703 #. type: verbatim
4704 #: ../fish/guestfish-actions.pod:492
4705 #, no-wrap
4706 msgid ""
4707 " blockdev-getss device\n"
4708 "\n"
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
4713 msgid ""
4714 "This returns the size of sectors on a block device.  Usually 512, but can be "
4715 "larger for modern devices."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:497
4720 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
4721 msgstr ""
4722
4723 #. type: =head2
4724 #: ../fish/guestfish-actions.pod:502
4725 msgid "blockdev-getsz"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../fish/guestfish-actions.pod:504
4730 #, no-wrap
4731 msgid ""
4732 " blockdev-getsz device\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
4738 msgid ""
4739 "This returns the size of the device in units of 512-byte sectors (even if "
4740 "the sectorsize isn't 512 bytes ... weird)."
4741 msgstr ""
4742
4743 #. type: textblock
4744 #: ../fish/guestfish-actions.pod:509
4745 msgid ""
4746 "See also L</blockdev-getss> for the real sector size of the device, and "
4747 "L</blockdev-getsize64> for the more useful I<size in bytes>."
4748 msgstr ""
4749
4750 #. type: =head2
4751 #: ../fish/guestfish-actions.pod:515
4752 msgid "blockdev-rereadpt"
4753 msgstr ""
4754
4755 #. type: verbatim
4756 #: ../fish/guestfish-actions.pod:517
4757 #, no-wrap
4758 msgid ""
4759 " blockdev-rereadpt device\n"
4760 "\n"
4761 msgstr ""
4762
4763 #. type: textblock
4764 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
4765 msgid "Reread the partition table on C<device>."
4766 msgstr ""
4767
4768 #. type: =head2
4769 #: ../fish/guestfish-actions.pod:523
4770 msgid "blockdev-setbsz"
4771 msgstr ""
4772
4773 #. type: verbatim
4774 #: ../fish/guestfish-actions.pod:525
4775 #, no-wrap
4776 msgid ""
4777 " blockdev-setbsz device blocksize\n"
4778 "\n"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
4783 msgid "This sets the block size of a device."
4784 msgstr ""
4785
4786 #. type: =head2
4787 #: ../fish/guestfish-actions.pod:534
4788 msgid "blockdev-setro"
4789 msgstr ""
4790
4791 #. type: verbatim
4792 #: ../fish/guestfish-actions.pod:536
4793 #, no-wrap
4794 msgid ""
4795 " blockdev-setro device\n"
4796 "\n"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
4801 msgid "Sets the block device named C<device> to read-only."
4802 msgstr ""
4803
4804 #. type: =head2
4805 #: ../fish/guestfish-actions.pod:542
4806 msgid "blockdev-setrw"
4807 msgstr ""
4808
4809 #. type: verbatim
4810 #: ../fish/guestfish-actions.pod:544
4811 #, no-wrap
4812 msgid ""
4813 " blockdev-setrw device\n"
4814 "\n"
4815 msgstr ""
4816
4817 #. type: textblock
4818 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
4819 msgid "Sets the block device named C<device> to read-write."
4820 msgstr ""
4821
4822 #. type: =head2
4823 #: ../fish/guestfish-actions.pod:550
4824 msgid "btrfs-filesystem-resize"
4825 msgstr ""
4826
4827 #. type: verbatim
4828 #: ../fish/guestfish-actions.pod:552
4829 #, no-wrap
4830 msgid ""
4831 " btrfs-filesystem-resize mountpoint [size:..]\n"
4832 "\n"
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
4837 msgid "This command resizes a btrfs filesystem."
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
4842 msgid ""
4843 "Note that unlike other resize calls, the filesystem has to be mounted and "
4844 "the parameter is the mountpoint not the device (this is a requirement of "
4845 "btrfs itself)."
4846 msgstr ""
4847
4848 #. type: textblock
4849 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
4850 msgid "The optional parameters are:"
4851 msgstr ""
4852
4853 #. type: =item
4854 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
4855 msgid "C<size>"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
4860 msgid ""
4861 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
4862 "resized to the maximum size."
4863 msgstr ""
4864
4865 #. type: textblock
4866 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
4867 msgid "See also L<btrfs(8)>."
4868 msgstr ""
4869
4870 #. type: =head2
4871 #: ../fish/guestfish-actions.pod:575
4872 msgid "case-sensitive-path"
4873 msgstr ""
4874
4875 #. type: verbatim
4876 #: ../fish/guestfish-actions.pod:577
4877 #, no-wrap
4878 msgid ""
4879 " case-sensitive-path path\n"
4880 "\n"
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
4885 msgid ""
4886 "This can be used to resolve case insensitive paths on a filesystem which is "
4887 "case sensitive.  The use case is to resolve paths which you have read from "
4888 "Windows configuration files or the Windows Registry, to the true path."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
4893 msgid ""
4894 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4895 "(and probably others), which is that although the underlying filesystem is "
4896 "case-insensitive, the driver exports the filesystem to Linux as "
4897 "case-sensitive."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
4902 msgid ""
4903 "One consequence of this is that special directories such as C<c:\\windows> "
4904 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4905 "precise details of how they were created.  In Windows itself this would not "
4906 "be a problem."
4907 msgstr ""
4908
4909 #. type: textblock
4910 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
4911 msgid ""
4912 "Bug or feature? You decide: "
4913 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4914 msgstr ""
4915
4916 #. type: textblock
4917 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
4918 msgid ""
4919 "This function resolves the true case of each element in the path and returns "
4920 "the case-sensitive path."
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../fish/guestfish-actions.pod:601
4925 msgid ""
4926 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
4927 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4928 "how the directories were originally created under Windows)."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
4933 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:609
4938 msgid "See also L</realpath>."
4939 msgstr ""
4940
4941 #. type: =head2
4942 #: ../fish/guestfish-actions.pod:611
4943 msgid "cat"
4944 msgstr ""
4945
4946 #. type: verbatim
4947 #: ../fish/guestfish-actions.pod:613
4948 #, no-wrap
4949 msgid ""
4950 " cat path\n"
4951 "\n"
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
4956 msgid "Return the contents of the file named C<path>."
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../fish/guestfish-actions.pod:617
4961 msgid ""
4962 "Note that this function cannot correctly handle binary files (specifically, "
4963 "files containing C<\\0> character which is treated as end of string).  For "
4964 "those you need to use the L</read-file> or L</download> functions which have "
4965 "a more complex interface."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022 ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541 ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584 ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613 ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727 ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820 ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504 ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635 ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056 ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086 ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113 ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180 ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443 ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565 ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830 ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320 ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433 ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978 ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758 ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871 ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
4970 msgid ""
4971 "Because of the message protocol, there is a transfer limit of somewhere "
4972 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4973 msgstr ""
4974
4975 #. type: =head2
4976 #: ../fish/guestfish-actions.pod:625
4977 msgid "checksum"
4978 msgstr ""
4979
4980 #. type: verbatim
4981 #: ../fish/guestfish-actions.pod:627
4982 #, no-wrap
4983 msgid ""
4984 " checksum csumtype path\n"
4985 "\n"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
4990 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
4995 msgid ""
4996 "The type of checksum to compute is given by the C<csumtype> parameter which "
4997 "must have one of the following values:"
4998 msgstr ""
4999
5000 #. type: =item
5001 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5002 msgid "C<crc>"
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5007 msgid ""
5008 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5009 "C<cksum> command."
5010 msgstr ""
5011
5012 #. type: =item
5013 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5014 msgid "C<md5>"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5019 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5020 msgstr ""
5021
5022 #. type: =item
5023 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5024 msgid "C<sha1>"
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5029 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5030 msgstr ""
5031
5032 #. type: =item
5033 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5034 msgid "C<sha224>"
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5039 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5040 msgstr ""
5041
5042 #. type: =item
5043 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5044 msgid "C<sha256>"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5049 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5050 msgstr ""
5051
5052 #. type: =item
5053 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5054 msgid "C<sha384>"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5059 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5060 msgstr ""
5061
5062 #. type: =item
5063 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5064 msgid "C<sha512>"
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5069 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5074 msgid "The checksum is returned as a printable string."
5075 msgstr ""
5076
5077 #. type: textblock
5078 #: ../fish/guestfish-actions.pod:670
5079 msgid "To get the checksum for a device, use L</checksum-device>."
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../fish/guestfish-actions.pod:672
5084 msgid "To get the checksums for many files, use L</checksums-out>."
5085 msgstr ""
5086
5087 #. type: =head2
5088 #: ../fish/guestfish-actions.pod:674
5089 msgid "checksum-device"
5090 msgstr ""
5091
5092 #. type: verbatim
5093 #: ../fish/guestfish-actions.pod:676
5094 #, no-wrap
5095 msgid ""
5096 " checksum-device csumtype device\n"
5097 "\n"
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../fish/guestfish-actions.pod:678
5102 msgid ""
5103 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5104 "device named C<device>.  For the types of checksums supported see the "
5105 "L</checksum> command."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:682
5110 msgid "checksums-out"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:684
5115 #, no-wrap
5116 msgid ""
5117 " checksums-out csumtype directory (sumsfile|-)\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5123 msgid ""
5124 "This command computes the checksums of all regular files in C<directory> and "
5125 "then emits a list of those checksums to the local output file C<sumsfile>."
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5130 msgid ""
5131 "This can be used for verifying the integrity of a virtual machine.  However "
5132 "to be properly secure you should pay attention to the output of the checksum "
5133 "command (it uses the ones from GNU coreutils).  In particular when the "
5134 "filename is not printable, coreutils uses a special backslash syntax.  For "
5135 "more information, see the GNU coreutils info file."
5136 msgstr ""
5137
5138 #. type: =head2
5139 #: ../fish/guestfish-actions.pod:700
5140 msgid "chmod"
5141 msgstr ""
5142
5143 #. type: verbatim
5144 #: ../fish/guestfish-actions.pod:702
5145 #, no-wrap
5146 msgid ""
5147 " chmod mode path\n"
5148 "\n"
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5153 msgid ""
5154 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5155 "supported."
5156 msgstr ""
5157
5158 #. type: textblock
5159 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5160 msgid ""
5161 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5162 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5163 "C<700>."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065 ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214 ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
5168 msgid "The mode actually set is affected by the umask."
5169 msgstr ""
5170
5171 #. type: =head2
5172 #: ../fish/guestfish-actions.pod:713
5173 msgid "chown"
5174 msgstr ""
5175
5176 #. type: verbatim
5177 #: ../fish/guestfish-actions.pod:715
5178 #, no-wrap
5179 msgid ""
5180 " chown owner group path\n"
5181 "\n"
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5186 msgid "Change the file owner to C<owner> and group to C<group>."
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
5191 msgid ""
5192 "Only numeric uid and gid are supported.  If you want to use names, you will "
5193 "need to locate and parse the password file yourself (Augeas support makes "
5194 "this relatively easy)."
5195 msgstr ""
5196
5197 #. type: =head2
5198 #: ../fish/guestfish-actions.pod:723
5199 msgid "command"
5200 msgstr ""
5201
5202 #. type: verbatim
5203 #: ../fish/guestfish-actions.pod:725
5204 #, no-wrap
5205 msgid ""
5206 " command 'arguments ...'\n"
5207 "\n"
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5212 msgid ""
5213 "This call runs a command from the guest filesystem.  The filesystem must be "
5214 "mounted, and must contain a compatible operating system (ie. something "
5215 "Linux, with the same or compatible processor architecture)."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:732
5220 msgid ""
5221 "The single parameter is an argv-style list of arguments.  The first element "
5222 "is the name of the program to run.  Subsequent elements are parameters.  The "
5223 "list must be non-empty (ie. must contain a program name).  Note that the "
5224 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5229 msgid "The return value is anything printed to I<stdout> by the command."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5234 msgid ""
5235 "If the command returns a non-zero exit status, then this function returns an "
5236 "error message.  The error message string is the content of I<stderr> from "
5237 "the command."
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5242 msgid ""
5243 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5244 "C</bin>.  If you require a program from another location, you should provide "
5245 "the full path in the first parameter."
5246 msgstr ""
5247
5248 #. type: textblock
5249 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5250 msgid ""
5251 "Shared libraries and data files required by the program must be available on "
5252 "filesystems which are mounted in the correct places.  It is the caller's "
5253 "responsibility to ensure all filesystems that are needed are mounted at the "
5254 "right locations."
5255 msgstr ""
5256
5257 #. type: =head2
5258 #: ../fish/guestfish-actions.pod:760
5259 msgid "command-lines"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../fish/guestfish-actions.pod:762
5264 #, no-wrap
5265 msgid ""
5266 " command-lines 'arguments ...'\n"
5267 "\n"
5268 msgstr ""
5269
5270 #. type: textblock
5271 #: ../fish/guestfish-actions.pod:764
5272 msgid "This is the same as L</command>, but splits the result into a list of lines."
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../fish/guestfish-actions.pod:767
5277 msgid "See also: L</sh-lines>"
5278 msgstr ""
5279
5280 #. type: =head2
5281 #: ../fish/guestfish-actions.pod:772
5282 msgid "config"
5283 msgstr ""
5284
5285 #. type: verbatim
5286 #: ../fish/guestfish-actions.pod:774
5287 #, no-wrap
5288 msgid ""
5289 " config qemuparam qemuvalue\n"
5290 "\n"
5291 msgstr ""
5292
5293 #. type: textblock
5294 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5295 msgid ""
5296 "This can be used to add arbitrary qemu command line parameters of the form "
5297 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5298 "setting some parameters which would interfere with parameters that we use."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5303 msgid "The first character of C<param> string must be a C<-> (dash)."
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5308 msgid "C<value> can be NULL."
5309 msgstr ""
5310
5311 #. type: =head2
5312 #: ../fish/guestfish-actions.pod:785
5313 msgid "copy-size"
5314 msgstr ""
5315
5316 #. type: verbatim
5317 #: ../fish/guestfish-actions.pod:787
5318 #, no-wrap
5319 msgid ""
5320 " copy-size src dest size\n"
5321 "\n"
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5326 msgid ""
5327 "This command copies exactly C<size> bytes from one source device or file "
5328 "C<src> to another destination device or file C<dest>."
5329 msgstr ""
5330
5331 #. type: textblock
5332 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5333 msgid ""
5334 "Note this will fail if the source is too short or if the destination is not "
5335 "large enough."
5336 msgstr ""
5337
5338 #. type: =head2
5339 #: ../fish/guestfish-actions.pod:795
5340 msgid "cp"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../fish/guestfish-actions.pod:797
5345 #, no-wrap
5346 msgid ""
5347 " cp src dest\n"
5348 "\n"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5353 msgid ""
5354 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5355 "destination filename or destination directory."
5356 msgstr ""
5357
5358 #. type: =head2
5359 #: ../fish/guestfish-actions.pod:802
5360 msgid "cp-a"
5361 msgstr ""
5362
5363 #. type: verbatim
5364 #: ../fish/guestfish-actions.pod:804
5365 #, no-wrap
5366 msgid ""
5367 " cp-a src dest\n"
5368 "\n"
5369 msgstr ""
5370
5371 #. type: textblock
5372 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5373 msgid ""
5374 "This copies a file or directory from C<src> to C<dest> recursively using the "
5375 "C<cp -a> command."
5376 msgstr ""
5377
5378 #. type: =head2
5379 #: ../fish/guestfish-actions.pod:809
5380 msgid "dd"
5381 msgstr ""
5382
5383 #. type: verbatim
5384 #: ../fish/guestfish-actions.pod:811
5385 #, no-wrap
5386 msgid ""
5387 " dd src dest\n"
5388 "\n"
5389 msgstr ""
5390
5391 #. type: textblock
5392 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5393 msgid ""
5394 "This command copies from one source device or file C<src> to another "
5395 "destination device or file C<dest>.  Normally you would use this to copy to "
5396 "or from a device or partition, for example to duplicate a filesystem."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:818
5401 msgid ""
5402 "If the destination is a device, it must be as large or larger than the "
5403 "source file or device, otherwise the copy will fail.  This command cannot do "
5404 "partial copies (see L</copy-size>)."
5405 msgstr ""
5406
5407 #. type: =head2
5408 #: ../fish/guestfish-actions.pod:822
5409 msgid "df"
5410 msgstr ""
5411
5412 #. type: verbatim
5413 #: ../fish/guestfish-actions.pod:824
5414 #, no-wrap
5415 msgid ""
5416 " df\n"
5417 "\n"
5418 msgstr ""
5419
5420 #. type: textblock
5421 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5422 msgid "This command runs the C<df> command to report disk space used."
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5427 msgid ""
5428 "This command is mostly useful for interactive sessions.  It is I<not> "
5429 "intended that you try to parse the output string.  Use L</statvfs> from "
5430 "programs."
5431 msgstr ""
5432
5433 #. type: =head2
5434 #: ../fish/guestfish-actions.pod:832
5435 msgid "df-h"
5436 msgstr ""
5437
5438 #. type: verbatim
5439 #: ../fish/guestfish-actions.pod:834
5440 #, no-wrap
5441 msgid ""
5442 " df-h\n"
5443 "\n"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5448 msgid ""
5449 "This command runs the C<df -h> command to report disk space used in "
5450 "human-readable format."
5451 msgstr ""
5452
5453 #. type: =head2
5454 #: ../fish/guestfish-actions.pod:843
5455 msgid "dmesg"
5456 msgstr ""
5457
5458 #. type: verbatim
5459 #: ../fish/guestfish-actions.pod:845
5460 #, no-wrap
5461 msgid ""
5462 " dmesg\n"
5463 "\n"
5464 msgstr ""
5465
5466 #. type: textblock
5467 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5468 msgid ""
5469 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5470 "This is sometimes useful for extended debugging of problems."
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:851
5475 msgid ""
5476 "Another way to get the same information is to enable verbose messages with "
5477 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5478 "before running the program."
5479 msgstr ""
5480
5481 #. type: =head2
5482 #: ../fish/guestfish-actions.pod:856
5483 msgid "download"
5484 msgstr ""
5485
5486 #. type: verbatim
5487 #: ../fish/guestfish-actions.pod:858
5488 #, no-wrap
5489 msgid ""
5490 " download remotefilename (filename|-)\n"
5491 "\n"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873 ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5496 msgid ""
5497 "Download file C<remotefilename> and save it as C<filename> on the local "
5498 "machine."
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
5503 msgid "C<filename> can also be a named pipe."
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../fish/guestfish-actions.pod:865
5508 msgid "See also L</upload>, L</cat>."
5509 msgstr ""
5510
5511 #. type: =head2
5512 #: ../fish/guestfish-actions.pod:869
5513 msgid "download-offset"
5514 msgstr ""
5515
5516 #. type: verbatim
5517 #: ../fish/guestfish-actions.pod:871
5518 #, no-wrap
5519 msgid ""
5520 " download-offset remotefilename (filename|-) offset size\n"
5521 "\n"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
5526 msgid ""
5527 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5528 "region must be within the file or device)."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../fish/guestfish-actions.pod:879
5533 msgid ""
5534 "Note that there is no limit on the amount of data that can be downloaded "
5535 "with this call, unlike with L</pread>, and this call always reads the full "
5536 "amount unless an error occurs."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:884
5541 msgid "See also L</download>, L</pread>."
5542 msgstr ""
5543
5544 #. type: =head2
5545 #: ../fish/guestfish-actions.pod:888
5546 msgid "drop-caches"
5547 msgstr ""
5548
5549 #. type: verbatim
5550 #: ../fish/guestfish-actions.pod:890
5551 #, no-wrap
5552 msgid ""
5553 " drop-caches whattodrop\n"
5554 "\n"
5555 msgstr ""
5556
5557 #. type: textblock
5558 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
5559 msgid ""
5560 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5561 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5562 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
5567 msgid "Setting C<whattodrop> to 3 should drop everything."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
5572 msgid ""
5573 "This automatically calls L<sync(2)> before the operation, so that the "
5574 "maximum guest memory is freed."
5575 msgstr ""
5576
5577 #. type: =head2
5578 #: ../fish/guestfish-actions.pod:902
5579 msgid "du"
5580 msgstr ""
5581
5582 #. type: verbatim
5583 #: ../fish/guestfish-actions.pod:904
5584 #, no-wrap
5585 msgid ""
5586 " du path\n"
5587 "\n"
5588 msgstr ""
5589
5590 #. type: textblock
5591 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
5592 msgid ""
5593 "This command runs the C<du -s> command to estimate file space usage for "
5594 "C<path>."
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
5599 msgid ""
5600 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5601 "estimate includes the contents of the directory and all subdirectories "
5602 "(recursively)."
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
5607 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5608 msgstr ""
5609
5610 #. type: =head2
5611 #: ../fish/guestfish-actions.pod:916
5612 msgid "e2fsck-f"
5613 msgstr ""
5614
5615 #. type: verbatim
5616 #: ../fish/guestfish-actions.pod:918
5617 #, no-wrap
5618 msgid ""
5619 " e2fsck-f device\n"
5620 "\n"
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
5625 msgid ""
5626 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5627 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5628 "clean (I<-f>)."
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../fish/guestfish-actions.pod:924
5633 msgid ""
5634 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5635 "should use L</fsck>."
5636 msgstr ""
5637
5638 #. type: =head2
5639 #: ../fish/guestfish-actions.pod:927
5640 msgid "echo-daemon"
5641 msgstr ""
5642
5643 #. type: verbatim
5644 #: ../fish/guestfish-actions.pod:929
5645 #, no-wrap
5646 msgid ""
5647 " echo-daemon 'words ...'\n"
5648 "\n"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
5653 msgid ""
5654 "This command concatenates the list of C<words> passed with single spaces "
5655 "between them and returns the resulting string."
5656 msgstr ""
5657
5658 #. type: textblock
5659 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
5660 msgid "You can use this command to test the connection through to the daemon."
5661 msgstr ""
5662
5663 #. type: textblock
5664 #: ../fish/guestfish-actions.pod:936
5665 msgid "See also L</ping-daemon>."
5666 msgstr ""
5667
5668 #. type: =head2
5669 #: ../fish/guestfish-actions.pod:938
5670 msgid "egrep"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../fish/guestfish-actions.pod:940
5675 #, no-wrap
5676 msgid ""
5677 " egrep regex path\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
5683 msgid "This calls the external C<egrep> program and returns the matching lines."
5684 msgstr ""
5685
5686 #. type: =head2
5687 #: ../fish/guestfish-actions.pod:948
5688 msgid "egrepi"
5689 msgstr ""
5690
5691 #. type: verbatim
5692 #: ../fish/guestfish-actions.pod:950
5693 #, no-wrap
5694 msgid ""
5695 " egrepi regex path\n"
5696 "\n"
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
5701 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5702 msgstr ""
5703
5704 #. type: =head2
5705 #: ../fish/guestfish-actions.pod:958
5706 msgid "equal"
5707 msgstr ""
5708
5709 #. type: verbatim
5710 #: ../fish/guestfish-actions.pod:960
5711 #, no-wrap
5712 msgid ""
5713 " equal file1 file2\n"
5714 "\n"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
5719 msgid ""
5720 "This compares the two files C<file1> and C<file2> and returns true if their "
5721 "content is exactly equal, or false otherwise."
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
5726 msgid "The external L<cmp(1)> program is used for the comparison."
5727 msgstr ""
5728
5729 #. type: =head2
5730 #: ../fish/guestfish-actions.pod:967
5731 msgid "exists"
5732 msgstr ""
5733
5734 #. type: verbatim
5735 #: ../fish/guestfish-actions.pod:969
5736 #, no-wrap
5737 msgid ""
5738 " exists path\n"
5739 "\n"
5740 msgstr ""
5741
5742 #. type: textblock
5743 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
5744 msgid ""
5745 "This returns C<true> if and only if there is a file, directory (or anything) "
5746 "with the given C<path> name."
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../fish/guestfish-actions.pod:974
5751 msgid "See also L</is-file>, L</is-dir>, L</stat>."
5752 msgstr ""
5753
5754 #. type: =head2
5755 #: ../fish/guestfish-actions.pod:976
5756 msgid "fallocate"
5757 msgstr ""
5758
5759 #. type: verbatim
5760 #: ../fish/guestfish-actions.pod:978
5761 #, no-wrap
5762 msgid ""
5763 " fallocate path len\n"
5764 "\n"
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999 ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
5769 msgid ""
5770 "This command preallocates a file (containing zero bytes) named C<path> of "
5771 "size C<len> bytes.  If the file exists already, it is overwritten."
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
5776 msgid ""
5777 "Do not confuse this with the guestfish-specific C<alloc> command which "
5778 "allocates a file in the host and attaches it as a device."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../fish/guestfish-actions.pod:988
5783 msgid ""
5784 "This function is deprecated.  In new code, use the L</fallocate64> call "
5785 "instead."
5786 msgstr ""
5787
5788 #. type: =head2
5789 #: ../fish/guestfish-actions.pod:995
5790 msgid "fallocate64"
5791 msgstr ""
5792
5793 #. type: verbatim
5794 #: ../fish/guestfish-actions.pod:997
5795 #, no-wrap
5796 msgid ""
5797 " fallocate64 path len\n"
5798 "\n"
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../fish/guestfish-actions.pod:1003
5803 msgid ""
5804 "Note that this call allocates disk blocks for the file.  To create a sparse "
5805 "file use L</truncate-size> instead."
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../fish/guestfish-actions.pod:1006
5810 msgid ""
5811 "The deprecated call L</fallocate> does the same, but owing to an oversight "
5812 "it only allowed 30 bit lengths to be specified, effectively limiting the "
5813 "maximum size of files created through that call to 1GB."
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
5818 msgid ""
5819 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5820 "commands which create a file in the host and attach it as a device."
5821 msgstr ""
5822
5823 #. type: =head2
5824 #: ../fish/guestfish-actions.pod:1015
5825 msgid "fgrep"
5826 msgstr ""
5827
5828 #. type: verbatim
5829 #: ../fish/guestfish-actions.pod:1017
5830 #, no-wrap
5831 msgid ""
5832 " fgrep pattern path\n"
5833 "\n"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
5838 msgid "This calls the external C<fgrep> program and returns the matching lines."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:1025
5843 msgid "fgrepi"
5844 msgstr ""
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:1027
5848 #, no-wrap
5849 msgid ""
5850 " fgrepi pattern path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
5856 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../fish/guestfish-actions.pod:1035
5861 msgid "file"
5862 msgstr ""
5863
5864 #. type: verbatim
5865 #: ../fish/guestfish-actions.pod:1037
5866 #, no-wrap
5867 msgid ""
5868 " file path\n"
5869 "\n"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
5874 msgid ""
5875 "This call uses the standard L<file(1)> command to determine the type or "
5876 "contents of the file."
5877 msgstr ""
5878
5879 #. type: textblock
5880 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
5881 msgid ""
5882 "This call will also transparently look inside various types of compressed "
5883 "file."
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
5888 msgid ""
5889 "The exact command which runs is C<file -zb path>.  Note in particular that "
5890 "the filename is not prepended to the output (the I<-b> option)."
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
5895 msgid ""
5896 "The output depends on the output of the underlying L<file(1)> command and it "
5897 "can change in future in ways beyond our control.  In other words, the output "
5898 "is not guaranteed by the ABI."
5899 msgstr ""
5900
5901 #. type: textblock
5902 #: ../fish/guestfish-actions.pod:1053
5903 msgid ""
5904 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
5905 "(etc), L</is-zero>."
5906 msgstr ""
5907
5908 #. type: =head2
5909 #: ../fish/guestfish-actions.pod:1056
5910 msgid "file-architecture"
5911 msgstr ""
5912
5913 #. type: verbatim
5914 #: ../fish/guestfish-actions.pod:1058
5915 #, no-wrap
5916 msgid ""
5917 " file-architecture filename\n"
5918 "\n"
5919 msgstr ""
5920
5921 #. type: textblock
5922 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
5923 msgid ""
5924 "This detects the architecture of the binary C<filename>, and returns it if "
5925 "known."
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
5930 msgid "Currently defined architectures are:"
5931 msgstr ""
5932
5933 #. type: =item
5934 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
5935 msgid "\"i386\""
5936 msgstr ""
5937
5938 #. type: textblock
5939 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
5940 msgid ""
5941 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5942 "irrespective of the precise processor requirements of the binary."
5943 msgstr ""
5944
5945 #. type: =item
5946 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
5947 msgid "\"x86_64\""
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
5952 msgid "64 bit x86-64."
5953 msgstr ""
5954
5955 #. type: =item
5956 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
5957 msgid "\"sparc\""
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
5962 msgid "32 bit SPARC."
5963 msgstr ""
5964
5965 #. type: =item
5966 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
5967 msgid "\"sparc64\""
5968 msgstr ""
5969
5970 #. type: textblock
5971 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
5972 msgid "64 bit SPARC V9 and above."
5973 msgstr ""
5974
5975 #. type: =item
5976 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
5977 msgid "\"ia64\""
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
5982 msgid "Intel Itanium."
5983 msgstr ""
5984
5985 #. type: =item
5986 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
5987 msgid "\"ppc\""
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
5992 msgid "32 bit Power PC."
5993 msgstr ""
5994
5995 #. type: =item
5996 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
5997 msgid "\"ppc64\""
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6002 msgid "64 bit Power PC."
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6007 msgid "Libguestfs may return other architecture strings in future."
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6012 msgid "The function works on at least the following types of files:"
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6017 msgid "many types of Un*x and Linux binary"
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6022 msgid "many types of Un*x and Linux shared library"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6027 msgid "Windows Win32 and Win64 binaries"
6028 msgstr ""
6029
6030 #. type: textblock
6031 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6032 msgid "Windows Win32 and Win64 DLLs"
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6037 msgid "Win32 binaries and DLLs return C<i386>."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6042 msgid "Win64 binaries and DLLs return C<x86_64>."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6047 msgid "Linux kernel modules"
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6052 msgid "Linux new-style initrd images"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6057 msgid "some non-x86 Linux vmlinuz kernels"
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6062 msgid "What it can't do currently:"
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6067 msgid "static libraries (libfoo.a)"
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6072 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6073 msgstr ""
6074
6075 #. type: textblock
6076 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6077 msgid "x86 Linux vmlinuz kernels"
6078 msgstr ""
6079
6080 #. type: textblock
6081 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6082 msgid ""
6083 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6084 "compressed code, and are horribly hard to unpack.  If you want to find the "
6085 "architecture of a kernel, use the architecture of the associated initrd or "
6086 "kernel module(s) instead."
6087 msgstr ""
6088
6089 #. type: =head2
6090 #: ../fish/guestfish-actions.pod:1161
6091 msgid "filesize"
6092 msgstr ""
6093
6094 #. type: verbatim
6095 #: ../fish/guestfish-actions.pod:1163
6096 #, no-wrap
6097 msgid ""
6098 " filesize file\n"
6099 "\n"
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6104 msgid "This command returns the size of C<file> in bytes."
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:1167
6109 msgid ""
6110 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6111 "L</is-file> etc.  To get the size of block devices, use "
6112 "L</blockdev-getsize64>."
6113 msgstr ""
6114
6115 #. type: =head2
6116 #: ../fish/guestfish-actions.pod:1171
6117 msgid "fill"
6118 msgstr ""
6119
6120 #. type: verbatim
6121 #: ../fish/guestfish-actions.pod:1173
6122 #, no-wrap
6123 msgid ""
6124 " fill c len path\n"
6125 "\n"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6130 msgid ""
6131 "This command creates a new file called C<path>.  The initial content of the "
6132 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6133 "C<[0..255]>."
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:1179
6138 msgid ""
6139 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6140 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6141 "L</fill-pattern>."
6142 msgstr ""
6143
6144 #. type: =head2
6145 #: ../fish/guestfish-actions.pod:1184
6146 msgid "fill-pattern"
6147 msgstr ""
6148
6149 #. type: verbatim
6150 #: ../fish/guestfish-actions.pod:1186
6151 #, no-wrap
6152 msgid ""
6153 " fill-pattern pattern len path\n"
6154 "\n"
6155 msgstr ""
6156
6157 #. type: textblock
6158 #: ../fish/guestfish-actions.pod:1188
6159 msgid ""
6160 "This function is like L</fill> except that it creates a new file of length "
6161 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6162 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6163 "bytes."
6164 msgstr ""
6165
6166 #. type: =head2
6167 #: ../fish/guestfish-actions.pod:1193
6168 msgid "find"
6169 msgstr ""
6170
6171 #. type: verbatim
6172 #: ../fish/guestfish-actions.pod:1195
6173 #, no-wrap
6174 msgid ""
6175 " find directory\n"
6176 "\n"
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6181 msgid ""
6182 "This command lists out all files and directories, recursively, starting at "
6183 "C<directory>.  It is essentially equivalent to running the shell command "
6184 "C<find directory -print> but some post-processing happens on the output, "
6185 "described below."
6186 msgstr ""
6187
6188 #. type: textblock
6189 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6190 msgid ""
6191 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6192 "structure was:"
6193 msgstr ""
6194
6195 #. type: verbatim
6196 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6197 #, no-wrap
6198 msgid ""
6199 " /tmp/a\n"
6200 " /tmp/b\n"
6201 " /tmp/c/d\n"
6202 "\n"
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:1209
6207 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6208 msgstr ""
6209
6210 #. type: verbatim
6211 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6212 #, no-wrap
6213 msgid ""
6214 " a\n"
6215 " b\n"
6216 " c\n"
6217 " c/d\n"
6218 "\n"
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6223 msgid "If C<directory> is not a directory, then this command returns an error."
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6228 msgid "The returned list is sorted."
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:1222
6233 msgid "See also L</find0>."
6234 msgstr ""
6235
6236 #. type: =head2
6237 #: ../fish/guestfish-actions.pod:1227
6238 msgid "find0"
6239 msgstr ""
6240
6241 #. type: verbatim
6242 #: ../fish/guestfish-actions.pod:1229
6243 #, no-wrap
6244 msgid ""
6245 " find0 directory (files|-)\n"
6246 "\n"
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6251 msgid ""
6252 "This command lists out all files and directories, recursively, starting at "
6253 "C<directory>, placing the resulting list in the external file called "
6254 "C<files>."
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:1235
6259 msgid "This command works the same way as L</find> with the following exceptions:"
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6264 msgid "The resulting list is written to an external file."
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6269 msgid ""
6270 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6271 "L<find(1)> option I<-print0>."
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6276 msgid "This command is not limited in the number of names that it can return."
6277 msgstr ""
6278
6279 #. type: textblock
6280 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6281 msgid "The result list is not sorted."
6282 msgstr ""
6283
6284 #. type: =head2
6285 #: ../fish/guestfish-actions.pod:1262
6286 msgid "findfs-label"
6287 msgstr ""
6288
6289 #. type: verbatim
6290 #: ../fish/guestfish-actions.pod:1264
6291 #, no-wrap
6292 msgid ""
6293 " findfs-label label\n"
6294 "\n"
6295 msgstr ""
6296
6297 #. type: textblock
6298 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6299 msgid ""
6300 "This command searches the filesystems and returns the one which has the "
6301 "given label.  An error is returned if no such filesystem can be found."
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:1270
6306 msgid "To find the label of a filesystem, use L</vfs-label>."
6307 msgstr ""
6308
6309 #. type: =head2
6310 #: ../fish/guestfish-actions.pod:1272
6311 msgid "findfs-uuid"
6312 msgstr ""
6313
6314 #. type: verbatim
6315 #: ../fish/guestfish-actions.pod:1274
6316 #, no-wrap
6317 msgid ""
6318 " findfs-uuid uuid\n"
6319 "\n"
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6324 msgid ""
6325 "This command searches the filesystems and returns the one which has the "
6326 "given UUID.  An error is returned if no such filesystem can be found."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:1280
6331 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6332 msgstr ""
6333
6334 #. type: =head2
6335 #: ../fish/guestfish-actions.pod:1282
6336 msgid "fsck"
6337 msgstr ""
6338
6339 #. type: verbatim
6340 #: ../fish/guestfish-actions.pod:1284
6341 #, no-wrap
6342 msgid ""
6343 " fsck fstype device\n"
6344 "\n"
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6349 msgid ""
6350 "This runs the filesystem checker (fsck) on C<device> which should have "
6351 "filesystem type C<fstype>."
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6356 msgid ""
6357 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6358 "codes from C<fsck>."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6363 msgid "Multiple status codes can be summed together."
6364 msgstr ""
6365
6366 #. type: textblock
6367 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6368 msgid ""
6369 "A non-zero return code can mean \"success\", for example if errors have been "
6370 "corrected on the filesystem."
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6375 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6380 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6381 msgstr ""
6382
6383 #. type: =head2
6384 #: ../fish/guestfish-actions.pod:1314
6385 msgid "get-append"
6386 msgstr ""
6387
6388 #. type: verbatim
6389 #: ../fish/guestfish-actions.pod:1316
6390 #, no-wrap
6391 msgid ""
6392 " get-append\n"
6393 "\n"
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6398 msgid ""
6399 "Return the additional kernel options which are added to the guest kernel "
6400 "command line."
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6405 msgid "If C<NULL> then no options are added."
6406 msgstr ""
6407
6408 #. type: =head2
6409 #: ../fish/guestfish-actions.pod:1323
6410 msgid "get-attach-method"
6411 msgstr ""
6412
6413 #. type: verbatim
6414 #: ../fish/guestfish-actions.pod:1325
6415 #, no-wrap
6416 msgid ""
6417 " get-attach-method\n"
6418 "\n"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:1327
6423 msgid "Return the current attach method.  See L</set-attach-method>."
6424 msgstr ""
6425
6426 #. type: =head2
6427 #: ../fish/guestfish-actions.pod:1329
6428 msgid "get-autosync"
6429 msgstr ""
6430
6431 #. type: verbatim
6432 #: ../fish/guestfish-actions.pod:1331
6433 #, no-wrap
6434 msgid ""
6435 " get-autosync\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6441 msgid "Get the autosync flag."
6442 msgstr ""
6443
6444 #. type: =head2
6445 #: ../fish/guestfish-actions.pod:1335
6446 msgid "get-direct"
6447 msgstr ""
6448
6449 #. type: verbatim
6450 #: ../fish/guestfish-actions.pod:1337
6451 #, no-wrap
6452 msgid ""
6453 " get-direct\n"
6454 "\n"
6455 msgstr ""
6456
6457 #. type: textblock
6458 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6459 msgid "Return the direct appliance mode flag."
6460 msgstr ""
6461
6462 #. type: =head2
6463 #: ../fish/guestfish-actions.pod:1341
6464 msgid "get-e2label"
6465 msgstr ""
6466
6467 #. type: verbatim
6468 #: ../fish/guestfish-actions.pod:1343
6469 #, no-wrap
6470 msgid ""
6471 " get-e2label device\n"
6472 "\n"
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
6477 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:1348
6482 msgid ""
6483 "This function is deprecated.  In new code, use the L</vfs_label> call "
6484 "instead."
6485 msgstr ""
6486
6487 #. type: =head2
6488 #: ../fish/guestfish-actions.pod:1355
6489 msgid "get-e2uuid"
6490 msgstr ""
6491
6492 #. type: verbatim
6493 #: ../fish/guestfish-actions.pod:1357
6494 #, no-wrap
6495 msgid ""
6496 " get-e2uuid device\n"
6497 "\n"
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
6502 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6503 msgstr ""
6504
6505 #. type: textblock
6506 #: ../fish/guestfish-actions.pod:1362
6507 msgid ""
6508 "This function is deprecated.  In new code, use the L</vfs_uuid> call "
6509 "instead."
6510 msgstr ""
6511
6512 #. type: =head2
6513 #: ../fish/guestfish-actions.pod:1369
6514 msgid "get-memsize"
6515 msgstr ""
6516
6517 #. type: verbatim
6518 #: ../fish/guestfish-actions.pod:1371
6519 #, no-wrap
6520 msgid ""
6521 " get-memsize\n"
6522 "\n"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
6527 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:1376
6532 msgid ""
6533 "If L</set-memsize> was not called on this handle, and if "
6534 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6535 "value for memsize."
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437 ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
6540 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6541 msgstr ""
6542
6543 #. type: =head2
6544 #: ../fish/guestfish-actions.pod:1383
6545 msgid "get-network"
6546 msgstr ""
6547
6548 #. type: verbatim
6549 #: ../fish/guestfish-actions.pod:1385
6550 #, no-wrap
6551 msgid ""
6552 " get-network\n"
6553 "\n"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
6558 msgid "This returns the enable network flag."
6559 msgstr ""
6560
6561 #. type: =head2
6562 #: ../fish/guestfish-actions.pod:1389
6563 msgid "get-path"
6564 msgstr ""
6565
6566 #. type: verbatim
6567 #: ../fish/guestfish-actions.pod:1391
6568 #, no-wrap
6569 msgid ""
6570 " get-path\n"
6571 "\n"
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
6576 msgid "Return the current search path."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
6581 msgid ""
6582 "This is always non-NULL.  If it wasn't set already, then this will return "
6583 "the default path."
6584 msgstr ""
6585
6586 #. type: =head2
6587 #: ../fish/guestfish-actions.pod:1398
6588 msgid "get-pgroup"
6589 msgstr ""
6590
6591 #. type: verbatim
6592 #: ../fish/guestfish-actions.pod:1400
6593 #, no-wrap
6594 msgid ""
6595 " get-pgroup\n"
6596 "\n"
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
6601 msgid "This returns the process group flag."
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:1404
6606 msgid "get-pid"
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:1406
6611 msgid "pid"
6612 msgstr ""
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:1408
6616 #, no-wrap
6617 msgid ""
6618 " get-pid\n"
6619 "\n"
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
6624 msgid ""
6625 "Return the process ID of the qemu subprocess.  If there is no qemu "
6626 "subprocess, then this will return an error."
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
6631 msgid "This is an internal call used for debugging and testing."
6632 msgstr ""
6633
6634 #. type: =head2
6635 #: ../fish/guestfish-actions.pod:1415
6636 msgid "get-qemu"
6637 msgstr ""
6638
6639 #. type: verbatim
6640 #: ../fish/guestfish-actions.pod:1417
6641 #, no-wrap
6642 msgid ""
6643 " get-qemu\n"
6644 "\n"
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
6649 msgid "Return the current qemu binary."
6650 msgstr ""
6651
6652 #. type: textblock
6653 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
6654 msgid ""
6655 "This is always non-NULL.  If it wasn't set already, then this will return "
6656 "the default qemu binary name."
6657 msgstr ""
6658
6659 #. type: =head2
6660 #: ../fish/guestfish-actions.pod:1424
6661 msgid "get-recovery-proc"
6662 msgstr ""
6663
6664 #. type: verbatim
6665 #: ../fish/guestfish-actions.pod:1426
6666 #, no-wrap
6667 msgid ""
6668 " get-recovery-proc\n"
6669 "\n"
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
6674 msgid "Return the recovery process enabled flag."
6675 msgstr ""
6676
6677 #. type: =head2
6678 #: ../fish/guestfish-actions.pod:1430
6679 msgid "get-selinux"
6680 msgstr ""
6681
6682 #. type: verbatim
6683 #: ../fish/guestfish-actions.pod:1432
6684 #, no-wrap
6685 msgid ""
6686 " get-selinux\n"
6687 "\n"
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:1434
6692 msgid ""
6693 "This returns the current setting of the selinux flag which is passed to the "
6694 "appliance at boot time.  See L</set-selinux>."
6695 msgstr ""
6696
6697 #. type: =head2
6698 #: ../fish/guestfish-actions.pod:1440
6699 msgid "get-state"
6700 msgstr ""
6701
6702 #. type: verbatim
6703 #: ../fish/guestfish-actions.pod:1442
6704 #, no-wrap
6705 msgid ""
6706 " get-state\n"
6707 "\n"
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
6712 msgid ""
6713 "This returns the current state as an opaque integer.  This is only useful "
6714 "for printing debug and internal error messages."
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367 ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423 ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
6719 msgid "For more information on states, see L<guestfs(3)>."
6720 msgstr ""
6721
6722 #. type: =head2
6723 #: ../fish/guestfish-actions.pod:1449
6724 msgid "get-trace"
6725 msgstr ""
6726
6727 #. type: verbatim
6728 #: ../fish/guestfish-actions.pod:1451
6729 #, no-wrap
6730 msgid ""
6731 " get-trace\n"
6732 "\n"
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
6737 msgid "Return the command trace flag."
6738 msgstr ""
6739
6740 #. type: =head2
6741 #: ../fish/guestfish-actions.pod:1455
6742 msgid "get-umask"
6743 msgstr ""
6744
6745 #. type: verbatim
6746 #: ../fish/guestfish-actions.pod:1457
6747 #, no-wrap
6748 msgid ""
6749 " get-umask\n"
6750 "\n"
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:1459
6755 msgid ""
6756 "Return the current umask.  By default the umask is C<022> unless it has been "
6757 "set by calling L</umask>."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1462
6762 msgid "get-verbose"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1464
6767 #, no-wrap
6768 msgid ""
6769 " get-verbose\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
6775 msgid "This returns the verbose messages flag."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../fish/guestfish-actions.pod:1468
6780 msgid "getcon"
6781 msgstr ""
6782
6783 #. type: verbatim
6784 #: ../fish/guestfish-actions.pod:1470
6785 #, no-wrap
6786 msgid ""
6787 " getcon\n"
6788 "\n"
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
6793 msgid "This gets the SELinux security context of the daemon."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1474
6798 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
6799 msgstr ""
6800
6801 #. type: =head2
6802 #: ../fish/guestfish-actions.pod:1477
6803 msgid "getxattr"
6804 msgstr ""
6805
6806 #. type: verbatim
6807 #: ../fish/guestfish-actions.pod:1479
6808 #, no-wrap
6809 msgid ""
6810 " getxattr path name\n"
6811 "\n"
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1481
6816 msgid ""
6817 "Get a single extended attribute from file C<path> named C<name>.  This call "
6818 "follows symlinks.  If you want to lookup an extended attribute for the "
6819 "symlink itself, use L</lgetxattr>."
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
6824 msgid ""
6825 "Normally it is better to get all extended attributes from a file in one go "
6826 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
6827 "buggy and do not provide a way to list out attributes.  For these "
6828 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
6829 "attributes you want in advance and call this function."
6830 msgstr ""
6831
6832 #. type: textblock
6833 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519 ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
6834 msgid ""
6835 "Extended attribute values are blobs of binary data.  If there is no extended "
6836 "attribute named C<name>, this returns an error."
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:1495
6841 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
6842 msgstr ""
6843
6844 #. type: =head2
6845 #: ../fish/guestfish-actions.pod:1497
6846 msgid "getxattrs"
6847 msgstr ""
6848
6849 #. type: verbatim
6850 #: ../fish/guestfish-actions.pod:1499
6851 #, no-wrap
6852 msgid ""
6853 " getxattrs path\n"
6854 "\n"
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
6859 msgid "This call lists the extended attributes of the file or directory C<path>."
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
6864 msgid ""
6865 "At the system call level, this is a combination of the L<listxattr(2)> and "
6866 "L<getxattr(2)> calls."
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:1507
6871 msgid "See also: L</lgetxattrs>, L<attr(5)>."
6872 msgstr ""
6873
6874 #. type: =head2
6875 #: ../fish/guestfish-actions.pod:1509
6876 msgid "glob-expand"
6877 msgstr ""
6878
6879 #. type: verbatim
6880 #: ../fish/guestfish-actions.pod:1511
6881 #, no-wrap
6882 msgid ""
6883 " glob-expand pattern\n"
6884 "\n"
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
6889 msgid ""
6890 "This command searches for all the pathnames matching C<pattern> according to "
6891 "the wildcard expansion rules used by the shell."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
6896 msgid "If no paths match, then this returns an empty list (note: not an error)."
6897 msgstr ""
6898
6899 #. type: textblock
6900 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
6901 msgid ""
6902 "It is just a wrapper around the C L<glob(3)> function with flags "
6903 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../fish/guestfish-actions.pod:1524
6908 msgid "grep"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../fish/guestfish-actions.pod:1526
6913 #, no-wrap
6914 msgid ""
6915 " grep regex path\n"
6916 "\n"
6917 msgstr ""
6918
6919 #. type: textblock
6920 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
6921 msgid "This calls the external C<grep> program and returns the matching lines."
6922 msgstr ""
6923
6924 #. type: =head2
6925 #: ../fish/guestfish-actions.pod:1534
6926 msgid "grepi"
6927 msgstr ""
6928
6929 #. type: verbatim
6930 #: ../fish/guestfish-actions.pod:1536
6931 #, no-wrap
6932 msgid ""
6933 " grepi regex path\n"
6934 "\n"
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
6939 msgid "This calls the external C<grep -i> program and returns the matching lines."
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:1544
6944 msgid "grub-install"
6945 msgstr ""
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:1546
6949 #, no-wrap
6950 msgid ""
6951 " grub-install root device\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
6957 msgid ""
6958 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6959 "the root directory being C<root>."
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
6964 msgid ""
6965 "Note: If grub-install reports the error \"No suitable drive was found in the "
6966 "generated device map.\" it may be that you need to create a "
6967 "C</boot/grub/device.map> file first that contains the mapping between grub "
6968 "device names and Linux device names.  It is usually sufficient to create a "
6969 "file containing:"
6970 msgstr ""
6971
6972 #. type: verbatim
6973 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
6974 #, no-wrap
6975 msgid ""
6976 " (hd0) /dev/vda\n"
6977 "\n"
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
6982 msgid "replacing C</dev/vda> with the name of the installation device."
6983 msgstr ""
6984
6985 #. type: =head2
6986 #: ../fish/guestfish-actions.pod:1562
6987 msgid "head"
6988 msgstr ""
6989
6990 #. type: verbatim
6991 #: ../fish/guestfish-actions.pod:1564
6992 #, no-wrap
6993 msgid ""
6994 " head path\n"
6995 "\n"
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7000 msgid ""
7001 "This command returns up to the first 10 lines of a file as a list of "
7002 "strings."
7003 msgstr ""
7004
7005 #. type: =head2
7006 #: ../fish/guestfish-actions.pod:1572
7007 msgid "head-n"
7008 msgstr ""
7009
7010 #. type: verbatim
7011 #: ../fish/guestfish-actions.pod:1574
7012 #, no-wrap
7013 msgid ""
7014 " head-n nrlines path\n"
7015 "\n"
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
7020 msgid ""
7021 "If the parameter C<nrlines> is a positive number, this returns the first "
7022 "C<nrlines> lines of the file C<path>."
7023 msgstr ""
7024
7025 #. type: textblock
7026 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
7027 msgid ""
7028 "If the parameter C<nrlines> is a negative number, this returns lines from "
7029 "the file C<path>, excluding the last C<nrlines> lines."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
7034 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7035 msgstr ""
7036
7037 #. type: =head2
7038 #: ../fish/guestfish-actions.pod:1587
7039 msgid "hexdump"
7040 msgstr ""
7041
7042 #. type: verbatim
7043 #: ../fish/guestfish-actions.pod:1589
7044 #, no-wrap
7045 msgid ""
7046 " hexdump path\n"
7047 "\n"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
7052 msgid ""
7053 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7054 "human-readable, canonical hex dump of the file."
7055 msgstr ""
7056
7057 #. type: =head2
7058 #: ../fish/guestfish-actions.pod:1597
7059 msgid "initrd-cat"
7060 msgstr ""
7061
7062 #. type: verbatim
7063 #: ../fish/guestfish-actions.pod:1599
7064 #, no-wrap
7065 msgid ""
7066 " initrd-cat initrdpath filename\n"
7067 "\n"
7068 msgstr ""
7069
7070 #. type: textblock
7071 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
7072 msgid ""
7073 "This command unpacks the file C<filename> from the initrd file called "
7074 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7075 "character."
7076 msgstr ""
7077
7078 #. type: textblock
7079 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
7080 msgid ""
7081 "For example, in guestfish you could use the following command to examine the "
7082 "boot script (usually called C</init>)  contained in a Linux initrd or "
7083 "initramfs image:"
7084 msgstr ""
7085
7086 #. type: verbatim
7087 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
7088 #, no-wrap
7089 msgid ""
7090 " initrd-cat /boot/initrd-<version>.img init\n"
7091 "\n"
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:1611
7096 msgid "See also L</initrd-list>."
7097 msgstr ""
7098
7099 #. type: =head2
7100 #: ../fish/guestfish-actions.pod:1616
7101 msgid "initrd-list"
7102 msgstr ""
7103
7104 #. type: verbatim
7105 #: ../fish/guestfish-actions.pod:1618
7106 #, no-wrap
7107 msgid ""
7108 " initrd-list path\n"
7109 "\n"
7110 msgstr ""
7111
7112 #. type: textblock
7113 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
7114 msgid "This command lists out files contained in an initrd."
7115 msgstr ""
7116
7117 #. type: textblock
7118 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
7119 msgid ""
7120 "The files are listed without any initial C</> character.  The files are "
7121 "listed in the order they appear (not necessarily alphabetical).  Directory "
7122 "names are listed as separate items."
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
7127 msgid ""
7128 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7129 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7130 "files)."
7131 msgstr ""
7132
7133 #. type: =head2
7134 #: ../fish/guestfish-actions.pod:1630
7135 msgid "inotify-add-watch"
7136 msgstr ""
7137
7138 #. type: verbatim
7139 #: ../fish/guestfish-actions.pod:1632
7140 #, no-wrap
7141 msgid ""
7142 " inotify-add-watch path mask\n"
7143 "\n"
7144 msgstr ""
7145
7146 #. type: textblock
7147 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
7148 msgid "Watch C<path> for the events listed in C<mask>."
7149 msgstr ""
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
7153 msgid ""
7154 "Note that if C<path> is a directory then events within that directory are "
7155 "watched, but this does I<not> happen recursively (in subdirectories)."
7156 msgstr ""
7157
7158 #. type: textblock
7159 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
7160 msgid ""
7161 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7162 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7163 msgstr ""
7164
7165 #. type: =head2
7166 #: ../fish/guestfish-actions.pod:1644
7167 msgid "inotify-close"
7168 msgstr ""
7169
7170 #. type: verbatim
7171 #: ../fish/guestfish-actions.pod:1646
7172 #, no-wrap
7173 msgid ""
7174 " inotify-close\n"
7175 "\n"
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
7180 msgid ""
7181 "This closes the inotify handle which was previously opened by inotify_init.  "
7182 "It removes all watches, throws away any pending events, and deallocates all "
7183 "resources."
7184 msgstr ""
7185
7186 #. type: =head2
7187 #: ../fish/guestfish-actions.pod:1652
7188 msgid "inotify-files"
7189 msgstr ""
7190
7191 #. type: verbatim
7192 #: ../fish/guestfish-actions.pod:1654
7193 #, no-wrap
7194 msgid ""
7195 " inotify-files\n"
7196 "\n"
7197 msgstr ""
7198
7199 #. type: textblock
7200 #: ../fish/guestfish-actions.pod:1656
7201 msgid ""
7202 "This function is a helpful wrapper around L</inotify-read> which just "
7203 "returns a list of pathnames of objects that were touched.  The returned "
7204 "pathnames are sorted and deduplicated."
7205 msgstr ""
7206
7207 #. type: =head2
7208 #: ../fish/guestfish-actions.pod:1660
7209 msgid "inotify-init"
7210 msgstr ""
7211
7212 #. type: verbatim
7213 #: ../fish/guestfish-actions.pod:1662
7214 #, no-wrap
7215 msgid ""
7216 " inotify-init maxevents\n"
7217 "\n"
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
7222 msgid ""
7223 "This command creates a new inotify handle.  The inotify subsystem can be "
7224 "used to notify events which happen to objects in the guest filesystem."
7225 msgstr ""
7226
7227 #. type: textblock
7228 #: ../fish/guestfish-actions.pod:1668
7229 msgid ""
7230 "C<maxevents> is the maximum number of events which will be queued up between "
7231 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7232 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7233 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7234 "but records the fact that it threw them away by setting a flag "
7235 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7236 msgstr ""
7237
7238 #. type: textblock
7239 #: ../fish/guestfish-actions.pod:1678
7240 msgid ""
7241 "Before any events are generated, you have to add some watches to the "
7242 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7243 "L</inotify-watch-all>."
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:1684
7248 msgid ""
7249 "Queued up events should be read periodically by calling L</inotify-read> (or "
7250 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7251 "If you don't read the events out often enough then you risk the internal "
7252 "queue overflowing."
7253 msgstr ""
7254
7255 #. type: textblock
7256 #: ../fish/guestfish-actions.pod:1691
7257 msgid ""
7258 "The handle should be closed after use by calling L</inotify-close>.  This "
7259 "also removes any watches automatically."
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
7264 msgid ""
7265 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7266 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7267 "that there is one global inotify handle per libguestfs instance."
7268 msgstr ""
7269
7270 #. type: =head2
7271 #: ../fish/guestfish-actions.pod:1700
7272 msgid "inotify-read"
7273 msgstr ""
7274
7275 #. type: verbatim
7276 #: ../fish/guestfish-actions.pod:1702
7277 #, no-wrap
7278 msgid ""
7279 " inotify-read\n"
7280 "\n"
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7285 msgid ""
7286 "Return the complete queue of events that have happened since the previous "
7287 "read call."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
7292 msgid "If no events have happened, this returns an empty list."
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
7297 msgid ""
7298 "I<Note>: In order to make sure that all events have been read, you must call "
7299 "this function repeatedly until it returns an empty list.  The reason is that "
7300 "the call will read events up to the maximum appliance-to-host message size "
7301 "and leave remaining events in the queue."
7302 msgstr ""
7303
7304 #. type: =head2
7305 #: ../fish/guestfish-actions.pod:1715
7306 msgid "inotify-rm-watch"
7307 msgstr ""
7308
7309 #. type: verbatim
7310 #: ../fish/guestfish-actions.pod:1717
7311 #, no-wrap
7312 msgid ""
7313 " inotify-rm-watch wd\n"
7314 "\n"
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:1719
7319 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7320 msgstr ""
7321
7322 #. type: =head2
7323 #: ../fish/guestfish-actions.pod:1722
7324 msgid "inspect-get-arch"
7325 msgstr ""
7326
7327 #. type: verbatim
7328 #: ../fish/guestfish-actions.pod:1724
7329 #, no-wrap
7330 msgid ""
7331 " inspect-get-arch root\n"
7332 "\n"
7333 msgstr ""
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:1726
7337 msgid ""
7338 "This returns the architecture of the inspected operating system.  The "
7339 "possible return values are listed under L</file-architecture>."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
7344 msgid ""
7345 "If the architecture could not be determined, then the string C<unknown> is "
7346 "returned."
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907 ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052 ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087 ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159 ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185 ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205 ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
7351 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7352 msgstr ""
7353
7354 #. type: =head2
7355 #: ../fish/guestfish-actions.pod:1735
7356 msgid "inspect-get-distro"
7357 msgstr ""
7358
7359 #. type: verbatim
7360 #: ../fish/guestfish-actions.pod:1737
7361 #, no-wrap
7362 msgid ""
7363 " inspect-get-distro root\n"
7364 "\n"
7365 msgstr ""
7366
7367 #. type: textblock
7368 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
7369 msgid "This returns the distro (distribution) of the inspected operating system."
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
7374 msgid "Currently defined distros are:"
7375 msgstr ""
7376
7377 #. type: =item
7378 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
7379 msgid "\"archlinux\""
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
7384 msgid "Arch Linux."
7385 msgstr ""
7386
7387 #. type: =item
7388 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
7389 msgid "\"centos\""
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
7394 msgid "CentOS."
7395 msgstr ""
7396
7397 #. type: =item
7398 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
7399 msgid "\"debian\""
7400 msgstr ""
7401
7402 #. type: textblock
7403 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
7404 msgid "Debian."
7405 msgstr ""
7406
7407 #. type: =item
7408 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
7409 msgid "\"fedora\""
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
7414 msgid "Fedora."
7415 msgstr ""
7416
7417 #. type: =item
7418 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
7419 msgid "\"gentoo\""
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7424 msgid "Gentoo."
7425 msgstr ""
7426
7427 #. type: =item
7428 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
7429 msgid "\"linuxmint\""
7430 msgstr ""
7431
7432 #. type: textblock
7433 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7434 msgid "Linux Mint."
7435 msgstr ""
7436
7437 #. type: =item
7438 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7439 msgid "\"mandriva\""
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7444 msgid "Mandriva."
7445 msgstr ""
7446
7447 #. type: =item
7448 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7449 msgid "\"meego\""
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7454 msgid "MeeGo."
7455 msgstr ""
7456
7457 #. type: =item
7458 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7459 msgid "\"pardus\""
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7464 msgid "Pardus."
7465 msgstr ""
7466
7467 #. type: =item
7468 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7469 msgid "\"redhat-based\""
7470 msgstr ""
7471
7472 #. type: textblock
7473 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7474 msgid "Some Red Hat-derived distro."
7475 msgstr ""
7476
7477 #. type: =item
7478 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7479 msgid "\"rhel\""
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7484 msgid "Red Hat Enterprise Linux."
7485 msgstr ""
7486
7487 #. type: =item
7488 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7489 msgid "\"scientificlinux\""
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7494 msgid "Scientific Linux."
7495 msgstr ""
7496
7497 #. type: =item
7498 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7499 msgid "\"slackware\""
7500 msgstr ""
7501
7502 #. type: textblock
7503 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
7504 msgid "Slackware."
7505 msgstr ""
7506
7507 #. type: =item
7508 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
7509 msgid "\"ubuntu\""
7510 msgstr ""
7511
7512 #. type: textblock
7513 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
7514 msgid "Ubuntu."
7515 msgstr ""
7516
7517 #. type: =item
7518 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679 ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
7519 msgid "\"unknown\""
7520 msgstr ""
7521
7522 #. type: textblock
7523 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
7524 msgid "The distro could not be determined."
7525 msgstr ""
7526
7527 #. type: =item
7528 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
7529 msgid "\"windows\""
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
7534 msgid ""
7535 "Windows does not have distributions.  This string is returned if the OS type "
7536 "is Windows."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
7541 msgid ""
7542 "Future versions of libguestfs may return other strings here.  The caller "
7543 "should be prepared to handle any string."
7544 msgstr ""
7545
7546 #. type: =head2
7547 #: ../fish/guestfish-actions.pod:1818
7548 msgid "inspect-get-drive-mappings"
7549 msgstr ""
7550
7551 #. type: verbatim
7552 #: ../fish/guestfish-actions.pod:1820
7553 #, no-wrap
7554 msgid ""
7555 " inspect-get-drive-mappings root\n"
7556 "\n"
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
7561 msgid ""
7562 "This call is useful for Windows which uses a primitive system of assigning "
7563 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7564 "Windows Registry to find out how disks/partitions are mapped to drive "
7565 "letters, and returns a hash table as in the example below:"
7566 msgstr ""
7567
7568 #. type: verbatim
7569 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
7570 #, no-wrap
7571 msgid ""
7572 " C      =>     /dev/vda2\n"
7573 " E      =>     /dev/vdb1\n"
7574 " F      =>     /dev/vdc1\n"
7575 "\n"
7576 msgstr ""
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
7580 msgid ""
7581 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7582 "and just contains the drive letter, without the customary colon separator "
7583 "character."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
7588 msgid ""
7589 "In future we may support other operating systems that also used drive "
7590 "letters, but the keys for those might not be case insensitive and might be "
7591 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7592 "C<h1> etc."
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
7597 msgid ""
7598 "For Windows guests, currently only hard drive mappings are returned.  "
7599 "Removable disks (eg. DVD-ROMs) are ignored."
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
7604 msgid ""
7605 "For guests that do not use drive mappings, or if the drive mappings could "
7606 "not be determined, this returns an empty hash table."
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../fish/guestfish-actions.pod:1847
7611 msgid ""
7612 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7613 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7614 msgstr ""
7615
7616 #. type: =head2
7617 #: ../fish/guestfish-actions.pod:1851
7618 msgid "inspect-get-filesystems"
7619 msgstr ""
7620
7621 #. type: verbatim
7622 #: ../fish/guestfish-actions.pod:1853
7623 #, no-wrap
7624 msgid ""
7625 " inspect-get-filesystems root\n"
7626 "\n"
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
7631 msgid ""
7632 "This returns a list of all the filesystems that we think are associated with "
7633 "this operating system.  This includes the root filesystem, other ordinary "
7634 "filesystems, and non-mounted devices like swap partitions."
7635 msgstr ""
7636
7637 #. type: textblock
7638 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
7639 msgid ""
7640 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7641 "to be shared between operating systems."
7642 msgstr ""
7643
7644 #. type: textblock
7645 #: ../fish/guestfish-actions.pod:1863
7646 msgid ""
7647 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7648 "L</inspect-get-mountpoints>."
7649 msgstr ""
7650
7651 #. type: =head2
7652 #: ../fish/guestfish-actions.pod:1866
7653 msgid "inspect-get-format"
7654 msgstr ""
7655
7656 #. type: verbatim
7657 #: ../fish/guestfish-actions.pod:1868
7658 #, no-wrap
7659 msgid ""
7660 " inspect-get-format root\n"
7661 "\n"
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
7666 msgid ""
7667 "This returns the format of the inspected operating system.  You can use it "
7668 "to detect install images, live CDs and similar."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
7673 msgid "Currently defined formats are:"
7674 msgstr ""
7675
7676 #. type: =item
7677 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
7678 msgid "\"installed\""
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
7683 msgid "This is an installed operating system."
7684 msgstr ""
7685
7686 #. type: =item
7687 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
7688 msgid "\"installer\""
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
7693 msgid ""
7694 "The disk image being inspected is not an installed operating system, but a "
7695 "I<bootable> install disk, live CD, or similar."
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
7700 msgid "The format of this disk image is not known."
7701 msgstr ""
7702
7703 #. type: =head2
7704 #: ../fish/guestfish-actions.pod:1897
7705 msgid "inspect-get-hostname"
7706 msgstr ""
7707
7708 #. type: verbatim
7709 #: ../fish/guestfish-actions.pod:1899
7710 #, no-wrap
7711 msgid ""
7712 " inspect-get-hostname root\n"
7713 "\n"
7714 msgstr ""
7715
7716 #. type: textblock
7717 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
7718 msgid ""
7719 "This function returns the hostname of the operating system as found by "
7720 "inspection of the guest's configuration files."
7721 msgstr ""
7722
7723 #. type: textblock
7724 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
7725 msgid ""
7726 "If the hostname could not be determined, then the string C<unknown> is "
7727 "returned."
7728 msgstr ""
7729
7730 #. type: =head2
7731 #: ../fish/guestfish-actions.pod:1909
7732 msgid "inspect-get-icon"
7733 msgstr ""
7734
7735 #. type: verbatim
7736 #: ../fish/guestfish-actions.pod:1911
7737 #, no-wrap
7738 msgid ""
7739 " inspect-get-icon root [favicon:..] [highquality:..]\n"
7740 "\n"
7741 msgstr ""
7742
7743 #. type: textblock
7744 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
7745 msgid ""
7746 "This function returns an icon corresponding to the inspected operating "
7747 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
7748 "to PNG if necessary)."
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
7753 msgid ""
7754 "If it was not possible to get an icon this function returns a zero-length "
7755 "(non-NULL) buffer.  I<Callers must check for this case>."
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
7760 msgid ""
7761 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
7762 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
7763 "this file will be returned.  You can disable favicons by passing the "
7764 "optional C<favicon> boolean as false (default is true)."
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
7769 msgid ""
7770 "If finding the favicon fails, then we look in other places in the guest for "
7771 "a suitable icon."
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
7776 msgid ""
7777 "If the optional C<highquality> boolean is true then only high quality icons "
7778 "are returned, which means only icons of high resolution with an alpha "
7779 "channel.  The default (false) is to return any icon we can, even if it is of "
7780 "substandard quality."
7781 msgstr ""
7782
7783 #. type: textblock
7784 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
7785 msgid ""
7786 "Unlike most other inspection API calls, the guest's disks must be mounted up "
7787 "before you call this, since it needs to read information from the guest "
7788 "filesystem during the call."
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
7793 msgid ""
7794 "B<Security:> The icon data comes from the untrusted guest, and should be "
7795 "treated with caution.  PNG files have been known to contain exploits.  "
7796 "Ensure that libpng (or other relevant libraries) are fully up to date before "
7797 "trying to process or display the icon."
7798 msgstr ""
7799
7800 #. type: textblock
7801 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
7802 msgid ""
7803 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
7804 "tries to return the largest, highest quality icon available.  The "
7805 "application must scale the icon to the required size."
7806 msgstr ""
7807
7808 #. type: textblock
7809 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
7810 msgid ""
7811 "Extracting icons from Windows guests requires the external C<wrestool> "
7812 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
7813 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
7814 "installed separately."
7815 msgstr ""
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
7819 msgid ""
7820 "Operating system icons are usually trademarks.  Seek legal advice before "
7821 "using trademarks in applications."
7822 msgstr ""
7823
7824 #. type: =head2
7825 #: ../fish/guestfish-actions.pod:1975
7826 msgid "inspect-get-major-version"
7827 msgstr ""
7828
7829 #. type: verbatim
7830 #: ../fish/guestfish-actions.pod:1977
7831 #, no-wrap
7832 msgid ""
7833 " inspect-get-major-version root\n"
7834 "\n"
7835 msgstr ""
7836
7837 #. type: textblock
7838 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
7839 msgid "This returns the major version number of the inspected operating system."
7840 msgstr ""
7841
7842 #. type: textblock
7843 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
7844 msgid ""
7845 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7846 "popular public names used by the operating system.  Notably the operating "
7847 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7848 "1).  You can find out the real versions corresponding to releases of Windows "
7849 "by consulting Wikipedia or MSDN."
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
7854 msgid "If the version could not be determined, then C<0> is returned."
7855 msgstr ""
7856
7857 #. type: =head2
7858 #: ../fish/guestfish-actions.pod:1993
7859 msgid "inspect-get-minor-version"
7860 msgstr ""
7861
7862 #. type: verbatim
7863 #: ../fish/guestfish-actions.pod:1995
7864 #, no-wrap
7865 msgid ""
7866 " inspect-get-minor-version root\n"
7867 "\n"
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
7872 msgid "This returns the minor version number of the inspected operating system."
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../fish/guestfish-actions.pod:2002
7877 msgid ""
7878 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7879 "L</inspect-get-major-version>."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:2005
7884 msgid "inspect-get-mountpoints"
7885 msgstr ""
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:2007
7889 #, no-wrap
7890 msgid ""
7891 " inspect-get-mountpoints root\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
7897 msgid ""
7898 "This returns a hash of where we think the filesystems associated with this "
7899 "operating system should be mounted.  Callers should note that this is at "
7900 "best an educated guess made by reading configuration files such as "
7901 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
7902 "are non-existent or not mountable and callers should be prepared to handle "
7903 "or ignore failures if they try to mount them."
7904 msgstr ""
7905
7906 #. type: textblock
7907 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
7908 msgid ""
7909 "Each element in the returned hashtable has a key which is the path of the "
7910 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7911 "mounted there (eg. C</dev/sda1>)."
7912 msgstr ""
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
7916 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7917 msgstr ""
7918
7919 #. type: textblock
7920 #: ../fish/guestfish-actions.pod:2026
7921 msgid ""
7922 "For operating systems like Windows which still use drive letters, this call "
7923 "will only return an entry for the first drive \"mounted on\" C</>.  For "
7924 "information about the mapping of drive letters to partitions, see "
7925 "L</inspect-get-drive-mappings>."
7926 msgstr ""
7927
7928 #. type: textblock
7929 #: ../fish/guestfish-actions.pod:2032
7930 msgid ""
7931 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7932 "L</inspect-get-filesystems>."
7933 msgstr ""
7934
7935 #. type: =head2
7936 #: ../fish/guestfish-actions.pod:2035
7937 msgid "inspect-get-package-format"
7938 msgstr ""
7939
7940 #. type: verbatim
7941 #: ../fish/guestfish-actions.pod:2037
7942 #, no-wrap
7943 msgid ""
7944 " inspect-get-package-format root\n"
7945 "\n"
7946 msgstr ""
7947
7948 #. type: textblock
7949 #: ../fish/guestfish-actions.pod:2039
7950 msgid ""
7951 "This function and L</inspect-get-package-management> return the package "
7952 "format and package management tool used by the inspected operating system.  "
7953 "For example for Fedora these functions would return C<rpm> (package format) "
7954 "and C<yum> (package management)."
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
7959 msgid ""
7960 "This returns the string C<unknown> if we could not determine the package "
7961 "format I<or> if the operating system does not have a real packaging system "
7962 "(eg. Windows)."
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
7967 msgid ""
7968 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
7969 "Future versions of libguestfs may return other strings."
7970 msgstr ""
7971
7972 #. type: =head2
7973 #: ../fish/guestfish-actions.pod:2054
7974 msgid "inspect-get-package-management"
7975 msgstr ""
7976
7977 #. type: verbatim
7978 #: ../fish/guestfish-actions.pod:2056
7979 #, no-wrap
7980 msgid ""
7981 " inspect-get-package-management root\n"
7982 "\n"
7983 msgstr ""
7984
7985 #. type: textblock
7986 #: ../fish/guestfish-actions.pod:2058
7987 msgid ""
7988 "L</inspect-get-package-format> and this function return the package format "
7989 "and package management tool used by the inspected operating system.  For "
7990 "example for Fedora these functions would return C<rpm> (package format) and "
7991 "C<yum> (package management)."
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
7996 msgid ""
7997 "This returns the string C<unknown> if we could not determine the package "
7998 "management tool I<or> if the operating system does not have a real packaging "
7999 "system (eg. Windows)."
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
8004 msgid ""
8005 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8006 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8007 "libguestfs may return other strings."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:2075
8012 msgid "inspect-get-product-name"
8013 msgstr ""
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:2077
8017 #, no-wrap
8018 msgid ""
8019 " inspect-get-product-name root\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8025 msgid ""
8026 "This returns the product name of the inspected operating system.  The "
8027 "product name is generally some freeform string which can be displayed to the "
8028 "user, but should not be parsed by programs."
8029 msgstr ""
8030
8031 #. type: textblock
8032 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
8033 msgid ""
8034 "If the product name could not be determined, then the string C<unknown> is "
8035 "returned."
8036 msgstr ""
8037
8038 #. type: =head2
8039 #: ../fish/guestfish-actions.pod:2089
8040 msgid "inspect-get-product-variant"
8041 msgstr ""
8042
8043 #. type: verbatim
8044 #: ../fish/guestfish-actions.pod:2091
8045 #, no-wrap
8046 msgid ""
8047 " inspect-get-product-variant root\n"
8048 "\n"
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
8053 msgid "This returns the product variant of the inspected operating system."
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
8058 msgid ""
8059 "For Windows guests, this returns the contents of the Registry key "
8060 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8061 "which is usually a string such as C<Client> or C<Server> (other values are "
8062 "possible).  This can be used to distinguish consumer and enterprise versions "
8063 "of Windows that have the same version number (for example, Windows 7 and "
8064 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8065 "the latter is C<Server>)."
8066 msgstr ""
8067
8068 #. type: textblock
8069 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
8070 msgid ""
8071 "For enterprise Linux guests, in future we intend this to return the product "
8072 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8073 "implemented at present."
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
8078 msgid ""
8079 "If the product variant could not be determined, then the string C<unknown> "
8080 "is returned."
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:2112
8085 msgid ""
8086 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8087 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8088 msgstr ""
8089
8090 #. type: =head2
8091 #: ../fish/guestfish-actions.pod:2116
8092 msgid "inspect-get-roots"
8093 msgstr ""
8094
8095 #. type: verbatim
8096 #: ../fish/guestfish-actions.pod:2118
8097 #, no-wrap
8098 msgid ""
8099 " inspect-get-roots\n"
8100 "\n"
8101 msgstr ""
8102
8103 #. type: textblock
8104 #: ../fish/guestfish-actions.pod:2120
8105 msgid ""
8106 "This function is a convenient way to get the list of root devices, as "
8107 "returned from a previous call to L</inspect-os>, but without redoing the "
8108 "whole inspection process."
8109 msgstr ""
8110
8111 #. type: textblock
8112 #: ../fish/guestfish-actions.pod:2124
8113 msgid ""
8114 "This returns an empty list if either no root devices were found or the "
8115 "caller has not called L</inspect-os>."
8116 msgstr ""
8117
8118 #. type: =head2
8119 #: ../fish/guestfish-actions.pod:2129
8120 msgid "inspect-get-type"
8121 msgstr ""
8122
8123 #. type: verbatim
8124 #: ../fish/guestfish-actions.pod:2131
8125 #, no-wrap
8126 msgid ""
8127 " inspect-get-type root\n"
8128 "\n"
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8133 msgid ""
8134 "This returns the type of the inspected operating system.  Currently defined "
8135 "types are:"
8136 msgstr ""
8137
8138 #. type: =item
8139 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
8140 msgid "\"linux\""
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
8145 msgid "Any Linux-based operating system."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
8150 msgid "Any Microsoft Windows operating system."
8151 msgstr ""
8152
8153 #. type: =item
8154 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
8155 msgid "\"freebsd\""
8156 msgstr ""
8157
8158 #. type: textblock
8159 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
8160 msgid "FreeBSD."
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
8165 msgid "The operating system type could not be determined."
8166 msgstr ""
8167
8168 #. type: =head2
8169 #: ../fish/guestfish-actions.pod:2161
8170 msgid "inspect-get-windows-current-control-set"
8171 msgstr ""
8172
8173 #. type: verbatim
8174 #: ../fish/guestfish-actions.pod:2163
8175 #, no-wrap
8176 msgid ""
8177 " inspect-get-windows-current-control-set root\n"
8178 "\n"
8179 msgstr ""
8180
8181 #. type: textblock
8182 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
8183 msgid ""
8184 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8185 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
8190 msgid ""
8191 "This call assumes that the guest is Windows and that the Registry could be "
8192 "examined by inspection.  If this is not the case then an error is returned."
8193 msgstr ""
8194
8195 #. type: =head2
8196 #: ../fish/guestfish-actions.pod:2174
8197 msgid "inspect-get-windows-systemroot"
8198 msgstr ""
8199
8200 #. type: verbatim
8201 #: ../fish/guestfish-actions.pod:2176
8202 #, no-wrap
8203 msgid ""
8204 " inspect-get-windows-systemroot root\n"
8205 "\n"
8206 msgstr ""
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
8210 msgid ""
8211 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8212 "is a directory path such as C</WINDOWS>."
8213 msgstr ""
8214
8215 #. type: textblock
8216 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
8217 msgid ""
8218 "This call assumes that the guest is Windows and that the systemroot could be "
8219 "determined by inspection.  If this is not the case then an error is "
8220 "returned."
8221 msgstr ""
8222
8223 #. type: =head2
8224 #: ../fish/guestfish-actions.pod:2187
8225 msgid "inspect-is-live"
8226 msgstr ""
8227
8228 #. type: verbatim
8229 #: ../fish/guestfish-actions.pod:2189
8230 #, no-wrap
8231 msgid ""
8232 " inspect-is-live root\n"
8233 "\n"
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:2191
8238 msgid ""
8239 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8240 "then this returns true if a live image was detected on the disk."
8241 msgstr ""
8242
8243 #. type: =head2
8244 #: ../fish/guestfish-actions.pod:2197
8245 msgid "inspect-is-multipart"
8246 msgstr ""
8247
8248 #. type: verbatim
8249 #: ../fish/guestfish-actions.pod:2199
8250 #, no-wrap
8251 msgid ""
8252 " inspect-is-multipart root\n"
8253 "\n"
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:2201
8258 msgid ""
8259 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8260 "then this returns true if the disk is part of a set."
8261 msgstr ""
8262
8263 #. type: =head2
8264 #: ../fish/guestfish-actions.pod:2207
8265 msgid "inspect-is-netinst"
8266 msgstr ""
8267
8268 #. type: verbatim
8269 #: ../fish/guestfish-actions.pod:2209
8270 #, no-wrap
8271 msgid ""
8272 " inspect-is-netinst root\n"
8273 "\n"
8274 msgstr ""
8275
8276 #. type: textblock
8277 #: ../fish/guestfish-actions.pod:2211
8278 msgid ""
8279 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8280 "then this returns true if the disk is a network installer, ie. not a "
8281 "self-contained install CD but one which is likely to require network access "
8282 "to complete the install."
8283 msgstr ""
8284
8285 #. type: =head2
8286 #: ../fish/guestfish-actions.pod:2219
8287 msgid "inspect-list-applications"
8288 msgstr ""
8289
8290 #. type: verbatim
8291 #: ../fish/guestfish-actions.pod:2221
8292 #, no-wrap
8293 msgid ""
8294 " inspect-list-applications root\n"
8295 "\n"
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
8300 msgid "Return the list of applications installed in the operating system."
8301 msgstr ""
8302
8303 #. type: textblock
8304 #: ../fish/guestfish-actions.pod:2225
8305 msgid ""
8306 "I<Note:> This call works differently from other parts of the inspection "
8307 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8308 "then mount up the disks, before calling this.  Listing applications is a "
8309 "significantly more difficult operation which requires access to the full "
8310 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8311 "are just returning data cached in the libguestfs handle, this call actually "
8312 "reads parts of the mounted filesystems during the call."
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
8317 msgid ""
8318 "This returns an empty list if the inspection code was not able to determine "
8319 "the list of applications."
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
8324 msgid "The application structure contains the following fields:"
8325 msgstr ""
8326
8327 #. type: =item
8328 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8329 msgid "C<app_name>"
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8334 msgid ""
8335 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8336 "guests, this is the package name."
8337 msgstr ""
8338
8339 #. type: =item
8340 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8341 msgid "C<app_display_name>"
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8346 msgid ""
8347 "The display name of the application, sometimes localized to the install "
8348 "language of the guest operating system."
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8353 msgid ""
8354 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8355 "to display something can use C<app_name> instead."
8356 msgstr ""
8357
8358 #. type: =item
8359 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8360 msgid "C<app_epoch>"
8361 msgstr ""
8362
8363 #. type: textblock
8364 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8365 msgid ""
8366 "For package managers which use epochs, this contains the epoch of the "
8367 "package (an integer).  If unavailable, this is returned as C<0>."
8368 msgstr ""
8369
8370 #. type: =item
8371 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8372 msgid "C<app_version>"
8373 msgstr ""
8374
8375 #. type: textblock
8376 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8377 msgid ""
8378 "The version string of the application or package.  If unavailable this is "
8379 "returned as an empty string C<\"\">."
8380 msgstr ""
8381
8382 #. type: =item
8383 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
8384 msgid "C<app_release>"
8385 msgstr ""
8386
8387 #. type: textblock
8388 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
8389 msgid ""
8390 "The release string of the application or package, for package managers that "
8391 "use this.  If unavailable this is returned as an empty string C<\"\">."
8392 msgstr ""
8393
8394 #. type: =item
8395 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8396 msgid "C<app_install_path>"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8401 msgid ""
8402 "The installation path of the application (on operating systems such as "
8403 "Windows which use installation paths).  This path is in the format used by "
8404 "the guest operating system, it is not a libguestfs path."
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8409 msgid "If unavailable this is returned as an empty string C<\"\">."
8410 msgstr ""
8411
8412 #. type: =item
8413 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8414 msgid "C<app_trans_path>"
8415 msgstr ""
8416
8417 #. type: textblock
8418 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8419 msgid ""
8420 "The install path translated into a libguestfs path.  If unavailable this is "
8421 "returned as an empty string C<\"\">."
8422 msgstr ""
8423
8424 #. type: =item
8425 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
8426 msgid "C<app_publisher>"
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8431 msgid ""
8432 "The name of the publisher of the application, for package managers that use "
8433 "this.  If unavailable this is returned as an empty string C<\"\">."
8434 msgstr ""
8435
8436 #. type: =item
8437 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8438 msgid "C<app_url>"
8439 msgstr ""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8443 msgid ""
8444 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8445 "returned as an empty string C<\"\">."
8446 msgstr ""
8447
8448 #. type: =item
8449 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8450 msgid "C<app_source_package>"
8451 msgstr ""
8452
8453 #. type: textblock
8454 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8455 msgid ""
8456 "For packaging systems which support this, the name of the source package.  "
8457 "If unavailable this is returned as an empty string C<\"\">."
8458 msgstr ""
8459
8460 #. type: =item
8461 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8462 msgid "C<app_summary>"
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8467 msgid ""
8468 "A short (usually one line) description of the application or package.  If "
8469 "unavailable this is returned as an empty string C<\"\">."
8470 msgstr ""
8471
8472 #. type: =item
8473 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
8474 msgid "C<app_description>"
8475 msgstr ""
8476
8477 #. type: textblock
8478 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
8479 msgid ""
8480 "A longer description of the application or package.  If unavailable this is "
8481 "returned as an empty string C<\"\">."
8482 msgstr ""
8483
8484 #. type: =head2
8485 #: ../fish/guestfish-actions.pod:2315
8486 msgid "inspect-os"
8487 msgstr ""
8488
8489 #. type: verbatim
8490 #: ../fish/guestfish-actions.pod:2317
8491 #, no-wrap
8492 msgid ""
8493 " inspect-os\n"
8494 "\n"
8495 msgstr ""
8496
8497 #. type: textblock
8498 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
8499 msgid ""
8500 "This function uses other libguestfs functions and certain heuristics to "
8501 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8502 "for operating systems."
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
8507 msgid "The list returned is empty if no operating systems were found."
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
8512 msgid ""
8513 "If one operating system was found, then this returns a list with a single "
8514 "element, which is the name of the root filesystem of this operating system.  "
8515 "It is also possible for this function to return a list containing more than "
8516 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8517 "element being the root filesystem of one of the operating systems."
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:2332
8522 msgid ""
8523 "You can pass the root string(s) returned to other L</inspect-get-*> "
8524 "functions in order to query further information about each operating system, "
8525 "such as the name and version."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:2337
8530 msgid ""
8531 "This function uses other libguestfs features such as L</mount-ro> and "
8532 "L</umount-all> in order to mount and unmount filesystems and look at the "
8533 "contents.  This should be called with no disks currently mounted.  The "
8534 "function may also use Augeas, so any existing Augeas handle will be closed."
8535 msgstr ""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
8539 msgid ""
8540 "This function cannot decrypt encrypted disks.  The caller must do that first "
8541 "(supplying the necessary keys) if the disk is encrypted."
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547 ../fish/guestfish-actions.pod:2606
8546 msgid "See also L</list-filesystems>."
8547 msgstr ""
8548
8549 #. type: =head2
8550 #: ../fish/guestfish-actions.pod:2351
8551 msgid "is-blockdev"
8552 msgstr ""
8553
8554 #. type: verbatim
8555 #: ../fish/guestfish-actions.pod:2353
8556 #, no-wrap
8557 msgid ""
8558 " is-blockdev path\n"
8559 "\n"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
8564 msgid ""
8565 "This returns C<true> if and only if there is a block device with the given "
8566 "C<path> name."
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376 ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404 ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448 ../fish/guestfish-actions.pod:2457
8571 msgid "See also L</stat>."
8572 msgstr ""
8573
8574 #. type: =head2
8575 #: ../fish/guestfish-actions.pod:2360
8576 msgid "is-busy"
8577 msgstr ""
8578
8579 #. type: verbatim
8580 #: ../fish/guestfish-actions.pod:2362
8581 #, no-wrap
8582 msgid ""
8583 " is-busy\n"
8584 "\n"
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
8589 msgid ""
8590 "This returns true iff this handle is busy processing a command (in the "
8591 "C<BUSY> state)."
8592 msgstr ""
8593
8594 #. type: =head2
8595 #: ../fish/guestfish-actions.pod:2369
8596 msgid "is-chardev"
8597 msgstr ""
8598
8599 #. type: verbatim
8600 #: ../fish/guestfish-actions.pod:2371
8601 #, no-wrap
8602 msgid ""
8603 " is-chardev path\n"
8604 "\n"
8605 msgstr ""
8606
8607 #. type: textblock
8608 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
8609 msgid ""
8610 "This returns C<true> if and only if there is a character device with the "
8611 "given C<path> name."
8612 msgstr ""
8613
8614 #. type: =head2
8615 #: ../fish/guestfish-actions.pod:2378
8616 msgid "is-config"
8617 msgstr ""
8618
8619 #. type: verbatim
8620 #: ../fish/guestfish-actions.pod:2380
8621 #, no-wrap
8622 msgid ""
8623 " is-config\n"
8624 "\n"
8625 msgstr ""
8626
8627 #. type: textblock
8628 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
8629 msgid ""
8630 "This returns true iff this handle is being configured (in the C<CONFIG> "
8631 "state)."
8632 msgstr ""
8633
8634 #. type: =head2
8635 #: ../fish/guestfish-actions.pod:2387
8636 msgid "is-dir"
8637 msgstr ""
8638
8639 #. type: verbatim
8640 #: ../fish/guestfish-actions.pod:2389
8641 #, no-wrap
8642 msgid ""
8643 " is-dir path\n"
8644 "\n"
8645 msgstr ""
8646
8647 #. type: textblock
8648 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
8649 msgid ""
8650 "This returns C<true> if and only if there is a directory with the given "
8651 "C<path> name.  Note that it returns false for other objects like files."
8652 msgstr ""
8653
8654 #. type: =head2
8655 #: ../fish/guestfish-actions.pod:2397
8656 msgid "is-fifo"
8657 msgstr ""
8658
8659 #. type: verbatim
8660 #: ../fish/guestfish-actions.pod:2399
8661 #, no-wrap
8662 msgid ""
8663 " is-fifo path\n"
8664 "\n"
8665 msgstr ""
8666
8667 #. type: textblock
8668 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
8669 msgid ""
8670 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8671 "given C<path> name."
8672 msgstr ""
8673
8674 #. type: =head2
8675 #: ../fish/guestfish-actions.pod:2406
8676 msgid "is-file"
8677 msgstr ""
8678
8679 #. type: verbatim
8680 #: ../fish/guestfish-actions.pod:2408
8681 #, no-wrap
8682 msgid ""
8683 " is-file path\n"
8684 "\n"
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
8689 msgid ""
8690 "This returns C<true> if and only if there is a regular file with the given "
8691 "C<path> name.  Note that it returns false for other objects like "
8692 "directories."
8693 msgstr ""
8694
8695 #. type: =head2
8696 #: ../fish/guestfish-actions.pod:2416
8697 msgid "is-launching"
8698 msgstr ""
8699
8700 #. type: verbatim
8701 #: ../fish/guestfish-actions.pod:2418
8702 #, no-wrap
8703 msgid ""
8704 " is-launching\n"
8705 "\n"
8706 msgstr ""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
8710 msgid ""
8711 "This returns true iff this handle is launching the subprocess (in the "
8712 "C<LAUNCHING> state)."
8713 msgstr ""
8714
8715 #. type: =head2
8716 #: ../fish/guestfish-actions.pod:2425
8717 msgid "is-lv"
8718 msgstr ""
8719
8720 #. type: verbatim
8721 #: ../fish/guestfish-actions.pod:2427
8722 #, no-wrap
8723 msgid ""
8724 " is-lv device\n"
8725 "\n"
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
8730 msgid ""
8731 "This command tests whether C<device> is a logical volume, and returns true "
8732 "iff this is the case."
8733 msgstr ""
8734
8735 #. type: =head2
8736 #: ../fish/guestfish-actions.pod:2432
8737 msgid "is-ready"
8738 msgstr ""
8739
8740 #. type: verbatim
8741 #: ../fish/guestfish-actions.pod:2434
8742 #, no-wrap
8743 msgid ""
8744 " is-ready\n"
8745 "\n"
8746 msgstr ""
8747
8748 #. type: textblock
8749 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
8750 msgid ""
8751 "This returns true iff this handle is ready to accept commands (in the "
8752 "C<READY> state)."
8753 msgstr ""
8754
8755 #. type: =head2
8756 #: ../fish/guestfish-actions.pod:2441
8757 msgid "is-socket"
8758 msgstr ""
8759
8760 #. type: verbatim
8761 #: ../fish/guestfish-actions.pod:2443
8762 #, no-wrap
8763 msgid ""
8764 " is-socket path\n"
8765 "\n"
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
8770 msgid ""
8771 "This returns C<true> if and only if there is a Unix domain socket with the "
8772 "given C<path> name."
8773 msgstr ""
8774
8775 #. type: =head2
8776 #: ../fish/guestfish-actions.pod:2450
8777 msgid "is-symlink"
8778 msgstr ""
8779
8780 #. type: verbatim
8781 #: ../fish/guestfish-actions.pod:2452
8782 #, no-wrap
8783 msgid ""
8784 " is-symlink path\n"
8785 "\n"
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
8790 msgid ""
8791 "This returns C<true> if and only if there is a symbolic link with the given "
8792 "C<path> name."
8793 msgstr ""
8794
8795 #. type: =head2
8796 #: ../fish/guestfish-actions.pod:2459
8797 msgid "is-zero"
8798 msgstr ""
8799
8800 #. type: verbatim
8801 #: ../fish/guestfish-actions.pod:2461
8802 #, no-wrap
8803 msgid ""
8804 " is-zero path\n"
8805 "\n"
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
8810 msgid ""
8811 "This returns true iff the file exists and the file is empty or it contains "
8812 "all zero bytes."
8813 msgstr ""
8814
8815 #. type: =head2
8816 #: ../fish/guestfish-actions.pod:2466
8817 msgid "is-zero-device"
8818 msgstr ""
8819
8820 #. type: verbatim
8821 #: ../fish/guestfish-actions.pod:2468
8822 #, no-wrap
8823 msgid ""
8824 " is-zero-device device\n"
8825 "\n"
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
8830 msgid "This returns true iff the device exists and contains all zero bytes."
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
8835 msgid "Note that for large devices this can take a long time to run."
8836 msgstr ""
8837
8838 #. type: =head2
8839 #: ../fish/guestfish-actions.pod:2474
8840 msgid "kill-subprocess"
8841 msgstr ""
8842
8843 #. type: verbatim
8844 #: ../fish/guestfish-actions.pod:2476
8845 #, no-wrap
8846 msgid ""
8847 " kill-subprocess\n"
8848 "\n"
8849 msgstr ""
8850
8851 #. type: textblock
8852 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
8853 msgid "This kills the qemu subprocess.  You should never need to call this."
8854 msgstr ""
8855
8856 #. type: =head2
8857 #: ../fish/guestfish-actions.pod:2480
8858 msgid "launch"
8859 msgstr ""
8860
8861 #. type: =head2
8862 #: ../fish/guestfish-actions.pod:2482
8863 msgid "run"
8864 msgstr ""
8865
8866 #. type: verbatim
8867 #: ../fish/guestfish-actions.pod:2484
8868 #, no-wrap
8869 msgid ""
8870 " launch\n"
8871 "\n"
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
8876 msgid ""
8877 "Internally libguestfs is implemented by running a virtual machine using "
8878 "L<qemu(1)>."
8879 msgstr ""
8880
8881 #. type: textblock
8882 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
8883 msgid ""
8884 "You should call this after configuring the handle (eg. adding drives) but "
8885 "before performing any actions."
8886 msgstr ""
8887
8888 #. type: =head2
8889 #: ../fish/guestfish-actions.pod:2492
8890 msgid "lchown"
8891 msgstr ""
8892
8893 #. type: verbatim
8894 #: ../fish/guestfish-actions.pod:2494
8895 #, no-wrap
8896 msgid ""
8897 " lchown owner group path\n"
8898 "\n"
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../fish/guestfish-actions.pod:2496
8903 msgid ""
8904 "Change the file owner to C<owner> and group to C<group>.  This is like "
8905 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
8906 "the target."
8907 msgstr ""
8908
8909 #. type: =head2
8910 #: ../fish/guestfish-actions.pod:2504
8911 msgid "lgetxattr"
8912 msgstr ""
8913
8914 #. type: verbatim
8915 #: ../fish/guestfish-actions.pod:2506
8916 #, no-wrap
8917 msgid ""
8918 " lgetxattr path name\n"
8919 "\n"
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
8924 msgid ""
8925 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
8926 "is a symlink, then this call returns an extended attribute from the symlink."
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:2522
8931 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
8932 msgstr ""
8933
8934 #. type: =head2
8935 #: ../fish/guestfish-actions.pod:2524
8936 msgid "lgetxattrs"
8937 msgstr ""
8938
8939 #. type: verbatim
8940 #: ../fish/guestfish-actions.pod:2526
8941 #, no-wrap
8942 msgid ""
8943 " lgetxattrs path\n"
8944 "\n"
8945 msgstr ""
8946
8947 #. type: textblock
8948 #: ../fish/guestfish-actions.pod:2528
8949 msgid ""
8950 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
8951 "it returns the extended attributes of the link itself."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../fish/guestfish-actions.pod:2532
8956 msgid "list-9p"
8957 msgstr ""
8958
8959 #. type: verbatim
8960 #: ../fish/guestfish-actions.pod:2534
8961 #, no-wrap
8962 msgid ""
8963 " list-9p\n"
8964 "\n"
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
8969 msgid ""
8970 "List all 9p filesystems attached to the guest.  A list of mount tags is "
8971 "returned."
8972 msgstr ""
8973
8974 #. type: =head2
8975 #: ../fish/guestfish-actions.pod:2539
8976 msgid "list-devices"
8977 msgstr ""
8978
8979 #. type: verbatim
8980 #: ../fish/guestfish-actions.pod:2541
8981 #, no-wrap
8982 msgid ""
8983 " list-devices\n"
8984 "\n"
8985 msgstr ""
8986
8987 #. type: textblock
8988 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
8989 msgid "List all the block devices."
8990 msgstr ""
8991
8992 #. type: textblock
8993 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
8994 msgid "The full block device names are returned, eg. C</dev/sda>."
8995 msgstr ""
8996
8997 #. type: =head2
8998 #: ../fish/guestfish-actions.pod:2549
8999 msgid "list-dm-devices"
9000 msgstr ""
9001
9002 #. type: verbatim
9003 #: ../fish/guestfish-actions.pod:2551
9004 #, no-wrap
9005 msgid ""
9006 " list-dm-devices\n"
9007 "\n"
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
9012 msgid "List all device mapper devices."
9013 msgstr ""
9014
9015 #. type: textblock
9016 #: ../fish/guestfish-actions.pod:2555
9017 msgid ""
9018 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9019 "previous call to L</luks-open>."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:2558
9024 msgid ""
9025 "Device mapper devices which correspond to logical volumes are I<not> "
9026 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9027 msgstr ""
9028
9029 #. type: =head2
9030 #: ../fish/guestfish-actions.pod:2562
9031 msgid "list-filesystems"
9032 msgstr ""
9033
9034 #. type: verbatim
9035 #: ../fish/guestfish-actions.pod:2564
9036 #, no-wrap
9037 msgid ""
9038 " list-filesystems\n"
9039 "\n"
9040 msgstr ""
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
9044 msgid ""
9045 "This inspection command looks for filesystems on partitions, block devices "
9046 "and logical volumes, returning a list of devices containing filesystems and "
9047 "their type."
9048 msgstr ""
9049
9050 #. type: textblock
9051 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
9052 msgid ""
9053 "The return value is a hash, where the keys are the devices containing "
9054 "filesystems, and the values are the filesystem types.  For example:"
9055 msgstr ""
9056
9057 #. type: verbatim
9058 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9059 #, no-wrap
9060 msgid ""
9061 " \"/dev/sda1\" => \"ntfs\"\n"
9062 " \"/dev/sda2\" => \"ext2\"\n"
9063 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9064 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9065 "\n"
9066 msgstr ""
9067
9068 #. type: textblock
9069 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
9070 msgid ""
9071 "The value can have the special value \"unknown\", meaning the content of the "
9072 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:2583
9077 msgid ""
9078 "This command runs other libguestfs commands, which might include L</mount> "
9079 "and L</umount>, and therefore you should use this soon after launch and only "
9080 "when nothing is mounted."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:2587
9085 msgid ""
9086 "Not all of the filesystems returned will be mountable.  In particular, swap "
9087 "partitions are returned in the list.  Also this command does not check that "
9088 "each filesystem found is valid and mountable, and some filesystems might be "
9089 "mountable but require special options.  Filesystems may not all belong to a "
9090 "single logical operating system (use L</inspect-os> to look for OSes)."
9091 msgstr ""
9092
9093 #. type: =head2
9094 #: ../fish/guestfish-actions.pod:2595
9095 msgid "list-partitions"
9096 msgstr ""
9097
9098 #. type: verbatim
9099 #: ../fish/guestfish-actions.pod:2597
9100 #, no-wrap
9101 msgid ""
9102 " list-partitions\n"
9103 "\n"
9104 msgstr ""
9105
9106 #. type: textblock
9107 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
9108 msgid "List all the partitions detected on all block devices."
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
9113 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:2603
9118 msgid ""
9119 "This does not return logical volumes.  For that you will need to call "
9120 "L</lvs>."
9121 msgstr ""
9122
9123 #. type: =head2
9124 #: ../fish/guestfish-actions.pod:2608
9125 msgid "ll"
9126 msgstr ""
9127
9128 #. type: verbatim
9129 #: ../fish/guestfish-actions.pod:2610
9130 #, no-wrap
9131 msgid ""
9132 " ll directory\n"
9133 "\n"
9134 msgstr ""
9135
9136 #. type: textblock
9137 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
9138 msgid ""
9139 "List the files in C<directory> (relative to the root directory, there is no "
9140 "cwd) in the format of 'ls -la'."
9141 msgstr ""
9142
9143 #. type: textblock
9144 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
9145 msgid ""
9146 "This command is mostly useful for interactive sessions.  It is I<not> "
9147 "intended that you try to parse the output string."
9148 msgstr ""
9149
9150 #. type: =head2
9151 #: ../fish/guestfish-actions.pod:2618
9152 msgid "ln"
9153 msgstr ""
9154
9155 #. type: verbatim
9156 #: ../fish/guestfish-actions.pod:2620
9157 #, no-wrap
9158 msgid ""
9159 " ln target linkname\n"
9160 "\n"
9161 msgstr ""
9162
9163 #. type: textblock
9164 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
9165 msgid "This command creates a hard link using the C<ln> command."
9166 msgstr ""
9167
9168 #. type: =head2
9169 #: ../fish/guestfish-actions.pod:2624
9170 msgid "ln-f"
9171 msgstr ""
9172
9173 #. type: verbatim
9174 #: ../fish/guestfish-actions.pod:2626
9175 #, no-wrap
9176 msgid ""
9177 " ln-f target linkname\n"
9178 "\n"
9179 msgstr ""
9180
9181 #. type: textblock
9182 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
9183 msgid ""
9184 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9185 "option removes the link (C<linkname>) if it exists already."
9186 msgstr ""
9187
9188 #. type: =head2
9189 #: ../fish/guestfish-actions.pod:2631
9190 msgid "ln-s"
9191 msgstr ""
9192
9193 #. type: verbatim
9194 #: ../fish/guestfish-actions.pod:2633
9195 #, no-wrap
9196 msgid ""
9197 " ln-s target linkname\n"
9198 "\n"
9199 msgstr ""
9200
9201 #. type: textblock
9202 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
9203 msgid "This command creates a symbolic link using the C<ln -s> command."
9204 msgstr ""
9205
9206 #. type: =head2
9207 #: ../fish/guestfish-actions.pod:2637
9208 msgid "ln-sf"
9209 msgstr ""
9210
9211 #. type: verbatim
9212 #: ../fish/guestfish-actions.pod:2639
9213 #, no-wrap
9214 msgid ""
9215 " ln-sf target linkname\n"
9216 "\n"
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
9221 msgid ""
9222 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9223 "option removes the link (C<linkname>) if it exists already."
9224 msgstr ""
9225
9226 #. type: =head2
9227 #: ../fish/guestfish-actions.pod:2644
9228 msgid "lremovexattr"
9229 msgstr ""
9230
9231 #. type: verbatim
9232 #: ../fish/guestfish-actions.pod:2646
9233 #, no-wrap
9234 msgid ""
9235 " lremovexattr xattr path\n"
9236 "\n"
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../fish/guestfish-actions.pod:2648
9241 msgid ""
9242 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9243 "it removes an extended attribute of the link itself."
9244 msgstr ""
9245
9246 #. type: =head2
9247 #: ../fish/guestfish-actions.pod:2652
9248 msgid "ls"
9249 msgstr ""
9250
9251 #. type: verbatim
9252 #: ../fish/guestfish-actions.pod:2654
9253 #, no-wrap
9254 msgid ""
9255 " ls directory\n"
9256 "\n"
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
9261 msgid ""
9262 "List the files in C<directory> (relative to the root directory, there is no "
9263 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9264 "shown."
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:2660
9269 msgid ""
9270 "This command is mostly useful for interactive sessions.  Programs should "
9271 "probably use L</readdir> instead."
9272 msgstr ""
9273
9274 #. type: =head2
9275 #: ../fish/guestfish-actions.pod:2663
9276 msgid "lsetxattr"
9277 msgstr ""
9278
9279 #. type: verbatim
9280 #: ../fish/guestfish-actions.pod:2665
9281 #, no-wrap
9282 msgid ""
9283 " lsetxattr xattr val vallen path\n"
9284 "\n"
9285 msgstr ""
9286
9287 #. type: textblock
9288 #: ../fish/guestfish-actions.pod:2667
9289 msgid ""
9290 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9291 "sets an extended attribute of the link itself."
9292 msgstr ""
9293
9294 #. type: =head2
9295 #: ../fish/guestfish-actions.pod:2671
9296 msgid "lstat"
9297 msgstr ""
9298
9299 #. type: verbatim
9300 #: ../fish/guestfish-actions.pod:2673
9301 #, no-wrap
9302 msgid ""
9303 " lstat path\n"
9304 "\n"
9305 msgstr ""
9306
9307 #. type: textblock
9308 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
9309 msgid "Returns file information for the given C<path>."
9310 msgstr ""
9311
9312 #. type: textblock
9313 #: ../fish/guestfish-actions.pod:2677
9314 msgid ""
9315 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9316 "the link is stat-ed, not the file it refers to."
9317 msgstr ""
9318
9319 #. type: textblock
9320 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
9321 msgid "This is the same as the C<lstat(2)> system call."
9322 msgstr ""
9323
9324 #. type: =head2
9325 #: ../fish/guestfish-actions.pod:2683
9326 msgid "lstatlist"
9327 msgstr ""
9328
9329 #. type: verbatim
9330 #: ../fish/guestfish-actions.pod:2685
9331 #, no-wrap
9332 msgid ""
9333 " lstatlist path 'names ...'\n"
9334 "\n"
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:2687
9339 msgid ""
9340 "This call allows you to perform the L</lstat> operation on multiple files, "
9341 "where all files are in the directory C<path>.  C<names> is the list of files "
9342 "from this directory."
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
9347 msgid ""
9348 "On return you get a list of stat structs, with a one-to-one correspondence "
9349 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9350 "then the C<ino> field of that structure is set to C<-1>."
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../fish/guestfish-actions.pod:2696
9355 msgid ""
9356 "This call is intended for programs that want to efficiently list a directory "
9357 "contents without making many round-trips.  See also L</lxattrlist> for a "
9358 "similarly efficient call for getting extended attributes.  Very long "
9359 "directory listings might cause the protocol message size to be exceeded, "
9360 "causing this call to fail.  The caller must split up such requests into "
9361 "smaller groups of names."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:2704
9366 msgid "luks-add-key"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:2706
9371 #, no-wrap
9372 msgid ""
9373 " luks-add-key device keyslot\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
9379 msgid ""
9380 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9381 "existing key, and is used to access the device.  C<newkey> is the new key to "
9382 "add.  C<keyslot> is the key slot that will be replaced."
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:2713
9387 msgid ""
9388 "Note that if C<keyslot> already contains a key, then this command will "
9389 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766 ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
9394 msgid ""
9395 "This command has one or more key or passphrase parameters.  Guestfish will "
9396 "prompt for these separately."
9397 msgstr ""
9398
9399 #. type: =head2
9400 #: ../fish/guestfish-actions.pod:2720
9401 msgid "luks-close"
9402 msgstr ""
9403
9404 #. type: verbatim
9405 #: ../fish/guestfish-actions.pod:2722
9406 #, no-wrap
9407 msgid ""
9408 " luks-close device\n"
9409 "\n"
9410 msgstr ""
9411
9412 #. type: textblock
9413 #: ../fish/guestfish-actions.pod:2724
9414 msgid ""
9415 "This closes a LUKS device that was created earlier by L</luks-open> or "
9416 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9417 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9418 "underlying block device."
9419 msgstr ""
9420
9421 #. type: =head2
9422 #: ../fish/guestfish-actions.pod:2730
9423 msgid "luks-format"
9424 msgstr ""
9425
9426 #. type: verbatim
9427 #: ../fish/guestfish-actions.pod:2732
9428 #, no-wrap
9429 msgid ""
9430 " luks-format device keyslot\n"
9431 "\n"
9432 msgstr ""
9433
9434 #. type: textblock
9435 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
9436 msgid ""
9437 "This command erases existing data on C<device> and formats the device as a "
9438 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9439 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9440 msgstr ""
9441
9442 #. type: textblock
9443 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503 ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354 ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224 ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:7812
9444 msgid ""
9445 "B<This command is dangerous.  Without careful use you can easily destroy all "
9446 "your data>."
9447 msgstr ""
9448
9449 #. type: =head2
9450 #: ../fish/guestfish-actions.pod:2745
9451 msgid "luks-format-cipher"
9452 msgstr ""
9453
9454 #. type: verbatim
9455 #: ../fish/guestfish-actions.pod:2747
9456 #, no-wrap
9457 msgid ""
9458 " luks-format-cipher device keyslot cipher\n"
9459 "\n"
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:2749
9464 msgid ""
9465 "This command is the same as L</luks-format> but it also allows you to set "
9466 "the C<cipher> used."
9467 msgstr ""
9468
9469 #. type: =head2
9470 #: ../fish/guestfish-actions.pod:2758
9471 msgid "luks-kill-slot"
9472 msgstr ""
9473
9474 #. type: verbatim
9475 #: ../fish/guestfish-actions.pod:2760
9476 #, no-wrap
9477 msgid ""
9478 " luks-kill-slot device keyslot\n"
9479 "\n"
9480 msgstr ""
9481
9482 #. type: textblock
9483 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
9484 msgid ""
9485 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9486 "device C<device>.  C<key> must be one of the I<other> keys."
9487 msgstr ""
9488
9489 #. type: =head2
9490 #: ../fish/guestfish-actions.pod:2769
9491 msgid "luks-open"
9492 msgstr ""
9493
9494 #. type: verbatim
9495 #: ../fish/guestfish-actions.pod:2771
9496 #, no-wrap
9497 msgid ""
9498 " luks-open device mapname\n"
9499 "\n"
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
9504 msgid ""
9505 "This command opens a block device which has been encrypted according to the "
9506 "Linux Unified Key Setup (LUKS) standard."
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
9511 msgid "C<device> is the encrypted block device or partition."
9512 msgstr ""
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
9516 msgid ""
9517 "The caller must supply one of the keys associated with the LUKS block "
9518 "device, in the C<key> parameter."
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
9523 msgid ""
9524 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9525 "writes to this block device are decrypted from and encrypted to the "
9526 "underlying C<device> respectively."
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:2785
9531 msgid ""
9532 "If this block device contains LVM volume groups, then calling L</vgscan> "
9533 "followed by L</vg-activate-all> will make them visible."
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:2789
9538 msgid "Use L</list-dm-devices> to list all device mapper devices."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:2795
9543 msgid "luks-open-ro"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:2797
9548 #, no-wrap
9549 msgid ""
9550 " luks-open-ro device mapname\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:2799
9556 msgid ""
9557 "This is the same as L</luks-open> except that a read-only mapping is "
9558 "created."
9559 msgstr ""
9560
9561 #. type: =head2
9562 #: ../fish/guestfish-actions.pod:2805
9563 msgid "lvcreate"
9564 msgstr ""
9565
9566 #. type: verbatim
9567 #: ../fish/guestfish-actions.pod:2807
9568 #, no-wrap
9569 msgid ""
9570 " lvcreate logvol volgroup mbytes\n"
9571 "\n"
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
9576 msgid ""
9577 "This creates an LVM logical volume called C<logvol> on the volume group "
9578 "C<volgroup>, with C<size> megabytes."
9579 msgstr ""
9580
9581 #. type: =head2
9582 #: ../fish/guestfish-actions.pod:2812
9583 msgid "lvm-canonical-lv-name"
9584 msgstr ""
9585
9586 #. type: verbatim
9587 #: ../fish/guestfish-actions.pod:2814
9588 #, no-wrap
9589 msgid ""
9590 " lvm-canonical-lv-name lvname\n"
9591 "\n"
9592 msgstr ""
9593
9594 #. type: textblock
9595 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
9596 msgid ""
9597 "This converts alternative naming schemes for LVs that you might find to the "
9598 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9599 "C</dev/VG/LV>."
9600 msgstr ""
9601
9602 #. type: textblock
9603 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
9604 msgid ""
9605 "This command returns an error if the C<lvname> parameter does not refer to a "
9606 "logical volume."
9607 msgstr ""
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:2823
9611 msgid "See also L</is-lv>."
9612 msgstr ""
9613
9614 #. type: =head2
9615 #: ../fish/guestfish-actions.pod:2825
9616 msgid "lvm-clear-filter"
9617 msgstr ""
9618
9619 #. type: verbatim
9620 #: ../fish/guestfish-actions.pod:2827
9621 #, no-wrap
9622 msgid ""
9623 " lvm-clear-filter\n"
9624 "\n"
9625 msgstr ""
9626
9627 #. type: textblock
9628 #: ../fish/guestfish-actions.pod:2829
9629 msgid ""
9630 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9631 "block device."
9632 msgstr ""
9633
9634 #. type: textblock
9635 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
9636 msgid "This command also clears the LVM cache and performs a volume group scan."
9637 msgstr ""
9638
9639 #. type: =head2
9640 #: ../fish/guestfish-actions.pod:2835
9641 msgid "lvm-remove-all"
9642 msgstr ""
9643
9644 #. type: verbatim
9645 #: ../fish/guestfish-actions.pod:2837
9646 #, no-wrap
9647 msgid ""
9648 " lvm-remove-all\n"
9649 "\n"
9650 msgstr ""
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
9654 msgid ""
9655 "This command removes all LVM logical volumes, volume groups and physical "
9656 "volumes."
9657 msgstr ""
9658
9659 #. type: =head2
9660 #: ../fish/guestfish-actions.pod:2845
9661 msgid "lvm-set-filter"
9662 msgstr ""
9663
9664 #. type: verbatim
9665 #: ../fish/guestfish-actions.pod:2847
9666 #, no-wrap
9667 msgid ""
9668 " lvm-set-filter 'devices ...'\n"
9669 "\n"
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
9674 msgid ""
9675 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9676 "block devices in the list C<devices>, and will ignore all other attached "
9677 "block devices."
9678 msgstr ""
9679
9680 #. type: textblock
9681 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
9682 msgid ""
9683 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9684 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9685 "there are two types of duplication possible: either cloned PVs/VGs which "
9686 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9687 "same name.  In normal operation you cannot create this situation, but you "
9688 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9689 "inside the LVM metadata."
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
9694 msgid "You can filter whole block devices or individual partitions."
9695 msgstr ""
9696
9697 #. type: textblock
9698 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
9699 msgid ""
9700 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9701 "filesystem), even if you are not filtering out that VG."
9702 msgstr ""
9703
9704 #. type: =head2
9705 #: ../fish/guestfish-actions.pod:2872
9706 msgid "lvremove"
9707 msgstr ""
9708
9709 #. type: verbatim
9710 #: ../fish/guestfish-actions.pod:2874
9711 #, no-wrap
9712 msgid ""
9713 " lvremove device\n"
9714 "\n"
9715 msgstr ""
9716
9717 #. type: textblock
9718 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
9719 msgid ""
9720 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9721 "LV, such as C</dev/VG/LV>."
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
9726 msgid ""
9727 "You can also remove all LVs in a volume group by specifying the VG name, "
9728 "C</dev/VG>."
9729 msgstr ""
9730
9731 #. type: =head2
9732 #: ../fish/guestfish-actions.pod:2882
9733 msgid "lvrename"
9734 msgstr ""
9735
9736 #. type: verbatim
9737 #: ../fish/guestfish-actions.pod:2884
9738 #, no-wrap
9739 msgid ""
9740 " lvrename logvol newlogvol\n"
9741 "\n"
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
9746 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9747 msgstr ""
9748
9749 #. type: =head2
9750 #: ../fish/guestfish-actions.pod:2888
9751 msgid "lvresize"
9752 msgstr ""
9753
9754 #. type: verbatim
9755 #: ../fish/guestfish-actions.pod:2890
9756 #, no-wrap
9757 msgid ""
9758 " lvresize device mbytes\n"
9759 "\n"
9760 msgstr ""
9761
9762 #. type: textblock
9763 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
9764 msgid ""
9765 "This resizes (expands or shrinks) an existing LVM logical volume to "
9766 "C<mbytes>.  When reducing, data in the reduced part is lost."
9767 msgstr ""
9768
9769 #. type: =head2
9770 #: ../fish/guestfish-actions.pod:2896
9771 msgid "lvresize-free"
9772 msgstr ""
9773
9774 #. type: verbatim
9775 #: ../fish/guestfish-actions.pod:2898
9776 #, no-wrap
9777 msgid ""
9778 " lvresize-free lv percent\n"
9779 "\n"
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
9784 msgid ""
9785 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9786 "remaining free space in the volume group.  Commonly you would call this with "
9787 "pc = 100 which expands the logical volume as much as possible, using all "
9788 "remaining free space in the volume group."
9789 msgstr ""
9790
9791 #. type: =head2
9792 #: ../fish/guestfish-actions.pod:2906
9793 msgid "lvs"
9794 msgstr ""
9795
9796 #. type: verbatim
9797 #: ../fish/guestfish-actions.pod:2908
9798 #, no-wrap
9799 msgid ""
9800 " lvs\n"
9801 "\n"
9802 msgstr ""
9803
9804 #. type: textblock
9805 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
9806 msgid ""
9807 "List all the logical volumes detected.  This is the equivalent of the "
9808 "L<lvs(8)> command."
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
9813 msgid ""
9814 "This returns a list of the logical volume device names "
9815 "(eg. C</dev/VolGroup00/LogVol00>)."
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:2916
9820 msgid "See also L</lvs-full>, L</list-filesystems>."
9821 msgstr ""
9822
9823 #. type: =head2
9824 #: ../fish/guestfish-actions.pod:2918
9825 msgid "lvs-full"
9826 msgstr ""
9827
9828 #. type: verbatim
9829 #: ../fish/guestfish-actions.pod:2920
9830 #, no-wrap
9831 msgid ""
9832 " lvs-full\n"
9833 "\n"
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
9838 msgid ""
9839 "List all the logical volumes detected.  This is the equivalent of the "
9840 "L<lvs(8)> command.  The \"full\" version includes all fields."
9841 msgstr ""
9842
9843 #. type: =head2
9844 #: ../fish/guestfish-actions.pod:2925
9845 msgid "lvuuid"
9846 msgstr ""
9847
9848 #. type: verbatim
9849 #: ../fish/guestfish-actions.pod:2927
9850 #, no-wrap
9851 msgid ""
9852 " lvuuid device\n"
9853 "\n"
9854 msgstr ""
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
9858 msgid "This command returns the UUID of the LVM LV C<device>."
9859 msgstr ""
9860
9861 #. type: =head2
9862 #: ../fish/guestfish-actions.pod:2931
9863 msgid "lxattrlist"
9864 msgstr ""
9865
9866 #. type: verbatim
9867 #: ../fish/guestfish-actions.pod:2933
9868 #, no-wrap
9869 msgid ""
9870 " lxattrlist path 'names ...'\n"
9871 "\n"
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
9876 msgid ""
9877 "This call allows you to get the extended attributes of multiple files, where "
9878 "all files are in the directory C<path>.  C<names> is the list of files from "
9879 "this directory."
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
9884 msgid ""
9885 "On return you get a flat list of xattr structs which must be interpreted "
9886 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9887 "C<attrval> in this struct is zero-length to indicate there was an error "
9888 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9889 "number (the number of following attributes for this file, which could be "
9890 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9891 "attributes for the first named file.  This repeats for the second and "
9892 "subsequent files."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:2949
9897 msgid ""
9898 "This call is intended for programs that want to efficiently list a directory "
9899 "contents without making many round-trips.  See also L</lstatlist> for a "
9900 "similarly efficient call for getting standard stats.  Very long directory "
9901 "listings might cause the protocol message size to be exceeded, causing this "
9902 "call to fail.  The caller must split up such requests into smaller groups of "
9903 "names."
9904 msgstr ""
9905
9906 #. type: =head2
9907 #: ../fish/guestfish-actions.pod:2957
9908 msgid "mkdir"
9909 msgstr ""
9910
9911 #. type: verbatim
9912 #: ../fish/guestfish-actions.pod:2959
9913 #, no-wrap
9914 msgid ""
9915 " mkdir path\n"
9916 "\n"
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
9921 msgid "Create a directory named C<path>."
9922 msgstr ""
9923
9924 #. type: =head2
9925 #: ../fish/guestfish-actions.pod:2963
9926 msgid "mkdir-mode"
9927 msgstr ""
9928
9929 #. type: verbatim
9930 #: ../fish/guestfish-actions.pod:2965
9931 #, no-wrap
9932 msgid ""
9933 " mkdir-mode path mode\n"
9934 "\n"
9935 msgstr ""
9936
9937 #. type: textblock
9938 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
9939 msgid ""
9940 "This command creates a directory, setting the initial permissions of the "
9941 "directory to C<mode>."
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
9946 msgid ""
9947 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9948 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9949 "other ways."
9950 msgstr ""
9951
9952 #. type: textblock
9953 #: ../fish/guestfish-actions.pod:2974
9954 msgid "See also L</mkdir>, L</umask>"
9955 msgstr ""
9956
9957 #. type: =head2
9958 #: ../fish/guestfish-actions.pod:2976
9959 msgid "mkdir-p"
9960 msgstr ""
9961
9962 #. type: verbatim
9963 #: ../fish/guestfish-actions.pod:2978
9964 #, no-wrap
9965 msgid ""
9966 " mkdir-p path\n"
9967 "\n"
9968 msgstr ""
9969
9970 #. type: textblock
9971 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
9972 msgid ""
9973 "Create a directory named C<path>, creating any parent directories as "
9974 "necessary.  This is like the C<mkdir -p> shell command."
9975 msgstr ""
9976
9977 #. type: =head2
9978 #: ../fish/guestfish-actions.pod:2983
9979 msgid "mkdtemp"
9980 msgstr ""
9981
9982 #. type: verbatim
9983 #: ../fish/guestfish-actions.pod:2985
9984 #, no-wrap
9985 msgid ""
9986 " mkdtemp template\n"
9987 "\n"
9988 msgstr ""
9989
9990 #. type: textblock
9991 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
9992 msgid ""
9993 "This command creates a temporary directory.  The C<template> parameter "
9994 "should be a full pathname for the temporary directory name with the final "
9995 "six characters being \"XXXXXX\"."
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
10000 msgid ""
10001 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10002 "being suitable for Windows filesystems."
10003 msgstr ""
10004
10005 #. type: textblock
10006 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
10007 msgid "The name of the temporary directory that was created is returned."
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
10012 msgid "The temporary directory is created with mode 0700 and is owned by root."
10013 msgstr ""
10014
10015 #. type: textblock
10016 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
10017 msgid ""
10018 "The caller is responsible for deleting the temporary directory and its "
10019 "contents after use."
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
10024 msgid "See also: L<mkdtemp(3)>"
10025 msgstr ""
10026
10027 #. type: =head2
10028 #: ../fish/guestfish-actions.pod:3006
10029 msgid "mke2fs-J"
10030 msgstr ""
10031
10032 #. type: verbatim
10033 #: ../fish/guestfish-actions.pod:3008
10034 #, no-wrap
10035 msgid ""
10036 " mke2fs-J fstype blocksize device journal\n"
10037 "\n"
10038 msgstr ""
10039
10040 #. type: textblock
10041 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
10042 msgid ""
10043 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10044 "C<journal>.  It is equivalent to the command:"
10045 msgstr ""
10046
10047 #. type: verbatim
10048 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
10049 #, no-wrap
10050 msgid ""
10051 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10052 "\n"
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:3016
10057 msgid "See also L</mke2journal>."
10058 msgstr ""
10059
10060 #. type: =head2
10061 #: ../fish/guestfish-actions.pod:3018
10062 msgid "mke2fs-JL"
10063 msgstr ""
10064
10065 #. type: verbatim
10066 #: ../fish/guestfish-actions.pod:3020
10067 #, no-wrap
10068 msgid ""
10069 " mke2fs-JL fstype blocksize device label\n"
10070 "\n"
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
10075 msgid ""
10076 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10077 "the journal labeled C<label>."
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:3025
10082 msgid "See also L</mke2journal-L>."
10083 msgstr ""
10084
10085 #. type: =head2
10086 #: ../fish/guestfish-actions.pod:3027
10087 msgid "mke2fs-JU"
10088 msgstr ""
10089
10090 #. type: verbatim
10091 #: ../fish/guestfish-actions.pod:3029
10092 #, no-wrap
10093 msgid ""
10094 " mke2fs-JU fstype blocksize device uuid\n"
10095 "\n"
10096 msgstr ""
10097
10098 #. type: textblock
10099 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
10100 msgid ""
10101 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10102 "the journal with UUID C<uuid>."
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:3034
10107 msgid "See also L</mke2journal-U>."
10108 msgstr ""
10109
10110 #. type: =head2
10111 #: ../fish/guestfish-actions.pod:3036
10112 msgid "mke2journal"
10113 msgstr ""
10114
10115 #. type: verbatim
10116 #: ../fish/guestfish-actions.pod:3038
10117 #, no-wrap
10118 msgid ""
10119 " mke2journal blocksize device\n"
10120 "\n"
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
10125 msgid ""
10126 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10127 "command:"
10128 msgstr ""
10129
10130 #. type: verbatim
10131 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
10132 #, no-wrap
10133 msgid ""
10134 " mke2fs -O journal_dev -b blocksize device\n"
10135 "\n"
10136 msgstr ""
10137
10138 #. type: =head2
10139 #: ../fish/guestfish-actions.pod:3045
10140 msgid "mke2journal-L"
10141 msgstr ""
10142
10143 #. type: verbatim
10144 #: ../fish/guestfish-actions.pod:3047
10145 #, no-wrap
10146 msgid ""
10147 " mke2journal-L blocksize label device\n"
10148 "\n"
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
10153 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10154 msgstr ""
10155
10156 #. type: =head2
10157 #: ../fish/guestfish-actions.pod:3051
10158 msgid "mke2journal-U"
10159 msgstr ""
10160
10161 #. type: verbatim
10162 #: ../fish/guestfish-actions.pod:3053
10163 #, no-wrap
10164 msgid ""
10165 " mke2journal-U blocksize uuid device\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
10171 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10172 msgstr ""
10173
10174 #. type: =head2
10175 #: ../fish/guestfish-actions.pod:3057
10176 msgid "mkfifo"
10177 msgstr ""
10178
10179 #. type: verbatim
10180 #: ../fish/guestfish-actions.pod:3059
10181 #, no-wrap
10182 msgid ""
10183 " mkfifo mode path\n"
10184 "\n"
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:3061
10189 msgid ""
10190 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10191 "is just a convenient wrapper around L</mknod>."
10192 msgstr ""
10193
10194 #. type: =head2
10195 #: ../fish/guestfish-actions.pod:3067
10196 msgid "mkfs"
10197 msgstr ""
10198
10199 #. type: verbatim
10200 #: ../fish/guestfish-actions.pod:3069
10201 #, no-wrap
10202 msgid ""
10203 " mkfs fstype device\n"
10204 "\n"
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
10209 msgid ""
10210 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10211 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10212 msgstr ""
10213
10214 #. type: =head2
10215 #: ../fish/guestfish-actions.pod:3075
10216 msgid "mkfs-b"
10217 msgstr ""
10218
10219 #. type: verbatim
10220 #: ../fish/guestfish-actions.pod:3077
10221 #, no-wrap
10222 msgid ""
10223 " mkfs-b fstype blocksize device\n"
10224 "\n"
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:3079
10229 msgid ""
10230 "This call is similar to L</mkfs>, but it allows you to control the block "
10231 "size of the resulting filesystem.  Supported block sizes depend on the "
10232 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4670
10237 msgid ""
10238 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10239 "cluster size."
10240 msgstr ""
10241
10242 #. type: textblock
10243 #: ../fish/guestfish-actions.pod:3087
10244 msgid ""
10245 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10246 "instead."
10247 msgstr ""
10248
10249 #. type: =head2
10250 #: ../fish/guestfish-actions.pod:3094
10251 msgid "mkfs-opts"
10252 msgstr ""
10253
10254 #. type: verbatim
10255 #: ../fish/guestfish-actions.pod:3096
10256 #, no-wrap
10257 msgid ""
10258 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10259 "[sectorsize:..]\n"
10260 "\n"
10261 msgstr ""
10262
10263 #. type: textblock
10264 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
10265 msgid ""
10266 "This function creates a filesystem on C<device>.  The filesystem type is "
10267 "C<fstype>, for example C<ext3>."
10268 msgstr ""
10269
10270 #. type: =item
10271 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
10272 msgid "C<blocksize>"
10273 msgstr ""
10274
10275 #. type: textblock
10276 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
10277 msgid ""
10278 "The filesystem block size.  Supported block sizes depend on the filesystem "
10279 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10280 "filesystems."
10281 msgstr ""
10282
10283 #. type: textblock
10284 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
10285 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10286 msgstr ""
10287
10288 #. type: =item
10289 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
10290 msgid "C<features>"
10291 msgstr ""
10292
10293 #. type: textblock
10294 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
10295 msgid "This passes the I<-O> parameter to the external mkfs program."
10296 msgstr ""
10297
10298 #. type: textblock
10299 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10300 msgid ""
10301 "For certain filesystem types, this allows extra filesystem features to be "
10302 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10307 msgid ""
10308 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10309 "type."
10310 msgstr ""
10311
10312 #. type: =item
10313 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10314 msgid "C<inode>"
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10319 msgid ""
10320 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10321 "sets the inode size (only for ext2/3/4 filesystems at present)."
10322 msgstr ""
10323
10324 #. type: =item
10325 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
10326 msgid "C<sectorsize>"
10327 msgstr ""
10328
10329 #. type: textblock
10330 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
10331 msgid ""
10332 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10333 "sets sector size for ufs filesystem."
10334 msgstr ""
10335
10336 #. type: =head2
10337 #: ../fish/guestfish-actions.pod:3141
10338 msgid "mkmountpoint"
10339 msgstr ""
10340
10341 #. type: verbatim
10342 #: ../fish/guestfish-actions.pod:3143
10343 #, no-wrap
10344 msgid ""
10345 " mkmountpoint exemptpath\n"
10346 "\n"
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:3145
10351 msgid ""
10352 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10353 "to create extra mountpoints before mounting the first filesystem."
10354 msgstr ""
10355
10356 #. type: textblock
10357 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
10358 msgid ""
10359 "These calls are I<only> necessary in some very limited circumstances, mainly "
10360 "the case where you want to mount a mix of unrelated and/or read-only "
10361 "filesystems together."
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10366 msgid ""
10367 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10368 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10369 "inside that.  You can unpack this as follows in guestfish:"
10370 msgstr ""
10371
10372 #. type: verbatim
10373 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
10374 #, no-wrap
10375 msgid ""
10376 " add-ro Fedora-11-i686-Live.iso\n"
10377 " run\n"
10378 " mkmountpoint /cd\n"
10379 " mkmountpoint /sqsh\n"
10380 " mkmountpoint /ext3fs\n"
10381 " mount /dev/sda /cd\n"
10382 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10383 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10384 "\n"
10385 msgstr ""
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
10389 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10390 msgstr ""
10391
10392 #. type: textblock
10393 #: ../fish/guestfish-actions.pod:3169
10394 msgid ""
10395 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10396 "unexpected errors if you try to mix these calls.  It is safest to manually "
10397 "unmount filesystems and remove mountpoints after use."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:3173
10402 msgid ""
10403 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10404 "for this to work for manual mountpoints, you must ensure that the innermost "
10405 "mountpoints have the longest pathnames, as in the example code above."
10406 msgstr ""
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
10410 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10411 msgstr ""
10412
10413 #. type: textblock
10414 #: ../fish/guestfish-actions.pod:3180
10415 msgid ""
10416 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10417 "L</umount-all> to be called when the handle is closed which can also trigger "
10418 "these issues."
10419 msgstr ""
10420
10421 #. type: =head2
10422 #: ../fish/guestfish-actions.pod:3184
10423 msgid "mknod"
10424 msgstr ""
10425
10426 #. type: verbatim
10427 #: ../fish/guestfish-actions.pod:3186
10428 #, no-wrap
10429 msgid ""
10430 " mknod mode devmajor devminor path\n"
10431 "\n"
10432 msgstr ""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
10436 msgid ""
10437 "This call creates block or character special devices, or named pipes "
10438 "(FIFOs)."
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
10443 msgid ""
10444 "The C<mode> parameter should be the mode, using the standard constants.  "
10445 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10446 "used when creating block and character special devices."
10447 msgstr ""
10448
10449 #. type: textblock
10450 #: ../fish/guestfish-actions.pod:3196
10451 msgid ""
10452 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10453 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10454 "regular file).  These constants are available in the standard Linux header "
10455 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10456 "wrappers around this command which bitwise OR in the appropriate constant "
10457 "for you."
10458 msgstr ""
10459
10460 #. type: =head2
10461 #: ../fish/guestfish-actions.pod:3206
10462 msgid "mknod-b"
10463 msgstr ""
10464
10465 #. type: verbatim
10466 #: ../fish/guestfish-actions.pod:3208
10467 #, no-wrap
10468 msgid ""
10469 " mknod-b mode devmajor devminor path\n"
10470 "\n"
10471 msgstr ""
10472
10473 #. type: textblock
10474 #: ../fish/guestfish-actions.pod:3210
10475 msgid ""
10476 "This call creates a block device node called C<path> with mode C<mode> and "
10477 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10478 "wrapper around L</mknod>."
10479 msgstr ""
10480
10481 #. type: =head2
10482 #: ../fish/guestfish-actions.pod:3216
10483 msgid "mknod-c"
10484 msgstr ""
10485
10486 #. type: verbatim
10487 #: ../fish/guestfish-actions.pod:3218
10488 #, no-wrap
10489 msgid ""
10490 " mknod-c mode devmajor devminor path\n"
10491 "\n"
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:3220
10496 msgid ""
10497 "This call creates a char device node called C<path> with mode C<mode> and "
10498 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10499 "wrapper around L</mknod>."
10500 msgstr ""
10501
10502 #. type: =head2
10503 #: ../fish/guestfish-actions.pod:3226
10504 msgid "mkswap"
10505 msgstr ""
10506
10507 #. type: verbatim
10508 #: ../fish/guestfish-actions.pod:3228
10509 #, no-wrap
10510 msgid ""
10511 " mkswap device\n"
10512 "\n"
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
10517 msgid "Create a swap partition on C<device>."
10518 msgstr ""
10519
10520 #. type: =head2
10521 #: ../fish/guestfish-actions.pod:3232
10522 msgid "mkswap-L"
10523 msgstr ""
10524
10525 #. type: verbatim
10526 #: ../fish/guestfish-actions.pod:3234
10527 #, no-wrap
10528 msgid ""
10529 " mkswap-L label device\n"
10530 "\n"
10531 msgstr ""
10532
10533 #. type: textblock
10534 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
10535 msgid "Create a swap partition on C<device> with label C<label>."
10536 msgstr ""
10537
10538 #. type: textblock
10539 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
10540 msgid ""
10541 "Note that you cannot attach a swap label to a block device "
10542 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10543 "the kernel or swap tools."
10544 msgstr ""
10545
10546 #. type: =head2
10547 #: ../fish/guestfish-actions.pod:3242
10548 msgid "mkswap-U"
10549 msgstr ""
10550
10551 #. type: verbatim
10552 #: ../fish/guestfish-actions.pod:3244
10553 #, no-wrap
10554 msgid ""
10555 " mkswap-U uuid device\n"
10556 "\n"
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
10561 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10562 msgstr ""
10563
10564 #. type: =head2
10565 #: ../fish/guestfish-actions.pod:3248
10566 msgid "mkswap-file"
10567 msgstr ""
10568
10569 #. type: verbatim
10570 #: ../fish/guestfish-actions.pod:3250
10571 #, no-wrap
10572 msgid ""
10573 " mkswap-file path\n"
10574 "\n"
10575 msgstr ""
10576
10577 #. type: textblock
10578 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
10579 msgid "Create a swap file."
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:3254
10584 msgid ""
10585 "This command just writes a swap file signature to an existing file.  To "
10586 "create the file itself, use something like L</fallocate>."
10587 msgstr ""
10588
10589 #. type: =head2
10590 #: ../fish/guestfish-actions.pod:3257
10591 msgid "modprobe"
10592 msgstr ""
10593
10594 #. type: verbatim
10595 #: ../fish/guestfish-actions.pod:3259
10596 #, no-wrap
10597 msgid ""
10598 " modprobe modulename\n"
10599 "\n"
10600 msgstr ""
10601
10602 #. type: textblock
10603 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
10604 msgid "This loads a kernel module in the appliance."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
10609 msgid ""
10610 "The kernel module must have been whitelisted when libguestfs was built (see "
10611 "C<appliance/kmod.whitelist.in> in the source)."
10612 msgstr ""
10613
10614 #. type: =head2
10615 #: ../fish/guestfish-actions.pod:3266
10616 msgid "mount"
10617 msgstr ""
10618
10619 #. type: verbatim
10620 #: ../fish/guestfish-actions.pod:3268
10621 #, no-wrap
10622 msgid ""
10623 " mount device mountpoint\n"
10624 "\n"
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4923
10629 msgid ""
10630 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10631 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10632 "those block devices contain partitions, they will have the usual names "
10633 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
10638 msgid ""
10639 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10640 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10641 "mounted on directories which already exist."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4934
10646 msgid ""
10647 "The mounted filesystem is writable, if we have sufficient permissions on the "
10648 "underlying device."
10649 msgstr ""
10650
10651 #. type: textblock
10652 #: ../fish/guestfish-actions.pod:3284
10653 msgid ""
10654 "B<Important note:> When you use this call, the filesystem options C<sync> "
10655 "and C<noatime> are set implicitly.  This was originally done because we "
10656 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10657 "very large negative performance impact and negligible effect on "
10658 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
10659 "code that needs performance, and instead use L</mount-options> (use an empty "
10660 "string for the first parameter if you don't want any options)."
10661 msgstr ""
10662
10663 #. type: textblock
10664 #: ../fish/guestfish-actions.pod:3294
10665 msgid ""
10666 "This function is deprecated.  In new code, use the L</mount_options> call "
10667 "instead."
10668 msgstr ""
10669
10670 #. type: =head2
10671 #: ../fish/guestfish-actions.pod:3301
10672 msgid "mount-9p"
10673 msgstr ""
10674
10675 #. type: verbatim
10676 #: ../fish/guestfish-actions.pod:3303
10677 #, no-wrap
10678 msgid ""
10679 " mount-9p mounttag mountpoint [options:..]\n"
10680 "\n"
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
10685 msgid ""
10686 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10687 "C<mountpoint>."
10688 msgstr ""
10689
10690 #. type: textblock
10691 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
10692 msgid ""
10693 "If required, C<trans=virtio> will be automatically added to the options.  "
10694 "Any other options required can be passed in the optional C<options> "
10695 "parameter."
10696 msgstr ""
10697
10698 #. type: =head2
10699 #: ../fish/guestfish-actions.pod:3314
10700 msgid "mount-loop"
10701 msgstr ""
10702
10703 #. type: verbatim
10704 #: ../fish/guestfish-actions.pod:3316
10705 #, no-wrap
10706 msgid ""
10707 " mount-loop file mountpoint\n"
10708 "\n"
10709 msgstr ""
10710
10711 #. type: textblock
10712 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
10713 msgid ""
10714 "This command lets you mount C<file> (a filesystem image in a file) on a "
10715 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10716 "mountpoint>."
10717 msgstr ""
10718
10719 #. type: =head2
10720 #: ../fish/guestfish-actions.pod:3322
10721 msgid "mount-options"
10722 msgstr ""
10723
10724 #. type: verbatim
10725 #: ../fish/guestfish-actions.pod:3324
10726 #, no-wrap
10727 msgid ""
10728 " mount-options options device mountpoint\n"
10729 "\n"
10730 msgstr ""
10731
10732 #. type: textblock
10733 #: ../fish/guestfish-actions.pod:3326
10734 msgid ""
10735 "This is the same as the L</mount> command, but it allows you to set the "
10736 "mount options as for the L<mount(8)> I<-o> flag."
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
10741 msgid ""
10742 "If the C<options> parameter is an empty string, then no options are passed "
10743 "(all options default to whatever the filesystem uses)."
10744 msgstr ""
10745
10746 #. type: =head2
10747 #: ../fish/guestfish-actions.pod:3334
10748 msgid "mount-ro"
10749 msgstr ""
10750
10751 #. type: verbatim
10752 #: ../fish/guestfish-actions.pod:3336
10753 #, no-wrap
10754 msgid ""
10755 " mount-ro device mountpoint\n"
10756 "\n"
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:3338
10761 msgid ""
10762 "This is the same as the L</mount> command, but it mounts the filesystem with "
10763 "the read-only (I<-o ro>) flag."
10764 msgstr ""
10765
10766 #. type: =head2
10767 #: ../fish/guestfish-actions.pod:3341
10768 msgid "mount-vfs"
10769 msgstr ""
10770
10771 #. type: verbatim
10772 #: ../fish/guestfish-actions.pod:3343
10773 #, no-wrap
10774 msgid ""
10775 " mount-vfs options vfstype device mountpoint\n"
10776 "\n"
10777 msgstr ""
10778
10779 #. type: textblock
10780 #: ../fish/guestfish-actions.pod:3345
10781 msgid ""
10782 "This is the same as the L</mount> command, but it allows you to set both the "
10783 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
10784 msgstr ""
10785
10786 #. type: =head2
10787 #: ../fish/guestfish-actions.pod:3349
10788 msgid "mountpoints"
10789 msgstr ""
10790
10791 #. type: verbatim
10792 #: ../fish/guestfish-actions.pod:3351
10793 #, no-wrap
10794 msgid ""
10795 " mountpoints\n"
10796 "\n"
10797 msgstr ""
10798
10799 #. type: textblock
10800 #: ../fish/guestfish-actions.pod:3353
10801 msgid ""
10802 "This call is similar to L</mounts>.  That call returns a list of devices.  "
10803 "This one returns a hash table (map) of device name to directory where the "
10804 "device is mounted."
10805 msgstr ""
10806
10807 #. type: =head2
10808 #: ../fish/guestfish-actions.pod:3357
10809 msgid "mounts"
10810 msgstr ""
10811
10812 #. type: verbatim
10813 #: ../fish/guestfish-actions.pod:3359
10814 #, no-wrap
10815 msgid ""
10816 " mounts\n"
10817 "\n"
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
10822 msgid ""
10823 "This returns the list of currently mounted filesystems.  It returns the list "
10824 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
10829 msgid "Some internal mounts are not shown."
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:3366
10834 msgid "See also: L</mountpoints>"
10835 msgstr ""
10836
10837 #. type: =head2
10838 #: ../fish/guestfish-actions.pod:3368
10839 msgid "mv"
10840 msgstr ""
10841
10842 #. type: verbatim
10843 #: ../fish/guestfish-actions.pod:3370
10844 #, no-wrap
10845 msgid ""
10846 " mv src dest\n"
10847 "\n"
10848 msgstr ""
10849
10850 #. type: textblock
10851 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
10852 msgid ""
10853 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10854 "destination filename or destination directory."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../fish/guestfish-actions.pod:3375
10859 msgid "ntfs-3g-probe"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../fish/guestfish-actions.pod:3377
10864 #, no-wrap
10865 msgid ""
10866 " ntfs-3g-probe true|false device\n"
10867 "\n"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
10872 msgid ""
10873 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10874 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10875 "read-write, and some cannot be mounted at all)."
10876 msgstr ""
10877
10878 #. type: textblock
10879 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
10880 msgid ""
10881 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10882 "can be mounted read-write.  Set it to false if you want to test if the "
10883 "volume can be mounted read-only."
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
10888 msgid ""
10889 "The return value is an integer which C<0> if the operation would succeed, or "
10890 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10891 msgstr ""
10892
10893 #. type: =head2
10894 #: ../fish/guestfish-actions.pod:3391
10895 msgid "ntfsresize"
10896 msgstr ""
10897
10898 #. type: verbatim
10899 #: ../fish/guestfish-actions.pod:3393
10900 #, no-wrap
10901 msgid ""
10902 " ntfsresize device\n"
10903 "\n"
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5191
10908 msgid ""
10909 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10910 "size of the underlying device."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5155
10915 msgid ""
10916 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
10917 "consistency check (for safety).  You have to boot into Windows to perform "
10918 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
10919 "resize filesystems which have been marked in this way.  So in effect it is "
10920 "not possible to call ntfsresize multiple times on a single filesystem "
10921 "without booting into Windows between each resize."
10922 msgstr ""
10923
10924 #. type: textblock
10925 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445 ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5217
10926 msgid "See also L<ntfsresize(8)>."
10927 msgstr ""
10928
10929 #. type: textblock
10930 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
10931 msgid ""
10932 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
10933 "instead."
10934 msgstr ""
10935
10936 #. type: =head2
10937 #: ../fish/guestfish-actions.pod:3415
10938 msgid "ntfsresize-opts"
10939 msgstr ""
10940
10941 #. type: verbatim
10942 #: ../fish/guestfish-actions.pod:3417
10943 #, no-wrap
10944 msgid ""
10945 " ntfsresize-opts device [size:..] [force:..]\n"
10946 "\n"
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
10951 msgid ""
10952 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
10953 "resized to fit the container (eg. partition)."
10954 msgstr ""
10955
10956 #. type: =item
10957 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
10958 msgid "C<force>"
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
10963 msgid ""
10964 "If this option is true, then force the resize of the filesystem even if the "
10965 "filesystem is marked as requiring a consistency check."
10966 msgstr ""
10967
10968 #. type: textblock
10969 #: ../fish/guestfish-actions.pod:3436
10970 msgid ""
10971 "After the resize operation, the filesystem is always marked as requiring a "
10972 "consistency check (for safety).  You have to boot into Windows to perform "
10973 "this check and clear this condition.  If you I<don't> set the C<force> "
10974 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
10975 "a single filesystem without booting into Windows between each resize."
10976 msgstr ""
10977
10978 #. type: =head2
10979 #: ../fish/guestfish-actions.pod:3449
10980 msgid "ntfsresize-size"
10981 msgstr ""
10982
10983 #. type: verbatim
10984 #: ../fish/guestfish-actions.pod:3451
10985 #, no-wrap
10986 msgid ""
10987 " ntfsresize-size device size\n"
10988 "\n"
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:3453
10993 msgid ""
10994 "This command is the same as L</ntfsresize> except that it allows you to "
10995 "specify the new size (in bytes) explicitly."
10996 msgstr ""
10997
10998 #. type: =head2
10999 #: ../fish/guestfish-actions.pod:3463
11000 msgid "part-add"
11001 msgstr ""
11002
11003 #. type: verbatim
11004 #: ../fish/guestfish-actions.pod:3465
11005 #, no-wrap
11006 msgid ""
11007 " part-add device prlogex startsect endsect\n"
11008 "\n"
11009 msgstr ""
11010
11011 #. type: textblock
11012 #: ../fish/guestfish-actions.pod:3467
11013 msgid ""
11014 "This command adds a partition to C<device>.  If there is no partition table "
11015 "on the device, call L</part-init> first."
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11020 msgid ""
11021 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11022 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11023 "C<logical>) and C<e> (or C<extended>) partition types."
11024 msgstr ""
11025
11026 #. type: textblock
11027 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
11028 msgid ""
11029 "C<startsect> and C<endsect> are the start and end of the partition in "
11030 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11031 "from the end of the disk (C<-1> is the last sector)."
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../fish/guestfish-actions.pod:3479
11036 msgid ""
11037 "Creating a partition which covers the whole disk is not so easy.  Use "
11038 "L</part-disk> to do that."
11039 msgstr ""
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:3482
11043 msgid "part-del"
11044 msgstr ""
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:3484
11048 #, no-wrap
11049 msgid ""
11050 " part-del device partnum\n"
11051 "\n"
11052 msgstr ""
11053
11054 #. type: textblock
11055 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
11056 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
11061 msgid ""
11062 "Note that in the case of MBR partitioning, deleting an extended partition "
11063 "also deletes any logical partitions it contains."
11064 msgstr ""
11065
11066 #. type: =head2
11067 #: ../fish/guestfish-actions.pod:3492
11068 msgid "part-disk"
11069 msgstr ""
11070
11071 #. type: verbatim
11072 #: ../fish/guestfish-actions.pod:3494
11073 #, no-wrap
11074 msgid ""
11075 " part-disk device parttype\n"
11076 "\n"
11077 msgstr ""
11078
11079 #. type: textblock
11080 #: ../fish/guestfish-actions.pod:3496
11081 msgid ""
11082 "This command is simply a combination of L</part-init> followed by "
11083 "L</part-add> to create a single primary partition covering the whole disk."
11084 msgstr ""
11085
11086 #. type: textblock
11087 #: ../fish/guestfish-actions.pod:3500
11088 msgid ""
11089 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11090 "possible values are described in L</part-init>."
11091 msgstr ""
11092
11093 #. type: =head2
11094 #: ../fish/guestfish-actions.pod:3506
11095 msgid "part-get-bootable"
11096 msgstr ""
11097
11098 #. type: verbatim
11099 #: ../fish/guestfish-actions.pod:3508
11100 #, no-wrap
11101 msgid ""
11102 " part-get-bootable device partnum\n"
11103 "\n"
11104 msgstr ""
11105
11106 #. type: textblock
11107 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
11108 msgid ""
11109 "This command returns true if the partition C<partnum> on C<device> has the "
11110 "bootable flag set."
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:3513
11115 msgid "See also L</part-set-bootable>."
11116 msgstr ""
11117
11118 #. type: =head2
11119 #: ../fish/guestfish-actions.pod:3515
11120 msgid "part-get-mbr-id"
11121 msgstr ""
11122
11123 #. type: verbatim
11124 #: ../fish/guestfish-actions.pod:3517
11125 #, no-wrap
11126 msgid ""
11127 " part-get-mbr-id device partnum\n"
11128 "\n"
11129 msgstr ""
11130
11131 #. type: textblock
11132 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
11133 msgid ""
11134 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11135 "partition C<partnum>."
11136 msgstr ""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
11140 msgid ""
11141 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11142 "undefined results for other partition table types (see "
11143 "L</part-get-parttype>)."
11144 msgstr ""
11145
11146 #. type: =head2
11147 #: ../fish/guestfish-actions.pod:3526
11148 msgid "part-get-parttype"
11149 msgstr ""
11150
11151 #. type: verbatim
11152 #: ../fish/guestfish-actions.pod:3528
11153 #, no-wrap
11154 msgid ""
11155 " part-get-parttype device\n"
11156 "\n"
11157 msgstr ""
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
11161 msgid ""
11162 "This command examines the partition table on C<device> and returns the "
11163 "partition table type (format) being used."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:3533
11168 msgid ""
11169 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11170 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11171 "possible, although unusual.  See L</part-init> for a full list."
11172 msgstr ""
11173
11174 #. type: =head2
11175 #: ../fish/guestfish-actions.pod:3538
11176 msgid "part-init"
11177 msgstr ""
11178
11179 #. type: verbatim
11180 #: ../fish/guestfish-actions.pod:3540
11181 #, no-wrap
11182 msgid ""
11183 " part-init device parttype\n"
11184 "\n"
11185 msgstr ""
11186
11187 #. type: textblock
11188 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
11189 msgid ""
11190 "This creates an empty partition table on C<device> of one of the partition "
11191 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11192 "(for large disks)."
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:3546
11197 msgid ""
11198 "Initially there are no partitions.  Following this, you should call "
11199 "L</part-add> for each partition required."
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
11204 msgid "Possible values for C<parttype> are:"
11205 msgstr ""
11206
11207 #. type: =item
11208 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
11209 msgid "B<efi>"
11210 msgstr ""
11211
11212 #. type: =item
11213 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
11214 msgid "B<gpt>"
11215 msgstr ""
11216
11217 #. type: textblock
11218 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
11219 msgid "Intel EFI / GPT partition table."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
11224 msgid ""
11225 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11226 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11227 "the C<mbr> format."
11228 msgstr ""
11229
11230 #. type: =item
11231 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
11232 msgid "B<mbr>"
11233 msgstr ""
11234
11235 #. type: =item
11236 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
11237 msgid "B<msdos>"
11238 msgstr ""
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
11242 msgid ""
11243 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11244 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11245 "TB.  For large disks we recommend using C<gpt>."
11246 msgstr ""
11247
11248 #. type: textblock
11249 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11250 msgid "Other partition table types that may work but are not supported include:"
11251 msgstr ""
11252
11253 #. type: =item
11254 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11255 msgid "B<aix>"
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11260 msgid "AIX disk labels."
11261 msgstr ""
11262
11263 #. type: =item
11264 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11265 msgid "B<amiga>"
11266 msgstr ""
11267
11268 #. type: =item
11269 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11270 msgid "B<rdb>"
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11275 msgid "Amiga \"Rigid Disk Block\" format."
11276 msgstr ""
11277
11278 #. type: =item
11279 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11280 msgid "B<bsd>"
11281 msgstr ""
11282
11283 #. type: textblock
11284 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11285 msgid "BSD disk labels."
11286 msgstr ""
11287
11288 #. type: =item
11289 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11290 msgid "B<dasd>"
11291 msgstr ""
11292
11293 #. type: textblock
11294 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
11295 msgid "DASD, used on IBM mainframes."
11296 msgstr ""
11297
11298 #. type: =item
11299 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
11300 msgid "B<dvh>"
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
11305 msgid "MIPS/SGI volumes."
11306 msgstr ""
11307
11308 #. type: =item
11309 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11310 msgid "B<mac>"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11315 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11316 msgstr ""
11317
11318 #. type: =item
11319 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11320 msgid "B<pc98>"
11321 msgstr ""
11322
11323 #. type: textblock
11324 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11325 msgid "NEC PC-98 format, common in Japan apparently."
11326 msgstr ""
11327
11328 #. type: =item
11329 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11330 msgid "B<sun>"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11335 msgid "Sun disk labels."
11336 msgstr ""
11337
11338 #. type: =head2
11339 #: ../fish/guestfish-actions.pod:3615
11340 msgid "part-list"
11341 msgstr ""
11342
11343 #. type: verbatim
11344 #: ../fish/guestfish-actions.pod:3617
11345 #, no-wrap
11346 msgid ""
11347 " part-list device\n"
11348 "\n"
11349 msgstr ""
11350
11351 #. type: textblock
11352 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
11353 msgid ""
11354 "This command parses the partition table on C<device> and returns the list of "
11355 "partitions found."
11356 msgstr ""
11357
11358 #. type: textblock
11359 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
11360 msgid "The fields in the returned structure are:"
11361 msgstr ""
11362
11363 #. type: =item
11364 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
11365 msgid "B<part_num>"
11366 msgstr ""
11367
11368 #. type: textblock
11369 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
11370 msgid "Partition number, counting from 1."
11371 msgstr ""
11372
11373 #. type: =item
11374 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11375 msgid "B<part_start>"
11376 msgstr ""
11377
11378 #. type: textblock
11379 #: ../fish/guestfish-actions.pod:3632
11380 msgid ""
11381 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11382 "the device's sector size, see L</blockdev-getss>."
11383 msgstr ""
11384
11385 #. type: =item
11386 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
11387 msgid "B<part_end>"
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
11392 msgid "End of the partition in bytes."
11393 msgstr ""
11394
11395 #. type: =item
11396 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
11397 msgid "B<part_size>"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11402 msgid "Size of the partition in bytes."
11403 msgstr ""
11404
11405 #. type: =head2
11406 #: ../fish/guestfish-actions.pod:3645
11407 msgid "part-set-bootable"
11408 msgstr ""
11409
11410 #. type: verbatim
11411 #: ../fish/guestfish-actions.pod:3647
11412 #, no-wrap
11413 msgid ""
11414 " part-set-bootable device partnum true|false\n"
11415 "\n"
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
11420 msgid ""
11421 "This sets the bootable flag on partition numbered C<partnum> on device "
11422 "C<device>.  Note that partitions are numbered from 1."
11423 msgstr ""
11424
11425 #. type: textblock
11426 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
11427 msgid ""
11428 "The bootable flag is used by some operating systems (notably Windows) to "
11429 "determine which partition to boot from.  It is by no means universally "
11430 "recognized."
11431 msgstr ""
11432
11433 #. type: =head2
11434 #: ../fish/guestfish-actions.pod:3656
11435 msgid "part-set-mbr-id"
11436 msgstr ""
11437
11438 #. type: verbatim
11439 #: ../fish/guestfish-actions.pod:3658
11440 #, no-wrap
11441 msgid ""
11442 " part-set-mbr-id device partnum idbyte\n"
11443 "\n"
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
11448 msgid ""
11449 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11450 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11451 "documentation are in fact hexadecimal numbers, but usually documented "
11452 "without any leading \"0x\" which might be confusing."
11453 msgstr ""
11454
11455 #. type: =head2
11456 #: ../fish/guestfish-actions.pod:3670
11457 msgid "part-set-name"
11458 msgstr ""
11459
11460 #. type: verbatim
11461 #: ../fish/guestfish-actions.pod:3672
11462 #, no-wrap
11463 msgid ""
11464 " part-set-name device partnum name\n"
11465 "\n"
11466 msgstr ""
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
11470 msgid ""
11471 "This sets the partition name on partition numbered C<partnum> on device "
11472 "C<device>.  Note that partitions are numbered from 1."
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
11477 msgid ""
11478 "The partition name can only be set on certain types of partition table.  "
11479 "This works on C<gpt> but not on C<mbr> partitions."
11480 msgstr ""
11481
11482 #. type: =head2
11483 #: ../fish/guestfish-actions.pod:3680
11484 msgid "part-to-dev"
11485 msgstr ""
11486
11487 #. type: verbatim
11488 #: ../fish/guestfish-actions.pod:3682
11489 #, no-wrap
11490 msgid ""
11491 " part-to-dev partition\n"
11492 "\n"
11493 msgstr ""
11494
11495 #. type: textblock
11496 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
11497 msgid ""
11498 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11499 "partition number, returning the device name (eg. \"/dev/sdb\")."
11500 msgstr ""
11501
11502 #. type: textblock
11503 #: ../fish/guestfish-actions.pod:3688
11504 msgid ""
11505 "The named partition must exist, for example as a string returned from "
11506 "L</list-partitions>."
11507 msgstr ""
11508
11509 #. type: =head2
11510 #: ../fish/guestfish-actions.pod:3691
11511 msgid "ping-daemon"
11512 msgstr ""
11513
11514 #. type: verbatim
11515 #: ../fish/guestfish-actions.pod:3693
11516 #, no-wrap
11517 msgid ""
11518 " ping-daemon\n"
11519 "\n"
11520 msgstr ""
11521
11522 #. type: textblock
11523 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
11524 msgid ""
11525 "This is a test probe into the guestfs daemon running inside the qemu "
11526 "subprocess.  Calling this function checks that the daemon responds to the "
11527 "ping message, without affecting the daemon or attached block device(s) in "
11528 "any other way."
11529 msgstr ""
11530
11531 #. type: =head2
11532 #: ../fish/guestfish-actions.pod:3700
11533 msgid "pread"
11534 msgstr ""
11535
11536 #. type: verbatim
11537 #: ../fish/guestfish-actions.pod:3702
11538 #, no-wrap
11539 msgid ""
11540 " pread path count offset\n"
11541 "\n"
11542 msgstr ""
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
11546 msgid ""
11547 "This command lets you read part of a file.  It reads C<count> bytes of the "
11548 "file, starting at C<offset>, from file C<path>."
11549 msgstr ""
11550
11551 #. type: textblock
11552 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722 ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
11553 msgid ""
11554 "This may read fewer bytes than requested.  For further details see the "
11555 "L<pread(2)> system call."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3710
11560 msgid "See also L</pwrite>, L</pread-device>."
11561 msgstr ""
11562
11563 #. type: =head2
11564 #: ../fish/guestfish-actions.pod:3715
11565 msgid "pread-device"
11566 msgstr ""
11567
11568 #. type: verbatim
11569 #: ../fish/guestfish-actions.pod:3717
11570 #, no-wrap
11571 msgid ""
11572 " pread-device device count offset\n"
11573 "\n"
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
11578 msgid ""
11579 "This command lets you read part of a file.  It reads C<count> bytes of "
11580 "C<device>, starting at C<offset>."
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../fish/guestfish-actions.pod:3725
11585 msgid "See also L</pread>."
11586 msgstr ""
11587
11588 #. type: =head2
11589 #: ../fish/guestfish-actions.pod:3730
11590 msgid "pvcreate"
11591 msgstr ""
11592
11593 #. type: verbatim
11594 #: ../fish/guestfish-actions.pod:3732
11595 #, no-wrap
11596 msgid ""
11597 " pvcreate device\n"
11598 "\n"
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
11603 msgid ""
11604 "This creates an LVM physical volume on the named C<device>, where C<device> "
11605 "should usually be a partition name such as C</dev/sda1>."
11606 msgstr ""
11607
11608 #. type: =head2
11609 #: ../fish/guestfish-actions.pod:3738
11610 msgid "pvremove"
11611 msgstr ""
11612
11613 #. type: verbatim
11614 #: ../fish/guestfish-actions.pod:3740
11615 #, no-wrap
11616 msgid ""
11617 " pvremove device\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
11623 msgid ""
11624 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11625 "it."
11626 msgstr ""
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
11630 msgid ""
11631 "The implementation uses the C<pvremove> command which refuses to wipe "
11632 "physical volumes that contain any volume groups, so you have to remove those "
11633 "first."
11634 msgstr ""
11635
11636 #. type: =head2
11637 #: ../fish/guestfish-actions.pod:3749
11638 msgid "pvresize"
11639 msgstr ""
11640
11641 #. type: verbatim
11642 #: ../fish/guestfish-actions.pod:3751
11643 #, no-wrap
11644 msgid ""
11645 " pvresize device\n"
11646 "\n"
11647 msgstr ""
11648
11649 #. type: textblock
11650 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
11651 msgid ""
11652 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11653 "the new size of the underlying device."
11654 msgstr ""
11655
11656 #. type: =head2
11657 #: ../fish/guestfish-actions.pod:3756
11658 msgid "pvresize-size"
11659 msgstr ""
11660
11661 #. type: verbatim
11662 #: ../fish/guestfish-actions.pod:3758
11663 #, no-wrap
11664 msgid ""
11665 " pvresize-size device size\n"
11666 "\n"
11667 msgstr ""
11668
11669 #. type: textblock
11670 #: ../fish/guestfish-actions.pod:3760
11671 msgid ""
11672 "This command is the same as L</pvresize> except that it allows you to "
11673 "specify the new size (in bytes) explicitly."
11674 msgstr ""
11675
11676 #. type: =head2
11677 #: ../fish/guestfish-actions.pod:3763
11678 msgid "pvs"
11679 msgstr ""
11680
11681 #. type: verbatim
11682 #: ../fish/guestfish-actions.pod:3765
11683 #, no-wrap
11684 msgid ""
11685 " pvs\n"
11686 "\n"
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
11691 msgid ""
11692 "List all the physical volumes detected.  This is the equivalent of the "
11693 "L<pvs(8)> command."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
11698 msgid ""
11699 "This returns a list of just the device names that contain PVs "
11700 "(eg. C</dev/sda2>)."
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:3773
11705 msgid "See also L</pvs-full>."
11706 msgstr ""
11707
11708 #. type: =head2
11709 #: ../fish/guestfish-actions.pod:3775
11710 msgid "pvs-full"
11711 msgstr ""
11712
11713 #. type: verbatim
11714 #: ../fish/guestfish-actions.pod:3777
11715 #, no-wrap
11716 msgid ""
11717 " pvs-full\n"
11718 "\n"
11719 msgstr ""
11720
11721 #. type: textblock
11722 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
11723 msgid ""
11724 "List all the physical volumes detected.  This is the equivalent of the "
11725 "L<pvs(8)> command.  The \"full\" version includes all fields."
11726 msgstr ""
11727
11728 #. type: =head2
11729 #: ../fish/guestfish-actions.pod:3782
11730 msgid "pvuuid"
11731 msgstr ""
11732
11733 #. type: verbatim
11734 #: ../fish/guestfish-actions.pod:3784
11735 #, no-wrap
11736 msgid ""
11737 " pvuuid device\n"
11738 "\n"
11739 msgstr ""
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
11743 msgid "This command returns the UUID of the LVM PV C<device>."
11744 msgstr ""
11745
11746 #. type: =head2
11747 #: ../fish/guestfish-actions.pod:3788
11748 msgid "pwrite"
11749 msgstr ""
11750
11751 #. type: verbatim
11752 #: ../fish/guestfish-actions.pod:3790
11753 #, no-wrap
11754 msgid ""
11755 " pwrite path content offset\n"
11756 "\n"
11757 msgstr ""
11758
11759 #. type: textblock
11760 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
11761 msgid ""
11762 "This command writes to part of a file.  It writes the data buffer C<content> "
11763 "to the file C<path> starting at offset C<offset>."
11764 msgstr ""
11765
11766 #. type: textblock
11767 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
11768 msgid ""
11769 "This command implements the L<pwrite(2)> system call, and like that system "
11770 "call it may not write the full data requested.  The return value is the "
11771 "number of bytes that were actually written to the file.  This could even be "
11772 "0, although short writes are unlikely for regular files in ordinary "
11773 "circumstances."
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:3801
11778 msgid "See also L</pread>, L</pwrite-device>."
11779 msgstr ""
11780
11781 #. type: =head2
11782 #: ../fish/guestfish-actions.pod:3806
11783 msgid "pwrite-device"
11784 msgstr ""
11785
11786 #. type: verbatim
11787 #: ../fish/guestfish-actions.pod:3808
11788 #, no-wrap
11789 msgid ""
11790 " pwrite-device device content offset\n"
11791 "\n"
11792 msgstr ""
11793
11794 #. type: textblock
11795 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
11796 msgid ""
11797 "This command writes to part of a device.  It writes the data buffer "
11798 "C<content> to C<device> starting at offset C<offset>."
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
11803 msgid ""
11804 "This command implements the L<pwrite(2)> system call, and like that system "
11805 "call it may not write the full data requested (although short writes to disk "
11806 "devices and partitions are probably impossible with standard Linux kernels)."
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3818
11811 msgid "See also L</pwrite>."
11812 msgstr ""
11813
11814 #. type: =head2
11815 #: ../fish/guestfish-actions.pod:3823
11816 msgid "read-file"
11817 msgstr ""
11818
11819 #. type: verbatim
11820 #: ../fish/guestfish-actions.pod:3825
11821 #, no-wrap
11822 msgid ""
11823 " read-file path\n"
11824 "\n"
11825 msgstr ""
11826
11827 #. type: textblock
11828 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
11829 msgid "This calls returns the contents of the file C<path> as a buffer."
11830 msgstr ""
11831
11832 #. type: textblock
11833 #: ../fish/guestfish-actions.pod:3830
11834 msgid ""
11835 "Unlike L</cat>, this function can correctly handle files that contain "
11836 "embedded ASCII NUL characters.  However unlike L</download>, this function "
11837 "is limited in the total size of file that can be handled."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:3838
11842 msgid "read-lines"
11843 msgstr ""
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:3840
11847 #, no-wrap
11848 msgid ""
11849 " read-lines path\n"
11850 "\n"
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
11855 msgid ""
11856 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11857 "C<CRLF> character sequences are I<not> returned."
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:3847
11862 msgid ""
11863 "Note that this function cannot correctly handle binary files (specifically, "
11864 "files containing C<\\0> character which is treated as end of line).  For "
11865 "those you need to use the L</read-file> function which has a more complex "
11866 "interface."
11867 msgstr ""
11868
11869 #. type: =head2
11870 #: ../fish/guestfish-actions.pod:3852
11871 msgid "readdir"
11872 msgstr ""
11873
11874 #. type: verbatim
11875 #: ../fish/guestfish-actions.pod:3854
11876 #, no-wrap
11877 msgid ""
11878 " readdir dir\n"
11879 "\n"
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
11884 msgid "This returns the list of directory entries in directory C<dir>."
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
11889 msgid ""
11890 "All entries in the directory are returned, including C<.> and C<..>.  The "
11891 "entries are I<not> sorted, but returned in the same order as the underlying "
11892 "filesystem."
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
11897 msgid ""
11898 "Also this call returns basic file type information about each file.  The "
11899 "C<ftyp> field will contain one of the following characters:"
11900 msgstr ""
11901
11902 #. type: =item
11903 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
11904 msgid "'b'"
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
11909 msgid "Block special"
11910 msgstr ""
11911
11912 #. type: =item
11913 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
11914 msgid "'c'"
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
11919 msgid "Char special"
11920 msgstr ""
11921
11922 #. type: =item
11923 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
11924 msgid "'d'"
11925 msgstr ""
11926
11927 #. type: textblock
11928 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
11929 msgid "Directory"
11930 msgstr ""
11931
11932 #. type: =item
11933 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
11934 msgid "'f'"
11935 msgstr ""
11936
11937 #. type: textblock
11938 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
11939 msgid "FIFO (named pipe)"
11940 msgstr ""
11941
11942 #. type: =item
11943 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
11944 msgid "'l'"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
11949 msgid "Symbolic link"
11950 msgstr ""
11951
11952 #. type: =item
11953 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
11954 msgid "'r'"
11955 msgstr ""
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
11959 msgid "Regular file"
11960 msgstr ""
11961
11962 #. type: =item
11963 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
11964 msgid "'s'"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
11969 msgid "Socket"
11970 msgstr ""
11971
11972 #. type: =item
11973 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
11974 msgid "'u'"
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
11979 msgid "Unknown file type"
11980 msgstr ""
11981
11982 #. type: =item
11983 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
11984 msgid "'?'"
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
11989 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:3906
11994 msgid ""
11995 "This function is primarily intended for use by programs.  To get a simple "
11996 "list of names, use L</ls>.  To get a printable directory for human "
11997 "consumption, use L</ll>."
11998 msgstr ""
11999
12000 #. type: =head2
12001 #: ../fish/guestfish-actions.pod:3910
12002 msgid "readlink"
12003 msgstr ""
12004
12005 #. type: verbatim
12006 #: ../fish/guestfish-actions.pod:3912
12007 #, no-wrap
12008 msgid ""
12009 " readlink path\n"
12010 "\n"
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
12015 msgid "This command reads the target of a symbolic link."
12016 msgstr ""
12017
12018 #. type: =head2
12019 #: ../fish/guestfish-actions.pod:3916
12020 msgid "readlinklist"
12021 msgstr ""
12022
12023 #. type: verbatim
12024 #: ../fish/guestfish-actions.pod:3918
12025 #, no-wrap
12026 msgid ""
12027 " readlinklist path 'names ...'\n"
12028 "\n"
12029 msgstr ""
12030
12031 #. type: textblock
12032 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
12033 msgid ""
12034 "This call allows you to do a C<readlink> operation on multiple files, where "
12035 "all files are in the directory C<path>.  C<names> is the list of files from "
12036 "this directory."
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
12041 msgid ""
12042 "On return you get a list of strings, with a one-to-one correspondence to the "
12043 "C<names> list.  Each string is the value of the symbolic link."
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
12048 msgid ""
12049 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12050 "result string is the empty string C<\"\">.  However the whole operation is "
12051 "completed even if there were C<readlink(2)> errors, and so you can call this "
12052 "function with names where you don't know if they are symbolic links already "
12053 "(albeit slightly less efficient)."
12054 msgstr ""
12055
12056 #. type: textblock
12057 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
12058 msgid ""
12059 "This call is intended for programs that want to efficiently list a directory "
12060 "contents without making many round-trips.  Very long directory listings "
12061 "might cause the protocol message size to be exceeded, causing this call to "
12062 "fail.  The caller must split up such requests into smaller groups of names."
12063 msgstr ""
12064
12065 #. type: =head2
12066 #: ../fish/guestfish-actions.pod:3942
12067 msgid "realpath"
12068 msgstr ""
12069
12070 #. type: verbatim
12071 #: ../fish/guestfish-actions.pod:3944
12072 #, no-wrap
12073 msgid ""
12074 " realpath path\n"
12075 "\n"
12076 msgstr ""
12077
12078 #. type: textblock
12079 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
12080 msgid ""
12081 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12082 "has no C<.>, C<..> or symbolic link path elements."
12083 msgstr ""
12084
12085 #. type: =head2
12086 #: ../fish/guestfish-actions.pod:3949
12087 msgid "removexattr"
12088 msgstr ""
12089
12090 #. type: verbatim
12091 #: ../fish/guestfish-actions.pod:3951
12092 #, no-wrap
12093 msgid ""
12094 " removexattr xattr path\n"
12095 "\n"
12096 msgstr ""
12097
12098 #. type: textblock
12099 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
12100 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:3956
12105 msgid "See also: L</lremovexattr>, L<attr(5)>."
12106 msgstr ""
12107
12108 #. type: =head2
12109 #: ../fish/guestfish-actions.pod:3958
12110 msgid "resize2fs"
12111 msgstr ""
12112
12113 #. type: verbatim
12114 #: ../fish/guestfish-actions.pod:3960
12115 #, no-wrap
12116 msgid ""
12117 " resize2fs device\n"
12118 "\n"
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
12123 msgid ""
12124 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12125 "underlying device."
12126 msgstr ""
12127
12128 #. type: textblock
12129 #: ../fish/guestfish-actions.pod:3965
12130 msgid ""
12131 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12132 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12133 "gives an error about this and sometimes not.  In any case, it is always safe "
12134 "to call L</e2fsck-f> before calling this function."
12135 msgstr ""
12136
12137 #. type: =head2
12138 #: ../fish/guestfish-actions.pod:3971
12139 msgid "resize2fs-M"
12140 msgstr ""
12141
12142 #. type: verbatim
12143 #: ../fish/guestfish-actions.pod:3973
12144 #, no-wrap
12145 msgid ""
12146 " resize2fs-M device\n"
12147 "\n"
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:3975
12152 msgid ""
12153 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12154 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12155 "command."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:3979
12160 msgid ""
12161 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12162 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12163 "multiplied together, give the resulting size of the minimal filesystem in "
12164 "bytes."
12165 msgstr ""
12166
12167 #. type: =head2
12168 #: ../fish/guestfish-actions.pod:3984
12169 msgid "resize2fs-size"
12170 msgstr ""
12171
12172 #. type: verbatim
12173 #: ../fish/guestfish-actions.pod:3986
12174 #, no-wrap
12175 msgid ""
12176 " resize2fs-size device size\n"
12177 "\n"
12178 msgstr ""
12179
12180 #. type: textblock
12181 #: ../fish/guestfish-actions.pod:3988
12182 msgid ""
12183 "This command is the same as L</resize2fs> except that it allows you to "
12184 "specify the new size (in bytes) explicitly."
12185 msgstr ""
12186
12187 #. type: =head2
12188 #: ../fish/guestfish-actions.pod:3991
12189 msgid "rm"
12190 msgstr ""
12191
12192 #. type: verbatim
12193 #: ../fish/guestfish-actions.pod:3993
12194 #, no-wrap
12195 msgid ""
12196 " rm path\n"
12197 "\n"
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
12202 msgid "Remove the single file C<path>."
12203 msgstr ""
12204
12205 #. type: =head2
12206 #: ../fish/guestfish-actions.pod:3997
12207 msgid "rm-rf"
12208 msgstr ""
12209
12210 #. type: verbatim
12211 #: ../fish/guestfish-actions.pod:3999
12212 #, no-wrap
12213 msgid ""
12214 " rm-rf path\n"
12215 "\n"
12216 msgstr ""
12217
12218 #. type: textblock
12219 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
12220 msgid ""
12221 "Remove the file or directory C<path>, recursively removing the contents if "
12222 "its a directory.  This is like the C<rm -rf> shell command."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:4005
12227 msgid "rmdir"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:4007
12232 #, no-wrap
12233 msgid ""
12234 " rmdir path\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
12240 msgid "Remove the single directory C<path>."
12241 msgstr ""
12242
12243 #. type: =head2
12244 #: ../fish/guestfish-actions.pod:4011
12245 msgid "rmmountpoint"
12246 msgstr ""
12247
12248 #. type: verbatim
12249 #: ../fish/guestfish-actions.pod:4013
12250 #, no-wrap
12251 msgid ""
12252 " rmmountpoint exemptpath\n"
12253 "\n"
12254 msgstr ""
12255
12256 #. type: textblock
12257 #: ../fish/guestfish-actions.pod:4015
12258 msgid ""
12259 "This calls removes a mountpoint that was previously created with "
12260 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12261 msgstr ""
12262
12263 #. type: =head2
12264 #: ../fish/guestfish-actions.pod:4019
12265 msgid "scrub-device"
12266 msgstr ""
12267
12268 #. type: verbatim
12269 #: ../fish/guestfish-actions.pod:4021
12270 #, no-wrap
12271 msgid ""
12272 " scrub-device device\n"
12273 "\n"
12274 msgstr ""
12275
12276 #. type: textblock
12277 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
12278 msgid ""
12279 "This command writes patterns over C<device> to make data retrieval more "
12280 "difficult."
12281 msgstr ""
12282
12283 #. type: textblock
12284 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
12285 msgid ""
12286 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12287 "more details."
12288 msgstr ""
12289
12290 #. type: =head2
12291 #: ../fish/guestfish-actions.pod:4032
12292 msgid "scrub-file"
12293 msgstr ""
12294
12295 #. type: verbatim
12296 #: ../fish/guestfish-actions.pod:4034
12297 #, no-wrap
12298 msgid ""
12299 " scrub-file file\n"
12300 "\n"
12301 msgstr ""
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
12305 msgid ""
12306 "This command writes patterns over a file to make data retrieval more "
12307 "difficult."
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
12312 msgid "The file is I<removed> after scrubbing."
12313 msgstr ""
12314
12315 #. type: =head2
12316 #: ../fish/guestfish-actions.pod:4044
12317 msgid "scrub-freespace"
12318 msgstr ""
12319
12320 #. type: verbatim
12321 #: ../fish/guestfish-actions.pod:4046
12322 #, no-wrap
12323 msgid ""
12324 " scrub-freespace dir\n"
12325 "\n"
12326 msgstr ""
12327
12328 #. type: textblock
12329 #: ../fish/guestfish-actions.pod:4048
12330 msgid ""
12331 "This command creates the directory C<dir> and then fills it with files until "
12332 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12333 "deletes them.  The intention is to scrub any free space on the partition "
12334 "containing C<dir>."
12335 msgstr ""
12336
12337 #. type: =head2
12338 #: ../fish/guestfish-actions.pod:4057
12339 msgid "set-append"
12340 msgstr ""
12341
12342 #. type: =head2
12343 #: ../fish/guestfish-actions.pod:4059
12344 msgid "append"
12345 msgstr ""
12346
12347 #. type: verbatim
12348 #: ../fish/guestfish-actions.pod:4061
12349 #, no-wrap
12350 msgid ""
12351 " set-append append\n"
12352 "\n"
12353 msgstr ""
12354
12355 #. type: textblock
12356 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
12357 msgid ""
12358 "This function is used to add additional options to the guest kernel command "
12359 "line."
12360 msgstr ""
12361
12362 #. type: textblock
12363 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
12364 msgid ""
12365 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12366 "environment variable."
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
12371 msgid ""
12372 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12373 "(libguestfs always adds a few of its own)."
12374 msgstr ""
12375
12376 #. type: =head2
12377 #: ../fish/guestfish-actions.pod:4072
12378 msgid "set-attach-method"
12379 msgstr ""
12380
12381 #. type: =head2
12382 #: ../fish/guestfish-actions.pod:4074
12383 msgid "attach-method"
12384 msgstr ""
12385
12386 #. type: verbatim
12387 #: ../fish/guestfish-actions.pod:4076
12388 #, no-wrap
12389 msgid ""
12390 " set-attach-method attachmethod\n"
12391 "\n"
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12396 msgid ""
12397 "Set the method that libguestfs uses to connect to the back end guestfsd "
12398 "daemon.  Possible methods are:"
12399 msgstr ""
12400
12401 #. type: =item
12402 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187 ../src/guestfs.pod:2687
12403 msgid "C<appliance>"
12404 msgstr ""
12405
12406 #. type: textblock
12407 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12408 msgid ""
12409 "Launch an appliance and connect to it.  This is the ordinary method and the "
12410 "default."
12411 msgstr ""
12412
12413 #. type: =item
12414 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
12415 msgid "C<unix:I<path>>"
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
12420 msgid "Connect to the Unix domain socket I<path>."
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
12425 msgid ""
12426 "This method lets you connect to an existing daemon or (using virtio-serial) "
12427 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12428 "RUNNING DAEMONS>."
12429 msgstr ""
12430
12431 #. type: =head2
12432 #: ../fish/guestfish-actions.pod:4098
12433 msgid "set-autosync"
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:4100
12438 msgid "autosync"
12439 msgstr ""
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:4102
12443 #, no-wrap
12444 msgid ""
12445 " set-autosync true|false\n"
12446 "\n"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12451 msgid ""
12452 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12453 "effort attempt to make filesystems consistent and synchronized when the "
12454 "handle is closed (also if the program exits without closing handles)."
12455 msgstr ""
12456
12457 #. type: textblock
12458 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
12459 msgid ""
12460 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12461 "disabled by default)."
12462 msgstr ""
12463
12464 #. type: =head2
12465 #: ../fish/guestfish-actions.pod:4112
12466 msgid "set-direct"
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../fish/guestfish-actions.pod:4114
12471 msgid "direct"
12472 msgstr ""
12473
12474 #. type: verbatim
12475 #: ../fish/guestfish-actions.pod:4116
12476 #, no-wrap
12477 msgid ""
12478 " set-direct true|false\n"
12479 "\n"
12480 msgstr ""
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
12484 msgid ""
12485 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12486 "passed directly through to the appliance once it is launched."
12487 msgstr ""
12488
12489 #. type: textblock
12490 #: ../fish/guestfish-actions.pod:4122
12491 msgid ""
12492 "One consequence of this is that log messages aren't caught by the library "
12493 "and handled by L</set-log-message-callback>, but go straight to stdout."
12494 msgstr ""
12495
12496 #. type: textblock
12497 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
12498 msgid "You probably don't want to use this unless you know what you are doing."
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
12503 msgid "The default is disabled."
12504 msgstr ""
12505
12506 #. type: =head2
12507 #: ../fish/guestfish-actions.pod:4131
12508 msgid "set-e2label"
12509 msgstr ""
12510
12511 #. type: verbatim
12512 #: ../fish/guestfish-actions.pod:4133
12513 #, no-wrap
12514 msgid ""
12515 " set-e2label device label\n"
12516 "\n"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
12521 msgid ""
12522 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12523 "C<label>.  Filesystem labels are limited to 16 characters."
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../fish/guestfish-actions.pod:4139
12528 msgid ""
12529 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12530 "label on a filesystem."
12531 msgstr ""
12532
12533 #. type: =head2
12534 #: ../fish/guestfish-actions.pod:4142
12535 msgid "set-e2uuid"
12536 msgstr ""
12537
12538 #. type: verbatim
12539 #: ../fish/guestfish-actions.pod:4144
12540 #, no-wrap
12541 msgid ""
12542 " set-e2uuid device uuid\n"
12543 "\n"
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
12548 msgid ""
12549 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12550 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12551 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../fish/guestfish-actions.pod:4151
12556 msgid ""
12557 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12558 "UUID of a filesystem."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../fish/guestfish-actions.pod:4154
12563 msgid "set-memsize"
12564 msgstr ""
12565
12566 #. type: =head2
12567 #: ../fish/guestfish-actions.pod:4156
12568 msgid "memsize"
12569 msgstr ""
12570
12571 #. type: verbatim
12572 #: ../fish/guestfish-actions.pod:4158
12573 #, no-wrap
12574 msgid ""
12575 " set-memsize memsize\n"
12576 "\n"
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../fish/guestfish-actions.pod:4160
12581 msgid ""
12582 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12583 "This only has any effect if called before L</launch>."
12584 msgstr ""
12585
12586 #. type: textblock
12587 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
12588 msgid ""
12589 "You can also change this by setting the environment variable "
12590 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12591 msgstr ""
12592
12593 #. type: =head2
12594 #: ../fish/guestfish-actions.pod:4171
12595 msgid "set-network"
12596 msgstr ""
12597
12598 #. type: =head2
12599 #: ../fish/guestfish-actions.pod:4173
12600 msgid "network"
12601 msgstr ""
12602
12603 #. type: verbatim
12604 #: ../fish/guestfish-actions.pod:4175
12605 #, no-wrap
12606 msgid ""
12607 " set-network true|false\n"
12608 "\n"
12609 msgstr ""
12610
12611 #. type: textblock
12612 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
12613 msgid ""
12614 "If C<network> is true, then the network is enabled in the libguestfs "
12615 "appliance.  The default is false."
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
12620 msgid ""
12621 "This affects whether commands are able to access the network (see "
12622 "L<guestfs(3)/RUNNING COMMANDS>)."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:4183
12627 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12628 msgstr ""
12629
12630 #. type: =head2
12631 #: ../fish/guestfish-actions.pod:4186
12632 msgid "set-path"
12633 msgstr ""
12634
12635 #. type: verbatim
12636 #: ../fish/guestfish-actions.pod:4190
12637 #, no-wrap
12638 msgid ""
12639 " set-path searchpath\n"
12640 "\n"
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
12645 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
12650 msgid ""
12651 "The default is C<$libdir/guestfs> unless overridden by setting "
12652 "C<LIBGUESTFS_PATH> environment variable."
12653 msgstr ""
12654
12655 #. type: textblock
12656 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
12657 msgid "Setting C<path> to C<NULL> restores the default path."
12658 msgstr ""
12659
12660 #. type: =head2
12661 #: ../fish/guestfish-actions.pod:4199
12662 msgid "set-pgroup"
12663 msgstr ""
12664
12665 #. type: =head2
12666 #: ../fish/guestfish-actions.pod:4201
12667 msgid "pgroup"
12668 msgstr ""
12669
12670 #. type: verbatim
12671 #: ../fish/guestfish-actions.pod:4203
12672 #, no-wrap
12673 msgid ""
12674 " set-pgroup true|false\n"
12675 "\n"
12676 msgstr ""
12677
12678 #. type: textblock
12679 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
12680 msgid ""
12681 "If C<pgroup> is true, child processes are placed into their own process "
12682 "group."
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
12687 msgid ""
12688 "The practical upshot of this is that signals like C<SIGINT> (from users "
12689 "pressing C<^C>) won't be received by the child process."
12690 msgstr ""
12691
12692 #. type: textblock
12693 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
12694 msgid ""
12695 "The default for this flag is false, because usually you want C<^C> to kill "
12696 "the subprocess."
12697 msgstr ""
12698
12699 #. type: =head2
12700 #: ../fish/guestfish-actions.pod:4214
12701 msgid "set-qemu"
12702 msgstr ""
12703
12704 #. type: =head2
12705 #: ../fish/guestfish-actions.pod:4216
12706 msgid "qemu"
12707 msgstr ""
12708
12709 #. type: verbatim
12710 #: ../fish/guestfish-actions.pod:4218
12711 #, no-wrap
12712 msgid ""
12713 " set-qemu qemu\n"
12714 "\n"
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
12719 msgid "Set the qemu binary that we will use."
12720 msgstr ""
12721
12722 #. type: textblock
12723 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
12724 msgid "The default is chosen when the library was compiled by the configure script."
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
12729 msgid ""
12730 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12731 "variable."
12732 msgstr ""
12733
12734 #. type: textblock
12735 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
12736 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
12741 msgid ""
12742 "Note that you should call this function as early as possible after creating "
12743 "the handle.  This is because some pre-launch operations depend on testing "
12744 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12745 "don't retest features, and so you might see inconsistent results.  Using the "
12746 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12747 "the qemu binary at the same time as the handle is created."
12748 msgstr ""
12749
12750 #. type: =head2
12751 #: ../fish/guestfish-actions.pod:4238
12752 msgid "set-recovery-proc"
12753 msgstr ""
12754
12755 #. type: =head2
12756 #: ../fish/guestfish-actions.pod:4240
12757 msgid "recovery-proc"
12758 msgstr ""
12759
12760 #. type: verbatim
12761 #: ../fish/guestfish-actions.pod:4242
12762 #, no-wrap
12763 msgid ""
12764 " set-recovery-proc true|false\n"
12765 "\n"
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:4244
12770 msgid ""
12771 "If this is called with the parameter C<false> then L</launch> does not "
12772 "create a recovery process.  The purpose of the recovery process is to stop "
12773 "runaway qemu processes in the case where the main program aborts abruptly."
12774 msgstr ""
12775
12776 #. type: textblock
12777 #: ../fish/guestfish-actions.pod:4249
12778 msgid ""
12779 "This only has any effect if called before L</launch>, and the default is "
12780 "true."
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
12785 msgid ""
12786 "About the only time when you would want to disable this is if the main "
12787 "process will fork itself into the background (\"daemonize\" itself).  In "
12788 "this case the recovery process thinks that the main program has disappeared "
12789 "and so kills qemu, which is not very helpful."
12790 msgstr ""
12791
12792 #. type: =head2
12793 #: ../fish/guestfish-actions.pod:4258
12794 msgid "set-selinux"
12795 msgstr ""
12796
12797 #. type: =head2
12798 #: ../fish/guestfish-actions.pod:4260
12799 msgid "selinux"
12800 msgstr ""
12801
12802 #. type: verbatim
12803 #: ../fish/guestfish-actions.pod:4262
12804 #, no-wrap
12805 msgid ""
12806 " set-selinux true|false\n"
12807 "\n"
12808 msgstr ""
12809
12810 #. type: textblock
12811 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
12812 msgid ""
12813 "This sets the selinux flag that is passed to the appliance at boot time.  "
12814 "The default is C<selinux=0> (disabled)."
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
12819 msgid ""
12820 "Note that if SELinux is enabled, it is always in Permissive mode "
12821 "(C<enforcing=0>)."
12822 msgstr ""
12823
12824 #. type: =head2
12825 #: ../fish/guestfish-actions.pod:4273
12826 msgid "set-trace"
12827 msgstr ""
12828
12829 #. type: =head2
12830 #: ../fish/guestfish-actions.pod:4275
12831 msgid "trace"
12832 msgstr ""
12833
12834 #. type: verbatim
12835 #: ../fish/guestfish-actions.pod:4277
12836 #, no-wrap
12837 msgid ""
12838 " set-trace true|false\n"
12839 "\n"
12840 msgstr ""
12841
12842 #. type: textblock
12843 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
12844 msgid ""
12845 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
12846 "return values are traced."
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
12851 msgid ""
12852 "If you want to trace C API calls into libguestfs (and other libraries) then "
12853 "possibly a better way is to use the external ltrace(1) command."
12854 msgstr ""
12855
12856 #. type: textblock
12857 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
12858 msgid ""
12859 "Command traces are disabled unless the environment variable "
12860 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../fish/guestfish-actions.pod:4289
12865 msgid ""
12866 "Trace messages are normally sent to C<stderr>, unless you register a "
12867 "callback to send them somewhere else (see L</set-event-callback>)."
12868 msgstr ""
12869
12870 #. type: =head2
12871 #: ../fish/guestfish-actions.pod:4293
12872 msgid "set-verbose"
12873 msgstr ""
12874
12875 #. type: =head2
12876 #: ../fish/guestfish-actions.pod:4295
12877 msgid "verbose"
12878 msgstr ""
12879
12880 #. type: verbatim
12881 #: ../fish/guestfish-actions.pod:4297
12882 #, no-wrap
12883 msgid ""
12884 " set-verbose true|false\n"
12885 "\n"
12886 msgstr ""
12887
12888 #. type: textblock
12889 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
12890 msgid "If C<verbose> is true, this turns on verbose messages."
12891 msgstr ""
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
12895 msgid ""
12896 "Verbose messages are disabled unless the environment variable "
12897 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12898 msgstr ""
12899
12900 #. type: textblock
12901 #: ../fish/guestfish-actions.pod:4304
12902 msgid ""
12903 "Verbose messages are normally sent to C<stderr>, unless you register a "
12904 "callback to send them somewhere else (see L</set-event-callback>)."
12905 msgstr ""
12906
12907 #. type: =head2
12908 #: ../fish/guestfish-actions.pod:4308
12909 msgid "setcon"
12910 msgstr ""
12911
12912 #. type: verbatim
12913 #: ../fish/guestfish-actions.pod:4310
12914 #, no-wrap
12915 msgid ""
12916 " setcon context\n"
12917 "\n"
12918 msgstr ""
12919
12920 #. type: textblock
12921 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
12922 msgid ""
12923 "This sets the SELinux security context of the daemon to the string "
12924 "C<context>."
12925 msgstr ""
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
12929 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12930 msgstr ""
12931
12932 #. type: =head2
12933 #: ../fish/guestfish-actions.pod:4317
12934 msgid "setxattr"
12935 msgstr ""
12936
12937 #. type: verbatim
12938 #: ../fish/guestfish-actions.pod:4319
12939 #, no-wrap
12940 msgid ""
12941 " setxattr xattr val vallen path\n"
12942 "\n"
12943 msgstr ""
12944
12945 #. type: textblock
12946 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
12947 msgid ""
12948 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12949 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:4325
12954 msgid "See also: L</lsetxattr>, L<attr(5)>."
12955 msgstr ""
12956
12957 #. type: =head2
12958 #: ../fish/guestfish-actions.pod:4327
12959 msgid "sfdisk"
12960 msgstr ""
12961
12962 #. type: verbatim
12963 #: ../fish/guestfish-actions.pod:4329
12964 #, no-wrap
12965 msgid ""
12966 " sfdisk device cyls heads sectors 'lines ...'\n"
12967 "\n"
12968 msgstr ""
12969
12970 #. type: textblock
12971 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
12972 msgid ""
12973 "This is a direct interface to the L<sfdisk(8)> program for creating "
12974 "partitions on block devices."
12975 msgstr ""
12976
12977 #. type: textblock
12978 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6521
12979 msgid "C<device> should be a block device, for example C</dev/sda>."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6523
12984 msgid ""
12985 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12986 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12987 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12988 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12989 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12990 "the kernel) cannot work out the right geometry and you will need to tell it."
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6531
12995 msgid ""
12996 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12997 "refer to the L<sfdisk(8)> manpage."
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6534
13002 msgid ""
13003 "To create a single partition occupying the whole disk, you would pass "
13004 "C<lines> as a single element list, when the single element being the string "
13005 "C<,> (comma)."
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../fish/guestfish-actions.pod:4351
13010 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13011 msgstr ""
13012
13013 #. type: textblock
13014 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380 ../fish/guestfish-actions.pod:4402
13015 msgid ""
13016 "This function is deprecated.  In new code, use the L</part_add> call "
13017 "instead."
13018 msgstr ""
13019
13020 #. type: =head2
13021 #: ../fish/guestfish-actions.pod:4364
13022 msgid "sfdiskM"
13023 msgstr ""
13024
13025 #. type: verbatim
13026 #: ../fish/guestfish-actions.pod:4366
13027 #, no-wrap
13028 msgid ""
13029 " sfdiskM device 'lines ...'\n"
13030 "\n"
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:4368
13035 msgid ""
13036 "This is a simplified interface to the L</sfdisk> command, where partition "
13037 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13038 "you don't need to specify the cyls, heads and sectors parameters which were "
13039 "rarely if ever used anyway."
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:4374
13044 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13045 msgstr ""
13046
13047 #. type: =head2
13048 #: ../fish/guestfish-actions.pod:4387
13049 msgid "sfdisk-N"
13050 msgstr ""
13051
13052 #. type: verbatim
13053 #: ../fish/guestfish-actions.pod:4389
13054 #, no-wrap
13055 msgid ""
13056 " sfdisk-N device partnum cyls heads sectors line\n"
13057 "\n"
13058 msgstr ""
13059
13060 #. type: textblock
13061 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6596
13062 msgid ""
13063 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13064 "(note: C<n> counts from 1)."
13065 msgstr ""
13066
13067 #. type: textblock
13068 #: ../fish/guestfish-actions.pod:4394
13069 msgid ""
13070 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13071 "cyls/heads/sectors parameters."
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:4397
13076 msgid "See also: L</part-add>"
13077 msgstr ""
13078
13079 #. type: =head2
13080 #: ../fish/guestfish-actions.pod:4409
13081 msgid "sfdisk-disk-geometry"
13082 msgstr ""
13083
13084 #. type: verbatim
13085 #: ../fish/guestfish-actions.pod:4411
13086 #, no-wrap
13087 msgid ""
13088 " sfdisk-disk-geometry device\n"
13089 "\n"
13090 msgstr ""
13091
13092 #. type: textblock
13093 #: ../fish/guestfish-actions.pod:4413
13094 msgid ""
13095 "This displays the disk geometry of C<device> read from the partition table.  "
13096 "Especially in the case where the underlying block device has been resized, "
13097 "this can be different from the kernel's idea of the geometry (see "
13098 "L</sfdisk-kernel-geometry>)."
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
13103 msgid "The result is in human-readable format, and not designed to be parsed."
13104 msgstr ""
13105
13106 #. type: =head2
13107 #: ../fish/guestfish-actions.pod:4421
13108 msgid "sfdisk-kernel-geometry"
13109 msgstr ""
13110
13111 #. type: verbatim
13112 #: ../fish/guestfish-actions.pod:4423
13113 #, no-wrap
13114 msgid ""
13115 " sfdisk-kernel-geometry device\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
13121 msgid "This displays the kernel's idea of the geometry of C<device>."
13122 msgstr ""
13123
13124 #. type: =head2
13125 #: ../fish/guestfish-actions.pod:4430
13126 msgid "sfdisk-l"
13127 msgstr ""
13128
13129 #. type: verbatim
13130 #: ../fish/guestfish-actions.pod:4432
13131 #, no-wrap
13132 msgid ""
13133 " sfdisk-l device\n"
13134 "\n"
13135 msgstr ""
13136
13137 #. type: textblock
13138 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6659
13139 msgid ""
13140 "This displays the partition table on C<device>, in the human-readable output "
13141 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13142 msgstr ""
13143
13144 #. type: textblock
13145 #: ../fish/guestfish-actions.pod:4438
13146 msgid "See also: L</part-list>"
13147 msgstr ""
13148
13149 #. type: textblock
13150 #: ../fish/guestfish-actions.pod:4440
13151 msgid ""
13152 "This function is deprecated.  In new code, use the L</part_list> call "
13153 "instead."
13154 msgstr ""
13155
13156 #. type: =head2
13157 #: ../fish/guestfish-actions.pod:4447
13158 msgid "sh"
13159 msgstr ""
13160
13161 #. type: verbatim
13162 #: ../fish/guestfish-actions.pod:4449
13163 #, no-wrap
13164 msgid ""
13165 " sh command\n"
13166 "\n"
13167 msgstr ""
13168
13169 #. type: textblock
13170 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13171 msgid ""
13172 "This call runs a command from the guest filesystem via the guest's "
13173 "C</bin/sh>."
13174 msgstr ""
13175
13176 #. type: textblock
13177 #: ../fish/guestfish-actions.pod:4454
13178 msgid "This is like L</command>, but passes the command to:"
13179 msgstr ""
13180
13181 #. type: verbatim
13182 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
13183 #, no-wrap
13184 msgid ""
13185 " /bin/sh -c \"command\"\n"
13186 "\n"
13187 msgstr ""
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
13191 msgid ""
13192 "Depending on the guest's shell, this usually results in wildcards being "
13193 "expanded, shell expressions being interpolated and so on."
13194 msgstr ""
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:4462
13198 msgid "All the provisos about L</command> apply to this call."
13199 msgstr ""
13200
13201 #. type: =head2
13202 #: ../fish/guestfish-actions.pod:4464
13203 msgid "sh-lines"
13204 msgstr ""
13205
13206 #. type: verbatim
13207 #: ../fish/guestfish-actions.pod:4466
13208 #, no-wrap
13209 msgid ""
13210 " sh-lines command\n"
13211 "\n"
13212 msgstr ""
13213
13214 #. type: textblock
13215 #: ../fish/guestfish-actions.pod:4468
13216 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:4471
13221 msgid "See also: L</command-lines>"
13222 msgstr ""
13223
13224 #. type: =head2
13225 #: ../fish/guestfish-actions.pod:4473
13226 msgid "sleep"
13227 msgstr ""
13228
13229 #. type: verbatim
13230 #: ../fish/guestfish-actions.pod:4475
13231 #, no-wrap
13232 msgid ""
13233 " sleep secs\n"
13234 "\n"
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
13239 msgid "Sleep for C<secs> seconds."
13240 msgstr ""
13241
13242 #. type: =head2
13243 #: ../fish/guestfish-actions.pod:4479
13244 msgid "stat"
13245 msgstr ""
13246
13247 #. type: verbatim
13248 #: ../fish/guestfish-actions.pod:4481
13249 #, no-wrap
13250 msgid ""
13251 " stat path\n"
13252 "\n"
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
13257 msgid "This is the same as the C<stat(2)> system call."
13258 msgstr ""
13259
13260 #. type: =head2
13261 #: ../fish/guestfish-actions.pod:4487
13262 msgid "statvfs"
13263 msgstr ""
13264
13265 #. type: verbatim
13266 #: ../fish/guestfish-actions.pod:4489
13267 #, no-wrap
13268 msgid ""
13269 " statvfs path\n"
13270 "\n"
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
13275 msgid ""
13276 "Returns file system statistics for any mounted file system.  C<path> should "
13277 "be a file or directory in the mounted file system (typically it is the mount "
13278 "point itself, but it doesn't need to be)."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
13283 msgid "This is the same as the C<statvfs(2)> system call."
13284 msgstr ""
13285
13286 #. type: =head2
13287 #: ../fish/guestfish-actions.pod:4497
13288 msgid "strings"
13289 msgstr ""
13290
13291 #. type: verbatim
13292 #: ../fish/guestfish-actions.pod:4499
13293 #, no-wrap
13294 msgid ""
13295 " strings path\n"
13296 "\n"
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
13301 msgid ""
13302 "This runs the L<strings(1)> command on a file and returns the list of "
13303 "printable strings found."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:4507
13308 msgid "strings-e"
13309 msgstr ""
13310
13311 #. type: verbatim
13312 #: ../fish/guestfish-actions.pod:4509
13313 #, no-wrap
13314 msgid ""
13315 " strings-e encoding path\n"
13316 "\n"
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:4511
13321 msgid ""
13322 "This is like the L</strings> command, but allows you to specify the encoding "
13323 "of strings that are looked for in the source file C<path>."
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
13328 msgid "Allowed encodings are:"
13329 msgstr ""
13330
13331 #. type: =item
13332 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13333 msgid "s"
13334 msgstr ""
13335
13336 #. type: textblock
13337 #: ../fish/guestfish-actions.pod:4521
13338 msgid ""
13339 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13340 "ISO-8859-X (this is what L</strings> uses)."
13341 msgstr ""
13342
13343 #. type: =item
13344 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
13345 msgid "S"
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
13350 msgid "Single 8-bit-byte characters."
13351 msgstr ""
13352
13353 #. type: =item
13354 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13355 msgid "b"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13360 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13361 msgstr ""
13362
13363 #. type: =item
13364 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13365 msgid "l (lower case letter L)"
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13370 msgid ""
13371 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13372 "examining binaries in Windows guests."
13373 msgstr ""
13374
13375 #. type: =item
13376 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
13377 msgid "B"
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
13382 msgid "32-bit big endian such as UCS-4BE."
13383 msgstr ""
13384
13385 #. type: =item
13386 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
13387 msgid "L"
13388 msgstr ""
13389
13390 #. type: textblock
13391 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
13392 msgid "32-bit little endian such as UCS-4LE."
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13397 msgid "The returned strings are transcoded to UTF-8."
13398 msgstr ""
13399
13400 #. type: =head2
13401 #: ../fish/guestfish-actions.pod:4553
13402 msgid "swapoff-device"
13403 msgstr ""
13404
13405 #. type: verbatim
13406 #: ../fish/guestfish-actions.pod:4555
13407 #, no-wrap
13408 msgid ""
13409 " swapoff-device device\n"
13410 "\n"
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:4557
13415 msgid ""
13416 "This command disables the libguestfs appliance swap device or partition "
13417 "named C<device>.  See L</swapon-device>."
13418 msgstr ""
13419
13420 #. type: =head2
13421 #: ../fish/guestfish-actions.pod:4561
13422 msgid "swapoff-file"
13423 msgstr ""
13424
13425 #. type: verbatim
13426 #: ../fish/guestfish-actions.pod:4563
13427 #, no-wrap
13428 msgid ""
13429 " swapoff-file file\n"
13430 "\n"
13431 msgstr ""
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
13435 msgid "This command disables the libguestfs appliance swap on file."
13436 msgstr ""
13437
13438 #. type: =head2
13439 #: ../fish/guestfish-actions.pod:4567
13440 msgid "swapoff-label"
13441 msgstr ""
13442
13443 #. type: verbatim
13444 #: ../fish/guestfish-actions.pod:4569
13445 #, no-wrap
13446 msgid ""
13447 " swapoff-label label\n"
13448 "\n"
13449 msgstr ""
13450
13451 #. type: textblock
13452 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
13453 msgid ""
13454 "This command disables the libguestfs appliance swap on labeled swap "
13455 "partition."
13456 msgstr ""
13457
13458 #. type: =head2
13459 #: ../fish/guestfish-actions.pod:4574
13460 msgid "swapoff-uuid"
13461 msgstr ""
13462
13463 #. type: verbatim
13464 #: ../fish/guestfish-actions.pod:4576
13465 #, no-wrap
13466 msgid ""
13467 " swapoff-uuid uuid\n"
13468 "\n"
13469 msgstr ""
13470
13471 #. type: textblock
13472 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
13473 msgid ""
13474 "This command disables the libguestfs appliance swap partition with the given "
13475 "UUID."
13476 msgstr ""
13477
13478 #. type: =head2
13479 #: ../fish/guestfish-actions.pod:4581
13480 msgid "swapon-device"
13481 msgstr ""
13482
13483 #. type: verbatim
13484 #: ../fish/guestfish-actions.pod:4583
13485 #, no-wrap
13486 msgid ""
13487 " swapon-device device\n"
13488 "\n"
13489 msgstr ""
13490
13491 #. type: textblock
13492 #: ../fish/guestfish-actions.pod:4585
13493 msgid ""
13494 "This command enables the libguestfs appliance to use the swap device or "
13495 "partition named C<device>.  The increased memory is made available for all "
13496 "commands, for example those run using L</command> or L</sh>."
13497 msgstr ""
13498
13499 #. type: textblock
13500 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
13501 msgid ""
13502 "Note that you should not swap to existing guest swap partitions unless you "
13503 "know what you are doing.  They may contain hibernation information, or other "
13504 "information that the guest doesn't want you to trash.  You also risk leaking "
13505 "information about the host to the guest this way.  Instead, attach a new "
13506 "host device to the guest and swap on that."
13507 msgstr ""
13508
13509 #. type: =head2
13510 #: ../fish/guestfish-actions.pod:4597
13511 msgid "swapon-file"
13512 msgstr ""
13513
13514 #. type: verbatim
13515 #: ../fish/guestfish-actions.pod:4599
13516 #, no-wrap
13517 msgid ""
13518 " swapon-file file\n"
13519 "\n"
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:4601
13524 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13525 msgstr ""
13526
13527 #. type: =head2
13528 #: ../fish/guestfish-actions.pod:4604
13529 msgid "swapon-label"
13530 msgstr ""
13531
13532 #. type: verbatim
13533 #: ../fish/guestfish-actions.pod:4606
13534 #, no-wrap
13535 msgid ""
13536 " swapon-label label\n"
13537 "\n"
13538 msgstr ""
13539
13540 #. type: textblock
13541 #: ../fish/guestfish-actions.pod:4608
13542 msgid ""
13543 "This command enables swap to a labeled swap partition.  See "
13544 "L</swapon-device> for other notes."
13545 msgstr ""
13546
13547 #. type: =head2
13548 #: ../fish/guestfish-actions.pod:4611
13549 msgid "swapon-uuid"
13550 msgstr ""
13551
13552 #. type: verbatim
13553 #: ../fish/guestfish-actions.pod:4613
13554 #, no-wrap
13555 msgid ""
13556 " swapon-uuid uuid\n"
13557 "\n"
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:4615
13562 msgid ""
13563 "This command enables swap to a swap partition with the given UUID.  See "
13564 "L</swapon-device> for other notes."
13565 msgstr ""
13566
13567 #. type: =head2
13568 #: ../fish/guestfish-actions.pod:4618
13569 msgid "sync"
13570 msgstr ""
13571
13572 #. type: verbatim
13573 #: ../fish/guestfish-actions.pod:4620
13574 #, no-wrap
13575 msgid ""
13576 " sync\n"
13577 "\n"
13578 msgstr ""
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
13582 msgid ""
13583 "This syncs the disk, so that any writes are flushed through to the "
13584 "underlying disk image."
13585 msgstr ""
13586
13587 #. type: textblock
13588 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
13589 msgid ""
13590 "You should always call this if you have modified a disk image, before "
13591 "closing the handle."
13592 msgstr ""
13593
13594 #. type: =head2
13595 #: ../fish/guestfish-actions.pod:4628
13596 msgid "tail"
13597 msgstr ""
13598
13599 #. type: verbatim
13600 #: ../fish/guestfish-actions.pod:4630
13601 #, no-wrap
13602 msgid ""
13603 " tail path\n"
13604 "\n"
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
13609 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13610 msgstr ""
13611
13612 #. type: =head2
13613 #: ../fish/guestfish-actions.pod:4638
13614 msgid "tail-n"
13615 msgstr ""
13616
13617 #. type: verbatim
13618 #: ../fish/guestfish-actions.pod:4640
13619 #, no-wrap
13620 msgid ""
13621 " tail-n nrlines path\n"
13622 "\n"
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
13627 msgid ""
13628 "If the parameter C<nrlines> is a positive number, this returns the last "
13629 "C<nrlines> lines of the file C<path>."
13630 msgstr ""
13631
13632 #. type: textblock
13633 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
13634 msgid ""
13635 "If the parameter C<nrlines> is a negative number, this returns lines from "
13636 "the file C<path>, starting with the C<-nrlines>th line."
13637 msgstr ""
13638
13639 #. type: =head2
13640 #: ../fish/guestfish-actions.pod:4653
13641 msgid "tar-in"
13642 msgstr ""
13643
13644 #. type: verbatim
13645 #: ../fish/guestfish-actions.pod:4655
13646 #, no-wrap
13647 msgid ""
13648 " tar-in (tarfile|-) directory\n"
13649 "\n"
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
13654 msgid ""
13655 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13656 "tar file) into C<directory>."
13657 msgstr ""
13658
13659 #. type: textblock
13660 #: ../fish/guestfish-actions.pod:4660
13661 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13662 msgstr ""
13663
13664 #. type: =head2
13665 #: ../fish/guestfish-actions.pod:4665
13666 msgid "tar-out"
13667 msgstr ""
13668
13669 #. type: verbatim
13670 #: ../fish/guestfish-actions.pod:4667
13671 #, no-wrap
13672 msgid ""
13673 " tar-out directory (tarfile|-)\n"
13674 "\n"
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
13679 msgid ""
13680 "This command packs the contents of C<directory> and downloads it to local "
13681 "file C<tarfile>."
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:4672
13686 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
13687 msgstr ""
13688
13689 #. type: =head2
13690 #: ../fish/guestfish-actions.pod:4677
13691 msgid "tgz-in"
13692 msgstr ""
13693
13694 #. type: verbatim
13695 #: ../fish/guestfish-actions.pod:4679
13696 #, no-wrap
13697 msgid ""
13698 " tgz-in (tarball|-) directory\n"
13699 "\n"
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
13704 msgid ""
13705 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13706 "tar file) into C<directory>."
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4684
13711 msgid "To upload an uncompressed tarball, use L</tar-in>."
13712 msgstr ""
13713
13714 #. type: =head2
13715 #: ../fish/guestfish-actions.pod:4688
13716 msgid "tgz-out"
13717 msgstr ""
13718
13719 #. type: verbatim
13720 #: ../fish/guestfish-actions.pod:4690
13721 #, no-wrap
13722 msgid ""
13723 " tgz-out directory (tarball|-)\n"
13724 "\n"
13725 msgstr ""
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
13729 msgid ""
13730 "This command packs the contents of C<directory> and downloads it to local "
13731 "file C<tarball>."
13732 msgstr ""
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:4695
13736 msgid "To download an uncompressed tarball, use L</tar-out>."
13737 msgstr ""
13738
13739 #. type: =head2
13740 #: ../fish/guestfish-actions.pod:4699
13741 msgid "touch"
13742 msgstr ""
13743
13744 #. type: verbatim
13745 #: ../fish/guestfish-actions.pod:4701
13746 #, no-wrap
13747 msgid ""
13748 " touch path\n"
13749 "\n"
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
13754 msgid ""
13755 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13756 "timestamps on a file, or, if the file does not exist, to create a new "
13757 "zero-length file."
13758 msgstr ""
13759
13760 #. type: textblock
13761 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
13762 msgid ""
13763 "This command only works on regular files, and will fail on other file types "
13764 "such as directories, symbolic links, block special etc."
13765 msgstr ""
13766
13767 #. type: =head2
13768 #: ../fish/guestfish-actions.pod:4710
13769 msgid "truncate"
13770 msgstr ""
13771
13772 #. type: verbatim
13773 #: ../fish/guestfish-actions.pod:4712
13774 #, no-wrap
13775 msgid ""
13776 " truncate path\n"
13777 "\n"
13778 msgstr ""
13779
13780 #. type: textblock
13781 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
13782 msgid ""
13783 "This command truncates C<path> to a zero-length file.  The file must exist "
13784 "already."
13785 msgstr ""
13786
13787 #. type: =head2
13788 #: ../fish/guestfish-actions.pod:4717
13789 msgid "truncate-size"
13790 msgstr ""
13791
13792 #. type: verbatim
13793 #: ../fish/guestfish-actions.pod:4719
13794 #, no-wrap
13795 msgid ""
13796 " truncate-size path size\n"
13797 "\n"
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
13802 msgid ""
13803 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13804 "already."
13805 msgstr ""
13806
13807 #. type: textblock
13808 #: ../fish/guestfish-actions.pod:4724
13809 msgid ""
13810 "If the current file size is less than C<size> then the file is extended to "
13811 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13812 "blocks are not allocated for the file until you write to it).  To create a "
13813 "non-sparse file of zeroes, use L</fallocate64> instead."
13814 msgstr ""
13815
13816 #. type: =head2
13817 #: ../fish/guestfish-actions.pod:4730
13818 msgid "tune2fs-l"
13819 msgstr ""
13820
13821 #. type: verbatim
13822 #: ../fish/guestfish-actions.pod:4732
13823 #, no-wrap
13824 msgid ""
13825 " tune2fs-l device\n"
13826 "\n"
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
13831 msgid ""
13832 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13833 "C<device>."
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
13838 msgid ""
13839 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13840 "for more details.  The list of fields returned isn't clearly defined, and "
13841 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13842 "and the filesystem itself."
13843 msgstr ""
13844
13845 #. type: =head2
13846 #: ../fish/guestfish-actions.pod:4742
13847 msgid "txz-in"
13848 msgstr ""
13849
13850 #. type: verbatim
13851 #: ../fish/guestfish-actions.pod:4744
13852 #, no-wrap
13853 msgid ""
13854 " txz-in (tarball|-) directory\n"
13855 "\n"
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
13860 msgid ""
13861 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13862 "tar file) into C<directory>."
13863 msgstr ""
13864
13865 #. type: =head2
13866 #: ../fish/guestfish-actions.pod:4751
13867 msgid "txz-out"
13868 msgstr ""
13869
13870 #. type: verbatim
13871 #: ../fish/guestfish-actions.pod:4753
13872 #, no-wrap
13873 msgid ""
13874 " txz-out directory (tarball|-)\n"
13875 "\n"
13876 msgstr ""
13877
13878 #. type: textblock
13879 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
13880 msgid ""
13881 "This command packs the contents of C<directory> and downloads it to local "
13882 "file C<tarball> (as an xz compressed tar archive)."
13883 msgstr ""
13884
13885 #. type: =head2
13886 #: ../fish/guestfish-actions.pod:4760
13887 msgid "umask"
13888 msgstr ""
13889
13890 #. type: verbatim
13891 #: ../fish/guestfish-actions.pod:4762
13892 #, no-wrap
13893 msgid ""
13894 " umask mask\n"
13895 "\n"
13896 msgstr ""
13897
13898 #. type: textblock
13899 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
13900 msgid ""
13901 "This function sets the mask used for creating new files and device nodes to "
13902 "C<mask & 0777>."
13903 msgstr ""
13904
13905 #. type: textblock
13906 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
13907 msgid ""
13908 "Typical umask values would be C<022> which creates new files with "
13909 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13910 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13911 msgstr ""
13912
13913 #. type: textblock
13914 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
13915 msgid ""
13916 "The default umask is C<022>.  This is important because it means that "
13917 "directories and device nodes will be created with C<0644> or C<0755> mode "
13918 "even if you specify C<0777>."
13919 msgstr ""
13920
13921 #. type: textblock
13922 #: ../fish/guestfish-actions.pod:4776
13923 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
13924 msgstr ""
13925
13926 #. type: textblock
13927 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
13928 msgid "This call returns the previous umask."
13929 msgstr ""
13930
13931 #. type: =head2
13932 #: ../fish/guestfish-actions.pod:4781
13933 msgid "umount"
13934 msgstr ""
13935
13936 #. type: =head2
13937 #: ../fish/guestfish-actions.pod:4783
13938 msgid "unmount"
13939 msgstr ""
13940
13941 #. type: verbatim
13942 #: ../fish/guestfish-actions.pod:4785
13943 #, no-wrap
13944 msgid ""
13945 " umount pathordevice\n"
13946 "\n"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
13951 msgid ""
13952 "This unmounts the given filesystem.  The filesystem may be specified either "
13953 "by its mountpoint (path) or the device which contains the filesystem."
13954 msgstr ""
13955
13956 #. type: =head2
13957 #: ../fish/guestfish-actions.pod:4791
13958 msgid "umount-all"
13959 msgstr ""
13960
13961 #. type: =head2
13962 #: ../fish/guestfish-actions.pod:4793
13963 msgid "unmount-all"
13964 msgstr ""
13965
13966 #. type: verbatim
13967 #: ../fish/guestfish-actions.pod:4795
13968 #, no-wrap
13969 msgid ""
13970 " umount-all\n"
13971 "\n"
13972 msgstr ""
13973
13974 #. type: textblock
13975 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
13976 msgid "This unmounts all mounted filesystems."
13977 msgstr ""
13978
13979 #. type: textblock
13980 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
13981 msgid "Some internal mounts are not unmounted by this call."
13982 msgstr ""
13983
13984 #. type: =head2
13985 #: ../fish/guestfish-actions.pod:4801
13986 msgid "upload"
13987 msgstr ""
13988
13989 #. type: verbatim
13990 #: ../fish/guestfish-actions.pod:4803
13991 #, no-wrap
13992 msgid ""
13993 " upload (filename|-) remotefilename\n"
13994 "\n"
13995 msgstr ""
13996
13997 #. type: textblock
13998 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
13999 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:4810
14004 msgid "See also L</download>."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:4814
14009 msgid "upload-offset"
14010 msgstr ""
14011
14012 #. type: verbatim
14013 #: ../fish/guestfish-actions.pod:4816
14014 #, no-wrap
14015 msgid ""
14016 " upload-offset (filename|-) remotefilename offset\n"
14017 "\n"
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
14022 msgid ""
14023 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14024 "The intention is to overwrite parts of existing files or devices, although "
14025 "if a non-existant file is specified then it is created with a \"hole\" "
14026 "before C<offset>.  The size of the data written is implicit in the size of "
14027 "the source C<filename>."
14028 msgstr ""
14029
14030 #. type: textblock
14031 #: ../fish/guestfish-actions.pod:4828
14032 msgid ""
14033 "Note that there is no limit on the amount of data that can be uploaded with "
14034 "this call, unlike with L</pwrite>, and this call always writes the full "
14035 "amount unless an error occurs."
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:4833
14040 msgid "See also L</upload>, L</pwrite>."
14041 msgstr ""
14042
14043 #. type: =head2
14044 #: ../fish/guestfish-actions.pod:4837
14045 msgid "utimens"
14046 msgstr ""
14047
14048 #. type: verbatim
14049 #: ../fish/guestfish-actions.pod:4839
14050 #, no-wrap
14051 msgid ""
14052 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14053 "\n"
14054 msgstr ""
14055
14056 #. type: textblock
14057 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
14058 msgid "This command sets the timestamps of a file with nanosecond precision."
14059 msgstr ""
14060
14061 #. type: textblock
14062 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
14063 msgid ""
14064 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14065 "from the epoch."
14066 msgstr ""
14067
14068 #. type: textblock
14069 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
14070 msgid ""
14071 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14072 "nanoseconds from the epoch."
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
14077 msgid ""
14078 "If the C<*nsecs> field contains the special value C<-1> then the "
14079 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14080 "ignored in this case)."
14081 msgstr ""
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
14085 msgid ""
14086 "If the C<*nsecs> field contains the special value C<-2> then the "
14087 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14088 "in this case)."
14089 msgstr ""
14090
14091 #. type: =head2
14092 #: ../fish/guestfish-actions.pod:4858
14093 msgid "version"
14094 msgstr ""
14095
14096 #. type: verbatim
14097 #: ../fish/guestfish-actions.pod:4860
14098 #, no-wrap
14099 msgid ""
14100 " version\n"
14101 "\n"
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
14106 msgid "Return the libguestfs version number that the program is linked against."
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14111 msgid ""
14112 "Note that because of dynamic linking this is not necessarily the version of "
14113 "libguestfs that you compiled against.  You can compile the program, and then "
14114 "at runtime dynamically link against a completely different C<libguestfs.so> "
14115 "library."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
14120 msgid ""
14121 "This call was added in version C<1.0.58>.  In previous versions of "
14122 "libguestfs there was no way to get the version number.  From C code you can "
14123 "use dynamic linker functions to find out if this symbol exists (if it "
14124 "doesn't, then it's an earlier version)."
14125 msgstr ""
14126
14127 #. type: textblock
14128 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
14129 msgid ""
14130 "The call returns a structure with four elements.  The first three (C<major>, "
14131 "C<minor> and C<release>) are numbers and correspond to the usual version "
14132 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14133 "but may be used for distro-specific information."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
14138 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14139 msgstr ""
14140
14141 #. type: textblock
14142 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
14143 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14144 msgstr ""
14145
14146 #. type: textblock
14147 #: ../fish/guestfish-actions.pod:4887
14148 msgid ""
14149 "I<Note:> Don't use this call to test for availability of features.  In "
14150 "enterprise distributions we backport features from later versions into "
14151 "earlier versions, making this an unreliable way to test for features.  Use "
14152 "L</available> instead."
14153 msgstr ""
14154
14155 #. type: =head2
14156 #: ../fish/guestfish-actions.pod:4893
14157 msgid "vfs-label"
14158 msgstr ""
14159
14160 #. type: verbatim
14161 #: ../fish/guestfish-actions.pod:4895
14162 #, no-wrap
14163 msgid ""
14164 " vfs-label device\n"
14165 "\n"
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
14170 msgid "This returns the filesystem label of the filesystem on C<device>."
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
14175 msgid "If the filesystem is unlabeled, this returns the empty string."
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:4902
14180 msgid "To find a filesystem from the label, use L</findfs-label>."
14181 msgstr ""
14182
14183 #. type: =head2
14184 #: ../fish/guestfish-actions.pod:4904
14185 msgid "vfs-type"
14186 msgstr ""
14187
14188 #. type: verbatim
14189 #: ../fish/guestfish-actions.pod:4906
14190 #, no-wrap
14191 msgid ""
14192 " vfs-type device\n"
14193 "\n"
14194 msgstr ""
14195
14196 #. type: textblock
14197 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
14198 msgid ""
14199 "This command gets the filesystem type corresponding to the filesystem on "
14200 "C<device>."
14201 msgstr ""
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
14205 msgid ""
14206 "For most filesystems, the result is the name of the Linux VFS module which "
14207 "would be used to mount this filesystem if you mounted it without specifying "
14208 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14209 msgstr ""
14210
14211 #. type: =head2
14212 #: ../fish/guestfish-actions.pod:4916
14213 msgid "vfs-uuid"
14214 msgstr ""
14215
14216 #. type: verbatim
14217 #: ../fish/guestfish-actions.pod:4918
14218 #, no-wrap
14219 msgid ""
14220 " vfs-uuid device\n"
14221 "\n"
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
14226 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14227 msgstr ""
14228
14229 #. type: textblock
14230 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
14231 msgid "If the filesystem does not have a UUID, this returns the empty string."
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:4925
14236 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14237 msgstr ""
14238
14239 #. type: =head2
14240 #: ../fish/guestfish-actions.pod:4927
14241 msgid "vg-activate"
14242 msgstr ""
14243
14244 #. type: verbatim
14245 #: ../fish/guestfish-actions.pod:4929
14246 #, no-wrap
14247 msgid ""
14248 " vg-activate true|false 'volgroups ...'\n"
14249 "\n"
14250 msgstr ""
14251
14252 #. type: textblock
14253 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14254 msgid ""
14255 "This command activates or (if C<activate> is false) deactivates all logical "
14256 "volumes in the listed volume groups C<volgroups>."
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
14261 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
14266 msgid ""
14267 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14268 "activated or deactivated."
14269 msgstr ""
14270
14271 #. type: =head2
14272 #: ../fish/guestfish-actions.pod:4939
14273 msgid "vg-activate-all"
14274 msgstr ""
14275
14276 #. type: verbatim
14277 #: ../fish/guestfish-actions.pod:4941
14278 #, no-wrap
14279 msgid ""
14280 " vg-activate-all true|false\n"
14281 "\n"
14282 msgstr ""
14283
14284 #. type: textblock
14285 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
14286 msgid ""
14287 "This command activates or (if C<activate> is false) deactivates all logical "
14288 "volumes in all volume groups."
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
14293 msgid "This command is the same as running C<vgchange -a y|n>"
14294 msgstr ""
14295
14296 #. type: =head2
14297 #: ../fish/guestfish-actions.pod:4948
14298 msgid "vgcreate"
14299 msgstr ""
14300
14301 #. type: verbatim
14302 #: ../fish/guestfish-actions.pod:4950
14303 #, no-wrap
14304 msgid ""
14305 " vgcreate volgroup 'physvols ...'\n"
14306 "\n"
14307 msgstr ""
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
14311 msgid ""
14312 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14313 "of physical volumes C<physvols>."
14314 msgstr ""
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:4955
14318 msgid "vglvuuids"
14319 msgstr ""
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:4957
14323 #, no-wrap
14324 msgid ""
14325 " vglvuuids vgname\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
14331 msgid ""
14332 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14333 "volumes created in this volume group."
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:4962
14338 msgid ""
14339 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14340 "logical volumes and volume groups."
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4965
14345 msgid "See also L</vgpvuuids>."
14346 msgstr ""
14347
14348 #. type: =head2
14349 #: ../fish/guestfish-actions.pod:4967
14350 msgid "vgpvuuids"
14351 msgstr ""
14352
14353 #. type: verbatim
14354 #: ../fish/guestfish-actions.pod:4969
14355 #, no-wrap
14356 msgid ""
14357 " vgpvuuids vgname\n"
14358 "\n"
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
14363 msgid ""
14364 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14365 "volumes that this volume group resides on."
14366 msgstr ""
14367
14368 #. type: textblock
14369 #: ../fish/guestfish-actions.pod:4974
14370 msgid ""
14371 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14372 "physical volumes and volume groups."
14373 msgstr ""
14374
14375 #. type: textblock
14376 #: ../fish/guestfish-actions.pod:4977
14377 msgid "See also L</vglvuuids>."
14378 msgstr ""
14379
14380 #. type: =head2
14381 #: ../fish/guestfish-actions.pod:4979
14382 msgid "vgremove"
14383 msgstr ""
14384
14385 #. type: verbatim
14386 #: ../fish/guestfish-actions.pod:4981
14387 #, no-wrap
14388 msgid ""
14389 " vgremove vgname\n"
14390 "\n"
14391 msgstr ""
14392
14393 #. type: textblock
14394 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
14395 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14396 msgstr ""
14397
14398 #. type: textblock
14399 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
14400 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14401 msgstr ""
14402
14403 #. type: =head2
14404 #: ../fish/guestfish-actions.pod:4988
14405 msgid "vgrename"
14406 msgstr ""
14407
14408 #. type: verbatim
14409 #: ../fish/guestfish-actions.pod:4990
14410 #, no-wrap
14411 msgid ""
14412 " vgrename volgroup newvolgroup\n"
14413 "\n"
14414 msgstr ""
14415
14416 #. type: textblock
14417 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
14418 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14419 msgstr ""
14420
14421 #. type: =head2
14422 #: ../fish/guestfish-actions.pod:4994
14423 msgid "vgs"
14424 msgstr ""
14425
14426 #. type: verbatim
14427 #: ../fish/guestfish-actions.pod:4996
14428 #, no-wrap
14429 msgid ""
14430 " vgs\n"
14431 "\n"
14432 msgstr ""
14433
14434 #. type: textblock
14435 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
14436 msgid ""
14437 "List all the volumes groups detected.  This is the equivalent of the "
14438 "L<vgs(8)> command."
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
14443 msgid ""
14444 "This returns a list of just the volume group names that were detected "
14445 "(eg. C<VolGroup00>)."
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:5004
14450 msgid "See also L</vgs-full>."
14451 msgstr ""
14452
14453 #. type: =head2
14454 #: ../fish/guestfish-actions.pod:5006
14455 msgid "vgs-full"
14456 msgstr ""
14457
14458 #. type: verbatim
14459 #: ../fish/guestfish-actions.pod:5008
14460 #, no-wrap
14461 msgid ""
14462 " vgs-full\n"
14463 "\n"
14464 msgstr ""
14465
14466 #. type: textblock
14467 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
14468 msgid ""
14469 "List all the volumes groups detected.  This is the equivalent of the "
14470 "L<vgs(8)> command.  The \"full\" version includes all fields."
14471 msgstr ""
14472
14473 #. type: =head2
14474 #: ../fish/guestfish-actions.pod:5013
14475 msgid "vgscan"
14476 msgstr ""
14477
14478 #. type: verbatim
14479 #: ../fish/guestfish-actions.pod:5015
14480 #, no-wrap
14481 msgid ""
14482 " vgscan\n"
14483 "\n"
14484 msgstr ""
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
14488 msgid ""
14489 "This rescans all block devices and rebuilds the list of LVM physical "
14490 "volumes, volume groups and logical volumes."
14491 msgstr ""
14492
14493 #. type: =head2
14494 #: ../fish/guestfish-actions.pod:5020
14495 msgid "vguuid"
14496 msgstr ""
14497
14498 #. type: verbatim
14499 #: ../fish/guestfish-actions.pod:5022
14500 #, no-wrap
14501 msgid ""
14502 " vguuid vgname\n"
14503 "\n"
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
14508 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14509 msgstr ""
14510
14511 #. type: =head2
14512 #: ../fish/guestfish-actions.pod:5026
14513 msgid "wc-c"
14514 msgstr ""
14515
14516 #. type: verbatim
14517 #: ../fish/guestfish-actions.pod:5028
14518 #, no-wrap
14519 msgid ""
14520 " wc-c path\n"
14521 "\n"
14522 msgstr ""
14523
14524 #. type: textblock
14525 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
14526 msgid ""
14527 "This command counts the characters in a file, using the C<wc -c> external "
14528 "command."
14529 msgstr ""
14530
14531 #. type: =head2
14532 #: ../fish/guestfish-actions.pod:5033
14533 msgid "wc-l"
14534 msgstr ""
14535
14536 #. type: verbatim
14537 #: ../fish/guestfish-actions.pod:5035
14538 #, no-wrap
14539 msgid ""
14540 " wc-l path\n"
14541 "\n"
14542 msgstr ""
14543
14544 #. type: textblock
14545 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
14546 msgid ""
14547 "This command counts the lines in a file, using the C<wc -l> external "
14548 "command."
14549 msgstr ""
14550
14551 #. type: =head2
14552 #: ../fish/guestfish-actions.pod:5040
14553 msgid "wc-w"
14554 msgstr ""
14555
14556 #. type: verbatim
14557 #: ../fish/guestfish-actions.pod:5042
14558 #, no-wrap
14559 msgid ""
14560 " wc-w path\n"
14561 "\n"
14562 msgstr ""
14563
14564 #. type: textblock
14565 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
14566 msgid ""
14567 "This command counts the words in a file, using the C<wc -w> external "
14568 "command."
14569 msgstr ""
14570
14571 #. type: =head2
14572 #: ../fish/guestfish-actions.pod:5047
14573 msgid "write"
14574 msgstr ""
14575
14576 #. type: verbatim
14577 #: ../fish/guestfish-actions.pod:5049
14578 #, no-wrap
14579 msgid ""
14580 " write path content\n"
14581 "\n"
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
14586 msgid ""
14587 "This call creates a file called C<path>.  The content of the file is the "
14588 "string C<content> (which can contain any 8 bit data)."
14589 msgstr ""
14590
14591 #. type: textblock
14592 #: ../fish/guestfish-actions.pod:5054
14593 msgid "See also L</write-append>."
14594 msgstr ""
14595
14596 #. type: =head2
14597 #: ../fish/guestfish-actions.pod:5059
14598 msgid "write-append"
14599 msgstr ""
14600
14601 #. type: verbatim
14602 #: ../fish/guestfish-actions.pod:5061
14603 #, no-wrap
14604 msgid ""
14605 " write-append path content\n"
14606 "\n"
14607 msgstr ""
14608
14609 #. type: textblock
14610 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
14611 msgid ""
14612 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14613 "not exist, then a new file is created."
14614 msgstr ""
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:5066
14618 msgid "See also L</write>."
14619 msgstr ""
14620
14621 #. type: =head2
14622 #: ../fish/guestfish-actions.pod:5071
14623 msgid "write-file"
14624 msgstr ""
14625
14626 #. type: verbatim
14627 #: ../fish/guestfish-actions.pod:5073
14628 #, no-wrap
14629 msgid ""
14630 " write-file path content size\n"
14631 "\n"
14632 msgstr ""
14633
14634 #. type: textblock
14635 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7700
14636 msgid ""
14637 "This call creates a file called C<path>.  The contents of the file is the "
14638 "string C<content> (which can contain any 8 bit data), with length C<size>."
14639 msgstr ""
14640
14641 #. type: textblock
14642 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7704
14643 msgid ""
14644 "As a special case, if C<size> is C<0> then the length is calculated using "
14645 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7708
14650 msgid ""
14651 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14652 "I<not> work, even if the length is specified."
14653 msgstr ""
14654
14655 #. type: textblock
14656 #: ../fish/guestfish-actions.pod:5089
14657 msgid "This function is deprecated.  In new code, use the L</write> call instead."
14658 msgstr ""
14659
14660 #. type: =head2
14661 #: ../fish/guestfish-actions.pod:5096
14662 msgid "zegrep"
14663 msgstr ""
14664
14665 #. type: verbatim
14666 #: ../fish/guestfish-actions.pod:5098
14667 #, no-wrap
14668 msgid ""
14669 " zegrep regex path\n"
14670 "\n"
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
14675 msgid "This calls the external C<zegrep> program and returns the matching lines."
14676 msgstr ""
14677
14678 #. type: =head2
14679 #: ../fish/guestfish-actions.pod:5106
14680 msgid "zegrepi"
14681 msgstr ""
14682
14683 #. type: verbatim
14684 #: ../fish/guestfish-actions.pod:5108
14685 #, no-wrap
14686 msgid ""
14687 " zegrepi regex path\n"
14688 "\n"
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
14693 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14694 msgstr ""
14695
14696 #. type: =head2
14697 #: ../fish/guestfish-actions.pod:5116
14698 msgid "zero"
14699 msgstr ""
14700
14701 #. type: verbatim
14702 #: ../fish/guestfish-actions.pod:5118
14703 #, no-wrap
14704 msgid ""
14705 " zero device\n"
14706 "\n"
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
14711 msgid "This command writes zeroes over the first few blocks of C<device>."
14712 msgstr ""
14713
14714 #. type: textblock
14715 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
14716 msgid ""
14717 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14718 "securely wipe the device).  It should be sufficient to remove any partition "
14719 "tables, filesystem superblocks and so on."
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
14724 msgid ""
14725 "If blocks are already zero, then this command avoids writing zeroes.  This "
14726 "prevents the underlying device from becoming non-sparse or growing "
14727 "unnecessarily."
14728 msgstr ""
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:5130
14732 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
14733 msgstr ""
14734
14735 #. type: =head2
14736 #: ../fish/guestfish-actions.pod:5133
14737 msgid "zero-device"
14738 msgstr ""
14739
14740 #. type: verbatim
14741 #: ../fish/guestfish-actions.pod:5135
14742 #, no-wrap
14743 msgid ""
14744 " zero-device device\n"
14745 "\n"
14746 msgstr ""
14747
14748 #. type: textblock
14749 #: ../fish/guestfish-actions.pod:5137
14750 msgid ""
14751 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
14752 "which just zeroes the first few blocks of a device."
14753 msgstr ""
14754
14755 #. type: =head2
14756 #: ../fish/guestfish-actions.pod:5148
14757 msgid "zerofree"
14758 msgstr ""
14759
14760 #. type: verbatim
14761 #: ../fish/guestfish-actions.pod:5150
14762 #, no-wrap
14763 msgid ""
14764 " zerofree device\n"
14765 "\n"
14766 msgstr ""
14767
14768 #. type: textblock
14769 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
14770 msgid ""
14771 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14772 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14773 "possible to compress the filesystem more effectively."
14774 msgstr ""
14775
14776 #. type: textblock
14777 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
14778 msgid "You should B<not> run this program if the filesystem is mounted."
14779 msgstr ""
14780
14781 #. type: textblock
14782 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
14783 msgid ""
14784 "It is possible that using this program can damage the filesystem or data on "
14785 "the filesystem."
14786 msgstr ""
14787
14788 #. type: =head2
14789 #: ../fish/guestfish-actions.pod:5163
14790 msgid "zfgrep"
14791 msgstr ""
14792
14793 #. type: verbatim
14794 #: ../fish/guestfish-actions.pod:5165
14795 #, no-wrap
14796 msgid ""
14797 " zfgrep pattern path\n"
14798 "\n"
14799 msgstr ""
14800
14801 #. type: textblock
14802 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
14803 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14804 msgstr ""
14805
14806 #. type: =head2
14807 #: ../fish/guestfish-actions.pod:5173
14808 msgid "zfgrepi"
14809 msgstr ""
14810
14811 #. type: verbatim
14812 #: ../fish/guestfish-actions.pod:5175
14813 #, no-wrap
14814 msgid ""
14815 " zfgrepi pattern path\n"
14816 "\n"
14817 msgstr ""
14818
14819 #. type: textblock
14820 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
14821 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14822 msgstr ""
14823
14824 #. type: =head2
14825 #: ../fish/guestfish-actions.pod:5183
14826 msgid "zfile"
14827 msgstr ""
14828
14829 #. type: verbatim
14830 #: ../fish/guestfish-actions.pod:5185
14831 #, no-wrap
14832 msgid ""
14833 " zfile meth path\n"
14834 "\n"
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7883
14839 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14840 msgstr ""
14841
14842 #. type: textblock
14843 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7886
14844 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:5192
14849 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
14850 msgstr ""
14851
14852 #. type: textblock
14853 #: ../fish/guestfish-actions.pod:5195
14854 msgid "This function is deprecated.  In new code, use the L</file> call instead."
14855 msgstr ""
14856
14857 #. type: =head2
14858 #: ../fish/guestfish-actions.pod:5202
14859 msgid "zgrep"
14860 msgstr ""
14861
14862 #. type: verbatim
14863 #: ../fish/guestfish-actions.pod:5204
14864 #, no-wrap
14865 msgid ""
14866 " zgrep regex path\n"
14867 "\n"
14868 msgstr ""
14869
14870 #. type: textblock
14871 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
14872 msgid "This calls the external C<zgrep> program and returns the matching lines."
14873 msgstr ""
14874
14875 #. type: =head2
14876 #: ../fish/guestfish-actions.pod:5212
14877 msgid "zgrepi"
14878 msgstr ""
14879
14880 #. type: verbatim
14881 #: ../fish/guestfish-actions.pod:5214
14882 #, no-wrap
14883 msgid ""
14884 " zgrepi regex path\n"
14885 "\n"
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
14890 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14891 msgstr ""
14892
14893 #. type: =head2
14894 #: ../fish/guestfish-commands.pod:1
14895 msgid "alloc"
14896 msgstr ""
14897
14898 #. type: =head2
14899 #: ../fish/guestfish-commands.pod:3
14900 msgid "allocate"
14901 msgstr ""
14902
14903 #. type: verbatim
14904 #: ../fish/guestfish-commands.pod:5
14905 #, no-wrap
14906 msgid ""
14907 " alloc filename size\n"
14908 "\n"
14909 msgstr ""
14910
14911 #. type: textblock
14912 #: ../fish/guestfish-commands.pod:7
14913 msgid ""
14914 "This creates an empty (zeroed) file of the given size, and then adds so it "
14915 "can be further examined."
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
14920 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
14925 msgid "Size can be specified using standard suffixes, eg. C<1M>."
14926 msgstr ""
14927
14928 #. type: textblock
14929 #: ../fish/guestfish-commands.pod:14
14930 msgid ""
14931 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
14932 "image, see L</PREPARED DISK IMAGES>."
14933 msgstr ""
14934
14935 #. type: =head2
14936 #: ../fish/guestfish-commands.pod:17
14937 msgid "copy-in"
14938 msgstr ""
14939
14940 #. type: verbatim
14941 #: ../fish/guestfish-commands.pod:19
14942 #, no-wrap
14943 msgid ""
14944 " copy-in local [local ...] /remotedir\n"
14945 "\n"
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-commands.pod:21
14950 msgid ""
14951 "C<copy-in> copies local files or directories recursively into the disk "
14952 "image, placing them in the directory called C</remotedir> (which must "
14953 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
14954 "other commands as necessary."
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../fish/guestfish-commands.pod:26
14959 msgid ""
14960 "Multiple local files and directories can be specified, but the last "
14961 "parameter must always be a remote directory.  Wildcards cannot be used."
14962 msgstr ""
14963
14964 #. type: =head2
14965 #: ../fish/guestfish-commands.pod:30
14966 msgid "copy-out"
14967 msgstr ""
14968
14969 #. type: verbatim
14970 #: ../fish/guestfish-commands.pod:32
14971 #, no-wrap
14972 msgid ""
14973 " copy-out remote [remote ...] localdir\n"
14974 "\n"
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-commands.pod:34
14979 msgid ""
14980 "C<copy-out> copies remote files or directories recursively out of the disk "
14981 "image, placing them on the host disk in a local directory called C<localdir> "
14982 "(which must exist).  This guestfish meta-command turns into a sequence of "
14983 "L</download>, L</tar-out> and other commands as necessary."
14984 msgstr ""
14985
14986 #. type: textblock
14987 #: ../fish/guestfish-commands.pod:40
14988 msgid ""
14989 "Multiple remote files and directories can be specified, but the last "
14990 "parameter must always be a local directory.  To download to the current "
14991 "directory, use C<.> as in:"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-commands.pod:44
14996 #, no-wrap
14997 msgid ""
14998 " copy-out /home .\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-commands.pod:46
15004 msgid ""
15005 "Wildcards cannot be used in the ordinary command, but you can use them with "
15006 "the help of L</glob> like this:"
15007 msgstr ""
15008
15009 #. type: verbatim
15010 #: ../fish/guestfish-commands.pod:49
15011 #, no-wrap
15012 msgid ""
15013 " glob copy-out /home/* .\n"
15014 "\n"
15015 msgstr ""
15016
15017 #. type: =head2
15018 #: ../fish/guestfish-commands.pod:51
15019 msgid "display"
15020 msgstr ""
15021
15022 #. type: verbatim
15023 #: ../fish/guestfish-commands.pod:53
15024 #, no-wrap
15025 msgid ""
15026 " display filename\n"
15027 "\n"
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-commands.pod:55
15032 msgid ""
15033 "Use C<display> (a graphical display program) to display an image file.  It "
15034 "downloads the file, and runs C<display> on it."
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-commands.pod:58
15039 msgid ""
15040 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15041 "environment variable.  For example to use the GNOME display program:"
15042 msgstr ""
15043
15044 #. type: verbatim
15045 #: ../fish/guestfish-commands.pod:61
15046 #, no-wrap
15047 msgid ""
15048 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15049 "\n"
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-commands.pod:63
15054 msgid "See also L<display(1)>."
15055 msgstr ""
15056
15057 #. type: =head2
15058 #: ../fish/guestfish-commands.pod:65
15059 msgid "echo"
15060 msgstr ""
15061
15062 #. type: verbatim
15063 #: ../fish/guestfish-commands.pod:67
15064 #, no-wrap
15065 msgid ""
15066 " echo [params ...]\n"
15067 "\n"
15068 msgstr ""
15069
15070 #. type: textblock
15071 #: ../fish/guestfish-commands.pod:69
15072 msgid "This echos the parameters to the terminal."
15073 msgstr ""
15074
15075 #. type: =head2
15076 #: ../fish/guestfish-commands.pod:71
15077 msgid "edit"
15078 msgstr ""
15079
15080 #. type: =head2
15081 #: ../fish/guestfish-commands.pod:73
15082 msgid "vi"
15083 msgstr ""
15084
15085 #. type: =head2
15086 #: ../fish/guestfish-commands.pod:75
15087 msgid "emacs"
15088 msgstr ""
15089
15090 #. type: verbatim
15091 #: ../fish/guestfish-commands.pod:77
15092 #, no-wrap
15093 msgid ""
15094 " edit filename\n"
15095 "\n"
15096 msgstr ""
15097
15098 #. type: textblock
15099 #: ../fish/guestfish-commands.pod:79
15100 msgid ""
15101 "This is used to edit a file.  It downloads the file, edits it locally using "
15102 "your editor, then uploads the result."
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-commands.pod:82
15107 msgid ""
15108 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15109 "or C<emacs> you will get those corresponding editors."
15110 msgstr ""
15111
15112 #. type: =head2
15113 #: ../fish/guestfish-commands.pod:86
15114 msgid "glob"
15115 msgstr ""
15116
15117 #. type: verbatim
15118 #: ../fish/guestfish-commands.pod:88
15119 #, no-wrap
15120 msgid ""
15121 " glob command args...\n"
15122 "\n"
15123 msgstr ""
15124
15125 #. type: textblock
15126 #: ../fish/guestfish-commands.pod:90
15127 msgid ""
15128 "Expand wildcards in any paths in the args list, and run C<command> "
15129 "repeatedly on each matching path."
15130 msgstr ""
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-commands.pod:93
15134 msgid "See L</WILDCARDS AND GLOBBING>."
15135 msgstr ""
15136
15137 #. type: =head2
15138 #: ../fish/guestfish-commands.pod:95
15139 msgid "hexedit"
15140 msgstr ""
15141
15142 #. type: verbatim
15143 #: ../fish/guestfish-commands.pod:97
15144 #, no-wrap
15145 msgid ""
15146 " hexedit <filename|device>\n"
15147 " hexedit <filename|device> <max>\n"
15148 " hexedit <filename|device> <start> <max>\n"
15149 "\n"
15150 msgstr ""
15151
15152 #. type: textblock
15153 #: ../fish/guestfish-commands.pod:101
15154 msgid ""
15155 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15156 "device."
15157 msgstr ""
15158
15159 #. type: textblock
15160 #: ../fish/guestfish-commands.pod:104
15161 msgid ""
15162 "This command works by downloading potentially the whole file or device, "
15163 "editing it locally, then uploading it.  If the file or device is large, you "
15164 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15165 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15166 "usual modifiers allowed such as C<1M> (1 megabyte)."
15167 msgstr ""
15168
15169 #. type: textblock
15170 #: ../fish/guestfish-commands.pod:111
15171 msgid "For example to edit the first few sectors of a disk you might do:"
15172 msgstr ""
15173
15174 #. type: verbatim
15175 #: ../fish/guestfish-commands.pod:114
15176 #, no-wrap
15177 msgid ""
15178 " hexedit /dev/sda 1M\n"
15179 "\n"
15180 msgstr ""
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-commands.pod:116
15184 msgid ""
15185 "which would allow you to edit anywhere within the first megabyte of the "
15186 "disk."
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-commands.pod:119
15191 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15192 msgstr ""
15193
15194 #. type: verbatim
15195 #: ../fish/guestfish-commands.pod:121
15196 #, no-wrap
15197 msgid ""
15198 " hexedit /dev/sda1 0x400 0x400\n"
15199 "\n"
15200 msgstr ""
15201
15202 #. type: textblock
15203 #: ../fish/guestfish-commands.pod:123
15204 msgid "(assuming the superblock is in the standard location)."
15205 msgstr ""
15206
15207 #. type: textblock
15208 #: ../fish/guestfish-commands.pod:125
15209 msgid ""
15210 "This command requires the external L<hexedit(1)> program.  You can specify "
15211 "another program to use by setting the C<HEXEDITOR> environment variable."
15212 msgstr ""
15213
15214 #. type: textblock
15215 #: ../fish/guestfish-commands.pod:129
15216 msgid "See also L</hexdump>."
15217 msgstr ""
15218
15219 #. type: =head2
15220 #: ../fish/guestfish-commands.pod:131
15221 msgid "lcd"
15222 msgstr ""
15223
15224 #. type: verbatim
15225 #: ../fish/guestfish-commands.pod:133
15226 #, no-wrap
15227 msgid ""
15228 " lcd directory\n"
15229 "\n"
15230 msgstr ""
15231
15232 #. type: textblock
15233 #: ../fish/guestfish-commands.pod:135
15234 msgid "Change the local directory, ie. the current directory of guestfish itself."
15235 msgstr ""
15236
15237 #. type: textblock
15238 #: ../fish/guestfish-commands.pod:138
15239 msgid "Note that C<!cd> won't do what you might expect."
15240 msgstr ""
15241
15242 #. type: =head2
15243 #: ../fish/guestfish-commands.pod:140
15244 msgid "man"
15245 msgstr ""
15246
15247 #. type: =head2
15248 #: ../fish/guestfish-commands.pod:142
15249 msgid "manual"
15250 msgstr ""
15251
15252 #. type: verbatim
15253 #: ../fish/guestfish-commands.pod:144
15254 #, no-wrap
15255 msgid ""
15256 "  man\n"
15257 "\n"
15258 msgstr ""
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-commands.pod:146
15262 msgid "Opens the manual page for guestfish."
15263 msgstr ""
15264
15265 #. type: =head2
15266 #: ../fish/guestfish-commands.pod:148
15267 msgid "more"
15268 msgstr ""
15269
15270 #. type: =head2
15271 #: ../fish/guestfish-commands.pod:150
15272 msgid "less"
15273 msgstr ""
15274
15275 #. type: verbatim
15276 #: ../fish/guestfish-commands.pod:152
15277 #, no-wrap
15278 msgid ""
15279 " more filename\n"
15280 "\n"
15281 msgstr ""
15282
15283 #. type: verbatim
15284 #: ../fish/guestfish-commands.pod:154
15285 #, no-wrap
15286 msgid ""
15287 " less filename\n"
15288 "\n"
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-commands.pod:156
15293 msgid "This is used to view a file."
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-commands.pod:158
15298 msgid ""
15299 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15300 "C<less> you will get the C<less> command specifically."
15301 msgstr ""
15302
15303 #. type: =head2
15304 #: ../fish/guestfish-commands.pod:161
15305 msgid "reopen"
15306 msgstr ""
15307
15308 #. type: verbatim
15309 #: ../fish/guestfish-commands.pod:163
15310 #, no-wrap
15311 msgid ""
15312 "  reopen\n"
15313 "\n"
15314 msgstr ""
15315
15316 #. type: textblock
15317 #: ../fish/guestfish-commands.pod:165
15318 msgid ""
15319 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15320 "normally, because the handle is closed properly when guestfish exits.  "
15321 "However this is occasionally useful for testing."
15322 msgstr ""
15323
15324 #. type: =head2
15325 #: ../fish/guestfish-commands.pod:169
15326 msgid "sparse"
15327 msgstr ""
15328
15329 #. type: verbatim
15330 #: ../fish/guestfish-commands.pod:171
15331 #, no-wrap
15332 msgid ""
15333 " sparse filename size\n"
15334 "\n"
15335 msgstr ""
15336
15337 #. type: textblock
15338 #: ../fish/guestfish-commands.pod:173
15339 msgid ""
15340 "This creates an empty sparse file of the given size, and then adds so it can "
15341 "be further examined."
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-commands.pod:176
15346 msgid ""
15347 "In all respects it works the same as the L</alloc> command, except that the "
15348 "image file is allocated sparsely, which means that disk blocks are not "
15349 "assigned to the file until they are needed.  Sparse disk files only use "
15350 "space when written to, but they are slower and there is a danger you could "
15351 "run out of real disk space during a write operation."
15352 msgstr ""
15353
15354 #. type: =head2
15355 #: ../fish/guestfish-commands.pod:186
15356 msgid "supported"
15357 msgstr ""
15358
15359 #. type: verbatim
15360 #: ../fish/guestfish-commands.pod:188
15361 #, no-wrap
15362 msgid ""
15363 " supported\n"
15364 "\n"
15365 msgstr ""
15366
15367 #. type: textblock
15368 #: ../fish/guestfish-commands.pod:190
15369 msgid ""
15370 "This command returns a list of the optional groups known to the daemon, and "
15371 "indicates which ones are supported by this build of the libguestfs "
15372 "appliance."
15373 msgstr ""
15374
15375 #. type: textblock
15376 #: ../fish/guestfish-commands.pod:194
15377 msgid "See also L<guestfs(3)/AVAILABILITY>."
15378 msgstr ""
15379
15380 #. type: =head2
15381 #: ../fish/guestfish-commands.pod:196
15382 msgid "time"
15383 msgstr ""
15384
15385 #. type: verbatim
15386 #: ../fish/guestfish-commands.pod:198
15387 #, no-wrap
15388 msgid ""
15389 " time command args...\n"
15390 "\n"
15391 msgstr ""
15392
15393 #. type: textblock
15394 #: ../fish/guestfish-commands.pod:200
15395 msgid ""
15396 "Run the command as usual, but print the elapsed time afterwards.  This can "
15397 "be useful for benchmarking operations."
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../fish/guestfish.pod:5
15402 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15403 msgstr ""
15404
15405 #. type: verbatim
15406 #: ../fish/guestfish.pod:9
15407 #, no-wrap
15408 msgid ""
15409 " guestfish [--options] [commands]\n"
15410 "\n"
15411 msgstr ""
15412
15413 #. type: verbatim
15414 #: ../fish/guestfish.pod:11
15415 #, no-wrap
15416 msgid ""
15417 " guestfish\n"
15418 "\n"
15419 msgstr ""
15420
15421 #. type: verbatim
15422 #: ../fish/guestfish.pod:13
15423 #, no-wrap
15424 msgid ""
15425 " guestfish [--ro|--rw] -a disk.img\n"
15426 "\n"
15427 msgstr ""
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish.pod:15
15431 #, no-wrap
15432 msgid ""
15433 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15434 "\n"
15435 msgstr ""
15436
15437 #. type: verbatim
15438 #: ../fish/guestfish.pod:17
15439 #, no-wrap
15440 msgid ""
15441 " guestfish -d libvirt-domain\n"
15442 "\n"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish.pod:19
15447 #, no-wrap
15448 msgid ""
15449 " guestfish [--ro|--rw] -a disk.img -i\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: verbatim
15454 #: ../fish/guestfish.pod:21
15455 #, no-wrap
15456 msgid ""
15457 " guestfish -d libvirt-domain -i\n"
15458 "\n"
15459 msgstr ""
15460
15461 #. type: textblock
15462 #: ../fish/guestfish.pod:25
15463 msgid ""
15464 "Using guestfish in read/write mode on live virtual machines can be "
15465 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15466 "option to use guestfish safely if the disk image or virtual machine might be "
15467 "live."
15468 msgstr ""
15469
15470 #. type: textblock
15471 #: ../fish/guestfish.pod:32
15472 msgid ""
15473 "Guestfish is a shell and command-line tool for examining and modifying "
15474 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15475 "functionality of the guestfs API, see L<guestfs(3)>."
15476 msgstr ""
15477
15478 #. type: textblock
15479 #: ../fish/guestfish.pod:36
15480 msgid ""
15481 "Guestfish gives you structured access to the libguestfs API, from shell "
15482 "scripts or the command line or interactively.  If you want to rescue a "
15483 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15484 "command."
15485 msgstr ""
15486
15487 #. type: =head2
15488 #: ../fish/guestfish.pod:43
15489 msgid "As an interactive shell"
15490 msgstr ""
15491
15492 #. type: verbatim
15493 #: ../fish/guestfish.pod:45
15494 #, no-wrap
15495 msgid ""
15496 " $ guestfish\n"
15497 " \n"
15498 msgstr ""
15499
15500 #. type: verbatim
15501 #: ../fish/guestfish.pod:47
15502 #, no-wrap
15503 msgid ""
15504 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15505 " editing virtual machine filesystems.\n"
15506 " \n"
15507 msgstr ""
15508
15509 #. type: verbatim
15510 #: ../fish/guestfish.pod:50
15511 #, no-wrap
15512 msgid ""
15513 " Type: 'help' for a list of commands\n"
15514 "       'man' to read the manual\n"
15515 "       'quit' to quit the shell\n"
15516 " \n"
15517 msgstr ""
15518
15519 #. type: verbatim
15520 #: ../fish/guestfish.pod:54
15521 #, no-wrap
15522 msgid ""
15523 " ><fs> add-ro disk.img\n"
15524 " ><fs> run\n"
15525 " ><fs> list-filesystems\n"
15526 " /dev/sda1: ext4\n"
15527 " /dev/vg_guest/lv_root: ext4\n"
15528 " /dev/vg_guest/lv_swap: swap\n"
15529 " ><fs> mount /dev/vg_guest/lv_root /\n"
15530 " ><fs> cat /etc/fstab\n"
15531 " # /etc/fstab\n"
15532 " # Created by anaconda\n"
15533 " [...]\n"
15534 " ><fs> exit\n"
15535 "\n"
15536 msgstr ""
15537
15538 #. type: =head2
15539 #: ../fish/guestfish.pod:67
15540 msgid "From shell scripts"
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish.pod:69
15545 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15546 msgstr ""
15547
15548 #. type: verbatim
15549 #: ../fish/guestfish.pod:71
15550 #, no-wrap
15551 msgid ""
15552 " guestfish <<_EOF_\n"
15553 " add disk.img\n"
15554 " run\n"
15555 " mount /dev/vg_guest/lv_root /\n"
15556 " write /etc/motd \"Welcome, new users\"\n"
15557 " _EOF_\n"
15558 "\n"
15559 msgstr ""
15560
15561 #. type: textblock
15562 #: ../fish/guestfish.pod:78
15563 msgid "List the LVM logical volumes in a disk image:"
15564 msgstr ""
15565
15566 #. type: verbatim
15567 #: ../fish/guestfish.pod:80
15568 #, no-wrap
15569 msgid ""
15570 " guestfish -a disk.img --ro <<_EOF_\n"
15571 " run\n"
15572 " lvs\n"
15573 " _EOF_\n"
15574 "\n"
15575 msgstr ""
15576
15577 #. type: textblock
15578 #: ../fish/guestfish.pod:85
15579 msgid "List all the filesystems in a disk image:"
15580 msgstr ""
15581
15582 #. type: verbatim
15583 #: ../fish/guestfish.pod:87
15584 #, no-wrap
15585 msgid ""
15586 " guestfish -a disk.img --ro <<_EOF_\n"
15587 " run\n"
15588 " list-filesystems\n"
15589 " _EOF_\n"
15590 "\n"
15591 msgstr ""
15592
15593 #. type: =head2
15594 #: ../fish/guestfish.pod:92
15595 msgid "On one command line"
15596 msgstr ""
15597
15598 #. type: textblock
15599 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15600 msgid "Update C</etc/resolv.conf> in a guest:"
15601 msgstr ""
15602
15603 #. type: verbatim
15604 #: ../fish/guestfish.pod:96
15605 #, no-wrap
15606 msgid ""
15607 " guestfish \\\n"
15608 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15609 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15610 "\n"
15611 msgstr ""
15612
15613 #. type: textblock
15614 #: ../fish/guestfish.pod:100
15615 msgid "Edit C</boot/grub/grub.conf> interactively:"
15616 msgstr ""
15617
15618 #. type: verbatim
15619 #: ../fish/guestfish.pod:102
15620 #, no-wrap
15621 msgid ""
15622 " guestfish --rw --add disk.img \\\n"
15623 "   --mount /dev/vg_guest/lv_root \\\n"
15624 "   --mount /dev/sda1:/boot \\\n"
15625 "   edit /boot/grub/grub.conf\n"
15626 "\n"
15627 msgstr ""
15628
15629 #. type: =head2
15630 #: ../fish/guestfish.pod:107
15631 msgid "Mount disks automatically"
15632 msgstr ""
15633
15634 #. type: textblock
15635 #: ../fish/guestfish.pod:109
15636 msgid ""
15637 "Use the I<-i> option to automatically mount the disks from a virtual "
15638 "machine:"
15639 msgstr ""
15640
15641 #. type: verbatim
15642 #: ../fish/guestfish.pod:112
15643 #, no-wrap
15644 msgid ""
15645 " guestfish --ro -a disk.img -i cat /etc/group\n"
15646 "\n"
15647 msgstr ""
15648
15649 #. type: verbatim
15650 #: ../fish/guestfish.pod:114
15651 #, no-wrap
15652 msgid ""
15653 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15654 "\n"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../fish/guestfish.pod:116
15659 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15660 msgstr ""
15661
15662 #. type: verbatim
15663 #: ../fish/guestfish.pod:118
15664 #, no-wrap
15665 msgid ""
15666 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15667 "\n"
15668 msgstr ""
15669
15670 #. type: =head2
15671 #: ../fish/guestfish.pod:120
15672 msgid "As a script interpreter"
15673 msgstr ""
15674
15675 #. type: textblock
15676 #: ../fish/guestfish.pod:122
15677 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15678 msgstr ""
15679
15680 #. type: verbatim
15681 #: ../fish/guestfish.pod:124
15682 #, no-wrap
15683 msgid ""
15684 " #!/usr/bin/guestfish -f\n"
15685 " sparse test1.img 100M\n"
15686 " run\n"
15687 " part-disk /dev/sda mbr\n"
15688 " mkfs ext2 /dev/sda1\n"
15689 "\n"
15690 msgstr ""
15691
15692 #. type: =head2
15693 #: ../fish/guestfish.pod:130
15694 msgid "Start with a prepared disk"
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish.pod:132
15699 msgid ""
15700 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15701 "single ext2-formatted partition:"
15702 msgstr ""
15703
15704 #. type: verbatim
15705 #: ../fish/guestfish.pod:135
15706 #, no-wrap
15707 msgid ""
15708 " guestfish -N fs\n"
15709 "\n"
15710 msgstr ""
15711
15712 #. type: textblock
15713 #: ../fish/guestfish.pod:137
15714 msgid "To list what is available do:"
15715 msgstr ""
15716
15717 #. type: verbatim
15718 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
15719 #, no-wrap
15720 msgid ""
15721 " guestfish -N help | less\n"
15722 "\n"
15723 msgstr ""
15724
15725 #. type: =head2
15726 #: ../fish/guestfish.pod:141
15727 msgid "Remote control"
15728 msgstr ""
15729
15730 #. type: verbatim
15731 #: ../fish/guestfish.pod:143
15732 #, no-wrap
15733 msgid ""
15734 " eval \"`guestfish --listen`\"\n"
15735 " guestfish --remote add-ro disk.img\n"
15736 " guestfish --remote run\n"
15737 " guestfish --remote lvs\n"
15738 "\n"
15739 msgstr ""
15740
15741 #. type: textblock
15742 #: ../fish/guestfish.pod:154
15743 msgid "Displays general help on options."
15744 msgstr ""
15745
15746 #. type: =item
15747 #: ../fish/guestfish.pod:158
15748 msgid "B<--cmd-help>"
15749 msgstr ""
15750
15751 #. type: textblock
15752 #: ../fish/guestfish.pod:160
15753 msgid "Lists all available guestfish commands."
15754 msgstr ""
15755
15756 #. type: =item
15757 #: ../fish/guestfish.pod:162
15758 msgid "B<-h cmd>"
15759 msgstr ""
15760
15761 #. type: =item
15762 #: ../fish/guestfish.pod:164
15763 msgid "B<--cmd-help cmd>"
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../fish/guestfish.pod:166
15768 msgid "Displays detailed help on a single command C<cmd>."
15769 msgstr ""
15770
15771 #. type: =item
15772 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
15773 msgid "B<-a image>"
15774 msgstr ""
15775
15776 #. type: =item
15777 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
15778 msgid "B<--add image>"
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish.pod:172
15783 msgid "Add a block device or virtual machine image to the shell."
15784 msgstr ""
15785
15786 #. type: textblock
15787 #: ../fish/guestfish.pod:177
15788 msgid ""
15789 "Using this flag is mostly equivalent to using the C<add> command, with "
15790 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
15791 "the I<--format=...> flag was given."
15792 msgstr ""
15793
15794 #. type: textblock
15795 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
15796 msgid ""
15797 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15798 "URI to use.  The default is to use the default libvirt connection."
15799 msgstr ""
15800
15801 #. type: =item
15802 #: ../fish/guestfish.pod:189
15803 msgid "B<--csh>"
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish.pod:191
15808 msgid ""
15809 "If using the I<--listen> option and a csh-like shell, use this option.  See "
15810 "section L</REMOTE CONTROL AND CSH> below."
15811 msgstr ""
15812
15813 #. type: =item
15814 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
15815 msgid "B<-d libvirt-domain>"
15816 msgstr ""
15817
15818 #. type: =item
15819 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
15820 msgid "B<--domain libvirt-domain>"
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
15825 msgid ""
15826 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15827 "used, then any libvirt domain can be used.  However in write mode, only "
15828 "libvirt domains which are shut down can be named here."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
15833 msgid "Domain UUIDs can be used instead of names."
15834 msgstr ""
15835
15836 #. type: textblock
15837 #: ../fish/guestfish.pod:204
15838 msgid ""
15839 "Using this flag is mostly equivalent to using the C<add-domain> command, "
15840 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
15841 "if the I<--format:...> flag was given."
15842 msgstr ""
15843
15844 #. type: =item
15845 #: ../fish/guestfish.pod:208
15846 msgid "B<-D>"
15847 msgstr ""
15848
15849 #. type: =item
15850 #: ../fish/guestfish.pod:210
15851 msgid "B<--no-dest-paths>"
15852 msgstr ""
15853
15854 #. type: textblock
15855 #: ../fish/guestfish.pod:212
15856 msgid ""
15857 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15858 "to hit the tab key to complete paths on the guest filesystem, but this "
15859 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15860 "allow this feature to be disabled."
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
15865 msgid ""
15866 "When prompting for keys and passphrases, guestfish normally turns echoing "
15867 "off so you cannot see what you are typing.  If you are not worried about "
15868 "Tempest attacks and there is no one else in the room you can specify this "
15869 "flag to see what you are typing."
15870 msgstr ""
15871
15872 #. type: =item
15873 #: ../fish/guestfish.pod:224
15874 msgid "B<-f file>"
15875 msgstr ""
15876
15877 #. type: =item
15878 #: ../fish/guestfish.pod:226
15879 msgid "B<--file file>"
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish.pod:228
15884 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15885 msgstr ""
15886
15887 #. type: verbatim
15888 #: ../fish/guestfish.pod:231
15889 #, no-wrap
15890 msgid ""
15891 " #!/usr/bin/guestfish -f\n"
15892 "\n"
15893 msgstr ""
15894
15895 #. type: verbatim
15896 #: ../fish/guestfish.pod:244
15897 #, no-wrap
15898 msgid ""
15899 " guestfish --format=raw -a disk.img\n"
15900 "\n"
15901 msgstr ""
15902
15903 #. type: verbatim
15904 #: ../fish/guestfish.pod:248
15905 #, no-wrap
15906 msgid ""
15907 " guestfish --format=raw -a disk.img --format -a another.img\n"
15908 "\n"
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../fish/guestfish.pod:253
15913 msgid ""
15914 "If you have untrusted raw-format guest disk images, you should use this "
15915 "option to specify the disk format.  This avoids a possible security problem "
15916 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15917 msgstr ""
15918
15919 #. type: =item
15920 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
15921 msgid "B<--inspector>"
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
15926 msgid ""
15927 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15928 "system and mount filesystems as they would be mounted on the real virtual "
15929 "machine."
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish.pod:266
15934 msgid "Typical usage is either:"
15935 msgstr ""
15936
15937 #. type: verbatim
15938 #: ../fish/guestfish.pod:268
15939 #, no-wrap
15940 msgid ""
15941 " guestfish -d myguest -i\n"
15942 "\n"
15943 msgstr ""
15944
15945 #. type: textblock
15946 #: ../fish/guestfish.pod:270
15947 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15948 msgstr ""
15949
15950 #. type: verbatim
15951 #: ../fish/guestfish.pod:272
15952 #, no-wrap
15953 msgid ""
15954 " guestfish --ro -d myguest -i\n"
15955 "\n"
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../fish/guestfish.pod:274
15960 msgid "(for active domains, readonly), or specify the block device directly:"
15961 msgstr ""
15962
15963 #. type: verbatim
15964 #: ../fish/guestfish.pod:276
15965 #, no-wrap
15966 msgid ""
15967 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
15968 "\n"
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish.pod:278
15973 msgid ""
15974 "Note that the command line syntax changed slightly over older versions of "
15975 "guestfish.  You can still use the old syntax:"
15976 msgstr ""
15977
15978 #. type: verbatim
15979 #: ../fish/guestfish.pod:281
15980 #, no-wrap
15981 msgid ""
15982 " guestfish [--ro] -i disk.img\n"
15983 "\n"
15984 msgstr ""
15985
15986 #. type: verbatim
15987 #: ../fish/guestfish.pod:283
15988 #, no-wrap
15989 msgid ""
15990 " guestfish [--ro] -i libvirt-domain\n"
15991 "\n"
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish.pod:285
15996 msgid ""
15997 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
15998 "then using other commands to mount the filesystems that were found."
15999 msgstr ""
16000
16001 #. type: =item
16002 #: ../fish/guestfish.pod:294
16003 msgid "B<--listen>"
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../fish/guestfish.pod:296
16008 msgid ""
16009 "Fork into the background and listen for remote commands.  See section "
16010 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16011 msgstr ""
16012
16013 #. type: =item
16014 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16015 msgid "B<--live>"
16016 msgstr ""
16017
16018 #. type: textblock
16019 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16020 msgid ""
16021 "Connect to a live virtual machine.  (Experimental, see "
16022 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16023 msgstr ""
16024
16025 #. type: =item
16026 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16027 msgid "B<-m dev[:mountpoint[:options]]>"
16028 msgstr ""
16029
16030 #. type: =item
16031 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16032 msgid "B<--mount dev[:mountpoint[:options]]>"
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish.pod:308
16037 msgid "Mount the named partition or logical volume on the given mountpoint."
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish.pod:310
16042 msgid "If the mountpoint is omitted, it defaults to C</>."
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish.pod:312
16047 msgid "You have to mount something on C</> before most commands will work."
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../fish/guestfish.pod:314
16052 msgid ""
16053 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16054 "launched."
16055 msgstr ""
16056
16057 #. type: textblock
16058 #: ../fish/guestfish.pod:317
16059 msgid ""
16060 "If you don't know what filesystems a disk image contains, you can either run "
16061 "guestfish without this option, then list the partitions, filesystems and LVs "
16062 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16063 "commands), or you can use the L<virt-filesystems(1)> program."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16068 msgid ""
16069 "The third (and rarely used) part of the mount parameter is the list of mount "
16070 "options used to mount the underlying filesystem.  If this is not given, then "
16071 "the mount options are either the empty string or C<ro> (the latter if the "
16072 "I<--ro> flag is used).  By specifying the mount options, you override this "
16073 "default choice.  Probably the only time you would use this is to enable ACLs "
16074 "and/or extended attributes if the filesystem can support them:"
16075 msgstr ""
16076
16077 #. type: verbatim
16078 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16079 #, no-wrap
16080 msgid ""
16081 " -m /dev/sda1:/:acl,user_xattr\n"
16082 "\n"
16083 msgstr ""
16084
16085 #. type: textblock
16086 #: ../fish/guestfish.pod:333
16087 msgid "Using this flag is equivalent to using the C<mount-options> command."
16088 msgstr ""
16089
16090 #. type: =item
16091 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:358
16092 msgid "B<-n>"
16093 msgstr ""
16094
16095 #. type: =item
16096 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16097 msgid "B<--no-sync>"
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish.pod:339
16102 msgid ""
16103 "Disable autosync.  This is enabled by default.  See the discussion of "
16104 "autosync in the L<guestfs(3)> manpage."
16105 msgstr ""
16106
16107 #. type: =item
16108 #: ../fish/guestfish.pod:342
16109 msgid "B<-N type>"
16110 msgstr ""
16111
16112 #. type: =item
16113 #: ../fish/guestfish.pod:344
16114 msgid "B<--new type>"
16115 msgstr ""
16116
16117 #. type: =item
16118 #: ../fish/guestfish.pod:346
16119 msgid "B<-N help>"
16120 msgstr ""
16121
16122 #. type: textblock
16123 #: ../fish/guestfish.pod:348
16124 msgid ""
16125 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16126 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16127 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16128 "IMAGES> below."
16129 msgstr ""
16130
16131 #. type: =item
16132 #: ../fish/guestfish.pod:353
16133 msgid "B<--progress-bars>"
16134 msgstr ""
16135
16136 #. type: textblock
16137 #: ../fish/guestfish.pod:355
16138 msgid "Enable progress bars, even when guestfish is used non-interactively."
16139 msgstr ""
16140
16141 #. type: textblock
16142 #: ../fish/guestfish.pod:357
16143 msgid ""
16144 "Progress bars are enabled by default when guestfish is used as an "
16145 "interactive shell."
16146 msgstr ""
16147
16148 #. type: =item
16149 #: ../fish/guestfish.pod:360
16150 msgid "B<--no-progress-bars>"
16151 msgstr ""
16152
16153 #. type: textblock
16154 #: ../fish/guestfish.pod:362
16155 msgid "Disable progress bars."
16156 msgstr ""
16157
16158 #. type: =item
16159 #: ../fish/guestfish.pod:364
16160 msgid "B<--remote[=pid]>"
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../fish/guestfish.pod:366
16165 msgid ""
16166 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16167 "CONTROL GUESTFISH OVER A SOCKET> below."
16168 msgstr ""
16169
16170 #. type: =item
16171 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16172 msgid "B<-r>"
16173 msgstr ""
16174
16175 #. type: =item
16176 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16177 msgid "B<--ro>"
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish.pod:373
16182 msgid ""
16183 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16184 "mounts are done read-only."
16185 msgstr ""
16186
16187 #. type: textblock
16188 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16189 msgid ""
16190 "The option must always be used if the disk image or virtual machine might be "
16191 "running, and is generally recommended in cases where you don't need write "
16192 "access to the disk."
16193 msgstr ""
16194
16195 #. type: textblock
16196 #: ../fish/guestfish.pod:380
16197 msgid ""
16198 "Note that prepared disk images created with I<-N> are not affected by this "
16199 "option.  Also commands like C<add> are not affected - you have to specify "
16200 "the C<readonly:true> option explicitly if you need it."
16201 msgstr ""
16202
16203 #. type: textblock
16204 #: ../fish/guestfish.pod:384
16205 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16206 msgstr ""
16207
16208 #. type: =item
16209 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16210 msgid "B<--selinux>"
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../fish/guestfish.pod:388
16215 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../fish/guestfish.pod:394
16220 msgid ""
16221 "Enable very verbose messages.  This is particularly useful if you find a "
16222 "bug."
16223 msgstr ""
16224
16225 #. type: textblock
16226 #: ../fish/guestfish.pod:401
16227 msgid "Display the guestfish / libguestfs version number and exit."
16228 msgstr ""
16229
16230 #. type: =item
16231 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:190
16232 msgid "B<-w>"
16233 msgstr ""
16234
16235 #. type: =item
16236 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:192
16237 msgid "B<--rw>"
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16242 msgid ""
16243 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16244 "mounts are done read-write."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../fish/guestfish.pod:410
16249 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16250 msgstr ""
16251
16252 #. type: textblock
16253 #: ../fish/guestfish.pod:414
16254 msgid "Echo each command before executing it."
16255 msgstr ""
16256
16257 #. type: =head1
16258 #: ../fish/guestfish.pod:418
16259 msgid "COMMANDS ON COMMAND LINE"
16260 msgstr ""
16261
16262 #. type: textblock
16263 #: ../fish/guestfish.pod:420
16264 msgid "Any additional (non-option) arguments are treated as commands to execute."
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish.pod:423
16269 msgid ""
16270 "Commands to execute should be separated by a colon (C<:>), where the colon "
16271 "is a separate parameter.  Thus:"
16272 msgstr ""
16273
16274 #. type: verbatim
16275 #: ../fish/guestfish.pod:426
16276 #, no-wrap
16277 msgid ""
16278 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16279 "\n"
16280 msgstr ""
16281
16282 #. type: textblock
16283 #: ../fish/guestfish.pod:428
16284 msgid ""
16285 "If there are no additional arguments, then we enter a shell, either an "
16286 "interactive shell with a prompt (if the input is a terminal) or a "
16287 "non-interactive shell."
16288 msgstr ""
16289
16290 #. type: textblock
16291 #: ../fish/guestfish.pod:432
16292 msgid ""
16293 "In either command line mode or non-interactive shell, the first command that "
16294 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16295 "prompt) if a command fails, you can continue to enter commands."
16296 msgstr ""
16297
16298 #. type: =head1
16299 #: ../fish/guestfish.pod:437
16300 msgid "USING launch (OR run)"
16301 msgstr ""
16302
16303 #. type: textblock
16304 #: ../fish/guestfish.pod:439
16305 msgid ""
16306 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16307 "then launch it, then mount any disks you need, and finally issue "
16308 "actions/commands.  So the general order of the day is:"
16309 msgstr ""
16310
16311 #. type: textblock
16312 #: ../fish/guestfish.pod:447
16313 msgid "add or -a/--add"
16314 msgstr ""
16315
16316 #. type: textblock
16317 #: ../fish/guestfish.pod:451
16318 msgid "launch (aka run)"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish.pod:455
16323 msgid "mount or -m/--mount"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish.pod:459
16328 msgid "any other commands"
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish.pod:463
16333 msgid ""
16334 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16335 "guest before mounting or performing any other commands."
16336 msgstr ""
16337
16338 #. type: textblock
16339 #: ../fish/guestfish.pod:466
16340 msgid ""
16341 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16342 "I<--new> options were given then C<run> is done automatically, simply "
16343 "because guestfish can't perform the action you asked for without doing this."
16344 msgstr ""
16345
16346 #. type: =head1
16347 #: ../fish/guestfish.pod:471
16348 msgid "OPENING DISKS FOR READ AND WRITE"
16349 msgstr ""
16350
16351 #. type: textblock
16352 #: ../fish/guestfish.pod:473
16353 msgid ""
16354 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16355 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16356 "I<-i> and I<-m> open disk images read-only or for writing."
16357 msgstr ""
16358
16359 #. type: textblock
16360 #: ../fish/guestfish.pod:478
16361 msgid ""
16362 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16363 "opening disk images supplied on the command line for write.  To open a disk "
16364 "image read-only you have to do I<-a image --ro>."
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish.pod:482
16369 msgid ""
16370 "This matters: If you accidentally open a live VM disk image writable then "
16371 "you will cause irreversible disk corruption."
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish.pod:485
16376 msgid ""
16377 "In a future libguestfs we intend to change the default the other way.  Disk "
16378 "images will be opened read-only.  You will have to either specify "
16379 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16380 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16381 "access for disk images specified by those other command line options."
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../fish/guestfish.pod:492
16386 msgid ""
16387 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16388 "which does nothing (it is already the default).  However it is highly "
16389 "recommended that you use this option to indicate that you need write access, "
16390 "and prepare your scripts for the day when this option will be required for "
16391 "write access."
16392 msgstr ""
16393
16394 #. type: textblock
16395 #: ../fish/guestfish.pod:498
16396 msgid ""
16397 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16398 "other libguestfs program apart from guestfish and guestmount."
16399 msgstr ""
16400
16401 #. type: =head1
16402 #: ../fish/guestfish.pod:501
16403 msgid "QUOTING"
16404 msgstr ""
16405
16406 #. type: textblock
16407 #: ../fish/guestfish.pod:503
16408 msgid ""
16409 "You can quote ordinary parameters using either single or double quotes.  For "
16410 "example:"
16411 msgstr ""
16412
16413 #. type: verbatim
16414 #: ../fish/guestfish.pod:506
16415 #, no-wrap
16416 msgid ""
16417 " add \"file with a space.img\"\n"
16418 "\n"
16419 msgstr ""
16420
16421 #. type: verbatim
16422 #: ../fish/guestfish.pod:508
16423 #, no-wrap
16424 msgid ""
16425 " rm '/file name'\n"
16426 "\n"
16427 msgstr ""
16428
16429 #. type: verbatim
16430 #: ../fish/guestfish.pod:510
16431 #, no-wrap
16432 msgid ""
16433 " rm '/\"'\n"
16434 "\n"
16435 msgstr ""
16436
16437 #. type: textblock
16438 #: ../fish/guestfish.pod:512
16439 msgid ""
16440 "A few commands require a list of strings to be passed.  For these, use a "
16441 "whitespace-separated list, enclosed in quotes.  Strings containing "
16442 "whitespace to be passed through must be enclosed in single quotes.  A "
16443 "literal single quote must be escaped with a backslash."
16444 msgstr ""
16445
16446 #. type: verbatim
16447 #: ../fish/guestfish.pod:517
16448 #, no-wrap
16449 msgid ""
16450 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16451 " command \"/bin/echo 'foo      bar'\"\n"
16452 " command \"/bin/echo \\'foo\\'\"\n"
16453 "\n"
16454 msgstr ""
16455
16456 #. type: =head2
16457 #: ../fish/guestfish.pod:521
16458 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../fish/guestfish.pod:523
16463 msgid ""
16464 "In double-quoted arguments (only) use backslash to insert special "
16465 "characters:"
16466 msgstr ""
16467
16468 #. type: =item
16469 #: ../fish/guestfish.pod:528
16470 msgid "C<\\a>"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish.pod:530
16475 msgid "Alert (bell) character."
16476 msgstr ""
16477
16478 #. type: =item
16479 #: ../fish/guestfish.pod:532
16480 msgid "C<\\b>"
16481 msgstr ""
16482
16483 #. type: textblock
16484 #: ../fish/guestfish.pod:534
16485 msgid "Backspace character."
16486 msgstr ""
16487
16488 #. type: =item
16489 #: ../fish/guestfish.pod:536
16490 msgid "C<\\f>"
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish.pod:538
16495 msgid "Form feed character."
16496 msgstr ""
16497
16498 #. type: =item
16499 #: ../fish/guestfish.pod:540
16500 msgid "C<\\n>"
16501 msgstr ""
16502
16503 #. type: textblock
16504 #: ../fish/guestfish.pod:542
16505 msgid "Newline character."
16506 msgstr ""
16507
16508 #. type: =item
16509 #: ../fish/guestfish.pod:544
16510 msgid "C<\\r>"
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish.pod:546
16515 msgid "Carriage return character."
16516 msgstr ""
16517
16518 #. type: =item
16519 #: ../fish/guestfish.pod:548
16520 msgid "C<\\t>"
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../fish/guestfish.pod:550
16525 msgid "Horizontal tab character."
16526 msgstr ""
16527
16528 #. type: =item
16529 #: ../fish/guestfish.pod:552
16530 msgid "C<\\v>"
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../fish/guestfish.pod:554
16535 msgid "Vertical tab character."
16536 msgstr ""
16537
16538 #. type: =item
16539 #: ../fish/guestfish.pod:556
16540 msgid "C<\\\">"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish.pod:558
16545 msgid "A literal double quote character."
16546 msgstr ""
16547
16548 #. type: =item
16549 #: ../fish/guestfish.pod:560
16550 msgid "C<\\ooo>"
16551 msgstr ""
16552
16553 #. type: textblock
16554 #: ../fish/guestfish.pod:562
16555 msgid ""
16556 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16557 "(unlike C)."
16558 msgstr ""
16559
16560 #. type: =item
16561 #: ../fish/guestfish.pod:565
16562 msgid "C<\\xhh>"
16563 msgstr ""
16564
16565 #. type: textblock
16566 #: ../fish/guestfish.pod:567
16567 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16568 msgstr ""
16569
16570 #. type: textblock
16571 #: ../fish/guestfish.pod:570
16572 msgid ""
16573 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16574 "strings."
16575 msgstr ""
16576
16577 #. type: =item
16578 #: ../fish/guestfish.pod:573
16579 msgid "C<\\\\>"
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish.pod:575
16584 msgid "A literal backslash character."
16585 msgstr ""
16586
16587 #. type: =head1
16588 #: ../fish/guestfish.pod:579
16589 msgid "OPTIONAL ARGUMENTS"
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish.pod:581
16594 msgid ""
16595 "Some commands take optional arguments.  These arguments appear in this "
16596 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16597 msgstr ""
16598
16599 #. type: verbatim
16600 #: ../fish/guestfish.pod:585
16601 #, no-wrap
16602 msgid ""
16603 " add-drive-opts filename\n"
16604 "\n"
16605 msgstr ""
16606
16607 #. type: verbatim
16608 #: ../fish/guestfish.pod:587
16609 #, no-wrap
16610 msgid ""
16611 " add-drive-opts filename readonly:true\n"
16612 "\n"
16613 msgstr ""
16614
16615 #. type: verbatim
16616 #: ../fish/guestfish.pod:589
16617 #, no-wrap
16618 msgid ""
16619 " add-drive-opts filename format:qcow2 readonly:false\n"
16620 "\n"
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish.pod:591
16625 msgid ""
16626 "Each optional argument can appear at most once.  All optional arguments must "
16627 "appear after the required ones."
16628 msgstr ""
16629
16630 #. type: =head1
16631 #: ../fish/guestfish.pod:594
16632 msgid "NUMBERS"
16633 msgstr ""
16634
16635 #. type: textblock
16636 #: ../fish/guestfish.pod:596
16637 msgid "This section applies to all commands which can take integers as parameters."
16638 msgstr ""
16639
16640 #. type: =head2
16641 #: ../fish/guestfish.pod:599
16642 msgid "SIZE SUFFIX"
16643 msgstr ""
16644
16645 #. type: textblock
16646 #: ../fish/guestfish.pod:601
16647 msgid ""
16648 "When the command takes a parameter measured in bytes, you can use one of the "
16649 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16650 msgstr ""
16651
16652 #. type: =item
16653 #: ../fish/guestfish.pod:607
16654 msgid "B<k> or B<K> or B<KiB>"
16655 msgstr ""
16656
16657 #. type: textblock
16658 #: ../fish/guestfish.pod:609
16659 msgid "The size in kilobytes (multiplied by 1024)."
16660 msgstr ""
16661
16662 #. type: =item
16663 #: ../fish/guestfish.pod:611
16664 msgid "B<KB>"
16665 msgstr ""
16666
16667 #. type: textblock
16668 #: ../fish/guestfish.pod:613
16669 msgid "The size in SI 1000 byte units."
16670 msgstr ""
16671
16672 #. type: =item
16673 #: ../fish/guestfish.pod:615
16674 msgid "B<M> or B<MiB>"
16675 msgstr ""
16676
16677 #. type: textblock
16678 #: ../fish/guestfish.pod:617
16679 msgid "The size in megabytes (multiplied by 1048576)."
16680 msgstr ""
16681
16682 #. type: =item
16683 #: ../fish/guestfish.pod:619
16684 msgid "B<MB>"
16685 msgstr ""
16686
16687 #. type: textblock
16688 #: ../fish/guestfish.pod:621
16689 msgid "The size in SI 1000000 byte units."
16690 msgstr ""
16691
16692 #. type: =item
16693 #: ../fish/guestfish.pod:623
16694 msgid "B<G> or B<GiB>"
16695 msgstr ""
16696
16697 #. type: textblock
16698 #: ../fish/guestfish.pod:625
16699 msgid "The size in gigabytes (multiplied by 2**30)."
16700 msgstr ""
16701
16702 #. type: =item
16703 #: ../fish/guestfish.pod:627
16704 msgid "B<GB>"
16705 msgstr ""
16706
16707 #. type: textblock
16708 #: ../fish/guestfish.pod:629
16709 msgid "The size in SI 10**9 byte units."
16710 msgstr ""
16711
16712 #. type: =item
16713 #: ../fish/guestfish.pod:631
16714 msgid "B<T> or B<TiB>"
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../fish/guestfish.pod:633
16719 msgid "The size in terabytes (multiplied by 2**40)."
16720 msgstr ""
16721
16722 #. type: =item
16723 #: ../fish/guestfish.pod:635
16724 msgid "B<TB>"
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish.pod:637
16729 msgid "The size in SI 10**12 byte units."
16730 msgstr ""
16731
16732 #. type: =item
16733 #: ../fish/guestfish.pod:639
16734 msgid "B<P> or B<PiB>"
16735 msgstr ""
16736
16737 #. type: textblock
16738 #: ../fish/guestfish.pod:641
16739 msgid "The size in petabytes (multiplied by 2**50)."
16740 msgstr ""
16741
16742 #. type: =item
16743 #: ../fish/guestfish.pod:643
16744 msgid "B<PB>"
16745 msgstr ""
16746
16747 #. type: textblock
16748 #: ../fish/guestfish.pod:645
16749 msgid "The size in SI 10**15 byte units."
16750 msgstr ""
16751
16752 #. type: =item
16753 #: ../fish/guestfish.pod:647
16754 msgid "B<E> or B<EiB>"
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../fish/guestfish.pod:649
16759 msgid "The size in exabytes (multiplied by 2**60)."
16760 msgstr ""
16761
16762 #. type: =item
16763 #: ../fish/guestfish.pod:651
16764 msgid "B<EB>"
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish.pod:653
16769 msgid "The size in SI 10**18 byte units."
16770 msgstr ""
16771
16772 #. type: =item
16773 #: ../fish/guestfish.pod:655
16774 msgid "B<Z> or B<ZiB>"
16775 msgstr ""
16776
16777 #. type: textblock
16778 #: ../fish/guestfish.pod:657
16779 msgid "The size in zettabytes (multiplied by 2**70)."
16780 msgstr ""
16781
16782 #. type: =item
16783 #: ../fish/guestfish.pod:659
16784 msgid "B<ZB>"
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish.pod:661
16789 msgid "The size in SI 10**21 byte units."
16790 msgstr ""
16791
16792 #. type: =item
16793 #: ../fish/guestfish.pod:663
16794 msgid "B<Y> or B<YiB>"
16795 msgstr ""
16796
16797 #. type: textblock
16798 #: ../fish/guestfish.pod:665
16799 msgid "The size in yottabytes (multiplied by 2**80)."
16800 msgstr ""
16801
16802 #. type: =item
16803 #: ../fish/guestfish.pod:667
16804 msgid "B<YB>"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish.pod:669
16809 msgid "The size in SI 10**24 byte units."
16810 msgstr ""
16811
16812 #. type: verbatim
16813 #: ../fish/guestfish.pod:675
16814 #, no-wrap
16815 msgid ""
16816 " truncate-size /file 1G\n"
16817 "\n"
16818 msgstr ""
16819
16820 #. type: textblock
16821 #: ../fish/guestfish.pod:677
16822 msgid "would truncate the file to 1 gigabyte."
16823 msgstr ""
16824
16825 #. type: textblock
16826 #: ../fish/guestfish.pod:679
16827 msgid ""
16828 "Be careful because a few commands take sizes in kilobytes or megabytes "
16829 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16830 "Adding a suffix will probably not do what you expect."
16831 msgstr ""
16832
16833 #. type: =head2
16834 #: ../fish/guestfish.pod:683
16835 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish.pod:685
16840 msgid ""
16841 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16842 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16843 msgstr ""
16844
16845 #. type: verbatim
16846 #: ../fish/guestfish.pod:688
16847 #, no-wrap
16848 msgid ""
16849 " 1234      decimal number 1234\n"
16850 " 02322     octal number, equivalent to decimal 1234\n"
16851 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16852 "\n"
16853 msgstr ""
16854
16855 #. type: textblock
16856 #: ../fish/guestfish.pod:692
16857 msgid ""
16858 "When using the C<chmod> command, you almost always want to specify an octal "
16859 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16860 "L<chmod(1)> program):"
16861 msgstr ""
16862
16863 #. type: verbatim
16864 #: ../fish/guestfish.pod:696
16865 #, no-wrap
16866 msgid ""
16867 " chmod 0777 /public  # OK\n"
16868 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16869 "\n"
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish.pod:699
16874 msgid ""
16875 "Commands that return numbers usually print them in decimal, but some "
16876 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16877 "octal, preceeded by C<0>)."
16878 msgstr ""
16879
16880 #. type: =head1
16881 #: ../fish/guestfish.pod:703
16882 msgid "WILDCARDS AND GLOBBING"
16883 msgstr ""
16884
16885 #. type: textblock
16886 #: ../fish/guestfish.pod:705
16887 msgid ""
16888 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16889 "(globbing) by default.  So for example the following will not do what you "
16890 "expect:"
16891 msgstr ""
16892
16893 #. type: verbatim
16894 #: ../fish/guestfish.pod:709
16895 #, no-wrap
16896 msgid ""
16897 " rm-rf /home/*\n"
16898 "\n"
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish.pod:711
16903 msgid ""
16904 "Assuming you don't have a directory called literally C</home/*> then the "
16905 "above command will return an error."
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:714
16910 msgid "To perform wildcard expansion, use the C<glob> command."
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../fish/guestfish.pod:716
16915 #, no-wrap
16916 msgid ""
16917 " glob rm-rf /home/*\n"
16918 "\n"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish.pod:718
16923 msgid ""
16924 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16925 "many times), equivalent to:"
16926 msgstr ""
16927
16928 #. type: verbatim
16929 #: ../fish/guestfish.pod:721
16930 #, no-wrap
16931 msgid ""
16932 " rm-rf /home/jim\n"
16933 " rm-rf /home/joe\n"
16934 " rm-rf /home/mary\n"
16935 "\n"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish.pod:725
16940 msgid "C<glob> only works on simple guest paths and not on device names."
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish.pod:727
16945 msgid ""
16946 "If you have several parameters, each containing a wildcard, then glob will "
16947 "perform a Cartesian product."
16948 msgstr ""
16949
16950 #. type: =head1
16951 #: ../fish/guestfish.pod:730
16952 msgid "COMMENTS"
16953 msgstr ""
16954
16955 #. type: textblock
16956 #: ../fish/guestfish.pod:732
16957 msgid ""
16958 "Any line which starts with a I<#> character is treated as a comment and "
16959 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16960 "a command.  For example:"
16961 msgstr ""
16962
16963 #. type: verbatim
16964 #: ../fish/guestfish.pod:736
16965 #, no-wrap
16966 msgid ""
16967 " # this is a comment\n"
16968 "         # this is a comment\n"
16969 " foo # NOT a comment\n"
16970 "\n"
16971 msgstr ""
16972
16973 #. type: textblock
16974 #: ../fish/guestfish.pod:740
16975 msgid "Blank lines are also ignored."
16976 msgstr ""
16977
16978 #. type: =head1
16979 #: ../fish/guestfish.pod:742
16980 msgid "RUNNING COMMANDS LOCALLY"
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../fish/guestfish.pod:744
16985 msgid ""
16986 "Any line which starts with a I<!> character is treated as a command sent to "
16987 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16988 msgstr ""
16989
16990 #. type: verbatim
16991 #: ../fish/guestfish.pod:748
16992 #, no-wrap
16993 msgid ""
16994 " !mkdir local\n"
16995 " tgz-out /remote local/remote-data.tar.gz\n"
16996 "\n"
16997 msgstr ""
16998
16999 #. type: textblock
17000 #: ../fish/guestfish.pod:751
17001 msgid ""
17002 "will create a directory C<local> on the host, and then export the contents "
17003 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17004 "(See C<tgz-out>)."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish.pod:755
17009 msgid ""
17010 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17011 "effect, due to the way that subprocesses work in Unix."
17012 msgstr ""
17013
17014 #. type: =head2
17015 #: ../fish/guestfish.pod:758
17016 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../fish/guestfish.pod:760
17021 msgid ""
17022 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17023 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17024 "and executed as guestfish commands."
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish.pod:764
17029 msgid ""
17030 "Thus you can use shell script to construct arbitrary guestfish commands "
17031 "which are then parsed by guestfish."
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish.pod:767
17036 msgid ""
17037 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17038 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17039 "if we use a shell script to create the guestfish commands for us:"
17040 msgstr ""
17041
17042 #. type: verbatim
17043 #: ../fish/guestfish.pod:772
17044 #, no-wrap
17045 msgid ""
17046 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17047 "\n"
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../fish/guestfish.pod:774
17052 msgid "or with names like C</foo.001>:"
17053 msgstr ""
17054
17055 #. type: verbatim
17056 #: ../fish/guestfish.pod:776
17057 #, no-wrap
17058 msgid ""
17059 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17060 "\n"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish.pod:778
17065 msgid ""
17066 "When using guestfish interactively it can be helpful to just run the shell "
17067 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17068 "ordinary I<!> local command), see what guestfish commands it would run, and "
17069 "when you are happy with those prepend the C<E<lt>> character to run the "
17070 "guestfish commands for real."
17071 msgstr ""
17072
17073 #. type: =head1
17074 #: ../fish/guestfish.pod:784
17075 msgid "PIPES"
17076 msgstr ""
17077
17078 #. type: textblock
17079 #: ../fish/guestfish.pod:786
17080 msgid ""
17081 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17082 "command (a guestfish command) to the second command (any host command).  For "
17083 "example:"
17084 msgstr ""
17085
17086 #. type: verbatim
17087 #: ../fish/guestfish.pod:790
17088 #, no-wrap
17089 msgid ""
17090 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17091 "\n"
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish.pod:792
17096 msgid ""
17097 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17098 "program).  The above command would list all accounts in the guest filesystem "
17099 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17100 msgstr ""
17101
17102 #. type: verbatim
17103 #: ../fish/guestfish.pod:797
17104 #, no-wrap
17105 msgid ""
17106 " hexdump /bin/ls | head\n"
17107 " list-devices | tail -1\n"
17108 " tgz-out / - | tar ztf -\n"
17109 "\n"
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish.pod:801
17114 msgid ""
17115 "The space before the pipe symbol is required, any space after the pipe "
17116 "symbol is optional.  Everything after the pipe symbol is just passed "
17117 "straight to the host shell, so it can contain redirections, globs and "
17118 "anything else that makes sense on the host side."
17119 msgstr ""
17120
17121 #. type: textblock
17122 #: ../fish/guestfish.pod:806
17123 msgid ""
17124 "To use a literal argument which begins with a pipe symbol, you have to quote "
17125 "it, eg:"
17126 msgstr ""
17127
17128 #. type: verbatim
17129 #: ../fish/guestfish.pod:809
17130 #, no-wrap
17131 msgid ""
17132 " echo \"|\"\n"
17133 "\n"
17134 msgstr ""
17135
17136 #. type: =head1
17137 #: ../fish/guestfish.pod:811
17138 msgid "HOME DIRECTORIES"
17139 msgstr ""
17140
17141 #. type: textblock
17142 #: ../fish/guestfish.pod:813
17143 msgid ""
17144 "If a parameter starts with the character C<~> then the tilde may be expanded "
17145 "as a home directory path (either C<~> for the current user's home directory, "
17146 "or C<~user> for another user)."
17147 msgstr ""
17148
17149 #. type: textblock
17150 #: ../fish/guestfish.pod:817
17151 msgid ""
17152 "Note that home directory expansion happens for users known I<on the host>, "
17153 "not in the guest filesystem."
17154 msgstr ""
17155
17156 #. type: textblock
17157 #: ../fish/guestfish.pod:820
17158 msgid ""
17159 "To use a literal argument which begins with a tilde, you have to quote it, "
17160 "eg:"
17161 msgstr ""
17162
17163 #. type: verbatim
17164 #: ../fish/guestfish.pod:823
17165 #, no-wrap
17166 msgid ""
17167 " echo \"~\"\n"
17168 "\n"
17169 msgstr ""
17170
17171 #. type: =head2
17172 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17173 msgid "ENCRYPTED DISKS"
17174 msgstr ""
17175
17176 #. type: textblock
17177 #: ../fish/guestfish.pod:827
17178 msgid ""
17179 "Libguestfs has some support for Linux guests encrypted according to the "
17180 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17181 "disk encryption systems used by modern Linux guests.  Currently only "
17182 "LVM-on-LUKS is supported."
17183 msgstr ""
17184
17185 #. type: textblock
17186 #: ../fish/guestfish.pod:832
17187 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17188 msgstr ""
17189
17190 #. type: verbatim
17191 #: ../fish/guestfish.pod:834
17192 #, no-wrap
17193 msgid ""
17194 " ><fs> vfs-type /dev/sda2\n"
17195 " crypto_LUKS\n"
17196 "\n"
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish.pod:837
17201 msgid ""
17202 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17203 "device called C</dev/mapper/luksdev>."
17204 msgstr ""
17205
17206 #. type: verbatim
17207 #: ../fish/guestfish.pod:840
17208 #, no-wrap
17209 msgid ""
17210 " ><fs> luks-open /dev/sda2 luksdev\n"
17211 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17212 "\n"
17213 msgstr ""
17214
17215 #. type: textblock
17216 #: ../fish/guestfish.pod:843
17217 msgid ""
17218 "Finally you have to tell LVM to scan for volume groups on the newly created "
17219 "mapper device:"
17220 msgstr ""
17221
17222 #. type: verbatim
17223 #: ../fish/guestfish.pod:846
17224 #, no-wrap
17225 msgid ""
17226 " vgscan\n"
17227 " vg-activate-all true\n"
17228 "\n"
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish.pod:849
17233 msgid "The logical volume(s) can now be mounted in the usual way."
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../fish/guestfish.pod:851
17238 msgid ""
17239 "Before closing a LUKS device you must unmount any logical volumes on it and "
17240 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17241 "one.  Then you can close the mapper device:"
17242 msgstr ""
17243
17244 #. type: verbatim
17245 #: ../fish/guestfish.pod:855
17246 #, no-wrap
17247 msgid ""
17248 " vg-activate false /dev/VG\n"
17249 " luks-close /dev/mapper/luksdev\n"
17250 "\n"
17251 msgstr ""
17252
17253 #. type: textblock
17254 #: ../fish/guestfish.pod:860
17255 msgid ""
17256 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17257 "letters and paths (with some limitations).  The following commands are "
17258 "equivalent:"
17259 msgstr ""
17260
17261 #. type: verbatim
17262 #: ../fish/guestfish.pod:864
17263 #, no-wrap
17264 msgid ""
17265 " file /WINDOWS/system32/config/system.LOG\n"
17266 "\n"
17267 msgstr ""
17268
17269 #. type: verbatim
17270 #: ../fish/guestfish.pod:866
17271 #, no-wrap
17272 msgid ""
17273 " file win:\\windows\\system32\\config\\system.log\n"
17274 "\n"
17275 msgstr ""
17276
17277 #. type: verbatim
17278 #: ../fish/guestfish.pod:868
17279 #, no-wrap
17280 msgid ""
17281 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17282 "\n"
17283 msgstr ""
17284
17285 #. type: textblock
17286 #: ../fish/guestfish.pod:870
17287 msgid ""
17288 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17289 "where the drive is mounted, prepending that to the path, changing all "
17290 "backslash characters to forward slash, then resolving the result using "
17291 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17292 "then the parameter might be rewritten like this:"
17293 msgstr ""
17294
17295 #. type: verbatim
17296 #: ../fish/guestfish.pod:876
17297 #, no-wrap
17298 msgid ""
17299 " win:e:\\foo\\bar => /e/FOO/bar\n"
17300 "\n"
17301 msgstr ""
17302
17303 #. type: textblock
17304 #: ../fish/guestfish.pod:878
17305 msgid "This only works in argument positions that expect a path."
17306 msgstr ""
17307
17308 #. type: =head1
17309 #: ../fish/guestfish.pod:880
17310 msgid "UPLOADING AND DOWNLOADING FILES"
17311 msgstr ""
17312
17313 #. type: textblock
17314 #: ../fish/guestfish.pod:882
17315 msgid ""
17316 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17317 "others which upload from or download to a local file, you can use the "
17318 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17319 msgstr ""
17320
17321 #. type: verbatim
17322 #: ../fish/guestfish.pod:886
17323 #, no-wrap
17324 msgid ""
17325 " upload - /foo\n"
17326 "\n"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish.pod:888
17331 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17332 msgstr ""
17333
17334 #. type: verbatim
17335 #: ../fish/guestfish.pod:891
17336 #, no-wrap
17337 msgid ""
17338 " tar-out /etc - | tar tf -\n"
17339 "\n"
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish.pod:893
17344 msgid ""
17345 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17346 "command (see L</PIPES>)."
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish.pod:896
17351 msgid ""
17352 "When using C<-> to read from stdin, the input is read up to the end of "
17353 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17354 "some arbitrary end marker:"
17355 msgstr ""
17356
17357 #. type: verbatim
17358 #: ../fish/guestfish.pod:900
17359 #, no-wrap
17360 msgid ""
17361 " upload -<<END /foo\n"
17362 " input line 1\n"
17363 " input line 2\n"
17364 " input line 3\n"
17365 " END\n"
17366 "\n"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish.pod:906
17371 msgid ""
17372 "Any string of characters can be used instead of C<END>.  The end marker must "
17373 "appear on a line of its own, without any preceeding or following characters "
17374 "(not even spaces)."
17375 msgstr ""
17376
17377 #. type: textblock
17378 #: ../fish/guestfish.pod:910
17379 msgid ""
17380 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17381 "upload local files (so-called \"FileIn\" parameters in the generator)."
17382 msgstr ""
17383
17384 #. type: =head1
17385 #: ../fish/guestfish.pod:913
17386 msgid "EXIT ON ERROR BEHAVIOUR"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish.pod:915
17391 msgid ""
17392 "By default, guestfish will ignore any errors when in interactive mode "
17393 "(ie. taking commands from a human over a tty), and will exit on the first "
17394 "error in non-interactive mode (scripts, commands given on the command line)."
17395 msgstr ""
17396
17397 #. type: textblock
17398 #: ../fish/guestfish.pod:920
17399 msgid ""
17400 "If you prefix a command with a I<-> character, then that command will not "
17401 "cause guestfish to exit, even if that (one) command returns an error."
17402 msgstr ""
17403
17404 #. type: =head1
17405 #: ../fish/guestfish.pod:924
17406 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17407 msgstr ""
17408
17409 #. type: textblock
17410 #: ../fish/guestfish.pod:926
17411 msgid ""
17412 "Guestfish can be remote-controlled over a socket.  This is useful "
17413 "particularly in shell scripts where you want to make several different "
17414 "changes to a filesystem, but you don't want the overhead of starting up a "
17415 "guestfish process each time."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish.pod:931
17420 msgid "Start a guestfish server process using:"
17421 msgstr ""
17422
17423 #. type: verbatim
17424 #: ../fish/guestfish.pod:933
17425 #, no-wrap
17426 msgid ""
17427 " eval \"`guestfish --listen`\"\n"
17428 "\n"
17429 msgstr ""
17430
17431 #. type: textblock
17432 #: ../fish/guestfish.pod:935
17433 msgid "and then send it commands by doing:"
17434 msgstr ""
17435
17436 #. type: verbatim
17437 #: ../fish/guestfish.pod:937
17438 #, no-wrap
17439 msgid ""
17440 " guestfish --remote cmd [...]\n"
17441 "\n"
17442 msgstr ""
17443
17444 #. type: textblock
17445 #: ../fish/guestfish.pod:939
17446 msgid "To cause the server to exit, send it the exit command:"
17447 msgstr ""
17448
17449 #. type: textblock
17450 #: ../fish/guestfish.pod:943
17451 msgid ""
17452 "Note that the server will normally exit if there is an error in a command.  "
17453 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17454 "BEHAVIOUR>."
17455 msgstr ""
17456
17457 #. type: =head2
17458 #: ../fish/guestfish.pod:947
17459 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish.pod:949
17464 msgid ""
17465 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17466 "is how the I<--remote> option knows where to send the commands.  You can "
17467 "have several guestfish listener processes running using:"
17468 msgstr ""
17469
17470 #. type: verbatim
17471 #: ../fish/guestfish.pod:953
17472 #, no-wrap
17473 msgid ""
17474 " eval \"`guestfish --listen`\"\n"
17475 " pid1=$GUESTFISH_PID\n"
17476 " eval \"`guestfish --listen`\"\n"
17477 " pid2=$GUESTFISH_PID\n"
17478 " ...\n"
17479 " guestfish --remote=$pid1 cmd\n"
17480 " guestfish --remote=$pid2 cmd\n"
17481 "\n"
17482 msgstr ""
17483
17484 #. type: =head2
17485 #: ../fish/guestfish.pod:961
17486 msgid "REMOTE CONTROL AND CSH"
17487 msgstr ""
17488
17489 #. type: textblock
17490 #: ../fish/guestfish.pod:963
17491 msgid ""
17492 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17493 "option:"
17494 msgstr ""
17495
17496 #. type: verbatim
17497 #: ../fish/guestfish.pod:966
17498 #, no-wrap
17499 msgid ""
17500 " eval \"`guestfish --listen --csh`\"\n"
17501 "\n"
17502 msgstr ""
17503
17504 #. type: =head2
17505 #: ../fish/guestfish.pod:968
17506 msgid "REMOTE CONTROL DETAILS"
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish.pod:970
17511 msgid ""
17512 "Remote control happens over a Unix domain socket called "
17513 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17514 "of the process, and C<$PID> is the process ID of the server."
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish.pod:974
17519 msgid "Guestfish client and server versions must match exactly."
17520 msgstr ""
17521
17522 #. type: =head2
17523 #: ../fish/guestfish.pod:976
17524 msgid "REMOTE CONTROL RUN COMMAND HANGING"
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:978
17529 msgid ""
17530 "Using the C<run> (or C<launch>) command remotely in a command substitution "
17531 "context hangs, ie. don't do (note the backquotes):"
17532 msgstr ""
17533
17534 #. type: verbatim
17535 #: ../fish/guestfish.pod:981
17536 #, no-wrap
17537 msgid ""
17538 " a=`guestfish --remote run`\n"
17539 "\n"
17540 msgstr ""
17541
17542 #. type: textblock
17543 #: ../fish/guestfish.pod:983
17544 msgid ""
17545 "Since the C<run> command produces no output on stdout, this is not useful "
17546 "anyway.  For further information see "
17547 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
17548 msgstr ""
17549
17550 #. type: =head1
17551 #: ../fish/guestfish.pod:987
17552 msgid "PREPARED DISK IMAGES"
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../fish/guestfish.pod:989
17557 msgid ""
17558 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17559 "preformatted disk images that guestfish can make for you to save typing.  "
17560 "This is particularly useful for testing purposes.  This option is used "
17561 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17562 "can be mixed with I<-a>)."
17563 msgstr ""
17564
17565 #. type: textblock
17566 #: ../fish/guestfish.pod:995
17567 msgid ""
17568 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17569 "the second and so on.  Existing files in the current directory are "
17570 "I<overwritten>."
17571 msgstr ""
17572
17573 #. type: textblock
17574 #: ../fish/guestfish.pod:999
17575 msgid ""
17576 "The type briefly describes how the disk should be sized, partitioned, how "
17577 "filesystem(s) should be created, and how content should be added.  "
17578 "Optionally the type can be followed by extra parameters, separated by C<:> "
17579 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17580 "sparsely-allocated disk, containing a single partition, with the partition "
17581 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17582 "on a 1GB disk instead."
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish.pod:1007
17587 msgid "To list the available types and any extra parameters they take, run:"
17588 msgstr ""
17589
17590 #. type: textblock
17591 #: ../fish/guestfish.pod:1011
17592 msgid ""
17593 "Note that the prepared filesystem is not mounted.  You would usually have to "
17594 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17595 msgstr ""
17596
17597 #. type: textblock
17598 #: ../fish/guestfish.pod:1015
17599 msgid ""
17600 "If any I<-N> or I<--new> options are given, the guest is automatically "
17601 "launched."
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish.pod:1020
17606 msgid "Create a 100MB disk with an ext4-formatted partition:"
17607 msgstr ""
17608
17609 #. type: verbatim
17610 #: ../fish/guestfish.pod:1022
17611 #, no-wrap
17612 msgid ""
17613 " guestfish -N fs:ext4\n"
17614 "\n"
17615 msgstr ""
17616
17617 #. type: textblock
17618 #: ../fish/guestfish.pod:1024
17619 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish.pod:1026
17624 #, no-wrap
17625 msgid ""
17626 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish.pod:1028
17632 msgid "Create a blank 200MB disk:"
17633 msgstr ""
17634
17635 #. type: verbatim
17636 #: ../fish/guestfish.pod:1030
17637 #, no-wrap
17638 msgid ""
17639 " guestfish -N disk:200M\n"
17640 "\n"
17641 msgstr ""
17642
17643 #. type: =head1
17644 #: ../fish/guestfish.pod:1032
17645 msgid "PROGRESS BARS"
17646 msgstr ""
17647
17648 #. type: textblock
17649 #: ../fish/guestfish.pod:1034
17650 msgid ""
17651 "Some (not all) long-running commands send progress notification messages as "
17652 "they are running.  Guestfish turns these messages into progress bars."
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish.pod:1038
17657 msgid ""
17658 "When a command that supports progress bars takes longer than two seconds to "
17659 "run, and if progress bars are enabled, then you will see one appearing below "
17660 "the command:"
17661 msgstr ""
17662
17663 #. type: verbatim
17664 #: ../fish/guestfish.pod:1042
17665 #, no-wrap
17666 msgid ""
17667 " ><fs> copy-size /large-file /another-file 2048M\n"
17668 " / 10% [#####-----------------------------------------] 00:30\n"
17669 "\n"
17670 msgstr ""
17671
17672 #. type: textblock
17673 #: ../fish/guestfish.pod:1045
17674 msgid ""
17675 "The spinner on the left hand side moves round once for every progress "
17676 "notification received from the backend.  This is a (reasonably) golden "
17677 "assurance that the command is \"doing something\" even if the progress bar "
17678 "is not moving, because the command is able to send the progress "
17679 "notifications.  When the bar reaches 100% and the command finishes, the "
17680 "spinner disappears."
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:1052
17685 msgid ""
17686 "Progress bars are enabled by default when guestfish is used interactively.  "
17687 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17688 "and you can disable them completely using I<--no-progress-bars>."
17689 msgstr ""
17690
17691 #. type: =head1
17692 #: ../fish/guestfish.pod:1057
17693 msgid "GUESTFISH COMMANDS"
17694 msgstr ""
17695
17696 #. type: textblock
17697 #: ../fish/guestfish.pod:1059
17698 msgid ""
17699 "The commands in this section are guestfish convenience commands, in other "
17700 "words, they are not part of the L<guestfs(3)> API."
17701 msgstr ""
17702
17703 #. type: =head2
17704 #: ../fish/guestfish.pod:1062
17705 msgid "help"
17706 msgstr ""
17707
17708 #. type: verbatim
17709 #: ../fish/guestfish.pod:1064
17710 #, no-wrap
17711 msgid ""
17712 " help\n"
17713 " help cmd\n"
17714 "\n"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:1067
17719 msgid "Without any parameter, this provides general help."
17720 msgstr ""
17721
17722 #. type: textblock
17723 #: ../fish/guestfish.pod:1069
17724 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17725 msgstr ""
17726
17727 #. type: =head2
17728 #: ../fish/guestfish.pod:1071
17729 msgid "quit | exit"
17730 msgstr ""
17731
17732 #. type: textblock
17733 #: ../fish/guestfish.pod:1073
17734 msgid "This exits guestfish.  You can also use C<^D> key."
17735 msgstr ""
17736
17737 #. type: textblock
17738 #: ../fish/guestfish.pod:1075
17739 msgid "@FISH_COMMANDS@"
17740 msgstr ""
17741
17742 #. type: =head1
17743 #: ../fish/guestfish.pod:1077
17744 msgid "COMMANDS"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
17749 msgid "@ACTIONS@"
17750 msgstr ""
17751
17752 #. type: textblock
17753 #: ../fish/guestfish.pod:1083
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:1090
17761 msgid "EDITOR"
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:1092
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:1095 ../src/guestfs.pod:2969
17773 msgid "FEBOOTSTRAP_KERNEL"
17774 msgstr ""
17775
17776 #. type: =item
17777 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2971
17778 msgid "FEBOOTSTRAP_MODULES"
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2973
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:1105
17793 msgid "GUESTFISH_DISPLAY_IMAGE"
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish.pod:1107
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:1110
17805 msgid "GUESTFISH_PID"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish.pod:1112
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:1116
17817 msgid "HEXEDITOR"
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish.pod:1118
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:1122
17829 msgid "HOME"
17830 msgstr ""
17831
17832 #. type: textblock
17833 #: ../fish/guestfish.pod:1124
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:1127 ../src/guestfs.pod:2979
17841 msgid "LIBGUESTFS_APPEND"
17842 msgstr ""
17843
17844 #. type: textblock
17845 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2981
17846 msgid "Pass additional options to the guest kernel."
17847 msgstr ""
17848
17849 #. type: =item
17850 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2983
17851 msgid "LIBGUESTFS_DEBUG"
17852 msgstr ""
17853
17854 #. type: textblock
17855 #: ../fish/guestfish.pod:1133
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:1136 ../src/guestfs.pod:2988
17863 msgid "LIBGUESTFS_MEMSIZE"
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2990
17868 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2993
17873 #, no-wrap
17874 msgid ""
17875 " LIBGUESTFS_MEMSIZE=700\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: =item
17880 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2995
17881 msgid "LIBGUESTFS_PATH"
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish.pod:1145
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:1148 ../src/guestfs.pod:3000
17893 msgid "LIBGUESTFS_QEMU"
17894 msgstr ""
17895
17896 #. type: textblock
17897 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3002
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:1154 ../src/guestfs.pod:3008
17905 msgid "LIBGUESTFS_TRACE"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:1156
17910 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17911 msgstr ""
17912
17913 #. type: =item
17914 #: ../fish/guestfish.pod:1158
17915 msgid "PAGER"
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish.pod:1160
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:1163 ../src/guestfs.pod:3013
17927 msgid "TMPDIR"
17928 msgstr ""
17929
17930 #. type: textblock
17931 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3015
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:1168 ../src/guestfs.pod:3018
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:1176 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:269
17948 msgid "FILES"
17949 msgstr ""
17950
17951 #. type: =item
17952 #: ../fish/guestfish.pod:1180 ../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:1182 ../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:1184 ../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:1187
17970 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
17971 msgstr ""
17972
17973 #. type: =item
17974 #: ../fish/guestfish.pod:1189
17975 msgid "$HOME/.guestfish"
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../fish/guestfish.pod:1191
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:1194
17987 msgid "$HOME/.inputrc"
17988 msgstr ""
17989
17990 #. type: =item
17991 #: ../fish/guestfish.pod:1196
17992 msgid "/etc/inputrc"
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish.pod:1198
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:1202
18005 msgid "To write rules which only apply to guestfish, use:"
18006 msgstr ""
18007
18008 #. type: verbatim
18009 #: ../fish/guestfish.pod:1204
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:1208
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:1213
18027 msgid "completion-ignore-case (default: on)"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:1215
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:1218
18039 #, no-wrap
18040 msgid ""
18041 " set completion-ignore-case off\n"
18042 "\n"
18043 msgstr ""
18044
18045 #. type: textblock
18046 #: ../fish/guestfish.pod:1220
18047 msgid "to make guestfish case sensitive."
18048 msgstr ""
18049
18050 #. type: =item
18051 #: ../fish/guestfish.pod:1224
18052 msgid "test1.img"
18053 msgstr ""
18054
18055 #. type: =item
18056 #: ../fish/guestfish.pod:1226
18057 msgid "test2.img (etc)"
18058 msgstr ""
18059
18060 #. type: textblock
18061 #: ../fish/guestfish.pod:1228
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:1237
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:1266 ../src/guestfs.pod:3104 ../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:511
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:310
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:325
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:406 ../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 to select parts of the XML.  We "
19302 "recommend using C<xmlstarlet> to perform XPath queries from the command "
19303 "line."
19304 msgstr ""
19305
19306 #. type: verbatim
19307 #: ../inspector/virt-inspector.pod:338
19308 #, no-wrap
19309 msgid ""
19310 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19311 " <filesystems>\n"
19312 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19313 "        <type>ext4</type>\n"
19314 " [...]\n"
19315 "\n"
19316 msgstr ""
19317
19318 #. type: verbatim
19319 #: ../inspector/virt-inspector.pod:344
19320 #, no-wrap
19321 msgid ""
19322 " $ virt-inspector -d Guest | \\\n"
19323 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19324 " ext4\n"
19325 "\n"
19326 msgstr ""
19327
19328 #. type: verbatim
19329 #: ../inspector/virt-inspector.pod:348
19330 #, no-wrap
19331 msgid ""
19332 " $ virt-inspector -d Guest | \\\n"
19333 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19334 " [displays the guest icon, if there is one]\n"
19335 "\n"
19336 msgstr ""
19337
19338 #. type: =head1
19339 #: ../inspector/virt-inspector.pod:359
19340 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19341 msgstr ""
19342
19343 #. type: textblock
19344 #: ../inspector/virt-inspector.pod:361
19345 msgid ""
19346 "Early versions of libguestfs shipped with a different virt-inspector program "
19347 "written in Perl (the current version is written in C).  The XML output of "
19348 "the Perl virt-inspector was different and it could also output in other "
19349 "formats like text."
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../inspector/virt-inspector.pod:366
19354 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../inspector/virt-inspector.pod:369
19359 msgid ""
19360 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19361 "versions of virt-inspector with different names:"
19362 msgstr ""
19363
19364 #. type: verbatim
19365 #: ../inspector/virt-inspector.pod:372
19366 #, no-wrap
19367 msgid ""
19368 " virt-inspector     Old Perl version.\n"
19369 " virt-inspector2    New C version.\n"
19370 "\n"
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../inspector/virt-inspector.pod:382
19375 msgid ""
19376 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19377 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../inspector/virt-inspector.pod:399
19382 msgid "Matthew Booth L<mbooth@redhat.com>"
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../java/examples/guestfs-java.pod:5
19387 msgid "guestfs-java - How to use libguestfs from Java"
19388 msgstr ""
19389
19390 #. type: verbatim
19391 #: ../java/examples/guestfs-java.pod:9
19392 #, no-wrap
19393 msgid ""
19394 " import com.redhat.et.libguestfs.*;\n"
19395 " \n"
19396 msgstr ""
19397
19398 #. type: verbatim
19399 #: ../java/examples/guestfs-java.pod:11
19400 #, no-wrap
19401 msgid ""
19402 " GuestFS g = new GuestFS ();\n"
19403 " g.add_drive_opts (\"disk.img\", null);\n"
19404 " g.launch ();\n"
19405 "\n"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../java/examples/guestfs-java.pod:17
19410 msgid ""
19411 "This manual page documents how to call libguestfs from the Java programming "
19412 "language.  This page just documents the differences from the C API and gives "
19413 "some examples.  If you are not familiar with using libguestfs, you also need "
19414 "to read L<guestfs(3)>."
19415 msgstr ""
19416
19417 #. type: =head2
19418 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19419 msgid "CLOSING THE HANDLE"
19420 msgstr ""
19421
19422 #. type: textblock
19423 #: ../java/examples/guestfs-java.pod:24
19424 msgid ""
19425 "The handle is closed when it is reaped by the garbage collector.  Because "
19426 "libguestfs handles include a lot of state, it is also possible to close (and "
19427 "hence free) them explicitly by calling the C<close> method."
19428 msgstr ""
19429
19430 #. type: =head2
19431 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19432 msgid "EXCEPTIONS"
19433 msgstr ""
19434
19435 #. type: textblock
19436 #: ../java/examples/guestfs-java.pod:31
19437 msgid ""
19438 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19439 "exception.  This has a single parameter which is the error message (a "
19440 "C<String>)."
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../java/examples/guestfs-java.pod:35
19445 msgid "Calling any method on a closed handle raises the same exception."
19446 msgstr ""
19447
19448 #. type: textblock
19449 #: ../java/examples/guestfs-java.pod:47
19450 msgid ""
19451 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, "
19452 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19453 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
19458 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19459 msgstr ""
19460
19461 #. type: textblock
19462 #: ../ocaml/examples/guestfs-ocaml.pod:5
19463 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19464 msgstr ""
19465
19466 #. type: textblock
19467 #: ../ocaml/examples/guestfs-ocaml.pod:9
19468 msgid "Module style:"
19469 msgstr ""
19470
19471 #. type: verbatim
19472 #: ../ocaml/examples/guestfs-ocaml.pod:11
19473 #, no-wrap
19474 msgid ""
19475 " let g = Guestfs.create () in\n"
19476 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19477 " Guestfs.launch g;\n"
19478 "\n"
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../ocaml/examples/guestfs-ocaml.pod:15
19483 msgid "Object-oriented style:"
19484 msgstr ""
19485
19486 #. type: verbatim
19487 #: ../ocaml/examples/guestfs-ocaml.pod:17
19488 #, no-wrap
19489 msgid ""
19490 " let g = new Guestfs.guestfs () in\n"
19491 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19492 " g#launch ();\n"
19493 "\n"
19494 msgstr ""
19495
19496 #. type: verbatim
19497 #: ../ocaml/examples/guestfs-ocaml.pod:21
19498 #, no-wrap
19499 msgid ""
19500 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19501 "or:\n"
19502 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19503 "\n"
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../ocaml/examples/guestfs-ocaml.pod:27
19508 msgid ""
19509 "This manual page documents how to call libguestfs from the OCaml programming "
19510 "language.  This page just documents the differences from the C API and gives "
19511 "some examples.  If you are not familiar with using libguestfs, you also need "
19512 "to read L<guestfs(3)>."
19513 msgstr ""
19514
19515 #. type: =head2
19516 #: ../ocaml/examples/guestfs-ocaml.pod:32
19517 msgid "PROGRAMMING STYLES"
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../ocaml/examples/guestfs-ocaml.pod:34
19522 msgid ""
19523 "There are two different programming styles supported by the OCaml bindings.  "
19524 "You can use a module style, with each C function mapped to an OCaml "
19525 "function:"
19526 msgstr ""
19527
19528 #. type: verbatim
19529 #: ../ocaml/examples/guestfs-ocaml.pod:38
19530 #, no-wrap
19531 msgid ""
19532 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19533 "\n"
19534 msgstr ""
19535
19536 #. type: textblock
19537 #: ../ocaml/examples/guestfs-ocaml.pod:40
19538 msgid "becomes:"
19539 msgstr ""
19540
19541 #. type: verbatim
19542 #: ../ocaml/examples/guestfs-ocaml.pod:42
19543 #, no-wrap
19544 msgid ""
19545 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19546 "\n"
19547 msgstr ""
19548
19549 #. type: textblock
19550 #: ../ocaml/examples/guestfs-ocaml.pod:44
19551 msgid ""
19552 "Alternately you can use an object-oriented style, calling methods on the "
19553 "class C<Guestfs.guestfs>:"
19554 msgstr ""
19555
19556 #. type: verbatim
19557 #: ../ocaml/examples/guestfs-ocaml.pod:47
19558 #, no-wrap
19559 msgid ""
19560 " method set_verbose : bool -> unit\n"
19561 "\n"
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../ocaml/examples/guestfs-ocaml.pod:49
19566 msgid ""
19567 "The object-oriented style is usually briefer, and the minor performance "
19568 "penalty isn't noticable in the general overhead of performing libguestfs "
19569 "functions."
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../ocaml/examples/guestfs-ocaml.pod:55
19574 msgid ""
19575 "The handle is closed when it is reaped by the garbage collector.  Because "
19576 "libguestfs handles include a lot of state, it is also possible to close (and "
19577 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19578 "method."
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../ocaml/examples/guestfs-ocaml.pod:62
19583 msgid ""
19584 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19585 "exception.  This has a single parameter which is the error message (a "
19586 "string)."
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../ocaml/examples/guestfs-ocaml.pod:66
19591 msgid ""
19592 "Calling any function/method on a closed handle raises "
19593 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19594 "that you called."
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../ocaml/examples/guestfs-ocaml.pod:80
19599 msgid ""
19600 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19601 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19602 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../perl/examples/guestfs-perl.pod:5
19607 msgid "guestfs-perl - How to use libguestfs from Perl"
19608 msgstr ""
19609
19610 #. type: verbatim
19611 #: ../perl/examples/guestfs-perl.pod:9
19612 #, no-wrap
19613 msgid ""
19614 " use Sys::Guestfs;\n"
19615 " \n"
19616 msgstr ""
19617
19618 #. type: verbatim
19619 #: ../perl/examples/guestfs-perl.pod:11
19620 #, no-wrap
19621 msgid ""
19622 " my $h = Sys::Guestfs->new ();\n"
19623 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19624 " $h->launch ();\n"
19625 " $h->mount_options ('', '/dev/sda1', '/');\n"
19626 " $h->touch ('/hello');\n"
19627 " $h->sync ();\n"
19628 "\n"
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../perl/examples/guestfs-perl.pod:20
19633 msgid ""
19634 "This manual page documents how to call libguestfs from the Perl programming "
19635 "language.  This page just documents the differences from the C API and gives "
19636 "some examples.  If you are not familiar with using libguestfs, you also need "
19637 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
19638 msgstr ""
19639
19640 #. type: =head2
19641 #: ../perl/examples/guestfs-perl.pod:26
19642 msgid "ERRORS"
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../perl/examples/guestfs-perl.pod:28
19647 msgid ""
19648 "Errors from libguestfs functions turn into calls to C<croak> (see "
19649 "L<Carp(3)>)."
19650 msgstr ""
19651
19652 #. type: textblock
19653 #: ../perl/examples/guestfs-perl.pod:41
19654 msgid ""
19655 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
19656 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
19657 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19658 msgstr ""
19659
19660 #. type: textblock
19661 #: ../python/examples/guestfs-python.pod:5
19662 msgid "guestfs-python - How to use libguestfs from Python"
19663 msgstr ""
19664
19665 #. type: verbatim
19666 #: ../python/examples/guestfs-python.pod:9
19667 #, no-wrap
19668 msgid ""
19669 " import guestfs\n"
19670 " g = guestfs.GuestFS ()\n"
19671 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
19672 " g.launch\n"
19673 "\n"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../python/examples/guestfs-python.pod:16
19678 msgid ""
19679 "This manual page documents how to call libguestfs from the Python "
19680 "programming language.  This page just documents the differences from the C "
19681 "API and gives some examples.  If you are not familiar with using libguestfs, "
19682 "you also need to read L<guestfs(3)>."
19683 msgstr ""
19684
19685 #. type: textblock
19686 #: ../python/examples/guestfs-python.pod:23
19687 msgid ""
19688 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
19689 "single string argument which is the error message."
19690 msgstr ""
19691
19692 #. type: =head2
19693 #: ../python/examples/guestfs-python.pod:26
19694 msgid "MORE DOCUMENTATION"
19695 msgstr ""
19696
19697 #. type: textblock
19698 #: ../python/examples/guestfs-python.pod:28
19699 msgid "Type:"
19700 msgstr ""
19701
19702 #. type: verbatim
19703 #: ../python/examples/guestfs-python.pod:30
19704 #, no-wrap
19705 msgid ""
19706 " $ python\n"
19707 " >>> import guestfs\n"
19708 " >>> help (guestfs)\n"
19709 "\n"
19710 msgstr ""
19711
19712 #. type: textblock
19713 #: ../python/examples/guestfs-python.pod:44
19714 msgid ""
19715 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19716 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
19717 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19718 msgstr ""
19719
19720 #. type: textblock
19721 #: ../rescue/virt-rescue.pod:5
19722 msgid "virt-rescue - Run a rescue shell on a virtual machine"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../rescue/virt-rescue.pod:9
19727 #, no-wrap
19728 msgid ""
19729 " virt-rescue [--options] -d domname\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: verbatim
19734 #: ../rescue/virt-rescue.pod:11
19735 #, no-wrap
19736 msgid ""
19737 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
19738 "\n"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../rescue/virt-rescue.pod:15
19743 #, no-wrap
19744 msgid ""
19745 " virt-rescue [--options] domname\n"
19746 "\n"
19747 msgstr ""
19748
19749 #. type: verbatim
19750 #: ../rescue/virt-rescue.pod:17
19751 #, no-wrap
19752 msgid ""
19753 " virt-rescue [--options] disk.img [disk.img ...]\n"
19754 "\n"
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../rescue/virt-rescue.pod:21
19759 msgid ""
19760 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
19761 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
19762 "you from doing this, but doesn't catch all cases."
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../rescue/virt-rescue.pod:25
19767 msgid ""
19768 "However if you use the I<--ro> (read only) option, then you can attach a "
19769 "shell to a live virtual machine.  The results might be strange or "
19770 "inconsistent at times but you won't get disk corruption."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../rescue/virt-rescue.pod:31
19775 msgid ""
19776 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
19777 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
19778 "recovery tools which you can use to examine or rescue a virtual machine or "
19779 "disk image."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../rescue/virt-rescue.pod:36
19784 msgid ""
19785 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
19786 "on disk image(s):"
19787 msgstr ""
19788
19789 #. type: verbatim
19790 #: ../rescue/virt-rescue.pod:39
19791 #, no-wrap
19792 msgid ""
19793 " virt-rescue -d GuestName\n"
19794 "\n"
19795 msgstr ""
19796
19797 #. type: verbatim
19798 #: ../rescue/virt-rescue.pod:41
19799 #, no-wrap
19800 msgid ""
19801 " virt-rescue --ro -a /path/to/disk.img\n"
19802 "\n"
19803 msgstr ""
19804
19805 #. type: verbatim
19806 #: ../rescue/virt-rescue.pod:43
19807 #, no-wrap
19808 msgid ""
19809 " virt-rescue -a /dev/sdc\n"
19810 "\n"
19811 msgstr ""
19812
19813 #. type: textblock
19814 #: ../rescue/virt-rescue.pod:45
19815 msgid "For live VMs you I<must> use the --ro option."
19816 msgstr ""
19817
19818 #. type: textblock
19819 #: ../rescue/virt-rescue.pod:47
19820 msgid ""
19821 "When you run virt-rescue on a virtual machine or disk image, you are placed "
19822 "in an interactive bash shell where you can use many ordinary Linux "
19823 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
19824 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
19825 "is an empty directory called C</sysroot> where you can mount filesystems."
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../rescue/virt-rescue.pod:54
19830 msgid ""
19831 "In the example below, we list logical volumes, then choose one to mount "
19832 "under C</sysroot>:"
19833 msgstr ""
19834
19835 #. type: verbatim
19836 #: ../rescue/virt-rescue.pod:57
19837 #, no-wrap
19838 msgid ""
19839 " ><rescue> lvs\n"
19840 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
19841 " lv_root vg_f11x64 -wi-a-   8.83G\n"
19842 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
19843 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
19844 " ><rescue> ls /sysroot\n"
19845 "\n"
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../rescue/virt-rescue.pod:64
19850 msgid ""
19851 "If you don't know what filesystems are available on the virtual machine then "
19852 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../rescue/virt-rescue.pod:70
19857 msgid ""
19858 "Virt-rescue can be used on I<any> disk image file or device, not just a "
19859 "virtual machine.  For example you can use it on a blank file if you want to "
19860 "partition that file (although we would recommend using L<guestfish(1)> "
19861 "instead as it is more suitable for this purpose).  You can even use "
19862 "virt-rescue on things like SD cards."
19863 msgstr ""
19864
19865 #. type: textblock
19866 #: ../rescue/virt-rescue.pod:76
19867 msgid ""
19868 "Virt-rescue does not require root.  You only need to run it as root if you "
19869 "need root to open the disk image."
19870 msgstr ""
19871
19872 #. type: textblock
19873 #: ../rescue/virt-rescue.pod:79
19874 msgid ""
19875 "This tool is just designed for quick interactive hacking on a virtual "
19876 "machine.  For more structured access to a virtual machine disk image, you "
19877 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
19878 "make scripted changes to guests, use L<guestfish(1)>."
19879 msgstr ""
19880
19881 #. type: =item
19882 #: ../rescue/virt-rescue.pod:103
19883 msgid "B<--append kernelopts>"
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../rescue/virt-rescue.pod:105
19888 msgid "Pass additional options to the rescue kernel."
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../rescue/virt-rescue.pod:135
19893 #, no-wrap
19894 msgid ""
19895 " virt-rescue --format=raw -a disk.img\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../rescue/virt-rescue.pod:139
19901 #, no-wrap
19902 msgid ""
19903 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
19904 "\n"
19905 msgstr ""
19906
19907 #. type: =item
19908 #: ../rescue/virt-rescue.pod:148
19909 msgid "B<-m MB>"
19910 msgstr ""
19911
19912 #. type: =item
19913 #: ../rescue/virt-rescue.pod:150
19914 msgid "B<--memsize MB>"
19915 msgstr ""
19916
19917 #. type: textblock
19918 #: ../rescue/virt-rescue.pod:152
19919 msgid ""
19920 "Change the amount of memory allocated to the rescue system.  The default is "
19921 "set by libguestfs and is small but adequate for running system tools.  The "
19922 "occasional program might need more memory.  The parameter is specified in "
19923 "megabytes."
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../rescue/virt-rescue.pod:157
19928 msgid "B<--network>"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../rescue/virt-rescue.pod:159
19933 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../rescue/virt-rescue.pod:165
19938 msgid "Open the image read-only."
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../rescue/virt-rescue.pod:175
19943 msgid ""
19944 "Enable SELinux in the rescue appliance.  You should read "
19945 "L<guestfs(3)/SELINUX> before using this option."
19946 msgstr ""
19947
19948 #. type: textblock
19949 #: ../rescue/virt-rescue.pod:194
19950 msgid ""
19951 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
19952 "are done read-write."
19953 msgstr ""
19954
19955 #. type: textblock
19956 #: ../rescue/virt-rescue.pod:207
19957 msgid "Previous versions of virt-rescue allowed you to write either:"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../rescue/virt-rescue.pod:209
19962 #, no-wrap
19963 msgid ""
19964 " virt-rescue disk.img [disk.img ...]\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: verbatim
19969 #: ../rescue/virt-rescue.pod:213
19970 #, no-wrap
19971 msgid ""
19972 " virt-rescue guestname\n"
19973 "\n"
19974 msgstr ""
19975
19976 #. type: =head1
19977 #: ../rescue/virt-rescue.pod:221
19978 msgid "NETWORK"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../rescue/virt-rescue.pod:223
19983 msgid ""
19984 "Adding the I<--network> option enables QEMU user networking in the rescue "
19985 "appliance.  There are some differences between user networking and ordinary "
19986 "networking:"
19987 msgstr ""
19988
19989 #. type: =item
19990 #: ../rescue/virt-rescue.pod:229
19991 msgid "ping does not work"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../rescue/virt-rescue.pod:231
19996 msgid ""
19997 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
19998 "send the ping packets, and because virt-rescue must be able to run as "
19999 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
20000 "command.  The ping command will appear to resolve addresses but will not be "
20001 "able to send or receive any packets.  This does not mean that the network is "
20002 "not working."
20003 msgstr ""
20004
20005 #. type: =item
20006 #: ../rescue/virt-rescue.pod:238
20007 msgid "cannot receive connections"
20008 msgstr ""
20009
20010 #. type: textblock
20011 #: ../rescue/virt-rescue.pod:240
20012 msgid "QEMU user networking cannot receive incoming connections."
20013 msgstr ""
20014
20015 #. type: =item
20016 #: ../rescue/virt-rescue.pod:242
20017 msgid "making TCP connections"
20018 msgstr ""
20019
20020 #. type: textblock
20021 #: ../rescue/virt-rescue.pod:244
20022 msgid ""
20023 "The virt-rescue appliance needs to be small and so does not include many "
20024 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20025 "make TCP connections from the shell using the magical "
20026 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20027 msgstr ""
20028
20029 #. type: verbatim
20030 #: ../rescue/virt-rescue.pod:249
20031 #, no-wrap
20032 msgid ""
20033 " exec 3<>/dev/tcp/redhat.com/80\n"
20034 " echo \"GET /\" >&3\n"
20035 " cat <&3\n"
20036 "\n"
20037 msgstr ""
20038
20039 #. type: textblock
20040 #: ../rescue/virt-rescue.pod:253
20041 msgid "See L<bash(1)> for more details."
20042 msgstr ""
20043
20044 #. type: textblock
20045 #: ../rescue/virt-rescue.pod:259
20046 msgid ""
20047 "Several environment variables affect virt-rescue.  See "
20048 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../rescue/virt-rescue.pod:286
20053 msgid ""
20054 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20055 "L<http://libguestfs.org/>."
20056 msgstr ""
20057
20058 #. type: textblock
20059 #: ../resize/virt-resize.pod:5
20060 msgid "virt-resize - Resize a virtual machine disk"
20061 msgstr ""
20062
20063 #. type: verbatim
20064 #: ../resize/virt-resize.pod:9
20065 #, no-wrap
20066 msgid ""
20067 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20068 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20069 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20070 "\n"
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../resize/virt-resize.pod:15
20075 msgid ""
20076 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20077 "larger or smaller overall, and resizing or deleting any partitions contained "
20078 "within."
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../resize/virt-resize.pod:19
20083 msgid ""
20084 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20085 "not> be used on live virtual machines - for consistent results, shut the "
20086 "virtual machine down before resizing it."
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../resize/virt-resize.pod:23
20091 msgid ""
20092 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20093 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20094 msgstr ""
20095
20096 #. type: =item
20097 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
20098 msgid "1."
20099 msgstr ""
20100
20101 #. type: textblock
20102 #: ../resize/virt-resize.pod:33
20103 msgid ""
20104 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20105 "fill the extra 5GB of space."
20106 msgstr ""
20107
20108 #. type: verbatim
20109 #: ../resize/virt-resize.pod:36
20110 #, no-wrap
20111 msgid ""
20112 " virt-filesystems --long -h --all -a olddisk\n"
20113 " \n"
20114 msgstr ""
20115
20116 #. type: verbatim
20117 #: ../resize/virt-resize.pod:38
20118 #, no-wrap
20119 msgid ""
20120 " truncate -r olddisk newdisk\n"
20121 " truncate -s +5G newdisk\n"
20122 " \n"
20123 msgstr ""
20124
20125 #. type: verbatim
20126 #: ../resize/virt-resize.pod:41
20127 #, no-wrap
20128 msgid ""
20129 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20130 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20131 "\n"
20132 msgstr ""
20133
20134 #. type: =item
20135 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
20136 msgid "2."
20137 msgstr ""
20138
20139 #. type: textblock
20140 #: ../resize/virt-resize.pod:46
20141 msgid ""
20142 "As above, but make the /boot partition 200MB bigger, while giving the "
20143 "remaining space to /dev/sda2:"
20144 msgstr ""
20145
20146 #. type: verbatim
20147 #: ../resize/virt-resize.pod:49
20148 #, no-wrap
20149 msgid ""
20150 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20151 "   olddisk newdisk\n"
20152 "\n"
20153 msgstr ""
20154
20155 #. type: =item
20156 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
20157 msgid "3."
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../resize/virt-resize.pod:54
20162 msgid ""
20163 "As in the first example, but expand a logical volume as the final step.  "
20164 "This is what you would typically use for Linux guests that use LVM:"
20165 msgstr ""
20166
20167 #. type: verbatim
20168 #: ../resize/virt-resize.pod:58
20169 #, no-wrap
20170 msgid ""
20171 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20172 "   olddisk newdisk\n"
20173 "\n"
20174 msgstr ""
20175
20176 #. type: =item
20177 #: ../resize/virt-resize.pod:61
20178 msgid "4."
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../resize/virt-resize.pod:63
20183 msgid ""
20184 "As in the first example, but the output format will be qcow2 instead of a "
20185 "raw disk:"
20186 msgstr ""
20187
20188 #. type: verbatim
20189 #: ../resize/virt-resize.pod:66
20190 #, no-wrap
20191 msgid ""
20192 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20193 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20194 "\n"
20195 msgstr ""
20196
20197 #. type: =head1
20198 #: ../resize/virt-resize.pod:71
20199 msgid "DETAILED USAGE"
20200 msgstr ""
20201
20202 #. type: =head2
20203 #: ../resize/virt-resize.pod:73
20204 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20205 msgstr ""
20206
20207 #. type: =item
20208 #: ../resize/virt-resize.pod:77
20209 msgid "1. Shut down the virtual machine"
20210 msgstr ""
20211
20212 #. type: =item
20213 #: ../resize/virt-resize.pod:79
20214 msgid "2. Locate input disk image"
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../resize/virt-resize.pod:81
20219 msgid ""
20220 "Locate the input disk image (ie. the file or device on the host containing "
20221 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20222 "dumpxml> like this to find the disk image name:"
20223 msgstr ""
20224
20225 #. type: verbatim
20226 #: ../resize/virt-resize.pod:85
20227 #, no-wrap
20228 msgid ""
20229 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20230 " Found 1 nodes:\n"
20231 " -- NODE --\n"
20232 " <source dev=\"/dev/vg/lv_guest\" />\n"
20233 "\n"
20234 msgstr ""
20235
20236 #. type: =item
20237 #: ../resize/virt-resize.pod:90
20238 msgid "3. Look at current sizing"
20239 msgstr ""
20240
20241 #. type: textblock
20242 #: ../resize/virt-resize.pod:92
20243 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20244 msgstr ""
20245
20246 #. type: verbatim
20247 #: ../resize/virt-resize.pod:95
20248 #, no-wrap
20249 msgid ""
20250 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20251 " Name       Type       Size  Parent\n"
20252 " /dev/sda1  partition  101M  /dev/sda\n"
20253 " /dev/sda2  partition  7.9G  /dev/sda\n"
20254 " /dev/sda   device     8.0G  -\n"
20255 "\n"
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../resize/virt-resize.pod:101
20260 msgid ""
20261 "(This example is a virtual machine with an 8 GB disk which we would like to "
20262 "expand up to 10 GB)."
20263 msgstr ""
20264
20265 #. type: =item
20266 #: ../resize/virt-resize.pod:104
20267 msgid "4. Create output disk"
20268 msgstr ""
20269
20270 #. type: textblock
20271 #: ../resize/virt-resize.pod:106
20272 msgid ""
20273 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20274 "to store the resized output disk."
20275 msgstr ""
20276
20277 #. type: textblock
20278 #: ../resize/virt-resize.pod:109
20279 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20280 msgstr ""
20281
20282 #. type: verbatim
20283 #: ../resize/virt-resize.pod:112
20284 #, no-wrap
20285 msgid ""
20286 " # rm -f outdisk\n"
20287 " # truncate -s 10G outdisk\n"
20288 "\n"
20289 msgstr ""
20290
20291 #. type: textblock
20292 #: ../resize/virt-resize.pod:115
20293 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../resize/virt-resize.pod:117
20298 #, no-wrap
20299 msgid ""
20300 " # lvcreate -L 10G -n lv_name vg_name\n"
20301 "\n"
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../resize/virt-resize.pod:119
20306 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20307 msgstr ""
20308
20309 #. type: verbatim
20310 #: ../resize/virt-resize.pod:121
20311 #, no-wrap
20312 msgid ""
20313 " # virsh pool-list\n"
20314 " # virsh vol-create-as poolname newvol 10G\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: =item
20319 #: ../resize/virt-resize.pod:124
20320 msgid "5. Resize"
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../resize/virt-resize.pod:126
20325 msgid ""
20326 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20327 "file) and the output disk.  The output disk is the one created in the "
20328 "previous step."
20329 msgstr ""
20330
20331 #. type: verbatim
20332 #: ../resize/virt-resize.pod:130
20333 #, no-wrap
20334 msgid ""
20335 " # virt-resize indisk outdisk\n"
20336 "\n"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../resize/virt-resize.pod:132
20341 msgid ""
20342 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20343 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20344 "larger, then an extra, empty partition is created at the end of the disk "
20345 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20346 "error."
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../resize/virt-resize.pod:138
20351 msgid ""
20352 "More realistically you'd want to expand existing partitions in the disk "
20353 "image by passing extra options (for the full list see the L</OPTIONS> "
20354 "section below)."
20355 msgstr ""
20356
20357 #. type: textblock
20358 #: ../resize/virt-resize.pod:142
20359 msgid ""
20360 "L</--expand> is the most useful option.  It expands the named partition "
20361 "within the disk to fill any extra space:"
20362 msgstr ""
20363
20364 #. type: verbatim
20365 #: ../resize/virt-resize.pod:145
20366 #, no-wrap
20367 msgid ""
20368 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20369 "\n"
20370 msgstr ""
20371
20372 #. type: textblock
20373 #: ../resize/virt-resize.pod:147
20374 msgid ""
20375 "(In this case, an extra partition is I<not> created at the end of the disk, "
20376 "because there will be no unused space)."
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../resize/virt-resize.pod:150
20381 msgid ""
20382 "L</--resize> is the other commonly used option.  The following would "
20383 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20384 "rest of the available space:"
20385 msgstr ""
20386
20387 #. type: verbatim
20388 #: ../resize/virt-resize.pod:154
20389 #, no-wrap
20390 msgid ""
20391 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20392 "     indisk outdisk\n"
20393 "\n"
20394 msgstr ""
20395
20396 #. type: textblock
20397 #: ../resize/virt-resize.pod:157
20398 msgid ""
20399 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20400 "if virt-resize knows how, it will resize the contents, the equivalent of "
20401 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20402 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20403 "filesystems, so you would have to online resize them after booting the "
20404 "guest."
20405 msgstr ""
20406
20407 #. type: textblock
20408 #: ../resize/virt-resize.pod:164
20409 msgid "Other options are covered below."
20410 msgstr ""
20411
20412 #. type: =item
20413 #: ../resize/virt-resize.pod:166
20414 msgid "6. Test"
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../resize/virt-resize.pod:168
20419 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../resize/virt-resize.pod:170
20424 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20425 msgstr ""
20426
20427 #. type: verbatim
20428 #: ../resize/virt-resize.pod:172
20429 #, no-wrap
20430 msgid ""
20431 " # virsh edit guestname\n"
20432 "\n"
20433 msgstr ""
20434
20435 #. type: textblock
20436 #: ../resize/virt-resize.pod:174
20437 msgid ""
20438 "Change E<lt>source ...E<gt>, see "
20439 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../resize/virt-resize.pod:177
20444 msgid "Then start up the domain with the new, resized disk:"
20445 msgstr ""
20446
20447 #. type: verbatim
20448 #: ../resize/virt-resize.pod:179
20449 #, no-wrap
20450 msgid ""
20451 " # virsh start guestname\n"
20452 "\n"
20453 msgstr ""
20454
20455 #. type: textblock
20456 #: ../resize/virt-resize.pod:181
20457 msgid ""
20458 "and check that it still works.  See also the L</NOTES> section below for "
20459 "additional information."
20460 msgstr ""
20461
20462 #. type: =item
20463 #: ../resize/virt-resize.pod:184
20464 msgid "7. Resize LVs etc inside the guest"
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../resize/virt-resize.pod:186
20469 msgid "(This can also be done offline using L<guestfish(1)>)"
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../resize/virt-resize.pod:188
20474 msgid ""
20475 "Once the guest has booted you should see the new space available, at least "
20476 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20477 "may need to resize LVs inside PVs, and also resize filesystem types that "
20478 "virt-resize does not know how to expand."
20479 msgstr ""
20480
20481 #. type: =head2
20482 #: ../resize/virt-resize.pod:195
20483 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../resize/virt-resize.pod:197
20488 msgid ""
20489 "Shrinking is somewhat more complex than expanding, and only an overview is "
20490 "given here."
20491 msgstr ""
20492
20493 #. type: textblock
20494 #: ../resize/virt-resize.pod:200
20495 msgid ""
20496 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20497 "filesystems).  The user has to shrink content before passing the disk image "
20498 "to virt-resize, and virt-resize will check that the content has been shrunk "
20499 "properly."
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../resize/virt-resize.pod:205
20504 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20505 msgstr ""
20506
20507 #. type: textblock
20508 #: ../resize/virt-resize.pod:207
20509 msgid ""
20510 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20511 "steps 3 and 4 above to allocate a new disk image."
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../resize/virt-resize.pod:210
20516 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20517 msgstr ""
20518
20519 #. type: =head2
20520 #: ../resize/virt-resize.pod:213
20521 msgid "IGNORING OR DELETING PARTITIONS"
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../resize/virt-resize.pod:215
20526 msgid ""
20527 "virt-resize also gives a convenient way to ignore or delete partitions when "
20528 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20529 "up the copy where you don't care about the existing contents of a "
20530 "partition.  Deleting a partition removes it completely, but note that it "
20531 "also renumbers any partitions after the one which is deleted, which can "
20532 "leave some guests unbootable."
20533 msgstr ""
20534
20535 #. type: =head2
20536 #: ../resize/virt-resize.pod:222
20537 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20538 msgstr ""
20539
20540 #. type: textblock
20541 #: ../resize/virt-resize.pod:224
20542 msgid ""
20543 "If the input disk is in qcow2 format, then you may prefer that the output is "
20544 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20545 "the fly.  The output format is simply determined by the format of the empty "
20546 "output container that you provide.  Thus to create qcow2 output, use:"
20547 msgstr ""
20548
20549 #. type: verbatim
20550 #: ../resize/virt-resize.pod:230
20551 #, no-wrap
20552 msgid ""
20553 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20554 "\n"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../resize/virt-resize.pod:232
20559 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20560 msgstr ""
20561
20562 #. type: textblock
20563 #: ../resize/virt-resize.pod:234
20564 msgid "Similarly, to get non-sparse raw output use:"
20565 msgstr ""
20566
20567 #. type: verbatim
20568 #: ../resize/virt-resize.pod:236
20569 #, no-wrap
20570 msgid ""
20571 " fallocate -l size outdisk\n"
20572 "\n"
20573 msgstr ""
20574
20575 #. type: textblock
20576 #: ../resize/virt-resize.pod:238
20577 msgid ""
20578 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20579 "if=/dev/zero of=outdisk bs=1M count=..>)"
20580 msgstr ""
20581
20582 #. type: textblock
20583 #: ../resize/virt-resize.pod:247
20584 msgid "Display help."
20585 msgstr ""
20586
20587 #. type: =item
20588 #: ../resize/virt-resize.pod:249
20589 msgid "B<-d>"
20590 msgstr ""
20591
20592 #. type: =item
20593 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20594 msgid "B<--debug>"
20595 msgstr ""
20596
20597 #. type: textblock
20598 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20599 msgid "Enable debugging messages."
20600 msgstr ""
20601
20602 #. type: =item
20603 #: ../resize/virt-resize.pod:255
20604 msgid "B<--delete part>"
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../resize/virt-resize.pod:257
20609 msgid ""
20610 "Delete the named partition.  It would be more accurate to describe this as "
20611 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20612 "the original disk image is left intact."
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../resize/virt-resize.pod:261
20617 msgid ""
20618 "Note that when you delete a partition, then anything contained in the "
20619 "partition is also deleted.  Furthermore, this causes any partitions that "
20620 "come after to be I<renumbered>, which can easily make your guest unbootable."
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454
20625 msgid "You can give this option multiple times."
20626 msgstr ""
20627
20628 #. type: =item
20629 #: ../resize/virt-resize.pod:268
20630 msgid "B<--expand part>"
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../resize/virt-resize.pod:270
20635 msgid ""
20636 "Expand the named partition so it uses up all extra space (space left over "
20637 "after any other resize changes that you request have been done)."
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../resize/virt-resize.pod:273
20642 msgid ""
20643 "If virt-resize knows how, it will expand the direct content of the "
20644 "partition.  For example, if the partition is an LVM PV, it will expand the "
20645 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
20646 "content it doesn't know about alone."
20647 msgstr ""
20648
20649 #. type: textblock
20650 #: ../resize/virt-resize.pod:278
20651 msgid "Currently virt-resize can resize:"
20652 msgstr ""
20653
20654 #. type: textblock
20655 #: ../resize/virt-resize.pod:284
20656 msgid "ext2, ext3 and ext4 filesystems."
20657 msgstr ""
20658
20659 #. type: textblock
20660 #: ../resize/virt-resize.pod:288
20661 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
20662 msgstr ""
20663
20664 #. type: textblock
20665 #: ../resize/virt-resize.pod:290
20666 msgid ""
20667 "The filesystem must have been shut down consistently last time it was used.  "
20668 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
20669 "consistency check, so at the first boot after resizing Windows will check "
20670 "the disk."
20671 msgstr ""
20672
20673 #. type: textblock
20674 #: ../resize/virt-resize.pod:297
20675 msgid ""
20676 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
20677 "inside the PV, but see the I<--LV-expand> option.  The user could also "
20678 "resize LVs as desired after boot."
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../resize/virt-resize.pod:303
20683 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
20688 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
20689 msgstr ""
20690
20691 #. type: =item
20692 #: ../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
20693 msgid "B<--format> raw"
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../resize/virt-resize.pod:311
20698 msgid ""
20699 "Specify the format of the input disk image.  If this flag is not given then "
20700 "it is auto-detected from the image itself."
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../resize/virt-resize.pod:317
20705 msgid ""
20706 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
20707 "AND NON-SPARSE RAW FORMATS>."
20708 msgstr ""
20709
20710 #. type: =item
20711 #: ../resize/virt-resize.pod:320
20712 msgid "B<--ignore part>"
20713 msgstr ""
20714
20715 #. type: textblock
20716 #: ../resize/virt-resize.pod:322
20717 msgid ""
20718 "Ignore the named partition.  Effectively this means the partition is "
20719 "allocated on the destination disk, but the content is not copied across from "
20720 "the source disk.  The content of the partition will be blank (all zero "
20721 "bytes)."
20722 msgstr ""
20723
20724 #. type: =item
20725 #: ../resize/virt-resize.pod:329
20726 msgid "B<--LV-expand logvol>"
20727 msgstr ""
20728
20729 #. type: textblock
20730 #: ../resize/virt-resize.pod:331
20731 msgid ""
20732 "This takes the logical volume and, as a final step, expands it to fill all "
20733 "the space available in its volume group.  A typical usage, assuming a Linux "
20734 "guest with a single PV C</dev/sda2> and a root device called "
20735 "C</dev/vg_guest/lv_root> would be:"
20736 msgstr ""
20737
20738 #. type: verbatim
20739 #: ../resize/virt-resize.pod:336
20740 #, no-wrap
20741 msgid ""
20742 " virt-resize indisk outdisk \\\n"
20743 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
20744 "\n"
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../resize/virt-resize.pod:339
20749 msgid ""
20750 "This would first expand the partition (and PV), and then expand the root "
20751 "device to fill the extra space in the PV."
20752 msgstr ""
20753
20754 #. type: textblock
20755 #: ../resize/virt-resize.pod:342
20756 msgid ""
20757 "The contents of the LV are also resized if virt-resize knows how to do "
20758 "that.  You can stop virt-resize from trying to expand the content by using "
20759 "the option I<--no-expand-content>."
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../resize/virt-resize.pod:346
20764 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../resize/virt-resize.pod:348
20769 msgid ""
20770 "You can give this option multiple times, I<but> it doesn't make sense to do "
20771 "this unless the logical volumes you specify are all in different volume "
20772 "groups."
20773 msgstr ""
20774
20775 #. type: =item
20776 #: ../resize/virt-resize.pod:352
20777 msgid "B<--machine-readable>"
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../resize/virt-resize.pod:354
20782 msgid ""
20783 "This option is used to make the output more machine friendly when being "
20784 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
20785 msgstr ""
20786
20787 #. type: =item
20788 #: ../resize/virt-resize.pod:360
20789 msgid "B<--dryrun>"
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../resize/virt-resize.pod:362
20794 msgid "Print a summary of what would be done, but don't do anything."
20795 msgstr ""
20796
20797 #. type: =item
20798 #: ../resize/virt-resize.pod:364
20799 msgid "B<--no-copy-boot-loader>"
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../resize/virt-resize.pod:366
20804 msgid ""
20805 "By default, virt-resize copies over some sectors at the start of the disk "
20806 "(up to the beginning of the first partition).  Commonly these sectors "
20807 "contain the Master Boot Record (MBR) and the boot loader, and are required "
20808 "in order for the guest to boot correctly."
20809 msgstr ""
20810
20811 #. type: textblock
20812 #: ../resize/virt-resize.pod:371
20813 msgid ""
20814 "If you specify this flag, then this initial copy is not done.  You may need "
20815 "to reinstall the boot loader in this case."
20816 msgstr ""
20817
20818 #. type: =item
20819 #: ../resize/virt-resize.pod:374
20820 msgid "B<--no-extra-partition>"
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../resize/virt-resize.pod:376
20825 msgid ""
20826 "By default, virt-resize creates an extra partition if there is any extra, "
20827 "unused space after all resizing has happened.  Use this option to prevent "
20828 "the extra partition from being created.  If you do this then the extra space "
20829 "will be inaccessible until you run fdisk, parted, or some other partitioning "
20830 "tool in the guest."
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../resize/virt-resize.pod:382
20835 msgid ""
20836 "Note that if the surplus space is smaller than 10 MB, no extra partition "
20837 "will be created."
20838 msgstr ""
20839
20840 #. type: =item
20841 #: ../resize/virt-resize.pod:385
20842 msgid "B<--no-expand-content>"
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../resize/virt-resize.pod:387
20847 msgid ""
20848 "By default, virt-resize will try to expand the direct contents of "
20849 "partitions, if it knows how (see I<--expand> option above)."
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../resize/virt-resize.pod:390
20854 msgid ""
20855 "If you give the I<--no-expand-content> option then virt-resize will not "
20856 "attempt this."
20857 msgstr ""
20858
20859 #. type: =item
20860 #: ../resize/virt-resize.pod:393
20861 msgid "B<--ntfsresize-force>"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../resize/virt-resize.pod:395
20866 msgid ""
20867 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
20868 "the NTFS disk is marked as needing a consistency check.  You have to use "
20869 "this option if you want to resize a Windows guest multiple times without "
20870 "booting into Windows between each resize."
20871 msgstr ""
20872
20873 #. type: =item
20874 #: ../resize/virt-resize.pod:401
20875 msgid "B<--output-format> raw"
20876 msgstr ""
20877
20878 #. type: textblock
20879 #: ../resize/virt-resize.pod:403
20880 msgid ""
20881 "Specify the format of the output disk image.  If this flag is not given then "
20882 "it is auto-detected from the image itself."
20883 msgstr ""
20884
20885 #. type: textblock
20886 #: ../resize/virt-resize.pod:409
20887 msgid ""
20888 "Note that this option I<does not create> the output format.  This option "
20889 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
20890 "need to create the output disk with the right format.  See L</QCOW2 AND "
20891 "NON-SPARSE RAW FORMATS>."
20892 msgstr ""
20893
20894 #. type: =item
20895 #: ../resize/virt-resize.pod:414
20896 msgid "B<-q>"
20897 msgstr ""
20898
20899 #. type: =item
20900 #: ../resize/virt-resize.pod:416
20901 msgid "B<--quiet>"
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../resize/virt-resize.pod:418
20906 msgid "Don't print the summary."
20907 msgstr ""
20908
20909 #. type: =item
20910 #: ../resize/virt-resize.pod:420
20911 msgid "B<--resize part=size>"
20912 msgstr ""
20913
20914 #. type: textblock
20915 #: ../resize/virt-resize.pod:422
20916 msgid ""
20917 "Resize the named partition (expanding or shrinking it) so that it has the "
20918 "given size."
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../resize/virt-resize.pod:425
20923 msgid ""
20924 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
20925 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
20926 "size; or as a relative number or percentage.  For example:"
20927 msgstr ""
20928
20929 #. type: verbatim
20930 #: ../resize/virt-resize.pod:431
20931 #, no-wrap
20932 msgid ""
20933 " --resize /dev/sda2=10G\n"
20934 "\n"
20935 msgstr ""
20936
20937 #. type: verbatim
20938 #: ../resize/virt-resize.pod:433
20939 #, no-wrap
20940 msgid ""
20941 " --resize /dev/sda4=90%\n"
20942 "\n"
20943 msgstr ""
20944
20945 #. type: verbatim
20946 #: ../resize/virt-resize.pod:435
20947 #, no-wrap
20948 msgid ""
20949 " --resize /dev/sda2=+1G\n"
20950 "\n"
20951 msgstr ""
20952
20953 #. type: verbatim
20954 #: ../resize/virt-resize.pod:437
20955 #, no-wrap
20956 msgid ""
20957 " --resize /dev/sda2=-200M\n"
20958 "\n"
20959 msgstr ""
20960
20961 #. type: verbatim
20962 #: ../resize/virt-resize.pod:439
20963 #, no-wrap
20964 msgid ""
20965 " --resize /dev/sda1=+128K\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: verbatim
20970 #: ../resize/virt-resize.pod:441
20971 #, no-wrap
20972 msgid ""
20973 " --resize /dev/sda1=+10%\n"
20974 "\n"
20975 msgstr ""
20976
20977 #. type: verbatim
20978 #: ../resize/virt-resize.pod:443
20979 #, no-wrap
20980 msgid ""
20981 " --resize /dev/sda1=-10%\n"
20982 "\n"
20983 msgstr ""
20984
20985 #. type: textblock
20986 #: ../resize/virt-resize.pod:445
20987 msgid ""
20988 "You can increase the size of any partition.  Virt-resize will expand the "
20989 "direct content of the partition if it knows how (see I<--expand> below)."
20990 msgstr ""
20991
20992 #. type: textblock
20993 #: ../resize/virt-resize.pod:449
20994 msgid ""
20995 "You can only I<decrease> the size of partitions that contain filesystems or "
20996 "PVs which have already been shrunk.  Virt-resize will check this has been "
20997 "done before proceeding, or else will print an error (see also "
20998 "I<--resize-force>)."
20999 msgstr ""
21000
21001 #. type: =item
21002 #: ../resize/virt-resize.pod:456
21003 msgid "B<--resize-force part=size>"
21004 msgstr ""
21005
21006 #. type: textblock
21007 #: ../resize/virt-resize.pod:458
21008 msgid ""
21009 "This is the same as I<--resize> except that it will let you decrease the "
21010 "size of any partition.  Generally this means you will lose any data which "
21011 "was at the end of the partition you shrink, but you may not care about that "
21012 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21013 "as a swap partition)."
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../resize/virt-resize.pod:464
21018 msgid "See also the I<--ignore> option."
21019 msgstr ""
21020
21021 #. type: =item
21022 #: ../resize/virt-resize.pod:466
21023 msgid "B<--shrink part>"
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../resize/virt-resize.pod:468
21028 msgid ""
21029 "Shrink the named partition until the overall disk image fits in the "
21030 "destination.  The named partition B<must> contain a filesystem or PV which "
21031 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21032 "online tools).  Virt-resize will check this and give an error if it has not "
21033 "been done."
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../resize/virt-resize.pod:474
21038 msgid ""
21039 "The amount by which the overall disk must be shrunk (after carrying out all "
21040 "other operations requested by the user) is called the \"deficit\".  For "
21041 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21042 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21043 "would give an error unless the user specified a partition to shrink and that "
21044 "partition had more than a gigabyte of free space."
21045 msgstr ""
21046
21047 #. type: =head1
21048 #: ../resize/virt-resize.pod:492
21049 msgid "MACHINE READABLE OUTPUT"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../resize/virt-resize.pod:494
21054 msgid ""
21055 "The I<--machine-readable> option can be used to make the output more machine "
21056 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21057 "etc."
21058 msgstr ""
21059
21060 #. type: textblock
21061 #: ../resize/virt-resize.pod:498
21062 msgid ""
21063 "Use the option on its own to query the capabilities of the virt-resize "
21064 "binary.  Typical output looks like this:"
21065 msgstr ""
21066
21067 #. type: verbatim
21068 #: ../resize/virt-resize.pod:501
21069 #, no-wrap
21070 msgid ""
21071 " $ virt-resize --machine-readable\n"
21072 " virt-resize\n"
21073 " ntfsresize-force\n"
21074 " 32bitok\n"
21075 " ntfs\n"
21076 " btrfs\n"
21077 "\n"
21078 msgstr ""
21079
21080 #. type: textblock
21081 #: ../resize/virt-resize.pod:508
21082 msgid ""
21083 "A list of features is printed, one per line, and the program exits with "
21084 "status 0."
21085 msgstr ""
21086
21087 #. type: =head2
21088 #: ../resize/virt-resize.pod:513
21089 msgid "\"Partition 1 does not end on cylinder boundary.\""
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../resize/virt-resize.pod:515
21094 msgid ""
21095 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21096 "means the partitions will not be aligned to the ancient CHS geometry.  "
21097 "However CHS geometry is meaningless for disks manufactured since the early "
21098 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21099 "cylinders is not required by any modern operating system."
21100 msgstr ""
21101
21102 #. type: =head2
21103 #: ../resize/virt-resize.pod:522
21104 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21105 msgstr ""
21106
21107 #. type: textblock
21108 #: ../resize/virt-resize.pod:524
21109 msgid ""
21110 "In Windows Vista and later versions, Microsoft switched to using a separate "
21111 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21112 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21113 "the boot partition.  Doing so seems to break the guest completely.  However "
21114 "expanding the second partition (ie. C: drive) should work."
21115 msgstr ""
21116
21117 #. type: textblock
21118 #: ../resize/virt-resize.pod:531
21119 msgid ""
21120 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21121 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21122 "it find errors) is nothing to worry about."
21123 msgstr ""
21124
21125 #. type: =head2
21126 #: ../resize/virt-resize.pod:535
21127 msgid "GUEST BOOT STUCK AT \"GRUB\""
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../resize/virt-resize.pod:537
21132 msgid ""
21133 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21134 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21135 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21136 "although we think is to do with partition alignment."
21137 msgstr ""
21138
21139 #. type: verbatim
21140 #: ../resize/virt-resize.pod:542
21141 #, no-wrap
21142 msgid ""
21143 " guestfish -i -a newdisk\n"
21144 " ><fs> cat /boot/grub/device.map\n"
21145 " # check the contents of this file are sensible or\n"
21146 " # edit the file if necessary\n"
21147 " ><fs> grub-install / /dev/vda\n"
21148 " ><fs> exit\n"
21149 "\n"
21150 msgstr ""
21151
21152 #. type: textblock
21153 #: ../resize/virt-resize.pod:549
21154 msgid ""
21155 "For more flexible guest reconfiguration, including if you need to specify "
21156 "other parameters to grub-install, use L<virt-rescue(1)>."
21157 msgstr ""
21158
21159 #. type: =head1
21160 #: ../resize/virt-resize.pod:552
21161 msgid "ALTERNATIVE TOOLS"
21162 msgstr ""
21163
21164 #. type: textblock
21165 #: ../resize/virt-resize.pod:554
21166 msgid ""
21167 "There are several proprietary tools for resizing partitions.  We won't "
21168 "mention any here."
21169 msgstr ""
21170
21171 #. type: textblock
21172 #: ../resize/virt-resize.pod:557
21173 msgid ""
21174 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21175 "operations on disk images.  They can resize and move partitions, but I don't "
21176 "think they can do anything with the contents, and they certainly don't "
21177 "understand LVM."
21178 msgstr ""
21179
21180 #. type: textblock
21181 #: ../resize/virt-resize.pod:562
21182 msgid ""
21183 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21184 "but at a much lower level.  You will probably end up hand-calculating sector "
21185 "offsets, which is something that virt-resize was designed to avoid.  If you "
21186 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21187 "I<--debug> flag."
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../resize/virt-resize.pod:582
21192 msgid ""
21193 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21194 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21195 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21196 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21197 "L<http://libguestfs.org/>."
21198 msgstr ""
21199
21200 #. type: textblock
21201 #: ../ruby/examples/guestfs-ruby.pod:5
21202 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21203 msgstr ""
21204
21205 #. type: verbatim
21206 #: ../ruby/examples/guestfs-ruby.pod:9
21207 #, no-wrap
21208 msgid ""
21209 " require 'guestfs'\n"
21210 " g = Guestfs::Guestfs.new()\n"
21211 " g.add_drive_opts(\"disk.img\",\n"
21212 "                  :readonly => 1, :format => \"raw\")\n"
21213 " g.launch()\n"
21214 "\n"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../ruby/examples/guestfs-ruby.pod:17
21219 msgid ""
21220 "This manual page documents how to call libguestfs from the Ruby programming "
21221 "language.  This page just documents the differences from the C API and gives "
21222 "some examples.  If you are not familiar with using libguestfs, you also need "
21223 "to read L<guestfs(3)>."
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../ruby/examples/guestfs-ruby.pod:24
21228 msgid ""
21229 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21230 "This has a single parameter which is the error message (a string)."
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../ruby/examples/guestfs-ruby.pod:38
21235 msgid ""
21236 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
21237 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21238 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21239 msgstr ""
21240
21241 #. type: =head2
21242 #: ../src/guestfs-actions.pod:1
21243 msgid "guestfs_add_cdrom"
21244 msgstr ""
21245
21246 #. type: verbatim
21247 #: ../src/guestfs-actions.pod:3
21248 #, no-wrap
21249 msgid ""
21250 " int\n"
21251 " guestfs_add_cdrom (guestfs_h *g,\n"
21252 "                    const char *filename);\n"
21253 "\n"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../src/guestfs-actions.pod:17
21258 msgid ""
21259 "This call checks for the existence of C<filename>.  This stops you from "
21260 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21261 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21262 "instead."
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../src/guestfs-actions.pod:24
21267 msgid ""
21268 "If you just want to add an ISO file (often you use this as an efficient way "
21269 "to transfer large files into the guest), then you should probably use "
21270 "C<guestfs_add_drive_ro> instead."
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506 ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652 ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084 ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210 ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258 ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912 ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012 ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071 ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134 ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261 ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337 ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504 ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885 ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053 ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086 ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169 ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223 ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456 ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7711 ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
21275 msgid "This function returns 0 on success or -1 on error."
21276 msgstr ""
21277
21278 #. type: textblock
21279 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:275
21280 msgid ""
21281 "This function is deprecated.  In new code, use the "
21282 "L</guestfs_add_drive_opts> call instead."
21283 msgstr ""
21284
21285 #. type: textblock
21286 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222 ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088 ../src/guestfs-actions.pod:7611
21287 msgid "(Added in 0.3)"
21288 msgstr ""
21289
21290 #. type: =head2
21291 #: ../src/guestfs-actions.pod:41
21292 msgid "guestfs_add_domain"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../src/guestfs-actions.pod:43
21297 #, no-wrap
21298 msgid ""
21299 " int\n"
21300 " guestfs_add_domain (guestfs_h *g,\n"
21301 "                     const char *dom,\n"
21302 "                     ...);\n"
21303 "\n"
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:5183
21308 msgid ""
21309 "You may supply a list of optional arguments to this call.  Use zero or more "
21310 "of the following pairs of parameters, and terminate the list with C<-1> on "
21311 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21312 msgstr ""
21313
21314 #. type: verbatim
21315 #: ../src/guestfs-actions.pod:53
21316 #, no-wrap
21317 msgid ""
21318 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21319 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21320 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21321 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21322 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21323 "\n"
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../src/guestfs-actions.pod:59
21328 msgid ""
21329 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21330 "It works by connecting to libvirt, requesting the domain and domain XML from "
21331 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21332 "one."
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../src/guestfs-actions.pod:94
21337 msgid ""
21338 "The other optional parameters are passed directly through to "
21339 "C<guestfs_add_drive_opts>."
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385 ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184 ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7648
21344 msgid "On error this function returns -1."
21345 msgstr ""
21346
21347 #. type: textblock
21348 #: ../src/guestfs-actions.pod:99
21349 msgid "(Added in 1.7.4)"
21350 msgstr ""
21351
21352 #. type: =head2
21353 #: ../src/guestfs-actions.pod:101
21354 msgid "guestfs_add_domain_va"
21355 msgstr ""
21356
21357 #. type: verbatim
21358 #: ../src/guestfs-actions.pod:103
21359 #, no-wrap
21360 msgid ""
21361 " int\n"
21362 " guestfs_add_domain_va (guestfs_h *g,\n"
21363 "                        const char *dom,\n"
21364 "                        va_list args);\n"
21365 "\n"
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../src/guestfs-actions.pod:108
21370 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21371 msgstr ""
21372
21373 #. type: textblock
21374 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
21375 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21376 msgstr ""
21377
21378 #. type: =head2
21379 #: ../src/guestfs-actions.pod:112
21380 msgid "guestfs_add_domain_argv"
21381 msgstr ""
21382
21383 #. type: verbatim
21384 #: ../src/guestfs-actions.pod:114
21385 #, no-wrap
21386 msgid ""
21387 " int\n"
21388 " guestfs_add_domain_argv (guestfs_h *g,\n"
21389 "                          const char *dom,\n"
21390 "                          const struct guestfs_add_domain_argv *optargs);\n"
21391 "\n"
21392 msgstr ""
21393
21394 #. type: textblock
21395 #: ../src/guestfs-actions.pod:119
21396 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21397 msgstr ""
21398
21399 #. type: =head2
21400 #: ../src/guestfs-actions.pod:123
21401 msgid "guestfs_add_drive"
21402 msgstr ""
21403
21404 #. type: verbatim
21405 #: ../src/guestfs-actions.pod:125
21406 #, no-wrap
21407 msgid ""
21408 " int\n"
21409 " guestfs_add_drive (guestfs_h *g,\n"
21410 "                    const char *filename);\n"
21411 "\n"
21412 msgstr ""
21413
21414 #. type: textblock
21415 #: ../src/guestfs-actions.pod:129
21416 msgid ""
21417 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21418 "optional parameters, so the disk is added writable, with the format being "
21419 "detected automatically."
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../src/guestfs-actions.pod:133
21424 msgid ""
21425 "Automatic detection of the format opens you up to a potential security hole "
21426 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21427 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21428 "you should think about replacing calls to this function with calls to "
21429 "C<guestfs_add_drive_opts>, and specifying the format."
21430 msgstr ""
21431
21432 #. type: =head2
21433 #: ../src/guestfs-actions.pod:144
21434 msgid "guestfs_add_drive_opts"
21435 msgstr ""
21436
21437 #. type: verbatim
21438 #: ../src/guestfs-actions.pod:146
21439 #, no-wrap
21440 msgid ""
21441 " int\n"
21442 " guestfs_add_drive_opts (guestfs_h *g,\n"
21443 "                         const char *filename,\n"
21444 "                         ...);\n"
21445 "\n"
21446 msgstr ""
21447
21448 #. type: verbatim
21449 #: ../src/guestfs-actions.pod:156
21450 #, no-wrap
21451 msgid ""
21452 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21453 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21454 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21455 "\n"
21456 msgstr ""
21457
21458 #. type: textblock
21459 #: ../src/guestfs-actions.pod:185
21460 msgid ""
21461 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21462 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21463 "Possible formats include C<raw> and C<qcow2>."
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../src/guestfs-actions.pod:196
21468 msgid ""
21469 "This rarely-used option lets you emulate the behaviour of the deprecated "
21470 "C<guestfs_add_drive_with_if> call (q.v.)"
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../src/guestfs-actions.pod:203
21475 msgid "(Added in 1.5.23)"
21476 msgstr ""
21477
21478 #. type: =head2
21479 #: ../src/guestfs-actions.pod:205
21480 msgid "guestfs_add_drive_opts_va"
21481 msgstr ""
21482
21483 #. type: verbatim
21484 #: ../src/guestfs-actions.pod:207
21485 #, no-wrap
21486 msgid ""
21487 " int\n"
21488 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21489 "                            const char *filename,\n"
21490 "                            va_list args);\n"
21491 "\n"
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../src/guestfs-actions.pod:212
21496 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21497 msgstr ""
21498
21499 #. type: =head2
21500 #: ../src/guestfs-actions.pod:216
21501 msgid "guestfs_add_drive_opts_argv"
21502 msgstr ""
21503
21504 #. type: verbatim
21505 #: ../src/guestfs-actions.pod:218
21506 #, no-wrap
21507 msgid ""
21508 " int\n"
21509 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21510 "                              const char *filename,\n"
21511 "                              const struct guestfs_add_drive_opts_argv "
21512 "*optargs);\n"
21513 "\n"
21514 msgstr ""
21515
21516 #. type: textblock
21517 #: ../src/guestfs-actions.pod:223
21518 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21519 msgstr ""
21520
21521 #. type: =head2
21522 #: ../src/guestfs-actions.pod:227
21523 msgid "guestfs_add_drive_ro"
21524 msgstr ""
21525
21526 #. type: verbatim
21527 #: ../src/guestfs-actions.pod:229
21528 #, no-wrap
21529 msgid ""
21530 " int\n"
21531 " guestfs_add_drive_ro (guestfs_h *g,\n"
21532 "                       const char *filename);\n"
21533 "\n"
21534 msgstr ""
21535
21536 #. type: textblock
21537 #: ../src/guestfs-actions.pod:233
21538 msgid ""
21539 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21540 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21541 "disk is added read-only, with the format being detected automatically."
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../src/guestfs-actions.pod:240
21546 msgid "(Added in 1.0.38)"
21547 msgstr ""
21548
21549 #. type: =head2
21550 #: ../src/guestfs-actions.pod:242
21551 msgid "guestfs_add_drive_ro_with_if"
21552 msgstr ""
21553
21554 #. type: verbatim
21555 #: ../src/guestfs-actions.pod:244
21556 #, no-wrap
21557 msgid ""
21558 " int\n"
21559 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
21560 "                               const char *filename,\n"
21561 "                               const char *iface);\n"
21562 "\n"
21563 msgstr ""
21564
21565 #. type: textblock
21566 #: ../src/guestfs-actions.pod:249
21567 msgid ""
21568 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
21569 "QEMU interface emulation to use at run time."
21570 msgstr ""
21571
21572 #. type: textblock
21573 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2436
21574 msgid "(Added in 1.0.84)"
21575 msgstr ""
21576
21577 #. type: =head2
21578 #: ../src/guestfs-actions.pod:263
21579 msgid "guestfs_add_drive_with_if"
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../src/guestfs-actions.pod:265
21584 #, no-wrap
21585 msgid ""
21586 " int\n"
21587 " guestfs_add_drive_with_if (guestfs_h *g,\n"
21588 "                            const char *filename,\n"
21589 "                            const char *iface);\n"
21590 "\n"
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../src/guestfs-actions.pod:270
21595 msgid ""
21596 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
21597 "QEMU interface emulation to use at run time."
21598 msgstr ""
21599
21600 #. type: =head2
21601 #: ../src/guestfs-actions.pod:284
21602 msgid "guestfs_aug_clear"
21603 msgstr ""
21604
21605 #. type: verbatim
21606 #: ../src/guestfs-actions.pod:286
21607 #, no-wrap
21608 msgid ""
21609 " int\n"
21610 " guestfs_aug_clear (guestfs_h *g,\n"
21611 "                    const char *augpath);\n"
21612 "\n"
21613 msgstr ""
21614
21615 #. type: textblock
21616 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
21617 msgid "(Added in 1.3.4)"
21618 msgstr ""
21619
21620 #. type: =head2
21621 #: ../src/guestfs-actions.pod:297
21622 msgid "guestfs_aug_close"
21623 msgstr ""
21624
21625 #. type: verbatim
21626 #: ../src/guestfs-actions.pod:299
21627 #, no-wrap
21628 msgid ""
21629 " int\n"
21630 " guestfs_aug_close (guestfs_h *g);\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../src/guestfs-actions.pod:302
21636 msgid ""
21637 "Close the current Augeas handle and free up any resources used by it.  After "
21638 "calling this, you have to call C<guestfs_aug_init> again before you can use "
21639 "any other Augeas functions."
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494 ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522 ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554 ../src/guestfs-actions.pod:5851
21644 msgid "(Added in 0.7)"
21645 msgstr ""
21646
21647 #. type: =head2
21648 #: ../src/guestfs-actions.pod:311
21649 msgid "guestfs_aug_defnode"
21650 msgstr ""
21651
21652 #. type: verbatim
21653 #: ../src/guestfs-actions.pod:313
21654 #, no-wrap
21655 msgid ""
21656 " struct guestfs_int_bool *\n"
21657 " guestfs_aug_defnode (guestfs_h *g,\n"
21658 "                      const char *name,\n"
21659 "                      const char *expr,\n"
21660 "                      const char *val);\n"
21661 "\n"
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../src/guestfs-actions.pod:322
21666 msgid ""
21667 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21668 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
21669 "containing that single node."
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../src/guestfs-actions.pod:330
21674 msgid ""
21675 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
21676 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
21677 msgstr ""
21678
21679 #. type: =head2
21680 #: ../src/guestfs-actions.pod:336
21681 msgid "guestfs_aug_defvar"
21682 msgstr ""
21683
21684 #. type: verbatim
21685 #: ../src/guestfs-actions.pod:338
21686 #, no-wrap
21687 msgid ""
21688 " int\n"
21689 " guestfs_aug_defvar (guestfs_h *g,\n"
21690 "                     const char *name,\n"
21691 "                     const char *expr);\n"
21692 "\n"
21693 msgstr ""
21694
21695 #. type: =head2
21696 #: ../src/guestfs-actions.pod:354
21697 msgid "guestfs_aug_get"
21698 msgstr ""
21699
21700 #. type: verbatim
21701 #: ../src/guestfs-actions.pod:356
21702 #, no-wrap
21703 msgid ""
21704 " char *\n"
21705 " guestfs_aug_get (guestfs_h *g,\n"
21706 "                  const char *augpath);\n"
21707 "\n"
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005 ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214 ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579 ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632 ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6665 ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370 ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7891
21712 msgid ""
21713 "This function returns a string, or NULL on error.  I<The caller must free "
21714 "the returned string after use>."
21715 msgstr ""
21716
21717 #. type: =head2
21718 #: ../src/guestfs-actions.pod:368
21719 msgid "guestfs_aug_init"
21720 msgstr ""
21721
21722 #. type: verbatim
21723 #: ../src/guestfs-actions.pod:370
21724 #, no-wrap
21725 msgid ""
21726 " int\n"
21727 " guestfs_aug_init (guestfs_h *g,\n"
21728 "                   const char *root,\n"
21729 "                   int flags);\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../src/guestfs-actions.pod:379
21735 msgid "You must call this before using any other C<guestfs_aug_*> commands."
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../src/guestfs-actions.pod:404
21740 msgid ""
21741 "This option is only useful when debugging Augeas lenses.  Use of this option "
21742 "may require additional memory for the libguestfs appliance.  You may need to "
21743 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
21744 "C<guestfs_set_memsize>."
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../src/guestfs-actions.pod:419
21749 msgid "Do not load the tree in C<guestfs_aug_init>."
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../src/guestfs-actions.pod:423
21754 msgid "To close the handle, you can call C<guestfs_aug_close>."
21755 msgstr ""
21756
21757 #. type: =head2
21758 #: ../src/guestfs-actions.pod:431
21759 msgid "guestfs_aug_insert"
21760 msgstr ""
21761
21762 #. type: verbatim
21763 #: ../src/guestfs-actions.pod:433
21764 #, no-wrap
21765 msgid ""
21766 " int\n"
21767 " guestfs_aug_insert (guestfs_h *g,\n"
21768 "                     const char *augpath,\n"
21769 "                     const char *label,\n"
21770 "                     int before);\n"
21771 "\n"
21772 msgstr ""
21773
21774 #. type: =head2
21775 #: ../src/guestfs-actions.pod:451
21776 msgid "guestfs_aug_load"
21777 msgstr ""
21778
21779 #. type: verbatim
21780 #: ../src/guestfs-actions.pod:453
21781 #, no-wrap
21782 msgid ""
21783 " int\n"
21784 " guestfs_aug_load (guestfs_h *g);\n"
21785 "\n"
21786 msgstr ""
21787
21788 #. type: =head2
21789 #: ../src/guestfs-actions.pod:465
21790 msgid "guestfs_aug_ls"
21791 msgstr ""
21792
21793 #. type: verbatim
21794 #: ../src/guestfs-actions.pod:467
21795 #, no-wrap
21796 msgid ""
21797 " char **\n"
21798 " guestfs_aug_ls (guestfs_h *g,\n"
21799 "                 const char *augpath);\n"
21800 "\n"
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../src/guestfs-actions.pod:471
21805 msgid ""
21806 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
21807 "sorting the resulting nodes into alphabetical order."
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724 ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828 ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998 ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494 ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848 ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913 ../src/guestfs-actions.pod:7932
21812 msgid ""
21813 "This function returns a NULL-terminated array of strings (like "
21814 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
21815 "strings and the array after use>."
21816 msgstr ""
21817
21818 #. type: textblock
21819 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447 ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212 ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7723
21820 msgid "(Added in 0.8)"
21821 msgstr ""
21822
21823 #. type: =head2
21824 #: ../src/guestfs-actions.pod:480
21825 msgid "guestfs_aug_match"
21826 msgstr ""
21827
21828 #. type: verbatim
21829 #: ../src/guestfs-actions.pod:482
21830 #, no-wrap
21831 msgid ""
21832 " char **\n"
21833 " guestfs_aug_match (guestfs_h *g,\n"
21834 "                    const char *augpath);\n"
21835 "\n"
21836 msgstr ""
21837
21838 #. type: =head2
21839 #: ../src/guestfs-actions.pod:496
21840 msgid "guestfs_aug_mv"
21841 msgstr ""
21842
21843 #. type: verbatim
21844 #: ../src/guestfs-actions.pod:498
21845 #, no-wrap
21846 msgid ""
21847 " int\n"
21848 " guestfs_aug_mv (guestfs_h *g,\n"
21849 "                 const char *src,\n"
21850 "                 const char *dest);\n"
21851 "\n"
21852 msgstr ""
21853
21854 #. type: =head2
21855 #: ../src/guestfs-actions.pod:510
21856 msgid "guestfs_aug_rm"
21857 msgstr ""
21858
21859 #. type: verbatim
21860 #: ../src/guestfs-actions.pod:512
21861 #, no-wrap
21862 msgid ""
21863 " int\n"
21864 " guestfs_aug_rm (guestfs_h *g,\n"
21865 "                 const char *augpath);\n"
21866 "\n"
21867 msgstr ""
21868
21869 #. type: =head2
21870 #: ../src/guestfs-actions.pod:524
21871 msgid "guestfs_aug_save"
21872 msgstr ""
21873
21874 #. type: verbatim
21875 #: ../src/guestfs-actions.pod:526
21876 #, no-wrap
21877 msgid ""
21878 " int\n"
21879 " guestfs_aug_save (guestfs_h *g);\n"
21880 "\n"
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../src/guestfs-actions.pod:531
21885 msgid ""
21886 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
21887 "are saved."
21888 msgstr ""
21889
21890 #. type: =head2
21891 #: ../src/guestfs-actions.pod:538
21892 msgid "guestfs_aug_set"
21893 msgstr ""
21894
21895 #. type: verbatim
21896 #: ../src/guestfs-actions.pod:540
21897 #, no-wrap
21898 msgid ""
21899 " int\n"
21900 " guestfs_aug_set (guestfs_h *g,\n"
21901 "                  const char *augpath,\n"
21902 "                  const char *val);\n"
21903 "\n"
21904 msgstr ""
21905
21906 #. type: textblock
21907 #: ../src/guestfs-actions.pod:547
21908 msgid ""
21909 "In the Augeas API, it is possible to clear a node by setting the value to "
21910 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
21911 "this call.  Instead you must use the C<guestfs_aug_clear> call."
21912 msgstr ""
21913
21914 #. type: =head2
21915 #: ../src/guestfs-actions.pod:556
21916 msgid "guestfs_available"
21917 msgstr ""
21918
21919 #. type: verbatim
21920 #: ../src/guestfs-actions.pod:558
21921 #, no-wrap
21922 msgid ""
21923 " int\n"
21924 " guestfs_available (guestfs_h *g,\n"
21925 "                    char *const *groups);\n"
21926 "\n"
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../src/guestfs-actions.pod:566
21931 msgid ""
21932 "The libguestfs groups, and the functions that those groups correspond to, "
21933 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
21934 "runtime by calling C<guestfs_available_all_groups>."
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../src/guestfs-actions.pod:590
21939 msgid "You must call C<guestfs_launch> before calling this function."
21940 msgstr ""
21941
21942 #. type: textblock
21943 #: ../src/guestfs-actions.pod:612
21944 msgid ""
21945 "This call was added in version C<1.0.80>.  In previous versions of "
21946 "libguestfs all you could do would be to speculatively execute a command to "
21947 "find out if the daemon implemented it.  See also C<guestfs_version>."
21948 msgstr ""
21949
21950 #. type: textblock
21951 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
21952 msgid "(Added in 1.0.80)"
21953 msgstr ""
21954
21955 #. type: =head2
21956 #: ../src/guestfs-actions.pod:623
21957 msgid "guestfs_available_all_groups"
21958 msgstr ""
21959
21960 #. type: verbatim
21961 #: ../src/guestfs-actions.pod:625
21962 #, no-wrap
21963 msgid ""
21964 " char **\n"
21965 " guestfs_available_all_groups (guestfs_h *g);\n"
21966 "\n"
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../src/guestfs-actions.pod:628
21971 msgid ""
21972 "This command returns a list of all optional groups that this daemon knows "
21973 "about.  Note this returns both supported and unsupported groups.  To find "
21974 "out which ones the daemon can actually support you have to call "
21975 "C<guestfs_available> on each member of the returned list."
21976 msgstr ""
21977
21978 #. type: textblock
21979 #: ../src/guestfs-actions.pod:634
21980 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
21981 msgstr ""
21982
21983 #. type: textblock
21984 #: ../src/guestfs-actions.pod:640
21985 msgid "(Added in 1.3.15)"
21986 msgstr ""
21987
21988 #. type: =head2
21989 #: ../src/guestfs-actions.pod:642
21990 msgid "guestfs_base64_in"
21991 msgstr ""
21992
21993 #. type: verbatim
21994 #: ../src/guestfs-actions.pod:644
21995 #, no-wrap
21996 msgid ""
21997 " int\n"
21998 " guestfs_base64_in (guestfs_h *g,\n"
21999 "                    const char *base64file,\n"
22000 "                    const char *filename);\n"
22001 "\n"
22002 msgstr ""
22003
22004 #. type: textblock
22005 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22006 msgid "(Added in 1.3.5)"
22007 msgstr ""
22008
22009 #. type: =head2
22010 #: ../src/guestfs-actions.pod:656
22011 msgid "guestfs_base64_out"
22012 msgstr ""
22013
22014 #. type: verbatim
22015 #: ../src/guestfs-actions.pod:658
22016 #, no-wrap
22017 msgid ""
22018 " int\n"
22019 " guestfs_base64_out (guestfs_h *g,\n"
22020 "                     const char *filename,\n"
22021 "                     const char *base64file);\n"
22022 "\n"
22023 msgstr ""
22024
22025 #. type: =head2
22026 #: ../src/guestfs-actions.pod:670
22027 msgid "guestfs_blockdev_flushbufs"
22028 msgstr ""
22029
22030 #. type: verbatim
22031 #: ../src/guestfs-actions.pod:672
22032 #, no-wrap
22033 msgid ""
22034 " int\n"
22035 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22036 "                             const char *device);\n"
22037 "\n"
22038 msgstr ""
22039
22040 #. type: textblock
22041 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22042 msgid "(Added in 0.9.3)"
22043 msgstr ""
22044
22045 #. type: =head2
22046 #: ../src/guestfs-actions.pod:685
22047 msgid "guestfs_blockdev_getbsz"
22048 msgstr ""
22049
22050 #. type: verbatim
22051 #: ../src/guestfs-actions.pod:687
22052 #, no-wrap
22053 msgid ""
22054 " int\n"
22055 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22056 "                          const char *device);\n"
22057 "\n"
22058 msgstr ""
22059
22060 #. type: =head2
22061 #: ../src/guestfs-actions.pod:702
22062 msgid "guestfs_blockdev_getro"
22063 msgstr ""
22064
22065 #. type: verbatim
22066 #: ../src/guestfs-actions.pod:704
22067 #, no-wrap
22068 msgid ""
22069 " int\n"
22070 " guestfs_blockdev_getro (guestfs_h *g,\n"
22071 "                         const char *device);\n"
22072 "\n"
22073 msgstr ""
22074
22075 #. type: textblock
22076 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479 ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501 ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531 ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615 ../src/guestfs-actions.pod:5344
22077 msgid "This function returns a C truth value on success or -1 on error."
22078 msgstr ""
22079
22080 #. type: =head2
22081 #: ../src/guestfs-actions.pod:717
22082 msgid "guestfs_blockdev_getsize64"
22083 msgstr ""
22084
22085 #. type: verbatim
22086 #: ../src/guestfs-actions.pod:719
22087 #, no-wrap
22088 msgid ""
22089 " int64_t\n"
22090 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22091 "                             const char *device);\n"
22092 "\n"
22093 msgstr ""
22094
22095 #. type: textblock
22096 #: ../src/guestfs-actions.pod:725
22097 msgid "See also C<guestfs_blockdev_getsz>."
22098 msgstr ""
22099
22100 #. type: =head2
22101 #: ../src/guestfs-actions.pod:733
22102 msgid "guestfs_blockdev_getss"
22103 msgstr ""
22104
22105 #. type: verbatim
22106 #: ../src/guestfs-actions.pod:735
22107 #, no-wrap
22108 msgid ""
22109 " int\n"
22110 " guestfs_blockdev_getss (guestfs_h *g,\n"
22111 "                         const char *device);\n"
22112 "\n"
22113 msgstr ""
22114
22115 #. type: textblock
22116 #: ../src/guestfs-actions.pod:742
22117 msgid ""
22118 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22119 "that)."
22120 msgstr ""
22121
22122 #. type: =head2
22123 #: ../src/guestfs-actions.pod:751
22124 msgid "guestfs_blockdev_getsz"
22125 msgstr ""
22126
22127 #. type: verbatim
22128 #: ../src/guestfs-actions.pod:753
22129 #, no-wrap
22130 msgid ""
22131 " int64_t\n"
22132 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22133 "                         const char *device);\n"
22134 "\n"
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../src/guestfs-actions.pod:760
22139 msgid ""
22140 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22141 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22142 msgstr ""
22143
22144 #. type: =head2
22145 #: ../src/guestfs-actions.pod:770
22146 msgid "guestfs_blockdev_rereadpt"
22147 msgstr ""
22148
22149 #. type: verbatim
22150 #: ../src/guestfs-actions.pod:772
22151 #, no-wrap
22152 msgid ""
22153 " int\n"
22154 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22155 "                            const char *device);\n"
22156 "\n"
22157 msgstr ""
22158
22159 #. type: =head2
22160 #: ../src/guestfs-actions.pod:784
22161 msgid "guestfs_blockdev_setbsz"
22162 msgstr ""
22163
22164 #. type: verbatim
22165 #: ../src/guestfs-actions.pod:786
22166 #, no-wrap
22167 msgid ""
22168 " int\n"
22169 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22170 "                          const char *device,\n"
22171 "                          int blocksize);\n"
22172 "\n"
22173 msgstr ""
22174
22175 #. type: =head2
22176 #: ../src/guestfs-actions.pod:802
22177 msgid "guestfs_blockdev_setro"
22178 msgstr ""
22179
22180 #. type: verbatim
22181 #: ../src/guestfs-actions.pod:804
22182 #, no-wrap
22183 msgid ""
22184 " int\n"
22185 " guestfs_blockdev_setro (guestfs_h *g,\n"
22186 "                         const char *device);\n"
22187 "\n"
22188 msgstr ""
22189
22190 #. type: =head2
22191 #: ../src/guestfs-actions.pod:816
22192 msgid "guestfs_blockdev_setrw"
22193 msgstr ""
22194
22195 #. type: verbatim
22196 #: ../src/guestfs-actions.pod:818
22197 #, no-wrap
22198 msgid ""
22199 " int\n"
22200 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22201 "                         const char *device);\n"
22202 "\n"
22203 msgstr ""
22204
22205 #. type: =head2
22206 #: ../src/guestfs-actions.pod:830
22207 msgid "guestfs_btrfs_filesystem_resize"
22208 msgstr ""
22209
22210 #. type: verbatim
22211 #: ../src/guestfs-actions.pod:832
22212 #, no-wrap
22213 msgid ""
22214 " int\n"
22215 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22216 "                                  const char *mountpoint,\n"
22217 "                                  ...);\n"
22218 "\n"
22219 msgstr ""
22220
22221 #. type: verbatim
22222 #: ../src/guestfs-actions.pod:842
22223 #, no-wrap
22224 msgid ""
22225 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22226 "\n"
22227 msgstr ""
22228
22229 #. type: textblock
22230 #: ../src/guestfs-actions.pod:865
22231 msgid "(Added in 1.11.17)"
22232 msgstr ""
22233
22234 #. type: =head2
22235 #: ../src/guestfs-actions.pod:867
22236 msgid "guestfs_btrfs_filesystem_resize_va"
22237 msgstr ""
22238
22239 #. type: verbatim
22240 #: ../src/guestfs-actions.pod:869
22241 #, no-wrap
22242 msgid ""
22243 " int\n"
22244 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22245 "                                     const char *mountpoint,\n"
22246 "                                     va_list args);\n"
22247 "\n"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../src/guestfs-actions.pod:874
22252 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22253 msgstr ""
22254
22255 #. type: =head2
22256 #: ../src/guestfs-actions.pod:878
22257 msgid "guestfs_btrfs_filesystem_resize_argv"
22258 msgstr ""
22259
22260 #. type: verbatim
22261 #: ../src/guestfs-actions.pod:880
22262 #, no-wrap
22263 msgid ""
22264 " int\n"
22265 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22266 "                                       const char *mountpoint,\n"
22267 "                                       const struct "
22268 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22269 "\n"
22270 msgstr ""
22271
22272 #. type: textblock
22273 #: ../src/guestfs-actions.pod:885
22274 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22275 msgstr ""
22276
22277 #. type: =head2
22278 #: ../src/guestfs-actions.pod:889
22279 msgid "guestfs_case_sensitive_path"
22280 msgstr ""
22281
22282 #. type: verbatim
22283 #: ../src/guestfs-actions.pod:891
22284 #, no-wrap
22285 msgid ""
22286 " char *\n"
22287 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22288 "                              const char *path);\n"
22289 "\n"
22290 msgstr ""
22291
22292 #. type: textblock
22293 #: ../src/guestfs-actions.pod:917
22294 msgid ""
22295 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22296 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22297 "how the directories were originally created under Windows)."
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../src/guestfs-actions.pod:925
22302 msgid "See also C<guestfs_realpath>."
22303 msgstr ""
22304
22305 #. type: textblock
22306 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
22307 msgid "(Added in 1.0.75)"
22308 msgstr ""
22309
22310 #. type: =head2
22311 #: ../src/guestfs-actions.pod:932
22312 msgid "guestfs_cat"
22313 msgstr ""
22314
22315 #. type: verbatim
22316 #: ../src/guestfs-actions.pod:934
22317 #, no-wrap
22318 msgid ""
22319 " char *\n"
22320 " guestfs_cat (guestfs_h *g,\n"
22321 "              const char *path);\n"
22322 "\n"
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../src/guestfs-actions.pod:940
22327 msgid ""
22328 "Note that this function cannot correctly handle binary files (specifically, "
22329 "files containing C<\\0> character which is treated as end of string).  For "
22330 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22331 "functions which have a more complex interface."
22332 msgstr ""
22333
22334 #. type: textblock
22335 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725 ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7559
22336 msgid "(Added in 0.4)"
22337 msgstr ""
22338
22339 #. type: =head2
22340 #: ../src/guestfs-actions.pod:953
22341 msgid "guestfs_checksum"
22342 msgstr ""
22343
22344 #. type: verbatim
22345 #: ../src/guestfs-actions.pod:955
22346 #, no-wrap
22347 msgid ""
22348 " char *\n"
22349 " guestfs_checksum (guestfs_h *g,\n"
22350 "                   const char *csumtype,\n"
22351 "                   const char *path);\n"
22352 "\n"
22353 msgstr ""
22354
22355 #. type: textblock
22356 #: ../src/guestfs-actions.pod:1001
22357 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../src/guestfs-actions.pod:1003
22362 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22363 msgstr ""
22364
22365 #. type: textblock
22366 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
22367 msgid "(Added in 1.0.2)"
22368 msgstr ""
22369
22370 #. type: =head2
22371 #: ../src/guestfs-actions.pod:1010
22372 msgid "guestfs_checksum_device"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../src/guestfs-actions.pod:1012
22377 #, no-wrap
22378 msgid ""
22379 " char *\n"
22380 " guestfs_checksum_device (guestfs_h *g,\n"
22381 "                          const char *csumtype,\n"
22382 "                          const char *device);\n"
22383 "\n"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../src/guestfs-actions.pod:1017
22388 msgid ""
22389 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22390 "device named C<device>.  For the types of checksums supported see the "
22391 "C<guestfs_checksum> command."
22392 msgstr ""
22393
22394 #. type: textblock
22395 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171 ../src/guestfs-actions.pod:7571
22396 msgid "(Added in 1.3.2)"
22397 msgstr ""
22398
22399 #. type: =head2
22400 #: ../src/guestfs-actions.pod:1026
22401 msgid "guestfs_checksums_out"
22402 msgstr ""
22403
22404 #. type: verbatim
22405 #: ../src/guestfs-actions.pod:1028
22406 #, no-wrap
22407 msgid ""
22408 " int\n"
22409 " guestfs_checksums_out (guestfs_h *g,\n"
22410 "                        const char *csumtype,\n"
22411 "                        const char *directory,\n"
22412 "                        const char *sumsfile);\n"
22413 "\n"
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../src/guestfs-actions.pod:1048
22418 msgid "(Added in 1.3.7)"
22419 msgstr ""
22420
22421 #. type: =head2
22422 #: ../src/guestfs-actions.pod:1050
22423 msgid "guestfs_chmod"
22424 msgstr ""
22425
22426 #. type: verbatim
22427 #: ../src/guestfs-actions.pod:1052
22428 #, no-wrap
22429 msgid ""
22430 " int\n"
22431 " guestfs_chmod (guestfs_h *g,\n"
22432 "                int mode,\n"
22433 "                const char *path);\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: =head2
22438 #: ../src/guestfs-actions.pod:1070
22439 msgid "guestfs_chown"
22440 msgstr ""
22441
22442 #. type: verbatim
22443 #: ../src/guestfs-actions.pod:1072
22444 #, no-wrap
22445 msgid ""
22446 " int\n"
22447 " guestfs_chown (guestfs_h *g,\n"
22448 "                int owner,\n"
22449 "                int group,\n"
22450 "                const char *path);\n"
22451 "\n"
22452 msgstr ""
22453
22454 #. type: =head2
22455 #: ../src/guestfs-actions.pod:1088
22456 msgid "guestfs_command"
22457 msgstr ""
22458
22459 #. type: verbatim
22460 #: ../src/guestfs-actions.pod:1090
22461 #, no-wrap
22462 msgid ""
22463 " char *\n"
22464 " guestfs_command (guestfs_h *g,\n"
22465 "                  char *const *arguments);\n"
22466 "\n"
22467 msgstr ""
22468
22469 #. type: textblock
22470 #: ../src/guestfs-actions.pod:1099
22471 msgid ""
22472 "The single parameter is an argv-style list of arguments.  The first element "
22473 "is the name of the program to run.  Subsequent elements are parameters.  The "
22474 "list must be non-empty (ie. must contain a program name).  Note that the "
22475 "command runs directly, and is I<not> invoked via the shell (see "
22476 "C<guestfs_sh>)."
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1615
22481 msgid "(Added in 0.9.1)"
22482 msgstr ""
22483
22484 #. type: =head2
22485 #: ../src/guestfs-actions.pod:1132
22486 msgid "guestfs_command_lines"
22487 msgstr ""
22488
22489 #. type: verbatim
22490 #: ../src/guestfs-actions.pod:1134
22491 #, no-wrap
22492 msgid ""
22493 " char **\n"
22494 " guestfs_command_lines (guestfs_h *g,\n"
22495 "                        char *const *arguments);\n"
22496 "\n"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../src/guestfs-actions.pod:1138
22501 msgid ""
22502 "This is the same as C<guestfs_command>, but splits the result into a list of "
22503 "lines."
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../src/guestfs-actions.pod:1141
22508 msgid "See also: C<guestfs_sh_lines>"
22509 msgstr ""
22510
22511 #. type: =head2
22512 #: ../src/guestfs-actions.pod:1152
22513 msgid "guestfs_config"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../src/guestfs-actions.pod:1154
22518 #, no-wrap
22519 msgid ""
22520 " int\n"
22521 " guestfs_config (guestfs_h *g,\n"
22522 "                 const char *qemuparam,\n"
22523 "                 const char *qemuvalue);\n"
22524 "\n"
22525 msgstr ""
22526
22527 #. type: =head2
22528 #: ../src/guestfs-actions.pod:1172
22529 msgid "guestfs_copy_size"
22530 msgstr ""
22531
22532 #. type: verbatim
22533 #: ../src/guestfs-actions.pod:1174
22534 #, no-wrap
22535 msgid ""
22536 " int\n"
22537 " guestfs_copy_size (guestfs_h *g,\n"
22538 "                    const char *src,\n"
22539 "                    const char *dest,\n"
22540 "                    int64_t size);\n"
22541 "\n"
22542 msgstr ""
22543
22544 #. type: textblock
22545 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243 ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784 ../src/guestfs-actions.pod:7807
22546 msgid ""
22547 "This long-running command can generate progress notification messages so "
22548 "that the caller can display a progress bar or indicator.  To receive these "
22549 "messages, the caller must register a progress event callback.  See "
22550 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478 ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
22555 msgid "(Added in 1.0.87)"
22556 msgstr ""
22557
22558 #. type: =head2
22559 #: ../src/guestfs-actions.pod:1195
22560 msgid "guestfs_cp"
22561 msgstr ""
22562
22563 #. type: verbatim
22564 #: ../src/guestfs-actions.pod:1197
22565 #, no-wrap
22566 msgid ""
22567 " int\n"
22568 " guestfs_cp (guestfs_h *g,\n"
22569 "             const char *src,\n"
22570 "             const char *dest);\n"
22571 "\n"
22572 msgstr ""
22573
22574 #. type: textblock
22575 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221 ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:5596
22576 msgid "(Added in 1.0.18)"
22577 msgstr ""
22578
22579 #. type: =head2
22580 #: ../src/guestfs-actions.pod:1209
22581 msgid "guestfs_cp_a"
22582 msgstr ""
22583
22584 #. type: verbatim
22585 #: ../src/guestfs-actions.pod:1211
22586 #, no-wrap
22587 msgid ""
22588 " int\n"
22589 " guestfs_cp_a (guestfs_h *g,\n"
22590 "               const char *src,\n"
22591 "               const char *dest);\n"
22592 "\n"
22593 msgstr ""
22594
22595 #. type: =head2
22596 #: ../src/guestfs-actions.pod:1223
22597 msgid "guestfs_dd"
22598 msgstr ""
22599
22600 #. type: verbatim
22601 #: ../src/guestfs-actions.pod:1225
22602 #, no-wrap
22603 msgid ""
22604 " int\n"
22605 " guestfs_dd (guestfs_h *g,\n"
22606 "             const char *src,\n"
22607 "             const char *dest);\n"
22608 "\n"
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../src/guestfs-actions.pod:1235
22613 msgid ""
22614 "If the destination is a device, it must be as large or larger than the "
22615 "source file or device, otherwise the copy will fail.  This command cannot do "
22616 "partial copies (see C<guestfs_copy_size>)."
22617 msgstr ""
22618
22619 #. type: =head2
22620 #: ../src/guestfs-actions.pod:1243
22621 msgid "guestfs_df"
22622 msgstr ""
22623
22624 #. type: verbatim
22625 #: ../src/guestfs-actions.pod:1245
22626 #, no-wrap
22627 msgid ""
22628 " char *\n"
22629 " guestfs_df (guestfs_h *g);\n"
22630 "\n"
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
22635 msgid ""
22636 "This command is mostly useful for interactive sessions.  It is I<not> "
22637 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
22638 "from programs."
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274 ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458 ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637 ../src/guestfs-actions.pod:7650
22643 msgid "(Added in 1.0.54)"
22644 msgstr ""
22645
22646 #. type: =head2
22647 #: ../src/guestfs-actions.pod:1259
22648 msgid "guestfs_df_h"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../src/guestfs-actions.pod:1261
22653 #, no-wrap
22654 msgid ""
22655 " char *\n"
22656 " guestfs_df_h (guestfs_h *g);\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: =head2
22661 #: ../src/guestfs-actions.pod:1276
22662 msgid "guestfs_dmesg"
22663 msgstr ""
22664
22665 #. type: verbatim
22666 #: ../src/guestfs-actions.pod:1278
22667 #, no-wrap
22668 msgid ""
22669 " char *\n"
22670 " guestfs_dmesg (guestfs_h *g);\n"
22671 "\n"
22672 msgstr ""
22673
22674 #. type: textblock
22675 #: ../src/guestfs-actions.pod:1285
22676 msgid ""
22677 "Another way to get the same information is to enable verbose messages with "
22678 "C<guestfs_set_verbose> or by setting the environment variable "
22679 "C<LIBGUESTFS_DEBUG=1> before running the program."
22680 msgstr ""
22681
22682 #. type: =head2
22683 #: ../src/guestfs-actions.pod:1295
22684 msgid "guestfs_download"
22685 msgstr ""
22686
22687 #. type: verbatim
22688 #: ../src/guestfs-actions.pod:1297
22689 #, no-wrap
22690 msgid ""
22691 " int\n"
22692 " guestfs_download (guestfs_h *g,\n"
22693 "                   const char *remotefilename,\n"
22694 "                   const char *filename);\n"
22695 "\n"
22696 msgstr ""
22697
22698 #. type: textblock
22699 #: ../src/guestfs-actions.pod:1307
22700 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
22701 msgstr ""
22702
22703 #. type: =head2
22704 #: ../src/guestfs-actions.pod:1318
22705 msgid "guestfs_download_offset"
22706 msgstr ""
22707
22708 #. type: verbatim
22709 #: ../src/guestfs-actions.pod:1320
22710 #, no-wrap
22711 msgid ""
22712 " int\n"
22713 " guestfs_download_offset (guestfs_h *g,\n"
22714 "                          const char *remotefilename,\n"
22715 "                          const char *filename,\n"
22716 "                          int64_t offset,\n"
22717 "                          int64_t size);\n"
22718 "\n"
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../src/guestfs-actions.pod:1333
22723 msgid ""
22724 "Note that there is no limit on the amount of data that can be downloaded "
22725 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
22726 "full amount unless an error occurs."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../src/guestfs-actions.pod:1338
22731 msgid "See also C<guestfs_download>, C<guestfs_pread>."
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
22736 msgid "(Added in 1.5.17)"
22737 msgstr ""
22738
22739 #. type: =head2
22740 #: ../src/guestfs-actions.pod:1349
22741 msgid "guestfs_drop_caches"
22742 msgstr ""
22743
22744 #. type: verbatim
22745 #: ../src/guestfs-actions.pod:1351
22746 #, no-wrap
22747 msgid ""
22748 " int\n"
22749 " guestfs_drop_caches (guestfs_h *g,\n"
22750 "                      int whattodrop);\n"
22751 "\n"
22752 msgstr ""
22753
22754 #. type: =head2
22755 #: ../src/guestfs-actions.pod:1369
22756 msgid "guestfs_du"
22757 msgstr ""
22758
22759 #. type: verbatim
22760 #: ../src/guestfs-actions.pod:1371
22761 #, no-wrap
22762 msgid ""
22763 " int64_t\n"
22764 " guestfs_du (guestfs_h *g,\n"
22765 "             const char *path);\n"
22766 "\n"
22767 msgstr ""
22768
22769 #. type: =head2
22770 #: ../src/guestfs-actions.pod:1394
22771 msgid "guestfs_e2fsck_f"
22772 msgstr ""
22773
22774 #. type: verbatim
22775 #: ../src/guestfs-actions.pod:1396
22776 #, no-wrap
22777 msgid ""
22778 " int\n"
22779 " guestfs_e2fsck_f (guestfs_h *g,\n"
22780 "                   const char *device);\n"
22781 "\n"
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../src/guestfs-actions.pod:1404
22786 msgid ""
22787 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
22788 "Normally you should use C<guestfs_fsck>."
22789 msgstr ""
22790
22791 #. type: textblock
22792 #: ../src/guestfs-actions.pod:1409
22793 msgid "(Added in 1.0.29)"
22794 msgstr ""
22795
22796 #. type: =head2
22797 #: ../src/guestfs-actions.pod:1411
22798 msgid "guestfs_echo_daemon"
22799 msgstr ""
22800
22801 #. type: verbatim
22802 #: ../src/guestfs-actions.pod:1413
22803 #, no-wrap
22804 msgid ""
22805 " char *\n"
22806 " guestfs_echo_daemon (guestfs_h *g,\n"
22807 "                      char *const *words);\n"
22808 "\n"
22809 msgstr ""
22810
22811 #. type: textblock
22812 #: ../src/guestfs-actions.pod:1422
22813 msgid "See also C<guestfs_ping_daemon>."
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:6453
22818 msgid "(Added in 1.0.69)"
22819 msgstr ""
22820
22821 #. type: =head2
22822 #: ../src/guestfs-actions.pod:1429
22823 msgid "guestfs_egrep"
22824 msgstr ""
22825
22826 #. type: verbatim
22827 #: ../src/guestfs-actions.pod:1431
22828 #, no-wrap
22829 msgid ""
22830 " char **\n"
22831 " guestfs_egrep (guestfs_h *g,\n"
22832 "                const char *regex,\n"
22833 "                const char *path);\n"
22834 "\n"
22835 msgstr ""
22836
22837 #. type: textblock
22838 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465 ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568 ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861 ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887 ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922 ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
22839 msgid "(Added in 1.0.66)"
22840 msgstr ""
22841
22842 #. type: =head2
22843 #: ../src/guestfs-actions.pod:1448
22844 msgid "guestfs_egrepi"
22845 msgstr ""
22846
22847 #. type: verbatim
22848 #: ../src/guestfs-actions.pod:1450
22849 #, no-wrap
22850 msgid ""
22851 " char **\n"
22852 " guestfs_egrepi (guestfs_h *g,\n"
22853 "                 const char *regex,\n"
22854 "                 const char *path);\n"
22855 "\n"
22856 msgstr ""
22857
22858 #. type: =head2
22859 #: ../src/guestfs-actions.pod:1467
22860 msgid "guestfs_equal"
22861 msgstr ""
22862
22863 #. type: verbatim
22864 #: ../src/guestfs-actions.pod:1469
22865 #, no-wrap
22866 msgid ""
22867 " int\n"
22868 " guestfs_equal (guestfs_h *g,\n"
22869 "                const char *file1,\n"
22870 "                const char *file2);\n"
22871 "\n"
22872 msgstr ""
22873
22874 #. type: =head2
22875 #: ../src/guestfs-actions.pod:1483
22876 msgid "guestfs_exists"
22877 msgstr ""
22878
22879 #. type: verbatim
22880 #: ../src/guestfs-actions.pod:1485
22881 #, no-wrap
22882 msgid ""
22883 " int\n"
22884 " guestfs_exists (guestfs_h *g,\n"
22885 "                 const char *path);\n"
22886 "\n"
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../src/guestfs-actions.pod:1492
22891 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
22892 msgstr ""
22893
22894 #. type: =head2
22895 #: ../src/guestfs-actions.pod:1498
22896 msgid "guestfs_fallocate"
22897 msgstr ""
22898
22899 #. type: verbatim
22900 #: ../src/guestfs-actions.pod:1500
22901 #, no-wrap
22902 msgid ""
22903 " int\n"
22904 " guestfs_fallocate (guestfs_h *g,\n"
22905 "                    const char *path,\n"
22906 "                    int len);\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../src/guestfs-actions.pod:1515
22912 msgid ""
22913 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
22914 "call instead."
22915 msgstr ""
22916
22917 #. type: =head2
22918 #: ../src/guestfs-actions.pod:1524
22919 msgid "guestfs_fallocate64"
22920 msgstr ""
22921
22922 #. type: verbatim
22923 #: ../src/guestfs-actions.pod:1526
22924 #, no-wrap
22925 msgid ""
22926 " int\n"
22927 " guestfs_fallocate64 (guestfs_h *g,\n"
22928 "                      const char *path,\n"
22929 "                      int64_t len);\n"
22930 "\n"
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../src/guestfs-actions.pod:1535
22935 msgid ""
22936 "Note that this call allocates disk blocks for the file.  To create a sparse "
22937 "file use C<guestfs_truncate_size> instead."
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../src/guestfs-actions.pod:1538
22942 msgid ""
22943 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
22944 "oversight it only allowed 30 bit lengths to be specified, effectively "
22945 "limiting the maximum size of files created through that call to 1GB."
22946 msgstr ""
22947
22948 #. type: textblock
22949 #: ../src/guestfs-actions.pod:1549
22950 msgid "(Added in 1.3.17)"
22951 msgstr ""
22952
22953 #. type: =head2
22954 #: ../src/guestfs-actions.pod:1551
22955 msgid "guestfs_fgrep"
22956 msgstr ""
22957
22958 #. type: verbatim
22959 #: ../src/guestfs-actions.pod:1553
22960 #, no-wrap
22961 msgid ""
22962 " char **\n"
22963 " guestfs_fgrep (guestfs_h *g,\n"
22964 "                const char *pattern,\n"
22965 "                const char *path);\n"
22966 "\n"
22967 msgstr ""
22968
22969 #. type: =head2
22970 #: ../src/guestfs-actions.pod:1570
22971 msgid "guestfs_fgrepi"
22972 msgstr ""
22973
22974 #. type: verbatim
22975 #: ../src/guestfs-actions.pod:1572
22976 #, no-wrap
22977 msgid ""
22978 " char **\n"
22979 " guestfs_fgrepi (guestfs_h *g,\n"
22980 "                 const char *pattern,\n"
22981 "                 const char *path);\n"
22982 "\n"
22983 msgstr ""
22984
22985 #. type: =head2
22986 #: ../src/guestfs-actions.pod:1589
22987 msgid "guestfs_file"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../src/guestfs-actions.pod:1591
22992 #, no-wrap
22993 msgid ""
22994 " char *\n"
22995 " guestfs_file (guestfs_h *g,\n"
22996 "               const char *path);\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../src/guestfs-actions.pod:1609
23002 msgid ""
23003 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23004 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23005 msgstr ""
23006
23007 #. type: =head2
23008 #: ../src/guestfs-actions.pod:1617
23009 msgid "guestfs_file_architecture"
23010 msgstr ""
23011
23012 #. type: verbatim
23013 #: ../src/guestfs-actions.pod:1619
23014 #, no-wrap
23015 msgid ""
23016 " char *\n"
23017 " guestfs_file_architecture (guestfs_h *g,\n"
23018 "                            const char *filename);\n"
23019 "\n"
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764 ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969 ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3546
23024 msgid "(Added in 1.5.3)"
23025 msgstr ""
23026
23027 #. type: =head2
23028 #: ../src/guestfs-actions.pod:1729
23029 msgid "guestfs_filesize"
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../src/guestfs-actions.pod:1731
23034 #, no-wrap
23035 msgid ""
23036 " int64_t\n"
23037 " guestfs_filesize (guestfs_h *g,\n"
23038 "                   const char *file);\n"
23039 "\n"
23040 msgstr ""
23041
23042 #. type: textblock
23043 #: ../src/guestfs-actions.pod:1737
23044 msgid ""
23045 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23046 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23047 "devices, use C<guestfs_blockdev_getsize64>."
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../src/guestfs-actions.pod:1743
23052 msgid "(Added in 1.0.82)"
23053 msgstr ""
23054
23055 #. type: =head2
23056 #: ../src/guestfs-actions.pod:1745
23057 msgid "guestfs_fill"
23058 msgstr ""
23059
23060 #. type: verbatim
23061 #: ../src/guestfs-actions.pod:1747
23062 #, no-wrap
23063 msgid ""
23064 " int\n"
23065 " guestfs_fill (guestfs_h *g,\n"
23066 "               int c,\n"
23067 "               int len,\n"
23068 "               const char *path);\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../src/guestfs-actions.pod:1757
23074 msgid ""
23075 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23076 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23077 "bytes use C<guestfs_fill_pattern>."
23078 msgstr ""
23079
23080 #. type: textblock
23081 #: ../src/guestfs-actions.pod:1769
23082 msgid "(Added in 1.0.79)"
23083 msgstr ""
23084
23085 #. type: =head2
23086 #: ../src/guestfs-actions.pod:1771
23087 msgid "guestfs_fill_pattern"
23088 msgstr ""
23089
23090 #. type: verbatim
23091 #: ../src/guestfs-actions.pod:1773
23092 #, no-wrap
23093 msgid ""
23094 " int\n"
23095 " guestfs_fill_pattern (guestfs_h *g,\n"
23096 "                       const char *pattern,\n"
23097 "                       int len,\n"
23098 "                       const char *path);\n"
23099 "\n"
23100 msgstr ""
23101
23102 #. type: textblock
23103 #: ../src/guestfs-actions.pod:1779
23104 msgid ""
23105 "This function is like C<guestfs_fill> except that it creates a new file of "
23106 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23107 "pattern is truncated if necessary to ensure the length of the file is "
23108 "exactly C<len> bytes."
23109 msgstr ""
23110
23111 #. type: textblock
23112 #: ../src/guestfs-actions.pod:1791
23113 msgid "(Added in 1.3.12)"
23114 msgstr ""
23115
23116 #. type: =head2
23117 #: ../src/guestfs-actions.pod:1793
23118 msgid "guestfs_find"
23119 msgstr ""
23120
23121 #. type: verbatim
23122 #: ../src/guestfs-actions.pod:1795
23123 #, no-wrap
23124 msgid ""
23125 " char **\n"
23126 " guestfs_find (guestfs_h *g,\n"
23127 "               const char *directory);\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: textblock
23132 #: ../src/guestfs-actions.pod:1811
23133 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../src/guestfs-actions.pod:1824
23138 msgid "See also C<guestfs_find0>."
23139 msgstr ""
23140
23141 #. type: textblock
23142 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:6014
23143 msgid "(Added in 1.0.27)"
23144 msgstr ""
23145
23146 #. type: =head2
23147 #: ../src/guestfs-actions.pod:1835
23148 msgid "guestfs_find0"
23149 msgstr ""
23150
23151 #. type: verbatim
23152 #: ../src/guestfs-actions.pod:1837
23153 #, no-wrap
23154 msgid ""
23155 " int\n"
23156 " guestfs_find0 (guestfs_h *g,\n"
23157 "                const char *directory,\n"
23158 "                const char *files);\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../src/guestfs-actions.pod:1846
23164 msgid ""
23165 "This command works the same way as C<guestfs_find> with the following "
23166 "exceptions:"
23167 msgstr ""
23168
23169 #. type: textblock
23170 #: ../src/guestfs-actions.pod:1873
23171 msgid "(Added in 1.0.74)"
23172 msgstr ""
23173
23174 #. type: =head2
23175 #: ../src/guestfs-actions.pod:1875
23176 msgid "guestfs_findfs_label"
23177 msgstr ""
23178
23179 #. type: verbatim
23180 #: ../src/guestfs-actions.pod:1877
23181 #, no-wrap
23182 msgid ""
23183 " char *\n"
23184 " guestfs_findfs_label (guestfs_h *g,\n"
23185 "                       const char *label);\n"
23186 "\n"
23187 msgstr ""
23188
23189 #. type: textblock
23190 #: ../src/guestfs-actions.pod:1885
23191 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23192 msgstr ""
23193
23194 #. type: =head2
23195 #: ../src/guestfs-actions.pod:1892
23196 msgid "guestfs_findfs_uuid"
23197 msgstr ""
23198
23199 #. type: verbatim
23200 #: ../src/guestfs-actions.pod:1894
23201 #, no-wrap
23202 msgid ""
23203 " char *\n"
23204 " guestfs_findfs_uuid (guestfs_h *g,\n"
23205 "                      const char *uuid);\n"
23206 "\n"
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../src/guestfs-actions.pod:1902
23211 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23212 msgstr ""
23213
23214 #. type: =head2
23215 #: ../src/guestfs-actions.pod:1909
23216 msgid "guestfs_fsck"
23217 msgstr ""
23218
23219 #. type: verbatim
23220 #: ../src/guestfs-actions.pod:1911
23221 #, no-wrap
23222 msgid ""
23223 " int\n"
23224 " guestfs_fsck (guestfs_h *g,\n"
23225 "               const char *fstype,\n"
23226 "               const char *device);\n"
23227 "\n"
23228 msgstr ""
23229
23230 #. type: textblock
23231 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
23232 msgid "(Added in 1.0.16)"
23233 msgstr ""
23234
23235 #. type: =head2
23236 #: ../src/guestfs-actions.pod:1948
23237 msgid "guestfs_get_append"
23238 msgstr ""
23239
23240 #. type: verbatim
23241 #: ../src/guestfs-actions.pod:1950
23242 #, no-wrap
23243 msgid ""
23244 " const char *\n"
23245 " guestfs_get_append (guestfs_h *g);\n"
23246 "\n"
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../src/guestfs-actions.pod:1958
23251 msgid ""
23252 "This function returns a string which may be NULL.  There is no way to return "
23253 "an error from this function.  The string is owned by the guest handle and "
23254 "must I<not> be freed."
23255 msgstr ""
23256
23257 #. type: textblock
23258 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616 ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
23259 msgid "(Added in 1.0.26)"
23260 msgstr ""
23261
23262 #. type: =head2
23263 #: ../src/guestfs-actions.pod:1964
23264 msgid "guestfs_get_attach_method"
23265 msgstr ""
23266
23267 #. type: verbatim
23268 #: ../src/guestfs-actions.pod:1966
23269 #, no-wrap
23270 msgid ""
23271 " char *\n"
23272 " guestfs_get_attach_method (guestfs_h *g);\n"
23273 "\n"
23274 msgstr ""
23275
23276 #. type: textblock
23277 #: ../src/guestfs-actions.pod:1969
23278 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23279 msgstr ""
23280
23281 #. type: textblock
23282 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
23283 msgid "(Added in 1.9.8)"
23284 msgstr ""
23285
23286 #. type: =head2
23287 #: ../src/guestfs-actions.pod:1976
23288 msgid "guestfs_get_autosync"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../src/guestfs-actions.pod:1978
23293 #, no-wrap
23294 msgid ""
23295 " int\n"
23296 " guestfs_get_autosync (guestfs_h *g);\n"
23297 "\n"
23298 msgstr ""
23299
23300 #. type: =head2
23301 #: ../src/guestfs-actions.pod:1987
23302 msgid "guestfs_get_direct"
23303 msgstr ""
23304
23305 #. type: verbatim
23306 #: ../src/guestfs-actions.pod:1989
23307 #, no-wrap
23308 msgid ""
23309 " int\n"
23310 " guestfs_get_direct (guestfs_h *g);\n"
23311 "\n"
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
23316 msgid "(Added in 1.0.72)"
23317 msgstr ""
23318
23319 #. type: =head2
23320 #: ../src/guestfs-actions.pod:1998
23321 msgid "guestfs_get_e2label"
23322 msgstr ""
23323
23324 #. type: verbatim
23325 #: ../src/guestfs-actions.pod:2000
23326 #, no-wrap
23327 msgid ""
23328 " char *\n"
23329 " guestfs_get_e2label (guestfs_h *g,\n"
23330 "                      const char *device);\n"
23331 "\n"
23332 msgstr ""
23333
23334 #. type: textblock
23335 #: ../src/guestfs-actions.pod:2010
23336 msgid ""
23337 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
23338 "call instead."
23339 msgstr ""
23340
23341 #. type: textblock
23342 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
23343 msgid "(Added in 1.0.15)"
23344 msgstr ""
23345
23346 #. type: =head2
23347 #: ../src/guestfs-actions.pod:2019
23348 msgid "guestfs_get_e2uuid"
23349 msgstr ""
23350
23351 #. type: verbatim
23352 #: ../src/guestfs-actions.pod:2021
23353 #, no-wrap
23354 msgid ""
23355 " char *\n"
23356 " guestfs_get_e2uuid (guestfs_h *g,\n"
23357 "                     const char *device);\n"
23358 "\n"
23359 msgstr ""
23360
23361 #. type: textblock
23362 #: ../src/guestfs-actions.pod:2031
23363 msgid ""
23364 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
23365 "instead."
23366 msgstr ""
23367
23368 #. type: =head2
23369 #: ../src/guestfs-actions.pod:2040
23370 msgid "guestfs_get_memsize"
23371 msgstr ""
23372
23373 #. type: verbatim
23374 #: ../src/guestfs-actions.pod:2042
23375 #, no-wrap
23376 msgid ""
23377 " int\n"
23378 " guestfs_get_memsize (guestfs_h *g);\n"
23379 "\n"
23380 msgstr ""
23381
23382 #. type: textblock
23383 #: ../src/guestfs-actions.pod:2048
23384 msgid ""
23385 "If C<guestfs_set_memsize> was not called on this handle, and if "
23386 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23387 "value for memsize."
23388 msgstr ""
23389
23390 #. type: textblock
23391 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823 ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303 ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
23392 msgid "(Added in 1.0.55)"
23393 msgstr ""
23394
23395 #. type: =head2
23396 #: ../src/guestfs-actions.pod:2059
23397 msgid "guestfs_get_network"
23398 msgstr ""
23399
23400 #. type: verbatim
23401 #: ../src/guestfs-actions.pod:2061
23402 #, no-wrap
23403 msgid ""
23404 " int\n"
23405 " guestfs_get_network (guestfs_h *g);\n"
23406 "\n"
23407 msgstr ""
23408
23409 #. type: textblock
23410 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
23411 msgid "(Added in 1.5.4)"
23412 msgstr ""
23413
23414 #. type: =head2
23415 #: ../src/guestfs-actions.pod:2070
23416 msgid "guestfs_get_path"
23417 msgstr ""
23418
23419 #. type: verbatim
23420 #: ../src/guestfs-actions.pod:2072
23421 #, no-wrap
23422 msgid ""
23423 " const char *\n"
23424 " guestfs_get_path (guestfs_h *g);\n"
23425 "\n"
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
23430 msgid ""
23431 "This function returns a string, or NULL on error.  The string is owned by "
23432 "the guest handle and must I<not> be freed."
23433 msgstr ""
23434
23435 #. type: =head2
23436 #: ../src/guestfs-actions.pod:2085
23437 msgid "guestfs_get_pgroup"
23438 msgstr ""
23439
23440 #. type: verbatim
23441 #: ../src/guestfs-actions.pod:2087
23442 #, no-wrap
23443 msgid ""
23444 " int\n"
23445 " guestfs_get_pgroup (guestfs_h *g);\n"
23446 "\n"
23447 msgstr ""
23448
23449 #. type: textblock
23450 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:7690
23451 msgid "(Added in 1.11.18)"
23452 msgstr ""
23453
23454 #. type: =head2
23455 #: ../src/guestfs-actions.pod:2096
23456 msgid "guestfs_get_pid"
23457 msgstr ""
23458
23459 #. type: verbatim
23460 #: ../src/guestfs-actions.pod:2098
23461 #, no-wrap
23462 msgid ""
23463 " int\n"
23464 " guestfs_get_pid (guestfs_h *g);\n"
23465 "\n"
23466 msgstr ""
23467
23468 #. type: textblock
23469 #: ../src/guestfs-actions.pod:2108
23470 msgid "(Added in 1.0.56)"
23471 msgstr ""
23472
23473 #. type: =head2
23474 #: ../src/guestfs-actions.pod:2110
23475 msgid "guestfs_get_qemu"
23476 msgstr ""
23477
23478 #. type: verbatim
23479 #: ../src/guestfs-actions.pod:2112
23480 #, no-wrap
23481 msgid ""
23482 " const char *\n"
23483 " guestfs_get_qemu (guestfs_h *g);\n"
23484 "\n"
23485 msgstr ""
23486
23487 #. type: textblock
23488 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
23489 msgid "(Added in 1.0.6)"
23490 msgstr ""
23491
23492 #. type: =head2
23493 #: ../src/guestfs-actions.pod:2125
23494 msgid "guestfs_get_recovery_proc"
23495 msgstr ""
23496
23497 #. type: verbatim
23498 #: ../src/guestfs-actions.pod:2127
23499 #, no-wrap
23500 msgid ""
23501 " int\n"
23502 " guestfs_get_recovery_proc (guestfs_h *g);\n"
23503 "\n"
23504 msgstr ""
23505
23506 #. type: textblock
23507 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7313
23508 msgid "(Added in 1.0.77)"
23509 msgstr ""
23510
23511 #. type: =head2
23512 #: ../src/guestfs-actions.pod:2136
23513 msgid "guestfs_get_selinux"
23514 msgstr ""
23515
23516 #. type: verbatim
23517 #: ../src/guestfs-actions.pod:2138
23518 #, no-wrap
23519 msgid ""
23520 " int\n"
23521 " guestfs_get_selinux (guestfs_h *g);\n"
23522 "\n"
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../src/guestfs-actions.pod:2141
23527 msgid ""
23528 "This returns the current setting of the selinux flag which is passed to the "
23529 "appliance at boot time.  See C<guestfs_set_selinux>."
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
23534 msgid "(Added in 1.0.67)"
23535 msgstr ""
23536
23537 #. type: =head2
23538 #: ../src/guestfs-actions.pod:2151
23539 msgid "guestfs_get_state"
23540 msgstr ""
23541
23542 #. type: verbatim
23543 #: ../src/guestfs-actions.pod:2153
23544 #, no-wrap
23545 msgid ""
23546 " int\n"
23547 " guestfs_get_state (guestfs_h *g);\n"
23548 "\n"
23549 msgstr ""
23550
23551 #. type: =head2
23552 #: ../src/guestfs-actions.pod:2165
23553 msgid "guestfs_get_trace"
23554 msgstr ""
23555
23556 #. type: verbatim
23557 #: ../src/guestfs-actions.pod:2167
23558 #, no-wrap
23559 msgid ""
23560 " int\n"
23561 " guestfs_get_trace (guestfs_h *g);\n"
23562 "\n"
23563 msgstr ""
23564
23565 #. type: =head2
23566 #: ../src/guestfs-actions.pod:2176
23567 msgid "guestfs_get_umask"
23568 msgstr ""
23569
23570 #. type: verbatim
23571 #: ../src/guestfs-actions.pod:2178
23572 #, no-wrap
23573 msgid ""
23574 " int\n"
23575 " guestfs_get_umask (guestfs_h *g);\n"
23576 "\n"
23577 msgstr ""
23578
23579 #. type: textblock
23580 #: ../src/guestfs-actions.pod:2181
23581 msgid ""
23582 "Return the current umask.  By default the umask is C<022> unless it has been "
23583 "set by calling C<guestfs_umask>."
23584 msgstr ""
23585
23586 #. type: =head2
23587 #: ../src/guestfs-actions.pod:2188
23588 msgid "guestfs_get_verbose"
23589 msgstr ""
23590
23591 #. type: verbatim
23592 #: ../src/guestfs-actions.pod:2190
23593 #, no-wrap
23594 msgid ""
23595 " int\n"
23596 " guestfs_get_verbose (guestfs_h *g);\n"
23597 "\n"
23598 msgstr ""
23599
23600 #. type: =head2
23601 #: ../src/guestfs-actions.pod:2199
23602 msgid "guestfs_getcon"
23603 msgstr ""
23604
23605 #. type: verbatim
23606 #: ../src/guestfs-actions.pod:2201
23607 #, no-wrap
23608 msgid ""
23609 " char *\n"
23610 " guestfs_getcon (guestfs_h *g);\n"
23611 "\n"
23612 msgstr ""
23613
23614 #. type: textblock
23615 #: ../src/guestfs-actions.pod:2206
23616 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
23617 msgstr ""
23618
23619 #. type: =head2
23620 #: ../src/guestfs-actions.pod:2214
23621 msgid "guestfs_getxattr"
23622 msgstr ""
23623
23624 #. type: verbatim
23625 #: ../src/guestfs-actions.pod:2216
23626 #, no-wrap
23627 msgid ""
23628 " char *\n"
23629 " guestfs_getxattr (guestfs_h *g,\n"
23630 "                   const char *path,\n"
23631 "                   const char *name,\n"
23632 "                   size_t *size_r);\n"
23633 "\n"
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../src/guestfs-actions.pod:2222
23638 msgid ""
23639 "Get a single extended attribute from file C<path> named C<name>.  This call "
23640 "follows symlinks.  If you want to lookup an extended attribute for the "
23641 "symlink itself, use C<guestfs_lgetxattr>."
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
23646 msgid ""
23647 "Normally it is better to get all extended attributes from a file in one go "
23648 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
23649 "implementations are buggy and do not provide a way to list out attributes.  "
23650 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
23651 "extended attributes you want in advance and call this function."
23652 msgstr ""
23653
23654 #. type: textblock
23655 #: ../src/guestfs-actions.pod:2236
23656 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
23657 msgstr ""
23658
23659 #. type: textblock
23660 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5822
23661 msgid ""
23662 "This function returns a buffer, or NULL on error.  The size of the returned "
23663 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
23664 "after use>."
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
23669 msgid "(Added in 1.7.24)"
23670 msgstr ""
23671
23672 #. type: =head2
23673 #: ../src/guestfs-actions.pod:2244
23674 msgid "guestfs_getxattrs"
23675 msgstr ""
23676
23677 #. type: verbatim
23678 #: ../src/guestfs-actions.pod:2246
23679 #, no-wrap
23680 msgid ""
23681 " struct guestfs_xattr_list *\n"
23682 " guestfs_getxattrs (guestfs_h *g,\n"
23683 "                    const char *path);\n"
23684 "\n"
23685 msgstr ""
23686
23687 #. type: textblock
23688 #: ../src/guestfs-actions.pod:2256
23689 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
23690 msgstr ""
23691
23692 #. type: textblock
23693 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710 ../src/guestfs-actions.pod:4398
23694 msgid ""
23695 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
23696 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506 ../src/guestfs-actions.pod:7901
23701 msgid "(Added in 1.0.59)"
23702 msgstr ""
23703
23704 #. type: =head2
23705 #: ../src/guestfs-actions.pod:2264
23706 msgid "guestfs_glob_expand"
23707 msgstr ""
23708
23709 #. type: verbatim
23710 #: ../src/guestfs-actions.pod:2266
23711 #, no-wrap
23712 msgid ""
23713 " char **\n"
23714 " guestfs_glob_expand (guestfs_h *g,\n"
23715 "                      const char *pattern);\n"
23716 "\n"
23717 msgstr ""
23718
23719 #. type: textblock
23720 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6716
23721 msgid "(Added in 1.0.50)"
23722 msgstr ""
23723
23724 #. type: =head2
23725 #: ../src/guestfs-actions.pod:2287
23726 msgid "guestfs_grep"
23727 msgstr ""
23728
23729 #. type: verbatim
23730 #: ../src/guestfs-actions.pod:2289
23731 #, no-wrap
23732 msgid ""
23733 " char **\n"
23734 " guestfs_grep (guestfs_h *g,\n"
23735 "               const char *regex,\n"
23736 "               const char *path);\n"
23737 "\n"
23738 msgstr ""
23739
23740 #. type: =head2
23741 #: ../src/guestfs-actions.pod:2306
23742 msgid "guestfs_grepi"
23743 msgstr ""
23744
23745 #. type: verbatim
23746 #: ../src/guestfs-actions.pod:2308
23747 #, no-wrap
23748 msgid ""
23749 " char **\n"
23750 " guestfs_grepi (guestfs_h *g,\n"
23751 "                const char *regex,\n"
23752 "                const char *path);\n"
23753 "\n"
23754 msgstr ""
23755
23756 #. type: =head2
23757 #: ../src/guestfs-actions.pod:2325
23758 msgid "guestfs_grub_install"
23759 msgstr ""
23760
23761 #. type: verbatim
23762 #: ../src/guestfs-actions.pod:2327
23763 #, no-wrap
23764 msgid ""
23765 " int\n"
23766 " guestfs_grub_install (guestfs_h *g,\n"
23767 "                       const char *root,\n"
23768 "                       const char *device);\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../src/guestfs-actions.pod:2348
23774 msgid "(Added in 1.0.17)"
23775 msgstr ""
23776
23777 #. type: =head2
23778 #: ../src/guestfs-actions.pod:2350
23779 msgid "guestfs_head"
23780 msgstr ""
23781
23782 #. type: verbatim
23783 #: ../src/guestfs-actions.pod:2352
23784 #, no-wrap
23785 msgid ""
23786 " char **\n"
23787 " guestfs_head (guestfs_h *g,\n"
23788 "               const char *path);\n"
23789 "\n"
23790 msgstr ""
23791
23792 #. type: =head2
23793 #: ../src/guestfs-actions.pod:2368
23794 msgid "guestfs_head_n"
23795 msgstr ""
23796
23797 #. type: verbatim
23798 #: ../src/guestfs-actions.pod:2370
23799 #, no-wrap
23800 msgid ""
23801 " char **\n"
23802 " guestfs_head_n (guestfs_h *g,\n"
23803 "                 int nrlines,\n"
23804 "                 const char *path);\n"
23805 "\n"
23806 msgstr ""
23807
23808 #. type: =head2
23809 #: ../src/guestfs-actions.pod:2392
23810 msgid "guestfs_hexdump"
23811 msgstr ""
23812
23813 #. type: verbatim
23814 #: ../src/guestfs-actions.pod:2394
23815 #, no-wrap
23816 msgid ""
23817 " char *\n"
23818 " guestfs_hexdump (guestfs_h *g,\n"
23819 "                  const char *path);\n"
23820 "\n"
23821 msgstr ""
23822
23823 #. type: textblock
23824 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6835
23825 msgid "(Added in 1.0.22)"
23826 msgstr ""
23827
23828 #. type: =head2
23829 #: ../src/guestfs-actions.pod:2409
23830 msgid "guestfs_initrd_cat"
23831 msgstr ""
23832
23833 #. type: verbatim
23834 #: ../src/guestfs-actions.pod:2411
23835 #, no-wrap
23836 msgid ""
23837 " char *\n"
23838 " guestfs_initrd_cat (guestfs_h *g,\n"
23839 "                     const char *initrdpath,\n"
23840 "                     const char *filename,\n"
23841 "                     size_t *size_r);\n"
23842 "\n"
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../src/guestfs-actions.pod:2427
23847 msgid "See also C<guestfs_initrd_list>."
23848 msgstr ""
23849
23850 #. type: =head2
23851 #: ../src/guestfs-actions.pod:2438
23852 msgid "guestfs_initrd_list"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../src/guestfs-actions.pod:2440
23857 #, no-wrap
23858 msgid ""
23859 " char **\n"
23860 " guestfs_initrd_list (guestfs_h *g,\n"
23861 "                      const char *path);\n"
23862 "\n"
23863 msgstr ""
23864
23865 #. type: =head2
23866 #: ../src/guestfs-actions.pod:2460
23867 msgid "guestfs_inotify_add_watch"
23868 msgstr ""
23869
23870 #. type: verbatim
23871 #: ../src/guestfs-actions.pod:2462
23872 #, no-wrap
23873 msgid ""
23874 " int64_t\n"
23875 " guestfs_inotify_add_watch (guestfs_h *g,\n"
23876 "                            const char *path,\n"
23877 "                            int mask);\n"
23878 "\n"
23879 msgstr ""
23880
23881 #. type: =head2
23882 #: ../src/guestfs-actions.pod:2481
23883 msgid "guestfs_inotify_close"
23884 msgstr ""
23885
23886 #. type: verbatim
23887 #: ../src/guestfs-actions.pod:2483
23888 #, no-wrap
23889 msgid ""
23890 " int\n"
23891 " guestfs_inotify_close (guestfs_h *g);\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: =head2
23896 #: ../src/guestfs-actions.pod:2494
23897 msgid "guestfs_inotify_files"
23898 msgstr ""
23899
23900 #. type: verbatim
23901 #: ../src/guestfs-actions.pod:2496
23902 #, no-wrap
23903 msgid ""
23904 " char **\n"
23905 " guestfs_inotify_files (guestfs_h *g);\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../src/guestfs-actions.pod:2499
23911 msgid ""
23912 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
23913 "returns a list of pathnames of objects that were touched.  The returned "
23914 "pathnames are sorted and deduplicated."
23915 msgstr ""
23916
23917 #. type: =head2
23918 #: ../src/guestfs-actions.pod:2509
23919 msgid "guestfs_inotify_init"
23920 msgstr ""
23921
23922 #. type: verbatim
23923 #: ../src/guestfs-actions.pod:2511
23924 #, no-wrap
23925 msgid ""
23926 " int\n"
23927 " guestfs_inotify_init (guestfs_h *g,\n"
23928 "                       int maxevents);\n"
23929 "\n"
23930 msgstr ""
23931
23932 #. type: textblock
23933 #: ../src/guestfs-actions.pod:2519
23934 msgid ""
23935 "C<maxevents> is the maximum number of events which will be queued up between "
23936 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
23937 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
23938 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
23939 "throws away events, but records the fact that it threw them away by setting "
23940 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
23941 "C<guestfs_inotify_read>)."
23942 msgstr ""
23943
23944 #. type: textblock
23945 #: ../src/guestfs-actions.pod:2529
23946 msgid ""
23947 "Before any events are generated, you have to add some watches to the "
23948 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
23949 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
23950 msgstr ""
23951
23952 #. type: textblock
23953 #: ../src/guestfs-actions.pod:2535
23954 msgid ""
23955 "Queued up events should be read periodically by calling "
23956 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
23957 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
23958 "often enough then you risk the internal queue overflowing."
23959 msgstr ""
23960
23961 #. type: textblock
23962 #: ../src/guestfs-actions.pod:2542
23963 msgid ""
23964 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
23965 "This also removes any watches automatically."
23966 msgstr ""
23967
23968 #. type: =head2
23969 #: ../src/guestfs-actions.pod:2555
23970 msgid "guestfs_inotify_read"
23971 msgstr ""
23972
23973 #. type: verbatim
23974 #: ../src/guestfs-actions.pod:2557
23975 #, no-wrap
23976 msgid ""
23977 " struct guestfs_inotify_event_list *\n"
23978 " guestfs_inotify_read (guestfs_h *g);\n"
23979 "\n"
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../src/guestfs-actions.pod:2571
23984 msgid ""
23985 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
23986 "there was an error.  I<The caller must call "
23987 "C<guestfs_free_inotify_event_list> after use>."
23988 msgstr ""
23989
23990 #. type: =head2
23991 #: ../src/guestfs-actions.pod:2577
23992 msgid "guestfs_inotify_rm_watch"
23993 msgstr ""
23994
23995 #. type: verbatim
23996 #: ../src/guestfs-actions.pod:2579
23997 #, no-wrap
23998 msgid ""
23999 " int\n"
24000 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24001 "                           int wd);\n"
24002 "\n"
24003 msgstr ""
24004
24005 #. type: textblock
24006 #: ../src/guestfs-actions.pod:2583
24007 msgid ""
24008 "Remove a previously defined inotify watch.  See "
24009 "C<guestfs_inotify_add_watch>."
24010 msgstr ""
24011
24012 #. type: =head2
24013 #: ../src/guestfs-actions.pod:2590
24014 msgid "guestfs_inspect_get_arch"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../src/guestfs-actions.pod:2592
24019 #, no-wrap
24020 msgid ""
24021 " char *\n"
24022 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24023 "                           const char *root);\n"
24024 "\n"
24025 msgstr ""
24026
24027 #. type: textblock
24028 #: ../src/guestfs-actions.pod:2596
24029 msgid ""
24030 "This returns the architecture of the inspected operating system.  The "
24031 "possible return values are listed under C<guestfs_file_architecture>."
24032 msgstr ""
24033
24034 #. type: =head2
24035 #: ../src/guestfs-actions.pod:2610
24036 msgid "guestfs_inspect_get_distro"
24037 msgstr ""
24038
24039 #. type: verbatim
24040 #: ../src/guestfs-actions.pod:2612
24041 #, no-wrap
24042 msgid ""
24043 " char *\n"
24044 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24045 "                             const char *root);\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: =head2
24050 #: ../src/guestfs-actions.pod:2700
24051 msgid "guestfs_inspect_get_drive_mappings"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../src/guestfs-actions.pod:2702
24056 #, no-wrap
24057 msgid ""
24058 " char **\n"
24059 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24060 "                                     const char *root);\n"
24061 "\n"
24062 msgstr ""
24063
24064 #. type: textblock
24065 #: ../src/guestfs-actions.pod:2731
24066 msgid ""
24067 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24068 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083 ../src/guestfs-actions.pod:7137
24073 msgid ""
24074 "This function returns a NULL-terminated array of strings, or NULL if there "
24075 "was an error.  The array of strings will always have length C<2n+1>, where "
24076 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24077 "caller must free the strings and the array after use>."
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
24082 msgid "(Added in 1.9.17)"
24083 msgstr ""
24084
24085 #. type: =head2
24086 #: ../src/guestfs-actions.pod:2743
24087 msgid "guestfs_inspect_get_filesystems"
24088 msgstr ""
24089
24090 #. type: verbatim
24091 #: ../src/guestfs-actions.pod:2745
24092 #, no-wrap
24093 msgid ""
24094 " char **\n"
24095 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24096 "                                  const char *root);\n"
24097 "\n"
24098 msgstr ""
24099
24100 #. type: textblock
24101 #: ../src/guestfs-actions.pod:2757
24102 msgid ""
24103 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24104 "C<guestfs_inspect_get_mountpoints>."
24105 msgstr ""
24106
24107 #. type: =head2
24108 #: ../src/guestfs-actions.pod:2766
24109 msgid "guestfs_inspect_get_format"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../src/guestfs-actions.pod:2768
24114 #, no-wrap
24115 msgid ""
24116 " char *\n"
24117 " guestfs_inspect_get_format (guestfs_h *g,\n"
24118 "                             const char *root);\n"
24119 "\n"
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233 ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:6033
24124 msgid "(Added in 1.9.4)"
24125 msgstr ""
24126
24127 #. type: =head2
24128 #: ../src/guestfs-actions.pod:2804
24129 msgid "guestfs_inspect_get_hostname"
24130 msgstr ""
24131
24132 #. type: verbatim
24133 #: ../src/guestfs-actions.pod:2806
24134 #, no-wrap
24135 msgid ""
24136 " char *\n"
24137 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24138 "                               const char *root);\n"
24139 "\n"
24140 msgstr ""
24141
24142 #. type: textblock
24143 #: ../src/guestfs-actions.pod:2821
24144 msgid "(Added in 1.7.9)"
24145 msgstr ""
24146
24147 #. type: =head2
24148 #: ../src/guestfs-actions.pod:2823
24149 msgid "guestfs_inspect_get_icon"
24150 msgstr ""
24151
24152 #. type: verbatim
24153 #: ../src/guestfs-actions.pod:2825
24154 #, no-wrap
24155 msgid ""
24156 " char *\n"
24157 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24158 "                           const char *root,\n"
24159 "                           size_t *size_r,\n"
24160 "                           ...);\n"
24161 "\n"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../src/guestfs-actions.pod:2836
24166 #, no-wrap
24167 msgid ""
24168 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24169 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24170 "\n"
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728 ../src/guestfs-actions.pod:4982
24175 msgid "(Added in 1.11.12)"
24176 msgstr ""
24177
24178 #. type: =head2
24179 #: ../src/guestfs-actions.pod:2905
24180 msgid "guestfs_inspect_get_icon_va"
24181 msgstr ""
24182
24183 #. type: verbatim
24184 #: ../src/guestfs-actions.pod:2907
24185 #, no-wrap
24186 msgid ""
24187 " char *\n"
24188 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24189 "                              const char *root,\n"
24190 "                              size_t *size_r,\n"
24191 "                              va_list args);\n"
24192 "\n"
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../src/guestfs-actions.pod:2913
24197 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24198 msgstr ""
24199
24200 #. type: =head2
24201 #: ../src/guestfs-actions.pod:2917
24202 msgid "guestfs_inspect_get_icon_argv"
24203 msgstr ""
24204
24205 #. type: verbatim
24206 #: ../src/guestfs-actions.pod:2919
24207 #, no-wrap
24208 msgid ""
24209 " char *\n"
24210 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24211 "                                const char *root,\n"
24212 "                                size_t *size_r,\n"
24213 "                                const struct guestfs_inspect_get_icon_argv "
24214 "*optargs);\n"
24215 "\n"
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../src/guestfs-actions.pod:2925
24220 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24221 msgstr ""
24222
24223 #. type: =head2
24224 #: ../src/guestfs-actions.pod:2929
24225 msgid "guestfs_inspect_get_major_version"
24226 msgstr ""
24227
24228 #. type: verbatim
24229 #: ../src/guestfs-actions.pod:2931
24230 #, no-wrap
24231 msgid ""
24232 " int\n"
24233 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24234 "                                    const char *root);\n"
24235 "\n"
24236 msgstr ""
24237
24238 #. type: =head2
24239 #: ../src/guestfs-actions.pod:2953
24240 msgid "guestfs_inspect_get_minor_version"
24241 msgstr ""
24242
24243 #. type: verbatim
24244 #: ../src/guestfs-actions.pod:2955
24245 #, no-wrap
24246 msgid ""
24247 " int\n"
24248 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24249 "                                    const char *root);\n"
24250 "\n"
24251 msgstr ""
24252
24253 #. type: textblock
24254 #: ../src/guestfs-actions.pod:2964
24255 msgid ""
24256 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24257 "C<guestfs_inspect_get_major_version>."
24258 msgstr ""
24259
24260 #. type: =head2
24261 #: ../src/guestfs-actions.pod:2971
24262 msgid "guestfs_inspect_get_mountpoints"
24263 msgstr ""
24264
24265 #. type: verbatim
24266 #: ../src/guestfs-actions.pod:2973
24267 #, no-wrap
24268 msgid ""
24269 " char **\n"
24270 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24271 "                                  const char *root);\n"
24272 "\n"
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../src/guestfs-actions.pod:2994
24277 msgid ""
24278 "For operating systems like Windows which still use drive letters, this call "
24279 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24280 "information about the mapping of drive letters to partitions, see "
24281 "C<guestfs_inspect_get_drive_mappings>."
24282 msgstr ""
24283
24284 #. type: textblock
24285 #: ../src/guestfs-actions.pod:3000
24286 msgid ""
24287 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24288 "C<guestfs_inspect_get_filesystems>."
24289 msgstr ""
24290
24291 #. type: =head2
24292 #: ../src/guestfs-actions.pod:3011
24293 msgid "guestfs_inspect_get_package_format"
24294 msgstr ""
24295
24296 #. type: verbatim
24297 #: ../src/guestfs-actions.pod:3013
24298 #, no-wrap
24299 msgid ""
24300 " char *\n"
24301 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24302 "                                     const char *root);\n"
24303 "\n"
24304 msgstr ""
24305
24306 #. type: textblock
24307 #: ../src/guestfs-actions.pod:3017
24308 msgid ""
24309 "This function and C<guestfs_inspect_get_package_management> return the "
24310 "package format and package management tool used by the inspected operating "
24311 "system.  For example for Fedora these functions would return C<rpm> (package "
24312 "format) and C<yum> (package management)."
24313 msgstr ""
24314
24315 #. type: textblock
24316 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
24317 msgid "(Added in 1.7.5)"
24318 msgstr ""
24319
24320 #. type: =head2
24321 #: ../src/guestfs-actions.pod:3037
24322 msgid "guestfs_inspect_get_package_management"
24323 msgstr ""
24324
24325 #. type: verbatim
24326 #: ../src/guestfs-actions.pod:3039
24327 #, no-wrap
24328 msgid ""
24329 " char *\n"
24330 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24331 "                                         const char *root);\n"
24332 "\n"
24333 msgstr ""
24334
24335 #. type: textblock
24336 #: ../src/guestfs-actions.pod:3043
24337 msgid ""
24338 "C<guestfs_inspect_get_package_format> and this function return the package "
24339 "format and package management tool used by the inspected operating system.  "
24340 "For example for Fedora these functions would return C<rpm> (package format) "
24341 "and C<yum> (package management)."
24342 msgstr ""
24343
24344 #. type: =head2
24345 #: ../src/guestfs-actions.pod:3065
24346 msgid "guestfs_inspect_get_product_name"
24347 msgstr ""
24348
24349 #. type: verbatim
24350 #: ../src/guestfs-actions.pod:3067
24351 #, no-wrap
24352 msgid ""
24353 " char *\n"
24354 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24355 "                                   const char *root);\n"
24356 "\n"
24357 msgstr ""
24358
24359 #. type: =head2
24360 #: ../src/guestfs-actions.pod:3086
24361 msgid "guestfs_inspect_get_product_variant"
24362 msgstr ""
24363
24364 #. type: verbatim
24365 #: ../src/guestfs-actions.pod:3088
24366 #, no-wrap
24367 msgid ""
24368 " char *\n"
24369 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24370 "                                      const char *root);\n"
24371 "\n"
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../src/guestfs-actions.pod:3111
24376 msgid ""
24377 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24378 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24379 msgstr ""
24380
24381 #. type: textblock
24382 #: ../src/guestfs-actions.pod:3118
24383 msgid "(Added in 1.9.13)"
24384 msgstr ""
24385
24386 #. type: =head2
24387 #: ../src/guestfs-actions.pod:3120
24388 msgid "guestfs_inspect_get_roots"
24389 msgstr ""
24390
24391 #. type: verbatim
24392 #: ../src/guestfs-actions.pod:3122
24393 #, no-wrap
24394 msgid ""
24395 " char **\n"
24396 " guestfs_inspect_get_roots (guestfs_h *g);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../src/guestfs-actions.pod:3125
24402 msgid ""
24403 "This function is a convenient way to get the list of root devices, as "
24404 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
24405 "the whole inspection process."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../src/guestfs-actions.pod:3129
24410 msgid ""
24411 "This returns an empty list if either no root devices were found or the "
24412 "caller has not called C<guestfs_inspect_os>."
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../src/guestfs-actions.pod:3138
24417 msgid "(Added in 1.7.3)"
24418 msgstr ""
24419
24420 #. type: =head2
24421 #: ../src/guestfs-actions.pod:3140
24422 msgid "guestfs_inspect_get_type"
24423 msgstr ""
24424
24425 #. type: verbatim
24426 #: ../src/guestfs-actions.pod:3142
24427 #, no-wrap
24428 msgid ""
24429 " char *\n"
24430 " guestfs_inspect_get_type (guestfs_h *g,\n"
24431 "                           const char *root);\n"
24432 "\n"
24433 msgstr ""
24434
24435 #. type: =head2
24436 #: ../src/guestfs-actions.pod:3179
24437 msgid "guestfs_inspect_get_windows_current_control_set"
24438 msgstr ""
24439
24440 #. type: verbatim
24441 #: ../src/guestfs-actions.pod:3181
24442 #, no-wrap
24443 msgid ""
24444 " char *\n"
24445 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
24446 "                                                  const char *root);\n"
24447 "\n"
24448 msgstr ""
24449
24450 #. type: =head2
24451 #: ../src/guestfs-actions.pod:3199
24452 msgid "guestfs_inspect_get_windows_systemroot"
24453 msgstr ""
24454
24455 #. type: verbatim
24456 #: ../src/guestfs-actions.pod:3201
24457 #, no-wrap
24458 msgid ""
24459 " char *\n"
24460 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
24461 "                                         const char *root);\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../src/guestfs-actions.pod:3217
24467 msgid "(Added in 1.5.25)"
24468 msgstr ""
24469
24470 #. type: =head2
24471 #: ../src/guestfs-actions.pod:3219
24472 msgid "guestfs_inspect_is_live"
24473 msgstr ""
24474
24475 #. type: verbatim
24476 #: ../src/guestfs-actions.pod:3221
24477 #, no-wrap
24478 msgid ""
24479 " int\n"
24480 " guestfs_inspect_is_live (guestfs_h *g,\n"
24481 "                          const char *root);\n"
24482 "\n"
24483 msgstr ""
24484
24485 #. type: textblock
24486 #: ../src/guestfs-actions.pod:3225
24487 msgid ""
24488 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24489 "disk), then this returns true if a live image was detected on the disk."
24490 msgstr ""
24491
24492 #. type: =head2
24493 #: ../src/guestfs-actions.pod:3235
24494 msgid "guestfs_inspect_is_multipart"
24495 msgstr ""
24496
24497 #. type: verbatim
24498 #: ../src/guestfs-actions.pod:3237
24499 #, no-wrap
24500 msgid ""
24501 " int\n"
24502 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
24503 "                               const char *root);\n"
24504 "\n"
24505 msgstr ""
24506
24507 #. type: textblock
24508 #: ../src/guestfs-actions.pod:3241
24509 msgid ""
24510 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24511 "disk), then this returns true if the disk is part of a set."
24512 msgstr ""
24513
24514 #. type: =head2
24515 #: ../src/guestfs-actions.pod:3251
24516 msgid "guestfs_inspect_is_netinst"
24517 msgstr ""
24518
24519 #. type: verbatim
24520 #: ../src/guestfs-actions.pod:3253
24521 #, no-wrap
24522 msgid ""
24523 " int\n"
24524 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
24525 "                             const char *root);\n"
24526 "\n"
24527 msgstr ""
24528
24529 #. type: textblock
24530 #: ../src/guestfs-actions.pod:3257
24531 msgid ""
24532 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24533 "disk), then this returns true if the disk is a network installer, ie. not a "
24534 "self-contained install CD but one which is likely to require network access "
24535 "to complete the install."
24536 msgstr ""
24537
24538 #. type: =head2
24539 #: ../src/guestfs-actions.pod:3269
24540 msgid "guestfs_inspect_list_applications"
24541 msgstr ""
24542
24543 #. type: verbatim
24544 #: ../src/guestfs-actions.pod:3271
24545 #, no-wrap
24546 msgid ""
24547 " struct guestfs_application_list *\n"
24548 " guestfs_inspect_list_applications (guestfs_h *g,\n"
24549 "                                    const char *root);\n"
24550 "\n"
24551 msgstr ""
24552
24553 #. type: textblock
24554 #: ../src/guestfs-actions.pod:3277
24555 msgid ""
24556 "I<Note:> This call works differently from other parts of the inspection "
24557 "API.  You have to call C<guestfs_inspect_os>, then "
24558 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
24559 "this.  Listing applications is a significantly more difficult operation "
24560 "which requires access to the full filesystem.  Also note that unlike the "
24561 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
24562 "the libguestfs handle, this call actually reads parts of the mounted "
24563 "filesystems during the call."
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../src/guestfs-actions.pod:3367
24568 msgid ""
24569 "This function returns a C<struct guestfs_application_list *>, or NULL if "
24570 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
24571 "after use>."
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../src/guestfs-actions.pod:3371
24576 msgid "(Added in 1.7.8)"
24577 msgstr ""
24578
24579 #. type: =head2
24580 #: ../src/guestfs-actions.pod:3373
24581 msgid "guestfs_inspect_os"
24582 msgstr ""
24583
24584 #. type: verbatim
24585 #: ../src/guestfs-actions.pod:3375
24586 #, no-wrap
24587 msgid ""
24588 " char **\n"
24589 " guestfs_inspect_os (guestfs_h *g);\n"
24590 "\n"
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../src/guestfs-actions.pod:3391
24595 msgid ""
24596 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
24597 "functions in order to query further information about each operating system, "
24598 "such as the name and version."
24599 msgstr ""
24600
24601 #. type: textblock
24602 #: ../src/guestfs-actions.pod:3396
24603 msgid ""
24604 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
24605 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
24606 "the contents.  This should be called with no disks currently mounted.  The "
24607 "function may also use Augeas, so any existing Augeas handle will be closed."
24608 msgstr ""
24609
24610 #. type: textblock
24611 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739 ../src/guestfs-actions.pod:3821
24612 msgid "See also C<guestfs_list_filesystems>."
24613 msgstr ""
24614
24615 #. type: =head2
24616 #: ../src/guestfs-actions.pod:3416
24617 msgid "guestfs_is_blockdev"
24618 msgstr ""
24619
24620 #. type: verbatim
24621 #: ../src/guestfs-actions.pod:3418
24622 #, no-wrap
24623 msgid ""
24624 " int\n"
24625 " guestfs_is_blockdev (guestfs_h *g,\n"
24626 "                      const char *path);\n"
24627 "\n"
24628 msgstr ""
24629
24630 #. type: textblock
24631 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3586
24632 msgid "See also C<guestfs_stat>."
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3590
24637 msgid "(Added in 1.5.10)"
24638 msgstr ""
24639
24640 #. type: =head2
24641 #: ../src/guestfs-actions.pod:3431
24642 msgid "guestfs_is_busy"
24643 msgstr ""
24644
24645 #. type: verbatim
24646 #: ../src/guestfs-actions.pod:3433
24647 #, no-wrap
24648 msgid ""
24649 " int\n"
24650 " guestfs_is_busy (guestfs_h *g);\n"
24651 "\n"
24652 msgstr ""
24653
24654 #. type: =head2
24655 #: ../src/guestfs-actions.pod:3445
24656 msgid "guestfs_is_chardev"
24657 msgstr ""
24658
24659 #. type: verbatim
24660 #: ../src/guestfs-actions.pod:3447
24661 #, no-wrap
24662 msgid ""
24663 " int\n"
24664 " guestfs_is_chardev (guestfs_h *g,\n"
24665 "                     const char *path);\n"
24666 "\n"
24667 msgstr ""
24668
24669 #. type: =head2
24670 #: ../src/guestfs-actions.pod:3460
24671 msgid "guestfs_is_config"
24672 msgstr ""
24673
24674 #. type: verbatim
24675 #: ../src/guestfs-actions.pod:3462
24676 #, no-wrap
24677 msgid ""
24678 " int\n"
24679 " guestfs_is_config (guestfs_h *g);\n"
24680 "\n"
24681 msgstr ""
24682
24683 #. type: =head2
24684 #: ../src/guestfs-actions.pod:3474
24685 msgid "guestfs_is_dir"
24686 msgstr ""
24687
24688 #. type: verbatim
24689 #: ../src/guestfs-actions.pod:3476
24690 #, no-wrap
24691 msgid ""
24692 " int\n"
24693 " guestfs_is_dir (guestfs_h *g,\n"
24694 "                 const char *path);\n"
24695 "\n"
24696 msgstr ""
24697
24698 #. type: =head2
24699 #: ../src/guestfs-actions.pod:3490
24700 msgid "guestfs_is_fifo"
24701 msgstr ""
24702
24703 #. type: verbatim
24704 #: ../src/guestfs-actions.pod:3492
24705 #, no-wrap
24706 msgid ""
24707 " int\n"
24708 " guestfs_is_fifo (guestfs_h *g,\n"
24709 "                  const char *path);\n"
24710 "\n"
24711 msgstr ""
24712
24713 #. type: =head2
24714 #: ../src/guestfs-actions.pod:3505
24715 msgid "guestfs_is_file"
24716 msgstr ""
24717
24718 #. type: verbatim
24719 #: ../src/guestfs-actions.pod:3507
24720 #, no-wrap
24721 msgid ""
24722 " int\n"
24723 " guestfs_is_file (guestfs_h *g,\n"
24724 "                  const char *path);\n"
24725 "\n"
24726 msgstr ""
24727
24728 #. type: =head2
24729 #: ../src/guestfs-actions.pod:3521
24730 msgid "guestfs_is_launching"
24731 msgstr ""
24732
24733 #. type: verbatim
24734 #: ../src/guestfs-actions.pod:3523
24735 #, no-wrap
24736 msgid ""
24737 " int\n"
24738 " guestfs_is_launching (guestfs_h *g);\n"
24739 "\n"
24740 msgstr ""
24741
24742 #. type: =head2
24743 #: ../src/guestfs-actions.pod:3535
24744 msgid "guestfs_is_lv"
24745 msgstr ""
24746
24747 #. type: verbatim
24748 #: ../src/guestfs-actions.pod:3537
24749 #, no-wrap
24750 msgid ""
24751 " int\n"
24752 " guestfs_is_lv (guestfs_h *g,\n"
24753 "                const char *device);\n"
24754 "\n"
24755 msgstr ""
24756
24757 #. type: =head2
24758 #: ../src/guestfs-actions.pod:3548
24759 msgid "guestfs_is_ready"
24760 msgstr ""
24761
24762 #. type: verbatim
24763 #: ../src/guestfs-actions.pod:3550
24764 #, no-wrap
24765 msgid ""
24766 " int\n"
24767 " guestfs_is_ready (guestfs_h *g);\n"
24768 "\n"
24769 msgstr ""
24770
24771 #. type: =head2
24772 #: ../src/guestfs-actions.pod:3562
24773 msgid "guestfs_is_socket"
24774 msgstr ""
24775
24776 #. type: verbatim
24777 #: ../src/guestfs-actions.pod:3564
24778 #, no-wrap
24779 msgid ""
24780 " int\n"
24781 " guestfs_is_socket (guestfs_h *g,\n"
24782 "                    const char *path);\n"
24783 "\n"
24784 msgstr ""
24785
24786 #. type: =head2
24787 #: ../src/guestfs-actions.pod:3577
24788 msgid "guestfs_is_symlink"
24789 msgstr ""
24790
24791 #. type: verbatim
24792 #: ../src/guestfs-actions.pod:3579
24793 #, no-wrap
24794 msgid ""
24795 " int\n"
24796 " guestfs_is_symlink (guestfs_h *g,\n"
24797 "                     const char *path);\n"
24798 "\n"
24799 msgstr ""
24800
24801 #. type: =head2
24802 #: ../src/guestfs-actions.pod:3592
24803 msgid "guestfs_is_zero"
24804 msgstr ""
24805
24806 #. type: verbatim
24807 #: ../src/guestfs-actions.pod:3594
24808 #, no-wrap
24809 msgid ""
24810 " int\n"
24811 " guestfs_is_zero (guestfs_h *g,\n"
24812 "                  const char *path);\n"
24813 "\n"
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
24818 msgid "(Added in 1.11.8)"
24819 msgstr ""
24820
24821 #. type: =head2
24822 #: ../src/guestfs-actions.pod:3605
24823 msgid "guestfs_is_zero_device"
24824 msgstr ""
24825
24826 #. type: verbatim
24827 #: ../src/guestfs-actions.pod:3607
24828 #, no-wrap
24829 msgid ""
24830 " int\n"
24831 " guestfs_is_zero_device (guestfs_h *g,\n"
24832 "                         const char *device);\n"
24833 "\n"
24834 msgstr ""
24835
24836 #. type: =head2
24837 #: ../src/guestfs-actions.pod:3619
24838 msgid "guestfs_kill_subprocess"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../src/guestfs-actions.pod:3621
24843 #, no-wrap
24844 msgid ""
24845 " int\n"
24846 " guestfs_kill_subprocess (guestfs_h *g);\n"
24847 "\n"
24848 msgstr ""
24849
24850 #. type: =head2
24851 #: ../src/guestfs-actions.pod:3630
24852 msgid "guestfs_launch"
24853 msgstr ""
24854
24855 #. type: verbatim
24856 #: ../src/guestfs-actions.pod:3632
24857 #, no-wrap
24858 msgid ""
24859 " int\n"
24860 " guestfs_launch (guestfs_h *g);\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: =head2
24865 #: ../src/guestfs-actions.pod:3650
24866 msgid "guestfs_lchown"
24867 msgstr ""
24868
24869 #. type: verbatim
24870 #: ../src/guestfs-actions.pod:3652
24871 #, no-wrap
24872 msgid ""
24873 " int\n"
24874 " guestfs_lchown (guestfs_h *g,\n"
24875 "                 int owner,\n"
24876 "                 int group,\n"
24877 "                 const char *path);\n"
24878 "\n"
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../src/guestfs-actions.pod:3658
24883 msgid ""
24884 "Change the file owner to C<owner> and group to C<group>.  This is like "
24885 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
24886 "changed, not the target."
24887 msgstr ""
24888
24889 #. type: =head2
24890 #: ../src/guestfs-actions.pod:3670
24891 msgid "guestfs_lgetxattr"
24892 msgstr ""
24893
24894 #. type: verbatim
24895 #: ../src/guestfs-actions.pod:3672
24896 #, no-wrap
24897 msgid ""
24898 " char *\n"
24899 " guestfs_lgetxattr (guestfs_h *g,\n"
24900 "                    const char *path,\n"
24901 "                    const char *name,\n"
24902 "                    size_t *size_r);\n"
24903 "\n"
24904 msgstr ""
24905
24906 #. type: textblock
24907 #: ../src/guestfs-actions.pod:3692
24908 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
24909 msgstr ""
24910
24911 #. type: =head2
24912 #: ../src/guestfs-actions.pod:3700
24913 msgid "guestfs_lgetxattrs"
24914 msgstr ""
24915
24916 #. type: verbatim
24917 #: ../src/guestfs-actions.pod:3702
24918 #, no-wrap
24919 msgid ""
24920 " struct guestfs_xattr_list *\n"
24921 " guestfs_lgetxattrs (guestfs_h *g,\n"
24922 "                     const char *path);\n"
24923 "\n"
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../src/guestfs-actions.pod:3706
24928 msgid ""
24929 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
24930 "then it returns the extended attributes of the link itself."
24931 msgstr ""
24932
24933 #. type: =head2
24934 #: ../src/guestfs-actions.pod:3716
24935 msgid "guestfs_list_9p"
24936 msgstr ""
24937
24938 #. type: verbatim
24939 #: ../src/guestfs-actions.pod:3718
24940 #, no-wrap
24941 msgid ""
24942 " char **\n"
24943 " guestfs_list_9p (guestfs_h *g);\n"
24944 "\n"
24945 msgstr ""
24946
24947 #. type: =head2
24948 #: ../src/guestfs-actions.pod:3730
24949 msgid "guestfs_list_devices"
24950 msgstr ""
24951
24952 #. type: verbatim
24953 #: ../src/guestfs-actions.pod:3732
24954 #, no-wrap
24955 msgid ""
24956 " char **\n"
24957 " guestfs_list_devices (guestfs_h *g);\n"
24958 "\n"
24959 msgstr ""
24960
24961 #. type: =head2
24962 #: ../src/guestfs-actions.pod:3747
24963 msgid "guestfs_list_dm_devices"
24964 msgstr ""
24965
24966 #. type: verbatim
24967 #: ../src/guestfs-actions.pod:3749
24968 #, no-wrap
24969 msgid ""
24970 " char **\n"
24971 " guestfs_list_dm_devices (guestfs_h *g);\n"
24972 "\n"
24973 msgstr ""
24974
24975 #. type: textblock
24976 #: ../src/guestfs-actions.pod:3754
24977 msgid ""
24978 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
24979 "previous call to C<guestfs_luks_open>."
24980 msgstr ""
24981
24982 #. type: textblock
24983 #: ../src/guestfs-actions.pod:3757
24984 msgid ""
24985 "Device mapper devices which correspond to logical volumes are I<not> "
24986 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
24987 "volumes."
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
24992 msgid "(Added in 1.11.15)"
24993 msgstr ""
24994
24995 #. type: =head2
24996 #: ../src/guestfs-actions.pod:3767
24997 msgid "guestfs_list_filesystems"
24998 msgstr ""
24999
25000 #. type: verbatim
25001 #: ../src/guestfs-actions.pod:3769
25002 #, no-wrap
25003 msgid ""
25004 " char **\n"
25005 " guestfs_list_filesystems (guestfs_h *g);\n"
25006 "\n"
25007 msgstr ""
25008
25009 #. type: textblock
25010 #: ../src/guestfs-actions.pod:3789
25011 msgid ""
25012 "This command runs other libguestfs commands, which might include "
25013 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25014 "soon after launch and only when nothing is mounted."
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../src/guestfs-actions.pod:3793
25019 msgid ""
25020 "Not all of the filesystems returned will be mountable.  In particular, swap "
25021 "partitions are returned in the list.  Also this command does not check that "
25022 "each filesystem found is valid and mountable, and some filesystems might be "
25023 "mountable but require special options.  Filesystems may not all belong to a "
25024 "single logical operating system (use C<guestfs_inspect_os> to look for "
25025 "OSes)."
25026 msgstr ""
25027
25028 #. type: textblock
25029 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
25030 msgid "(Added in 1.5.15)"
25031 msgstr ""
25032
25033 #. type: =head2
25034 #: ../src/guestfs-actions.pod:3809
25035 msgid "guestfs_list_partitions"
25036 msgstr ""
25037
25038 #. type: verbatim
25039 #: ../src/guestfs-actions.pod:3811
25040 #, no-wrap
25041 msgid ""
25042 " char **\n"
25043 " guestfs_list_partitions (guestfs_h *g);\n"
25044 "\n"
25045 msgstr ""
25046
25047 #. type: textblock
25048 #: ../src/guestfs-actions.pod:3818
25049 msgid ""
25050 "This does not return logical volumes.  For that you will need to call "
25051 "C<guestfs_lvs>."
25052 msgstr ""
25053
25054 #. type: =head2
25055 #: ../src/guestfs-actions.pod:3829
25056 msgid "guestfs_ll"
25057 msgstr ""
25058
25059 #. type: verbatim
25060 #: ../src/guestfs-actions.pod:3831
25061 #, no-wrap
25062 msgid ""
25063 " char *\n"
25064 " guestfs_ll (guestfs_h *g,\n"
25065 "             const char *directory);\n"
25066 "\n"
25067 msgstr ""
25068
25069 #. type: =head2
25070 #: ../src/guestfs-actions.pod:3846
25071 msgid "guestfs_ln"
25072 msgstr ""
25073
25074 #. type: verbatim
25075 #: ../src/guestfs-actions.pod:3848
25076 #, no-wrap
25077 msgid ""
25078 " int\n"
25079 " guestfs_ln (guestfs_h *g,\n"
25080 "             const char *target,\n"
25081 "             const char *linkname);\n"
25082 "\n"
25083 msgstr ""
25084
25085 #. type: =head2
25086 #: ../src/guestfs-actions.pod:3859
25087 msgid "guestfs_ln_f"
25088 msgstr ""
25089
25090 #. type: verbatim
25091 #: ../src/guestfs-actions.pod:3861
25092 #, no-wrap
25093 msgid ""
25094 " int\n"
25095 " guestfs_ln_f (guestfs_h *g,\n"
25096 "               const char *target,\n"
25097 "               const char *linkname);\n"
25098 "\n"
25099 msgstr ""
25100
25101 #. type: =head2
25102 #: ../src/guestfs-actions.pod:3873
25103 msgid "guestfs_ln_s"
25104 msgstr ""
25105
25106 #. type: verbatim
25107 #: ../src/guestfs-actions.pod:3875
25108 #, no-wrap
25109 msgid ""
25110 " int\n"
25111 " guestfs_ln_s (guestfs_h *g,\n"
25112 "               const char *target,\n"
25113 "               const char *linkname);\n"
25114 "\n"
25115 msgstr ""
25116
25117 #. type: =head2
25118 #: ../src/guestfs-actions.pod:3886
25119 msgid "guestfs_ln_sf"
25120 msgstr ""
25121
25122 #. type: verbatim
25123 #: ../src/guestfs-actions.pod:3888
25124 #, no-wrap
25125 msgid ""
25126 " int\n"
25127 " guestfs_ln_sf (guestfs_h *g,\n"
25128 "                const char *target,\n"
25129 "                const char *linkname);\n"
25130 "\n"
25131 msgstr ""
25132
25133 #. type: =head2
25134 #: ../src/guestfs-actions.pod:3900
25135 msgid "guestfs_lremovexattr"
25136 msgstr ""
25137
25138 #. type: verbatim
25139 #: ../src/guestfs-actions.pod:3902
25140 #, no-wrap
25141 msgid ""
25142 " int\n"
25143 " guestfs_lremovexattr (guestfs_h *g,\n"
25144 "                       const char *xattr,\n"
25145 "                       const char *path);\n"
25146 "\n"
25147 msgstr ""
25148
25149 #. type: textblock
25150 #: ../src/guestfs-actions.pod:3907
25151 msgid ""
25152 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25153 "link, then it removes an extended attribute of the link itself."
25154 msgstr ""
25155
25156 #. type: =head2
25157 #: ../src/guestfs-actions.pod:3915
25158 msgid "guestfs_ls"
25159 msgstr ""
25160
25161 #. type: verbatim
25162 #: ../src/guestfs-actions.pod:3917
25163 #, no-wrap
25164 msgid ""
25165 " char **\n"
25166 " guestfs_ls (guestfs_h *g,\n"
25167 "             const char *directory);\n"
25168 "\n"
25169 msgstr ""
25170
25171 #. type: textblock
25172 #: ../src/guestfs-actions.pod:3925
25173 msgid ""
25174 "This command is mostly useful for interactive sessions.  Programs should "
25175 "probably use C<guestfs_readdir> instead."
25176 msgstr ""
25177
25178 #. type: =head2
25179 #: ../src/guestfs-actions.pod:3934
25180 msgid "guestfs_lsetxattr"
25181 msgstr ""
25182
25183 #. type: verbatim
25184 #: ../src/guestfs-actions.pod:3936
25185 #, no-wrap
25186 msgid ""
25187 " int\n"
25188 " guestfs_lsetxattr (guestfs_h *g,\n"
25189 "                    const char *xattr,\n"
25190 "                    const char *val,\n"
25191 "                    int vallen,\n"
25192 "                    const char *path);\n"
25193 "\n"
25194 msgstr ""
25195
25196 #. type: textblock
25197 #: ../src/guestfs-actions.pod:3943
25198 msgid ""
25199 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25200 "then it sets an extended attribute of the link itself."
25201 msgstr ""
25202
25203 #. type: =head2
25204 #: ../src/guestfs-actions.pod:3951
25205 msgid "guestfs_lstat"
25206 msgstr ""
25207
25208 #. type: verbatim
25209 #: ../src/guestfs-actions.pod:3953
25210 #, no-wrap
25211 msgid ""
25212 " struct guestfs_stat *\n"
25213 " guestfs_lstat (guestfs_h *g,\n"
25214 "                const char *path);\n"
25215 "\n"
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../src/guestfs-actions.pod:3959
25220 msgid ""
25221 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25222 "link, then the link is stat-ed, not the file it refers to."
25223 msgstr ""
25224
25225 #. type: textblock
25226 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
25227 msgid ""
25228 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25229 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25230 msgstr ""
25231
25232 #. type: textblock
25233 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744 ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
25234 msgid "(Added in 0.9.2)"
25235 msgstr ""
25236
25237 #. type: =head2
25238 #: ../src/guestfs-actions.pod:3971
25239 msgid "guestfs_lstatlist"
25240 msgstr ""
25241
25242 #. type: verbatim
25243 #: ../src/guestfs-actions.pod:3973
25244 #, no-wrap
25245 msgid ""
25246 " struct guestfs_stat_list *\n"
25247 " guestfs_lstatlist (guestfs_h *g,\n"
25248 "                    const char *path,\n"
25249 "                    char *const *names);\n"
25250 "\n"
25251 msgstr ""
25252
25253 #. type: textblock
25254 #: ../src/guestfs-actions.pod:3978
25255 msgid ""
25256 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25257 "files, where all files are in the directory C<path>.  C<names> is the list "
25258 "of files from this directory."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:3987
25263 msgid ""
25264 "This call is intended for programs that want to efficiently list a directory "
25265 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25266 "for a similarly efficient call for getting extended attributes.  Very long "
25267 "directory listings might cause the protocol message size to be exceeded, "
25268 "causing this call to fail.  The caller must split up such requests into "
25269 "smaller groups of names."
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../src/guestfs-actions.pod:3995
25274 msgid ""
25275 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25276 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25277 msgstr ""
25278
25279 #. type: =head2
25280 #: ../src/guestfs-actions.pod:4001
25281 msgid "guestfs_luks_add_key"
25282 msgstr ""
25283
25284 #. type: verbatim
25285 #: ../src/guestfs-actions.pod:4003
25286 #, no-wrap
25287 msgid ""
25288 " int\n"
25289 " guestfs_luks_add_key (guestfs_h *g,\n"
25290 "                       const char *device,\n"
25291 "                       const char *key,\n"
25292 "                       const char *newkey,\n"
25293 "                       int keyslot);\n"
25294 "\n"
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../src/guestfs-actions.pod:4015
25299 msgid ""
25300 "Note that if C<keyslot> already contains a key, then this command will "
25301 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25302 msgstr ""
25303
25304 #. type: textblock
25305 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104 ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
25306 msgid ""
25307 "This function takes a key or passphrase parameter which could contain "
25308 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25309 "information."
25310 msgstr ""
25311
25312 #. type: textblock
25313 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
25314 msgid "(Added in 1.5.2)"
25315 msgstr ""
25316
25317 #. type: =head2
25318 #: ../src/guestfs-actions.pod:4027
25319 msgid "guestfs_luks_close"
25320 msgstr ""
25321
25322 #. type: verbatim
25323 #: ../src/guestfs-actions.pod:4029
25324 #, no-wrap
25325 msgid ""
25326 " int\n"
25327 " guestfs_luks_close (guestfs_h *g,\n"
25328 "                     const char *device);\n"
25329 "\n"
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../src/guestfs-actions.pod:4033
25334 msgid ""
25335 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25336 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25337 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25338 "underlying block device."
25339 msgstr ""
25340
25341 #. type: textblock
25342 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143 ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4260
25343 msgid "(Added in 1.5.1)"
25344 msgstr ""
25345
25346 #. type: =head2
25347 #: ../src/guestfs-actions.pod:4043
25348 msgid "guestfs_luks_format"
25349 msgstr ""
25350
25351 #. type: verbatim
25352 #: ../src/guestfs-actions.pod:4045
25353 #, no-wrap
25354 msgid ""
25355 " int\n"
25356 " guestfs_luks_format (guestfs_h *g,\n"
25357 "                      const char *device,\n"
25358 "                      const char *key,\n"
25359 "                      int keyslot);\n"
25360 "\n"
25361 msgstr ""
25362
25363 #. type: =head2
25364 #: ../src/guestfs-actions.pod:4067
25365 msgid "guestfs_luks_format_cipher"
25366 msgstr ""
25367
25368 #. type: verbatim
25369 #: ../src/guestfs-actions.pod:4069
25370 #, no-wrap
25371 msgid ""
25372 " int\n"
25373 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25374 "                             const char *device,\n"
25375 "                             const char *key,\n"
25376 "                             int keyslot,\n"
25377 "                             const char *cipher);\n"
25378 "\n"
25379 msgstr ""
25380
25381 #. type: textblock
25382 #: ../src/guestfs-actions.pod:4076
25383 msgid ""
25384 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25385 "set the C<cipher> used."
25386 msgstr ""
25387
25388 #. type: =head2
25389 #: ../src/guestfs-actions.pod:4090
25390 msgid "guestfs_luks_kill_slot"
25391 msgstr ""
25392
25393 #. type: verbatim
25394 #: ../src/guestfs-actions.pod:4092
25395 #, no-wrap
25396 msgid ""
25397 " int\n"
25398 " guestfs_luks_kill_slot (guestfs_h *g,\n"
25399 "                         const char *device,\n"
25400 "                         const char *key,\n"
25401 "                         int keyslot);\n"
25402 "\n"
25403 msgstr ""
25404
25405 #. type: =head2
25406 #: ../src/guestfs-actions.pod:4110
25407 msgid "guestfs_luks_open"
25408 msgstr ""
25409
25410 #. type: verbatim
25411 #: ../src/guestfs-actions.pod:4112
25412 #, no-wrap
25413 msgid ""
25414 " int\n"
25415 " guestfs_luks_open (guestfs_h *g,\n"
25416 "                    const char *device,\n"
25417 "                    const char *key,\n"
25418 "                    const char *mapname);\n"
25419 "\n"
25420 msgstr ""
25421
25422 #. type: textblock
25423 #: ../src/guestfs-actions.pod:4130
25424 msgid ""
25425 "If this block device contains LVM volume groups, then calling "
25426 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
25427 "visible."
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../src/guestfs-actions.pod:4134
25432 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:4145
25437 msgid "guestfs_luks_open_ro"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:4147
25442 #, no-wrap
25443 msgid ""
25444 " int\n"
25445 " guestfs_luks_open_ro (guestfs_h *g,\n"
25446 "                       const char *device,\n"
25447 "                       const char *key,\n"
25448 "                       const char *mapname);\n"
25449 "\n"
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../src/guestfs-actions.pod:4153
25454 msgid ""
25455 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
25456 "created."
25457 msgstr ""
25458
25459 #. type: =head2
25460 #: ../src/guestfs-actions.pod:4164
25461 msgid "guestfs_lvcreate"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../src/guestfs-actions.pod:4166
25466 #, no-wrap
25467 msgid ""
25468 " int\n"
25469 " guestfs_lvcreate (guestfs_h *g,\n"
25470 "                   const char *logvol,\n"
25471 "                   const char *volgroup,\n"
25472 "                   int mbytes);\n"
25473 "\n"
25474 msgstr ""
25475
25476 #. type: =head2
25477 #: ../src/guestfs-actions.pod:4179
25478 msgid "guestfs_lvm_canonical_lv_name"
25479 msgstr ""
25480
25481 #. type: verbatim
25482 #: ../src/guestfs-actions.pod:4181
25483 #, no-wrap
25484 msgid ""
25485 " char *\n"
25486 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
25487 "                                const char *lvname);\n"
25488 "\n"
25489 msgstr ""
25490
25491 #. type: textblock
25492 #: ../src/guestfs-actions.pod:4192
25493 msgid "See also C<guestfs_is_lv>."
25494 msgstr ""
25495
25496 #. type: textblock
25497 #: ../src/guestfs-actions.pod:4197
25498 msgid "(Added in 1.5.24)"
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../src/guestfs-actions.pod:4199
25503 msgid "guestfs_lvm_clear_filter"
25504 msgstr ""
25505
25506 #. type: verbatim
25507 #: ../src/guestfs-actions.pod:4201
25508 #, no-wrap
25509 msgid ""
25510 " int\n"
25511 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
25512 "\n"
25513 msgstr ""
25514
25515 #. type: textblock
25516 #: ../src/guestfs-actions.pod:4204
25517 msgid ""
25518 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
25519 "see every block device."
25520 msgstr ""
25521
25522 #. type: =head2
25523 #: ../src/guestfs-actions.pod:4214
25524 msgid "guestfs_lvm_remove_all"
25525 msgstr ""
25526
25527 #. type: verbatim
25528 #: ../src/guestfs-actions.pod:4216
25529 #, no-wrap
25530 msgid ""
25531 " int\n"
25532 " guestfs_lvm_remove_all (guestfs_h *g);\n"
25533 "\n"
25534 msgstr ""
25535
25536 #. type: =head2
25537 #: ../src/guestfs-actions.pod:4229
25538 msgid "guestfs_lvm_set_filter"
25539 msgstr ""
25540
25541 #. type: verbatim
25542 #: ../src/guestfs-actions.pod:4231
25543 #, no-wrap
25544 msgid ""
25545 " int\n"
25546 " guestfs_lvm_set_filter (guestfs_h *g,\n"
25547 "                         char *const *devices);\n"
25548 "\n"
25549 msgstr ""
25550
25551 #. type: =head2
25552 #: ../src/guestfs-actions.pod:4262
25553 msgid "guestfs_lvremove"
25554 msgstr ""
25555
25556 #. type: verbatim
25557 #: ../src/guestfs-actions.pod:4264
25558 #, no-wrap
25559 msgid ""
25560 " int\n"
25561 " guestfs_lvremove (guestfs_h *g,\n"
25562 "                   const char *device);\n"
25563 "\n"
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:7513
25568 msgid "(Added in 1.0.13)"
25569 msgstr ""
25570
25571 #. type: =head2
25572 #: ../src/guestfs-actions.pod:4278
25573 msgid "guestfs_lvrename"
25574 msgstr ""
25575
25576 #. type: verbatim
25577 #: ../src/guestfs-actions.pod:4280
25578 #, no-wrap
25579 msgid ""
25580 " int\n"
25581 " guestfs_lvrename (guestfs_h *g,\n"
25582 "                   const char *logvol,\n"
25583 "                   const char *newlogvol);\n"
25584 "\n"
25585 msgstr ""
25586
25587 #. type: textblock
25588 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
25589 msgid "(Added in 1.0.83)"
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:4291
25594 msgid "guestfs_lvresize"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:4293
25599 #, no-wrap
25600 msgid ""
25601 " int\n"
25602 " guestfs_lvresize (guestfs_h *g,\n"
25603 "                   const char *device,\n"
25604 "                   int mbytes);\n"
25605 "\n"
25606 msgstr ""
25607
25608 #. type: =head2
25609 #: ../src/guestfs-actions.pod:4306
25610 msgid "guestfs_lvresize_free"
25611 msgstr ""
25612
25613 #. type: verbatim
25614 #: ../src/guestfs-actions.pod:4308
25615 #, no-wrap
25616 msgid ""
25617 " int\n"
25618 " guestfs_lvresize_free (guestfs_h *g,\n"
25619 "                        const char *lv,\n"
25620 "                        int percent);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:4321
25626 msgid "(Added in 1.3.3)"
25627 msgstr ""
25628
25629 #. type: =head2
25630 #: ../src/guestfs-actions.pod:4323
25631 msgid "guestfs_lvs"
25632 msgstr ""
25633
25634 #. type: verbatim
25635 #: ../src/guestfs-actions.pod:4325
25636 #, no-wrap
25637 msgid ""
25638 " char **\n"
25639 " guestfs_lvs (guestfs_h *g);\n"
25640 "\n"
25641 msgstr ""
25642
25643 #. type: textblock
25644 #: ../src/guestfs-actions.pod:4334
25645 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
25646 msgstr ""
25647
25648 #. type: =head2
25649 #: ../src/guestfs-actions.pod:4342
25650 msgid "guestfs_lvs_full"
25651 msgstr ""
25652
25653 #. type: verbatim
25654 #: ../src/guestfs-actions.pod:4344
25655 #, no-wrap
25656 msgid ""
25657 " struct guestfs_lvm_lv_list *\n"
25658 " guestfs_lvs_full (guestfs_h *g);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:4350
25664 msgid ""
25665 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
25666 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
25667 "use>."
25668 msgstr ""
25669
25670 #. type: =head2
25671 #: ../src/guestfs-actions.pod:4356
25672 msgid "guestfs_lvuuid"
25673 msgstr ""
25674
25675 #. type: verbatim
25676 #: ../src/guestfs-actions.pod:4358
25677 #, no-wrap
25678 msgid ""
25679 " char *\n"
25680 " guestfs_lvuuid (guestfs_h *g,\n"
25681 "                 const char *device);\n"
25682 "\n"
25683 msgstr ""
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:4369
25687 msgid "guestfs_lxattrlist"
25688 msgstr ""
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:4371
25692 #, no-wrap
25693 msgid ""
25694 " struct guestfs_xattr_list *\n"
25695 " guestfs_lxattrlist (guestfs_h *g,\n"
25696 "                     const char *path,\n"
25697 "                     char *const *names);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: textblock
25702 #: ../src/guestfs-actions.pod:4390
25703 msgid ""
25704 "This call is intended for programs that want to efficiently list a directory "
25705 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
25706 "a similarly efficient call for getting standard stats.  Very long directory "
25707 "listings might cause the protocol message size to be exceeded, causing this "
25708 "call to fail.  The caller must split up such requests into smaller groups of "
25709 "names."
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../src/guestfs-actions.pod:4404
25714 msgid "guestfs_mkdir"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../src/guestfs-actions.pod:4406
25719 #, no-wrap
25720 msgid ""
25721 " int\n"
25722 " guestfs_mkdir (guestfs_h *g,\n"
25723 "                const char *path);\n"
25724 "\n"
25725 msgstr ""
25726
25727 #. type: =head2
25728 #: ../src/guestfs-actions.pod:4416
25729 msgid "guestfs_mkdir_mode"
25730 msgstr ""
25731
25732 #. type: verbatim
25733 #: ../src/guestfs-actions.pod:4418
25734 #, no-wrap
25735 msgid ""
25736 " int\n"
25737 " guestfs_mkdir_mode (guestfs_h *g,\n"
25738 "                     const char *path,\n"
25739 "                     int mode);\n"
25740 "\n"
25741 msgstr ""
25742
25743 #. type: textblock
25744 #: ../src/guestfs-actions.pod:4430
25745 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../src/guestfs-actions.pod:4436
25750 msgid "guestfs_mkdir_p"
25751 msgstr ""
25752
25753 #. type: verbatim
25754 #: ../src/guestfs-actions.pod:4438
25755 #, no-wrap
25756 msgid ""
25757 " int\n"
25758 " guestfs_mkdir_p (guestfs_h *g,\n"
25759 "                  const char *path);\n"
25760 "\n"
25761 msgstr ""
25762
25763 #. type: =head2
25764 #: ../src/guestfs-actions.pod:4449
25765 msgid "guestfs_mkdtemp"
25766 msgstr ""
25767
25768 #. type: verbatim
25769 #: ../src/guestfs-actions.pod:4451
25770 #, no-wrap
25771 msgid ""
25772 " char *\n"
25773 " guestfs_mkdtemp (guestfs_h *g,\n"
25774 "                  const char *template);\n"
25775 "\n"
25776 msgstr ""
25777
25778 #. type: =head2
25779 #: ../src/guestfs-actions.pod:4479
25780 msgid "guestfs_mke2fs_J"
25781 msgstr ""
25782
25783 #. type: verbatim
25784 #: ../src/guestfs-actions.pod:4481
25785 #, no-wrap
25786 msgid ""
25787 " int\n"
25788 " guestfs_mke2fs_J (guestfs_h *g,\n"
25789 "                   const char *fstype,\n"
25790 "                   int blocksize,\n"
25791 "                   const char *device,\n"
25792 "                   const char *journal);\n"
25793 "\n"
25794 msgstr ""
25795
25796 #. type: textblock
25797 #: ../src/guestfs-actions.pod:4494
25798 msgid "See also C<guestfs_mke2journal>."
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
25803 msgid "(Added in 1.0.68)"
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:4500
25808 msgid "guestfs_mke2fs_JL"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:4502
25813 #, no-wrap
25814 msgid ""
25815 " int\n"
25816 " guestfs_mke2fs_JL (guestfs_h *g,\n"
25817 "                    const char *fstype,\n"
25818 "                    int blocksize,\n"
25819 "                    const char *device,\n"
25820 "                    const char *label);\n"
25821 "\n"
25822 msgstr ""
25823
25824 #. type: textblock
25825 #: ../src/guestfs-actions.pod:4512
25826 msgid "See also C<guestfs_mke2journal_L>."
25827 msgstr ""
25828
25829 #. type: =head2
25830 #: ../src/guestfs-actions.pod:4518
25831 msgid "guestfs_mke2fs_JU"
25832 msgstr ""
25833
25834 #. type: verbatim
25835 #: ../src/guestfs-actions.pod:4520
25836 #, no-wrap
25837 msgid ""
25838 " int\n"
25839 " guestfs_mke2fs_JU (guestfs_h *g,\n"
25840 "                    const char *fstype,\n"
25841 "                    int blocksize,\n"
25842 "                    const char *device,\n"
25843 "                    const char *uuid);\n"
25844 "\n"
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../src/guestfs-actions.pod:4530
25849 msgid "See also C<guestfs_mke2journal_U>."
25850 msgstr ""
25851
25852 #. type: =head2
25853 #: ../src/guestfs-actions.pod:4536
25854 msgid "guestfs_mke2journal"
25855 msgstr ""
25856
25857 #. type: verbatim
25858 #: ../src/guestfs-actions.pod:4538
25859 #, no-wrap
25860 msgid ""
25861 " int\n"
25862 " guestfs_mke2journal (guestfs_h *g,\n"
25863 "                      int blocksize,\n"
25864 "                      const char *device);\n"
25865 "\n"
25866 msgstr ""
25867
25868 #. type: =head2
25869 #: ../src/guestfs-actions.pod:4552
25870 msgid "guestfs_mke2journal_L"
25871 msgstr ""
25872
25873 #. type: verbatim
25874 #: ../src/guestfs-actions.pod:4554
25875 #, no-wrap
25876 msgid ""
25877 " int\n"
25878 " guestfs_mke2journal_L (guestfs_h *g,\n"
25879 "                        int blocksize,\n"
25880 "                        const char *label,\n"
25881 "                        const char *device);\n"
25882 "\n"
25883 msgstr ""
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:4566
25887 msgid "guestfs_mke2journal_U"
25888 msgstr ""
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:4568
25892 #, no-wrap
25893 msgid ""
25894 " int\n"
25895 " guestfs_mke2journal_U (guestfs_h *g,\n"
25896 "                        int blocksize,\n"
25897 "                        const char *uuid,\n"
25898 "                        const char *device);\n"
25899 "\n"
25900 msgstr ""
25901
25902 #. type: =head2
25903 #: ../src/guestfs-actions.pod:4580
25904 msgid "guestfs_mkfifo"
25905 msgstr ""
25906
25907 #. type: verbatim
25908 #: ../src/guestfs-actions.pod:4582
25909 #, no-wrap
25910 msgid ""
25911 " int\n"
25912 " guestfs_mkfifo (guestfs_h *g,\n"
25913 "                 int mode,\n"
25914 "                 const char *path);\n"
25915 "\n"
25916 msgstr ""
25917
25918 #. type: textblock
25919 #: ../src/guestfs-actions.pod:4587
25920 msgid ""
25921 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25922 "is just a convenient wrapper around C<guestfs_mknod>."
25923 msgstr ""
25924
25925 #. type: =head2
25926 #: ../src/guestfs-actions.pod:4597
25927 msgid "guestfs_mkfs"
25928 msgstr ""
25929
25930 #. type: verbatim
25931 #: ../src/guestfs-actions.pod:4599
25932 #, no-wrap
25933 msgid ""
25934 " int\n"
25935 " guestfs_mkfs (guestfs_h *g,\n"
25936 "               const char *fstype,\n"
25937 "               const char *device);\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: =head2
25942 #: ../src/guestfs-actions.pod:4612
25943 msgid "guestfs_mkfs_b"
25944 msgstr ""
25945
25946 #. type: verbatim
25947 #: ../src/guestfs-actions.pod:4614
25948 #, no-wrap
25949 msgid ""
25950 " int\n"
25951 " guestfs_mkfs_b (guestfs_h *g,\n"
25952 "                 const char *fstype,\n"
25953 "                 int blocksize,\n"
25954 "                 const char *device);\n"
25955 "\n"
25956 msgstr ""
25957
25958 #. type: textblock
25959 #: ../src/guestfs-actions.pod:4620
25960 msgid ""
25961 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
25962 "block size of the resulting filesystem.  Supported block sizes depend on the "
25963 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25964 msgstr ""
25965
25966 #. type: textblock
25967 #: ../src/guestfs-actions.pod:4630
25968 msgid ""
25969 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
25970 "call instead."
25971 msgstr ""
25972
25973 #. type: =head2
25974 #: ../src/guestfs-actions.pod:4639
25975 msgid "guestfs_mkfs_opts"
25976 msgstr ""
25977
25978 #. type: verbatim
25979 #: ../src/guestfs-actions.pod:4641
25980 #, no-wrap
25981 msgid ""
25982 " int\n"
25983 " guestfs_mkfs_opts (guestfs_h *g,\n"
25984 "                    const char *fstype,\n"
25985 "                    const char *device,\n"
25986 "                    ...);\n"
25987 "\n"
25988 msgstr ""
25989
25990 #. type: verbatim
25991 #: ../src/guestfs-actions.pod:4652
25992 #, no-wrap
25993 msgid ""
25994 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
25995 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
25996 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
25997 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
25998 "\n"
25999 msgstr ""
26000
26001 #. type: textblock
26002 #: ../src/guestfs-actions.pod:4700
26003 msgid "(Added in 1.7.19)"
26004 msgstr ""
26005
26006 #. type: =head2
26007 #: ../src/guestfs-actions.pod:4702
26008 msgid "guestfs_mkfs_opts_va"
26009 msgstr ""
26010
26011 #. type: verbatim
26012 #: ../src/guestfs-actions.pod:4704
26013 #, no-wrap
26014 msgid ""
26015 " int\n"
26016 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26017 "                       const char *fstype,\n"
26018 "                       const char *device,\n"
26019 "                       va_list args);\n"
26020 "\n"
26021 msgstr ""
26022
26023 #. type: textblock
26024 #: ../src/guestfs-actions.pod:4710
26025 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26026 msgstr ""
26027
26028 #. type: =head2
26029 #: ../src/guestfs-actions.pod:4714
26030 msgid "guestfs_mkfs_opts_argv"
26031 msgstr ""
26032
26033 #. type: verbatim
26034 #: ../src/guestfs-actions.pod:4716
26035 #, no-wrap
26036 msgid ""
26037 " int\n"
26038 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26039 "                         const char *fstype,\n"
26040 "                         const char *device,\n"
26041 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26042 "\n"
26043 msgstr ""
26044
26045 #. type: textblock
26046 #: ../src/guestfs-actions.pod:4722
26047 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26048 msgstr ""
26049
26050 #. type: =head2
26051 #: ../src/guestfs-actions.pod:4726
26052 msgid "guestfs_mkmountpoint"
26053 msgstr ""
26054
26055 #. type: verbatim
26056 #: ../src/guestfs-actions.pod:4728
26057 #, no-wrap
26058 msgid ""
26059 " int\n"
26060 " guestfs_mkmountpoint (guestfs_h *g,\n"
26061 "                       const char *exemptpath);\n"
26062 "\n"
26063 msgstr ""
26064
26065 #. type: textblock
26066 #: ../src/guestfs-actions.pod:4732
26067 msgid ""
26068 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26069 "that can be used to create extra mountpoints before mounting the first "
26070 "filesystem."
26071 msgstr ""
26072
26073 #. type: textblock
26074 #: ../src/guestfs-actions.pod:4756
26075 msgid ""
26076 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26077 "may get unexpected errors if you try to mix these calls.  It is safest to "
26078 "manually unmount filesystems and remove mountpoints after use."
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:4760
26083 msgid ""
26084 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26085 "first, so for this to work for manual mountpoints, you must ensure that the "
26086 "innermost mountpoints have the longest pathnames, as in the example code "
26087 "above."
26088 msgstr ""
26089
26090 #. type: textblock
26091 #: ../src/guestfs-actions.pod:4767
26092 msgid ""
26093 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26094 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26095 "can also trigger these issues."
26096 msgstr ""
26097
26098 #. type: textblock
26099 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089 ../src/guestfs-actions.pod:6099
26100 msgid "(Added in 1.0.62)"
26101 msgstr ""
26102
26103 #. type: =head2
26104 #: ../src/guestfs-actions.pod:4775
26105 msgid "guestfs_mknod"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../src/guestfs-actions.pod:4777
26110 #, no-wrap
26111 msgid ""
26112 " int\n"
26113 " guestfs_mknod (guestfs_h *g,\n"
26114 "                int mode,\n"
26115 "                int devmajor,\n"
26116 "                int devminor,\n"
26117 "                const char *path);\n"
26118 "\n"
26119 msgstr ""
26120
26121 #. type: textblock
26122 #: ../src/guestfs-actions.pod:4792
26123 msgid ""
26124 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26125 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26126 "regular file).  These constants are available in the standard Linux header "
26127 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26128 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26129 "the appropriate constant for you."
26130 msgstr ""
26131
26132 #. type: =head2
26133 #: ../src/guestfs-actions.pod:4806
26134 msgid "guestfs_mknod_b"
26135 msgstr ""
26136
26137 #. type: verbatim
26138 #: ../src/guestfs-actions.pod:4808
26139 #, no-wrap
26140 msgid ""
26141 " int\n"
26142 " guestfs_mknod_b (guestfs_h *g,\n"
26143 "                  int mode,\n"
26144 "                  int devmajor,\n"
26145 "                  int devminor,\n"
26146 "                  const char *path);\n"
26147 "\n"
26148 msgstr ""
26149
26150 #. type: textblock
26151 #: ../src/guestfs-actions.pod:4815
26152 msgid ""
26153 "This call creates a block device node called C<path> with mode C<mode> and "
26154 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26155 "wrapper around C<guestfs_mknod>."
26156 msgstr ""
26157
26158 #. type: =head2
26159 #: ../src/guestfs-actions.pod:4825
26160 msgid "guestfs_mknod_c"
26161 msgstr ""
26162
26163 #. type: verbatim
26164 #: ../src/guestfs-actions.pod:4827
26165 #, no-wrap
26166 msgid ""
26167 " int\n"
26168 " guestfs_mknod_c (guestfs_h *g,\n"
26169 "                  int mode,\n"
26170 "                  int devmajor,\n"
26171 "                  int devminor,\n"
26172 "                  const char *path);\n"
26173 "\n"
26174 msgstr ""
26175
26176 #. type: textblock
26177 #: ../src/guestfs-actions.pod:4834
26178 msgid ""
26179 "This call creates a char device node called C<path> with mode C<mode> and "
26180 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26181 "wrapper around C<guestfs_mknod>."
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../src/guestfs-actions.pod:4844
26186 msgid "guestfs_mkswap"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../src/guestfs-actions.pod:4846
26191 #, no-wrap
26192 msgid ""
26193 " int\n"
26194 " guestfs_mkswap (guestfs_h *g,\n"
26195 "                 const char *device);\n"
26196 "\n"
26197 msgstr ""
26198
26199 #. type: =head2
26200 #: ../src/guestfs-actions.pod:4856
26201 msgid "guestfs_mkswap_L"
26202 msgstr ""
26203
26204 #. type: verbatim
26205 #: ../src/guestfs-actions.pod:4858
26206 #, no-wrap
26207 msgid ""
26208 " int\n"
26209 " guestfs_mkswap_L (guestfs_h *g,\n"
26210 "                   const char *label,\n"
26211 "                   const char *device);\n"
26212 "\n"
26213 msgstr ""
26214
26215 #. type: =head2
26216 #: ../src/guestfs-actions.pod:4873
26217 msgid "guestfs_mkswap_U"
26218 msgstr ""
26219
26220 #. type: verbatim
26221 #: ../src/guestfs-actions.pod:4875
26222 #, no-wrap
26223 msgid ""
26224 " int\n"
26225 " guestfs_mkswap_U (guestfs_h *g,\n"
26226 "                   const char *uuid,\n"
26227 "                   const char *device);\n"
26228 "\n"
26229 msgstr ""
26230
26231 #. type: =head2
26232 #: ../src/guestfs-actions.pod:4886
26233 msgid "guestfs_mkswap_file"
26234 msgstr ""
26235
26236 #. type: verbatim
26237 #: ../src/guestfs-actions.pod:4888
26238 #, no-wrap
26239 msgid ""
26240 " int\n"
26241 " guestfs_mkswap_file (guestfs_h *g,\n"
26242 "                      const char *path);\n"
26243 "\n"
26244 msgstr ""
26245
26246 #. type: textblock
26247 #: ../src/guestfs-actions.pod:4894
26248 msgid ""
26249 "This command just writes a swap file signature to an existing file.  To "
26250 "create the file itself, use something like C<guestfs_fallocate>."
26251 msgstr ""
26252
26253 #. type: =head2
26254 #: ../src/guestfs-actions.pod:4901
26255 msgid "guestfs_modprobe"
26256 msgstr ""
26257
26258 #. type: verbatim
26259 #: ../src/guestfs-actions.pod:4903
26260 #, no-wrap
26261 msgid ""
26262 " int\n"
26263 " guestfs_modprobe (guestfs_h *g,\n"
26264 "                   const char *modulename);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../src/guestfs-actions.pod:4916
26270 msgid "guestfs_mount"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../src/guestfs-actions.pod:4918
26275 #, no-wrap
26276 msgid ""
26277 " int\n"
26278 " guestfs_mount (guestfs_h *g,\n"
26279 "                const char *device,\n"
26280 "                const char *mountpoint);\n"
26281 "\n"
26282 msgstr ""
26283
26284 #. type: textblock
26285 #: ../src/guestfs-actions.pod:4937
26286 msgid ""
26287 "B<Important note:> When you use this call, the filesystem options C<sync> "
26288 "and C<noatime> are set implicitly.  This was originally done because we "
26289 "thought it would improve reliability, but it turns out that I<-o sync> has a "
26290 "very large negative performance impact and negligible effect on "
26291 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
26292 "in any code that needs performance, and instead use C<guestfs_mount_options> "
26293 "(use an empty string for the first parameter if you don't want any options)."
26294 msgstr ""
26295
26296 #. type: textblock
26297 #: ../src/guestfs-actions.pod:4949
26298 msgid ""
26299 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
26300 "call instead."
26301 msgstr ""
26302
26303 #. type: =head2
26304 #: ../src/guestfs-actions.pod:4958
26305 msgid "guestfs_mount_9p"
26306 msgstr ""
26307
26308 #. type: verbatim
26309 #: ../src/guestfs-actions.pod:4960
26310 #, no-wrap
26311 msgid ""
26312 " int\n"
26313 " guestfs_mount_9p (guestfs_h *g,\n"
26314 "                   const char *mounttag,\n"
26315 "                   const char *mountpoint,\n"
26316 "                   ...);\n"
26317 "\n"
26318 msgstr ""
26319
26320 #. type: verbatim
26321 #: ../src/guestfs-actions.pod:4971
26322 #, no-wrap
26323 msgid ""
26324 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: =head2
26329 #: ../src/guestfs-actions.pod:4984
26330 msgid "guestfs_mount_9p_va"
26331 msgstr ""
26332
26333 #. type: verbatim
26334 #: ../src/guestfs-actions.pod:4986
26335 #, no-wrap
26336 msgid ""
26337 " int\n"
26338 " guestfs_mount_9p_va (guestfs_h *g,\n"
26339 "                      const char *mounttag,\n"
26340 "                      const char *mountpoint,\n"
26341 "                      va_list args);\n"
26342 "\n"
26343 msgstr ""
26344
26345 #. type: textblock
26346 #: ../src/guestfs-actions.pod:4992
26347 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26348 msgstr ""
26349
26350 #. type: =head2
26351 #: ../src/guestfs-actions.pod:4996
26352 msgid "guestfs_mount_9p_argv"
26353 msgstr ""
26354
26355 #. type: verbatim
26356 #: ../src/guestfs-actions.pod:4998
26357 #, no-wrap
26358 msgid ""
26359 " int\n"
26360 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26361 "                        const char *mounttag,\n"
26362 "                        const char *mountpoint,\n"
26363 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26364 "\n"
26365 msgstr ""
26366
26367 #. type: textblock
26368 #: ../src/guestfs-actions.pod:5004
26369 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26370 msgstr ""
26371
26372 #. type: =head2
26373 #: ../src/guestfs-actions.pod:5008
26374 msgid "guestfs_mount_loop"
26375 msgstr ""
26376
26377 #. type: verbatim
26378 #: ../src/guestfs-actions.pod:5010
26379 #, no-wrap
26380 msgid ""
26381 " int\n"
26382 " guestfs_mount_loop (guestfs_h *g,\n"
26383 "                     const char *file,\n"
26384 "                     const char *mountpoint);\n"
26385 "\n"
26386 msgstr ""
26387
26388 #. type: =head2
26389 #: ../src/guestfs-actions.pod:5023
26390 msgid "guestfs_mount_options"
26391 msgstr ""
26392
26393 #. type: verbatim
26394 #: ../src/guestfs-actions.pod:5025
26395 #, no-wrap
26396 msgid ""
26397 " int\n"
26398 " guestfs_mount_options (guestfs_h *g,\n"
26399 "                        const char *options,\n"
26400 "                        const char *device,\n"
26401 "                        const char *mountpoint);\n"
26402 "\n"
26403 msgstr ""
26404
26405 #. type: textblock
26406 #: ../src/guestfs-actions.pod:5031
26407 msgid ""
26408 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26409 "the mount options as for the L<mount(8)> I<-o> flag."
26410 msgstr ""
26411
26412 #. type: textblock
26413 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055 ../src/guestfs-actions.pod:5072
26414 msgid "(Added in 1.0.10)"
26415 msgstr ""
26416
26417 #. type: =head2
26418 #: ../src/guestfs-actions.pod:5043
26419 msgid "guestfs_mount_ro"
26420 msgstr ""
26421
26422 #. type: verbatim
26423 #: ../src/guestfs-actions.pod:5045
26424 #, no-wrap
26425 msgid ""
26426 " int\n"
26427 " guestfs_mount_ro (guestfs_h *g,\n"
26428 "                   const char *device,\n"
26429 "                   const char *mountpoint);\n"
26430 "\n"
26431 msgstr ""
26432
26433 #. type: textblock
26434 #: ../src/guestfs-actions.pod:5050
26435 msgid ""
26436 "This is the same as the C<guestfs_mount> command, but it mounts the "
26437 "filesystem with the read-only (I<-o ro>) flag."
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../src/guestfs-actions.pod:5057
26442 msgid "guestfs_mount_vfs"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../src/guestfs-actions.pod:5059
26447 #, no-wrap
26448 msgid ""
26449 " int\n"
26450 " guestfs_mount_vfs (guestfs_h *g,\n"
26451 "                    const char *options,\n"
26452 "                    const char *vfstype,\n"
26453 "                    const char *device,\n"
26454 "                    const char *mountpoint);\n"
26455 "\n"
26456 msgstr ""
26457
26458 #. type: textblock
26459 #: ../src/guestfs-actions.pod:5066
26460 msgid ""
26461 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26462 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
26463 "I<-t> flags."
26464 msgstr ""
26465
26466 #. type: =head2
26467 #: ../src/guestfs-actions.pod:5074
26468 msgid "guestfs_mountpoints"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:5076
26473 #, no-wrap
26474 msgid ""
26475 " char **\n"
26476 " guestfs_mountpoints (guestfs_h *g);\n"
26477 "\n"
26478 msgstr ""
26479
26480 #. type: textblock
26481 #: ../src/guestfs-actions.pod:5079
26482 msgid ""
26483 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
26484 "devices.  This one returns a hash table (map) of device name to directory "
26485 "where the device is mounted."
26486 msgstr ""
26487
26488 #. type: =head2
26489 #: ../src/guestfs-actions.pod:5091
26490 msgid "guestfs_mounts"
26491 msgstr ""
26492
26493 #. type: verbatim
26494 #: ../src/guestfs-actions.pod:5093
26495 #, no-wrap
26496 msgid ""
26497 " char **\n"
26498 " guestfs_mounts (guestfs_h *g);\n"
26499 "\n"
26500 msgstr ""
26501
26502 #. type: textblock
26503 #: ../src/guestfs-actions.pod:5101
26504 msgid "See also: C<guestfs_mountpoints>"
26505 msgstr ""
26506
26507 #. type: =head2
26508 #: ../src/guestfs-actions.pod:5109
26509 msgid "guestfs_mv"
26510 msgstr ""
26511
26512 #. type: verbatim
26513 #: ../src/guestfs-actions.pod:5111
26514 #, no-wrap
26515 msgid ""
26516 " int\n"
26517 " guestfs_mv (guestfs_h *g,\n"
26518 "             const char *src,\n"
26519 "             const char *dest);\n"
26520 "\n"
26521 msgstr ""
26522
26523 #. type: =head2
26524 #: ../src/guestfs-actions.pod:5123
26525 msgid "guestfs_ntfs_3g_probe"
26526 msgstr ""
26527
26528 #. type: verbatim
26529 #: ../src/guestfs-actions.pod:5125
26530 #, no-wrap
26531 msgid ""
26532 " int\n"
26533 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
26534 "                        int rw,\n"
26535 "                        const char *device);\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: textblock
26540 #: ../src/guestfs-actions.pod:5144
26541 msgid "(Added in 1.0.43)"
26542 msgstr ""
26543
26544 #. type: =head2
26545 #: ../src/guestfs-actions.pod:5146
26546 msgid "guestfs_ntfsresize"
26547 msgstr ""
26548
26549 #. type: verbatim
26550 #: ../src/guestfs-actions.pod:5148
26551 #, no-wrap
26552 msgid ""
26553 " int\n"
26554 " guestfs_ntfsresize (guestfs_h *g,\n"
26555 "                     const char *device);\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: textblock
26560 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5257
26561 msgid ""
26562 "This function is deprecated.  In new code, use the "
26563 "L</guestfs_ntfsresize_opts> call instead."
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../src/guestfs-actions.pod:5176
26568 msgid "guestfs_ntfsresize_opts"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../src/guestfs-actions.pod:5178
26573 #, no-wrap
26574 msgid ""
26575 " int\n"
26576 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
26577 "                          const char *device,\n"
26578 "                          ...);\n"
26579 "\n"
26580 msgstr ""
26581
26582 #. type: verbatim
26583 #: ../src/guestfs-actions.pod:5188
26584 #, no-wrap
26585 msgid ""
26586 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
26587 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../src/guestfs-actions.pod:5208
26593 msgid ""
26594 "After the resize operation, the filesystem is always marked as requiring a "
26595 "consistency check (for safety).  You have to boot into Windows to perform "
26596 "this check and clear this condition.  If you I<don't> set the C<force> "
26597 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
26598 "times on a single filesystem without booting into Windows between each "
26599 "resize."
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:5223
26604 msgid "guestfs_ntfsresize_opts_va"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:5225
26609 #, no-wrap
26610 msgid ""
26611 " int\n"
26612 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
26613 "                             const char *device,\n"
26614 "                             va_list args);\n"
26615 "\n"
26616 msgstr ""
26617
26618 #. type: textblock
26619 #: ../src/guestfs-actions.pod:5230
26620 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
26621 msgstr ""
26622
26623 #. type: =head2
26624 #: ../src/guestfs-actions.pod:5234
26625 msgid "guestfs_ntfsresize_opts_argv"
26626 msgstr ""
26627
26628 #. type: verbatim
26629 #: ../src/guestfs-actions.pod:5236
26630 #, no-wrap
26631 msgid ""
26632 " int\n"
26633 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
26634 "                               const char *device,\n"
26635 "                               const struct guestfs_ntfsresize_opts_argv "
26636 "*optargs);\n"
26637 "\n"
26638 msgstr ""
26639
26640 #. type: textblock
26641 #: ../src/guestfs-actions.pod:5241
26642 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
26643 msgstr ""
26644
26645 #. type: =head2
26646 #: ../src/guestfs-actions.pod:5245
26647 msgid "guestfs_ntfsresize_size"
26648 msgstr ""
26649
26650 #. type: verbatim
26651 #: ../src/guestfs-actions.pod:5247
26652 #, no-wrap
26653 msgid ""
26654 " int\n"
26655 " guestfs_ntfsresize_size (guestfs_h *g,\n"
26656 "                          const char *device,\n"
26657 "                          int64_t size);\n"
26658 "\n"
26659 msgstr ""
26660
26661 #. type: textblock
26662 #: ../src/guestfs-actions.pod:5252
26663 msgid ""
26664 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
26665 "to specify the new size (in bytes) explicitly."
26666 msgstr ""
26667
26668 #. type: textblock
26669 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047 ../src/guestfs-actions.pod:7670
26670 msgid "(Added in 1.3.14)"
26671 msgstr ""
26672
26673 #. type: =head2
26674 #: ../src/guestfs-actions.pod:5266
26675 msgid "guestfs_part_add"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../src/guestfs-actions.pod:5268
26680 #, no-wrap
26681 msgid ""
26682 " int\n"
26683 " guestfs_part_add (guestfs_h *g,\n"
26684 "                   const char *device,\n"
26685 "                   const char *prlogex,\n"
26686 "                   int64_t startsect,\n"
26687 "                   int64_t endsect);\n"
26688 "\n"
26689 msgstr ""
26690
26691 #. type: textblock
26692 #: ../src/guestfs-actions.pod:5275
26693 msgid ""
26694 "This command adds a partition to C<device>.  If there is no partition table "
26695 "on the device, call C<guestfs_part_init> first."
26696 msgstr ""
26697
26698 #. type: textblock
26699 #: ../src/guestfs-actions.pod:5287
26700 msgid ""
26701 "Creating a partition which covers the whole disk is not so easy.  Use "
26702 "C<guestfs_part_disk> to do that."
26703 msgstr ""
26704
26705 #. type: textblock
26706 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5564
26707 msgid "(Added in 1.0.78)"
26708 msgstr ""
26709
26710 #. type: =head2
26711 #: ../src/guestfs-actions.pod:5294
26712 msgid "guestfs_part_del"
26713 msgstr ""
26714
26715 #. type: verbatim
26716 #: ../src/guestfs-actions.pod:5296
26717 #, no-wrap
26718 msgid ""
26719 " int\n"
26720 " guestfs_part_del (guestfs_h *g,\n"
26721 "                   const char *device,\n"
26722 "                   int partnum);\n"
26723 "\n"
26724 msgstr ""
26725
26726 #. type: =head2
26727 #: ../src/guestfs-actions.pod:5311
26728 msgid "guestfs_part_disk"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../src/guestfs-actions.pod:5313
26733 #, no-wrap
26734 msgid ""
26735 " int\n"
26736 " guestfs_part_disk (guestfs_h *g,\n"
26737 "                    const char *device,\n"
26738 "                    const char *parttype);\n"
26739 "\n"
26740 msgstr ""
26741
26742 #. type: textblock
26743 #: ../src/guestfs-actions.pod:5318
26744 msgid ""
26745 "This command is simply a combination of C<guestfs_part_init> followed by "
26746 "C<guestfs_part_add> to create a single primary partition covering the whole "
26747 "disk."
26748 msgstr ""
26749
26750 #. type: textblock
26751 #: ../src/guestfs-actions.pod:5322
26752 msgid ""
26753 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26754 "possible values are described in C<guestfs_part_init>."
26755 msgstr ""
26756
26757 #. type: =head2
26758 #: ../src/guestfs-actions.pod:5332
26759 msgid "guestfs_part_get_bootable"
26760 msgstr ""
26761
26762 #. type: verbatim
26763 #: ../src/guestfs-actions.pod:5334
26764 #, no-wrap
26765 msgid ""
26766 " int\n"
26767 " guestfs_part_get_bootable (guestfs_h *g,\n"
26768 "                            const char *device,\n"
26769 "                            int partnum);\n"
26770 "\n"
26771 msgstr ""
26772
26773 #. type: textblock
26774 #: ../src/guestfs-actions.pod:5342
26775 msgid "See also C<guestfs_part_set_bootable>."
26776 msgstr ""
26777
26778 #. type: =head2
26779 #: ../src/guestfs-actions.pod:5348
26780 msgid "guestfs_part_get_mbr_id"
26781 msgstr ""
26782
26783 #. type: verbatim
26784 #: ../src/guestfs-actions.pod:5350
26785 #, no-wrap
26786 msgid ""
26787 " int\n"
26788 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
26789 "                          const char *device,\n"
26790 "                          int partnum);\n"
26791 "\n"
26792 msgstr ""
26793
26794 #. type: textblock
26795 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
26796 msgid ""
26797 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26798 "undefined results for other partition table types (see "
26799 "C<guestfs_part_get_parttype>)."
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:5366
26804 msgid "guestfs_part_get_parttype"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:5368
26809 #, no-wrap
26810 msgid ""
26811 " char *\n"
26812 " guestfs_part_get_parttype (guestfs_h *g,\n"
26813 "                            const char *device);\n"
26814 "\n"
26815 msgstr ""
26816
26817 #. type: textblock
26818 #: ../src/guestfs-actions.pod:5375
26819 msgid ""
26820 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26821 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26822 "possible, although unusual.  See C<guestfs_part_init> for a full list."
26823 msgstr ""
26824
26825 #. type: =head2
26826 #: ../src/guestfs-actions.pod:5385
26827 msgid "guestfs_part_init"
26828 msgstr ""
26829
26830 #. type: verbatim
26831 #: ../src/guestfs-actions.pod:5387
26832 #, no-wrap
26833 msgid ""
26834 " int\n"
26835 " guestfs_part_init (guestfs_h *g,\n"
26836 "                    const char *device,\n"
26837 "                    const char *parttype);\n"
26838 "\n"
26839 msgstr ""
26840
26841 #. type: textblock
26842 #: ../src/guestfs-actions.pod:5396
26843 msgid ""
26844 "Initially there are no partitions.  Following this, you should call "
26845 "C<guestfs_part_add> for each partition required."
26846 msgstr ""
26847
26848 #. type: =head2
26849 #: ../src/guestfs-actions.pod:5469
26850 msgid "guestfs_part_list"
26851 msgstr ""
26852
26853 #. type: verbatim
26854 #: ../src/guestfs-actions.pod:5471
26855 #, no-wrap
26856 msgid ""
26857 " struct guestfs_partition_list *\n"
26858 " guestfs_part_list (guestfs_h *g,\n"
26859 "                    const char *device);\n"
26860 "\n"
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../src/guestfs-actions.pod:5488
26865 msgid ""
26866 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26867 "the device's sector size, see C<guestfs_blockdev_getss>."
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../src/guestfs-actions.pod:5501
26872 msgid ""
26873 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
26874 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
26875 "use>."
26876 msgstr ""
26877
26878 #. type: =head2
26879 #: ../src/guestfs-actions.pod:5507
26880 msgid "guestfs_part_set_bootable"
26881 msgstr ""
26882
26883 #. type: verbatim
26884 #: ../src/guestfs-actions.pod:5509
26885 #, no-wrap
26886 msgid ""
26887 " int\n"
26888 " guestfs_part_set_bootable (guestfs_h *g,\n"
26889 "                            const char *device,\n"
26890 "                            int partnum,\n"
26891 "                            int bootable);\n"
26892 "\n"
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:5526
26897 msgid "guestfs_part_set_mbr_id"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:5528
26902 #, no-wrap
26903 msgid ""
26904 " int\n"
26905 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
26906 "                          const char *device,\n"
26907 "                          int partnum,\n"
26908 "                          int idbyte);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:5548
26914 msgid "guestfs_part_set_name"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:5550
26919 #, no-wrap
26920 msgid ""
26921 " int\n"
26922 " guestfs_part_set_name (guestfs_h *g,\n"
26923 "                        const char *device,\n"
26924 "                        int partnum,\n"
26925 "                        const char *name);\n"
26926 "\n"
26927 msgstr ""
26928
26929 #. type: =head2
26930 #: ../src/guestfs-actions.pod:5566
26931 msgid "guestfs_part_to_dev"
26932 msgstr ""
26933
26934 #. type: verbatim
26935 #: ../src/guestfs-actions.pod:5568
26936 #, no-wrap
26937 msgid ""
26938 " char *\n"
26939 " guestfs_part_to_dev (guestfs_h *g,\n"
26940 "                      const char *partition);\n"
26941 "\n"
26942 msgstr ""
26943
26944 #. type: textblock
26945 #: ../src/guestfs-actions.pod:5576
26946 msgid ""
26947 "The named partition must exist, for example as a string returned from "
26948 "C<guestfs_list_partitions>."
26949 msgstr ""
26950
26951 #. type: =head2
26952 #: ../src/guestfs-actions.pod:5584
26953 msgid "guestfs_ping_daemon"
26954 msgstr ""
26955
26956 #. type: verbatim
26957 #: ../src/guestfs-actions.pod:5586
26958 #, no-wrap
26959 msgid ""
26960 " int\n"
26961 " guestfs_ping_daemon (guestfs_h *g);\n"
26962 "\n"
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:5598
26967 msgid "guestfs_pread"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:5600
26972 #, no-wrap
26973 msgid ""
26974 " char *\n"
26975 " guestfs_pread (guestfs_h *g,\n"
26976 "                const char *path,\n"
26977 "                int count,\n"
26978 "                int64_t offset,\n"
26979 "                size_t *size_r);\n"
26980 "\n"
26981 msgstr ""
26982
26983 #. type: textblock
26984 #: ../src/guestfs-actions.pod:5613
26985 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
26986 msgstr ""
26987
26988 #. type: =head2
26989 #: ../src/guestfs-actions.pod:5624
26990 msgid "guestfs_pread_device"
26991 msgstr ""
26992
26993 #. type: verbatim
26994 #: ../src/guestfs-actions.pod:5626
26995 #, no-wrap
26996 msgid ""
26997 " char *\n"
26998 " guestfs_pread_device (guestfs_h *g,\n"
26999 "                       const char *device,\n"
27000 "                       int count,\n"
27001 "                       int64_t offset,\n"
27002 "                       size_t *size_r);\n"
27003 "\n"
27004 msgstr ""
27005
27006 #. type: textblock
27007 #: ../src/guestfs-actions.pod:5639
27008 msgid "See also C<guestfs_pread>."
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../src/guestfs-actions.pod:5648
27013 msgid "(Added in 1.5.21)"
27014 msgstr ""
27015
27016 #. type: =head2
27017 #: ../src/guestfs-actions.pod:5650
27018 msgid "guestfs_pvcreate"
27019 msgstr ""
27020
27021 #. type: verbatim
27022 #: ../src/guestfs-actions.pod:5652
27023 #, no-wrap
27024 msgid ""
27025 " int\n"
27026 " guestfs_pvcreate (guestfs_h *g,\n"
27027 "                   const char *device);\n"
27028 "\n"
27029 msgstr ""
27030
27031 #. type: =head2
27032 #: ../src/guestfs-actions.pod:5664
27033 msgid "guestfs_pvremove"
27034 msgstr ""
27035
27036 #. type: verbatim
27037 #: ../src/guestfs-actions.pod:5666
27038 #, no-wrap
27039 msgid ""
27040 " int\n"
27041 " guestfs_pvremove (guestfs_h *g,\n"
27042 "                   const char *device);\n"
27043 "\n"
27044 msgstr ""
27045
27046 #. type: =head2
27047 #: ../src/guestfs-actions.pod:5681
27048 msgid "guestfs_pvresize"
27049 msgstr ""
27050
27051 #. type: verbatim
27052 #: ../src/guestfs-actions.pod:5683
27053 #, no-wrap
27054 msgid ""
27055 " int\n"
27056 " guestfs_pvresize (guestfs_h *g,\n"
27057 "                   const char *device);\n"
27058 "\n"
27059 msgstr ""
27060
27061 #. type: =head2
27062 #: ../src/guestfs-actions.pod:5694
27063 msgid "guestfs_pvresize_size"
27064 msgstr ""
27065
27066 #. type: verbatim
27067 #: ../src/guestfs-actions.pod:5696
27068 #, no-wrap
27069 msgid ""
27070 " int\n"
27071 " guestfs_pvresize_size (guestfs_h *g,\n"
27072 "                        const char *device,\n"
27073 "                        int64_t size);\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: textblock
27078 #: ../src/guestfs-actions.pod:5701
27079 msgid ""
27080 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27081 "specify the new size (in bytes) explicitly."
27082 msgstr ""
27083
27084 #. type: =head2
27085 #: ../src/guestfs-actions.pod:5708
27086 msgid "guestfs_pvs"
27087 msgstr ""
27088
27089 #. type: verbatim
27090 #: ../src/guestfs-actions.pod:5710
27091 #, no-wrap
27092 msgid ""
27093 " char **\n"
27094 " guestfs_pvs (guestfs_h *g);\n"
27095 "\n"
27096 msgstr ""
27097
27098 #. type: textblock
27099 #: ../src/guestfs-actions.pod:5719
27100 msgid "See also C<guestfs_pvs_full>."
27101 msgstr ""
27102
27103 #. type: =head2
27104 #: ../src/guestfs-actions.pod:5727
27105 msgid "guestfs_pvs_full"
27106 msgstr ""
27107
27108 #. type: verbatim
27109 #: ../src/guestfs-actions.pod:5729
27110 #, no-wrap
27111 msgid ""
27112 " struct guestfs_lvm_pv_list *\n"
27113 " guestfs_pvs_full (guestfs_h *g);\n"
27114 "\n"
27115 msgstr ""
27116
27117 #. type: textblock
27118 #: ../src/guestfs-actions.pod:5735
27119 msgid ""
27120 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27121 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27122 "use>."
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../src/guestfs-actions.pod:5741
27127 msgid "guestfs_pvuuid"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../src/guestfs-actions.pod:5743
27132 #, no-wrap
27133 msgid ""
27134 " char *\n"
27135 " guestfs_pvuuid (guestfs_h *g,\n"
27136 "                 const char *device);\n"
27137 "\n"
27138 msgstr ""
27139
27140 #. type: =head2
27141 #: ../src/guestfs-actions.pod:5754
27142 msgid "guestfs_pwrite"
27143 msgstr ""
27144
27145 #. type: verbatim
27146 #: ../src/guestfs-actions.pod:5756
27147 #, no-wrap
27148 msgid ""
27149 " int\n"
27150 " guestfs_pwrite (guestfs_h *g,\n"
27151 "                 const char *path,\n"
27152 "                 const char *content,\n"
27153 "                 size_t content_size,\n"
27154 "                 int64_t offset);\n"
27155 "\n"
27156 msgstr ""
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:5772
27160 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27161 msgstr ""
27162
27163 #. type: =head2
27164 #: ../src/guestfs-actions.pod:5781
27165 msgid "guestfs_pwrite_device"
27166 msgstr ""
27167
27168 #. type: verbatim
27169 #: ../src/guestfs-actions.pod:5783
27170 #, no-wrap
27171 msgid ""
27172 " int\n"
27173 " guestfs_pwrite_device (guestfs_h *g,\n"
27174 "                        const char *device,\n"
27175 "                        const char *content,\n"
27176 "                        size_t content_size,\n"
27177 "                        int64_t offset);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:5798
27183 msgid "See also C<guestfs_pwrite>."
27184 msgstr ""
27185
27186 #. type: textblock
27187 #: ../src/guestfs-actions.pod:5805
27188 msgid "(Added in 1.5.20)"
27189 msgstr ""
27190
27191 #. type: =head2
27192 #: ../src/guestfs-actions.pod:5807
27193 msgid "guestfs_read_file"
27194 msgstr ""
27195
27196 #. type: verbatim
27197 #: ../src/guestfs-actions.pod:5809
27198 #, no-wrap
27199 msgid ""
27200 " char *\n"
27201 " guestfs_read_file (guestfs_h *g,\n"
27202 "                    const char *path,\n"
27203 "                    size_t *size_r);\n"
27204 "\n"
27205 msgstr ""
27206
27207 #. type: textblock
27208 #: ../src/guestfs-actions.pod:5817
27209 msgid ""
27210 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27211 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27212 "function is limited in the total size of file that can be handled."
27213 msgstr ""
27214
27215 #. type: textblock
27216 #: ../src/guestfs-actions.pod:5829
27217 msgid "(Added in 1.0.63)"
27218 msgstr ""
27219
27220 #. type: =head2
27221 #: ../src/guestfs-actions.pod:5831
27222 msgid "guestfs_read_lines"
27223 msgstr ""
27224
27225 #. type: verbatim
27226 #: ../src/guestfs-actions.pod:5833
27227 #, no-wrap
27228 msgid ""
27229 " char **\n"
27230 " guestfs_read_lines (guestfs_h *g,\n"
27231 "                     const char *path);\n"
27232 "\n"
27233 msgstr ""
27234
27235 #. type: textblock
27236 #: ../src/guestfs-actions.pod:5842
27237 msgid ""
27238 "Note that this function cannot correctly handle binary files (specifically, "
27239 "files containing C<\\0> character which is treated as end of line).  For "
27240 "those you need to use the C<guestfs_read_file> function which has a more "
27241 "complex interface."
27242 msgstr ""
27243
27244 #. type: =head2
27245 #: ../src/guestfs-actions.pod:5853
27246 msgid "guestfs_readdir"
27247 msgstr ""
27248
27249 #. type: verbatim
27250 #: ../src/guestfs-actions.pod:5855
27251 #, no-wrap
27252 msgid ""
27253 " struct guestfs_dirent_list *\n"
27254 " guestfs_readdir (guestfs_h *g,\n"
27255 "                  const char *dir);\n"
27256 "\n"
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../src/guestfs-actions.pod:5909
27261 msgid ""
27262 "This function is primarily intended for use by programs.  To get a simple "
27263 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27264 "consumption, use C<guestfs_ll>."
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../src/guestfs-actions.pod:5913
27269 msgid ""
27270 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27271 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27272 "use>."
27273 msgstr ""
27274
27275 #. type: =head2
27276 #: ../src/guestfs-actions.pod:5919
27277 msgid "guestfs_readlink"
27278 msgstr ""
27279
27280 #. type: verbatim
27281 #: ../src/guestfs-actions.pod:5921
27282 #, no-wrap
27283 msgid ""
27284 " char *\n"
27285 " guestfs_readlink (guestfs_h *g,\n"
27286 "                   const char *path);\n"
27287 "\n"
27288 msgstr ""
27289
27290 #. type: =head2
27291 #: ../src/guestfs-actions.pod:5932
27292 msgid "guestfs_readlinklist"
27293 msgstr ""
27294
27295 #. type: verbatim
27296 #: ../src/guestfs-actions.pod:5934
27297 #, no-wrap
27298 msgid ""
27299 " char **\n"
27300 " guestfs_readlinklist (guestfs_h *g,\n"
27301 "                       const char *path,\n"
27302 "                       char *const *names);\n"
27303 "\n"
27304 msgstr ""
27305
27306 #. type: =head2
27307 #: ../src/guestfs-actions.pod:5967
27308 msgid "guestfs_realpath"
27309 msgstr ""
27310
27311 #. type: verbatim
27312 #: ../src/guestfs-actions.pod:5969
27313 #, no-wrap
27314 msgid ""
27315 " char *\n"
27316 " guestfs_realpath (guestfs_h *g,\n"
27317 "                   const char *path);\n"
27318 "\n"
27319 msgstr ""
27320
27321 #. type: =head2
27322 #: ../src/guestfs-actions.pod:5981
27323 msgid "guestfs_removexattr"
27324 msgstr ""
27325
27326 #. type: verbatim
27327 #: ../src/guestfs-actions.pod:5983
27328 #, no-wrap
27329 msgid ""
27330 " int\n"
27331 " guestfs_removexattr (guestfs_h *g,\n"
27332 "                      const char *xattr,\n"
27333 "                      const char *path);\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: textblock
27338 #: ../src/guestfs-actions.pod:5991
27339 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../src/guestfs-actions.pod:5997
27344 msgid "guestfs_resize2fs"
27345 msgstr ""
27346
27347 #. type: verbatim
27348 #: ../src/guestfs-actions.pod:5999
27349 #, no-wrap
27350 msgid ""
27351 " int\n"
27352 " guestfs_resize2fs (guestfs_h *g,\n"
27353 "                    const char *device);\n"
27354 "\n"
27355 msgstr ""
27356
27357 #. type: textblock
27358 #: ../src/guestfs-actions.pod:6006
27359 msgid ""
27360 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27361 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27362 "sometimes gives an error about this and sometimes not.  In any case, it is "
27363 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27364 msgstr ""
27365
27366 #. type: =head2
27367 #: ../src/guestfs-actions.pod:6016
27368 msgid "guestfs_resize2fs_M"
27369 msgstr ""
27370
27371 #. type: verbatim
27372 #: ../src/guestfs-actions.pod:6018
27373 #, no-wrap
27374 msgid ""
27375 " int\n"
27376 " guestfs_resize2fs_M (guestfs_h *g,\n"
27377 "                      const char *device);\n"
27378 "\n"
27379 msgstr ""
27380
27381 #. type: textblock
27382 #: ../src/guestfs-actions.pod:6022
27383 msgid ""
27384 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27385 "resized to its minimum size.  This works like the I<-M> option to the "
27386 "C<resize2fs> command."
27387 msgstr ""
27388
27389 #. type: textblock
27390 #: ../src/guestfs-actions.pod:6026
27391 msgid ""
27392 "To get the resulting size of the filesystem you should call "
27393 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27394 "These two numbers, multiplied together, give the resulting size of the "
27395 "minimal filesystem in bytes."
27396 msgstr ""
27397
27398 #. type: =head2
27399 #: ../src/guestfs-actions.pod:6035
27400 msgid "guestfs_resize2fs_size"
27401 msgstr ""
27402
27403 #. type: verbatim
27404 #: ../src/guestfs-actions.pod:6037
27405 #, no-wrap
27406 msgid ""
27407 " int\n"
27408 " guestfs_resize2fs_size (guestfs_h *g,\n"
27409 "                         const char *device,\n"
27410 "                         int64_t size);\n"
27411 "\n"
27412 msgstr ""
27413
27414 #. type: textblock
27415 #: ../src/guestfs-actions.pod:6042
27416 msgid ""
27417 "This command is the same as C<guestfs_resize2fs> except that it allows you "
27418 "to specify the new size (in bytes) explicitly."
27419 msgstr ""
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:6049
27423 msgid "guestfs_rm"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:6051
27428 #, no-wrap
27429 msgid ""
27430 " int\n"
27431 " guestfs_rm (guestfs_h *g,\n"
27432 "             const char *path);\n"
27433 "\n"
27434 msgstr ""
27435
27436 #. type: =head2
27437 #: ../src/guestfs-actions.pod:6061
27438 msgid "guestfs_rm_rf"
27439 msgstr ""
27440
27441 #. type: verbatim
27442 #: ../src/guestfs-actions.pod:6063
27443 #, no-wrap
27444 msgid ""
27445 " int\n"
27446 " guestfs_rm_rf (guestfs_h *g,\n"
27447 "                const char *path);\n"
27448 "\n"
27449 msgstr ""
27450
27451 #. type: =head2
27452 #: ../src/guestfs-actions.pod:6075
27453 msgid "guestfs_rmdir"
27454 msgstr ""
27455
27456 #. type: verbatim
27457 #: ../src/guestfs-actions.pod:6077
27458 #, no-wrap
27459 msgid ""
27460 " int\n"
27461 " guestfs_rmdir (guestfs_h *g,\n"
27462 "                const char *path);\n"
27463 "\n"
27464 msgstr ""
27465
27466 #. type: =head2
27467 #: ../src/guestfs-actions.pod:6087
27468 msgid "guestfs_rmmountpoint"
27469 msgstr ""
27470
27471 #. type: verbatim
27472 #: ../src/guestfs-actions.pod:6089
27473 #, no-wrap
27474 msgid ""
27475 " int\n"
27476 " guestfs_rmmountpoint (guestfs_h *g,\n"
27477 "                       const char *exemptpath);\n"
27478 "\n"
27479 msgstr ""
27480
27481 #. type: textblock
27482 #: ../src/guestfs-actions.pod:6093
27483 msgid ""
27484 "This calls removes a mountpoint that was previously created with "
27485 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
27486 msgstr ""
27487
27488 #. type: =head2
27489 #: ../src/guestfs-actions.pod:6101
27490 msgid "guestfs_scrub_device"
27491 msgstr ""
27492
27493 #. type: verbatim
27494 #: ../src/guestfs-actions.pod:6103
27495 #, no-wrap
27496 msgid ""
27497 " int\n"
27498 " guestfs_scrub_device (guestfs_h *g,\n"
27499 "                       const char *device);\n"
27500 "\n"
27501 msgstr ""
27502
27503 #. type: textblock
27504 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6155
27505 msgid "(Added in 1.0.52)"
27506 msgstr ""
27507
27508 #. type: =head2
27509 #: ../src/guestfs-actions.pod:6120
27510 msgid "guestfs_scrub_file"
27511 msgstr ""
27512
27513 #. type: verbatim
27514 #: ../src/guestfs-actions.pod:6122
27515 #, no-wrap
27516 msgid ""
27517 " int\n"
27518 " guestfs_scrub_file (guestfs_h *g,\n"
27519 "                     const char *file);\n"
27520 "\n"
27521 msgstr ""
27522
27523 #. type: =head2
27524 #: ../src/guestfs-actions.pod:6138
27525 msgid "guestfs_scrub_freespace"
27526 msgstr ""
27527
27528 #. type: verbatim
27529 #: ../src/guestfs-actions.pod:6140
27530 #, no-wrap
27531 msgid ""
27532 " int\n"
27533 " guestfs_scrub_freespace (guestfs_h *g,\n"
27534 "                          const char *dir);\n"
27535 "\n"
27536 msgstr ""
27537
27538 #. type: textblock
27539 #: ../src/guestfs-actions.pod:6144
27540 msgid ""
27541 "This command creates the directory C<dir> and then fills it with files until "
27542 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
27543 "and deletes them.  The intention is to scrub any free space on the partition "
27544 "containing C<dir>."
27545 msgstr ""
27546
27547 #. type: =head2
27548 #: ../src/guestfs-actions.pod:6157
27549 msgid "guestfs_set_append"
27550 msgstr ""
27551
27552 #. type: verbatim
27553 #: ../src/guestfs-actions.pod:6159
27554 #, no-wrap
27555 msgid ""
27556 " int\n"
27557 " guestfs_set_append (guestfs_h *g,\n"
27558 "                     const char *append);\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: =head2
27563 #: ../src/guestfs-actions.pod:6176
27564 msgid "guestfs_set_attach_method"
27565 msgstr ""
27566
27567 #. type: verbatim
27568 #: ../src/guestfs-actions.pod:6178
27569 #, no-wrap
27570 msgid ""
27571 " int\n"
27572 " guestfs_set_attach_method (guestfs_h *g,\n"
27573 "                            const char *attachmethod);\n"
27574 "\n"
27575 msgstr ""
27576
27577 #. type: =head2
27578 #: ../src/guestfs-actions.pod:6206
27579 msgid "guestfs_set_autosync"
27580 msgstr ""
27581
27582 #. type: verbatim
27583 #: ../src/guestfs-actions.pod:6208
27584 #, no-wrap
27585 msgid ""
27586 " int\n"
27587 " guestfs_set_autosync (guestfs_h *g,\n"
27588 "                       int autosync);\n"
27589 "\n"
27590 msgstr ""
27591
27592 #. type: =head2
27593 #: ../src/guestfs-actions.pod:6224
27594 msgid "guestfs_set_direct"
27595 msgstr ""
27596
27597 #. type: verbatim
27598 #: ../src/guestfs-actions.pod:6226
27599 #, no-wrap
27600 msgid ""
27601 " int\n"
27602 " guestfs_set_direct (guestfs_h *g,\n"
27603 "                     int direct);\n"
27604 "\n"
27605 msgstr ""
27606
27607 #. type: textblock
27608 #: ../src/guestfs-actions.pod:6234
27609 msgid ""
27610 "One consequence of this is that log messages aren't caught by the library "
27611 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
27612 "stdout."
27613 msgstr ""
27614
27615 #. type: =head2
27616 #: ../src/guestfs-actions.pod:6247
27617 msgid "guestfs_set_e2label"
27618 msgstr ""
27619
27620 #. type: verbatim
27621 #: ../src/guestfs-actions.pod:6249
27622 #, no-wrap
27623 msgid ""
27624 " int\n"
27625 " guestfs_set_e2label (guestfs_h *g,\n"
27626 "                      const char *device,\n"
27627 "                      const char *label);\n"
27628 "\n"
27629 msgstr ""
27630
27631 #. type: textblock
27632 #: ../src/guestfs-actions.pod:6258
27633 msgid ""
27634 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
27635 "the existing label on a filesystem."
27636 msgstr ""
27637
27638 #. type: =head2
27639 #: ../src/guestfs-actions.pod:6265
27640 msgid "guestfs_set_e2uuid"
27641 msgstr ""
27642
27643 #. type: verbatim
27644 #: ../src/guestfs-actions.pod:6267
27645 #, no-wrap
27646 msgid ""
27647 " int\n"
27648 " guestfs_set_e2uuid (guestfs_h *g,\n"
27649 "                     const char *device,\n"
27650 "                     const char *uuid);\n"
27651 "\n"
27652 msgstr ""
27653
27654 #. type: textblock
27655 #: ../src/guestfs-actions.pod:6277
27656 msgid ""
27657 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
27658 "the existing UUID of a filesystem."
27659 msgstr ""
27660
27661 #. type: =head2
27662 #: ../src/guestfs-actions.pod:6284
27663 msgid "guestfs_set_memsize"
27664 msgstr ""
27665
27666 #. type: verbatim
27667 #: ../src/guestfs-actions.pod:6286
27668 #, no-wrap
27669 msgid ""
27670 " int\n"
27671 " guestfs_set_memsize (guestfs_h *g,\n"
27672 "                      int memsize);\n"
27673 "\n"
27674 msgstr ""
27675
27676 #. type: textblock
27677 #: ../src/guestfs-actions.pod:6290
27678 msgid ""
27679 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
27680 "This only has any effect if called before C<guestfs_launch>."
27681 msgstr ""
27682
27683 #. type: =head2
27684 #: ../src/guestfs-actions.pod:6305
27685 msgid "guestfs_set_network"
27686 msgstr ""
27687
27688 #. type: verbatim
27689 #: ../src/guestfs-actions.pod:6307
27690 #, no-wrap
27691 msgid ""
27692 " int\n"
27693 " guestfs_set_network (guestfs_h *g,\n"
27694 "                      int network);\n"
27695 "\n"
27696 msgstr ""
27697
27698 #. type: textblock
27699 #: ../src/guestfs-actions.pod:6317
27700 msgid ""
27701 "You must call this before calling C<guestfs_launch>, otherwise it has no "
27702 "effect."
27703 msgstr ""
27704
27705 #. type: =head2
27706 #: ../src/guestfs-actions.pod:6324
27707 msgid "guestfs_set_path"
27708 msgstr ""
27709
27710 #. type: verbatim
27711 #: ../src/guestfs-actions.pod:6326
27712 #, no-wrap
27713 msgid ""
27714 " int\n"
27715 " guestfs_set_path (guestfs_h *g,\n"
27716 "                   const char *searchpath);\n"
27717 "\n"
27718 msgstr ""
27719
27720 #. type: =head2
27721 #: ../src/guestfs-actions.pod:6341
27722 msgid "guestfs_set_pgroup"
27723 msgstr ""
27724
27725 #. type: verbatim
27726 #: ../src/guestfs-actions.pod:6343
27727 #, no-wrap
27728 msgid ""
27729 " int\n"
27730 " guestfs_set_pgroup (guestfs_h *g,\n"
27731 "                     int pgroup);\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: =head2
27736 #: ../src/guestfs-actions.pod:6360
27737 msgid "guestfs_set_qemu"
27738 msgstr ""
27739
27740 #. type: verbatim
27741 #: ../src/guestfs-actions.pod:6362
27742 #, no-wrap
27743 msgid ""
27744 " int\n"
27745 " guestfs_set_qemu (guestfs_h *g,\n"
27746 "                   const char *qemu);\n"
27747 "\n"
27748 msgstr ""
27749
27750 #. type: =head2
27751 #: ../src/guestfs-actions.pod:6388
27752 msgid "guestfs_set_recovery_proc"
27753 msgstr ""
27754
27755 #. type: verbatim
27756 #: ../src/guestfs-actions.pod:6390
27757 #, no-wrap
27758 msgid ""
27759 " int\n"
27760 " guestfs_set_recovery_proc (guestfs_h *g,\n"
27761 "                            int recoveryproc);\n"
27762 "\n"
27763 msgstr ""
27764
27765 #. type: textblock
27766 #: ../src/guestfs-actions.pod:6394
27767 msgid ""
27768 "If this is called with the parameter C<false> then C<guestfs_launch> does "
27769 "not create a recovery process.  The purpose of the recovery process is to "
27770 "stop runaway qemu processes in the case where the main program aborts "
27771 "abruptly."
27772 msgstr ""
27773
27774 #. type: textblock
27775 #: ../src/guestfs-actions.pod:6399
27776 msgid ""
27777 "This only has any effect if called before C<guestfs_launch>, and the default "
27778 "is true."
27779 msgstr ""
27780
27781 #. type: =head2
27782 #: ../src/guestfs-actions.pod:6412
27783 msgid "guestfs_set_selinux"
27784 msgstr ""
27785
27786 #. type: verbatim
27787 #: ../src/guestfs-actions.pod:6414
27788 #, no-wrap
27789 msgid ""
27790 " int\n"
27791 " guestfs_set_selinux (guestfs_h *g,\n"
27792 "                      int selinux);\n"
27793 "\n"
27794 msgstr ""
27795
27796 #. type: =head2
27797 #: ../src/guestfs-actions.pod:6431
27798 msgid "guestfs_set_trace"
27799 msgstr ""
27800
27801 #. type: verbatim
27802 #: ../src/guestfs-actions.pod:6433
27803 #, no-wrap
27804 msgid ""
27805 " int\n"
27806 " guestfs_set_trace (guestfs_h *g,\n"
27807 "                    int trace);\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: textblock
27812 #: ../src/guestfs-actions.pod:6447
27813 msgid ""
27814 "Trace messages are normally sent to C<stderr>, unless you register a "
27815 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27816 msgstr ""
27817
27818 #. type: =head2
27819 #: ../src/guestfs-actions.pod:6455
27820 msgid "guestfs_set_verbose"
27821 msgstr ""
27822
27823 #. type: verbatim
27824 #: ../src/guestfs-actions.pod:6457
27825 #, no-wrap
27826 msgid ""
27827 " int\n"
27828 " guestfs_set_verbose (guestfs_h *g,\n"
27829 "                      int verbose);\n"
27830 "\n"
27831 msgstr ""
27832
27833 #. type: textblock
27834 #: ../src/guestfs-actions.pod:6466
27835 msgid ""
27836 "Verbose messages are normally sent to C<stderr>, unless you register a "
27837 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27838 msgstr ""
27839
27840 #. type: =head2
27841 #: ../src/guestfs-actions.pod:6474
27842 msgid "guestfs_setcon"
27843 msgstr ""
27844
27845 #. type: verbatim
27846 #: ../src/guestfs-actions.pod:6476
27847 #, no-wrap
27848 msgid ""
27849 " int\n"
27850 " guestfs_setcon (guestfs_h *g,\n"
27851 "                 const char *context);\n"
27852 "\n"
27853 msgstr ""
27854
27855 #. type: =head2
27856 #: ../src/guestfs-actions.pod:6489
27857 msgid "guestfs_setxattr"
27858 msgstr ""
27859
27860 #. type: verbatim
27861 #: ../src/guestfs-actions.pod:6491
27862 #, no-wrap
27863 msgid ""
27864 " int\n"
27865 " guestfs_setxattr (guestfs_h *g,\n"
27866 "                   const char *xattr,\n"
27867 "                   const char *val,\n"
27868 "                   int vallen,\n"
27869 "                   const char *path);\n"
27870 "\n"
27871 msgstr ""
27872
27873 #. type: textblock
27874 #: ../src/guestfs-actions.pod:6502
27875 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
27876 msgstr ""
27877
27878 #. type: =head2
27879 #: ../src/guestfs-actions.pod:6508
27880 msgid "guestfs_sfdisk"
27881 msgstr ""
27882
27883 #. type: verbatim
27884 #: ../src/guestfs-actions.pod:6510
27885 #, no-wrap
27886 msgid ""
27887 " int\n"
27888 " guestfs_sfdisk (guestfs_h *g,\n"
27889 "                 const char *device,\n"
27890 "                 int cyls,\n"
27891 "                 int heads,\n"
27892 "                 int sectors,\n"
27893 "                 char *const *lines);\n"
27894 "\n"
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../src/guestfs-actions.pod:6538
27899 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
27900 msgstr ""
27901
27902 #. type: textblock
27903 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6576 ../src/guestfs-actions.pod:6609
27904 msgid ""
27905 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
27906 "instead."
27907 msgstr ""
27908
27909 #. type: =head2
27910 #: ../src/guestfs-actions.pod:6555
27911 msgid "guestfs_sfdiskM"
27912 msgstr ""
27913
27914 #. type: verbatim
27915 #: ../src/guestfs-actions.pod:6557
27916 #, no-wrap
27917 msgid ""
27918 " int\n"
27919 " guestfs_sfdiskM (guestfs_h *g,\n"
27920 "                  const char *device,\n"
27921 "                  char *const *lines);\n"
27922 "\n"
27923 msgstr ""
27924
27925 #. type: textblock
27926 #: ../src/guestfs-actions.pod:6562
27927 msgid ""
27928 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
27929 "partition sizes are specified in megabytes only (rounded to the nearest "
27930 "cylinder) and you don't need to specify the cyls, heads and sectors "
27931 "parameters which were rarely if ever used anyway."
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:6568
27936 msgid ""
27937 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
27938 "C<guestfs_part_disk>"
27939 msgstr ""
27940
27941 #. type: =head2
27942 #: ../src/guestfs-actions.pod:6585
27943 msgid "guestfs_sfdisk_N"
27944 msgstr ""
27945
27946 #. type: verbatim
27947 #: ../src/guestfs-actions.pod:6587
27948 #, no-wrap
27949 msgid ""
27950 " int\n"
27951 " guestfs_sfdisk_N (guestfs_h *g,\n"
27952 "                   const char *device,\n"
27953 "                   int partnum,\n"
27954 "                   int cyls,\n"
27955 "                   int heads,\n"
27956 "                   int sectors,\n"
27957 "                   const char *line);\n"
27958 "\n"
27959 msgstr ""
27960
27961 #. type: textblock
27962 #: ../src/guestfs-actions.pod:6599
27963 msgid ""
27964 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
27965 "for the cyls/heads/sectors parameters."
27966 msgstr ""
27967
27968 #. type: textblock
27969 #: ../src/guestfs-actions.pod:6602
27970 msgid "See also: C<guestfs_part_add>"
27971 msgstr ""
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:6618
27975 msgid "guestfs_sfdisk_disk_geometry"
27976 msgstr ""
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:6620
27980 #, no-wrap
27981 msgid ""
27982 " char *\n"
27983 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
27984 "                               const char *device);\n"
27985 "\n"
27986 msgstr ""
27987
27988 #. type: textblock
27989 #: ../src/guestfs-actions.pod:6624
27990 msgid ""
27991 "This displays the disk geometry of C<device> read from the partition table.  "
27992 "Especially in the case where the underlying block device has been resized, "
27993 "this can be different from the kernel's idea of the geometry (see "
27994 "C<guestfs_sfdisk_kernel_geometry>)."
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:6637
27999 msgid "guestfs_sfdisk_kernel_geometry"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:6639
28004 #, no-wrap
28005 msgid ""
28006 " char *\n"
28007 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28008 "                                 const char *device);\n"
28009 "\n"
28010 msgstr ""
28011
28012 #. type: =head2
28013 #: ../src/guestfs-actions.pod:6653
28014 msgid "guestfs_sfdisk_l"
28015 msgstr ""
28016
28017 #. type: verbatim
28018 #: ../src/guestfs-actions.pod:6655
28019 #, no-wrap
28020 msgid ""
28021 " char *\n"
28022 " guestfs_sfdisk_l (guestfs_h *g,\n"
28023 "                   const char *device);\n"
28024 "\n"
28025 msgstr ""
28026
28027 #. type: textblock
28028 #: ../src/guestfs-actions.pod:6663
28029 msgid "See also: C<guestfs_part_list>"
28030 msgstr ""
28031
28032 #. type: textblock
28033 #: ../src/guestfs-actions.pod:6668
28034 msgid ""
28035 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
28036 "call instead."
28037 msgstr ""
28038
28039 #. type: =head2
28040 #: ../src/guestfs-actions.pod:6677
28041 msgid "guestfs_sh"
28042 msgstr ""
28043
28044 #. type: verbatim
28045 #: ../src/guestfs-actions.pod:6679
28046 #, no-wrap
28047 msgid ""
28048 " char *\n"
28049 " guestfs_sh (guestfs_h *g,\n"
28050 "             const char *command);\n"
28051 "\n"
28052 msgstr ""
28053
28054 #. type: textblock
28055 #: ../src/guestfs-actions.pod:6686
28056 msgid "This is like C<guestfs_command>, but passes the command to:"
28057 msgstr ""
28058
28059 #. type: textblock
28060 #: ../src/guestfs-actions.pod:6694
28061 msgid "All the provisos about C<guestfs_command> apply to this call."
28062 msgstr ""
28063
28064 #. type: =head2
28065 #: ../src/guestfs-actions.pod:6701
28066 msgid "guestfs_sh_lines"
28067 msgstr ""
28068
28069 #. type: verbatim
28070 #: ../src/guestfs-actions.pod:6703
28071 #, no-wrap
28072 msgid ""
28073 " char **\n"
28074 " guestfs_sh_lines (guestfs_h *g,\n"
28075 "                   const char *command);\n"
28076 "\n"
28077 msgstr ""
28078
28079 #. type: textblock
28080 #: ../src/guestfs-actions.pod:6707
28081 msgid ""
28082 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28083 "lines."
28084 msgstr ""
28085
28086 #. type: textblock
28087 #: ../src/guestfs-actions.pod:6710
28088 msgid "See also: C<guestfs_command_lines>"
28089 msgstr ""
28090
28091 #. type: =head2
28092 #: ../src/guestfs-actions.pod:6718
28093 msgid "guestfs_sleep"
28094 msgstr ""
28095
28096 #. type: verbatim
28097 #: ../src/guestfs-actions.pod:6720
28098 #, no-wrap
28099 msgid ""
28100 " int\n"
28101 " guestfs_sleep (guestfs_h *g,\n"
28102 "                int secs);\n"
28103 "\n"
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:6728
28108 msgid "(Added in 1.0.41)"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
28113 msgid "guestfs_stat"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:6732
28118 #, no-wrap
28119 msgid ""
28120 " struct guestfs_stat *\n"
28121 " guestfs_stat (guestfs_h *g,\n"
28122 "               const char *path);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: =head2
28127 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
28128 msgid "guestfs_statvfs"
28129 msgstr ""
28130
28131 #. type: verbatim
28132 #: ../src/guestfs-actions.pod:6748
28133 #, no-wrap
28134 msgid ""
28135 " struct guestfs_statvfs *\n"
28136 " guestfs_statvfs (guestfs_h *g,\n"
28137 "                  const char *path);\n"
28138 "\n"
28139 msgstr ""
28140
28141 #. type: textblock
28142 #: ../src/guestfs-actions.pod:6758
28143 msgid ""
28144 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28145 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28146 msgstr ""
28147
28148 #. type: =head2
28149 #: ../src/guestfs-actions.pod:6764
28150 msgid "guestfs_strings"
28151 msgstr ""
28152
28153 #. type: verbatim
28154 #: ../src/guestfs-actions.pod:6766
28155 #, no-wrap
28156 msgid ""
28157 " char **\n"
28158 " guestfs_strings (guestfs_h *g,\n"
28159 "                  const char *path);\n"
28160 "\n"
28161 msgstr ""
28162
28163 #. type: =head2
28164 #: ../src/guestfs-actions.pod:6782
28165 msgid "guestfs_strings_e"
28166 msgstr ""
28167
28168 #. type: verbatim
28169 #: ../src/guestfs-actions.pod:6784
28170 #, no-wrap
28171 msgid ""
28172 " char **\n"
28173 " guestfs_strings_e (guestfs_h *g,\n"
28174 "                    const char *encoding,\n"
28175 "                    const char *path);\n"
28176 "\n"
28177 msgstr ""
28178
28179 #. type: textblock
28180 #: ../src/guestfs-actions.pod:6789
28181 msgid ""
28182 "This is like the C<guestfs_strings> command, but allows you to specify the "
28183 "encoding of strings that are looked for in the source file C<path>."
28184 msgstr ""
28185
28186 #. type: textblock
28187 #: ../src/guestfs-actions.pod:6799
28188 msgid ""
28189 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28190 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28191 msgstr ""
28192
28193 #. type: =head2
28194 #: ../src/guestfs-actions.pod:6837
28195 msgid "guestfs_swapoff_device"
28196 msgstr ""
28197
28198 #. type: verbatim
28199 #: ../src/guestfs-actions.pod:6839
28200 #, no-wrap
28201 msgid ""
28202 " int\n"
28203 " guestfs_swapoff_device (guestfs_h *g,\n"
28204 "                         const char *device);\n"
28205 "\n"
28206 msgstr ""
28207
28208 #. type: textblock
28209 #: ../src/guestfs-actions.pod:6843
28210 msgid ""
28211 "This command disables the libguestfs appliance swap device or partition "
28212 "named C<device>.  See C<guestfs_swapon_device>."
28213 msgstr ""
28214
28215 #. type: =head2
28216 #: ../src/guestfs-actions.pod:6851
28217 msgid "guestfs_swapoff_file"
28218 msgstr ""
28219
28220 #. type: verbatim
28221 #: ../src/guestfs-actions.pod:6853
28222 #, no-wrap
28223 msgid ""
28224 " int\n"
28225 " guestfs_swapoff_file (guestfs_h *g,\n"
28226 "                       const char *file);\n"
28227 "\n"
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:6863
28232 msgid "guestfs_swapoff_label"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:6865
28237 #, no-wrap
28238 msgid ""
28239 " int\n"
28240 " guestfs_swapoff_label (guestfs_h *g,\n"
28241 "                        const char *label);\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: =head2
28246 #: ../src/guestfs-actions.pod:6876
28247 msgid "guestfs_swapoff_uuid"
28248 msgstr ""
28249
28250 #. type: verbatim
28251 #: ../src/guestfs-actions.pod:6878
28252 #, no-wrap
28253 msgid ""
28254 " int\n"
28255 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28256 "                       const char *uuid);\n"
28257 "\n"
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:6889
28262 msgid "guestfs_swapon_device"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:6891
28267 #, no-wrap
28268 msgid ""
28269 " int\n"
28270 " guestfs_swapon_device (guestfs_h *g,\n"
28271 "                        const char *device);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../src/guestfs-actions.pod:6895
28277 msgid ""
28278 "This command enables the libguestfs appliance to use the swap device or "
28279 "partition named C<device>.  The increased memory is made available for all "
28280 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28281 msgstr ""
28282
28283 #. type: =head2
28284 #: ../src/guestfs-actions.pod:6911
28285 msgid "guestfs_swapon_file"
28286 msgstr ""
28287
28288 #. type: verbatim
28289 #: ../src/guestfs-actions.pod:6913
28290 #, no-wrap
28291 msgid ""
28292 " int\n"
28293 " guestfs_swapon_file (guestfs_h *g,\n"
28294 "                      const char *file);\n"
28295 "\n"
28296 msgstr ""
28297
28298 #. type: textblock
28299 #: ../src/guestfs-actions.pod:6917
28300 msgid ""
28301 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28302 "notes."
28303 msgstr ""
28304
28305 #. type: =head2
28306 #: ../src/guestfs-actions.pod:6924
28307 msgid "guestfs_swapon_label"
28308 msgstr ""
28309
28310 #. type: verbatim
28311 #: ../src/guestfs-actions.pod:6926
28312 #, no-wrap
28313 msgid ""
28314 " int\n"
28315 " guestfs_swapon_label (guestfs_h *g,\n"
28316 "                       const char *label);\n"
28317 "\n"
28318 msgstr ""
28319
28320 #. type: textblock
28321 #: ../src/guestfs-actions.pod:6930
28322 msgid ""
28323 "This command enables swap to a labeled swap partition.  See "
28324 "C<guestfs_swapon_device> for other notes."
28325 msgstr ""
28326
28327 #. type: =head2
28328 #: ../src/guestfs-actions.pod:6937
28329 msgid "guestfs_swapon_uuid"
28330 msgstr ""
28331
28332 #. type: verbatim
28333 #: ../src/guestfs-actions.pod:6939
28334 #, no-wrap
28335 msgid ""
28336 " int\n"
28337 " guestfs_swapon_uuid (guestfs_h *g,\n"
28338 "                      const char *uuid);\n"
28339 "\n"
28340 msgstr ""
28341
28342 #. type: textblock
28343 #: ../src/guestfs-actions.pod:6943
28344 msgid ""
28345 "This command enables swap to a swap partition with the given UUID.  See "
28346 "C<guestfs_swapon_device> for other notes."
28347 msgstr ""
28348
28349 #. type: =head2
28350 #: ../src/guestfs-actions.pod:6950
28351 msgid "guestfs_sync"
28352 msgstr ""
28353
28354 #. type: verbatim
28355 #: ../src/guestfs-actions.pod:6952
28356 #, no-wrap
28357 msgid ""
28358 " int\n"
28359 " guestfs_sync (guestfs_h *g);\n"
28360 "\n"
28361 msgstr ""
28362
28363 #. type: =head2
28364 #: ../src/guestfs-actions.pod:6965
28365 msgid "guestfs_tail"
28366 msgstr ""
28367
28368 #. type: verbatim
28369 #: ../src/guestfs-actions.pod:6967
28370 #, no-wrap
28371 msgid ""
28372 " char **\n"
28373 " guestfs_tail (guestfs_h *g,\n"
28374 "               const char *path);\n"
28375 "\n"
28376 msgstr ""
28377
28378 #. type: =head2
28379 #: ../src/guestfs-actions.pod:6983
28380 msgid "guestfs_tail_n"
28381 msgstr ""
28382
28383 #. type: verbatim
28384 #: ../src/guestfs-actions.pod:6985
28385 #, no-wrap
28386 msgid ""
28387 " char **\n"
28388 " guestfs_tail_n (guestfs_h *g,\n"
28389 "                 int nrlines,\n"
28390 "                 const char *path);\n"
28391 "\n"
28392 msgstr ""
28393
28394 #. type: =head2
28395 #: ../src/guestfs-actions.pod:7007
28396 msgid "guestfs_tar_in"
28397 msgstr ""
28398
28399 #. type: verbatim
28400 #: ../src/guestfs-actions.pod:7009
28401 #, no-wrap
28402 msgid ""
28403 " int\n"
28404 " guestfs_tar_in (guestfs_h *g,\n"
28405 "                 const char *tarfile,\n"
28406 "                 const char *directory);\n"
28407 "\n"
28408 msgstr ""
28409
28410 #. type: textblock
28411 #: ../src/guestfs-actions.pod:7017
28412 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
28413 msgstr ""
28414
28415 #. type: textblock
28416 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
28417 msgid "(Added in 1.0.3)"
28418 msgstr ""
28419
28420 #. type: =head2
28421 #: ../src/guestfs-actions.pod:7024
28422 msgid "guestfs_tar_out"
28423 msgstr ""
28424
28425 #. type: verbatim
28426 #: ../src/guestfs-actions.pod:7026
28427 #, no-wrap
28428 msgid ""
28429 " int\n"
28430 " guestfs_tar_out (guestfs_h *g,\n"
28431 "                  const char *directory,\n"
28432 "                  const char *tarfile);\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: textblock
28437 #: ../src/guestfs-actions.pod:7034
28438 msgid ""
28439 "To download a compressed tarball, use C<guestfs_tgz_out> or "
28440 "C<guestfs_txz_out>."
28441 msgstr ""
28442
28443 #. type: =head2
28444 #: ../src/guestfs-actions.pod:7041
28445 msgid "guestfs_tgz_in"
28446 msgstr ""
28447
28448 #. type: verbatim
28449 #: ../src/guestfs-actions.pod:7043
28450 #, no-wrap
28451 msgid ""
28452 " int\n"
28453 " guestfs_tgz_in (guestfs_h *g,\n"
28454 "                 const char *tarball,\n"
28455 "                 const char *directory);\n"
28456 "\n"
28457 msgstr ""
28458
28459 #. type: textblock
28460 #: ../src/guestfs-actions.pod:7051
28461 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
28462 msgstr ""
28463
28464 #. type: =head2
28465 #: ../src/guestfs-actions.pod:7057
28466 msgid "guestfs_tgz_out"
28467 msgstr ""
28468
28469 #. type: verbatim
28470 #: ../src/guestfs-actions.pod:7059
28471 #, no-wrap
28472 msgid ""
28473 " int\n"
28474 " guestfs_tgz_out (guestfs_h *g,\n"
28475 "                  const char *directory,\n"
28476 "                  const char *tarball);\n"
28477 "\n"
28478 msgstr ""
28479
28480 #. type: textblock
28481 #: ../src/guestfs-actions.pod:7067
28482 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
28483 msgstr ""
28484
28485 #. type: =head2
28486 #: ../src/guestfs-actions.pod:7073
28487 msgid "guestfs_touch"
28488 msgstr ""
28489
28490 #. type: verbatim
28491 #: ../src/guestfs-actions.pod:7075
28492 #, no-wrap
28493 msgid ""
28494 " int\n"
28495 " guestfs_touch (guestfs_h *g,\n"
28496 "                const char *path);\n"
28497 "\n"
28498 msgstr ""
28499
28500 #. type: =head2
28501 #: ../src/guestfs-actions.pod:7090
28502 msgid "guestfs_truncate"
28503 msgstr ""
28504
28505 #. type: verbatim
28506 #: ../src/guestfs-actions.pod:7092
28507 #, no-wrap
28508 msgid ""
28509 " int\n"
28510 " guestfs_truncate (guestfs_h *g,\n"
28511 "                   const char *path);\n"
28512 "\n"
28513 msgstr ""
28514
28515 #. type: =head2
28516 #: ../src/guestfs-actions.pod:7103
28517 msgid "guestfs_truncate_size"
28518 msgstr ""
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:7105
28522 #, no-wrap
28523 msgid ""
28524 " int\n"
28525 " guestfs_truncate_size (guestfs_h *g,\n"
28526 "                        const char *path,\n"
28527 "                        int64_t size);\n"
28528 "\n"
28529 msgstr ""
28530
28531 #. type: textblock
28532 #: ../src/guestfs-actions.pod:7113
28533 msgid ""
28534 "If the current file size is less than C<size> then the file is extended to "
28535 "the required size with zero bytes.  This creates a sparse file (ie. disk "
28536 "blocks are not allocated for the file until you write to it).  To create a "
28537 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:7123
28542 msgid "guestfs_tune2fs_l"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:7125
28547 #, no-wrap
28548 msgid ""
28549 " char **\n"
28550 " guestfs_tune2fs_l (guestfs_h *g,\n"
28551 "                    const char *device);\n"
28552 "\n"
28553 msgstr ""
28554
28555 #. type: =head2
28556 #: ../src/guestfs-actions.pod:7145
28557 msgid "guestfs_txz_in"
28558 msgstr ""
28559
28560 #. type: verbatim
28561 #: ../src/guestfs-actions.pod:7147
28562 #, no-wrap
28563 msgid ""
28564 " int\n"
28565 " guestfs_txz_in (guestfs_h *g,\n"
28566 "                 const char *tarball,\n"
28567 "                 const char *directory);\n"
28568 "\n"
28569 msgstr ""
28570
28571 #. type: =head2
28572 #: ../src/guestfs-actions.pod:7159
28573 msgid "guestfs_txz_out"
28574 msgstr ""
28575
28576 #. type: verbatim
28577 #: ../src/guestfs-actions.pod:7161
28578 #, no-wrap
28579 msgid ""
28580 " int\n"
28581 " guestfs_txz_out (guestfs_h *g,\n"
28582 "                  const char *directory,\n"
28583 "                  const char *tarball);\n"
28584 "\n"
28585 msgstr ""
28586
28587 #. type: =head2
28588 #: ../src/guestfs-actions.pod:7173
28589 msgid "guestfs_umask"
28590 msgstr ""
28591
28592 #. type: verbatim
28593 #: ../src/guestfs-actions.pod:7175
28594 #, no-wrap
28595 msgid ""
28596 " int\n"
28597 " guestfs_umask (guestfs_h *g,\n"
28598 "                int mask);\n"
28599 "\n"
28600 msgstr ""
28601
28602 #. type: textblock
28603 #: ../src/guestfs-actions.pod:7191
28604 msgid ""
28605 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
28606 "C<guestfs_mkdir>."
28607 msgstr ""
28608
28609 #. type: =head2
28610 #: ../src/guestfs-actions.pod:7200
28611 msgid "guestfs_umount"
28612 msgstr ""
28613
28614 #. type: verbatim
28615 #: ../src/guestfs-actions.pod:7202
28616 #, no-wrap
28617 msgid ""
28618 " int\n"
28619 " guestfs_umount (guestfs_h *g,\n"
28620 "                 const char *pathordevice);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:7214
28626 msgid "guestfs_umount_all"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:7216
28631 #, no-wrap
28632 msgid ""
28633 " int\n"
28634 " guestfs_umount_all (guestfs_h *g);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: =head2
28639 #: ../src/guestfs-actions.pod:7227
28640 msgid "guestfs_upload"
28641 msgstr ""
28642
28643 #. type: verbatim
28644 #: ../src/guestfs-actions.pod:7229
28645 #, no-wrap
28646 msgid ""
28647 " int\n"
28648 " guestfs_upload (guestfs_h *g,\n"
28649 "                 const char *filename,\n"
28650 "                 const char *remotefilename);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../src/guestfs-actions.pod:7239
28656 msgid "See also C<guestfs_download>."
28657 msgstr ""
28658
28659 #. type: =head2
28660 #: ../src/guestfs-actions.pod:7250
28661 msgid "guestfs_upload_offset"
28662 msgstr ""
28663
28664 #. type: verbatim
28665 #: ../src/guestfs-actions.pod:7252
28666 #, no-wrap
28667 msgid ""
28668 " int\n"
28669 " guestfs_upload_offset (guestfs_h *g,\n"
28670 "                        const char *filename,\n"
28671 "                        const char *remotefilename,\n"
28672 "                        int64_t offset);\n"
28673 "\n"
28674 msgstr ""
28675
28676 #. type: textblock
28677 #: ../src/guestfs-actions.pod:7268
28678 msgid ""
28679 "Note that there is no limit on the amount of data that can be uploaded with "
28680 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
28681 "full amount unless an error occurs."
28682 msgstr ""
28683
28684 #. type: textblock
28685 #: ../src/guestfs-actions.pod:7273
28686 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
28687 msgstr ""
28688
28689 #. type: =head2
28690 #: ../src/guestfs-actions.pod:7284
28691 msgid "guestfs_utimens"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../src/guestfs-actions.pod:7286
28696 #, no-wrap
28697 msgid ""
28698 " int\n"
28699 " guestfs_utimens (guestfs_h *g,\n"
28700 "                  const char *path,\n"
28701 "                  int64_t atsecs,\n"
28702 "                  int64_t atnsecs,\n"
28703 "                  int64_t mtsecs,\n"
28704 "                  int64_t mtnsecs);\n"
28705 "\n"
28706 msgstr ""
28707
28708 #. type: =head2
28709 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
28710 msgid "guestfs_version"
28711 msgstr ""
28712
28713 #. type: verbatim
28714 #: ../src/guestfs-actions.pod:7317
28715 #, no-wrap
28716 msgid ""
28717 " struct guestfs_version *\n"
28718 " guestfs_version (guestfs_h *g);\n"
28719 "\n"
28720 msgstr ""
28721
28722 #. type: textblock
28723 #: ../src/guestfs-actions.pod:7345
28724 msgid ""
28725 "I<Note:> Don't use this call to test for availability of features.  In "
28726 "enterprise distributions we backport features from later versions into "
28727 "earlier versions, making this an unreliable way to test for features.  Use "
28728 "C<guestfs_available> instead."
28729 msgstr ""
28730
28731 #. type: textblock
28732 #: ../src/guestfs-actions.pod:7351
28733 msgid ""
28734 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
28735 "error.  I<The caller must call C<guestfs_free_version> after use>."
28736 msgstr ""
28737
28738 #. type: textblock
28739 #: ../src/guestfs-actions.pod:7355
28740 msgid "(Added in 1.0.58)"
28741 msgstr ""
28742
28743 #. type: =head2
28744 #: ../src/guestfs-actions.pod:7357
28745 msgid "guestfs_vfs_label"
28746 msgstr ""
28747
28748 #. type: verbatim
28749 #: ../src/guestfs-actions.pod:7359
28750 #, no-wrap
28751 msgid ""
28752 " char *\n"
28753 " guestfs_vfs_label (guestfs_h *g,\n"
28754 "                    const char *device);\n"
28755 "\n"
28756 msgstr ""
28757
28758 #. type: textblock
28759 #: ../src/guestfs-actions.pod:7368
28760 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
28761 msgstr ""
28762
28763 #. type: textblock
28764 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
28765 msgid "(Added in 1.3.18)"
28766 msgstr ""
28767
28768 #. type: =head2
28769 #: ../src/guestfs-actions.pod:7375
28770 msgid "guestfs_vfs_type"
28771 msgstr ""
28772
28773 #. type: verbatim
28774 #: ../src/guestfs-actions.pod:7377
28775 #, no-wrap
28776 msgid ""
28777 " char *\n"
28778 " guestfs_vfs_type (guestfs_h *g,\n"
28779 "                   const char *device);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: =head2
28784 #: ../src/guestfs-actions.pod:7394
28785 msgid "guestfs_vfs_uuid"
28786 msgstr ""
28787
28788 #. type: verbatim
28789 #: ../src/guestfs-actions.pod:7396
28790 #, no-wrap
28791 msgid ""
28792 " char *\n"
28793 " guestfs_vfs_uuid (guestfs_h *g,\n"
28794 "                   const char *device);\n"
28795 "\n"
28796 msgstr ""
28797
28798 #. type: textblock
28799 #: ../src/guestfs-actions.pod:7405
28800 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:7412
28805 msgid "guestfs_vg_activate"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:7414
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_vg_activate (guestfs_h *g,\n"
28814 "                      int activate,\n"
28815 "                      char *const *volgroups);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: =head2
28820 #: ../src/guestfs-actions.pod:7431
28821 msgid "guestfs_vg_activate_all"
28822 msgstr ""
28823
28824 #. type: verbatim
28825 #: ../src/guestfs-actions.pod:7433
28826 #, no-wrap
28827 msgid ""
28828 " int\n"
28829 " guestfs_vg_activate_all (guestfs_h *g,\n"
28830 "                          int activate);\n"
28831 "\n"
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:7446
28836 msgid "guestfs_vgcreate"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:7448
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_vgcreate (guestfs_h *g,\n"
28845 "                   const char *volgroup,\n"
28846 "                   char *const *physvols);\n"
28847 "\n"
28848 msgstr ""
28849
28850 #. type: =head2
28851 #: ../src/guestfs-actions.pod:7460
28852 msgid "guestfs_vglvuuids"
28853 msgstr ""
28854
28855 #. type: verbatim
28856 #: ../src/guestfs-actions.pod:7462
28857 #, no-wrap
28858 msgid ""
28859 " char **\n"
28860 " guestfs_vglvuuids (guestfs_h *g,\n"
28861 "                    const char *vgname);\n"
28862 "\n"
28863 msgstr ""
28864
28865 #. type: textblock
28866 #: ../src/guestfs-actions.pod:7469
28867 msgid ""
28868 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
28869 "associate logical volumes and volume groups."
28870 msgstr ""
28871
28872 #. type: textblock
28873 #: ../src/guestfs-actions.pod:7472
28874 msgid "See also C<guestfs_vgpvuuids>."
28875 msgstr ""
28876
28877 #. type: =head2
28878 #: ../src/guestfs-actions.pod:7480
28879 msgid "guestfs_vgpvuuids"
28880 msgstr ""
28881
28882 #. type: verbatim
28883 #: ../src/guestfs-actions.pod:7482
28884 #, no-wrap
28885 msgid ""
28886 " char **\n"
28887 " guestfs_vgpvuuids (guestfs_h *g,\n"
28888 "                    const char *vgname);\n"
28889 "\n"
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../src/guestfs-actions.pod:7489
28894 msgid ""
28895 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
28896 "associate physical volumes and volume groups."
28897 msgstr ""
28898
28899 #. type: textblock
28900 #: ../src/guestfs-actions.pod:7492
28901 msgid "See also C<guestfs_vglvuuids>."
28902 msgstr ""
28903
28904 #. type: =head2
28905 #: ../src/guestfs-actions.pod:7500
28906 msgid "guestfs_vgremove"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../src/guestfs-actions.pod:7502
28911 #, no-wrap
28912 msgid ""
28913 " int\n"
28914 " guestfs_vgremove (guestfs_h *g,\n"
28915 "                   const char *vgname);\n"
28916 "\n"
28917 msgstr ""
28918
28919 #. type: =head2
28920 #: ../src/guestfs-actions.pod:7515
28921 msgid "guestfs_vgrename"
28922 msgstr ""
28923
28924 #. type: verbatim
28925 #: ../src/guestfs-actions.pod:7517
28926 #, no-wrap
28927 msgid ""
28928 " int\n"
28929 " guestfs_vgrename (guestfs_h *g,\n"
28930 "                   const char *volgroup,\n"
28931 "                   const char *newvolgroup);\n"
28932 "\n"
28933 msgstr ""
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:7528
28937 msgid "guestfs_vgs"
28938 msgstr ""
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:7530
28942 #, no-wrap
28943 msgid ""
28944 " char **\n"
28945 " guestfs_vgs (guestfs_h *g);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../src/guestfs-actions.pod:7539
28951 msgid "See also C<guestfs_vgs_full>."
28952 msgstr ""
28953
28954 #. type: =head2
28955 #: ../src/guestfs-actions.pod:7547
28956 msgid "guestfs_vgs_full"
28957 msgstr ""
28958
28959 #. type: verbatim
28960 #: ../src/guestfs-actions.pod:7549
28961 #, no-wrap
28962 msgid ""
28963 " struct guestfs_lvm_vg_list *\n"
28964 " guestfs_vgs_full (guestfs_h *g);\n"
28965 "\n"
28966 msgstr ""
28967
28968 #. type: textblock
28969 #: ../src/guestfs-actions.pod:7555
28970 msgid ""
28971 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
28972 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
28973 "use>."
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:7561
28978 msgid "guestfs_vgscan"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:7563
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_vgscan (guestfs_h *g);\n"
28987 "\n"
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:7573
28992 msgid "guestfs_vguuid"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:7575
28997 #, no-wrap
28998 msgid ""
28999 " char *\n"
29000 " guestfs_vguuid (guestfs_h *g,\n"
29001 "                 const char *vgname);\n"
29002 "\n"
29003 msgstr ""
29004
29005 #. type: =head2
29006 #: ../src/guestfs-actions.pod:7586
29007 msgid "guestfs_wait_ready"
29008 msgstr ""
29009
29010 #. type: verbatim
29011 #: ../src/guestfs-actions.pod:7588
29012 #, no-wrap
29013 msgid ""
29014 " int\n"
29015 " guestfs_wait_ready (guestfs_h *g);\n"
29016 "\n"
29017 msgstr ""
29018
29019 #. type: textblock
29020 #: ../src/guestfs-actions.pod:7591
29021 msgid "This function is a no op."
29022 msgstr ""
29023
29024 #. type: textblock
29025 #: ../src/guestfs-actions.pod:7593
29026 msgid ""
29027 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29028 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29029 "is no longer necessary because C<guestfs_launch> now does the waiting."
29030 msgstr ""
29031
29032 #. type: textblock
29033 #: ../src/guestfs-actions.pod:7598
29034 msgid ""
29035 "If you see any calls to this function in code then you can just remove them, "
29036 "unless you want to retain compatibility with older versions of the API."
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../src/guestfs-actions.pod:7604
29041 msgid ""
29042 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
29043 "instead."
29044 msgstr ""
29045
29046 #. type: =head2
29047 #: ../src/guestfs-actions.pod:7613
29048 msgid "guestfs_wc_c"
29049 msgstr ""
29050
29051 #. type: verbatim
29052 #: ../src/guestfs-actions.pod:7615
29053 #, no-wrap
29054 msgid ""
29055 " int\n"
29056 " guestfs_wc_c (guestfs_h *g,\n"
29057 "               const char *path);\n"
29058 "\n"
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:7626
29063 msgid "guestfs_wc_l"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:7628
29068 #, no-wrap
29069 msgid ""
29070 " int\n"
29071 " guestfs_wc_l (guestfs_h *g,\n"
29072 "               const char *path);\n"
29073 "\n"
29074 msgstr ""
29075
29076 #. type: =head2
29077 #: ../src/guestfs-actions.pod:7639
29078 msgid "guestfs_wc_w"
29079 msgstr ""
29080
29081 #. type: verbatim
29082 #: ../src/guestfs-actions.pod:7641
29083 #, no-wrap
29084 msgid ""
29085 " int\n"
29086 " guestfs_wc_w (guestfs_h *g,\n"
29087 "               const char *path);\n"
29088 "\n"
29089 msgstr ""
29090
29091 #. type: =head2
29092 #: ../src/guestfs-actions.pod:7652
29093 msgid "guestfs_write"
29094 msgstr ""
29095
29096 #. type: verbatim
29097 #: ../src/guestfs-actions.pod:7654
29098 #, no-wrap
29099 msgid ""
29100 " int\n"
29101 " guestfs_write (guestfs_h *g,\n"
29102 "                const char *path,\n"
29103 "                const char *content,\n"
29104 "                size_t content_size);\n"
29105 "\n"
29106 msgstr ""
29107
29108 #. type: textblock
29109 #: ../src/guestfs-actions.pod:7663
29110 msgid "See also C<guestfs_write_append>."
29111 msgstr ""
29112
29113 #. type: =head2
29114 #: ../src/guestfs-actions.pod:7672
29115 msgid "guestfs_write_append"
29116 msgstr ""
29117
29118 #. type: verbatim
29119 #: ../src/guestfs-actions.pod:7674
29120 #, no-wrap
29121 msgid ""
29122 " int\n"
29123 " guestfs_write_append (guestfs_h *g,\n"
29124 "                       const char *path,\n"
29125 "                       const char *content,\n"
29126 "                       size_t content_size);\n"
29127 "\n"
29128 msgstr ""
29129
29130 #. type: textblock
29131 #: ../src/guestfs-actions.pod:7683
29132 msgid "See also C<guestfs_write>."
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:7692
29137 msgid "guestfs_write_file"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:7694
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_write_file (guestfs_h *g,\n"
29146 "                     const char *path,\n"
29147 "                     const char *content,\n"
29148 "                     int size);\n"
29149 "\n"
29150 msgstr ""
29151
29152 #. type: textblock
29153 #: ../src/guestfs-actions.pod:7716
29154 msgid ""
29155 "This function is deprecated.  In new code, use the L</guestfs_write> call "
29156 "instead."
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:7725
29161 msgid "guestfs_zegrep"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:7727
29166 #, no-wrap
29167 msgid ""
29168 " char **\n"
29169 " guestfs_zegrep (guestfs_h *g,\n"
29170 "                 const char *regex,\n"
29171 "                 const char *path);\n"
29172 "\n"
29173 msgstr ""
29174
29175 #. type: =head2
29176 #: ../src/guestfs-actions.pod:7744
29177 msgid "guestfs_zegrepi"
29178 msgstr ""
29179
29180 #. type: verbatim
29181 #: ../src/guestfs-actions.pod:7746
29182 #, no-wrap
29183 msgid ""
29184 " char **\n"
29185 " guestfs_zegrepi (guestfs_h *g,\n"
29186 "                  const char *regex,\n"
29187 "                  const char *path);\n"
29188 "\n"
29189 msgstr ""
29190
29191 #. type: =head2
29192 #: ../src/guestfs-actions.pod:7763
29193 msgid "guestfs_zero"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../src/guestfs-actions.pod:7765
29198 #, no-wrap
29199 msgid ""
29200 " int\n"
29201 " guestfs_zero (guestfs_h *g,\n"
29202 "               const char *device);\n"
29203 "\n"
29204 msgstr ""
29205
29206 #. type: textblock
29207 #: ../src/guestfs-actions.pod:7779
29208 msgid ""
29209 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29210 "C<guestfs_is_zero_device>"
29211 msgstr ""
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:7791
29215 msgid "guestfs_zero_device"
29216 msgstr ""
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:7793
29220 #, no-wrap
29221 msgid ""
29222 " int\n"
29223 " guestfs_zero_device (guestfs_h *g,\n"
29224 "                      const char *device);\n"
29225 "\n"
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:7797
29230 msgid ""
29231 "This command writes zeroes over the entire C<device>.  Compare with "
29232 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-actions.pod:7815
29237 msgid "(Added in 1.3.1)"
29238 msgstr ""
29239
29240 #. type: =head2
29241 #: ../src/guestfs-actions.pod:7817
29242 msgid "guestfs_zerofree"
29243 msgstr ""
29244
29245 #. type: verbatim
29246 #: ../src/guestfs-actions.pod:7819
29247 #, no-wrap
29248 msgid ""
29249 " int\n"
29250 " guestfs_zerofree (guestfs_h *g,\n"
29251 "                   const char *device);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:7838
29257 msgid "guestfs_zfgrep"
29258 msgstr ""
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:7840
29262 #, no-wrap
29263 msgid ""
29264 " char **\n"
29265 " guestfs_zfgrep (guestfs_h *g,\n"
29266 "                 const char *pattern,\n"
29267 "                 const char *path);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:7857
29273 msgid "guestfs_zfgrepi"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:7859
29278 #, no-wrap
29279 msgid ""
29280 " char **\n"
29281 " guestfs_zfgrepi (guestfs_h *g,\n"
29282 "                  const char *pattern,\n"
29283 "                  const char *path);\n"
29284 "\n"
29285 msgstr ""
29286
29287 #. type: =head2
29288 #: ../src/guestfs-actions.pod:7876
29289 msgid "guestfs_zfile"
29290 msgstr ""
29291
29292 #. type: verbatim
29293 #: ../src/guestfs-actions.pod:7878
29294 #, no-wrap
29295 msgid ""
29296 " char *\n"
29297 " guestfs_zfile (guestfs_h *g,\n"
29298 "                const char *meth,\n"
29299 "                const char *path);\n"
29300 "\n"
29301 msgstr ""
29302
29303 #. type: textblock
29304 #: ../src/guestfs-actions.pod:7888
29305 msgid ""
29306 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29307 "files."
29308 msgstr ""
29309
29310 #. type: textblock
29311 #: ../src/guestfs-actions.pod:7894
29312 msgid ""
29313 "This function is deprecated.  In new code, use the L</guestfs_file> call "
29314 "instead."
29315 msgstr ""
29316
29317 #. type: =head2
29318 #: ../src/guestfs-actions.pod:7903
29319 msgid "guestfs_zgrep"
29320 msgstr ""
29321
29322 #. type: verbatim
29323 #: ../src/guestfs-actions.pod:7905
29324 #, no-wrap
29325 msgid ""
29326 " char **\n"
29327 " guestfs_zgrep (guestfs_h *g,\n"
29328 "                const char *regex,\n"
29329 "                const char *path);\n"
29330 "\n"
29331 msgstr ""
29332
29333 #. type: =head2
29334 #: ../src/guestfs-actions.pod:7922
29335 msgid "guestfs_zgrepi"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../src/guestfs-actions.pod:7924
29340 #, no-wrap
29341 msgid ""
29342 " char **\n"
29343 " guestfs_zgrepi (guestfs_h *g,\n"
29344 "                 const char *regex,\n"
29345 "                 const char *path);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: =item
29350 #: ../src/guestfs-availability.pod:3
29351 msgid "B<augeas>"
29352 msgstr ""
29353
29354 #. type: textblock
29355 #: ../src/guestfs-availability.pod:5
29356 msgid ""
29357 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29358 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29359 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29360 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29361 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29362 msgstr ""
29363
29364 #. type: =item
29365 #: ../src/guestfs-availability.pod:21
29366 msgid "B<btrfs>"
29367 msgstr ""
29368
29369 #. type: textblock
29370 #: ../src/guestfs-availability.pod:23
29371 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29372 msgstr ""
29373
29374 #. type: =item
29375 #: ../src/guestfs-availability.pod:26
29376 msgid "B<inotify>"
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-availability.pod:28
29381 msgid ""
29382 "The following functions: L</guestfs_inotify_add_watch> "
29383 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
29384 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
29385 msgstr ""
29386
29387 #. type: =item
29388 #: ../src/guestfs-availability.pod:36
29389 msgid "B<linuxfsuuid>"
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-availability.pod:38
29394 msgid ""
29395 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
29396 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
29397 msgstr ""
29398
29399 #. type: =item
29400 #: ../src/guestfs-availability.pod:45
29401 msgid "B<linuxmodules>"
29402 msgstr ""
29403
29404 #. type: textblock
29405 #: ../src/guestfs-availability.pod:47
29406 msgid "The following functions: L</guestfs_modprobe>"
29407 msgstr ""
29408
29409 #. type: =item
29410 #: ../src/guestfs-availability.pod:50
29411 msgid "B<linuxxattrs>"
29412 msgstr ""
29413
29414 #. type: textblock
29415 #: ../src/guestfs-availability.pod:52
29416 msgid ""
29417 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
29418 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
29419 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
29420 "L</guestfs_setxattr>"
29421 msgstr ""
29422
29423 #. type: =item
29424 #: ../src/guestfs-availability.pod:63
29425 msgid "B<luks>"
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-availability.pod:65
29430 msgid ""
29431 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
29432 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
29433 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
29434 msgstr ""
29435
29436 #. type: =item
29437 #: ../src/guestfs-availability.pod:74
29438 msgid "B<lvm2>"
29439 msgstr ""
29440
29441 #. type: textblock
29442 #: ../src/guestfs-availability.pod:76
29443 msgid ""
29444 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
29445 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
29446 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
29447 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
29448 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
29449 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
29450 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
29451 "L</guestfs_vgs_full>"
29452 msgstr ""
29453
29454 #. type: =item
29455 #: ../src/guestfs-availability.pod:99
29456 msgid "B<mknod>"
29457 msgstr ""
29458
29459 #. type: textblock
29460 #: ../src/guestfs-availability.pod:101
29461 msgid ""
29462 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
29463 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
29464 msgstr ""
29465
29466 #. type: =item
29467 #: ../src/guestfs-availability.pod:107
29468 msgid "B<ntfs3g>"
29469 msgstr ""
29470
29471 #. type: textblock
29472 #: ../src/guestfs-availability.pod:109
29473 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
29474 msgstr ""
29475
29476 #. type: =item
29477 #: ../src/guestfs-availability.pod:112
29478 msgid "B<ntfsprogs>"
29479 msgstr ""
29480
29481 #. type: textblock
29482 #: ../src/guestfs-availability.pod:114
29483 msgid ""
29484 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
29485 "L</guestfs_ntfsresize_size>"
29486 msgstr ""
29487
29488 #. type: =item
29489 #: ../src/guestfs-availability.pod:119
29490 msgid "B<realpath>"
29491 msgstr ""
29492
29493 #. type: textblock
29494 #: ../src/guestfs-availability.pod:121
29495 msgid "The following functions: L</guestfs_realpath>"
29496 msgstr ""
29497
29498 #. type: =item
29499 #: ../src/guestfs-availability.pod:124
29500 msgid "B<scrub>"
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../src/guestfs-availability.pod:126
29505 msgid ""
29506 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
29507 "L</guestfs_scrub_freespace>"
29508 msgstr ""
29509
29510 #. type: =item
29511 #: ../src/guestfs-availability.pod:131
29512 msgid "B<selinux>"
29513 msgstr ""
29514
29515 #. type: textblock
29516 #: ../src/guestfs-availability.pod:133
29517 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
29518 msgstr ""
29519
29520 #. type: =item
29521 #: ../src/guestfs-availability.pod:137
29522 msgid "B<xz>"
29523 msgstr ""
29524
29525 #. type: textblock
29526 #: ../src/guestfs-availability.pod:139
29527 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
29528 msgstr ""
29529
29530 #. type: =item
29531 #: ../src/guestfs-availability.pod:143
29532 msgid "B<zerofree>"
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../src/guestfs-availability.pod:145
29537 msgid "The following functions: L</guestfs_zerofree>"
29538 msgstr ""
29539
29540 #. type: =head2
29541 #: ../src/guestfs-structs.pod:1
29542 msgid "guestfs_int_bool"
29543 msgstr ""
29544
29545 #. type: verbatim
29546 #: ../src/guestfs-structs.pod:3
29547 #, no-wrap
29548 msgid ""
29549 " struct guestfs_int_bool {\n"
29550 "   int32_t i;\n"
29551 "   int32_t b;\n"
29552 " };\n"
29553 " \n"
29554 msgstr ""
29555
29556 #. type: verbatim
29557 #: ../src/guestfs-structs.pod:8
29558 #, no-wrap
29559 msgid ""
29560 " struct guestfs_int_bool_list {\n"
29561 "   uint32_t len; /* Number of elements in list. */\n"
29562 "   struct guestfs_int_bool *val; /* Elements. */\n"
29563 " };\n"
29564 " \n"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-structs.pod:13
29569 #, no-wrap
29570 msgid ""
29571 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
29572 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
29573 "\n"
29574 msgstr ""
29575
29576 #. type: =head2
29577 #: ../src/guestfs-structs.pod:16
29578 msgid "guestfs_lvm_pv"
29579 msgstr ""
29580
29581 #. type: verbatim
29582 #: ../src/guestfs-structs.pod:18
29583 #, no-wrap
29584 msgid ""
29585 " struct guestfs_lvm_pv {\n"
29586 "   char *pv_name;\n"
29587 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29588 "*/\n"
29589 "   char pv_uuid[32];\n"
29590 "   char *pv_fmt;\n"
29591 "   uint64_t pv_size;\n"
29592 "   uint64_t dev_size;\n"
29593 "   uint64_t pv_free;\n"
29594 "   uint64_t pv_used;\n"
29595 "   char *pv_attr;\n"
29596 "   int64_t pv_pe_count;\n"
29597 "   int64_t pv_pe_alloc_count;\n"
29598 "   char *pv_tags;\n"
29599 "   uint64_t pe_start;\n"
29600 "   int64_t pv_mda_count;\n"
29601 "   uint64_t pv_mda_free;\n"
29602 " };\n"
29603 " \n"
29604 msgstr ""
29605
29606 #. type: verbatim
29607 #: ../src/guestfs-structs.pod:36
29608 #, no-wrap
29609 msgid ""
29610 " struct guestfs_lvm_pv_list {\n"
29611 "   uint32_t len; /* Number of elements in list. */\n"
29612 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
29613 " };\n"
29614 " \n"
29615 msgstr ""
29616
29617 #. type: verbatim
29618 #: ../src/guestfs-structs.pod:41
29619 #, no-wrap
29620 msgid ""
29621 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
29622 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
29623 "\n"
29624 msgstr ""
29625
29626 #. type: =head2
29627 #: ../src/guestfs-structs.pod:44
29628 msgid "guestfs_lvm_vg"
29629 msgstr ""
29630
29631 #. type: verbatim
29632 #: ../src/guestfs-structs.pod:46
29633 #, no-wrap
29634 msgid ""
29635 " struct guestfs_lvm_vg {\n"
29636 "   char *vg_name;\n"
29637 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29638 "*/\n"
29639 "   char vg_uuid[32];\n"
29640 "   char *vg_fmt;\n"
29641 "   char *vg_attr;\n"
29642 "   uint64_t vg_size;\n"
29643 "   uint64_t vg_free;\n"
29644 "   char *vg_sysid;\n"
29645 "   uint64_t vg_extent_size;\n"
29646 "   int64_t vg_extent_count;\n"
29647 "   int64_t vg_free_count;\n"
29648 "   int64_t max_lv;\n"
29649 "   int64_t max_pv;\n"
29650 "   int64_t pv_count;\n"
29651 "   int64_t lv_count;\n"
29652 "   int64_t snap_count;\n"
29653 "   int64_t vg_seqno;\n"
29654 "   char *vg_tags;\n"
29655 "   int64_t vg_mda_count;\n"
29656 "   uint64_t vg_mda_free;\n"
29657 " };\n"
29658 " \n"
29659 msgstr ""
29660
29661 #. type: verbatim
29662 #: ../src/guestfs-structs.pod:69
29663 #, no-wrap
29664 msgid ""
29665 " struct guestfs_lvm_vg_list {\n"
29666 "   uint32_t len; /* Number of elements in list. */\n"
29667 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
29668 " };\n"
29669 " \n"
29670 msgstr ""
29671
29672 #. type: verbatim
29673 #: ../src/guestfs-structs.pod:74
29674 #, no-wrap
29675 msgid ""
29676 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
29677 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
29678 "\n"
29679 msgstr ""
29680
29681 #. type: =head2
29682 #: ../src/guestfs-structs.pod:77
29683 msgid "guestfs_lvm_lv"
29684 msgstr ""
29685
29686 #. type: verbatim
29687 #: ../src/guestfs-structs.pod:79
29688 #, no-wrap
29689 msgid ""
29690 " struct guestfs_lvm_lv {\n"
29691 "   char *lv_name;\n"
29692 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29693 "*/\n"
29694 "   char lv_uuid[32];\n"
29695 "   char *lv_attr;\n"
29696 "   int64_t lv_major;\n"
29697 "   int64_t lv_minor;\n"
29698 "   int64_t lv_kernel_major;\n"
29699 "   int64_t lv_kernel_minor;\n"
29700 "   uint64_t lv_size;\n"
29701 "   int64_t seg_count;\n"
29702 "   char *origin;\n"
29703 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29704 "   float snap_percent;\n"
29705 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29706 "   float copy_percent;\n"
29707 "   char *move_pv;\n"
29708 "   char *lv_tags;\n"
29709 "   char *mirror_log;\n"
29710 "   char *modules;\n"
29711 " };\n"
29712 " \n"
29713 msgstr ""
29714
29715 #. type: verbatim
29716 #: ../src/guestfs-structs.pod:101
29717 #, no-wrap
29718 msgid ""
29719 " struct guestfs_lvm_lv_list {\n"
29720 "   uint32_t len; /* Number of elements in list. */\n"
29721 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
29722 " };\n"
29723 " \n"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-structs.pod:106
29728 #, no-wrap
29729 msgid ""
29730 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
29731 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-structs.pod:111
29737 #, no-wrap
29738 msgid ""
29739 " struct guestfs_stat {\n"
29740 "   int64_t dev;\n"
29741 "   int64_t ino;\n"
29742 "   int64_t mode;\n"
29743 "   int64_t nlink;\n"
29744 "   int64_t uid;\n"
29745 "   int64_t gid;\n"
29746 "   int64_t rdev;\n"
29747 "   int64_t size;\n"
29748 "   int64_t blksize;\n"
29749 "   int64_t blocks;\n"
29750 "   int64_t atime;\n"
29751 "   int64_t mtime;\n"
29752 "   int64_t ctime;\n"
29753 " };\n"
29754 " \n"
29755 msgstr ""
29756
29757 #. type: verbatim
29758 #: ../src/guestfs-structs.pod:127
29759 #, no-wrap
29760 msgid ""
29761 " struct guestfs_stat_list {\n"
29762 "   uint32_t len; /* Number of elements in list. */\n"
29763 "   struct guestfs_stat *val; /* Elements. */\n"
29764 " };\n"
29765 " \n"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-structs.pod:132
29770 #, no-wrap
29771 msgid ""
29772 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
29773 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: verbatim
29778 #: ../src/guestfs-structs.pod:137
29779 #, no-wrap
29780 msgid ""
29781 " struct guestfs_statvfs {\n"
29782 "   int64_t bsize;\n"
29783 "   int64_t frsize;\n"
29784 "   int64_t blocks;\n"
29785 "   int64_t bfree;\n"
29786 "   int64_t bavail;\n"
29787 "   int64_t files;\n"
29788 "   int64_t ffree;\n"
29789 "   int64_t favail;\n"
29790 "   int64_t fsid;\n"
29791 "   int64_t flag;\n"
29792 "   int64_t namemax;\n"
29793 " };\n"
29794 " \n"
29795 msgstr ""
29796
29797 #. type: verbatim
29798 #: ../src/guestfs-structs.pod:151
29799 #, no-wrap
29800 msgid ""
29801 " struct guestfs_statvfs_list {\n"
29802 "   uint32_t len; /* Number of elements in list. */\n"
29803 "   struct guestfs_statvfs *val; /* Elements. */\n"
29804 " };\n"
29805 " \n"
29806 msgstr ""
29807
29808 #. type: verbatim
29809 #: ../src/guestfs-structs.pod:156
29810 #, no-wrap
29811 msgid ""
29812 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
29813 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
29814 "\n"
29815 msgstr ""
29816
29817 #. type: =head2
29818 #: ../src/guestfs-structs.pod:159
29819 msgid "guestfs_dirent"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-structs.pod:161
29824 #, no-wrap
29825 msgid ""
29826 " struct guestfs_dirent {\n"
29827 "   int64_t ino;\n"
29828 "   char ftyp;\n"
29829 "   char *name;\n"
29830 " };\n"
29831 " \n"
29832 msgstr ""
29833
29834 #. type: verbatim
29835 #: ../src/guestfs-structs.pod:167
29836 #, no-wrap
29837 msgid ""
29838 " struct guestfs_dirent_list {\n"
29839 "   uint32_t len; /* Number of elements in list. */\n"
29840 "   struct guestfs_dirent *val; /* Elements. */\n"
29841 " };\n"
29842 " \n"
29843 msgstr ""
29844
29845 #. type: verbatim
29846 #: ../src/guestfs-structs.pod:172
29847 #, no-wrap
29848 msgid ""
29849 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
29850 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
29851 "\n"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../src/guestfs-structs.pod:177
29856 #, no-wrap
29857 msgid ""
29858 " struct guestfs_version {\n"
29859 "   int64_t major;\n"
29860 "   int64_t minor;\n"
29861 "   int64_t release;\n"
29862 "   char *extra;\n"
29863 " };\n"
29864 " \n"
29865 msgstr ""
29866
29867 #. type: verbatim
29868 #: ../src/guestfs-structs.pod:184
29869 #, no-wrap
29870 msgid ""
29871 " struct guestfs_version_list {\n"
29872 "   uint32_t len; /* Number of elements in list. */\n"
29873 "   struct guestfs_version *val; /* Elements. */\n"
29874 " };\n"
29875 " \n"
29876 msgstr ""
29877
29878 #. type: verbatim
29879 #: ../src/guestfs-structs.pod:189
29880 #, no-wrap
29881 msgid ""
29882 " void guestfs_free_version (struct guestfs_free_version *);\n"
29883 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
29884 "\n"
29885 msgstr ""
29886
29887 #. type: =head2
29888 #: ../src/guestfs-structs.pod:192
29889 msgid "guestfs_xattr"
29890 msgstr ""
29891
29892 #. type: verbatim
29893 #: ../src/guestfs-structs.pod:194
29894 #, no-wrap
29895 msgid ""
29896 " struct guestfs_xattr {\n"
29897 "   char *attrname;\n"
29898 "   /* The next two fields describe a byte array. */\n"
29899 "   uint32_t attrval_len;\n"
29900 "   char *attrval;\n"
29901 " };\n"
29902 " \n"
29903 msgstr ""
29904
29905 #. type: verbatim
29906 #: ../src/guestfs-structs.pod:201
29907 #, no-wrap
29908 msgid ""
29909 " struct guestfs_xattr_list {\n"
29910 "   uint32_t len; /* Number of elements in list. */\n"
29911 "   struct guestfs_xattr *val; /* Elements. */\n"
29912 " };\n"
29913 " \n"
29914 msgstr ""
29915
29916 #. type: verbatim
29917 #: ../src/guestfs-structs.pod:206
29918 #, no-wrap
29919 msgid ""
29920 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
29921 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
29922 "\n"
29923 msgstr ""
29924
29925 #. type: =head2
29926 #: ../src/guestfs-structs.pod:209
29927 msgid "guestfs_inotify_event"
29928 msgstr ""
29929
29930 #. type: verbatim
29931 #: ../src/guestfs-structs.pod:211
29932 #, no-wrap
29933 msgid ""
29934 " struct guestfs_inotify_event {\n"
29935 "   int64_t in_wd;\n"
29936 "   uint32_t in_mask;\n"
29937 "   uint32_t in_cookie;\n"
29938 "   char *in_name;\n"
29939 " };\n"
29940 " \n"
29941 msgstr ""
29942
29943 #. type: verbatim
29944 #: ../src/guestfs-structs.pod:218
29945 #, no-wrap
29946 msgid ""
29947 " struct guestfs_inotify_event_list {\n"
29948 "   uint32_t len; /* Number of elements in list. */\n"
29949 "   struct guestfs_inotify_event *val; /* Elements. */\n"
29950 " };\n"
29951 " \n"
29952 msgstr ""
29953
29954 #. type: verbatim
29955 #: ../src/guestfs-structs.pod:223
29956 #, no-wrap
29957 msgid ""
29958 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
29959 " void guestfs_free_inotify_event_list (struct "
29960 "guestfs_free_inotify_event_list *);\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: =head2
29965 #: ../src/guestfs-structs.pod:226
29966 msgid "guestfs_partition"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-structs.pod:228
29971 #, no-wrap
29972 msgid ""
29973 " struct guestfs_partition {\n"
29974 "   int32_t part_num;\n"
29975 "   uint64_t part_start;\n"
29976 "   uint64_t part_end;\n"
29977 "   uint64_t part_size;\n"
29978 " };\n"
29979 " \n"
29980 msgstr ""
29981
29982 #. type: verbatim
29983 #: ../src/guestfs-structs.pod:235
29984 #, no-wrap
29985 msgid ""
29986 " struct guestfs_partition_list {\n"
29987 "   uint32_t len; /* Number of elements in list. */\n"
29988 "   struct guestfs_partition *val; /* Elements. */\n"
29989 " };\n"
29990 " \n"
29991 msgstr ""
29992
29993 #. type: verbatim
29994 #: ../src/guestfs-structs.pod:240
29995 #, no-wrap
29996 msgid ""
29997 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
29998 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
29999 "\n"
30000 msgstr ""
30001
30002 #. type: =head2
30003 #: ../src/guestfs-structs.pod:243
30004 msgid "guestfs_application"
30005 msgstr ""
30006
30007 #. type: verbatim
30008 #: ../src/guestfs-structs.pod:245
30009 #, no-wrap
30010 msgid ""
30011 " struct guestfs_application {\n"
30012 "   char *app_name;\n"
30013 "   char *app_display_name;\n"
30014 "   int32_t app_epoch;\n"
30015 "   char *app_version;\n"
30016 "   char *app_release;\n"
30017 "   char *app_install_path;\n"
30018 "   char *app_trans_path;\n"
30019 "   char *app_publisher;\n"
30020 "   char *app_url;\n"
30021 "   char *app_source_package;\n"
30022 "   char *app_summary;\n"
30023 "   char *app_description;\n"
30024 " };\n"
30025 " \n"
30026 msgstr ""
30027
30028 #. type: verbatim
30029 #: ../src/guestfs-structs.pod:260
30030 #, no-wrap
30031 msgid ""
30032 " struct guestfs_application_list {\n"
30033 "   uint32_t len; /* Number of elements in list. */\n"
30034 "   struct guestfs_application *val; /* Elements. */\n"
30035 " };\n"
30036 " \n"
30037 msgstr ""
30038
30039 #. type: verbatim
30040 #: ../src/guestfs-structs.pod:265
30041 #, no-wrap
30042 msgid ""
30043 " void guestfs_free_application (struct guestfs_free_application *);\n"
30044 " void guestfs_free_application_list (struct guestfs_free_application_list "
30045 "*);\n"
30046 "\n"
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../src/guestfs.pod:5
30051 msgid "guestfs - Library for accessing and modifying virtual machine images"
30052 msgstr ""
30053
30054 #. type: verbatim
30055 #: ../src/guestfs.pod:11
30056 #, no-wrap
30057 msgid ""
30058 " guestfs_h *g = guestfs_create ();\n"
30059 " guestfs_add_drive (g, \"guest.img\");\n"
30060 " guestfs_launch (g);\n"
30061 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30062 " guestfs_touch (g, \"/hello\");\n"
30063 " guestfs_umount (g, \"/\");\n"
30064 " guestfs_close (g);\n"
30065 "\n"
30066 msgstr ""
30067
30068 #. type: textblock
30069 #: ../src/guestfs.pod:25
30070 msgid ""
30071 "Libguestfs is a library for accessing and modifying guest disk images.  "
30072 "Amongst the things this is good for: making batch configuration changes to "
30073 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30074 "between virtualization systems (see also: virt-p2v), performing partial "
30075 "backups, performing partial guest clones, cloning guests and changing "
30076 "registry/UUID/hostname info, and much else besides."
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../src/guestfs.pod:33
30081 msgid ""
30082 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30083 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30084 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30085 "qcow2, vmdk."
30086 msgstr ""
30087
30088 #. type: textblock
30089 #: ../src/guestfs.pod:38
30090 msgid ""
30091 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30092 "what filesystem is in each LV, etc.).  It can also run commands in the "
30093 "context of the guest.  Also you can access filesystems over FUSE."
30094 msgstr ""
30095
30096 #. type: textblock
30097 #: ../src/guestfs.pod:43
30098 msgid ""
30099 "Libguestfs is a library that can be linked with C and C++ management "
30100 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30101 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30102 "line."
30103 msgstr ""
30104
30105 #. type: textblock
30106 #: ../src/guestfs.pod:48
30107 msgid ""
30108 "You don't need to be root to use libguestfs, although obviously you do need "
30109 "enough permissions to access the disk images."
30110 msgstr ""
30111
30112 #. type: textblock
30113 #: ../src/guestfs.pod:51
30114 msgid ""
30115 "Libguestfs is a large API because it can do many things.  For a gentle "
30116 "introduction, please read the L</API OVERVIEW> section next."
30117 msgstr ""
30118
30119 #. type: textblock
30120 #: ../src/guestfs.pod:54
30121 msgid ""
30122 "There are also some example programs in the L<guestfs-examples(3)> manual "
30123 "page."
30124 msgstr ""
30125
30126 #. type: =head1
30127 #: ../src/guestfs.pod:57
30128 msgid "API OVERVIEW"
30129 msgstr ""
30130
30131 #. type: textblock
30132 #: ../src/guestfs.pod:59
30133 msgid ""
30134 "This section provides a gentler overview of the libguestfs API.  We also try "
30135 "to group API calls together, where that may not be obvious from reading "
30136 "about the individual calls in the main section of this manual."
30137 msgstr ""
30138
30139 #. type: =head2
30140 #: ../src/guestfs.pod:64
30141 msgid "HANDLES"
30142 msgstr ""
30143
30144 #. type: textblock
30145 #: ../src/guestfs.pod:66
30146 msgid ""
30147 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30148 "must add at least one disk image to the handle, followed by launching the "
30149 "handle, then performing whatever operations you want, and finally closing "
30150 "the handle.  By convention we use the single letter C<g> for the name of the "
30151 "handle variable, although of course you can use any name you want."
30152 msgstr ""
30153
30154 #. type: textblock
30155 #: ../src/guestfs.pod:73
30156 msgid "The general structure of all libguestfs-using programs looks like this:"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../src/guestfs.pod:76
30161 #, no-wrap
30162 msgid ""
30163 " guestfs_h *g = guestfs_create ();\n"
30164 " \n"
30165 msgstr ""
30166
30167 #. type: verbatim
30168 #: ../src/guestfs.pod:78
30169 #, no-wrap
30170 msgid ""
30171 " /* Call guestfs_add_drive additional times if there are\n"
30172 "  * multiple disk images.\n"
30173 "  */\n"
30174 " guestfs_add_drive (g, \"guest.img\");\n"
30175 " \n"
30176 msgstr ""
30177
30178 #. type: verbatim
30179 #: ../src/guestfs.pod:83
30180 #, no-wrap
30181 msgid ""
30182 " /* Most manipulation calls won't work until you've launched\n"
30183 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30184 "  * and _before_ other commands.\n"
30185 "  */\n"
30186 " guestfs_launch (g);\n"
30187 " \n"
30188 msgstr ""
30189
30190 #. type: verbatim
30191 #: ../src/guestfs.pod:89
30192 #, no-wrap
30193 msgid ""
30194 " /* Now you can examine what partitions, LVs etc are available.\n"
30195 "  */\n"
30196 " char **partitions = guestfs_list_partitions (g);\n"
30197 " char **logvols = guestfs_lvs (g);\n"
30198 " \n"
30199 msgstr ""
30200
30201 #. type: verbatim
30202 #: ../src/guestfs.pod:94
30203 #, no-wrap
30204 msgid ""
30205 " /* To access a filesystem in the image, you must mount it.\n"
30206 "  */\n"
30207 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30208 " \n"
30209 msgstr ""
30210
30211 #. type: verbatim
30212 #: ../src/guestfs.pod:98
30213 #, no-wrap
30214 msgid ""
30215 " /* Now you can perform filesystem actions on the guest\n"
30216 "  * disk image.\n"
30217 "  */\n"
30218 " guestfs_touch (g, \"/hello\");\n"
30219 " \n"
30220 msgstr ""
30221
30222 #. type: verbatim
30223 #: ../src/guestfs.pod:103
30224 #, no-wrap
30225 msgid ""
30226 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30227 "  * it is done automatically when you close the handle.  See\n"
30228 "  * discussion of autosync in this page.\n"
30229 "  */\n"
30230 " guestfs_sync (g);\n"
30231 " \n"
30232 msgstr ""
30233
30234 #. type: verbatim
30235 #: ../src/guestfs.pod:109
30236 #, no-wrap
30237 msgid ""
30238 " /* Close the handle 'g'. */\n"
30239 " guestfs_close (g);\n"
30240 "\n"
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../src/guestfs.pod:112
30245 msgid ""
30246 "The code above doesn't include any error checking.  In real code you should "
30247 "check return values carefully for errors.  In general all functions that "
30248 "return integers return C<-1> on error, and all functions that return "
30249 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30250 "how to handle errors, and consult the documentation for each function call "
30251 "below to see precisely how they return error indications.  See "
30252 "L<guestfs-examples(3)> for fully worked examples."
30253 msgstr ""
30254
30255 #. type: =head2
30256 #: ../src/guestfs.pod:121
30257 msgid "DISK IMAGES"
30258 msgstr ""
30259
30260 #. type: textblock
30261 #: ../src/guestfs.pod:123
30262 msgid ""
30263 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30264 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30265 "actual block device, or simply an empty file of zeroes that you have created "
30266 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30267 "of these."
30268 msgstr ""
30269
30270 #. type: textblock
30271 #: ../src/guestfs.pod:129
30272 msgid ""
30273 "The call you should use in modern code for adding drives is "
30274 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30275 "specifying that the format is raw, do:"
30276 msgstr ""
30277
30278 #. type: verbatim
30279 #: ../src/guestfs.pod:133
30280 #, no-wrap
30281 msgid ""
30282 " guestfs_add_drive_opts (g, filename,\n"
30283 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30284 "                         -1);\n"
30285 "\n"
30286 msgstr ""
30287
30288 #. type: textblock
30289 #: ../src/guestfs.pod:137
30290 msgid "You can add a disk read-only using:"
30291 msgstr ""
30292
30293 #. type: verbatim
30294 #: ../src/guestfs.pod:139
30295 #, no-wrap
30296 msgid ""
30297 " guestfs_add_drive_opts (g, filename,\n"
30298 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30299 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30300 "                         -1);\n"
30301 "\n"
30302 msgstr ""
30303
30304 #. type: textblock
30305 #: ../src/guestfs.pod:144
30306 msgid ""
30307 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30308 "libguestfs won't modify the file."
30309 msgstr ""
30310
30311 #. type: textblock
30312 #: ../src/guestfs.pod:147
30313 msgid ""
30314 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30315 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30316 "corruption, but adding it read-only is safe."
30317 msgstr ""
30318
30319 #. type: textblock
30320 #: ../src/guestfs.pod:151
30321 msgid ""
30322 "You must add at least one disk image, and you may add multiple disk images.  "
30323 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30324 "first one you added), C</dev/sdb> (for the second one you added), etc."
30325 msgstr ""
30326
30327 #. type: textblock
30328 #: ../src/guestfs.pod:156
30329 msgid ""
30330 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30331 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30332 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30333 msgstr ""
30334
30335 #. type: =head2
30336 #: ../src/guestfs.pod:161
30337 msgid "MOUNTING"
30338 msgstr ""
30339
30340 #. type: textblock
30341 #: ../src/guestfs.pod:163
30342 msgid ""
30343 "Before you can read or write files, create directories and so on in a disk "
30344 "image that contains filesystems, you have to mount those filesystems using "
30345 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30346 "a disk image contains (for example) one partition with a filesystem on that "
30347 "partition, then you can mount it directly:"
30348 msgstr ""
30349
30350 #. type: verbatim
30351 #: ../src/guestfs.pod:170
30352 #, no-wrap
30353 msgid ""
30354 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30355 "\n"
30356 msgstr ""
30357
30358 #. type: textblock
30359 #: ../src/guestfs.pod:172
30360 msgid ""
30361 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30362 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30363 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30364 "that these are libguestfs virtual devices, and are nothing to do with host "
30365 "devices."
30366 msgstr ""
30367
30368 #. type: textblock
30369 #: ../src/guestfs.pod:178
30370 msgid ""
30371 "If you are given a disk image and you don't know what it contains then you "
30372 "have to find out.  Libguestfs can do that too: use "
30373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
30374 "and LVs, and either try mounting each to see what is mountable, or else "
30375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
30376 "filesystems, use L</guestfs_list_filesystems>."
30377 msgstr ""
30378
30379 #. type: textblock
30380 #: ../src/guestfs.pod:186
30381 msgid ""
30382 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
30383 "L</INSPECTION> below).  But you might find it easier to look at higher level "
30384 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
30385 msgstr ""
30386
30387 #. type: textblock
30388 #: ../src/guestfs.pod:191
30389 msgid ""
30390 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
30391 "several other variations of the C<guestfs_mount_*> call."
30392 msgstr ""
30393
30394 #. type: =head2
30395 #: ../src/guestfs.pod:194
30396 msgid "FILESYSTEM ACCESS AND MODIFICATION"
30397 msgstr ""
30398
30399 #. type: textblock
30400 #: ../src/guestfs.pod:196
30401 msgid ""
30402 "The majority of the libguestfs API consists of fairly low-level calls for "
30403 "accessing and modifying the files, directories, symlinks etc on mounted "
30404 "filesystems.  There are over a hundred such calls which you can find listed "
30405 "in detail below in this man page, and we don't even pretend to cover them "
30406 "all in this overview."
30407 msgstr ""
30408
30409 #. type: textblock
30410 #: ../src/guestfs.pod:202
30411 msgid ""
30412 "Specify filenames as full paths, starting with C<\"/\"> and including the "
30413 "mount point."
30414 msgstr ""
30415
30416 #. type: textblock
30417 #: ../src/guestfs.pod:205
30418 msgid ""
30419 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
30420 "the file called C<\"etc/passwd\"> then you could do:"
30421 msgstr ""
30422
30423 #. type: verbatim
30424 #: ../src/guestfs.pod:208
30425 #, no-wrap
30426 msgid ""
30427 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
30428 "\n"
30429 msgstr ""
30430
30431 #. type: textblock
30432 #: ../src/guestfs.pod:210
30433 msgid ""
30434 "This would return C<data> as a newly allocated buffer containing the full "
30435 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
30436 "or C<NULL> if there was an error."
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../src/guestfs.pod:214
30441 msgid ""
30442 "As another example, to create a top-level directory on that filesystem "
30443 "called C<\"var\"> you would do:"
30444 msgstr ""
30445
30446 #. type: verbatim
30447 #: ../src/guestfs.pod:217
30448 #, no-wrap
30449 msgid ""
30450 " guestfs_mkdir (g, \"/var\");\n"
30451 "\n"
30452 msgstr ""
30453
30454 #. type: textblock
30455 #: ../src/guestfs.pod:219
30456 msgid "To create a symlink you could do:"
30457 msgstr ""
30458
30459 #. type: verbatim
30460 #: ../src/guestfs.pod:221
30461 #, no-wrap
30462 msgid ""
30463 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
30464 "               \"/etc/rc3.d/S30portmap\");\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs.pod:224
30470 msgid ""
30471 "Libguestfs will reject attempts to use relative paths and there is no "
30472 "concept of a current working directory."
30473 msgstr ""
30474
30475 #. type: textblock
30476 #: ../src/guestfs.pod:227
30477 msgid ""
30478 "Libguestfs can return errors in many situations: for example if the "
30479 "filesystem isn't writable, or if a file or directory that you requested "
30480 "doesn't exist.  If you are using the C API (documented here)  you have to "
30481 "check for those error conditions after each call.  (Other language bindings "
30482 "turn these errors into exceptions)."
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../src/guestfs.pod:233
30487 msgid ""
30488 "File writes are affected by the per-handle umask, set by calling "
30489 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
30490 msgstr ""
30491
30492 #. type: =head2
30493 #: ../src/guestfs.pod:236
30494 msgid "PARTITIONING"
30495 msgstr ""
30496
30497 #. type: textblock
30498 #: ../src/guestfs.pod:238
30499 msgid ""
30500 "Libguestfs contains API calls to read, create and modify partition tables on "
30501 "disk images."
30502 msgstr ""
30503
30504 #. type: textblock
30505 #: ../src/guestfs.pod:241
30506 msgid ""
30507 "In the common case where you want to create a single partition covering the "
30508 "whole disk, you should use the L</guestfs_part_disk> call:"
30509 msgstr ""
30510
30511 #. type: verbatim
30512 #: ../src/guestfs.pod:245
30513 #, no-wrap
30514 msgid ""
30515 " const char *parttype = \"mbr\";\n"
30516 " if (disk_is_larger_than_2TB)\n"
30517 "   parttype = \"gpt\";\n"
30518 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
30519 "\n"
30520 msgstr ""
30521
30522 #. type: textblock
30523 #: ../src/guestfs.pod:250
30524 msgid ""
30525 "Obviously this effectively wipes anything that was on that disk image "
30526 "before."
30527 msgstr ""
30528
30529 #. type: =head2
30530 #: ../src/guestfs.pod:253
30531 msgid "LVM2"
30532 msgstr ""
30533
30534 #. type: textblock
30535 #: ../src/guestfs.pod:255
30536 msgid ""
30537 "Libguestfs provides access to a large part of the LVM2 API, such as "
30538 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
30539 "unless you familiarize yourself with the concepts of physical volumes, "
30540 "volume groups and logical volumes."
30541 msgstr ""
30542
30543 #. type: textblock
30544 #: ../src/guestfs.pod:260
30545 msgid ""
30546 "This author strongly recommends reading the LVM HOWTO, online at "
30547 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
30548 msgstr ""
30549
30550 #. type: =head2
30551 #: ../src/guestfs.pod:263
30552 msgid "DOWNLOADING"
30553 msgstr ""
30554
30555 #. type: textblock
30556 #: ../src/guestfs.pod:265
30557 msgid ""
30558 "Use L</guestfs_cat> to download small, text only files.  This call is "
30559 "limited to files which are less than 2 MB and which cannot contain any ASCII "
30560 "NUL (C<\\0>) characters.  However the API is very simple to use."
30561 msgstr ""
30562
30563 #. type: textblock
30564 #: ../src/guestfs.pod:269
30565 msgid ""
30566 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
30567 "bit data, since it returns a (pointer, size) pair.  However it is still "
30568 "limited to \"small\" files, less than 2 MB."
30569 msgstr ""
30570
30571 #. type: textblock
30572 #: ../src/guestfs.pod:273
30573 msgid ""
30574 "L</guestfs_download> can be used to download any file, with no limits on "
30575 "content or size (even files larger than 4 GB)."
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../src/guestfs.pod:276
30580 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
30581 msgstr ""
30582
30583 #. type: =head2
30584 #: ../src/guestfs.pod:279
30585 msgid "UPLOADING"
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../src/guestfs.pod:281
30590 msgid ""
30591 "It's often the case that you want to write a file or files to the disk "
30592 "image."
30593 msgstr ""
30594
30595 #. type: textblock
30596 #: ../src/guestfs.pod:284
30597 msgid ""
30598 "To write a small file with fixed content, use L</guestfs_write>.  To create "
30599 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
30600 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
30601 "variety of other functions for creating test files, for example "
30602 "L</guestfs_fill> and L</guestfs_fill_pattern>."
30603 msgstr ""
30604
30605 #. type: textblock
30606 #: ../src/guestfs.pod:290
30607 msgid ""
30608 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
30609 "file content or size (even files larger than 4 GB)."
30610 msgstr ""
30611
30612 #. type: textblock
30613 #: ../src/guestfs.pod:293
30614 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
30615 msgstr ""
30616
30617 #. type: textblock
30618 #: ../src/guestfs.pod:295
30619 msgid ""
30620 "However the fastest way to upload I<large numbers of arbitrary files> is to "
30621 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
30622 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
30623 "the drive in a predictable way (eg. adding it last after all other drives) "
30624 "then you can get the device name from L</guestfs_list_devices> and mount it "
30625 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
30626 "sometimes non-portable between kernel versions, and they don't support "
30627 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
30628 "using a label or UUID, use an ISO image instead."
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs.pod:306
30633 msgid "COPYING"
30634 msgstr ""
30635
30636 #. type: textblock
30637 #: ../src/guestfs.pod:308
30638 msgid ""
30639 "There are various different commands for copying between files and devices "
30640 "and in and out of the guest filesystem.  These are summarised in the table "
30641 "below."
30642 msgstr ""
30643
30644 #. type: =item
30645 #: ../src/guestfs.pod:314
30646 msgid "B<file> to B<file>"
30647 msgstr ""
30648
30649 #. type: textblock
30650 #: ../src/guestfs.pod:316
30651 msgid ""
30652 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
30653 "directories recursively."
30654 msgstr ""
30655
30656 #. type: =item
30657 #: ../src/guestfs.pod:319
30658 msgid "B<file or device> to B<file or device>"
30659 msgstr ""
30660
30661 #. type: textblock
30662 #: ../src/guestfs.pod:321
30663 msgid ""
30664 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
30665 "devices in the guest."
30666 msgstr ""
30667
30668 #. type: textblock
30669 #: ../src/guestfs.pod:324
30670 msgid "Example: duplicate the contents of an LV:"
30671 msgstr ""
30672
30673 #. type: verbatim
30674 #: ../src/guestfs.pod:326
30675 #, no-wrap
30676 msgid ""
30677 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
30678 "\n"
30679 msgstr ""
30680
30681 #. type: textblock
30682 #: ../src/guestfs.pod:328
30683 msgid ""
30684 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
30685 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
30686 "L</guestfs_copy_size>."
30687 msgstr ""
30688
30689 #. type: =item
30690 #: ../src/guestfs.pod:332
30691 msgid "B<file on the host> to B<file or device>"
30692 msgstr ""
30693
30694 #. type: textblock
30695 #: ../src/guestfs.pod:334
30696 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
30697 msgstr ""
30698
30699 #. type: =item
30700 #: ../src/guestfs.pod:336
30701 msgid "B<file or device> to B<file on the host>"
30702 msgstr ""
30703
30704 #. type: textblock
30705 #: ../src/guestfs.pod:338
30706 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
30707 msgstr ""
30708
30709 #. type: =head2
30710 #: ../src/guestfs.pod:342
30711 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
30712 msgstr ""
30713
30714 #. type: textblock
30715 #: ../src/guestfs.pod:344
30716 msgid ""
30717 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
30718 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
30719 "appears you can only upload and download to files.  However many Un*x-like "
30720 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
30721 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
30722 "stderr, and arbitrary file descriptor N."
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs.pod:352
30727 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
30728 msgstr ""
30729
30730 #. type: verbatim
30731 #: ../src/guestfs.pod:355
30732 #, no-wrap
30733 msgid ""
30734 " guestfs_download (g, filename, \"/dev/stdout\");\n"
30735 "\n"
30736 msgstr ""
30737
30738 #. type: textblock
30739 #: ../src/guestfs.pod:357
30740 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
30741 msgstr ""
30742
30743 #. type: verbatim
30744 #: ../src/guestfs.pod:359
30745 #, no-wrap
30746 msgid ""
30747 " char devfd[64];\n"
30748 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
30749 " guestfs_tar_out (g, \"/\", devfd);\n"
30750 "\n"
30751 msgstr ""
30752
30753 #. type: =head2
30754 #: ../src/guestfs.pod:363
30755 msgid "LISTING FILES"
30756 msgstr ""
30757
30758 #. type: textblock
30759 #: ../src/guestfs.pod:365
30760 msgid ""
30761 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
30762 "L<guestfish(1)>-equivalent command C<ll>)."
30763 msgstr ""
30764
30765 #. type: textblock
30766 #: ../src/guestfs.pod:368
30767 msgid ""
30768 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
30769 "programs, as a flat list of strings."
30770 msgstr ""
30771
30772 #. type: textblock
30773 #: ../src/guestfs.pod:371
30774 msgid ""
30775 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
30776 "directory, plus additional information about each one.  It is more "
30777 "equivalent to using the L<readdir(3)> call on a local filesystem."
30778 msgstr ""
30779
30780 #. type: textblock
30781 #: ../src/guestfs.pod:375
30782 msgid ""
30783 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
30784 "files."
30785 msgstr ""
30786
30787 #. type: =head2
30788 #: ../src/guestfs.pod:378
30789 msgid "RUNNING COMMANDS"
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../src/guestfs.pod:380
30794 msgid ""
30795 "Although libguestfs is primarily an API for manipulating files inside guest "
30796 "images, we also provide some limited facilities for running commands inside "
30797 "guests."
30798 msgstr ""
30799
30800 #. type: textblock
30801 #: ../src/guestfs.pod:384
30802 msgid "There are many limitations to this:"
30803 msgstr ""
30804
30805 #. type: textblock
30806 #: ../src/guestfs.pod:390
30807 msgid ""
30808 "The kernel version that the command runs under will be different from what "
30809 "it expects."
30810 msgstr ""
30811
30812 #. type: textblock
30813 #: ../src/guestfs.pod:395
30814 msgid ""
30815 "If the command needs to communicate with daemons, then most likely they "
30816 "won't be running."
30817 msgstr ""
30818
30819 #. type: textblock
30820 #: ../src/guestfs.pod:400
30821 msgid "The command will be running in limited memory."
30822 msgstr ""
30823
30824 #. type: textblock
30825 #: ../src/guestfs.pod:404
30826 msgid ""
30827 "The network may not be available unless you enable it (see "
30828 "L</guestfs_set_network>)."
30829 msgstr ""
30830
30831 #. type: textblock
30832 #: ../src/guestfs.pod:409
30833 msgid "Only supports Linux guests (not Windows, BSD, etc)."
30834 msgstr ""
30835
30836 #. type: textblock
30837 #: ../src/guestfs.pod:413
30838 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
30839 msgstr ""
30840
30841 #. type: textblock
30842 #: ../src/guestfs.pod:418
30843 msgid ""
30844 "For SELinux guests, you may need to enable SELinux and load policy first.  "
30845 "See L</SELINUX> in this manpage."
30846 msgstr ""
30847
30848 #. type: textblock
30849 #: ../src/guestfs.pod:423
30850 msgid ""
30851 "I<Security:> It is not safe to run commands from untrusted, possibly "
30852 "malicious guests.  These commands may attempt to exploit your program by "
30853 "sending unexpected output.  They could also try to exploit the Linux kernel "
30854 "or qemu provided by the libguestfs appliance.  They could use the network "
30855 "provided by the libguestfs appliance to bypass ordinary network partitions "
30856 "and firewalls.  They could use the elevated privileges or different SELinux "
30857 "context of your program to their advantage."
30858 msgstr ""
30859
30860 #. type: textblock
30861 #: ../src/guestfs.pod:432
30862 msgid ""
30863 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
30864 "(a script which runs when the guest next boots normally), and to have this "
30865 "script run the commands you want in the normal context of the running guest, "
30866 "network security and so on.  For information about other security issues, "
30867 "see L</SECURITY>."
30868 msgstr ""
30869
30870 #. type: textblock
30871 #: ../src/guestfs.pod:440
30872 msgid ""
30873 "The two main API calls to run commands are L</guestfs_command> and "
30874 "L</guestfs_sh> (there are also variations)."
30875 msgstr ""
30876
30877 #. type: textblock
30878 #: ../src/guestfs.pod:443
30879 msgid ""
30880 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
30881 "shell globs, redirections, etc will work."
30882 msgstr ""
30883
30884 #. type: =head2
30885 #: ../src/guestfs.pod:446
30886 msgid "CONFIGURATION FILES"
30887 msgstr ""
30888
30889 #. type: textblock
30890 #: ../src/guestfs.pod:448
30891 msgid ""
30892 "To read and write configuration files in Linux guest filesystems, we "
30893 "strongly recommend using Augeas.  For example, Augeas understands how to "
30894 "read and write, say, a Linux shadow password file or X.org configuration "
30895 "file, and so avoids you having to write that code."
30896 msgstr ""
30897
30898 #. type: textblock
30899 #: ../src/guestfs.pod:453
30900 msgid ""
30901 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
30902 "document Augeas itself here because there is excellent documentation on the "
30903 "L<http://augeas.net/> website."
30904 msgstr ""
30905
30906 #. type: textblock
30907 #: ../src/guestfs.pod:457
30908 msgid ""
30909 "If you don't want to use Augeas (you fool!) then try calling "
30910 "L</guestfs_read_lines> to get the file as a list of lines which you can "
30911 "iterate over."
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs.pod:461
30916 msgid "SELINUX"
30917 msgstr ""
30918
30919 #. type: textblock
30920 #: ../src/guestfs.pod:463
30921 msgid ""
30922 "We support SELinux guests.  To ensure that labeling happens correctly in "
30923 "SELinux guests, you need to enable SELinux and load the guest's policy:"
30924 msgstr ""
30925
30926 #. type: textblock
30927 #: ../src/guestfs.pod:471
30928 msgid "Before launching, do:"
30929 msgstr ""
30930
30931 #. type: verbatim
30932 #: ../src/guestfs.pod:473
30933 #, no-wrap
30934 msgid ""
30935 " guestfs_set_selinux (g, 1);\n"
30936 "\n"
30937 msgstr ""
30938
30939 #. type: textblock
30940 #: ../src/guestfs.pod:477
30941 msgid ""
30942 "After mounting the guest's filesystem(s), load the policy.  This is best "
30943 "done by running the L<load_policy(8)> command in the guest itself:"
30944 msgstr ""
30945
30946 #. type: verbatim
30947 #: ../src/guestfs.pod:481
30948 #, no-wrap
30949 msgid ""
30950 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
30951 "\n"
30952 msgstr ""
30953
30954 #. type: textblock
30955 #: ../src/guestfs.pod:483
30956 msgid ""
30957 "(Older versions of C<load_policy> require you to specify the name of the "
30958 "policy file)."
30959 msgstr ""
30960
30961 #. type: textblock
30962 #: ../src/guestfs.pod:488
30963 msgid ""
30964 "Optionally, set the security context for the API.  The correct security "
30965 "context to use can only be known by inspecting the guest.  As an example:"
30966 msgstr ""
30967
30968 #. type: verbatim
30969 #: ../src/guestfs.pod:492
30970 #, no-wrap
30971 msgid ""
30972 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
30973 "\n"
30974 msgstr ""
30975
30976 #. type: textblock
30977 #: ../src/guestfs.pod:496
30978 msgid "This will work for running commands and editing existing files."
30979 msgstr ""
30980
30981 #. type: textblock
30982 #: ../src/guestfs.pod:498
30983 msgid ""
30984 "When new files are created, you may need to label them explicitly, for "
30985 "example by running the external command C<restorecon pathname>."
30986 msgstr ""
30987
30988 #. type: =head2
30989 #: ../src/guestfs.pod:502
30990 msgid "UMASK"
30991 msgstr ""
30992
30993 #. type: textblock
30994 #: ../src/guestfs.pod:504
30995 msgid ""
30996 "Certain calls are affected by the current file mode creation mask (the "
30997 "\"umask\").  In particular ones which create files or directories, such as "
30998 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
30999 "either the default mode that the file is created with or modifies the mode "
31000 "that you supply."
31001 msgstr ""
31002
31003 #. type: textblock
31004 #: ../src/guestfs.pod:510
31005 msgid ""
31006 "The default umask is C<022>, so files are created with modes such as C<0644> "
31007 "and directories with C<0755>."
31008 msgstr ""
31009
31010 #. type: textblock
31011 #: ../src/guestfs.pod:513
31012 msgid ""
31013 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31014 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
31015 "L</guestfs_chmod> after creating each file or directory."
31016 msgstr ""
31017
31018 #. type: textblock
31019 #: ../src/guestfs.pod:517
31020 msgid "For more information about umask, see L<umask(2)>."
31021 msgstr ""
31022
31023 #. type: textblock
31024 #: ../src/guestfs.pod:521
31025 msgid ""
31026 "Libguestfs allows you to access Linux guests which have been encrypted using "
31027 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31028 "standard.  This includes nearly all whole disk encryption systems used by "
31029 "modern Linux guests."
31030 msgstr ""
31031
31032 #. type: textblock
31033 #: ../src/guestfs.pod:527
31034 msgid ""
31035 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31036 "returns the string C<crypto_LUKS>)."
31037 msgstr ""
31038
31039 #. type: textblock
31040 #: ../src/guestfs.pod:530
31041 msgid ""
31042 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31043 "will require the passphrase!"
31044 msgstr ""
31045
31046 #. type: textblock
31047 #: ../src/guestfs.pod:533
31048 msgid ""
31049 "Opening a LUKS device creates a new device mapper device called "
31050 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
31051 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
31052 "decrypted from and encrypted to the underlying block device respectively."
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs.pod:539
31057 msgid ""
31058 "LVM volume groups on the device can be made visible by calling "
31059 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
31060 "volume(s) can now be mounted in the usual way."
31061 msgstr ""
31062
31063 #. type: textblock
31064 #: ../src/guestfs.pod:543
31065 msgid ""
31066 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31067 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31068 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
31069 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31070 "underlying encrypted block device)."
31071 msgstr ""
31072
31073 #. type: =head2
31074 #: ../src/guestfs.pod:550
31075 msgid "INSPECTION"
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs.pod:552
31080 msgid ""
31081 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31082 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31083 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31084 "version 1.5.3 the most frequently used part of this library has been "
31085 "rewritten in C and moved into the core code)."
31086 msgstr ""
31087
31088 #. type: textblock
31089 #: ../src/guestfs.pod:559
31090 msgid ""
31091 "Add all disks belonging to the unknown virtual machine and call "
31092 "L</guestfs_launch> in the usual way."
31093 msgstr ""
31094
31095 #. type: textblock
31096 #: ../src/guestfs.pod:562
31097 msgid ""
31098 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31099 "and certain heuristics, and returns a list of operating systems that were "
31100 "found.  An empty list means none were found.  A single element is the root "
31101 "filesystem of the operating system.  For dual- or multi-boot guests, "
31102 "multiple roots can be returned, each one corresponding to a separate "
31103 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31104 "world of virtualization, but since this scenario can happen, we have built "
31105 "libguestfs to deal with it.)"
31106 msgstr ""
31107
31108 #. type: textblock
31109 #: ../src/guestfs.pod:571
31110 msgid ""
31111 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31112 "to get additional details about that operating system.  For example, call "
31113 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31114 "Windows and Linux-based operating systems respectively."
31115 msgstr ""
31116
31117 #. type: textblock
31118 #: ../src/guestfs.pod:577
31119 msgid ""
31120 "Un*x-like and Linux-based operating systems usually consist of several "
31121 "filesystems which are mounted at boot time (for example, a separate boot "
31122 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31123 "filesystems correspond to mount points.  Call "
31124 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31125 "hash table like this example:"
31126 msgstr ""
31127
31128 #. type: verbatim
31129 #: ../src/guestfs.pod:584
31130 #, no-wrap
31131 msgid ""
31132 " /boot => /dev/sda1\n"
31133 " /     => /dev/vg_guest/lv_root\n"
31134 " /usr  => /dev/vg_guest/lv_usr\n"
31135 "\n"
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs.pod:588
31140 msgid ""
31141 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31142 "filesystems as suggested."
31143 msgstr ""
31144
31145 #. type: textblock
31146 #: ../src/guestfs.pod:591
31147 msgid ""
31148 "Be careful to mount filesystems in the right order (eg. C</> before "
31149 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31150 "work."
31151 msgstr ""
31152
31153 #. type: textblock
31154 #: ../src/guestfs.pod:595
31155 msgid ""
31156 "Inspection currently only works for some common operating systems.  "
31157 "Contributors are welcome to send patches for other operating systems that we "
31158 "currently cannot detect."
31159 msgstr ""
31160
31161 #. type: textblock
31162 #: ../src/guestfs.pod:599
31163 msgid ""
31164 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31165 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31166 "encrypted devices."
31167 msgstr ""
31168
31169 #. type: textblock
31170 #: ../src/guestfs.pod:603
31171 msgid ""
31172 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31173 "inspection and caches the results in the guest handle.  Subsequent calls to "
31174 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31175 "re-read the disks.  If you change the content of the guest disks, you can "
31176 "redo inspection by calling L</guestfs_inspect_os> again.  "
31177 "(L</guestfs_inspect_list_applications> works a little differently from the "
31178 "other calls and does read the disks.  See documentation for that function "
31179 "for details)."
31180 msgstr ""
31181
31182 #. type: =head3
31183 #: ../src/guestfs.pod:612
31184 msgid "INSPECTING INSTALL DISKS"
31185 msgstr ""
31186
31187 #. type: textblock
31188 #: ../src/guestfs.pod:614
31189 msgid ""
31190 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31191 "CDs and more."
31192 msgstr ""
31193
31194 #. type: textblock
31195 #: ../src/guestfs.pod:617
31196 msgid ""
31197 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31198 "system, which currently can be C<installed> (a regular operating system) or "
31199 "C<installer> (some sort of install disk)."
31200 msgstr ""
31201
31202 #. type: textblock
31203 #: ../src/guestfs.pod:621
31204 msgid ""
31205 "Further information is available about the operating system that can be "
31206 "installed using the regular inspection APIs like "
31207 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31208 "etc."
31209 msgstr ""
31210
31211 #. type: textblock
31212 #: ../src/guestfs.pod:626
31213 msgid ""
31214 "Some additional information specific to installer disks is also available "
31215 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31216 "L</guestfs_inspect_is_multipart> calls."
31217 msgstr ""
31218
31219 #. type: =head2
31220 #: ../src/guestfs.pod:631
31221 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31222 msgstr ""
31223
31224 #. type: textblock
31225 #: ../src/guestfs.pod:633
31226 msgid ""
31227 "Libguestfs can mount NTFS partitions.  It does this using the "
31228 "L<http://www.ntfs-3g.org/> driver."
31229 msgstr ""
31230
31231 #. type: =head3
31232 #: ../src/guestfs.pod:636
31233 msgid "DRIVE LETTERS AND PATHS"
31234 msgstr ""
31235
31236 #. type: textblock
31237 #: ../src/guestfs.pod:638
31238 msgid ""
31239 "DOS and Windows still use drive letters, and the filesystems are always "
31240 "treated as case insensitive by Windows itself, and therefore you might find "
31241 "a Windows configuration file referring to a path like "
31242 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31243 "that directory might be referred to as C</WINDOWS/System32>."
31244 msgstr ""
31245
31246 #. type: textblock
31247 #: ../src/guestfs.pod:644
31248 msgid ""
31249 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31250 "L</guestfs_inspect_get_drive_mappings>)"
31251 msgstr ""
31252
31253 #. type: textblock
31254 #: ../src/guestfs.pod:647
31255 msgid ""
31256 "Dealing with separator characters (backslash vs forward slash) is outside "
31257 "the scope of libguestfs, but usually a simple character replacement will "
31258 "work."
31259 msgstr ""
31260
31261 #. type: textblock
31262 #: ../src/guestfs.pod:651
31263 msgid ""
31264 "To resolve the case insensitivity of paths, call "
31265 "L</guestfs_case_sensitive_path>."
31266 msgstr ""
31267
31268 #. type: =head3
31269 #: ../src/guestfs.pod:654
31270 msgid "ACCESSING THE WINDOWS REGISTRY"
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs.pod:656
31275 msgid ""
31276 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31277 "files, through the library C<hivex> which is part of the libguestfs project "
31278 "although ships as a separate tarball.  You have to locate and download the "
31279 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31280 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31281 "L<virt-win-reg(1)> for more help on this issue."
31282 msgstr ""
31283
31284 #. type: =head3
31285 #: ../src/guestfs.pod:664
31286 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31287 msgstr ""
31288
31289 #. type: textblock
31290 #: ../src/guestfs.pod:666
31291 msgid ""
31292 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31293 "provide something which looks like a Linux symlink.  The way it tries to do "
31294 "the rewriting is described here:"
31295 msgstr ""
31296
31297 #. type: textblock
31298 #: ../src/guestfs.pod:670
31299 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31300 msgstr ""
31301
31302 #. type: textblock
31303 #: ../src/guestfs.pod:672
31304 msgid ""
31305 "The essential problem is that ntfs-3g simply does not have enough "
31306 "information to do a correct job.  NTFS links can contain drive letters and "
31307 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31308 "It is almost certainly the case that libguestfs callers should ignore what "
31309 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31310 msgstr ""
31311
31312 #. type: textblock
31313 #: ../src/guestfs.pod:679
31314 msgid ""
31315 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31316 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31317 "attribute, and read the raw reparse data from that (you can find the format "
31318 "documented in various places around the web)."
31319 msgstr ""
31320
31321 #. type: =head3
31322 #: ../src/guestfs.pod:684
31323 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31324 msgstr ""
31325
31326 #. type: textblock
31327 #: ../src/guestfs.pod:686
31328 msgid ""
31329 "There are other useful extended attributes that can be read from ntfs-3g "
31330 "filesystems (using L</guestfs_getxattr>).  See:"
31331 msgstr ""
31332
31333 #. type: textblock
31334 #: ../src/guestfs.pod:689
31335 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31336 msgstr ""
31337
31338 #. type: =head2
31339 #: ../src/guestfs.pod:691
31340 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31341 msgstr ""
31342
31343 #. type: textblock
31344 #: ../src/guestfs.pod:693
31345 msgid ""
31346 "Although we don't want to discourage you from using the C API, we will "
31347 "mention here that the same API is also available in other languages."
31348 msgstr ""
31349
31350 #. type: textblock
31351 #: ../src/guestfs.pod:696
31352 msgid ""
31353 "The API is broadly identical in all supported languages.  This means that "
31354 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31355 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31356 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31357 "each language."
31358 msgstr ""
31359
31360 #. type: textblock
31361 #: ../src/guestfs.pod:702
31362 msgid ""
31363 "Error messages are automatically transformed into exceptions if the language "
31364 "supports it."
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs.pod:705
31369 msgid ""
31370 "We don't try to \"object orientify\" parts of the API in OO languages, "
31371 "although contributors are welcome to write higher level APIs above what we "
31372 "provide in their favourite languages if they wish."
31373 msgstr ""
31374
31375 #. type: =item
31376 #: ../src/guestfs.pod:711
31377 msgid "B<C++>"
31378 msgstr ""
31379
31380 #. type: textblock
31381 #: ../src/guestfs.pod:713
31382 msgid ""
31383 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
31384 "identical to the C API.  C++ classes and exceptions are not used."
31385 msgstr ""
31386
31387 #. type: =item
31388 #: ../src/guestfs.pod:717
31389 msgid "B<C#>"
31390 msgstr ""
31391
31392 #. type: textblock
31393 #: ../src/guestfs.pod:719
31394 msgid ""
31395 "The C# bindings are highly experimental.  Please read the warnings at the "
31396 "top of C<csharp/Libguestfs.cs>."
31397 msgstr ""
31398
31399 #. type: =item
31400 #: ../src/guestfs.pod:722
31401 msgid "B<Haskell>"
31402 msgstr ""
31403
31404 #. type: textblock
31405 #: ../src/guestfs.pod:724
31406 msgid ""
31407 "This is the only language binding that is working but incomplete.  Only "
31408 "calls which return simple integers have been bound in Haskell, and we are "
31409 "looking for help to complete this binding."
31410 msgstr ""
31411
31412 #. type: =item
31413 #: ../src/guestfs.pod:728
31414 msgid "B<Java>"
31415 msgstr ""
31416
31417 #. type: textblock
31418 #: ../src/guestfs.pod:730
31419 msgid ""
31420 "Full documentation is contained in the Javadoc which is distributed with "
31421 "libguestfs.  For examples, see L<guestfs-java(3)>."
31422 msgstr ""
31423
31424 #. type: =item
31425 #: ../src/guestfs.pod:733
31426 msgid "B<OCaml>"
31427 msgstr ""
31428
31429 #. type: textblock
31430 #: ../src/guestfs.pod:735
31431 msgid "See L<guestfs-ocaml(3)>."
31432 msgstr ""
31433
31434 #. type: =item
31435 #: ../src/guestfs.pod:737
31436 msgid "B<Perl>"
31437 msgstr ""
31438
31439 #. type: textblock
31440 #: ../src/guestfs.pod:739
31441 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
31442 msgstr ""
31443
31444 #. type: =item
31445 #: ../src/guestfs.pod:741
31446 msgid "B<PHP>"
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../src/guestfs.pod:743
31451 msgid ""
31452 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
31453 "the php-libguestfs package for your distribution."
31454 msgstr ""
31455
31456 #. type: textblock
31457 #: ../src/guestfs.pod:746
31458 msgid "The PHP binding only works correctly on 64 bit machines."
31459 msgstr ""
31460
31461 #. type: =item
31462 #: ../src/guestfs.pod:748
31463 msgid "B<Python>"
31464 msgstr ""
31465
31466 #. type: textblock
31467 #: ../src/guestfs.pod:750
31468 msgid "See L<guestfs-python(3)>."
31469 msgstr ""
31470
31471 #. type: =item
31472 #: ../src/guestfs.pod:752
31473 msgid "B<Ruby>"
31474 msgstr ""
31475
31476 #. type: textblock
31477 #: ../src/guestfs.pod:754
31478 msgid "See L<guestfs-ruby(3)>."
31479 msgstr ""
31480
31481 #. type: =item
31482 #: ../src/guestfs.pod:756
31483 msgid "B<shell scripts>"
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs.pod:758
31488 msgid "See L<guestfish(1)>."
31489 msgstr ""
31490
31491 #. type: =head2
31492 #: ../src/guestfs.pod:762
31493 msgid "LIBGUESTFS GOTCHAS"
31494 msgstr ""
31495
31496 #. type: textblock
31497 #: ../src/guestfs.pod:764
31498 msgid ""
31499 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
31500 "system [...] that works in the way it is documented but is counterintuitive "
31501 "and almost invites mistakes.\""
31502 msgstr ""
31503
31504 #. type: textblock
31505 #: ../src/guestfs.pod:768
31506 msgid ""
31507 "Since we developed libguestfs and the associated tools, there are several "
31508 "things we would have designed differently, but are now stuck with for "
31509 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
31510 "release, you can expect these to change.  Beware of them."
31511 msgstr ""
31512
31513 #. type: =item
31514 #: ../src/guestfs.pod:776
31515 msgid "Autosync / forgetting to sync."
31516 msgstr ""
31517
31518 #. type: textblock
31519 #: ../src/guestfs.pod:778
31520 msgid ""
31521 "I<Update:> Autosync is enabled by default for all API users starting from "
31522 "libguestfs 1.5.24.  This section only applies to older versions."
31523 msgstr ""
31524
31525 #. type: textblock
31526 #: ../src/guestfs.pod:781
31527 msgid ""
31528 "When modifying a filesystem from C or another language, you B<must> unmount "
31529 "all filesystems and call L</guestfs_sync> explicitly before you close the "
31530 "libguestfs handle.  You can also call:"
31531 msgstr ""
31532
31533 #. type: verbatim
31534 #: ../src/guestfs.pod:785
31535 #, no-wrap
31536 msgid ""
31537 " guestfs_set_autosync (g, 1);\n"
31538 "\n"
31539 msgstr ""
31540
31541 #. type: textblock
31542 #: ../src/guestfs.pod:787
31543 msgid ""
31544 "to have the unmount/sync done automatically for you when the handle 'g' is "
31545 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
31546 "q.v.)"
31547 msgstr ""
31548
31549 #. type: textblock
31550 #: ../src/guestfs.pod:791
31551 msgid ""
31552 "If you forget to do this, then it is entirely possible that your changes "
31553 "won't be written out, or will be partially written, or (very rarely) that "
31554 "you'll get disk corruption."
31555 msgstr ""
31556
31557 #. type: textblock
31558 #: ../src/guestfs.pod:795
31559 msgid ""
31560 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
31561 "guestfish scripts that forget to sync will work just fine, which can make "
31562 "this very puzzling if you are trying to debug a problem."
31563 msgstr ""
31564
31565 #. type: =item
31566 #: ../src/guestfs.pod:799
31567 msgid "Mount option C<-o sync> should not be the default."
31568 msgstr ""
31569
31570 #. type: textblock
31571 #: ../src/guestfs.pod:801
31572 msgid ""
31573 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
31574 "However C<-o sync> does not add any reliability benefit, but does have a "
31575 "very large performance impact."
31576 msgstr ""
31577
31578 #. type: textblock
31579 #: ../src/guestfs.pod:805
31580 msgid ""
31581 "The work around is to use L</guestfs_mount_options> and set the mount "
31582 "options that you actually want to use."
31583 msgstr ""
31584
31585 #. type: =item
31586 #: ../src/guestfs.pod:808
31587 msgid "Read-only should be the default."
31588 msgstr ""
31589
31590 #. type: textblock
31591 #: ../src/guestfs.pod:810
31592 msgid ""
31593 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
31594 "specify I<--rw> if you want to make changes to the image."
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs.pod:813
31599 msgid "This would reduce the potential to corrupt live VM images."
31600 msgstr ""
31601
31602 #. type: textblock
31603 #: ../src/guestfs.pod:815
31604 msgid ""
31605 "Note that many filesystems change the disk when you just mount and unmount, "
31606 "even if you didn't perform any writes.  You need to use "
31607 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
31608 msgstr ""
31609
31610 #. type: =item
31611 #: ../src/guestfs.pod:819
31612 msgid "guestfish command line is hard to use."
31613 msgstr ""
31614
31615 #. type: textblock
31616 #: ../src/guestfs.pod:821
31617 msgid ""
31618 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
31619 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
31620 "exist, so it fails.  In earlier versions of guestfish the error message was "
31621 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
31622 "we should have used C<guestfish -c command> to run commands."
31623 msgstr ""
31624
31625 #. type: =item
31626 #: ../src/guestfs.pod:828
31627 msgid "guestfish megabyte modifiers don't work right on all commands"
31628 msgstr ""
31629
31630 #. type: textblock
31631 #: ../src/guestfs.pod:830
31632 msgid ""
31633 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
31634 "other modifiers).  What guestfish actually does is to multiply the number "
31635 "part by the modifier part and pass the result to the C API.  However this "
31636 "doesn't work for a few APIs which aren't expecting bytes, but are already "
31637 "expecting some other unit (eg. megabytes)."
31638 msgstr ""
31639
31640 #. type: textblock
31641 #: ../src/guestfs.pod:837
31642 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
31643 msgstr ""
31644
31645 #. type: verbatim
31646 #: ../src/guestfs.pod:839
31647 #, no-wrap
31648 msgid ""
31649 " lvcreate LV VG 100M\n"
31650 "\n"
31651 msgstr ""
31652
31653 #. type: textblock
31654 #: ../src/guestfs.pod:841
31655 msgid ""
31656 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
31657 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
31658 "megabytes * megabytes) logical volume.  The error message you get from this "
31659 "is also a little obscure."
31660 msgstr ""
31661
31662 #. type: textblock
31663 #: ../src/guestfs.pod:846
31664 msgid ""
31665 "This could be fixed in the generator by specially marking parameters and "
31666 "return values which take bytes or other units."
31667 msgstr ""
31668
31669 #. type: =item
31670 #: ../src/guestfs.pod:849
31671 msgid "Ambiguity between devices and paths"
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs.pod:851
31676 msgid ""
31677 "There is a subtle ambiguity in the API between a device name "
31678 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
31679 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
31680 msgstr ""
31681
31682 #. type: textblock
31683 #: ../src/guestfs.pod:856
31684 msgid ""
31685 "In the current API we usually resolve this ambiguity by having two separate "
31686 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
31687 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
31688 "detecting if the path supplied begins with C</dev/>."
31689 msgstr ""
31690
31691 #. type: textblock
31692 #: ../src/guestfs.pod:862
31693 msgid ""
31694 "To avoid both the ambiguity and the need to duplicate some calls, we could "
31695 "make paths/devices into structured names.  One way to do this would be to "
31696 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
31697 "aspect of grub.  Another way would be to use a structured type, equivalent "
31698 "to this OCaml type:"
31699 msgstr ""
31700
31701 #. type: verbatim
31702 #: ../src/guestfs.pod:868
31703 #, no-wrap
31704 msgid ""
31705 " type path = Path of string | Device of int | Partition of int * int\n"
31706 "\n"
31707 msgstr ""
31708
31709 #. type: textblock
31710 #: ../src/guestfs.pod:870
31711 msgid "which would allow you to pass arguments like:"
31712 msgstr ""
31713
31714 #. type: verbatim
31715 #: ../src/guestfs.pod:872
31716 #, no-wrap
31717 msgid ""
31718 " Path \"/foo/bar\"\n"
31719 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
31720 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
31721 " Path \"/dev/sdb2\"    (* not a device *)\n"
31722 "\n"
31723 msgstr ""
31724
31725 #. type: textblock
31726 #: ../src/guestfs.pod:877
31727 msgid ""
31728 "As you can see there are still problems to resolve even with this "
31729 "representation.  Also consider how it might work in guestfish."
31730 msgstr ""
31731
31732 #. type: =head2
31733 #: ../src/guestfs.pod:882
31734 msgid "KEYS AND PASSPHRASES"
31735 msgstr ""
31736
31737 #. type: textblock
31738 #: ../src/guestfs.pod:884
31739 msgid ""
31740 "Certain libguestfs calls take a parameter that contains sensitive key "
31741 "material, passed in as a C string."
31742 msgstr ""
31743
31744 #. type: textblock
31745 #: ../src/guestfs.pod:887
31746 msgid ""
31747 "In the future we would hope to change the libguestfs implementation so that "
31748 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
31749 "swap.  However this is I<not> done at the moment, because of the complexity "
31750 "of such an implementation."
31751 msgstr ""
31752
31753 #. type: textblock
31754 #: ../src/guestfs.pod:892
31755 msgid ""
31756 "Therefore you should be aware that any key parameter you pass to libguestfs "
31757 "might end up being written out to the swap partition.  If this is a concern, "
31758 "scrub the swap partition or don't use libguestfs on encrypted devices."
31759 msgstr ""
31760
31761 #. type: =head2
31762 #: ../src/guestfs.pod:897
31763 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
31764 msgstr ""
31765
31766 #. type: textblock
31767 #: ../src/guestfs.pod:899
31768 msgid ""
31769 "All high-level libguestfs actions are synchronous.  If you want to use "
31770 "libguestfs asynchronously then you must create a thread."
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs.pod:902
31775 msgid ""
31776 "Only use the handle from a single thread.  Either use the handle exclusively "
31777 "from one thread, or provide your own mutex so that two threads cannot issue "
31778 "calls on the same handle at the same time."
31779 msgstr ""
31780
31781 #. type: textblock
31782 #: ../src/guestfs.pod:906
31783 msgid ""
31784 "See the graphical program guestfs-browser for one possible architecture for "
31785 "multithreaded programs using libvirt and libguestfs."
31786 msgstr ""
31787
31788 #. type: =head2
31789 #: ../src/guestfs.pod:909
31790 msgid "PATH"
31791 msgstr ""
31792
31793 #. type: textblock
31794 #: ../src/guestfs.pod:911
31795 msgid ""
31796 "Libguestfs needs a supermin appliance, which it finds by looking along an "
31797 "internal path."
31798 msgstr ""
31799
31800 #. type: textblock
31801 #: ../src/guestfs.pod:914
31802 msgid ""
31803 "By default it looks for these in the directory C<$libdir/guestfs> "
31804 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
31805 msgstr ""
31806
31807 #. type: textblock
31808 #: ../src/guestfs.pod:917
31809 msgid ""
31810 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
31811 "to change the directories that libguestfs will search in.  The value is a "
31812 "colon-separated list of paths.  The current directory is I<not> searched "
31813 "unless the path contains an empty element or C<.>.  For example "
31814 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
31815 "then C</usr/lib/guestfs>."
31816 msgstr ""
31817
31818 #. type: =head2
31819 #: ../src/guestfs.pod:924
31820 msgid "QEMU WRAPPERS"
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:926
31825 msgid ""
31826 "If you want to compile your own qemu, run qemu from a non-standard location, "
31827 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
31828 "around qemu."
31829 msgstr ""
31830
31831 #. type: textblock
31832 #: ../src/guestfs.pod:930
31833 msgid ""
31834 "There is one important rule to remember: you I<must C<exec qemu>> as the "
31835 "last command in the shell script (so that qemu replaces the shell and "
31836 "becomes the direct child of the libguestfs-using program).  If you don't do "
31837 "this, then the qemu process won't be cleaned up correctly."
31838 msgstr ""
31839
31840 #. type: textblock
31841 #: ../src/guestfs.pod:935
31842 msgid ""
31843 "Here is an example of a wrapper, where I have built my own copy of qemu from "
31844 "source:"
31845 msgstr ""
31846
31847 #. type: verbatim
31848 #: ../src/guestfs.pod:938
31849 #, no-wrap
31850 msgid ""
31851 " #!/bin/sh -\n"
31852 " qemudir=/home/rjones/d/qemu\n"
31853 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
31854 "\"$@\"\n"
31855 "\n"
31856 msgstr ""
31857
31858 #. type: textblock
31859 #: ../src/guestfs.pod:942
31860 msgid ""
31861 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
31862 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
31863 "example:"
31864 msgstr ""
31865
31866 #. type: verbatim
31867 #: ../src/guestfs.pod:946
31868 #, no-wrap
31869 msgid ""
31870 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
31871 "\n"
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs.pod:948
31876 msgid ""
31877 "Note that libguestfs also calls qemu with the -help and -version options in "
31878 "order to determine features."
31879 msgstr ""
31880
31881 #. type: =head2
31882 #: ../src/guestfs.pod:951
31883 msgid "ATTACHING TO RUNNING DAEMONS"
31884 msgstr ""
31885
31886 #. type: textblock
31887 #: ../src/guestfs.pod:953
31888 msgid ""
31889 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
31890 "babies.  Use with caution."
31891 msgstr ""
31892
31893 #. type: textblock
31894 #: ../src/guestfs.pod:956
31895 msgid ""
31896 "I<Note (2):> This section explains how to attach to a running daemon from a "
31897 "low level perspective.  For most users, simply using virt tools such as "
31898 "L<guestfish(1)> with the I<--live> option will \"just work\"."
31899 msgstr ""
31900
31901 #. type: =head3
31902 #: ../src/guestfs.pod:960
31903 msgid "Using guestfs_set_attach_method"
31904 msgstr ""
31905
31906 #. type: textblock
31907 #: ../src/guestfs.pod:962
31908 msgid ""
31909 "By calling L</guestfs_set_attach_method> you can change how the library "
31910 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
31911 "L</ARCHITECTURE> for some background)."
31912 msgstr ""
31913
31914 #. type: textblock
31915 #: ../src/guestfs.pod:966
31916 msgid ""
31917 "The normal attach method is C<appliance>, where a small appliance is created "
31918 "containing the daemon, and then the library connects to this."
31919 msgstr ""
31920
31921 #. type: textblock
31922 #: ../src/guestfs.pod:969
31923 msgid ""
31924 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
31925 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
31926 "daemon over the Unix domain socket."
31927 msgstr ""
31928
31929 #. type: textblock
31930 #: ../src/guestfs.pod:973
31931 msgid ""
31932 "The normal use for this is to connect to a running virtual machine that "
31933 "contains a C<guestfsd> daemon, and send commands so you can read and write "
31934 "files inside the live virtual machine."
31935 msgstr ""
31936
31937 #. type: =head3
31938 #: ../src/guestfs.pod:977
31939 msgid "Using guestfs_add_domain with live flag"
31940 msgstr ""
31941
31942 #. type: textblock
31943 #: ../src/guestfs.pod:979
31944 msgid ""
31945 "L</guestfs_add_domain> provides some help for getting the correct attach "
31946 "method.  If you pass the C<live> option to this function, then (if the "
31947 "virtual machine is running) it will examine the libvirt XML looking for a "
31948 "virtio-serial channel to connect to:"
31949 msgstr ""
31950
31951 #. type: verbatim
31952 #: ../src/guestfs.pod:985
31953 #, no-wrap
31954 msgid ""
31955 " <domain>\n"
31956 "   ...\n"
31957 "   <devices>\n"
31958 "     ...\n"
31959 "     <channel type='unix'>\n"
31960 "       <source mode='bind' path='/path/to/socket'/>\n"
31961 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
31962 "     </channel>\n"
31963 "     ...\n"
31964 "   </devices>\n"
31965 " </domain>\n"
31966 "\n"
31967 msgstr ""
31968
31969 #. type: textblock
31970 #: ../src/guestfs.pod:997
31971 msgid ""
31972 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
31973 "method to C<unix:/path/to/socket>."
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs.pod:1000
31978 msgid ""
31979 "Some of the libguestfs tools (including guestfish) support a I<--live> "
31980 "option which is passed through to L</guestfs_add_domain> thus allowing you "
31981 "to attach to and modify live virtual machines."
31982 msgstr ""
31983
31984 #. type: textblock
31985 #: ../src/guestfs.pod:1004
31986 msgid ""
31987 "The virtual machine needs to have been set up beforehand so that it has the "
31988 "virtio-serial channel and so that guestfsd is running inside it."
31989 msgstr ""
31990
31991 #. type: =head2
31992 #: ../src/guestfs.pod:1008
31993 msgid "ABI GUARANTEE"
31994 msgstr ""
31995
31996 #. type: textblock
31997 #: ../src/guestfs.pod:1010
31998 msgid ""
31999 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32000 "actions as outlined in this section.  Although we will deprecate some "
32001 "actions, for example if they get replaced by newer calls, we will keep the "
32002 "old actions forever.  This allows you the developer to program in confidence "
32003 "against the libguestfs API."
32004 msgstr ""
32005
32006 #. type: =head2
32007 #: ../src/guestfs.pod:1016
32008 msgid "BLOCK DEVICE NAMING"
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs.pod:1018
32013 msgid ""
32014 "In the kernel there is now quite a profusion of schemata for naming block "
32015 "devices (in this context, by I<block device> I mean a physical or virtual "
32016 "hard drive).  The original Linux IDE driver used names starting with "
32017 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
32018 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
32019 "replacement for the old IDE driver (particularly for SATA devices) those "
32020 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
32021 "machines with paravirtualized drivers.  This has created several different "
32022 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
32023 "Xen PV disks."
32024 msgstr ""
32025
32026 #. type: textblock
32027 #: ../src/guestfs.pod:1030
32028 msgid ""
32029 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32030 "Linux kernel to access block devices.  We can run a variety of appliances "
32031 "based on a variety of Linux kernels."
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs.pod:1034
32036 msgid ""
32037 "This causes a problem for libguestfs because many API calls use device or "
32038 "partition names.  Working scripts and the recipe (example) scripts that we "
32039 "make available over the internet could fail if the naming scheme changes."
32040 msgstr ""
32041
32042 #. type: textblock
32043 #: ../src/guestfs.pod:1039
32044 msgid ""
32045 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32046 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32047 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32048 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32049 msgstr ""
32050
32051 #. type: textblock
32052 #: ../src/guestfs.pod:1045
32053 msgid ""
32054 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32055 "L</guestfs_list_partitions> and similar calls return the true names of the "
32056 "devices and partitions as known to the appliance."
32057 msgstr ""
32058
32059 #. type: =head3
32060 #: ../src/guestfs.pod:1050
32061 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32062 msgstr ""
32063
32064 #. type: textblock
32065 #: ../src/guestfs.pod:1052
32066 msgid ""
32067 "Usually this translation is transparent.  However in some (very rare)  cases "
32068 "you may need to know the exact algorithm.  Such cases include where you use "
32069 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
32070 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
32071 "devices."
32072 msgstr ""
32073
32074 #. type: textblock
32075 #: ../src/guestfs.pod:1058
32076 msgid ""
32077 "The algorithm is applied only to I<parameters> which are known to be either "
32078 "device or partition names.  Return values from functions such as "
32079 "L</guestfs_list_devices> are never changed."
32080 msgstr ""
32081
32082 #. type: textblock
32083 #: ../src/guestfs.pod:1066
32084 msgid "Is the string a parameter which is a device or partition name?"
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs.pod:1070
32089 msgid "Does the string begin with C</dev/sd>?"
32090 msgstr ""
32091
32092 #. type: textblock
32093 #: ../src/guestfs.pod:1074
32094 msgid ""
32095 "Does the named device exist? If so, we use that device.  However if I<not> "
32096 "then we continue with this algorithm."
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs.pod:1079
32101 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32102 msgstr ""
32103
32104 #. type: textblock
32105 #: ../src/guestfs.pod:1081
32106 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32107 msgstr ""
32108
32109 #. type: textblock
32110 #: ../src/guestfs.pod:1083
32111 msgid "If that named device exists, use it.  If not, continue."
32112 msgstr ""
32113
32114 #. type: textblock
32115 #: ../src/guestfs.pod:1087
32116 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32117 msgstr ""
32118
32119 #. type: textblock
32120 #: ../src/guestfs.pod:1089
32121 msgid "If that named device exists, use it.  If not, return an error."
32122 msgstr ""
32123
32124 #. type: =head3
32125 #: ../src/guestfs.pod:1093
32126 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32127 msgstr ""
32128
32129 #. type: textblock
32130 #: ../src/guestfs.pod:1095
32131 msgid ""
32132 "Although the standard naming scheme and automatic translation is useful for "
32133 "simple programs and guestfish scripts, for larger programs it is best not to "
32134 "rely on this mechanism."
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs.pod:1099
32139 msgid ""
32140 "Where possible for maximum future portability programs using libguestfs "
32141 "should use these future-proof techniques:"
32142 msgstr ""
32143
32144 #. type: textblock
32145 #: ../src/guestfs.pod:1106
32146 msgid ""
32147 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32148 "device names, and then use those names directly."
32149 msgstr ""
32150
32151 #. type: textblock
32152 #: ../src/guestfs.pod:1109
32153 msgid "Since those device names exist by definition, they will never be translated."
32154 msgstr ""
32155
32156 #. type: textblock
32157 #: ../src/guestfs.pod:1114
32158 msgid ""
32159 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32160 "filesystem labels."
32161 msgstr ""
32162
32163 #. type: =head1
32164 #: ../src/guestfs.pod:1119
32165 msgid "SECURITY"
32166 msgstr ""
32167
32168 #. type: textblock
32169 #: ../src/guestfs.pod:1121
32170 msgid ""
32171 "This section discusses security implications of using libguestfs, "
32172 "particularly with untrusted or malicious guests or disk images."
32173 msgstr ""
32174
32175 #. type: =head2
32176 #: ../src/guestfs.pod:1124
32177 msgid "GENERAL SECURITY CONSIDERATIONS"
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs.pod:1126
32182 msgid ""
32183 "Be careful with any files or data that you download from a guest (by "
32184 "\"download\" we mean not just the L</guestfs_download> command but any "
32185 "command that reads files, filenames, directories or anything else from a "
32186 "disk image).  An attacker could manipulate the data to fool your program "
32187 "into doing the wrong thing.  Consider cases such as:"
32188 msgstr ""
32189
32190 #. type: textblock
32191 #: ../src/guestfs.pod:1136
32192 msgid "the data (file etc) not being present"
32193 msgstr ""
32194
32195 #. type: textblock
32196 #: ../src/guestfs.pod:1140
32197 msgid "being present but empty"
32198 msgstr ""
32199
32200 #. type: textblock
32201 #: ../src/guestfs.pod:1144
32202 msgid "being much larger than normal"
32203 msgstr ""
32204
32205 #. type: textblock
32206 #: ../src/guestfs.pod:1148
32207 msgid "containing arbitrary 8 bit data"
32208 msgstr ""
32209
32210 #. type: textblock
32211 #: ../src/guestfs.pod:1152
32212 msgid "being in an unexpected character encoding"
32213 msgstr ""
32214
32215 #. type: textblock
32216 #: ../src/guestfs.pod:1156
32217 msgid "containing homoglyphs."
32218 msgstr ""
32219
32220 #. type: =head2
32221 #: ../src/guestfs.pod:1160
32222 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32223 msgstr ""
32224
32225 #. type: textblock
32226 #: ../src/guestfs.pod:1162
32227 msgid ""
32228 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32229 "(VFS) module can sometimes be escalated into exploits by deliberately "
32230 "creating a malicious, malformed filesystem.  These exploits are very severe "
32231 "for two reasons.  Firstly there are very many filesystem drivers in the "
32232 "kernel, and many of them are infrequently used and not much developer "
32233 "attention has been paid to the code.  Linux userspace helps potential "
32234 "crackers by detecting the filesystem type and automatically choosing the "
32235 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32236 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32237 "exploit (worse in some ways), giving immediate and total access to the "
32238 "system right down to the hardware level."
32239 msgstr ""
32240
32241 #. type: textblock
32242 #: ../src/guestfs.pod:1175
32243 msgid ""
32244 "That explains why you should never mount a filesystem from an untrusted "
32245 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32246 "inside a qemu virtual machine, usually running as a non-root user.  The "
32247 "attacker would need to write a filesystem which first exploited the kernel, "
32248 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32249 "the libguestfs protocol, and finally to be as serious as the host kernel "
32250 "exploit it would need to escalate its privileges to root.  This multi-step "
32251 "escalation, performed by a static piece of data, is thought to be extremely "
32252 "hard to do, although we never say 'never' about security issues."
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs.pod:1186
32257 msgid ""
32258 "In any case callers can reduce the attack surface by forcing the filesystem "
32259 "type when mounting (use L</guestfs_mount_vfs>)."
32260 msgstr ""
32261
32262 #. type: =head2
32263 #: ../src/guestfs.pod:1189
32264 msgid "PROTOCOL SECURITY"
32265 msgstr ""
32266
32267 #. type: textblock
32268 #: ../src/guestfs.pod:1191
32269 msgid ""
32270 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32271 "defined upper message size.  However a program that uses libguestfs must "
32272 "also take care - for example you can write a program that downloads a binary "
32273 "from a disk image and executes it locally, and no amount of protocol "
32274 "security will save you from the consequences."
32275 msgstr ""
32276
32277 #. type: =head2
32278 #: ../src/guestfs.pod:1197
32279 msgid "INSPECTION SECURITY"
32280 msgstr ""
32281
32282 #. type: textblock
32283 #: ../src/guestfs.pod:1199
32284 msgid ""
32285 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32286 "directly from the guest, and these could contain any 8 bit data.  Callers "
32287 "should be careful to escape these before printing them to a structured file "
32288 "(for example, use HTML escaping if creating a web page)."
32289 msgstr ""
32290
32291 #. type: textblock
32292 #: ../src/guestfs.pod:1205
32293 msgid ""
32294 "Guest configuration may be altered in unusual ways by the administrator of "
32295 "the virtual machine, and may not reflect reality (particularly for untrusted "
32296 "or actively malicious guests).  For example we parse the hostname from "
32297 "configuration files like C</etc/sysconfig/network> that we find in the "
32298 "guest, but the guest administrator can easily manipulate these files to "
32299 "provide the wrong hostname."
32300 msgstr ""
32301
32302 #. type: textblock
32303 #: ../src/guestfs.pod:1213
32304 msgid ""
32305 "The inspection API parses guest configuration using two external libraries: "
32306 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32307 "designed to be robust in the face of malicious data, although denial of "
32308 "service attacks are still possible, for example with oversized configuration "
32309 "files."
32310 msgstr ""
32311
32312 #. type: =head2
32313 #: ../src/guestfs.pod:1219
32314 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
32315 msgstr ""
32316
32317 #. type: textblock
32318 #: ../src/guestfs.pod:1221
32319 msgid ""
32320 "Be very cautious about running commands from the guest.  By running a "
32321 "command in the guest, you are giving CPU time to a binary that you do not "
32322 "control, under the same user account as the library, albeit wrapped in qemu "
32323 "virtualization.  More information and alternatives can be found in the "
32324 "section L</RUNNING COMMANDS>."
32325 msgstr ""
32326
32327 #. type: =head2
32328 #: ../src/guestfs.pod:1227
32329 msgid "CVE-2010-3851"
32330 msgstr ""
32331
32332 #. type: textblock
32333 #: ../src/guestfs.pod:1229
32334 msgid "https://bugzilla.redhat.com/642934"
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:1231
32339 msgid ""
32340 "This security bug concerns the automatic disk format detection that qemu "
32341 "does on disk images."
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs.pod:1234
32346 msgid ""
32347 "A raw disk image is just the raw bytes, there is no header.  Other disk "
32348 "images like qcow2 contain a special header.  Qemu deals with this by looking "
32349 "for one of the known headers, and if none is found then assuming the disk "
32350 "image must be raw."
32351 msgstr ""
32352
32353 #. type: textblock
32354 #: ../src/guestfs.pod:1239
32355 msgid ""
32356 "This allows a guest which has been given a raw disk image to write some "
32357 "other header.  At next boot (or when the disk image is accessed by "
32358 "libguestfs) qemu would do autodetection and think the disk image format was, "
32359 "say, qcow2 based on the header written by the guest."
32360 msgstr ""
32361
32362 #. type: textblock
32363 #: ../src/guestfs.pod:1244
32364 msgid ""
32365 "This in itself would not be a problem, but qcow2 offers many features, one "
32366 "of which is to allow a disk image to refer to another image (called the "
32367 "\"backing disk\").  It does this by placing the path to the backing disk "
32368 "into the qcow2 header.  This path is not validated and could point to any "
32369 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
32370 "\"holes\" in the qcow2 disk image, which of course is completely under the "
32371 "control of the attacker."
32372 msgstr ""
32373
32374 #. type: textblock
32375 #: ../src/guestfs.pod:1252
32376 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
32377 msgstr ""
32378
32379 #. type: textblock
32380 #: ../src/guestfs.pod:1259
32381 msgid "You have enabled the network or have opened the disk in write mode."
32382 msgstr ""
32383
32384 #. type: textblock
32385 #: ../src/guestfs.pod:1263
32386 msgid ""
32387 "You are also running untrusted code from the guest (see L</RUNNING "
32388 "COMMANDS>)."
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs.pod:1268
32393 msgid ""
32394 "The way to avoid this is to specify the expected disk format when adding "
32395 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
32396 "should always do this if the disk is raw format, and it's a good idea for "
32397 "other cases too."
32398 msgstr ""
32399
32400 #. type: textblock
32401 #: ../src/guestfs.pod:1273
32402 msgid ""
32403 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
32404 "format is fetched from libvirt and passed through."
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs.pod:1276
32409 msgid ""
32410 "For libguestfs tools, use the I<--format> command line parameter as "
32411 "appropriate."
32412 msgstr ""
32413
32414 #. type: =head1
32415 #: ../src/guestfs.pod:1279
32416 msgid "CONNECTION MANAGEMENT"
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs.pod:1281
32421 msgid "guestfs_h *"
32422 msgstr ""
32423
32424 #. type: textblock
32425 #: ../src/guestfs.pod:1283
32426 msgid ""
32427 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
32428 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
32429 "handle and release all resources used."
32430 msgstr ""
32431
32432 #. type: textblock
32433 #: ../src/guestfs.pod:1287
32434 msgid ""
32435 "For information on using multiple handles and threads, see the section "
32436 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
32437 msgstr ""
32438
32439 #. type: =head2
32440 #: ../src/guestfs.pod:1290
32441 msgid "guestfs_create"
32442 msgstr ""
32443
32444 #. type: verbatim
32445 #: ../src/guestfs.pod:1292
32446 #, no-wrap
32447 msgid ""
32448 " guestfs_h *guestfs_create (void);\n"
32449 "\n"
32450 msgstr ""
32451
32452 #. type: textblock
32453 #: ../src/guestfs.pod:1294
32454 msgid "Create a connection handle."
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs.pod:1296
32459 msgid ""
32460 "On success this returns a non-NULL pointer to a handle.  On error it returns "
32461 "NULL."
32462 msgstr ""
32463
32464 #. type: textblock
32465 #: ../src/guestfs.pod:1299
32466 msgid ""
32467 "You have to \"configure\" the handle after creating it.  This includes "
32468 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
32469 "handle at least once."
32470 msgstr ""
32471
32472 #. type: textblock
32473 #: ../src/guestfs.pod:1303
32474 msgid "After configuring the handle, you have to call L</guestfs_launch>."
32475 msgstr ""
32476
32477 #. type: textblock
32478 #: ../src/guestfs.pod:1305
32479 msgid ""
32480 "You may also want to configure error handling for the handle.  See the "
32481 "L</ERROR HANDLING> section below."
32482 msgstr ""
32483
32484 #. type: =head2
32485 #: ../src/guestfs.pod:1308
32486 msgid "guestfs_close"
32487 msgstr ""
32488
32489 #. type: verbatim
32490 #: ../src/guestfs.pod:1310
32491 #, no-wrap
32492 msgid ""
32493 " void guestfs_close (guestfs_h *g);\n"
32494 "\n"
32495 msgstr ""
32496
32497 #. type: textblock
32498 #: ../src/guestfs.pod:1312
32499 msgid "This closes the connection handle and frees up all resources used."
32500 msgstr ""
32501
32502 #. type: textblock
32503 #: ../src/guestfs.pod:1314
32504 msgid ""
32505 "If autosync was set on the handle and the handle was launched, then this "
32506 "implicitly calls various functions to unmount filesystems and sync the "
32507 "disk.  See L</guestfs_set_autosync> for more details."
32508 msgstr ""
32509
32510 #. type: textblock
32511 #: ../src/guestfs.pod:1318
32512 msgid "If a close callback was set on the handle, then it is called."
32513 msgstr ""
32514
32515 #. type: =head1
32516 #: ../src/guestfs.pod:1320
32517 msgid "ERROR HANDLING"
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:1322
32522 msgid ""
32523 "API functions can return errors.  For example, almost all functions that "
32524 "return C<int> will return C<-1> to indicate an error."
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:1325
32529 msgid ""
32530 "Additional information is available for errors: an error message string and "
32531 "optionally an error number (errno) if the thing that failed was a system "
32532 "call."
32533 msgstr ""
32534
32535 #. type: textblock
32536 #: ../src/guestfs.pod:1329
32537 msgid ""
32538 "You can get at the additional information about the last error on the handle "
32539 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
32540 "up an error handler with L</guestfs_set_error_handler>."
32541 msgstr ""
32542
32543 #. type: textblock
32544 #: ../src/guestfs.pod:1334
32545 msgid ""
32546 "When the handle is created, a default error handler is installed which "
32547 "prints the error message string to C<stderr>.  For small short-running "
32548 "command line programs it is sufficient to do:"
32549 msgstr ""
32550
32551 #. type: verbatim
32552 #: ../src/guestfs.pod:1338
32553 #, no-wrap
32554 msgid ""
32555 " if (guestfs_launch (g) == -1)\n"
32556 "   exit (EXIT_FAILURE);\n"
32557 "\n"
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:1341
32562 msgid ""
32563 "since the default error handler will ensure that an error message has been "
32564 "printed to C<stderr> before the program exits."
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs.pod:1344
32569 msgid ""
32570 "For other programs the caller will almost certainly want to install an "
32571 "alternate error handler or do error handling in-line like this:"
32572 msgstr ""
32573
32574 #. type: verbatim
32575 #: ../src/guestfs.pod:1347
32576 #, no-wrap
32577 msgid ""
32578 " g = guestfs_create ();\n"
32579 " \n"
32580 msgstr ""
32581
32582 #. type: verbatim
32583 #: ../src/guestfs.pod:1349
32584 #, no-wrap
32585 msgid ""
32586 " /* This disables the default behaviour of printing errors\n"
32587 "    on stderr. */\n"
32588 " guestfs_set_error_handler (g, NULL, NULL);\n"
32589 " \n"
32590 msgstr ""
32591
32592 #. type: verbatim
32593 #: ../src/guestfs.pod:1353
32594 #, no-wrap
32595 msgid ""
32596 " if (guestfs_launch (g) == -1) {\n"
32597 "   /* Examine the error message and print it etc. */\n"
32598 "   char *msg = guestfs_last_error (g);\n"
32599 "   int errnum = guestfs_last_errno (g);\n"
32600 "   fprintf (stderr, \"%s\\n\", msg);\n"
32601 "   /* ... */\n"
32602 "  }\n"
32603 "\n"
32604 msgstr ""
32605
32606 #. type: textblock
32607 #: ../src/guestfs.pod:1361
32608 msgid ""
32609 "Out of memory errors are handled differently.  The default action is to call "
32610 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
32611 "L</guestfs_set_out_of_memory_handler>."
32612 msgstr ""
32613
32614 #. type: textblock
32615 #: ../src/guestfs.pod:1365
32616 msgid ""
32617 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
32618 "because there is no handle if this happens there is no way to get additional "
32619 "error information.  However L</guestfs_create> is supposed to be a "
32620 "lightweight operation which can only fail because of insufficient memory (it "
32621 "returns NULL in this case)."
32622 msgstr ""
32623
32624 #. type: =head2
32625 #: ../src/guestfs.pod:1371
32626 msgid "guestfs_last_error"
32627 msgstr ""
32628
32629 #. type: verbatim
32630 #: ../src/guestfs.pod:1373
32631 #, no-wrap
32632 msgid ""
32633 " const char *guestfs_last_error (guestfs_h *g);\n"
32634 "\n"
32635 msgstr ""
32636
32637 #. type: textblock
32638 #: ../src/guestfs.pod:1375
32639 msgid ""
32640 "This returns the last error message that happened on C<g>.  If there has not "
32641 "been an error since the handle was created, then this returns C<NULL>."
32642 msgstr ""
32643
32644 #. type: textblock
32645 #: ../src/guestfs.pod:1379
32646 msgid ""
32647 "The lifetime of the returned string is until the next error occurs, or "
32648 "L</guestfs_close> is called."
32649 msgstr ""
32650
32651 #. type: =head2
32652 #: ../src/guestfs.pod:1382
32653 msgid "guestfs_last_errno"
32654 msgstr ""
32655
32656 #. type: verbatim
32657 #: ../src/guestfs.pod:1384
32658 #, no-wrap
32659 msgid ""
32660 " int guestfs_last_errno (guestfs_h *g);\n"
32661 "\n"
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs.pod:1386
32666 msgid "This returns the last error number (errno) that happened on C<g>."
32667 msgstr ""
32668
32669 #. type: textblock
32670 #: ../src/guestfs.pod:1388
32671 msgid "If successful, an errno integer not equal to zero is returned."
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs.pod:1390
32676 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
32677 msgstr ""
32678
32679 #. type: textblock
32680 #: ../src/guestfs.pod:1397
32681 msgid "There has not been any error on the handle."
32682 msgstr ""
32683
32684 #. type: textblock
32685 #: ../src/guestfs.pod:1401
32686 msgid ""
32687 "There has been an error but the errno was meaningless.  This corresponds to "
32688 "the case where the error did not come from a failed system call, but for "
32689 "some other reason."
32690 msgstr ""
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:1407
32694 msgid ""
32695 "There was an error from a failed system call, but for some reason the errno "
32696 "was not captured and returned.  This usually indicates a bug in libguestfs."
32697 msgstr ""
32698
32699 #. type: textblock
32700 #: ../src/guestfs.pod:1413
32701 msgid ""
32702 "Libguestfs tries to convert the errno from inside the applicance into a "
32703 "corresponding errno for the caller (not entirely trivial: the appliance "
32704 "might be running a completely different operating system from the library "
32705 "and error numbers are not standardized across Un*xen).  If this could not be "
32706 "done, then the error is translated to C<EINVAL>.  In practice this should "
32707 "only happen in very rare circumstances."
32708 msgstr ""
32709
32710 #. type: =head2
32711 #: ../src/guestfs.pod:1421
32712 msgid "guestfs_set_error_handler"
32713 msgstr ""
32714
32715 #. type: verbatim
32716 #: ../src/guestfs.pod:1423
32717 #, no-wrap
32718 msgid ""
32719 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
32720 "                                           void *opaque,\n"
32721 "                                           const char *msg);\n"
32722 " void guestfs_set_error_handler (guestfs_h *g,\n"
32723 "                                 guestfs_error_handler_cb cb,\n"
32724 "                                 void *opaque);\n"
32725 "\n"
32726 msgstr ""
32727
32728 #. type: textblock
32729 #: ../src/guestfs.pod:1430
32730 msgid ""
32731 "The callback C<cb> will be called if there is an error.  The parameters "
32732 "passed to the callback are an opaque data pointer and the error message "
32733 "string."
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs.pod:1434
32738 msgid ""
32739 "C<errno> is not passed to the callback.  To get that the callback must call "
32740 "L</guestfs_last_errno>."
32741 msgstr ""
32742
32743 #. type: textblock
32744 #: ../src/guestfs.pod:1437
32745 msgid ""
32746 "Note that the message string C<msg> is freed as soon as the callback "
32747 "function returns, so if you want to stash it somewhere you must make your "
32748 "own copy."
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs.pod:1441
32753 msgid "The default handler prints messages on C<stderr>."
32754 msgstr ""
32755
32756 #. type: textblock
32757 #: ../src/guestfs.pod:1443
32758 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
32759 msgstr ""
32760
32761 #. type: =head2
32762 #: ../src/guestfs.pod:1445
32763 msgid "guestfs_get_error_handler"
32764 msgstr ""
32765
32766 #. type: verbatim
32767 #: ../src/guestfs.pod:1447
32768 #, no-wrap
32769 msgid ""
32770 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
32771 "                                                     void **opaque_rtn);\n"
32772 "\n"
32773 msgstr ""
32774
32775 #. type: textblock
32776 #: ../src/guestfs.pod:1450
32777 msgid "Returns the current error handler callback."
32778 msgstr ""
32779
32780 #. type: =head2
32781 #: ../src/guestfs.pod:1452
32782 msgid "guestfs_set_out_of_memory_handler"
32783 msgstr ""
32784
32785 #. type: verbatim
32786 #: ../src/guestfs.pod:1454
32787 #, no-wrap
32788 msgid ""
32789 " typedef void (*guestfs_abort_cb) (void);\n"
32790 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
32791 "                                         guestfs_abort_cb);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs.pod:1458
32797 msgid ""
32798 "The callback C<cb> will be called if there is an out of memory situation.  "
32799 "I<Note this callback must not return>."
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs.pod:1461
32804 msgid "The default is to call L<abort(3)>."
32805 msgstr ""
32806
32807 #. type: textblock
32808 #: ../src/guestfs.pod:1463
32809 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
32810 msgstr ""
32811
32812 #. type: =head2
32813 #: ../src/guestfs.pod:1466
32814 msgid "guestfs_get_out_of_memory_handler"
32815 msgstr ""
32816
32817 #. type: verbatim
32818 #: ../src/guestfs.pod:1468
32819 #, no-wrap
32820 msgid ""
32821 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
32822 "\n"
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs.pod:1470
32827 msgid "This returns the current out of memory handler."
32828 msgstr ""
32829
32830 #. type: =head1
32831 #: ../src/guestfs.pod:1472
32832 msgid "API CALLS"
32833 msgstr ""
32834
32835 #. type: =head1
32836 #: ../src/guestfs.pod:1476
32837 msgid "STRUCTURES"
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs.pod:1478
32842 msgid "@STRUCTS@"
32843 msgstr ""
32844
32845 #. type: =head1
32846 #: ../src/guestfs.pod:1480
32847 msgid "AVAILABILITY"
32848 msgstr ""
32849
32850 #. type: =head2
32851 #: ../src/guestfs.pod:1482
32852 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
32853 msgstr ""
32854
32855 #. type: textblock
32856 #: ../src/guestfs.pod:1484
32857 msgid ""
32858 "Using L</guestfs_available> you can test availability of the following "
32859 "groups of functions.  This test queries the appliance to see if the "
32860 "appliance you are currently using supports the functionality."
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../src/guestfs.pod:1489
32865 msgid "@AVAILABILITY@"
32866 msgstr ""
32867
32868 #. type: =head2
32869 #: ../src/guestfs.pod:1491
32870 msgid "GUESTFISH supported COMMAND"
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs.pod:1493
32875 msgid ""
32876 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
32877 "prints out the available groups and whether they are supported by this build "
32878 "of libguestfs.  Note however that you have to do C<run> first."
32879 msgstr ""
32880
32881 #. type: =head2
32882 #: ../src/guestfs.pod:1498
32883 msgid "SINGLE CALLS AT COMPILE TIME"
32884 msgstr ""
32885
32886 #. type: textblock
32887 #: ../src/guestfs.pod:1500
32888 msgid ""
32889 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
32890 "function, such as:"
32891 msgstr ""
32892
32893 #. type: verbatim
32894 #: ../src/guestfs.pod:1503
32895 #, no-wrap
32896 msgid ""
32897 " #define LIBGUESTFS_HAVE_DD 1\n"
32898 "\n"
32899 msgstr ""
32900
32901 #. type: textblock
32902 #: ../src/guestfs.pod:1505
32903 msgid "if L</guestfs_dd> is available."
32904 msgstr ""
32905
32906 #. type: textblock
32907 #: ../src/guestfs.pod:1507
32908 msgid ""
32909 "Before version 1.5.8, if you needed to test whether a single libguestfs "
32910 "function is available at compile time, we recommended using build tools such "
32911 "as autoconf or cmake.  For example in autotools you could use:"
32912 msgstr ""
32913
32914 #. type: verbatim
32915 #: ../src/guestfs.pod:1512
32916 #, no-wrap
32917 msgid ""
32918 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
32919 " AC_CHECK_FUNCS([guestfs_dd])\n"
32920 "\n"
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs.pod:1515
32925 msgid ""
32926 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
32927 "in your program."
32928 msgstr ""
32929
32930 #. type: =head2
32931 #: ../src/guestfs.pod:1518
32932 msgid "SINGLE CALLS AT RUN TIME"
32933 msgstr ""
32934
32935 #. type: textblock
32936 #: ../src/guestfs.pod:1520
32937 msgid ""
32938 "Testing at compile time doesn't guarantee that a function really exists in "
32939 "the library.  The reason is that you might be dynamically linked against a "
32940 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
32941 "This situation unfortunately results in a segmentation fault, which is a "
32942 "shortcoming of the C dynamic linking system itself."
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs.pod:1527
32947 msgid ""
32948 "You can use L<dlopen(3)> to test if a function is available at run time, as "
32949 "in this example program (note that you still need the compile time check as "
32950 "well):"
32951 msgstr ""
32952
32953 #. type: verbatim
32954 #: ../src/guestfs.pod:1531
32955 #, no-wrap
32956 msgid ""
32957 " #include <stdio.h>\n"
32958 " #include <stdlib.h>\n"
32959 " #include <unistd.h>\n"
32960 " #include <dlfcn.h>\n"
32961 " #include <guestfs.h>\n"
32962 " \n"
32963 msgstr ""
32964
32965 #. type: verbatim
32966 #: ../src/guestfs.pod:1537
32967 #, no-wrap
32968 msgid ""
32969 " main ()\n"
32970 " {\n"
32971 " #ifdef LIBGUESTFS_HAVE_DD\n"
32972 "   void *dl;\n"
32973 "   int has_function;\n"
32974 " \n"
32975 msgstr ""
32976
32977 #. type: verbatim
32978 #: ../src/guestfs.pod:1543
32979 #, no-wrap
32980 msgid ""
32981 "   /* Test if the function guestfs_dd is really available. */\n"
32982 "   dl = dlopen (NULL, RTLD_LAZY);\n"
32983 "   if (!dl) {\n"
32984 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
32985 "     exit (EXIT_FAILURE);\n"
32986 "   }\n"
32987 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
32988 "   dlclose (dl);\n"
32989 " \n"
32990 msgstr ""
32991
32992 #. type: verbatim
32993 #: ../src/guestfs.pod:1552
32994 #, no-wrap
32995 msgid ""
32996 "   if (!has_function)\n"
32997 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
32998 "   else {\n"
32999 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33000 "     /* Now it's safe to call\n"
33001 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33002 "     */\n"
33003 "   }\n"
33004 " #else\n"
33005 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33006 " #endif\n"
33007 "  }\n"
33008 "\n"
33009 msgstr ""
33010
33011 #. type: textblock
33012 #: ../src/guestfs.pod:1565
33013 msgid ""
33014 "You may think the above is an awful lot of hassle, and it is.  There are "
33015 "other ways outside of the C linking system to ensure that this kind of "
33016 "incompatibility never arises, such as using package versioning:"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs.pod:1570
33021 #, no-wrap
33022 msgid ""
33023 " Requires: libguestfs >= 1.0.80\n"
33024 "\n"
33025 msgstr ""
33026
33027 #. type: =head1
33028 #: ../src/guestfs.pod:1572
33029 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs.pod:1574
33034 msgid ""
33035 "A recent feature of the API is the introduction of calls which take optional "
33036 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33037 "takes variable arguments (ie. C<...>), as in this example:"
33038 msgstr ""
33039
33040 #. type: verbatim
33041 #: ../src/guestfs.pod:1579
33042 #, no-wrap
33043 msgid ""
33044 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33045 "\n"
33046 msgstr ""
33047
33048 #. type: textblock
33049 #: ../src/guestfs.pod:1581
33050 msgid ""
33051 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33052 "call with no optional arguments specified:"
33053 msgstr ""
33054
33055 #. type: verbatim
33056 #: ../src/guestfs.pod:1584
33057 #, no-wrap
33058 msgid ""
33059 " guestfs_add_drive_opts (g, filename, -1);\n"
33060 "\n"
33061 msgstr ""
33062
33063 #. type: textblock
33064 #: ../src/guestfs.pod:1586
33065 msgid "With a single optional argument:"
33066 msgstr ""
33067
33068 #. type: verbatim
33069 #: ../src/guestfs.pod:1588
33070 #, no-wrap
33071 msgid ""
33072 " guestfs_add_drive_opts (g, filename,\n"
33073 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33074 "                         -1);\n"
33075 "\n"
33076 msgstr ""
33077
33078 #. type: textblock
33079 #: ../src/guestfs.pod:1592
33080 msgid "With two:"
33081 msgstr ""
33082
33083 #. type: verbatim
33084 #: ../src/guestfs.pod:1594
33085 #, no-wrap
33086 msgid ""
33087 " guestfs_add_drive_opts (g, filename,\n"
33088 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33089 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33090 "                         -1);\n"
33091 "\n"
33092 msgstr ""
33093
33094 #. type: textblock
33095 #: ../src/guestfs.pod:1599
33096 msgid ""
33097 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33098 "happen!"
33099 msgstr ""
33100
33101 #. type: =head2
33102 #: ../src/guestfs.pod:1602
33103 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs.pod:1604
33108 msgid ""
33109 "The second variant has the same name with the suffix C<_va>, which works the "
33110 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33111 "example function, this is declared:"
33112 msgstr ""
33113
33114 #. type: verbatim
33115 #: ../src/guestfs.pod:1608
33116 #, no-wrap
33117 msgid ""
33118 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33119 "                                va_list args);\n"
33120 "\n"
33121 msgstr ""
33122
33123 #. type: =head2
33124 #: ../src/guestfs.pod:1611
33125 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33126 msgstr ""
33127
33128 #. type: textblock
33129 #: ../src/guestfs.pod:1613
33130 msgid ""
33131 "The third variant is useful where you need to construct these calls.  You "
33132 "pass in a structure where you fill in the optional fields.  The structure "
33133 "has a bitmask as the first element which you must set to indicate which "
33134 "fields you have filled in.  For our example function the structure and call "
33135 "are declared:"
33136 msgstr ""
33137
33138 #. type: verbatim
33139 #: ../src/guestfs.pod:1619
33140 #, no-wrap
33141 msgid ""
33142 " struct guestfs_add_drive_opts_argv {\n"
33143 "   uint64_t bitmask;\n"
33144 "   int readonly;\n"
33145 "   const char *format;\n"
33146 "   /* ... */\n"
33147 " };\n"
33148 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33149 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33150 "\n"
33151 msgstr ""
33152
33153 #. type: textblock
33154 #: ../src/guestfs.pod:1628
33155 msgid "You could call it like this:"
33156 msgstr ""
33157
33158 #. type: verbatim
33159 #: ../src/guestfs.pod:1630
33160 #, no-wrap
33161 msgid ""
33162 " struct guestfs_add_drive_opts_argv optargs = {\n"
33163 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33164 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33165 "   .readonly = 1,\n"
33166 "   .format = \"qcow2\"\n"
33167 " };\n"
33168 " \n"
33169 msgstr ""
33170
33171 #. type: verbatim
33172 #: ../src/guestfs.pod:1637
33173 #, no-wrap
33174 msgid ""
33175 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33176 "\n"
33177 msgstr ""
33178
33179 #. type: textblock
33180 #: ../src/guestfs.pod:1645
33181 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33182 msgstr ""
33183
33184 #. type: textblock
33185 #: ../src/guestfs.pod:1650
33186 msgid "You do not need to fill in all fields of the structure."
33187 msgstr ""
33188
33189 #. type: textblock
33190 #: ../src/guestfs.pod:1654
33191 msgid ""
33192 "There must be a one-to-one correspondence between fields of the structure "
33193 "that are filled in, and bits set in the bitmask."
33194 msgstr ""
33195
33196 #. type: =head2
33197 #: ../src/guestfs.pod:1659
33198 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs.pod:1661
33203 msgid ""
33204 "In other languages, optional arguments are expressed in the way that is "
33205 "natural for that language.  We refer you to the language-specific "
33206 "documentation for more details on that."
33207 msgstr ""
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:1665
33211 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33212 msgstr ""
33213
33214 #. type: =head2
33215 #: ../src/guestfs.pod:1667
33216 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33217 msgstr ""
33218
33219 #. type: textblock
33220 #: ../src/guestfs.pod:1669
33221 msgid ""
33222 "B<Note:> This section documents the generic event mechanism introduced in "
33223 "libguestfs 1.10, which you should use in new code if possible.  The old "
33224 "functions C<guestfs_set_log_message_callback>, "
33225 "C<guestfs_set_subprocess_quit_callback>, "
33226 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33227 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33228 "page.  Because of the ABI guarantee, the old functions continue to work."
33229 msgstr ""
33230
33231 #. type: textblock
33232 #: ../src/guestfs.pod:1678
33233 msgid ""
33234 "Handles generate events when certain things happen, such as log messages "
33235 "being generated, progress messages during long-running operations, or the "
33236 "handle being closed.  The API calls described below let you register a "
33237 "callback to be called when events happen.  You can register multiple "
33238 "callbacks (for the same, different or overlapping sets of events), and "
33239 "individually remove callbacks.  If callbacks are not removed, then they "
33240 "remain in force until the handle is closed."
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:1686
33245 msgid ""
33246 "In the current implementation, events are only generated synchronously: that "
33247 "means that events (and hence callbacks) can only happen while you are in the "
33248 "middle of making another libguestfs call.  The callback is called in the "
33249 "same thread."
33250 msgstr ""
33251
33252 #. type: textblock
33253 #: ../src/guestfs.pod:1691
33254 msgid ""
33255 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33256 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33257 msgstr ""
33258
33259 #. type: =head3
33260 #: ../src/guestfs.pod:1695
33261 msgid "CLASSES OF EVENTS"
33262 msgstr ""
33263
33264 #. type: =item
33265 #: ../src/guestfs.pod:1699
33266 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33267 msgstr ""
33268
33269 #. type: textblock
33270 #: ../src/guestfs.pod:1702
33271 msgid ""
33272 "The callback function will be called while the handle is being closed "
33273 "(synchronously from L</guestfs_close>)."
33274 msgstr ""
33275
33276 #. type: textblock
33277 #: ../src/guestfs.pod:1705
33278 msgid ""
33279 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33280 "handles that are open when the program exits.  This means that this callback "
33281 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33282 "problems in higher-level languages (eg. if your HLL interpreter has already "
33283 "been cleaned up by the time this is called, and if your callback then jumps "
33284 "into some HLL function)."
33285 msgstr ""
33286
33287 #. type: textblock
33288 #: ../src/guestfs.pod:1712
33289 msgid ""
33290 "If no callback is registered: the handle is closed without any callback "
33291 "being invoked."
33292 msgstr ""
33293
33294 #. type: =item
33295 #: ../src/guestfs.pod:1715
33296 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33297 msgstr ""
33298
33299 #. type: textblock
33300 #: ../src/guestfs.pod:1718
33301 msgid ""
33302 "The callback function will be called when the child process quits, either "
33303 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33304 "corresponds to a transition from any state to the CONFIG state)."
33305 msgstr ""
33306
33307 #. type: textblock
33308 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
33309 msgid "If no callback is registered: the event is ignored."
33310 msgstr ""
33311
33312 #. type: =item
33313 #: ../src/guestfs.pod:1724
33314 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
33315 msgstr ""
33316
33317 #. type: textblock
33318 #: ../src/guestfs.pod:1727
33319 msgid ""
33320 "The callback function will be called when the child process becomes ready "
33321 "first time after it has been launched.  (This corresponds to a transition "
33322 "from LAUNCHING to the READY state)."
33323 msgstr ""
33324
33325 #. type: =item
33326 #: ../src/guestfs.pod:1733
33327 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs.pod:1736
33332 msgid ""
33333 "Some long-running operations can generate progress messages.  If this "
33334 "callback is registered, then it will be called each time a progress message "
33335 "is generated (usually two seconds after the operation started, and three "
33336 "times per second thereafter until it completes, although the frequency may "
33337 "change in future versions)."
33338 msgstr ""
33339
33340 #. type: textblock
33341 #: ../src/guestfs.pod:1742
33342 msgid ""
33343 "The callback receives in the payload four unsigned 64 bit numbers which are "
33344 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
33345 msgstr ""
33346
33347 #. type: textblock
33348 #: ../src/guestfs.pod:1745
33349 msgid ""
33350 "The units of C<total> are not defined, although for some operations C<total> "
33351 "may relate in some way to the amount of data to be transferred (eg. in bytes "
33352 "or megabytes), and C<position> may be the portion which has been "
33353 "transferred."
33354 msgstr ""
33355
33356 #. type: textblock
33357 #: ../src/guestfs.pod:1750
33358 msgid "The only defined and stable parts of the API are:"
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:1756
33363 msgid ""
33364 "The callback can display to the user some type of progress bar or indicator "
33365 "which shows the ratio of C<position>:C<total>."
33366 msgstr ""
33367
33368 #. type: textblock
33369 #: ../src/guestfs.pod:1761
33370 msgid "0 E<lt>= C<position> E<lt>= C<total>"
33371 msgstr ""
33372
33373 #. type: textblock
33374 #: ../src/guestfs.pod:1765
33375 msgid ""
33376 "If any progress notification is sent during a call, then a final progress "
33377 "notification is always sent when C<position> = C<total> (I<unless> the call "
33378 "fails with an error)."
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs.pod:1769
33383 msgid ""
33384 "This is to simplify caller code, so callers can easily set the progress "
33385 "indicator to \"100%\" at the end of the operation, without requiring special "
33386 "code to detect this case."
33387 msgstr ""
33388
33389 #. type: textblock
33390 #: ../src/guestfs.pod:1775
33391 msgid ""
33392 "For some calls we are unable to estimate the progress of the call, but we "
33393 "can still generate progress messages to indicate activity.  This is known as "
33394 "\"pulse mode\", and is directly supported by certain progress bar "
33395 "implementations (eg. GtkProgressBar)."
33396 msgstr ""
33397
33398 #. type: textblock
33399 #: ../src/guestfs.pod:1780
33400 msgid ""
33401 "For these calls, zero or more progress messages are generated with "
33402 "C<position = 0> and C<total = 1>, followed by a final message with "
33403 "C<position = total = 1>."
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs.pod:1784
33408 msgid ""
33409 "As noted above, if the call fails with an error then the final message may "
33410 "not be generated."
33411 msgstr ""
33412
33413 #. type: textblock
33414 #: ../src/guestfs.pod:1789
33415 msgid ""
33416 "The callback also receives the procedure number (C<proc_nr>) and serial "
33417 "number (C<serial>) of the call.  These are only useful for debugging "
33418 "protocol issues, and the callback can normally ignore them.  The callback "
33419 "may want to print these numbers in error messages or debugging messages."
33420 msgstr ""
33421
33422 #. type: textblock
33423 #: ../src/guestfs.pod:1795
33424 msgid "If no callback is registered: progress messages are discarded."
33425 msgstr ""
33426
33427 #. type: =item
33428 #: ../src/guestfs.pod:1797
33429 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs.pod:1800
33434 msgid ""
33435 "The callback function is called whenever a log message is generated by qemu, "
33436 "the appliance kernel, guestfsd (daemon), or utility programs."
33437 msgstr ""
33438
33439 #. type: textblock
33440 #: ../src/guestfs.pod:1803
33441 msgid ""
33442 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
33443 "(L</guestfs_launch>) then additional debug messages are generated."
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
33448 msgid ""
33449 "If no callback is registered: the messages are discarded unless the verbose "
33450 "flag is set in which case they are sent to stderr.  You can override the "
33451 "printing of verbose messages to stderr by setting up a callback."
33452 msgstr ""
33453
33454 #. type: =item
33455 #: ../src/guestfs.pod:1811
33456 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:1814
33461 msgid ""
33462 "The callback function is called whenever a log message is generated by the "
33463 "library part of libguestfs."
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:1817
33468 msgid ""
33469 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
33470 "messages are generated."
33471 msgstr ""
33472
33473 #. type: =item
33474 #: ../src/guestfs.pod:1825
33475 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
33476 msgstr ""
33477
33478 #. type: textblock
33479 #: ../src/guestfs.pod:1828
33480 msgid ""
33481 "The callback function is called whenever a trace message is generated.  This "
33482 "only applies if the trace flag (L</guestfs_set_trace>) is set."
33483 msgstr ""
33484
33485 #. type: textblock
33486 #: ../src/guestfs.pod:1831
33487 msgid ""
33488 "If no callback is registered: the messages are sent to stderr.  You can "
33489 "override the printing of trace messages to stderr by setting up a callback."
33490 msgstr ""
33491
33492 #. type: =head3
33493 #: ../src/guestfs.pod:1837
33494 msgid "guestfs_set_event_callback"
33495 msgstr ""
33496
33497 #. type: verbatim
33498 #: ../src/guestfs.pod:1839
33499 #, no-wrap
33500 msgid ""
33501 " int guestfs_set_event_callback (guestfs_h *g,\n"
33502 "                                 guestfs_event_callback cb,\n"
33503 "                                 uint64_t event_bitmask,\n"
33504 "                                 int flags,\n"
33505 "                                 void *opaque);\n"
33506 "\n"
33507 msgstr ""
33508
33509 #. type: textblock
33510 #: ../src/guestfs.pod:1845
33511 msgid ""
33512 "This function registers a callback (C<cb>) for all event classes in the "
33513 "C<event_bitmask>."
33514 msgstr ""
33515
33516 #. type: textblock
33517 #: ../src/guestfs.pod:1848
33518 msgid ""
33519 "For example, to register for all log message events, you could call this "
33520 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
33521 "To register a single callback for all possible classes of events, use "
33522 "C<GUESTFS_EVENT_ALL>."
33523 msgstr ""
33524
33525 #. type: textblock
33526 #: ../src/guestfs.pod:1854
33527 msgid "C<flags> should always be passed as 0."
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:1856
33532 msgid ""
33533 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
33534 "it for any purpose."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:1859
33539 msgid ""
33540 "The return value is the event handle (an integer) which you can use to "
33541 "delete the callback (see below)."
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs.pod:1862
33546 msgid ""
33547 "If there is an error, this function returns C<-1>, and sets the error in the "
33548 "handle in the usual way (see L</guestfs_last_error> etc.)"
33549 msgstr ""
33550
33551 #. type: textblock
33552 #: ../src/guestfs.pod:1865
33553 msgid ""
33554 "Callbacks remain in effect until they are deleted, or until the handle is "
33555 "closed."
33556 msgstr ""
33557
33558 #. type: textblock
33559 #: ../src/guestfs.pod:1868
33560 msgid ""
33561 "In the case where multiple callbacks are registered for a particular event "
33562 "class, all of the callbacks are called.  The order in which multiple "
33563 "callbacks are called is not defined."
33564 msgstr ""
33565
33566 #. type: =head3
33567 #: ../src/guestfs.pod:1872
33568 msgid "guestfs_delete_event_callback"
33569 msgstr ""
33570
33571 #. type: verbatim
33572 #: ../src/guestfs.pod:1874
33573 #, no-wrap
33574 msgid ""
33575 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
33576 "\n"
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs.pod:1876
33581 msgid ""
33582 "Delete a callback that was previously registered.  C<event_handle> should be "
33583 "the integer that was returned by a previous call to "
33584 "C<guestfs_set_event_callback> on the same handle."
33585 msgstr ""
33586
33587 #. type: =head3
33588 #: ../src/guestfs.pod:1880
33589 msgid "guestfs_event_callback"
33590 msgstr ""
33591
33592 #. type: verbatim
33593 #: ../src/guestfs.pod:1882
33594 #, no-wrap
33595 msgid ""
33596 " typedef void (*guestfs_event_callback) (\n"
33597 "                  guestfs_h *g,\n"
33598 "                  void *opaque,\n"
33599 "                  uint64_t event,\n"
33600 "                  int event_handle,\n"
33601 "                  int flags,\n"
33602 "                  const char *buf, size_t buf_len,\n"
33603 "                  const uint64_t *array, size_t array_len);\n"
33604 "\n"
33605 msgstr ""
33606
33607 #. type: textblock
33608 #: ../src/guestfs.pod:1891
33609 msgid "This is the type of the event callback function that you have to provide."
33610 msgstr ""
33611
33612 #. type: textblock
33613 #: ../src/guestfs.pod:1894
33614 msgid ""
33615 "The basic parameters are: the handle (C<g>), the opaque user pointer "
33616 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
33617 "handle, and C<flags> which in the current API you should ignore."
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs.pod:1898
33622 msgid ""
33623 "The remaining parameters contain the event payload (if any).  Each event may "
33624 "contain a payload, which usually relates to the event class, but for future "
33625 "proofing your code should be written to handle any payload for any event "
33626 "class."
33627 msgstr ""
33628
33629 #. type: textblock
33630 #: ../src/guestfs.pod:1903
33631 msgid ""
33632 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
33633 "there is no message buffer).  Note that this message buffer can contain "
33634 "arbitrary 8 bit data, including NUL bytes."
33635 msgstr ""
33636
33637 #. type: textblock
33638 #: ../src/guestfs.pod:1907
33639 msgid ""
33640 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
33641 "moment this is only used for progress messages."
33642 msgstr ""
33643
33644 #. type: =head3
33645 #: ../src/guestfs.pod:1910
33646 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
33647 msgstr ""
33648
33649 #. type: textblock
33650 #: ../src/guestfs.pod:1912
33651 msgid ""
33652 "One motivation for the generic event API was to allow GUI programs to "
33653 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
33654 "unconditionally to C<stderr>."
33655 msgstr ""
33656
33657 #. type: textblock
33658 #: ../src/guestfs.pod:1916
33659 msgid ""
33660 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
33661 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
33662 "messages are not events; you must capture error messages separately)."
33663 msgstr ""
33664
33665 #. type: textblock
33666 #: ../src/guestfs.pod:1921
33667 msgid ""
33668 "Programs have to set up a callback to capture the classes of events of "
33669 "interest:"
33670 msgstr ""
33671
33672 #. type: verbatim
33673 #: ../src/guestfs.pod:1924
33674 #, no-wrap
33675 msgid ""
33676 " int eh =\n"
33677 "   guestfs_set_event_callback\n"
33678 "     (g, message_callback,\n"
33679 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
33680 "      GUESTFS_EVENT_TRACE,\n"
33681 "      0, NULL) == -1)\n"
33682 " if (eh == -1) {\n"
33683 "   // handle error in the usual way\n"
33684 " }\n"
33685 "\n"
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs.pod:1934
33690 msgid ""
33691 "The callback can then direct messages to the appropriate place.  In this "
33692 "example, messages are directed to syslog:"
33693 msgstr ""
33694
33695 #. type: verbatim
33696 #: ../src/guestfs.pod:1937
33697 #, no-wrap
33698 msgid ""
33699 " static void\n"
33700 " message_callback (\n"
33701 "         guestfs_h *g,\n"
33702 "         void *opaque,\n"
33703 "         uint64_t event,\n"
33704 "         int event_handle,\n"
33705 "         int flags,\n"
33706 "         const char *buf, size_t buf_len,\n"
33707 "         const uint64_t *array, size_t array_len)\n"
33708 " {\n"
33709 "   const int priority = LOG_USER|LOG_INFO;\n"
33710 "   if (buf_len > 0)\n"
33711 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
33712 " }\n"
33713 "\n"
33714 msgstr ""
33715
33716 #. type: =head1
33717 #: ../src/guestfs.pod:1952
33718 msgid "CANCELLING LONG TRANSFERS"
33719 msgstr ""
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:1954
33723 msgid ""
33724 "Some operations can be cancelled by the caller while they are in progress.  "
33725 "Currently only operations that involve uploading or downloading data can be "
33726 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
33727 "parameters in the generator)."
33728 msgstr ""
33729
33730 #. type: =head2
33731 #: ../src/guestfs.pod:1959
33732 msgid "guestfs_user_cancel"
33733 msgstr ""
33734
33735 #. type: verbatim
33736 #: ../src/guestfs.pod:1961
33737 #, no-wrap
33738 msgid ""
33739 " void guestfs_user_cancel (guestfs_h *g);\n"
33740 "\n"
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs.pod:1963
33745 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
33746 msgstr ""
33747
33748 #. type: textblock
33749 #: ../src/guestfs.pod:1966
33750 msgid ""
33751 "Unlike most other libguestfs calls, this function is signal safe and thread "
33752 "safe.  You can call it from a signal handler or from another thread, without "
33753 "needing to do any locking."
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs.pod:1970
33758 msgid ""
33759 "The transfer that was in progress (if there is one) will stop shortly "
33760 "afterwards, and will return an error.  The errno (see "
33761 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
33762 "out if the operation was cancelled or failed because of another error."
33763 msgstr ""
33764
33765 #. type: textblock
33766 #: ../src/guestfs.pod:1976
33767 msgid ""
33768 "No cleanup is performed: for example, if a file was being uploaded then "
33769 "after cancellation there may be a partially uploaded file.  It is the "
33770 "caller's responsibility to clean up if necessary."
33771 msgstr ""
33772
33773 #. type: textblock
33774 #: ../src/guestfs.pod:1980
33775 msgid "There are two common places that you might call C<guestfs_user_cancel>."
33776 msgstr ""
33777
33778 #. type: textblock
33779 #: ../src/guestfs.pod:1982
33780 msgid ""
33781 "In an interactive text-based program, you might call it from a C<SIGINT> "
33782 "signal handler so that pressing C<^C> cancels the current operation.  (You "
33783 "also need to call L</guestfs_set_pgroup> so that child processes don't "
33784 "receive the C<^C> signal)."
33785 msgstr ""
33786
33787 #. type: textblock
33788 #: ../src/guestfs.pod:1987
33789 msgid ""
33790 "In a graphical program, when the main thread is displaying a progress bar "
33791 "with a cancel button, wire up the cancel button to call this function."
33792 msgstr ""
33793
33794 #. type: =head1
33795 #: ../src/guestfs.pod:1991
33796 msgid "PRIVATE DATA AREA"
33797 msgstr ""
33798
33799 #. type: textblock
33800 #: ../src/guestfs.pod:1993
33801 msgid ""
33802 "You can attach named pieces of private data to the libguestfs handle, fetch "
33803 "them by name, and walk over them, for the lifetime of the handle.  This is "
33804 "called the private data area and is only available from the C API."
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs.pod:1998
33809 msgid "To attach a named piece of data, use the following call:"
33810 msgstr ""
33811
33812 #. type: verbatim
33813 #: ../src/guestfs.pod:2000
33814 #, no-wrap
33815 msgid ""
33816 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
33817 "\n"
33818 msgstr ""
33819
33820 #. type: textblock
33821 #: ../src/guestfs.pod:2002
33822 msgid ""
33823 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
33824 "pointer (which can be C<NULL>).  Any previous item with the same key is "
33825 "overwritten."
33826 msgstr ""
33827
33828 #. type: textblock
33829 #: ../src/guestfs.pod:2006
33830 msgid ""
33831 "You can use any C<key> you want, but your key should I<not> start with an "
33832 "underscore character.  Keys beginning with an underscore character are "
33833 "reserved for internal libguestfs purposes (eg. for implementing language "
33834 "bindings).  It is recommended that you prefix the key with some unique "
33835 "string to avoid collisions with other users."
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:2012
33840 msgid "To retrieve the pointer, use:"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs.pod:2014
33845 #, no-wrap
33846 msgid ""
33847 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
33848 "\n"
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs.pod:2016
33853 msgid ""
33854 "This function returns C<NULL> if either no data is found associated with "
33855 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
33856 "C<NULL>."
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs.pod:2020
33861 msgid ""
33862 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
33863 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
33864 "all.  In particular, libguestfs does I<not> try to free the data when the "
33865 "handle is closed.  If the data must be freed, then the caller must either "
33866 "free it before calling L</guestfs_close> or must set up a close callback to "
33867 "do it (see L</GUESTFS_EVENT_CLOSE>)."
33868 msgstr ""
33869
33870 #. type: textblock
33871 #: ../src/guestfs.pod:2027
33872 msgid "To walk over all entries, use these two functions:"
33873 msgstr ""
33874
33875 #. type: verbatim
33876 #: ../src/guestfs.pod:2029
33877 #, no-wrap
33878 msgid ""
33879 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
33880 "\n"
33881 msgstr ""
33882
33883 #. type: verbatim
33884 #: ../src/guestfs.pod:2031
33885 #, no-wrap
33886 msgid ""
33887 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
33888 "\n"
33889 msgstr ""
33890
33891 #. type: textblock
33892 #: ../src/guestfs.pod:2033
33893 msgid ""
33894 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
33895 "not have any particular meaning -- keys are not returned in any defined "
33896 "order).  A pointer to the key is returned in C<*key_rtn> and the "
33897 "corresponding data pointer is returned from the function.  C<NULL> is "
33898 "returned if there are no keys stored in the handle."
33899 msgstr ""
33900
33901 #. type: textblock
33902 #: ../src/guestfs.pod:2039
33903 msgid ""
33904 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
33905 "value of this function is also C<NULL> is there are no further entries to "
33906 "return."
33907 msgstr ""
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:2043
33911 msgid "Notes about walking over entries:"
33912 msgstr ""
33913
33914 #. type: textblock
33915 #: ../src/guestfs.pod:2049
33916 msgid "You must not call C<guestfs_set_private> while walking over the entries."
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs.pod:2054
33921 msgid ""
33922 "The handle maintains an internal iterator which is reset when you call "
33923 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
33924 "call C<guestfs_set_private>."
33925 msgstr ""
33926
33927 #. type: textblock
33928 #: ../src/guestfs.pod:2060
33929 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
33930 msgstr ""
33931
33932 #. type: verbatim
33933 #: ../src/guestfs.pod:2062
33934 #, no-wrap
33935 msgid ""
33936 " guestfs_set_private (g, key, NULL);\n"
33937 "\n"
33938 msgstr ""
33939
33940 #. type: textblock
33941 #: ../src/guestfs.pod:2064
33942 msgid "then that C<key> is not returned when walking."
33943 msgstr ""
33944
33945 #. type: textblock
33946 #: ../src/guestfs.pod:2068
33947 msgid ""
33948 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
33949 "C<guestfs_next_private> or C<guestfs_set_private>."
33950 msgstr ""
33951
33952 #. type: textblock
33953 #: ../src/guestfs.pod:2074
33954 msgid ""
33955 "The following example code shows how to print all keys and data pointers "
33956 "that are associated with the handle C<g>:"
33957 msgstr ""
33958
33959 #. type: verbatim
33960 #: ../src/guestfs.pod:2077
33961 #, no-wrap
33962 msgid ""
33963 " const char *key;\n"
33964 " void *data = guestfs_first_private (g, &key);\n"
33965 " while (data != NULL)\n"
33966 "   {\n"
33967 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
33968 "     data = guestfs_next_private (g, &key);\n"
33969 "   }\n"
33970 "\n"
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:2085
33975 msgid ""
33976 "More commonly you are only interested in keys that begin with an "
33977 "application-specific prefix C<foo_>.  Modify the loop like so:"
33978 msgstr ""
33979
33980 #. type: verbatim
33981 #: ../src/guestfs.pod:2088
33982 #, no-wrap
33983 msgid ""
33984 " const char *key;\n"
33985 " void *data = guestfs_first_private (g, &key);\n"
33986 " while (data != NULL)\n"
33987 "   {\n"
33988 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33989 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
33990 "     data = guestfs_next_private (g, &key);\n"
33991 "   }\n"
33992 "\n"
33993 msgstr ""
33994
33995 #. type: textblock
33996 #: ../src/guestfs.pod:2097
33997 msgid ""
33998 "If you need to modify keys while walking, then you have to jump back to the "
33999 "beginning of the loop.  For example, to delete all keys prefixed with "
34000 "C<foo_>:"
34001 msgstr ""
34002
34003 #. type: verbatim
34004 #: ../src/guestfs.pod:2101
34005 #, no-wrap
34006 msgid ""
34007 "  const char *key;\n"
34008 "  void *data;\n"
34009 " again:\n"
34010 "  data = guestfs_first_private (g, &key);\n"
34011 "  while (data != NULL)\n"
34012 "    {\n"
34013 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34014 "        {\n"
34015 "          guestfs_set_private (g, key, NULL);\n"
34016 "          /* note that 'key' pointer is now invalid, and so is\n"
34017 "             the internal iterator */\n"
34018 "          goto again;\n"
34019 "        }\n"
34020 "      data = guestfs_next_private (g, &key);\n"
34021 "    }\n"
34022 "\n"
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs.pod:2117
34027 msgid ""
34028 "Note that the above loop is guaranteed to terminate because the keys are "
34029 "being deleted, but other manipulations of keys within the loop might not "
34030 "terminate unless you also maintain an indication of which keys have been "
34031 "visited."
34032 msgstr ""
34033
34034 #. type: =end
34035 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
34036 msgid "html"
34037 msgstr ""
34038
34039 #. type: textblock
34040 #: ../src/guestfs.pod:2124
34041 msgid ""
34042 "<!-- old anchor for the next section --> <a "
34043 "name=\"state_machine_and_low_level_event_api\"/>"
34044 msgstr ""
34045
34046 #. type: =head1
34047 #: ../src/guestfs.pod:2129
34048 msgid "ARCHITECTURE"
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:2131
34053 msgid ""
34054 "Internally, libguestfs is implemented by running an appliance (a special "
34055 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34056 "process of the main program."
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs.pod:2135
34061 #, no-wrap
34062 msgid ""
34063 "  ___________________\n"
34064 " /                   \\\n"
34065 " | main program      |\n"
34066 " |                   |\n"
34067 " |                   |           child process / appliance\n"
34068 " |                   |           __________________________\n"
34069 " |                   |          / qemu                     \\\n"
34070 " +-------------------+   RPC    |      +-----------------+ |\n"
34071 " | libguestfs     <--------------------> guestfsd        | |\n"
34072 " |                   |          |      +-----------------+ |\n"
34073 " \\___________________/          |      | Linux kernel    | |\n"
34074 "                                |      +--^--------------+ |\n"
34075 "                                \\_________|________________/\n"
34076 "                                          |\n"
34077 "                                   _______v______\n"
34078 "                                  /              \\\n"
34079 "                                  | Device or    |\n"
34080 "                                  | disk image   |\n"
34081 "                                  \\______________/\n"
34082 "\n"
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:2155
34087 msgid ""
34088 "The library, linked to the main program, creates the child process and hence "
34089 "the appliance in the L</guestfs_launch> function."
34090 msgstr ""
34091
34092 #. type: textblock
34093 #: ../src/guestfs.pod:2158
34094 msgid ""
34095 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34096 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34097 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34098 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34099 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34100 "attached to the qemu process which translates device access by the "
34101 "appliance's Linux kernel into accesses to the image."
34102 msgstr ""
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:2167
34106 msgid ""
34107 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34108 "Although the disk image you are attached to might also be used by some "
34109 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34110 "care if both libguestfs's qemu process and your virtual machine are trying "
34111 "to update the disk image at the same time, since these usually results in "
34112 "massive disk corruption)."
34113 msgstr ""
34114
34115 #. type: =head1
34116 #: ../src/guestfs.pod:2174
34117 msgid "STATE MACHINE"
34118 msgstr ""
34119
34120 #. type: textblock
34121 #: ../src/guestfs.pod:2176
34122 msgid "libguestfs uses a state machine to model the child process:"
34123 msgstr ""
34124
34125 #. type: verbatim
34126 #: ../src/guestfs.pod:2178
34127 #, no-wrap
34128 msgid ""
34129 "                         |\n"
34130 "                    guestfs_create\n"
34131 "                         |\n"
34132 "                         |\n"
34133 "                     ____V_____\n"
34134 "                    /          \\\n"
34135 "                    |  CONFIG  |\n"
34136 "                    \\__________/\n"
34137 "                     ^ ^   ^  \\\n"
34138 "                    /  |    \\  \\ guestfs_launch\n"
34139 "                   /   |    _\\__V______\n"
34140 "                  /    |   /           \\\n"
34141 "                 /     |   | LAUNCHING |\n"
34142 "                /      |   \\___________/\n"
34143 "               /       |       /\n"
34144 "              /        |  guestfs_launch\n"
34145 "             /         |     /\n"
34146 "    ______  /        __|____V\n"
34147 "   /      \\ ------> /        \\\n"
34148 "   | BUSY |         | READY  |\n"
34149 "   \\______/ <------ \\________/\n"
34150 "\n"
34151 msgstr ""
34152
34153 #. type: textblock
34154 #: ../src/guestfs.pod:2200
34155 msgid ""
34156 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34157 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34158 "(3) alternating between READY and BUSY as commands are issued to, and "
34159 "carried out by, the child process."
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs.pod:2205
34164 msgid ""
34165 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34166 "asynchronously at any time (eg. due to some internal error), and that causes "
34167 "the state to transition back to CONFIG."
34168 msgstr ""
34169
34170 #. type: textblock
34171 #: ../src/guestfs.pod:2209
34172 msgid ""
34173 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34174 "issued when in the CONFIG state."
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:2212
34179 msgid ""
34180 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34181 "L</guestfs_launch> blocks until the child process is READY to accept "
34182 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34183 "moves the state from CONFIG to LAUNCHING while it is running."
34184 msgstr ""
34185
34186 #. type: textblock
34187 #: ../src/guestfs.pod:2218
34188 msgid ""
34189 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34190 "state.  These API calls block waiting for the command to be carried out "
34191 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34192 "non-blocking versions, and no way to issue more than one command per handle "
34193 "at the same time."
34194 msgstr ""
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:2224
34198 msgid ""
34199 "Finally, the child process sends asynchronous messages back to the main "
34200 "program, such as kernel log messages.  You can register a callback to "
34201 "receive these messages."
34202 msgstr ""
34203
34204 #. type: =head1
34205 #: ../src/guestfs.pod:2228
34206 msgid "INTERNALS"
34207 msgstr ""
34208
34209 #. type: =head2
34210 #: ../src/guestfs.pod:2230
34211 msgid "COMMUNICATION PROTOCOL"
34212 msgstr ""
34213
34214 #. type: textblock
34215 #: ../src/guestfs.pod:2232
34216 msgid ""
34217 "Don't rely on using this protocol directly.  This section documents how it "
34218 "currently works, but it may change at any time."
34219 msgstr ""
34220
34221 #. type: textblock
34222 #: ../src/guestfs.pod:2235
34223 msgid ""
34224 "The protocol used to talk between the library and the daemon running inside "
34225 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34226 "1014, RFC 1832, RFC 4506)."
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs.pod:2239
34231 msgid ""
34232 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34233 "this file is automatically generated)."
34234 msgstr ""
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:2242
34238 msgid ""
34239 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34240 "and C<FileOut> parameters, which are handled with very simple request/reply "
34241 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34242 "parameters, which use the same request and reply messages, but they may also "
34243 "be followed by files sent using a chunked encoding."
34244 msgstr ""
34245
34246 #. type: =head3
34247 #: ../src/guestfs.pod:2249
34248 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs.pod:2251
34253 msgid "For ordinary functions, the request message is:"
34254 msgstr ""
34255
34256 #. type: verbatim
34257 #: ../src/guestfs.pod:2253
34258 #, no-wrap
34259 msgid ""
34260 " total length (header + arguments,\n"
34261 "      but not including the length word itself)\n"
34262 " struct guestfs_message_header (encoded as XDR)\n"
34263 " struct guestfs_<foo>_args (encoded as XDR)\n"
34264 "\n"
34265 msgstr ""
34266
34267 #. type: textblock
34268 #: ../src/guestfs.pod:2258
34269 msgid ""
34270 "The total length field allows the daemon to allocate a fixed size buffer "
34271 "into which it slurps the rest of the message.  As a result, the total length "
34272 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34273 "effective size of any request is limited to somewhere under this size."
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:2264
34278 msgid ""
34279 "Note also that many functions don't take any arguments, in which case the "
34280 "C<guestfs_I<foo>_args> is completely omitted."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:2267
34285 msgid ""
34286 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34287 "receiver knows what type of args structure to expect, or none at all."
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:2271
34292 msgid ""
34293 "For functions that take optional arguments, the optional arguments are "
34294 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34295 "arguments.  A bitmask in the header indicates which optional arguments are "
34296 "meaningful.  The bitmask is also checked to see if it contains bits set "
34297 "which the daemon does not know about (eg. if more optional arguments were "
34298 "added in a later version of the library), and this causes the call to be "
34299 "rejected."
34300 msgstr ""
34301
34302 #. type: textblock
34303 #: ../src/guestfs.pod:2279
34304 msgid "The reply message for ordinary functions is:"
34305 msgstr ""
34306
34307 #. type: verbatim
34308 #: ../src/guestfs.pod:2281
34309 #, no-wrap
34310 msgid ""
34311 " total length (header + ret,\n"
34312 "      but not including the length word itself)\n"
34313 " struct guestfs_message_header (encoded as XDR)\n"
34314 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34315 "\n"
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:2286
34320 msgid ""
34321 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
34322 "functions that return no formal return values."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:2289
34327 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:2292
34332 msgid ""
34333 "In the case of an error, a flag is set in the header, and the reply message "
34334 "is slightly changed:"
34335 msgstr ""
34336
34337 #. type: verbatim
34338 #: ../src/guestfs.pod:2295
34339 #, no-wrap
34340 msgid ""
34341 " total length (header + error,\n"
34342 "      but not including the length word itself)\n"
34343 " struct guestfs_message_header (encoded as XDR)\n"
34344 " struct guestfs_message_error (encoded as XDR)\n"
34345 "\n"
34346 msgstr ""
34347
34348 #. type: textblock
34349 #: ../src/guestfs.pod:2300
34350 msgid ""
34351 "The C<guestfs_message_error> structure contains the error message as a "
34352 "string."
34353 msgstr ""
34354
34355 #. type: =head3
34356 #: ../src/guestfs.pod:2303
34357 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:2305
34362 msgid ""
34363 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
34364 "The normal request message is sent (see above).  However this is followed by "
34365 "a sequence of file chunks."
34366 msgstr ""
34367
34368 #. type: verbatim
34369 #: ../src/guestfs.pod:2309
34370 #, no-wrap
34371 msgid ""
34372 " total length (header + arguments,\n"
34373 "      but not including the length word itself,\n"
34374 "      and not including the chunks)\n"
34375 " struct guestfs_message_header (encoded as XDR)\n"
34376 " struct guestfs_<foo>_args (encoded as XDR)\n"
34377 " sequence of chunks for FileIn param #0\n"
34378 " sequence of chunks for FileIn param #1 etc.\n"
34379 "\n"
34380 msgstr ""
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:2317
34384 msgid "The \"sequence of chunks\" is:"
34385 msgstr ""
34386
34387 #. type: verbatim
34388 #: ../src/guestfs.pod:2319
34389 #, no-wrap
34390 msgid ""
34391 " length of chunk (not including length word itself)\n"
34392 " struct guestfs_chunk (encoded as XDR)\n"
34393 " length of chunk\n"
34394 " struct guestfs_chunk (encoded as XDR)\n"
34395 "   ...\n"
34396 " length of chunk\n"
34397 " struct guestfs_chunk (with data.data_len == 0)\n"
34398 "\n"
34399 msgstr ""
34400
34401 #. type: textblock
34402 #: ../src/guestfs.pod:2327
34403 msgid ""
34404 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
34405 "is set in the final chunk to indicate either successful completion or early "
34406 "cancellation."
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:2331
34411 msgid ""
34412 "At time of writing there are no functions that have more than one FileIn "
34413 "parameter.  However this is (theoretically) supported, by sending the "
34414 "sequence of chunks for each FileIn parameter one after another (from left to "
34415 "right)."
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../src/guestfs.pod:2336
34420 msgid ""
34421 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
34422 "transfer.  The library does this by sending a chunk with a special flag set "
34423 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
34424 "RPC, does I<not> send any reply, and goes back to reading the next request."
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:2342
34429 msgid ""
34430 "The daemon may also cancel.  It does this by writing a special word "
34431 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
34432 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
34433 "cancel chunk).  The special word is chosen so that even if cancellation "
34434 "happens right at the end of the transfer (after the library has finished "
34435 "writing and has started listening for the reply), the \"spurious\" cancel "
34436 "flag will not be confused with the reply message."
34437 msgstr ""
34438
34439 #. type: textblock
34440 #: ../src/guestfs.pod:2351
34441 msgid ""
34442 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
34443 "limit), and also files where the size is not known in advance (eg. from "
34444 "pipes or sockets).  However the chunks are rather small "
34445 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
34446 "to keep much in memory."
34447 msgstr ""
34448
34449 #. type: =head3
34450 #: ../src/guestfs.pod:2357
34451 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:2359
34456 msgid ""
34457 "The protocol for FileOut parameters is exactly the same as for FileIn "
34458 "parameters, but with the roles of daemon and library reversed."
34459 msgstr ""
34460
34461 #. type: verbatim
34462 #: ../src/guestfs.pod:2362
34463 #, no-wrap
34464 msgid ""
34465 " total length (header + ret,\n"
34466 "      but not including the length word itself,\n"
34467 "      and not including the chunks)\n"
34468 " struct guestfs_message_header (encoded as XDR)\n"
34469 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34470 " sequence of chunks for FileOut param #0\n"
34471 " sequence of chunks for FileOut param #1 etc.\n"
34472 "\n"
34473 msgstr ""
34474
34475 #. type: =head3
34476 #: ../src/guestfs.pod:2370
34477 msgid "INITIAL MESSAGE"
34478 msgstr ""
34479
34480 #. type: textblock
34481 #: ../src/guestfs.pod:2372
34482 msgid ""
34483 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
34484 "which indicates that the guest and daemon is alive.  This is what "
34485 "L</guestfs_launch> waits for."
34486 msgstr ""
34487
34488 #. type: =head3
34489 #: ../src/guestfs.pod:2376
34490 msgid "PROGRESS NOTIFICATION MESSAGES"
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:2378
34495 msgid ""
34496 "The daemon may send progress notification messages at any time.  These are "
34497 "distinguished by the normal length word being replaced by "
34498 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:2382
34503 msgid ""
34504 "The library turns them into progress callbacks (see "
34505 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
34506 "them if not."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:2386
34511 msgid ""
34512 "The daemon self-limits the frequency of progress messages it sends (see "
34513 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
34514 "messages."
34515 msgstr ""
34516
34517 #. type: =head1
34518 #: ../src/guestfs.pod:2390
34519 msgid "LIBGUESTFS VERSION NUMBERS"
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:2392
34524 msgid ""
34525 "Since April 2010, libguestfs has started to make separate development and "
34526 "stable releases, along with corresponding branches in our git repository.  "
34527 "These separate releases can be identified by version number:"
34528 msgstr ""
34529
34530 #. type: verbatim
34531 #: ../src/guestfs.pod:2397
34532 #, no-wrap
34533 msgid ""
34534 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
34535 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
34536 "       |\n"
34537 "       v\n"
34538 " 1  .  3  .  5\n"
34539 " ^           ^\n"
34540 " |           |\n"
34541 " |           `-------- sub-version\n"
34542 " |\n"
34543 " `------ always '1' because we don't change the ABI\n"
34544 "\n"
34545 msgstr ""
34546
34547 #. type: textblock
34548 #: ../src/guestfs.pod:2408
34549 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
34550 msgstr ""
34551
34552 #. type: textblock
34553 #: ../src/guestfs.pod:2410
34554 msgid ""
34555 "As time passes we cherry pick fixes from the development branch and backport "
34556 "those into the stable branch, the effect being that the stable branch should "
34557 "get more stable and less buggy over time.  So the stable releases are ideal "
34558 "for people who don't need new features but would just like the software to "
34559 "work."
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:2416
34564 msgid "Our criteria for backporting changes are:"
34565 msgstr ""
34566
34567 #. type: textblock
34568 #: ../src/guestfs.pod:2422
34569 msgid ""
34570 "Documentation changes which don't affect any code are backported unless the "
34571 "documentation refers to a future feature which is not in stable."
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:2428
34576 msgid ""
34577 "Bug fixes which are not controversial, fix obvious problems, and have been "
34578 "well tested are backported."
34579 msgstr ""
34580
34581 #. type: textblock
34582 #: ../src/guestfs.pod:2433
34583 msgid ""
34584 "Simple rearrangements of code which shouldn't affect how it works get "
34585 "backported.  This is so that the code in the two branches doesn't get too "
34586 "far out of step, allowing us to backport future fixes more easily."
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:2439
34591 msgid ""
34592 "We I<don't> backport new features, new APIs, new tools etc, except in one "
34593 "exceptional case: the new feature is required in order to implement an "
34594 "important bug fix."
34595 msgstr ""
34596
34597 #. type: textblock
34598 #: ../src/guestfs.pod:2445
34599 msgid ""
34600 "A new stable branch starts when we think the new features in development are "
34601 "substantial and compelling enough over the current stable branch to warrant "
34602 "it.  When that happens we create new stable and development versions 1.N.0 "
34603 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
34604 "stable at this point, but by backporting fixes from development, that branch "
34605 "will stabilize over time."
34606 msgstr ""
34607
34608 #. type: =head1
34609 #: ../src/guestfs.pod:2453
34610 msgid "EXTENDING LIBGUESTFS"
34611 msgstr ""
34612
34613 #. type: =head2
34614 #: ../src/guestfs.pod:2455
34615 msgid "ADDING A NEW API ACTION"
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:2457
34620 msgid ""
34621 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
34622 "documentation) are generated, and this makes it easy to extend the "
34623 "libguestfs API."
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs.pod:2461
34628 msgid "To add a new API action there are two changes:"
34629 msgstr ""
34630
34631 #. type: textblock
34632 #: ../src/guestfs.pod:2467
34633 msgid ""
34634 "You need to add a description of the call (name, parameters, return type, "
34635 "tests, documentation) to C<generator/generator_actions.ml>."
34636 msgstr ""
34637
34638 #. type: textblock
34639 #: ../src/guestfs.pod:2470
34640 msgid ""
34641 "There are two sorts of API action, depending on whether the call goes "
34642 "through to the daemon in the appliance, or is serviced entirely by the "
34643 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
34644 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
34645 "an example of the latter, since a trace flag is maintained in the handle and "
34646 "all tracing is done on the library side."
34647 msgstr ""
34648
34649 #. type: textblock
34650 #: ../src/guestfs.pod:2478
34651 msgid ""
34652 "Most new actions are of the first type, and get added to the "
34653 "C<daemon_functions> list.  Each function has a unique procedure number used "
34654 "in the RPC protocol which is assigned to that action when we publish "
34655 "libguestfs and cannot be reused.  Take the latest procedure number and "
34656 "increment it."
34657 msgstr ""
34658
34659 #. type: textblock
34660 #: ../src/guestfs.pod:2484
34661 msgid ""
34662 "For library-only actions of the second type, add to the "
34663 "C<non_daemon_functions> list.  Since these functions are serviced by the "
34664 "library and do not travel over the RPC mechanism to the daemon, these "
34665 "functions do not need a procedure number, and so the procedure number is set "
34666 "to C<-1>."
34667 msgstr ""
34668
34669 #. type: textblock
34670 #: ../src/guestfs.pod:2492
34671 msgid "Implement the action (in C):"
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:2494
34676 msgid ""
34677 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
34678 "C<daemon/> directory."
34679 msgstr ""
34680
34681 #. type: textblock
34682 #: ../src/guestfs.pod:2497
34683 msgid ""
34684 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
34685 "(note: double underscore) in the C<src/> directory."
34686 msgstr ""
34687
34688 #. type: textblock
34689 #: ../src/guestfs.pod:2500
34690 msgid "In either case, use another function as an example of what to do."
34691 msgstr ""
34692
34693 #. type: textblock
34694 #: ../src/guestfs.pod:2504
34695 msgid "After making these changes, use C<make> to compile."
34696 msgstr ""
34697
34698 #. type: textblock
34699 #: ../src/guestfs.pod:2506
34700 msgid ""
34701 "Note that you don't need to implement the RPC, language bindings, manual "
34702 "pages or anything else.  It's all automatically generated from the OCaml "
34703 "description."
34704 msgstr ""
34705
34706 #. type: =head2
34707 #: ../src/guestfs.pod:2510
34708 msgid "ADDING TESTS FOR AN API ACTION"
34709 msgstr ""
34710
34711 #. type: textblock
34712 #: ../src/guestfs.pod:2512
34713 msgid ""
34714 "You can supply zero or as many tests as you want per API call.  The tests "
34715 "can either be added as part of the API description "
34716 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
34717 "drop a script into C<regressions/>.  Note that adding a script to "
34718 "C<regressions/> is slower, so if possible use the first method."
34719 msgstr ""
34720
34721 #. type: textblock
34722 #: ../src/guestfs.pod:2518
34723 msgid ""
34724 "The following describes the test environment used when you add an API test "
34725 "in C<generator_actions.ml>."
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs.pod:2521
34730 msgid "The test environment has 4 block devices:"
34731 msgstr ""
34732
34733 #. type: =item
34734 #: ../src/guestfs.pod:2525
34735 msgid "C</dev/sda> 500MB"
34736 msgstr ""
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:2527
34740 msgid "General block device for testing."
34741 msgstr ""
34742
34743 #. type: =item
34744 #: ../src/guestfs.pod:2529
34745 msgid "C</dev/sdb> 50MB"
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:2531
34750 msgid ""
34751 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
34752 "operations."
34753 msgstr ""
34754
34755 #. type: =item
34756 #: ../src/guestfs.pod:2534
34757 msgid "C</dev/sdc> 10MB"
34758 msgstr ""
34759
34760 #. type: textblock
34761 #: ../src/guestfs.pod:2536
34762 msgid "Used in a few tests where two block devices are needed."
34763 msgstr ""
34764
34765 #. type: =item
34766 #: ../src/guestfs.pod:2538
34767 msgid "C</dev/sdd>"
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs.pod:2540
34772 msgid "ISO with fixed content (see C<images/test.iso>)."
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:2544
34777 msgid ""
34778 "To be able to run the tests in a reasonable amount of time, the libguestfs "
34779 "appliance and block devices are reused between tests.  So don't try testing "
34780 "L</guestfs_kill_subprocess> :-x"
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:2548
34785 msgid ""
34786 "Each test starts with an initial scenario, selected using one of the "
34787 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
34788 "initialize the disks mentioned above in a particular way as documented in "
34789 "C<generator_types.ml>.  You should not assume anything about the previous "
34790 "contents of other disks that are not initialized."
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:2554
34795 msgid ""
34796 "You can add a prerequisite clause to any individual test.  This is a "
34797 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
34798 "if testing a command which might not work on all variations of libguestfs "
34799 "builds.  A test that has prerequisite of C<Always> means to run "
34800 "unconditionally."
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:2560
34805 msgid ""
34806 "In addition, packagers can skip individual tests by setting environment "
34807 "variables before running C<make check>."
34808 msgstr ""
34809
34810 #. type: verbatim
34811 #: ../src/guestfs.pod:2563
34812 #, no-wrap
34813 msgid ""
34814 " SKIP_TEST_<CMD>_<NUM>=1\n"
34815 "\n"
34816 msgstr ""
34817
34818 #. type: textblock
34819 #: ../src/guestfs.pod:2565
34820 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
34821 msgstr ""
34822
34823 #. type: textblock
34824 #: ../src/guestfs.pod:2567
34825 msgid "or:"
34826 msgstr ""
34827
34828 #. type: verbatim
34829 #: ../src/guestfs.pod:2569
34830 #, no-wrap
34831 msgid ""
34832 " SKIP_TEST_<CMD>=1\n"
34833 "\n"
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:2571
34838 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:2573
34843 msgid "Packagers can run only certain tests by setting for example:"
34844 msgstr ""
34845
34846 #. type: verbatim
34847 #: ../src/guestfs.pod:2575
34848 #, no-wrap
34849 msgid ""
34850 " TEST_ONLY=\"vfs_type zerofree\"\n"
34851 "\n"
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:2577
34856 msgid ""
34857 "See C<capitests/tests.c> for more details of how these environment variables "
34858 "work."
34859 msgstr ""
34860
34861 #. type: =head2
34862 #: ../src/guestfs.pod:2580
34863 msgid "DEBUGGING NEW API ACTIONS"
34864 msgstr ""
34865
34866 #. type: textblock
34867 #: ../src/guestfs.pod:2582
34868 msgid "Test new actions work before submitting them."
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:2584
34873 msgid "You can use guestfish to try out new commands."
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:2586
34878 msgid ""
34879 "Debugging the daemon is a problem because it runs inside a minimal "
34880 "environment.  However you can fprintf messages in the daemon to stderr, and "
34881 "they will show up if you use C<guestfish -v>."
34882 msgstr ""
34883
34884 #. type: =head2
34885 #: ../src/guestfs.pod:2590
34886 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
34887 msgstr ""
34888
34889 #. type: textblock
34890 #: ../src/guestfs.pod:2592
34891 msgid ""
34892 "Our C source code generally adheres to some basic code-formatting "
34893 "conventions.  The existing code base is not totally consistent on this "
34894 "front, but we do prefer that contributed code be formatted similarly.  In "
34895 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
34896 "indentation level, and other than that, follow the K&R style."
34897 msgstr ""
34898
34899 #. type: textblock
34900 #: ../src/guestfs.pod:2598
34901 msgid ""
34902 "If you use Emacs, add the following to one of one of your start-up files "
34903 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
34904 msgstr ""
34905
34906 #. type: verbatim
34907 #: ../src/guestfs.pod:2601
34908 #, no-wrap
34909 msgid ""
34910 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
34911 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
34912 " (add-hook 'find-file-hook\n"
34913 "     '(lambda () (if (and buffer-file-name\n"
34914 "                          (string-match \"/libguestfs\\\\>\"\n"
34915 "                              (buffer-file-name))\n"
34916 "                          (not (string-equal mode-name \"Change Log\"))\n"
34917 "                          (not (string-equal mode-name \"Makefile\")))\n"
34918 "                     (setq indent-tabs-mode nil))))\n"
34919 " \n"
34920 msgstr ""
34921
34922 #. type: verbatim
34923 #: ../src/guestfs.pod:2611
34924 #, no-wrap
34925 msgid ""
34926 " ;;; When editing C sources in libguestfs, use this style.\n"
34927 " (defun libguestfs-c-mode ()\n"
34928 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
34929 "   (interactive)\n"
34930 "   (c-set-style \"K&R\")\n"
34931 "   (setq c-indent-level 2)\n"
34932 "   (setq c-basic-offset 2))\n"
34933 " (add-hook 'c-mode-hook\n"
34934 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
34935 "                               (buffer-file-name))\n"
34936 "                           (libguestfs-c-mode))))\n"
34937 "\n"
34938 msgstr ""
34939
34940 #. type: textblock
34941 #: ../src/guestfs.pod:2623
34942 msgid "Enable warnings when compiling (and fix any problems this finds):"
34943 msgstr ""
34944
34945 #. type: verbatim
34946 #: ../src/guestfs.pod:2626
34947 #, no-wrap
34948 msgid ""
34949 " ./configure --enable-gcc-warnings\n"
34950 "\n"
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:2628
34955 msgid "Useful targets are:"
34956 msgstr ""
34957
34958 #. type: verbatim
34959 #: ../src/guestfs.pod:2630
34960 #, no-wrap
34961 msgid ""
34962 " make syntax-check  # checks the syntax of the C code\n"
34963 " make check         # runs the test suite\n"
34964 "\n"
34965 msgstr ""
34966
34967 #. type: =head2
34968 #: ../src/guestfs.pod:2633
34969 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:2635
34974 msgid ""
34975 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
34976 "which are used to do shell quoting."
34977 msgstr ""
34978
34979 #. type: =item
34980 #: ../src/guestfs.pod:2640
34981 msgid "%Q"
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:2642
34986 msgid ""
34987 "Simple shell quoted string.  Any spaces or other shell characters are "
34988 "escaped for you."
34989 msgstr ""
34990
34991 #. type: =item
34992 #: ../src/guestfs.pod:2645
34993 msgid "%R"
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:2647
34998 msgid ""
34999 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35000 "the sysroot."
35001 msgstr ""
35002
35003 #. type: verbatim
35004 #: ../src/guestfs.pod:2654
35005 #, no-wrap
35006 msgid ""
35007 " asprintf (&cmd, \"cat %R\", path);\n"
35008 "\n"
35009 msgstr ""
35010
35011 #. type: textblock
35012 #: ../src/guestfs.pod:2656
35013 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:2658
35018 msgid ""
35019 "I<Note:> Do I<not> use these when you are passing parameters to the "
35020 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
35021 "because they are not passed via the shell (instead, straight to exec).  You "
35022 "probably want to use the C<sysroot_path()> function however."
35023 msgstr ""
35024
35025 #. type: =head2
35026 #: ../src/guestfs.pod:2664
35027 msgid "SUBMITTING YOUR NEW API ACTIONS"
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs.pod:2666
35032 msgid ""
35033 "Submit patches to the mailing list: "
35034 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
35035 "L<rjones@redhat.com>."
35036 msgstr ""
35037
35038 #. type: =head2
35039 #: ../src/guestfs.pod:2670
35040 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35041 msgstr ""
35042
35043 #. type: textblock
35044 #: ../src/guestfs.pod:2672
35045 msgid "We support i18n (gettext anyhow) in the library."
35046 msgstr ""
35047
35048 #. type: textblock
35049 #: ../src/guestfs.pod:2674
35050 msgid ""
35051 "However many messages come from the daemon, and we don't translate those at "
35052 "the moment.  One reason is that the appliance generally has all locale files "
35053 "removed from it, because they take up a lot of space.  So we'd have to readd "
35054 "some of those, as well as copying our PO files into the appliance."
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:2680
35059 msgid ""
35060 "Debugging messages are never translated, since they are intended for the "
35061 "programmers."
35062 msgstr ""
35063
35064 #. type: =head2
35065 #: ../src/guestfs.pod:2683
35066 msgid "SOURCE CODE SUBDIRECTORIES"
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs.pod:2689
35071 msgid "The libguestfs appliance, build scripts and so on."
35072 msgstr ""
35073
35074 #. type: =item
35075 #: ../src/guestfs.pod:2691
35076 msgid "C<capitests>"
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:2693
35081 msgid "Automated tests of the C API."
35082 msgstr ""
35083
35084 #. type: =item
35085 #: ../src/guestfs.pod:2695
35086 msgid "C<cat>"
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs.pod:2697
35091 msgid ""
35092 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35093 "documentation."
35094 msgstr ""
35095
35096 #. type: =item
35097 #: ../src/guestfs.pod:2700
35098 msgid "C<caution>"
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:2702
35103 msgid ""
35104 "Safety and liveness tests of components that libguestfs depends upon (not of "
35105 "libguestfs itself).  Mainly this is for qemu and the kernel."
35106 msgstr ""
35107
35108 #. type: =item
35109 #: ../src/guestfs.pod:2705
35110 msgid "C<contrib>"
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:2707
35115 msgid "Outside contributions, experimental parts."
35116 msgstr ""
35117
35118 #. type: =item
35119 #: ../src/guestfs.pod:2709
35120 msgid "C<daemon>"
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:2711
35125 msgid ""
35126 "The daemon that runs inside the libguestfs appliance and carries out "
35127 "actions."
35128 msgstr ""
35129
35130 #. type: =item
35131 #: ../src/guestfs.pod:2714
35132 msgid "C<df>"
35133 msgstr ""
35134
35135 #. type: textblock
35136 #: ../src/guestfs.pod:2716
35137 msgid "L<virt-df(1)> command and documentation."
35138 msgstr ""
35139
35140 #. type: =item
35141 #: ../src/guestfs.pod:2718
35142 msgid "C<edit>"
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:2720
35147 msgid "L<virt-edit(1)> command and documentation."
35148 msgstr ""
35149
35150 #. type: =item
35151 #: ../src/guestfs.pod:2722
35152 msgid "C<examples>"
35153 msgstr ""
35154
35155 #. type: textblock
35156 #: ../src/guestfs.pod:2724
35157 msgid "C API example code."
35158 msgstr ""
35159
35160 #. type: =item
35161 #: ../src/guestfs.pod:2726
35162 msgid "C<fish>"
35163 msgstr ""
35164
35165 #. type: textblock
35166 #: ../src/guestfs.pod:2728
35167 msgid ""
35168 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35169 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35170 "L<virt-tar-out(1)>."
35171 msgstr ""
35172
35173 #. type: =item
35174 #: ../src/guestfs.pod:2732
35175 msgid "C<fuse>"
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:2734
35180 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35181 msgstr ""
35182
35183 #. type: =item
35184 #: ../src/guestfs.pod:2736
35185 msgid "C<generator>"
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:2738
35190 msgid ""
35191 "The crucially important generator, used to automatically generate large "
35192 "amounts of boilerplate C code for things like RPC and bindings."
35193 msgstr ""
35194
35195 #. type: =item
35196 #: ../src/guestfs.pod:2741
35197 msgid "C<images>"
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:2743
35202 msgid "Files used by the test suite."
35203 msgstr ""
35204
35205 #. type: textblock
35206 #: ../src/guestfs.pod:2745
35207 msgid "Some \"phony\" guest images which we test against."
35208 msgstr ""
35209
35210 #. type: =item
35211 #: ../src/guestfs.pod:2747
35212 msgid "C<inspector>"
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs.pod:2749
35217 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35218 msgstr ""
35219
35220 #. type: =item
35221 #: ../src/guestfs.pod:2751
35222 msgid "C<logo>"
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:2753
35227 msgid "Logo used on the website.  The fish is called Arthur by the way."
35228 msgstr ""
35229
35230 #. type: =item
35231 #: ../src/guestfs.pod:2755
35232 msgid "C<m4>"
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:2757
35237 msgid "M4 macros used by autoconf."
35238 msgstr ""
35239
35240 #. type: =item
35241 #: ../src/guestfs.pod:2759
35242 msgid "C<po>"
35243 msgstr ""
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:2761
35247 msgid "Translations of simple gettext strings."
35248 msgstr ""
35249
35250 #. type: =item
35251 #: ../src/guestfs.pod:2763
35252 msgid "C<po-docs>"
35253 msgstr ""
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:2765
35257 msgid ""
35258 "The build infrastructure and PO files for translations of manpages and POD "
35259 "files.  Eventually this will be combined with the C<po> directory, but that "
35260 "is rather complicated."
35261 msgstr ""
35262
35263 #. type: =item
35264 #: ../src/guestfs.pod:2769
35265 msgid "C<regressions>"
35266 msgstr ""
35267
35268 #. type: textblock
35269 #: ../src/guestfs.pod:2771
35270 msgid "Regression tests."
35271 msgstr ""
35272
35273 #. type: =item
35274 #: ../src/guestfs.pod:2773
35275 msgid "C<rescue>"
35276 msgstr ""
35277
35278 #. type: textblock
35279 #: ../src/guestfs.pod:2775
35280 msgid "L<virt-rescue(1)> command and documentation."
35281 msgstr ""
35282
35283 #. type: =item
35284 #: ../src/guestfs.pod:2777
35285 msgid "C<src>"
35286 msgstr ""
35287
35288 #. type: textblock
35289 #: ../src/guestfs.pod:2779
35290 msgid "Source code to the C library."
35291 msgstr ""
35292
35293 #. type: =item
35294 #: ../src/guestfs.pod:2781
35295 msgid "C<tools>"
35296 msgstr ""
35297
35298 #. type: textblock
35299 #: ../src/guestfs.pod:2783
35300 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
35301 msgstr ""
35302
35303 #. type: =item
35304 #: ../src/guestfs.pod:2785
35305 msgid "C<test-tool>"
35306 msgstr ""
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:2787
35310 msgid ""
35311 "Test tool for end users to test if their qemu/kernel combination will work "
35312 "with libguestfs."
35313 msgstr ""
35314
35315 #. type: =item
35316 #: ../src/guestfs.pod:2790
35317 msgid "C<csharp>"
35318 msgstr ""
35319
35320 #. type: =item
35321 #: ../src/guestfs.pod:2792
35322 msgid "C<haskell>"
35323 msgstr ""
35324
35325 #. type: =item
35326 #: ../src/guestfs.pod:2794
35327 msgid "C<java>"
35328 msgstr ""
35329
35330 #. type: =item
35331 #: ../src/guestfs.pod:2796
35332 msgid "C<ocaml>"
35333 msgstr ""
35334
35335 #. type: =item
35336 #: ../src/guestfs.pod:2798
35337 msgid "C<php>"
35338 msgstr ""
35339
35340 #. type: =item
35341 #: ../src/guestfs.pod:2800
35342 msgid "C<perl>"
35343 msgstr ""
35344
35345 #. type: =item
35346 #: ../src/guestfs.pod:2802
35347 msgid "C<python>"
35348 msgstr ""
35349
35350 #. type: =item
35351 #: ../src/guestfs.pod:2804
35352 msgid "C<ruby>"
35353 msgstr ""
35354
35355 #. type: textblock
35356 #: ../src/guestfs.pod:2806
35357 msgid "Language bindings."
35358 msgstr ""
35359
35360 #. type: =head2
35361 #: ../src/guestfs.pod:2810
35362 msgid "MAKING A STABLE RELEASE"
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:2812
35367 msgid ""
35368 "When we make a stable release, there are several steps documented here.  See "
35369 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
35370 "branch policy."
35371 msgstr ""
35372
35373 #. type: textblock
35374 #: ../src/guestfs.pod:2820
35375 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
35376 msgstr ""
35377
35378 #. type: textblock
35379 #: ../src/guestfs.pod:2825
35380 msgid "Finalize RELEASE-NOTES."
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:2829
35385 msgid "Update ROADMAP."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:2833
35390 msgid "Run C<src/api-support/update-from-tarballs.sh>."
35391 msgstr ""
35392
35393 #. type: textblock
35394 #: ../src/guestfs.pod:2837
35395 msgid "Push and pull from Transifex."
35396 msgstr ""
35397
35398 #. type: textblock
35399 #: ../src/guestfs.pod:2839
35400 msgid "Run:"
35401 msgstr ""
35402
35403 #. type: verbatim
35404 #: ../src/guestfs.pod:2841
35405 #, no-wrap
35406 msgid ""
35407 " tx push -s\n"
35408 "\n"
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:2843
35413 msgid "to push the latest POT files to Transifex.  Then run:"
35414 msgstr ""
35415
35416 #. type: verbatim
35417 #: ../src/guestfs.pod:2845
35418 #, no-wrap
35419 msgid ""
35420 " ./tx-pull.sh\n"
35421 "\n"
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:2847
35426 msgid "which is a wrapper to pull the latest translated C<*.po> files."
35427 msgstr ""
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:2851
35431 msgid ""
35432 "Create new stable and development directories under "
35433 "L<http://libguestfs.org/download>."
35434 msgstr ""
35435
35436 #. type: textblock
35437 #: ../src/guestfs.pod:2856
35438 msgid "Create the branch in git:"
35439 msgstr ""
35440
35441 #. type: verbatim
35442 #: ../src/guestfs.pod:2858
35443 #, no-wrap
35444 msgid ""
35445 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
35446 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
35447 " git branch stable-1.XX\n"
35448 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
35449 "\n"
35450 msgstr ""
35451
35452 #. type: =head1
35453 #: ../src/guestfs.pod:2865
35454 msgid "LIMITS"
35455 msgstr ""
35456
35457 #. type: =head2
35458 #: ../src/guestfs.pod:2867
35459 msgid "PROTOCOL LIMITS"
35460 msgstr ""
35461
35462 #. type: textblock
35463 #: ../src/guestfs.pod:2869
35464 msgid ""
35465 "Internally libguestfs uses a message-based protocol to pass API calls and "
35466 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
35467 "plenty more detail about this).  The maximum message size used by the "
35468 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
35469 "aware of this limit.  The API calls which may be affected are individually "
35470 "documented, with a link back to this section of the documentation."
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:2877
35475 msgid ""
35476 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
35477 "a simple string.  Because this string is at some point internally encoded as "
35478 "a message, the maximum size that it can return is slightly under 4 MB.  If "
35479 "the requested file is larger than this then you will get an error."
35480 msgstr ""
35481
35482 #. type: textblock
35483 #: ../src/guestfs.pod:2883
35484 msgid ""
35485 "In order to transfer large files into and out of the guest filesystem, you "
35486 "need to use particular calls that support this.  The sections L</UPLOADING> "
35487 "and L</DOWNLOADING> document how to do this."
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:2887
35492 msgid ""
35493 "You might also consider mounting the disk image using our FUSE filesystem "
35494 "support (L<guestmount(1)>)."
35495 msgstr ""
35496
35497 #. type: =head2
35498 #: ../src/guestfs.pod:2890
35499 msgid "MAXIMUM NUMBER OF DISKS"
35500 msgstr ""
35501
35502 #. type: textblock
35503 #: ../src/guestfs.pod:2892
35504 msgid "When using virtio disks (the default) the current limit is B<25> disks."
35505 msgstr ""
35506
35507 #. type: textblock
35508 #: ../src/guestfs.pod:2895
35509 msgid ""
35510 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
35511 "slots.  However febootstrap only understands disks with names C</dev/vda> "
35512 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
35513 "purposes."
35514 msgstr ""
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:2900
35518 msgid ""
35519 "We are working to substantially raise this limit in future versions but it "
35520 "requires complex changes to qemu."
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:2903
35525 msgid ""
35526 "In future versions of libguestfs it should also be possible to \"hot plug\" "
35527 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
35528 "requires changes to qemu."
35529 msgstr ""
35530
35531 #. type: =head2
35532 #: ../src/guestfs.pod:2907
35533 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
35534 msgstr ""
35535
35536 #. type: textblock
35537 #: ../src/guestfs.pod:2909
35538 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
35539 msgstr ""
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:2911
35543 msgid ""
35544 "This is because it reserves 4 bits for the minor device number (thus "
35545 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
35546 msgstr ""
35547
35548 #. type: textblock
35549 #: ../src/guestfs.pod:2914
35550 msgid ""
35551 "If you attach a disk with more than 15 partitions, the extra partitions are "
35552 "ignored by libguestfs."
35553 msgstr ""
35554
35555 #. type: =head2
35556 #: ../src/guestfs.pod:2917
35557 msgid "MAXIMUM SIZE OF A DISK"
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:2919
35562 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
35563 msgstr ""
35564
35565 #. type: textblock
35566 #: ../src/guestfs.pod:2921
35567 msgid ""
35568 "We have tested block devices up to 1 exabyte (2**60 or "
35569 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
35570 "filesystem."
35571 msgstr ""
35572
35573 #. type: textblock
35574 #: ../src/guestfs.pod:2925
35575 msgid ""
35576 "Although libguestfs probably does not impose any limit, the underlying host "
35577 "storage will.  If you store disk images on a host ext4 filesystem, then the "
35578 "maximum size will be limited by the maximum ext4 file size (currently 16 "
35579 "TB).  If you store disk images as host logical volumes then you are limited "
35580 "by the maximum size of an LV."
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:2931
35585 msgid ""
35586 "For the hugest disk image files, we recommend using XFS on the host for "
35587 "storage."
35588 msgstr ""
35589
35590 #. type: =head2
35591 #: ../src/guestfs.pod:2934
35592 msgid "MAXIMUM SIZE OF A PARTITION"
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:2936
35597 msgid ""
35598 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
35599 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
35600 "address a partition located beyond 2 TB on the disk."
35601 msgstr ""
35602
35603 #. type: textblock
35604 #: ../src/guestfs.pod:2940
35605 msgid ""
35606 "It is recommended that you use GPT partitions on disks which are larger than "
35607 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
35608 "which are theoretically larger than the largest disk we could support."
35609 msgstr ""
35610
35611 #. type: =head2
35612 #: ../src/guestfs.pod:2945
35613 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
35614 msgstr ""
35615
35616 #. type: textblock
35617 #: ../src/guestfs.pod:2947
35618 msgid ""
35619 "This depends on the filesystem type.  libguestfs itself does not impose any "
35620 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
35621 "what these limits are."
35622 msgstr ""
35623
35624 #. type: =head2
35625 #: ../src/guestfs.pod:2951
35626 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:2953
35631 msgid ""
35632 "The API functions L</guestfs_upload>, L</guestfs_download>, "
35633 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
35634 "uploads and downloads."
35635 msgstr ""
35636
35637 #. type: =head2
35638 #: ../src/guestfs.pod:2957
35639 msgid "INSPECTION LIMITS"
35640 msgstr ""
35641
35642 #. type: textblock
35643 #: ../src/guestfs.pod:2959
35644 msgid ""
35645 "The inspection code has several arbitrary limits on things like the size of "
35646 "Windows Registry hive it will read, and the length of product name.  These "
35647 "are intended to stop a malicious guest from consuming arbitrary amounts of "
35648 "memory and disk space on the host, and should not be reached in practice.  "
35649 "See the source code for more information."
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:2985
35654 msgid ""
35655 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
35656 "effect as calling C<guestfs_set_verbose (g, 1)>."
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:2997
35661 msgid ""
35662 "Set the path that libguestfs uses to search for a supermin appliance.  See "
35663 "the discussion of paths in section L</PATH> above."
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:3006
35668 msgid "See also L</QEMU WRAPPERS> above."
35669 msgstr ""
35670
35671 #. type: textblock
35672 #: ../src/guestfs.pod:3010
35673 msgid ""
35674 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
35675 "effect as calling C<guestfs_set_trace (g, 1)>."
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:3028
35680 msgid ""
35681 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
35682 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
35683 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
35684 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
35685 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
35686 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
35687 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
35688 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
35689 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:3058
35694 msgid ""
35695 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
35696 "L<lvm(8)>, L<disktype(1)>."
35697 msgstr ""
35698
35699 #. type: =head1
35700 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
35701 msgid "BUGS"
35702 msgstr ""
35703
35704 #. type: textblock
35705 #: ../src/guestfs.pod:3067
35706 msgid "To get a list of bugs against libguestfs use this link:"
35707 msgstr ""
35708
35709 #. type: textblock
35710 #: ../src/guestfs.pod:3069
35711 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:3071
35716 msgid "To report a new bug against libguestfs use this link:"
35717 msgstr ""
35718
35719 #. type: textblock
35720 #: ../src/guestfs.pod:3073
35721 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:3075
35726 msgid "When reporting a bug, please check:"
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../src/guestfs.pod:3081
35731 msgid "That the bug hasn't been reported already."
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:3085
35736 msgid "That you are testing a recent version."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:3089
35741 msgid "Describe the bug accurately, and give a way to reproduce it."
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:3093
35746 msgid ""
35747 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
35748 "bug report."
35749 msgstr ""
35750
35751 #. type: textblock
35752 #: ../test-tool/libguestfs-test-tool.pod:5
35753 msgid "libguestfs-test-tool - End user tests for libguestfs"
35754 msgstr ""
35755
35756 #. type: verbatim
35757 #: ../test-tool/libguestfs-test-tool.pod:9
35758 #, no-wrap
35759 msgid ""
35760 " libguestfs-test-tool [--options]\n"
35761 "\n"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../test-tool/libguestfs-test-tool.pod:13
35766 msgid ""
35767 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
35768 "and developers, to allow them to check basic libguestfs functionality is "
35769 "working.  This is needed because libguestfs occasionally breaks for reasons "
35770 "beyond our control: usually because of changes in the underlying qemu or "
35771 "kernel packages, or the host environment."
35772 msgstr ""
35773
35774 #. type: textblock
35775 #: ../test-tool/libguestfs-test-tool.pod:20
35776 msgid "If you suspect a problem in libguestfs, then just run:"
35777 msgstr ""
35778
35779 #. type: verbatim
35780 #: ../test-tool/libguestfs-test-tool.pod:22
35781 #, no-wrap
35782 msgid ""
35783 " libguestfs-test-tool\n"
35784 "\n"
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../test-tool/libguestfs-test-tool.pod:24
35789 msgid "It will print lots of diagnostic messages."
35790 msgstr ""
35791
35792 #. type: textblock
35793 #: ../test-tool/libguestfs-test-tool.pod:26
35794 msgid "If it runs to completion successfully, you will see this near the end:"
35795 msgstr ""
35796
35797 #. type: verbatim
35798 #: ../test-tool/libguestfs-test-tool.pod:28
35799 #, no-wrap
35800 msgid ""
35801 " ===== TEST FINISHED OK =====\n"
35802 "\n"
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../test-tool/libguestfs-test-tool.pod:30
35807 msgid "and the test tool will exit with code 0."
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../test-tool/libguestfs-test-tool.pod:32
35812 msgid ""
35813 "If it fails (and/or exits with non-zero error code), please paste the "
35814 "B<complete, unedited> output of the test tool into a bug report.  More "
35815 "information about reporting bugs can be found on the "
35816 "L<http://libguestfs.org/> website."
35817 msgstr ""
35818
35819 #. type: =item
35820 #: ../test-tool/libguestfs-test-tool.pod:41
35821 msgid "I<--help>"
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../test-tool/libguestfs-test-tool.pod:43
35826 msgid "Display short usage information and exit."
35827 msgstr ""
35828
35829 #. type: =item
35830 #: ../test-tool/libguestfs-test-tool.pod:45
35831 msgid "I<--qemu qemu_binary>"
35832 msgstr ""
35833
35834 #. type: textblock
35835 #: ../test-tool/libguestfs-test-tool.pod:47
35836 msgid ""
35837 "If you have downloaded another qemu binary, point this option at the full "
35838 "path of the binary to try it."
35839 msgstr ""
35840
35841 #. type: =item
35842 #: ../test-tool/libguestfs-test-tool.pod:50
35843 msgid "I<--qemudir qemu_source_dir>"
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../test-tool/libguestfs-test-tool.pod:52
35848 msgid ""
35849 "If you have compiled qemu from source, point this option at the source "
35850 "directory to try it."
35851 msgstr ""
35852
35853 #. type: =item
35854 #: ../test-tool/libguestfs-test-tool.pod:55
35855 msgid "I<--timeout N>"
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../test-tool/libguestfs-test-tool.pod:57
35860 msgid ""
35861 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
35862 "does not usually need to be adjusted unless your machine is very slow."
35863 msgstr ""
35864
35865 #. type: =head1
35866 #: ../test-tool/libguestfs-test-tool.pod:63
35867 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../test-tool/libguestfs-test-tool.pod:65
35872 msgid ""
35873 "If you have compiled another version of qemu from source and would like to "
35874 "try that, then you can use the I<--qemudir> option to point to the qemu "
35875 "source directory."
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../test-tool/libguestfs-test-tool.pod:69
35880 msgid ""
35881 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
35882 "option to point to the binary."
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../test-tool/libguestfs-test-tool.pod:72
35887 msgid ""
35888 "When using an alternate qemu with libguestfs, usually you would need to "
35889 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
35890 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
35891 "when you use either of the I<--qemudir> or I<--qemu> options."
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../test-tool/libguestfs-test-tool.pod:79
35896 msgid ""
35897 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
35898 "I<1> if there was an error."
35899 msgstr ""
35900
35901 #. type: textblock
35902 #: ../test-tool/libguestfs-test-tool.pod:84
35903 msgid ""
35904 "For the full list of environment variables which may affect libguestfs, "
35905 "please see the L<guestfs(3)> manual page."
35906 msgstr ""
35907
35908 #. type: textblock
35909 #: ../test-tool/libguestfs-test-tool.pod:89
35910 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../tools/virt-list-filesystems.pl:32
35915 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
35916 msgstr ""
35917
35918 #. type: verbatim
35919 #: ../tools/virt-list-filesystems.pl:36
35920 #, no-wrap
35921 msgid ""
35922 " virt-list-filesystems [--options] domname\n"
35923 "\n"
35924 msgstr ""
35925
35926 #. type: verbatim
35927 #: ../tools/virt-list-filesystems.pl:38
35928 #, no-wrap
35929 msgid ""
35930 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
35931 "\n"
35932 msgstr ""
35933
35934 #. type: textblock
35935 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
35936 msgid ""
35937 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
35938 "replacement."
35939 msgstr ""
35940
35941 #. type: textblock
35942 #: ../tools/virt-list-filesystems.pl:45
35943 msgid ""
35944 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
35945 "are contained in a virtual machine or disk image."
35946 msgstr ""
35947
35948 #. type: textblock
35949 #: ../tools/virt-list-filesystems.pl:49
35950 msgid ""
35951 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
35952 "functionality.  For more complex cases you should look at the "
35953 "L<guestfish(1)> tool."
35954 msgstr ""
35955
35956 #. type: textblock
35957 #: ../tools/virt-list-filesystems.pl:112
35958 msgid ""
35959 "With this option, C<virt-list-filesystems> displays the type of each "
35960 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
35961 msgstr ""
35962
35963 #. type: =item
35964 #: ../tools/virt-list-filesystems.pl:119
35965 msgid "B<-a>"
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../tools/virt-list-filesystems.pl:123
35970 msgid ""
35971 "Normally we only show mountable filesystems.  If this option is given then "
35972 "swap devices are shown too."
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../tools/virt-list-filesystems.pl:197
35977 msgid ""
35978 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
35979 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
35980 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
35985 msgid "Copyright (C) 2009 Red Hat Inc."
35986 msgstr ""
35987
35988 #. type: textblock
35989 #: ../tools/virt-list-partitions.pl:32
35990 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
35991 msgstr ""
35992
35993 #. type: verbatim
35994 #: ../tools/virt-list-partitions.pl:36
35995 #, no-wrap
35996 msgid ""
35997 " virt-list-partitions [--options] domname\n"
35998 "\n"
35999 msgstr ""
36000
36001 #. type: verbatim
36002 #: ../tools/virt-list-partitions.pl:38
36003 #, no-wrap
36004 msgid ""
36005 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36006 "\n"
36007 msgstr ""
36008
36009 #. type: textblock
36010 #: ../tools/virt-list-partitions.pl:45
36011 msgid ""
36012 "C<virt-list-partitions> is a command line tool to list the partitions that "
36013 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36014 "first step to using L<virt-resize(1)>."
36015 msgstr ""
36016
36017 #. type: textblock
36018 #: ../tools/virt-list-partitions.pl:50
36019 msgid ""
36020 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36021 "functionality.  For more complex cases you should look at the "
36022 "L<guestfish(1)> tool."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../tools/virt-list-partitions.pl:113
36027 msgid "Show sizes in human-readable form (eg. \"1G\")."
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../tools/virt-list-partitions.pl:123
36032 msgid ""
36033 "With this option, C<virt-list-partitions> displays the type and size of each "
36034 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36035 msgstr ""
36036
36037 #. type: =item
36038 #: ../tools/virt-list-partitions.pl:130
36039 msgid "B<-t>"
36040 msgstr ""
36041
36042 #. type: =item
36043 #: ../tools/virt-list-partitions.pl:132
36044 msgid "B<--total>"
36045 msgstr ""
36046
36047 #. type: textblock
36048 #: ../tools/virt-list-partitions.pl:134
36049 msgid "Display the total size of each block device (as a separate row or rows)."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../tools/virt-list-partitions.pl:267
36054 msgid ""
36055 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
36056 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
36057 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../tools/virt-list-partitions.pl:283
36062 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36063 msgstr ""
36064
36065 #. type: textblock
36066 #: ../tools/virt-make-fs.pl:37
36067 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36068 msgstr ""
36069
36070 #. type: verbatim
36071 #: ../tools/virt-make-fs.pl:41
36072 #, no-wrap
36073 msgid ""
36074 " virt-make-fs [--options] input.tar output.img\n"
36075 "\n"
36076 msgstr ""
36077
36078 #. type: verbatim
36079 #: ../tools/virt-make-fs.pl:43
36080 #, no-wrap
36081 msgid ""
36082 " virt-make-fs [--options] input.tar.gz output.img\n"
36083 "\n"
36084 msgstr ""
36085
36086 #. type: verbatim
36087 #: ../tools/virt-make-fs.pl:45
36088 #, no-wrap
36089 msgid ""
36090 " virt-make-fs [--options] directory output.img\n"
36091 "\n"
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../tools/virt-make-fs.pl:49
36096 msgid ""
36097 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36098 "archive or some files in a directory.  It is similar to tools like "
36099 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
36100 "it can create common filesystem types like ext2/3 or NTFS, which can be "
36101 "useful if you want to attach these filesystems to existing virtual machines "
36102 "(eg. to import large amounts of read-only data to a VM)."
36103 msgstr ""
36104
36105 #. type: textblock
36106 #: ../tools/virt-make-fs.pl:57
36107 msgid "Basic usage is:"
36108 msgstr ""
36109
36110 #. type: verbatim
36111 #: ../tools/virt-make-fs.pl:59
36112 #, no-wrap
36113 msgid ""
36114 " virt-make-fs input output\n"
36115 "\n"
36116 msgstr ""
36117
36118 #. type: textblock
36119 #: ../tools/virt-make-fs.pl:61
36120 msgid ""
36121 "where C<input> is either a directory containing files that you want to add, "
36122 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36123 "C<output> is a disk image.  The input type is detected automatically.  The "
36124 "output disk image defaults to a raw ext2 image unless you specify extra "
36125 "flags (see L</OPTIONS> below)."
36126 msgstr ""
36127
36128 #. type: =head2
36129 #: ../tools/virt-make-fs.pl:67
36130 msgid "EXTRA SPACE"
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../tools/virt-make-fs.pl:69
36135 msgid ""
36136 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36137 "the files that it contains, but might have extra space.  Depending on how "
36138 "you are going to use the output, you might think this extra space is wasted "
36139 "and want to minimize it, or you might want to leave space so that more files "
36140 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36141 "but you can use the I<--size> flag to leave space in the filesystem if you "
36142 "want it."
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../tools/virt-make-fs.pl:77
36147 msgid ""
36148 "An alternative way to leave extra space but not make the output image any "
36149 "bigger is to use an alternative disk image format (instead of the default "
36150 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36151 "image format (check your hypervisor supports this before using it).  This "
36152 "allows you to choose a large I<--size> but the extra space won't actually be "
36153 "allocated in the image until you try to store something in it."
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../tools/virt-make-fs.pl:85
36158 msgid ""
36159 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36160 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36161 "to build another image from scratch."
36162 msgstr ""
36163
36164 #. type: =head3
36165 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
36166 msgid "EXAMPLE"
36167 msgstr ""
36168
36169 #. type: verbatim
36170 #: ../tools/virt-make-fs.pl:91
36171 #, no-wrap
36172 msgid ""
36173 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36174 "\n"
36175 msgstr ""
36176
36177 #. type: =head2
36178 #: ../tools/virt-make-fs.pl:93
36179 msgid "FILESYSTEM TYPE"
36180 msgstr ""
36181
36182 #. type: textblock
36183 #: ../tools/virt-make-fs.pl:95
36184 msgid ""
36185 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36186 "libguestfs supports can be used (but I<not> read-only formats like "
36187 "ISO9660).  Here are some of the more common choices:"
36188 msgstr ""
36189
36190 #. type: =item
36191 #: ../tools/virt-make-fs.pl:101
36192 msgid "I<ext3>"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../tools/virt-make-fs.pl:103
36197 msgid ""
36198 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36199 "you are not going to use the filesystem in a way that requires the journal, "
36200 "then this is just wasted overhead."
36201 msgstr ""
36202
36203 #. type: =item
36204 #: ../tools/virt-make-fs.pl:107
36205 msgid "I<ntfs> or I<vfat>"
36206 msgstr ""
36207
36208 #. type: textblock
36209 #: ../tools/virt-make-fs.pl:109
36210 msgid "Useful if exporting data to a Windows guest."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../tools/virt-make-fs.pl:111
36215 msgid ""
36216 "I<Note for vfat>: The tar archive or local directory must only contain files "
36217 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36218 "program running within libguestfs is unable to change the ownership of "
36219 "non-root files, since vfat itself does not support this."
36220 msgstr ""
36221
36222 #. type: =item
36223 #: ../tools/virt-make-fs.pl:116
36224 msgid "I<minix>"
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../tools/virt-make-fs.pl:118
36229 msgid ""
36230 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36231 "total filesystem size."
36232 msgstr ""
36233
36234 #. type: verbatim
36235 #: ../tools/virt-make-fs.pl:125
36236 #, no-wrap
36237 msgid ""
36238 " virt-make-fs --type=minix input minixfs.img\n"
36239 "\n"
36240 msgstr ""
36241
36242 #. type: =head2
36243 #: ../tools/virt-make-fs.pl:127
36244 msgid "TO PARTITION OR NOT TO PARTITION"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../tools/virt-make-fs.pl:129
36249 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36250 msgstr ""
36251
36252 #. type: textblock
36253 #: ../tools/virt-make-fs.pl:131
36254 msgid ""
36255 "Adding a partition can make the disk image more compatible with certain "
36256 "virtualized operating systems which don't expect to see a filesystem "
36257 "directly located on a block device (Linux doesn't care and will happily "
36258 "handle both types)."
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../tools/virt-make-fs.pl:136
36263 msgid ""
36264 "On the other hand, if you have a partition table then the output image is no "
36265 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36266 "directly on a partitioned disk image.  (However libguestfs tools such as "
36267 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../tools/virt-make-fs.pl:144
36272 msgid "Add an MBR partition:"
36273 msgstr ""
36274
36275 #. type: verbatim
36276 #: ../tools/virt-make-fs.pl:146
36277 #, no-wrap
36278 msgid ""
36279 " virt-make-fs --partition -- input disk.img\n"
36280 "\n"
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../tools/virt-make-fs.pl:148
36285 msgid ""
36286 "If the output disk image could be terabyte-sized or larger, it's better to "
36287 "use an EFI/GPT-compatible partition table:"
36288 msgstr ""
36289
36290 #. type: verbatim
36291 #: ../tools/virt-make-fs.pl:151
36292 #, no-wrap
36293 msgid ""
36294 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36295 "\n"
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../tools/virt-make-fs.pl:179
36300 msgid "Enable debugging information."
36301 msgstr ""
36302
36303 #. type: =item
36304 #: ../tools/virt-make-fs.pl:185
36305 msgid "B<--size=E<lt>NE<gt>>"
36306 msgstr ""
36307
36308 #. type: =item
36309 #: ../tools/virt-make-fs.pl:187
36310 msgid "B<--size=+E<lt>NE<gt>>"
36311 msgstr ""
36312
36313 #. type: =item
36314 #: ../tools/virt-make-fs.pl:189
36315 msgid "B<-s E<lt>NE<gt>>"
36316 msgstr ""
36317
36318 #. type: =item
36319 #: ../tools/virt-make-fs.pl:191
36320 msgid "B<-s +E<lt>NE<gt>>"
36321 msgstr ""
36322
36323 #. type: textblock
36324 #: ../tools/virt-make-fs.pl:193
36325 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../tools/virt-make-fs.pl:196
36330 msgid ""
36331 "If this option is I<not> given, then the output image will be just large "
36332 "enough to contain all the files, with not much wasted space."
36333 msgstr ""
36334
36335 #. type: textblock
36336 #: ../tools/virt-make-fs.pl:199
36337 msgid ""
36338 "To choose a fixed size output disk, specify an absolute number followed by "
36339 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36340 "Petabytes or Exabytes.  This must be large enough to contain all the input "
36341 "files, else you will get an error."
36342 msgstr ""
36343
36344 #. type: textblock
36345 #: ../tools/virt-make-fs.pl:204
36346 msgid ""
36347 "To leave extra space, specify C<+> (plus sign) and a number followed by "
36348 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36349 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
36350 "the input files, and (approximately) an extra 200 MB free space."
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../tools/virt-make-fs.pl:210
36355 msgid ""
36356 "Note that virt-make-fs estimates free space, and therefore will not produce "
36357 "filesystems containing precisely the free space requested.  (It is much more "
36358 "expensive and time-consuming to produce a filesystem which has precisely the "
36359 "desired free space)."
36360 msgstr ""
36361
36362 #. type: =item
36363 #: ../tools/virt-make-fs.pl:219
36364 msgid "B<--format=E<lt>fmtE<gt>>"
36365 msgstr ""
36366
36367 #. type: =item
36368 #: ../tools/virt-make-fs.pl:221
36369 msgid "B<-F E<lt>fmtE<gt>>"
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../tools/virt-make-fs.pl:223
36374 msgid "Choose the output disk image format."
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../tools/virt-make-fs.pl:225
36379 msgid "The default is C<raw> (raw disk image)."
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../tools/virt-make-fs.pl:227
36384 msgid ""
36385 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
36386 "that would really make sense here is C<qcow2>."
36387 msgstr ""
36388
36389 #. type: =item
36390 #: ../tools/virt-make-fs.pl:234
36391 msgid "B<--type=E<lt>fsE<gt>>"
36392 msgstr ""
36393
36394 #. type: =item
36395 #: ../tools/virt-make-fs.pl:236
36396 msgid "B<-t E<lt>fsE<gt>>"
36397 msgstr ""
36398
36399 #. type: textblock
36400 #: ../tools/virt-make-fs.pl:238
36401 msgid "Choose the output filesystem type."
36402 msgstr ""
36403
36404 #. type: textblock
36405 #: ../tools/virt-make-fs.pl:240
36406 msgid "The default is C<ext2>."
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../tools/virt-make-fs.pl:242
36411 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
36412 msgstr ""
36413
36414 #. type: =item
36415 #: ../tools/virt-make-fs.pl:249
36416 msgid "B<--partition>"
36417 msgstr ""
36418
36419 #. type: =item
36420 #: ../tools/virt-make-fs.pl:251
36421 msgid "B<--partition=E<lt>parttypeE<gt>>"
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../tools/virt-make-fs.pl:253
36426 msgid ""
36427 "If specified, this flag adds an MBR partition table to the output disk "
36428 "image."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../tools/virt-make-fs.pl:256
36433 msgid ""
36434 "You can change the partition table type, eg. I<--partition=gpt> for large "
36435 "disks."
36436 msgstr ""
36437
36438 #. type: textblock
36439 #: ../tools/virt-make-fs.pl:259
36440 msgid ""
36441 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
36442 "might consider the next parameter to be the partition type.  For example:"
36443 msgstr ""
36444
36445 #. type: verbatim
36446 #: ../tools/virt-make-fs.pl:263
36447 #, no-wrap
36448 msgid ""
36449 " virt-make-fs --partition input.tar ...\n"
36450 "\n"
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../tools/virt-make-fs.pl:265
36455 msgid ""
36456 "would cause virt-make-fs to think you wanted to use a partition type of "
36457 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
36458 "dash) between options and the input file argument:"
36459 msgstr ""
36460
36461 #. type: verbatim
36462 #: ../tools/virt-make-fs.pl:269
36463 #, no-wrap
36464 msgid ""
36465 " virt-make-fs --partition -- input.tar ...\n"
36466 "\n"
36467 msgstr ""
36468
36469 #. type: textblock
36470 #: ../tools/virt-make-fs.pl:541
36471 msgid ""
36472 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
36473 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
36474 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
36479 msgid ""
36480 "When reporting bugs, please enable debugging and capture the I<complete> "
36481 "output:"
36482 msgstr ""
36483
36484 #. type: verbatim
36485 #: ../tools/virt-make-fs.pl:558
36486 #, no-wrap
36487 msgid ""
36488 " export LIBGUESTFS_DEBUG=1\n"
36489 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
36490 "\n"
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../tools/virt-make-fs.pl:561
36495 msgid ""
36496 "Attach /tmp/virt-make-fs.log to a new bug report at "
36497 "L<https://bugzilla.redhat.com/>"
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../tools/virt-tar.pl:33
36502 msgid "virt-tar - Extract or upload files to a virtual machine"
36503 msgstr ""
36504
36505 #. type: verbatim
36506 #: ../tools/virt-tar.pl:37
36507 #, no-wrap
36508 msgid ""
36509 " virt-tar [--options] -x domname directory tarball\n"
36510 "\n"
36511 msgstr ""
36512
36513 #. type: verbatim
36514 #: ../tools/virt-tar.pl:39
36515 #, no-wrap
36516 msgid ""
36517 " virt-tar [--options] -u domname tarball directory\n"
36518 "\n"
36519 msgstr ""
36520
36521 #. type: verbatim
36522 #: ../tools/virt-tar.pl:41
36523 #, no-wrap
36524 msgid ""
36525 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
36526 "\n"
36527 msgstr ""
36528
36529 #. type: verbatim
36530 #: ../tools/virt-tar.pl:43
36531 #, no-wrap
36532 msgid ""
36533 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
36534 "\n"
36535 msgstr ""
36536
36537 #. type: =head2
36538 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
36539 msgid "NOTE"
36540 msgstr ""
36541
36542 #. type: textblock
36543 #: ../tools/virt-tar.pl:47
36544 msgid ""
36545 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36546 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../tools/virt-tar.pl:52
36551 msgid "Download C</home> from the VM into a local tarball:"
36552 msgstr ""
36553
36554 #. type: verbatim
36555 #: ../tools/virt-tar.pl:54
36556 #, no-wrap
36557 msgid ""
36558 " virt-tar -x domname /home home.tar\n"
36559 "\n"
36560 msgstr ""
36561
36562 #. type: verbatim
36563 #: ../tools/virt-tar.pl:56
36564 #, no-wrap
36565 msgid ""
36566 " virt-tar -zx domname /home home.tar.gz\n"
36567 "\n"
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../tools/virt-tar.pl:58
36572 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
36573 msgstr ""
36574
36575 #. type: verbatim
36576 #: ../tools/virt-tar.pl:60
36577 #, no-wrap
36578 msgid ""
36579 " virt-tar -u domname uploadstuff.tar /tmp\n"
36580 "\n"
36581 msgstr ""
36582
36583 #. type: verbatim
36584 #: ../tools/virt-tar.pl:62
36585 #, no-wrap
36586 msgid ""
36587 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
36588 "\n"
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../tools/virt-tar.pl:66
36593 msgid ""
36594 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
36595 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
36596 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
36597 msgstr ""
36598
36599 #. type: textblock
36600 #: ../tools/virt-tar.pl:71
36601 msgid ""
36602 "You can use I<-x> (extract) on live virtual machines, but you might get "
36603 "inconsistent results or errors if there is filesystem activity inside the "
36604 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
36605 "work, but the only way to guarantee consistent results is if the virtual "
36606 "machine is shut down."
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../tools/virt-tar.pl:79
36611 msgid ""
36612 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
36613 "parts of a guest filesystem.  There are many possibilities: making backups, "
36614 "uploading data files, snooping on guest activity, fixing or customizing "
36615 "guests, etc."
36616 msgstr ""
36617
36618 #. type: textblock
36619 #: ../tools/virt-tar.pl:84
36620 msgid ""
36621 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
36622 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
36623 "should look at the L<guestfish(1)> tool."
36624 msgstr ""
36625
36626 #. type: textblock
36627 #: ../tools/virt-tar.pl:88
36628 msgid ""
36629 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
36630 "its contents (recursively) from the virtual machine into a local tarball.  "
36631 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
36632 "virtual machine.  You cannot use these two options together."
36633 msgstr ""
36634
36635 #. type: textblock
36636 #: ../tools/virt-tar.pl:94
36637 msgid ""
36638 "In addition, you may need to use the I<-z> (gZip) option to enable "
36639 "compression.  When uploading, you have to specify I<-z> if the upload file "
36640 "is compressed because virt-tar won't detect this on its own."
36641 msgstr ""
36642
36643 #. type: textblock
36644 #: ../tools/virt-tar.pl:98
36645 msgid ""
36646 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
36647 "example it cannot do PKZip files or bzip2 compression.  If you want that "
36648 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
36649 "the L<libguestfs(3)> API)."
36650 msgstr ""
36651
36652 #. type: =item
36653 #: ../tools/virt-tar.pl:160
36654 msgid "B<--extract>"
36655 msgstr ""
36656
36657 #. type: =item
36658 #: ../tools/virt-tar.pl:162
36659 msgid "B<--download>"
36660 msgstr ""
36661
36662 #. type: =item
36663 #: ../tools/virt-tar.pl:164
36664 msgid "B<-u>"
36665 msgstr ""
36666
36667 #. type: =item
36668 #: ../tools/virt-tar.pl:166
36669 msgid "B<--upload>"
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../tools/virt-tar.pl:168
36674 msgid ""
36675 "Use I<-x> to extract (download) a directory from a virtual machine to a "
36676 "local tarball."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../tools/virt-tar.pl:171
36681 msgid ""
36682 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
36683 "Please read the L</WARNING> section above before using this option."
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../tools/virt-tar.pl:175
36688 msgid "You must specify exactly one of these options."
36689 msgstr ""
36690
36691 #. type: =item
36692 #: ../tools/virt-tar.pl:181
36693 msgid "B<-z>"
36694 msgstr ""
36695
36696 #. type: =item
36697 #: ../tools/virt-tar.pl:183
36698 msgid "B<--gzip>"
36699 msgstr ""
36700
36701 #. type: textblock
36702 #: ../tools/virt-tar.pl:185
36703 msgid "Specify that the input or output tarball is gzip-compressed."
36704 msgstr ""
36705
36706 #. type: textblock
36707 #: ../tools/virt-tar.pl:298
36708 msgid ""
36709 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
36710 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36711 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
36712 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36713 msgstr ""
36714
36715 #. type: textblock
36716 #: ../tools/virt-win-reg.pl:37
36717 msgid ""
36718 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
36719 "guest"
36720 msgstr ""
36721
36722 #. type: verbatim
36723 #: ../tools/virt-win-reg.pl:41
36724 #, no-wrap
36725 msgid ""
36726 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
36727 "\n"
36728 msgstr ""
36729
36730 #. type: verbatim
36731 #: ../tools/virt-win-reg.pl:43
36732 #, no-wrap
36733 msgid ""
36734 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
36735 "\n"
36736 msgstr ""
36737
36738 #. type: verbatim
36739 #: ../tools/virt-win-reg.pl:45
36740 #, no-wrap
36741 msgid ""
36742 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
36743 "\n"
36744 msgstr ""
36745
36746 #. type: verbatim
36747 #: ../tools/virt-win-reg.pl:47
36748 #, no-wrap
36749 msgid ""
36750 " virt-win-reg --merge domname [input.reg ...]\n"
36751 "\n"
36752 msgstr ""
36753
36754 #. type: verbatim
36755 #: ../tools/virt-win-reg.pl:49
36756 #, no-wrap
36757 msgid ""
36758 " virt-win-reg [--options] disk.img ... # instead of domname\n"
36759 "\n"
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../tools/virt-win-reg.pl:53
36764 msgid ""
36765 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
36766 "virtual machines.  If you do this, you I<will> get irreversible disk "
36767 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
36768 "but doesn't catch all cases."
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../tools/virt-win-reg.pl:58
36773 msgid ""
36774 "Modifying the Windows Registry is an inherently risky operation.  The format "
36775 "is deliberately obscure and undocumented, and Registry changes can leave the "
36776 "system unbootable.  Therefore when using the I<--merge> option, make sure "
36777 "you have a reliable backup first."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../tools/virt-win-reg.pl:65
36782 msgid ""
36783 "This program can export and merge Windows Registry entries from a Windows "
36784 "guest."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../tools/virt-win-reg.pl:68
36789 msgid ""
36790 "The first parameter is the libvirt guest name or the raw disk image of a "
36791 "Windows guest."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../tools/virt-win-reg.pl:71
36796 msgid ""
36797 "If I<--merge> is I<not> specified, then the chosen registry key is "
36798 "displayed/exported (recursively).  For example:"
36799 msgstr ""
36800
36801 #. type: verbatim
36802 #: ../tools/virt-win-reg.pl:74
36803 #, no-wrap
36804 msgid ""
36805 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
36806 "\n"
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../tools/virt-win-reg.pl:76
36811 msgid "You can also display single values from within registry keys, for example:"
36812 msgstr ""
36813
36814 #. type: verbatim
36815 #: ../tools/virt-win-reg.pl:79
36816 #, no-wrap
36817 msgid ""
36818 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
36819 " $ virt-win-reg Windows7 $cvkey ProductName\n"
36820 " Windows 7 Enterprise\n"
36821 "\n"
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../tools/virt-win-reg.pl:83
36826 msgid ""
36827 "With I<--merge>, you can merge a textual regedit file into the Windows "
36828 "Registry:"
36829 msgstr ""
36830
36831 #. type: verbatim
36832 #: ../tools/virt-win-reg.pl:86
36833 #, no-wrap
36834 msgid ""
36835 " $ virt-win-reg --merge Windows7 changes.reg\n"
36836 "\n"
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../tools/virt-win-reg.pl:90
36841 msgid ""
36842 "This program is only meant for simple access to the registry.  If you want "
36843 "to do complicated things with the registry, we suggest you download the "
36844 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
36845 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
36846 "L<hivexregedit(1)>."
36847 msgstr ""
36848
36849 #. type: =item
36850 #: ../tools/virt-win-reg.pl:159
36851 msgid "B<--merge>"
36852 msgstr ""
36853
36854 #. type: textblock
36855 #: ../tools/virt-win-reg.pl:161
36856 msgid ""
36857 "In merge mode, this merges a textual regedit file into the Windows Registry "
36858 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
36859 "displays or exports Registry entries instead."
36860 msgstr ""
36861
36862 #. type: textblock
36863 #: ../tools/virt-win-reg.pl:165
36864 msgid ""
36865 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
36866 "result in disk corruption.  However exporting (without this flag)  is always "
36867 "safe."
36868 msgstr ""
36869
36870 #. type: =item
36871 #: ../tools/virt-win-reg.pl:173
36872 msgid "B<--encoding> UTF-16LE|ASCII"
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../tools/virt-win-reg.pl:175
36877 msgid ""
36878 "When merging (only), you may need to specify the encoding for strings to be "
36879 "used in the hive file.  This is explained in detail in "
36880 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
36881 msgstr ""
36882
36883 #. type: textblock
36884 #: ../tools/virt-win-reg.pl:179
36885 msgid ""
36886 "The default is to use UTF-16LE, which should work with recent versions of "
36887 "Windows."
36888 msgstr ""
36889
36890 #. type: =item
36891 #: ../tools/virt-win-reg.pl:186
36892 msgid "B<--unsafe-printable-strings>"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../tools/virt-win-reg.pl:188
36897 msgid ""
36898 "When exporting (only), assume strings are UTF-16LE and print them as strings "
36899 "instead of hex sequences.  Remove the final zero codepoint from strings if "
36900 "present."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../tools/virt-win-reg.pl:192
36905 msgid ""
36906 "This is unsafe and does not preserve the fidelity of strings in the original "
36907 "Registry for various reasons:"
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../tools/virt-win-reg.pl:199
36912 msgid ""
36913 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
36914 "other encodings will be corrupted by this transformation."
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../tools/virt-win-reg.pl:204
36919 msgid ""
36920 "Assumes that everything which has type 1 or 2 is really a string and that "
36921 "everything else is not a string, but the type field in real Registries is "
36922 "not reliable."
36923 msgstr ""
36924
36925 #. type: textblock
36926 #: ../tools/virt-win-reg.pl:210
36927 msgid ""
36928 "Loses information about whether a zero codepoint followed the string in the "
36929 "Registry or not."
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../tools/virt-win-reg.pl:215
36934 msgid ""
36935 "This all happens because the Registry itself contains no information about "
36936 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
36937 msgstr ""
36938
36939 #. type: textblock
36940 #: ../tools/virt-win-reg.pl:219
36941 msgid ""
36942 "You should only use this option for quick hacking and debugging of the "
36943 "Registry contents, and I<never> use it if the output is going to be passed "
36944 "into another program or stored in another Registry."
36945 msgstr ""
36946
36947 #. type: =head1
36948 #: ../tools/virt-win-reg.pl:556
36949 msgid "SUPPORTED SYSTEMS"
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../tools/virt-win-reg.pl:558
36954 msgid ""
36955 "The program currently supports Windows NT-derived guests starting with "
36956 "Windows XP through to at least Windows 7."
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../tools/virt-win-reg.pl:561
36961 msgid "The following Registry keys are supported:"
36962 msgstr ""
36963
36964 #. type: =item
36965 #: ../tools/virt-win-reg.pl:565
36966 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
36967 msgstr ""
36968
36969 #. type: =item
36970 #: ../tools/virt-win-reg.pl:567
36971 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
36972 msgstr ""
36973
36974 #. type: =item
36975 #: ../tools/virt-win-reg.pl:569
36976 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
36977 msgstr ""
36978
36979 #. type: =item
36980 #: ../tools/virt-win-reg.pl:571
36981 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
36982 msgstr ""
36983
36984 #. type: =item
36985 #: ../tools/virt-win-reg.pl:573
36986 msgid "C<HKEY_USERS\\.DEFAULT>"
36987 msgstr ""
36988
36989 #. type: =item
36990 #: ../tools/virt-win-reg.pl:575
36991 msgid "C<HKEY_USERS\\I<SID>>"
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../tools/virt-win-reg.pl:577
36996 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
36997 msgstr ""
36998
36999 #. type: =item
37000 #: ../tools/virt-win-reg.pl:579
37001 msgid "C<HKEY_USERS\\I<username>>"
37002 msgstr ""
37003
37004 #. type: textblock
37005 #: ../tools/virt-win-reg.pl:581
37006 msgid "where I<username> is a local user name (this is a libguestfs extension)."
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../tools/virt-win-reg.pl:585
37011 msgid ""
37012 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37013 "C<HKEY_USERS>."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../tools/virt-win-reg.pl:588
37018 msgid ""
37019 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37020 "supported (there is no \"current user\")."
37021 msgstr ""
37022
37023 #. type: =head1
37024 #: ../tools/virt-win-reg.pl:591
37025 msgid "ENCODING"
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../tools/virt-win-reg.pl:593
37030 msgid ""
37031 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37032 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
37033 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
37034 "with Windows-style line endings, you may need to reencode the whole file "
37035 "before or after processing."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../tools/virt-win-reg.pl:599
37040 msgid ""
37041 "To reencode a file from Windows format to Linux (before processing it with "
37042 "the I<--merge> option), you would do something like this:"
37043 msgstr ""
37044
37045 #. type: verbatim
37046 #: ../tools/virt-win-reg.pl:602
37047 #, no-wrap
37048 msgid ""
37049 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37050 "\n"
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../tools/virt-win-reg.pl:604
37055 msgid ""
37056 "To go in the opposite direction, after exporting and before sending the file "
37057 "to a Windows user, do something like this:"
37058 msgstr ""
37059
37060 #. type: verbatim
37061 #: ../tools/virt-win-reg.pl:607
37062 #, no-wrap
37063 msgid ""
37064 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37065 "\n"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../tools/virt-win-reg.pl:609
37070 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../tools/virt-win-reg.pl:611
37075 msgid ""
37076 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37077 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
37078 "Windows-style (CRLF) line endings, like this:"
37079 msgstr ""
37080
37081 #. type: verbatim
37082 #: ../tools/virt-win-reg.pl:615
37083 #, no-wrap
37084 msgid ""
37085 " $ file software.reg\n"
37086 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37087 " with CRLF line terminators\n"
37088 "\n"
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../tools/virt-win-reg.pl:619
37093 msgid "This file would need conversion before you could I<--merge> it."
37094 msgstr ""
37095
37096 #. type: =head1
37097 #: ../tools/virt-win-reg.pl:621
37098 msgid "CurrentControlSet etc."
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../tools/virt-win-reg.pl:623
37103 msgid ""
37104 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37105 "Registry at the level of the hive file, and therefore you cannot modify "
37106 "these."
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../tools/virt-win-reg.pl:627
37111 msgid ""
37112 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37113 "circumstances it might refer to another control set.  The way to find out is "
37114 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37115 msgstr ""
37116
37117 #. type: verbatim
37118 #: ../tools/virt-win-reg.pl:631
37119 #, no-wrap
37120 msgid ""
37121 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37122 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37123 " \"Current\"=dword:00000001\n"
37124 " \"Default\"=dword:00000001\n"
37125 " \"Failed\"=dword:00000000\n"
37126 " \"LastKnownGood\"=dword:00000002\n"
37127 "\n"
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../tools/virt-win-reg.pl:638
37132 msgid "\"Current\" is the one which Windows will choose when it boots."
37133 msgstr ""
37134
37135 #. type: textblock
37136 #: ../tools/virt-win-reg.pl:640
37137 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
37138 msgstr ""
37139
37140 #. type: =head1
37141 #: ../tools/virt-win-reg.pl:643
37142 msgid "WINDOWS TIPS"
37143 msgstr ""
37144
37145 #. type: textblock
37146 #: ../tools/virt-win-reg.pl:645
37147 msgid ""
37148 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37149 "be shut off, else you will get disk corruption."
37150 msgstr ""
37151
37152 #. type: =head2
37153 #: ../tools/virt-win-reg.pl:648
37154 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../tools/virt-win-reg.pl:650
37159 msgid ""
37160 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37161 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37162 "is uploaded into C<C:\\>:"
37163 msgstr ""
37164
37165 #. type: verbatim
37166 #: ../tools/virt-win-reg.pl:654
37167 #, no-wrap
37168 msgid ""
37169 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37170 "\n"
37171 msgstr ""
37172
37173 #. type: textblock
37174 #: ../tools/virt-win-reg.pl:656
37175 msgid "Prepare a regedit file containing the registry change:"
37176 msgstr ""
37177
37178 #. type: verbatim
37179 #: ../tools/virt-win-reg.pl:658
37180 #, no-wrap
37181 msgid ""
37182 " cat > test.reg <<'EOF'\n"
37183 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37184 " \"Test\"=\"c:\\\\test.bat\"\n"
37185 " EOF\n"
37186 "\n"
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../tools/virt-win-reg.pl:663
37191 msgid ""
37192 "In this example we use the key C<RunOnce> which means that the script will "
37193 "run precisely once when the first user logs in.  If you want it to run every "
37194 "time a user logs in, replace C<RunOnce> with C<Run>."
37195 msgstr ""
37196
37197 #. type: textblock
37198 #: ../tools/virt-win-reg.pl:667
37199 msgid "Now update the registry:"
37200 msgstr ""
37201
37202 #. type: verbatim
37203 #: ../tools/virt-win-reg.pl:669
37204 #, no-wrap
37205 msgid ""
37206 " virt-win-reg --merge WindowsGuest test.reg\n"
37207 "\n"
37208 msgstr ""
37209
37210 #. type: =head2
37211 #: ../tools/virt-win-reg.pl:671
37212 msgid "INSTALLING A SERVICE"
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../tools/virt-win-reg.pl:673
37217 msgid ""
37218 "This section assumes you are familiar with Windows services, and you either "
37219 "have a program which handles the Windows Service Control Protocol directly "
37220 "or you want to run any program using a service wrapper like SrvAny or the "
37221 "free RHSrvAny."
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../tools/virt-win-reg.pl:678
37226 msgid ""
37227 "First upload the program and optionally the service wrapper.  In this case "
37228 "the test program is called C<test.exe> and we are using the RHSrvAny "
37229 "wrapper:"
37230 msgstr ""
37231
37232 #. type: verbatim
37233 #: ../tools/virt-win-reg.pl:682
37234 #, no-wrap
37235 msgid ""
37236 " guestfish -i -d WindowsGuest <<EOF\n"
37237 "   upload rhsrvany.exe /rhsrvany.exe\n"
37238 "   upload test.exe /test.exe\n"
37239 " EOF\n"
37240 "\n"
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../tools/virt-win-reg.pl:687
37245 msgid ""
37246 "Prepare a regedit file containing the registry changes.  In this example, "
37247 "the first registry change is needed for the service itself or the service "
37248 "wrapper (if used).  The second registry change is only needed because I am "
37249 "using the RHSrvAny service wrapper."
37250 msgstr ""
37251
37252 #. type: verbatim
37253 #: ../tools/virt-win-reg.pl:692
37254 #, no-wrap
37255 msgid ""
37256 " cat > service.reg <<'EOF'\n"
37257 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37258 " \"Type\"=dword:00000010\n"
37259 " \"Start\"=dword:00000002\n"
37260 " \"ErrorControl\"=dword:00000001\n"
37261 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37262 " \"DisplayName\"=\"RHSrvAny\"\n"
37263 " \"ObjectName\"=\"NetworkService\"\n"
37264 " \n"
37265 msgstr ""
37266
37267 #. type: verbatim
37268 #: ../tools/virt-win-reg.pl:701
37269 #, no-wrap
37270 msgid ""
37271 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37272 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37273 " \"PWD\"=\"c:\\\\Temp\"\n"
37274 " EOF\n"
37275 "\n"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../tools/virt-win-reg.pl:712
37280 msgid ""
37281 "For use of C<ControlSet001> see the section above in this manual page.  You "
37282 "may need to adjust this according to the control set that is in use by the "
37283 "guest."
37284 msgstr ""
37285
37286 #. type: textblock
37287 #: ../tools/virt-win-reg.pl:718
37288 msgid ""
37289 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37290 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37291 "privileged account."
37292 msgstr ""
37293
37294 #. type: textblock
37295 #: ../tools/virt-win-reg.pl:724
37296 msgid ""
37297 "For the meaning of the magic numbers, see this Microsoft KB article: "
37298 "L<http://support.microsoft.com/kb/103000>."
37299 msgstr ""
37300
37301 #. type: textblock
37302 #: ../tools/virt-win-reg.pl:729
37303 msgid "Update the registry:"
37304 msgstr ""
37305
37306 #. type: verbatim
37307 #: ../tools/virt-win-reg.pl:731
37308 #, no-wrap
37309 msgid ""
37310 " virt-win-reg --merge WindowsGuest service.reg\n"
37311 "\n"
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../tools/virt-win-reg.pl:735
37316 msgid ""
37317 "Be careful when passing parameters containing C<\\> (backslash) in the "
37318 "shell.  Usually you will have to use 'single quotes' or double backslashes "
37319 "(but not both) to protect them from the shell."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../tools/virt-win-reg.pl:739
37324 msgid "Paths and value names are case-insensitive."
37325 msgstr ""
37326
37327 #. type: textblock
37328 #: ../tools/virt-win-reg.pl:748
37329 msgid ""
37330 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
37331 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
37332 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
37333 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37334 msgstr ""
37335
37336 #. type: verbatim
37337 #: ../tools/virt-win-reg.pl:766
37338 #, no-wrap
37339 msgid ""
37340 " export LIBGUESTFS_DEBUG=1\n"
37341 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
37342 "\n"
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../tools/virt-win-reg.pl:769
37347 msgid ""
37348 "Attach /tmp/virt-win-reg.log to a new bug report at "
37349 "L<https://bugzilla.redhat.com/>"
37350 msgstr ""