Version 1.12.3.
[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.3\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-08-07 23:14+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../cat/virt-cat.pod:5
27 msgid "virt-cat - Display files in a virtual machine"
28 msgstr ""
29
30 #. type: =head1
31 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../cat/virt-cat.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-cat [--options] -d domname file [file ...]\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../cat/virt-cat.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: textblock
52 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
53 msgid "Old-style:"
54 msgstr ""
55
56 #. type: verbatim
57 #: ../cat/virt-cat.pod:15
58 #, no-wrap
59 msgid ""
60 " virt-cat domname file\n"
61 "\n"
62 msgstr ""
63
64 #. type: verbatim
65 #: ../cat/virt-cat.pod:17
66 #, no-wrap
67 msgid ""
68 " virt-cat disk.img file\n"
69 "\n"
70 msgstr ""
71
72 #. type: =head1
73 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 #. type: textblock
78 #: ../cat/virt-cat.pod:21
79 msgid ""
80 "C<virt-cat> is a command line tool to display the contents of C<file> where "
81 "C<file> exists in the named virtual machine (or disk image)."
82 msgstr ""
83
84 #. type: textblock
85 #: ../cat/virt-cat.pod:24
86 msgid ""
87 "Multiple filenames can be given, in which case they are concatenated "
88 "together.  Each filename must be a full path, starting at the root directory "
89 "(starting with '/')."
90 msgstr ""
91
92 #. type: textblock
93 #: ../cat/virt-cat.pod:28
94 msgid ""
95 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
96 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
97 "tool (see L</USING GUESTFISH> below)."
98 msgstr ""
99
100 #. type: =head1
101 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1007 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
102 msgid "EXAMPLES"
103 msgstr ""
104
105 #. type: textblock
106 #: ../cat/virt-cat.pod:34
107 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
108 msgstr ""
109
110 #. type: verbatim
111 #: ../cat/virt-cat.pod:37
112 #, no-wrap
113 msgid ""
114 " virt-cat -d mydomain /etc/fstab\n"
115 "\n"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:39
120 msgid "List syslog messages from a VM disk image file:"
121 msgstr ""
122
123 #. type: verbatim
124 #: ../cat/virt-cat.pod:41
125 #, no-wrap
126 msgid ""
127 " virt-cat -a disk.img /var/log/messages | tail\n"
128 "\n"
129 msgstr ""
130
131 #. type: textblock
132 #: ../cat/virt-cat.pod:43
133 msgid "Find out what DHCP IP address a VM acquired:"
134 msgstr ""
135
136 #. type: verbatim
137 #: ../cat/virt-cat.pod:45
138 #, no-wrap
139 msgid ""
140 " virt-cat -d mydomain /var/log/messages | \\\n"
141 "   grep 'dhclient: bound to' | tail\n"
142 "\n"
143 msgstr ""
144
145 #. type: textblock
146 #: ../cat/virt-cat.pod:48
147 msgid "Find out what packages were recently installed:"
148 msgstr ""
149
150 #. type: verbatim
151 #: ../cat/virt-cat.pod:50
152 #, no-wrap
153 msgid ""
154 " virt-cat -d mydomain /var/log/yum.log | tail\n"
155 "\n"
156 msgstr ""
157
158 #. type: textblock
159 #: ../cat/virt-cat.pod:52
160 msgid "Find out who is logged on inside a virtual machine:"
161 msgstr ""
162
163 #. type: verbatim
164 #: ../cat/virt-cat.pod:54
165 #, no-wrap
166 msgid ""
167 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
168 " who /tmp/utmp\n"
169 "\n"
170 msgstr ""
171
172 #. type: textblock
173 #: ../cat/virt-cat.pod:57
174 msgid "or who was logged on:"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../cat/virt-cat.pod:59
179 #, no-wrap
180 msgid ""
181 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
182 " last -f /tmp/wtmp\n"
183 "\n"
184 msgstr ""
185
186 #. type: =head1
187 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
188 msgid "OPTIONS"
189 msgstr ""
190
191 #. type: =item
192 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
193 msgid "B<--help>"
194 msgstr ""
195
196 #. type: textblock
197 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
198 msgid "Display brief help."
199 msgstr ""
200
201 #. type: =item
202 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
203 msgid "B<-a> file"
204 msgstr ""
205
206 #. type: =item
207 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
208 msgid "B<--add> file"
209 msgstr ""
210
211 #. type: textblock
212 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
213 msgid ""
214 "Add I<file> which should be a disk image from a virtual machine.  If the "
215 "virtual machine has multiple block devices, you must supply all of them with "
216 "separate I<-a> options."
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
221 msgid ""
222 "The format of the disk image is auto-detected.  To override this and force a "
223 "particular format use the I<--format=..> option."
224 msgstr ""
225
226 #. type: =item
227 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
228 msgid "B<-c> URI"
229 msgstr ""
230
231 #. type: =item
232 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
233 msgid "B<--connect> URI"
234 msgstr ""
235
236 #. type: textblock
237 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
238 msgid ""
239 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
240 "to the default libvirt hypervisor."
241 msgstr ""
242
243 #. type: textblock
244 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
245 msgid ""
246 "If you specify guest block devices directly (I<-a>), then libvirt is not "
247 "used at all."
248 msgstr ""
249
250 #. type: =item
251 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
252 msgid "B<-d> guest"
253 msgstr ""
254
255 #. type: =item
256 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
257 msgid "B<--domain> guest"
258 msgstr ""
259
260 #. type: textblock
261 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
262 msgid ""
263 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
264 "instead of names."
265 msgstr ""
266
267 #. type: =item
268 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
269 msgid "B<--echo-keys>"
270 msgstr ""
271
272 #. type: textblock
273 #: ../cat/virt-cat.pod:100
274 msgid ""
275 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
276 "so you cannot see what you are typing.  If you are not worried about Tempest "
277 "attacks and there is no one else in the room you can specify this flag to "
278 "see what you are typing."
279 msgstr ""
280
281 #. type: =item
282 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
283 msgid "B<--format=raw|qcow2|..>"
284 msgstr ""
285
286 #. type: =item
287 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
288 msgid "B<--format>"
289 msgstr ""
290
291 #. type: textblock
292 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
293 msgid ""
294 "The default for the I<-a> option is to auto-detect the format of the disk "
295 "image.  Using this forces the disk format for I<-a> options which follow on "
296 "the command line.  Using I<--format> with no argument switches back to "
297 "auto-detection for subsequent I<-a> options."
298 msgstr ""
299
300 #. type: textblock
301 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod: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:478
370 msgid "B<-V>"
371 msgstr ""
372
373 #. type: =item
374 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186 ../resize/virt-resize.pod:480 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
375 msgid "B<--version>"
376 msgstr ""
377
378 #. type: textblock
379 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:482 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
380 msgid "Display version number and exit."
381 msgstr ""
382
383 #. type: =item
384 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199 ../tools/virt-tar.pl:158
385 msgid "B<-x>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
390 msgid "Enable tracing of libguestfs API calls."
391 msgstr ""
392
393 #. type: =head1
394 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
395 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
396 msgstr ""
397
398 #. type: textblock
399 #: ../cat/virt-cat.pod:154
400 msgid "Previous versions of virt-cat allowed you to write either:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../cat/virt-cat.pod:156
405 #, no-wrap
406 msgid ""
407 " virt-cat disk.img [disk.img ...] file\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
413 msgid "or"
414 msgstr ""
415
416 #. type: verbatim
417 #: ../cat/virt-cat.pod:160
418 #, no-wrap
419 msgid ""
420 " virt-cat guestname file\n"
421 "\n"
422 msgstr ""
423
424 #. type: textblock
425 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
426 msgid ""
427 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
428 "the confusing case where a disk image might have the same name as a guest."
429 msgstr ""
430
431 #. type: textblock
432 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
433 msgid "For compatibility the old style is still supported."
434 msgstr ""
435
436 #. type: =head1
437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
438 msgid "USING GUESTFISH"
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:170
443 msgid ""
444 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
445 "C<virt-cat> doesn't work."
446 msgstr ""
447
448 #. type: textblock
449 #: ../cat/virt-cat.pod:173
450 msgid "Using C<virt-cat> is approximately equivalent to doing:"
451 msgstr ""
452
453 #. type: verbatim
454 #: ../cat/virt-cat.pod:175
455 #, no-wrap
456 msgid ""
457 " guestfish --ro -i -d domname download file -\n"
458 "\n"
459 msgstr ""
460
461 #. type: textblock
462 #: ../cat/virt-cat.pod:177
463 msgid ""
464 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
465 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
466 msgstr ""
467
468 #. type: textblock
469 #: ../cat/virt-cat.pod:181
470 msgid ""
471 "The command above uses libguestfs's guest inspection feature and so does not "
472 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
473 "disk images that don't contain guests.  To display a file from a disk image "
474 "directly, use:"
475 msgstr ""
476
477 #. type: verbatim
478 #: ../cat/virt-cat.pod:186
479 #, no-wrap
480 msgid ""
481 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
482 "\n"
483 msgstr ""
484
485 #. type: textblock
486 #: ../cat/virt-cat.pod:188
487 msgid ""
488 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
489 "the disk image to edit, and C<file> is the full path to the file."
490 msgstr ""
491
492 #. type: =head1
493 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262 ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
494 msgid "SHELL QUOTING"
495 msgstr ""
496
497 #. type: textblock
498 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264 ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
499 msgid ""
500 "Libvirt guest names can contain arbitrary characters, some of which have "
501 "meaning to the shell such as C<#> and space.  You may need to quote or "
502 "escape these characters on the command line.  See the shell manual page "
503 "L<sh(1)> for details."
504 msgstr ""
505
506 #. type: =head1
507 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1224 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284 ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36 ../src/guestfs.pod: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
508 msgid "SEE ALSO"
509 msgstr ""
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:201
513 msgid ""
514 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
515 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
516 msgstr ""
517
518 #. type: =head1
519 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383 ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363 ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
520 msgid "AUTHOR"
521 msgstr ""
522
523 #. type: textblock
524 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365 ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294 ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
525 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
526 msgstr ""
527
528 #. type: =head1
529 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387 ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367 ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400 ../fish/guestfish.pod:1253 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318 ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61 ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55 ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod: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
530 msgid "COPYRIGHT"
531 msgstr ""
532
533 #. type: textblock
534 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396 ../resize/virt-resize.pod:577
535 msgid "Copyright (C) 2010-2011 Red Hat Inc."
536 msgstr ""
537
538 #. type: textblock
539 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391 ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371 ../fish/guestfish.pod:1258 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323 ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:780
540 msgid ""
541 "This program is free software; you can redistribute it and/or modify it "
542 "under the terms of the GNU General Public License as published by the Free "
543 "Software Foundation; either version 2 of the License, or (at your option) "
544 "any later version."
545 msgstr ""
546
547 #. type: textblock
548 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:785
549 msgid ""
550 "This program is distributed in the hope that it will be useful, but WITHOUT "
551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
552 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
553 "more details."
554 msgstr ""
555
556 #. type: textblock
557 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310 ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:790
558 msgid ""
559 "You should have received a copy of the GNU General Public License along with "
560 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
561 "Ave, Cambridge, MA 02139, USA."
562 msgstr ""
563
564 #. type: textblock
565 #: ../cat/virt-filesystems.pod:5
566 msgid ""
567 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
568 "virtual machine or disk image"
569 msgstr ""
570
571 #. type: verbatim
572 #: ../cat/virt-filesystems.pod:9
573 #, no-wrap
574 msgid ""
575 " virt-filesystems [--options] -d domname\n"
576 "\n"
577 msgstr ""
578
579 #. type: verbatim
580 #: ../cat/virt-filesystems.pod:11
581 #, no-wrap
582 msgid ""
583 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
584 "\n"
585 msgstr ""
586
587 #. type: textblock
588 #: ../cat/virt-filesystems.pod:15
589 msgid ""
590 "This tool allows you to discover filesystems, partitions, logical volumes, "
591 "and their sizes in a disk image or virtual machine.  It is a replacement for "
592 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
593 msgstr ""
594
595 #. type: textblock
596 #: ../cat/virt-filesystems.pod:20
597 msgid ""
598 "One use for this tool is from shell scripts to iterate over all filesystems "
599 "from a disk image:"
600 msgstr ""
601
602 #. type: verbatim
603 #: ../cat/virt-filesystems.pod:23
604 #, no-wrap
605 msgid ""
606 " for fs in $(virt-filesystems -a disk.img); do\n"
607 "   # ...\n"
608 " done\n"
609 "\n"
610 msgstr ""
611
612 #. type: textblock
613 #: ../cat/virt-filesystems.pod:27
614 msgid ""
615 "Another use is to list partitions before using another tool to modify those "
616 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
617 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
618 msgstr ""
619
620 #. type: textblock
621 #: ../cat/virt-filesystems.pod:32
622 msgid ""
623 "Various command line options control what this program displays.  You need "
624 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
625 "guest respectively.  If you just specify that then the program shows "
626 "filesystems found, one per line, like this:"
627 msgstr ""
628
629 #. type: verbatim
630 #: ../cat/virt-filesystems.pod:37
631 #, no-wrap
632 msgid ""
633 " $ virt-filesystems -a disk.img\n"
634 " /dev/sda1\n"
635 " /dev/vg_guest/lv_root\n"
636 "\n"
637 msgstr ""
638
639 #. type: textblock
640 #: ../cat/virt-filesystems.pod:41
641 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
642 msgstr ""
643
644 #. type: verbatim
645 #: ../cat/virt-filesystems.pod:44
646 #, no-wrap
647 msgid ""
648 " $ virt-filesystems -a disk.img -l\n"
649 " Name                   Type         VFS   Label  Size\n"
650 " /dev/sda1              filesystem   ext4  boot   524288000\n"
651 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
652 "\n"
653 msgstr ""
654
655 #. type: textblock
656 #: ../cat/virt-filesystems.pod:49
657 msgid ""
658 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
659 "shown as well:"
660 msgstr ""
661
662 #. type: verbatim
663 #: ../cat/virt-filesystems.pod:52
664 #, no-wrap
665 msgid ""
666 " $ virt-filesystems -a disk.img --extra\n"
667 " /dev/sda1\n"
668 " /dev/vg_guest/lv_root\n"
669 " /dev/vg_guest/lv_swap\n"
670 " /dev/vg_guest/lv_data\n"
671 "\n"
672 msgstr ""
673
674 #. type: textblock
675 #: ../cat/virt-filesystems.pod:58
676 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
677 msgstr ""
678
679 #. type: verbatim
680 #: ../cat/virt-filesystems.pod:60
681 #, no-wrap
682 msgid ""
683 " $ virt-filesystems -a disk.img --partitions\n"
684 " /dev/sda1\n"
685 " /dev/sda2\n"
686 "\n"
687 msgstr ""
688
689 #. type: textblock
690 #: ../cat/virt-filesystems.pod:64
691 msgid ""
692 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
693 "I<--physical-volumes>, I<--block-devices> to list those items."
694 msgstr ""
695
696 #. type: textblock
697 #: ../cat/virt-filesystems.pod:67
698 msgid ""
699 "You can use these options in combination as well (if you want a combination "
700 "including filesystems, you have to add I<--filesystems>).  Notice that some "
701 "items fall into several categories (eg. C</dev/sda1> might be both a "
702 "partition and a filesystem).  These items are listed several times.  To get "
703 "a list which includes absolutely everything that virt-filesystems knows "
704 "about, use the I<--all> option."
705 msgstr ""
706
707 #. type: textblock
708 #: ../cat/virt-filesystems.pod:74
709 msgid ""
710 "UUIDs (because they are quite long) are not shown by default.  Add the "
711 "I<--uuid> option to display device and filesystem UUIDs in the long output."
712 msgstr ""
713
714 #. type: textblock
715 #: ../cat/virt-filesystems.pod:78
716 msgid ""
717 "I<--all --long --uuid> is a useful combination to display all possible "
718 "information about everything."
719 msgstr ""
720
721 #. type: verbatim
722 #: ../cat/virt-filesystems.pod:81
723 #, no-wrap
724 msgid ""
725 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
726 " Name      Type       VFS  Label           Size Parent   UUID\n"
727 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
728 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
729 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
730 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
731 " /dev/sda  device     -    -               20G  -        -\n"
732 "\n"
733 msgstr ""
734
735 #. type: textblock
736 #: ../cat/virt-filesystems.pod:89
737 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
738 msgstr ""
739
740 #. type: =item
741 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
742 msgid "B<--all>"
743 msgstr ""
744
745 #. type: textblock
746 #: ../cat/virt-filesystems.pod:112
747 msgid ""
748 "Display everything.  This is currently the same as specifying these options: "
749 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
750 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
751 "be added to this list in future)."
752 msgstr ""
753
754 #. type: textblock
755 #: ../cat/virt-filesystems.pod:117
756 msgid "See also I<--long>."
757 msgstr ""
758
759 #. type: =item
760 #: ../cat/virt-filesystems.pod:119
761 msgid "B<--blkdevs>"
762 msgstr ""
763
764 #. type: =item
765 #: ../cat/virt-filesystems.pod:121
766 msgid "B<--block-devices>"
767 msgstr ""
768
769 #. type: textblock
770 #: ../cat/virt-filesystems.pod:123
771 msgid "Display block devices."
772 msgstr ""
773
774 #. type: =item
775 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
776 msgid "B<--csv>"
777 msgstr ""
778
779 #. type: textblock
780 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
781 msgid ""
782 "Write out the results in CSV format (comma-separated values).  This format "
783 "can be imported easily into databases and spreadsheets, but read L</NOTE "
784 "ABOUT CSV FORMAT> below."
785 msgstr ""
786
787 #. type: textblock
788 #: ../cat/virt-filesystems.pod:150
789 msgid ""
790 "When prompting for keys and passphrases, virt-filesystems normally turns "
791 "echoing off so you cannot see what you are typing.  If you are not worried "
792 "about Tempest attacks and there is no one else in the room you can specify "
793 "this flag to see what you are typing."
794 msgstr ""
795
796 #. type: =item
797 #: ../cat/virt-filesystems.pod:155
798 msgid "B<--extra>"
799 msgstr ""
800
801 #. type: textblock
802 #: ../cat/virt-filesystems.pod:157
803 msgid ""
804 "This causes filesystems that are not ordinary, mountable filesystems to be "
805 "displayed.  This category includes swapspace, and filesystems that are empty "
806 "or contain unknown data."
807 msgstr ""
808
809 #. type: textblock
810 #: ../cat/virt-filesystems.pod:161
811 msgid "This option implies I<--filesystems>."
812 msgstr ""
813
814 #. type: =item
815 #: ../cat/virt-filesystems.pod:163
816 msgid "B<--filesystems>"
817 msgstr ""
818
819 #. type: textblock
820 #: ../cat/virt-filesystems.pod:165
821 msgid ""
822 "Display mountable filesystems.  If no display option was selected then this "
823 "option is implied."
824 msgstr ""
825
826 #. type: textblock
827 #: ../cat/virt-filesystems.pod:168
828 msgid "With I<--extra>, non-mountable filesystems are shown too."
829 msgstr ""
830
831 #. type: verbatim
832 #: ../cat/virt-filesystems.pod:181
833 #, no-wrap
834 msgid ""
835 " virt-filesystems --format=raw -a disk.img\n"
836 "\n"
837 msgstr ""
838
839 #. type: verbatim
840 #: ../cat/virt-filesystems.pod:185
841 #, no-wrap
842 msgid ""
843 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
844 "\n"
845 msgstr ""
846
847 #. type: =item
848 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
849 msgid "B<-h>"
850 msgstr ""
851
852 #. type: =item
853 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
854 msgid "B<--human-readable>"
855 msgstr ""
856
857 #. type: textblock
858 #: ../cat/virt-filesystems.pod:198
859 msgid "In I<--long> mode, display sizes in human-readable format."
860 msgstr ""
861
862 #. type: =item
863 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
864 msgid "B<-l>"
865 msgstr ""
866
867 #. type: =item
868 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
869 msgid "B<--long>"
870 msgstr ""
871
872 #. type: textblock
873 #: ../cat/virt-filesystems.pod:209
874 msgid "Display extra columns of data (\"long format\")."
875 msgstr ""
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:211
879 msgid "A title row is added unless you also specify I<--no-title>."
880 msgstr ""
881
882 #. type: textblock
883 #: ../cat/virt-filesystems.pod:213
884 msgid ""
885 "The extra columns displayed depend on what output you select, and the "
886 "ordering of columns may change in future versions.  Use the title row, "
887 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
888 "programs."
889 msgstr ""
890
891 #. type: textblock
892 #: ../cat/virt-filesystems.pod:218
893 msgid ""
894 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
895 "default is to show raw numbers of I<bytes>."
896 msgstr ""
897
898 #. type: textblock
899 #: ../cat/virt-filesystems.pod:221
900 msgid "Use I<--uuid> to display UUIDs too."
901 msgstr ""
902
903 #. type: =item
904 #: ../cat/virt-filesystems.pod:223
905 msgid "B<--lvs>"
906 msgstr ""
907
908 #. type: =item
909 #: ../cat/virt-filesystems.pod:225
910 msgid "B<--logvols>"
911 msgstr ""
912
913 #. type: =item
914 #: ../cat/virt-filesystems.pod:227
915 msgid "B<--logical-volumes>"
916 msgstr ""
917
918 #. type: textblock
919 #: ../cat/virt-filesystems.pod:229
920 msgid ""
921 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
922 "of whether the LVs contain filesystems."
923 msgstr ""
924
925 #. type: =item
926 #: ../cat/virt-filesystems.pod:232
927 msgid "B<--no-title>"
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-filesystems.pod:234
932 msgid "In I<--long> mode, don't add a title row."
933 msgstr ""
934
935 #. type: textblock
936 #: ../cat/virt-filesystems.pod:236
937 msgid ""
938 "Note that the order of the columns is not fixed, and may change in future "
939 "versions of virt-filesystems, so using this option may give you unexpected "
940 "surprises."
941 msgstr ""
942
943 #. type: =item
944 #: ../cat/virt-filesystems.pod:240
945 msgid "B<--parts>"
946 msgstr ""
947
948 #. type: =item
949 #: ../cat/virt-filesystems.pod:242
950 msgid "B<--partitions>"
951 msgstr ""
952
953 #. type: textblock
954 #: ../cat/virt-filesystems.pod:244
955 msgid ""
956 "Display partitions.  In this mode, these are displayed irrespective of "
957 "whether the partitions contain filesystems."
958 msgstr ""
959
960 #. type: =item
961 #: ../cat/virt-filesystems.pod:247
962 msgid "B<--pvs>"
963 msgstr ""
964
965 #. type: =item
966 #: ../cat/virt-filesystems.pod:249
967 msgid "B<--physvols>"
968 msgstr ""
969
970 #. type: =item
971 #: ../cat/virt-filesystems.pod:251
972 msgid "B<--physical-volumes>"
973 msgstr ""
974
975 #. type: textblock
976 #: ../cat/virt-filesystems.pod:253
977 msgid "Display LVM physical volumes."
978 msgstr ""
979
980 #. type: =item
981 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
982 msgid "B<--uuid>"
983 msgstr ""
984
985 #. type: =item
986 #: ../cat/virt-filesystems.pod:257
987 msgid "B<--uuids>"
988 msgstr ""
989
990 #. type: textblock
991 #: ../cat/virt-filesystems.pod:259
992 msgid "In I<--long> mode, display UUIDs as well."
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-filesystems.pod:273
997 msgid "B<--vgs>"
998 msgstr ""
999
1000 #. type: =item
1001 #: ../cat/virt-filesystems.pod:275
1002 msgid "B<--volgroups>"
1003 msgstr ""
1004
1005 #. type: =item
1006 #: ../cat/virt-filesystems.pod:277
1007 msgid "B<--volume-groups>"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../cat/virt-filesystems.pod:279
1012 msgid "Display LVM volume groups."
1013 msgstr ""
1014
1015 #. type: =head1
1016 #: ../cat/virt-filesystems.pod:287
1017 msgid "COLUMNS"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../cat/virt-filesystems.pod:289
1022 msgid ""
1023 "Note that columns in the output are subject to reordering and change in "
1024 "future versions of this tool."
1025 msgstr ""
1026
1027 #. type: =item
1028 #: ../cat/virt-filesystems.pod:294
1029 msgid "B<Name>"
1030 msgstr ""
1031
1032 #. type: textblock
1033 #: ../cat/virt-filesystems.pod:296
1034 msgid "The filesystem, partition, block device or LVM name."
1035 msgstr ""
1036
1037 #. type: textblock
1038 #: ../cat/virt-filesystems.pod:298
1039 msgid ""
1040 "For device and partition names these are displayed as canonical libguestfs "
1041 "names, so that for example C</dev/sda2> is the second partition on the first "
1042 "device."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-filesystems.pod:302
1047 msgid ""
1048 "If the I<--long> option is B<not> specified, then only the name column is "
1049 "shown in the output."
1050 msgstr ""
1051
1052 #. type: =item
1053 #: ../cat/virt-filesystems.pod:305
1054 msgid "B<Type>"
1055 msgstr ""
1056
1057 #. type: textblock
1058 #: ../cat/virt-filesystems.pod:307
1059 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1060 msgstr ""
1061
1062 #. type: =item
1063 #: ../cat/virt-filesystems.pod:309
1064 msgid "B<VFS>"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:311
1069 msgid ""
1070 "If there is a filesystem, then this column displays the filesystem type if "
1071 "one could be detected, eg. C<ext4>."
1072 msgstr ""
1073
1074 #. type: =item
1075 #: ../cat/virt-filesystems.pod:314
1076 msgid "B<Label>"
1077 msgstr ""
1078
1079 #. type: textblock
1080 #: ../cat/virt-filesystems.pod:316
1081 msgid ""
1082 "If the object has a label (used for identifying and mounting filesystems) "
1083 "then this column contains the label."
1084 msgstr ""
1085
1086 #. type: =item
1087 #: ../cat/virt-filesystems.pod:319
1088 msgid "B<Size>"
1089 msgstr ""
1090
1091 #. type: textblock
1092 #: ../cat/virt-filesystems.pod:321
1093 msgid ""
1094 "The size of the object in bytes.  If the I<--human> option is used then the "
1095 "size is displayed in a human-readable form."
1096 msgstr ""
1097
1098 #. type: =item
1099 #: ../cat/virt-filesystems.pod:324
1100 msgid "B<Parent>"
1101 msgstr ""
1102
1103 #. type: textblock
1104 #: ../cat/virt-filesystems.pod:326
1105 msgid ""
1106 "The parent column records the parent relationship between objects.  For "
1107 "example, if the object is a partition, then this column contains the name of "
1108 "the containing device.  If the object is a logical volume, then this column "
1109 "is the name of the volume group."
1110 msgstr ""
1111
1112 #. type: =item
1113 #: ../cat/virt-filesystems.pod:331
1114 msgid "B<UUID>"
1115 msgstr ""
1116
1117 #. type: textblock
1118 #: ../cat/virt-filesystems.pod:333
1119 msgid ""
1120 "If the object has a UUID (used for identifying and mounting filesystems and "
1121 "block devices) then this column contains the UUID as a string."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:337
1126 msgid "The UUID is only displayed if the I<--uuid> option is given."
1127 msgstr ""
1128
1129 #. type: =head1
1130 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1131 msgid "NOTE ABOUT CSV FORMAT"
1132 msgstr ""
1133
1134 #. type: textblock
1135 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1136 msgid ""
1137 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1138 "should be easy to parse, but it is definitely not easy to parse."
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1143 msgid ""
1144 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1145 "reliably.  This example has two columns:"
1146 msgstr ""
1147
1148 #. type: verbatim
1149 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1150 #, no-wrap
1151 msgid ""
1152 " \"foo,bar\",baz\n"
1153 "\n"
1154 msgstr ""
1155
1156 #. type: textblock
1157 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1158 msgid ""
1159 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1160 "reliably.  This example has one row:"
1161 msgstr ""
1162
1163 #. type: verbatim
1164 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1165 #, no-wrap
1166 msgid ""
1167 " \"foo\n"
1168 " bar\",baz\n"
1169 "\n"
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1174 msgid ""
1175 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1176 "packaged in major Linux distributions)."
1177 msgstr ""
1178
1179 #. type: textblock
1180 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1181 msgid ""
1182 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1183 "or Python's built-in csv library)."
1184 msgstr ""
1185
1186 #. type: textblock
1187 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1188 msgid "Most spreadsheets and databases can import CSV directly."
1189 msgstr ""
1190
1191 #. type: textblock
1192 #: ../cat/virt-filesystems.pod:374
1193 msgid ""
1194 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1195 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1196 "L<http://libguestfs.org/>."
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1201 msgid "Copyright (C) 2010 Red Hat Inc."
1202 msgstr ""
1203
1204 #. type: textblock
1205 #: ../cat/virt-ls.pod:5
1206 msgid "virt-ls - List files in a virtual machine"
1207 msgstr ""
1208
1209 #. type: verbatim
1210 #: ../cat/virt-ls.pod:9
1211 #, no-wrap
1212 msgid ""
1213 " virt-ls [--options] -d domname directory [directory ...]\n"
1214 "\n"
1215 msgstr ""
1216
1217 #. type: verbatim
1218 #: ../cat/virt-ls.pod:11
1219 #, no-wrap
1220 msgid ""
1221 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1222 "...]\n"
1223 "\n"
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1228 msgid "Old style:"
1229 msgstr ""
1230
1231 #. type: verbatim
1232 #: ../cat/virt-ls.pod:15
1233 #, no-wrap
1234 msgid ""
1235 " virt-ls [--options] domname directory\n"
1236 "\n"
1237 msgstr ""
1238
1239 #. type: verbatim
1240 #: ../cat/virt-ls.pod:17
1241 #, no-wrap
1242 msgid ""
1243 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1244 "\n"
1245 msgstr ""
1246
1247 #. type: textblock
1248 #: ../cat/virt-ls.pod:21
1249 msgid ""
1250 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1251 "more from a virtual machine or disk image."
1252 msgstr ""
1253
1254 #. type: textblock
1255 #: ../cat/virt-ls.pod:24
1256 msgid ""
1257 "Multiple directory names can be given, in which case the output from each is "
1258 "concatenated."
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../cat/virt-ls.pod:27
1263 msgid ""
1264 "To list directories from a libvirt guest use the I<-d> option to specify the "
1265 "name of the guest.  For a disk image, use the I<-a> option."
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../cat/virt-ls.pod:31
1270 msgid ""
1271 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1272 "may need to use L<guestfish(1)>, or write a program directly to the "
1273 "L<guestfs(3)> API."
1274 msgstr ""
1275
1276 #. type: textblock
1277 #: ../cat/virt-ls.pod:37
1278 msgid "Get a list of all files and directories in a virtual machine:"
1279 msgstr ""
1280
1281 #. type: verbatim
1282 #: ../cat/virt-ls.pod:39
1283 #, no-wrap
1284 msgid ""
1285 " virt-ls -R -d guest /\n"
1286 "\n"
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-ls.pod:41
1291 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1292 msgstr ""
1293
1294 #. type: verbatim
1295 #: ../cat/virt-ls.pod:43
1296 #, no-wrap
1297 msgid ""
1298 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1299 "\n"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../cat/virt-ls.pod:45
1304 msgid "List all public-writable directories in a Linux virtual machine:"
1305 msgstr ""
1306
1307 #. type: verbatim
1308 #: ../cat/virt-ls.pod:47
1309 #, no-wrap
1310 msgid ""
1311 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1312 "\n"
1313 msgstr ""
1314
1315 #. type: textblock
1316 #: ../cat/virt-ls.pod:49
1317 msgid "List all Unix domain sockets in a Linux virtual machine:"
1318 msgstr ""
1319
1320 #. type: verbatim
1321 #: ../cat/virt-ls.pod:51
1322 #, no-wrap
1323 msgid ""
1324 " virt-ls -lR -d guest / | grep '^s'\n"
1325 "\n"
1326 msgstr ""
1327
1328 #. type: textblock
1329 #: ../cat/virt-ls.pod:53
1330 msgid "List all regular files with filenames ending in '.png':"
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-ls.pod:55
1335 #, no-wrap
1336 msgid ""
1337 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1338 "\n"
1339 msgstr ""
1340
1341 #. type: textblock
1342 #: ../cat/virt-ls.pod:57
1343 msgid "To display files larger than 10MB in home directories:"
1344 msgstr ""
1345
1346 #. type: verbatim
1347 #: ../cat/virt-ls.pod:59
1348 #, no-wrap
1349 msgid ""
1350 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1351 "\n"
1352 msgstr ""
1353
1354 #. type: textblock
1355 #: ../cat/virt-ls.pod:61
1356 msgid "Find everything modified in the last 7 days:"
1357 msgstr ""
1358
1359 #. type: verbatim
1360 #: ../cat/virt-ls.pod:63
1361 #, no-wrap
1362 msgid ""
1363 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1364 "\n"
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../cat/virt-ls.pod:65
1369 msgid "Find regular files modified in the last 24 hours:"
1370 msgstr ""
1371
1372 #. type: verbatim
1373 #: ../cat/virt-ls.pod:67
1374 #, no-wrap
1375 msgid ""
1376 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1377 "\n"
1378 msgstr ""
1379
1380 #. type: =head2
1381 #: ../cat/virt-ls.pod:69
1382 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1383 msgstr ""
1384
1385 #. type: textblock
1386 #: ../cat/virt-ls.pod:71
1387 msgid ""
1388 "Find the differences between files in a guest and an earlier snapshot of the "
1389 "same guest."
1390 msgstr ""
1391
1392 #. type: verbatim
1393 #: ../cat/virt-ls.pod:74
1394 #, no-wrap
1395 msgid ""
1396 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1397 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1398 " diff -u old new | less\n"
1399 "\n"
1400 msgstr ""
1401
1402 #. type: textblock
1403 #: ../cat/virt-ls.pod:78
1404 msgid ""
1405 "The commands above won't find files where the content has changed but the "
1406 "metadata (eg. file size and modification date) is the same.  To do that, you "
1407 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1408 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1409 "of every regular file in the virtual machine."
1410 msgstr ""
1411
1412 #. type: =head1
1413 #: ../cat/virt-ls.pod:84
1414 msgid "OUTPUT MODES"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-ls.pod:86
1419 msgid ""
1420 "C<virt-ls> has four output modes, controlled by different combinations of "
1421 "the I<-l> and I<-R> options."
1422 msgstr ""
1423
1424 #. type: =head2
1425 #: ../cat/virt-ls.pod:89
1426 msgid "SIMPLE LISTING"
1427 msgstr ""
1428
1429 #. type: textblock
1430 #: ../cat/virt-ls.pod:91
1431 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1432 msgstr ""
1433
1434 #. type: verbatim
1435 #: ../cat/virt-ls.pod:93
1436 #, no-wrap
1437 msgid ""
1438 " $ virt-ls -d guest /\n"
1439 " bin\n"
1440 " boot\n"
1441 " [etc.]\n"
1442 "\n"
1443 msgstr ""
1444
1445 #. type: =head2
1446 #: ../cat/virt-ls.pod:98
1447 msgid "LONG LISTING"
1448 msgstr ""
1449
1450 #. type: textblock
1451 #: ../cat/virt-ls.pod:100
1452 msgid ""
1453 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1454 "(more specifically, like the C<guestfs_ll> function)."
1455 msgstr ""
1456
1457 #. type: verbatim
1458 #: ../cat/virt-ls.pod:103
1459 #, no-wrap
1460 msgid ""
1461 " $ virt-ls -l -d guest /\n"
1462 " total 204\n"
1463 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1464 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1465 " [etc.]\n"
1466 "\n"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-ls.pod:109
1471 msgid ""
1472 "Note that while this is useful for displaying a directory, do not try "
1473 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1474 "instead."
1475 msgstr ""
1476
1477 #. type: =head2
1478 #: ../cat/virt-ls.pod:113
1479 msgid "RECURSIVE LISTING"
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-ls.pod:115
1484 msgid ""
1485 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1486 "and directories recursively:"
1487 msgstr ""
1488
1489 #. type: verbatim
1490 #: ../cat/virt-ls.pod:118
1491 #, no-wrap
1492 msgid ""
1493 " $ virt-ls -R -d guest /tmp\n"
1494 " foo\n"
1495 " foo/bar\n"
1496 " [etc.]\n"
1497 "\n"
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-ls.pod:123
1502 msgid ""
1503 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1504 "converts C<\\0> characters to C<\\n>."
1505 msgstr ""
1506
1507 #. type: =head2
1508 #: ../cat/virt-ls.pod:126
1509 msgid "RECURSIVE LONG LISTING"
1510 msgstr ""
1511
1512 #. type: textblock
1513 #: ../cat/virt-ls.pod:128
1514 msgid ""
1515 "Using I<-lR> options together changes the output to display directories "
1516 "recursively, with file stats, and optionally other features such as "
1517 "checksums and extended attributes."
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-ls.pod:132
1522 msgid ""
1523 "Most of the interesting features of C<virt-ls> are only available when using "
1524 "I<-lR> mode."
1525 msgstr ""
1526
1527 #. type: textblock
1528 #: ../cat/virt-ls.pod:135
1529 msgid ""
1530 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1531 "you cannot use the output in another program (because filenames can contain "
1532 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1533 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1534 "on you by creating filenames with embedded newline characters.  To B<safely> "
1535 "parse the output in another program, use the I<--csv> (Comma-Separated "
1536 "Values) option."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../cat/virt-ls.pod:143
1541 msgid ""
1542 "Note that this output format is completely unrelated to the C<ls -lR> "
1543 "command."
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../cat/virt-ls.pod:146
1548 #, no-wrap
1549 msgid ""
1550 " $ virt-ls -lR -d guest /bin\n"
1551 " d 0555       4096 /bin\n"
1552 " - 0755        123 /bin/alsaunmute\n"
1553 " - 0755      28328 /bin/arch\n"
1554 " l 0777          4 /bin/awk -> gawk\n"
1555 " - 0755      27216 /bin/basename\n"
1556 " - 0755     943360 /bin/bash\n"
1557 " [etc.]\n"
1558 "\n"
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-ls.pod:155
1563 msgid "These basic fields are always shown:"
1564 msgstr ""
1565
1566 #. type: =item
1567 #: ../cat/virt-ls.pod:159
1568 msgid "type"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-ls.pod:161
1573 msgid ""
1574 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1575 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1576 "link), C<s> (socket) or C<u> (unknown)."
1577 msgstr ""
1578
1579 #. type: =item
1580 #: ../cat/virt-ls.pod:171
1581 msgid "permissions"
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-ls.pod:173
1586 msgid "The Unix permissions, displayed as a 4 digit octal number."
1587 msgstr ""
1588
1589 #. type: =item
1590 #: ../cat/virt-ls.pod:175
1591 msgid "size"
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-ls.pod:177
1596 msgid ""
1597 "The size of the file.  This is shown in bytes unless I<-h> or "
1598 "I<--human-readable> option is given, in which case this is shown as a "
1599 "human-readable number."
1600 msgstr ""
1601
1602 #. type: =head2
1603 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4183
1604 msgid "path"
1605 msgstr ""
1606
1607 #. type: textblock
1608 #: ../cat/virt-ls.pod:183
1609 msgid "The full path of the file or directory."
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-ls.pod:185
1614 msgid "link"
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-ls.pod:187
1619 msgid "For symbolic links only, the link target."
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-ls.pod:191
1624 msgid ""
1625 "In I<-lR> mode, additional command line options enable the display of more "
1626 "fields."
1627 msgstr ""
1628
1629 #. type: textblock
1630 #: ../cat/virt-ls.pod:194
1631 msgid ""
1632 "With the I<--uids> flag, these additional fields are displayed before the "
1633 "path:"
1634 msgstr ""
1635
1636 #. type: =item
1637 #: ../cat/virt-ls.pod:199
1638 msgid "uid"
1639 msgstr ""
1640
1641 #. type: =item
1642 #: ../cat/virt-ls.pod:201
1643 msgid "gid"
1644 msgstr ""
1645
1646 #. type: textblock
1647 #: ../cat/virt-ls.pod:203
1648 msgid ""
1649 "The UID and GID of the owner of the file (displayed numerically).  Note "
1650 "these only make sense in the context of a Unix-like guest."
1651 msgstr ""
1652
1653 #. type: textblock
1654 #: ../cat/virt-ls.pod:208
1655 msgid "With the I<--times> flag, these additional fields are displayed:"
1656 msgstr ""
1657
1658 #. type: =item
1659 #: ../cat/virt-ls.pod:212
1660 msgid "atime"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:214
1665 msgid "The time of last access."
1666 msgstr ""
1667
1668 #. type: =item
1669 #: ../cat/virt-ls.pod:216
1670 msgid "mtime"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-ls.pod:218
1675 msgid "The time of last modification."
1676 msgstr ""
1677
1678 #. type: =item
1679 #: ../cat/virt-ls.pod:220
1680 msgid "ctime"
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../cat/virt-ls.pod:222
1685 msgid "The time of last status change."
1686 msgstr ""
1687
1688 #. type: textblock
1689 #: ../cat/virt-ls.pod:226
1690 msgid ""
1691 "The time fields are displayed as string dates and times, unless one of the "
1692 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../cat/virt-ls.pod:229
1697 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1698 msgstr ""
1699
1700 #. type: =item
1701 #: ../cat/virt-ls.pod:233
1702 msgid "device"
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../cat/virt-ls.pod:235
1707 msgid ""
1708 "The device containing the file (displayed as major:minor).  This may not "
1709 "match devices as known to the guest."
1710 msgstr ""
1711
1712 #. type: =item
1713 #: ../cat/virt-ls.pod:238
1714 msgid "inode"
1715 msgstr ""
1716
1717 #. type: textblock
1718 #: ../cat/virt-ls.pod:240
1719 msgid "The inode number."
1720 msgstr ""
1721
1722 #. type: =item
1723 #: ../cat/virt-ls.pod:242
1724 msgid "nlink"
1725 msgstr ""
1726
1727 #. type: textblock
1728 #: ../cat/virt-ls.pod:244
1729 msgid "The number of hard links."
1730 msgstr ""
1731
1732 #. type: =item
1733 #: ../cat/virt-ls.pod:246
1734 msgid "rdev"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../cat/virt-ls.pod:248
1739 msgid "For block and char special files, the device (displayed as major:minor)."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-ls.pod:251
1744 msgid "blocks"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-ls.pod:253
1749 msgid "The number of 512 byte blocks allocated to the file."
1750 msgstr ""
1751
1752 #. type: textblock
1753 #: ../cat/virt-ls.pod:257
1754 msgid ""
1755 "With the I<--checksum> flag, the checksum of the file contents is shown "
1756 "(only for regular files).  Computing file checksums can take a considerable "
1757 "amount of time."
1758 msgstr ""
1759
1760 #. type: =item
1761 #: ../cat/virt-ls.pod:280
1762 msgid "B<--checksum>"
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-ls.pod:282
1767 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
1768 msgstr ""
1769
1770 #. type: textblock
1771 #: ../cat/virt-ls.pod:284
1772 msgid ""
1773 "Display checksum over file contents for regular files.  With no argument, "
1774 "this defaults to using I<md5>.  Using an argument, you can select the "
1775 "checksum type to use."
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
1780 msgid ""
1781 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
1782 "LISTING> above."
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-ls.pod:316
1787 msgid ""
1788 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
1789 "so you cannot see what you are typing.  If you are not worried about Tempest "
1790 "attacks and there is no one else in the room you can specify this flag to "
1791 "see what you are typing."
1792 msgstr ""
1793
1794 #. type: =item
1795 #: ../cat/virt-ls.pod:321
1796 msgid "B<--extra-stats>"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:323
1801 msgid "Display extra stats."
1802 msgstr ""
1803
1804 #. type: verbatim
1805 #: ../cat/virt-ls.pod:339
1806 #, no-wrap
1807 msgid ""
1808 " virt-ls --format=raw -a disk.img /dir\n"
1809 "\n"
1810 msgstr ""
1811
1812 #. type: verbatim
1813 #: ../cat/virt-ls.pod:343
1814 #, no-wrap
1815 msgid ""
1816 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
1817 "\n"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-ls.pod:356
1822 msgid "Display file sizes in human-readable format."
1823 msgstr ""
1824
1825 #. type: =item
1826 #: ../cat/virt-ls.pod:370
1827 msgid "B<-R>"
1828 msgstr ""
1829
1830 #. type: =item
1831 #: ../cat/virt-ls.pod:372
1832 msgid "B<--recursive>"
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../cat/virt-ls.pod:374
1837 msgid ""
1838 "Select the mode.  With neither of these options, C<virt-ls> produces a "
1839 "simple, flat list of the files in the named directory.  See L</SIMPLE "
1840 "LISTING>."
1841 msgstr ""
1842
1843 #. type: textblock
1844 #: ../cat/virt-ls.pod:378
1845 msgid ""
1846 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
1847 "L</LONG LISTING>."
1848 msgstr ""
1849
1850 #. type: textblock
1851 #: ../cat/virt-ls.pod:381
1852 msgid ""
1853 "C<virt-ls -R> produces a recursive list of files starting at the named "
1854 "directory.  See L</RECURSIVE LISTING>."
1855 msgstr ""
1856
1857 #. type: textblock
1858 #: ../cat/virt-ls.pod:384
1859 msgid ""
1860 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
1861 "parsed.  See L</RECURSIVE LONG LISTING>."
1862 msgstr ""
1863
1864 #. type: =item
1865 #: ../cat/virt-ls.pod:387
1866 msgid "B<--times>"
1867 msgstr ""
1868
1869 #. type: textblock
1870 #: ../cat/virt-ls.pod:389
1871 msgid "Display time fields."
1872 msgstr ""
1873
1874 #. type: =item
1875 #: ../cat/virt-ls.pod:394
1876 msgid "B<--time-days>"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:396
1881 msgid "Display time fields as days before now (negative if in the future)."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:398
1886 msgid ""
1887 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
1888 "of the file is between 0 and 86399 seconds."
1889 msgstr ""
1890
1891 #. type: =item
1892 #: ../cat/virt-ls.pod:404
1893 msgid "B<--time-relative>"
1894 msgstr ""
1895
1896 #. type: textblock
1897 #: ../cat/virt-ls.pod:406
1898 msgid "Display time fields as seconds before now (negative if in the future)."
1899 msgstr ""
1900
1901 #. type: =item
1902 #: ../cat/virt-ls.pod:411
1903 msgid "B<--time-t>"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:413
1908 msgid "Display time fields as seconds since the Unix epoch."
1909 msgstr ""
1910
1911 #. type: =item
1912 #: ../cat/virt-ls.pod:418
1913 msgid "B<--uids>"
1914 msgstr ""
1915
1916 #. type: textblock
1917 #: ../cat/virt-ls.pod:420
1918 msgid "Display UID and GID fields."
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../cat/virt-ls.pod:445
1923 msgid "Previous versions of virt-ls allowed you to write either:"
1924 msgstr ""
1925
1926 #. type: verbatim
1927 #: ../cat/virt-ls.pod:447
1928 #, no-wrap
1929 msgid ""
1930 " virt-ls disk.img [disk.img ...] /dir\n"
1931 "\n"
1932 msgstr ""
1933
1934 #. type: verbatim
1935 #: ../cat/virt-ls.pod:451
1936 #, no-wrap
1937 msgid ""
1938 " virt-ls guestname /dir\n"
1939 "\n"
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../cat/virt-ls.pod:492
1944 msgid ""
1945 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
1946 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
1947 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1948 msgstr ""
1949
1950 #. type: textblock
1951 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369 ../rescue/virt-rescue.pod:298
1952 msgid "Copyright (C) 2009-2011 Red Hat Inc."
1953 msgstr ""
1954
1955 #. type: textblock
1956 #: ../df/virt-df.pod:5
1957 msgid "virt-df - Display free space on virtual filesystems"
1958 msgstr ""
1959
1960 #. type: verbatim
1961 #: ../df/virt-df.pod:9
1962 #, no-wrap
1963 msgid ""
1964 " virt-df [--options]\n"
1965 "\n"
1966 msgstr ""
1967
1968 #. type: verbatim
1969 #: ../df/virt-df.pod:11
1970 #, no-wrap
1971 msgid ""
1972 " virt-df [--options] -d domname\n"
1973 "\n"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../df/virt-df.pod:13
1978 #, no-wrap
1979 msgid ""
1980 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: verbatim
1985 #: ../df/virt-df.pod:17
1986 #, no-wrap
1987 msgid ""
1988 " virt-df [--options] domname\n"
1989 "\n"
1990 msgstr ""
1991
1992 #. type: verbatim
1993 #: ../df/virt-df.pod:19
1994 #, no-wrap
1995 msgid ""
1996 " virt-df [--options] disk.img [disk.img ...]\n"
1997 "\n"
1998 msgstr ""
1999
2000 #. type: textblock
2001 #: ../df/virt-df.pod:23
2002 msgid ""
2003 "C<virt-df> is a command line tool to display free space on virtual machine "
2004 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2005 "allocated to a virtual machine, but can look inside disk images to see how "
2006 "much space is really being used."
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../df/virt-df.pod:28
2011 msgid ""
2012 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2013 "to get a list of all active and inactive guests, and performs a C<df>-type "
2014 "operation on each one in turn, printing out the results."
2015 msgstr ""
2016
2017 #. type: textblock
2018 #: ../df/virt-df.pod:32
2019 msgid ""
2020 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
2021 "C<df>-type operation on either the single named libvirt domain, or on the "
2022 "disk image(s) listed on the command line (which must all belong to a single "
2023 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
2024 "single guest>.  If you want to run on multiple guests, then you have to "
2025 "invoke C<virt-df> multiple times."
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../df/virt-df.pod:39
2030 msgid ""
2031 "Use the I<--csv> option to get a format which can be easily parsed by other "
2032 "programs.  Other options are similar to the standard L<df(1)> command."
2033 msgstr ""
2034
2035 #. type: textblock
2036 #: ../df/virt-df.pod:45
2037 msgid ""
2038 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2039 "output human-readable:"
2040 msgstr ""
2041
2042 #. type: verbatim
2043 #: ../df/virt-df.pod:48
2044 #, no-wrap
2045 msgid ""
2046 " # virt-df -d F14x64 -h\n"
2047 " Filesystem                       Size     Used  Available  Use%\n"
2048 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2049 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2050 "\n"
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../df/virt-df.pod:53
2055 msgid "Show disk usage for a disk image file called C<test.img>:"
2056 msgstr ""
2057
2058 #. type: verbatim
2059 #: ../df/virt-df.pod:55
2060 #, no-wrap
2061 msgid ""
2062 " $ virt-df -a test1.img\n"
2063 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2064 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2065 "\n"
2066 msgstr ""
2067
2068 #. type: verbatim
2069 #: ../df/virt-df.pod:112
2070 #, no-wrap
2071 msgid ""
2072 " virt-df --format=raw -a disk.img\n"
2073 "\n"
2074 msgstr ""
2075
2076 #. type: verbatim
2077 #: ../df/virt-df.pod:116
2078 #, no-wrap
2079 msgid ""
2080 " virt-df --format=raw -a disk.img --format -a another.img\n"
2081 "\n"
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../df/virt-df.pod:129
2086 msgid "Print sizes in human-readable format."
2087 msgstr ""
2088
2089 #. type: textblock
2090 #: ../df/virt-df.pod:131
2091 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2092 msgstr ""
2093
2094 #. type: =item
2095 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2096 msgid "B<-i>"
2097 msgstr ""
2098
2099 #. type: =item
2100 #: ../df/virt-df.pod:135
2101 msgid "B<--inodes>"
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../df/virt-df.pod:137
2106 msgid "Print inodes instead of blocks."
2107 msgstr ""
2108
2109 #. type: =item
2110 #: ../df/virt-df.pod:139
2111 msgid "B<--one-per-guest>"
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../df/virt-df.pod:141
2116 msgid ""
2117 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2118 "disks from several guests to a single libguestfs appliance."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../df/virt-df.pod:144
2123 msgid "You might use this option in the following circumstances:"
2124 msgstr ""
2125
2126 #. type: =item
2127 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123 ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137 ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145 ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947 ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064 ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077 ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112 ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod: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
2128 msgid "*"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../df/virt-df.pod:150
2133 msgid ""
2134 "If you think an untrusted guest might actively try to exploit the libguestfs "
2135 "appliance kernel, then this prevents one guest from interfering with the "
2136 "stats printed for another guest."
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../df/virt-df.pod:156
2141 msgid ""
2142 "If the kernel has a bug which stops it from accessing a filesystem in one "
2143 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2144 "and report stats for further guests."
2145 msgstr ""
2146
2147 #. type: textblock
2148 #: ../df/virt-df.pod:165
2149 msgid ""
2150 "Print UUIDs instead of names.  This is useful for following a guest even "
2151 "when the guest is migrated or renamed, or when two guests happen to have the "
2152 "same name."
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../df/virt-df.pod:169
2157 msgid ""
2158 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2159 "images, we still print the disk image name even when this option is "
2160 "specified."
2161 msgstr ""
2162
2163 #. type: textblock
2164 #: ../df/virt-df.pod:224
2165 msgid ""
2166 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
2167 "L<http://libguestfs.org/>."
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../edit/virt-edit.pod:5
2172 msgid "virt-edit - Edit a file in a virtual machine"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../edit/virt-edit.pod:9
2177 #, no-wrap
2178 msgid ""
2179 " virt-edit [--options] -d domname file [file ...]\n"
2180 "\n"
2181 msgstr ""
2182
2183 #. type: verbatim
2184 #: ../edit/virt-edit.pod:11
2185 #, no-wrap
2186 msgid ""
2187 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: verbatim
2192 #: ../edit/virt-edit.pod:13
2193 #, no-wrap
2194 msgid ""
2195 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2196 "\n"
2197 msgstr ""
2198
2199 #. type: verbatim
2200 #: ../edit/virt-edit.pod:17
2201 #, no-wrap
2202 msgid ""
2203 " virt-edit domname file\n"
2204 "\n"
2205 msgstr ""
2206
2207 #. type: verbatim
2208 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2209 #, no-wrap
2210 msgid ""
2211 " virt-edit disk.img [disk.img ...] file\n"
2212 "\n"
2213 msgstr ""
2214
2215 #. type: =head1
2216 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2217 msgid "WARNING"
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../edit/virt-edit.pod:23
2222 msgid ""
2223 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2224 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2225 "doing this, but doesn't catch all cases."
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../edit/virt-edit.pod:29
2230 msgid ""
2231 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2232 "exists in the named virtual machine (or disk image)."
2233 msgstr ""
2234
2235 #. type: textblock
2236 #: ../edit/virt-edit.pod:32
2237 msgid ""
2238 "Multiple filenames can be given, in which case they are each edited in "
2239 "turn.  Each filename must be a full path, starting at the root directory "
2240 "(starting with '/')."
2241 msgstr ""
2242
2243 #. type: textblock
2244 #: ../edit/virt-edit.pod:36
2245 msgid "If you want to just view a file, use L<virt-cat(1)>."
2246 msgstr ""
2247
2248 #. type: textblock
2249 #: ../edit/virt-edit.pod:38
2250 msgid ""
2251 "For more complex cases you should look at the L<guestfish(1)> tool (see "
2252 "L</USING GUESTFISH> below)."
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../edit/virt-edit.pod:41
2257 msgid ""
2258 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2259 "that and much more."
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../edit/virt-edit.pod:46
2264 msgid "Edit the named files interactively:"
2265 msgstr ""
2266
2267 #. type: verbatim
2268 #: ../edit/virt-edit.pod:48
2269 #, no-wrap
2270 msgid ""
2271 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2272 "\n"
2273 msgstr ""
2274
2275 #. type: verbatim
2276 #: ../edit/virt-edit.pod:50
2277 #, no-wrap
2278 msgid ""
2279 " virt-edit -d mydomain /etc/passwd\n"
2280 "\n"
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../edit/virt-edit.pod:52
2285 msgid "For Windows guests, some Windows paths are understood:"
2286 msgstr ""
2287
2288 #. type: verbatim
2289 #: ../edit/virt-edit.pod:54
2290 #, no-wrap
2291 msgid ""
2292 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2293 "\n"
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../edit/virt-edit.pod:56
2298 msgid ""
2299 "If Perl is installed, you can also edit files non-interactively (see "
2300 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
2301 msgstr ""
2302
2303 #. type: verbatim
2304 #: ../edit/virt-edit.pod:60
2305 #, no-wrap
2306 msgid ""
2307 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2308 "\n"
2309 msgstr ""
2310
2311 #. type: =item
2312 #: ../edit/virt-edit.pod:81
2313 msgid "B<-b> extension"
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../edit/virt-edit.pod:83
2318 msgid "B<--backup> extension"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../edit/virt-edit.pod:85
2323 msgid ""
2324 "Create a backup of the original file I<in the guest disk image>.  The backup "
2325 "has the original filename with C<extension> added."
2326 msgstr ""
2327
2328 #. type: textblock
2329 #: ../edit/virt-edit.pod:88
2330 msgid ""
2331 "Usually the first character of C<extension> would be a dot C<.> so you would "
2332 "write:"
2333 msgstr ""
2334
2335 #. type: verbatim
2336 #: ../edit/virt-edit.pod:91
2337 #, no-wrap
2338 msgid ""
2339 " virt-edit -b .orig [etc]\n"
2340 "\n"
2341 msgstr ""
2342
2343 #. type: textblock
2344 #: ../edit/virt-edit.pod:93
2345 msgid "By default, no backup file is made."
2346 msgstr ""
2347
2348 #. type: =item
2349 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2350 msgid "B<-c URI>"
2351 msgstr ""
2352
2353 #. type: =item
2354 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2355 msgid "B<--connect URI>"
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
2360 msgid ""
2361 "If you specify guest block devices directly, then libvirt is not used at "
2362 "all."
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../edit/virt-edit.pod:114
2367 msgid ""
2368 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2369 "off so you cannot see what you are typing.  If you are not worried about "
2370 "Tempest attacks and there is no one else in the room you can specify this "
2371 "flag to see what you are typing."
2372 msgstr ""
2373
2374 #. type: =item
2375 #: ../edit/virt-edit.pod:119
2376 msgid "B<-e> EXPR"
2377 msgstr ""
2378
2379 #. type: =item
2380 #: ../edit/virt-edit.pod:121
2381 msgid "B<--expr> EXPR"
2382 msgstr ""
2383
2384 #. type: textblock
2385 #: ../edit/virt-edit.pod:123
2386 msgid ""
2387 "Instead of launching the external editor, non-interactively apply the Perl "
2388 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2389 "EDITING> below."
2390 msgstr ""
2391
2392 #. type: textblock
2393 #: ../edit/virt-edit.pod:127
2394 msgid ""
2395 "Be careful to properly quote the expression to prevent it from being altered "
2396 "by the shell."
2397 msgstr ""
2398
2399 #. type: textblock
2400 #: ../edit/virt-edit.pod:130
2401 msgid "Note that this option is only available when Perl 5 is installed."
2402 msgstr ""
2403
2404 #. type: =item
2405 #: ../edit/virt-edit.pod:132
2406 msgid "B<--format> raw|qcow2|..."
2407 msgstr ""
2408
2409 #. type: verbatim
2410 #: ../edit/virt-edit.pod:143
2411 #, no-wrap
2412 msgid ""
2413 " virt-edit --format=raw -a disk.img file\n"
2414 "\n"
2415 msgstr ""
2416
2417 #. type: verbatim
2418 #: ../edit/virt-edit.pod:147
2419 #, no-wrap
2420 msgid ""
2421 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2422 "\n"
2423 msgstr ""
2424
2425 #. type: textblock
2426 #: ../edit/virt-edit.pod:181
2427 msgid "Previous versions of virt-edit allowed you to write either:"
2428 msgstr ""
2429
2430 #. type: verbatim
2431 #: ../edit/virt-edit.pod:187
2432 #, no-wrap
2433 msgid ""
2434 " virt-edit guestname file\n"
2435 "\n"
2436 msgstr ""
2437
2438 #. type: =head1
2439 #: ../edit/virt-edit.pod:195
2440 msgid "NON-INTERACTIVE EDITING"
2441 msgstr ""
2442
2443 #. type: textblock
2444 #: ../edit/virt-edit.pod:197
2445 msgid ""
2446 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2447 "administrator can interactively edit the file."
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../edit/virt-edit.pod:200
2452 msgid ""
2453 "There are two ways also to use C<virt-edit> from scripts in order to make "
2454 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2455 "like this, it's less error-prone to write scripts directly using the "
2456 "libguestfs API and Augeas for configuration file editing.)"
2457 msgstr ""
2458
2459 #. type: textblock
2460 #: ../edit/virt-edit.pod:206
2461 msgid ""
2462 "The first method is to temporarily set C<$EDITOR> to any script or program "
2463 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2464 "update C<tmpfile> in place however it likes."
2465 msgstr ""
2466
2467 #. type: textblock
2468 #: ../edit/virt-edit.pod:210
2469 msgid ""
2470 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2471 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2472 "instances of C<foo> with C<bar> in a file:"
2473 msgstr ""
2474
2475 #. type: verbatim
2476 #: ../edit/virt-edit.pod:214
2477 #, no-wrap
2478 msgid ""
2479 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2480 "\n"
2481 msgstr ""
2482
2483 #. type: textblock
2484 #: ../edit/virt-edit.pod:216
2485 msgid ""
2486 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2487 "For example to delete root's password you could do:"
2488 msgstr ""
2489
2490 #. type: verbatim
2491 #: ../edit/virt-edit.pod:219
2492 #, no-wrap
2493 msgid ""
2494 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2495 "\n"
2496 msgstr ""
2497
2498 #. type: textblock
2499 #: ../edit/virt-edit.pod:221
2500 msgid ""
2501 "What really happens is that the snippet is evaluated as a Perl expression "
2502 "for each line of the file.  The line, including the final C<\\n>, is passed "
2503 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../edit/virt-edit.pod:226
2508 msgid ""
2509 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2510 "C<apache> user account from the password file you can do:"
2511 msgstr ""
2512
2513 #. type: verbatim
2514 #: ../edit/virt-edit.pod:229
2515 #, no-wrap
2516 msgid ""
2517 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2518 "\n"
2519 msgstr ""
2520
2521 #. type: textblock
2522 #: ../edit/virt-edit.pod:231
2523 msgid ""
2524 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2525 "the end of the file is rather difficult this way since there is no concept "
2526 "of \"last line of the file\" - your expression just doesn't get called "
2527 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2528 "want to do this."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../edit/virt-edit.pod:237
2533 msgid ""
2534 "The variable C<$lineno> contains the current line number.  As is "
2535 "traditional, the first line in the file is number C<1>."
2536 msgstr ""
2537
2538 #. type: textblock
2539 #: ../edit/virt-edit.pod:240
2540 msgid ""
2541 "The return value from the expression is ignored, but the expression may call "
2542 "C<die> in order to abort the whole program, leaving the original file "
2543 "untouched."
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../edit/virt-edit.pod:244
2548 msgid ""
2549 "Remember when matching the end of a line that C<$_> may contain the final "
2550 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2551 "newline then neither of these.  Thus to match or substitute some text at the "
2552 "end of a line, use this regular expression:"
2553 msgstr ""
2554
2555 #. type: verbatim
2556 #: ../edit/virt-edit.pod:249
2557 #, no-wrap
2558 msgid ""
2559 " /some text(\\r?\\n)?$/\n"
2560 "\n"
2561 msgstr ""
2562
2563 #. type: textblock
2564 #: ../edit/virt-edit.pod:251
2565 msgid ""
2566 "Alternately, use the perl C<chomp> function, being careful not to chomp "
2567 "C<$_> itself (since that would remove all newlines from the file):"
2568 msgstr ""
2569
2570 #. type: verbatim
2571 #: ../edit/virt-edit.pod:255
2572 #, no-wrap
2573 msgid ""
2574 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2575 "\n"
2576 msgstr ""
2577
2578 #. type: =head1
2579 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2580 msgid "WINDOWS PATHS"
2581 msgstr ""
2582
2583 #. type: textblock
2584 #: ../edit/virt-edit.pod:259
2585 msgid ""
2586 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2587 "paths (eg. C<E:\\foo\\bar.txt>)."
2588 msgstr ""
2589
2590 #. type: textblock
2591 #: ../edit/virt-edit.pod:262
2592 msgid "If and only if the guest is running Windows then:"
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../edit/virt-edit.pod:268
2597 msgid ""
2598 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2599 "to the correct filesystem."
2600 msgstr ""
2601
2602 #. type: textblock
2603 #: ../edit/virt-edit.pod:273
2604 msgid ""
2605 "Any backslash (C<\\>) characters in the path are replaced with forward "
2606 "slashes so that libguestfs can process it."
2607 msgstr ""
2608
2609 #. type: textblock
2610 #: ../edit/virt-edit.pod:278
2611 msgid ""
2612 "The path is resolved case insensitively to locate the file that should be "
2613 "edited."
2614 msgstr ""
2615
2616 #. type: textblock
2617 #: ../edit/virt-edit.pod:283
2618 msgid "There are some known shortcomings:"
2619 msgstr ""
2620
2621 #. type: textblock
2622 #: ../edit/virt-edit.pod:289
2623 msgid "Some NTFS symbolic links may not be followed correctly."
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../edit/virt-edit.pod:293
2628 msgid "NTFS junction points that cross filesystems are not followed."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../edit/virt-edit.pod:299
2633 msgid ""
2634 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2635 "C<virt-edit> doesn't work."
2636 msgstr ""
2637
2638 #. type: textblock
2639 #: ../edit/virt-edit.pod:302
2640 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2641 msgstr ""
2642
2643 #. type: verbatim
2644 #: ../edit/virt-edit.pod:304
2645 #, no-wrap
2646 msgid ""
2647 " guestfish --rw -i -d domname edit /file\n"
2648 "\n"
2649 msgstr ""
2650
2651 #. type: textblock
2652 #: ../edit/virt-edit.pod:306
2653 msgid ""
2654 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2655 "path to the file."
2656 msgstr ""
2657
2658 #. type: textblock
2659 #: ../edit/virt-edit.pod:309
2660 msgid ""
2661 "The command above uses libguestfs's guest inspection feature and so does not "
2662 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2663 "disk images that don't contain guests.  To edit a file on a disk image "
2664 "directly, use:"
2665 msgstr ""
2666
2667 #. type: verbatim
2668 #: ../edit/virt-edit.pod:314
2669 #, no-wrap
2670 msgid ""
2671 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2672 "\n"
2673 msgstr ""
2674
2675 #. type: textblock
2676 #: ../edit/virt-edit.pod:316
2677 msgid ""
2678 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2679 "the disk image to edit, and C</file> is the full path to the file."
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../edit/virt-edit.pod:320
2684 msgid ""
2685 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2686 "C<write> or C<upload> instead:"
2687 msgstr ""
2688
2689 #. type: verbatim
2690 #: ../edit/virt-edit.pod:323
2691 #, no-wrap
2692 msgid ""
2693 " guestfish --rw -i -d domname touch /newfile\n"
2694 "\n"
2695 msgstr ""
2696
2697 #. type: verbatim
2698 #: ../edit/virt-edit.pod:325
2699 #, no-wrap
2700 msgid ""
2701 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
2702 "\n"
2703 msgstr ""
2704
2705 #. type: verbatim
2706 #: ../edit/virt-edit.pod:327
2707 #, no-wrap
2708 msgid ""
2709 " guestfish --rw -i -d domname upload localfile /newfile\n"
2710 "\n"
2711 msgstr ""
2712
2713 #. type: =head1
2714 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1075 ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2965 ../test-tool/libguestfs-test-tool.pod:82
2715 msgid "ENVIRONMENT VARIABLES"
2716 msgstr ""
2717
2718 #. type: =item
2719 #: ../edit/virt-edit.pod:333
2720 msgid "C<EDITOR>"
2721 msgstr ""
2722
2723 #. type: textblock
2724 #: ../edit/virt-edit.pod:335
2725 msgid ""
2726 "If set, this string is used as the editor.  It may contain arguments, "
2727 "eg. C<\"emacs -nw\">"
2728 msgstr ""
2729
2730 #. type: textblock
2731 #: ../edit/virt-edit.pod:338
2732 msgid "If not set, C<vi> is used."
2733 msgstr ""
2734
2735 #. type: textblock
2736 #: ../edit/virt-edit.pod:351
2737 msgid ""
2738 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
2739 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2740 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
2741 msgstr ""
2742
2743 #. type: textblock
2744 #: ../examples/guestfs-examples.pod:5
2745 msgid "guestfs-examples - Examples of using libguestfs from C"
2746 msgstr ""
2747
2748 #. type: verbatim
2749 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
2750 #, no-wrap
2751 msgid ""
2752 " #include <guestfs.h>\n"
2753 " \n"
2754 msgstr ""
2755
2756 #. type: verbatim
2757 #: ../examples/guestfs-examples.pod:11
2758 #, no-wrap
2759 msgid ""
2760 " guestfs_h *g = guestfs_create ();\n"
2761 " guestfs_add_drive_ro (g, \"disk.img\");\n"
2762 " guestfs_launch (g);\n"
2763 "\n"
2764 msgstr ""
2765
2766 #. type: verbatim
2767 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
2768 #, no-wrap
2769 msgid ""
2770 " cc prog.c -o prog -lguestfs\n"
2771 "or:\n"
2772 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
2773 "\n"
2774 msgstr ""
2775
2776 #. type: textblock
2777 #: ../examples/guestfs-examples.pod:21
2778 msgid ""
2779 "This manual page contains examples of calling libguestfs from the C "
2780 "programming language.  If you are not familiar with using libguestfs, you "
2781 "also need to read L<guestfs(3)>."
2782 msgstr ""
2783
2784 #. type: =head1
2785 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
2786 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
2791 msgid "@EXAMPLE1@"
2792 msgstr ""
2793
2794 #. type: =head1
2795 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
2796 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
2801 msgid "@EXAMPLE2@"
2802 msgstr ""
2803
2804 #. type: textblock
2805 #: ../examples/guestfs-examples.pod:35
2806 msgid ""
2807 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
2808 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
2809 "L<http://libguestfs.org/>."
2810 msgstr ""
2811
2812 #. type: =head1
2813 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396 ../fish/guestfish.pod:1249 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57 ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51 ../python/examples/guestfs-python.pod:53 ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3098 ../test-tool/libguestfs-test-tool.pod:93
2814 msgid "AUTHORS"
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398 ../fish/guestfish.pod:1251 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316 ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92 ../perl/examples/guestfs-perl.pod:53 ../python/examples/guestfs-python.pod:55 ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3100 ../test-tool/libguestfs-test-tool.pod:95
2819 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96 ../python/examples/guestfs-python.pod:59 ../ruby/examples/guestfs-ruby.pod:53
2824 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404 ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98 ../perl/examples/guestfs-perl.pod:59 ../python/examples/guestfs-python.pod:61 ../ruby/examples/guestfs-ruby.pod:55
2829 msgid ""
2830 "The examples in this manual page may be freely copied, modified and "
2831 "distributed without any restrictions."
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407 ../java/examples/guestfs-java.pod:68 ../ocaml/examples/guestfs-ocaml.pod:101 ../perl/examples/guestfs-perl.pod:62 ../python/examples/guestfs-python.pod:64 ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3107
2836 msgid ""
2837 "This library is free software; you can redistribute it and/or modify it "
2838 "under the terms of the GNU Lesser General Public License as published by the "
2839 "Free Software Foundation; either version 2 of the License, or (at your "
2840 "option) any later version."
2841 msgstr ""
2842
2843 #. type: textblock
2844 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412 ../java/examples/guestfs-java.pod:73 ../ocaml/examples/guestfs-ocaml.pod:106 ../perl/examples/guestfs-perl.pod:67 ../python/examples/guestfs-python.pod:69 ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3112
2845 msgid ""
2846 "This library is distributed in the hope that it will be useful, but WITHOUT "
2847 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
2848 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
2849 "for more details."
2850 msgstr ""
2851
2852 #. type: textblock
2853 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417 ../java/examples/guestfs-java.pod:78 ../ocaml/examples/guestfs-ocaml.pod:111 ../perl/examples/guestfs-perl.pod:72 ../python/examples/guestfs-python.pod:74 ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3117
2854 msgid ""
2855 "You should have received a copy of the GNU Lesser General Public License "
2856 "along with this library; if not, write to the Free Software Foundation, "
2857 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
2858 msgstr ""
2859
2860 #. type: =end
2861 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
2862 msgid "comment"
2863 msgstr ""
2864
2865 #. type: textblock
2866 #: ../examples/guestfs-recipes.pod:5
2867 msgid ""
2868 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
2869 "here.  The only way which works for both sorts of output is to just write "
2870 "the URL directly.  Do NOT use L<...> for URLs."
2871 msgstr ""
2872
2873 #. type: textblock
2874 #: ../examples/guestfs-recipes.pod:9
2875 msgid ""
2876 "We break with tradition here and don't use ALL CAPS for the section "
2877 "headings, as this makes them much easier to read."
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../examples/guestfs-recipes.pod:16
2882 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../examples/guestfs-recipes.pod:20
2887 msgid ""
2888 "This page contains recipes for and links to things you can do using "
2889 "libguestfs, L<guestfish(1)> and the virt tools."
2890 msgstr ""
2891
2892 #. type: =head1
2893 #: ../examples/guestfs-recipes.pod:23
2894 msgid "Audit a virtual machine for setuid files"
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../examples/guestfs-recipes.pod:25
2899 msgid ""
2900 "The link below contains a small program which can be used to audit a Linux "
2901 "virtual machine to see what setuid and setgid files it contains."
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../examples/guestfs-recipes.pod:28
2906 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
2907 msgstr ""
2908
2909 #. type: =head1
2910 #: ../examples/guestfs-recipes.pod:30
2911 msgid "Change the background image in a Windows XP VM"
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../examples/guestfs-recipes.pod:32
2916 msgid ""
2917 "The links below explain how to use L<guestfish(1)> to change the background "
2918 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
2919 "be substantially different for each version of Windows."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../examples/guestfs-recipes.pod:37
2924 msgid ""
2925 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
2926 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
2927 msgstr ""
2928
2929 #. type: =head1
2930 #: ../examples/guestfs-recipes.pod:40
2931 msgid "Cloning a virtual machine (Linux)"
2932 msgstr ""
2933
2934 #. type: textblock
2935 #: ../examples/guestfs-recipes.pod:42
2936 msgid ""
2937 "The guestfish technique described in the link below works well for most "
2938 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
2939 "slightly."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../examples/guestfs-recipes.pod:46
2944 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
2945 msgstr ""
2946
2947 #. type: textblock
2948 #: ../examples/guestfs-recipes.pod:48
2949 msgid ""
2950 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
2951 "discussion."
2952 msgstr ""
2953
2954 #. type: textblock
2955 #: ../examples/guestfs-recipes.pod:51
2956 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2957 msgstr ""
2958
2959 #. type: =head1
2960 #: ../examples/guestfs-recipes.pod:53
2961 msgid "Cloning a virtual machine (Windows)"
2962 msgstr ""
2963
2964 #. type: textblock
2965 #: ../examples/guestfs-recipes.pod:55
2966 msgid ""
2967 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
2968 "straightforward.  Currently there is code in the Aeolus Oz project which "
2969 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
2970 "we may add sysprepping ability."
2971 msgstr ""
2972
2973 #. type: textblock
2974 #: ../examples/guestfs-recipes.pod:60
2975 msgid ""
2976 "https://github.com/clalancette/oz "
2977 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2978 msgstr ""
2979
2980 #. type: =head1
2981 #: ../examples/guestfs-recipes.pod:63
2982 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../examples/guestfs-recipes.pod:65
2987 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
2988 msgstr ""
2989
2990 #. type: verbatim
2991 #: ../examples/guestfs-recipes.pod:67
2992 #, no-wrap
2993 msgid ""
2994 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
2995 "\n"
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../examples/guestfs-recipes.pod:69
3000 msgid "To export just a subdirectory, eg. C</files>, do:"
3001 msgstr ""
3002
3003 #. type: verbatim
3004 #: ../examples/guestfs-recipes.pod:71
3005 #, no-wrap
3006 msgid ""
3007 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3008 "\n"
3009 msgstr ""
3010
3011 #. type: =head1
3012 #: ../examples/guestfs-recipes.pod:73
3013 msgid "Create empty disk images"
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../examples/guestfs-recipes.pod:75
3018 msgid ""
3019 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3020 "The useful guide below explains the options available."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../examples/guestfs-recipes.pod:78
3025 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
3026 msgstr ""
3027
3028 #. type: =head1
3029 #: ../examples/guestfs-recipes.pod:80
3030 msgid "Dump raw filesystem content from inside a disk image or VM"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../examples/guestfs-recipes.pod:82
3035 msgid ""
3036 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3037 "filesystem content from any filesystem in a disk image or a VM (even one "
3038 "which is encrypted or buried inside an LV):"
3039 msgstr ""
3040
3041 #. type: verbatim
3042 #: ../examples/guestfs-recipes.pod:86
3043 #, no-wrap
3044 msgid ""
3045 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3046 "\n"
3047 msgstr ""
3048
3049 #. type: verbatim
3050 #: ../examples/guestfs-recipes.pod:88
3051 #, no-wrap
3052 msgid ""
3053 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3054 "\n"
3055 msgstr ""
3056
3057 #. type: textblock
3058 #: ../examples/guestfs-recipes.pod:90
3059 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3060 msgstr ""
3061
3062 #. type: =head1
3063 #: ../examples/guestfs-recipes.pod:92
3064 msgid "Edit grub configuration in a VM"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../examples/guestfs-recipes.pod:94
3069 msgid "You can use this to:"
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../examples/guestfs-recipes.pod:100
3074 msgid "Fix a virtual machine that does not boot."
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../examples/guestfs-recipes.pod:104
3079 msgid "Change which kernel is used to boot the VM."
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../examples/guestfs-recipes.pod:108
3084 msgid "Change kernel command line options."
3085 msgstr ""
3086
3087 #. type: textblock
3088 #: ../examples/guestfs-recipes.pod:112
3089 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3090 msgstr ""
3091
3092 #. type: verbatim
3093 #: ../examples/guestfs-recipes.pod:114
3094 #, no-wrap
3095 msgid ""
3096 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3097 "\n"
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../examples/guestfs-recipes.pod:116
3102 msgid ""
3103 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3104 "this:"
3105 msgstr ""
3106
3107 #. type: verbatim
3108 #: ../examples/guestfs-recipes.pod:119
3109 #, no-wrap
3110 msgid ""
3111 " virt-rescue -d BrokenGuest\n"
3112 "\n"
3113 msgstr ""
3114
3115 #. type: =head1
3116 #: ../examples/guestfs-recipes.pod:121
3117 msgid "Export any directory from a VM"
3118 msgstr ""
3119
3120 #. type: textblock
3121 #: ../examples/guestfs-recipes.pod:123
3122 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3123 msgstr ""
3124
3125 #. type: verbatim
3126 #: ../examples/guestfs-recipes.pod:126
3127 #, no-wrap
3128 msgid ""
3129 " virt-copy-out -d Guest /home .\n"
3130 "\n"
3131 msgstr ""
3132
3133 #. type: textblock
3134 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1287 ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:2855 ../src/guestfs.pod:1639 ../tools/virt-win-reg.pl:706
3135 msgid "Notes:"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../examples/guestfs-recipes.pod:134
3140 msgid ""
3141 "The final dot of the command is not a printing error.  It means we want to "
3142 "copy out to the current directory."
3143 msgstr ""
3144
3145 #. type: textblock
3146 #: ../examples/guestfs-recipes.pod:139
3147 msgid "This creates a directory called C<home> under the current directory."
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../examples/guestfs-recipes.pod:143
3152 msgid ""
3153 "If the guest is a Windows guest then you can use drive letters and "
3154 "backslashes, but you must prefix the path with C<win:> and quote it to "
3155 "protect it from the shell, like this:"
3156 msgstr ""
3157
3158 #. type: verbatim
3159 #: ../examples/guestfs-recipes.pod:147
3160 #, no-wrap
3161 msgid ""
3162 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../examples/guestfs-recipes.pod:149
3168 msgid "To get the output as a compressed tarball, do:"
3169 msgstr ""
3170
3171 #. type: verbatim
3172 #: ../examples/guestfs-recipes.pod:151
3173 #, no-wrap
3174 msgid ""
3175 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3176 "\n"
3177 msgstr ""
3178
3179 #. type: textblock
3180 #: ../examples/guestfs-recipes.pod:153
3181 msgid ""
3182 "Although it sounds tempting, this is usually not a reliable way to get a "
3183 "backup from a running guest.  See the entry in the FAQ: "
3184 "http://libguestfs.org/FAQ.html#backup"
3185 msgstr ""
3186
3187 #. type: =head1
3188 #: ../examples/guestfs-recipes.pod:157
3189 msgid "Find out which user is using the most space"
3190 msgstr ""
3191
3192 #. type: textblock
3193 #: ../examples/guestfs-recipes.pod:159
3194 msgid ""
3195 "This simple script examines a Linux guest to find out which user is using "
3196 "the most space in their home directory:"
3197 msgstr ""
3198
3199 #. type: verbatim
3200 #: ../examples/guestfs-recipes.pod:162
3201 #, no-wrap
3202 msgid ""
3203 " #!/bin/sh -\n"
3204 " \n"
3205 msgstr ""
3206
3207 #. type: verbatim
3208 #: ../examples/guestfs-recipes.pod:164
3209 #, no-wrap
3210 msgid ""
3211 " set -e\n"
3212 " \n"
3213 msgstr ""
3214
3215 #. type: verbatim
3216 #: ../examples/guestfs-recipes.pod:166
3217 #, no-wrap
3218 msgid ""
3219 " vm=\"$1\"\n"
3220 " dir=/home\n"
3221 " \n"
3222 msgstr ""
3223
3224 #. type: verbatim
3225 #: ../examples/guestfs-recipes.pod:169
3226 #, no-wrap
3227 msgid ""
3228 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3229 " \n"
3230 msgstr ""
3231
3232 #. type: verbatim
3233 #: ../examples/guestfs-recipes.pod:171
3234 #, no-wrap
3235 msgid ""
3236 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3237 "     echo -n \"$dir/$d\"\n"
3238 "     echo -ne '\\t'\n"
3239 "     guestfish --remote du \"$dir/$d\";\n"
3240 " done | sort -nr -k 2\n"
3241 " \n"
3242 msgstr ""
3243
3244 #. type: verbatim
3245 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3246 #, no-wrap
3247 msgid ""
3248 " guestfish --remote exit\n"
3249 "\n"
3250 msgstr ""
3251
3252 #. type: =head1
3253 #: ../examples/guestfs-recipes.pod:179
3254 msgid "Get DHCP address from a VM"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../examples/guestfs-recipes.pod:181
3259 msgid ""
3260 "The link below explains the many different possible techniques for getting "
3261 "the last assigned DHCP address of a virtual machine."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../examples/guestfs-recipes.pod:184
3266 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../examples/guestfs-recipes.pod:186
3271 msgid ""
3272 "In the libguestfs source examples directory you will find the latest version "
3273 "of the C<virt-dhcp-address.c> program."
3274 msgstr ""
3275
3276 #. type: =head1
3277 #: ../examples/guestfs-recipes.pod:189
3278 msgid "Get the operating system product name string"
3279 msgstr ""
3280
3281 #. type: textblock
3282 #: ../examples/guestfs-recipes.pod:191
3283 msgid "Save the following script into a file called C<product-name.sh>:"
3284 msgstr ""
3285
3286 #. type: verbatim
3287 #: ../examples/guestfs-recipes.pod:193
3288 #, no-wrap
3289 msgid ""
3290 " #!/bin/sh -\n"
3291 " set -e\n"
3292 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3293 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3294 " guestfish --remote inspect-get-product-name \"$root\"\n"
3295 " guestfish --remote exit\n"
3296 "\n"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../examples/guestfs-recipes.pod:200
3301 msgid "Make the script executable and run it on a named guest:"
3302 msgstr ""
3303
3304 #. type: verbatim
3305 #: ../examples/guestfs-recipes.pod:202
3306 #, no-wrap
3307 msgid ""
3308 " # product-name.sh RHEL60x64\n"
3309 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3310 "\n"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../examples/guestfs-recipes.pod:205
3315 msgid ""
3316 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3317 "C<xpath> command line tool or from your favourite programming language:"
3318 msgstr ""
3319
3320 #. type: verbatim
3321 #: ../examples/guestfs-recipes.pod:209
3322 #, no-wrap
3323 msgid ""
3324 " # virt-inspector RHEL60x64 > xml\n"
3325 " # xpath '//product_name' < xml\n"
3326 " Found 1 nodes:\n"
3327 " -- NODE --\n"
3328 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
3329 "(Santiago)</product_name>\n"
3330 "\n"
3331 msgstr ""
3332
3333 #. type: =head1
3334 #: ../examples/guestfs-recipes.pod:215
3335 msgid "Get the default boot kernel for a Linux VM"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../examples/guestfs-recipes.pod:217
3340 msgid ""
3341 "The link below contains a program to print the default boot kernel for a "
3342 "Linux VM."
3343 msgstr ""
3344
3345 #. type: textblock
3346 #: ../examples/guestfs-recipes.pod:220
3347 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
3348 msgstr ""
3349
3350 #. type: textblock
3351 #: ../examples/guestfs-recipes.pod:222
3352 msgid ""
3353 "It uses Augeas, and the technique is generally applicable for many different "
3354 "tasks, such as:"
3355 msgstr ""
3356
3357 #. type: textblock
3358 #: ../examples/guestfs-recipes.pod:229
3359 msgid "listing the user accounts in the guest"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../examples/guestfs-recipes.pod:233
3364 msgid "what repositories is it configured to use"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../examples/guestfs-recipes.pod:237
3369 msgid "what NTP servers does it connect to"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../examples/guestfs-recipes.pod:241
3374 msgid "what were the boot messages last time it booted"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../examples/guestfs-recipes.pod:245
3379 msgid "listing who was logged in recently"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:249
3384 msgid "http://augeas.net/"
3385 msgstr ""
3386
3387 #. type: =head1
3388 #: ../examples/guestfs-recipes.pod:251
3389 msgid "Install RPMs in a guest"
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../examples/guestfs-recipes.pod:253
3394 msgid ""
3395 "The link below contains a method to install RPMs in a guest.  In fact the "
3396 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3397 "installs them next time the guest is booted.  You could use this technique "
3398 "to install vital security updates in an offline guest."
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../examples/guestfs-recipes.pod:259
3403 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3404 msgstr ""
3405
3406 #. type: =head1
3407 #: ../examples/guestfs-recipes.pod:261
3408 msgid "List applications installed in a VM"
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../examples/guestfs-recipes.pod:263
3413 msgid "Save the following to a file C<list-apps.sh>:"
3414 msgstr ""
3415
3416 #. type: verbatim
3417 #: ../examples/guestfs-recipes.pod:265
3418 #, no-wrap
3419 msgid ""
3420 " #!/bin/sh -\n"
3421 " set -e\n"
3422 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3423 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3424 " guestfish --remote inspect-list-applications \"$root\"\n"
3425 " guestfish --remote exit\n"
3426 "\n"
3427 msgstr ""
3428
3429 #. type: textblock
3430 #: ../examples/guestfs-recipes.pod:272
3431 msgid ""
3432 "Make the file executable and then you can run it on any named virtual "
3433 "machine:"
3434 msgstr ""
3435
3436 #. type: verbatim
3437 #: ../examples/guestfs-recipes.pod:275
3438 #, no-wrap
3439 msgid ""
3440 " # list-apps.sh WinGuest\n"
3441 " [0] = {\n"
3442 "   app_name: Mozilla Firefox (3.6.12)\n"
3443 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3444 "   app_epoch: 0\n"
3445 "   app_version: 3.6.12 (en-GB)\n"
3446 "   app_release:\n"
3447 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3448 "   app_trans_path:\n"
3449 "   app_publisher: Mozilla\n"
3450 "   app_url: http://www.mozilla.com/en-GB/\n"
3451 "   app_source_package:\n"
3452 "   app_summary:\n"
3453 "   app_description: Mozilla Firefox\n"
3454 " }\n"
3455 " [1] = {\n"
3456 "   app_name: VLC media player\n"
3457 "   app_display_name: VLC media player 1.1.5\n"
3458 "   app_epoch: 0\n"
3459 "   app_version: 1.1.5\n"
3460 "   app_release:\n"
3461 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3462 "   app_trans_path:\n"
3463 "   app_publisher: VideoLAN\n"
3464 "   app_url: http://www.videolan.org/\n"
3465 "   app_source_package:\n"
3466 "   app_summary:\n"
3467 "   app_description:\n"
3468 " }\n"
3469 "\n"
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../examples/guestfs-recipes.pod:305
3474 msgid ""
3475 "If you want to run the script on disk images (instead of libvirt virtual "
3476 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
3477 "L<virt-inspector(1)>."
3478 msgstr ""
3479
3480 #. type: =head1
3481 #: ../examples/guestfs-recipes.pod:309
3482 msgid "List files and directories in a VM"
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../examples/guestfs-recipes.pod:311
3487 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3488 msgstr ""
3489
3490 #. type: verbatim
3491 #: ../examples/guestfs-recipes.pod:313
3492 #, no-wrap
3493 msgid ""
3494 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3495 "\n"
3496 msgstr ""
3497
3498 #. type: =head1
3499 #: ../examples/guestfs-recipes.pod:315
3500 msgid "List services in a Windows VM"
3501 msgstr ""
3502
3503 #. type: textblock
3504 #: ../examples/guestfs-recipes.pod:317
3505 msgid ""
3506 "The link below contains a script that can be used to list out the services "
3507 "from a Windows VM, and whether those services run at boot time or are loaded "
3508 "on demand."
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../examples/guestfs-recipes.pod:321
3513 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
3514 msgstr ""
3515
3516 #. type: =head1
3517 #: ../examples/guestfs-recipes.pod:323
3518 msgid "Make a disk image sparse"
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../examples/guestfs-recipes.pod:325
3523 msgid ""
3524 "The link below contains some guides for making a disk image sparse (or "
3525 "reintroducing sparseness)."
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../examples/guestfs-recipes.pod:328
3530 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3531 msgstr ""
3532
3533 #. type: =head1
3534 #: ../examples/guestfs-recipes.pod:330
3535 msgid "Monitor disk usage over time"
3536 msgstr ""
3537
3538 #. type: textblock
3539 #: ../examples/guestfs-recipes.pod:332
3540 msgid ""
3541 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3542 "The link below contains a guide."
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../examples/guestfs-recipes.pod:335
3547 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3548 msgstr ""
3549
3550 #. type: =head1
3551 #: ../examples/guestfs-recipes.pod:337
3552 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../examples/guestfs-recipes.pod:339
3557 msgid ""
3558 "L<guestfish(1)> plus the tools described in the link below can be used to "
3559 "read out the Windows Event Log from any virtual machine running Windows "
3560 "Vista or a later version."
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../examples/guestfs-recipes.pod:343
3565 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
3566 msgstr ""
3567
3568 #. type: =head1
3569 #: ../examples/guestfs-recipes.pod:345
3570 msgid "Remove root password (Linux)"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../examples/guestfs-recipes.pod:347
3575 msgid ""
3576 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3577 "files.  One use is to remove the root password from a Linux guest:"
3578 msgstr ""
3579
3580 #. type: verbatim
3581 #: ../examples/guestfs-recipes.pod:350
3582 #, no-wrap
3583 msgid ""
3584 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3585 "\n"
3586 msgstr ""
3587
3588 #. type: =head1
3589 #: ../examples/guestfs-recipes.pod:352
3590 msgid "Remove Administrator password (Windows)"
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../examples/guestfs-recipes.pod:354
3595 msgid ""
3596 "The link below contains one technique for removing the Administrator "
3597 "password from a Windows VM, or to be more precise, it gives you a command "
3598 "prompt the next time you log in which you can use to bypass any security:"
3599 msgstr ""
3600
3601 #. type: textblock
3602 #: ../examples/guestfs-recipes.pod:359
3603 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
3604 msgstr ""
3605
3606 #. type: =head1
3607 #: ../examples/guestfs-recipes.pod:361
3608 msgid "Unpack a live CD"
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../examples/guestfs-recipes.pod:363
3613 msgid ""
3614 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3615 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
3616 "layers, as outlined in the guide below."
3617 msgstr ""
3618
3619 #. type: textblock
3620 #: ../examples/guestfs-recipes.pod:367
3621 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
3622 msgstr ""
3623
3624 #. type: =head1
3625 #: ../examples/guestfs-recipes.pod:369
3626 msgid "Uploading and downloading files"
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../examples/guestfs-recipes.pod:371
3631 msgid ""
3632 "The link below contains general tips on uploading (copying in)  and "
3633 "downloading (copying out) files from VMs."
3634 msgstr ""
3635
3636 #. type: textblock
3637 #: ../examples/guestfs-recipes.pod:374
3638 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
3639 msgstr ""
3640
3641 #. type: =head1
3642 #: ../examples/guestfs-recipes.pod:376
3643 msgid "Use libguestfs tools on VMware ESX guests"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../examples/guestfs-recipes.pod:378
3648 msgid ""
3649 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
3650 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../examples/guestfs-recipes.pod:382
3655 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
3656 msgstr ""
3657
3658 #. type: textblock
3659 #: ../examples/guestfs-recipes.pod:386
3660 msgid ""
3661 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
3662 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3663 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../examples/guestfs-recipes.pod:402
3668 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
3669 msgstr ""
3670
3671 #. type: =head2
3672 #: ../fish/guestfish-actions.pod:1
3673 msgid "add-cdrom"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../fish/guestfish-actions.pod:3
3678 #, no-wrap
3679 msgid ""
3680 " add-cdrom filename\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
3686 msgid "This function adds a virtual CD-ROM disk image to the guest."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
3691 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../fish/guestfish-actions.pod:15
3696 msgid ""
3697 "This call checks for the existence of C<filename>.  This stops you from "
3698 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3699 "and C<http:> URLs.  To specify those, use the general L</config> call "
3700 "instead."
3701 msgstr ""
3702
3703 #. type: textblock
3704 #: ../fish/guestfish-actions.pod:22
3705 msgid ""
3706 "If you just want to add an ISO file (often you use this as an efficient way "
3707 "to transfer large files into the guest), then you should probably use "
3708 "L</add-drive-ro> instead."
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
3713 msgid ""
3714 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
3715 "instead."
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360 ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292 ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454 ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378 ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6666 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7884
3720 msgid ""
3721 "Deprecated functions will not be removed from the API, but the fact that "
3722 "they are deprecated indicates that there are problems with correct use of "
3723 "these functions."
3724 msgstr ""
3725
3726 #. type: =head2
3727 #: ../fish/guestfish-actions.pod:35
3728 msgid "add-domain"
3729 msgstr ""
3730
3731 #. type: =head2
3732 #: ../fish/guestfish-actions.pod:37
3733 msgid "domain"
3734 msgstr ""
3735
3736 #. type: verbatim
3737 #: ../fish/guestfish-actions.pod:39
3738 #, no-wrap
3739 msgid ""
3740 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
3741 "[allowuuid:..]\n"
3742 "\n"
3743 msgstr ""
3744
3745 #. type: textblock
3746 #: ../fish/guestfish-actions.pod:41
3747 msgid ""
3748 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
3749 "It works by connecting to libvirt, requesting the domain and domain XML from "
3750 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
3755 msgid ""
3756 "The number of disks added is returned.  This operation is atomic: if an "
3757 "error is returned, then no disks are added."
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
3762 msgid ""
3763 "This function does some minimal checks to make sure the libvirt domain is "
3764 "not running (unless C<readonly> is true).  In a future version we will try "
3765 "to acquire the libvirt lock on each disk."
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
3770 msgid ""
3771 "Disks must be accessible locally.  This often means that adding disks from a "
3772 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
3773 "unless those disks are accessible via the same device path locally too."
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
3778 msgid ""
3779 "The optional C<libvirturi> parameter sets the libvirt URI (see "
3780 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
3781 "default libvirt URI (or one set through an environment variable, see the "
3782 "libvirt documentation for full details)."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
3787 msgid ""
3788 "The optional C<live> flag controls whether this call will try to connect to "
3789 "a running virtual machine C<guestfsd> process if it sees a suitable "
3790 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
3791 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
3792 "DAEMONS> for more information."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
3797 msgid ""
3798 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
3799 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
3800 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
3801 "as usual."
3802 msgstr ""
3803
3804 #. type: textblock
3805 #: ../fish/guestfish-actions.pod:76
3806 msgid ""
3807 "The other optional parameters are passed directly through to "
3808 "L</add-drive-opts>."
3809 msgstr ""
3810
3811 #. type: textblock
3812 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968 ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307 ../fish/guestfish-actions.pod:3442
3813 msgid ""
3814 "This command has one or more optional arguments.  See L</OPTIONAL "
3815 "ARGUMENTS>."
3816 msgstr ""
3817
3818 #. type: =head2
3819 #: ../fish/guestfish-actions.pod:81
3820 msgid "add-drive"
3821 msgstr ""
3822
3823 #. type: verbatim
3824 #: ../fish/guestfish-actions.pod:83
3825 #, no-wrap
3826 msgid ""
3827 " add-drive filename\n"
3828 "\n"
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../fish/guestfish-actions.pod:85
3833 msgid ""
3834 "This function is the equivalent of calling L</add-drive-opts> with no "
3835 "optional parameters, so the disk is added writable, with the format being "
3836 "detected automatically."
3837 msgstr ""
3838
3839 #. type: textblock
3840 #: ../fish/guestfish-actions.pod:89
3841 msgid ""
3842 "Automatic detection of the format opens you up to a potential security hole "
3843 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3844 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3845 "you should think about replacing calls to this function with calls to "
3846 "L</add-drive-opts>, and specifying the format."
3847 msgstr ""
3848
3849 #. type: =head2
3850 #: ../fish/guestfish-actions.pod:96
3851 msgid "add-drive-opts"
3852 msgstr ""
3853
3854 #. type: =head2
3855 #: ../fish/guestfish-actions.pod:98
3856 msgid "add"
3857 msgstr ""
3858
3859 #. type: verbatim
3860 #: ../fish/guestfish-actions.pod:100
3861 #, no-wrap
3862 msgid ""
3863 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
3864 "\n"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
3869 msgid ""
3870 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3871 "The first time you call this function, the disk appears as C</dev/sda>, the "
3872 "second time as C</dev/sdb>, and so on."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
3877 msgid ""
3878 "You don't necessarily need to be root when using libguestfs.  However you "
3879 "obviously do need sufficient permissions to access the filename for whatever "
3880 "operations you want to perform (ie. read access if you just want to read the "
3881 "image or write access if you want to modify the image)."
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
3886 msgid "This call checks that C<filename> exists."
3887 msgstr ""
3888
3889 #. type: textblock
3890 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
3891 msgid "The optional arguments are:"
3892 msgstr ""
3893
3894 #. type: =item
3895 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
3896 msgid "C<readonly>"
3897 msgstr ""
3898
3899 #. type: textblock
3900 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
3901 msgid ""
3902 "If true then the image is treated as read-only.  Writes are still allowed, "
3903 "but they are stored in a temporary snapshot overlay which is discarded at "
3904 "the end.  The disk that you add is not modified."
3905 msgstr ""
3906
3907 #. type: =item
3908 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
3909 msgid "C<format>"
3910 msgstr ""
3911
3912 #. type: textblock
3913 #: ../fish/guestfish-actions.pod:127
3914 msgid ""
3915 "This forces the image format.  If you omit this (or use L</add-drive> or "
3916 "L</add-drive-ro>) then the format is automatically detected.  Possible "
3917 "formats include C<raw> and C<qcow2>."
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
3922 msgid ""
3923 "Automatic detection of the format opens you up to a potential security hole "
3924 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3925 "RHBZ#642934.  Specifying the format closes this security hole."
3926 msgstr ""
3927
3928 #. type: =item
3929 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
3930 msgid "C<iface>"
3931 msgstr ""
3932
3933 #. type: textblock
3934 #: ../fish/guestfish-actions.pod:138
3935 msgid ""
3936 "This rarely-used option lets you emulate the behaviour of the deprecated "
3937 "L</add-drive-with-if> call (q.v.)"
3938 msgstr ""
3939
3940 #. type: =head2
3941 #: ../fish/guestfish-actions.pod:145
3942 msgid "add-drive-ro"
3943 msgstr ""
3944
3945 #. type: =head2
3946 #: ../fish/guestfish-actions.pod:147
3947 msgid "add-ro"
3948 msgstr ""
3949
3950 #. type: verbatim
3951 #: ../fish/guestfish-actions.pod:149
3952 #, no-wrap
3953 msgid ""
3954 " add-drive-ro filename\n"
3955 "\n"
3956 msgstr ""
3957
3958 #. type: textblock
3959 #: ../fish/guestfish-actions.pod:151
3960 msgid ""
3961 "This function is the equivalent of calling L</add-drive-opts> with the "
3962 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
3963 "is added read-only, with the format being detected automatically."
3964 msgstr ""
3965
3966 #. type: =head2
3967 #: ../fish/guestfish-actions.pod:156
3968 msgid "add-drive-ro-with-if"
3969 msgstr ""
3970
3971 #. type: verbatim
3972 #: ../fish/guestfish-actions.pod:158
3973 #, no-wrap
3974 msgid ""
3975 " add-drive-ro-with-if filename iface\n"
3976 "\n"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../fish/guestfish-actions.pod:160
3981 msgid ""
3982 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
3983 "interface emulation to use at run time."
3984 msgstr ""
3985
3986 #. type: =head2
3987 #: ../fish/guestfish-actions.pod:170
3988 msgid "add-drive-with-if"
3989 msgstr ""
3990
3991 #. type: verbatim
3992 #: ../fish/guestfish-actions.pod:172
3993 #, no-wrap
3994 msgid ""
3995 " add-drive-with-if filename iface\n"
3996 "\n"
3997 msgstr ""
3998
3999 #. type: textblock
4000 #: ../fish/guestfish-actions.pod:174
4001 msgid ""
4002 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4003 "interface emulation to use at run time."
4004 msgstr ""
4005
4006 #. type: =head2
4007 #: ../fish/guestfish-actions.pod:184
4008 msgid "aug-clear"
4009 msgstr ""
4010
4011 #. type: verbatim
4012 #: ../fish/guestfish-actions.pod:186
4013 #, no-wrap
4014 msgid ""
4015 " aug-clear augpath\n"
4016 "\n"
4017 msgstr ""
4018
4019 #. type: textblock
4020 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4021 msgid ""
4022 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4023 "L<augtool(1)> C<clear> command."
4024 msgstr ""
4025
4026 #. type: =head2
4027 #: ../fish/guestfish-actions.pod:191
4028 msgid "aug-close"
4029 msgstr ""
4030
4031 #. type: verbatim
4032 #: ../fish/guestfish-actions.pod:193
4033 #, no-wrap
4034 msgid ""
4035 " aug-close\n"
4036 "\n"
4037 msgstr ""
4038
4039 #. type: textblock
4040 #: ../fish/guestfish-actions.pod:195
4041 msgid ""
4042 "Close the current Augeas handle and free up any resources used by it.  After "
4043 "calling this, you have to call L</aug-init> again before you can use any "
4044 "other Augeas functions."
4045 msgstr ""
4046
4047 #. type: =head2
4048 #: ../fish/guestfish-actions.pod:200
4049 msgid "aug-defnode"
4050 msgstr ""
4051
4052 #. type: verbatim
4053 #: ../fish/guestfish-actions.pod:202
4054 #, no-wrap
4055 msgid ""
4056 " aug-defnode name expr val\n"
4057 "\n"
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4062 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4063 msgstr ""
4064
4065 #. type: textblock
4066 #: ../fish/guestfish-actions.pod:207
4067 msgid ""
4068 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4069 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4070 "containing that single node."
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4075 msgid ""
4076 "On success this returns a pair containing the number of nodes in the "
4077 "nodeset, and a boolean flag if a node was created."
4078 msgstr ""
4079
4080 #. type: =head2
4081 #: ../fish/guestfish-actions.pod:215
4082 msgid "aug-defvar"
4083 msgstr ""
4084
4085 #. type: verbatim
4086 #: ../fish/guestfish-actions.pod:217
4087 #, no-wrap
4088 msgid ""
4089 " aug-defvar name expr\n"
4090 "\n"
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4095 msgid ""
4096 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4097 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4102 msgid ""
4103 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4104 "evaluates to something which is not a nodeset."
4105 msgstr ""
4106
4107 #. type: =head2
4108 #: ../fish/guestfish-actions.pod:226
4109 msgid "aug-get"
4110 msgstr ""
4111
4112 #. type: verbatim
4113 #: ../fish/guestfish-actions.pod:228
4114 #, no-wrap
4115 msgid ""
4116 " aug-get augpath\n"
4117 "\n"
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4122 msgid ""
4123 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4124 "node, the C<value> is returned."
4125 msgstr ""
4126
4127 #. type: =head2
4128 #: ../fish/guestfish-actions.pod:233
4129 msgid "aug-init"
4130 msgstr ""
4131
4132 #. type: verbatim
4133 #: ../fish/guestfish-actions.pod:235
4134 #, no-wrap
4135 msgid ""
4136 " aug-init root flags\n"
4137 "\n"
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4142 msgid ""
4143 "Create a new Augeas handle for editing configuration files.  If there was "
4144 "any previous Augeas handle associated with this guestfs session, then it is "
4145 "closed."
4146 msgstr ""
4147
4148 #. type: textblock
4149 #: ../fish/guestfish-actions.pod:241
4150 msgid "You must call this before using any other L</aug-*> commands."
4151 msgstr ""
4152
4153 #. type: textblock
4154 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4155 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4160 msgid ""
4161 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4162 "logical I<or> of the following integers:"
4163 msgstr ""
4164
4165 #. type: =item
4166 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4167 msgid "C<AUG_SAVE_BACKUP> = 1"
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4172 msgid "Keep the original file with a C<.augsave> extension."
4173 msgstr ""
4174
4175 #. type: =item
4176 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4177 msgid "C<AUG_SAVE_NEWFILE> = 2"
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4182 msgid ""
4183 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4184 "original.  Overrides C<AUG_SAVE_BACKUP>."
4185 msgstr ""
4186
4187 #. type: =item
4188 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4189 msgid "C<AUG_TYPE_CHECK> = 4"
4190 msgstr ""
4191
4192 #. type: textblock
4193 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4194 msgid "Typecheck lenses (can be expensive)."
4195 msgstr ""
4196
4197 #. type: =item
4198 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
4199 msgid "C<AUG_NO_STDINC> = 8"
4200 msgstr ""
4201
4202 #. type: textblock
4203 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
4204 msgid "Do not use standard load path for modules."
4205 msgstr ""
4206
4207 #. type: =item
4208 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
4209 msgid "C<AUG_SAVE_NOOP> = 16"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
4214 msgid "Make save a no-op, just record what would have been changed."
4215 msgstr ""
4216
4217 #. type: =item
4218 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
4219 msgid "C<AUG_NO_LOAD> = 32"
4220 msgstr ""
4221
4222 #. type: textblock
4223 #: ../fish/guestfish-actions.pod:276
4224 msgid "Do not load the tree in L</aug-init>."
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../fish/guestfish-actions.pod:280
4229 msgid "To close the handle, you can call L</aug-close>."
4230 msgstr ""
4231
4232 #. type: textblock
4233 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
4234 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4235 msgstr ""
4236
4237 #. type: =head2
4238 #: ../fish/guestfish-actions.pod:284
4239 msgid "aug-insert"
4240 msgstr ""
4241
4242 #. type: verbatim
4243 #: ../fish/guestfish-actions.pod:286
4244 #, no-wrap
4245 msgid ""
4246 " aug-insert augpath label true|false\n"
4247 "\n"
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
4252 msgid ""
4253 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4254 "or after C<path> (depending on the boolean flag C<before>)."
4255 msgstr ""
4256
4257 #. type: textblock
4258 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
4259 msgid ""
4260 "C<path> must match exactly one existing node in the tree, and C<label> must "
4261 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4262 msgstr ""
4263
4264 #. type: =head2
4265 #: ../fish/guestfish-actions.pod:296
4266 msgid "aug-load"
4267 msgstr ""
4268
4269 #. type: verbatim
4270 #: ../fish/guestfish-actions.pod:298
4271 #, no-wrap
4272 msgid ""
4273 " aug-load\n"
4274 "\n"
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
4279 msgid "Load files into the tree."
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
4284 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4285 msgstr ""
4286
4287 #. type: =head2
4288 #: ../fish/guestfish-actions.pod:305
4289 msgid "aug-ls"
4290 msgstr ""
4291
4292 #. type: verbatim
4293 #: ../fish/guestfish-actions.pod:307
4294 #, no-wrap
4295 msgid ""
4296 " aug-ls augpath\n"
4297 "\n"
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../fish/guestfish-actions.pod:309
4302 msgid ""
4303 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4304 "resulting nodes into alphabetical order."
4305 msgstr ""
4306
4307 #. type: =head2
4308 #: ../fish/guestfish-actions.pod:312
4309 msgid "aug-match"
4310 msgstr ""
4311
4312 #. type: verbatim
4313 #: ../fish/guestfish-actions.pod:314
4314 #, no-wrap
4315 msgid ""
4316 " aug-match augpath\n"
4317 "\n"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
4322 msgid ""
4323 "Returns a list of paths which match the path expression C<path>.  The "
4324 "returned paths are sufficiently qualified so that they match exactly one "
4325 "node in the current tree."
4326 msgstr ""
4327
4328 #. type: =head2
4329 #: ../fish/guestfish-actions.pod:320
4330 msgid "aug-mv"
4331 msgstr ""
4332
4333 #. type: verbatim
4334 #: ../fish/guestfish-actions.pod:322
4335 #, no-wrap
4336 msgid ""
4337 " aug-mv src dest\n"
4338 "\n"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
4343 msgid ""
4344 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4345 "C<dest> is overwritten if it exists."
4346 msgstr ""
4347
4348 #. type: =head2
4349 #: ../fish/guestfish-actions.pod:327
4350 msgid "aug-rm"
4351 msgstr ""
4352
4353 #. type: verbatim
4354 #: ../fish/guestfish-actions.pod:329
4355 #, no-wrap
4356 msgid ""
4357 " aug-rm augpath\n"
4358 "\n"
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
4363 msgid "Remove C<path> and all of its children."
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
4368 msgid "On success this returns the number of entries which were removed."
4369 msgstr ""
4370
4371 #. type: =head2
4372 #: ../fish/guestfish-actions.pod:335
4373 msgid "aug-save"
4374 msgstr ""
4375
4376 #. type: verbatim
4377 #: ../fish/guestfish-actions.pod:337
4378 #, no-wrap
4379 msgid ""
4380 " aug-save\n"
4381 "\n"
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
4386 msgid "This writes all pending changes to disk."
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../fish/guestfish-actions.pod:341
4391 msgid ""
4392 "The flags which were passed to L</aug-init> affect exactly how files are "
4393 "saved."
4394 msgstr ""
4395
4396 #. type: =head2
4397 #: ../fish/guestfish-actions.pod:344
4398 msgid "aug-set"
4399 msgstr ""
4400
4401 #. type: verbatim
4402 #: ../fish/guestfish-actions.pod:346
4403 #, no-wrap
4404 msgid ""
4405 " aug-set augpath val\n"
4406 "\n"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
4411 msgid "Set the value associated with C<path> to C<val>."
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../fish/guestfish-actions.pod:350
4416 msgid ""
4417 "In the Augeas API, it is possible to clear a node by setting the value to "
4418 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4419 "this call.  Instead you must use the L</aug-clear> call."
4420 msgstr ""
4421
4422 #. type: =head2
4423 #: ../fish/guestfish-actions.pod:355
4424 msgid "available"
4425 msgstr ""
4426
4427 #. type: verbatim
4428 #: ../fish/guestfish-actions.pod:357
4429 #, no-wrap
4430 msgid ""
4431 " available 'groups ...'\n"
4432 "\n"
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
4437 msgid ""
4438 "This command is used to check the availability of some groups of "
4439 "functionality in the appliance, which not all builds of the libguestfs "
4440 "appliance will be able to provide."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../fish/guestfish-actions.pod:363
4445 msgid ""
4446 "The libguestfs groups, and the functions that those groups correspond to, "
4447 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4448 "runtime by calling L</available-all-groups>."
4449 msgstr ""
4450
4451 #. type: textblock
4452 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
4453 msgid ""
4454 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4455 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4456 "and Augeas (configuration file editing) functions."
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4461 msgid "The command returns no error if I<all> requested groups are available."
4462 msgstr ""
4463
4464 #. type: textblock
4465 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
4466 msgid ""
4467 "It fails with an error if one or more of the requested groups is unavailable "
4468 "in the appliance."
4469 msgstr ""
4470
4471 #. type: textblock
4472 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4473 msgid ""
4474 "If an unknown group name is included in the list of groups then an error is "
4475 "always returned."
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
4480 msgid "I<Notes:>"
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../fish/guestfish-actions.pod:387
4485 msgid "You must call L</launch> before calling this function."
4486 msgstr ""
4487
4488 #. type: textblock
4489 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
4490 msgid ""
4491 "The reason is because we don't know what groups are supported by the "
4492 "appliance/daemon until it is running and can be queried."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
4497 msgid ""
4498 "If a group of functions is available, this does not necessarily mean that "
4499 "they will work.  You still have to check for errors when calling individual "
4500 "API functions even if they are available."
4501 msgstr ""
4502
4503 #. type: textblock
4504 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
4505 msgid ""
4506 "It is usually the job of distro packagers to build complete functionality "
4507 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4508 "with all requirements satisfied, will support everything."
4509 msgstr ""
4510
4511 #. type: textblock
4512 #: ../fish/guestfish-actions.pod:409
4513 msgid ""
4514 "This call was added in version C<1.0.80>.  In previous versions of "
4515 "libguestfs all you could do would be to speculatively execute a command to "
4516 "find out if the daemon implemented it.  See also L</version>."
4517 msgstr ""
4518
4519 #. type: =head2
4520 #: ../fish/guestfish-actions.pod:416
4521 msgid "available-all-groups"
4522 msgstr ""
4523
4524 #. type: verbatim
4525 #: ../fish/guestfish-actions.pod:418
4526 #, no-wrap
4527 msgid ""
4528 " available-all-groups\n"
4529 "\n"
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../fish/guestfish-actions.pod:420
4534 msgid ""
4535 "This command returns a list of all optional groups that this daemon knows "
4536 "about.  Note this returns both supported and unsupported groups.  To find "
4537 "out which ones the daemon can actually support you have to call "
4538 "L</available> on each member of the returned list."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../fish/guestfish-actions.pod:426
4543 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4544 msgstr ""
4545
4546 #. type: =head2
4547 #: ../fish/guestfish-actions.pod:428
4548 msgid "base64-in"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../fish/guestfish-actions.pod:430
4553 #, no-wrap
4554 msgid ""
4555 " base64-in (base64file|-) filename\n"
4556 "\n"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
4561 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444 ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862 ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255 ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670 ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692 ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753 ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
4566 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4567 msgstr ""
4568
4569 #. type: =head2
4570 #: ../fish/guestfish-actions.pod:437
4571 msgid "base64-out"
4572 msgstr ""
4573
4574 #. type: verbatim
4575 #: ../fish/guestfish-actions.pod:439
4576 #, no-wrap
4577 msgid ""
4578 " base64-out filename (base64file|-)\n"
4579 "\n"
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
4584 msgid ""
4585 "This command downloads the contents of C<filename>, writing it out to local "
4586 "file C<base64file> encoded as base64."
4587 msgstr ""
4588
4589 #. type: =head2
4590 #: ../fish/guestfish-actions.pod:446
4591 msgid "blockdev-flushbufs"
4592 msgstr ""
4593
4594 #. type: verbatim
4595 #: ../fish/guestfish-actions.pod:448
4596 #, no-wrap
4597 msgid ""
4598 " blockdev-flushbufs device\n"
4599 "\n"
4600 msgstr ""
4601
4602 #. type: textblock
4603 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
4604 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464 ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508 ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527 ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
4609 msgid "This uses the L<blockdev(8)> command."
4610 msgstr ""
4611
4612 #. type: =head2
4613 #: ../fish/guestfish-actions.pod:455
4614 msgid "blockdev-getbsz"
4615 msgstr ""
4616
4617 #. type: verbatim
4618 #: ../fish/guestfish-actions.pod:457
4619 #, no-wrap
4620 msgid ""
4621 " blockdev-getbsz device\n"
4622 "\n"
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
4627 msgid "This returns the block size of a device."
4628 msgstr ""
4629
4630 #. type: textblock
4631 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
4632 msgid ""
4633 "(Note this is different from both I<size in blocks> and I<filesystem block "
4634 "size>)."
4635 msgstr ""
4636
4637 #. type: =head2
4638 #: ../fish/guestfish-actions.pod:466
4639 msgid "blockdev-getro"
4640 msgstr ""
4641
4642 #. type: verbatim
4643 #: ../fish/guestfish-actions.pod:468
4644 #, no-wrap
4645 msgid ""
4646 " blockdev-getro device\n"
4647 "\n"
4648 msgstr ""
4649
4650 #. type: textblock
4651 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
4652 msgid ""
4653 "Returns a boolean indicating if the block device is read-only (true if "
4654 "read-only, false if not)."
4655 msgstr ""
4656
4657 #. type: =head2
4658 #: ../fish/guestfish-actions.pod:475
4659 msgid "blockdev-getsize64"
4660 msgstr ""
4661
4662 #. type: verbatim
4663 #: ../fish/guestfish-actions.pod:477
4664 #, no-wrap
4665 msgid ""
4666 " blockdev-getsize64 device\n"
4667 "\n"
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
4672 msgid "This returns the size of the device in bytes."
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../fish/guestfish-actions.pod:481
4677 msgid "See also L</blockdev-getsz>."
4678 msgstr ""
4679
4680 #. type: =head2
4681 #: ../fish/guestfish-actions.pod:485
4682 msgid "blockdev-getss"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../fish/guestfish-actions.pod:487
4687 #, no-wrap
4688 msgid ""
4689 " blockdev-getss device\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
4695 msgid ""
4696 "This returns the size of sectors on a block device.  Usually 512, but can be "
4697 "larger for modern devices."
4698 msgstr ""
4699
4700 #. type: textblock
4701 #: ../fish/guestfish-actions.pod:492
4702 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
4703 msgstr ""
4704
4705 #. type: =head2
4706 #: ../fish/guestfish-actions.pod:497
4707 msgid "blockdev-getsz"
4708 msgstr ""
4709
4710 #. type: verbatim
4711 #: ../fish/guestfish-actions.pod:499
4712 #, no-wrap
4713 msgid ""
4714 " blockdev-getsz device\n"
4715 "\n"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
4720 msgid ""
4721 "This returns the size of the device in units of 512-byte sectors (even if "
4722 "the sectorsize isn't 512 bytes ... weird)."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../fish/guestfish-actions.pod:504
4727 msgid ""
4728 "See also L</blockdev-getss> for the real sector size of the device, and "
4729 "L</blockdev-getsize64> for the more useful I<size in bytes>."
4730 msgstr ""
4731
4732 #. type: =head2
4733 #: ../fish/guestfish-actions.pod:510
4734 msgid "blockdev-rereadpt"
4735 msgstr ""
4736
4737 #. type: verbatim
4738 #: ../fish/guestfish-actions.pod:512
4739 #, no-wrap
4740 msgid ""
4741 " blockdev-rereadpt device\n"
4742 "\n"
4743 msgstr ""
4744
4745 #. type: textblock
4746 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
4747 msgid "Reread the partition table on C<device>."
4748 msgstr ""
4749
4750 #. type: =head2
4751 #: ../fish/guestfish-actions.pod:518
4752 msgid "blockdev-setbsz"
4753 msgstr ""
4754
4755 #. type: verbatim
4756 #: ../fish/guestfish-actions.pod:520
4757 #, no-wrap
4758 msgid ""
4759 " blockdev-setbsz device blocksize\n"
4760 "\n"
4761 msgstr ""
4762
4763 #. type: textblock
4764 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
4765 msgid "This sets the block size of a device."
4766 msgstr ""
4767
4768 #. type: =head2
4769 #: ../fish/guestfish-actions.pod:529
4770 msgid "blockdev-setro"
4771 msgstr ""
4772
4773 #. type: verbatim
4774 #: ../fish/guestfish-actions.pod:531
4775 #, no-wrap
4776 msgid ""
4777 " blockdev-setro device\n"
4778 "\n"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
4783 msgid "Sets the block device named C<device> to read-only."
4784 msgstr ""
4785
4786 #. type: =head2
4787 #: ../fish/guestfish-actions.pod:537
4788 msgid "blockdev-setrw"
4789 msgstr ""
4790
4791 #. type: verbatim
4792 #: ../fish/guestfish-actions.pod:539
4793 #, no-wrap
4794 msgid ""
4795 " blockdev-setrw device\n"
4796 "\n"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
4801 msgid "Sets the block device named C<device> to read-write."
4802 msgstr ""
4803
4804 #. type: =head2
4805 #: ../fish/guestfish-actions.pod:545
4806 msgid "btrfs-filesystem-resize"
4807 msgstr ""
4808
4809 #. type: verbatim
4810 #: ../fish/guestfish-actions.pod:547
4811 #, no-wrap
4812 msgid ""
4813 " btrfs-filesystem-resize mountpoint [size:..]\n"
4814 "\n"
4815 msgstr ""
4816
4817 #. type: textblock
4818 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
4819 msgid "This command resizes a btrfs filesystem."
4820 msgstr ""
4821
4822 #. type: textblock
4823 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
4824 msgid ""
4825 "Note that unlike other resize calls, the filesystem has to be mounted and "
4826 "the parameter is the mountpoint not the device (this is a requirement of "
4827 "btrfs itself)."
4828 msgstr ""
4829
4830 #. type: textblock
4831 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417 ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
4832 msgid "The optional parameters are:"
4833 msgstr ""
4834
4835 #. type: =item
4836 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
4837 msgid "C<size>"
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
4842 msgid ""
4843 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
4844 "resized to the maximum size."
4845 msgstr ""
4846
4847 #. type: textblock
4848 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
4849 msgid "See also L<btrfs(8)>."
4850 msgstr ""
4851
4852 #. type: =head2
4853 #: ../fish/guestfish-actions.pod:570
4854 msgid "case-sensitive-path"
4855 msgstr ""
4856
4857 #. type: verbatim
4858 #: ../fish/guestfish-actions.pod:572
4859 #, no-wrap
4860 msgid ""
4861 " case-sensitive-path path\n"
4862 "\n"
4863 msgstr ""
4864
4865 #. type: textblock
4866 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
4867 msgid ""
4868 "This can be used to resolve case insensitive paths on a filesystem which is "
4869 "case sensitive.  The use case is to resolve paths which you have read from "
4870 "Windows configuration files or the Windows Registry, to the true path."
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
4875 msgid ""
4876 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4877 "(and probably others), which is that although the underlying filesystem is "
4878 "case-insensitive, the driver exports the filesystem to Linux as "
4879 "case-sensitive."
4880 msgstr ""
4881
4882 #. type: textblock
4883 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
4884 msgid ""
4885 "One consequence of this is that special directories such as C<c:\\windows> "
4886 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4887 "precise details of how they were created.  In Windows itself this would not "
4888 "be a problem."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
4893 msgid ""
4894 "Bug or feature? You decide: "
4895 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
4900 msgid ""
4901 "This function resolves the true case of each element in the path and returns "
4902 "the case-sensitive path."
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../fish/guestfish-actions.pod:596
4907 msgid ""
4908 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
4909 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4910 "how the directories were originally created under Windows)."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
4915 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4916 msgstr ""
4917
4918 #. type: textblock
4919 #: ../fish/guestfish-actions.pod:604
4920 msgid "See also L</realpath>."
4921 msgstr ""
4922
4923 #. type: =head2
4924 #: ../fish/guestfish-actions.pod:606
4925 msgid "cat"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../fish/guestfish-actions.pod:608
4930 #, no-wrap
4931 msgid ""
4932 " cat path\n"
4933 "\n"
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
4938 msgid "Return the contents of the file named C<path>."
4939 msgstr ""
4940
4941 #. type: textblock
4942 #: ../fish/guestfish-actions.pod:612
4943 msgid ""
4944 "Note that this function cannot correctly handle binary files (specifically, "
4945 "files containing C<\\0> character which is treated as end of string).  For "
4946 "those you need to use the L</read-file> or L</download> functions which have "
4947 "a more complex interface."
4948 msgstr ""
4949
4950 #. type: textblock
4951 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752 ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219 ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536 ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579 ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722 ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815 ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630 ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051 ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081 ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108 ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167 ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438 ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560 ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825 ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315 ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382 ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640 ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797 ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973 ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662 ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
4952 msgid ""
4953 "Because of the message protocol, there is a transfer limit of somewhere "
4954 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4955 msgstr ""
4956
4957 #. type: =head2
4958 #: ../fish/guestfish-actions.pod:620
4959 msgid "checksum"
4960 msgstr ""
4961
4962 #. type: verbatim
4963 #: ../fish/guestfish-actions.pod:622
4964 #, no-wrap
4965 msgid ""
4966 " checksum csumtype path\n"
4967 "\n"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
4972 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4973 msgstr ""
4974
4975 #. type: textblock
4976 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
4977 msgid ""
4978 "The type of checksum to compute is given by the C<csumtype> parameter which "
4979 "must have one of the following values:"
4980 msgstr ""
4981
4982 #. type: =item
4983 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
4984 msgid "C<crc>"
4985 msgstr ""
4986
4987 #. type: textblock
4988 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
4989 msgid ""
4990 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4991 "C<cksum> command."
4992 msgstr ""
4993
4994 #. type: =item
4995 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
4996 msgid "C<md5>"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5001 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5002 msgstr ""
5003
5004 #. type: =item
5005 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5006 msgid "C<sha1>"
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5011 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5012 msgstr ""
5013
5014 #. type: =item
5015 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5016 msgid "C<sha224>"
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5021 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5022 msgstr ""
5023
5024 #. type: =item
5025 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5026 msgid "C<sha256>"
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5031 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5032 msgstr ""
5033
5034 #. type: =item
5035 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5036 msgid "C<sha384>"
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5041 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5042 msgstr ""
5043
5044 #. type: =item
5045 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5046 msgid "C<sha512>"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5051 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5052 msgstr ""
5053
5054 #. type: textblock
5055 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5056 msgid "The checksum is returned as a printable string."
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../fish/guestfish-actions.pod:665
5061 msgid "To get the checksum for a device, use L</checksum-device>."
5062 msgstr ""
5063
5064 #. type: textblock
5065 #: ../fish/guestfish-actions.pod:667
5066 msgid "To get the checksums for many files, use L</checksums-out>."
5067 msgstr ""
5068
5069 #. type: =head2
5070 #: ../fish/guestfish-actions.pod:669
5071 msgid "checksum-device"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../fish/guestfish-actions.pod:671
5076 #, no-wrap
5077 msgid ""
5078 " checksum-device csumtype device\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../fish/guestfish-actions.pod:673
5084 msgid ""
5085 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5086 "device named C<device>.  For the types of checksums supported see the "
5087 "L</checksum> command."
5088 msgstr ""
5089
5090 #. type: =head2
5091 #: ../fish/guestfish-actions.pod:677
5092 msgid "checksums-out"
5093 msgstr ""
5094
5095 #. type: verbatim
5096 #: ../fish/guestfish-actions.pod:679
5097 #, no-wrap
5098 msgid ""
5099 " checksums-out csumtype directory (sumsfile|-)\n"
5100 "\n"
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5105 msgid ""
5106 "This command computes the checksums of all regular files in C<directory> and "
5107 "then emits a list of those checksums to the local output file C<sumsfile>."
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5112 msgid ""
5113 "This can be used for verifying the integrity of a virtual machine.  However "
5114 "to be properly secure you should pay attention to the output of the checksum "
5115 "command (it uses the ones from GNU coreutils).  In particular when the "
5116 "filename is not printable, coreutils uses a special backslash syntax.  For "
5117 "more information, see the GNU coreutils info file."
5118 msgstr ""
5119
5120 #. type: =head2
5121 #: ../fish/guestfish-actions.pod:695
5122 msgid "chmod"
5123 msgstr ""
5124
5125 #. type: verbatim
5126 #: ../fish/guestfish-actions.pod:697
5127 #, no-wrap
5128 msgid ""
5129 " chmod mode path\n"
5130 "\n"
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
5135 msgid ""
5136 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5137 "supported."
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
5142 msgid ""
5143 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5144 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5145 "C<700>."
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209 ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
5150 msgid "The mode actually set is affected by the umask."
5151 msgstr ""
5152
5153 #. type: =head2
5154 #: ../fish/guestfish-actions.pod:708
5155 msgid "chown"
5156 msgstr ""
5157
5158 #. type: verbatim
5159 #: ../fish/guestfish-actions.pod:710
5160 #, no-wrap
5161 msgid ""
5162 " chown owner group path\n"
5163 "\n"
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
5168 msgid "Change the file owner to C<owner> and group to C<group>."
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
5173 msgid ""
5174 "Only numeric uid and gid are supported.  If you want to use names, you will "
5175 "need to locate and parse the password file yourself (Augeas support makes "
5176 "this relatively easy)."
5177 msgstr ""
5178
5179 #. type: =head2
5180 #: ../fish/guestfish-actions.pod:718
5181 msgid "command"
5182 msgstr ""
5183
5184 #. type: verbatim
5185 #: ../fish/guestfish-actions.pod:720
5186 #, no-wrap
5187 msgid ""
5188 " command 'arguments ...'\n"
5189 "\n"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
5194 msgid ""
5195 "This call runs a command from the guest filesystem.  The filesystem must be "
5196 "mounted, and must contain a compatible operating system (ie. something "
5197 "Linux, with the same or compatible processor architecture)."
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../fish/guestfish-actions.pod:727
5202 msgid ""
5203 "The single parameter is an argv-style list of arguments.  The first element "
5204 "is the name of the program to run.  Subsequent elements are parameters.  The "
5205 "list must be non-empty (ie. must contain a program name).  Note that the "
5206 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
5211 msgid "The return value is anything printed to I<stdout> by the command."
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
5216 msgid ""
5217 "If the command returns a non-zero exit status, then this function returns an "
5218 "error message.  The error message string is the content of I<stderr> from "
5219 "the command."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
5224 msgid ""
5225 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5226 "C</bin>.  If you require a program from another location, you should provide "
5227 "the full path in the first parameter."
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5232 msgid ""
5233 "Shared libraries and data files required by the program must be available on "
5234 "filesystems which are mounted in the correct places.  It is the caller's "
5235 "responsibility to ensure all filesystems that are needed are mounted at the "
5236 "right locations."
5237 msgstr ""
5238
5239 #. type: =head2
5240 #: ../fish/guestfish-actions.pod:755
5241 msgid "command-lines"
5242 msgstr ""
5243
5244 #. type: verbatim
5245 #: ../fish/guestfish-actions.pod:757
5246 #, no-wrap
5247 msgid ""
5248 " command-lines 'arguments ...'\n"
5249 "\n"
5250 msgstr ""
5251
5252 #. type: textblock
5253 #: ../fish/guestfish-actions.pod:759
5254 msgid "This is the same as L</command>, but splits the result into a list of lines."
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../fish/guestfish-actions.pod:762
5259 msgid "See also: L</sh-lines>"
5260 msgstr ""
5261
5262 #. type: =head2
5263 #: ../fish/guestfish-actions.pod:767
5264 msgid "config"
5265 msgstr ""
5266
5267 #. type: verbatim
5268 #: ../fish/guestfish-actions.pod:769
5269 #, no-wrap
5270 msgid ""
5271 " config qemuparam qemuvalue\n"
5272 "\n"
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
5277 msgid ""
5278 "This can be used to add arbitrary qemu command line parameters of the form "
5279 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5280 "setting some parameters which would interfere with parameters that we use."
5281 msgstr ""
5282
5283 #. type: textblock
5284 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5285 msgid "The first character of C<param> string must be a C<-> (dash)."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
5290 msgid "C<value> can be NULL."
5291 msgstr ""
5292
5293 #. type: =head2
5294 #: ../fish/guestfish-actions.pod:780
5295 msgid "copy-size"
5296 msgstr ""
5297
5298 #. type: verbatim
5299 #: ../fish/guestfish-actions.pod:782
5300 #, no-wrap
5301 msgid ""
5302 " copy-size src dest size\n"
5303 "\n"
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
5308 msgid ""
5309 "This command copies exactly C<size> bytes from one source device or file "
5310 "C<src> to another destination device or file C<dest>."
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
5315 msgid ""
5316 "Note this will fail if the source is too short or if the destination is not "
5317 "large enough."
5318 msgstr ""
5319
5320 #. type: =head2
5321 #: ../fish/guestfish-actions.pod:790
5322 msgid "cp"
5323 msgstr ""
5324
5325 #. type: verbatim
5326 #: ../fish/guestfish-actions.pod:792
5327 #, no-wrap
5328 msgid ""
5329 " cp src dest\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
5335 msgid ""
5336 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5337 "destination filename or destination directory."
5338 msgstr ""
5339
5340 #. type: =head2
5341 #: ../fish/guestfish-actions.pod:797
5342 msgid "cp-a"
5343 msgstr ""
5344
5345 #. type: verbatim
5346 #: ../fish/guestfish-actions.pod:799
5347 #, no-wrap
5348 msgid ""
5349 " cp-a src dest\n"
5350 "\n"
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
5355 msgid ""
5356 "This copies a file or directory from C<src> to C<dest> recursively using the "
5357 "C<cp -a> command."
5358 msgstr ""
5359
5360 #. type: =head2
5361 #: ../fish/guestfish-actions.pod:804
5362 msgid "dd"
5363 msgstr ""
5364
5365 #. type: verbatim
5366 #: ../fish/guestfish-actions.pod:806
5367 #, no-wrap
5368 msgid ""
5369 " dd src dest\n"
5370 "\n"
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
5375 msgid ""
5376 "This command copies from one source device or file C<src> to another "
5377 "destination device or file C<dest>.  Normally you would use this to copy to "
5378 "or from a device or partition, for example to duplicate a filesystem."
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../fish/guestfish-actions.pod:813
5383 msgid ""
5384 "If the destination is a device, it must be as large or larger than the "
5385 "source file or device, otherwise the copy will fail.  This command cannot do "
5386 "partial copies (see L</copy-size>)."
5387 msgstr ""
5388
5389 #. type: =head2
5390 #: ../fish/guestfish-actions.pod:817
5391 msgid "df"
5392 msgstr ""
5393
5394 #. type: verbatim
5395 #: ../fish/guestfish-actions.pod:819
5396 #, no-wrap
5397 msgid ""
5398 " df\n"
5399 "\n"
5400 msgstr ""
5401
5402 #. type: textblock
5403 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
5404 msgid "This command runs the C<df> command to report disk space used."
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
5409 msgid ""
5410 "This command is mostly useful for interactive sessions.  It is I<not> "
5411 "intended that you try to parse the output string.  Use L</statvfs> from "
5412 "programs."
5413 msgstr ""
5414
5415 #. type: =head2
5416 #: ../fish/guestfish-actions.pod:827
5417 msgid "df-h"
5418 msgstr ""
5419
5420 #. type: verbatim
5421 #: ../fish/guestfish-actions.pod:829
5422 #, no-wrap
5423 msgid ""
5424 " df-h\n"
5425 "\n"
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
5430 msgid ""
5431 "This command runs the C<df -h> command to report disk space used in "
5432 "human-readable format."
5433 msgstr ""
5434
5435 #. type: =head2
5436 #: ../fish/guestfish-actions.pod:838
5437 msgid "dmesg"
5438 msgstr ""
5439
5440 #. type: verbatim
5441 #: ../fish/guestfish-actions.pod:840
5442 #, no-wrap
5443 msgid ""
5444 " dmesg\n"
5445 "\n"
5446 msgstr ""
5447
5448 #. type: textblock
5449 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
5450 msgid ""
5451 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5452 "This is sometimes useful for extended debugging of problems."
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../fish/guestfish-actions.pod:846
5457 msgid ""
5458 "Another way to get the same information is to enable verbose messages with "
5459 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5460 "before running the program."
5461 msgstr ""
5462
5463 #. type: =head2
5464 #: ../fish/guestfish-actions.pod:851
5465 msgid "download"
5466 msgstr ""
5467
5468 #. type: verbatim
5469 #: ../fish/guestfish-actions.pod:853
5470 #, no-wrap
5471 msgid ""
5472 " download remotefilename (filename|-)\n"
5473 "\n"
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
5478 msgid ""
5479 "Download file C<remotefilename> and save it as C<filename> on the local "
5480 "machine."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
5485 msgid "C<filename> can also be a named pipe."
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../fish/guestfish-actions.pod:860
5490 msgid "See also L</upload>, L</cat>."
5491 msgstr ""
5492
5493 #. type: =head2
5494 #: ../fish/guestfish-actions.pod:864
5495 msgid "download-offset"
5496 msgstr ""
5497
5498 #. type: verbatim
5499 #: ../fish/guestfish-actions.pod:866
5500 #, no-wrap
5501 msgid ""
5502 " download-offset remotefilename (filename|-) offset size\n"
5503 "\n"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
5508 msgid ""
5509 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5510 "region must be within the file or device)."
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../fish/guestfish-actions.pod:874
5515 msgid ""
5516 "Note that there is no limit on the amount of data that can be downloaded "
5517 "with this call, unlike with L</pread>, and this call always reads the full "
5518 "amount unless an error occurs."
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../fish/guestfish-actions.pod:879
5523 msgid "See also L</download>, L</pread>."
5524 msgstr ""
5525
5526 #. type: =head2
5527 #: ../fish/guestfish-actions.pod:883
5528 msgid "drop-caches"
5529 msgstr ""
5530
5531 #. type: verbatim
5532 #: ../fish/guestfish-actions.pod:885
5533 #, no-wrap
5534 msgid ""
5535 " drop-caches whattodrop\n"
5536 "\n"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
5541 msgid ""
5542 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5543 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5544 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
5549 msgid "Setting C<whattodrop> to 3 should drop everything."
5550 msgstr ""
5551
5552 #. type: textblock
5553 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
5554 msgid ""
5555 "This automatically calls L<sync(2)> before the operation, so that the "
5556 "maximum guest memory is freed."
5557 msgstr ""
5558
5559 #. type: =head2
5560 #: ../fish/guestfish-actions.pod:897
5561 msgid "du"
5562 msgstr ""
5563
5564 #. type: verbatim
5565 #: ../fish/guestfish-actions.pod:899
5566 #, no-wrap
5567 msgid ""
5568 " du path\n"
5569 "\n"
5570 msgstr ""
5571
5572 #. type: textblock
5573 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
5574 msgid ""
5575 "This command runs the C<du -s> command to estimate file space usage for "
5576 "C<path>."
5577 msgstr ""
5578
5579 #. type: textblock
5580 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
5581 msgid ""
5582 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5583 "estimate includes the contents of the directory and all subdirectories "
5584 "(recursively)."
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
5589 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5590 msgstr ""
5591
5592 #. type: =head2
5593 #: ../fish/guestfish-actions.pod:911
5594 msgid "e2fsck-f"
5595 msgstr ""
5596
5597 #. type: verbatim
5598 #: ../fish/guestfish-actions.pod:913
5599 #, no-wrap
5600 msgid ""
5601 " e2fsck-f device\n"
5602 "\n"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
5607 msgid ""
5608 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5609 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5610 "clean (I<-f>)."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../fish/guestfish-actions.pod:919
5615 msgid ""
5616 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5617 "should use L</fsck>."
5618 msgstr ""
5619
5620 #. type: =head2
5621 #: ../fish/guestfish-actions.pod:922
5622 msgid "echo-daemon"
5623 msgstr ""
5624
5625 #. type: verbatim
5626 #: ../fish/guestfish-actions.pod:924
5627 #, no-wrap
5628 msgid ""
5629 " echo-daemon 'words ...'\n"
5630 "\n"
5631 msgstr ""
5632
5633 #. type: textblock
5634 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
5635 msgid ""
5636 "This command concatenates the list of C<words> passed with single spaces "
5637 "between them and returns the resulting string."
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
5642 msgid "You can use this command to test the connection through to the daemon."
5643 msgstr ""
5644
5645 #. type: textblock
5646 #: ../fish/guestfish-actions.pod:931
5647 msgid "See also L</ping-daemon>."
5648 msgstr ""
5649
5650 #. type: =head2
5651 #: ../fish/guestfish-actions.pod:933
5652 msgid "egrep"
5653 msgstr ""
5654
5655 #. type: verbatim
5656 #: ../fish/guestfish-actions.pod:935
5657 #, no-wrap
5658 msgid ""
5659 " egrep regex path\n"
5660 "\n"
5661 msgstr ""
5662
5663 #. type: textblock
5664 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
5665 msgid "This calls the external C<egrep> program and returns the matching lines."
5666 msgstr ""
5667
5668 #. type: =head2
5669 #: ../fish/guestfish-actions.pod:943
5670 msgid "egrepi"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../fish/guestfish-actions.pod:945
5675 #, no-wrap
5676 msgid ""
5677 " egrepi regex path\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
5683 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5684 msgstr ""
5685
5686 #. type: =head2
5687 #: ../fish/guestfish-actions.pod:953
5688 msgid "equal"
5689 msgstr ""
5690
5691 #. type: verbatim
5692 #: ../fish/guestfish-actions.pod:955
5693 #, no-wrap
5694 msgid ""
5695 " equal file1 file2\n"
5696 "\n"
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
5701 msgid ""
5702 "This compares the two files C<file1> and C<file2> and returns true if their "
5703 "content is exactly equal, or false otherwise."
5704 msgstr ""
5705
5706 #. type: textblock
5707 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
5708 msgid "The external L<cmp(1)> program is used for the comparison."
5709 msgstr ""
5710
5711 #. type: =head2
5712 #: ../fish/guestfish-actions.pod:962
5713 msgid "exists"
5714 msgstr ""
5715
5716 #. type: verbatim
5717 #: ../fish/guestfish-actions.pod:964
5718 #, no-wrap
5719 msgid ""
5720 " exists path\n"
5721 "\n"
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
5726 msgid ""
5727 "This returns C<true> if and only if there is a file, directory (or anything) "
5728 "with the given C<path> name."
5729 msgstr ""
5730
5731 #. type: textblock
5732 #: ../fish/guestfish-actions.pod:969
5733 msgid "See also L</is-file>, L</is-dir>, L</stat>."
5734 msgstr ""
5735
5736 #. type: =head2
5737 #: ../fish/guestfish-actions.pod:971
5738 msgid "fallocate"
5739 msgstr ""
5740
5741 #. type: verbatim
5742 #: ../fish/guestfish-actions.pod:973
5743 #, no-wrap
5744 msgid ""
5745 " fallocate path len\n"
5746 "\n"
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
5751 msgid ""
5752 "This command preallocates a file (containing zero bytes) named C<path> of "
5753 "size C<len> bytes.  If the file exists already, it is overwritten."
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1504
5758 msgid ""
5759 "Do not confuse this with the guestfish-specific C<alloc> command which "
5760 "allocates a file in the host and attaches it as a device."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:983
5765 msgid ""
5766 "This function is deprecated.  In new code, use the L</fallocate64> call "
5767 "instead."
5768 msgstr ""
5769
5770 #. type: =head2
5771 #: ../fish/guestfish-actions.pod:990
5772 msgid "fallocate64"
5773 msgstr ""
5774
5775 #. type: verbatim
5776 #: ../fish/guestfish-actions.pod:992
5777 #, no-wrap
5778 msgid ""
5779 " fallocate64 path len\n"
5780 "\n"
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../fish/guestfish-actions.pod:998
5785 msgid ""
5786 "Note that this call allocates disk blocks for the file.  To create a sparse "
5787 "file use L</truncate-size> instead."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:1001
5792 msgid ""
5793 "The deprecated call L</fallocate> does the same, but owing to an oversight "
5794 "it only allowed 30 bit lengths to be specified, effectively limiting the "
5795 "maximum size of files created through that call to 1GB."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
5800 msgid ""
5801 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5802 "commands which create a file in the host and attach it as a device."
5803 msgstr ""
5804
5805 #. type: =head2
5806 #: ../fish/guestfish-actions.pod:1010
5807 msgid "fgrep"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../fish/guestfish-actions.pod:1012
5812 #, no-wrap
5813 msgid ""
5814 " fgrep pattern path\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
5820 msgid "This calls the external C<fgrep> program and returns the matching lines."
5821 msgstr ""
5822
5823 #. type: =head2
5824 #: ../fish/guestfish-actions.pod:1020
5825 msgid "fgrepi"
5826 msgstr ""
5827
5828 #. type: verbatim
5829 #: ../fish/guestfish-actions.pod:1022
5830 #, no-wrap
5831 msgid ""
5832 " fgrepi pattern path\n"
5833 "\n"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
5838 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:1030
5843 msgid "file"
5844 msgstr ""
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:1032
5848 #, no-wrap
5849 msgid ""
5850 " file path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
5856 msgid ""
5857 "This call uses the standard L<file(1)> command to determine the type or "
5858 "contents of the file."
5859 msgstr ""
5860
5861 #. type: textblock
5862 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
5863 msgid ""
5864 "This call will also transparently look inside various types of compressed "
5865 "file."
5866 msgstr ""
5867
5868 #. type: textblock
5869 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
5870 msgid ""
5871 "The exact command which runs is C<file -zb path>.  Note in particular that "
5872 "the filename is not prepended to the output (the I<-b> option)."
5873 msgstr ""
5874
5875 #. type: textblock
5876 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
5877 msgid ""
5878 "The output depends on the output of the underlying L<file(1)> command and it "
5879 "can change in future in ways beyond our control.  In other words, the output "
5880 "is not guaranteed by the ABI."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:1048
5885 msgid ""
5886 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
5887 "(etc), L</is-zero>."
5888 msgstr ""
5889
5890 #. type: =head2
5891 #: ../fish/guestfish-actions.pod:1051
5892 msgid "file-architecture"
5893 msgstr ""
5894
5895 #. type: verbatim
5896 #: ../fish/guestfish-actions.pod:1053
5897 #, no-wrap
5898 msgid ""
5899 " file-architecture filename\n"
5900 "\n"
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
5905 msgid ""
5906 "This detects the architecture of the binary C<filename>, and returns it if "
5907 "known."
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
5912 msgid "Currently defined architectures are:"
5913 msgstr ""
5914
5915 #. type: =item
5916 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
5917 msgid "\"i386\""
5918 msgstr ""
5919
5920 #. type: textblock
5921 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
5922 msgid ""
5923 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5924 "irrespective of the precise processor requirements of the binary."
5925 msgstr ""
5926
5927 #. type: =item
5928 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
5929 msgid "\"x86_64\""
5930 msgstr ""
5931
5932 #. type: textblock
5933 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
5934 msgid "64 bit x86-64."
5935 msgstr ""
5936
5937 #. type: =item
5938 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
5939 msgid "\"sparc\""
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
5944 msgid "32 bit SPARC."
5945 msgstr ""
5946
5947 #. type: =item
5948 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
5949 msgid "\"sparc64\""
5950 msgstr ""
5951
5952 #. type: textblock
5953 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
5954 msgid "64 bit SPARC V9 and above."
5955 msgstr ""
5956
5957 #. type: =item
5958 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
5959 msgid "\"ia64\""
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
5964 msgid "Intel Itanium."
5965 msgstr ""
5966
5967 #. type: =item
5968 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
5969 msgid "\"ppc\""
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
5974 msgid "32 bit Power PC."
5975 msgstr ""
5976
5977 #. type: =item
5978 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
5979 msgid "\"ppc64\""
5980 msgstr ""
5981
5982 #. type: textblock
5983 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
5984 msgid "64 bit Power PC."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
5989 msgid "Libguestfs may return other architecture strings in future."
5990 msgstr ""
5991
5992 #. type: textblock
5993 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
5994 msgid "The function works on at least the following types of files:"
5995 msgstr ""
5996
5997 #. type: textblock
5998 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
5999 msgid "many types of Un*x and Linux binary"
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6004 msgid "many types of Un*x and Linux shared library"
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6009 msgid "Windows Win32 and Win64 binaries"
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6014 msgid "Windows Win32 and Win64 DLLs"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6019 msgid "Win32 binaries and DLLs return C<i386>."
6020 msgstr ""
6021
6022 #. type: textblock
6023 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6024 msgid "Win64 binaries and DLLs return C<x86_64>."
6025 msgstr ""
6026
6027 #. type: textblock
6028 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6029 msgid "Linux kernel modules"
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6034 msgid "Linux new-style initrd images"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6039 msgid "some non-x86 Linux vmlinuz kernels"
6040 msgstr ""
6041
6042 #. type: textblock
6043 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6044 msgid "What it can't do currently:"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6049 msgid "static libraries (libfoo.a)"
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6054 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6055 msgstr ""
6056
6057 #. type: textblock
6058 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6059 msgid "x86 Linux vmlinuz kernels"
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6064 msgid ""
6065 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6066 "compressed code, and are horribly hard to unpack.  If you want to find the "
6067 "architecture of a kernel, use the architecture of the associated initrd or "
6068 "kernel module(s) instead."
6069 msgstr ""
6070
6071 #. type: =head2
6072 #: ../fish/guestfish-actions.pod:1156
6073 msgid "filesize"
6074 msgstr ""
6075
6076 #. type: verbatim
6077 #: ../fish/guestfish-actions.pod:1158
6078 #, no-wrap
6079 msgid ""
6080 " filesize file\n"
6081 "\n"
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
6086 msgid "This command returns the size of C<file> in bytes."
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:1162
6091 msgid ""
6092 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6093 "L</is-file> etc.  To get the size of block devices, use "
6094 "L</blockdev-getsize64>."
6095 msgstr ""
6096
6097 #. type: =head2
6098 #: ../fish/guestfish-actions.pod:1166
6099 msgid "fill"
6100 msgstr ""
6101
6102 #. type: verbatim
6103 #: ../fish/guestfish-actions.pod:1168
6104 #, no-wrap
6105 msgid ""
6106 " fill c len path\n"
6107 "\n"
6108 msgstr ""
6109
6110 #. type: textblock
6111 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
6112 msgid ""
6113 "This command creates a new file called C<path>.  The initial content of the "
6114 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6115 "C<[0..255]>."
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../fish/guestfish-actions.pod:1174
6120 msgid ""
6121 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6122 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6123 "L</fill-pattern>."
6124 msgstr ""
6125
6126 #. type: =head2
6127 #: ../fish/guestfish-actions.pod:1179
6128 msgid "fill-pattern"
6129 msgstr ""
6130
6131 #. type: verbatim
6132 #: ../fish/guestfish-actions.pod:1181
6133 #, no-wrap
6134 msgid ""
6135 " fill-pattern pattern len path\n"
6136 "\n"
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:1183
6141 msgid ""
6142 "This function is like L</fill> except that it creates a new file of length "
6143 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6144 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6145 "bytes."
6146 msgstr ""
6147
6148 #. type: =head2
6149 #: ../fish/guestfish-actions.pod:1188
6150 msgid "find"
6151 msgstr ""
6152
6153 #. type: verbatim
6154 #: ../fish/guestfish-actions.pod:1190
6155 #, no-wrap
6156 msgid ""
6157 " find directory\n"
6158 "\n"
6159 msgstr ""
6160
6161 #. type: textblock
6162 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
6163 msgid ""
6164 "This command lists out all files and directories, recursively, starting at "
6165 "C<directory>.  It is essentially equivalent to running the shell command "
6166 "C<find directory -print> but some post-processing happens on the output, "
6167 "described below."
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6172 msgid ""
6173 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6174 "structure was:"
6175 msgstr ""
6176
6177 #. type: verbatim
6178 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
6179 #, no-wrap
6180 msgid ""
6181 " /tmp/a\n"
6182 " /tmp/b\n"
6183 " /tmp/c/d\n"
6184 "\n"
6185 msgstr ""
6186
6187 #. type: textblock
6188 #: ../fish/guestfish-actions.pod:1204
6189 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
6194 #, no-wrap
6195 msgid ""
6196 " a\n"
6197 " b\n"
6198 " c\n"
6199 " c/d\n"
6200 "\n"
6201 msgstr ""
6202
6203 #. type: textblock
6204 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6205 msgid "If C<directory> is not a directory, then this command returns an error."
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
6210 msgid "The returned list is sorted."
6211 msgstr ""
6212
6213 #. type: textblock
6214 #: ../fish/guestfish-actions.pod:1217
6215 msgid "See also L</find0>."
6216 msgstr ""
6217
6218 #. type: =head2
6219 #: ../fish/guestfish-actions.pod:1222
6220 msgid "find0"
6221 msgstr ""
6222
6223 #. type: verbatim
6224 #: ../fish/guestfish-actions.pod:1224
6225 #, no-wrap
6226 msgid ""
6227 " find0 directory (files|-)\n"
6228 "\n"
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
6233 msgid ""
6234 "This command lists out all files and directories, recursively, starting at "
6235 "C<directory>, placing the resulting list in the external file called "
6236 "C<files>."
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:1230
6241 msgid "This command works the same way as L</find> with the following exceptions:"
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
6246 msgid "The resulting list is written to an external file."
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
6251 msgid ""
6252 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6253 "L<find(1)> option I<-print0>."
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6258 msgid "This command is not limited in the number of names that it can return."
6259 msgstr ""
6260
6261 #. type: textblock
6262 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6263 msgid "The result list is not sorted."
6264 msgstr ""
6265
6266 #. type: =head2
6267 #: ../fish/guestfish-actions.pod:1257
6268 msgid "findfs-label"
6269 msgstr ""
6270
6271 #. type: verbatim
6272 #: ../fish/guestfish-actions.pod:1259
6273 #, no-wrap
6274 msgid ""
6275 " findfs-label label\n"
6276 "\n"
6277 msgstr ""
6278
6279 #. type: textblock
6280 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
6281 msgid ""
6282 "This command searches the filesystems and returns the one which has the "
6283 "given label.  An error is returned if no such filesystem can be found."
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:1265
6288 msgid "To find the label of a filesystem, use L</vfs-label>."
6289 msgstr ""
6290
6291 #. type: =head2
6292 #: ../fish/guestfish-actions.pod:1267
6293 msgid "findfs-uuid"
6294 msgstr ""
6295
6296 #. type: verbatim
6297 #: ../fish/guestfish-actions.pod:1269
6298 #, no-wrap
6299 msgid ""
6300 " findfs-uuid uuid\n"
6301 "\n"
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
6306 msgid ""
6307 "This command searches the filesystems and returns the one which has the "
6308 "given UUID.  An error is returned if no such filesystem can be found."
6309 msgstr ""
6310
6311 #. type: textblock
6312 #: ../fish/guestfish-actions.pod:1275
6313 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6314 msgstr ""
6315
6316 #. type: =head2
6317 #: ../fish/guestfish-actions.pod:1277
6318 msgid "fsck"
6319 msgstr ""
6320
6321 #. type: verbatim
6322 #: ../fish/guestfish-actions.pod:1279
6323 #, no-wrap
6324 msgid ""
6325 " fsck fstype device\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
6331 msgid ""
6332 "This runs the filesystem checker (fsck) on C<device> which should have "
6333 "filesystem type C<fstype>."
6334 msgstr ""
6335
6336 #. type: textblock
6337 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
6338 msgid ""
6339 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6340 "codes from C<fsck>."
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
6345 msgid "Multiple status codes can be summed together."
6346 msgstr ""
6347
6348 #. type: textblock
6349 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
6350 msgid ""
6351 "A non-zero return code can mean \"success\", for example if errors have been "
6352 "corrected on the filesystem."
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6357 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6362 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6363 msgstr ""
6364
6365 #. type: =head2
6366 #: ../fish/guestfish-actions.pod:1309
6367 msgid "get-append"
6368 msgstr ""
6369
6370 #. type: verbatim
6371 #: ../fish/guestfish-actions.pod:1311
6372 #, no-wrap
6373 msgid ""
6374 " get-append\n"
6375 "\n"
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
6380 msgid ""
6381 "Return the additional kernel options which are added to the guest kernel "
6382 "command line."
6383 msgstr ""
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
6387 msgid "If C<NULL> then no options are added."
6388 msgstr ""
6389
6390 #. type: =head2
6391 #: ../fish/guestfish-actions.pod:1318
6392 msgid "get-attach-method"
6393 msgstr ""
6394
6395 #. type: verbatim
6396 #: ../fish/guestfish-actions.pod:1320
6397 #, no-wrap
6398 msgid ""
6399 " get-attach-method\n"
6400 "\n"
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:1322
6405 msgid "Return the current attach method.  See L</set-attach-method>."
6406 msgstr ""
6407
6408 #. type: =head2
6409 #: ../fish/guestfish-actions.pod:1324
6410 msgid "get-autosync"
6411 msgstr ""
6412
6413 #. type: verbatim
6414 #: ../fish/guestfish-actions.pod:1326
6415 #, no-wrap
6416 msgid ""
6417 " get-autosync\n"
6418 "\n"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
6423 msgid "Get the autosync flag."
6424 msgstr ""
6425
6426 #. type: =head2
6427 #: ../fish/guestfish-actions.pod:1330
6428 msgid "get-direct"
6429 msgstr ""
6430
6431 #. type: verbatim
6432 #: ../fish/guestfish-actions.pod:1332
6433 #, no-wrap
6434 msgid ""
6435 " get-direct\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
6441 msgid "Return the direct appliance mode flag."
6442 msgstr ""
6443
6444 #. type: =head2
6445 #: ../fish/guestfish-actions.pod:1336
6446 msgid "get-e2label"
6447 msgstr ""
6448
6449 #. type: verbatim
6450 #: ../fish/guestfish-actions.pod:1338
6451 #, no-wrap
6452 msgid ""
6453 " get-e2label device\n"
6454 "\n"
6455 msgstr ""
6456
6457 #. type: textblock
6458 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:1999
6459 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6460 msgstr ""
6461
6462 #. type: textblock
6463 #: ../fish/guestfish-actions.pod:1343
6464 msgid ""
6465 "This function is deprecated.  In new code, use the L</vfs_label> call "
6466 "instead."
6467 msgstr ""
6468
6469 #. type: =head2
6470 #: ../fish/guestfish-actions.pod:1350
6471 msgid "get-e2uuid"
6472 msgstr ""
6473
6474 #. type: verbatim
6475 #: ../fish/guestfish-actions.pod:1352
6476 #, no-wrap
6477 msgid ""
6478 " get-e2uuid device\n"
6479 "\n"
6480 msgstr ""
6481
6482 #. type: textblock
6483 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2020
6484 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../fish/guestfish-actions.pod:1357
6489 msgid ""
6490 "This function is deprecated.  In new code, use the L</vfs_uuid> call "
6491 "instead."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../fish/guestfish-actions.pod:1364
6496 msgid "get-memsize"
6497 msgstr ""
6498
6499 #. type: verbatim
6500 #: ../fish/guestfish-actions.pod:1366
6501 #, no-wrap
6502 msgid ""
6503 " get-memsize\n"
6504 "\n"
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
6509 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6510 msgstr ""
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:1371
6514 msgid ""
6515 "If L</set-memsize> was not called on this handle, and if "
6516 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6517 "value for memsize."
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432 ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
6522 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6523 msgstr ""
6524
6525 #. type: =head2
6526 #: ../fish/guestfish-actions.pod:1378
6527 msgid "get-network"
6528 msgstr ""
6529
6530 #. type: verbatim
6531 #: ../fish/guestfish-actions.pod:1380
6532 #, no-wrap
6533 msgid ""
6534 " get-network\n"
6535 "\n"
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
6540 msgid "This returns the enable network flag."
6541 msgstr ""
6542
6543 #. type: =head2
6544 #: ../fish/guestfish-actions.pod:1384
6545 msgid "get-path"
6546 msgstr ""
6547
6548 #. type: verbatim
6549 #: ../fish/guestfish-actions.pod:1386
6550 #, no-wrap
6551 msgid ""
6552 " get-path\n"
6553 "\n"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
6558 msgid "Return the current search path."
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
6563 msgid ""
6564 "This is always non-NULL.  If it wasn't set already, then this will return "
6565 "the default path."
6566 msgstr ""
6567
6568 #. type: =head2
6569 #: ../fish/guestfish-actions.pod:1393
6570 msgid "get-pgroup"
6571 msgstr ""
6572
6573 #. type: verbatim
6574 #: ../fish/guestfish-actions.pod:1395
6575 #, no-wrap
6576 msgid ""
6577 " get-pgroup\n"
6578 "\n"
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
6583 msgid "This returns the process group flag."
6584 msgstr ""
6585
6586 #. type: =head2
6587 #: ../fish/guestfish-actions.pod:1399
6588 msgid "get-pid"
6589 msgstr ""
6590
6591 #. type: =head2
6592 #: ../fish/guestfish-actions.pod:1401
6593 msgid "pid"
6594 msgstr ""
6595
6596 #. type: verbatim
6597 #: ../fish/guestfish-actions.pod:1403
6598 #, no-wrap
6599 msgid ""
6600 " get-pid\n"
6601 "\n"
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
6606 msgid ""
6607 "Return the process ID of the qemu subprocess.  If there is no qemu "
6608 "subprocess, then this will return an error."
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
6613 msgid "This is an internal call used for debugging and testing."
6614 msgstr ""
6615
6616 #. type: =head2
6617 #: ../fish/guestfish-actions.pod:1410
6618 msgid "get-qemu"
6619 msgstr ""
6620
6621 #. type: verbatim
6622 #: ../fish/guestfish-actions.pod:1412
6623 #, no-wrap
6624 msgid ""
6625 " get-qemu\n"
6626 "\n"
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
6631 msgid "Return the current qemu binary."
6632 msgstr ""
6633
6634 #. type: textblock
6635 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
6636 msgid ""
6637 "This is always non-NULL.  If it wasn't set already, then this will return "
6638 "the default qemu binary name."
6639 msgstr ""
6640
6641 #. type: =head2
6642 #: ../fish/guestfish-actions.pod:1419
6643 msgid "get-recovery-proc"
6644 msgstr ""
6645
6646 #. type: verbatim
6647 #: ../fish/guestfish-actions.pod:1421
6648 #, no-wrap
6649 msgid ""
6650 " get-recovery-proc\n"
6651 "\n"
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
6656 msgid "Return the recovery process enabled flag."
6657 msgstr ""
6658
6659 #. type: =head2
6660 #: ../fish/guestfish-actions.pod:1425
6661 msgid "get-selinux"
6662 msgstr ""
6663
6664 #. type: verbatim
6665 #: ../fish/guestfish-actions.pod:1427
6666 #, no-wrap
6667 msgid ""
6668 " get-selinux\n"
6669 "\n"
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:1429
6674 msgid ""
6675 "This returns the current setting of the selinux flag which is passed to the "
6676 "appliance at boot time.  See L</set-selinux>."
6677 msgstr ""
6678
6679 #. type: =head2
6680 #: ../fish/guestfish-actions.pod:1435
6681 msgid "get-state"
6682 msgstr ""
6683
6684 #. type: verbatim
6685 #: ../fish/guestfish-actions.pod:1437
6686 #, no-wrap
6687 msgid ""
6688 " get-state\n"
6689 "\n"
6690 msgstr ""
6691
6692 #. type: textblock
6693 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
6694 msgid ""
6695 "This returns the current state as an opaque integer.  This is only useful "
6696 "for printing debug and internal error messages."
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418 ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
6701 msgid "For more information on states, see L<guestfs(3)>."
6702 msgstr ""
6703
6704 #. type: =head2
6705 #: ../fish/guestfish-actions.pod:1444
6706 msgid "get-trace"
6707 msgstr ""
6708
6709 #. type: verbatim
6710 #: ../fish/guestfish-actions.pod:1446
6711 #, no-wrap
6712 msgid ""
6713 " get-trace\n"
6714 "\n"
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
6719 msgid "Return the command trace flag."
6720 msgstr ""
6721
6722 #. type: =head2
6723 #: ../fish/guestfish-actions.pod:1450
6724 msgid "get-umask"
6725 msgstr ""
6726
6727 #. type: verbatim
6728 #: ../fish/guestfish-actions.pod:1452
6729 #, no-wrap
6730 msgid ""
6731 " get-umask\n"
6732 "\n"
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:1454
6737 msgid ""
6738 "Return the current umask.  By default the umask is C<022> unless it has been "
6739 "set by calling L</umask>."
6740 msgstr ""
6741
6742 #. type: =head2
6743 #: ../fish/guestfish-actions.pod:1457
6744 msgid "get-verbose"
6745 msgstr ""
6746
6747 #. type: verbatim
6748 #: ../fish/guestfish-actions.pod:1459
6749 #, no-wrap
6750 msgid ""
6751 " get-verbose\n"
6752 "\n"
6753 msgstr ""
6754
6755 #. type: textblock
6756 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
6757 msgid "This returns the verbose messages flag."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1463
6762 msgid "getcon"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1465
6767 #, no-wrap
6768 msgid ""
6769 " getcon\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
6775 msgid "This gets the SELinux security context of the daemon."
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:1469
6780 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
6781 msgstr ""
6782
6783 #. type: =head2
6784 #: ../fish/guestfish-actions.pod:1472
6785 msgid "getxattr"
6786 msgstr ""
6787
6788 #. type: verbatim
6789 #: ../fish/guestfish-actions.pod:1474
6790 #, no-wrap
6791 msgid ""
6792 " getxattr path name\n"
6793 "\n"
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1476
6798 msgid ""
6799 "Get a single extended attribute from file C<path> named C<name>.  This call "
6800 "follows symlinks.  If you want to lookup an extended attribute for the "
6801 "symlink itself, use L</lgetxattr>."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
6806 msgid ""
6807 "Normally it is better to get all extended attributes from a file in one go "
6808 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
6809 "buggy and do not provide a way to list out attributes.  For these "
6810 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
6811 "attributes you want in advance and call this function."
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
6816 msgid ""
6817 "Extended attribute values are blobs of binary data.  If there is no extended "
6818 "attribute named C<name>, this returns an error."
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:1490
6823 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
6824 msgstr ""
6825
6826 #. type: =head2
6827 #: ../fish/guestfish-actions.pod:1492
6828 msgid "getxattrs"
6829 msgstr ""
6830
6831 #. type: verbatim
6832 #: ../fish/guestfish-actions.pod:1494
6833 #, no-wrap
6834 msgid ""
6835 " getxattrs path\n"
6836 "\n"
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
6841 msgid "This call lists the extended attributes of the file or directory C<path>."
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
6846 msgid ""
6847 "At the system call level, this is a combination of the L<listxattr(2)> and "
6848 "L<getxattr(2)> calls."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:1502
6853 msgid "See also: L</lgetxattrs>, L<attr(5)>."
6854 msgstr ""
6855
6856 #. type: =head2
6857 #: ../fish/guestfish-actions.pod:1504
6858 msgid "glob-expand"
6859 msgstr ""
6860
6861 #. type: verbatim
6862 #: ../fish/guestfish-actions.pod:1506
6863 #, no-wrap
6864 msgid ""
6865 " glob-expand pattern\n"
6866 "\n"
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
6871 msgid ""
6872 "This command searches for all the pathnames matching C<pattern> according to "
6873 "the wildcard expansion rules used by the shell."
6874 msgstr ""
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
6878 msgid "If no paths match, then this returns an empty list (note: not an error)."
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
6883 msgid ""
6884 "It is just a wrapper around the C L<glob(3)> function with flags "
6885 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6886 msgstr ""
6887
6888 #. type: =head2
6889 #: ../fish/guestfish-actions.pod:1519
6890 msgid "grep"
6891 msgstr ""
6892
6893 #. type: verbatim
6894 #: ../fish/guestfish-actions.pod:1521
6895 #, no-wrap
6896 msgid ""
6897 " grep regex path\n"
6898 "\n"
6899 msgstr ""
6900
6901 #. type: textblock
6902 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
6903 msgid "This calls the external C<grep> program and returns the matching lines."
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../fish/guestfish-actions.pod:1529
6908 msgid "grepi"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../fish/guestfish-actions.pod:1531
6913 #, no-wrap
6914 msgid ""
6915 " grepi regex path\n"
6916 "\n"
6917 msgstr ""
6918
6919 #. type: textblock
6920 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
6921 msgid "This calls the external C<grep -i> program and returns the matching lines."
6922 msgstr ""
6923
6924 #. type: =head2
6925 #: ../fish/guestfish-actions.pod:1539
6926 msgid "grub-install"
6927 msgstr ""
6928
6929 #. type: verbatim
6930 #: ../fish/guestfish-actions.pod:1541
6931 #, no-wrap
6932 msgid ""
6933 " grub-install root device\n"
6934 "\n"
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
6939 msgid ""
6940 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6941 "the root directory being C<root>."
6942 msgstr ""
6943
6944 #. type: textblock
6945 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
6946 msgid ""
6947 "Note: If grub-install reports the error \"No suitable drive was found in the "
6948 "generated device map.\" it may be that you need to create a "
6949 "C</boot/grub/device.map> file first that contains the mapping between grub "
6950 "device names and Linux device names.  It is usually sufficient to create a "
6951 "file containing:"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
6956 #, no-wrap
6957 msgid ""
6958 " (hd0) /dev/vda\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
6964 msgid "replacing C</dev/vda> with the name of the installation device."
6965 msgstr ""
6966
6967 #. type: =head2
6968 #: ../fish/guestfish-actions.pod:1557
6969 msgid "head"
6970 msgstr ""
6971
6972 #. type: verbatim
6973 #: ../fish/guestfish-actions.pod:1559
6974 #, no-wrap
6975 msgid ""
6976 " head path\n"
6977 "\n"
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
6982 msgid ""
6983 "This command returns up to the first 10 lines of a file as a list of "
6984 "strings."
6985 msgstr ""
6986
6987 #. type: =head2
6988 #: ../fish/guestfish-actions.pod:1567
6989 msgid "head-n"
6990 msgstr ""
6991
6992 #. type: verbatim
6993 #: ../fish/guestfish-actions.pod:1569
6994 #, no-wrap
6995 msgid ""
6996 " head-n nrlines path\n"
6997 "\n"
6998 msgstr ""
6999
7000 #. type: textblock
7001 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7002 msgid ""
7003 "If the parameter C<nrlines> is a positive number, this returns the first "
7004 "C<nrlines> lines of the file C<path>."
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
7009 msgid ""
7010 "If the parameter C<nrlines> is a negative number, this returns lines from "
7011 "the file C<path>, excluding the last C<nrlines> lines."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
7016 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7017 msgstr ""
7018
7019 #. type: =head2
7020 #: ../fish/guestfish-actions.pod:1582
7021 msgid "hexdump"
7022 msgstr ""
7023
7024 #. type: verbatim
7025 #: ../fish/guestfish-actions.pod:1584
7026 #, no-wrap
7027 msgid ""
7028 " hexdump path\n"
7029 "\n"
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
7034 msgid ""
7035 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7036 "human-readable, canonical hex dump of the file."
7037 msgstr ""
7038
7039 #. type: =head2
7040 #: ../fish/guestfish-actions.pod:1592
7041 msgid "initrd-cat"
7042 msgstr ""
7043
7044 #. type: verbatim
7045 #: ../fish/guestfish-actions.pod:1594
7046 #, no-wrap
7047 msgid ""
7048 " initrd-cat initrdpath filename\n"
7049 "\n"
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
7054 msgid ""
7055 "This command unpacks the file C<filename> from the initrd file called "
7056 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7057 "character."
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
7062 msgid ""
7063 "For example, in guestfish you could use the following command to examine the "
7064 "boot script (usually called C</init>)  contained in a Linux initrd or "
7065 "initramfs image:"
7066 msgstr ""
7067
7068 #. type: verbatim
7069 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
7070 #, no-wrap
7071 msgid ""
7072 " initrd-cat /boot/initrd-<version>.img init\n"
7073 "\n"
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../fish/guestfish-actions.pod:1606
7078 msgid "See also L</initrd-list>."
7079 msgstr ""
7080
7081 #. type: =head2
7082 #: ../fish/guestfish-actions.pod:1611
7083 msgid "initrd-list"
7084 msgstr ""
7085
7086 #. type: verbatim
7087 #: ../fish/guestfish-actions.pod:1613
7088 #, no-wrap
7089 msgid ""
7090 " initrd-list path\n"
7091 "\n"
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
7096 msgid "This command lists out files contained in an initrd."
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
7101 msgid ""
7102 "The files are listed without any initial C</> character.  The files are "
7103 "listed in the order they appear (not necessarily alphabetical).  Directory "
7104 "names are listed as separate items."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
7109 msgid ""
7110 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7111 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7112 "files)."
7113 msgstr ""
7114
7115 #. type: =head2
7116 #: ../fish/guestfish-actions.pod:1625
7117 msgid "inotify-add-watch"
7118 msgstr ""
7119
7120 #. type: verbatim
7121 #: ../fish/guestfish-actions.pod:1627
7122 #, no-wrap
7123 msgid ""
7124 " inotify-add-watch path mask\n"
7125 "\n"
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
7130 msgid "Watch C<path> for the events listed in C<mask>."
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
7135 msgid ""
7136 "Note that if C<path> is a directory then events within that directory are "
7137 "watched, but this does I<not> happen recursively (in subdirectories)."
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
7142 msgid ""
7143 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7144 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7145 msgstr ""
7146
7147 #. type: =head2
7148 #: ../fish/guestfish-actions.pod:1639
7149 msgid "inotify-close"
7150 msgstr ""
7151
7152 #. type: verbatim
7153 #: ../fish/guestfish-actions.pod:1641
7154 #, no-wrap
7155 msgid ""
7156 " inotify-close\n"
7157 "\n"
7158 msgstr ""
7159
7160 #. type: textblock
7161 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
7162 msgid ""
7163 "This closes the inotify handle which was previously opened by inotify_init.  "
7164 "It removes all watches, throws away any pending events, and deallocates all "
7165 "resources."
7166 msgstr ""
7167
7168 #. type: =head2
7169 #: ../fish/guestfish-actions.pod:1647
7170 msgid "inotify-files"
7171 msgstr ""
7172
7173 #. type: verbatim
7174 #: ../fish/guestfish-actions.pod:1649
7175 #, no-wrap
7176 msgid ""
7177 " inotify-files\n"
7178 "\n"
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:1651
7183 msgid ""
7184 "This function is a helpful wrapper around L</inotify-read> which just "
7185 "returns a list of pathnames of objects that were touched.  The returned "
7186 "pathnames are sorted and deduplicated."
7187 msgstr ""
7188
7189 #. type: =head2
7190 #: ../fish/guestfish-actions.pod:1655
7191 msgid "inotify-init"
7192 msgstr ""
7193
7194 #. type: verbatim
7195 #: ../fish/guestfish-actions.pod:1657
7196 #, no-wrap
7197 msgid ""
7198 " inotify-init maxevents\n"
7199 "\n"
7200 msgstr ""
7201
7202 #. type: textblock
7203 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
7204 msgid ""
7205 "This command creates a new inotify handle.  The inotify subsystem can be "
7206 "used to notify events which happen to objects in the guest filesystem."
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:1663
7211 msgid ""
7212 "C<maxevents> is the maximum number of events which will be queued up between "
7213 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7214 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7215 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7216 "but records the fact that it threw them away by setting a flag "
7217 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../fish/guestfish-actions.pod:1673
7222 msgid ""
7223 "Before any events are generated, you have to add some watches to the "
7224 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7225 "L</inotify-watch-all>."
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:1679
7230 msgid ""
7231 "Queued up events should be read periodically by calling L</inotify-read> (or "
7232 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7233 "If you don't read the events out often enough then you risk the internal "
7234 "queue overflowing."
7235 msgstr ""
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:1686
7239 msgid ""
7240 "The handle should be closed after use by calling L</inotify-close>.  This "
7241 "also removes any watches automatically."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
7246 msgid ""
7247 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7248 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7249 "that there is one global inotify handle per libguestfs instance."
7250 msgstr ""
7251
7252 #. type: =head2
7253 #: ../fish/guestfish-actions.pod:1695
7254 msgid "inotify-read"
7255 msgstr ""
7256
7257 #. type: verbatim
7258 #: ../fish/guestfish-actions.pod:1697
7259 #, no-wrap
7260 msgid ""
7261 " inotify-read\n"
7262 "\n"
7263 msgstr ""
7264
7265 #. type: textblock
7266 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
7267 msgid ""
7268 "Return the complete queue of events that have happened since the previous "
7269 "read call."
7270 msgstr ""
7271
7272 #. type: textblock
7273 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
7274 msgid "If no events have happened, this returns an empty list."
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7279 msgid ""
7280 "I<Note>: In order to make sure that all events have been read, you must call "
7281 "this function repeatedly until it returns an empty list.  The reason is that "
7282 "the call will read events up to the maximum appliance-to-host message size "
7283 "and leave remaining events in the queue."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:1710
7288 msgid "inotify-rm-watch"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:1712
7293 #, no-wrap
7294 msgid ""
7295 " inotify-rm-watch wd\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:1714
7301 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7302 msgstr ""
7303
7304 #. type: =head2
7305 #: ../fish/guestfish-actions.pod:1717
7306 msgid "inspect-get-arch"
7307 msgstr ""
7308
7309 #. type: verbatim
7310 #: ../fish/guestfish-actions.pod:1719
7311 #, no-wrap
7312 msgid ""
7313 " inspect-get-arch root\n"
7314 "\n"
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:1721
7319 msgid ""
7320 "This returns the architecture of the inspected operating system.  The "
7321 "possible return values are listed under L</file-architecture>."
7322 msgstr ""
7323
7324 #. type: textblock
7325 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
7326 msgid ""
7327 "If the architecture could not be determined, then the string C<unknown> is "
7328 "returned."
7329 msgstr ""
7330
7331 #. type: textblock
7332 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082 ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200 ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
7333 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7334 msgstr ""
7335
7336 #. type: =head2
7337 #: ../fish/guestfish-actions.pod:1730
7338 msgid "inspect-get-distro"
7339 msgstr ""
7340
7341 #. type: verbatim
7342 #: ../fish/guestfish-actions.pod:1732
7343 #, no-wrap
7344 msgid ""
7345 " inspect-get-distro root\n"
7346 "\n"
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
7351 msgid "This returns the distro (distribution) of the inspected operating system."
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
7356 msgid "Currently defined distros are:"
7357 msgstr ""
7358
7359 #. type: =item
7360 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
7361 msgid "\"archlinux\""
7362 msgstr ""
7363
7364 #. type: textblock
7365 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
7366 msgid "Arch Linux."
7367 msgstr ""
7368
7369 #. type: =item
7370 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
7371 msgid "\"centos\""
7372 msgstr ""
7373
7374 #. type: textblock
7375 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
7376 msgid "CentOS."
7377 msgstr ""
7378
7379 #. type: =item
7380 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
7381 msgid "\"debian\""
7382 msgstr ""
7383
7384 #. type: textblock
7385 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
7386 msgid "Debian."
7387 msgstr ""
7388
7389 #. type: =item
7390 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
7391 msgid "\"fedora\""
7392 msgstr ""
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
7396 msgid "Fedora."
7397 msgstr ""
7398
7399 #. type: =item
7400 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
7401 msgid "\"gentoo\""
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
7406 msgid "Gentoo."
7407 msgstr ""
7408
7409 #. type: =item
7410 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7411 msgid "\"linuxmint\""
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
7416 msgid "Linux Mint."
7417 msgstr ""
7418
7419 #. type: =item
7420 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
7421 msgid "\"mandriva\""
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
7426 msgid "Mandriva."
7427 msgstr ""
7428
7429 #. type: =item
7430 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
7431 msgid "\"meego\""
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
7436 msgid "MeeGo."
7437 msgstr ""
7438
7439 #. type: =item
7440 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
7441 msgid "\"pardus\""
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
7446 msgid "Pardus."
7447 msgstr ""
7448
7449 #. type: =item
7450 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
7451 msgid "\"redhat-based\""
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
7456 msgid "Some Red Hat-derived distro."
7457 msgstr ""
7458
7459 #. type: =item
7460 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
7461 msgid "\"rhel\""
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
7466 msgid "Red Hat Enterprise Linux."
7467 msgstr ""
7468
7469 #. type: =item
7470 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
7471 msgid "\"scientificlinux\""
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
7476 msgid "Scientific Linux."
7477 msgstr ""
7478
7479 #. type: =item
7480 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
7481 msgid "\"slackware\""
7482 msgstr ""
7483
7484 #. type: textblock
7485 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
7486 msgid "Slackware."
7487 msgstr ""
7488
7489 #. type: =item
7490 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
7491 msgid "\"ubuntu\""
7492 msgstr ""
7493
7494 #. type: textblock
7495 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
7496 msgid "Ubuntu."
7497 msgstr ""
7498
7499 #. type: =item
7500 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
7501 msgid "\"unknown\""
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
7506 msgid "The distro could not be determined."
7507 msgstr ""
7508
7509 #. type: =item
7510 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137 ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
7511 msgid "\"windows\""
7512 msgstr ""
7513
7514 #. type: textblock
7515 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
7516 msgid ""
7517 "Windows does not have distributions.  This string is returned if the OS type "
7518 "is Windows."
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
7523 msgid ""
7524 "Future versions of libguestfs may return other strings here.  The caller "
7525 "should be prepared to handle any string."
7526 msgstr ""
7527
7528 #. type: =head2
7529 #: ../fish/guestfish-actions.pod:1813
7530 msgid "inspect-get-drive-mappings"
7531 msgstr ""
7532
7533 #. type: verbatim
7534 #: ../fish/guestfish-actions.pod:1815
7535 #, no-wrap
7536 msgid ""
7537 " inspect-get-drive-mappings root\n"
7538 "\n"
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
7543 msgid ""
7544 "This call is useful for Windows which uses a primitive system of assigning "
7545 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7546 "Windows Registry to find out how disks/partitions are mapped to drive "
7547 "letters, and returns a hash table as in the example below:"
7548 msgstr ""
7549
7550 #. type: verbatim
7551 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
7552 #, no-wrap
7553 msgid ""
7554 " C      =>     /dev/vda2\n"
7555 " E      =>     /dev/vdb1\n"
7556 " F      =>     /dev/vdc1\n"
7557 "\n"
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
7562 msgid ""
7563 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7564 "and just contains the drive letter, without the customary colon separator "
7565 "character."
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
7570 msgid ""
7571 "In future we may support other operating systems that also used drive "
7572 "letters, but the keys for those might not be case insensitive and might be "
7573 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7574 "C<h1> etc."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
7579 msgid ""
7580 "For Windows guests, currently only hard drive mappings are returned.  "
7581 "Removable disks (eg. DVD-ROMs) are ignored."
7582 msgstr ""
7583
7584 #. type: textblock
7585 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
7586 msgid ""
7587 "For guests that do not use drive mappings, or if the drive mappings could "
7588 "not be determined, this returns an empty hash table."
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../fish/guestfish-actions.pod:1842
7593 msgid ""
7594 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7595 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7596 msgstr ""
7597
7598 #. type: =head2
7599 #: ../fish/guestfish-actions.pod:1846
7600 msgid "inspect-get-filesystems"
7601 msgstr ""
7602
7603 #. type: verbatim
7604 #: ../fish/guestfish-actions.pod:1848
7605 #, no-wrap
7606 msgid ""
7607 " inspect-get-filesystems root\n"
7608 "\n"
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
7613 msgid ""
7614 "This returns a list of all the filesystems that we think are associated with "
7615 "this operating system.  This includes the root filesystem, other ordinary "
7616 "filesystems, and non-mounted devices like swap partitions."
7617 msgstr ""
7618
7619 #. type: textblock
7620 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
7621 msgid ""
7622 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7623 "to be shared between operating systems."
7624 msgstr ""
7625
7626 #. type: textblock
7627 #: ../fish/guestfish-actions.pod:1858
7628 msgid ""
7629 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7630 "L</inspect-get-mountpoints>."
7631 msgstr ""
7632
7633 #. type: =head2
7634 #: ../fish/guestfish-actions.pod:1861
7635 msgid "inspect-get-format"
7636 msgstr ""
7637
7638 #. type: verbatim
7639 #: ../fish/guestfish-actions.pod:1863
7640 #, no-wrap
7641 msgid ""
7642 " inspect-get-format root\n"
7643 "\n"
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
7648 msgid ""
7649 "This returns the format of the inspected operating system.  You can use it "
7650 "to detect install images, live CDs and similar."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
7655 msgid "Currently defined formats are:"
7656 msgstr ""
7657
7658 #. type: =item
7659 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
7660 msgid "\"installed\""
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
7665 msgid "This is an installed operating system."
7666 msgstr ""
7667
7668 #. type: =item
7669 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
7670 msgid "\"installer\""
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
7675 msgid ""
7676 "The disk image being inspected is not an installed operating system, but a "
7677 "I<bootable> install disk, live CD, or similar."
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
7682 msgid "The format of this disk image is not known."
7683 msgstr ""
7684
7685 #. type: =head2
7686 #: ../fish/guestfish-actions.pod:1892
7687 msgid "inspect-get-hostname"
7688 msgstr ""
7689
7690 #. type: verbatim
7691 #: ../fish/guestfish-actions.pod:1894
7692 #, no-wrap
7693 msgid ""
7694 " inspect-get-hostname root\n"
7695 "\n"
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
7700 msgid ""
7701 "This function returns the hostname of the operating system as found by "
7702 "inspection of the guest's configuration files."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
7707 msgid ""
7708 "If the hostname could not be determined, then the string C<unknown> is "
7709 "returned."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:1904
7714 msgid "inspect-get-icon"
7715 msgstr ""
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:1906
7719 #, no-wrap
7720 msgid ""
7721 " inspect-get-icon root [favicon:..] [highquality:..]\n"
7722 "\n"
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
7727 msgid ""
7728 "This function returns an icon corresponding to the inspected operating "
7729 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
7730 "to PNG if necessary)."
7731 msgstr ""
7732
7733 #. type: textblock
7734 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
7735 msgid ""
7736 "If it was not possible to get an icon this function returns a zero-length "
7737 "(non-NULL) buffer.  I<Callers must check for this case>."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
7742 msgid ""
7743 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
7744 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
7745 "this file will be returned.  You can disable favicons by passing the "
7746 "optional C<favicon> boolean as false (default is true)."
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
7751 msgid ""
7752 "If finding the favicon fails, then we look in other places in the guest for "
7753 "a suitable icon."
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
7758 msgid ""
7759 "If the optional C<highquality> boolean is true then only high quality icons "
7760 "are returned, which means only icons of high resolution with an alpha "
7761 "channel.  The default (false) is to return any icon we can, even if it is of "
7762 "substandard quality."
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
7767 msgid ""
7768 "Unlike most other inspection API calls, the guest's disks must be mounted up "
7769 "before you call this, since it needs to read information from the guest "
7770 "filesystem during the call."
7771 msgstr ""
7772
7773 #. type: textblock
7774 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
7775 msgid ""
7776 "B<Security:> The icon data comes from the untrusted guest, and should be "
7777 "treated with caution.  PNG files have been known to contain exploits.  "
7778 "Ensure that libpng (or other relevant libraries) are fully up to date before "
7779 "trying to process or display the icon."
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
7784 msgid ""
7785 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
7786 "tries to return the largest, highest quality icon available.  The "
7787 "application must scale the icon to the required size."
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
7792 msgid ""
7793 "Extracting icons from Windows guests requires the external C<wrestool> "
7794 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
7795 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
7796 "installed separately."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
7801 msgid ""
7802 "Operating system icons are usually trademarks.  Seek legal advice before "
7803 "using trademarks in applications."
7804 msgstr ""
7805
7806 #. type: =head2
7807 #: ../fish/guestfish-actions.pod:1970
7808 msgid "inspect-get-major-version"
7809 msgstr ""
7810
7811 #. type: verbatim
7812 #: ../fish/guestfish-actions.pod:1972
7813 #, no-wrap
7814 msgid ""
7815 " inspect-get-major-version root\n"
7816 "\n"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
7821 msgid "This returns the major version number of the inspected operating system."
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
7826 msgid ""
7827 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7828 "popular public names used by the operating system.  Notably the operating "
7829 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7830 "1).  You can find out the real versions corresponding to releases of Windows "
7831 "by consulting Wikipedia or MSDN."
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
7836 msgid "If the version could not be determined, then C<0> is returned."
7837 msgstr ""
7838
7839 #. type: =head2
7840 #: ../fish/guestfish-actions.pod:1988
7841 msgid "inspect-get-minor-version"
7842 msgstr ""
7843
7844 #. type: verbatim
7845 #: ../fish/guestfish-actions.pod:1990
7846 #, no-wrap
7847 msgid ""
7848 " inspect-get-minor-version root\n"
7849 "\n"
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
7854 msgid "This returns the minor version number of the inspected operating system."
7855 msgstr ""
7856
7857 #. type: textblock
7858 #: ../fish/guestfish-actions.pod:1997
7859 msgid ""
7860 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7861 "L</inspect-get-major-version>."
7862 msgstr ""
7863
7864 #. type: =head2
7865 #: ../fish/guestfish-actions.pod:2000
7866 msgid "inspect-get-mountpoints"
7867 msgstr ""
7868
7869 #. type: verbatim
7870 #: ../fish/guestfish-actions.pod:2002
7871 #, no-wrap
7872 msgid ""
7873 " inspect-get-mountpoints root\n"
7874 "\n"
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
7879 msgid ""
7880 "This returns a hash of where we think the filesystems associated with this "
7881 "operating system should be mounted.  Callers should note that this is at "
7882 "best an educated guess made by reading configuration files such as "
7883 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
7884 "are non-existent or not mountable and callers should be prepared to handle "
7885 "or ignore failures if they try to mount them."
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
7890 msgid ""
7891 "Each element in the returned hashtable has a key which is the path of the "
7892 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7893 "mounted there (eg. C</dev/sda1>)."
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
7898 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:2021
7903 msgid ""
7904 "For operating systems like Windows which still use drive letters, this call "
7905 "will only return an entry for the first drive \"mounted on\" C</>.  For "
7906 "information about the mapping of drive letters to partitions, see "
7907 "L</inspect-get-drive-mappings>."
7908 msgstr ""
7909
7910 #. type: textblock
7911 #: ../fish/guestfish-actions.pod:2027
7912 msgid ""
7913 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7914 "L</inspect-get-filesystems>."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../fish/guestfish-actions.pod:2030
7919 msgid "inspect-get-package-format"
7920 msgstr ""
7921
7922 #. type: verbatim
7923 #: ../fish/guestfish-actions.pod:2032
7924 #, no-wrap
7925 msgid ""
7926 " inspect-get-package-format root\n"
7927 "\n"
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:2034
7932 msgid ""
7933 "This function and L</inspect-get-package-management> return the package "
7934 "format and package management tool used by the inspected operating system.  "
7935 "For example for Fedora these functions would return C<rpm> (package format) "
7936 "and C<yum> (package management)."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
7941 msgid ""
7942 "This returns the string C<unknown> if we could not determine the package "
7943 "format I<or> if the operating system does not have a real packaging system "
7944 "(eg. Windows)."
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
7949 msgid ""
7950 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
7951 "Future versions of libguestfs may return other strings."
7952 msgstr ""
7953
7954 #. type: =head2
7955 #: ../fish/guestfish-actions.pod:2049
7956 msgid "inspect-get-package-management"
7957 msgstr ""
7958
7959 #. type: verbatim
7960 #: ../fish/guestfish-actions.pod:2051
7961 #, no-wrap
7962 msgid ""
7963 " inspect-get-package-management root\n"
7964 "\n"
7965 msgstr ""
7966
7967 #. type: textblock
7968 #: ../fish/guestfish-actions.pod:2053
7969 msgid ""
7970 "L</inspect-get-package-format> and this function return the package format "
7971 "and package management tool used by the inspected operating system.  For "
7972 "example for Fedora these functions would return C<rpm> (package format) and "
7973 "C<yum> (package management)."
7974 msgstr ""
7975
7976 #. type: textblock
7977 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
7978 msgid ""
7979 "This returns the string C<unknown> if we could not determine the package "
7980 "management tool I<or> if the operating system does not have a real packaging "
7981 "system (eg. Windows)."
7982 msgstr ""
7983
7984 #. type: textblock
7985 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
7986 msgid ""
7987 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
7988 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
7989 "libguestfs may return other strings."
7990 msgstr ""
7991
7992 #. type: =head2
7993 #: ../fish/guestfish-actions.pod:2070
7994 msgid "inspect-get-product-name"
7995 msgstr ""
7996
7997 #. type: verbatim
7998 #: ../fish/guestfish-actions.pod:2072
7999 #, no-wrap
8000 msgid ""
8001 " inspect-get-product-name root\n"
8002 "\n"
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
8007 msgid ""
8008 "This returns the product name of the inspected operating system.  The "
8009 "product name is generally some freeform string which can be displayed to the "
8010 "user, but should not be parsed by programs."
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8015 msgid ""
8016 "If the product name could not be determined, then the string C<unknown> is "
8017 "returned."
8018 msgstr ""
8019
8020 #. type: =head2
8021 #: ../fish/guestfish-actions.pod:2084
8022 msgid "inspect-get-product-variant"
8023 msgstr ""
8024
8025 #. type: verbatim
8026 #: ../fish/guestfish-actions.pod:2086
8027 #, no-wrap
8028 msgid ""
8029 " inspect-get-product-variant root\n"
8030 "\n"
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
8035 msgid "This returns the product variant of the inspected operating system."
8036 msgstr ""
8037
8038 #. type: textblock
8039 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
8040 msgid ""
8041 "For Windows guests, this returns the contents of the Registry key "
8042 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8043 "which is usually a string such as C<Client> or C<Server> (other values are "
8044 "possible).  This can be used to distinguish consumer and enterprise versions "
8045 "of Windows that have the same version number (for example, Windows 7 and "
8046 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8047 "the latter is C<Server>)."
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
8052 msgid ""
8053 "For enterprise Linux guests, in future we intend this to return the product "
8054 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8055 "implemented at present."
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
8060 msgid ""
8061 "If the product variant could not be determined, then the string C<unknown> "
8062 "is returned."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:2107
8067 msgid ""
8068 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8069 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8070 msgstr ""
8071
8072 #. type: =head2
8073 #: ../fish/guestfish-actions.pod:2111
8074 msgid "inspect-get-roots"
8075 msgstr ""
8076
8077 #. type: verbatim
8078 #: ../fish/guestfish-actions.pod:2113
8079 #, no-wrap
8080 msgid ""
8081 " inspect-get-roots\n"
8082 "\n"
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:2115
8087 msgid ""
8088 "This function is a convenient way to get the list of root devices, as "
8089 "returned from a previous call to L</inspect-os>, but without redoing the "
8090 "whole inspection process."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:2119
8095 msgid ""
8096 "This returns an empty list if either no root devices were found or the "
8097 "caller has not called L</inspect-os>."
8098 msgstr ""
8099
8100 #. type: =head2
8101 #: ../fish/guestfish-actions.pod:2124
8102 msgid "inspect-get-type"
8103 msgstr ""
8104
8105 #. type: verbatim
8106 #: ../fish/guestfish-actions.pod:2126
8107 #, no-wrap
8108 msgid ""
8109 " inspect-get-type root\n"
8110 "\n"
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
8115 msgid ""
8116 "This returns the type of the inspected operating system.  Currently defined "
8117 "types are:"
8118 msgstr ""
8119
8120 #. type: =item
8121 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8122 msgid "\"linux\""
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
8127 msgid "Any Linux-based operating system."
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
8132 msgid "Any Microsoft Windows operating system."
8133 msgstr ""
8134
8135 #. type: =item
8136 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
8137 msgid "\"freebsd\""
8138 msgstr ""
8139
8140 #. type: textblock
8141 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
8142 msgid "FreeBSD."
8143 msgstr ""
8144
8145 #. type: textblock
8146 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
8147 msgid "The operating system type could not be determined."
8148 msgstr ""
8149
8150 #. type: =head2
8151 #: ../fish/guestfish-actions.pod:2156
8152 msgid "inspect-get-windows-current-control-set"
8153 msgstr ""
8154
8155 #. type: verbatim
8156 #: ../fish/guestfish-actions.pod:2158
8157 #, no-wrap
8158 msgid ""
8159 " inspect-get-windows-current-control-set root\n"
8160 "\n"
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
8165 msgid ""
8166 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8167 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
8172 msgid ""
8173 "This call assumes that the guest is Windows and that the Registry could be "
8174 "examined by inspection.  If this is not the case then an error is returned."
8175 msgstr ""
8176
8177 #. type: =head2
8178 #: ../fish/guestfish-actions.pod:2169
8179 msgid "inspect-get-windows-systemroot"
8180 msgstr ""
8181
8182 #. type: verbatim
8183 #: ../fish/guestfish-actions.pod:2171
8184 #, no-wrap
8185 msgid ""
8186 " inspect-get-windows-systemroot root\n"
8187 "\n"
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
8192 msgid ""
8193 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8194 "is a directory path such as C</WINDOWS>."
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
8199 msgid ""
8200 "This call assumes that the guest is Windows and that the systemroot could be "
8201 "determined by inspection.  If this is not the case then an error is "
8202 "returned."
8203 msgstr ""
8204
8205 #. type: =head2
8206 #: ../fish/guestfish-actions.pod:2182
8207 msgid "inspect-is-live"
8208 msgstr ""
8209
8210 #. type: verbatim
8211 #: ../fish/guestfish-actions.pod:2184
8212 #, no-wrap
8213 msgid ""
8214 " inspect-is-live root\n"
8215 "\n"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:2186
8220 msgid ""
8221 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8222 "then this returns true if a live image was detected on the disk."
8223 msgstr ""
8224
8225 #. type: =head2
8226 #: ../fish/guestfish-actions.pod:2192
8227 msgid "inspect-is-multipart"
8228 msgstr ""
8229
8230 #. type: verbatim
8231 #: ../fish/guestfish-actions.pod:2194
8232 #, no-wrap
8233 msgid ""
8234 " inspect-is-multipart root\n"
8235 "\n"
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:2196
8240 msgid ""
8241 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8242 "then this returns true if the disk is part of a set."
8243 msgstr ""
8244
8245 #. type: =head2
8246 #: ../fish/guestfish-actions.pod:2202
8247 msgid "inspect-is-netinst"
8248 msgstr ""
8249
8250 #. type: verbatim
8251 #: ../fish/guestfish-actions.pod:2204
8252 #, no-wrap
8253 msgid ""
8254 " inspect-is-netinst root\n"
8255 "\n"
8256 msgstr ""
8257
8258 #. type: textblock
8259 #: ../fish/guestfish-actions.pod:2206
8260 msgid ""
8261 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8262 "then this returns true if the disk is a network installer, ie. not a "
8263 "self-contained install CD but one which is likely to require network access "
8264 "to complete the install."
8265 msgstr ""
8266
8267 #. type: =head2
8268 #: ../fish/guestfish-actions.pod:2214
8269 msgid "inspect-list-applications"
8270 msgstr ""
8271
8272 #. type: verbatim
8273 #: ../fish/guestfish-actions.pod:2216
8274 #, no-wrap
8275 msgid ""
8276 " inspect-list-applications root\n"
8277 "\n"
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
8282 msgid "Return the list of applications installed in the operating system."
8283 msgstr ""
8284
8285 #. type: textblock
8286 #: ../fish/guestfish-actions.pod:2220
8287 msgid ""
8288 "I<Note:> This call works differently from other parts of the inspection "
8289 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8290 "then mount up the disks, before calling this.  Listing applications is a "
8291 "significantly more difficult operation which requires access to the full "
8292 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8293 "are just returning data cached in the libguestfs handle, this call actually "
8294 "reads parts of the mounted filesystems during the call."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
8299 msgid ""
8300 "This returns an empty list if the inspection code was not able to determine "
8301 "the list of applications."
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
8306 msgid "The application structure contains the following fields:"
8307 msgstr ""
8308
8309 #. type: =item
8310 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
8311 msgid "C<app_name>"
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
8316 msgid ""
8317 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8318 "guests, this is the package name."
8319 msgstr ""
8320
8321 #. type: =item
8322 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8323 msgid "C<app_display_name>"
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8328 msgid ""
8329 "The display name of the application, sometimes localized to the install "
8330 "language of the guest operating system."
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8335 msgid ""
8336 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8337 "to display something can use C<app_name> instead."
8338 msgstr ""
8339
8340 #. type: =item
8341 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
8342 msgid "C<app_epoch>"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8347 msgid ""
8348 "For package managers which use epochs, this contains the epoch of the "
8349 "package (an integer).  If unavailable, this is returned as C<0>."
8350 msgstr ""
8351
8352 #. type: =item
8353 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8354 msgid "C<app_version>"
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8359 msgid ""
8360 "The version string of the application or package.  If unavailable this is "
8361 "returned as an empty string C<\"\">."
8362 msgstr ""
8363
8364 #. type: =item
8365 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8366 msgid "C<app_release>"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8371 msgid ""
8372 "The release string of the application or package, for package managers that "
8373 "use this.  If unavailable this is returned as an empty string C<\"\">."
8374 msgstr ""
8375
8376 #. type: =item
8377 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8378 msgid "C<app_install_path>"
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
8383 msgid ""
8384 "The installation path of the application (on operating systems such as "
8385 "Windows which use installation paths).  This path is in the format used by "
8386 "the guest operating system, it is not a libguestfs path."
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8391 msgid "If unavailable this is returned as an empty string C<\"\">."
8392 msgstr ""
8393
8394 #. type: =item
8395 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
8396 msgid "C<app_trans_path>"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8401 msgid ""
8402 "The install path translated into a libguestfs path.  If unavailable this is "
8403 "returned as an empty string C<\"\">."
8404 msgstr ""
8405
8406 #. type: =item
8407 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8408 msgid "C<app_publisher>"
8409 msgstr ""
8410
8411 #. type: textblock
8412 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8413 msgid ""
8414 "The name of the publisher of the application, for package managers that use "
8415 "this.  If unavailable this is returned as an empty string C<\"\">."
8416 msgstr ""
8417
8418 #. type: =item
8419 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
8420 msgid "C<app_url>"
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
8425 msgid ""
8426 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8427 "returned as an empty string C<\"\">."
8428 msgstr ""
8429
8430 #. type: =item
8431 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8432 msgid "C<app_source_package>"
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8437 msgid ""
8438 "For packaging systems which support this, the name of the source package.  "
8439 "If unavailable this is returned as an empty string C<\"\">."
8440 msgstr ""
8441
8442 #. type: =item
8443 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8444 msgid "C<app_summary>"
8445 msgstr ""
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8449 msgid ""
8450 "A short (usually one line) description of the application or package.  If "
8451 "unavailable this is returned as an empty string C<\"\">."
8452 msgstr ""
8453
8454 #. type: =item
8455 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8456 msgid "C<app_description>"
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8461 msgid ""
8462 "A longer description of the application or package.  If unavailable this is "
8463 "returned as an empty string C<\"\">."
8464 msgstr ""
8465
8466 #. type: =head2
8467 #: ../fish/guestfish-actions.pod:2310
8468 msgid "inspect-os"
8469 msgstr ""
8470
8471 #. type: verbatim
8472 #: ../fish/guestfish-actions.pod:2312
8473 #, no-wrap
8474 msgid ""
8475 " inspect-os\n"
8476 "\n"
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
8481 msgid ""
8482 "This function uses other libguestfs functions and certain heuristics to "
8483 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8484 "for operating systems."
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
8489 msgid "The list returned is empty if no operating systems were found."
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
8494 msgid ""
8495 "If one operating system was found, then this returns a list with a single "
8496 "element, which is the name of the root filesystem of this operating system.  "
8497 "It is also possible for this function to return a list containing more than "
8498 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8499 "element being the root filesystem of one of the operating systems."
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../fish/guestfish-actions.pod:2327
8504 msgid ""
8505 "You can pass the root string(s) returned to other L</inspect-get-*> "
8506 "functions in order to query further information about each operating system, "
8507 "such as the name and version."
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:2332
8512 msgid ""
8513 "This function uses other libguestfs features such as L</mount-ro> and "
8514 "L</umount-all> in order to mount and unmount filesystems and look at the "
8515 "contents.  This should be called with no disks currently mounted.  The "
8516 "function may also use Augeas, so any existing Augeas handle will be closed."
8517 msgstr ""
8518
8519 #. type: textblock
8520 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
8521 msgid ""
8522 "This function cannot decrypt encrypted disks.  The caller must do that first "
8523 "(supplying the necessary keys) if the disk is encrypted."
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542 ../fish/guestfish-actions.pod:2601
8528 msgid "See also L</list-filesystems>."
8529 msgstr ""
8530
8531 #. type: =head2
8532 #: ../fish/guestfish-actions.pod:2346
8533 msgid "is-blockdev"
8534 msgstr ""
8535
8536 #. type: verbatim
8537 #: ../fish/guestfish-actions.pod:2348
8538 #, no-wrap
8539 msgid ""
8540 " is-blockdev path\n"
8541 "\n"
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
8546 msgid ""
8547 "This returns C<true> if and only if there is a block device with the given "
8548 "C<path> name."
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399 ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2452
8553 msgid "See also L</stat>."
8554 msgstr ""
8555
8556 #. type: =head2
8557 #: ../fish/guestfish-actions.pod:2355
8558 msgid "is-busy"
8559 msgstr ""
8560
8561 #. type: verbatim
8562 #: ../fish/guestfish-actions.pod:2357
8563 #, no-wrap
8564 msgid ""
8565 " is-busy\n"
8566 "\n"
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
8571 msgid ""
8572 "This returns true iff this handle is busy processing a command (in the "
8573 "C<BUSY> state)."
8574 msgstr ""
8575
8576 #. type: =head2
8577 #: ../fish/guestfish-actions.pod:2364
8578 msgid "is-chardev"
8579 msgstr ""
8580
8581 #. type: verbatim
8582 #: ../fish/guestfish-actions.pod:2366
8583 #, no-wrap
8584 msgid ""
8585 " is-chardev path\n"
8586 "\n"
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
8591 msgid ""
8592 "This returns C<true> if and only if there is a character device with the "
8593 "given C<path> name."
8594 msgstr ""
8595
8596 #. type: =head2
8597 #: ../fish/guestfish-actions.pod:2373
8598 msgid "is-config"
8599 msgstr ""
8600
8601 #. type: verbatim
8602 #: ../fish/guestfish-actions.pod:2375
8603 #, no-wrap
8604 msgid ""
8605 " is-config\n"
8606 "\n"
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
8611 msgid ""
8612 "This returns true iff this handle is being configured (in the C<CONFIG> "
8613 "state)."
8614 msgstr ""
8615
8616 #. type: =head2
8617 #: ../fish/guestfish-actions.pod:2382
8618 msgid "is-dir"
8619 msgstr ""
8620
8621 #. type: verbatim
8622 #: ../fish/guestfish-actions.pod:2384
8623 #, no-wrap
8624 msgid ""
8625 " is-dir path\n"
8626 "\n"
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
8631 msgid ""
8632 "This returns C<true> if and only if there is a directory with the given "
8633 "C<path> name.  Note that it returns false for other objects like files."
8634 msgstr ""
8635
8636 #. type: =head2
8637 #: ../fish/guestfish-actions.pod:2392
8638 msgid "is-fifo"
8639 msgstr ""
8640
8641 #. type: verbatim
8642 #: ../fish/guestfish-actions.pod:2394
8643 #, no-wrap
8644 msgid ""
8645 " is-fifo path\n"
8646 "\n"
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
8651 msgid ""
8652 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8653 "given C<path> name."
8654 msgstr ""
8655
8656 #. type: =head2
8657 #: ../fish/guestfish-actions.pod:2401
8658 msgid "is-file"
8659 msgstr ""
8660
8661 #. type: verbatim
8662 #: ../fish/guestfish-actions.pod:2403
8663 #, no-wrap
8664 msgid ""
8665 " is-file path\n"
8666 "\n"
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
8671 msgid ""
8672 "This returns C<true> if and only if there is a regular file with the given "
8673 "C<path> name.  Note that it returns false for other objects like "
8674 "directories."
8675 msgstr ""
8676
8677 #. type: =head2
8678 #: ../fish/guestfish-actions.pod:2411
8679 msgid "is-launching"
8680 msgstr ""
8681
8682 #. type: verbatim
8683 #: ../fish/guestfish-actions.pod:2413
8684 #, no-wrap
8685 msgid ""
8686 " is-launching\n"
8687 "\n"
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
8692 msgid ""
8693 "This returns true iff this handle is launching the subprocess (in the "
8694 "C<LAUNCHING> state)."
8695 msgstr ""
8696
8697 #. type: =head2
8698 #: ../fish/guestfish-actions.pod:2420
8699 msgid "is-lv"
8700 msgstr ""
8701
8702 #. type: verbatim
8703 #: ../fish/guestfish-actions.pod:2422
8704 #, no-wrap
8705 msgid ""
8706 " is-lv device\n"
8707 "\n"
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
8712 msgid ""
8713 "This command tests whether C<device> is a logical volume, and returns true "
8714 "iff this is the case."
8715 msgstr ""
8716
8717 #. type: =head2
8718 #: ../fish/guestfish-actions.pod:2427
8719 msgid "is-ready"
8720 msgstr ""
8721
8722 #. type: verbatim
8723 #: ../fish/guestfish-actions.pod:2429
8724 #, no-wrap
8725 msgid ""
8726 " is-ready\n"
8727 "\n"
8728 msgstr ""
8729
8730 #. type: textblock
8731 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
8732 msgid ""
8733 "This returns true iff this handle is ready to accept commands (in the "
8734 "C<READY> state)."
8735 msgstr ""
8736
8737 #. type: =head2
8738 #: ../fish/guestfish-actions.pod:2436
8739 msgid "is-socket"
8740 msgstr ""
8741
8742 #. type: verbatim
8743 #: ../fish/guestfish-actions.pod:2438
8744 #, no-wrap
8745 msgid ""
8746 " is-socket path\n"
8747 "\n"
8748 msgstr ""
8749
8750 #. type: textblock
8751 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
8752 msgid ""
8753 "This returns C<true> if and only if there is a Unix domain socket with the "
8754 "given C<path> name."
8755 msgstr ""
8756
8757 #. type: =head2
8758 #: ../fish/guestfish-actions.pod:2445
8759 msgid "is-symlink"
8760 msgstr ""
8761
8762 #. type: verbatim
8763 #: ../fish/guestfish-actions.pod:2447
8764 #, no-wrap
8765 msgid ""
8766 " is-symlink path\n"
8767 "\n"
8768 msgstr ""
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
8772 msgid ""
8773 "This returns C<true> if and only if there is a symbolic link with the given "
8774 "C<path> name."
8775 msgstr ""
8776
8777 #. type: =head2
8778 #: ../fish/guestfish-actions.pod:2454
8779 msgid "is-zero"
8780 msgstr ""
8781
8782 #. type: verbatim
8783 #: ../fish/guestfish-actions.pod:2456
8784 #, no-wrap
8785 msgid ""
8786 " is-zero path\n"
8787 "\n"
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
8792 msgid ""
8793 "This returns true iff the file exists and the file is empty or it contains "
8794 "all zero bytes."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:2461
8799 msgid "is-zero-device"
8800 msgstr ""
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:2463
8804 #, no-wrap
8805 msgid ""
8806 " is-zero-device device\n"
8807 "\n"
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
8812 msgid "This returns true iff the device exists and contains all zero bytes."
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
8817 msgid "Note that for large devices this can take a long time to run."
8818 msgstr ""
8819
8820 #. type: =head2
8821 #: ../fish/guestfish-actions.pod:2469
8822 msgid "kill-subprocess"
8823 msgstr ""
8824
8825 #. type: verbatim
8826 #: ../fish/guestfish-actions.pod:2471
8827 #, no-wrap
8828 msgid ""
8829 " kill-subprocess\n"
8830 "\n"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
8835 msgid "This kills the qemu subprocess.  You should never need to call this."
8836 msgstr ""
8837
8838 #. type: =head2
8839 #: ../fish/guestfish-actions.pod:2475
8840 msgid "launch"
8841 msgstr ""
8842
8843 #. type: =head2
8844 #: ../fish/guestfish-actions.pod:2477
8845 msgid "run"
8846 msgstr ""
8847
8848 #. type: verbatim
8849 #: ../fish/guestfish-actions.pod:2479
8850 #, no-wrap
8851 msgid ""
8852 " launch\n"
8853 "\n"
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
8858 msgid ""
8859 "Internally libguestfs is implemented by running a virtual machine using "
8860 "L<qemu(1)>."
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
8865 msgid ""
8866 "You should call this after configuring the handle (eg. adding drives) but "
8867 "before performing any actions."
8868 msgstr ""
8869
8870 #. type: =head2
8871 #: ../fish/guestfish-actions.pod:2487
8872 msgid "lchown"
8873 msgstr ""
8874
8875 #. type: verbatim
8876 #: ../fish/guestfish-actions.pod:2489
8877 #, no-wrap
8878 msgid ""
8879 " lchown owner group path\n"
8880 "\n"
8881 msgstr ""
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:2491
8885 msgid ""
8886 "Change the file owner to C<owner> and group to C<group>.  This is like "
8887 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
8888 "the target."
8889 msgstr ""
8890
8891 #. type: =head2
8892 #: ../fish/guestfish-actions.pod:2499
8893 msgid "lgetxattr"
8894 msgstr ""
8895
8896 #. type: verbatim
8897 #: ../fish/guestfish-actions.pod:2501
8898 #, no-wrap
8899 msgid ""
8900 " lgetxattr path name\n"
8901 "\n"
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
8906 msgid ""
8907 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
8908 "is a symlink, then this call returns an extended attribute from the symlink."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:2517
8913 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
8914 msgstr ""
8915
8916 #. type: =head2
8917 #: ../fish/guestfish-actions.pod:2519
8918 msgid "lgetxattrs"
8919 msgstr ""
8920
8921 #. type: verbatim
8922 #: ../fish/guestfish-actions.pod:2521
8923 #, no-wrap
8924 msgid ""
8925 " lgetxattrs path\n"
8926 "\n"
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:2523
8931 msgid ""
8932 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
8933 "it returns the extended attributes of the link itself."
8934 msgstr ""
8935
8936 #. type: =head2
8937 #: ../fish/guestfish-actions.pod:2527
8938 msgid "list-9p"
8939 msgstr ""
8940
8941 #. type: verbatim
8942 #: ../fish/guestfish-actions.pod:2529
8943 #, no-wrap
8944 msgid ""
8945 " list-9p\n"
8946 "\n"
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
8951 msgid ""
8952 "List all 9p filesystems attached to the guest.  A list of mount tags is "
8953 "returned."
8954 msgstr ""
8955
8956 #. type: =head2
8957 #: ../fish/guestfish-actions.pod:2534
8958 msgid "list-devices"
8959 msgstr ""
8960
8961 #. type: verbatim
8962 #: ../fish/guestfish-actions.pod:2536
8963 #, no-wrap
8964 msgid ""
8965 " list-devices\n"
8966 "\n"
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
8971 msgid "List all the block devices."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
8976 msgid "The full block device names are returned, eg. C</dev/sda>."
8977 msgstr ""
8978
8979 #. type: =head2
8980 #: ../fish/guestfish-actions.pod:2544
8981 msgid "list-dm-devices"
8982 msgstr ""
8983
8984 #. type: verbatim
8985 #: ../fish/guestfish-actions.pod:2546
8986 #, no-wrap
8987 msgid ""
8988 " list-dm-devices\n"
8989 "\n"
8990 msgstr ""
8991
8992 #. type: textblock
8993 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
8994 msgid "List all device mapper devices."
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:2550
8999 msgid ""
9000 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9001 "previous call to L</luks-open>."
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../fish/guestfish-actions.pod:2553
9006 msgid ""
9007 "Device mapper devices which correspond to logical volumes are I<not> "
9008 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9009 msgstr ""
9010
9011 #. type: =head2
9012 #: ../fish/guestfish-actions.pod:2557
9013 msgid "list-filesystems"
9014 msgstr ""
9015
9016 #. type: verbatim
9017 #: ../fish/guestfish-actions.pod:2559
9018 #, no-wrap
9019 msgid ""
9020 " list-filesystems\n"
9021 "\n"
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
9026 msgid ""
9027 "This inspection command looks for filesystems on partitions, block devices "
9028 "and logical volumes, returning a list of devices containing filesystems and "
9029 "their type."
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
9034 msgid ""
9035 "The return value is a hash, where the keys are the devices containing "
9036 "filesystems, and the values are the filesystem types.  For example:"
9037 msgstr ""
9038
9039 #. type: verbatim
9040 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
9041 #, no-wrap
9042 msgid ""
9043 " \"/dev/sda1\" => \"ntfs\"\n"
9044 " \"/dev/sda2\" => \"ext2\"\n"
9045 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9046 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9047 "\n"
9048 msgstr ""
9049
9050 #. type: textblock
9051 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9052 msgid ""
9053 "The value can have the special value \"unknown\", meaning the content of the "
9054 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9055 msgstr ""
9056
9057 #. type: textblock
9058 #: ../fish/guestfish-actions.pod:2578
9059 msgid ""
9060 "This command runs other libguestfs commands, which might include L</mount> "
9061 "and L</umount>, and therefore you should use this soon after launch and only "
9062 "when nothing is mounted."
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:2582
9067 msgid ""
9068 "Not all of the filesystems returned will be mountable.  In particular, swap "
9069 "partitions are returned in the list.  Also this command does not check that "
9070 "each filesystem found is valid and mountable, and some filesystems might be "
9071 "mountable but require special options.  Filesystems may not all belong to a "
9072 "single logical operating system (use L</inspect-os> to look for OSes)."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:2590
9077 msgid "list-partitions"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:2592
9082 #, no-wrap
9083 msgid ""
9084 " list-partitions\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
9090 msgid "List all the partitions detected on all block devices."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
9095 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9096 msgstr ""
9097
9098 #. type: textblock
9099 #: ../fish/guestfish-actions.pod:2598
9100 msgid ""
9101 "This does not return logical volumes.  For that you will need to call "
9102 "L</lvs>."
9103 msgstr ""
9104
9105 #. type: =head2
9106 #: ../fish/guestfish-actions.pod:2603
9107 msgid "ll"
9108 msgstr ""
9109
9110 #. type: verbatim
9111 #: ../fish/guestfish-actions.pod:2605
9112 #, no-wrap
9113 msgid ""
9114 " ll directory\n"
9115 "\n"
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
9120 msgid ""
9121 "List the files in C<directory> (relative to the root directory, there is no "
9122 "cwd) in the format of 'ls -la'."
9123 msgstr ""
9124
9125 #. type: textblock
9126 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
9127 msgid ""
9128 "This command is mostly useful for interactive sessions.  It is I<not> "
9129 "intended that you try to parse the output string."
9130 msgstr ""
9131
9132 #. type: =head2
9133 #: ../fish/guestfish-actions.pod:2613
9134 msgid "ln"
9135 msgstr ""
9136
9137 #. type: verbatim
9138 #: ../fish/guestfish-actions.pod:2615
9139 #, no-wrap
9140 msgid ""
9141 " ln target linkname\n"
9142 "\n"
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
9147 msgid "This command creates a hard link using the C<ln> command."
9148 msgstr ""
9149
9150 #. type: =head2
9151 #: ../fish/guestfish-actions.pod:2619
9152 msgid "ln-f"
9153 msgstr ""
9154
9155 #. type: verbatim
9156 #: ../fish/guestfish-actions.pod:2621
9157 #, no-wrap
9158 msgid ""
9159 " ln-f target linkname\n"
9160 "\n"
9161 msgstr ""
9162
9163 #. type: textblock
9164 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
9165 msgid ""
9166 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9167 "option removes the link (C<linkname>) if it exists already."
9168 msgstr ""
9169
9170 #. type: =head2
9171 #: ../fish/guestfish-actions.pod:2626
9172 msgid "ln-s"
9173 msgstr ""
9174
9175 #. type: verbatim
9176 #: ../fish/guestfish-actions.pod:2628
9177 #, no-wrap
9178 msgid ""
9179 " ln-s target linkname\n"
9180 "\n"
9181 msgstr ""
9182
9183 #. type: textblock
9184 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
9185 msgid "This command creates a symbolic link using the C<ln -s> command."
9186 msgstr ""
9187
9188 #. type: =head2
9189 #: ../fish/guestfish-actions.pod:2632
9190 msgid "ln-sf"
9191 msgstr ""
9192
9193 #. type: verbatim
9194 #: ../fish/guestfish-actions.pod:2634
9195 #, no-wrap
9196 msgid ""
9197 " ln-sf target linkname\n"
9198 "\n"
9199 msgstr ""
9200
9201 #. type: textblock
9202 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
9203 msgid ""
9204 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9205 "option removes the link (C<linkname>) if it exists already."
9206 msgstr ""
9207
9208 #. type: =head2
9209 #: ../fish/guestfish-actions.pod:2639
9210 msgid "lremovexattr"
9211 msgstr ""
9212
9213 #. type: verbatim
9214 #: ../fish/guestfish-actions.pod:2641
9215 #, no-wrap
9216 msgid ""
9217 " lremovexattr xattr path\n"
9218 "\n"
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:2643
9223 msgid ""
9224 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9225 "it removes an extended attribute of the link itself."
9226 msgstr ""
9227
9228 #. type: =head2
9229 #: ../fish/guestfish-actions.pod:2647
9230 msgid "ls"
9231 msgstr ""
9232
9233 #. type: verbatim
9234 #: ../fish/guestfish-actions.pod:2649
9235 #, no-wrap
9236 msgid ""
9237 " ls directory\n"
9238 "\n"
9239 msgstr ""
9240
9241 #. type: textblock
9242 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
9243 msgid ""
9244 "List the files in C<directory> (relative to the root directory, there is no "
9245 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9246 "shown."
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:2655
9251 msgid ""
9252 "This command is mostly useful for interactive sessions.  Programs should "
9253 "probably use L</readdir> instead."
9254 msgstr ""
9255
9256 #. type: =head2
9257 #: ../fish/guestfish-actions.pod:2658
9258 msgid "lsetxattr"
9259 msgstr ""
9260
9261 #. type: verbatim
9262 #: ../fish/guestfish-actions.pod:2660
9263 #, no-wrap
9264 msgid ""
9265 " lsetxattr xattr val vallen path\n"
9266 "\n"
9267 msgstr ""
9268
9269 #. type: textblock
9270 #: ../fish/guestfish-actions.pod:2662
9271 msgid ""
9272 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9273 "sets an extended attribute of the link itself."
9274 msgstr ""
9275
9276 #. type: =head2
9277 #: ../fish/guestfish-actions.pod:2666
9278 msgid "lstat"
9279 msgstr ""
9280
9281 #. type: verbatim
9282 #: ../fish/guestfish-actions.pod:2668
9283 #, no-wrap
9284 msgid ""
9285 " lstat path\n"
9286 "\n"
9287 msgstr ""
9288
9289 #. type: textblock
9290 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
9291 msgid "Returns file information for the given C<path>."
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../fish/guestfish-actions.pod:2672
9296 msgid ""
9297 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9298 "the link is stat-ed, not the file it refers to."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
9303 msgid "This is the same as the C<lstat(2)> system call."
9304 msgstr ""
9305
9306 #. type: =head2
9307 #: ../fish/guestfish-actions.pod:2678
9308 msgid "lstatlist"
9309 msgstr ""
9310
9311 #. type: verbatim
9312 #: ../fish/guestfish-actions.pod:2680
9313 #, no-wrap
9314 msgid ""
9315 " lstatlist path 'names ...'\n"
9316 "\n"
9317 msgstr ""
9318
9319 #. type: textblock
9320 #: ../fish/guestfish-actions.pod:2682
9321 msgid ""
9322 "This call allows you to perform the L</lstat> operation on multiple files, "
9323 "where all files are in the directory C<path>.  C<names> is the list of files "
9324 "from this directory."
9325 msgstr ""
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
9329 msgid ""
9330 "On return you get a list of stat structs, with a one-to-one correspondence "
9331 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9332 "then the C<ino> field of that structure is set to C<-1>."
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:2691
9337 msgid ""
9338 "This call is intended for programs that want to efficiently list a directory "
9339 "contents without making many round-trips.  See also L</lxattrlist> for a "
9340 "similarly efficient call for getting extended attributes.  Very long "
9341 "directory listings might cause the protocol message size to be exceeded, "
9342 "causing this call to fail.  The caller must split up such requests into "
9343 "smaller groups of names."
9344 msgstr ""
9345
9346 #. type: =head2
9347 #: ../fish/guestfish-actions.pod:2699
9348 msgid "luks-add-key"
9349 msgstr ""
9350
9351 #. type: verbatim
9352 #: ../fish/guestfish-actions.pod:2701
9353 #, no-wrap
9354 msgid ""
9355 " luks-add-key device keyslot\n"
9356 "\n"
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
9361 msgid ""
9362 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9363 "existing key, and is used to access the device.  C<newkey> is the new key to "
9364 "add.  C<keyslot> is the key slot that will be replaced."
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:2708
9369 msgid ""
9370 "Note that if C<keyslot> already contains a key, then this command will "
9371 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9372 msgstr ""
9373
9374 #. type: textblock
9375 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734 ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761 ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
9376 msgid ""
9377 "This command has one or more key or passphrase parameters.  Guestfish will "
9378 "prompt for these separately."
9379 msgstr ""
9380
9381 #. type: =head2
9382 #: ../fish/guestfish-actions.pod:2715
9383 msgid "luks-close"
9384 msgstr ""
9385
9386 #. type: verbatim
9387 #: ../fish/guestfish-actions.pod:2717
9388 #, no-wrap
9389 msgid ""
9390 " luks-close device\n"
9391 "\n"
9392 msgstr ""
9393
9394 #. type: textblock
9395 #: ../fish/guestfish-actions.pod:2719
9396 msgid ""
9397 "This closes a LUKS device that was created earlier by L</luks-open> or "
9398 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9399 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9400 "underlying block device."
9401 msgstr ""
9402
9403 #. type: =head2
9404 #: ../fish/guestfish-actions.pod:2725
9405 msgid "luks-format"
9406 msgstr ""
9407
9408 #. type: verbatim
9409 #: ../fish/guestfish-actions.pod:2727
9410 #, no-wrap
9411 msgid ""
9412 " luks-format device keyslot\n"
9413 "\n"
9414 msgstr ""
9415
9416 #. type: textblock
9417 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
9418 msgid ""
9419 "This command erases existing data on C<device> and formats the device as a "
9420 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9421 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498 ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349 ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394 ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:7799
9426 msgid ""
9427 "B<This command is dangerous.  Without careful use you can easily destroy all "
9428 "your data>."
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../fish/guestfish-actions.pod:2740
9433 msgid "luks-format-cipher"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:2742
9438 #, no-wrap
9439 msgid ""
9440 " luks-format-cipher device keyslot cipher\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:2744
9446 msgid ""
9447 "This command is the same as L</luks-format> but it also allows you to set "
9448 "the C<cipher> used."
9449 msgstr ""
9450
9451 #. type: =head2
9452 #: ../fish/guestfish-actions.pod:2753
9453 msgid "luks-kill-slot"
9454 msgstr ""
9455
9456 #. type: verbatim
9457 #: ../fish/guestfish-actions.pod:2755
9458 #, no-wrap
9459 msgid ""
9460 " luks-kill-slot device keyslot\n"
9461 "\n"
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
9466 msgid ""
9467 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9468 "device C<device>.  C<key> must be one of the I<other> keys."
9469 msgstr ""
9470
9471 #. type: =head2
9472 #: ../fish/guestfish-actions.pod:2764
9473 msgid "luks-open"
9474 msgstr ""
9475
9476 #. type: verbatim
9477 #: ../fish/guestfish-actions.pod:2766
9478 #, no-wrap
9479 msgid ""
9480 " luks-open device mapname\n"
9481 "\n"
9482 msgstr ""
9483
9484 #. type: textblock
9485 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
9486 msgid ""
9487 "This command opens a block device which has been encrypted according to the "
9488 "Linux Unified Key Setup (LUKS) standard."
9489 msgstr ""
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
9493 msgid "C<device> is the encrypted block device or partition."
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
9498 msgid ""
9499 "The caller must supply one of the keys associated with the LUKS block "
9500 "device, in the C<key> parameter."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
9505 msgid ""
9506 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9507 "writes to this block device are decrypted from and encrypted to the "
9508 "underlying C<device> respectively."
9509 msgstr ""
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2780
9513 msgid ""
9514 "If this block device contains LVM volume groups, then calling L</vgscan> "
9515 "followed by L</vg-activate-all> will make them visible."
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:2784
9520 msgid "Use L</list-dm-devices> to list all device mapper devices."
9521 msgstr ""
9522
9523 #. type: =head2
9524 #: ../fish/guestfish-actions.pod:2790
9525 msgid "luks-open-ro"
9526 msgstr ""
9527
9528 #. type: verbatim
9529 #: ../fish/guestfish-actions.pod:2792
9530 #, no-wrap
9531 msgid ""
9532 " luks-open-ro device mapname\n"
9533 "\n"
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:2794
9538 msgid ""
9539 "This is the same as L</luks-open> except that a read-only mapping is "
9540 "created."
9541 msgstr ""
9542
9543 #. type: =head2
9544 #: ../fish/guestfish-actions.pod:2800
9545 msgid "lvcreate"
9546 msgstr ""
9547
9548 #. type: verbatim
9549 #: ../fish/guestfish-actions.pod:2802
9550 #, no-wrap
9551 msgid ""
9552 " lvcreate logvol volgroup mbytes\n"
9553 "\n"
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
9558 msgid ""
9559 "This creates an LVM logical volume called C<logvol> on the volume group "
9560 "C<volgroup>, with C<size> megabytes."
9561 msgstr ""
9562
9563 #. type: =head2
9564 #: ../fish/guestfish-actions.pod:2807
9565 msgid "lvm-canonical-lv-name"
9566 msgstr ""
9567
9568 #. type: verbatim
9569 #: ../fish/guestfish-actions.pod:2809
9570 #, no-wrap
9571 msgid ""
9572 " lvm-canonical-lv-name lvname\n"
9573 "\n"
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
9578 msgid ""
9579 "This converts alternative naming schemes for LVs that you might find to the "
9580 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9581 "C</dev/VG/LV>."
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
9586 msgid ""
9587 "This command returns an error if the C<lvname> parameter does not refer to a "
9588 "logical volume."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:2818
9593 msgid "See also L</is-lv>."
9594 msgstr ""
9595
9596 #. type: =head2
9597 #: ../fish/guestfish-actions.pod:2820
9598 msgid "lvm-clear-filter"
9599 msgstr ""
9600
9601 #. type: verbatim
9602 #: ../fish/guestfish-actions.pod:2822
9603 #, no-wrap
9604 msgid ""
9605 " lvm-clear-filter\n"
9606 "\n"
9607 msgstr ""
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:2824
9611 msgid ""
9612 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9613 "block device."
9614 msgstr ""
9615
9616 #. type: textblock
9617 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
9618 msgid "This command also clears the LVM cache and performs a volume group scan."
9619 msgstr ""
9620
9621 #. type: =head2
9622 #: ../fish/guestfish-actions.pod:2830
9623 msgid "lvm-remove-all"
9624 msgstr ""
9625
9626 #. type: verbatim
9627 #: ../fish/guestfish-actions.pod:2832
9628 #, no-wrap
9629 msgid ""
9630 " lvm-remove-all\n"
9631 "\n"
9632 msgstr ""
9633
9634 #. type: textblock
9635 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
9636 msgid ""
9637 "This command removes all LVM logical volumes, volume groups and physical "
9638 "volumes."
9639 msgstr ""
9640
9641 #. type: =head2
9642 #: ../fish/guestfish-actions.pod:2840
9643 msgid "lvm-set-filter"
9644 msgstr ""
9645
9646 #. type: verbatim
9647 #: ../fish/guestfish-actions.pod:2842
9648 #, no-wrap
9649 msgid ""
9650 " lvm-set-filter 'devices ...'\n"
9651 "\n"
9652 msgstr ""
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
9656 msgid ""
9657 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9658 "block devices in the list C<devices>, and will ignore all other attached "
9659 "block devices."
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
9664 msgid ""
9665 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9666 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9667 "there are two types of duplication possible: either cloned PVs/VGs which "
9668 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9669 "same name.  In normal operation you cannot create this situation, but you "
9670 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9671 "inside the LVM metadata."
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
9676 msgid "You can filter whole block devices or individual partitions."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
9681 msgid ""
9682 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9683 "filesystem), even if you are not filtering out that VG."
9684 msgstr ""
9685
9686 #. type: =head2
9687 #: ../fish/guestfish-actions.pod:2867
9688 msgid "lvremove"
9689 msgstr ""
9690
9691 #. type: verbatim
9692 #: ../fish/guestfish-actions.pod:2869
9693 #, no-wrap
9694 msgid ""
9695 " lvremove device\n"
9696 "\n"
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
9701 msgid ""
9702 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9703 "LV, such as C</dev/VG/LV>."
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
9708 msgid ""
9709 "You can also remove all LVs in a volume group by specifying the VG name, "
9710 "C</dev/VG>."
9711 msgstr ""
9712
9713 #. type: =head2
9714 #: ../fish/guestfish-actions.pod:2877
9715 msgid "lvrename"
9716 msgstr ""
9717
9718 #. type: verbatim
9719 #: ../fish/guestfish-actions.pod:2879
9720 #, no-wrap
9721 msgid ""
9722 " lvrename logvol newlogvol\n"
9723 "\n"
9724 msgstr ""
9725
9726 #. type: textblock
9727 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
9728 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9729 msgstr ""
9730
9731 #. type: =head2
9732 #: ../fish/guestfish-actions.pod:2883
9733 msgid "lvresize"
9734 msgstr ""
9735
9736 #. type: verbatim
9737 #: ../fish/guestfish-actions.pod:2885
9738 #, no-wrap
9739 msgid ""
9740 " lvresize device mbytes\n"
9741 "\n"
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
9746 msgid ""
9747 "This resizes (expands or shrinks) an existing LVM logical volume to "
9748 "C<mbytes>.  When reducing, data in the reduced part is lost."
9749 msgstr ""
9750
9751 #. type: =head2
9752 #: ../fish/guestfish-actions.pod:2891
9753 msgid "lvresize-free"
9754 msgstr ""
9755
9756 #. type: verbatim
9757 #: ../fish/guestfish-actions.pod:2893
9758 #, no-wrap
9759 msgid ""
9760 " lvresize-free lv percent\n"
9761 "\n"
9762 msgstr ""
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
9766 msgid ""
9767 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9768 "remaining free space in the volume group.  Commonly you would call this with "
9769 "pc = 100 which expands the logical volume as much as possible, using all "
9770 "remaining free space in the volume group."
9771 msgstr ""
9772
9773 #. type: =head2
9774 #: ../fish/guestfish-actions.pod:2901
9775 msgid "lvs"
9776 msgstr ""
9777
9778 #. type: verbatim
9779 #: ../fish/guestfish-actions.pod:2903
9780 #, no-wrap
9781 msgid ""
9782 " lvs\n"
9783 "\n"
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
9788 msgid ""
9789 "List all the logical volumes detected.  This is the equivalent of the "
9790 "L<lvs(8)> command."
9791 msgstr ""
9792
9793 #. type: textblock
9794 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
9795 msgid ""
9796 "This returns a list of the logical volume device names "
9797 "(eg. C</dev/VolGroup00/LogVol00>)."
9798 msgstr ""
9799
9800 #. type: textblock
9801 #: ../fish/guestfish-actions.pod:2911
9802 msgid "See also L</lvs-full>, L</list-filesystems>."
9803 msgstr ""
9804
9805 #. type: =head2
9806 #: ../fish/guestfish-actions.pod:2913
9807 msgid "lvs-full"
9808 msgstr ""
9809
9810 #. type: verbatim
9811 #: ../fish/guestfish-actions.pod:2915
9812 #, no-wrap
9813 msgid ""
9814 " lvs-full\n"
9815 "\n"
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
9820 msgid ""
9821 "List all the logical volumes detected.  This is the equivalent of the "
9822 "L<lvs(8)> command.  The \"full\" version includes all fields."
9823 msgstr ""
9824
9825 #. type: =head2
9826 #: ../fish/guestfish-actions.pod:2920
9827 msgid "lvuuid"
9828 msgstr ""
9829
9830 #. type: verbatim
9831 #: ../fish/guestfish-actions.pod:2922
9832 #, no-wrap
9833 msgid ""
9834 " lvuuid device\n"
9835 "\n"
9836 msgstr ""
9837
9838 #. type: textblock
9839 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
9840 msgid "This command returns the UUID of the LVM LV C<device>."
9841 msgstr ""
9842
9843 #. type: =head2
9844 #: ../fish/guestfish-actions.pod:2926
9845 msgid "lxattrlist"
9846 msgstr ""
9847
9848 #. type: verbatim
9849 #: ../fish/guestfish-actions.pod:2928
9850 #, no-wrap
9851 msgid ""
9852 " lxattrlist path 'names ...'\n"
9853 "\n"
9854 msgstr ""
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
9858 msgid ""
9859 "This call allows you to get the extended attributes of multiple files, where "
9860 "all files are in the directory C<path>.  C<names> is the list of files from "
9861 "this directory."
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
9866 msgid ""
9867 "On return you get a flat list of xattr structs which must be interpreted "
9868 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9869 "C<attrval> in this struct is zero-length to indicate there was an error "
9870 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9871 "number (the number of following attributes for this file, which could be "
9872 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9873 "attributes for the first named file.  This repeats for the second and "
9874 "subsequent files."
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:2944
9879 msgid ""
9880 "This call is intended for programs that want to efficiently list a directory "
9881 "contents without making many round-trips.  See also L</lstatlist> for a "
9882 "similarly efficient call for getting standard stats.  Very long directory "
9883 "listings might cause the protocol message size to be exceeded, causing this "
9884 "call to fail.  The caller must split up such requests into smaller groups of "
9885 "names."
9886 msgstr ""
9887
9888 #. type: =head2
9889 #: ../fish/guestfish-actions.pod:2952
9890 msgid "mkdir"
9891 msgstr ""
9892
9893 #. type: verbatim
9894 #: ../fish/guestfish-actions.pod:2954
9895 #, no-wrap
9896 msgid ""
9897 " mkdir path\n"
9898 "\n"
9899 msgstr ""
9900
9901 #. type: textblock
9902 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
9903 msgid "Create a directory named C<path>."
9904 msgstr ""
9905
9906 #. type: =head2
9907 #: ../fish/guestfish-actions.pod:2958
9908 msgid "mkdir-mode"
9909 msgstr ""
9910
9911 #. type: verbatim
9912 #: ../fish/guestfish-actions.pod:2960
9913 #, no-wrap
9914 msgid ""
9915 " mkdir-mode path mode\n"
9916 "\n"
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
9921 msgid ""
9922 "This command creates a directory, setting the initial permissions of the "
9923 "directory to C<mode>."
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
9928 msgid ""
9929 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9930 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9931 "other ways."
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:2969
9936 msgid "See also L</mkdir>, L</umask>"
9937 msgstr ""
9938
9939 #. type: =head2
9940 #: ../fish/guestfish-actions.pod:2971
9941 msgid "mkdir-p"
9942 msgstr ""
9943
9944 #. type: verbatim
9945 #: ../fish/guestfish-actions.pod:2973
9946 #, no-wrap
9947 msgid ""
9948 " mkdir-p path\n"
9949 "\n"
9950 msgstr ""
9951
9952 #. type: textblock
9953 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
9954 msgid ""
9955 "Create a directory named C<path>, creating any parent directories as "
9956 "necessary.  This is like the C<mkdir -p> shell command."
9957 msgstr ""
9958
9959 #. type: =head2
9960 #: ../fish/guestfish-actions.pod:2978
9961 msgid "mkdtemp"
9962 msgstr ""
9963
9964 #. type: verbatim
9965 #: ../fish/guestfish-actions.pod:2980
9966 #, no-wrap
9967 msgid ""
9968 " mkdtemp template\n"
9969 "\n"
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
9974 msgid ""
9975 "This command creates a temporary directory.  The C<template> parameter "
9976 "should be a full pathname for the temporary directory name with the final "
9977 "six characters being \"XXXXXX\"."
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
9982 msgid ""
9983 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9984 "being suitable for Windows filesystems."
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
9989 msgid "The name of the temporary directory that was created is returned."
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
9994 msgid "The temporary directory is created with mode 0700 and is owned by root."
9995 msgstr ""
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
9999 msgid ""
10000 "The caller is responsible for deleting the temporary directory and its "
10001 "contents after use."
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
10006 msgid "See also: L<mkdtemp(3)>"
10007 msgstr ""
10008
10009 #. type: =head2
10010 #: ../fish/guestfish-actions.pod:3001
10011 msgid "mke2fs-J"
10012 msgstr ""
10013
10014 #. type: verbatim
10015 #: ../fish/guestfish-actions.pod:3003
10016 #, no-wrap
10017 msgid ""
10018 " mke2fs-J fstype blocksize device journal\n"
10019 "\n"
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
10024 msgid ""
10025 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10026 "C<journal>.  It is equivalent to the command:"
10027 msgstr ""
10028
10029 #. type: verbatim
10030 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
10031 #, no-wrap
10032 msgid ""
10033 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10034 "\n"
10035 msgstr ""
10036
10037 #. type: textblock
10038 #: ../fish/guestfish-actions.pod:3011
10039 msgid "See also L</mke2journal>."
10040 msgstr ""
10041
10042 #. type: =head2
10043 #: ../fish/guestfish-actions.pod:3013
10044 msgid "mke2fs-JL"
10045 msgstr ""
10046
10047 #. type: verbatim
10048 #: ../fish/guestfish-actions.pod:3015
10049 #, no-wrap
10050 msgid ""
10051 " mke2fs-JL fstype blocksize device label\n"
10052 "\n"
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
10057 msgid ""
10058 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10059 "the journal labeled C<label>."
10060 msgstr ""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:3020
10064 msgid "See also L</mke2journal-L>."
10065 msgstr ""
10066
10067 #. type: =head2
10068 #: ../fish/guestfish-actions.pod:3022
10069 msgid "mke2fs-JU"
10070 msgstr ""
10071
10072 #. type: verbatim
10073 #: ../fish/guestfish-actions.pod:3024
10074 #, no-wrap
10075 msgid ""
10076 " mke2fs-JU fstype blocksize device uuid\n"
10077 "\n"
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
10082 msgid ""
10083 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10084 "the journal with UUID C<uuid>."
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../fish/guestfish-actions.pod:3029
10089 msgid "See also L</mke2journal-U>."
10090 msgstr ""
10091
10092 #. type: =head2
10093 #: ../fish/guestfish-actions.pod:3031
10094 msgid "mke2journal"
10095 msgstr ""
10096
10097 #. type: verbatim
10098 #: ../fish/guestfish-actions.pod:3033
10099 #, no-wrap
10100 msgid ""
10101 " mke2journal blocksize device\n"
10102 "\n"
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
10107 msgid ""
10108 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10109 "command:"
10110 msgstr ""
10111
10112 #. type: verbatim
10113 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
10114 #, no-wrap
10115 msgid ""
10116 " mke2fs -O journal_dev -b blocksize device\n"
10117 "\n"
10118 msgstr ""
10119
10120 #. type: =head2
10121 #: ../fish/guestfish-actions.pod:3040
10122 msgid "mke2journal-L"
10123 msgstr ""
10124
10125 #. type: verbatim
10126 #: ../fish/guestfish-actions.pod:3042
10127 #, no-wrap
10128 msgid ""
10129 " mke2journal-L blocksize label device\n"
10130 "\n"
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
10135 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10136 msgstr ""
10137
10138 #. type: =head2
10139 #: ../fish/guestfish-actions.pod:3046
10140 msgid "mke2journal-U"
10141 msgstr ""
10142
10143 #. type: verbatim
10144 #: ../fish/guestfish-actions.pod:3048
10145 #, no-wrap
10146 msgid ""
10147 " mke2journal-U blocksize uuid device\n"
10148 "\n"
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
10153 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10154 msgstr ""
10155
10156 #. type: =head2
10157 #: ../fish/guestfish-actions.pod:3052
10158 msgid "mkfifo"
10159 msgstr ""
10160
10161 #. type: verbatim
10162 #: ../fish/guestfish-actions.pod:3054
10163 #, no-wrap
10164 msgid ""
10165 " mkfifo mode path\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:3056
10171 msgid ""
10172 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10173 "is just a convenient wrapper around L</mknod>."
10174 msgstr ""
10175
10176 #. type: =head2
10177 #: ../fish/guestfish-actions.pod:3062
10178 msgid "mkfs"
10179 msgstr ""
10180
10181 #. type: verbatim
10182 #: ../fish/guestfish-actions.pod:3064
10183 #, no-wrap
10184 msgid ""
10185 " mkfs fstype device\n"
10186 "\n"
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
10191 msgid ""
10192 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10193 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10194 msgstr ""
10195
10196 #. type: =head2
10197 #: ../fish/guestfish-actions.pod:3070
10198 msgid "mkfs-b"
10199 msgstr ""
10200
10201 #. type: verbatim
10202 #: ../fish/guestfish-actions.pod:3072
10203 #, no-wrap
10204 msgid ""
10205 " mkfs-b fstype blocksize device\n"
10206 "\n"
10207 msgstr ""
10208
10209 #. type: textblock
10210 #: ../fish/guestfish-actions.pod:3074
10211 msgid ""
10212 "This call is similar to L</mkfs>, but it allows you to control the block "
10213 "size of the resulting filesystem.  Supported block sizes depend on the "
10214 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10215 msgstr ""
10216
10217 #. type: textblock
10218 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4665
10219 msgid ""
10220 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10221 "cluster size."
10222 msgstr ""
10223
10224 #. type: textblock
10225 #: ../fish/guestfish-actions.pod:3082
10226 msgid ""
10227 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10228 "instead."
10229 msgstr ""
10230
10231 #. type: =head2
10232 #: ../fish/guestfish-actions.pod:3089
10233 msgid "mkfs-opts"
10234 msgstr ""
10235
10236 #. type: verbatim
10237 #: ../fish/guestfish-actions.pod:3091
10238 #, no-wrap
10239 msgid ""
10240 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10241 "[sectorsize:..]\n"
10242 "\n"
10243 msgstr ""
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
10247 msgid ""
10248 "This function creates a filesystem on C<device>.  The filesystem type is "
10249 "C<fstype>, for example C<ext3>."
10250 msgstr ""
10251
10252 #. type: =item
10253 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
10254 msgid "C<blocksize>"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
10259 msgid ""
10260 "The filesystem block size.  Supported block sizes depend on the filesystem "
10261 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10262 "filesystems."
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
10267 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10268 msgstr ""
10269
10270 #. type: =item
10271 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
10272 msgid "C<features>"
10273 msgstr ""
10274
10275 #. type: textblock
10276 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
10277 msgid "This passes the I<-O> parameter to the external mkfs program."
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
10282 msgid ""
10283 "For certain filesystem types, this allows extra filesystem features to be "
10284 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10285 msgstr ""
10286
10287 #. type: textblock
10288 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
10289 msgid ""
10290 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10291 "type."
10292 msgstr ""
10293
10294 #. type: =item
10295 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
10296 msgid "C<inode>"
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10301 msgid ""
10302 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10303 "sets the inode size (only for ext2/3/4 filesystems at present)."
10304 msgstr ""
10305
10306 #. type: =item
10307 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10308 msgid "C<sectorsize>"
10309 msgstr ""
10310
10311 #. type: textblock
10312 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10313 msgid ""
10314 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10315 "sets sector size for ufs filesystem."
10316 msgstr ""
10317
10318 #. type: =head2
10319 #: ../fish/guestfish-actions.pod:3136
10320 msgid "mkmountpoint"
10321 msgstr ""
10322
10323 #. type: verbatim
10324 #: ../fish/guestfish-actions.pod:3138
10325 #, no-wrap
10326 msgid ""
10327 " mkmountpoint exemptpath\n"
10328 "\n"
10329 msgstr ""
10330
10331 #. type: textblock
10332 #: ../fish/guestfish-actions.pod:3140
10333 msgid ""
10334 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10335 "to create extra mountpoints before mounting the first filesystem."
10336 msgstr ""
10337
10338 #. type: textblock
10339 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
10340 msgid ""
10341 "These calls are I<only> necessary in some very limited circumstances, mainly "
10342 "the case where you want to mount a mix of unrelated and/or read-only "
10343 "filesystems together."
10344 msgstr ""
10345
10346 #. type: textblock
10347 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
10348 msgid ""
10349 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10350 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10351 "inside that.  You can unpack this as follows in guestfish:"
10352 msgstr ""
10353
10354 #. type: verbatim
10355 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10356 #, no-wrap
10357 msgid ""
10358 " add-ro Fedora-11-i686-Live.iso\n"
10359 " run\n"
10360 " mkmountpoint /cd\n"
10361 " mkmountpoint /sqsh\n"
10362 " mkmountpoint /ext3fs\n"
10363 " mount /dev/sda /cd\n"
10364 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10365 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10366 "\n"
10367 msgstr ""
10368
10369 #. type: textblock
10370 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
10371 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:3164
10376 msgid ""
10377 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10378 "unexpected errors if you try to mix these calls.  It is safest to manually "
10379 "unmount filesystems and remove mountpoints after use."
10380 msgstr ""
10381
10382 #. type: textblock
10383 #: ../fish/guestfish-actions.pod:3168
10384 msgid ""
10385 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10386 "for this to work for manual mountpoints, you must ensure that the innermost "
10387 "mountpoints have the longest pathnames, as in the example code above."
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
10392 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10393 msgstr ""
10394
10395 #. type: textblock
10396 #: ../fish/guestfish-actions.pod:3175
10397 msgid ""
10398 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10399 "L</umount-all> to be called when the handle is closed which can also trigger "
10400 "these issues."
10401 msgstr ""
10402
10403 #. type: =head2
10404 #: ../fish/guestfish-actions.pod:3179
10405 msgid "mknod"
10406 msgstr ""
10407
10408 #. type: verbatim
10409 #: ../fish/guestfish-actions.pod:3181
10410 #, no-wrap
10411 msgid ""
10412 " mknod mode devmajor devminor path\n"
10413 "\n"
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
10418 msgid ""
10419 "This call creates block or character special devices, or named pipes "
10420 "(FIFOs)."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
10425 msgid ""
10426 "The C<mode> parameter should be the mode, using the standard constants.  "
10427 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10428 "used when creating block and character special devices."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../fish/guestfish-actions.pod:3191
10433 msgid ""
10434 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10435 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10436 "regular file).  These constants are available in the standard Linux header "
10437 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10438 "wrappers around this command which bitwise OR in the appropriate constant "
10439 "for you."
10440 msgstr ""
10441
10442 #. type: =head2
10443 #: ../fish/guestfish-actions.pod:3201
10444 msgid "mknod-b"
10445 msgstr ""
10446
10447 #. type: verbatim
10448 #: ../fish/guestfish-actions.pod:3203
10449 #, no-wrap
10450 msgid ""
10451 " mknod-b mode devmajor devminor path\n"
10452 "\n"
10453 msgstr ""
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:3205
10457 msgid ""
10458 "This call creates a block device node called C<path> with mode C<mode> and "
10459 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10460 "wrapper around L</mknod>."
10461 msgstr ""
10462
10463 #. type: =head2
10464 #: ../fish/guestfish-actions.pod:3211
10465 msgid "mknod-c"
10466 msgstr ""
10467
10468 #. type: verbatim
10469 #: ../fish/guestfish-actions.pod:3213
10470 #, no-wrap
10471 msgid ""
10472 " mknod-c mode devmajor devminor path\n"
10473 "\n"
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:3215
10478 msgid ""
10479 "This call creates a char device node called C<path> with mode C<mode> and "
10480 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10481 "wrapper around L</mknod>."
10482 msgstr ""
10483
10484 #. type: =head2
10485 #: ../fish/guestfish-actions.pod:3221
10486 msgid "mkswap"
10487 msgstr ""
10488
10489 #. type: verbatim
10490 #: ../fish/guestfish-actions.pod:3223
10491 #, no-wrap
10492 msgid ""
10493 " mkswap device\n"
10494 "\n"
10495 msgstr ""
10496
10497 #. type: textblock
10498 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
10499 msgid "Create a swap partition on C<device>."
10500 msgstr ""
10501
10502 #. type: =head2
10503 #: ../fish/guestfish-actions.pod:3227
10504 msgid "mkswap-L"
10505 msgstr ""
10506
10507 #. type: verbatim
10508 #: ../fish/guestfish-actions.pod:3229
10509 #, no-wrap
10510 msgid ""
10511 " mkswap-L label device\n"
10512 "\n"
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
10517 msgid "Create a swap partition on C<device> with label C<label>."
10518 msgstr ""
10519
10520 #. type: textblock
10521 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
10522 msgid ""
10523 "Note that you cannot attach a swap label to a block device "
10524 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10525 "the kernel or swap tools."
10526 msgstr ""
10527
10528 #. type: =head2
10529 #: ../fish/guestfish-actions.pod:3237
10530 msgid "mkswap-U"
10531 msgstr ""
10532
10533 #. type: verbatim
10534 #: ../fish/guestfish-actions.pod:3239
10535 #, no-wrap
10536 msgid ""
10537 " mkswap-U uuid device\n"
10538 "\n"
10539 msgstr ""
10540
10541 #. type: textblock
10542 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
10543 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10544 msgstr ""
10545
10546 #. type: =head2
10547 #: ../fish/guestfish-actions.pod:3243
10548 msgid "mkswap-file"
10549 msgstr ""
10550
10551 #. type: verbatim
10552 #: ../fish/guestfish-actions.pod:3245
10553 #, no-wrap
10554 msgid ""
10555 " mkswap-file path\n"
10556 "\n"
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
10561 msgid "Create a swap file."
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:3249
10566 msgid ""
10567 "This command just writes a swap file signature to an existing file.  To "
10568 "create the file itself, use something like L</fallocate>."
10569 msgstr ""
10570
10571 #. type: =head2
10572 #: ../fish/guestfish-actions.pod:3252
10573 msgid "modprobe"
10574 msgstr ""
10575
10576 #. type: verbatim
10577 #: ../fish/guestfish-actions.pod:3254
10578 #, no-wrap
10579 msgid ""
10580 " modprobe modulename\n"
10581 "\n"
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
10586 msgid "This loads a kernel module in the appliance."
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
10591 msgid ""
10592 "The kernel module must have been whitelisted when libguestfs was built (see "
10593 "C<appliance/kmod.whitelist.in> in the source)."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:3261
10598 msgid "mount"
10599 msgstr ""
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:3263
10603 #, no-wrap
10604 msgid ""
10605 " mount device mountpoint\n"
10606 "\n"
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4918
10611 msgid ""
10612 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10613 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10614 "those block devices contain partitions, they will have the usual names "
10615 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10616 msgstr ""
10617
10618 #. type: textblock
10619 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4924
10620 msgid ""
10621 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10622 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10623 "mounted on directories which already exist."
10624 msgstr ""
10625
10626 #. type: textblock
10627 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
10628 msgid ""
10629 "The mounted filesystem is writable, if we have sufficient permissions on the "
10630 "underlying device."
10631 msgstr ""
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:3279
10635 msgid ""
10636 "B<Important note:> When you use this call, the filesystem options C<sync> "
10637 "and C<noatime> are set implicitly.  This was originally done because we "
10638 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10639 "very large negative performance impact and negligible effect on "
10640 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
10641 "code that needs performance, and instead use L</mount-options> (use an empty "
10642 "string for the first parameter if you don't want any options)."
10643 msgstr ""
10644
10645 #. type: textblock
10646 #: ../fish/guestfish-actions.pod:3289
10647 msgid ""
10648 "This function is deprecated.  In new code, use the L</mount_options> call "
10649 "instead."
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:3296
10654 msgid "mount-9p"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:3298
10659 #, no-wrap
10660 msgid ""
10661 " mount-9p mounttag mountpoint [options:..]\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
10667 msgid ""
10668 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10669 "C<mountpoint>."
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
10674 msgid ""
10675 "If required, C<trans=virtio> will be automatically added to the options.  "
10676 "Any other options required can be passed in the optional C<options> "
10677 "parameter."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:3309
10682 msgid "mount-loop"
10683 msgstr ""
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:3311
10687 #, no-wrap
10688 msgid ""
10689 " mount-loop file mountpoint\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
10695 msgid ""
10696 "This command lets you mount C<file> (a filesystem image in a file) on a "
10697 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10698 "mountpoint>."
10699 msgstr ""
10700
10701 #. type: =head2
10702 #: ../fish/guestfish-actions.pod:3317
10703 msgid "mount-options"
10704 msgstr ""
10705
10706 #. type: verbatim
10707 #: ../fish/guestfish-actions.pod:3319
10708 #, no-wrap
10709 msgid ""
10710 " mount-options options device mountpoint\n"
10711 "\n"
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:3321
10716 msgid ""
10717 "This is the same as the L</mount> command, but it allows you to set the "
10718 "mount options as for the L<mount(8)> I<-o> flag."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
10723 msgid ""
10724 "If the C<options> parameter is an empty string, then no options are passed "
10725 "(all options default to whatever the filesystem uses)."
10726 msgstr ""
10727
10728 #. type: =head2
10729 #: ../fish/guestfish-actions.pod:3329
10730 msgid "mount-ro"
10731 msgstr ""
10732
10733 #. type: verbatim
10734 #: ../fish/guestfish-actions.pod:3331
10735 #, no-wrap
10736 msgid ""
10737 " mount-ro device mountpoint\n"
10738 "\n"
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:3333
10743 msgid ""
10744 "This is the same as the L</mount> command, but it mounts the filesystem with "
10745 "the read-only (I<-o ro>) flag."
10746 msgstr ""
10747
10748 #. type: =head2
10749 #: ../fish/guestfish-actions.pod:3336
10750 msgid "mount-vfs"
10751 msgstr ""
10752
10753 #. type: verbatim
10754 #: ../fish/guestfish-actions.pod:3338
10755 #, no-wrap
10756 msgid ""
10757 " mount-vfs options vfstype device mountpoint\n"
10758 "\n"
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:3340
10763 msgid ""
10764 "This is the same as the L</mount> command, but it allows you to set both the "
10765 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
10766 msgstr ""
10767
10768 #. type: =head2
10769 #: ../fish/guestfish-actions.pod:3344
10770 msgid "mountpoints"
10771 msgstr ""
10772
10773 #. type: verbatim
10774 #: ../fish/guestfish-actions.pod:3346
10775 #, no-wrap
10776 msgid ""
10777 " mountpoints\n"
10778 "\n"
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:3348
10783 msgid ""
10784 "This call is similar to L</mounts>.  That call returns a list of devices.  "
10785 "This one returns a hash table (map) of device name to directory where the "
10786 "device is mounted."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:3352
10791 msgid "mounts"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:3354
10796 #, no-wrap
10797 msgid ""
10798 " mounts\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
10804 msgid ""
10805 "This returns the list of currently mounted filesystems.  It returns the list "
10806 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10807 msgstr ""
10808
10809 #. type: textblock
10810 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
10811 msgid "Some internal mounts are not shown."
10812 msgstr ""
10813
10814 #. type: textblock
10815 #: ../fish/guestfish-actions.pod:3361
10816 msgid "See also: L</mountpoints>"
10817 msgstr ""
10818
10819 #. type: =head2
10820 #: ../fish/guestfish-actions.pod:3363
10821 msgid "mv"
10822 msgstr ""
10823
10824 #. type: verbatim
10825 #: ../fish/guestfish-actions.pod:3365
10826 #, no-wrap
10827 msgid ""
10828 " mv src dest\n"
10829 "\n"
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
10834 msgid ""
10835 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10836 "destination filename or destination directory."
10837 msgstr ""
10838
10839 #. type: =head2
10840 #: ../fish/guestfish-actions.pod:3370
10841 msgid "ntfs-3g-probe"
10842 msgstr ""
10843
10844 #. type: verbatim
10845 #: ../fish/guestfish-actions.pod:3372
10846 #, no-wrap
10847 msgid ""
10848 " ntfs-3g-probe true|false device\n"
10849 "\n"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
10854 msgid ""
10855 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10856 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10857 "read-write, and some cannot be mounted at all)."
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
10862 msgid ""
10863 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10864 "can be mounted read-write.  Set it to false if you want to test if the "
10865 "volume can be mounted read-only."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
10870 msgid ""
10871 "The return value is an integer which C<0> if the operation would succeed, or "
10872 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:3386
10877 msgid "ntfsresize"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:3388
10882 #, no-wrap
10883 msgid ""
10884 " ntfsresize device\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414 ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5186
10890 msgid ""
10891 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10892 "size of the underlying device."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5150
10897 msgid ""
10898 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
10899 "consistency check (for safety).  You have to boot into Windows to perform "
10900 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
10901 "resize filesystems which have been marked in this way.  So in effect it is "
10902 "not possible to call ntfsresize multiple times on a single filesystem "
10903 "without booting into Windows between each resize."
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5158 ../src/guestfs-actions.pod:5212
10908 msgid "See also L<ntfsresize(8)>."
10909 msgstr ""
10910
10911 #. type: textblock
10912 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
10913 msgid ""
10914 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
10915 "instead."
10916 msgstr ""
10917
10918 #. type: =head2
10919 #: ../fish/guestfish-actions.pod:3410
10920 msgid "ntfsresize-opts"
10921 msgstr ""
10922
10923 #. type: verbatim
10924 #: ../fish/guestfish-actions.pod:3412
10925 #, no-wrap
10926 msgid ""
10927 " ntfsresize-opts device [size:..] [force:..]\n"
10928 "\n"
10929 msgstr ""
10930
10931 #. type: textblock
10932 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
10933 msgid ""
10934 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
10935 "resized to fit the container (eg. partition)."
10936 msgstr ""
10937
10938 #. type: =item
10939 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
10940 msgid "C<force>"
10941 msgstr ""
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
10945 msgid ""
10946 "If this option is true, then force the resize of the filesystem even if the "
10947 "filesystem is marked as requiring a consistency check."
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:3431
10952 msgid ""
10953 "After the resize operation, the filesystem is always marked as requiring a "
10954 "consistency check (for safety).  You have to boot into Windows to perform "
10955 "this check and clear this condition.  If you I<don't> set the C<force> "
10956 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
10957 "a single filesystem without booting into Windows between each resize."
10958 msgstr ""
10959
10960 #. type: =head2
10961 #: ../fish/guestfish-actions.pod:3444
10962 msgid "ntfsresize-size"
10963 msgstr ""
10964
10965 #. type: verbatim
10966 #: ../fish/guestfish-actions.pod:3446
10967 #, no-wrap
10968 msgid ""
10969 " ntfsresize-size device size\n"
10970 "\n"
10971 msgstr ""
10972
10973 #. type: textblock
10974 #: ../fish/guestfish-actions.pod:3448
10975 msgid ""
10976 "This command is the same as L</ntfsresize> except that it allows you to "
10977 "specify the new size (in bytes) explicitly."
10978 msgstr ""
10979
10980 #. type: =head2
10981 #: ../fish/guestfish-actions.pod:3458
10982 msgid "part-add"
10983 msgstr ""
10984
10985 #. type: verbatim
10986 #: ../fish/guestfish-actions.pod:3460
10987 #, no-wrap
10988 msgid ""
10989 " part-add device prlogex startsect endsect\n"
10990 "\n"
10991 msgstr ""
10992
10993 #. type: textblock
10994 #: ../fish/guestfish-actions.pod:3462
10995 msgid ""
10996 "This command adds a partition to C<device>.  If there is no partition table "
10997 "on the device, call L</part-init> first."
10998 msgstr ""
10999
11000 #. type: textblock
11001 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
11002 msgid ""
11003 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11004 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11005 "C<logical>) and C<e> (or C<extended>) partition types."
11006 msgstr ""
11007
11008 #. type: textblock
11009 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11010 msgid ""
11011 "C<startsect> and C<endsect> are the start and end of the partition in "
11012 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11013 "from the end of the disk (C<-1> is the last sector)."
11014 msgstr ""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:3474
11018 msgid ""
11019 "Creating a partition which covers the whole disk is not so easy.  Use "
11020 "L</part-disk> to do that."
11021 msgstr ""
11022
11023 #. type: =head2
11024 #: ../fish/guestfish-actions.pod:3477
11025 msgid "part-del"
11026 msgstr ""
11027
11028 #. type: verbatim
11029 #: ../fish/guestfish-actions.pod:3479
11030 #, no-wrap
11031 msgid ""
11032 " part-del device partnum\n"
11033 "\n"
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
11038 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11039 msgstr ""
11040
11041 #. type: textblock
11042 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
11043 msgid ""
11044 "Note that in the case of MBR partitioning, deleting an extended partition "
11045 "also deletes any logical partitions it contains."
11046 msgstr ""
11047
11048 #. type: =head2
11049 #: ../fish/guestfish-actions.pod:3487
11050 msgid "part-disk"
11051 msgstr ""
11052
11053 #. type: verbatim
11054 #: ../fish/guestfish-actions.pod:3489
11055 #, no-wrap
11056 msgid ""
11057 " part-disk device parttype\n"
11058 "\n"
11059 msgstr ""
11060
11061 #. type: textblock
11062 #: ../fish/guestfish-actions.pod:3491
11063 msgid ""
11064 "This command is simply a combination of L</part-init> followed by "
11065 "L</part-add> to create a single primary partition covering the whole disk."
11066 msgstr ""
11067
11068 #. type: textblock
11069 #: ../fish/guestfish-actions.pod:3495
11070 msgid ""
11071 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11072 "possible values are described in L</part-init>."
11073 msgstr ""
11074
11075 #. type: =head2
11076 #: ../fish/guestfish-actions.pod:3501
11077 msgid "part-get-bootable"
11078 msgstr ""
11079
11080 #. type: verbatim
11081 #: ../fish/guestfish-actions.pod:3503
11082 #, no-wrap
11083 msgid ""
11084 " part-get-bootable device partnum\n"
11085 "\n"
11086 msgstr ""
11087
11088 #. type: textblock
11089 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
11090 msgid ""
11091 "This command returns true if the partition C<partnum> on C<device> has the "
11092 "bootable flag set."
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:3508
11097 msgid "See also L</part-set-bootable>."
11098 msgstr ""
11099
11100 #. type: =head2
11101 #: ../fish/guestfish-actions.pod:3510
11102 msgid "part-get-mbr-id"
11103 msgstr ""
11104
11105 #. type: verbatim
11106 #: ../fish/guestfish-actions.pod:3512
11107 #, no-wrap
11108 msgid ""
11109 " part-get-mbr-id device partnum\n"
11110 "\n"
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
11115 msgid ""
11116 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11117 "partition C<partnum>."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
11122 msgid ""
11123 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11124 "undefined results for other partition table types (see "
11125 "L</part-get-parttype>)."
11126 msgstr ""
11127
11128 #. type: =head2
11129 #: ../fish/guestfish-actions.pod:3521
11130 msgid "part-get-parttype"
11131 msgstr ""
11132
11133 #. type: verbatim
11134 #: ../fish/guestfish-actions.pod:3523
11135 #, no-wrap
11136 msgid ""
11137 " part-get-parttype device\n"
11138 "\n"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
11143 msgid ""
11144 "This command examines the partition table on C<device> and returns the "
11145 "partition table type (format) being used."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:3528
11150 msgid ""
11151 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11152 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11153 "possible, although unusual.  See L</part-init> for a full list."
11154 msgstr ""
11155
11156 #. type: =head2
11157 #: ../fish/guestfish-actions.pod:3533
11158 msgid "part-init"
11159 msgstr ""
11160
11161 #. type: verbatim
11162 #: ../fish/guestfish-actions.pod:3535
11163 #, no-wrap
11164 msgid ""
11165 " part-init device parttype\n"
11166 "\n"
11167 msgstr ""
11168
11169 #. type: textblock
11170 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
11171 msgid ""
11172 "This creates an empty partition table on C<device> of one of the partition "
11173 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11174 "(for large disks)."
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:3541
11179 msgid ""
11180 "Initially there are no partitions.  Following this, you should call "
11181 "L</part-add> for each partition required."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
11186 msgid "Possible values for C<parttype> are:"
11187 msgstr ""
11188
11189 #. type: =item
11190 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
11191 msgid "B<efi>"
11192 msgstr ""
11193
11194 #. type: =item
11195 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
11196 msgid "B<gpt>"
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
11201 msgid "Intel EFI / GPT partition table."
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
11206 msgid ""
11207 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11208 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11209 "the C<mbr> format."
11210 msgstr ""
11211
11212 #. type: =item
11213 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
11214 msgid "B<mbr>"
11215 msgstr ""
11216
11217 #. type: =item
11218 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
11219 msgid "B<msdos>"
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
11224 msgid ""
11225 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11226 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11227 "TB.  For large disks we recommend using C<gpt>."
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
11232 msgid "Other partition table types that may work but are not supported include:"
11233 msgstr ""
11234
11235 #. type: =item
11236 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11237 msgid "B<aix>"
11238 msgstr ""
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
11242 msgid "AIX disk labels."
11243 msgstr ""
11244
11245 #. type: =item
11246 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
11247 msgid "B<amiga>"
11248 msgstr ""
11249
11250 #. type: =item
11251 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
11252 msgid "B<rdb>"
11253 msgstr ""
11254
11255 #. type: textblock
11256 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
11257 msgid "Amiga \"Rigid Disk Block\" format."
11258 msgstr ""
11259
11260 #. type: =item
11261 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
11262 msgid "B<bsd>"
11263 msgstr ""
11264
11265 #. type: textblock
11266 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
11267 msgid "BSD disk labels."
11268 msgstr ""
11269
11270 #. type: =item
11271 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
11272 msgid "B<dasd>"
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
11277 msgid "DASD, used on IBM mainframes."
11278 msgstr ""
11279
11280 #. type: =item
11281 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
11282 msgid "B<dvh>"
11283 msgstr ""
11284
11285 #. type: textblock
11286 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
11287 msgid "MIPS/SGI volumes."
11288 msgstr ""
11289
11290 #. type: =item
11291 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11292 msgid "B<mac>"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
11297 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11298 msgstr ""
11299
11300 #. type: =item
11301 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
11302 msgid "B<pc98>"
11303 msgstr ""
11304
11305 #. type: textblock
11306 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
11307 msgid "NEC PC-98 format, common in Japan apparently."
11308 msgstr ""
11309
11310 #. type: =item
11311 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
11312 msgid "B<sun>"
11313 msgstr ""
11314
11315 #. type: textblock
11316 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
11317 msgid "Sun disk labels."
11318 msgstr ""
11319
11320 #. type: =head2
11321 #: ../fish/guestfish-actions.pod:3610
11322 msgid "part-list"
11323 msgstr ""
11324
11325 #. type: verbatim
11326 #: ../fish/guestfish-actions.pod:3612
11327 #, no-wrap
11328 msgid ""
11329 " part-list device\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
11335 msgid ""
11336 "This command parses the partition table on C<device> and returns the list of "
11337 "partitions found."
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
11342 msgid "The fields in the returned structure are:"
11343 msgstr ""
11344
11345 #. type: =item
11346 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
11347 msgid "B<part_num>"
11348 msgstr ""
11349
11350 #. type: textblock
11351 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
11352 msgid "Partition number, counting from 1."
11353 msgstr ""
11354
11355 #. type: =item
11356 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
11357 msgid "B<part_start>"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:3627
11362 msgid ""
11363 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11364 "the device's sector size, see L</blockdev-getss>."
11365 msgstr ""
11366
11367 #. type: =item
11368 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11369 msgid "B<part_end>"
11370 msgstr ""
11371
11372 #. type: textblock
11373 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
11374 msgid "End of the partition in bytes."
11375 msgstr ""
11376
11377 #. type: =item
11378 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
11379 msgid "B<part_size>"
11380 msgstr ""
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
11384 msgid "Size of the partition in bytes."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:3640
11389 msgid "part-set-bootable"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:3642
11394 #, no-wrap
11395 msgid ""
11396 " part-set-bootable device partnum true|false\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
11402 msgid ""
11403 "This sets the bootable flag on partition numbered C<partnum> on device "
11404 "C<device>.  Note that partitions are numbered from 1."
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
11409 msgid ""
11410 "The bootable flag is used by some operating systems (notably Windows) to "
11411 "determine which partition to boot from.  It is by no means universally "
11412 "recognized."
11413 msgstr ""
11414
11415 #. type: =head2
11416 #: ../fish/guestfish-actions.pod:3651
11417 msgid "part-set-mbr-id"
11418 msgstr ""
11419
11420 #. type: verbatim
11421 #: ../fish/guestfish-actions.pod:3653
11422 #, no-wrap
11423 msgid ""
11424 " part-set-mbr-id device partnum idbyte\n"
11425 "\n"
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
11430 msgid ""
11431 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11432 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11433 "documentation are in fact hexadecimal numbers, but usually documented "
11434 "without any leading \"0x\" which might be confusing."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:3665
11439 msgid "part-set-name"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:3667
11444 #, no-wrap
11445 msgid ""
11446 " part-set-name device partnum name\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
11452 msgid ""
11453 "This sets the partition name on partition numbered C<partnum> on device "
11454 "C<device>.  Note that partitions are numbered from 1."
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
11459 msgid ""
11460 "The partition name can only be set on certain types of partition table.  "
11461 "This works on C<gpt> but not on C<mbr> partitions."
11462 msgstr ""
11463
11464 #. type: =head2
11465 #: ../fish/guestfish-actions.pod:3675
11466 msgid "part-to-dev"
11467 msgstr ""
11468
11469 #. type: verbatim
11470 #: ../fish/guestfish-actions.pod:3677
11471 #, no-wrap
11472 msgid ""
11473 " part-to-dev partition\n"
11474 "\n"
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
11479 msgid ""
11480 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11481 "partition number, returning the device name (eg. \"/dev/sdb\")."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3683
11486 msgid ""
11487 "The named partition must exist, for example as a string returned from "
11488 "L</list-partitions>."
11489 msgstr ""
11490
11491 #. type: =head2
11492 #: ../fish/guestfish-actions.pod:3686
11493 msgid "ping-daemon"
11494 msgstr ""
11495
11496 #. type: verbatim
11497 #: ../fish/guestfish-actions.pod:3688
11498 #, no-wrap
11499 msgid ""
11500 " ping-daemon\n"
11501 "\n"
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
11506 msgid ""
11507 "This is a test probe into the guestfs daemon running inside the qemu "
11508 "subprocess.  Calling this function checks that the daemon responds to the "
11509 "ping message, without affecting the daemon or attached block device(s) in "
11510 "any other way."
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:3695
11515 msgid "pread"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:3697
11520 #, no-wrap
11521 msgid ""
11522 " pread path count offset\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
11528 msgid ""
11529 "This command lets you read part of a file.  It reads C<count> bytes of the "
11530 "file, starting at C<offset>, from file C<path>."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
11535 msgid ""
11536 "This may read fewer bytes than requested.  For further details see the "
11537 "L<pread(2)> system call."
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:3705
11542 msgid "See also L</pwrite>, L</pread-device>."
11543 msgstr ""
11544
11545 #. type: =head2
11546 #: ../fish/guestfish-actions.pod:3710
11547 msgid "pread-device"
11548 msgstr ""
11549
11550 #. type: verbatim
11551 #: ../fish/guestfish-actions.pod:3712
11552 #, no-wrap
11553 msgid ""
11554 " pread-device device count offset\n"
11555 "\n"
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
11560 msgid ""
11561 "This command lets you read part of a file.  It reads C<count> bytes of "
11562 "C<device>, starting at C<offset>."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../fish/guestfish-actions.pod:3720
11567 msgid "See also L</pread>."
11568 msgstr ""
11569
11570 #. type: =head2
11571 #: ../fish/guestfish-actions.pod:3725
11572 msgid "pvcreate"
11573 msgstr ""
11574
11575 #. type: verbatim
11576 #: ../fish/guestfish-actions.pod:3727
11577 #, no-wrap
11578 msgid ""
11579 " pvcreate device\n"
11580 "\n"
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
11585 msgid ""
11586 "This creates an LVM physical volume on the named C<device>, where C<device> "
11587 "should usually be a partition name such as C</dev/sda1>."
11588 msgstr ""
11589
11590 #. type: =head2
11591 #: ../fish/guestfish-actions.pod:3733
11592 msgid "pvremove"
11593 msgstr ""
11594
11595 #. type: verbatim
11596 #: ../fish/guestfish-actions.pod:3735
11597 #, no-wrap
11598 msgid ""
11599 " pvremove device\n"
11600 "\n"
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
11605 msgid ""
11606 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11607 "it."
11608 msgstr ""
11609
11610 #. type: textblock
11611 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
11612 msgid ""
11613 "The implementation uses the C<pvremove> command which refuses to wipe "
11614 "physical volumes that contain any volume groups, so you have to remove those "
11615 "first."
11616 msgstr ""
11617
11618 #. type: =head2
11619 #: ../fish/guestfish-actions.pod:3744
11620 msgid "pvresize"
11621 msgstr ""
11622
11623 #. type: verbatim
11624 #: ../fish/guestfish-actions.pod:3746
11625 #, no-wrap
11626 msgid ""
11627 " pvresize device\n"
11628 "\n"
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
11633 msgid ""
11634 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11635 "the new size of the underlying device."
11636 msgstr ""
11637
11638 #. type: =head2
11639 #: ../fish/guestfish-actions.pod:3751
11640 msgid "pvresize-size"
11641 msgstr ""
11642
11643 #. type: verbatim
11644 #: ../fish/guestfish-actions.pod:3753
11645 #, no-wrap
11646 msgid ""
11647 " pvresize-size device size\n"
11648 "\n"
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:3755
11653 msgid ""
11654 "This command is the same as L</pvresize> except that it allows you to "
11655 "specify the new size (in bytes) explicitly."
11656 msgstr ""
11657
11658 #. type: =head2
11659 #: ../fish/guestfish-actions.pod:3758
11660 msgid "pvs"
11661 msgstr ""
11662
11663 #. type: verbatim
11664 #: ../fish/guestfish-actions.pod:3760
11665 #, no-wrap
11666 msgid ""
11667 " pvs\n"
11668 "\n"
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
11673 msgid ""
11674 "List all the physical volumes detected.  This is the equivalent of the "
11675 "L<pvs(8)> command."
11676 msgstr ""
11677
11678 #. type: textblock
11679 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
11680 msgid ""
11681 "This returns a list of just the device names that contain PVs "
11682 "(eg. C</dev/sda2>)."
11683 msgstr ""
11684
11685 #. type: textblock
11686 #: ../fish/guestfish-actions.pod:3768
11687 msgid "See also L</pvs-full>."
11688 msgstr ""
11689
11690 #. type: =head2
11691 #: ../fish/guestfish-actions.pod:3770
11692 msgid "pvs-full"
11693 msgstr ""
11694
11695 #. type: verbatim
11696 #: ../fish/guestfish-actions.pod:3772
11697 #, no-wrap
11698 msgid ""
11699 " pvs-full\n"
11700 "\n"
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
11705 msgid ""
11706 "List all the physical volumes detected.  This is the equivalent of the "
11707 "L<pvs(8)> command.  The \"full\" version includes all fields."
11708 msgstr ""
11709
11710 #. type: =head2
11711 #: ../fish/guestfish-actions.pod:3777
11712 msgid "pvuuid"
11713 msgstr ""
11714
11715 #. type: verbatim
11716 #: ../fish/guestfish-actions.pod:3779
11717 #, no-wrap
11718 msgid ""
11719 " pvuuid device\n"
11720 "\n"
11721 msgstr ""
11722
11723 #. type: textblock
11724 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
11725 msgid "This command returns the UUID of the LVM PV C<device>."
11726 msgstr ""
11727
11728 #. type: =head2
11729 #: ../fish/guestfish-actions.pod:3783
11730 msgid "pwrite"
11731 msgstr ""
11732
11733 #. type: verbatim
11734 #: ../fish/guestfish-actions.pod:3785
11735 #, no-wrap
11736 msgid ""
11737 " pwrite path content offset\n"
11738 "\n"
11739 msgstr ""
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
11743 msgid ""
11744 "This command writes to part of a file.  It writes the data buffer C<content> "
11745 "to the file C<path> starting at offset C<offset>."
11746 msgstr ""
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
11750 msgid ""
11751 "This command implements the L<pwrite(2)> system call, and like that system "
11752 "call it may not write the full data requested.  The return value is the "
11753 "number of bytes that were actually written to the file.  This could even be "
11754 "0, although short writes are unlikely for regular files in ordinary "
11755 "circumstances."
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:3796
11760 msgid "See also L</pread>, L</pwrite-device>."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:3801
11765 msgid "pwrite-device"
11766 msgstr ""
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:3803
11770 #, no-wrap
11771 msgid ""
11772 " pwrite-device device content offset\n"
11773 "\n"
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
11778 msgid ""
11779 "This command writes to part of a device.  It writes the data buffer "
11780 "C<content> to C<device> starting at offset C<offset>."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
11785 msgid ""
11786 "This command implements the L<pwrite(2)> system call, and like that system "
11787 "call it may not write the full data requested (although short writes to disk "
11788 "devices and partitions are probably impossible with standard Linux kernels)."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:3813
11793 msgid "See also L</pwrite>."
11794 msgstr ""
11795
11796 #. type: =head2
11797 #: ../fish/guestfish-actions.pod:3818
11798 msgid "read-file"
11799 msgstr ""
11800
11801 #. type: verbatim
11802 #: ../fish/guestfish-actions.pod:3820
11803 #, no-wrap
11804 msgid ""
11805 " read-file path\n"
11806 "\n"
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
11811 msgid "This calls returns the contents of the file C<path> as a buffer."
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../fish/guestfish-actions.pod:3825
11816 msgid ""
11817 "Unlike L</cat>, this function can correctly handle files that contain "
11818 "embedded ASCII NUL characters.  However unlike L</download>, this function "
11819 "is limited in the total size of file that can be handled."
11820 msgstr ""
11821
11822 #. type: =head2
11823 #: ../fish/guestfish-actions.pod:3833
11824 msgid "read-lines"
11825 msgstr ""
11826
11827 #. type: verbatim
11828 #: ../fish/guestfish-actions.pod:3835
11829 #, no-wrap
11830 msgid ""
11831 " read-lines path\n"
11832 "\n"
11833 msgstr ""
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
11837 msgid ""
11838 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11839 "C<CRLF> character sequences are I<not> returned."
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:3842
11844 msgid ""
11845 "Note that this function cannot correctly handle binary files (specifically, "
11846 "files containing C<\\0> character which is treated as end of line).  For "
11847 "those you need to use the L</read-file> function which has a more complex "
11848 "interface."
11849 msgstr ""
11850
11851 #. type: =head2
11852 #: ../fish/guestfish-actions.pod:3847
11853 msgid "readdir"
11854 msgstr ""
11855
11856 #. type: verbatim
11857 #: ../fish/guestfish-actions.pod:3849
11858 #, no-wrap
11859 msgid ""
11860 " readdir dir\n"
11861 "\n"
11862 msgstr ""
11863
11864 #. type: textblock
11865 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
11866 msgid "This returns the list of directory entries in directory C<dir>."
11867 msgstr ""
11868
11869 #. type: textblock
11870 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
11871 msgid ""
11872 "All entries in the directory are returned, including C<.> and C<..>.  The "
11873 "entries are I<not> sorted, but returned in the same order as the underlying "
11874 "filesystem."
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
11879 msgid ""
11880 "Also this call returns basic file type information about each file.  The "
11881 "C<ftyp> field will contain one of the following characters:"
11882 msgstr ""
11883
11884 #. type: =item
11885 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
11886 msgid "'b'"
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
11891 msgid "Block special"
11892 msgstr ""
11893
11894 #. type: =item
11895 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
11896 msgid "'c'"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
11901 msgid "Char special"
11902 msgstr ""
11903
11904 #. type: =item
11905 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
11906 msgid "'d'"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
11911 msgid "Directory"
11912 msgstr ""
11913
11914 #. type: =item
11915 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
11916 msgid "'f'"
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
11921 msgid "FIFO (named pipe)"
11922 msgstr ""
11923
11924 #. type: =item
11925 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
11926 msgid "'l'"
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
11931 msgid "Symbolic link"
11932 msgstr ""
11933
11934 #. type: =item
11935 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
11936 msgid "'r'"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
11941 msgid "Regular file"
11942 msgstr ""
11943
11944 #. type: =item
11945 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
11946 msgid "'s'"
11947 msgstr ""
11948
11949 #. type: textblock
11950 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
11951 msgid "Socket"
11952 msgstr ""
11953
11954 #. type: =item
11955 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
11956 msgid "'u'"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
11961 msgid "Unknown file type"
11962 msgstr ""
11963
11964 #. type: =item
11965 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
11966 msgid "'?'"
11967 msgstr ""
11968
11969 #. type: textblock
11970 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
11971 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:3901
11976 msgid ""
11977 "This function is primarily intended for use by programs.  To get a simple "
11978 "list of names, use L</ls>.  To get a printable directory for human "
11979 "consumption, use L</ll>."
11980 msgstr ""
11981
11982 #. type: =head2
11983 #: ../fish/guestfish-actions.pod:3905
11984 msgid "readlink"
11985 msgstr ""
11986
11987 #. type: verbatim
11988 #: ../fish/guestfish-actions.pod:3907
11989 #, no-wrap
11990 msgid ""
11991 " readlink path\n"
11992 "\n"
11993 msgstr ""
11994
11995 #. type: textblock
11996 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
11997 msgid "This command reads the target of a symbolic link."
11998 msgstr ""
11999
12000 #. type: =head2
12001 #: ../fish/guestfish-actions.pod:3911
12002 msgid "readlinklist"
12003 msgstr ""
12004
12005 #. type: verbatim
12006 #: ../fish/guestfish-actions.pod:3913
12007 #, no-wrap
12008 msgid ""
12009 " readlinklist path 'names ...'\n"
12010 "\n"
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
12015 msgid ""
12016 "This call allows you to do a C<readlink> operation on multiple files, where "
12017 "all files are in the directory C<path>.  C<names> is the list of files from "
12018 "this directory."
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
12023 msgid ""
12024 "On return you get a list of strings, with a one-to-one correspondence to the "
12025 "C<names> list.  Each string is the value of the symbolic link."
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
12030 msgid ""
12031 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12032 "result string is the empty string C<\"\">.  However the whole operation is "
12033 "completed even if there were C<readlink(2)> errors, and so you can call this "
12034 "function with names where you don't know if they are symbolic links already "
12035 "(albeit slightly less efficient)."
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
12040 msgid ""
12041 "This call is intended for programs that want to efficiently list a directory "
12042 "contents without making many round-trips.  Very long directory listings "
12043 "might cause the protocol message size to be exceeded, causing this call to "
12044 "fail.  The caller must split up such requests into smaller groups of names."
12045 msgstr ""
12046
12047 #. type: =head2
12048 #: ../fish/guestfish-actions.pod:3937
12049 msgid "realpath"
12050 msgstr ""
12051
12052 #. type: verbatim
12053 #: ../fish/guestfish-actions.pod:3939
12054 #, no-wrap
12055 msgid ""
12056 " realpath path\n"
12057 "\n"
12058 msgstr ""
12059
12060 #. type: textblock
12061 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
12062 msgid ""
12063 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12064 "has no C<.>, C<..> or symbolic link path elements."
12065 msgstr ""
12066
12067 #. type: =head2
12068 #: ../fish/guestfish-actions.pod:3944
12069 msgid "removexattr"
12070 msgstr ""
12071
12072 #. type: verbatim
12073 #: ../fish/guestfish-actions.pod:3946
12074 #, no-wrap
12075 msgid ""
12076 " removexattr xattr path\n"
12077 "\n"
12078 msgstr ""
12079
12080 #. type: textblock
12081 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
12082 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3951
12087 msgid "See also: L</lremovexattr>, L<attr(5)>."
12088 msgstr ""
12089
12090 #. type: =head2
12091 #: ../fish/guestfish-actions.pod:3953
12092 msgid "resize2fs"
12093 msgstr ""
12094
12095 #. type: verbatim
12096 #: ../fish/guestfish-actions.pod:3955
12097 #, no-wrap
12098 msgid ""
12099 " resize2fs device\n"
12100 "\n"
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
12105 msgid ""
12106 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12107 "underlying device."
12108 msgstr ""
12109
12110 #. type: textblock
12111 #: ../fish/guestfish-actions.pod:3960
12112 msgid ""
12113 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12114 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12115 "gives an error about this and sometimes not.  In any case, it is always safe "
12116 "to call L</e2fsck-f> before calling this function."
12117 msgstr ""
12118
12119 #. type: =head2
12120 #: ../fish/guestfish-actions.pod:3966
12121 msgid "resize2fs-M"
12122 msgstr ""
12123
12124 #. type: verbatim
12125 #: ../fish/guestfish-actions.pod:3968
12126 #, no-wrap
12127 msgid ""
12128 " resize2fs-M device\n"
12129 "\n"
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:3970
12134 msgid ""
12135 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12136 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12137 "command."
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3974
12142 msgid ""
12143 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12144 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12145 "multiplied together, give the resulting size of the minimal filesystem in "
12146 "bytes."
12147 msgstr ""
12148
12149 #. type: =head2
12150 #: ../fish/guestfish-actions.pod:3979
12151 msgid "resize2fs-size"
12152 msgstr ""
12153
12154 #. type: verbatim
12155 #: ../fish/guestfish-actions.pod:3981
12156 #, no-wrap
12157 msgid ""
12158 " resize2fs-size device size\n"
12159 "\n"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:3983
12164 msgid ""
12165 "This command is the same as L</resize2fs> except that it allows you to "
12166 "specify the new size (in bytes) explicitly."
12167 msgstr ""
12168
12169 #. type: =head2
12170 #: ../fish/guestfish-actions.pod:3986
12171 msgid "rm"
12172 msgstr ""
12173
12174 #. type: verbatim
12175 #: ../fish/guestfish-actions.pod:3988
12176 #, no-wrap
12177 msgid ""
12178 " rm path\n"
12179 "\n"
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
12184 msgid "Remove the single file C<path>."
12185 msgstr ""
12186
12187 #. type: =head2
12188 #: ../fish/guestfish-actions.pod:3992
12189 msgid "rm-rf"
12190 msgstr ""
12191
12192 #. type: verbatim
12193 #: ../fish/guestfish-actions.pod:3994
12194 #, no-wrap
12195 msgid ""
12196 " rm-rf path\n"
12197 "\n"
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
12202 msgid ""
12203 "Remove the file or directory C<path>, recursively removing the contents if "
12204 "its a directory.  This is like the C<rm -rf> shell command."
12205 msgstr ""
12206
12207 #. type: =head2
12208 #: ../fish/guestfish-actions.pod:4000
12209 msgid "rmdir"
12210 msgstr ""
12211
12212 #. type: verbatim
12213 #: ../fish/guestfish-actions.pod:4002
12214 #, no-wrap
12215 msgid ""
12216 " rmdir path\n"
12217 "\n"
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
12222 msgid "Remove the single directory C<path>."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:4006
12227 msgid "rmmountpoint"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:4008
12232 #, no-wrap
12233 msgid ""
12234 " rmmountpoint exemptpath\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:4010
12240 msgid ""
12241 "This calls removes a mountpoint that was previously created with "
12242 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12243 msgstr ""
12244
12245 #. type: =head2
12246 #: ../fish/guestfish-actions.pod:4014
12247 msgid "scrub-device"
12248 msgstr ""
12249
12250 #. type: verbatim
12251 #: ../fish/guestfish-actions.pod:4016
12252 #, no-wrap
12253 msgid ""
12254 " scrub-device device\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
12260 msgid ""
12261 "This command writes patterns over C<device> to make data retrieval more "
12262 "difficult."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036 ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
12267 msgid ""
12268 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12269 "more details."
12270 msgstr ""
12271
12272 #. type: =head2
12273 #: ../fish/guestfish-actions.pod:4027
12274 msgid "scrub-file"
12275 msgstr ""
12276
12277 #. type: verbatim
12278 #: ../fish/guestfish-actions.pod:4029
12279 #, no-wrap
12280 msgid ""
12281 " scrub-file file\n"
12282 "\n"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
12287 msgid ""
12288 "This command writes patterns over a file to make data retrieval more "
12289 "difficult."
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
12294 msgid "The file is I<removed> after scrubbing."
12295 msgstr ""
12296
12297 #. type: =head2
12298 #: ../fish/guestfish-actions.pod:4039
12299 msgid "scrub-freespace"
12300 msgstr ""
12301
12302 #. type: verbatim
12303 #: ../fish/guestfish-actions.pod:4041
12304 #, no-wrap
12305 msgid ""
12306 " scrub-freespace dir\n"
12307 "\n"
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:4043
12312 msgid ""
12313 "This command creates the directory C<dir> and then fills it with files until "
12314 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12315 "deletes them.  The intention is to scrub any free space on the partition "
12316 "containing C<dir>."
12317 msgstr ""
12318
12319 #. type: =head2
12320 #: ../fish/guestfish-actions.pod:4052
12321 msgid "set-append"
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:4054
12326 msgid "append"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:4056
12331 #, no-wrap
12332 msgid ""
12333 " set-append append\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
12339 msgid ""
12340 "This function is used to add additional options to the guest kernel command "
12341 "line."
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
12346 msgid ""
12347 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12348 "environment variable."
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
12353 msgid ""
12354 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12355 "(libguestfs always adds a few of its own)."
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:4067
12360 msgid "set-attach-method"
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../fish/guestfish-actions.pod:4069
12365 msgid "attach-method"
12366 msgstr ""
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:4071
12370 #, no-wrap
12371 msgid ""
12372 " set-attach-method attachmethod\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
12378 msgid ""
12379 "Set the method that libguestfs uses to connect to the back end guestfsd "
12380 "daemon.  Possible methods are:"
12381 msgstr ""
12382
12383 #. type: =item
12384 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182 ../src/guestfs.pod:2687
12385 msgid "C<appliance>"
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
12390 msgid ""
12391 "Launch an appliance and connect to it.  This is the ordinary method and the "
12392 "default."
12393 msgstr ""
12394
12395 #. type: =item
12396 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12397 msgid "C<unix:I<path>>"
12398 msgstr ""
12399
12400 #. type: textblock
12401 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12402 msgid "Connect to the Unix domain socket I<path>."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
12407 msgid ""
12408 "This method lets you connect to an existing daemon or (using virtio-serial) "
12409 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12410 "RUNNING DAEMONS>."
12411 msgstr ""
12412
12413 #. type: =head2
12414 #: ../fish/guestfish-actions.pod:4093
12415 msgid "set-autosync"
12416 msgstr ""
12417
12418 #. type: =head2
12419 #: ../fish/guestfish-actions.pod:4095
12420 msgid "autosync"
12421 msgstr ""
12422
12423 #. type: verbatim
12424 #: ../fish/guestfish-actions.pod:4097
12425 #, no-wrap
12426 msgid ""
12427 " set-autosync true|false\n"
12428 "\n"
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
12433 msgid ""
12434 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12435 "effort attempt to make filesystems consistent and synchronized when the "
12436 "handle is closed (also if the program exits without closing handles)."
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12441 msgid ""
12442 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12443 "disabled by default)."
12444 msgstr ""
12445
12446 #. type: =head2
12447 #: ../fish/guestfish-actions.pod:4107
12448 msgid "set-direct"
12449 msgstr ""
12450
12451 #. type: =head2
12452 #: ../fish/guestfish-actions.pod:4109
12453 msgid "direct"
12454 msgstr ""
12455
12456 #. type: verbatim
12457 #: ../fish/guestfish-actions.pod:4111
12458 #, no-wrap
12459 msgid ""
12460 " set-direct true|false\n"
12461 "\n"
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
12466 msgid ""
12467 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12468 "passed directly through to the appliance once it is launched."
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:4117
12473 msgid ""
12474 "One consequence of this is that log messages aren't caught by the library "
12475 "and handled by L</set-log-message-callback>, but go straight to stdout."
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
12480 msgid "You probably don't want to use this unless you know what you are doing."
12481 msgstr ""
12482
12483 #. type: textblock
12484 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
12485 msgid "The default is disabled."
12486 msgstr ""
12487
12488 #. type: =head2
12489 #: ../fish/guestfish-actions.pod:4126
12490 msgid "set-e2label"
12491 msgstr ""
12492
12493 #. type: verbatim
12494 #: ../fish/guestfish-actions.pod:4128
12495 #, no-wrap
12496 msgid ""
12497 " set-e2label device label\n"
12498 "\n"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
12503 msgid ""
12504 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12505 "C<label>.  Filesystem labels are limited to 16 characters."
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:4134
12510 msgid ""
12511 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12512 "label on a filesystem."
12513 msgstr ""
12514
12515 #. type: =head2
12516 #: ../fish/guestfish-actions.pod:4137
12517 msgid "set-e2uuid"
12518 msgstr ""
12519
12520 #. type: verbatim
12521 #: ../fish/guestfish-actions.pod:4139
12522 #, no-wrap
12523 msgid ""
12524 " set-e2uuid device uuid\n"
12525 "\n"
12526 msgstr ""
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
12530 msgid ""
12531 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12532 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12533 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:4146
12538 msgid ""
12539 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12540 "UUID of a filesystem."
12541 msgstr ""
12542
12543 #. type: =head2
12544 #: ../fish/guestfish-actions.pod:4149
12545 msgid "set-memsize"
12546 msgstr ""
12547
12548 #. type: =head2
12549 #: ../fish/guestfish-actions.pod:4151
12550 msgid "memsize"
12551 msgstr ""
12552
12553 #. type: verbatim
12554 #: ../fish/guestfish-actions.pod:4153
12555 #, no-wrap
12556 msgid ""
12557 " set-memsize memsize\n"
12558 "\n"
12559 msgstr ""
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:4155
12563 msgid ""
12564 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12565 "This only has any effect if called before L</launch>."
12566 msgstr ""
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
12570 msgid ""
12571 "You can also change this by setting the environment variable "
12572 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12573 msgstr ""
12574
12575 #. type: =head2
12576 #: ../fish/guestfish-actions.pod:4166
12577 msgid "set-network"
12578 msgstr ""
12579
12580 #. type: =head2
12581 #: ../fish/guestfish-actions.pod:4168
12582 msgid "network"
12583 msgstr ""
12584
12585 #. type: verbatim
12586 #: ../fish/guestfish-actions.pod:4170
12587 #, no-wrap
12588 msgid ""
12589 " set-network true|false\n"
12590 "\n"
12591 msgstr ""
12592
12593 #. type: textblock
12594 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
12595 msgid ""
12596 "If C<network> is true, then the network is enabled in the libguestfs "
12597 "appliance.  The default is false."
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
12602 msgid ""
12603 "This affects whether commands are able to access the network (see "
12604 "L<guestfs(3)/RUNNING COMMANDS>)."
12605 msgstr ""
12606
12607 #. type: textblock
12608 #: ../fish/guestfish-actions.pod:4178
12609 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12610 msgstr ""
12611
12612 #. type: =head2
12613 #: ../fish/guestfish-actions.pod:4181
12614 msgid "set-path"
12615 msgstr ""
12616
12617 #. type: verbatim
12618 #: ../fish/guestfish-actions.pod:4185
12619 #, no-wrap
12620 msgid ""
12621 " set-path searchpath\n"
12622 "\n"
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
12627 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12628 msgstr ""
12629
12630 #. type: textblock
12631 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
12632 msgid ""
12633 "The default is C<$libdir/guestfs> unless overridden by setting "
12634 "C<LIBGUESTFS_PATH> environment variable."
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
12639 msgid "Setting C<path> to C<NULL> restores the default path."
12640 msgstr ""
12641
12642 #. type: =head2
12643 #: ../fish/guestfish-actions.pod:4194
12644 msgid "set-pgroup"
12645 msgstr ""
12646
12647 #. type: =head2
12648 #: ../fish/guestfish-actions.pod:4196
12649 msgid "pgroup"
12650 msgstr ""
12651
12652 #. type: verbatim
12653 #: ../fish/guestfish-actions.pod:4198
12654 #, no-wrap
12655 msgid ""
12656 " set-pgroup true|false\n"
12657 "\n"
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
12662 msgid ""
12663 "If C<pgroup> is true, child processes are placed into their own process "
12664 "group."
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
12669 msgid ""
12670 "The practical upshot of this is that signals like C<SIGINT> (from users "
12671 "pressing C<^C>) won't be received by the child process."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
12676 msgid ""
12677 "The default for this flag is false, because usually you want C<^C> to kill "
12678 "the subprocess."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:4209
12683 msgid "set-qemu"
12684 msgstr ""
12685
12686 #. type: =head2
12687 #: ../fish/guestfish-actions.pod:4211
12688 msgid "qemu"
12689 msgstr ""
12690
12691 #. type: verbatim
12692 #: ../fish/guestfish-actions.pod:4213
12693 #, no-wrap
12694 msgid ""
12695 " set-qemu qemu\n"
12696 "\n"
12697 msgstr ""
12698
12699 #. type: textblock
12700 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
12701 msgid "Set the qemu binary that we will use."
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
12706 msgid "The default is chosen when the library was compiled by the configure script."
12707 msgstr ""
12708
12709 #. type: textblock
12710 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
12711 msgid ""
12712 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12713 "variable."
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
12718 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
12723 msgid ""
12724 "Note that you should call this function as early as possible after creating "
12725 "the handle.  This is because some pre-launch operations depend on testing "
12726 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12727 "don't retest features, and so you might see inconsistent results.  Using the "
12728 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12729 "the qemu binary at the same time as the handle is created."
12730 msgstr ""
12731
12732 #. type: =head2
12733 #: ../fish/guestfish-actions.pod:4233
12734 msgid "set-recovery-proc"
12735 msgstr ""
12736
12737 #. type: =head2
12738 #: ../fish/guestfish-actions.pod:4235
12739 msgid "recovery-proc"
12740 msgstr ""
12741
12742 #. type: verbatim
12743 #: ../fish/guestfish-actions.pod:4237
12744 #, no-wrap
12745 msgid ""
12746 " set-recovery-proc true|false\n"
12747 "\n"
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../fish/guestfish-actions.pod:4239
12752 msgid ""
12753 "If this is called with the parameter C<false> then L</launch> does not "
12754 "create a recovery process.  The purpose of the recovery process is to stop "
12755 "runaway qemu processes in the case where the main program aborts abruptly."
12756 msgstr ""
12757
12758 #. type: textblock
12759 #: ../fish/guestfish-actions.pod:4244
12760 msgid ""
12761 "This only has any effect if called before L</launch>, and the default is "
12762 "true."
12763 msgstr ""
12764
12765 #. type: textblock
12766 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
12767 msgid ""
12768 "About the only time when you would want to disable this is if the main "
12769 "process will fork itself into the background (\"daemonize\" itself).  In "
12770 "this case the recovery process thinks that the main program has disappeared "
12771 "and so kills qemu, which is not very helpful."
12772 msgstr ""
12773
12774 #. type: =head2
12775 #: ../fish/guestfish-actions.pod:4253
12776 msgid "set-selinux"
12777 msgstr ""
12778
12779 #. type: =head2
12780 #: ../fish/guestfish-actions.pod:4255
12781 msgid "selinux"
12782 msgstr ""
12783
12784 #. type: verbatim
12785 #: ../fish/guestfish-actions.pod:4257
12786 #, no-wrap
12787 msgid ""
12788 " set-selinux true|false\n"
12789 "\n"
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
12794 msgid ""
12795 "This sets the selinux flag that is passed to the appliance at boot time.  "
12796 "The default is C<selinux=0> (disabled)."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
12801 msgid ""
12802 "Note that if SELinux is enabled, it is always in Permissive mode "
12803 "(C<enforcing=0>)."
12804 msgstr ""
12805
12806 #. type: =head2
12807 #: ../fish/guestfish-actions.pod:4268
12808 msgid "set-trace"
12809 msgstr ""
12810
12811 #. type: =head2
12812 #: ../fish/guestfish-actions.pod:4270
12813 msgid "trace"
12814 msgstr ""
12815
12816 #. type: verbatim
12817 #: ../fish/guestfish-actions.pod:4272
12818 #, no-wrap
12819 msgid ""
12820 " set-trace true|false\n"
12821 "\n"
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
12826 msgid ""
12827 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
12828 "return values are traced."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
12833 msgid ""
12834 "If you want to trace C API calls into libguestfs (and other libraries) then "
12835 "possibly a better way is to use the external ltrace(1) command."
12836 msgstr ""
12837
12838 #. type: textblock
12839 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
12840 msgid ""
12841 "Command traces are disabled unless the environment variable "
12842 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12843 msgstr ""
12844
12845 #. type: textblock
12846 #: ../fish/guestfish-actions.pod:4284
12847 msgid ""
12848 "Trace messages are normally sent to C<stderr>, unless you register a "
12849 "callback to send them somewhere else (see L</set-event-callback>)."
12850 msgstr ""
12851
12852 #. type: =head2
12853 #: ../fish/guestfish-actions.pod:4288
12854 msgid "set-verbose"
12855 msgstr ""
12856
12857 #. type: =head2
12858 #: ../fish/guestfish-actions.pod:4290
12859 msgid "verbose"
12860 msgstr ""
12861
12862 #. type: verbatim
12863 #: ../fish/guestfish-actions.pod:4292
12864 #, no-wrap
12865 msgid ""
12866 " set-verbose true|false\n"
12867 "\n"
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
12872 msgid "If C<verbose> is true, this turns on verbose messages."
12873 msgstr ""
12874
12875 #. type: textblock
12876 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
12877 msgid ""
12878 "Verbose messages are disabled unless the environment variable "
12879 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12880 msgstr ""
12881
12882 #. type: textblock
12883 #: ../fish/guestfish-actions.pod:4299
12884 msgid ""
12885 "Verbose messages are normally sent to C<stderr>, unless you register a "
12886 "callback to send them somewhere else (see L</set-event-callback>)."
12887 msgstr ""
12888
12889 #. type: =head2
12890 #: ../fish/guestfish-actions.pod:4303
12891 msgid "setcon"
12892 msgstr ""
12893
12894 #. type: verbatim
12895 #: ../fish/guestfish-actions.pod:4305
12896 #, no-wrap
12897 msgid ""
12898 " setcon context\n"
12899 "\n"
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
12904 msgid ""
12905 "This sets the SELinux security context of the daemon to the string "
12906 "C<context>."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
12911 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12912 msgstr ""
12913
12914 #. type: =head2
12915 #: ../fish/guestfish-actions.pod:4312
12916 msgid "setxattr"
12917 msgstr ""
12918
12919 #. type: verbatim
12920 #: ../fish/guestfish-actions.pod:4314
12921 #, no-wrap
12922 msgid ""
12923 " setxattr xattr val vallen path\n"
12924 "\n"
12925 msgstr ""
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
12929 msgid ""
12930 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12931 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:4320
12936 msgid "See also: L</lsetxattr>, L<attr(5)>."
12937 msgstr ""
12938
12939 #. type: =head2
12940 #: ../fish/guestfish-actions.pod:4322
12941 msgid "sfdisk"
12942 msgstr ""
12943
12944 #. type: verbatim
12945 #: ../fish/guestfish-actions.pod:4324
12946 #, no-wrap
12947 msgid ""
12948 " sfdisk device cyls heads sectors 'lines ...'\n"
12949 "\n"
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6513
12954 msgid ""
12955 "This is a direct interface to the L<sfdisk(8)> program for creating "
12956 "partitions on block devices."
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6516
12961 msgid "C<device> should be a block device, for example C</dev/sda>."
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
12966 msgid ""
12967 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12968 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12969 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12970 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12971 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12972 "the kernel) cannot work out the right geometry and you will need to tell it."
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6526
12977 msgid ""
12978 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12979 "refer to the L<sfdisk(8)> manpage."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6529
12984 msgid ""
12985 "To create a single partition occupying the whole disk, you would pass "
12986 "C<lines> as a single element list, when the single element being the string "
12987 "C<,> (comma)."
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:4346
12992 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
12993 msgstr ""
12994
12995 #. type: textblock
12996 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4397
12997 msgid ""
12998 "This function is deprecated.  In new code, use the L</part_add> call "
12999 "instead."
13000 msgstr ""
13001
13002 #. type: =head2
13003 #: ../fish/guestfish-actions.pod:4359
13004 msgid "sfdiskM"
13005 msgstr ""
13006
13007 #. type: verbatim
13008 #: ../fish/guestfish-actions.pod:4361
13009 #, no-wrap
13010 msgid ""
13011 " sfdiskM device 'lines ...'\n"
13012 "\n"
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:4363
13017 msgid ""
13018 "This is a simplified interface to the L</sfdisk> command, where partition "
13019 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13020 "you don't need to specify the cyls, heads and sectors parameters which were "
13021 "rarely if ever used anyway."
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:4369
13026 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:4382
13031 msgid "sfdisk-N"
13032 msgstr ""
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:4384
13036 #, no-wrap
13037 msgid ""
13038 " sfdisk-N device partnum cyls heads sectors line\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6591
13044 msgid ""
13045 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13046 "(note: C<n> counts from 1)."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:4389
13051 msgid ""
13052 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13053 "cyls/heads/sectors parameters."
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:4392
13058 msgid "See also: L</part-add>"
13059 msgstr ""
13060
13061 #. type: =head2
13062 #: ../fish/guestfish-actions.pod:4404
13063 msgid "sfdisk-disk-geometry"
13064 msgstr ""
13065
13066 #. type: verbatim
13067 #: ../fish/guestfish-actions.pod:4406
13068 #, no-wrap
13069 msgid ""
13070 " sfdisk-disk-geometry device\n"
13071 "\n"
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:4408
13076 msgid ""
13077 "This displays the disk geometry of C<device> read from the partition table.  "
13078 "Especially in the case where the underlying block device has been resized, "
13079 "this can be different from the kernel's idea of the geometry (see "
13080 "L</sfdisk-kernel-geometry>)."
13081 msgstr ""
13082
13083 #. type: textblock
13084 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
13085 msgid "The result is in human-readable format, and not designed to be parsed."
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:4416
13090 msgid "sfdisk-kernel-geometry"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:4418
13095 #, no-wrap
13096 msgid ""
13097 " sfdisk-kernel-geometry device\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
13103 msgid "This displays the kernel's idea of the geometry of C<device>."
13104 msgstr ""
13105
13106 #. type: =head2
13107 #: ../fish/guestfish-actions.pod:4425
13108 msgid "sfdisk-l"
13109 msgstr ""
13110
13111 #. type: verbatim
13112 #: ../fish/guestfish-actions.pod:4427
13113 #, no-wrap
13114 msgid ""
13115 " sfdisk-l device\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6654
13121 msgid ""
13122 "This displays the partition table on C<device>, in the human-readable output "
13123 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13124 msgstr ""
13125
13126 #. type: textblock
13127 #: ../fish/guestfish-actions.pod:4433
13128 msgid "See also: L</part-list>"
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:4435
13133 msgid ""
13134 "This function is deprecated.  In new code, use the L</part_list> call "
13135 "instead."
13136 msgstr ""
13137
13138 #. type: =head2
13139 #: ../fish/guestfish-actions.pod:4442
13140 msgid "sh"
13141 msgstr ""
13142
13143 #. type: verbatim
13144 #: ../fish/guestfish-actions.pod:4444
13145 #, no-wrap
13146 msgid ""
13147 " sh command\n"
13148 "\n"
13149 msgstr ""
13150
13151 #. type: textblock
13152 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
13153 msgid ""
13154 "This call runs a command from the guest filesystem via the guest's "
13155 "C</bin/sh>."
13156 msgstr ""
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:4449
13160 msgid "This is like L</command>, but passes the command to:"
13161 msgstr ""
13162
13163 #. type: verbatim
13164 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13165 #, no-wrap
13166 msgid ""
13167 " /bin/sh -c \"command\"\n"
13168 "\n"
13169 msgstr ""
13170
13171 #. type: textblock
13172 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
13173 msgid ""
13174 "Depending on the guest's shell, this usually results in wildcards being "
13175 "expanded, shell expressions being interpolated and so on."
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:4457
13180 msgid "All the provisos about L</command> apply to this call."
13181 msgstr ""
13182
13183 #. type: =head2
13184 #: ../fish/guestfish-actions.pod:4459
13185 msgid "sh-lines"
13186 msgstr ""
13187
13188 #. type: verbatim
13189 #: ../fish/guestfish-actions.pod:4461
13190 #, no-wrap
13191 msgid ""
13192 " sh-lines command\n"
13193 "\n"
13194 msgstr ""
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:4463
13198 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13199 msgstr ""
13200
13201 #. type: textblock
13202 #: ../fish/guestfish-actions.pod:4466
13203 msgid "See also: L</command-lines>"
13204 msgstr ""
13205
13206 #. type: =head2
13207 #: ../fish/guestfish-actions.pod:4468
13208 msgid "sleep"
13209 msgstr ""
13210
13211 #. type: verbatim
13212 #: ../fish/guestfish-actions.pod:4470
13213 #, no-wrap
13214 msgid ""
13215 " sleep secs\n"
13216 "\n"
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
13221 msgid "Sleep for C<secs> seconds."
13222 msgstr ""
13223
13224 #. type: =head2
13225 #: ../fish/guestfish-actions.pod:4474
13226 msgid "stat"
13227 msgstr ""
13228
13229 #. type: verbatim
13230 #: ../fish/guestfish-actions.pod:4476
13231 #, no-wrap
13232 msgid ""
13233 " stat path\n"
13234 "\n"
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
13239 msgid "This is the same as the C<stat(2)> system call."
13240 msgstr ""
13241
13242 #. type: =head2
13243 #: ../fish/guestfish-actions.pod:4482
13244 msgid "statvfs"
13245 msgstr ""
13246
13247 #. type: verbatim
13248 #: ../fish/guestfish-actions.pod:4484
13249 #, no-wrap
13250 msgid ""
13251 " statvfs path\n"
13252 "\n"
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
13257 msgid ""
13258 "Returns file system statistics for any mounted file system.  C<path> should "
13259 "be a file or directory in the mounted file system (typically it is the mount "
13260 "point itself, but it doesn't need to be)."
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
13265 msgid "This is the same as the C<statvfs(2)> system call."
13266 msgstr ""
13267
13268 #. type: =head2
13269 #: ../fish/guestfish-actions.pod:4492
13270 msgid "strings"
13271 msgstr ""
13272
13273 #. type: verbatim
13274 #: ../fish/guestfish-actions.pod:4494
13275 #, no-wrap
13276 msgid ""
13277 " strings path\n"
13278 "\n"
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
13283 msgid ""
13284 "This runs the L<strings(1)> command on a file and returns the list of "
13285 "printable strings found."
13286 msgstr ""
13287
13288 #. type: =head2
13289 #: ../fish/guestfish-actions.pod:4502
13290 msgid "strings-e"
13291 msgstr ""
13292
13293 #. type: verbatim
13294 #: ../fish/guestfish-actions.pod:4504
13295 #, no-wrap
13296 msgid ""
13297 " strings-e encoding path\n"
13298 "\n"
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:4506
13303 msgid ""
13304 "This is like the L</strings> command, but allows you to specify the encoding "
13305 "of strings that are looked for in the source file C<path>."
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
13310 msgid "Allowed encodings are:"
13311 msgstr ""
13312
13313 #. type: =item
13314 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
13315 msgid "s"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:4516
13320 msgid ""
13321 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13322 "ISO-8859-X (this is what L</strings> uses)."
13323 msgstr ""
13324
13325 #. type: =item
13326 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13327 msgid "S"
13328 msgstr ""
13329
13330 #. type: textblock
13331 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
13332 msgid "Single 8-bit-byte characters."
13333 msgstr ""
13334
13335 #. type: =item
13336 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
13337 msgid "b"
13338 msgstr ""
13339
13340 #. type: textblock
13341 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
13342 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13343 msgstr ""
13344
13345 #. type: =item
13346 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13347 msgid "l (lower case letter L)"
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13352 msgid ""
13353 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13354 "examining binaries in Windows guests."
13355 msgstr ""
13356
13357 #. type: =item
13358 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13359 msgid "B"
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13364 msgid "32-bit big endian such as UCS-4BE."
13365 msgstr ""
13366
13367 #. type: =item
13368 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13369 msgid "L"
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
13374 msgid "32-bit little endian such as UCS-4LE."
13375 msgstr ""
13376
13377 #. type: textblock
13378 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
13379 msgid "The returned strings are transcoded to UTF-8."
13380 msgstr ""
13381
13382 #. type: =head2
13383 #: ../fish/guestfish-actions.pod:4548
13384 msgid "swapoff-device"
13385 msgstr ""
13386
13387 #. type: verbatim
13388 #: ../fish/guestfish-actions.pod:4550
13389 #, no-wrap
13390 msgid ""
13391 " swapoff-device device\n"
13392 "\n"
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:4552
13397 msgid ""
13398 "This command disables the libguestfs appliance swap device or partition "
13399 "named C<device>.  See L</swapon-device>."
13400 msgstr ""
13401
13402 #. type: =head2
13403 #: ../fish/guestfish-actions.pod:4556
13404 msgid "swapoff-file"
13405 msgstr ""
13406
13407 #. type: verbatim
13408 #: ../fish/guestfish-actions.pod:4558
13409 #, no-wrap
13410 msgid ""
13411 " swapoff-file file\n"
13412 "\n"
13413 msgstr ""
13414
13415 #. type: textblock
13416 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
13417 msgid "This command disables the libguestfs appliance swap on file."
13418 msgstr ""
13419
13420 #. type: =head2
13421 #: ../fish/guestfish-actions.pod:4562
13422 msgid "swapoff-label"
13423 msgstr ""
13424
13425 #. type: verbatim
13426 #: ../fish/guestfish-actions.pod:4564
13427 #, no-wrap
13428 msgid ""
13429 " swapoff-label label\n"
13430 "\n"
13431 msgstr ""
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
13435 msgid ""
13436 "This command disables the libguestfs appliance swap on labeled swap "
13437 "partition."
13438 msgstr ""
13439
13440 #. type: =head2
13441 #: ../fish/guestfish-actions.pod:4569
13442 msgid "swapoff-uuid"
13443 msgstr ""
13444
13445 #. type: verbatim
13446 #: ../fish/guestfish-actions.pod:4571
13447 #, no-wrap
13448 msgid ""
13449 " swapoff-uuid uuid\n"
13450 "\n"
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
13455 msgid ""
13456 "This command disables the libguestfs appliance swap partition with the given "
13457 "UUID."
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../fish/guestfish-actions.pod:4576
13462 msgid "swapon-device"
13463 msgstr ""
13464
13465 #. type: verbatim
13466 #: ../fish/guestfish-actions.pod:4578
13467 #, no-wrap
13468 msgid ""
13469 " swapon-device device\n"
13470 "\n"
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:4580
13475 msgid ""
13476 "This command enables the libguestfs appliance to use the swap device or "
13477 "partition named C<device>.  The increased memory is made available for all "
13478 "commands, for example those run using L</command> or L</sh>."
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
13483 msgid ""
13484 "Note that you should not swap to existing guest swap partitions unless you "
13485 "know what you are doing.  They may contain hibernation information, or other "
13486 "information that the guest doesn't want you to trash.  You also risk leaking "
13487 "information about the host to the guest this way.  Instead, attach a new "
13488 "host device to the guest and swap on that."
13489 msgstr ""
13490
13491 #. type: =head2
13492 #: ../fish/guestfish-actions.pod:4592
13493 msgid "swapon-file"
13494 msgstr ""
13495
13496 #. type: verbatim
13497 #: ../fish/guestfish-actions.pod:4594
13498 #, no-wrap
13499 msgid ""
13500 " swapon-file file\n"
13501 "\n"
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:4596
13506 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13507 msgstr ""
13508
13509 #. type: =head2
13510 #: ../fish/guestfish-actions.pod:4599
13511 msgid "swapon-label"
13512 msgstr ""
13513
13514 #. type: verbatim
13515 #: ../fish/guestfish-actions.pod:4601
13516 #, no-wrap
13517 msgid ""
13518 " swapon-label label\n"
13519 "\n"
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:4603
13524 msgid ""
13525 "This command enables swap to a labeled swap partition.  See "
13526 "L</swapon-device> for other notes."
13527 msgstr ""
13528
13529 #. type: =head2
13530 #: ../fish/guestfish-actions.pod:4606
13531 msgid "swapon-uuid"
13532 msgstr ""
13533
13534 #. type: verbatim
13535 #: ../fish/guestfish-actions.pod:4608
13536 #, no-wrap
13537 msgid ""
13538 " swapon-uuid uuid\n"
13539 "\n"
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:4610
13544 msgid ""
13545 "This command enables swap to a swap partition with the given UUID.  See "
13546 "L</swapon-device> for other notes."
13547 msgstr ""
13548
13549 #. type: =head2
13550 #: ../fish/guestfish-actions.pod:4613
13551 msgid "sync"
13552 msgstr ""
13553
13554 #. type: verbatim
13555 #: ../fish/guestfish-actions.pod:4615
13556 #, no-wrap
13557 msgid ""
13558 " sync\n"
13559 "\n"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
13564 msgid ""
13565 "This syncs the disk, so that any writes are flushed through to the "
13566 "underlying disk image."
13567 msgstr ""
13568
13569 #. type: textblock
13570 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
13571 msgid ""
13572 "You should always call this if you have modified a disk image, before "
13573 "closing the handle."
13574 msgstr ""
13575
13576 #. type: =head2
13577 #: ../fish/guestfish-actions.pod:4623
13578 msgid "tail"
13579 msgstr ""
13580
13581 #. type: verbatim
13582 #: ../fish/guestfish-actions.pod:4625
13583 #, no-wrap
13584 msgid ""
13585 " tail path\n"
13586 "\n"
13587 msgstr ""
13588
13589 #. type: textblock
13590 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
13591 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13592 msgstr ""
13593
13594 #. type: =head2
13595 #: ../fish/guestfish-actions.pod:4633
13596 msgid "tail-n"
13597 msgstr ""
13598
13599 #. type: verbatim
13600 #: ../fish/guestfish-actions.pod:4635
13601 #, no-wrap
13602 msgid ""
13603 " tail-n nrlines path\n"
13604 "\n"
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
13609 msgid ""
13610 "If the parameter C<nrlines> is a positive number, this returns the last "
13611 "C<nrlines> lines of the file C<path>."
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
13616 msgid ""
13617 "If the parameter C<nrlines> is a negative number, this returns lines from "
13618 "the file C<path>, starting with the C<-nrlines>th line."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:4648
13623 msgid "tar-in"
13624 msgstr ""
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:4650
13628 #, no-wrap
13629 msgid ""
13630 " tar-in (tarfile|-) directory\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
13636 msgid ""
13637 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13638 "tar file) into C<directory>."
13639 msgstr ""
13640
13641 #. type: textblock
13642 #: ../fish/guestfish-actions.pod:4655
13643 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13644 msgstr ""
13645
13646 #. type: =head2
13647 #: ../fish/guestfish-actions.pod:4660
13648 msgid "tar-out"
13649 msgstr ""
13650
13651 #. type: verbatim
13652 #: ../fish/guestfish-actions.pod:4662
13653 #, no-wrap
13654 msgid ""
13655 " tar-out directory (tarfile|-)\n"
13656 "\n"
13657 msgstr ""
13658
13659 #. type: textblock
13660 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
13661 msgid ""
13662 "This command packs the contents of C<directory> and downloads it to local "
13663 "file C<tarfile>."
13664 msgstr ""
13665
13666 #. type: textblock
13667 #: ../fish/guestfish-actions.pod:4667
13668 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
13669 msgstr ""
13670
13671 #. type: =head2
13672 #: ../fish/guestfish-actions.pod:4672
13673 msgid "tgz-in"
13674 msgstr ""
13675
13676 #. type: verbatim
13677 #: ../fish/guestfish-actions.pod:4674
13678 #, no-wrap
13679 msgid ""
13680 " tgz-in (tarball|-) directory\n"
13681 "\n"
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
13686 msgid ""
13687 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13688 "tar file) into C<directory>."
13689 msgstr ""
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:4679
13693 msgid "To upload an uncompressed tarball, use L</tar-in>."
13694 msgstr ""
13695
13696 #. type: =head2
13697 #: ../fish/guestfish-actions.pod:4683
13698 msgid "tgz-out"
13699 msgstr ""
13700
13701 #. type: verbatim
13702 #: ../fish/guestfish-actions.pod:4685
13703 #, no-wrap
13704 msgid ""
13705 " tgz-out directory (tarball|-)\n"
13706 "\n"
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
13711 msgid ""
13712 "This command packs the contents of C<directory> and downloads it to local "
13713 "file C<tarball>."
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4690
13718 msgid "To download an uncompressed tarball, use L</tar-out>."
13719 msgstr ""
13720
13721 #. type: =head2
13722 #: ../fish/guestfish-actions.pod:4694
13723 msgid "touch"
13724 msgstr ""
13725
13726 #. type: verbatim
13727 #: ../fish/guestfish-actions.pod:4696
13728 #, no-wrap
13729 msgid ""
13730 " touch path\n"
13731 "\n"
13732 msgstr ""
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
13736 msgid ""
13737 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13738 "timestamps on a file, or, if the file does not exist, to create a new "
13739 "zero-length file."
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
13744 msgid ""
13745 "This command only works on regular files, and will fail on other file types "
13746 "such as directories, symbolic links, block special etc."
13747 msgstr ""
13748
13749 #. type: =head2
13750 #: ../fish/guestfish-actions.pod:4705
13751 msgid "truncate"
13752 msgstr ""
13753
13754 #. type: verbatim
13755 #: ../fish/guestfish-actions.pod:4707
13756 #, no-wrap
13757 msgid ""
13758 " truncate path\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
13764 msgid ""
13765 "This command truncates C<path> to a zero-length file.  The file must exist "
13766 "already."
13767 msgstr ""
13768
13769 #. type: =head2
13770 #: ../fish/guestfish-actions.pod:4712
13771 msgid "truncate-size"
13772 msgstr ""
13773
13774 #. type: verbatim
13775 #: ../fish/guestfish-actions.pod:4714
13776 #, no-wrap
13777 msgid ""
13778 " truncate-size path size\n"
13779 "\n"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
13784 msgid ""
13785 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13786 "already."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:4719
13791 msgid ""
13792 "If the current file size is less than C<size> then the file is extended to "
13793 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13794 "blocks are not allocated for the file until you write to it).  To create a "
13795 "non-sparse file of zeroes, use L</fallocate64> instead."
13796 msgstr ""
13797
13798 #. type: =head2
13799 #: ../fish/guestfish-actions.pod:4725
13800 msgid "tune2fs-l"
13801 msgstr ""
13802
13803 #. type: verbatim
13804 #: ../fish/guestfish-actions.pod:4727
13805 #, no-wrap
13806 msgid ""
13807 " tune2fs-l device\n"
13808 "\n"
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
13813 msgid ""
13814 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13815 "C<device>."
13816 msgstr ""
13817
13818 #. type: textblock
13819 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
13820 msgid ""
13821 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13822 "for more details.  The list of fields returned isn't clearly defined, and "
13823 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13824 "and the filesystem itself."
13825 msgstr ""
13826
13827 #. type: =head2
13828 #: ../fish/guestfish-actions.pod:4737
13829 msgid "txz-in"
13830 msgstr ""
13831
13832 #. type: verbatim
13833 #: ../fish/guestfish-actions.pod:4739
13834 #, no-wrap
13835 msgid ""
13836 " txz-in (tarball|-) directory\n"
13837 "\n"
13838 msgstr ""
13839
13840 #. type: textblock
13841 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
13842 msgid ""
13843 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13844 "tar file) into C<directory>."
13845 msgstr ""
13846
13847 #. type: =head2
13848 #: ../fish/guestfish-actions.pod:4746
13849 msgid "txz-out"
13850 msgstr ""
13851
13852 #. type: verbatim
13853 #: ../fish/guestfish-actions.pod:4748
13854 #, no-wrap
13855 msgid ""
13856 " txz-out directory (tarball|-)\n"
13857 "\n"
13858 msgstr ""
13859
13860 #. type: textblock
13861 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
13862 msgid ""
13863 "This command packs the contents of C<directory> and downloads it to local "
13864 "file C<tarball> (as an xz compressed tar archive)."
13865 msgstr ""
13866
13867 #. type: =head2
13868 #: ../fish/guestfish-actions.pod:4755
13869 msgid "umask"
13870 msgstr ""
13871
13872 #. type: verbatim
13873 #: ../fish/guestfish-actions.pod:4757
13874 #, no-wrap
13875 msgid ""
13876 " umask mask\n"
13877 "\n"
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
13882 msgid ""
13883 "This function sets the mask used for creating new files and device nodes to "
13884 "C<mask & 0777>."
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
13889 msgid ""
13890 "Typical umask values would be C<022> which creates new files with "
13891 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13892 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
13897 msgid ""
13898 "The default umask is C<022>.  This is important because it means that "
13899 "directories and device nodes will be created with C<0644> or C<0755> mode "
13900 "even if you specify C<0777>."
13901 msgstr ""
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:4771
13905 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
13910 msgid "This call returns the previous umask."
13911 msgstr ""
13912
13913 #. type: =head2
13914 #: ../fish/guestfish-actions.pod:4776
13915 msgid "umount"
13916 msgstr ""
13917
13918 #. type: =head2
13919 #: ../fish/guestfish-actions.pod:4778
13920 msgid "unmount"
13921 msgstr ""
13922
13923 #. type: verbatim
13924 #: ../fish/guestfish-actions.pod:4780
13925 #, no-wrap
13926 msgid ""
13927 " umount pathordevice\n"
13928 "\n"
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
13933 msgid ""
13934 "This unmounts the given filesystem.  The filesystem may be specified either "
13935 "by its mountpoint (path) or the device which contains the filesystem."
13936 msgstr ""
13937
13938 #. type: =head2
13939 #: ../fish/guestfish-actions.pod:4786
13940 msgid "umount-all"
13941 msgstr ""
13942
13943 #. type: =head2
13944 #: ../fish/guestfish-actions.pod:4788
13945 msgid "unmount-all"
13946 msgstr ""
13947
13948 #. type: verbatim
13949 #: ../fish/guestfish-actions.pod:4790
13950 #, no-wrap
13951 msgid ""
13952 " umount-all\n"
13953 "\n"
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
13958 msgid "This unmounts all mounted filesystems."
13959 msgstr ""
13960
13961 #. type: textblock
13962 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
13963 msgid "Some internal mounts are not unmounted by this call."
13964 msgstr ""
13965
13966 #. type: =head2
13967 #: ../fish/guestfish-actions.pod:4796
13968 msgid "upload"
13969 msgstr ""
13970
13971 #. type: verbatim
13972 #: ../fish/guestfish-actions.pod:4798
13973 #, no-wrap
13974 msgid ""
13975 " upload (filename|-) remotefilename\n"
13976 "\n"
13977 msgstr ""
13978
13979 #. type: textblock
13980 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
13981 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4805
13986 msgid "See also L</download>."
13987 msgstr ""
13988
13989 #. type: =head2
13990 #: ../fish/guestfish-actions.pod:4809
13991 msgid "upload-offset"
13992 msgstr ""
13993
13994 #. type: verbatim
13995 #: ../fish/guestfish-actions.pod:4811
13996 #, no-wrap
13997 msgid ""
13998 " upload-offset (filename|-) remotefilename offset\n"
13999 "\n"
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
14004 msgid ""
14005 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14006 "The intention is to overwrite parts of existing files or devices, although "
14007 "if a non-existant file is specified then it is created with a \"hole\" "
14008 "before C<offset>.  The size of the data written is implicit in the size of "
14009 "the source C<filename>."
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:4823
14014 msgid ""
14015 "Note that there is no limit on the amount of data that can be uploaded with "
14016 "this call, unlike with L</pwrite>, and this call always writes the full "
14017 "amount unless an error occurs."
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:4828
14022 msgid "See also L</upload>, L</pwrite>."
14023 msgstr ""
14024
14025 #. type: =head2
14026 #: ../fish/guestfish-actions.pod:4832
14027 msgid "utimens"
14028 msgstr ""
14029
14030 #. type: verbatim
14031 #: ../fish/guestfish-actions.pod:4834
14032 #, no-wrap
14033 msgid ""
14034 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14035 "\n"
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
14040 msgid "This command sets the timestamps of a file with nanosecond precision."
14041 msgstr ""
14042
14043 #. type: textblock
14044 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
14045 msgid ""
14046 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14047 "from the epoch."
14048 msgstr ""
14049
14050 #. type: textblock
14051 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
14052 msgid ""
14053 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14054 "nanoseconds from the epoch."
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
14059 msgid ""
14060 "If the C<*nsecs> field contains the special value C<-1> then the "
14061 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14062 "ignored in this case)."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
14067 msgid ""
14068 "If the C<*nsecs> field contains the special value C<-2> then the "
14069 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14070 "in this case)."
14071 msgstr ""
14072
14073 #. type: =head2
14074 #: ../fish/guestfish-actions.pod:4853
14075 msgid "version"
14076 msgstr ""
14077
14078 #. type: verbatim
14079 #: ../fish/guestfish-actions.pod:4855
14080 #, no-wrap
14081 msgid ""
14082 " version\n"
14083 "\n"
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
14088 msgid "Return the libguestfs version number that the program is linked against."
14089 msgstr ""
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
14093 msgid ""
14094 "Note that because of dynamic linking this is not necessarily the version of "
14095 "libguestfs that you compiled against.  You can compile the program, and then "
14096 "at runtime dynamically link against a completely different C<libguestfs.so> "
14097 "library."
14098 msgstr ""
14099
14100 #. type: textblock
14101 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14102 msgid ""
14103 "This call was added in version C<1.0.58>.  In previous versions of "
14104 "libguestfs there was no way to get the version number.  From C code you can "
14105 "use dynamic linker functions to find out if this symbol exists (if it "
14106 "doesn't, then it's an earlier version)."
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
14111 msgid ""
14112 "The call returns a structure with four elements.  The first three (C<major>, "
14113 "C<minor> and C<release>) are numbers and correspond to the usual version "
14114 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14115 "but may be used for distro-specific information."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
14120 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
14125 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:4882
14130 msgid ""
14131 "I<Note:> Don't use this call to test for availability of features.  In "
14132 "enterprise distributions we backport features from later versions into "
14133 "earlier versions, making this an unreliable way to test for features.  Use "
14134 "L</available> instead."
14135 msgstr ""
14136
14137 #. type: =head2
14138 #: ../fish/guestfish-actions.pod:4888
14139 msgid "vfs-label"
14140 msgstr ""
14141
14142 #. type: verbatim
14143 #: ../fish/guestfish-actions.pod:4890
14144 #, no-wrap
14145 msgid ""
14146 " vfs-label device\n"
14147 "\n"
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
14152 msgid "This returns the filesystem label of the filesystem on C<device>."
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
14157 msgid "If the filesystem is unlabeled, this returns the empty string."
14158 msgstr ""
14159
14160 #. type: textblock
14161 #: ../fish/guestfish-actions.pod:4897
14162 msgid "To find a filesystem from the label, use L</findfs-label>."
14163 msgstr ""
14164
14165 #. type: =head2
14166 #: ../fish/guestfish-actions.pod:4899
14167 msgid "vfs-type"
14168 msgstr ""
14169
14170 #. type: verbatim
14171 #: ../fish/guestfish-actions.pod:4901
14172 #, no-wrap
14173 msgid ""
14174 " vfs-type device\n"
14175 "\n"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
14180 msgid ""
14181 "This command gets the filesystem type corresponding to the filesystem on "
14182 "C<device>."
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
14187 msgid ""
14188 "For most filesystems, the result is the name of the Linux VFS module which "
14189 "would be used to mount this filesystem if you mounted it without specifying "
14190 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14191 msgstr ""
14192
14193 #. type: =head2
14194 #: ../fish/guestfish-actions.pod:4911
14195 msgid "vfs-uuid"
14196 msgstr ""
14197
14198 #. type: verbatim
14199 #: ../fish/guestfish-actions.pod:4913
14200 #, no-wrap
14201 msgid ""
14202 " vfs-uuid device\n"
14203 "\n"
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
14208 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14209 msgstr ""
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
14213 msgid "If the filesystem does not have a UUID, this returns the empty string."
14214 msgstr ""
14215
14216 #. type: textblock
14217 #: ../fish/guestfish-actions.pod:4920
14218 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14219 msgstr ""
14220
14221 #. type: =head2
14222 #: ../fish/guestfish-actions.pod:4922
14223 msgid "vg-activate"
14224 msgstr ""
14225
14226 #. type: verbatim
14227 #: ../fish/guestfish-actions.pod:4924
14228 #, no-wrap
14229 msgid ""
14230 " vg-activate true|false 'volgroups ...'\n"
14231 "\n"
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
14236 msgid ""
14237 "This command activates or (if C<activate> is false) deactivates all logical "
14238 "volumes in the listed volume groups C<volgroups>."
14239 msgstr ""
14240
14241 #. type: textblock
14242 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
14243 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14248 msgid ""
14249 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14250 "activated or deactivated."
14251 msgstr ""
14252
14253 #. type: =head2
14254 #: ../fish/guestfish-actions.pod:4934
14255 msgid "vg-activate-all"
14256 msgstr ""
14257
14258 #. type: verbatim
14259 #: ../fish/guestfish-actions.pod:4936
14260 #, no-wrap
14261 msgid ""
14262 " vg-activate-all true|false\n"
14263 "\n"
14264 msgstr ""
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
14268 msgid ""
14269 "This command activates or (if C<activate> is false) deactivates all logical "
14270 "volumes in all volume groups."
14271 msgstr ""
14272
14273 #. type: textblock
14274 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
14275 msgid "This command is the same as running C<vgchange -a y|n>"
14276 msgstr ""
14277
14278 #. type: =head2
14279 #: ../fish/guestfish-actions.pod:4943
14280 msgid "vgcreate"
14281 msgstr ""
14282
14283 #. type: verbatim
14284 #: ../fish/guestfish-actions.pod:4945
14285 #, no-wrap
14286 msgid ""
14287 " vgcreate volgroup 'physvols ...'\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
14293 msgid ""
14294 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14295 "of physical volumes C<physvols>."
14296 msgstr ""
14297
14298 #. type: =head2
14299 #: ../fish/guestfish-actions.pod:4950
14300 msgid "vglvuuids"
14301 msgstr ""
14302
14303 #. type: verbatim
14304 #: ../fish/guestfish-actions.pod:4952
14305 #, no-wrap
14306 msgid ""
14307 " vglvuuids vgname\n"
14308 "\n"
14309 msgstr ""
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
14313 msgid ""
14314 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14315 "volumes created in this volume group."
14316 msgstr ""
14317
14318 #. type: textblock
14319 #: ../fish/guestfish-actions.pod:4957
14320 msgid ""
14321 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14322 "logical volumes and volume groups."
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:4960
14327 msgid "See also L</vgpvuuids>."
14328 msgstr ""
14329
14330 #. type: =head2
14331 #: ../fish/guestfish-actions.pod:4962
14332 msgid "vgpvuuids"
14333 msgstr ""
14334
14335 #. type: verbatim
14336 #: ../fish/guestfish-actions.pod:4964
14337 #, no-wrap
14338 msgid ""
14339 " vgpvuuids vgname\n"
14340 "\n"
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
14345 msgid ""
14346 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14347 "volumes that this volume group resides on."
14348 msgstr ""
14349
14350 #. type: textblock
14351 #: ../fish/guestfish-actions.pod:4969
14352 msgid ""
14353 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14354 "physical volumes and volume groups."
14355 msgstr ""
14356
14357 #. type: textblock
14358 #: ../fish/guestfish-actions.pod:4972
14359 msgid "See also L</vglvuuids>."
14360 msgstr ""
14361
14362 #. type: =head2
14363 #: ../fish/guestfish-actions.pod:4974
14364 msgid "vgremove"
14365 msgstr ""
14366
14367 #. type: verbatim
14368 #: ../fish/guestfish-actions.pod:4976
14369 #, no-wrap
14370 msgid ""
14371 " vgremove vgname\n"
14372 "\n"
14373 msgstr ""
14374
14375 #. type: textblock
14376 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
14377 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
14382 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14383 msgstr ""
14384
14385 #. type: =head2
14386 #: ../fish/guestfish-actions.pod:4983
14387 msgid "vgrename"
14388 msgstr ""
14389
14390 #. type: verbatim
14391 #: ../fish/guestfish-actions.pod:4985
14392 #, no-wrap
14393 msgid ""
14394 " vgrename volgroup newvolgroup\n"
14395 "\n"
14396 msgstr ""
14397
14398 #. type: textblock
14399 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
14400 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14401 msgstr ""
14402
14403 #. type: =head2
14404 #: ../fish/guestfish-actions.pod:4989
14405 msgid "vgs"
14406 msgstr ""
14407
14408 #. type: verbatim
14409 #: ../fish/guestfish-actions.pod:4991
14410 #, no-wrap
14411 msgid ""
14412 " vgs\n"
14413 "\n"
14414 msgstr ""
14415
14416 #. type: textblock
14417 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
14418 msgid ""
14419 "List all the volumes groups detected.  This is the equivalent of the "
14420 "L<vgs(8)> command."
14421 msgstr ""
14422
14423 #. type: textblock
14424 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
14425 msgid ""
14426 "This returns a list of just the volume group names that were detected "
14427 "(eg. C<VolGroup00>)."
14428 msgstr ""
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:4999
14432 msgid "See also L</vgs-full>."
14433 msgstr ""
14434
14435 #. type: =head2
14436 #: ../fish/guestfish-actions.pod:5001
14437 msgid "vgs-full"
14438 msgstr ""
14439
14440 #. type: verbatim
14441 #: ../fish/guestfish-actions.pod:5003
14442 #, no-wrap
14443 msgid ""
14444 " vgs-full\n"
14445 "\n"
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
14450 msgid ""
14451 "List all the volumes groups detected.  This is the equivalent of the "
14452 "L<vgs(8)> command.  The \"full\" version includes all fields."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:5008
14457 msgid "vgscan"
14458 msgstr ""
14459
14460 #. type: verbatim
14461 #: ../fish/guestfish-actions.pod:5010
14462 #, no-wrap
14463 msgid ""
14464 " vgscan\n"
14465 "\n"
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
14470 msgid ""
14471 "This rescans all block devices and rebuilds the list of LVM physical "
14472 "volumes, volume groups and logical volumes."
14473 msgstr ""
14474
14475 #. type: =head2
14476 #: ../fish/guestfish-actions.pod:5015
14477 msgid "vguuid"
14478 msgstr ""
14479
14480 #. type: verbatim
14481 #: ../fish/guestfish-actions.pod:5017
14482 #, no-wrap
14483 msgid ""
14484 " vguuid vgname\n"
14485 "\n"
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
14490 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14491 msgstr ""
14492
14493 #. type: =head2
14494 #: ../fish/guestfish-actions.pod:5021
14495 msgid "wc-c"
14496 msgstr ""
14497
14498 #. type: verbatim
14499 #: ../fish/guestfish-actions.pod:5023
14500 #, no-wrap
14501 msgid ""
14502 " wc-c path\n"
14503 "\n"
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
14508 msgid ""
14509 "This command counts the characters in a file, using the C<wc -c> external "
14510 "command."
14511 msgstr ""
14512
14513 #. type: =head2
14514 #: ../fish/guestfish-actions.pod:5028
14515 msgid "wc-l"
14516 msgstr ""
14517
14518 #. type: verbatim
14519 #: ../fish/guestfish-actions.pod:5030
14520 #, no-wrap
14521 msgid ""
14522 " wc-l path\n"
14523 "\n"
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
14528 msgid ""
14529 "This command counts the lines in a file, using the C<wc -l> external "
14530 "command."
14531 msgstr ""
14532
14533 #. type: =head2
14534 #: ../fish/guestfish-actions.pod:5035
14535 msgid "wc-w"
14536 msgstr ""
14537
14538 #. type: verbatim
14539 #: ../fish/guestfish-actions.pod:5037
14540 #, no-wrap
14541 msgid ""
14542 " wc-w path\n"
14543 "\n"
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
14548 msgid ""
14549 "This command counts the words in a file, using the C<wc -w> external "
14550 "command."
14551 msgstr ""
14552
14553 #. type: =head2
14554 #: ../fish/guestfish-actions.pod:5042
14555 msgid "write"
14556 msgstr ""
14557
14558 #. type: verbatim
14559 #: ../fish/guestfish-actions.pod:5044
14560 #, no-wrap
14561 msgid ""
14562 " write path content\n"
14563 "\n"
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
14568 msgid ""
14569 "This call creates a file called C<path>.  The content of the file is the "
14570 "string C<content> (which can contain any 8 bit data)."
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:5049
14575 msgid "See also L</write-append>."
14576 msgstr ""
14577
14578 #. type: =head2
14579 #: ../fish/guestfish-actions.pod:5054
14580 msgid "write-append"
14581 msgstr ""
14582
14583 #. type: verbatim
14584 #: ../fish/guestfish-actions.pod:5056
14585 #, no-wrap
14586 msgid ""
14587 " write-append path content\n"
14588 "\n"
14589 msgstr ""
14590
14591 #. type: textblock
14592 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
14593 msgid ""
14594 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14595 "not exist, then a new file is created."
14596 msgstr ""
14597
14598 #. type: textblock
14599 #: ../fish/guestfish-actions.pod:5061
14600 msgid "See also L</write>."
14601 msgstr ""
14602
14603 #. type: =head2
14604 #: ../fish/guestfish-actions.pod:5066
14605 msgid "write-file"
14606 msgstr ""
14607
14608 #. type: verbatim
14609 #: ../fish/guestfish-actions.pod:5068
14610 #, no-wrap
14611 msgid ""
14612 " write-file path content size\n"
14613 "\n"
14614 msgstr ""
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7695
14618 msgid ""
14619 "This call creates a file called C<path>.  The contents of the file is the "
14620 "string C<content> (which can contain any 8 bit data), with length C<size>."
14621 msgstr ""
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7699
14625 msgid ""
14626 "As a special case, if C<size> is C<0> then the length is calculated using "
14627 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7703
14632 msgid ""
14633 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14634 "I<not> work, even if the length is specified."
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../fish/guestfish-actions.pod:5084
14639 msgid "This function is deprecated.  In new code, use the L</write> call instead."
14640 msgstr ""
14641
14642 #. type: =head2
14643 #: ../fish/guestfish-actions.pod:5091
14644 msgid "zegrep"
14645 msgstr ""
14646
14647 #. type: verbatim
14648 #: ../fish/guestfish-actions.pod:5093
14649 #, no-wrap
14650 msgid ""
14651 " zegrep regex path\n"
14652 "\n"
14653 msgstr ""
14654
14655 #. type: textblock
14656 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
14657 msgid "This calls the external C<zegrep> program and returns the matching lines."
14658 msgstr ""
14659
14660 #. type: =head2
14661 #: ../fish/guestfish-actions.pod:5101
14662 msgid "zegrepi"
14663 msgstr ""
14664
14665 #. type: verbatim
14666 #: ../fish/guestfish-actions.pod:5103
14667 #, no-wrap
14668 msgid ""
14669 " zegrepi regex path\n"
14670 "\n"
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
14675 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14676 msgstr ""
14677
14678 #. type: =head2
14679 #: ../fish/guestfish-actions.pod:5111
14680 msgid "zero"
14681 msgstr ""
14682
14683 #. type: verbatim
14684 #: ../fish/guestfish-actions.pod:5113
14685 #, no-wrap
14686 msgid ""
14687 " zero device\n"
14688 "\n"
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
14693 msgid "This command writes zeroes over the first few blocks of C<device>."
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
14698 msgid ""
14699 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14700 "securely wipe the device).  It should be sufficient to remove any partition "
14701 "tables, filesystem superblocks and so on."
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:5121
14706 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
14707 msgstr ""
14708
14709 #. type: =head2
14710 #: ../fish/guestfish-actions.pod:5124
14711 msgid "zero-device"
14712 msgstr ""
14713
14714 #. type: verbatim
14715 #: ../fish/guestfish-actions.pod:5126
14716 #, no-wrap
14717 msgid ""
14718 " zero-device device\n"
14719 "\n"
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:5128
14724 msgid ""
14725 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
14726 "which just zeroes the first few blocks of a device."
14727 msgstr ""
14728
14729 #. type: =head2
14730 #: ../fish/guestfish-actions.pod:5135
14731 msgid "zerofree"
14732 msgstr ""
14733
14734 #. type: verbatim
14735 #: ../fish/guestfish-actions.pod:5137
14736 #, no-wrap
14737 msgid ""
14738 " zerofree device\n"
14739 "\n"
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
14744 msgid ""
14745 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14746 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14747 "possible to compress the filesystem more effectively."
14748 msgstr ""
14749
14750 #. type: textblock
14751 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
14752 msgid "You should B<not> run this program if the filesystem is mounted."
14753 msgstr ""
14754
14755 #. type: textblock
14756 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
14757 msgid ""
14758 "It is possible that using this program can damage the filesystem or data on "
14759 "the filesystem."
14760 msgstr ""
14761
14762 #. type: =head2
14763 #: ../fish/guestfish-actions.pod:5150
14764 msgid "zfgrep"
14765 msgstr ""
14766
14767 #. type: verbatim
14768 #: ../fish/guestfish-actions.pod:5152
14769 #, no-wrap
14770 msgid ""
14771 " zfgrep pattern path\n"
14772 "\n"
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
14777 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14778 msgstr ""
14779
14780 #. type: =head2
14781 #: ../fish/guestfish-actions.pod:5160
14782 msgid "zfgrepi"
14783 msgstr ""
14784
14785 #. type: verbatim
14786 #: ../fish/guestfish-actions.pod:5162
14787 #, no-wrap
14788 msgid ""
14789 " zfgrepi pattern path\n"
14790 "\n"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
14795 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14796 msgstr ""
14797
14798 #. type: =head2
14799 #: ../fish/guestfish-actions.pod:5170
14800 msgid "zfile"
14801 msgstr ""
14802
14803 #. type: verbatim
14804 #: ../fish/guestfish-actions.pod:5172
14805 #, no-wrap
14806 msgid ""
14807 " zfile meth path\n"
14808 "\n"
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7870
14813 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7873
14818 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../fish/guestfish-actions.pod:5179
14823 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
14824 msgstr ""
14825
14826 #. type: textblock
14827 #: ../fish/guestfish-actions.pod:5182
14828 msgid "This function is deprecated.  In new code, use the L</file> call instead."
14829 msgstr ""
14830
14831 #. type: =head2
14832 #: ../fish/guestfish-actions.pod:5189
14833 msgid "zgrep"
14834 msgstr ""
14835
14836 #. type: verbatim
14837 #: ../fish/guestfish-actions.pod:5191
14838 #, no-wrap
14839 msgid ""
14840 " zgrep regex path\n"
14841 "\n"
14842 msgstr ""
14843
14844 #. type: textblock
14845 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
14846 msgid "This calls the external C<zgrep> program and returns the matching lines."
14847 msgstr ""
14848
14849 #. type: =head2
14850 #: ../fish/guestfish-actions.pod:5199
14851 msgid "zgrepi"
14852 msgstr ""
14853
14854 #. type: verbatim
14855 #: ../fish/guestfish-actions.pod:5201
14856 #, no-wrap
14857 msgid ""
14858 " zgrepi regex path\n"
14859 "\n"
14860 msgstr ""
14861
14862 #. type: textblock
14863 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
14864 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-commands.pod:1
14869 msgid "alloc"
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../fish/guestfish-commands.pod:3
14874 msgid "allocate"
14875 msgstr ""
14876
14877 #. type: verbatim
14878 #: ../fish/guestfish-commands.pod:5
14879 #, no-wrap
14880 msgid ""
14881 " alloc filename size\n"
14882 "\n"
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-commands.pod:7
14887 msgid ""
14888 "This creates an empty (zeroed) file of the given size, and then adds so it "
14889 "can be further examined."
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
14894 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
14899 msgid "Size can be specified using standard suffixes, eg. C<1M>."
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../fish/guestfish-commands.pod:14
14904 msgid ""
14905 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
14906 "image, see L</PREPARED DISK IMAGES>."
14907 msgstr ""
14908
14909 #. type: =head2
14910 #: ../fish/guestfish-commands.pod:17
14911 msgid "copy-in"
14912 msgstr ""
14913
14914 #. type: verbatim
14915 #: ../fish/guestfish-commands.pod:19
14916 #, no-wrap
14917 msgid ""
14918 " copy-in local [local ...] /remotedir\n"
14919 "\n"
14920 msgstr ""
14921
14922 #. type: textblock
14923 #: ../fish/guestfish-commands.pod:21
14924 msgid ""
14925 "C<copy-in> copies local files or directories recursively into the disk "
14926 "image, placing them in the directory called C</remotedir> (which must "
14927 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
14928 "other commands as necessary."
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-commands.pod:26
14933 msgid ""
14934 "Multiple local files and directories can be specified, but the last "
14935 "parameter must always be a remote directory.  Wildcards cannot be used."
14936 msgstr ""
14937
14938 #. type: =head2
14939 #: ../fish/guestfish-commands.pod:30
14940 msgid "copy-out"
14941 msgstr ""
14942
14943 #. type: verbatim
14944 #: ../fish/guestfish-commands.pod:32
14945 #, no-wrap
14946 msgid ""
14947 " copy-out remote [remote ...] localdir\n"
14948 "\n"
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-commands.pod:34
14953 msgid ""
14954 "C<copy-out> copies remote files or directories recursively out of the disk "
14955 "image, placing them on the host disk in a local directory called C<localdir> "
14956 "(which must exist).  This guestfish meta-command turns into a sequence of "
14957 "L</download>, L</tar-out> and other commands as necessary."
14958 msgstr ""
14959
14960 #. type: textblock
14961 #: ../fish/guestfish-commands.pod:40
14962 msgid ""
14963 "Multiple remote files and directories can be specified, but the last "
14964 "parameter must always be a local directory.  To download to the current "
14965 "directory, use C<.> as in:"
14966 msgstr ""
14967
14968 #. type: verbatim
14969 #: ../fish/guestfish-commands.pod:44
14970 #, no-wrap
14971 msgid ""
14972 " copy-out /home .\n"
14973 "\n"
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-commands.pod:46
14978 msgid ""
14979 "Wildcards cannot be used in the ordinary command, but you can use them with "
14980 "the help of L</glob> like this:"
14981 msgstr ""
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-commands.pod:49
14985 #, no-wrap
14986 msgid ""
14987 " glob copy-out /home/* .\n"
14988 "\n"
14989 msgstr ""
14990
14991 #. type: =head2
14992 #: ../fish/guestfish-commands.pod:51
14993 msgid "display"
14994 msgstr ""
14995
14996 #. type: verbatim
14997 #: ../fish/guestfish-commands.pod:53
14998 #, no-wrap
14999 msgid ""
15000 " display filename\n"
15001 "\n"
15002 msgstr ""
15003
15004 #. type: textblock
15005 #: ../fish/guestfish-commands.pod:55
15006 msgid ""
15007 "Use C<display> (a graphical display program) to display an image file.  It "
15008 "downloads the file, and runs C<display> on it."
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-commands.pod:58
15013 msgid ""
15014 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15015 "environment variable.  For example to use the GNOME display program:"
15016 msgstr ""
15017
15018 #. type: verbatim
15019 #: ../fish/guestfish-commands.pod:61
15020 #, no-wrap
15021 msgid ""
15022 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15023 "\n"
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-commands.pod:63
15028 msgid "See also L<display(1)>."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-commands.pod:65
15033 msgid "echo"
15034 msgstr ""
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-commands.pod:67
15038 #, no-wrap
15039 msgid ""
15040 " echo [params ...]\n"
15041 "\n"
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-commands.pod:69
15046 msgid "This echos the parameters to the terminal."
15047 msgstr ""
15048
15049 #. type: =head2
15050 #: ../fish/guestfish-commands.pod:71
15051 msgid "edit"
15052 msgstr ""
15053
15054 #. type: =head2
15055 #: ../fish/guestfish-commands.pod:73
15056 msgid "vi"
15057 msgstr ""
15058
15059 #. type: =head2
15060 #: ../fish/guestfish-commands.pod:75
15061 msgid "emacs"
15062 msgstr ""
15063
15064 #. type: verbatim
15065 #: ../fish/guestfish-commands.pod:77
15066 #, no-wrap
15067 msgid ""
15068 " edit filename\n"
15069 "\n"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-commands.pod:79
15074 msgid ""
15075 "This is used to edit a file.  It downloads the file, edits it locally using "
15076 "your editor, then uploads the result."
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-commands.pod:82
15081 msgid ""
15082 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15083 "or C<emacs> you will get those corresponding editors."
15084 msgstr ""
15085
15086 #. type: =head2
15087 #: ../fish/guestfish-commands.pod:86
15088 msgid "glob"
15089 msgstr ""
15090
15091 #. type: verbatim
15092 #: ../fish/guestfish-commands.pod:88
15093 #, no-wrap
15094 msgid ""
15095 " glob command args...\n"
15096 "\n"
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-commands.pod:90
15101 msgid ""
15102 "Expand wildcards in any paths in the args list, and run C<command> "
15103 "repeatedly on each matching path."
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-commands.pod:93
15108 msgid "See L</WILDCARDS AND GLOBBING>."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-commands.pod:95
15113 msgid "hexedit"
15114 msgstr ""
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-commands.pod:97
15118 #, no-wrap
15119 msgid ""
15120 " hexedit <filename|device>\n"
15121 " hexedit <filename|device> <max>\n"
15122 " hexedit <filename|device> <start> <max>\n"
15123 "\n"
15124 msgstr ""
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-commands.pod:101
15128 msgid ""
15129 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15130 "device."
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-commands.pod:104
15135 msgid ""
15136 "This command works by downloading potentially the whole file or device, "
15137 "editing it locally, then uploading it.  If the file or device is large, you "
15138 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15139 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15140 "usual modifiers allowed such as C<1M> (1 megabyte)."
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-commands.pod:111
15145 msgid "For example to edit the first few sectors of a disk you might do:"
15146 msgstr ""
15147
15148 #. type: verbatim
15149 #: ../fish/guestfish-commands.pod:114
15150 #, no-wrap
15151 msgid ""
15152 " hexedit /dev/sda 1M\n"
15153 "\n"
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../fish/guestfish-commands.pod:116
15158 msgid ""
15159 "which would allow you to edit anywhere within the first megabyte of the "
15160 "disk."
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-commands.pod:119
15165 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15166 msgstr ""
15167
15168 #. type: verbatim
15169 #: ../fish/guestfish-commands.pod:121
15170 #, no-wrap
15171 msgid ""
15172 " hexedit /dev/sda1 0x400 0x400\n"
15173 "\n"
15174 msgstr ""
15175
15176 #. type: textblock
15177 #: ../fish/guestfish-commands.pod:123
15178 msgid "(assuming the superblock is in the standard location)."
15179 msgstr ""
15180
15181 #. type: textblock
15182 #: ../fish/guestfish-commands.pod:125
15183 msgid ""
15184 "This command requires the external L<hexedit(1)> program.  You can specify "
15185 "another program to use by setting the C<HEXEDITOR> environment variable."
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-commands.pod:129
15190 msgid "See also L</hexdump>."
15191 msgstr ""
15192
15193 #. type: =head2
15194 #: ../fish/guestfish-commands.pod:131
15195 msgid "lcd"
15196 msgstr ""
15197
15198 #. type: verbatim
15199 #: ../fish/guestfish-commands.pod:133
15200 #, no-wrap
15201 msgid ""
15202 " lcd directory\n"
15203 "\n"
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-commands.pod:135
15208 msgid "Change the local directory, ie. the current directory of guestfish itself."
15209 msgstr ""
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-commands.pod:138
15213 msgid "Note that C<!cd> won't do what you might expect."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../fish/guestfish-commands.pod:140
15218 msgid "man"
15219 msgstr ""
15220
15221 #. type: =head2
15222 #: ../fish/guestfish-commands.pod:142
15223 msgid "manual"
15224 msgstr ""
15225
15226 #. type: verbatim
15227 #: ../fish/guestfish-commands.pod:144
15228 #, no-wrap
15229 msgid ""
15230 "  man\n"
15231 "\n"
15232 msgstr ""
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-commands.pod:146
15236 msgid "Opens the manual page for guestfish."
15237 msgstr ""
15238
15239 #. type: =head2
15240 #: ../fish/guestfish-commands.pod:148
15241 msgid "more"
15242 msgstr ""
15243
15244 #. type: =head2
15245 #: ../fish/guestfish-commands.pod:150
15246 msgid "less"
15247 msgstr ""
15248
15249 #. type: verbatim
15250 #: ../fish/guestfish-commands.pod:152
15251 #, no-wrap
15252 msgid ""
15253 " more filename\n"
15254 "\n"
15255 msgstr ""
15256
15257 #. type: verbatim
15258 #: ../fish/guestfish-commands.pod:154
15259 #, no-wrap
15260 msgid ""
15261 " less filename\n"
15262 "\n"
15263 msgstr ""
15264
15265 #. type: textblock
15266 #: ../fish/guestfish-commands.pod:156
15267 msgid "This is used to view a file."
15268 msgstr ""
15269
15270 #. type: textblock
15271 #: ../fish/guestfish-commands.pod:158
15272 msgid ""
15273 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15274 "C<less> you will get the C<less> command specifically."
15275 msgstr ""
15276
15277 #. type: =head2
15278 #: ../fish/guestfish-commands.pod:161
15279 msgid "reopen"
15280 msgstr ""
15281
15282 #. type: verbatim
15283 #: ../fish/guestfish-commands.pod:163
15284 #, no-wrap
15285 msgid ""
15286 "  reopen\n"
15287 "\n"
15288 msgstr ""
15289
15290 #. type: textblock
15291 #: ../fish/guestfish-commands.pod:165
15292 msgid ""
15293 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15294 "normally, because the handle is closed properly when guestfish exits.  "
15295 "However this is occasionally useful for testing."
15296 msgstr ""
15297
15298 #. type: =head2
15299 #: ../fish/guestfish-commands.pod:169
15300 msgid "sparse"
15301 msgstr ""
15302
15303 #. type: verbatim
15304 #: ../fish/guestfish-commands.pod:171
15305 #, no-wrap
15306 msgid ""
15307 " sparse filename size\n"
15308 "\n"
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-commands.pod:173
15313 msgid ""
15314 "This creates an empty sparse file of the given size, and then adds so it can "
15315 "be further examined."
15316 msgstr ""
15317
15318 #. type: textblock
15319 #: ../fish/guestfish-commands.pod:176
15320 msgid ""
15321 "In all respects it works the same as the L</alloc> command, except that the "
15322 "image file is allocated sparsely, which means that disk blocks are not "
15323 "assigned to the file until they are needed.  Sparse disk files only use "
15324 "space when written to, but they are slower and there is a danger you could "
15325 "run out of real disk space during a write operation."
15326 msgstr ""
15327
15328 #. type: =head2
15329 #: ../fish/guestfish-commands.pod:186
15330 msgid "supported"
15331 msgstr ""
15332
15333 #. type: verbatim
15334 #: ../fish/guestfish-commands.pod:188
15335 #, no-wrap
15336 msgid ""
15337 " supported\n"
15338 "\n"
15339 msgstr ""
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-commands.pod:190
15343 msgid ""
15344 "This command returns a list of the optional groups known to the daemon, and "
15345 "indicates which ones are supported by this build of the libguestfs "
15346 "appliance."
15347 msgstr ""
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-commands.pod:194
15351 msgid "See also L<guestfs(3)/AVAILABILITY>."
15352 msgstr ""
15353
15354 #. type: =head2
15355 #: ../fish/guestfish-commands.pod:196
15356 msgid "time"
15357 msgstr ""
15358
15359 #. type: verbatim
15360 #: ../fish/guestfish-commands.pod:198
15361 #, no-wrap
15362 msgid ""
15363 " time command args...\n"
15364 "\n"
15365 msgstr ""
15366
15367 #. type: textblock
15368 #: ../fish/guestfish-commands.pod:200
15369 msgid ""
15370 "Run the command as usual, but print the elapsed time afterwards.  This can "
15371 "be useful for benchmarking operations."
15372 msgstr ""
15373
15374 #. type: textblock
15375 #: ../fish/guestfish.pod:5
15376 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15377 msgstr ""
15378
15379 #. type: verbatim
15380 #: ../fish/guestfish.pod:9
15381 #, no-wrap
15382 msgid ""
15383 " guestfish [--options] [commands]\n"
15384 "\n"
15385 msgstr ""
15386
15387 #. type: verbatim
15388 #: ../fish/guestfish.pod:11
15389 #, no-wrap
15390 msgid ""
15391 " guestfish\n"
15392 "\n"
15393 msgstr ""
15394
15395 #. type: verbatim
15396 #: ../fish/guestfish.pod:13
15397 #, no-wrap
15398 msgid ""
15399 " guestfish [--ro|--rw] -a disk.img\n"
15400 "\n"
15401 msgstr ""
15402
15403 #. type: verbatim
15404 #: ../fish/guestfish.pod:15
15405 #, no-wrap
15406 msgid ""
15407 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15408 "\n"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../fish/guestfish.pod:17
15413 #, no-wrap
15414 msgid ""
15415 " guestfish -d libvirt-domain\n"
15416 "\n"
15417 msgstr ""
15418
15419 #. type: verbatim
15420 #: ../fish/guestfish.pod:19
15421 #, no-wrap
15422 msgid ""
15423 " guestfish [--ro|--rw] -a disk.img -i\n"
15424 "\n"
15425 msgstr ""
15426
15427 #. type: verbatim
15428 #: ../fish/guestfish.pod:21
15429 #, no-wrap
15430 msgid ""
15431 " guestfish -d libvirt-domain -i\n"
15432 "\n"
15433 msgstr ""
15434
15435 #. type: textblock
15436 #: ../fish/guestfish.pod:25
15437 msgid ""
15438 "Using guestfish in read/write mode on live virtual machines can be "
15439 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15440 "option to use guestfish safely if the disk image or virtual machine might be "
15441 "live."
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish.pod:32
15446 msgid ""
15447 "Guestfish is a shell and command-line tool for examining and modifying "
15448 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15449 "functionality of the guestfs API, see L<guestfs(3)>."
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish.pod:36
15454 msgid ""
15455 "Guestfish gives you structured access to the libguestfs API, from shell "
15456 "scripts or the command line or interactively.  If you want to rescue a "
15457 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15458 "command."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish.pod:43
15463 msgid "As an interactive shell"
15464 msgstr ""
15465
15466 #. type: verbatim
15467 #: ../fish/guestfish.pod:45
15468 #, no-wrap
15469 msgid ""
15470 " $ guestfish\n"
15471 " \n"
15472 msgstr ""
15473
15474 #. type: verbatim
15475 #: ../fish/guestfish.pod:47
15476 #, no-wrap
15477 msgid ""
15478 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15479 " editing virtual machine filesystems.\n"
15480 " \n"
15481 msgstr ""
15482
15483 #. type: verbatim
15484 #: ../fish/guestfish.pod:50
15485 #, no-wrap
15486 msgid ""
15487 " Type: 'help' for a list of commands\n"
15488 "       'man' to read the manual\n"
15489 "       'quit' to quit the shell\n"
15490 " \n"
15491 msgstr ""
15492
15493 #. type: verbatim
15494 #: ../fish/guestfish.pod:54
15495 #, no-wrap
15496 msgid ""
15497 " ><fs> add-ro disk.img\n"
15498 " ><fs> run\n"
15499 " ><fs> list-filesystems\n"
15500 " /dev/sda1: ext4\n"
15501 " /dev/vg_guest/lv_root: ext4\n"
15502 " /dev/vg_guest/lv_swap: swap\n"
15503 " ><fs> mount /dev/vg_guest/lv_root /\n"
15504 " ><fs> cat /etc/fstab\n"
15505 " # /etc/fstab\n"
15506 " # Created by anaconda\n"
15507 " [...]\n"
15508 " ><fs> exit\n"
15509 "\n"
15510 msgstr ""
15511
15512 #. type: =head2
15513 #: ../fish/guestfish.pod:67
15514 msgid "From shell scripts"
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish.pod:69
15519 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15520 msgstr ""
15521
15522 #. type: verbatim
15523 #: ../fish/guestfish.pod:71
15524 #, no-wrap
15525 msgid ""
15526 " guestfish <<_EOF_\n"
15527 " add disk.img\n"
15528 " run\n"
15529 " mount /dev/vg_guest/lv_root /\n"
15530 " write /etc/motd \"Welcome, new users\"\n"
15531 " _EOF_\n"
15532 "\n"
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish.pod:78
15537 msgid "List the LVM logical volumes in a disk image:"
15538 msgstr ""
15539
15540 #. type: verbatim
15541 #: ../fish/guestfish.pod:80
15542 #, no-wrap
15543 msgid ""
15544 " guestfish -a disk.img --ro <<_EOF_\n"
15545 " run\n"
15546 " lvs\n"
15547 " _EOF_\n"
15548 "\n"
15549 msgstr ""
15550
15551 #. type: textblock
15552 #: ../fish/guestfish.pod:85
15553 msgid "List all the filesystems in a disk image:"
15554 msgstr ""
15555
15556 #. type: verbatim
15557 #: ../fish/guestfish.pod:87
15558 #, no-wrap
15559 msgid ""
15560 " guestfish -a disk.img --ro <<_EOF_\n"
15561 " run\n"
15562 " list-filesystems\n"
15563 " _EOF_\n"
15564 "\n"
15565 msgstr ""
15566
15567 #. type: =head2
15568 #: ../fish/guestfish.pod:92
15569 msgid "On one command line"
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15574 msgid "Update C</etc/resolv.conf> in a guest:"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../fish/guestfish.pod:96
15579 #, no-wrap
15580 msgid ""
15581 " guestfish \\\n"
15582 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15583 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15584 "\n"
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../fish/guestfish.pod:100
15589 msgid "Edit C</boot/grub/grub.conf> interactively:"
15590 msgstr ""
15591
15592 #. type: verbatim
15593 #: ../fish/guestfish.pod:102
15594 #, no-wrap
15595 msgid ""
15596 " guestfish --rw --add disk.img \\\n"
15597 "   --mount /dev/vg_guest/lv_root \\\n"
15598 "   --mount /dev/sda1:/boot \\\n"
15599 "   edit /boot/grub/grub.conf\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: =head2
15604 #: ../fish/guestfish.pod:107
15605 msgid "Mount disks automatically"
15606 msgstr ""
15607
15608 #. type: textblock
15609 #: ../fish/guestfish.pod:109
15610 msgid ""
15611 "Use the I<-i> option to automatically mount the disks from a virtual "
15612 "machine:"
15613 msgstr ""
15614
15615 #. type: verbatim
15616 #: ../fish/guestfish.pod:112
15617 #, no-wrap
15618 msgid ""
15619 " guestfish --ro -a disk.img -i cat /etc/group\n"
15620 "\n"
15621 msgstr ""
15622
15623 #. type: verbatim
15624 #: ../fish/guestfish.pod:114
15625 #, no-wrap
15626 msgid ""
15627 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15628 "\n"
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../fish/guestfish.pod:116
15633 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15634 msgstr ""
15635
15636 #. type: verbatim
15637 #: ../fish/guestfish.pod:118
15638 #, no-wrap
15639 msgid ""
15640 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15641 "\n"
15642 msgstr ""
15643
15644 #. type: =head2
15645 #: ../fish/guestfish.pod:120
15646 msgid "As a script interpreter"
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish.pod:122
15651 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15652 msgstr ""
15653
15654 #. type: verbatim
15655 #: ../fish/guestfish.pod:124
15656 #, no-wrap
15657 msgid ""
15658 " #!/usr/bin/guestfish -f\n"
15659 " sparse test1.img 100M\n"
15660 " run\n"
15661 " part-disk /dev/sda mbr\n"
15662 " mkfs ext2 /dev/sda1\n"
15663 "\n"
15664 msgstr ""
15665
15666 #. type: =head2
15667 #: ../fish/guestfish.pod:130
15668 msgid "Start with a prepared disk"
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish.pod:132
15673 msgid ""
15674 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15675 "single ext2-formatted partition:"
15676 msgstr ""
15677
15678 #. type: verbatim
15679 #: ../fish/guestfish.pod:135
15680 #, no-wrap
15681 msgid ""
15682 " guestfish -N fs\n"
15683 "\n"
15684 msgstr ""
15685
15686 #. type: textblock
15687 #: ../fish/guestfish.pod:137
15688 msgid "To list what is available do:"
15689 msgstr ""
15690
15691 #. type: verbatim
15692 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
15693 #, no-wrap
15694 msgid ""
15695 " guestfish -N help | less\n"
15696 "\n"
15697 msgstr ""
15698
15699 #. type: =head2
15700 #: ../fish/guestfish.pod:141
15701 msgid "Remote control"
15702 msgstr ""
15703
15704 #. type: verbatim
15705 #: ../fish/guestfish.pod:143
15706 #, no-wrap
15707 msgid ""
15708 " eval \"`guestfish --listen`\"\n"
15709 " guestfish --remote add-ro disk.img\n"
15710 " guestfish --remote run\n"
15711 " guestfish --remote lvs\n"
15712 "\n"
15713 msgstr ""
15714
15715 #. type: textblock
15716 #: ../fish/guestfish.pod:154
15717 msgid "Displays general help on options."
15718 msgstr ""
15719
15720 #. type: =item
15721 #: ../fish/guestfish.pod:158
15722 msgid "B<--cmd-help>"
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../fish/guestfish.pod:160
15727 msgid "Lists all available guestfish commands."
15728 msgstr ""
15729
15730 #. type: =item
15731 #: ../fish/guestfish.pod:162
15732 msgid "B<-h cmd>"
15733 msgstr ""
15734
15735 #. type: =item
15736 #: ../fish/guestfish.pod:164
15737 msgid "B<--cmd-help cmd>"
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../fish/guestfish.pod:166
15742 msgid "Displays detailed help on a single command C<cmd>."
15743 msgstr ""
15744
15745 #. type: =item
15746 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
15747 msgid "B<-a image>"
15748 msgstr ""
15749
15750 #. type: =item
15751 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
15752 msgid "B<--add image>"
15753 msgstr ""
15754
15755 #. type: textblock
15756 #: ../fish/guestfish.pod:172
15757 msgid "Add a block device or virtual machine image to the shell."
15758 msgstr ""
15759
15760 #. type: textblock
15761 #: ../fish/guestfish.pod:177
15762 msgid ""
15763 "Using this flag is mostly equivalent to using the C<add> command, with "
15764 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
15765 "the I<--format=...> flag was given."
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
15770 msgid ""
15771 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15772 "URI to use.  The default is to use the default libvirt connection."
15773 msgstr ""
15774
15775 #. type: =item
15776 #: ../fish/guestfish.pod:189
15777 msgid "B<--csh>"
15778 msgstr ""
15779
15780 #. type: textblock
15781 #: ../fish/guestfish.pod:191
15782 msgid ""
15783 "If using the I<--listen> option and a csh-like shell, use this option.  See "
15784 "section L</REMOTE CONTROL AND CSH> below."
15785 msgstr ""
15786
15787 #. type: =item
15788 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
15789 msgid "B<-d libvirt-domain>"
15790 msgstr ""
15791
15792 #. type: =item
15793 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
15794 msgid "B<--domain libvirt-domain>"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
15799 msgid ""
15800 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15801 "used, then any libvirt domain can be used.  However in write mode, only "
15802 "libvirt domains which are shut down can be named here."
15803 msgstr ""
15804
15805 #. type: textblock
15806 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
15807 msgid "Domain UUIDs can be used instead of names."
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish.pod:204
15812 msgid ""
15813 "Using this flag is mostly equivalent to using the C<add-domain> command, "
15814 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
15815 "if the I<--format:...> flag was given."
15816 msgstr ""
15817
15818 #. type: =item
15819 #: ../fish/guestfish.pod:208
15820 msgid "B<-D>"
15821 msgstr ""
15822
15823 #. type: =item
15824 #: ../fish/guestfish.pod:210
15825 msgid "B<--no-dest-paths>"
15826 msgstr ""
15827
15828 #. type: textblock
15829 #: ../fish/guestfish.pod:212
15830 msgid ""
15831 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15832 "to hit the tab key to complete paths on the guest filesystem, but this "
15833 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15834 "allow this feature to be disabled."
15835 msgstr ""
15836
15837 #. type: textblock
15838 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
15839 msgid ""
15840 "When prompting for keys and passphrases, guestfish normally turns echoing "
15841 "off so you cannot see what you are typing.  If you are not worried about "
15842 "Tempest attacks and there is no one else in the room you can specify this "
15843 "flag to see what you are typing."
15844 msgstr ""
15845
15846 #. type: =item
15847 #: ../fish/guestfish.pod:224
15848 msgid "B<-f file>"
15849 msgstr ""
15850
15851 #. type: =item
15852 #: ../fish/guestfish.pod:226
15853 msgid "B<--file file>"
15854 msgstr ""
15855
15856 #. type: textblock
15857 #: ../fish/guestfish.pod:228
15858 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15859 msgstr ""
15860
15861 #. type: verbatim
15862 #: ../fish/guestfish.pod:231
15863 #, no-wrap
15864 msgid ""
15865 " #!/usr/bin/guestfish -f\n"
15866 "\n"
15867 msgstr ""
15868
15869 #. type: verbatim
15870 #: ../fish/guestfish.pod:244
15871 #, no-wrap
15872 msgid ""
15873 " guestfish --format=raw -a disk.img\n"
15874 "\n"
15875 msgstr ""
15876
15877 #. type: verbatim
15878 #: ../fish/guestfish.pod:248
15879 #, no-wrap
15880 msgid ""
15881 " guestfish --format=raw -a disk.img --format -a another.img\n"
15882 "\n"
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../fish/guestfish.pod:253
15887 msgid ""
15888 "If you have untrusted raw-format guest disk images, you should use this "
15889 "option to specify the disk format.  This avoids a possible security problem "
15890 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15891 msgstr ""
15892
15893 #. type: =item
15894 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
15895 msgid "B<--inspector>"
15896 msgstr ""
15897
15898 #. type: textblock
15899 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
15900 msgid ""
15901 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15902 "system and mount filesystems as they would be mounted on the real virtual "
15903 "machine."
15904 msgstr ""
15905
15906 #. type: textblock
15907 #: ../fish/guestfish.pod:266
15908 msgid "Typical usage is either:"
15909 msgstr ""
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish.pod:268
15913 #, no-wrap
15914 msgid ""
15915 " guestfish -d myguest -i\n"
15916 "\n"
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish.pod:270
15921 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../fish/guestfish.pod:272
15926 #, no-wrap
15927 msgid ""
15928 " guestfish --ro -d myguest -i\n"
15929 "\n"
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish.pod:274
15934 msgid "(for active domains, readonly), or specify the block device directly:"
15935 msgstr ""
15936
15937 #. type: verbatim
15938 #: ../fish/guestfish.pod:276
15939 #, no-wrap
15940 msgid ""
15941 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
15942 "\n"
15943 msgstr ""
15944
15945 #. type: textblock
15946 #: ../fish/guestfish.pod:278
15947 msgid ""
15948 "Note that the command line syntax changed slightly over older versions of "
15949 "guestfish.  You can still use the old syntax:"
15950 msgstr ""
15951
15952 #. type: verbatim
15953 #: ../fish/guestfish.pod:281
15954 #, no-wrap
15955 msgid ""
15956 " guestfish [--ro] -i disk.img\n"
15957 "\n"
15958 msgstr ""
15959
15960 #. type: verbatim
15961 #: ../fish/guestfish.pod:283
15962 #, no-wrap
15963 msgid ""
15964 " guestfish [--ro] -i libvirt-domain\n"
15965 "\n"
15966 msgstr ""
15967
15968 #. type: textblock
15969 #: ../fish/guestfish.pod:285
15970 msgid ""
15971 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
15972 "then using other commands to mount the filesystems that were found."
15973 msgstr ""
15974
15975 #. type: =item
15976 #: ../fish/guestfish.pod:294
15977 msgid "B<--listen>"
15978 msgstr ""
15979
15980 #. type: textblock
15981 #: ../fish/guestfish.pod:296
15982 msgid ""
15983 "Fork into the background and listen for remote commands.  See section "
15984 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15985 msgstr ""
15986
15987 #. type: =item
15988 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
15989 msgid "B<--live>"
15990 msgstr ""
15991
15992 #. type: textblock
15993 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
15994 msgid ""
15995 "Connect to a live virtual machine.  (Experimental, see "
15996 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
15997 msgstr ""
15998
15999 #. type: =item
16000 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16001 msgid "B<-m dev[:mountpoint[:options]]>"
16002 msgstr ""
16003
16004 #. type: =item
16005 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16006 msgid "B<--mount dev[:mountpoint[:options]]>"
16007 msgstr ""
16008
16009 #. type: textblock
16010 #: ../fish/guestfish.pod:308
16011 msgid "Mount the named partition or logical volume on the given mountpoint."
16012 msgstr ""
16013
16014 #. type: textblock
16015 #: ../fish/guestfish.pod:310
16016 msgid "If the mountpoint is omitted, it defaults to C</>."
16017 msgstr ""
16018
16019 #. type: textblock
16020 #: ../fish/guestfish.pod:312
16021 msgid "You have to mount something on C</> before most commands will work."
16022 msgstr ""
16023
16024 #. type: textblock
16025 #: ../fish/guestfish.pod:314
16026 msgid ""
16027 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16028 "launched."
16029 msgstr ""
16030
16031 #. type: textblock
16032 #: ../fish/guestfish.pod:317
16033 msgid ""
16034 "If you don't know what filesystems a disk image contains, you can either run "
16035 "guestfish without this option, then list the partitions, filesystems and LVs "
16036 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16037 "commands), or you can use the L<virt-filesystems(1)> program."
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16042 msgid ""
16043 "The third (and rarely used) part of the mount parameter is the list of mount "
16044 "options used to mount the underlying filesystem.  If this is not given, then "
16045 "the mount options are either the empty string or C<ro> (the latter if the "
16046 "I<--ro> flag is used).  By specifying the mount options, you override this "
16047 "default choice.  Probably the only time you would use this is to enable ACLs "
16048 "and/or extended attributes if the filesystem can support them:"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16053 #, no-wrap
16054 msgid ""
16055 " -m /dev/sda1:/:acl,user_xattr\n"
16056 "\n"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish.pod:333
16061 msgid "Using this flag is equivalent to using the C<mount-options> command."
16062 msgstr ""
16063
16064 #. type: =item
16065 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:352
16066 msgid "B<-n>"
16067 msgstr ""
16068
16069 #. type: =item
16070 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16071 msgid "B<--no-sync>"
16072 msgstr ""
16073
16074 #. type: textblock
16075 #: ../fish/guestfish.pod:339
16076 msgid ""
16077 "Disable autosync.  This is enabled by default.  See the discussion of "
16078 "autosync in the L<guestfs(3)> manpage."
16079 msgstr ""
16080
16081 #. type: =item
16082 #: ../fish/guestfish.pod:342
16083 msgid "B<-N type>"
16084 msgstr ""
16085
16086 #. type: =item
16087 #: ../fish/guestfish.pod:344
16088 msgid "B<--new type>"
16089 msgstr ""
16090
16091 #. type: =item
16092 #: ../fish/guestfish.pod:346
16093 msgid "B<-N help>"
16094 msgstr ""
16095
16096 #. type: textblock
16097 #: ../fish/guestfish.pod:348
16098 msgid ""
16099 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16100 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16101 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16102 "IMAGES> below."
16103 msgstr ""
16104
16105 #. type: =item
16106 #: ../fish/guestfish.pod:353
16107 msgid "B<--progress-bars>"
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish.pod:355
16112 msgid "Enable progress bars, even when guestfish is used non-interactively."
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../fish/guestfish.pod:357
16117 msgid ""
16118 "Progress bars are enabled by default when guestfish is used as an "
16119 "interactive shell."
16120 msgstr ""
16121
16122 #. type: =item
16123 #: ../fish/guestfish.pod:360
16124 msgid "B<--no-progress-bars>"
16125 msgstr ""
16126
16127 #. type: textblock
16128 #: ../fish/guestfish.pod:362
16129 msgid "Disable progress bars."
16130 msgstr ""
16131
16132 #. type: =item
16133 #: ../fish/guestfish.pod:364
16134 msgid "B<--remote[=pid]>"
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish.pod:366
16139 msgid ""
16140 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16141 "CONTROL GUESTFISH OVER A SOCKET> below."
16142 msgstr ""
16143
16144 #. type: =item
16145 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16146 msgid "B<-r>"
16147 msgstr ""
16148
16149 #. type: =item
16150 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16151 msgid "B<--ro>"
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish.pod:373
16156 msgid ""
16157 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16158 "mounts are done read-only."
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16163 msgid ""
16164 "The option must always be used if the disk image or virtual machine might be "
16165 "running, and is generally recommended in cases where you don't need write "
16166 "access to the disk."
16167 msgstr ""
16168
16169 #. type: textblock
16170 #: ../fish/guestfish.pod:380
16171 msgid ""
16172 "Note that prepared disk images created with I<-N> are not affected by this "
16173 "option.  Also commands like C<add> are not affected - you have to specify "
16174 "the C<readonly:true> option explicitly if you need it."
16175 msgstr ""
16176
16177 #. type: textblock
16178 #: ../fish/guestfish.pod:384
16179 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16180 msgstr ""
16181
16182 #. type: =item
16183 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16184 msgid "B<--selinux>"
16185 msgstr ""
16186
16187 #. type: textblock
16188 #: ../fish/guestfish.pod:388
16189 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16190 msgstr ""
16191
16192 #. type: textblock
16193 #: ../fish/guestfish.pod:394
16194 msgid ""
16195 "Enable very verbose messages.  This is particularly useful if you find a "
16196 "bug."
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish.pod:401
16201 msgid "Display the guestfish / libguestfs version number and exit."
16202 msgstr ""
16203
16204 #. type: =item
16205 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:190
16206 msgid "B<-w>"
16207 msgstr ""
16208
16209 #. type: =item
16210 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:192
16211 msgid "B<--rw>"
16212 msgstr ""
16213
16214 #. type: textblock
16215 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16216 msgid ""
16217 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16218 "mounts are done read-write."
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish.pod:410
16223 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish.pod:414
16228 msgid "Echo each command before executing it."
16229 msgstr ""
16230
16231 #. type: =head1
16232 #: ../fish/guestfish.pod:418
16233 msgid "COMMANDS ON COMMAND LINE"
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish.pod:420
16238 msgid "Any additional (non-option) arguments are treated as commands to execute."
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:423
16243 msgid ""
16244 "Commands to execute should be separated by a colon (C<:>), where the colon "
16245 "is a separate parameter.  Thus:"
16246 msgstr ""
16247
16248 #. type: verbatim
16249 #: ../fish/guestfish.pod:426
16250 #, no-wrap
16251 msgid ""
16252 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish.pod:428
16258 msgid ""
16259 "If there are no additional arguments, then we enter a shell, either an "
16260 "interactive shell with a prompt (if the input is a terminal) or a "
16261 "non-interactive shell."
16262 msgstr ""
16263
16264 #. type: textblock
16265 #: ../fish/guestfish.pod:432
16266 msgid ""
16267 "In either command line mode or non-interactive shell, the first command that "
16268 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16269 "prompt) if a command fails, you can continue to enter commands."
16270 msgstr ""
16271
16272 #. type: =head1
16273 #: ../fish/guestfish.pod:437
16274 msgid "USING launch (OR run)"
16275 msgstr ""
16276
16277 #. type: textblock
16278 #: ../fish/guestfish.pod:439
16279 msgid ""
16280 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16281 "then launch it, then mount any disks you need, and finally issue "
16282 "actions/commands.  So the general order of the day is:"
16283 msgstr ""
16284
16285 #. type: textblock
16286 #: ../fish/guestfish.pod:447
16287 msgid "add or -a/--add"
16288 msgstr ""
16289
16290 #. type: textblock
16291 #: ../fish/guestfish.pod:451
16292 msgid "launch (aka run)"
16293 msgstr ""
16294
16295 #. type: textblock
16296 #: ../fish/guestfish.pod:455
16297 msgid "mount or -m/--mount"
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../fish/guestfish.pod:459
16302 msgid "any other commands"
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish.pod:463
16307 msgid ""
16308 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16309 "guest before mounting or performing any other commands."
16310 msgstr ""
16311
16312 #. type: textblock
16313 #: ../fish/guestfish.pod:466
16314 msgid ""
16315 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16316 "I<--new> options were given then C<run> is done automatically, simply "
16317 "because guestfish can't perform the action you asked for without doing this."
16318 msgstr ""
16319
16320 #. type: =head1
16321 #: ../fish/guestfish.pod:471
16322 msgid "OPENING DISKS FOR READ AND WRITE"
16323 msgstr ""
16324
16325 #. type: textblock
16326 #: ../fish/guestfish.pod:473
16327 msgid ""
16328 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16329 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16330 "I<-i> and I<-m> open disk images read-only or for writing."
16331 msgstr ""
16332
16333 #. type: textblock
16334 #: ../fish/guestfish.pod:478
16335 msgid ""
16336 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16337 "opening disk images supplied on the command line for write.  To open a disk "
16338 "image read-only you have to do I<-a image --ro>."
16339 msgstr ""
16340
16341 #. type: textblock
16342 #: ../fish/guestfish.pod:482
16343 msgid ""
16344 "This matters: If you accidentally open a live VM disk image writable then "
16345 "you will cause irreversible disk corruption."
16346 msgstr ""
16347
16348 #. type: textblock
16349 #: ../fish/guestfish.pod:485
16350 msgid ""
16351 "In a future libguestfs we intend to change the default the other way.  Disk "
16352 "images will be opened read-only.  You will have to either specify "
16353 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16354 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16355 "access for disk images specified by those other command line options."
16356 msgstr ""
16357
16358 #. type: textblock
16359 #: ../fish/guestfish.pod:492
16360 msgid ""
16361 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16362 "which does nothing (it is already the default).  However it is highly "
16363 "recommended that you use this option to indicate that you need write access, "
16364 "and prepare your scripts for the day when this option will be required for "
16365 "write access."
16366 msgstr ""
16367
16368 #. type: textblock
16369 #: ../fish/guestfish.pod:498
16370 msgid ""
16371 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16372 "other libguestfs program apart from guestfish and guestmount."
16373 msgstr ""
16374
16375 #. type: =head1
16376 #: ../fish/guestfish.pod:501
16377 msgid "QUOTING"
16378 msgstr ""
16379
16380 #. type: textblock
16381 #: ../fish/guestfish.pod:503
16382 msgid ""
16383 "You can quote ordinary parameters using either single or double quotes.  For "
16384 "example:"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../fish/guestfish.pod:506
16389 #, no-wrap
16390 msgid ""
16391 " add \"file with a space.img\"\n"
16392 "\n"
16393 msgstr ""
16394
16395 #. type: verbatim
16396 #: ../fish/guestfish.pod:508
16397 #, no-wrap
16398 msgid ""
16399 " rm '/file name'\n"
16400 "\n"
16401 msgstr ""
16402
16403 #. type: verbatim
16404 #: ../fish/guestfish.pod:510
16405 #, no-wrap
16406 msgid ""
16407 " rm '/\"'\n"
16408 "\n"
16409 msgstr ""
16410
16411 #. type: textblock
16412 #: ../fish/guestfish.pod:512
16413 msgid ""
16414 "A few commands require a list of strings to be passed.  For these, use a "
16415 "whitespace-separated list, enclosed in quotes.  Strings containing "
16416 "whitespace to be passed through must be enclosed in single quotes.  A "
16417 "literal single quote must be escaped with a backslash."
16418 msgstr ""
16419
16420 #. type: verbatim
16421 #: ../fish/guestfish.pod:517
16422 #, no-wrap
16423 msgid ""
16424 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16425 " command \"/bin/echo 'foo      bar'\"\n"
16426 " command \"/bin/echo \\'foo\\'\"\n"
16427 "\n"
16428 msgstr ""
16429
16430 #. type: =head2
16431 #: ../fish/guestfish.pod:521
16432 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish.pod:523
16437 msgid ""
16438 "In double-quoted arguments (only) use backslash to insert special "
16439 "characters:"
16440 msgstr ""
16441
16442 #. type: =item
16443 #: ../fish/guestfish.pod:528
16444 msgid "C<\\a>"
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../fish/guestfish.pod:530
16449 msgid "Alert (bell) character."
16450 msgstr ""
16451
16452 #. type: =item
16453 #: ../fish/guestfish.pod:532
16454 msgid "C<\\b>"
16455 msgstr ""
16456
16457 #. type: textblock
16458 #: ../fish/guestfish.pod:534
16459 msgid "Backspace character."
16460 msgstr ""
16461
16462 #. type: =item
16463 #: ../fish/guestfish.pod:536
16464 msgid "C<\\f>"
16465 msgstr ""
16466
16467 #. type: textblock
16468 #: ../fish/guestfish.pod:538
16469 msgid "Form feed character."
16470 msgstr ""
16471
16472 #. type: =item
16473 #: ../fish/guestfish.pod:540
16474 msgid "C<\\n>"
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish.pod:542
16479 msgid "Newline character."
16480 msgstr ""
16481
16482 #. type: =item
16483 #: ../fish/guestfish.pod:544
16484 msgid "C<\\r>"
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish.pod:546
16489 msgid "Carriage return character."
16490 msgstr ""
16491
16492 #. type: =item
16493 #: ../fish/guestfish.pod:548
16494 msgid "C<\\t>"
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../fish/guestfish.pod:550
16499 msgid "Horizontal tab character."
16500 msgstr ""
16501
16502 #. type: =item
16503 #: ../fish/guestfish.pod:552
16504 msgid "C<\\v>"
16505 msgstr ""
16506
16507 #. type: textblock
16508 #: ../fish/guestfish.pod:554
16509 msgid "Vertical tab character."
16510 msgstr ""
16511
16512 #. type: =item
16513 #: ../fish/guestfish.pod:556
16514 msgid "C<\\\">"
16515 msgstr ""
16516
16517 #. type: textblock
16518 #: ../fish/guestfish.pod:558
16519 msgid "A literal double quote character."
16520 msgstr ""
16521
16522 #. type: =item
16523 #: ../fish/guestfish.pod:560
16524 msgid "C<\\ooo>"
16525 msgstr ""
16526
16527 #. type: textblock
16528 #: ../fish/guestfish.pod:562
16529 msgid ""
16530 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16531 "(unlike C)."
16532 msgstr ""
16533
16534 #. type: =item
16535 #: ../fish/guestfish.pod:565
16536 msgid "C<\\xhh>"
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish.pod:567
16541 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16542 msgstr ""
16543
16544 #. type: textblock
16545 #: ../fish/guestfish.pod:570
16546 msgid ""
16547 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16548 "strings."
16549 msgstr ""
16550
16551 #. type: =item
16552 #: ../fish/guestfish.pod:573
16553 msgid "C<\\\\>"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish.pod:575
16558 msgid "A literal backslash character."
16559 msgstr ""
16560
16561 #. type: =head1
16562 #: ../fish/guestfish.pod:579
16563 msgid "OPTIONAL ARGUMENTS"
16564 msgstr ""
16565
16566 #. type: textblock
16567 #: ../fish/guestfish.pod:581
16568 msgid ""
16569 "Some commands take optional arguments.  These arguments appear in this "
16570 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16571 msgstr ""
16572
16573 #. type: verbatim
16574 #: ../fish/guestfish.pod:585
16575 #, no-wrap
16576 msgid ""
16577 " add-drive-opts filename\n"
16578 "\n"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish.pod:587
16583 #, no-wrap
16584 msgid ""
16585 " add-drive-opts filename readonly:true\n"
16586 "\n"
16587 msgstr ""
16588
16589 #. type: verbatim
16590 #: ../fish/guestfish.pod:589
16591 #, no-wrap
16592 msgid ""
16593 " add-drive-opts filename format:qcow2 readonly:false\n"
16594 "\n"
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish.pod:591
16599 msgid ""
16600 "Each optional argument can appear at most once.  All optional arguments must "
16601 "appear after the required ones."
16602 msgstr ""
16603
16604 #. type: =head1
16605 #: ../fish/guestfish.pod:594
16606 msgid "NUMBERS"
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish.pod:596
16611 msgid "This section applies to all commands which can take integers as parameters."
16612 msgstr ""
16613
16614 #. type: =head2
16615 #: ../fish/guestfish.pod:599
16616 msgid "SIZE SUFFIX"
16617 msgstr ""
16618
16619 #. type: textblock
16620 #: ../fish/guestfish.pod:601
16621 msgid ""
16622 "When the command takes a parameter measured in bytes, you can use one of the "
16623 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16624 msgstr ""
16625
16626 #. type: =item
16627 #: ../fish/guestfish.pod:607
16628 msgid "B<k> or B<K> or B<KiB>"
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish.pod:609
16633 msgid "The size in kilobytes (multiplied by 1024)."
16634 msgstr ""
16635
16636 #. type: =item
16637 #: ../fish/guestfish.pod:611
16638 msgid "B<KB>"
16639 msgstr ""
16640
16641 #. type: textblock
16642 #: ../fish/guestfish.pod:613
16643 msgid "The size in SI 1000 byte units."
16644 msgstr ""
16645
16646 #. type: =item
16647 #: ../fish/guestfish.pod:615
16648 msgid "B<M> or B<MiB>"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish.pod:617
16653 msgid "The size in megabytes (multiplied by 1048576)."
16654 msgstr ""
16655
16656 #. type: =item
16657 #: ../fish/guestfish.pod:619
16658 msgid "B<MB>"
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish.pod:621
16663 msgid "The size in SI 1000000 byte units."
16664 msgstr ""
16665
16666 #. type: =item
16667 #: ../fish/guestfish.pod:623
16668 msgid "B<G> or B<GiB>"
16669 msgstr ""
16670
16671 #. type: textblock
16672 #: ../fish/guestfish.pod:625
16673 msgid "The size in gigabytes (multiplied by 2**30)."
16674 msgstr ""
16675
16676 #. type: =item
16677 #: ../fish/guestfish.pod:627
16678 msgid "B<GB>"
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish.pod:629
16683 msgid "The size in SI 10**9 byte units."
16684 msgstr ""
16685
16686 #. type: =item
16687 #: ../fish/guestfish.pod:631
16688 msgid "B<T> or B<TiB>"
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish.pod:633
16693 msgid "The size in terabytes (multiplied by 2**40)."
16694 msgstr ""
16695
16696 #. type: =item
16697 #: ../fish/guestfish.pod:635
16698 msgid "B<TB>"
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish.pod:637
16703 msgid "The size in SI 10**12 byte units."
16704 msgstr ""
16705
16706 #. type: =item
16707 #: ../fish/guestfish.pod:639
16708 msgid "B<P> or B<PiB>"
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish.pod:641
16713 msgid "The size in petabytes (multiplied by 2**50)."
16714 msgstr ""
16715
16716 #. type: =item
16717 #: ../fish/guestfish.pod:643
16718 msgid "B<PB>"
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish.pod:645
16723 msgid "The size in SI 10**15 byte units."
16724 msgstr ""
16725
16726 #. type: =item
16727 #: ../fish/guestfish.pod:647
16728 msgid "B<E> or B<EiB>"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish.pod:649
16733 msgid "The size in exabytes (multiplied by 2**60)."
16734 msgstr ""
16735
16736 #. type: =item
16737 #: ../fish/guestfish.pod:651
16738 msgid "B<EB>"
16739 msgstr ""
16740
16741 #. type: textblock
16742 #: ../fish/guestfish.pod:653
16743 msgid "The size in SI 10**18 byte units."
16744 msgstr ""
16745
16746 #. type: =item
16747 #: ../fish/guestfish.pod:655
16748 msgid "B<Z> or B<ZiB>"
16749 msgstr ""
16750
16751 #. type: textblock
16752 #: ../fish/guestfish.pod:657
16753 msgid "The size in zettabytes (multiplied by 2**70)."
16754 msgstr ""
16755
16756 #. type: =item
16757 #: ../fish/guestfish.pod:659
16758 msgid "B<ZB>"
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../fish/guestfish.pod:661
16763 msgid "The size in SI 10**21 byte units."
16764 msgstr ""
16765
16766 #. type: =item
16767 #: ../fish/guestfish.pod:663
16768 msgid "B<Y> or B<YiB>"
16769 msgstr ""
16770
16771 #. type: textblock
16772 #: ../fish/guestfish.pod:665
16773 msgid "The size in yottabytes (multiplied by 2**80)."
16774 msgstr ""
16775
16776 #. type: =item
16777 #: ../fish/guestfish.pod:667
16778 msgid "B<YB>"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../fish/guestfish.pod:669
16783 msgid "The size in SI 10**24 byte units."
16784 msgstr ""
16785
16786 #. type: verbatim
16787 #: ../fish/guestfish.pod:675
16788 #, no-wrap
16789 msgid ""
16790 " truncate-size /file 1G\n"
16791 "\n"
16792 msgstr ""
16793
16794 #. type: textblock
16795 #: ../fish/guestfish.pod:677
16796 msgid "would truncate the file to 1 gigabyte."
16797 msgstr ""
16798
16799 #. type: textblock
16800 #: ../fish/guestfish.pod:679
16801 msgid ""
16802 "Be careful because a few commands take sizes in kilobytes or megabytes "
16803 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16804 "Adding a suffix will probably not do what you expect."
16805 msgstr ""
16806
16807 #. type: =head2
16808 #: ../fish/guestfish.pod:683
16809 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../fish/guestfish.pod:685
16814 msgid ""
16815 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16816 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16817 msgstr ""
16818
16819 #. type: verbatim
16820 #: ../fish/guestfish.pod:688
16821 #, no-wrap
16822 msgid ""
16823 " 1234      decimal number 1234\n"
16824 " 02322     octal number, equivalent to decimal 1234\n"
16825 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16826 "\n"
16827 msgstr ""
16828
16829 #. type: textblock
16830 #: ../fish/guestfish.pod:692
16831 msgid ""
16832 "When using the C<chmod> command, you almost always want to specify an octal "
16833 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16834 "L<chmod(1)> program):"
16835 msgstr ""
16836
16837 #. type: verbatim
16838 #: ../fish/guestfish.pod:696
16839 #, no-wrap
16840 msgid ""
16841 " chmod 0777 /public  # OK\n"
16842 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16843 "\n"
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../fish/guestfish.pod:699
16848 msgid ""
16849 "Commands that return numbers usually print them in decimal, but some "
16850 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16851 "octal, preceeded by C<0>)."
16852 msgstr ""
16853
16854 #. type: =head1
16855 #: ../fish/guestfish.pod:703
16856 msgid "WILDCARDS AND GLOBBING"
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish.pod:705
16861 msgid ""
16862 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16863 "(globbing) by default.  So for example the following will not do what you "
16864 "expect:"
16865 msgstr ""
16866
16867 #. type: verbatim
16868 #: ../fish/guestfish.pod:709
16869 #, no-wrap
16870 msgid ""
16871 " rm-rf /home/*\n"
16872 "\n"
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish.pod:711
16877 msgid ""
16878 "Assuming you don't have a directory called literally C</home/*> then the "
16879 "above command will return an error."
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../fish/guestfish.pod:714
16884 msgid "To perform wildcard expansion, use the C<glob> command."
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish.pod:716
16889 #, no-wrap
16890 msgid ""
16891 " glob rm-rf /home/*\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish.pod:718
16897 msgid ""
16898 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16899 "many times), equivalent to:"
16900 msgstr ""
16901
16902 #. type: verbatim
16903 #: ../fish/guestfish.pod:721
16904 #, no-wrap
16905 msgid ""
16906 " rm-rf /home/jim\n"
16907 " rm-rf /home/joe\n"
16908 " rm-rf /home/mary\n"
16909 "\n"
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../fish/guestfish.pod:725
16914 msgid "C<glob> only works on simple guest paths and not on device names."
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../fish/guestfish.pod:727
16919 msgid ""
16920 "If you have several parameters, each containing a wildcard, then glob will "
16921 "perform a Cartesian product."
16922 msgstr ""
16923
16924 #. type: =head1
16925 #: ../fish/guestfish.pod:730
16926 msgid "COMMENTS"
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish.pod:732
16931 msgid ""
16932 "Any line which starts with a I<#> character is treated as a comment and "
16933 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16934 "a command.  For example:"
16935 msgstr ""
16936
16937 #. type: verbatim
16938 #: ../fish/guestfish.pod:736
16939 #, no-wrap
16940 msgid ""
16941 " # this is a comment\n"
16942 "         # this is a comment\n"
16943 " foo # NOT a comment\n"
16944 "\n"
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish.pod:740
16949 msgid "Blank lines are also ignored."
16950 msgstr ""
16951
16952 #. type: =head1
16953 #: ../fish/guestfish.pod:742
16954 msgid "RUNNING COMMANDS LOCALLY"
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish.pod:744
16959 msgid ""
16960 "Any line which starts with a I<!> character is treated as a command sent to "
16961 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16962 msgstr ""
16963
16964 #. type: verbatim
16965 #: ../fish/guestfish.pod:748
16966 #, no-wrap
16967 msgid ""
16968 " !mkdir local\n"
16969 " tgz-out /remote local/remote-data.tar.gz\n"
16970 "\n"
16971 msgstr ""
16972
16973 #. type: textblock
16974 #: ../fish/guestfish.pod:751
16975 msgid ""
16976 "will create a directory C<local> on the host, and then export the contents "
16977 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16978 "(See C<tgz-out>)."
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish.pod:755
16983 msgid ""
16984 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16985 "effect, due to the way that subprocesses work in Unix."
16986 msgstr ""
16987
16988 #. type: =head2
16989 #: ../fish/guestfish.pod:758
16990 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish.pod:760
16995 msgid ""
16996 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
16997 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
16998 "and executed as guestfish commands."
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish.pod:764
17003 msgid ""
17004 "Thus you can use shell script to construct arbitrary guestfish commands "
17005 "which are then parsed by guestfish."
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish.pod:767
17010 msgid ""
17011 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17012 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17013 "if we use a shell script to create the guestfish commands for us:"
17014 msgstr ""
17015
17016 #. type: verbatim
17017 #: ../fish/guestfish.pod:772
17018 #, no-wrap
17019 msgid ""
17020 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17021 "\n"
17022 msgstr ""
17023
17024 #. type: textblock
17025 #: ../fish/guestfish.pod:774
17026 msgid "or with names like C</foo.001>:"
17027 msgstr ""
17028
17029 #. type: verbatim
17030 #: ../fish/guestfish.pod:776
17031 #, no-wrap
17032 msgid ""
17033 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17034 "\n"
17035 msgstr ""
17036
17037 #. type: textblock
17038 #: ../fish/guestfish.pod:778
17039 msgid ""
17040 "When using guestfish interactively it can be helpful to just run the shell "
17041 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17042 "ordinary I<!> local command), see what guestfish commands it would run, and "
17043 "when you are happy with those prepend the C<E<lt>> character to run the "
17044 "guestfish commands for real."
17045 msgstr ""
17046
17047 #. type: =head1
17048 #: ../fish/guestfish.pod:784
17049 msgid "PIPES"
17050 msgstr ""
17051
17052 #. type: textblock
17053 #: ../fish/guestfish.pod:786
17054 msgid ""
17055 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17056 "command (a guestfish command) to the second command (any host command).  For "
17057 "example:"
17058 msgstr ""
17059
17060 #. type: verbatim
17061 #: ../fish/guestfish.pod:790
17062 #, no-wrap
17063 msgid ""
17064 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17065 "\n"
17066 msgstr ""
17067
17068 #. type: textblock
17069 #: ../fish/guestfish.pod:792
17070 msgid ""
17071 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17072 "program).  The above command would list all accounts in the guest filesystem "
17073 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17074 msgstr ""
17075
17076 #. type: verbatim
17077 #: ../fish/guestfish.pod:797
17078 #, no-wrap
17079 msgid ""
17080 " hexdump /bin/ls | head\n"
17081 " list-devices | tail -1\n"
17082 " tgz-out / - | tar ztf -\n"
17083 "\n"
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish.pod:801
17088 msgid ""
17089 "The space before the pipe symbol is required, any space after the pipe "
17090 "symbol is optional.  Everything after the pipe symbol is just passed "
17091 "straight to the host shell, so it can contain redirections, globs and "
17092 "anything else that makes sense on the host side."
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish.pod:806
17097 msgid ""
17098 "To use a literal argument which begins with a pipe symbol, you have to quote "
17099 "it, eg:"
17100 msgstr ""
17101
17102 #. type: verbatim
17103 #: ../fish/guestfish.pod:809
17104 #, no-wrap
17105 msgid ""
17106 " echo \"|\"\n"
17107 "\n"
17108 msgstr ""
17109
17110 #. type: =head1
17111 #: ../fish/guestfish.pod:811
17112 msgid "HOME DIRECTORIES"
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish.pod:813
17117 msgid ""
17118 "If a parameter starts with the character C<~> then the tilde may be expanded "
17119 "as a home directory path (either C<~> for the current user's home directory, "
17120 "or C<~user> for another user)."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish.pod:817
17125 msgid ""
17126 "Note that home directory expansion happens for users known I<on the host>, "
17127 "not in the guest filesystem."
17128 msgstr ""
17129
17130 #. type: textblock
17131 #: ../fish/guestfish.pod:820
17132 msgid ""
17133 "To use a literal argument which begins with a tilde, you have to quote it, "
17134 "eg:"
17135 msgstr ""
17136
17137 #. type: verbatim
17138 #: ../fish/guestfish.pod:823
17139 #, no-wrap
17140 msgid ""
17141 " echo \"~\"\n"
17142 "\n"
17143 msgstr ""
17144
17145 #. type: =head2
17146 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17147 msgid "ENCRYPTED DISKS"
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../fish/guestfish.pod:827
17152 msgid ""
17153 "Libguestfs has some support for Linux guests encrypted according to the "
17154 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17155 "disk encryption systems used by modern Linux guests.  Currently only "
17156 "LVM-on-LUKS is supported."
17157 msgstr ""
17158
17159 #. type: textblock
17160 #: ../fish/guestfish.pod:832
17161 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17162 msgstr ""
17163
17164 #. type: verbatim
17165 #: ../fish/guestfish.pod:834
17166 #, no-wrap
17167 msgid ""
17168 " ><fs> vfs-type /dev/sda2\n"
17169 " crypto_LUKS\n"
17170 "\n"
17171 msgstr ""
17172
17173 #. type: textblock
17174 #: ../fish/guestfish.pod:837
17175 msgid ""
17176 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17177 "device called C</dev/mapper/luksdev>."
17178 msgstr ""
17179
17180 #. type: verbatim
17181 #: ../fish/guestfish.pod:840
17182 #, no-wrap
17183 msgid ""
17184 " ><fs> luks-open /dev/sda2 luksdev\n"
17185 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17186 "\n"
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish.pod:843
17191 msgid ""
17192 "Finally you have to tell LVM to scan for volume groups on the newly created "
17193 "mapper device:"
17194 msgstr ""
17195
17196 #. type: verbatim
17197 #: ../fish/guestfish.pod:846
17198 #, no-wrap
17199 msgid ""
17200 " vgscan\n"
17201 " vg-activate-all true\n"
17202 "\n"
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../fish/guestfish.pod:849
17207 msgid "The logical volume(s) can now be mounted in the usual way."
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../fish/guestfish.pod:851
17212 msgid ""
17213 "Before closing a LUKS device you must unmount any logical volumes on it and "
17214 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17215 "one.  Then you can close the mapper device:"
17216 msgstr ""
17217
17218 #. type: verbatim
17219 #: ../fish/guestfish.pod:855
17220 #, no-wrap
17221 msgid ""
17222 " vg-activate false /dev/VG\n"
17223 " luks-close /dev/mapper/luksdev\n"
17224 "\n"
17225 msgstr ""
17226
17227 #. type: textblock
17228 #: ../fish/guestfish.pod:860
17229 msgid ""
17230 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17231 "letters and paths (with some limitations).  The following commands are "
17232 "equivalent:"
17233 msgstr ""
17234
17235 #. type: verbatim
17236 #: ../fish/guestfish.pod:864
17237 #, no-wrap
17238 msgid ""
17239 " file /WINDOWS/system32/config/system.LOG\n"
17240 "\n"
17241 msgstr ""
17242
17243 #. type: verbatim
17244 #: ../fish/guestfish.pod:866
17245 #, no-wrap
17246 msgid ""
17247 " file win:\\windows\\system32\\config\\system.log\n"
17248 "\n"
17249 msgstr ""
17250
17251 #. type: verbatim
17252 #: ../fish/guestfish.pod:868
17253 #, no-wrap
17254 msgid ""
17255 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17256 "\n"
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish.pod:870
17261 msgid ""
17262 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17263 "where the drive is mounted, prepending that to the path, changing all "
17264 "backslash characters to forward slash, then resolving the result using "
17265 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17266 "then the parameter might be rewritten like this:"
17267 msgstr ""
17268
17269 #. type: verbatim
17270 #: ../fish/guestfish.pod:876
17271 #, no-wrap
17272 msgid ""
17273 " win:e:\\foo\\bar => /e/FOO/bar\n"
17274 "\n"
17275 msgstr ""
17276
17277 #. type: textblock
17278 #: ../fish/guestfish.pod:878
17279 msgid "This only works in argument positions that expect a path."
17280 msgstr ""
17281
17282 #. type: =head1
17283 #: ../fish/guestfish.pod:880
17284 msgid "UPLOADING AND DOWNLOADING FILES"
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish.pod:882
17289 msgid ""
17290 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17291 "others which upload from or download to a local file, you can use the "
17292 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17293 msgstr ""
17294
17295 #. type: verbatim
17296 #: ../fish/guestfish.pod:886
17297 #, no-wrap
17298 msgid ""
17299 " upload - /foo\n"
17300 "\n"
17301 msgstr ""
17302
17303 #. type: textblock
17304 #: ../fish/guestfish.pod:888
17305 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17306 msgstr ""
17307
17308 #. type: verbatim
17309 #: ../fish/guestfish.pod:891
17310 #, no-wrap
17311 msgid ""
17312 " tar-out /etc - | tar tf -\n"
17313 "\n"
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../fish/guestfish.pod:893
17318 msgid ""
17319 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17320 "command (see L</PIPES>)."
17321 msgstr ""
17322
17323 #. type: textblock
17324 #: ../fish/guestfish.pod:896
17325 msgid ""
17326 "When using C<-> to read from stdin, the input is read up to the end of "
17327 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17328 "some arbitrary end marker:"
17329 msgstr ""
17330
17331 #. type: verbatim
17332 #: ../fish/guestfish.pod:900
17333 #, no-wrap
17334 msgid ""
17335 " upload -<<END /foo\n"
17336 " input line 1\n"
17337 " input line 2\n"
17338 " input line 3\n"
17339 " END\n"
17340 "\n"
17341 msgstr ""
17342
17343 #. type: textblock
17344 #: ../fish/guestfish.pod:906
17345 msgid ""
17346 "Any string of characters can be used instead of C<END>.  The end marker must "
17347 "appear on a line of its own, without any preceeding or following characters "
17348 "(not even spaces)."
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish.pod:910
17353 msgid ""
17354 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17355 "upload local files (so-called \"FileIn\" parameters in the generator)."
17356 msgstr ""
17357
17358 #. type: =head1
17359 #: ../fish/guestfish.pod:913
17360 msgid "EXIT ON ERROR BEHAVIOUR"
17361 msgstr ""
17362
17363 #. type: textblock
17364 #: ../fish/guestfish.pod:915
17365 msgid ""
17366 "By default, guestfish will ignore any errors when in interactive mode "
17367 "(ie. taking commands from a human over a tty), and will exit on the first "
17368 "error in non-interactive mode (scripts, commands given on the command line)."
17369 msgstr ""
17370
17371 #. type: textblock
17372 #: ../fish/guestfish.pod:920
17373 msgid ""
17374 "If you prefix a command with a I<-> character, then that command will not "
17375 "cause guestfish to exit, even if that (one) command returns an error."
17376 msgstr ""
17377
17378 #. type: =head1
17379 #: ../fish/guestfish.pod:924
17380 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17381 msgstr ""
17382
17383 #. type: textblock
17384 #: ../fish/guestfish.pod:926
17385 msgid ""
17386 "Guestfish can be remote-controlled over a socket.  This is useful "
17387 "particularly in shell scripts where you want to make several different "
17388 "changes to a filesystem, but you don't want the overhead of starting up a "
17389 "guestfish process each time."
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../fish/guestfish.pod:931
17394 msgid "Start a guestfish server process using:"
17395 msgstr ""
17396
17397 #. type: verbatim
17398 #: ../fish/guestfish.pod:933
17399 #, no-wrap
17400 msgid ""
17401 " eval \"`guestfish --listen`\"\n"
17402 "\n"
17403 msgstr ""
17404
17405 #. type: textblock
17406 #: ../fish/guestfish.pod:935
17407 msgid "and then send it commands by doing:"
17408 msgstr ""
17409
17410 #. type: verbatim
17411 #: ../fish/guestfish.pod:937
17412 #, no-wrap
17413 msgid ""
17414 " guestfish --remote cmd [...]\n"
17415 "\n"
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish.pod:939
17420 msgid "To cause the server to exit, send it the exit command:"
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish.pod:943
17425 msgid ""
17426 "Note that the server will normally exit if there is an error in a command.  "
17427 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17428 "BEHAVIOUR>."
17429 msgstr ""
17430
17431 #. type: =head2
17432 #: ../fish/guestfish.pod:947
17433 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17434 msgstr ""
17435
17436 #. type: textblock
17437 #: ../fish/guestfish.pod:949
17438 msgid ""
17439 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17440 "is how the I<--remote> option knows where to send the commands.  You can "
17441 "have several guestfish listener processes running using:"
17442 msgstr ""
17443
17444 #. type: verbatim
17445 #: ../fish/guestfish.pod:953
17446 #, no-wrap
17447 msgid ""
17448 " eval \"`guestfish --listen`\"\n"
17449 " pid1=$GUESTFISH_PID\n"
17450 " eval \"`guestfish --listen`\"\n"
17451 " pid2=$GUESTFISH_PID\n"
17452 " ...\n"
17453 " guestfish --remote=$pid1 cmd\n"
17454 " guestfish --remote=$pid2 cmd\n"
17455 "\n"
17456 msgstr ""
17457
17458 #. type: =head2
17459 #: ../fish/guestfish.pod:961
17460 msgid "REMOTE CONTROL AND CSH"
17461 msgstr ""
17462
17463 #. type: textblock
17464 #: ../fish/guestfish.pod:963
17465 msgid ""
17466 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17467 "option:"
17468 msgstr ""
17469
17470 #. type: verbatim
17471 #: ../fish/guestfish.pod:966
17472 #, no-wrap
17473 msgid ""
17474 " eval \"`guestfish --listen --csh`\"\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: =head2
17479 #: ../fish/guestfish.pod:968
17480 msgid "REMOTE CONTROL DETAILS"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:970
17485 msgid ""
17486 "Remote control happens over a Unix domain socket called "
17487 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17488 "of the process, and C<$PID> is the process ID of the server."
17489 msgstr ""
17490
17491 #. type: textblock
17492 #: ../fish/guestfish.pod:974
17493 msgid "Guestfish client and server versions must match exactly."
17494 msgstr ""
17495
17496 #. type: =head1
17497 #: ../fish/guestfish.pod:976
17498 msgid "PREPARED DISK IMAGES"
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish.pod:978
17503 msgid ""
17504 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17505 "preformatted disk images that guestfish can make for you to save typing.  "
17506 "This is particularly useful for testing purposes.  This option is used "
17507 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17508 "can be mixed with I<-a>)."
17509 msgstr ""
17510
17511 #. type: textblock
17512 #: ../fish/guestfish.pod:984
17513 msgid ""
17514 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17515 "the second and so on.  Existing files in the current directory are "
17516 "I<overwritten>."
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:988
17521 msgid ""
17522 "The type briefly describes how the disk should be sized, partitioned, how "
17523 "filesystem(s) should be created, and how content should be added.  "
17524 "Optionally the type can be followed by extra parameters, separated by C<:> "
17525 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17526 "sparsely-allocated disk, containing a single partition, with the partition "
17527 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17528 "on a 1GB disk instead."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish.pod:996
17533 msgid "To list the available types and any extra parameters they take, run:"
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../fish/guestfish.pod:1000
17538 msgid ""
17539 "Note that the prepared filesystem is not mounted.  You would usually have to "
17540 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:1004
17545 msgid ""
17546 "If any I<-N> or I<--new> options are given, the guest is automatically "
17547 "launched."
17548 msgstr ""
17549
17550 #. type: textblock
17551 #: ../fish/guestfish.pod:1009
17552 msgid "Create a 100MB disk with an ext4-formatted partition:"
17553 msgstr ""
17554
17555 #. type: verbatim
17556 #: ../fish/guestfish.pod:1011
17557 #, no-wrap
17558 msgid ""
17559 " guestfish -N fs:ext4\n"
17560 "\n"
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish.pod:1013
17565 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish.pod:1015
17570 #, no-wrap
17571 msgid ""
17572 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish.pod:1017
17578 msgid "Create a blank 200MB disk:"
17579 msgstr ""
17580
17581 #. type: verbatim
17582 #: ../fish/guestfish.pod:1019
17583 #, no-wrap
17584 msgid ""
17585 " guestfish -N disk:200M\n"
17586 "\n"
17587 msgstr ""
17588
17589 #. type: =head1
17590 #: ../fish/guestfish.pod:1021
17591 msgid "PROGRESS BARS"
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../fish/guestfish.pod:1023
17596 msgid ""
17597 "Some (not all) long-running commands send progress notification messages as "
17598 "they are running.  Guestfish turns these messages into progress bars."
17599 msgstr ""
17600
17601 #. type: textblock
17602 #: ../fish/guestfish.pod:1027
17603 msgid ""
17604 "When a command that supports progress bars takes longer than two seconds to "
17605 "run, and if progress bars are enabled, then you will see one appearing below "
17606 "the command:"
17607 msgstr ""
17608
17609 #. type: verbatim
17610 #: ../fish/guestfish.pod:1031
17611 #, no-wrap
17612 msgid ""
17613 " ><fs> copy-size /large-file /another-file 2048M\n"
17614 " / 10% [#####-----------------------------------------] 00:30\n"
17615 "\n"
17616 msgstr ""
17617
17618 #. type: textblock
17619 #: ../fish/guestfish.pod:1034
17620 msgid ""
17621 "The spinner on the left hand side moves round once for every progress "
17622 "notification received from the backend.  This is a (reasonably) golden "
17623 "assurance that the command is \"doing something\" even if the progress bar "
17624 "is not moving, because the command is able to send the progress "
17625 "notifications.  When the bar reaches 100% and the command finishes, the "
17626 "spinner disappears."
17627 msgstr ""
17628
17629 #. type: textblock
17630 #: ../fish/guestfish.pod:1041
17631 msgid ""
17632 "Progress bars are enabled by default when guestfish is used interactively.  "
17633 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17634 "and you can disable them completely using I<--no-progress-bars>."
17635 msgstr ""
17636
17637 #. type: =head1
17638 #: ../fish/guestfish.pod:1046
17639 msgid "GUESTFISH COMMANDS"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish.pod:1048
17644 msgid ""
17645 "The commands in this section are guestfish convenience commands, in other "
17646 "words, they are not part of the L<guestfs(3)> API."
17647 msgstr ""
17648
17649 #. type: =head2
17650 #: ../fish/guestfish.pod:1051
17651 msgid "help"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish.pod:1053
17656 #, no-wrap
17657 msgid ""
17658 " help\n"
17659 " help cmd\n"
17660 "\n"
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../fish/guestfish.pod:1056
17665 msgid "Without any parameter, this provides general help."
17666 msgstr ""
17667
17668 #. type: textblock
17669 #: ../fish/guestfish.pod:1058
17670 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17671 msgstr ""
17672
17673 #. type: =head2
17674 #: ../fish/guestfish.pod:1060
17675 msgid "quit | exit"
17676 msgstr ""
17677
17678 #. type: textblock
17679 #: ../fish/guestfish.pod:1062
17680 msgid "This exits guestfish.  You can also use C<^D> key."
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:1064
17685 msgid "@FISH_COMMANDS@"
17686 msgstr ""
17687
17688 #. type: =head1
17689 #: ../fish/guestfish.pod:1066
17690 msgid "COMMANDS"
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1474
17695 msgid "@ACTIONS@"
17696 msgstr ""
17697
17698 #. type: =head1
17699 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
17700 msgid "EXIT CODE"
17701 msgstr ""
17702
17703 #. type: textblock
17704 #: ../fish/guestfish.pod:1072
17705 msgid ""
17706 "guestfish returns 0 if the commands completed without error, or 1 if there "
17707 "was an error."
17708 msgstr ""
17709
17710 #. type: =item
17711 #: ../fish/guestfish.pod:1079
17712 msgid "EDITOR"
17713 msgstr ""
17714
17715 #. type: textblock
17716 #: ../fish/guestfish.pod:1081
17717 msgid ""
17718 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17719 "C<vi>."
17720 msgstr ""
17721
17722 #. type: =item
17723 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2969
17724 msgid "FEBOOTSTRAP_KERNEL"
17725 msgstr ""
17726
17727 #. type: =item
17728 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2971
17729 msgid "FEBOOTSTRAP_MODULES"
17730 msgstr ""
17731
17732 #. type: textblock
17733 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2973
17734 msgid ""
17735 "These two environment variables allow the kernel that libguestfs uses in the "
17736 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
17737 "most recent host kernel is chosen.  For more information about kernel "
17738 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
17739 "available in febootstrap E<ge> 3.8."
17740 msgstr ""
17741
17742 #. type: =item
17743 #: ../fish/guestfish.pod:1094
17744 msgid "GUESTFISH_DISPLAY_IMAGE"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:1096
17749 msgid ""
17750 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
17751 "If not set, it uses L<display(1)>."
17752 msgstr ""
17753
17754 #. type: =item
17755 #: ../fish/guestfish.pod:1099
17756 msgid "GUESTFISH_PID"
17757 msgstr ""
17758
17759 #. type: textblock
17760 #: ../fish/guestfish.pod:1101
17761 msgid ""
17762 "Used with the I<--remote> option to specify the remote guestfish process to "
17763 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17764 msgstr ""
17765
17766 #. type: =item
17767 #: ../fish/guestfish.pod:1105
17768 msgid "HEXEDITOR"
17769 msgstr ""
17770
17771 #. type: textblock
17772 #: ../fish/guestfish.pod:1107
17773 msgid ""
17774 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17775 "not specified, the external L<hexedit(1)> program is used."
17776 msgstr ""
17777
17778 #. type: =item
17779 #: ../fish/guestfish.pod:1111
17780 msgid "HOME"
17781 msgstr ""
17782
17783 #. type: textblock
17784 #: ../fish/guestfish.pod:1113
17785 msgid ""
17786 "If compiled with GNU readline support, various files in the home directory "
17787 "can be used.  See L</FILES>."
17788 msgstr ""
17789
17790 #. type: =item
17791 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2979
17792 msgid "LIBGUESTFS_APPEND"
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2981
17797 msgid "Pass additional options to the guest kernel."
17798 msgstr ""
17799
17800 #. type: =item
17801 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2983
17802 msgid "LIBGUESTFS_DEBUG"
17803 msgstr ""
17804
17805 #. type: textblock
17806 #: ../fish/guestfish.pod:1122
17807 msgid ""
17808 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17809 "effect as using the B<-v> option."
17810 msgstr ""
17811
17812 #. type: =item
17813 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2988
17814 msgid "LIBGUESTFS_MEMSIZE"
17815 msgstr ""
17816
17817 #. type: textblock
17818 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2990
17819 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
17820 msgstr ""
17821
17822 #. type: verbatim
17823 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2993
17824 #, no-wrap
17825 msgid ""
17826 " LIBGUESTFS_MEMSIZE=700\n"
17827 "\n"
17828 msgstr ""
17829
17830 #. type: =item
17831 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2995
17832 msgid "LIBGUESTFS_PATH"
17833 msgstr ""
17834
17835 #. type: textblock
17836 #: ../fish/guestfish.pod:1134
17837 msgid ""
17838 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17839 "the discussion of paths in L<guestfs(3)>."
17840 msgstr ""
17841
17842 #. type: =item
17843 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3000
17844 msgid "LIBGUESTFS_QEMU"
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3002
17849 msgid ""
17850 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
17851 "which was found at compile time by the configure script is used."
17852 msgstr ""
17853
17854 #. type: =item
17855 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3008
17856 msgid "LIBGUESTFS_TRACE"
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish.pod:1145
17861 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17862 msgstr ""
17863
17864 #. type: =item
17865 #: ../fish/guestfish.pod:1147
17866 msgid "PAGER"
17867 msgstr ""
17868
17869 #. type: textblock
17870 #: ../fish/guestfish.pod:1149
17871 msgid ""
17872 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17873 "C<more>."
17874 msgstr ""
17875
17876 #. type: =item
17877 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3013
17878 msgid "TMPDIR"
17879 msgstr ""
17880
17881 #. type: textblock
17882 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3015
17883 msgid ""
17884 "Location of temporary directory, defaults to C</tmp> except for the cached "
17885 "supermin appliance which defaults to C</var/tmp>."
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3018
17890 msgid ""
17891 "If libguestfs was compiled to use the supermin appliance then the real "
17892 "appliance is cached in this directory, shared between all handles belonging "
17893 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
17894 "use in case C</var/tmp> is not large enough."
17895 msgstr ""
17896
17897 #. type: =head1
17898 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:269
17899 msgid "FILES"
17900 msgstr ""
17901
17902 #. type: =item
17903 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:273
17904 msgid "$HOME/.libguestfs-tools.rc"
17905 msgstr ""
17906
17907 #. type: =item
17908 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:275
17909 msgid "/etc/libguestfs-tools.conf"
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:277
17914 msgid ""
17915 "This configuration file controls the default read-only or read-write mode "
17916 "(I<--ro> or I<--rw>)."
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../fish/guestfish.pod:1176
17921 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
17922 msgstr ""
17923
17924 #. type: =item
17925 #: ../fish/guestfish.pod:1178
17926 msgid "$HOME/.guestfish"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish.pod:1180
17931 msgid ""
17932 "If compiled with GNU readline support, then the command history is saved in "
17933 "this file."
17934 msgstr ""
17935
17936 #. type: =item
17937 #: ../fish/guestfish.pod:1183
17938 msgid "$HOME/.inputrc"
17939 msgstr ""
17940
17941 #. type: =item
17942 #: ../fish/guestfish.pod:1185
17943 msgid "/etc/inputrc"
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish.pod:1187
17948 msgid ""
17949 "If compiled with GNU readline support, then these files can be used to "
17950 "configure readline.  For further information, please see "
17951 "L<readline(3)/INITIALIZATION FILE>."
17952 msgstr ""
17953
17954 #. type: textblock
17955 #: ../fish/guestfish.pod:1191
17956 msgid "To write rules which only apply to guestfish, use:"
17957 msgstr ""
17958
17959 #. type: verbatim
17960 #: ../fish/guestfish.pod:1193
17961 #, no-wrap
17962 msgid ""
17963 " $if guestfish\n"
17964 " ...\n"
17965 " $endif\n"
17966 "\n"
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:1197
17971 msgid ""
17972 "Variables that you can set in inputrc that change the behaviour of guestfish "
17973 "in useful ways include:"
17974 msgstr ""
17975
17976 #. type: =item
17977 #: ../fish/guestfish.pod:1202
17978 msgid "completion-ignore-case (default: on)"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:1204
17983 msgid ""
17984 "By default, guestfish will ignore case when tab-completing paths on the "
17985 "disk.  Use:"
17986 msgstr ""
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish.pod:1207
17990 #, no-wrap
17991 msgid ""
17992 " set completion-ignore-case off\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish.pod:1209
17998 msgid "to make guestfish case sensitive."
17999 msgstr ""
18000
18001 #. type: =item
18002 #: ../fish/guestfish.pod:1213
18003 msgid "test1.img"
18004 msgstr ""
18005
18006 #. type: =item
18007 #: ../fish/guestfish.pod:1215
18008 msgid "test2.img (etc)"
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../fish/guestfish.pod:1217
18013 msgid ""
18014 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18015 "will be created in the file C<test1.img> in the current directory.  The "
18016 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18017 "the same name will be overwritten."
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:1226
18022 msgid ""
18023 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
18024 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
18025 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
18026 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
18027 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
18028 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18029 "L<febootstrap-supermin-helper(8)>."
18030 msgstr ""
18031
18032 #. type: textblock
18033 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3104 ../test-tool/libguestfs-test-tool.pod:99
18034 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18035 msgstr ""
18036
18037 #. type: textblock
18038 #: ../fish/virt-copy-in.pod:5
18039 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18040 msgstr ""
18041
18042 #. type: verbatim
18043 #: ../fish/virt-copy-in.pod:9
18044 #, no-wrap
18045 msgid ""
18046 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18047 "\n"
18048 msgstr ""
18049
18050 #. type: verbatim
18051 #: ../fish/virt-copy-in.pod:11
18052 #, no-wrap
18053 msgid ""
18054 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18055 "\n"
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/virt-copy-in.pod:15
18060 msgid ""
18061 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18062 "causing disk corruption.  The virtual machine must be shut down before you "
18063 "use this command."
18064 msgstr ""
18065
18066 #. type: textblock
18067 #: ../fish/virt-copy-in.pod:21
18068 msgid ""
18069 "C<virt-copy-in> copies files and directories from the local disk into a "
18070 "virtual machine disk image or named libvirt domain."
18071 msgstr ""
18072
18073 #. type: textblock
18074 #: ../fish/virt-copy-in.pod:24
18075 msgid ""
18076 "You can give one of more filenames and directories on the command line.  "
18077 "Directories are copied in recursively.  The final parameter must be the "
18078 "destination directory in the disk image which must be an absolute path "
18079 "starting with a C</> character."
18080 msgstr ""
18081
18082 #. type: verbatim
18083 #: ../fish/virt-copy-in.pod:33
18084 #, no-wrap
18085 msgid ""
18086 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18087 "\n"
18088 msgstr ""
18089
18090 #. type: textblock
18091 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18092 msgid "Upload a home directory to a guest:"
18093 msgstr ""
18094
18095 #. type: verbatim
18096 #: ../fish/virt-copy-in.pod:37
18097 #, no-wrap
18098 msgid ""
18099 " virt-copy-in -d MyGuest skel /home\n"
18100 "\n"
18101 msgstr ""
18102
18103 #. type: =head1
18104 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18105 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/virt-copy-in.pod:41
18110 msgid ""
18111 "This command is just a simple shell script wrapper around the "
18112 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18113 "trivial copy, you are probably better off using guestfish directly."
18114 msgstr ""
18115
18116 #. type: textblock
18117 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18118 msgid ""
18119 "Since the shell script just passes options straight to guestfish, read "
18120 "L<guestfish(1)> to see the full list of options."
18121 msgstr ""
18122
18123 #. type: textblock
18124 #: ../fish/virt-copy-in.pod:52
18125 msgid ""
18126 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18127 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18132 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/virt-copy-out.pod:5
18137 msgid ""
18138 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18139 "image."
18140 msgstr ""
18141
18142 #. type: verbatim
18143 #: ../fish/virt-copy-out.pod:9
18144 #, no-wrap
18145 msgid ""
18146 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18147 "\n"
18148 msgstr ""
18149
18150 #. type: verbatim
18151 #: ../fish/virt-copy-out.pod:11
18152 #, no-wrap
18153 msgid ""
18154 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18155 "\n"
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/virt-copy-out.pod:15
18160 msgid ""
18161 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18162 "image or named libvirt domain."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/virt-copy-out.pod:18
18167 msgid ""
18168 "You can give one of more filenames and directories on the command line.  "
18169 "Directories are copied out recursively."
18170 msgstr ""
18171
18172 #. type: textblock
18173 #: ../fish/virt-copy-out.pod:23
18174 msgid "Download the home directories from a virtual machine:"
18175 msgstr ""
18176
18177 #. type: verbatim
18178 #: ../fish/virt-copy-out.pod:25
18179 #, no-wrap
18180 msgid ""
18181 " mkdir homes\n"
18182 " virt-copy-out -d MyGuest /home homes\n"
18183 "\n"
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/virt-copy-out.pod:30
18188 msgid ""
18189 "This command is just a simple shell script wrapper around the "
18190 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18191 "trivial copy, you are probably better off using guestfish directly."
18192 msgstr ""
18193
18194 #. type: textblock
18195 #: ../fish/virt-copy-out.pod:41
18196 msgid ""
18197 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18198 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/virt-tar-in.pod:5
18203 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18204 msgstr ""
18205
18206 #. type: verbatim
18207 #: ../fish/virt-tar-in.pod:9
18208 #, no-wrap
18209 msgid ""
18210 " virt-tar-in -a disk.img data.tar /destination\n"
18211 "\n"
18212 msgstr ""
18213
18214 #. type: verbatim
18215 #: ../fish/virt-tar-in.pod:11
18216 #, no-wrap
18217 msgid ""
18218 " virt-tar-in -d domain data.tar /destination\n"
18219 "\n"
18220 msgstr ""
18221
18222 #. type: verbatim
18223 #: ../fish/virt-tar-in.pod:13
18224 #, no-wrap
18225 msgid ""
18226 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18227 "\n"
18228 msgstr ""
18229
18230 #. type: textblock
18231 #: ../fish/virt-tar-in.pod:17
18232 msgid ""
18233 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18234 "causing disk corruption.  The virtual machine must be shut down before you "
18235 "use this command."
18236 msgstr ""
18237
18238 #. type: textblock
18239 #: ../fish/virt-tar-in.pod:23
18240 msgid ""
18241 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18242 "image or named libvirt domain."
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/virt-tar-in.pod:26
18247 msgid ""
18248 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18249 "standard input.  The second parameter is the absolute target directory to "
18250 "unpack into."
18251 msgstr ""
18252
18253 #. type: verbatim
18254 #: ../fish/virt-tar-in.pod:34
18255 #, no-wrap
18256 msgid ""
18257 " virt-tar-in -d MyGuest homes.tar /home\n"
18258 "\n"
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/virt-tar-in.pod:38
18263 msgid ""
18264 "This command is just a simple shell script wrapper around the "
18265 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18266 "copy, you are probably better off using guestfish directly."
18267 msgstr ""
18268
18269 #. type: textblock
18270 #: ../fish/virt-tar-in.pod:49
18271 msgid ""
18272 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18273 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18274 "L<http://libguestfs.org/>."
18275 msgstr ""
18276
18277 #. type: textblock
18278 #: ../fish/virt-tar-out.pod:5
18279 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18280 msgstr ""
18281
18282 #. type: verbatim
18283 #: ../fish/virt-tar-out.pod:9
18284 #, no-wrap
18285 msgid ""
18286 " virt-tar-out -a disk.img /dir files.tar\n"
18287 "\n"
18288 msgstr ""
18289
18290 #. type: verbatim
18291 #: ../fish/virt-tar-out.pod:11
18292 #, no-wrap
18293 msgid ""
18294 " virt-tar-out -d domain /dir files.tar\n"
18295 "\n"
18296 msgstr ""
18297
18298 #. type: verbatim
18299 #: ../fish/virt-tar-out.pod:13
18300 #, no-wrap
18301 msgid ""
18302 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18303 "\n"
18304 msgstr ""
18305
18306 #. type: textblock
18307 #: ../fish/virt-tar-out.pod:17
18308 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/virt-tar-out.pod:20
18313 msgid ""
18314 "The first parameter is the absolute path of the virtual machine directory.  "
18315 "The second parameter is the tar file to write.  Use C<-> to write to "
18316 "standard output."
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/virt-tar-out.pod:26
18321 msgid "Download the home directories from a guest:"
18322 msgstr ""
18323
18324 #. type: verbatim
18325 #: ../fish/virt-tar-out.pod:28
18326 #, no-wrap
18327 msgid ""
18328 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18329 "\n"
18330 msgstr ""
18331
18332 #. type: textblock
18333 #: ../fish/virt-tar-out.pod:32
18334 msgid ""
18335 "This command is just a simple shell script wrapper around the "
18336 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
18337 "trivial copy, you are probably better off using guestfish directly."
18338 msgstr ""
18339
18340 #. type: textblock
18341 #: ../fish/virt-tar-out.pod:43
18342 msgid ""
18343 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18344 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fuse/guestmount.pod:5
18349 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18350 msgstr ""
18351
18352 #. type: verbatim
18353 #: ../fuse/guestmount.pod:9
18354 #, no-wrap
18355 msgid ""
18356 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18357 "\n"
18358 msgstr ""
18359
18360 #. type: verbatim
18361 #: ../fuse/guestmount.pod:11
18362 #, no-wrap
18363 msgid ""
18364 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fuse/guestmount.pod:13
18370 #, no-wrap
18371 msgid ""
18372 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18373 "\n"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fuse/guestmount.pod:17
18378 msgid ""
18379 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18380 "machines.  If you do this, you risk disk corruption in the VM."
18381 msgstr ""
18382
18383 #. type: textblock
18384 #: ../fuse/guestmount.pod:22
18385 msgid ""
18386 "The guestmount program can be used to mount virtual machine filesystems and "
18387 "other disk images on the host.  It uses libguestfs for access to the guest "
18388 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18389 "a mountable device."
18390 msgstr ""
18391
18392 #. type: textblock
18393 #: ../fuse/guestmount.pod:27
18394 msgid ""
18395 "Along with other options, you have to give at least one device (I<-a> "
18396 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18397 "option) or use the I<-i> inspection option.  How this works is better "
18398 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18399 "below."
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../fuse/guestmount.pod:33
18404 msgid ""
18405 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18406 "by you, and the filesystem will not be visible to any other users unless you "
18407 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18408 "the filesystem, use the C<fusermount -u> command."
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fuse/guestmount.pod:41
18413 msgid ""
18414 "For a typical Windows guest which has its main filesystem on the first "
18415 "partition:"
18416 msgstr ""
18417
18418 #. type: verbatim
18419 #: ../fuse/guestmount.pod:44
18420 #, no-wrap
18421 msgid ""
18422 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18423 "\n"
18424 msgstr ""
18425
18426 #. type: textblock
18427 #: ../fuse/guestmount.pod:46
18428 msgid ""
18429 "For a typical Linux guest which has a /boot filesystem on the first "
18430 "partition, and the root filesystem on a logical volume:"
18431 msgstr ""
18432
18433 #. type: verbatim
18434 #: ../fuse/guestmount.pod:49
18435 #, no-wrap
18436 msgid ""
18437 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
18438 "\n"
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fuse/guestmount.pod:51
18443 msgid "To get libguestfs to detect guest mountpoints for you:"
18444 msgstr ""
18445
18446 #. type: verbatim
18447 #: ../fuse/guestmount.pod:53
18448 #, no-wrap
18449 msgid ""
18450 " guestmount -a guest.img -i --ro /mnt\n"
18451 "\n"
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fuse/guestmount.pod:55
18456 msgid "For a libvirt guest called \"Guest\" you could do:"
18457 msgstr ""
18458
18459 #. type: verbatim
18460 #: ../fuse/guestmount.pod:57
18461 #, no-wrap
18462 msgid ""
18463 " guestmount -d Guest -i --ro /mnt\n"
18464 "\n"
18465 msgstr ""
18466
18467 #. type: textblock
18468 #: ../fuse/guestmount.pod:59
18469 msgid ""
18470 "If you don't know what filesystems are contained in a guest or disk image, "
18471 "use L<virt-filesystems(1)> first:"
18472 msgstr ""
18473
18474 #. type: verbatim
18475 #: ../fuse/guestmount.pod:62
18476 #, no-wrap
18477 msgid ""
18478 " virt-filesystems MyGuest\n"
18479 "\n"
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fuse/guestmount.pod:64
18484 msgid ""
18485 "If you want to trace the libguestfs calls but without excessive debugging "
18486 "information, we recommend:"
18487 msgstr ""
18488
18489 #. type: verbatim
18490 #: ../fuse/guestmount.pod:67
18491 #, no-wrap
18492 msgid ""
18493 " guestmount [...] --trace /mnt\n"
18494 "\n"
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fuse/guestmount.pod:69
18499 msgid "If you want to debug the program, we recommend:"
18500 msgstr ""
18501
18502 #. type: verbatim
18503 #: ../fuse/guestmount.pod:71
18504 #, no-wrap
18505 msgid ""
18506 " guestmount [...] --trace --verbose /mnt\n"
18507 "\n"
18508 msgstr ""
18509
18510 #. type: =head1
18511 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:486
18512 msgid "NOTES"
18513 msgstr ""
18514
18515 #. type: =head2
18516 #: ../fuse/guestmount.pod:75
18517 msgid "Other users cannot see the filesystem by default"
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fuse/guestmount.pod:77
18522 msgid ""
18523 "If you mount a filesystem as one user (eg. root), then other users will not "
18524 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
18525 "option when mounting:"
18526 msgstr ""
18527
18528 #. type: verbatim
18529 #: ../fuse/guestmount.pod:81
18530 #, no-wrap
18531 msgid ""
18532 " sudo guestmount [...] -o allow_other /mnt\n"
18533 "\n"
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../fuse/guestmount.pod:91
18538 msgid "Add a block device or virtual machine image."
18539 msgstr ""
18540
18541 #. type: =item
18542 #: ../fuse/guestmount.pod:114
18543 msgid "B<--dir-cache-timeout N>"
18544 msgstr ""
18545
18546 #. type: textblock
18547 #: ../fuse/guestmount.pod:116
18548 msgid ""
18549 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
18550 "seconds.  The readdir cache [actually, there are several semi-independent "
18551 "caches] is populated after a readdir(2) call with the stat and extended "
18552 "attributes of the files in the directory, in anticipation that they will be "
18553 "requested soon after."
18554 msgstr ""
18555
18556 #. type: textblock
18557 #: ../fuse/guestmount.pod:122
18558 msgid ""
18559 "There is also a different attribute cache implemented by FUSE (see the FUSE "
18560 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
18561 "requests, only cache existing ones."
18562 msgstr ""
18563
18564 #. type: textblock
18565 #: ../fuse/guestmount.pod:142
18566 msgid ""
18567 "If you have untrusted raw-format guest disk images, you should use this "
18568 "option to specify the disk format.  This avoids a possible security problem "
18569 "with malicious guests (CVE-2010-3851).  See also "
18570 "L<guestfs(3)/guestfs_add_drive_opts>."
18571 msgstr ""
18572
18573 #. type: =item
18574 #: ../fuse/guestmount.pod:147
18575 msgid "B<--fuse-help>"
18576 msgstr ""
18577
18578 #. type: textblock
18579 #: ../fuse/guestmount.pod:149
18580 msgid "Display help on special FUSE options (see I<-o> below)."
18581 msgstr ""
18582
18583 #. type: textblock
18584 #: ../fuse/guestmount.pod:153
18585 msgid "Display brief help and exit."
18586 msgstr ""
18587
18588 #. type: textblock
18589 #: ../fuse/guestmount.pod:177
18590 msgid ""
18591 "Mount the named partition or logical volume on the given mountpoint B<in the "
18592 "guest> (this has nothing to do with mountpoints in the host)."
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fuse/guestmount.pod:180
18597 msgid ""
18598 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
18599 "something on C</>."
18600 msgstr ""
18601
18602 #. type: textblock
18603 #: ../fuse/guestmount.pod:197
18604 msgid ""
18605 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
18606 "unmounted.  If you specify this option, then we don't attempt to sync the "
18607 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
18608 msgstr ""
18609
18610 #. type: =item
18611 #: ../fuse/guestmount.pod:202
18612 msgid "B<-o option>"
18613 msgstr ""
18614
18615 #. type: =item
18616 #: ../fuse/guestmount.pod:204
18617 msgid "B<--option option>"
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fuse/guestmount.pod:206
18622 msgid "Pass extra options to FUSE."
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fuse/guestmount.pod:208
18627 msgid ""
18628 "To get a list of all the extra options supported by FUSE, use the command "
18629 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
18630 "of them are a good idea."
18631 msgstr ""
18632
18633 #. type: verbatim
18634 #: ../fuse/guestmount.pod:212
18635 #, no-wrap
18636 msgid ""
18637 " guestmount --fuse-help\n"
18638 "\n"
18639 msgstr ""
18640
18641 #. type: textblock
18642 #: ../fuse/guestmount.pod:214
18643 msgid "Some potentially useful FUSE options:"
18644 msgstr ""
18645
18646 #. type: =item
18647 #: ../fuse/guestmount.pod:218
18648 msgid "B<-o allow_other>"
18649 msgstr ""
18650
18651 #. type: textblock
18652 #: ../fuse/guestmount.pod:220
18653 msgid "Allow other users to see the filesystem."
18654 msgstr ""
18655
18656 #. type: =item
18657 #: ../fuse/guestmount.pod:222
18658 msgid "B<-o attr_timeout=N>"
18659 msgstr ""
18660
18661 #. type: textblock
18662 #: ../fuse/guestmount.pod:224
18663 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
18664 msgstr ""
18665
18666 #. type: =item
18667 #: ../fuse/guestmount.pod:226
18668 msgid "B<-o kernel_cache>"
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fuse/guestmount.pod:228
18673 msgid ""
18674 "Allow the kernel to cache files (reduces the number of reads that have to go "
18675 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
18676 "afford the extra memory usage."
18677 msgstr ""
18678
18679 #. type: =item
18680 #: ../fuse/guestmount.pod:232
18681 msgid "B<-o uid=N> B<-o gid=N>"
18682 msgstr ""
18683
18684 #. type: textblock
18685 #: ../fuse/guestmount.pod:234
18686 msgid ""
18687 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
18688 "the chosen values."
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fuse/guestmount.pod:243
18693 msgid ""
18694 "Add devices and mount everything read-only.  Also disallow writes and make "
18695 "the disk appear read-only to FUSE."
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../fuse/guestmount.pod:246
18700 msgid ""
18701 "This is highly recommended if you are not going to edit the guest disk.  If "
18702 "the guest is running and this option is I<not> supplied, then there is a "
18703 "strong risk of disk corruption in the guest.  We try to prevent this from "
18704 "happening, but it is not always possible."
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
18709 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18710 msgstr ""
18711
18712 #. type: textblock
18713 #: ../fuse/guestmount.pod:255
18714 msgid "Enable SELinux support for the guest."
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fuse/guestmount.pod:261
18719 msgid "Enable verbose messages from underlying libguestfs."
18720 msgstr ""
18721
18722 #. type: textblock
18723 #: ../fuse/guestmount.pod:267
18724 msgid "Display the program version and exit."
18725 msgstr ""
18726
18727 #. type: textblock
18728 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
18729 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18730 msgstr ""
18731
18732 #. type: =item
18733 #: ../fuse/guestmount.pod:280
18734 msgid "B<--trace>"
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fuse/guestmount.pod:282
18739 msgid "Trace libguestfs calls and entry into each FUSE function."
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fuse/guestmount.pod:284
18744 msgid "This also stops the daemon from forking into the background."
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../fuse/guestmount.pod:305
18749 msgid ""
18750 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
18751 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
18752 "L<http://fuse.sf.net/>."
18753 msgstr ""
18754
18755 #. type: textblock
18756 #: ../fuse/guestmount.pod:320
18757 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
18758 msgstr ""
18759
18760 #. type: textblock
18761 #: ../inspector/virt-inspector.pod:5
18762 msgid ""
18763 "virt-inspector - Display operating system version and other information "
18764 "about a virtual machine"
18765 msgstr ""
18766
18767 #. type: verbatim
18768 #: ../inspector/virt-inspector.pod:9
18769 #, no-wrap
18770 msgid ""
18771 " virt-inspector [--options] -d domname\n"
18772 "\n"
18773 msgstr ""
18774
18775 #. type: verbatim
18776 #: ../inspector/virt-inspector.pod:11
18777 #, no-wrap
18778 msgid ""
18779 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
18780 "\n"
18781 msgstr ""
18782
18783 #. type: verbatim
18784 #: ../inspector/virt-inspector.pod:15
18785 #, no-wrap
18786 msgid ""
18787 " virt-inspector domname\n"
18788 "\n"
18789 msgstr ""
18790
18791 #. type: verbatim
18792 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
18793 #, no-wrap
18794 msgid ""
18795 " virt-inspector disk.img [disk.img ...]\n"
18796 "\n"
18797 msgstr ""
18798
18799 #. type: textblock
18800 #: ../inspector/virt-inspector.pod:21
18801 msgid ""
18802 "B<virt-inspector> examines a virtual machine or disk image and tries to "
18803 "determine the version of the operating system and other information about "
18804 "the virtual machine."
18805 msgstr ""
18806
18807 #. type: textblock
18808 #: ../inspector/virt-inspector.pod:25
18809 msgid "Virt-inspector produces XML output for feeding into other programs."
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../inspector/virt-inspector.pod:27
18814 msgid ""
18815 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
18816 "the libvirt domain (see: C<virsh list --all>)."
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../inspector/virt-inspector.pod:30
18821 msgid ""
18822 "You can also run virt-inspector directly on disk images from a single "
18823 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
18824 "has several block devices, in which case you should list several I<-a> "
18825 "options one after another, with the first corresponding to the guest's "
18826 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../inspector/virt-inspector.pod:37
18831 msgid ""
18832 "You can also run virt-inspector on install disks, live CDs, bootable USB "
18833 "keys and similar."
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../inspector/virt-inspector.pod:40
18838 msgid ""
18839 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
18840 "inspect several virtual machines, you have to run virt-inspector several "
18841 "times (for example, from a shell script for-loop)."
18842 msgstr ""
18843
18844 #. type: textblock
18845 #: ../inspector/virt-inspector.pod:45
18846 msgid ""
18847 "Because virt-inspector needs direct access to guest images, it won't "
18848 "normally work over remote libvirt connections."
18849 msgstr ""
18850
18851 #. type: textblock
18852 #: ../inspector/virt-inspector.pod:48
18853 msgid ""
18854 "All of the information available from virt-inspector is also available "
18855 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
18856 "The same information can also be fetched using guestfish or via libguestfs "
18857 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
18858 "WITH OTHER PROGRAMMING LANGUAGES>)."
18859 msgstr ""
18860
18861 #. type: textblock
18862 #: ../inspector/virt-inspector.pod:81
18863 msgid ""
18864 "Libvirt is only used if you specify a C<domname> on the command line.  If "
18865 "you specify guest block devices directly (I<-a>), then libvirt is not used "
18866 "at all."
18867 msgstr ""
18868
18869 #. type: textblock
18870 #: ../inspector/virt-inspector.pod:94
18871 msgid ""
18872 "When prompting for keys and passphrases, virt-inspector normally turns "
18873 "echoing off so you cannot see what you are typing.  If you are not worried "
18874 "about Tempest attacks and there is no one else in the room you can specify "
18875 "this flag to see what you are typing."
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../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
18880 msgid ""
18881 "Specify the format of disk images given on the command line.  If this is "
18882 "omitted then the format is autodetected from the content of the disk image."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../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
18887 msgid ""
18888 "If disk images are requested from libvirt, then this program asks libvirt "
18889 "for this information.  In this case, the value of the format parameter is "
18890 "ignored."
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314 ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
18895 msgid ""
18896 "If working with untrusted raw-format guest disk images, you should ensure "
18897 "the format is always specified."
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../inspector/virt-inspector.pod:139
18902 msgid "Previous versions of virt-inspector allowed you to write either:"
18903 msgstr ""
18904
18905 #. type: verbatim
18906 #: ../inspector/virt-inspector.pod:145
18907 #, no-wrap
18908 msgid ""
18909 " virt-inspector guestname\n"
18910 "\n"
18911 msgstr ""
18912
18913 #. type: =head1
18914 #: ../inspector/virt-inspector.pod:153
18915 msgid "XML FORMAT"
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../inspector/virt-inspector.pod:155
18920 msgid ""
18921 "The virt-inspector XML is described precisely in a RELAX NG schema file "
18922 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
18923 "just an overview."
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../inspector/virt-inspector.pod:159
18928 msgid ""
18929 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
18930 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
18931 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
18932 "which is vanishingly rare in real world VMs."
18933 msgstr ""
18934
18935 #. type: =head2
18936 #: ../inspector/virt-inspector.pod:164
18937 msgid "E<lt>operatingsystemE<gt>"
18938 msgstr ""
18939
18940 #. type: textblock
18941 #: ../inspector/virt-inspector.pod:166
18942 msgid ""
18943 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
18944 "describe the operating system, its architecture, the descriptive \"product "
18945 "name\" string, the type of OS and so on, as in this example:"
18946 msgstr ""
18947
18948 #. type: verbatim
18949 #: ../inspector/virt-inspector.pod:170
18950 #, no-wrap
18951 msgid ""
18952 " <operatingsystems>\n"
18953 "   <operatingsystem>\n"
18954 "     <root>/dev/sda2</root>\n"
18955 "     <name>windows</name>\n"
18956 "     <arch>i386</arch>\n"
18957 "     <distro>windows</distro>\n"
18958 "     <product_name>Windows 7 Enterprise</product_name>\n"
18959 "     <product_variant>Client</product_variant>\n"
18960 "     <major_version>6</major_version>\n"
18961 "     <minor_version>1</minor_version>\n"
18962 "     <windows_systemroot>/Windows</windows_systemroot>\n"
18963 "     <format>installed</format>\n"
18964 "\n"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../inspector/virt-inspector.pod:183
18969 msgid ""
18970 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
18971 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
18972 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
18973 "architecture.  The other fields are fairly self-explanatory, but because "
18974 "these fields are taken directly from the libguestfs inspection API you can "
18975 "find precise information from L<guestfs(3)/INSPECTION>."
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../inspector/virt-inspector.pod:191
18980 msgid ""
18981 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
18982 "of view of libguestfs (block devices may have completely different names "
18983 "inside the VM itself)."
18984 msgstr ""
18985
18986 #. type: =head2
18987 #: ../inspector/virt-inspector.pod:195
18988 msgid "E<lt>mountpointsE<gt>"
18989 msgstr ""
18990
18991 #. type: textblock
18992 #: ../inspector/virt-inspector.pod:197
18993 msgid ""
18994 "Un*x-like guests typically have multiple filesystems which are mounted at "
18995 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
18996 "element which looks like this:"
18997 msgstr ""
18998
18999 #. type: verbatim
19000 #: ../inspector/virt-inspector.pod:201
19001 #, no-wrap
19002 msgid ""
19003 " <operatingsystems>\n"
19004 "   <operatingsystem>\n"
19005 "     ...\n"
19006 "     <mountpoints>\n"
19007 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19008 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19009 "     </mountpoints>\n"
19010 "\n"
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../inspector/virt-inspector.pod:209
19015 msgid ""
19016 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19017 "and may have completely different names inside the guest.  Only mountable "
19018 "filesystems appear in this list, not things like swap devices."
19019 msgstr ""
19020
19021 #. type: =head2
19022 #: ../inspector/virt-inspector.pod:214
19023 msgid "E<lt>filesystemsE<gt>"
19024 msgstr ""
19025
19026 #. type: textblock
19027 #: ../inspector/virt-inspector.pod:216
19028 msgid ""
19029 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19030 "filesystems belonging to the guest, including swap and empty partitions.  "
19031 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19032 "this OS or shared with this OS and other OSes)."
19033 msgstr ""
19034
19035 #. type: textblock
19036 #: ../inspector/virt-inspector.pod:222
19037 msgid "You might see something like this:"
19038 msgstr ""
19039
19040 #. type: verbatim
19041 #: ../inspector/virt-inspector.pod:224
19042 #, no-wrap
19043 msgid ""
19044 " <operatingsystems>\n"
19045 "   <operatingsystem>\n"
19046 "     ...\n"
19047 "     <filesystems>\n"
19048 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19049 "         <type>ext4</type>\n"
19050 "         <label>Fedora-13-x86_64</label>\n"
19051 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19052 "       </filesystem>\n"
19053 "\n"
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../inspector/virt-inspector.pod:234
19058 msgid ""
19059 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19060 "the label, and the UUID."
19061 msgstr ""
19062
19063 #. type: =head2
19064 #: ../inspector/virt-inspector.pod:237
19065 msgid "E<lt>applicationsE<gt>"
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../inspector/virt-inspector.pod:239
19070 msgid ""
19071 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19072 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19073 "machine."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../inspector/virt-inspector.pod:243
19078 msgid ""
19079 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19080 "Typical values would be C<rpm> and C<deb>."
19081 msgstr ""
19082
19083 #. type: textblock
19084 #: ../inspector/virt-inspector.pod:246
19085 msgid ""
19086 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19087 "Typical values include C<yum>, C<up2date> and C<apt>"
19088 msgstr ""
19089
19090 #. type: textblock
19091 #: ../inspector/virt-inspector.pod:249
19092 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19093 msgstr ""
19094
19095 #. type: verbatim
19096 #: ../inspector/virt-inspector.pod:252
19097 #, no-wrap
19098 msgid ""
19099 " <operatingsystems>\n"
19100 "   <operatingsystem>\n"
19101 "     ...\n"
19102 "     <applications>\n"
19103 "       <application>\n"
19104 "         <name>coreutils</name>\n"
19105 "         <version>8.5</version>\n"
19106 "         <release>1</release>\n"
19107 "       </application>\n"
19108 "\n"
19109 msgstr ""
19110
19111 #. type: textblock
19112 #: ../inspector/virt-inspector.pod:262
19113 msgid ""
19114 "The version and release fields may not be available for some types guests.  "
19115 "Other fields are possible, see "
19116 "L<guestfs(3)/guestfs_inspect_list_applications>."
19117 msgstr ""
19118
19119 #. type: =head2
19120 #: ../inspector/virt-inspector.pod:266
19121 msgid "E<lt>drive_mappingsE<gt>"
19122 msgstr ""
19123
19124 #. type: textblock
19125 #: ../inspector/virt-inspector.pod:268
19126 msgid ""
19127 "For operating systems like Windows which use drive letters, virt-inspector "
19128 "is able to find out how drive letters map to filesystems."
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../inspector/virt-inspector.pod:272
19133 #, no-wrap
19134 msgid ""
19135 " <operatingsystems>\n"
19136 "   <operatingsystem>\n"
19137 "     ...\n"
19138 "     <drive_mappings>\n"
19139 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19140 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19141 "     </drive_mappings>\n"
19142 "\n"
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../inspector/virt-inspector.pod:280
19147 msgid ""
19148 "In the example above, drive C maps to the filesystem on the second partition "
19149 "on the first disk, and drive E maps to the filesystem on the first partition "
19150 "on the second disk."
19151 msgstr ""
19152
19153 #. type: textblock
19154 #: ../inspector/virt-inspector.pod:284
19155 msgid ""
19156 "Note that this only covers permanent local filesystem mappings, not things "
19157 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19158 "here."
19159 msgstr ""
19160
19161 #. type: =head2
19162 #: ../inspector/virt-inspector.pod:288
19163 msgid "E<lt>iconE<gt>"
19164 msgstr ""
19165
19166 #. type: textblock
19167 #: ../inspector/virt-inspector.pod:290
19168 msgid ""
19169 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19170 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19171 "very large and high quality."
19172 msgstr ""
19173
19174 #. type: verbatim
19175 #: ../inspector/virt-inspector.pod:294
19176 #, no-wrap
19177 msgid ""
19178 " <operatingsystems>\n"
19179 "   <operatingsystem>\n"
19180 "     ...\n"
19181 "     <icon>\n"
19182 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19183 "       [... many lines of base64 data ...]\n"
19184 "     </icon>\n"
19185 "\n"
19186 msgstr ""
19187
19188 #. type: textblock
19189 #: ../inspector/virt-inspector.pod:302
19190 msgid ""
19191 "To display the icon, you have to extract it and convert the base64 data back "
19192 "to a binary file.  Use an XPath query or simply an editor to extract the "
19193 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19194 "to a PNG file:"
19195 msgstr ""
19196
19197 #. type: verbatim
19198 #: ../inspector/virt-inspector.pod:307
19199 #, no-wrap
19200 msgid ""
19201 " base64 -i -d < icon.data > icon.png\n"
19202 "\n"
19203 msgstr ""
19204
19205 #. type: =head2
19206 #: ../inspector/virt-inspector.pod:309
19207 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19208 msgstr ""
19209
19210 #. type: textblock
19211 #: ../inspector/virt-inspector.pod:311
19212 msgid ""
19213 "Virt-inspector can detect some operating system installers on install disks, "
19214 "live CDs, bootable USB keys and more."
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../inspector/virt-inspector.pod:314
19219 msgid ""
19220 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19221 "fields may be present to indicate a live CD, network installer, or one part "
19222 "of a multipart CD.  For example:"
19223 msgstr ""
19224
19225 #. type: verbatim
19226 #: ../inspector/virt-inspector.pod:318
19227 #, no-wrap
19228 msgid ""
19229 " <operatingsystems>\n"
19230 "   <operatingsystem>\n"
19231 "     <root>/dev/sda</root>\n"
19232 "     <name>linux</name>\n"
19233 "     <arch>i386</arch>\n"
19234 "     <distro>ubuntu</distro>\n"
19235 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19236 "Meerkat&quot;</product_name>\n"
19237 "     <major_version>10</major_version>\n"
19238 "     <minor_version>10</minor_version>\n"
19239 "     <format>installer</format>\n"
19240 "     <live/>\n"
19241 "\n"
19242 msgstr ""
19243
19244 #. type: =head1
19245 #: ../inspector/virt-inspector.pod:330
19246 msgid "USING XPATH"
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../inspector/virt-inspector.pod:332
19251 msgid ""
19252 "You can use the XPath query language, and/or the xpath tool, in order to "
19253 "select parts of the XML."
19254 msgstr ""
19255
19256 #. type: verbatim
19257 #: ../inspector/virt-inspector.pod:337
19258 #, no-wrap
19259 msgid ""
19260 " $ virt-inspector -d Guest | xpath //filesystems\n"
19261 " Found 1 nodes:\n"
19262 " -- NODE --\n"
19263 " <filesystems>\n"
19264 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19265 "        <type>ext4</type>\n"
19266 " [etc]\n"
19267 "\n"
19268 msgstr ""
19269
19270 #. type: verbatim
19271 #: ../inspector/virt-inspector.pod:345
19272 #, no-wrap
19273 msgid ""
19274 " $ virt-inspector -d Guest | \\\n"
19275 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19276 " Query didn't return a nodeset. Value: ext4\n"
19277 "\n"
19278 msgstr ""
19279
19280 #. type: =head1
19281 #: ../inspector/virt-inspector.pod:356
19282 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19283 msgstr ""
19284
19285 #. type: textblock
19286 #: ../inspector/virt-inspector.pod:358
19287 msgid ""
19288 "Early versions of libguestfs shipped with a different virt-inspector program "
19289 "written in Perl (the current version is written in C).  The XML output of "
19290 "the Perl virt-inspector was different and it could also output in other "
19291 "formats like text."
19292 msgstr ""
19293
19294 #. type: textblock
19295 #: ../inspector/virt-inspector.pod:363
19296 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../inspector/virt-inspector.pod:366
19301 msgid ""
19302 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19303 "versions of virt-inspector with different names:"
19304 msgstr ""
19305
19306 #. type: verbatim
19307 #: ../inspector/virt-inspector.pod:369
19308 #, no-wrap
19309 msgid ""
19310 " virt-inspector     Old Perl version.\n"
19311 " virt-inspector2    New C version.\n"
19312 "\n"
19313 msgstr ""
19314
19315 #. type: textblock
19316 #: ../inspector/virt-inspector.pod:374
19317 msgid ""
19318 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19319 "L<base64(1)>, L<http://libguestfs.org/>."
19320 msgstr ""
19321
19322 #. type: textblock
19323 #: ../inspector/virt-inspector.pod:390
19324 msgid "Matthew Booth L<mbooth@redhat.com>"
19325 msgstr ""
19326
19327 #. type: textblock
19328 #: ../java/examples/guestfs-java.pod:5
19329 msgid "guestfs-java - How to use libguestfs from Java"
19330 msgstr ""
19331
19332 #. type: verbatim
19333 #: ../java/examples/guestfs-java.pod:9
19334 #, no-wrap
19335 msgid ""
19336 " import com.redhat.et.libguestfs.*;\n"
19337 " \n"
19338 msgstr ""
19339
19340 #. type: verbatim
19341 #: ../java/examples/guestfs-java.pod:11
19342 #, no-wrap
19343 msgid ""
19344 " GuestFS g = new GuestFS ();\n"
19345 " g.add_drive_opts (\"disk.img\", null);\n"
19346 " g.launch ();\n"
19347 "\n"
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../java/examples/guestfs-java.pod:17
19352 msgid ""
19353 "This manual page documents how to call libguestfs from the Java programming "
19354 "language.  This page just documents the differences from the C API and gives "
19355 "some examples.  If you are not familiar with using libguestfs, you also need "
19356 "to read L<guestfs(3)>."
19357 msgstr ""
19358
19359 #. type: =head2
19360 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19361 msgid "CLOSING THE HANDLE"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../java/examples/guestfs-java.pod:24
19366 msgid ""
19367 "The handle is closed when it is reaped by the garbage collector.  Because "
19368 "libguestfs handles include a lot of state, it is also possible to close (and "
19369 "hence free) them explicitly by calling the C<close> method."
19370 msgstr ""
19371
19372 #. type: =head2
19373 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19374 msgid "EXCEPTIONS"
19375 msgstr ""
19376
19377 #. type: textblock
19378 #: ../java/examples/guestfs-java.pod:31
19379 msgid ""
19380 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19381 "exception.  This has a single parameter which is the error message (a "
19382 "C<String>)."
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../java/examples/guestfs-java.pod:35
19387 msgid "Calling any method on a closed handle raises the same exception."
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../java/examples/guestfs-java.pod:47
19392 msgid ""
19393 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, "
19394 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19395 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
19400 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../ocaml/examples/guestfs-ocaml.pod:5
19405 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../ocaml/examples/guestfs-ocaml.pod:9
19410 msgid "Module style:"
19411 msgstr ""
19412
19413 #. type: verbatim
19414 #: ../ocaml/examples/guestfs-ocaml.pod:11
19415 #, no-wrap
19416 msgid ""
19417 " let g = Guestfs.create () in\n"
19418 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19419 " Guestfs.launch g;\n"
19420 "\n"
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../ocaml/examples/guestfs-ocaml.pod:15
19425 msgid "Object-oriented style:"
19426 msgstr ""
19427
19428 #. type: verbatim
19429 #: ../ocaml/examples/guestfs-ocaml.pod:17
19430 #, no-wrap
19431 msgid ""
19432 " let g = new Guestfs.guestfs () in\n"
19433 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19434 " g#launch ();\n"
19435 "\n"
19436 msgstr ""
19437
19438 #. type: verbatim
19439 #: ../ocaml/examples/guestfs-ocaml.pod:21
19440 #, no-wrap
19441 msgid ""
19442 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19443 "or:\n"
19444 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19445 "\n"
19446 msgstr ""
19447
19448 #. type: textblock
19449 #: ../ocaml/examples/guestfs-ocaml.pod:27
19450 msgid ""
19451 "This manual page documents how to call libguestfs from the OCaml programming "
19452 "language.  This page just documents the differences from the C API and gives "
19453 "some examples.  If you are not familiar with using libguestfs, you also need "
19454 "to read L<guestfs(3)>."
19455 msgstr ""
19456
19457 #. type: =head2
19458 #: ../ocaml/examples/guestfs-ocaml.pod:32
19459 msgid "PROGRAMMING STYLES"
19460 msgstr ""
19461
19462 #. type: textblock
19463 #: ../ocaml/examples/guestfs-ocaml.pod:34
19464 msgid ""
19465 "There are two different programming styles supported by the OCaml bindings.  "
19466 "You can use a module style, with each C function mapped to an OCaml "
19467 "function:"
19468 msgstr ""
19469
19470 #. type: verbatim
19471 #: ../ocaml/examples/guestfs-ocaml.pod:38
19472 #, no-wrap
19473 msgid ""
19474 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19475 "\n"
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../ocaml/examples/guestfs-ocaml.pod:40
19480 msgid "becomes:"
19481 msgstr ""
19482
19483 #. type: verbatim
19484 #: ../ocaml/examples/guestfs-ocaml.pod:42
19485 #, no-wrap
19486 msgid ""
19487 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19488 "\n"
19489 msgstr ""
19490
19491 #. type: textblock
19492 #: ../ocaml/examples/guestfs-ocaml.pod:44
19493 msgid ""
19494 "Alternately you can use an object-oriented style, calling methods on the "
19495 "class C<Guestfs.guestfs>:"
19496 msgstr ""
19497
19498 #. type: verbatim
19499 #: ../ocaml/examples/guestfs-ocaml.pod:47
19500 #, no-wrap
19501 msgid ""
19502 " method set_verbose : bool -> unit\n"
19503 "\n"
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../ocaml/examples/guestfs-ocaml.pod:49
19508 msgid ""
19509 "The object-oriented style is usually briefer, and the minor performance "
19510 "penalty isn't noticable in the general overhead of performing libguestfs "
19511 "functions."
19512 msgstr ""
19513
19514 #. type: textblock
19515 #: ../ocaml/examples/guestfs-ocaml.pod:55
19516 msgid ""
19517 "The handle is closed when it is reaped by the garbage collector.  Because "
19518 "libguestfs handles include a lot of state, it is also possible to close (and "
19519 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19520 "method."
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../ocaml/examples/guestfs-ocaml.pod:62
19525 msgid ""
19526 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19527 "exception.  This has a single parameter which is the error message (a "
19528 "string)."
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../ocaml/examples/guestfs-ocaml.pod:66
19533 msgid ""
19534 "Calling any function/method on a closed handle raises "
19535 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19536 "that you called."
19537 msgstr ""
19538
19539 #. type: textblock
19540 #: ../ocaml/examples/guestfs-ocaml.pod:80
19541 msgid ""
19542 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19543 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19544 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19545 msgstr ""
19546
19547 #. type: textblock
19548 #: ../perl/examples/guestfs-perl.pod:5
19549 msgid "guestfs-perl - How to use libguestfs from Perl"
19550 msgstr ""
19551
19552 #. type: verbatim
19553 #: ../perl/examples/guestfs-perl.pod:9
19554 #, no-wrap
19555 msgid ""
19556 " use Sys::Guestfs;\n"
19557 " \n"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../perl/examples/guestfs-perl.pod:11
19562 #, no-wrap
19563 msgid ""
19564 " my $h = Sys::Guestfs->new ();\n"
19565 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19566 " $h->launch ();\n"
19567 " $h->mount_options ('', '/dev/sda1', '/');\n"
19568 " $h->touch ('/hello');\n"
19569 " $h->sync ();\n"
19570 "\n"
19571 msgstr ""
19572
19573 #. type: textblock
19574 #: ../perl/examples/guestfs-perl.pod:20
19575 msgid ""
19576 "This manual page documents how to call libguestfs from the Perl programming "
19577 "language.  This page just documents the differences from the C API and gives "
19578 "some examples.  If you are not familiar with using libguestfs, you also need "
19579 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
19580 msgstr ""
19581
19582 #. type: =head2
19583 #: ../perl/examples/guestfs-perl.pod:26
19584 msgid "ERRORS"
19585 msgstr ""
19586
19587 #. type: textblock
19588 #: ../perl/examples/guestfs-perl.pod:28
19589 msgid ""
19590 "Errors from libguestfs functions turn into calls to C<croak> (see "
19591 "L<Carp(3)>)."
19592 msgstr ""
19593
19594 #. type: textblock
19595 #: ../perl/examples/guestfs-perl.pod:41
19596 msgid ""
19597 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
19598 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
19599 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../python/examples/guestfs-python.pod:5
19604 msgid "guestfs-python - How to use libguestfs from Python"
19605 msgstr ""
19606
19607 #. type: verbatim
19608 #: ../python/examples/guestfs-python.pod:9
19609 #, no-wrap
19610 msgid ""
19611 " import guestfs\n"
19612 " g = guestfs.GuestFS ()\n"
19613 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
19614 " g.launch\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../python/examples/guestfs-python.pod:16
19620 msgid ""
19621 "This manual page documents how to call libguestfs from the Python "
19622 "programming language.  This page just documents the differences from the C "
19623 "API and gives some examples.  If you are not familiar with using libguestfs, "
19624 "you also need to read L<guestfs(3)>."
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../python/examples/guestfs-python.pod:23
19629 msgid ""
19630 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
19631 "single string argument which is the error message."
19632 msgstr ""
19633
19634 #. type: =head2
19635 #: ../python/examples/guestfs-python.pod:26
19636 msgid "MORE DOCUMENTATION"
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../python/examples/guestfs-python.pod:28
19641 msgid "Type:"
19642 msgstr ""
19643
19644 #. type: verbatim
19645 #: ../python/examples/guestfs-python.pod:30
19646 #, no-wrap
19647 msgid ""
19648 " $ python\n"
19649 " >>> import guestfs\n"
19650 " >>> help (guestfs)\n"
19651 "\n"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../python/examples/guestfs-python.pod:44
19656 msgid ""
19657 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19658 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
19659 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../rescue/virt-rescue.pod:5
19664 msgid "virt-rescue - Run a rescue shell on a virtual machine"
19665 msgstr ""
19666
19667 #. type: verbatim
19668 #: ../rescue/virt-rescue.pod:9
19669 #, no-wrap
19670 msgid ""
19671 " virt-rescue [--options] -d domname\n"
19672 "\n"
19673 msgstr ""
19674
19675 #. type: verbatim
19676 #: ../rescue/virt-rescue.pod:11
19677 #, no-wrap
19678 msgid ""
19679 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
19680 "\n"
19681 msgstr ""
19682
19683 #. type: verbatim
19684 #: ../rescue/virt-rescue.pod:15
19685 #, no-wrap
19686 msgid ""
19687 " virt-rescue [--options] domname\n"
19688 "\n"
19689 msgstr ""
19690
19691 #. type: verbatim
19692 #: ../rescue/virt-rescue.pod:17
19693 #, no-wrap
19694 msgid ""
19695 " virt-rescue [--options] disk.img [disk.img ...]\n"
19696 "\n"
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../rescue/virt-rescue.pod:21
19701 msgid ""
19702 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
19703 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
19704 "you from doing this, but doesn't catch all cases."
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../rescue/virt-rescue.pod:25
19709 msgid ""
19710 "However if you use the I<--ro> (read only) option, then you can attach a "
19711 "shell to a live virtual machine.  The results might be strange or "
19712 "inconsistent at times but you won't get disk corruption."
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../rescue/virt-rescue.pod:31
19717 msgid ""
19718 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
19719 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
19720 "recovery tools which you can use to examine or rescue a virtual machine or "
19721 "disk image."
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../rescue/virt-rescue.pod:36
19726 msgid ""
19727 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
19728 "on disk image(s):"
19729 msgstr ""
19730
19731 #. type: verbatim
19732 #: ../rescue/virt-rescue.pod:39
19733 #, no-wrap
19734 msgid ""
19735 " virt-rescue -d GuestName\n"
19736 "\n"
19737 msgstr ""
19738
19739 #. type: verbatim
19740 #: ../rescue/virt-rescue.pod:41
19741 #, no-wrap
19742 msgid ""
19743 " virt-rescue --ro -a /path/to/disk.img\n"
19744 "\n"
19745 msgstr ""
19746
19747 #. type: verbatim
19748 #: ../rescue/virt-rescue.pod:43
19749 #, no-wrap
19750 msgid ""
19751 " virt-rescue -a /dev/sdc\n"
19752 "\n"
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../rescue/virt-rescue.pod:45
19757 msgid "For live VMs you I<must> use the --ro option."
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../rescue/virt-rescue.pod:47
19762 msgid ""
19763 "When you run virt-rescue on a virtual machine or disk image, you are placed "
19764 "in an interactive bash shell where you can use many ordinary Linux "
19765 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
19766 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
19767 "is an empty directory called C</sysroot> where you can mount filesystems."
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../rescue/virt-rescue.pod:54
19772 msgid ""
19773 "In the example below, we list logical volumes, then choose one to mount "
19774 "under C</sysroot>:"
19775 msgstr ""
19776
19777 #. type: verbatim
19778 #: ../rescue/virt-rescue.pod:57
19779 #, no-wrap
19780 msgid ""
19781 " ><rescue> lvs\n"
19782 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
19783 " lv_root vg_f11x64 -wi-a-   8.83G\n"
19784 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
19785 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
19786 " ><rescue> ls /sysroot\n"
19787 "\n"
19788 msgstr ""
19789
19790 #. type: textblock
19791 #: ../rescue/virt-rescue.pod:64
19792 msgid ""
19793 "If you don't know what filesystems are available on the virtual machine then "
19794 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
19795 msgstr ""
19796
19797 #. type: textblock
19798 #: ../rescue/virt-rescue.pod:70
19799 msgid ""
19800 "Virt-rescue can be used on I<any> disk image file or device, not just a "
19801 "virtual machine.  For example you can use it on a blank file if you want to "
19802 "partition that file (although we would recommend using L<guestfish(1)> "
19803 "instead as it is more suitable for this purpose).  You can even use "
19804 "virt-rescue on things like SD cards."
19805 msgstr ""
19806
19807 #. type: textblock
19808 #: ../rescue/virt-rescue.pod:76
19809 msgid ""
19810 "Virt-rescue does not require root.  You only need to run it as root if you "
19811 "need root to open the disk image."
19812 msgstr ""
19813
19814 #. type: textblock
19815 #: ../rescue/virt-rescue.pod:79
19816 msgid ""
19817 "This tool is just designed for quick interactive hacking on a virtual "
19818 "machine.  For more structured access to a virtual machine disk image, you "
19819 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
19820 "make scripted changes to guests, use L<guestfish(1)>."
19821 msgstr ""
19822
19823 #. type: =item
19824 #: ../rescue/virt-rescue.pod:103
19825 msgid "B<--append kernelopts>"
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../rescue/virt-rescue.pod:105
19830 msgid "Pass additional options to the rescue kernel."
19831 msgstr ""
19832
19833 #. type: verbatim
19834 #: ../rescue/virt-rescue.pod:135
19835 #, no-wrap
19836 msgid ""
19837 " virt-rescue --format=raw -a disk.img\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: verbatim
19842 #: ../rescue/virt-rescue.pod:139
19843 #, no-wrap
19844 msgid ""
19845 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
19846 "\n"
19847 msgstr ""
19848
19849 #. type: =item
19850 #: ../rescue/virt-rescue.pod:148
19851 msgid "B<-m MB>"
19852 msgstr ""
19853
19854 #. type: =item
19855 #: ../rescue/virt-rescue.pod:150
19856 msgid "B<--memsize MB>"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../rescue/virt-rescue.pod:152
19861 msgid ""
19862 "Change the amount of memory allocated to the rescue system.  The default is "
19863 "set by libguestfs and is small but adequate for running system tools.  The "
19864 "occasional program might need more memory.  The parameter is specified in "
19865 "megabytes."
19866 msgstr ""
19867
19868 #. type: =item
19869 #: ../rescue/virt-rescue.pod:157
19870 msgid "B<--network>"
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../rescue/virt-rescue.pod:159
19875 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
19876 msgstr ""
19877
19878 #. type: textblock
19879 #: ../rescue/virt-rescue.pod:165
19880 msgid "Open the image read-only."
19881 msgstr ""
19882
19883 #. type: textblock
19884 #: ../rescue/virt-rescue.pod:175
19885 msgid ""
19886 "Enable SELinux in the rescue appliance.  You should read "
19887 "L<guestfs(3)/SELINUX> before using this option."
19888 msgstr ""
19889
19890 #. type: textblock
19891 #: ../rescue/virt-rescue.pod:194
19892 msgid ""
19893 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
19894 "are done read-write."
19895 msgstr ""
19896
19897 #. type: textblock
19898 #: ../rescue/virt-rescue.pod:207
19899 msgid "Previous versions of virt-rescue allowed you to write either:"
19900 msgstr ""
19901
19902 #. type: verbatim
19903 #: ../rescue/virt-rescue.pod:209
19904 #, no-wrap
19905 msgid ""
19906 " virt-rescue disk.img [disk.img ...]\n"
19907 "\n"
19908 msgstr ""
19909
19910 #. type: verbatim
19911 #: ../rescue/virt-rescue.pod:213
19912 #, no-wrap
19913 msgid ""
19914 " virt-rescue guestname\n"
19915 "\n"
19916 msgstr ""
19917
19918 #. type: =head1
19919 #: ../rescue/virt-rescue.pod:221
19920 msgid "NETWORK"
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../rescue/virt-rescue.pod:223
19925 msgid ""
19926 "Adding the I<--network> option enables QEMU user networking in the rescue "
19927 "appliance.  There are some differences between user networking and ordinary "
19928 "networking:"
19929 msgstr ""
19930
19931 #. type: =item
19932 #: ../rescue/virt-rescue.pod:229
19933 msgid "ping does not work"
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../rescue/virt-rescue.pod:231
19938 msgid ""
19939 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
19940 "send the ping packets, and because virt-rescue must be able to run as "
19941 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
19942 "command.  The ping command will appear to resolve addresses but will not be "
19943 "able to send or receive any packets.  This does not mean that the network is "
19944 "not working."
19945 msgstr ""
19946
19947 #. type: =item
19948 #: ../rescue/virt-rescue.pod:238
19949 msgid "cannot receive connections"
19950 msgstr ""
19951
19952 #. type: textblock
19953 #: ../rescue/virt-rescue.pod:240
19954 msgid "QEMU user networking cannot receive incoming connections."
19955 msgstr ""
19956
19957 #. type: =item
19958 #: ../rescue/virt-rescue.pod:242
19959 msgid "making TCP connections"
19960 msgstr ""
19961
19962 #. type: textblock
19963 #: ../rescue/virt-rescue.pod:244
19964 msgid ""
19965 "The virt-rescue appliance needs to be small and so does not include many "
19966 "network tools.  In particular there is no L<telnet(1)> command.  You can "
19967 "make TCP connections from the shell using the magical "
19968 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
19969 msgstr ""
19970
19971 #. type: verbatim
19972 #: ../rescue/virt-rescue.pod:249
19973 #, no-wrap
19974 msgid ""
19975 " exec 3<>/dev/tcp/redhat.com/80\n"
19976 " echo \"GET /\" >&3\n"
19977 " cat <&3\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../rescue/virt-rescue.pod:253
19983 msgid "See L<bash(1)> for more details."
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../rescue/virt-rescue.pod:259
19988 msgid ""
19989 "Several environment variables affect virt-rescue.  See "
19990 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
19991 msgstr ""
19992
19993 #. type: textblock
19994 #: ../rescue/virt-rescue.pod:286
19995 msgid ""
19996 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19997 "L<http://libguestfs.org/>."
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../resize/virt-resize.pod:5
20002 msgid "virt-resize - Resize a virtual machine disk"
20003 msgstr ""
20004
20005 #. type: verbatim
20006 #: ../resize/virt-resize.pod:9
20007 #, no-wrap
20008 msgid ""
20009 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20010 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20011 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20012 "\n"
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../resize/virt-resize.pod:15
20017 msgid ""
20018 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20019 "larger or smaller overall, and resizing or deleting any partitions contained "
20020 "within."
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../resize/virt-resize.pod:19
20025 msgid ""
20026 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20027 "not> be used on live virtual machines - for consistent results, shut the "
20028 "virtual machine down before resizing it."
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../resize/virt-resize.pod:23
20033 msgid ""
20034 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20035 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20036 msgstr ""
20037
20038 #. type: =item
20039 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
20040 msgid "1."
20041 msgstr ""
20042
20043 #. type: textblock
20044 #: ../resize/virt-resize.pod:33
20045 msgid ""
20046 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20047 "fill the extra 5GB of space."
20048 msgstr ""
20049
20050 #. type: verbatim
20051 #: ../resize/virt-resize.pod:36
20052 #, no-wrap
20053 msgid ""
20054 " virt-filesystems --long -h --all -a olddisk\n"
20055 " \n"
20056 msgstr ""
20057
20058 #. type: verbatim
20059 #: ../resize/virt-resize.pod:38
20060 #, no-wrap
20061 msgid ""
20062 " truncate -r olddisk newdisk\n"
20063 " truncate -s +5G newdisk\n"
20064 " \n"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../resize/virt-resize.pod:41
20069 #, no-wrap
20070 msgid ""
20071 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20072 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20073 "\n"
20074 msgstr ""
20075
20076 #. type: =item
20077 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
20078 msgid "2."
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../resize/virt-resize.pod:46
20083 msgid ""
20084 "As above, but make the /boot partition 200MB bigger, while giving the "
20085 "remaining space to /dev/sda2:"
20086 msgstr ""
20087
20088 #. type: verbatim
20089 #: ../resize/virt-resize.pod:49
20090 #, no-wrap
20091 msgid ""
20092 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20093 "   olddisk newdisk\n"
20094 "\n"
20095 msgstr ""
20096
20097 #. type: =item
20098 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
20099 msgid "3."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../resize/virt-resize.pod:54
20104 msgid ""
20105 "As in the first example, but expand a logical volume as the final step.  "
20106 "This is what you would typically use for Linux guests that use LVM:"
20107 msgstr ""
20108
20109 #. type: verbatim
20110 #: ../resize/virt-resize.pod:58
20111 #, no-wrap
20112 msgid ""
20113 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20114 "   olddisk newdisk\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: =item
20119 #: ../resize/virt-resize.pod:61
20120 msgid "4."
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../resize/virt-resize.pod:63
20125 msgid ""
20126 "As in the first example, but the output format will be qcow2 instead of a "
20127 "raw disk:"
20128 msgstr ""
20129
20130 #. type: verbatim
20131 #: ../resize/virt-resize.pod:66
20132 #, no-wrap
20133 msgid ""
20134 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20135 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20136 "\n"
20137 msgstr ""
20138
20139 #. type: =head1
20140 #: ../resize/virt-resize.pod:71
20141 msgid "DETAILED USAGE"
20142 msgstr ""
20143
20144 #. type: =head2
20145 #: ../resize/virt-resize.pod:73
20146 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20147 msgstr ""
20148
20149 #. type: =item
20150 #: ../resize/virt-resize.pod:77
20151 msgid "1. Shut down the virtual machine"
20152 msgstr ""
20153
20154 #. type: =item
20155 #: ../resize/virt-resize.pod:79
20156 msgid "2. Locate input disk image"
20157 msgstr ""
20158
20159 #. type: textblock
20160 #: ../resize/virt-resize.pod:81
20161 msgid ""
20162 "Locate the input disk image (ie. the file or device on the host containing "
20163 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20164 "dumpxml> like this to find the disk image name:"
20165 msgstr ""
20166
20167 #. type: verbatim
20168 #: ../resize/virt-resize.pod:85
20169 #, no-wrap
20170 msgid ""
20171 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20172 " Found 1 nodes:\n"
20173 " -- NODE --\n"
20174 " <source dev=\"/dev/vg/lv_guest\" />\n"
20175 "\n"
20176 msgstr ""
20177
20178 #. type: =item
20179 #: ../resize/virt-resize.pod:90
20180 msgid "3. Look at current sizing"
20181 msgstr ""
20182
20183 #. type: textblock
20184 #: ../resize/virt-resize.pod:92
20185 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20186 msgstr ""
20187
20188 #. type: verbatim
20189 #: ../resize/virt-resize.pod:95
20190 #, no-wrap
20191 msgid ""
20192 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20193 " Name       Type       Size  Parent\n"
20194 " /dev/sda1  partition  101M  /dev/sda\n"
20195 " /dev/sda2  partition  7.9G  /dev/sda\n"
20196 " /dev/sda   device     8.0G  -\n"
20197 "\n"
20198 msgstr ""
20199
20200 #. type: textblock
20201 #: ../resize/virt-resize.pod:101
20202 msgid ""
20203 "(This example is a virtual machine with an 8 GB disk which we would like to "
20204 "expand up to 10 GB)."
20205 msgstr ""
20206
20207 #. type: =item
20208 #: ../resize/virt-resize.pod:104
20209 msgid "4. Create output disk"
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../resize/virt-resize.pod:106
20214 msgid ""
20215 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20216 "to store the resized output disk."
20217 msgstr ""
20218
20219 #. type: textblock
20220 #: ../resize/virt-resize.pod:109
20221 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20222 msgstr ""
20223
20224 #. type: verbatim
20225 #: ../resize/virt-resize.pod:112
20226 #, no-wrap
20227 msgid ""
20228 " # rm -f outdisk\n"
20229 " # truncate -s 10G outdisk\n"
20230 "\n"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../resize/virt-resize.pod:115
20235 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20236 msgstr ""
20237
20238 #. type: verbatim
20239 #: ../resize/virt-resize.pod:117
20240 #, no-wrap
20241 msgid ""
20242 " # lvcreate -L 10G -n lv_name vg_name\n"
20243 "\n"
20244 msgstr ""
20245
20246 #. type: textblock
20247 #: ../resize/virt-resize.pod:119
20248 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20249 msgstr ""
20250
20251 #. type: verbatim
20252 #: ../resize/virt-resize.pod:121
20253 #, no-wrap
20254 msgid ""
20255 " # virsh pool-list\n"
20256 " # virsh vol-create-as poolname newvol 10G\n"
20257 "\n"
20258 msgstr ""
20259
20260 #. type: =item
20261 #: ../resize/virt-resize.pod:124
20262 msgid "5. Resize"
20263 msgstr ""
20264
20265 #. type: textblock
20266 #: ../resize/virt-resize.pod:126
20267 msgid ""
20268 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20269 "file) and the output disk.  The output disk is the one created in the "
20270 "previous step."
20271 msgstr ""
20272
20273 #. type: verbatim
20274 #: ../resize/virt-resize.pod:130
20275 #, no-wrap
20276 msgid ""
20277 " # virt-resize indisk outdisk\n"
20278 "\n"
20279 msgstr ""
20280
20281 #. type: textblock
20282 #: ../resize/virt-resize.pod:132
20283 msgid ""
20284 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20285 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20286 "larger, then an extra, empty partition is created at the end of the disk "
20287 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20288 "error."
20289 msgstr ""
20290
20291 #. type: textblock
20292 #: ../resize/virt-resize.pod:138
20293 msgid ""
20294 "More realistically you'd want to expand existing partitions in the disk "
20295 "image by passing extra options (for the full list see the L</OPTIONS> "
20296 "section below)."
20297 msgstr ""
20298
20299 #. type: textblock
20300 #: ../resize/virt-resize.pod:142
20301 msgid ""
20302 "L</--expand> is the most useful option.  It expands the named partition "
20303 "within the disk to fill any extra space:"
20304 msgstr ""
20305
20306 #. type: verbatim
20307 #: ../resize/virt-resize.pod:145
20308 #, no-wrap
20309 msgid ""
20310 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20311 "\n"
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../resize/virt-resize.pod:147
20316 msgid ""
20317 "(In this case, an extra partition is I<not> created at the end of the disk, "
20318 "because there will be no unused space)."
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../resize/virt-resize.pod:150
20323 msgid ""
20324 "L</--resize> is the other commonly used option.  The following would "
20325 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20326 "rest of the available space:"
20327 msgstr ""
20328
20329 #. type: verbatim
20330 #: ../resize/virt-resize.pod:154
20331 #, no-wrap
20332 msgid ""
20333 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20334 "     indisk outdisk\n"
20335 "\n"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../resize/virt-resize.pod:157
20340 msgid ""
20341 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20342 "if virt-resize knows how, it will resize the contents, the equivalent of "
20343 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20344 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20345 "filesystems, so you would have to online resize them after booting the "
20346 "guest."
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../resize/virt-resize.pod:164
20351 msgid "Other options are covered below."
20352 msgstr ""
20353
20354 #. type: =item
20355 #: ../resize/virt-resize.pod:166
20356 msgid "6. Test"
20357 msgstr ""
20358
20359 #. type: textblock
20360 #: ../resize/virt-resize.pod:168
20361 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../resize/virt-resize.pod:170
20366 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20367 msgstr ""
20368
20369 #. type: verbatim
20370 #: ../resize/virt-resize.pod:172
20371 #, no-wrap
20372 msgid ""
20373 " # virsh edit guestname\n"
20374 "\n"
20375 msgstr ""
20376
20377 #. type: textblock
20378 #: ../resize/virt-resize.pod:174
20379 msgid ""
20380 "Change E<lt>source ...E<gt>, see "
20381 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../resize/virt-resize.pod:177
20386 msgid "Then start up the domain with the new, resized disk:"
20387 msgstr ""
20388
20389 #. type: verbatim
20390 #: ../resize/virt-resize.pod:179
20391 #, no-wrap
20392 msgid ""
20393 " # virsh start guestname\n"
20394 "\n"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../resize/virt-resize.pod:181
20399 msgid ""
20400 "and check that it still works.  See also the L</NOTES> section below for "
20401 "additional information."
20402 msgstr ""
20403
20404 #. type: =item
20405 #: ../resize/virt-resize.pod:184
20406 msgid "7. Resize LVs etc inside the guest"
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../resize/virt-resize.pod:186
20411 msgid "(This can also be done offline using L<guestfish(1)>)"
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../resize/virt-resize.pod:188
20416 msgid ""
20417 "Once the guest has booted you should see the new space available, at least "
20418 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20419 "may need to resize LVs inside PVs, and also resize filesystem types that "
20420 "virt-resize does not know how to expand."
20421 msgstr ""
20422
20423 #. type: =head2
20424 #: ../resize/virt-resize.pod:195
20425 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20426 msgstr ""
20427
20428 #. type: textblock
20429 #: ../resize/virt-resize.pod:197
20430 msgid ""
20431 "Shrinking is somewhat more complex than expanding, and only an overview is "
20432 "given here."
20433 msgstr ""
20434
20435 #. type: textblock
20436 #: ../resize/virt-resize.pod:200
20437 msgid ""
20438 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20439 "filesystems).  The user has to shrink content before passing the disk image "
20440 "to virt-resize, and virt-resize will check that the content has been shrunk "
20441 "properly."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../resize/virt-resize.pod:205
20446 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../resize/virt-resize.pod:207
20451 msgid ""
20452 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20453 "steps 3 and 4 above to allocate a new disk image."
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../resize/virt-resize.pod:210
20458 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20459 msgstr ""
20460
20461 #. type: =head2
20462 #: ../resize/virt-resize.pod:213
20463 msgid "IGNORING OR DELETING PARTITIONS"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../resize/virt-resize.pod:215
20468 msgid ""
20469 "virt-resize also gives a convenient way to ignore or delete partitions when "
20470 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20471 "up the copy where you don't care about the existing contents of a "
20472 "partition.  Deleting a partition removes it completely, but note that it "
20473 "also renumbers any partitions after the one which is deleted, which can "
20474 "leave some guests unbootable."
20475 msgstr ""
20476
20477 #. type: =head2
20478 #: ../resize/virt-resize.pod:222
20479 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../resize/virt-resize.pod:224
20484 msgid ""
20485 "If the input disk is in qcow2 format, then you may prefer that the output is "
20486 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20487 "the fly.  The output format is simply determined by the format of the empty "
20488 "output container that you provide.  Thus to create qcow2 output, use:"
20489 msgstr ""
20490
20491 #. type: verbatim
20492 #: ../resize/virt-resize.pod:230
20493 #, no-wrap
20494 msgid ""
20495 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20496 "\n"
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../resize/virt-resize.pod:232
20501 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../resize/virt-resize.pod:234
20506 msgid "Similarly, to get non-sparse raw output use:"
20507 msgstr ""
20508
20509 #. type: verbatim
20510 #: ../resize/virt-resize.pod:236
20511 #, no-wrap
20512 msgid ""
20513 " fallocate -l size outdisk\n"
20514 "\n"
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../resize/virt-resize.pod:238
20519 msgid ""
20520 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20521 "if=/dev/zero of=outdisk bs=1M count=..>)"
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../resize/virt-resize.pod:247
20526 msgid "Display help."
20527 msgstr ""
20528
20529 #. type: =item
20530 #: ../resize/virt-resize.pod:249
20531 msgid "B<-d>"
20532 msgstr ""
20533
20534 #. type: =item
20535 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20536 msgid "B<--debug>"
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20541 msgid "Enable debugging messages."
20542 msgstr ""
20543
20544 #. type: =item
20545 #: ../resize/virt-resize.pod:255
20546 msgid "B<--delete part>"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../resize/virt-resize.pod:257
20551 msgid ""
20552 "Delete the named partition.  It would be more accurate to describe this as "
20553 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20554 "the original disk image is left intact."
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../resize/virt-resize.pod:261
20559 msgid ""
20560 "Note that when you delete a partition, then anything contained in the "
20561 "partition is also deleted.  Furthermore, this causes any partitions that "
20562 "come after to be I<renumbered>, which can easily make your guest unbootable."
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:448
20567 msgid "You can give this option multiple times."
20568 msgstr ""
20569
20570 #. type: =item
20571 #: ../resize/virt-resize.pod:268
20572 msgid "B<--expand part>"
20573 msgstr ""
20574
20575 #. type: textblock
20576 #: ../resize/virt-resize.pod:270
20577 msgid ""
20578 "Expand the named partition so it uses up all extra space (space left over "
20579 "after any other resize changes that you request have been done)."
20580 msgstr ""
20581
20582 #. type: textblock
20583 #: ../resize/virt-resize.pod:273
20584 msgid ""
20585 "If virt-resize knows how, it will expand the direct content of the "
20586 "partition.  For example, if the partition is an LVM PV, it will expand the "
20587 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
20588 "content it doesn't know about alone."
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../resize/virt-resize.pod:278
20593 msgid "Currently virt-resize can resize:"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../resize/virt-resize.pod:284
20598 msgid "ext2, ext3 and ext4 filesystems."
20599 msgstr ""
20600
20601 #. type: textblock
20602 #: ../resize/virt-resize.pod:288
20603 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
20604 msgstr ""
20605
20606 #. type: textblock
20607 #: ../resize/virt-resize.pod:290
20608 msgid ""
20609 "The filesystem must have been shut down consistently last time it was used.  "
20610 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
20611 "consistency check, so at the first boot after resizing Windows will check "
20612 "the disk."
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../resize/virt-resize.pod:297
20617 msgid ""
20618 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
20619 "inside the PV, but see the I<--LV-expand> option.  The user could also "
20620 "resize LVs as desired after boot."
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../resize/virt-resize.pod:303
20625 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
20630 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
20631 msgstr ""
20632
20633 #. type: =item
20634 #: ../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
20635 msgid "B<--format> raw"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../resize/virt-resize.pod:311
20640 msgid ""
20641 "Specify the format of the input disk image.  If this flag is not given then "
20642 "it is auto-detected from the image itself."
20643 msgstr ""
20644
20645 #. type: textblock
20646 #: ../resize/virt-resize.pod:317
20647 msgid ""
20648 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
20649 "AND NON-SPARSE RAW FORMATS>."
20650 msgstr ""
20651
20652 #. type: =item
20653 #: ../resize/virt-resize.pod:320
20654 msgid "B<--ignore part>"
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../resize/virt-resize.pod:322
20659 msgid ""
20660 "Ignore the named partition.  Effectively this means the partition is "
20661 "allocated on the destination disk, but the content is not copied across from "
20662 "the source disk.  The content of the partition will be blank (all zero "
20663 "bytes)."
20664 msgstr ""
20665
20666 #. type: =item
20667 #: ../resize/virt-resize.pod:329
20668 msgid "B<--LV-expand logvol>"
20669 msgstr ""
20670
20671 #. type: textblock
20672 #: ../resize/virt-resize.pod:331
20673 msgid ""
20674 "This takes the logical volume and, as a final step, expands it to fill all "
20675 "the space available in its volume group.  A typical usage, assuming a Linux "
20676 "guest with a single PV C</dev/sda2> and a root device called "
20677 "C</dev/vg_guest/lv_root> would be:"
20678 msgstr ""
20679
20680 #. type: verbatim
20681 #: ../resize/virt-resize.pod:336
20682 #, no-wrap
20683 msgid ""
20684 " virt-resize indisk outdisk \\\n"
20685 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
20686 "\n"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../resize/virt-resize.pod:339
20691 msgid ""
20692 "This would first expand the partition (and PV), and then expand the root "
20693 "device to fill the extra space in the PV."
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../resize/virt-resize.pod:342
20698 msgid ""
20699 "The contents of the LV are also resized if virt-resize knows how to do "
20700 "that.  You can stop virt-resize from trying to expand the content by using "
20701 "the option I<--no-expand-content>."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../resize/virt-resize.pod:346
20706 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../resize/virt-resize.pod:348
20711 msgid ""
20712 "You can give this option multiple times, I<but> it doesn't make sense to do "
20713 "this unless the logical volumes you specify are all in different volume "
20714 "groups."
20715 msgstr ""
20716
20717 #. type: =item
20718 #: ../resize/virt-resize.pod:354
20719 msgid "B<--dryrun>"
20720 msgstr ""
20721
20722 #. type: textblock
20723 #: ../resize/virt-resize.pod:356
20724 msgid "Print a summary of what would be done, but don't do anything."
20725 msgstr ""
20726
20727 #. type: =item
20728 #: ../resize/virt-resize.pod:358
20729 msgid "B<--no-copy-boot-loader>"
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../resize/virt-resize.pod:360
20734 msgid ""
20735 "By default, virt-resize copies over some sectors at the start of the disk "
20736 "(up to the beginning of the first partition).  Commonly these sectors "
20737 "contain the Master Boot Record (MBR) and the boot loader, and are required "
20738 "in order for the guest to boot correctly."
20739 msgstr ""
20740
20741 #. type: textblock
20742 #: ../resize/virt-resize.pod:365
20743 msgid ""
20744 "If you specify this flag, then this initial copy is not done.  You may need "
20745 "to reinstall the boot loader in this case."
20746 msgstr ""
20747
20748 #. type: =item
20749 #: ../resize/virt-resize.pod:368
20750 msgid "B<--no-extra-partition>"
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../resize/virt-resize.pod:370
20755 msgid ""
20756 "By default, virt-resize creates an extra partition if there is any extra, "
20757 "unused space after all resizing has happened.  Use this option to prevent "
20758 "the extra partition from being created.  If you do this then the extra space "
20759 "will be inaccessible until you run fdisk, parted, or some other partitioning "
20760 "tool in the guest."
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../resize/virt-resize.pod:376
20765 msgid ""
20766 "Note that if the surplus space is smaller than 10 MB, no extra partition "
20767 "will be created."
20768 msgstr ""
20769
20770 #. type: =item
20771 #: ../resize/virt-resize.pod:379
20772 msgid "B<--no-expand-content>"
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../resize/virt-resize.pod:381
20777 msgid ""
20778 "By default, virt-resize will try to expand the direct contents of "
20779 "partitions, if it knows how (see I<--expand> option above)."
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../resize/virt-resize.pod:384
20784 msgid ""
20785 "If you give the I<--no-expand-content> option then virt-resize will not "
20786 "attempt this."
20787 msgstr ""
20788
20789 #. type: =item
20790 #: ../resize/virt-resize.pod:387
20791 msgid "B<--ntfsresize-force>"
20792 msgstr ""
20793
20794 #. type: textblock
20795 #: ../resize/virt-resize.pod:389
20796 msgid ""
20797 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
20798 "the NTFS disk is marked as needing a consistency check.  You have to use "
20799 "this option if you want to resize a Windows guest multiple times without "
20800 "booting into Windows between each resize."
20801 msgstr ""
20802
20803 #. type: =item
20804 #: ../resize/virt-resize.pod:395
20805 msgid "B<--output-format> raw"
20806 msgstr ""
20807
20808 #. type: textblock
20809 #: ../resize/virt-resize.pod:397
20810 msgid ""
20811 "Specify the format of the output disk image.  If this flag is not given then "
20812 "it is auto-detected from the image itself."
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../resize/virt-resize.pod:403
20817 msgid ""
20818 "Note that this option I<does not create> the output format.  This option "
20819 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
20820 "need to create the output disk with the right format.  See L</QCOW2 AND "
20821 "NON-SPARSE RAW FORMATS>."
20822 msgstr ""
20823
20824 #. type: =item
20825 #: ../resize/virt-resize.pod:408
20826 msgid "B<-q>"
20827 msgstr ""
20828
20829 #. type: =item
20830 #: ../resize/virt-resize.pod:410
20831 msgid "B<--quiet>"
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../resize/virt-resize.pod:412
20836 msgid "Don't print the summary."
20837 msgstr ""
20838
20839 #. type: =item
20840 #: ../resize/virt-resize.pod:414
20841 msgid "B<--resize part=size>"
20842 msgstr ""
20843
20844 #. type: textblock
20845 #: ../resize/virt-resize.pod:416
20846 msgid ""
20847 "Resize the named partition (expanding or shrinking it) so that it has the "
20848 "given size."
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../resize/virt-resize.pod:419
20853 msgid ""
20854 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
20855 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
20856 "size; or as a relative number or percentage.  For example:"
20857 msgstr ""
20858
20859 #. type: verbatim
20860 #: ../resize/virt-resize.pod:425
20861 #, no-wrap
20862 msgid ""
20863 " --resize /dev/sda2=10G\n"
20864 "\n"
20865 msgstr ""
20866
20867 #. type: verbatim
20868 #: ../resize/virt-resize.pod:427
20869 #, no-wrap
20870 msgid ""
20871 " --resize /dev/sda4=90%\n"
20872 "\n"
20873 msgstr ""
20874
20875 #. type: verbatim
20876 #: ../resize/virt-resize.pod:429
20877 #, no-wrap
20878 msgid ""
20879 " --resize /dev/sda2=+1G\n"
20880 "\n"
20881 msgstr ""
20882
20883 #. type: verbatim
20884 #: ../resize/virt-resize.pod:431
20885 #, no-wrap
20886 msgid ""
20887 " --resize /dev/sda2=-200M\n"
20888 "\n"
20889 msgstr ""
20890
20891 #. type: verbatim
20892 #: ../resize/virt-resize.pod:433
20893 #, no-wrap
20894 msgid ""
20895 " --resize /dev/sda1=+128K\n"
20896 "\n"
20897 msgstr ""
20898
20899 #. type: verbatim
20900 #: ../resize/virt-resize.pod:435
20901 #, no-wrap
20902 msgid ""
20903 " --resize /dev/sda1=+10%\n"
20904 "\n"
20905 msgstr ""
20906
20907 #. type: verbatim
20908 #: ../resize/virt-resize.pod:437
20909 #, no-wrap
20910 msgid ""
20911 " --resize /dev/sda1=-10%\n"
20912 "\n"
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../resize/virt-resize.pod:439
20917 msgid ""
20918 "You can increase the size of any partition.  Virt-resize will expand the "
20919 "direct content of the partition if it knows how (see I<--expand> below)."
20920 msgstr ""
20921
20922 #. type: textblock
20923 #: ../resize/virt-resize.pod:443
20924 msgid ""
20925 "You can only I<decrease> the size of partitions that contain filesystems or "
20926 "PVs which have already been shrunk.  Virt-resize will check this has been "
20927 "done before proceeding, or else will print an error (see also "
20928 "I<--resize-force>)."
20929 msgstr ""
20930
20931 #. type: =item
20932 #: ../resize/virt-resize.pod:450
20933 msgid "B<--resize-force part=size>"
20934 msgstr ""
20935
20936 #. type: textblock
20937 #: ../resize/virt-resize.pod:452
20938 msgid ""
20939 "This is the same as I<--resize> except that it will let you decrease the "
20940 "size of any partition.  Generally this means you will lose any data which "
20941 "was at the end of the partition you shrink, but you may not care about that "
20942 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
20943 "as a swap partition)."
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../resize/virt-resize.pod:458
20948 msgid "See also the I<--ignore> option."
20949 msgstr ""
20950
20951 #. type: =item
20952 #: ../resize/virt-resize.pod:460
20953 msgid "B<--shrink part>"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../resize/virt-resize.pod:462
20958 msgid ""
20959 "Shrink the named partition until the overall disk image fits in the "
20960 "destination.  The named partition B<must> contain a filesystem or PV which "
20961 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
20962 "online tools).  Virt-resize will check this and give an error if it has not "
20963 "been done."
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../resize/virt-resize.pod:468
20968 msgid ""
20969 "The amount by which the overall disk must be shrunk (after carrying out all "
20970 "other operations requested by the user) is called the \"deficit\".  For "
20971 "example, a straight copy (assume no other operations)  from a 5GB disk image "
20972 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
20973 "would give an error unless the user specified a partition to shrink and that "
20974 "partition had more than a gigabyte of free space."
20975 msgstr ""
20976
20977 #. type: =head2
20978 #: ../resize/virt-resize.pod:488
20979 msgid "\"Partition 1 does not end on cylinder boundary.\""
20980 msgstr ""
20981
20982 #. type: textblock
20983 #: ../resize/virt-resize.pod:490
20984 msgid ""
20985 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
20986 "means the partitions will not be aligned to the ancient CHS geometry.  "
20987 "However CHS geometry is meaningless for disks manufactured since the early "
20988 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
20989 "cylinders is not required by any modern operating system."
20990 msgstr ""
20991
20992 #. type: =head2
20993 #: ../resize/virt-resize.pod:497
20994 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
20995 msgstr ""
20996
20997 #. type: textblock
20998 #: ../resize/virt-resize.pod:499
20999 msgid ""
21000 "In Windows Vista and later versions, Microsoft switched to using a separate "
21001 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21002 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21003 "the boot partition.  Doing so seems to break the guest completely.  However "
21004 "expanding the second partition (ie. C: drive) should work."
21005 msgstr ""
21006
21007 #. type: textblock
21008 #: ../resize/virt-resize.pod:506
21009 msgid ""
21010 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21011 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21012 "it find errors) is nothing to worry about."
21013 msgstr ""
21014
21015 #. type: =head2
21016 #: ../resize/virt-resize.pod:510
21017 msgid "GUEST BOOT STUCK AT \"GRUB\""
21018 msgstr ""
21019
21020 #. type: textblock
21021 #: ../resize/virt-resize.pod:512
21022 msgid ""
21023 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21024 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21025 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21026 "although we think is to do with partition alignment."
21027 msgstr ""
21028
21029 #. type: verbatim
21030 #: ../resize/virt-resize.pod:517
21031 #, no-wrap
21032 msgid ""
21033 " guestfish -i -a newdisk\n"
21034 " ><fs> cat /boot/grub/device.map\n"
21035 " # check the contents of this file are sensible or\n"
21036 " # edit the file if necessary\n"
21037 " ><fs> grub-install / /dev/vda\n"
21038 " ><fs> exit\n"
21039 "\n"
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../resize/virt-resize.pod:524
21044 msgid ""
21045 "For more flexible guest reconfiguration, including if you need to specify "
21046 "other parameters to grub-install, use L<virt-rescue(1)>."
21047 msgstr ""
21048
21049 #. type: =head1
21050 #: ../resize/virt-resize.pod:527
21051 msgid "ALTERNATIVE TOOLS"
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../resize/virt-resize.pod:529
21056 msgid ""
21057 "There are several proprietary tools for resizing partitions.  We won't "
21058 "mention any here."
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../resize/virt-resize.pod:532
21063 msgid ""
21064 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21065 "operations on disk images.  They can resize and move partitions, but I don't "
21066 "think they can do anything with the contents, and they certainly don't "
21067 "understand LVM."
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../resize/virt-resize.pod:537
21072 msgid ""
21073 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21074 "but at a much lower level.  You will probably end up hand-calculating sector "
21075 "offsets, which is something that virt-resize was designed to avoid.  If you "
21076 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21077 "I<--debug> flag."
21078 msgstr ""
21079
21080 #. type: textblock
21081 #: ../resize/virt-resize.pod:552
21082 msgid ""
21083 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21084 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21085 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21086 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21087 "L<http://libguestfs.org/>."
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../ruby/examples/guestfs-ruby.pod:5
21092 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21093 msgstr ""
21094
21095 #. type: verbatim
21096 #: ../ruby/examples/guestfs-ruby.pod:9
21097 #, no-wrap
21098 msgid ""
21099 " require 'guestfs'\n"
21100 " g = Guestfs::Guestfs.new()\n"
21101 " g.add_drive_opts(\"disk.img\",\n"
21102 "                  :readonly => 1, :format => \"raw\")\n"
21103 " g.launch()\n"
21104 "\n"
21105 msgstr ""
21106
21107 #. type: textblock
21108 #: ../ruby/examples/guestfs-ruby.pod:17
21109 msgid ""
21110 "This manual page documents how to call libguestfs from the Ruby programming "
21111 "language.  This page just documents the differences from the C API and gives "
21112 "some examples.  If you are not familiar with using libguestfs, you also need "
21113 "to read L<guestfs(3)>."
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../ruby/examples/guestfs-ruby.pod:24
21118 msgid ""
21119 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21120 "This has a single parameter which is the error message (a string)."
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../ruby/examples/guestfs-ruby.pod:38
21125 msgid ""
21126 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
21127 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21128 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21129 msgstr ""
21130
21131 #. type: =head2
21132 #: ../src/guestfs-actions.pod:1
21133 msgid "guestfs_add_cdrom"
21134 msgstr ""
21135
21136 #. type: verbatim
21137 #: ../src/guestfs-actions.pod:3
21138 #, no-wrap
21139 msgid ""
21140 " int\n"
21141 " guestfs_add_cdrom (guestfs_h *g,\n"
21142 "                    const char *filename);\n"
21143 "\n"
21144 msgstr ""
21145
21146 #. type: textblock
21147 #: ../src/guestfs-actions.pod:17
21148 msgid ""
21149 "This call checks for the existence of C<filename>.  This stops you from "
21150 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21151 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21152 "instead."
21153 msgstr ""
21154
21155 #. type: textblock
21156 #: ../src/guestfs-actions.pod:24
21157 msgid ""
21158 "If you just want to add an ISO file (often you use this as an efficient way "
21159 "to transfer large files into the guest), then you should probably use "
21160 "C<guestfs_add_drive_ro> instead."
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../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:422 ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041 ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360 ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508 ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151 ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205 ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253 ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4942 ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065 ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5250 ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589 ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672 ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066 ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092 ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129 ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296 ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499 ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6566 ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6721 ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915 ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941 ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114 ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164 ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218 ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270 ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422 ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451 ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680 ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7773 ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
21165 msgid "This function returns 0 on success or -1 on error."
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:275
21170 msgid ""
21171 "This function is deprecated.  In new code, use the "
21172 "L</guestfs_add_drive_opts> call instead."
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217 ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467 ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083 ../src/guestfs-actions.pod:7606
21177 msgid "(Added in 0.3)"
21178 msgstr ""
21179
21180 #. type: =head2
21181 #: ../src/guestfs-actions.pod:41
21182 msgid "guestfs_add_domain"
21183 msgstr ""
21184
21185 #. type: verbatim
21186 #: ../src/guestfs-actions.pod:43
21187 #, no-wrap
21188 msgid ""
21189 " int\n"
21190 " guestfs_add_domain (guestfs_h *g,\n"
21191 "                     const char *dom,\n"
21192 "                     ...);\n"
21193 "\n"
21194 msgstr ""
21195
21196 #. type: textblock
21197 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:5178
21198 msgid ""
21199 "You may supply a list of optional arguments to this call.  Use zero or more "
21200 "of the following pairs of parameters, and terminate the list with C<-1> on "
21201 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21202 msgstr ""
21203
21204 #. type: verbatim
21205 #: ../src/guestfs-actions.pod:53
21206 #, no-wrap
21207 msgid ""
21208 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21209 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21210 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21211 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21212 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21213 "\n"
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../src/guestfs-actions.pod:59
21218 msgid ""
21219 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21220 "It works by connecting to libvirt, requesting the domain and domain XML from "
21221 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21222 "one."
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../src/guestfs-actions.pod:94
21227 msgid ""
21228 "The other optional parameters are passed directly through to "
21229 "C<guestfs_add_drive_opts>."
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380 ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137 ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7643
21234 msgid "On error this function returns -1."
21235 msgstr ""
21236
21237 #. type: textblock
21238 #: ../src/guestfs-actions.pod:99
21239 msgid "(Added in 1.7.4)"
21240 msgstr ""
21241
21242 #. type: =head2
21243 #: ../src/guestfs-actions.pod:101
21244 msgid "guestfs_add_domain_va"
21245 msgstr ""
21246
21247 #. type: verbatim
21248 #: ../src/guestfs-actions.pod:103
21249 #, no-wrap
21250 msgid ""
21251 " int\n"
21252 " guestfs_add_domain_va (guestfs_h *g,\n"
21253 "                        const char *dom,\n"
21254 "                        va_list args);\n"
21255 "\n"
21256 msgstr ""
21257
21258 #. type: textblock
21259 #: ../src/guestfs-actions.pod:108
21260 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21261 msgstr ""
21262
21263 #. type: textblock
21264 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
21265 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21266 msgstr ""
21267
21268 #. type: =head2
21269 #: ../src/guestfs-actions.pod:112
21270 msgid "guestfs_add_domain_argv"
21271 msgstr ""
21272
21273 #. type: verbatim
21274 #: ../src/guestfs-actions.pod:114
21275 #, no-wrap
21276 msgid ""
21277 " int\n"
21278 " guestfs_add_domain_argv (guestfs_h *g,\n"
21279 "                          const char *dom,\n"
21280 "                          const struct guestfs_add_domain_argv *optargs);\n"
21281 "\n"
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../src/guestfs-actions.pod:119
21286 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21287 msgstr ""
21288
21289 #. type: =head2
21290 #: ../src/guestfs-actions.pod:123
21291 msgid "guestfs_add_drive"
21292 msgstr ""
21293
21294 #. type: verbatim
21295 #: ../src/guestfs-actions.pod:125
21296 #, no-wrap
21297 msgid ""
21298 " int\n"
21299 " guestfs_add_drive (guestfs_h *g,\n"
21300 "                    const char *filename);\n"
21301 "\n"
21302 msgstr ""
21303
21304 #. type: textblock
21305 #: ../src/guestfs-actions.pod:129
21306 msgid ""
21307 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21308 "optional parameters, so the disk is added writable, with the format being "
21309 "detected automatically."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../src/guestfs-actions.pod:133
21314 msgid ""
21315 "Automatic detection of the format opens you up to a potential security hole "
21316 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21317 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21318 "you should think about replacing calls to this function with calls to "
21319 "C<guestfs_add_drive_opts>, and specifying the format."
21320 msgstr ""
21321
21322 #. type: =head2
21323 #: ../src/guestfs-actions.pod:144
21324 msgid "guestfs_add_drive_opts"
21325 msgstr ""
21326
21327 #. type: verbatim
21328 #: ../src/guestfs-actions.pod:146
21329 #, no-wrap
21330 msgid ""
21331 " int\n"
21332 " guestfs_add_drive_opts (guestfs_h *g,\n"
21333 "                         const char *filename,\n"
21334 "                         ...);\n"
21335 "\n"
21336 msgstr ""
21337
21338 #. type: verbatim
21339 #: ../src/guestfs-actions.pod:156
21340 #, no-wrap
21341 msgid ""
21342 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21343 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21344 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21345 "\n"
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../src/guestfs-actions.pod:185
21350 msgid ""
21351 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21352 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21353 "Possible formats include C<raw> and C<qcow2>."
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../src/guestfs-actions.pod:196
21358 msgid ""
21359 "This rarely-used option lets you emulate the behaviour of the deprecated "
21360 "C<guestfs_add_drive_with_if> call (q.v.)"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../src/guestfs-actions.pod:203
21365 msgid "(Added in 1.5.23)"
21366 msgstr ""
21367
21368 #. type: =head2
21369 #: ../src/guestfs-actions.pod:205
21370 msgid "guestfs_add_drive_opts_va"
21371 msgstr ""
21372
21373 #. type: verbatim
21374 #: ../src/guestfs-actions.pod:207
21375 #, no-wrap
21376 msgid ""
21377 " int\n"
21378 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21379 "                            const char *filename,\n"
21380 "                            va_list args);\n"
21381 "\n"
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../src/guestfs-actions.pod:212
21386 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21387 msgstr ""
21388
21389 #. type: =head2
21390 #: ../src/guestfs-actions.pod:216
21391 msgid "guestfs_add_drive_opts_argv"
21392 msgstr ""
21393
21394 #. type: verbatim
21395 #: ../src/guestfs-actions.pod:218
21396 #, no-wrap
21397 msgid ""
21398 " int\n"
21399 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21400 "                              const char *filename,\n"
21401 "                              const struct guestfs_add_drive_opts_argv "
21402 "*optargs);\n"
21403 "\n"
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../src/guestfs-actions.pod:223
21408 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21409 msgstr ""
21410
21411 #. type: =head2
21412 #: ../src/guestfs-actions.pod:227
21413 msgid "guestfs_add_drive_ro"
21414 msgstr ""
21415
21416 #. type: verbatim
21417 #: ../src/guestfs-actions.pod:229
21418 #, no-wrap
21419 msgid ""
21420 " int\n"
21421 " guestfs_add_drive_ro (guestfs_h *g,\n"
21422 "                       const char *filename);\n"
21423 "\n"
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../src/guestfs-actions.pod:233
21428 msgid ""
21429 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21430 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21431 "disk is added read-only, with the format being detected automatically."
21432 msgstr ""
21433
21434 #. type: textblock
21435 #: ../src/guestfs-actions.pod:240
21436 msgid "(Added in 1.0.38)"
21437 msgstr ""
21438
21439 #. type: =head2
21440 #: ../src/guestfs-actions.pod:242
21441 msgid "guestfs_add_drive_ro_with_if"
21442 msgstr ""
21443
21444 #. type: verbatim
21445 #: ../src/guestfs-actions.pod:244
21446 #, no-wrap
21447 msgid ""
21448 " int\n"
21449 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
21450 "                               const char *filename,\n"
21451 "                               const char *iface);\n"
21452 "\n"
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../src/guestfs-actions.pod:249
21457 msgid ""
21458 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
21459 "QEMU interface emulation to use at run time."
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2431
21464 msgid "(Added in 1.0.84)"
21465 msgstr ""
21466
21467 #. type: =head2
21468 #: ../src/guestfs-actions.pod:263
21469 msgid "guestfs_add_drive_with_if"
21470 msgstr ""
21471
21472 #. type: verbatim
21473 #: ../src/guestfs-actions.pod:265
21474 #, no-wrap
21475 msgid ""
21476 " int\n"
21477 " guestfs_add_drive_with_if (guestfs_h *g,\n"
21478 "                            const char *filename,\n"
21479 "                            const char *iface);\n"
21480 "\n"
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../src/guestfs-actions.pod:270
21485 msgid ""
21486 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
21487 "QEMU interface emulation to use at run time."
21488 msgstr ""
21489
21490 #. type: =head2
21491 #: ../src/guestfs-actions.pod:284
21492 msgid "guestfs_aug_clear"
21493 msgstr ""
21494
21495 #. type: verbatim
21496 #: ../src/guestfs-actions.pod:286
21497 #, no-wrap
21498 msgid ""
21499 " int\n"
21500 " guestfs_aug_clear (guestfs_h *g,\n"
21501 "                    const char *augpath);\n"
21502 "\n"
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
21507 msgid "(Added in 1.3.4)"
21508 msgstr ""
21509
21510 #. type: =head2
21511 #: ../src/guestfs-actions.pod:297
21512 msgid "guestfs_aug_close"
21513 msgstr ""
21514
21515 #. type: verbatim
21516 #: ../src/guestfs-actions.pod:299
21517 #, no-wrap
21518 msgid ""
21519 " int\n"
21520 " guestfs_aug_close (guestfs_h *g);\n"
21521 "\n"
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../src/guestfs-actions.pod:302
21526 msgid ""
21527 "Close the current Augeas handle and free up any resources used by it.  After "
21528 "calling this, you have to call C<guestfs_aug_init> again before you can use "
21529 "any other Augeas functions."
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:5846
21534 msgid "(Added in 0.7)"
21535 msgstr ""
21536
21537 #. type: =head2
21538 #: ../src/guestfs-actions.pod:311
21539 msgid "guestfs_aug_defnode"
21540 msgstr ""
21541
21542 #. type: verbatim
21543 #: ../src/guestfs-actions.pod:313
21544 #, no-wrap
21545 msgid ""
21546 " struct guestfs_int_bool *\n"
21547 " guestfs_aug_defnode (guestfs_h *g,\n"
21548 "                      const char *name,\n"
21549 "                      const char *expr,\n"
21550 "                      const char *val);\n"
21551 "\n"
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../src/guestfs-actions.pod:322
21556 msgid ""
21557 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21558 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
21559 "containing that single node."
21560 msgstr ""
21561
21562 #. type: textblock
21563 #: ../src/guestfs-actions.pod:330
21564 msgid ""
21565 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
21566 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
21567 msgstr ""
21568
21569 #. type: =head2
21570 #: ../src/guestfs-actions.pod:336
21571 msgid "guestfs_aug_defvar"
21572 msgstr ""
21573
21574 #. type: verbatim
21575 #: ../src/guestfs-actions.pod:338
21576 #, no-wrap
21577 msgid ""
21578 " int\n"
21579 " guestfs_aug_defvar (guestfs_h *g,\n"
21580 "                     const char *name,\n"
21581 "                     const char *expr);\n"
21582 "\n"
21583 msgstr ""
21584
21585 #. type: =head2
21586 #: ../src/guestfs-actions.pod:354
21587 msgid "guestfs_aug_get"
21588 msgstr ""
21589
21590 #. type: verbatim
21591 #: ../src/guestfs-actions.pod:356
21592 #, no-wrap
21593 msgid ""
21594 " char *\n"
21595 " guestfs_aug_get (guestfs_h *g,\n"
21596 "                  const char *augpath);\n"
21597 "\n"
21598 msgstr ""
21599
21600 #. type: textblock
21601 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899 ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2204 ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076 ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169 ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574 ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922 ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7878
21602 msgid ""
21603 "This function returns a string, or NULL on error.  I<The caller must free "
21604 "the returned string after use>."
21605 msgstr ""
21606
21607 #. type: =head2
21608 #: ../src/guestfs-actions.pod:368
21609 msgid "guestfs_aug_init"
21610 msgstr ""
21611
21612 #. type: verbatim
21613 #: ../src/guestfs-actions.pod:370
21614 #, no-wrap
21615 msgid ""
21616 " int\n"
21617 " guestfs_aug_init (guestfs_h *g,\n"
21618 "                   const char *root,\n"
21619 "                   int flags);\n"
21620 "\n"
21621 msgstr ""
21622
21623 #. type: textblock
21624 #: ../src/guestfs-actions.pod:379
21625 msgid "You must call this before using any other C<guestfs_aug_*> commands."
21626 msgstr ""
21627
21628 #. type: textblock
21629 #: ../src/guestfs-actions.pod:414
21630 msgid "Do not load the tree in C<guestfs_aug_init>."
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../src/guestfs-actions.pod:418
21635 msgid "To close the handle, you can call C<guestfs_aug_close>."
21636 msgstr ""
21637
21638 #. type: =head2
21639 #: ../src/guestfs-actions.pod:426
21640 msgid "guestfs_aug_insert"
21641 msgstr ""
21642
21643 #. type: verbatim
21644 #: ../src/guestfs-actions.pod:428
21645 #, no-wrap
21646 msgid ""
21647 " int\n"
21648 " guestfs_aug_insert (guestfs_h *g,\n"
21649 "                     const char *augpath,\n"
21650 "                     const char *label,\n"
21651 "                     int before);\n"
21652 "\n"
21653 msgstr ""
21654
21655 #. type: =head2
21656 #: ../src/guestfs-actions.pod:446
21657 msgid "guestfs_aug_load"
21658 msgstr ""
21659
21660 #. type: verbatim
21661 #: ../src/guestfs-actions.pod:448
21662 #, no-wrap
21663 msgid ""
21664 " int\n"
21665 " guestfs_aug_load (guestfs_h *g);\n"
21666 "\n"
21667 msgstr ""
21668
21669 #. type: =head2
21670 #: ../src/guestfs-actions.pod:460
21671 msgid "guestfs_aug_ls"
21672 msgstr ""
21673
21674 #. type: verbatim
21675 #: ../src/guestfs-actions.pod:462
21676 #, no-wrap
21677 msgid ""
21678 " char **\n"
21679 " guestfs_aug_ls (guestfs_h *g,\n"
21680 "                 const char *augpath);\n"
21681 "\n"
21682 msgstr ""
21683
21684 #. type: textblock
21685 #: ../src/guestfs-actions.pod:466
21686 msgid ""
21687 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
21688 "sorting the resulting nodes into alphabetical order."
21689 msgstr ""
21690
21691 #. type: textblock
21692 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485 ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138 ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756 ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923 ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993 ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730 ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835 ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7919
21693 msgid ""
21694 "This function returns a NULL-terminated array of strings (like "
21695 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
21696 "strings and the array after use>."
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063 ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080 ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453 ../src/guestfs-actions.pod:7718
21701 msgid "(Added in 0.8)"
21702 msgstr ""
21703
21704 #. type: =head2
21705 #: ../src/guestfs-actions.pod:475
21706 msgid "guestfs_aug_match"
21707 msgstr ""
21708
21709 #. type: verbatim
21710 #: ../src/guestfs-actions.pod:477
21711 #, no-wrap
21712 msgid ""
21713 " char **\n"
21714 " guestfs_aug_match (guestfs_h *g,\n"
21715 "                    const char *augpath);\n"
21716 "\n"
21717 msgstr ""
21718
21719 #. type: =head2
21720 #: ../src/guestfs-actions.pod:491
21721 msgid "guestfs_aug_mv"
21722 msgstr ""
21723
21724 #. type: verbatim
21725 #: ../src/guestfs-actions.pod:493
21726 #, no-wrap
21727 msgid ""
21728 " int\n"
21729 " guestfs_aug_mv (guestfs_h *g,\n"
21730 "                 const char *src,\n"
21731 "                 const char *dest);\n"
21732 "\n"
21733 msgstr ""
21734
21735 #. type: =head2
21736 #: ../src/guestfs-actions.pod:505
21737 msgid "guestfs_aug_rm"
21738 msgstr ""
21739
21740 #. type: verbatim
21741 #: ../src/guestfs-actions.pod:507
21742 #, no-wrap
21743 msgid ""
21744 " int\n"
21745 " guestfs_aug_rm (guestfs_h *g,\n"
21746 "                 const char *augpath);\n"
21747 "\n"
21748 msgstr ""
21749
21750 #. type: =head2
21751 #: ../src/guestfs-actions.pod:519
21752 msgid "guestfs_aug_save"
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../src/guestfs-actions.pod:521
21757 #, no-wrap
21758 msgid ""
21759 " int\n"
21760 " guestfs_aug_save (guestfs_h *g);\n"
21761 "\n"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../src/guestfs-actions.pod:526
21766 msgid ""
21767 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
21768 "are saved."
21769 msgstr ""
21770
21771 #. type: =head2
21772 #: ../src/guestfs-actions.pod:533
21773 msgid "guestfs_aug_set"
21774 msgstr ""
21775
21776 #. type: verbatim
21777 #: ../src/guestfs-actions.pod:535
21778 #, no-wrap
21779 msgid ""
21780 " int\n"
21781 " guestfs_aug_set (guestfs_h *g,\n"
21782 "                  const char *augpath,\n"
21783 "                  const char *val);\n"
21784 "\n"
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../src/guestfs-actions.pod:542
21789 msgid ""
21790 "In the Augeas API, it is possible to clear a node by setting the value to "
21791 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
21792 "this call.  Instead you must use the C<guestfs_aug_clear> call."
21793 msgstr ""
21794
21795 #. type: =head2
21796 #: ../src/guestfs-actions.pod:551
21797 msgid "guestfs_available"
21798 msgstr ""
21799
21800 #. type: verbatim
21801 #: ../src/guestfs-actions.pod:553
21802 #, no-wrap
21803 msgid ""
21804 " int\n"
21805 " guestfs_available (guestfs_h *g,\n"
21806 "                    char *const *groups);\n"
21807 "\n"
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../src/guestfs-actions.pod:561
21812 msgid ""
21813 "The libguestfs groups, and the functions that those groups correspond to, "
21814 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
21815 "runtime by calling C<guestfs_available_all_groups>."
21816 msgstr ""
21817
21818 #. type: textblock
21819 #: ../src/guestfs-actions.pod:585
21820 msgid "You must call C<guestfs_launch> before calling this function."
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../src/guestfs-actions.pod:607
21825 msgid ""
21826 "This call was added in version C<1.0.80>.  In previous versions of "
21827 "libguestfs all you could do would be to speculatively execute a command to "
21828 "find out if the daemon implemented it.  See also C<guestfs_version>."
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
21833 msgid "(Added in 1.0.80)"
21834 msgstr ""
21835
21836 #. type: =head2
21837 #: ../src/guestfs-actions.pod:618
21838 msgid "guestfs_available_all_groups"
21839 msgstr ""
21840
21841 #. type: verbatim
21842 #: ../src/guestfs-actions.pod:620
21843 #, no-wrap
21844 msgid ""
21845 " char **\n"
21846 " guestfs_available_all_groups (guestfs_h *g);\n"
21847 "\n"
21848 msgstr ""
21849
21850 #. type: textblock
21851 #: ../src/guestfs-actions.pod:623
21852 msgid ""
21853 "This command returns a list of all optional groups that this daemon knows "
21854 "about.  Note this returns both supported and unsupported groups.  To find "
21855 "out which ones the daemon can actually support you have to call "
21856 "C<guestfs_available> on each member of the returned list."
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../src/guestfs-actions.pod:629
21861 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
21862 msgstr ""
21863
21864 #. type: textblock
21865 #: ../src/guestfs-actions.pod:635
21866 msgid "(Added in 1.3.15)"
21867 msgstr ""
21868
21869 #. type: =head2
21870 #: ../src/guestfs-actions.pod:637
21871 msgid "guestfs_base64_in"
21872 msgstr ""
21873
21874 #. type: verbatim
21875 #: ../src/guestfs-actions.pod:639
21876 #, no-wrap
21877 msgid ""
21878 " int\n"
21879 " guestfs_base64_in (guestfs_h *g,\n"
21880 "                    const char *base64file,\n"
21881 "                    const char *filename);\n"
21882 "\n"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
21887 msgid "(Added in 1.3.5)"
21888 msgstr ""
21889
21890 #. type: =head2
21891 #: ../src/guestfs-actions.pod:651
21892 msgid "guestfs_base64_out"
21893 msgstr ""
21894
21895 #. type: verbatim
21896 #: ../src/guestfs-actions.pod:653
21897 #, no-wrap
21898 msgid ""
21899 " int\n"
21900 " guestfs_base64_out (guestfs_h *g,\n"
21901 "                     const char *filename,\n"
21902 "                     const char *base64file);\n"
21903 "\n"
21904 msgstr ""
21905
21906 #. type: =head2
21907 #: ../src/guestfs-actions.pod:665
21908 msgid "guestfs_blockdev_flushbufs"
21909 msgstr ""
21910
21911 #. type: verbatim
21912 #: ../src/guestfs-actions.pod:667
21913 #, no-wrap
21914 msgid ""
21915 " int\n"
21916 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
21917 "                             const char *device);\n"
21918 "\n"
21919 msgstr ""
21920
21921 #. type: textblock
21922 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
21923 msgid "(Added in 0.9.3)"
21924 msgstr ""
21925
21926 #. type: =head2
21927 #: ../src/guestfs-actions.pod:680
21928 msgid "guestfs_blockdev_getbsz"
21929 msgstr ""
21930
21931 #. type: verbatim
21932 #: ../src/guestfs-actions.pod:682
21933 #, no-wrap
21934 msgid ""
21935 " int\n"
21936 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
21937 "                          const char *device);\n"
21938 "\n"
21939 msgstr ""
21940
21941 #. type: =head2
21942 #: ../src/guestfs-actions.pod:697
21943 msgid "guestfs_blockdev_getro"
21944 msgstr ""
21945
21946 #. type: verbatim
21947 #: ../src/guestfs-actions.pod:699
21948 #, no-wrap
21949 msgid ""
21950 " int\n"
21951 " guestfs_blockdev_getro (guestfs_h *g,\n"
21952 "                         const char *device);\n"
21953 "\n"
21954 msgstr ""
21955
21956 #. type: textblock
21957 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226 ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496 ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:5339
21958 msgid "This function returns a C truth value on success or -1 on error."
21959 msgstr ""
21960
21961 #. type: =head2
21962 #: ../src/guestfs-actions.pod:712
21963 msgid "guestfs_blockdev_getsize64"
21964 msgstr ""
21965
21966 #. type: verbatim
21967 #: ../src/guestfs-actions.pod:714
21968 #, no-wrap
21969 msgid ""
21970 " int64_t\n"
21971 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
21972 "                             const char *device);\n"
21973 "\n"
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../src/guestfs-actions.pod:720
21978 msgid "See also C<guestfs_blockdev_getsz>."
21979 msgstr ""
21980
21981 #. type: =head2
21982 #: ../src/guestfs-actions.pod:728
21983 msgid "guestfs_blockdev_getss"
21984 msgstr ""
21985
21986 #. type: verbatim
21987 #: ../src/guestfs-actions.pod:730
21988 #, no-wrap
21989 msgid ""
21990 " int\n"
21991 " guestfs_blockdev_getss (guestfs_h *g,\n"
21992 "                         const char *device);\n"
21993 "\n"
21994 msgstr ""
21995
21996 #. type: textblock
21997 #: ../src/guestfs-actions.pod:737
21998 msgid ""
21999 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22000 "that)."
22001 msgstr ""
22002
22003 #. type: =head2
22004 #: ../src/guestfs-actions.pod:746
22005 msgid "guestfs_blockdev_getsz"
22006 msgstr ""
22007
22008 #. type: verbatim
22009 #: ../src/guestfs-actions.pod:748
22010 #, no-wrap
22011 msgid ""
22012 " int64_t\n"
22013 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22014 "                         const char *device);\n"
22015 "\n"
22016 msgstr ""
22017
22018 #. type: textblock
22019 #: ../src/guestfs-actions.pod:755
22020 msgid ""
22021 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22022 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22023 msgstr ""
22024
22025 #. type: =head2
22026 #: ../src/guestfs-actions.pod:765
22027 msgid "guestfs_blockdev_rereadpt"
22028 msgstr ""
22029
22030 #. type: verbatim
22031 #: ../src/guestfs-actions.pod:767
22032 #, no-wrap
22033 msgid ""
22034 " int\n"
22035 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22036 "                            const char *device);\n"
22037 "\n"
22038 msgstr ""
22039
22040 #. type: =head2
22041 #: ../src/guestfs-actions.pod:779
22042 msgid "guestfs_blockdev_setbsz"
22043 msgstr ""
22044
22045 #. type: verbatim
22046 #: ../src/guestfs-actions.pod:781
22047 #, no-wrap
22048 msgid ""
22049 " int\n"
22050 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22051 "                          const char *device,\n"
22052 "                          int blocksize);\n"
22053 "\n"
22054 msgstr ""
22055
22056 #. type: =head2
22057 #: ../src/guestfs-actions.pod:797
22058 msgid "guestfs_blockdev_setro"
22059 msgstr ""
22060
22061 #. type: verbatim
22062 #: ../src/guestfs-actions.pod:799
22063 #, no-wrap
22064 msgid ""
22065 " int\n"
22066 " guestfs_blockdev_setro (guestfs_h *g,\n"
22067 "                         const char *device);\n"
22068 "\n"
22069 msgstr ""
22070
22071 #. type: =head2
22072 #: ../src/guestfs-actions.pod:811
22073 msgid "guestfs_blockdev_setrw"
22074 msgstr ""
22075
22076 #. type: verbatim
22077 #: ../src/guestfs-actions.pod:813
22078 #, no-wrap
22079 msgid ""
22080 " int\n"
22081 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22082 "                         const char *device);\n"
22083 "\n"
22084 msgstr ""
22085
22086 #. type: =head2
22087 #: ../src/guestfs-actions.pod:825
22088 msgid "guestfs_btrfs_filesystem_resize"
22089 msgstr ""
22090
22091 #. type: verbatim
22092 #: ../src/guestfs-actions.pod:827
22093 #, no-wrap
22094 msgid ""
22095 " int\n"
22096 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22097 "                                  const char *mountpoint,\n"
22098 "                                  ...);\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../src/guestfs-actions.pod:837
22104 #, no-wrap
22105 msgid ""
22106 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22107 "\n"
22108 msgstr ""
22109
22110 #. type: textblock
22111 #: ../src/guestfs-actions.pod:860
22112 msgid "(Added in 1.11.17)"
22113 msgstr ""
22114
22115 #. type: =head2
22116 #: ../src/guestfs-actions.pod:862
22117 msgid "guestfs_btrfs_filesystem_resize_va"
22118 msgstr ""
22119
22120 #. type: verbatim
22121 #: ../src/guestfs-actions.pod:864
22122 #, no-wrap
22123 msgid ""
22124 " int\n"
22125 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22126 "                                     const char *mountpoint,\n"
22127 "                                     va_list args);\n"
22128 "\n"
22129 msgstr ""
22130
22131 #. type: textblock
22132 #: ../src/guestfs-actions.pod:869
22133 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22134 msgstr ""
22135
22136 #. type: =head2
22137 #: ../src/guestfs-actions.pod:873
22138 msgid "guestfs_btrfs_filesystem_resize_argv"
22139 msgstr ""
22140
22141 #. type: verbatim
22142 #: ../src/guestfs-actions.pod:875
22143 #, no-wrap
22144 msgid ""
22145 " int\n"
22146 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22147 "                                       const char *mountpoint,\n"
22148 "                                       const struct "
22149 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22150 "\n"
22151 msgstr ""
22152
22153 #. type: textblock
22154 #: ../src/guestfs-actions.pod:880
22155 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22156 msgstr ""
22157
22158 #. type: =head2
22159 #: ../src/guestfs-actions.pod:884
22160 msgid "guestfs_case_sensitive_path"
22161 msgstr ""
22162
22163 #. type: verbatim
22164 #: ../src/guestfs-actions.pod:886
22165 #, no-wrap
22166 msgid ""
22167 " char *\n"
22168 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22169 "                              const char *path);\n"
22170 "\n"
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../src/guestfs-actions.pod:912
22175 msgid ""
22176 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22177 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22178 "how the directories were originally created under Windows)."
22179 msgstr ""
22180
22181 #. type: textblock
22182 #: ../src/guestfs-actions.pod:920
22183 msgid "See also C<guestfs_realpath>."
22184 msgstr ""
22185
22186 #. type: textblock
22187 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
22188 msgid "(Added in 1.0.75)"
22189 msgstr ""
22190
22191 #. type: =head2
22192 #: ../src/guestfs-actions.pod:927
22193 msgid "guestfs_cat"
22194 msgstr ""
22195
22196 #. type: verbatim
22197 #: ../src/guestfs-actions.pod:929
22198 #, no-wrap
22199 msgid ""
22200 " char *\n"
22201 " guestfs_cat (guestfs_h *g,\n"
22202 "              const char *path);\n"
22203 "\n"
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../src/guestfs-actions.pod:935
22208 msgid ""
22209 "Note that this function cannot correctly handle binary files (specifically, "
22210 "files containing C<\\0> character which is treated as end of string).  For "
22211 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22212 "functions which have a more complex interface."
22213 msgstr ""
22214
22215 #. type: textblock
22216 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335 ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720 ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540 ../src/guestfs-actions.pod:7554
22217 msgid "(Added in 0.4)"
22218 msgstr ""
22219
22220 #. type: =head2
22221 #: ../src/guestfs-actions.pod:948
22222 msgid "guestfs_checksum"
22223 msgstr ""
22224
22225 #. type: verbatim
22226 #: ../src/guestfs-actions.pod:950
22227 #, no-wrap
22228 msgid ""
22229 " char *\n"
22230 " guestfs_checksum (guestfs_h *g,\n"
22231 "                   const char *csumtype,\n"
22232 "                   const char *path);\n"
22233 "\n"
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../src/guestfs-actions.pod:996
22238 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../src/guestfs-actions.pod:998
22243 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22244 msgstr ""
22245
22246 #. type: textblock
22247 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
22248 msgid "(Added in 1.0.2)"
22249 msgstr ""
22250
22251 #. type: =head2
22252 #: ../src/guestfs-actions.pod:1005
22253 msgid "guestfs_checksum_device"
22254 msgstr ""
22255
22256 #. type: verbatim
22257 #: ../src/guestfs-actions.pod:1007
22258 #, no-wrap
22259 msgid ""
22260 " char *\n"
22261 " guestfs_checksum_device (guestfs_h *g,\n"
22262 "                          const char *csumtype,\n"
22263 "                          const char *device);\n"
22264 "\n"
22265 msgstr ""
22266
22267 #. type: textblock
22268 #: ../src/guestfs-actions.pod:1012
22269 msgid ""
22270 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22271 "device named C<device>.  For the types of checksums supported see the "
22272 "C<guestfs_checksum> command."
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341 ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541 ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7566
22277 msgid "(Added in 1.3.2)"
22278 msgstr ""
22279
22280 #. type: =head2
22281 #: ../src/guestfs-actions.pod:1021
22282 msgid "guestfs_checksums_out"
22283 msgstr ""
22284
22285 #. type: verbatim
22286 #: ../src/guestfs-actions.pod:1023
22287 #, no-wrap
22288 msgid ""
22289 " int\n"
22290 " guestfs_checksums_out (guestfs_h *g,\n"
22291 "                        const char *csumtype,\n"
22292 "                        const char *directory,\n"
22293 "                        const char *sumsfile);\n"
22294 "\n"
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../src/guestfs-actions.pod:1043
22299 msgid "(Added in 1.3.7)"
22300 msgstr ""
22301
22302 #. type: =head2
22303 #: ../src/guestfs-actions.pod:1045
22304 msgid "guestfs_chmod"
22305 msgstr ""
22306
22307 #. type: verbatim
22308 #: ../src/guestfs-actions.pod:1047
22309 #, no-wrap
22310 msgid ""
22311 " int\n"
22312 " guestfs_chmod (guestfs_h *g,\n"
22313 "                int mode,\n"
22314 "                const char *path);\n"
22315 "\n"
22316 msgstr ""
22317
22318 #. type: =head2
22319 #: ../src/guestfs-actions.pod:1065
22320 msgid "guestfs_chown"
22321 msgstr ""
22322
22323 #. type: verbatim
22324 #: ../src/guestfs-actions.pod:1067
22325 #, no-wrap
22326 msgid ""
22327 " int\n"
22328 " guestfs_chown (guestfs_h *g,\n"
22329 "                int owner,\n"
22330 "                int group,\n"
22331 "                const char *path);\n"
22332 "\n"
22333 msgstr ""
22334
22335 #. type: =head2
22336 #: ../src/guestfs-actions.pod:1083
22337 msgid "guestfs_command"
22338 msgstr ""
22339
22340 #. type: verbatim
22341 #: ../src/guestfs-actions.pod:1085
22342 #, no-wrap
22343 msgid ""
22344 " char *\n"
22345 " guestfs_command (guestfs_h *g,\n"
22346 "                  char *const *arguments);\n"
22347 "\n"
22348 msgstr ""
22349
22350 #. type: textblock
22351 #: ../src/guestfs-actions.pod:1094
22352 msgid ""
22353 "The single parameter is an argv-style list of arguments.  The first element "
22354 "is the name of the program to run.  Subsequent elements are parameters.  The "
22355 "list must be non-empty (ie. must contain a program name).  Note that the "
22356 "command runs directly, and is I<not> invoked via the shell (see "
22357 "C<guestfs_sh>)."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145 ../src/guestfs-actions.pod:1610
22362 msgid "(Added in 0.9.1)"
22363 msgstr ""
22364
22365 #. type: =head2
22366 #: ../src/guestfs-actions.pod:1127
22367 msgid "guestfs_command_lines"
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../src/guestfs-actions.pod:1129
22372 #, no-wrap
22373 msgid ""
22374 " char **\n"
22375 " guestfs_command_lines (guestfs_h *g,\n"
22376 "                        char *const *arguments);\n"
22377 "\n"
22378 msgstr ""
22379
22380 #. type: textblock
22381 #: ../src/guestfs-actions.pod:1133
22382 msgid ""
22383 "This is the same as C<guestfs_command>, but splits the result into a list of "
22384 "lines."
22385 msgstr ""
22386
22387 #. type: textblock
22388 #: ../src/guestfs-actions.pod:1136
22389 msgid "See also: C<guestfs_sh_lines>"
22390 msgstr ""
22391
22392 #. type: =head2
22393 #: ../src/guestfs-actions.pod:1147
22394 msgid "guestfs_config"
22395 msgstr ""
22396
22397 #. type: verbatim
22398 #: ../src/guestfs-actions.pod:1149
22399 #, no-wrap
22400 msgid ""
22401 " int\n"
22402 " guestfs_config (guestfs_h *g,\n"
22403 "                 const char *qemuparam,\n"
22404 "                 const char *qemuvalue);\n"
22405 "\n"
22406 msgstr ""
22407
22408 #. type: =head2
22409 #: ../src/guestfs-actions.pod:1167
22410 msgid "guestfs_copy_size"
22411 msgstr ""
22412
22413 #. type: verbatim
22414 #: ../src/guestfs-actions.pod:1169
22415 #, no-wrap
22416 msgid ""
22417 " int\n"
22418 " guestfs_copy_size (guestfs_h *g,\n"
22419 "                    const char *src,\n"
22420 "                    const char *dest,\n"
22421 "                    int64_t size);\n"
22422 "\n"
22423 msgstr ""
22424
22425 #. type: textblock
22426 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306 ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781 ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238 ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7794
22427 msgid ""
22428 "This long-running command can generate progress notification messages so "
22429 "that the caller can display a progress bar or indicator.  To receive these "
22430 "messages, the caller must register a progress event callback.  See "
22431 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
22432 msgstr ""
22433
22434 #. type: textblock
22435 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473 ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
22436 msgid "(Added in 1.0.87)"
22437 msgstr ""
22438
22439 #. type: =head2
22440 #: ../src/guestfs-actions.pod:1190
22441 msgid "guestfs_cp"
22442 msgstr ""
22443
22444 #. type: verbatim
22445 #: ../src/guestfs-actions.pod:1192
22446 #, no-wrap
22447 msgid ""
22448 " int\n"
22449 " guestfs_cp (guestfs_h *g,\n"
22450 "             const char *src,\n"
22451 "             const char *dest);\n"
22452 "\n"
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:5591
22457 msgid "(Added in 1.0.18)"
22458 msgstr ""
22459
22460 #. type: =head2
22461 #: ../src/guestfs-actions.pod:1204
22462 msgid "guestfs_cp_a"
22463 msgstr ""
22464
22465 #. type: verbatim
22466 #: ../src/guestfs-actions.pod:1206
22467 #, no-wrap
22468 msgid ""
22469 " int\n"
22470 " guestfs_cp_a (guestfs_h *g,\n"
22471 "               const char *src,\n"
22472 "               const char *dest);\n"
22473 "\n"
22474 msgstr ""
22475
22476 #. type: =head2
22477 #: ../src/guestfs-actions.pod:1218
22478 msgid "guestfs_dd"
22479 msgstr ""
22480
22481 #. type: verbatim
22482 #: ../src/guestfs-actions.pod:1220
22483 #, no-wrap
22484 msgid ""
22485 " int\n"
22486 " guestfs_dd (guestfs_h *g,\n"
22487 "             const char *src,\n"
22488 "             const char *dest);\n"
22489 "\n"
22490 msgstr ""
22491
22492 #. type: textblock
22493 #: ../src/guestfs-actions.pod:1230
22494 msgid ""
22495 "If the destination is a device, it must be as large or larger than the "
22496 "source file or device, otherwise the copy will fail.  This command cannot do "
22497 "partial copies (see C<guestfs_copy_size>)."
22498 msgstr ""
22499
22500 #. type: =head2
22501 #: ../src/guestfs-actions.pod:1238
22502 msgid "guestfs_df"
22503 msgstr ""
22504
22505 #. type: verbatim
22506 #: ../src/guestfs-actions.pod:1240
22507 #, no-wrap
22508 msgid ""
22509 " char *\n"
22510 " guestfs_df (guestfs_h *g);\n"
22511 "\n"
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
22516 msgid ""
22517 "This command is mostly useful for interactive sessions.  It is I<not> "
22518 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
22519 "from programs."
22520 msgstr ""
22521
22522 #. type: textblock
22523 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7645
22524 msgid "(Added in 1.0.54)"
22525 msgstr ""
22526
22527 #. type: =head2
22528 #: ../src/guestfs-actions.pod:1254
22529 msgid "guestfs_df_h"
22530 msgstr ""
22531
22532 #. type: verbatim
22533 #: ../src/guestfs-actions.pod:1256
22534 #, no-wrap
22535 msgid ""
22536 " char *\n"
22537 " guestfs_df_h (guestfs_h *g);\n"
22538 "\n"
22539 msgstr ""
22540
22541 #. type: =head2
22542 #: ../src/guestfs-actions.pod:1271
22543 msgid "guestfs_dmesg"
22544 msgstr ""
22545
22546 #. type: verbatim
22547 #: ../src/guestfs-actions.pod:1273
22548 #, no-wrap
22549 msgid ""
22550 " char *\n"
22551 " guestfs_dmesg (guestfs_h *g);\n"
22552 "\n"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../src/guestfs-actions.pod:1280
22557 msgid ""
22558 "Another way to get the same information is to enable verbose messages with "
22559 "C<guestfs_set_verbose> or by setting the environment variable "
22560 "C<LIBGUESTFS_DEBUG=1> before running the program."
22561 msgstr ""
22562
22563 #. type: =head2
22564 #: ../src/guestfs-actions.pod:1290
22565 msgid "guestfs_download"
22566 msgstr ""
22567
22568 #. type: verbatim
22569 #: ../src/guestfs-actions.pod:1292
22570 #, no-wrap
22571 msgid ""
22572 " int\n"
22573 " guestfs_download (guestfs_h *g,\n"
22574 "                   const char *remotefilename,\n"
22575 "                   const char *filename);\n"
22576 "\n"
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../src/guestfs-actions.pod:1302
22581 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
22582 msgstr ""
22583
22584 #. type: =head2
22585 #: ../src/guestfs-actions.pod:1313
22586 msgid "guestfs_download_offset"
22587 msgstr ""
22588
22589 #. type: verbatim
22590 #: ../src/guestfs-actions.pod:1315
22591 #, no-wrap
22592 msgid ""
22593 " int\n"
22594 " guestfs_download_offset (guestfs_h *g,\n"
22595 "                          const char *remotefilename,\n"
22596 "                          const char *filename,\n"
22597 "                          int64_t offset,\n"
22598 "                          int64_t size);\n"
22599 "\n"
22600 msgstr ""
22601
22602 #. type: textblock
22603 #: ../src/guestfs-actions.pod:1328
22604 msgid ""
22605 "Note that there is no limit on the amount of data that can be downloaded "
22606 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
22607 "full amount unless an error occurs."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../src/guestfs-actions.pod:1333
22612 msgid "See also C<guestfs_download>, C<guestfs_pread>."
22613 msgstr ""
22614
22615 #. type: textblock
22616 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
22617 msgid "(Added in 1.5.17)"
22618 msgstr ""
22619
22620 #. type: =head2
22621 #: ../src/guestfs-actions.pod:1344
22622 msgid "guestfs_drop_caches"
22623 msgstr ""
22624
22625 #. type: verbatim
22626 #: ../src/guestfs-actions.pod:1346
22627 #, no-wrap
22628 msgid ""
22629 " int\n"
22630 " guestfs_drop_caches (guestfs_h *g,\n"
22631 "                      int whattodrop);\n"
22632 "\n"
22633 msgstr ""
22634
22635 #. type: =head2
22636 #: ../src/guestfs-actions.pod:1364
22637 msgid "guestfs_du"
22638 msgstr ""
22639
22640 #. type: verbatim
22641 #: ../src/guestfs-actions.pod:1366
22642 #, no-wrap
22643 msgid ""
22644 " int64_t\n"
22645 " guestfs_du (guestfs_h *g,\n"
22646 "             const char *path);\n"
22647 "\n"
22648 msgstr ""
22649
22650 #. type: =head2
22651 #: ../src/guestfs-actions.pod:1389
22652 msgid "guestfs_e2fsck_f"
22653 msgstr ""
22654
22655 #. type: verbatim
22656 #: ../src/guestfs-actions.pod:1391
22657 #, no-wrap
22658 msgid ""
22659 " int\n"
22660 " guestfs_e2fsck_f (guestfs_h *g,\n"
22661 "                   const char *device);\n"
22662 "\n"
22663 msgstr ""
22664
22665 #. type: textblock
22666 #: ../src/guestfs-actions.pod:1399
22667 msgid ""
22668 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
22669 "Normally you should use C<guestfs_fsck>."
22670 msgstr ""
22671
22672 #. type: textblock
22673 #: ../src/guestfs-actions.pod:1404
22674 msgid "(Added in 1.0.29)"
22675 msgstr ""
22676
22677 #. type: =head2
22678 #: ../src/guestfs-actions.pod:1406
22679 msgid "guestfs_echo_daemon"
22680 msgstr ""
22681
22682 #. type: verbatim
22683 #: ../src/guestfs-actions.pod:1408
22684 #, no-wrap
22685 msgid ""
22686 " char *\n"
22687 " guestfs_echo_daemon (guestfs_h *g,\n"
22688 "                      char *const *words);\n"
22689 "\n"
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../src/guestfs-actions.pod:1417
22694 msgid "See also C<guestfs_ping_daemon>."
22695 msgstr ""
22696
22697 #. type: textblock
22698 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:6448
22699 msgid "(Added in 1.0.69)"
22700 msgstr ""
22701
22702 #. type: =head2
22703 #: ../src/guestfs-actions.pod:1424
22704 msgid "guestfs_egrep"
22705 msgstr ""
22706
22707 #. type: verbatim
22708 #: ../src/guestfs-actions.pod:1426
22709 #, no-wrap
22710 msgid ""
22711 " char **\n"
22712 " guestfs_egrep (guestfs_h *g,\n"
22713 "                const char *regex,\n"
22714 "                const char *path);\n"
22715 "\n"
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460 ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852 ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894 ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974 ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917 ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756 ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861 ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
22720 msgid "(Added in 1.0.66)"
22721 msgstr ""
22722
22723 #. type: =head2
22724 #: ../src/guestfs-actions.pod:1443
22725 msgid "guestfs_egrepi"
22726 msgstr ""
22727
22728 #. type: verbatim
22729 #: ../src/guestfs-actions.pod:1445
22730 #, no-wrap
22731 msgid ""
22732 " char **\n"
22733 " guestfs_egrepi (guestfs_h *g,\n"
22734 "                 const char *regex,\n"
22735 "                 const char *path);\n"
22736 "\n"
22737 msgstr ""
22738
22739 #. type: =head2
22740 #: ../src/guestfs-actions.pod:1462
22741 msgid "guestfs_equal"
22742 msgstr ""
22743
22744 #. type: verbatim
22745 #: ../src/guestfs-actions.pod:1464
22746 #, no-wrap
22747 msgid ""
22748 " int\n"
22749 " guestfs_equal (guestfs_h *g,\n"
22750 "                const char *file1,\n"
22751 "                const char *file2);\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: =head2
22756 #: ../src/guestfs-actions.pod:1478
22757 msgid "guestfs_exists"
22758 msgstr ""
22759
22760 #. type: verbatim
22761 #: ../src/guestfs-actions.pod:1480
22762 #, no-wrap
22763 msgid ""
22764 " int\n"
22765 " guestfs_exists (guestfs_h *g,\n"
22766 "                 const char *path);\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: textblock
22771 #: ../src/guestfs-actions.pod:1487
22772 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
22773 msgstr ""
22774
22775 #. type: =head2
22776 #: ../src/guestfs-actions.pod:1493
22777 msgid "guestfs_fallocate"
22778 msgstr ""
22779
22780 #. type: verbatim
22781 #: ../src/guestfs-actions.pod:1495
22782 #, no-wrap
22783 msgid ""
22784 " int\n"
22785 " guestfs_fallocate (guestfs_h *g,\n"
22786 "                    const char *path,\n"
22787 "                    int len);\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: textblock
22792 #: ../src/guestfs-actions.pod:1510
22793 msgid ""
22794 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
22795 "call instead."
22796 msgstr ""
22797
22798 #. type: =head2
22799 #: ../src/guestfs-actions.pod:1519
22800 msgid "guestfs_fallocate64"
22801 msgstr ""
22802
22803 #. type: verbatim
22804 #: ../src/guestfs-actions.pod:1521
22805 #, no-wrap
22806 msgid ""
22807 " int\n"
22808 " guestfs_fallocate64 (guestfs_h *g,\n"
22809 "                      const char *path,\n"
22810 "                      int64_t len);\n"
22811 "\n"
22812 msgstr ""
22813
22814 #. type: textblock
22815 #: ../src/guestfs-actions.pod:1530
22816 msgid ""
22817 "Note that this call allocates disk blocks for the file.  To create a sparse "
22818 "file use C<guestfs_truncate_size> instead."
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../src/guestfs-actions.pod:1533
22823 msgid ""
22824 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
22825 "oversight it only allowed 30 bit lengths to be specified, effectively "
22826 "limiting the maximum size of files created through that call to 1GB."
22827 msgstr ""
22828
22829 #. type: textblock
22830 #: ../src/guestfs-actions.pod:1544
22831 msgid "(Added in 1.3.17)"
22832 msgstr ""
22833
22834 #. type: =head2
22835 #: ../src/guestfs-actions.pod:1546
22836 msgid "guestfs_fgrep"
22837 msgstr ""
22838
22839 #. type: verbatim
22840 #: ../src/guestfs-actions.pod:1548
22841 #, no-wrap
22842 msgid ""
22843 " char **\n"
22844 " guestfs_fgrep (guestfs_h *g,\n"
22845 "                const char *pattern,\n"
22846 "                const char *path);\n"
22847 "\n"
22848 msgstr ""
22849
22850 #. type: =head2
22851 #: ../src/guestfs-actions.pod:1565
22852 msgid "guestfs_fgrepi"
22853 msgstr ""
22854
22855 #. type: verbatim
22856 #: ../src/guestfs-actions.pod:1567
22857 #, no-wrap
22858 msgid ""
22859 " char **\n"
22860 " guestfs_fgrepi (guestfs_h *g,\n"
22861 "                 const char *pattern,\n"
22862 "                 const char *path);\n"
22863 "\n"
22864 msgstr ""
22865
22866 #. type: =head2
22867 #: ../src/guestfs-actions.pod:1584
22868 msgid "guestfs_file"
22869 msgstr ""
22870
22871 #. type: verbatim
22872 #: ../src/guestfs-actions.pod:1586
22873 #, no-wrap
22874 msgid ""
22875 " char *\n"
22876 " guestfs_file (guestfs_h *g,\n"
22877 "               const char *path);\n"
22878 "\n"
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../src/guestfs-actions.pod:1604
22883 msgid ""
22884 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
22885 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
22886 msgstr ""
22887
22888 #. type: =head2
22889 #: ../src/guestfs-actions.pod:1612
22890 msgid "guestfs_file_architecture"
22891 msgstr ""
22892
22893 #. type: verbatim
22894 #: ../src/guestfs-actions.pod:1614
22895 #, no-wrap
22896 msgid ""
22897 " char *\n"
22898 " guestfs_file_architecture (guestfs_h *g,\n"
22899 "                            const char *filename);\n"
22900 "\n"
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409 ../src/guestfs-actions.pod:3541
22905 msgid "(Added in 1.5.3)"
22906 msgstr ""
22907
22908 #. type: =head2
22909 #: ../src/guestfs-actions.pod:1724
22910 msgid "guestfs_filesize"
22911 msgstr ""
22912
22913 #. type: verbatim
22914 #: ../src/guestfs-actions.pod:1726
22915 #, no-wrap
22916 msgid ""
22917 " int64_t\n"
22918 " guestfs_filesize (guestfs_h *g,\n"
22919 "                   const char *file);\n"
22920 "\n"
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../src/guestfs-actions.pod:1732
22925 msgid ""
22926 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
22927 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
22928 "devices, use C<guestfs_blockdev_getsize64>."
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../src/guestfs-actions.pod:1738
22933 msgid "(Added in 1.0.82)"
22934 msgstr ""
22935
22936 #. type: =head2
22937 #: ../src/guestfs-actions.pod:1740
22938 msgid "guestfs_fill"
22939 msgstr ""
22940
22941 #. type: verbatim
22942 #: ../src/guestfs-actions.pod:1742
22943 #, no-wrap
22944 msgid ""
22945 " int\n"
22946 " guestfs_fill (guestfs_h *g,\n"
22947 "               int c,\n"
22948 "               int len,\n"
22949 "               const char *path);\n"
22950 "\n"
22951 msgstr ""
22952
22953 #. type: textblock
22954 #: ../src/guestfs-actions.pod:1752
22955 msgid ""
22956 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
22957 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
22958 "bytes use C<guestfs_fill_pattern>."
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../src/guestfs-actions.pod:1764
22963 msgid "(Added in 1.0.79)"
22964 msgstr ""
22965
22966 #. type: =head2
22967 #: ../src/guestfs-actions.pod:1766
22968 msgid "guestfs_fill_pattern"
22969 msgstr ""
22970
22971 #. type: verbatim
22972 #: ../src/guestfs-actions.pod:1768
22973 #, no-wrap
22974 msgid ""
22975 " int\n"
22976 " guestfs_fill_pattern (guestfs_h *g,\n"
22977 "                       const char *pattern,\n"
22978 "                       int len,\n"
22979 "                       const char *path);\n"
22980 "\n"
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../src/guestfs-actions.pod:1774
22985 msgid ""
22986 "This function is like C<guestfs_fill> except that it creates a new file of "
22987 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
22988 "pattern is truncated if necessary to ensure the length of the file is "
22989 "exactly C<len> bytes."
22990 msgstr ""
22991
22992 #. type: textblock
22993 #: ../src/guestfs-actions.pod:1786
22994 msgid "(Added in 1.3.12)"
22995 msgstr ""
22996
22997 #. type: =head2
22998 #: ../src/guestfs-actions.pod:1788
22999 msgid "guestfs_find"
23000 msgstr ""
23001
23002 #. type: verbatim
23003 #: ../src/guestfs-actions.pod:1790
23004 #, no-wrap
23005 msgid ""
23006 " char **\n"
23007 " guestfs_find (guestfs_h *g,\n"
23008 "               const char *directory);\n"
23009 "\n"
23010 msgstr ""
23011
23012 #. type: textblock
23013 #: ../src/guestfs-actions.pod:1806
23014 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../src/guestfs-actions.pod:1819
23019 msgid "See also C<guestfs_find0>."
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:6009
23024 msgid "(Added in 1.0.27)"
23025 msgstr ""
23026
23027 #. type: =head2
23028 #: ../src/guestfs-actions.pod:1830
23029 msgid "guestfs_find0"
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../src/guestfs-actions.pod:1832
23034 #, no-wrap
23035 msgid ""
23036 " int\n"
23037 " guestfs_find0 (guestfs_h *g,\n"
23038 "                const char *directory,\n"
23039 "                const char *files);\n"
23040 "\n"
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../src/guestfs-actions.pod:1841
23045 msgid ""
23046 "This command works the same way as C<guestfs_find> with the following "
23047 "exceptions:"
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../src/guestfs-actions.pod:1868
23052 msgid "(Added in 1.0.74)"
23053 msgstr ""
23054
23055 #. type: =head2
23056 #: ../src/guestfs-actions.pod:1870
23057 msgid "guestfs_findfs_label"
23058 msgstr ""
23059
23060 #. type: verbatim
23061 #: ../src/guestfs-actions.pod:1872
23062 #, no-wrap
23063 msgid ""
23064 " char *\n"
23065 " guestfs_findfs_label (guestfs_h *g,\n"
23066 "                       const char *label);\n"
23067 "\n"
23068 msgstr ""
23069
23070 #. type: textblock
23071 #: ../src/guestfs-actions.pod:1880
23072 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23073 msgstr ""
23074
23075 #. type: =head2
23076 #: ../src/guestfs-actions.pod:1887
23077 msgid "guestfs_findfs_uuid"
23078 msgstr ""
23079
23080 #. type: verbatim
23081 #: ../src/guestfs-actions.pod:1889
23082 #, no-wrap
23083 msgid ""
23084 " char *\n"
23085 " guestfs_findfs_uuid (guestfs_h *g,\n"
23086 "                      const char *uuid);\n"
23087 "\n"
23088 msgstr ""
23089
23090 #. type: textblock
23091 #: ../src/guestfs-actions.pod:1897
23092 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23093 msgstr ""
23094
23095 #. type: =head2
23096 #: ../src/guestfs-actions.pod:1904
23097 msgid "guestfs_fsck"
23098 msgstr ""
23099
23100 #. type: verbatim
23101 #: ../src/guestfs-actions.pod:1906
23102 #, no-wrap
23103 msgid ""
23104 " int\n"
23105 " guestfs_fsck (guestfs_h *g,\n"
23106 "               const char *fstype,\n"
23107 "               const char *device);\n"
23108 "\n"
23109 msgstr ""
23110
23111 #. type: textblock
23112 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
23113 msgid "(Added in 1.0.16)"
23114 msgstr ""
23115
23116 #. type: =head2
23117 #: ../src/guestfs-actions.pod:1943
23118 msgid "guestfs_get_append"
23119 msgstr ""
23120
23121 #. type: verbatim
23122 #: ../src/guestfs-actions.pod:1945
23123 #, no-wrap
23124 msgid ""
23125 " const char *\n"
23126 " guestfs_get_append (guestfs_h *g);\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../src/guestfs-actions.pod:1953
23132 msgid ""
23133 "This function returns a string which may be NULL.  There is no way to return "
23134 "an error from this function.  The string is owned by the guest handle and "
23135 "must I<not> be freed."
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646 ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
23140 msgid "(Added in 1.0.26)"
23141 msgstr ""
23142
23143 #. type: =head2
23144 #: ../src/guestfs-actions.pod:1959
23145 msgid "guestfs_get_attach_method"
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../src/guestfs-actions.pod:1961
23150 #, no-wrap
23151 msgid ""
23152 " char *\n"
23153 " guestfs_get_attach_method (guestfs_h *g);\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../src/guestfs-actions.pod:1964
23159 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
23164 msgid "(Added in 1.9.8)"
23165 msgstr ""
23166
23167 #. type: =head2
23168 #: ../src/guestfs-actions.pod:1971
23169 msgid "guestfs_get_autosync"
23170 msgstr ""
23171
23172 #. type: verbatim
23173 #: ../src/guestfs-actions.pod:1973
23174 #, no-wrap
23175 msgid ""
23176 " int\n"
23177 " guestfs_get_autosync (guestfs_h *g);\n"
23178 "\n"
23179 msgstr ""
23180
23181 #. type: =head2
23182 #: ../src/guestfs-actions.pod:1982
23183 msgid "guestfs_get_direct"
23184 msgstr ""
23185
23186 #. type: verbatim
23187 #: ../src/guestfs-actions.pod:1984
23188 #, no-wrap
23189 msgid ""
23190 " int\n"
23191 " guestfs_get_direct (guestfs_h *g);\n"
23192 "\n"
23193 msgstr ""
23194
23195 #. type: textblock
23196 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
23197 msgid "(Added in 1.0.72)"
23198 msgstr ""
23199
23200 #. type: =head2
23201 #: ../src/guestfs-actions.pod:1993
23202 msgid "guestfs_get_e2label"
23203 msgstr ""
23204
23205 #. type: verbatim
23206 #: ../src/guestfs-actions.pod:1995
23207 #, no-wrap
23208 msgid ""
23209 " char *\n"
23210 " guestfs_get_e2label (guestfs_h *g,\n"
23211 "                      const char *device);\n"
23212 "\n"
23213 msgstr ""
23214
23215 #. type: textblock
23216 #: ../src/guestfs-actions.pod:2005
23217 msgid ""
23218 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
23219 "call instead."
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
23224 msgid "(Added in 1.0.15)"
23225 msgstr ""
23226
23227 #. type: =head2
23228 #: ../src/guestfs-actions.pod:2014
23229 msgid "guestfs_get_e2uuid"
23230 msgstr ""
23231
23232 #. type: verbatim
23233 #: ../src/guestfs-actions.pod:2016
23234 #, no-wrap
23235 msgid ""
23236 " char *\n"
23237 " guestfs_get_e2uuid (guestfs_h *g,\n"
23238 "                     const char *device);\n"
23239 "\n"
23240 msgstr ""
23241
23242 #. type: textblock
23243 #: ../src/guestfs-actions.pod:2026
23244 msgid ""
23245 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
23246 "instead."
23247 msgstr ""
23248
23249 #. type: =head2
23250 #: ../src/guestfs-actions.pod:2035
23251 msgid "guestfs_get_memsize"
23252 msgstr ""
23253
23254 #. type: verbatim
23255 #: ../src/guestfs-actions.pod:2037
23256 #, no-wrap
23257 msgid ""
23258 " int\n"
23259 " guestfs_get_memsize (guestfs_h *g);\n"
23260 "\n"
23261 msgstr ""
23262
23263 #. type: textblock
23264 #: ../src/guestfs-actions.pod:2043
23265 msgid ""
23266 "If C<guestfs_set_memsize> was not called on this handle, and if "
23267 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23268 "value for memsize."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
23273 msgid "(Added in 1.0.55)"
23274 msgstr ""
23275
23276 #. type: =head2
23277 #: ../src/guestfs-actions.pod:2054
23278 msgid "guestfs_get_network"
23279 msgstr ""
23280
23281 #. type: verbatim
23282 #: ../src/guestfs-actions.pod:2056
23283 #, no-wrap
23284 msgid ""
23285 " int\n"
23286 " guestfs_get_network (guestfs_h *g);\n"
23287 "\n"
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
23292 msgid "(Added in 1.5.4)"
23293 msgstr ""
23294
23295 #. type: =head2
23296 #: ../src/guestfs-actions.pod:2065
23297 msgid "guestfs_get_path"
23298 msgstr ""
23299
23300 #. type: verbatim
23301 #: ../src/guestfs-actions.pod:2067
23302 #, no-wrap
23303 msgid ""
23304 " const char *\n"
23305 " guestfs_get_path (guestfs_h *g);\n"
23306 "\n"
23307 msgstr ""
23308
23309 #. type: textblock
23310 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
23311 msgid ""
23312 "This function returns a string, or NULL on error.  The string is owned by "
23313 "the guest handle and must I<not> be freed."
23314 msgstr ""
23315
23316 #. type: =head2
23317 #: ../src/guestfs-actions.pod:2080
23318 msgid "guestfs_get_pgroup"
23319 msgstr ""
23320
23321 #. type: verbatim
23322 #: ../src/guestfs-actions.pod:2082
23323 #, no-wrap
23324 msgid ""
23325 " int\n"
23326 " guestfs_get_pgroup (guestfs_h *g);\n"
23327 "\n"
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353 ../src/guestfs-actions.pod:7685
23332 msgid "(Added in 1.11.18)"
23333 msgstr ""
23334
23335 #. type: =head2
23336 #: ../src/guestfs-actions.pod:2091
23337 msgid "guestfs_get_pid"
23338 msgstr ""
23339
23340 #. type: verbatim
23341 #: ../src/guestfs-actions.pod:2093
23342 #, no-wrap
23343 msgid ""
23344 " int\n"
23345 " guestfs_get_pid (guestfs_h *g);\n"
23346 "\n"
23347 msgstr ""
23348
23349 #. type: textblock
23350 #: ../src/guestfs-actions.pod:2103
23351 msgid "(Added in 1.0.56)"
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../src/guestfs-actions.pod:2105
23356 msgid "guestfs_get_qemu"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../src/guestfs-actions.pod:2107
23361 #, no-wrap
23362 msgid ""
23363 " const char *\n"
23364 " guestfs_get_qemu (guestfs_h *g);\n"
23365 "\n"
23366 msgstr ""
23367
23368 #. type: textblock
23369 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
23370 msgid "(Added in 1.0.6)"
23371 msgstr ""
23372
23373 #. type: =head2
23374 #: ../src/guestfs-actions.pod:2120
23375 msgid "guestfs_get_recovery_proc"
23376 msgstr ""
23377
23378 #. type: verbatim
23379 #: ../src/guestfs-actions.pod:2122
23380 #, no-wrap
23381 msgid ""
23382 " int\n"
23383 " guestfs_get_recovery_proc (guestfs_h *g);\n"
23384 "\n"
23385 msgstr ""
23386
23387 #. type: textblock
23388 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116 ../src/guestfs-actions.pod:7308
23389 msgid "(Added in 1.0.77)"
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../src/guestfs-actions.pod:2131
23394 msgid "guestfs_get_selinux"
23395 msgstr ""
23396
23397 #. type: verbatim
23398 #: ../src/guestfs-actions.pod:2133
23399 #, no-wrap
23400 msgid ""
23401 " int\n"
23402 " guestfs_get_selinux (guestfs_h *g);\n"
23403 "\n"
23404 msgstr ""
23405
23406 #. type: textblock
23407 #: ../src/guestfs-actions.pod:2136
23408 msgid ""
23409 "This returns the current setting of the selinux flag which is passed to the "
23410 "appliance at boot time.  See C<guestfs_set_selinux>."
23411 msgstr ""
23412
23413 #. type: textblock
23414 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207 ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
23415 msgid "(Added in 1.0.67)"
23416 msgstr ""
23417
23418 #. type: =head2
23419 #: ../src/guestfs-actions.pod:2146
23420 msgid "guestfs_get_state"
23421 msgstr ""
23422
23423 #. type: verbatim
23424 #: ../src/guestfs-actions.pod:2148
23425 #, no-wrap
23426 msgid ""
23427 " int\n"
23428 " guestfs_get_state (guestfs_h *g);\n"
23429 "\n"
23430 msgstr ""
23431
23432 #. type: =head2
23433 #: ../src/guestfs-actions.pod:2160
23434 msgid "guestfs_get_trace"
23435 msgstr ""
23436
23437 #. type: verbatim
23438 #: ../src/guestfs-actions.pod:2162
23439 #, no-wrap
23440 msgid ""
23441 " int\n"
23442 " guestfs_get_trace (guestfs_h *g);\n"
23443 "\n"
23444 msgstr ""
23445
23446 #. type: =head2
23447 #: ../src/guestfs-actions.pod:2171
23448 msgid "guestfs_get_umask"
23449 msgstr ""
23450
23451 #. type: verbatim
23452 #: ../src/guestfs-actions.pod:2173
23453 #, no-wrap
23454 msgid ""
23455 " int\n"
23456 " guestfs_get_umask (guestfs_h *g);\n"
23457 "\n"
23458 msgstr ""
23459
23460 #. type: textblock
23461 #: ../src/guestfs-actions.pod:2176
23462 msgid ""
23463 "Return the current umask.  By default the umask is C<022> unless it has been "
23464 "set by calling C<guestfs_umask>."
23465 msgstr ""
23466
23467 #. type: =head2
23468 #: ../src/guestfs-actions.pod:2183
23469 msgid "guestfs_get_verbose"
23470 msgstr ""
23471
23472 #. type: verbatim
23473 #: ../src/guestfs-actions.pod:2185
23474 #, no-wrap
23475 msgid ""
23476 " int\n"
23477 " guestfs_get_verbose (guestfs_h *g);\n"
23478 "\n"
23479 msgstr ""
23480
23481 #. type: =head2
23482 #: ../src/guestfs-actions.pod:2194
23483 msgid "guestfs_getcon"
23484 msgstr ""
23485
23486 #. type: verbatim
23487 #: ../src/guestfs-actions.pod:2196
23488 #, no-wrap
23489 msgid ""
23490 " char *\n"
23491 " guestfs_getcon (guestfs_h *g);\n"
23492 "\n"
23493 msgstr ""
23494
23495 #. type: textblock
23496 #: ../src/guestfs-actions.pod:2201
23497 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
23498 msgstr ""
23499
23500 #. type: =head2
23501 #: ../src/guestfs-actions.pod:2209
23502 msgid "guestfs_getxattr"
23503 msgstr ""
23504
23505 #. type: verbatim
23506 #: ../src/guestfs-actions.pod:2211
23507 #, no-wrap
23508 msgid ""
23509 " char *\n"
23510 " guestfs_getxattr (guestfs_h *g,\n"
23511 "                   const char *path,\n"
23512 "                   const char *name,\n"
23513 "                   size_t *size_r);\n"
23514 "\n"
23515 msgstr ""
23516
23517 #. type: textblock
23518 #: ../src/guestfs-actions.pod:2217
23519 msgid ""
23520 "Get a single extended attribute from file C<path> named C<name>.  This call "
23521 "follows symlinks.  If you want to lookup an extended attribute for the "
23522 "symlink itself, use C<guestfs_lgetxattr>."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
23527 msgid ""
23528 "Normally it is better to get all extended attributes from a file in one go "
23529 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
23530 "implementations are buggy and do not provide a way to list out attributes.  "
23531 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
23532 "extended attributes you want in advance and call this function."
23533 msgstr ""
23534
23535 #. type: textblock
23536 #: ../src/guestfs-actions.pod:2231
23537 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
23538 msgstr ""
23539
23540 #. type: textblock
23541 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424 ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689 ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:5817
23542 msgid ""
23543 "This function returns a buffer, or NULL on error.  The size of the returned "
23544 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
23545 "after use>."
23546 msgstr ""
23547
23548 #. type: textblock
23549 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
23550 msgid "(Added in 1.7.24)"
23551 msgstr ""
23552
23553 #. type: =head2
23554 #: ../src/guestfs-actions.pod:2239
23555 msgid "guestfs_getxattrs"
23556 msgstr ""
23557
23558 #. type: verbatim
23559 #: ../src/guestfs-actions.pod:2241
23560 #, no-wrap
23561 msgid ""
23562 " struct guestfs_xattr_list *\n"
23563 " guestfs_getxattrs (guestfs_h *g,\n"
23564 "                    const char *path);\n"
23565 "\n"
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../src/guestfs-actions.pod:2251
23570 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
23571 msgstr ""
23572
23573 #. type: textblock
23574 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:4393
23575 msgid ""
23576 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
23577 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
23578 msgstr ""
23579
23580 #. type: textblock
23581 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501 ../src/guestfs-actions.pod:7888
23582 msgid "(Added in 1.0.59)"
23583 msgstr ""
23584
23585 #. type: =head2
23586 #: ../src/guestfs-actions.pod:2259
23587 msgid "guestfs_glob_expand"
23588 msgstr ""
23589
23590 #. type: verbatim
23591 #: ../src/guestfs-actions.pod:2261
23592 #, no-wrap
23593 msgid ""
23594 " char **\n"
23595 " guestfs_glob_expand (guestfs_h *g,\n"
23596 "                      const char *pattern);\n"
23597 "\n"
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6711
23602 msgid "(Added in 1.0.50)"
23603 msgstr ""
23604
23605 #. type: =head2
23606 #: ../src/guestfs-actions.pod:2282
23607 msgid "guestfs_grep"
23608 msgstr ""
23609
23610 #. type: verbatim
23611 #: ../src/guestfs-actions.pod:2284
23612 #, no-wrap
23613 msgid ""
23614 " char **\n"
23615 " guestfs_grep (guestfs_h *g,\n"
23616 "               const char *regex,\n"
23617 "               const char *path);\n"
23618 "\n"
23619 msgstr ""
23620
23621 #. type: =head2
23622 #: ../src/guestfs-actions.pod:2301
23623 msgid "guestfs_grepi"
23624 msgstr ""
23625
23626 #. type: verbatim
23627 #: ../src/guestfs-actions.pod:2303
23628 #, no-wrap
23629 msgid ""
23630 " char **\n"
23631 " guestfs_grepi (guestfs_h *g,\n"
23632 "                const char *regex,\n"
23633 "                const char *path);\n"
23634 "\n"
23635 msgstr ""
23636
23637 #. type: =head2
23638 #: ../src/guestfs-actions.pod:2320
23639 msgid "guestfs_grub_install"
23640 msgstr ""
23641
23642 #. type: verbatim
23643 #: ../src/guestfs-actions.pod:2322
23644 #, no-wrap
23645 msgid ""
23646 " int\n"
23647 " guestfs_grub_install (guestfs_h *g,\n"
23648 "                       const char *root,\n"
23649 "                       const char *device);\n"
23650 "\n"
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../src/guestfs-actions.pod:2343
23655 msgid "(Added in 1.0.17)"
23656 msgstr ""
23657
23658 #. type: =head2
23659 #: ../src/guestfs-actions.pod:2345
23660 msgid "guestfs_head"
23661 msgstr ""
23662
23663 #. type: verbatim
23664 #: ../src/guestfs-actions.pod:2347
23665 #, no-wrap
23666 msgid ""
23667 " char **\n"
23668 " guestfs_head (guestfs_h *g,\n"
23669 "               const char *path);\n"
23670 "\n"
23671 msgstr ""
23672
23673 #. type: =head2
23674 #: ../src/guestfs-actions.pod:2363
23675 msgid "guestfs_head_n"
23676 msgstr ""
23677
23678 #. type: verbatim
23679 #: ../src/guestfs-actions.pod:2365
23680 #, no-wrap
23681 msgid ""
23682 " char **\n"
23683 " guestfs_head_n (guestfs_h *g,\n"
23684 "                 int nrlines,\n"
23685 "                 const char *path);\n"
23686 "\n"
23687 msgstr ""
23688
23689 #. type: =head2
23690 #: ../src/guestfs-actions.pod:2387
23691 msgid "guestfs_hexdump"
23692 msgstr ""
23693
23694 #. type: verbatim
23695 #: ../src/guestfs-actions.pod:2389
23696 #, no-wrap
23697 msgid ""
23698 " char *\n"
23699 " guestfs_hexdump (guestfs_h *g,\n"
23700 "                  const char *path);\n"
23701 "\n"
23702 msgstr ""
23703
23704 #. type: textblock
23705 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6830
23706 msgid "(Added in 1.0.22)"
23707 msgstr ""
23708
23709 #. type: =head2
23710 #: ../src/guestfs-actions.pod:2404
23711 msgid "guestfs_initrd_cat"
23712 msgstr ""
23713
23714 #. type: verbatim
23715 #: ../src/guestfs-actions.pod:2406
23716 #, no-wrap
23717 msgid ""
23718 " char *\n"
23719 " guestfs_initrd_cat (guestfs_h *g,\n"
23720 "                     const char *initrdpath,\n"
23721 "                     const char *filename,\n"
23722 "                     size_t *size_r);\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../src/guestfs-actions.pod:2422
23728 msgid "See also C<guestfs_initrd_list>."
23729 msgstr ""
23730
23731 #. type: =head2
23732 #: ../src/guestfs-actions.pod:2433
23733 msgid "guestfs_initrd_list"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../src/guestfs-actions.pod:2435
23738 #, no-wrap
23739 msgid ""
23740 " char **\n"
23741 " guestfs_initrd_list (guestfs_h *g,\n"
23742 "                      const char *path);\n"
23743 "\n"
23744 msgstr ""
23745
23746 #. type: =head2
23747 #: ../src/guestfs-actions.pod:2455
23748 msgid "guestfs_inotify_add_watch"
23749 msgstr ""
23750
23751 #. type: verbatim
23752 #: ../src/guestfs-actions.pod:2457
23753 #, no-wrap
23754 msgid ""
23755 " int64_t\n"
23756 " guestfs_inotify_add_watch (guestfs_h *g,\n"
23757 "                            const char *path,\n"
23758 "                            int mask);\n"
23759 "\n"
23760 msgstr ""
23761
23762 #. type: =head2
23763 #: ../src/guestfs-actions.pod:2476
23764 msgid "guestfs_inotify_close"
23765 msgstr ""
23766
23767 #. type: verbatim
23768 #: ../src/guestfs-actions.pod:2478
23769 #, no-wrap
23770 msgid ""
23771 " int\n"
23772 " guestfs_inotify_close (guestfs_h *g);\n"
23773 "\n"
23774 msgstr ""
23775
23776 #. type: =head2
23777 #: ../src/guestfs-actions.pod:2489
23778 msgid "guestfs_inotify_files"
23779 msgstr ""
23780
23781 #. type: verbatim
23782 #: ../src/guestfs-actions.pod:2491
23783 #, no-wrap
23784 msgid ""
23785 " char **\n"
23786 " guestfs_inotify_files (guestfs_h *g);\n"
23787 "\n"
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../src/guestfs-actions.pod:2494
23792 msgid ""
23793 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
23794 "returns a list of pathnames of objects that were touched.  The returned "
23795 "pathnames are sorted and deduplicated."
23796 msgstr ""
23797
23798 #. type: =head2
23799 #: ../src/guestfs-actions.pod:2504
23800 msgid "guestfs_inotify_init"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../src/guestfs-actions.pod:2506
23805 #, no-wrap
23806 msgid ""
23807 " int\n"
23808 " guestfs_inotify_init (guestfs_h *g,\n"
23809 "                       int maxevents);\n"
23810 "\n"
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../src/guestfs-actions.pod:2514
23815 msgid ""
23816 "C<maxevents> is the maximum number of events which will be queued up between "
23817 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
23818 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
23819 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
23820 "throws away events, but records the fact that it threw them away by setting "
23821 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
23822 "C<guestfs_inotify_read>)."
23823 msgstr ""
23824
23825 #. type: textblock
23826 #: ../src/guestfs-actions.pod:2524
23827 msgid ""
23828 "Before any events are generated, you have to add some watches to the "
23829 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
23830 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
23831 msgstr ""
23832
23833 #. type: textblock
23834 #: ../src/guestfs-actions.pod:2530
23835 msgid ""
23836 "Queued up events should be read periodically by calling "
23837 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
23838 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
23839 "often enough then you risk the internal queue overflowing."
23840 msgstr ""
23841
23842 #. type: textblock
23843 #: ../src/guestfs-actions.pod:2537
23844 msgid ""
23845 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
23846 "This also removes any watches automatically."
23847 msgstr ""
23848
23849 #. type: =head2
23850 #: ../src/guestfs-actions.pod:2550
23851 msgid "guestfs_inotify_read"
23852 msgstr ""
23853
23854 #. type: verbatim
23855 #: ../src/guestfs-actions.pod:2552
23856 #, no-wrap
23857 msgid ""
23858 " struct guestfs_inotify_event_list *\n"
23859 " guestfs_inotify_read (guestfs_h *g);\n"
23860 "\n"
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../src/guestfs-actions.pod:2566
23865 msgid ""
23866 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
23867 "there was an error.  I<The caller must call "
23868 "C<guestfs_free_inotify_event_list> after use>."
23869 msgstr ""
23870
23871 #. type: =head2
23872 #: ../src/guestfs-actions.pod:2572
23873 msgid "guestfs_inotify_rm_watch"
23874 msgstr ""
23875
23876 #. type: verbatim
23877 #: ../src/guestfs-actions.pod:2574
23878 #, no-wrap
23879 msgid ""
23880 " int\n"
23881 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
23882 "                           int wd);\n"
23883 "\n"
23884 msgstr ""
23885
23886 #. type: textblock
23887 #: ../src/guestfs-actions.pod:2578
23888 msgid ""
23889 "Remove a previously defined inotify watch.  See "
23890 "C<guestfs_inotify_add_watch>."
23891 msgstr ""
23892
23893 #. type: =head2
23894 #: ../src/guestfs-actions.pod:2585
23895 msgid "guestfs_inspect_get_arch"
23896 msgstr ""
23897
23898 #. type: verbatim
23899 #: ../src/guestfs-actions.pod:2587
23900 #, no-wrap
23901 msgid ""
23902 " char *\n"
23903 " guestfs_inspect_get_arch (guestfs_h *g,\n"
23904 "                           const char *root);\n"
23905 "\n"
23906 msgstr ""
23907
23908 #. type: textblock
23909 #: ../src/guestfs-actions.pod:2591
23910 msgid ""
23911 "This returns the architecture of the inspected operating system.  The "
23912 "possible return values are listed under C<guestfs_file_architecture>."
23913 msgstr ""
23914
23915 #. type: =head2
23916 #: ../src/guestfs-actions.pod:2605
23917 msgid "guestfs_inspect_get_distro"
23918 msgstr ""
23919
23920 #. type: verbatim
23921 #: ../src/guestfs-actions.pod:2607
23922 #, no-wrap
23923 msgid ""
23924 " char *\n"
23925 " guestfs_inspect_get_distro (guestfs_h *g,\n"
23926 "                             const char *root);\n"
23927 "\n"
23928 msgstr ""
23929
23930 #. type: =head2
23931 #: ../src/guestfs-actions.pod:2695
23932 msgid "guestfs_inspect_get_drive_mappings"
23933 msgstr ""
23934
23935 #. type: verbatim
23936 #: ../src/guestfs-actions.pod:2697
23937 #, no-wrap
23938 msgid ""
23939 " char **\n"
23940 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
23941 "                                     const char *root);\n"
23942 "\n"
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../src/guestfs-actions.pod:2726
23947 msgid ""
23948 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23949 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
23950 msgstr ""
23951
23952 #. type: textblock
23953 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078 ../src/guestfs-actions.pod:7132
23954 msgid ""
23955 "This function returns a NULL-terminated array of strings, or NULL if there "
23956 "was an error.  The array of strings will always have length C<2n+1>, where "
23957 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
23958 "caller must free the strings and the array after use>."
23959 msgstr ""
23960
23961 #. type: textblock
23962 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
23963 msgid "(Added in 1.9.17)"
23964 msgstr ""
23965
23966 #. type: =head2
23967 #: ../src/guestfs-actions.pod:2738
23968 msgid "guestfs_inspect_get_filesystems"
23969 msgstr ""
23970
23971 #. type: verbatim
23972 #: ../src/guestfs-actions.pod:2740
23973 #, no-wrap
23974 msgid ""
23975 " char **\n"
23976 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
23977 "                                  const char *root);\n"
23978 "\n"
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../src/guestfs-actions.pod:2752
23983 msgid ""
23984 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23985 "C<guestfs_inspect_get_mountpoints>."
23986 msgstr ""
23987
23988 #. type: =head2
23989 #: ../src/guestfs-actions.pod:2761
23990 msgid "guestfs_inspect_get_format"
23991 msgstr ""
23992
23993 #. type: verbatim
23994 #: ../src/guestfs-actions.pod:2763
23995 #, no-wrap
23996 msgid ""
23997 " char *\n"
23998 " guestfs_inspect_get_format (guestfs_h *g,\n"
23999 "                             const char *root);\n"
24000 "\n"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228 ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262 ../src/guestfs-actions.pod:6028
24005 msgid "(Added in 1.9.4)"
24006 msgstr ""
24007
24008 #. type: =head2
24009 #: ../src/guestfs-actions.pod:2799
24010 msgid "guestfs_inspect_get_hostname"
24011 msgstr ""
24012
24013 #. type: verbatim
24014 #: ../src/guestfs-actions.pod:2801
24015 #, no-wrap
24016 msgid ""
24017 " char *\n"
24018 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24019 "                               const char *root);\n"
24020 "\n"
24021 msgstr ""
24022
24023 #. type: textblock
24024 #: ../src/guestfs-actions.pod:2816
24025 msgid "(Added in 1.7.9)"
24026 msgstr ""
24027
24028 #. type: =head2
24029 #: ../src/guestfs-actions.pod:2818
24030 msgid "guestfs_inspect_get_icon"
24031 msgstr ""
24032
24033 #. type: verbatim
24034 #: ../src/guestfs-actions.pod:2820
24035 #, no-wrap
24036 msgid ""
24037 " char *\n"
24038 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24039 "                           const char *root,\n"
24040 "                           size_t *size_r,\n"
24041 "                           ...);\n"
24042 "\n"
24043 msgstr ""
24044
24045 #. type: verbatim
24046 #: ../src/guestfs-actions.pod:2831
24047 #, no-wrap
24048 msgid ""
24049 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24050 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24051 "\n"
24052 msgstr ""
24053
24054 #. type: textblock
24055 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:4977
24056 msgid "(Added in 1.11.12)"
24057 msgstr ""
24058
24059 #. type: =head2
24060 #: ../src/guestfs-actions.pod:2900
24061 msgid "guestfs_inspect_get_icon_va"
24062 msgstr ""
24063
24064 #. type: verbatim
24065 #: ../src/guestfs-actions.pod:2902
24066 #, no-wrap
24067 msgid ""
24068 " char *\n"
24069 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24070 "                              const char *root,\n"
24071 "                              size_t *size_r,\n"
24072 "                              va_list args);\n"
24073 "\n"
24074 msgstr ""
24075
24076 #. type: textblock
24077 #: ../src/guestfs-actions.pod:2908
24078 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24079 msgstr ""
24080
24081 #. type: =head2
24082 #: ../src/guestfs-actions.pod:2912
24083 msgid "guestfs_inspect_get_icon_argv"
24084 msgstr ""
24085
24086 #. type: verbatim
24087 #: ../src/guestfs-actions.pod:2914
24088 #, no-wrap
24089 msgid ""
24090 " char *\n"
24091 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24092 "                                const char *root,\n"
24093 "                                size_t *size_r,\n"
24094 "                                const struct guestfs_inspect_get_icon_argv "
24095 "*optargs);\n"
24096 "\n"
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../src/guestfs-actions.pod:2920
24101 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24102 msgstr ""
24103
24104 #. type: =head2
24105 #: ../src/guestfs-actions.pod:2924
24106 msgid "guestfs_inspect_get_major_version"
24107 msgstr ""
24108
24109 #. type: verbatim
24110 #: ../src/guestfs-actions.pod:2926
24111 #, no-wrap
24112 msgid ""
24113 " int\n"
24114 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24115 "                                    const char *root);\n"
24116 "\n"
24117 msgstr ""
24118
24119 #. type: =head2
24120 #: ../src/guestfs-actions.pod:2948
24121 msgid "guestfs_inspect_get_minor_version"
24122 msgstr ""
24123
24124 #. type: verbatim
24125 #: ../src/guestfs-actions.pod:2950
24126 #, no-wrap
24127 msgid ""
24128 " int\n"
24129 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24130 "                                    const char *root);\n"
24131 "\n"
24132 msgstr ""
24133
24134 #. type: textblock
24135 #: ../src/guestfs-actions.pod:2959
24136 msgid ""
24137 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24138 "C<guestfs_inspect_get_major_version>."
24139 msgstr ""
24140
24141 #. type: =head2
24142 #: ../src/guestfs-actions.pod:2966
24143 msgid "guestfs_inspect_get_mountpoints"
24144 msgstr ""
24145
24146 #. type: verbatim
24147 #: ../src/guestfs-actions.pod:2968
24148 #, no-wrap
24149 msgid ""
24150 " char **\n"
24151 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24152 "                                  const char *root);\n"
24153 "\n"
24154 msgstr ""
24155
24156 #. type: textblock
24157 #: ../src/guestfs-actions.pod:2989
24158 msgid ""
24159 "For operating systems like Windows which still use drive letters, this call "
24160 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24161 "information about the mapping of drive letters to partitions, see "
24162 "C<guestfs_inspect_get_drive_mappings>."
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../src/guestfs-actions.pod:2995
24167 msgid ""
24168 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24169 "C<guestfs_inspect_get_filesystems>."
24170 msgstr ""
24171
24172 #. type: =head2
24173 #: ../src/guestfs-actions.pod:3006
24174 msgid "guestfs_inspect_get_package_format"
24175 msgstr ""
24176
24177 #. type: verbatim
24178 #: ../src/guestfs-actions.pod:3008
24179 #, no-wrap
24180 msgid ""
24181 " char *\n"
24182 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24183 "                                     const char *root);\n"
24184 "\n"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../src/guestfs-actions.pod:3012
24189 msgid ""
24190 "This function and C<guestfs_inspect_get_package_management> return the "
24191 "package format and package management tool used by the inspected operating "
24192 "system.  For example for Fedora these functions would return C<rpm> (package "
24193 "format) and C<yum> (package management)."
24194 msgstr ""
24195
24196 #. type: textblock
24197 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
24198 msgid "(Added in 1.7.5)"
24199 msgstr ""
24200
24201 #. type: =head2
24202 #: ../src/guestfs-actions.pod:3032
24203 msgid "guestfs_inspect_get_package_management"
24204 msgstr ""
24205
24206 #. type: verbatim
24207 #: ../src/guestfs-actions.pod:3034
24208 #, no-wrap
24209 msgid ""
24210 " char *\n"
24211 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24212 "                                         const char *root);\n"
24213 "\n"
24214 msgstr ""
24215
24216 #. type: textblock
24217 #: ../src/guestfs-actions.pod:3038
24218 msgid ""
24219 "C<guestfs_inspect_get_package_format> and this function return the package "
24220 "format and package management tool used by the inspected operating system.  "
24221 "For example for Fedora these functions would return C<rpm> (package format) "
24222 "and C<yum> (package management)."
24223 msgstr ""
24224
24225 #. type: =head2
24226 #: ../src/guestfs-actions.pod:3060
24227 msgid "guestfs_inspect_get_product_name"
24228 msgstr ""
24229
24230 #. type: verbatim
24231 #: ../src/guestfs-actions.pod:3062
24232 #, no-wrap
24233 msgid ""
24234 " char *\n"
24235 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24236 "                                   const char *root);\n"
24237 "\n"
24238 msgstr ""
24239
24240 #. type: =head2
24241 #: ../src/guestfs-actions.pod:3081
24242 msgid "guestfs_inspect_get_product_variant"
24243 msgstr ""
24244
24245 #. type: verbatim
24246 #: ../src/guestfs-actions.pod:3083
24247 #, no-wrap
24248 msgid ""
24249 " char *\n"
24250 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24251 "                                      const char *root);\n"
24252 "\n"
24253 msgstr ""
24254
24255 #. type: textblock
24256 #: ../src/guestfs-actions.pod:3106
24257 msgid ""
24258 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24259 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:3113
24264 msgid "(Added in 1.9.13)"
24265 msgstr ""
24266
24267 #. type: =head2
24268 #: ../src/guestfs-actions.pod:3115
24269 msgid "guestfs_inspect_get_roots"
24270 msgstr ""
24271
24272 #. type: verbatim
24273 #: ../src/guestfs-actions.pod:3117
24274 #, no-wrap
24275 msgid ""
24276 " char **\n"
24277 " guestfs_inspect_get_roots (guestfs_h *g);\n"
24278 "\n"
24279 msgstr ""
24280
24281 #. type: textblock
24282 #: ../src/guestfs-actions.pod:3120
24283 msgid ""
24284 "This function is a convenient way to get the list of root devices, as "
24285 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
24286 "the whole inspection process."
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../src/guestfs-actions.pod:3124
24291 msgid ""
24292 "This returns an empty list if either no root devices were found or the "
24293 "caller has not called C<guestfs_inspect_os>."
24294 msgstr ""
24295
24296 #. type: textblock
24297 #: ../src/guestfs-actions.pod:3133
24298 msgid "(Added in 1.7.3)"
24299 msgstr ""
24300
24301 #. type: =head2
24302 #: ../src/guestfs-actions.pod:3135
24303 msgid "guestfs_inspect_get_type"
24304 msgstr ""
24305
24306 #. type: verbatim
24307 #: ../src/guestfs-actions.pod:3137
24308 #, no-wrap
24309 msgid ""
24310 " char *\n"
24311 " guestfs_inspect_get_type (guestfs_h *g,\n"
24312 "                           const char *root);\n"
24313 "\n"
24314 msgstr ""
24315
24316 #. type: =head2
24317 #: ../src/guestfs-actions.pod:3174
24318 msgid "guestfs_inspect_get_windows_current_control_set"
24319 msgstr ""
24320
24321 #. type: verbatim
24322 #: ../src/guestfs-actions.pod:3176
24323 #, no-wrap
24324 msgid ""
24325 " char *\n"
24326 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
24327 "                                                  const char *root);\n"
24328 "\n"
24329 msgstr ""
24330
24331 #. type: =head2
24332 #: ../src/guestfs-actions.pod:3194
24333 msgid "guestfs_inspect_get_windows_systemroot"
24334 msgstr ""
24335
24336 #. type: verbatim
24337 #: ../src/guestfs-actions.pod:3196
24338 #, no-wrap
24339 msgid ""
24340 " char *\n"
24341 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
24342 "                                         const char *root);\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../src/guestfs-actions.pod:3212
24348 msgid "(Added in 1.5.25)"
24349 msgstr ""
24350
24351 #. type: =head2
24352 #: ../src/guestfs-actions.pod:3214
24353 msgid "guestfs_inspect_is_live"
24354 msgstr ""
24355
24356 #. type: verbatim
24357 #: ../src/guestfs-actions.pod:3216
24358 #, no-wrap
24359 msgid ""
24360 " int\n"
24361 " guestfs_inspect_is_live (guestfs_h *g,\n"
24362 "                          const char *root);\n"
24363 "\n"
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../src/guestfs-actions.pod:3220
24368 msgid ""
24369 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24370 "disk), then this returns true if a live image was detected on the disk."
24371 msgstr ""
24372
24373 #. type: =head2
24374 #: ../src/guestfs-actions.pod:3230
24375 msgid "guestfs_inspect_is_multipart"
24376 msgstr ""
24377
24378 #. type: verbatim
24379 #: ../src/guestfs-actions.pod:3232
24380 #, no-wrap
24381 msgid ""
24382 " int\n"
24383 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
24384 "                               const char *root);\n"
24385 "\n"
24386 msgstr ""
24387
24388 #. type: textblock
24389 #: ../src/guestfs-actions.pod:3236
24390 msgid ""
24391 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24392 "disk), then this returns true if the disk is part of a set."
24393 msgstr ""
24394
24395 #. type: =head2
24396 #: ../src/guestfs-actions.pod:3246
24397 msgid "guestfs_inspect_is_netinst"
24398 msgstr ""
24399
24400 #. type: verbatim
24401 #: ../src/guestfs-actions.pod:3248
24402 #, no-wrap
24403 msgid ""
24404 " int\n"
24405 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
24406 "                             const char *root);\n"
24407 "\n"
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../src/guestfs-actions.pod:3252
24412 msgid ""
24413 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24414 "disk), then this returns true if the disk is a network installer, ie. not a "
24415 "self-contained install CD but one which is likely to require network access "
24416 "to complete the install."
24417 msgstr ""
24418
24419 #. type: =head2
24420 #: ../src/guestfs-actions.pod:3264
24421 msgid "guestfs_inspect_list_applications"
24422 msgstr ""
24423
24424 #. type: verbatim
24425 #: ../src/guestfs-actions.pod:3266
24426 #, no-wrap
24427 msgid ""
24428 " struct guestfs_application_list *\n"
24429 " guestfs_inspect_list_applications (guestfs_h *g,\n"
24430 "                                    const char *root);\n"
24431 "\n"
24432 msgstr ""
24433
24434 #. type: textblock
24435 #: ../src/guestfs-actions.pod:3272
24436 msgid ""
24437 "I<Note:> This call works differently from other parts of the inspection "
24438 "API.  You have to call C<guestfs_inspect_os>, then "
24439 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
24440 "this.  Listing applications is a significantly more difficult operation "
24441 "which requires access to the full filesystem.  Also note that unlike the "
24442 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
24443 "the libguestfs handle, this call actually reads parts of the mounted "
24444 "filesystems during the call."
24445 msgstr ""
24446
24447 #. type: textblock
24448 #: ../src/guestfs-actions.pod:3362
24449 msgid ""
24450 "This function returns a C<struct guestfs_application_list *>, or NULL if "
24451 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
24452 "after use>."
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../src/guestfs-actions.pod:3366
24457 msgid "(Added in 1.7.8)"
24458 msgstr ""
24459
24460 #. type: =head2
24461 #: ../src/guestfs-actions.pod:3368
24462 msgid "guestfs_inspect_os"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../src/guestfs-actions.pod:3370
24467 #, no-wrap
24468 msgid ""
24469 " char **\n"
24470 " guestfs_inspect_os (guestfs_h *g);\n"
24471 "\n"
24472 msgstr ""
24473
24474 #. type: textblock
24475 #: ../src/guestfs-actions.pod:3386
24476 msgid ""
24477 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
24478 "functions in order to query further information about each operating system, "
24479 "such as the name and version."
24480 msgstr ""
24481
24482 #. type: textblock
24483 #: ../src/guestfs-actions.pod:3391
24484 msgid ""
24485 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
24486 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
24487 "the contents.  This should be called with no disks currently mounted.  The "
24488 "function may also use Augeas, so any existing Augeas handle will be closed."
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3816
24493 msgid "See also C<guestfs_list_filesystems>."
24494 msgstr ""
24495
24496 #. type: =head2
24497 #: ../src/guestfs-actions.pod:3411
24498 msgid "guestfs_is_blockdev"
24499 msgstr ""
24500
24501 #. type: verbatim
24502 #: ../src/guestfs-actions.pod:3413
24503 #, no-wrap
24504 msgid ""
24505 " int\n"
24506 " guestfs_is_blockdev (guestfs_h *g,\n"
24507 "                      const char *path);\n"
24508 "\n"
24509 msgstr ""
24510
24511 #. type: textblock
24512 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3581
24513 msgid "See also C<guestfs_stat>."
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:3585
24518 msgid "(Added in 1.5.10)"
24519 msgstr ""
24520
24521 #. type: =head2
24522 #: ../src/guestfs-actions.pod:3426
24523 msgid "guestfs_is_busy"
24524 msgstr ""
24525
24526 #. type: verbatim
24527 #: ../src/guestfs-actions.pod:3428
24528 #, no-wrap
24529 msgid ""
24530 " int\n"
24531 " guestfs_is_busy (guestfs_h *g);\n"
24532 "\n"
24533 msgstr ""
24534
24535 #. type: =head2
24536 #: ../src/guestfs-actions.pod:3440
24537 msgid "guestfs_is_chardev"
24538 msgstr ""
24539
24540 #. type: verbatim
24541 #: ../src/guestfs-actions.pod:3442
24542 #, no-wrap
24543 msgid ""
24544 " int\n"
24545 " guestfs_is_chardev (guestfs_h *g,\n"
24546 "                     const char *path);\n"
24547 "\n"
24548 msgstr ""
24549
24550 #. type: =head2
24551 #: ../src/guestfs-actions.pod:3455
24552 msgid "guestfs_is_config"
24553 msgstr ""
24554
24555 #. type: verbatim
24556 #: ../src/guestfs-actions.pod:3457
24557 #, no-wrap
24558 msgid ""
24559 " int\n"
24560 " guestfs_is_config (guestfs_h *g);\n"
24561 "\n"
24562 msgstr ""
24563
24564 #. type: =head2
24565 #: ../src/guestfs-actions.pod:3469
24566 msgid "guestfs_is_dir"
24567 msgstr ""
24568
24569 #. type: verbatim
24570 #: ../src/guestfs-actions.pod:3471
24571 #, no-wrap
24572 msgid ""
24573 " int\n"
24574 " guestfs_is_dir (guestfs_h *g,\n"
24575 "                 const char *path);\n"
24576 "\n"
24577 msgstr ""
24578
24579 #. type: =head2
24580 #: ../src/guestfs-actions.pod:3485
24581 msgid "guestfs_is_fifo"
24582 msgstr ""
24583
24584 #. type: verbatim
24585 #: ../src/guestfs-actions.pod:3487
24586 #, no-wrap
24587 msgid ""
24588 " int\n"
24589 " guestfs_is_fifo (guestfs_h *g,\n"
24590 "                  const char *path);\n"
24591 "\n"
24592 msgstr ""
24593
24594 #. type: =head2
24595 #: ../src/guestfs-actions.pod:3500
24596 msgid "guestfs_is_file"
24597 msgstr ""
24598
24599 #. type: verbatim
24600 #: ../src/guestfs-actions.pod:3502
24601 #, no-wrap
24602 msgid ""
24603 " int\n"
24604 " guestfs_is_file (guestfs_h *g,\n"
24605 "                  const char *path);\n"
24606 "\n"
24607 msgstr ""
24608
24609 #. type: =head2
24610 #: ../src/guestfs-actions.pod:3516
24611 msgid "guestfs_is_launching"
24612 msgstr ""
24613
24614 #. type: verbatim
24615 #: ../src/guestfs-actions.pod:3518
24616 #, no-wrap
24617 msgid ""
24618 " int\n"
24619 " guestfs_is_launching (guestfs_h *g);\n"
24620 "\n"
24621 msgstr ""
24622
24623 #. type: =head2
24624 #: ../src/guestfs-actions.pod:3530
24625 msgid "guestfs_is_lv"
24626 msgstr ""
24627
24628 #. type: verbatim
24629 #: ../src/guestfs-actions.pod:3532
24630 #, no-wrap
24631 msgid ""
24632 " int\n"
24633 " guestfs_is_lv (guestfs_h *g,\n"
24634 "                const char *device);\n"
24635 "\n"
24636 msgstr ""
24637
24638 #. type: =head2
24639 #: ../src/guestfs-actions.pod:3543
24640 msgid "guestfs_is_ready"
24641 msgstr ""
24642
24643 #. type: verbatim
24644 #: ../src/guestfs-actions.pod:3545
24645 #, no-wrap
24646 msgid ""
24647 " int\n"
24648 " guestfs_is_ready (guestfs_h *g);\n"
24649 "\n"
24650 msgstr ""
24651
24652 #. type: =head2
24653 #: ../src/guestfs-actions.pod:3557
24654 msgid "guestfs_is_socket"
24655 msgstr ""
24656
24657 #. type: verbatim
24658 #: ../src/guestfs-actions.pod:3559
24659 #, no-wrap
24660 msgid ""
24661 " int\n"
24662 " guestfs_is_socket (guestfs_h *g,\n"
24663 "                    const char *path);\n"
24664 "\n"
24665 msgstr ""
24666
24667 #. type: =head2
24668 #: ../src/guestfs-actions.pod:3572
24669 msgid "guestfs_is_symlink"
24670 msgstr ""
24671
24672 #. type: verbatim
24673 #: ../src/guestfs-actions.pod:3574
24674 #, no-wrap
24675 msgid ""
24676 " int\n"
24677 " guestfs_is_symlink (guestfs_h *g,\n"
24678 "                     const char *path);\n"
24679 "\n"
24680 msgstr ""
24681
24682 #. type: =head2
24683 #: ../src/guestfs-actions.pod:3587
24684 msgid "guestfs_is_zero"
24685 msgstr ""
24686
24687 #. type: verbatim
24688 #: ../src/guestfs-actions.pod:3589
24689 #, no-wrap
24690 msgid ""
24691 " int\n"
24692 " guestfs_is_zero (guestfs_h *g,\n"
24693 "                  const char *path);\n"
24694 "\n"
24695 msgstr ""
24696
24697 #. type: textblock
24698 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
24699 msgid "(Added in 1.11.8)"
24700 msgstr ""
24701
24702 #. type: =head2
24703 #: ../src/guestfs-actions.pod:3600
24704 msgid "guestfs_is_zero_device"
24705 msgstr ""
24706
24707 #. type: verbatim
24708 #: ../src/guestfs-actions.pod:3602
24709 #, no-wrap
24710 msgid ""
24711 " int\n"
24712 " guestfs_is_zero_device (guestfs_h *g,\n"
24713 "                         const char *device);\n"
24714 "\n"
24715 msgstr ""
24716
24717 #. type: =head2
24718 #: ../src/guestfs-actions.pod:3614
24719 msgid "guestfs_kill_subprocess"
24720 msgstr ""
24721
24722 #. type: verbatim
24723 #: ../src/guestfs-actions.pod:3616
24724 #, no-wrap
24725 msgid ""
24726 " int\n"
24727 " guestfs_kill_subprocess (guestfs_h *g);\n"
24728 "\n"
24729 msgstr ""
24730
24731 #. type: =head2
24732 #: ../src/guestfs-actions.pod:3625
24733 msgid "guestfs_launch"
24734 msgstr ""
24735
24736 #. type: verbatim
24737 #: ../src/guestfs-actions.pod:3627
24738 #, no-wrap
24739 msgid ""
24740 " int\n"
24741 " guestfs_launch (guestfs_h *g);\n"
24742 "\n"
24743 msgstr ""
24744
24745 #. type: =head2
24746 #: ../src/guestfs-actions.pod:3645
24747 msgid "guestfs_lchown"
24748 msgstr ""
24749
24750 #. type: verbatim
24751 #: ../src/guestfs-actions.pod:3647
24752 #, no-wrap
24753 msgid ""
24754 " int\n"
24755 " guestfs_lchown (guestfs_h *g,\n"
24756 "                 int owner,\n"
24757 "                 int group,\n"
24758 "                 const char *path);\n"
24759 "\n"
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../src/guestfs-actions.pod:3653
24764 msgid ""
24765 "Change the file owner to C<owner> and group to C<group>.  This is like "
24766 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
24767 "changed, not the target."
24768 msgstr ""
24769
24770 #. type: =head2
24771 #: ../src/guestfs-actions.pod:3665
24772 msgid "guestfs_lgetxattr"
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../src/guestfs-actions.pod:3667
24777 #, no-wrap
24778 msgid ""
24779 " char *\n"
24780 " guestfs_lgetxattr (guestfs_h *g,\n"
24781 "                    const char *path,\n"
24782 "                    const char *name,\n"
24783 "                    size_t *size_r);\n"
24784 "\n"
24785 msgstr ""
24786
24787 #. type: textblock
24788 #: ../src/guestfs-actions.pod:3687
24789 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../src/guestfs-actions.pod:3695
24794 msgid "guestfs_lgetxattrs"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../src/guestfs-actions.pod:3697
24799 #, no-wrap
24800 msgid ""
24801 " struct guestfs_xattr_list *\n"
24802 " guestfs_lgetxattrs (guestfs_h *g,\n"
24803 "                     const char *path);\n"
24804 "\n"
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../src/guestfs-actions.pod:3701
24809 msgid ""
24810 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
24811 "then it returns the extended attributes of the link itself."
24812 msgstr ""
24813
24814 #. type: =head2
24815 #: ../src/guestfs-actions.pod:3711
24816 msgid "guestfs_list_9p"
24817 msgstr ""
24818
24819 #. type: verbatim
24820 #: ../src/guestfs-actions.pod:3713
24821 #, no-wrap
24822 msgid ""
24823 " char **\n"
24824 " guestfs_list_9p (guestfs_h *g);\n"
24825 "\n"
24826 msgstr ""
24827
24828 #. type: =head2
24829 #: ../src/guestfs-actions.pod:3725
24830 msgid "guestfs_list_devices"
24831 msgstr ""
24832
24833 #. type: verbatim
24834 #: ../src/guestfs-actions.pod:3727
24835 #, no-wrap
24836 msgid ""
24837 " char **\n"
24838 " guestfs_list_devices (guestfs_h *g);\n"
24839 "\n"
24840 msgstr ""
24841
24842 #. type: =head2
24843 #: ../src/guestfs-actions.pod:3742
24844 msgid "guestfs_list_dm_devices"
24845 msgstr ""
24846
24847 #. type: verbatim
24848 #: ../src/guestfs-actions.pod:3744
24849 #, no-wrap
24850 msgid ""
24851 " char **\n"
24852 " guestfs_list_dm_devices (guestfs_h *g);\n"
24853 "\n"
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:3749
24858 msgid ""
24859 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
24860 "previous call to C<guestfs_luks_open>."
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../src/guestfs-actions.pod:3752
24865 msgid ""
24866 "Device mapper devices which correspond to logical volumes are I<not> "
24867 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
24868 "volumes."
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
24873 msgid "(Added in 1.11.15)"
24874 msgstr ""
24875
24876 #. type: =head2
24877 #: ../src/guestfs-actions.pod:3762
24878 msgid "guestfs_list_filesystems"
24879 msgstr ""
24880
24881 #. type: verbatim
24882 #: ../src/guestfs-actions.pod:3764
24883 #, no-wrap
24884 msgid ""
24885 " char **\n"
24886 " guestfs_list_filesystems (guestfs_h *g);\n"
24887 "\n"
24888 msgstr ""
24889
24890 #. type: textblock
24891 #: ../src/guestfs-actions.pod:3784
24892 msgid ""
24893 "This command runs other libguestfs commands, which might include "
24894 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
24895 "soon after launch and only when nothing is mounted."
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:3788
24900 msgid ""
24901 "Not all of the filesystems returned will be mountable.  In particular, swap "
24902 "partitions are returned in the list.  Also this command does not check that "
24903 "each filesystem found is valid and mountable, and some filesystems might be "
24904 "mountable but require special options.  Filesystems may not all belong to a "
24905 "single logical operating system (use C<guestfs_inspect_os> to look for "
24906 "OSes)."
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
24911 msgid "(Added in 1.5.15)"
24912 msgstr ""
24913
24914 #. type: =head2
24915 #: ../src/guestfs-actions.pod:3804
24916 msgid "guestfs_list_partitions"
24917 msgstr ""
24918
24919 #. type: verbatim
24920 #: ../src/guestfs-actions.pod:3806
24921 #, no-wrap
24922 msgid ""
24923 " char **\n"
24924 " guestfs_list_partitions (guestfs_h *g);\n"
24925 "\n"
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../src/guestfs-actions.pod:3813
24930 msgid ""
24931 "This does not return logical volumes.  For that you will need to call "
24932 "C<guestfs_lvs>."
24933 msgstr ""
24934
24935 #. type: =head2
24936 #: ../src/guestfs-actions.pod:3824
24937 msgid "guestfs_ll"
24938 msgstr ""
24939
24940 #. type: verbatim
24941 #: ../src/guestfs-actions.pod:3826
24942 #, no-wrap
24943 msgid ""
24944 " char *\n"
24945 " guestfs_ll (guestfs_h *g,\n"
24946 "             const char *directory);\n"
24947 "\n"
24948 msgstr ""
24949
24950 #. type: =head2
24951 #: ../src/guestfs-actions.pod:3841
24952 msgid "guestfs_ln"
24953 msgstr ""
24954
24955 #. type: verbatim
24956 #: ../src/guestfs-actions.pod:3843
24957 #, no-wrap
24958 msgid ""
24959 " int\n"
24960 " guestfs_ln (guestfs_h *g,\n"
24961 "             const char *target,\n"
24962 "             const char *linkname);\n"
24963 "\n"
24964 msgstr ""
24965
24966 #. type: =head2
24967 #: ../src/guestfs-actions.pod:3854
24968 msgid "guestfs_ln_f"
24969 msgstr ""
24970
24971 #. type: verbatim
24972 #: ../src/guestfs-actions.pod:3856
24973 #, no-wrap
24974 msgid ""
24975 " int\n"
24976 " guestfs_ln_f (guestfs_h *g,\n"
24977 "               const char *target,\n"
24978 "               const char *linkname);\n"
24979 "\n"
24980 msgstr ""
24981
24982 #. type: =head2
24983 #: ../src/guestfs-actions.pod:3868
24984 msgid "guestfs_ln_s"
24985 msgstr ""
24986
24987 #. type: verbatim
24988 #: ../src/guestfs-actions.pod:3870
24989 #, no-wrap
24990 msgid ""
24991 " int\n"
24992 " guestfs_ln_s (guestfs_h *g,\n"
24993 "               const char *target,\n"
24994 "               const char *linkname);\n"
24995 "\n"
24996 msgstr ""
24997
24998 #. type: =head2
24999 #: ../src/guestfs-actions.pod:3881
25000 msgid "guestfs_ln_sf"
25001 msgstr ""
25002
25003 #. type: verbatim
25004 #: ../src/guestfs-actions.pod:3883
25005 #, no-wrap
25006 msgid ""
25007 " int\n"
25008 " guestfs_ln_sf (guestfs_h *g,\n"
25009 "                const char *target,\n"
25010 "                const char *linkname);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: =head2
25015 #: ../src/guestfs-actions.pod:3895
25016 msgid "guestfs_lremovexattr"
25017 msgstr ""
25018
25019 #. type: verbatim
25020 #: ../src/guestfs-actions.pod:3897
25021 #, no-wrap
25022 msgid ""
25023 " int\n"
25024 " guestfs_lremovexattr (guestfs_h *g,\n"
25025 "                       const char *xattr,\n"
25026 "                       const char *path);\n"
25027 "\n"
25028 msgstr ""
25029
25030 #. type: textblock
25031 #: ../src/guestfs-actions.pod:3902
25032 msgid ""
25033 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25034 "link, then it removes an extended attribute of the link itself."
25035 msgstr ""
25036
25037 #. type: =head2
25038 #: ../src/guestfs-actions.pod:3910
25039 msgid "guestfs_ls"
25040 msgstr ""
25041
25042 #. type: verbatim
25043 #: ../src/guestfs-actions.pod:3912
25044 #, no-wrap
25045 msgid ""
25046 " char **\n"
25047 " guestfs_ls (guestfs_h *g,\n"
25048 "             const char *directory);\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:3920
25054 msgid ""
25055 "This command is mostly useful for interactive sessions.  Programs should "
25056 "probably use C<guestfs_readdir> instead."
25057 msgstr ""
25058
25059 #. type: =head2
25060 #: ../src/guestfs-actions.pod:3929
25061 msgid "guestfs_lsetxattr"
25062 msgstr ""
25063
25064 #. type: verbatim
25065 #: ../src/guestfs-actions.pod:3931
25066 #, no-wrap
25067 msgid ""
25068 " int\n"
25069 " guestfs_lsetxattr (guestfs_h *g,\n"
25070 "                    const char *xattr,\n"
25071 "                    const char *val,\n"
25072 "                    int vallen,\n"
25073 "                    const char *path);\n"
25074 "\n"
25075 msgstr ""
25076
25077 #. type: textblock
25078 #: ../src/guestfs-actions.pod:3938
25079 msgid ""
25080 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25081 "then it sets an extended attribute of the link itself."
25082 msgstr ""
25083
25084 #. type: =head2
25085 #: ../src/guestfs-actions.pod:3946
25086 msgid "guestfs_lstat"
25087 msgstr ""
25088
25089 #. type: verbatim
25090 #: ../src/guestfs-actions.pod:3948
25091 #, no-wrap
25092 msgid ""
25093 " struct guestfs_stat *\n"
25094 " guestfs_lstat (guestfs_h *g,\n"
25095 "                const char *path);\n"
25096 "\n"
25097 msgstr ""
25098
25099 #. type: textblock
25100 #: ../src/guestfs-actions.pod:3954
25101 msgid ""
25102 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25103 "link, then the link is stat-ed, not the file it refers to."
25104 msgstr ""
25105
25106 #. type: textblock
25107 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
25108 msgid ""
25109 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25110 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25111 msgstr ""
25112
25113 #. type: textblock
25114 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
25115 msgid "(Added in 0.9.2)"
25116 msgstr ""
25117
25118 #. type: =head2
25119 #: ../src/guestfs-actions.pod:3966
25120 msgid "guestfs_lstatlist"
25121 msgstr ""
25122
25123 #. type: verbatim
25124 #: ../src/guestfs-actions.pod:3968
25125 #, no-wrap
25126 msgid ""
25127 " struct guestfs_stat_list *\n"
25128 " guestfs_lstatlist (guestfs_h *g,\n"
25129 "                    const char *path,\n"
25130 "                    char *const *names);\n"
25131 "\n"
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../src/guestfs-actions.pod:3973
25136 msgid ""
25137 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25138 "files, where all files are in the directory C<path>.  C<names> is the list "
25139 "of files from this directory."
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../src/guestfs-actions.pod:3982
25144 msgid ""
25145 "This call is intended for programs that want to efficiently list a directory "
25146 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25147 "for a similarly efficient call for getting extended attributes.  Very long "
25148 "directory listings might cause the protocol message size to be exceeded, "
25149 "causing this call to fail.  The caller must split up such requests into "
25150 "smaller groups of names."
25151 msgstr ""
25152
25153 #. type: textblock
25154 #: ../src/guestfs-actions.pod:3990
25155 msgid ""
25156 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25157 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25158 msgstr ""
25159
25160 #. type: =head2
25161 #: ../src/guestfs-actions.pod:3996
25162 msgid "guestfs_luks_add_key"
25163 msgstr ""
25164
25165 #. type: verbatim
25166 #: ../src/guestfs-actions.pod:3998
25167 #, no-wrap
25168 msgid ""
25169 " int\n"
25170 " guestfs_luks_add_key (guestfs_h *g,\n"
25171 "                       const char *device,\n"
25172 "                       const char *key,\n"
25173 "                       const char *newkey,\n"
25174 "                       int keyslot);\n"
25175 "\n"
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../src/guestfs-actions.pod:4010
25180 msgid ""
25181 "Note that if C<keyslot> already contains a key, then this command will "
25182 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25183 msgstr ""
25184
25185 #. type: textblock
25186 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
25187 msgid ""
25188 "This function takes a key or passphrase parameter which could contain "
25189 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25190 "information."
25191 msgstr ""
25192
25193 #. type: textblock
25194 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
25195 msgid "(Added in 1.5.2)"
25196 msgstr ""
25197
25198 #. type: =head2
25199 #: ../src/guestfs-actions.pod:4022
25200 msgid "guestfs_luks_close"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../src/guestfs-actions.pod:4024
25205 #, no-wrap
25206 msgid ""
25207 " int\n"
25208 " guestfs_luks_close (guestfs_h *g,\n"
25209 "                     const char *device);\n"
25210 "\n"
25211 msgstr ""
25212
25213 #. type: textblock
25214 #: ../src/guestfs-actions.pod:4028
25215 msgid ""
25216 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25217 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25218 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25219 "underlying block device."
25220 msgstr ""
25221
25222 #. type: textblock
25223 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4255
25224 msgid "(Added in 1.5.1)"
25225 msgstr ""
25226
25227 #. type: =head2
25228 #: ../src/guestfs-actions.pod:4038
25229 msgid "guestfs_luks_format"
25230 msgstr ""
25231
25232 #. type: verbatim
25233 #: ../src/guestfs-actions.pod:4040
25234 #, no-wrap
25235 msgid ""
25236 " int\n"
25237 " guestfs_luks_format (guestfs_h *g,\n"
25238 "                      const char *device,\n"
25239 "                      const char *key,\n"
25240 "                      int keyslot);\n"
25241 "\n"
25242 msgstr ""
25243
25244 #. type: =head2
25245 #: ../src/guestfs-actions.pod:4062
25246 msgid "guestfs_luks_format_cipher"
25247 msgstr ""
25248
25249 #. type: verbatim
25250 #: ../src/guestfs-actions.pod:4064
25251 #, no-wrap
25252 msgid ""
25253 " int\n"
25254 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25255 "                             const char *device,\n"
25256 "                             const char *key,\n"
25257 "                             int keyslot,\n"
25258 "                             const char *cipher);\n"
25259 "\n"
25260 msgstr ""
25261
25262 #. type: textblock
25263 #: ../src/guestfs-actions.pod:4071
25264 msgid ""
25265 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25266 "set the C<cipher> used."
25267 msgstr ""
25268
25269 #. type: =head2
25270 #: ../src/guestfs-actions.pod:4085
25271 msgid "guestfs_luks_kill_slot"
25272 msgstr ""
25273
25274 #. type: verbatim
25275 #: ../src/guestfs-actions.pod:4087
25276 #, no-wrap
25277 msgid ""
25278 " int\n"
25279 " guestfs_luks_kill_slot (guestfs_h *g,\n"
25280 "                         const char *device,\n"
25281 "                         const char *key,\n"
25282 "                         int keyslot);\n"
25283 "\n"
25284 msgstr ""
25285
25286 #. type: =head2
25287 #: ../src/guestfs-actions.pod:4105
25288 msgid "guestfs_luks_open"
25289 msgstr ""
25290
25291 #. type: verbatim
25292 #: ../src/guestfs-actions.pod:4107
25293 #, no-wrap
25294 msgid ""
25295 " int\n"
25296 " guestfs_luks_open (guestfs_h *g,\n"
25297 "                    const char *device,\n"
25298 "                    const char *key,\n"
25299 "                    const char *mapname);\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../src/guestfs-actions.pod:4125
25305 msgid ""
25306 "If this block device contains LVM volume groups, then calling "
25307 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
25308 "visible."
25309 msgstr ""
25310
25311 #. type: textblock
25312 #: ../src/guestfs-actions.pod:4129
25313 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
25314 msgstr ""
25315
25316 #. type: =head2
25317 #: ../src/guestfs-actions.pod:4140
25318 msgid "guestfs_luks_open_ro"
25319 msgstr ""
25320
25321 #. type: verbatim
25322 #: ../src/guestfs-actions.pod:4142
25323 #, no-wrap
25324 msgid ""
25325 " int\n"
25326 " guestfs_luks_open_ro (guestfs_h *g,\n"
25327 "                       const char *device,\n"
25328 "                       const char *key,\n"
25329 "                       const char *mapname);\n"
25330 "\n"
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:4148
25335 msgid ""
25336 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
25337 "created."
25338 msgstr ""
25339
25340 #. type: =head2
25341 #: ../src/guestfs-actions.pod:4159
25342 msgid "guestfs_lvcreate"
25343 msgstr ""
25344
25345 #. type: verbatim
25346 #: ../src/guestfs-actions.pod:4161
25347 #, no-wrap
25348 msgid ""
25349 " int\n"
25350 " guestfs_lvcreate (guestfs_h *g,\n"
25351 "                   const char *logvol,\n"
25352 "                   const char *volgroup,\n"
25353 "                   int mbytes);\n"
25354 "\n"
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../src/guestfs-actions.pod:4174
25359 msgid "guestfs_lvm_canonical_lv_name"
25360 msgstr ""
25361
25362 #. type: verbatim
25363 #: ../src/guestfs-actions.pod:4176
25364 #, no-wrap
25365 msgid ""
25366 " char *\n"
25367 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
25368 "                                const char *lvname);\n"
25369 "\n"
25370 msgstr ""
25371
25372 #. type: textblock
25373 #: ../src/guestfs-actions.pod:4187
25374 msgid "See also C<guestfs_is_lv>."
25375 msgstr ""
25376
25377 #. type: textblock
25378 #: ../src/guestfs-actions.pod:4192
25379 msgid "(Added in 1.5.24)"
25380 msgstr ""
25381
25382 #. type: =head2
25383 #: ../src/guestfs-actions.pod:4194
25384 msgid "guestfs_lvm_clear_filter"
25385 msgstr ""
25386
25387 #. type: verbatim
25388 #: ../src/guestfs-actions.pod:4196
25389 #, no-wrap
25390 msgid ""
25391 " int\n"
25392 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
25393 "\n"
25394 msgstr ""
25395
25396 #. type: textblock
25397 #: ../src/guestfs-actions.pod:4199
25398 msgid ""
25399 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
25400 "see every block device."
25401 msgstr ""
25402
25403 #. type: =head2
25404 #: ../src/guestfs-actions.pod:4209
25405 msgid "guestfs_lvm_remove_all"
25406 msgstr ""
25407
25408 #. type: verbatim
25409 #: ../src/guestfs-actions.pod:4211
25410 #, no-wrap
25411 msgid ""
25412 " int\n"
25413 " guestfs_lvm_remove_all (guestfs_h *g);\n"
25414 "\n"
25415 msgstr ""
25416
25417 #. type: =head2
25418 #: ../src/guestfs-actions.pod:4224
25419 msgid "guestfs_lvm_set_filter"
25420 msgstr ""
25421
25422 #. type: verbatim
25423 #: ../src/guestfs-actions.pod:4226
25424 #, no-wrap
25425 msgid ""
25426 " int\n"
25427 " guestfs_lvm_set_filter (guestfs_h *g,\n"
25428 "                         char *const *devices);\n"
25429 "\n"
25430 msgstr ""
25431
25432 #. type: =head2
25433 #: ../src/guestfs-actions.pod:4257
25434 msgid "guestfs_lvremove"
25435 msgstr ""
25436
25437 #. type: verbatim
25438 #: ../src/guestfs-actions.pod:4259
25439 #, no-wrap
25440 msgid ""
25441 " int\n"
25442 " guestfs_lvremove (guestfs_h *g,\n"
25443 "                   const char *device);\n"
25444 "\n"
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:7508
25449 msgid "(Added in 1.0.13)"
25450 msgstr ""
25451
25452 #. type: =head2
25453 #: ../src/guestfs-actions.pod:4273
25454 msgid "guestfs_lvrename"
25455 msgstr ""
25456
25457 #. type: verbatim
25458 #: ../src/guestfs-actions.pod:4275
25459 #, no-wrap
25460 msgid ""
25461 " int\n"
25462 " guestfs_lvrename (guestfs_h *g,\n"
25463 "                   const char *logvol,\n"
25464 "                   const char *newlogvol);\n"
25465 "\n"
25466 msgstr ""
25467
25468 #. type: textblock
25469 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
25470 msgid "(Added in 1.0.83)"
25471 msgstr ""
25472
25473 #. type: =head2
25474 #: ../src/guestfs-actions.pod:4286
25475 msgid "guestfs_lvresize"
25476 msgstr ""
25477
25478 #. type: verbatim
25479 #: ../src/guestfs-actions.pod:4288
25480 #, no-wrap
25481 msgid ""
25482 " int\n"
25483 " guestfs_lvresize (guestfs_h *g,\n"
25484 "                   const char *device,\n"
25485 "                   int mbytes);\n"
25486 "\n"
25487 msgstr ""
25488
25489 #. type: =head2
25490 #: ../src/guestfs-actions.pod:4301
25491 msgid "guestfs_lvresize_free"
25492 msgstr ""
25493
25494 #. type: verbatim
25495 #: ../src/guestfs-actions.pod:4303
25496 #, no-wrap
25497 msgid ""
25498 " int\n"
25499 " guestfs_lvresize_free (guestfs_h *g,\n"
25500 "                        const char *lv,\n"
25501 "                        int percent);\n"
25502 "\n"
25503 msgstr ""
25504
25505 #. type: textblock
25506 #: ../src/guestfs-actions.pod:4316
25507 msgid "(Added in 1.3.3)"
25508 msgstr ""
25509
25510 #. type: =head2
25511 #: ../src/guestfs-actions.pod:4318
25512 msgid "guestfs_lvs"
25513 msgstr ""
25514
25515 #. type: verbatim
25516 #: ../src/guestfs-actions.pod:4320
25517 #, no-wrap
25518 msgid ""
25519 " char **\n"
25520 " guestfs_lvs (guestfs_h *g);\n"
25521 "\n"
25522 msgstr ""
25523
25524 #. type: textblock
25525 #: ../src/guestfs-actions.pod:4329
25526 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
25527 msgstr ""
25528
25529 #. type: =head2
25530 #: ../src/guestfs-actions.pod:4337
25531 msgid "guestfs_lvs_full"
25532 msgstr ""
25533
25534 #. type: verbatim
25535 #: ../src/guestfs-actions.pod:4339
25536 #, no-wrap
25537 msgid ""
25538 " struct guestfs_lvm_lv_list *\n"
25539 " guestfs_lvs_full (guestfs_h *g);\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../src/guestfs-actions.pod:4345
25545 msgid ""
25546 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
25547 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
25548 "use>."
25549 msgstr ""
25550
25551 #. type: =head2
25552 #: ../src/guestfs-actions.pod:4351
25553 msgid "guestfs_lvuuid"
25554 msgstr ""
25555
25556 #. type: verbatim
25557 #: ../src/guestfs-actions.pod:4353
25558 #, no-wrap
25559 msgid ""
25560 " char *\n"
25561 " guestfs_lvuuid (guestfs_h *g,\n"
25562 "                 const char *device);\n"
25563 "\n"
25564 msgstr ""
25565
25566 #. type: =head2
25567 #: ../src/guestfs-actions.pod:4364
25568 msgid "guestfs_lxattrlist"
25569 msgstr ""
25570
25571 #. type: verbatim
25572 #: ../src/guestfs-actions.pod:4366
25573 #, no-wrap
25574 msgid ""
25575 " struct guestfs_xattr_list *\n"
25576 " guestfs_lxattrlist (guestfs_h *g,\n"
25577 "                     const char *path,\n"
25578 "                     char *const *names);\n"
25579 "\n"
25580 msgstr ""
25581
25582 #. type: textblock
25583 #: ../src/guestfs-actions.pod:4385
25584 msgid ""
25585 "This call is intended for programs that want to efficiently list a directory "
25586 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
25587 "a similarly efficient call for getting standard stats.  Very long directory "
25588 "listings might cause the protocol message size to be exceeded, causing this "
25589 "call to fail.  The caller must split up such requests into smaller groups of "
25590 "names."
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../src/guestfs-actions.pod:4399
25595 msgid "guestfs_mkdir"
25596 msgstr ""
25597
25598 #. type: verbatim
25599 #: ../src/guestfs-actions.pod:4401
25600 #, no-wrap
25601 msgid ""
25602 " int\n"
25603 " guestfs_mkdir (guestfs_h *g,\n"
25604 "                const char *path);\n"
25605 "\n"
25606 msgstr ""
25607
25608 #. type: =head2
25609 #: ../src/guestfs-actions.pod:4411
25610 msgid "guestfs_mkdir_mode"
25611 msgstr ""
25612
25613 #. type: verbatim
25614 #: ../src/guestfs-actions.pod:4413
25615 #, no-wrap
25616 msgid ""
25617 " int\n"
25618 " guestfs_mkdir_mode (guestfs_h *g,\n"
25619 "                     const char *path,\n"
25620 "                     int mode);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:4425
25626 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
25627 msgstr ""
25628
25629 #. type: =head2
25630 #: ../src/guestfs-actions.pod:4431
25631 msgid "guestfs_mkdir_p"
25632 msgstr ""
25633
25634 #. type: verbatim
25635 #: ../src/guestfs-actions.pod:4433
25636 #, no-wrap
25637 msgid ""
25638 " int\n"
25639 " guestfs_mkdir_p (guestfs_h *g,\n"
25640 "                  const char *path);\n"
25641 "\n"
25642 msgstr ""
25643
25644 #. type: =head2
25645 #: ../src/guestfs-actions.pod:4444
25646 msgid "guestfs_mkdtemp"
25647 msgstr ""
25648
25649 #. type: verbatim
25650 #: ../src/guestfs-actions.pod:4446
25651 #, no-wrap
25652 msgid ""
25653 " char *\n"
25654 " guestfs_mkdtemp (guestfs_h *g,\n"
25655 "                  const char *template);\n"
25656 "\n"
25657 msgstr ""
25658
25659 #. type: =head2
25660 #: ../src/guestfs-actions.pod:4474
25661 msgid "guestfs_mke2fs_J"
25662 msgstr ""
25663
25664 #. type: verbatim
25665 #: ../src/guestfs-actions.pod:4476
25666 #, no-wrap
25667 msgid ""
25668 " int\n"
25669 " guestfs_mke2fs_J (guestfs_h *g,\n"
25670 "                   const char *fstype,\n"
25671 "                   int blocksize,\n"
25672 "                   const char *device,\n"
25673 "                   const char *journal);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: textblock
25678 #: ../src/guestfs-actions.pod:4489
25679 msgid "See also C<guestfs_mke2journal>."
25680 msgstr ""
25681
25682 #. type: textblock
25683 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
25684 msgid "(Added in 1.0.68)"
25685 msgstr ""
25686
25687 #. type: =head2
25688 #: ../src/guestfs-actions.pod:4495
25689 msgid "guestfs_mke2fs_JL"
25690 msgstr ""
25691
25692 #. type: verbatim
25693 #: ../src/guestfs-actions.pod:4497
25694 #, no-wrap
25695 msgid ""
25696 " int\n"
25697 " guestfs_mke2fs_JL (guestfs_h *g,\n"
25698 "                    const char *fstype,\n"
25699 "                    int blocksize,\n"
25700 "                    const char *device,\n"
25701 "                    const char *label);\n"
25702 "\n"
25703 msgstr ""
25704
25705 #. type: textblock
25706 #: ../src/guestfs-actions.pod:4507
25707 msgid "See also C<guestfs_mke2journal_L>."
25708 msgstr ""
25709
25710 #. type: =head2
25711 #: ../src/guestfs-actions.pod:4513
25712 msgid "guestfs_mke2fs_JU"
25713 msgstr ""
25714
25715 #. type: verbatim
25716 #: ../src/guestfs-actions.pod:4515
25717 #, no-wrap
25718 msgid ""
25719 " int\n"
25720 " guestfs_mke2fs_JU (guestfs_h *g,\n"
25721 "                    const char *fstype,\n"
25722 "                    int blocksize,\n"
25723 "                    const char *device,\n"
25724 "                    const char *uuid);\n"
25725 "\n"
25726 msgstr ""
25727
25728 #. type: textblock
25729 #: ../src/guestfs-actions.pod:4525
25730 msgid "See also C<guestfs_mke2journal_U>."
25731 msgstr ""
25732
25733 #. type: =head2
25734 #: ../src/guestfs-actions.pod:4531
25735 msgid "guestfs_mke2journal"
25736 msgstr ""
25737
25738 #. type: verbatim
25739 #: ../src/guestfs-actions.pod:4533
25740 #, no-wrap
25741 msgid ""
25742 " int\n"
25743 " guestfs_mke2journal (guestfs_h *g,\n"
25744 "                      int blocksize,\n"
25745 "                      const char *device);\n"
25746 "\n"
25747 msgstr ""
25748
25749 #. type: =head2
25750 #: ../src/guestfs-actions.pod:4547
25751 msgid "guestfs_mke2journal_L"
25752 msgstr ""
25753
25754 #. type: verbatim
25755 #: ../src/guestfs-actions.pod:4549
25756 #, no-wrap
25757 msgid ""
25758 " int\n"
25759 " guestfs_mke2journal_L (guestfs_h *g,\n"
25760 "                        int blocksize,\n"
25761 "                        const char *label,\n"
25762 "                        const char *device);\n"
25763 "\n"
25764 msgstr ""
25765
25766 #. type: =head2
25767 #: ../src/guestfs-actions.pod:4561
25768 msgid "guestfs_mke2journal_U"
25769 msgstr ""
25770
25771 #. type: verbatim
25772 #: ../src/guestfs-actions.pod:4563
25773 #, no-wrap
25774 msgid ""
25775 " int\n"
25776 " guestfs_mke2journal_U (guestfs_h *g,\n"
25777 "                        int blocksize,\n"
25778 "                        const char *uuid,\n"
25779 "                        const char *device);\n"
25780 "\n"
25781 msgstr ""
25782
25783 #. type: =head2
25784 #: ../src/guestfs-actions.pod:4575
25785 msgid "guestfs_mkfifo"
25786 msgstr ""
25787
25788 #. type: verbatim
25789 #: ../src/guestfs-actions.pod:4577
25790 #, no-wrap
25791 msgid ""
25792 " int\n"
25793 " guestfs_mkfifo (guestfs_h *g,\n"
25794 "                 int mode,\n"
25795 "                 const char *path);\n"
25796 "\n"
25797 msgstr ""
25798
25799 #. type: textblock
25800 #: ../src/guestfs-actions.pod:4582
25801 msgid ""
25802 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25803 "is just a convenient wrapper around C<guestfs_mknod>."
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:4592
25808 msgid "guestfs_mkfs"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:4594
25813 #, no-wrap
25814 msgid ""
25815 " int\n"
25816 " guestfs_mkfs (guestfs_h *g,\n"
25817 "               const char *fstype,\n"
25818 "               const char *device);\n"
25819 "\n"
25820 msgstr ""
25821
25822 #. type: =head2
25823 #: ../src/guestfs-actions.pod:4607
25824 msgid "guestfs_mkfs_b"
25825 msgstr ""
25826
25827 #. type: verbatim
25828 #: ../src/guestfs-actions.pod:4609
25829 #, no-wrap
25830 msgid ""
25831 " int\n"
25832 " guestfs_mkfs_b (guestfs_h *g,\n"
25833 "                 const char *fstype,\n"
25834 "                 int blocksize,\n"
25835 "                 const char *device);\n"
25836 "\n"
25837 msgstr ""
25838
25839 #. type: textblock
25840 #: ../src/guestfs-actions.pod:4615
25841 msgid ""
25842 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
25843 "block size of the resulting filesystem.  Supported block sizes depend on the "
25844 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../src/guestfs-actions.pod:4625
25849 msgid ""
25850 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
25851 "call instead."
25852 msgstr ""
25853
25854 #. type: =head2
25855 #: ../src/guestfs-actions.pod:4634
25856 msgid "guestfs_mkfs_opts"
25857 msgstr ""
25858
25859 #. type: verbatim
25860 #: ../src/guestfs-actions.pod:4636
25861 #, no-wrap
25862 msgid ""
25863 " int\n"
25864 " guestfs_mkfs_opts (guestfs_h *g,\n"
25865 "                    const char *fstype,\n"
25866 "                    const char *device,\n"
25867 "                    ...);\n"
25868 "\n"
25869 msgstr ""
25870
25871 #. type: verbatim
25872 #: ../src/guestfs-actions.pod:4647
25873 #, no-wrap
25874 msgid ""
25875 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
25876 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
25877 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
25878 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: textblock
25883 #: ../src/guestfs-actions.pod:4695
25884 msgid "(Added in 1.7.19)"
25885 msgstr ""
25886
25887 #. type: =head2
25888 #: ../src/guestfs-actions.pod:4697
25889 msgid "guestfs_mkfs_opts_va"
25890 msgstr ""
25891
25892 #. type: verbatim
25893 #: ../src/guestfs-actions.pod:4699
25894 #, no-wrap
25895 msgid ""
25896 " int\n"
25897 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
25898 "                       const char *fstype,\n"
25899 "                       const char *device,\n"
25900 "                       va_list args);\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../src/guestfs-actions.pod:4705
25906 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
25907 msgstr ""
25908
25909 #. type: =head2
25910 #: ../src/guestfs-actions.pod:4709
25911 msgid "guestfs_mkfs_opts_argv"
25912 msgstr ""
25913
25914 #. type: verbatim
25915 #: ../src/guestfs-actions.pod:4711
25916 #, no-wrap
25917 msgid ""
25918 " int\n"
25919 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25920 "                         const char *fstype,\n"
25921 "                         const char *device,\n"
25922 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25923 "\n"
25924 msgstr ""
25925
25926 #. type: textblock
25927 #: ../src/guestfs-actions.pod:4717
25928 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
25929 msgstr ""
25930
25931 #. type: =head2
25932 #: ../src/guestfs-actions.pod:4721
25933 msgid "guestfs_mkmountpoint"
25934 msgstr ""
25935
25936 #. type: verbatim
25937 #: ../src/guestfs-actions.pod:4723
25938 #, no-wrap
25939 msgid ""
25940 " int\n"
25941 " guestfs_mkmountpoint (guestfs_h *g,\n"
25942 "                       const char *exemptpath);\n"
25943 "\n"
25944 msgstr ""
25945
25946 #. type: textblock
25947 #: ../src/guestfs-actions.pod:4727
25948 msgid ""
25949 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
25950 "that can be used to create extra mountpoints before mounting the first "
25951 "filesystem."
25952 msgstr ""
25953
25954 #. type: textblock
25955 #: ../src/guestfs-actions.pod:4751
25956 msgid ""
25957 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
25958 "may get unexpected errors if you try to mix these calls.  It is safest to "
25959 "manually unmount filesystems and remove mountpoints after use."
25960 msgstr ""
25961
25962 #. type: textblock
25963 #: ../src/guestfs-actions.pod:4755
25964 msgid ""
25965 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
25966 "first, so for this to work for manual mountpoints, you must ensure that the "
25967 "innermost mountpoints have the longest pathnames, as in the example code "
25968 "above."
25969 msgstr ""
25970
25971 #. type: textblock
25972 #: ../src/guestfs-actions.pod:4762
25973 msgid ""
25974 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
25975 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
25976 "can also trigger these issues."
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084 ../src/guestfs-actions.pod:6094
25981 msgid "(Added in 1.0.62)"
25982 msgstr ""
25983
25984 #. type: =head2
25985 #: ../src/guestfs-actions.pod:4770
25986 msgid "guestfs_mknod"
25987 msgstr ""
25988
25989 #. type: verbatim
25990 #: ../src/guestfs-actions.pod:4772
25991 #, no-wrap
25992 msgid ""
25993 " int\n"
25994 " guestfs_mknod (guestfs_h *g,\n"
25995 "                int mode,\n"
25996 "                int devmajor,\n"
25997 "                int devminor,\n"
25998 "                const char *path);\n"
25999 "\n"
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../src/guestfs-actions.pod:4787
26004 msgid ""
26005 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26006 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26007 "regular file).  These constants are available in the standard Linux header "
26008 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26009 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26010 "the appropriate constant for you."
26011 msgstr ""
26012
26013 #. type: =head2
26014 #: ../src/guestfs-actions.pod:4801
26015 msgid "guestfs_mknod_b"
26016 msgstr ""
26017
26018 #. type: verbatim
26019 #: ../src/guestfs-actions.pod:4803
26020 #, no-wrap
26021 msgid ""
26022 " int\n"
26023 " guestfs_mknod_b (guestfs_h *g,\n"
26024 "                  int mode,\n"
26025 "                  int devmajor,\n"
26026 "                  int devminor,\n"
26027 "                  const char *path);\n"
26028 "\n"
26029 msgstr ""
26030
26031 #. type: textblock
26032 #: ../src/guestfs-actions.pod:4810
26033 msgid ""
26034 "This call creates a block device node called C<path> with mode C<mode> and "
26035 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26036 "wrapper around C<guestfs_mknod>."
26037 msgstr ""
26038
26039 #. type: =head2
26040 #: ../src/guestfs-actions.pod:4820
26041 msgid "guestfs_mknod_c"
26042 msgstr ""
26043
26044 #. type: verbatim
26045 #: ../src/guestfs-actions.pod:4822
26046 #, no-wrap
26047 msgid ""
26048 " int\n"
26049 " guestfs_mknod_c (guestfs_h *g,\n"
26050 "                  int mode,\n"
26051 "                  int devmajor,\n"
26052 "                  int devminor,\n"
26053 "                  const char *path);\n"
26054 "\n"
26055 msgstr ""
26056
26057 #. type: textblock
26058 #: ../src/guestfs-actions.pod:4829
26059 msgid ""
26060 "This call creates a char device node called C<path> with mode C<mode> and "
26061 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26062 "wrapper around C<guestfs_mknod>."
26063 msgstr ""
26064
26065 #. type: =head2
26066 #: ../src/guestfs-actions.pod:4839
26067 msgid "guestfs_mkswap"
26068 msgstr ""
26069
26070 #. type: verbatim
26071 #: ../src/guestfs-actions.pod:4841
26072 #, no-wrap
26073 msgid ""
26074 " int\n"
26075 " guestfs_mkswap (guestfs_h *g,\n"
26076 "                 const char *device);\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: =head2
26081 #: ../src/guestfs-actions.pod:4851
26082 msgid "guestfs_mkswap_L"
26083 msgstr ""
26084
26085 #. type: verbatim
26086 #: ../src/guestfs-actions.pod:4853
26087 #, no-wrap
26088 msgid ""
26089 " int\n"
26090 " guestfs_mkswap_L (guestfs_h *g,\n"
26091 "                   const char *label,\n"
26092 "                   const char *device);\n"
26093 "\n"
26094 msgstr ""
26095
26096 #. type: =head2
26097 #: ../src/guestfs-actions.pod:4868
26098 msgid "guestfs_mkswap_U"
26099 msgstr ""
26100
26101 #. type: verbatim
26102 #: ../src/guestfs-actions.pod:4870
26103 #, no-wrap
26104 msgid ""
26105 " int\n"
26106 " guestfs_mkswap_U (guestfs_h *g,\n"
26107 "                   const char *uuid,\n"
26108 "                   const char *device);\n"
26109 "\n"
26110 msgstr ""
26111
26112 #. type: =head2
26113 #: ../src/guestfs-actions.pod:4881
26114 msgid "guestfs_mkswap_file"
26115 msgstr ""
26116
26117 #. type: verbatim
26118 #: ../src/guestfs-actions.pod:4883
26119 #, no-wrap
26120 msgid ""
26121 " int\n"
26122 " guestfs_mkswap_file (guestfs_h *g,\n"
26123 "                      const char *path);\n"
26124 "\n"
26125 msgstr ""
26126
26127 #. type: textblock
26128 #: ../src/guestfs-actions.pod:4889
26129 msgid ""
26130 "This command just writes a swap file signature to an existing file.  To "
26131 "create the file itself, use something like C<guestfs_fallocate>."
26132 msgstr ""
26133
26134 #. type: =head2
26135 #: ../src/guestfs-actions.pod:4896
26136 msgid "guestfs_modprobe"
26137 msgstr ""
26138
26139 #. type: verbatim
26140 #: ../src/guestfs-actions.pod:4898
26141 #, no-wrap
26142 msgid ""
26143 " int\n"
26144 " guestfs_modprobe (guestfs_h *g,\n"
26145 "                   const char *modulename);\n"
26146 "\n"
26147 msgstr ""
26148
26149 #. type: =head2
26150 #: ../src/guestfs-actions.pod:4911
26151 msgid "guestfs_mount"
26152 msgstr ""
26153
26154 #. type: verbatim
26155 #: ../src/guestfs-actions.pod:4913
26156 #, no-wrap
26157 msgid ""
26158 " int\n"
26159 " guestfs_mount (guestfs_h *g,\n"
26160 "                const char *device,\n"
26161 "                const char *mountpoint);\n"
26162 "\n"
26163 msgstr ""
26164
26165 #. type: textblock
26166 #: ../src/guestfs-actions.pod:4932
26167 msgid ""
26168 "B<Important note:> When you use this call, the filesystem options C<sync> "
26169 "and C<noatime> are set implicitly.  This was originally done because we "
26170 "thought it would improve reliability, but it turns out that I<-o sync> has a "
26171 "very large negative performance impact and negligible effect on "
26172 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
26173 "in any code that needs performance, and instead use C<guestfs_mount_options> "
26174 "(use an empty string for the first parameter if you don't want any options)."
26175 msgstr ""
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:4944
26179 msgid ""
26180 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
26181 "call instead."
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../src/guestfs-actions.pod:4953
26186 msgid "guestfs_mount_9p"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../src/guestfs-actions.pod:4955
26191 #, no-wrap
26192 msgid ""
26193 " int\n"
26194 " guestfs_mount_9p (guestfs_h *g,\n"
26195 "                   const char *mounttag,\n"
26196 "                   const char *mountpoint,\n"
26197 "                   ...);\n"
26198 "\n"
26199 msgstr ""
26200
26201 #. type: verbatim
26202 #: ../src/guestfs-actions.pod:4966
26203 #, no-wrap
26204 msgid ""
26205 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26206 "\n"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:4979
26211 msgid "guestfs_mount_9p_va"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:4981
26216 #, no-wrap
26217 msgid ""
26218 " int\n"
26219 " guestfs_mount_9p_va (guestfs_h *g,\n"
26220 "                      const char *mounttag,\n"
26221 "                      const char *mountpoint,\n"
26222 "                      va_list args);\n"
26223 "\n"
26224 msgstr ""
26225
26226 #. type: textblock
26227 #: ../src/guestfs-actions.pod:4987
26228 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26229 msgstr ""
26230
26231 #. type: =head2
26232 #: ../src/guestfs-actions.pod:4991
26233 msgid "guestfs_mount_9p_argv"
26234 msgstr ""
26235
26236 #. type: verbatim
26237 #: ../src/guestfs-actions.pod:4993
26238 #, no-wrap
26239 msgid ""
26240 " int\n"
26241 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26242 "                        const char *mounttag,\n"
26243 "                        const char *mountpoint,\n"
26244 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26245 "\n"
26246 msgstr ""
26247
26248 #. type: textblock
26249 #: ../src/guestfs-actions.pod:4999
26250 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26251 msgstr ""
26252
26253 #. type: =head2
26254 #: ../src/guestfs-actions.pod:5003
26255 msgid "guestfs_mount_loop"
26256 msgstr ""
26257
26258 #. type: verbatim
26259 #: ../src/guestfs-actions.pod:5005
26260 #, no-wrap
26261 msgid ""
26262 " int\n"
26263 " guestfs_mount_loop (guestfs_h *g,\n"
26264 "                     const char *file,\n"
26265 "                     const char *mountpoint);\n"
26266 "\n"
26267 msgstr ""
26268
26269 #. type: =head2
26270 #: ../src/guestfs-actions.pod:5018
26271 msgid "guestfs_mount_options"
26272 msgstr ""
26273
26274 #. type: verbatim
26275 #: ../src/guestfs-actions.pod:5020
26276 #, no-wrap
26277 msgid ""
26278 " int\n"
26279 " guestfs_mount_options (guestfs_h *g,\n"
26280 "                        const char *options,\n"
26281 "                        const char *device,\n"
26282 "                        const char *mountpoint);\n"
26283 "\n"
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:5026
26288 msgid ""
26289 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26290 "the mount options as for the L<mount(8)> I<-o> flag."
26291 msgstr ""
26292
26293 #. type: textblock
26294 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050 ../src/guestfs-actions.pod:5067
26295 msgid "(Added in 1.0.10)"
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:5038
26300 msgid "guestfs_mount_ro"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:5040
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_mount_ro (guestfs_h *g,\n"
26309 "                   const char *device,\n"
26310 "                   const char *mountpoint);\n"
26311 "\n"
26312 msgstr ""
26313
26314 #. type: textblock
26315 #: ../src/guestfs-actions.pod:5045
26316 msgid ""
26317 "This is the same as the C<guestfs_mount> command, but it mounts the "
26318 "filesystem with the read-only (I<-o ro>) flag."
26319 msgstr ""
26320
26321 #. type: =head2
26322 #: ../src/guestfs-actions.pod:5052
26323 msgid "guestfs_mount_vfs"
26324 msgstr ""
26325
26326 #. type: verbatim
26327 #: ../src/guestfs-actions.pod:5054
26328 #, no-wrap
26329 msgid ""
26330 " int\n"
26331 " guestfs_mount_vfs (guestfs_h *g,\n"
26332 "                    const char *options,\n"
26333 "                    const char *vfstype,\n"
26334 "                    const char *device,\n"
26335 "                    const char *mountpoint);\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../src/guestfs-actions.pod:5061
26341 msgid ""
26342 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26343 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
26344 "I<-t> flags."
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:5069
26349 msgid "guestfs_mountpoints"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:5071
26354 #, no-wrap
26355 msgid ""
26356 " char **\n"
26357 " guestfs_mountpoints (guestfs_h *g);\n"
26358 "\n"
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../src/guestfs-actions.pod:5074
26363 msgid ""
26364 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
26365 "devices.  This one returns a hash table (map) of device name to directory "
26366 "where the device is mounted."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:5086
26371 msgid "guestfs_mounts"
26372 msgstr ""
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:5088
26376 #, no-wrap
26377 msgid ""
26378 " char **\n"
26379 " guestfs_mounts (guestfs_h *g);\n"
26380 "\n"
26381 msgstr ""
26382
26383 #. type: textblock
26384 #: ../src/guestfs-actions.pod:5096
26385 msgid "See also: C<guestfs_mountpoints>"
26386 msgstr ""
26387
26388 #. type: =head2
26389 #: ../src/guestfs-actions.pod:5104
26390 msgid "guestfs_mv"
26391 msgstr ""
26392
26393 #. type: verbatim
26394 #: ../src/guestfs-actions.pod:5106
26395 #, no-wrap
26396 msgid ""
26397 " int\n"
26398 " guestfs_mv (guestfs_h *g,\n"
26399 "             const char *src,\n"
26400 "             const char *dest);\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: =head2
26405 #: ../src/guestfs-actions.pod:5118
26406 msgid "guestfs_ntfs_3g_probe"
26407 msgstr ""
26408
26409 #. type: verbatim
26410 #: ../src/guestfs-actions.pod:5120
26411 #, no-wrap
26412 msgid ""
26413 " int\n"
26414 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
26415 "                        int rw,\n"
26416 "                        const char *device);\n"
26417 "\n"
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../src/guestfs-actions.pod:5139
26422 msgid "(Added in 1.0.43)"
26423 msgstr ""
26424
26425 #. type: =head2
26426 #: ../src/guestfs-actions.pod:5141
26427 msgid "guestfs_ntfsresize"
26428 msgstr ""
26429
26430 #. type: verbatim
26431 #: ../src/guestfs-actions.pod:5143
26432 #, no-wrap
26433 msgid ""
26434 " int\n"
26435 " guestfs_ntfsresize (guestfs_h *g,\n"
26436 "                     const char *device);\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: textblock
26441 #: ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5252
26442 msgid ""
26443 "This function is deprecated.  In new code, use the "
26444 "L</guestfs_ntfsresize_opts> call instead."
26445 msgstr ""
26446
26447 #. type: =head2
26448 #: ../src/guestfs-actions.pod:5171
26449 msgid "guestfs_ntfsresize_opts"
26450 msgstr ""
26451
26452 #. type: verbatim
26453 #: ../src/guestfs-actions.pod:5173
26454 #, no-wrap
26455 msgid ""
26456 " int\n"
26457 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
26458 "                          const char *device,\n"
26459 "                          ...);\n"
26460 "\n"
26461 msgstr ""
26462
26463 #. type: verbatim
26464 #: ../src/guestfs-actions.pod:5183
26465 #, no-wrap
26466 msgid ""
26467 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
26468 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
26469 "\n"
26470 msgstr ""
26471
26472 #. type: textblock
26473 #: ../src/guestfs-actions.pod:5203
26474 msgid ""
26475 "After the resize operation, the filesystem is always marked as requiring a "
26476 "consistency check (for safety).  You have to boot into Windows to perform "
26477 "this check and clear this condition.  If you I<don't> set the C<force> "
26478 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
26479 "times on a single filesystem without booting into Windows between each "
26480 "resize."
26481 msgstr ""
26482
26483 #. type: =head2
26484 #: ../src/guestfs-actions.pod:5218
26485 msgid "guestfs_ntfsresize_opts_va"
26486 msgstr ""
26487
26488 #. type: verbatim
26489 #: ../src/guestfs-actions.pod:5220
26490 #, no-wrap
26491 msgid ""
26492 " int\n"
26493 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
26494 "                             const char *device,\n"
26495 "                             va_list args);\n"
26496 "\n"
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../src/guestfs-actions.pod:5225
26501 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
26502 msgstr ""
26503
26504 #. type: =head2
26505 #: ../src/guestfs-actions.pod:5229
26506 msgid "guestfs_ntfsresize_opts_argv"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../src/guestfs-actions.pod:5231
26511 #, no-wrap
26512 msgid ""
26513 " int\n"
26514 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
26515 "                               const char *device,\n"
26516 "                               const struct guestfs_ntfsresize_opts_argv "
26517 "*optargs);\n"
26518 "\n"
26519 msgstr ""
26520
26521 #. type: textblock
26522 #: ../src/guestfs-actions.pod:5236
26523 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
26524 msgstr ""
26525
26526 #. type: =head2
26527 #: ../src/guestfs-actions.pod:5240
26528 msgid "guestfs_ntfsresize_size"
26529 msgstr ""
26530
26531 #. type: verbatim
26532 #: ../src/guestfs-actions.pod:5242
26533 #, no-wrap
26534 msgid ""
26535 " int\n"
26536 " guestfs_ntfsresize_size (guestfs_h *g,\n"
26537 "                          const char *device,\n"
26538 "                          int64_t size);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: textblock
26543 #: ../src/guestfs-actions.pod:5247
26544 msgid ""
26545 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
26546 "to specify the new size (in bytes) explicitly."
26547 msgstr ""
26548
26549 #. type: textblock
26550 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:7665
26551 msgid "(Added in 1.3.14)"
26552 msgstr ""
26553
26554 #. type: =head2
26555 #: ../src/guestfs-actions.pod:5261
26556 msgid "guestfs_part_add"
26557 msgstr ""
26558
26559 #. type: verbatim
26560 #: ../src/guestfs-actions.pod:5263
26561 #, no-wrap
26562 msgid ""
26563 " int\n"
26564 " guestfs_part_add (guestfs_h *g,\n"
26565 "                   const char *device,\n"
26566 "                   const char *prlogex,\n"
26567 "                   int64_t startsect,\n"
26568 "                   int64_t endsect);\n"
26569 "\n"
26570 msgstr ""
26571
26572 #. type: textblock
26573 #: ../src/guestfs-actions.pod:5270
26574 msgid ""
26575 "This command adds a partition to C<device>.  If there is no partition table "
26576 "on the device, call C<guestfs_part_init> first."
26577 msgstr ""
26578
26579 #. type: textblock
26580 #: ../src/guestfs-actions.pod:5282
26581 msgid ""
26582 "Creating a partition which covers the whole disk is not so easy.  Use "
26583 "C<guestfs_part_disk> to do that."
26584 msgstr ""
26585
26586 #. type: textblock
26587 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519 ../src/guestfs-actions.pod:5559
26588 msgid "(Added in 1.0.78)"
26589 msgstr ""
26590
26591 #. type: =head2
26592 #: ../src/guestfs-actions.pod:5289
26593 msgid "guestfs_part_del"
26594 msgstr ""
26595
26596 #. type: verbatim
26597 #: ../src/guestfs-actions.pod:5291
26598 #, no-wrap
26599 msgid ""
26600 " int\n"
26601 " guestfs_part_del (guestfs_h *g,\n"
26602 "                   const char *device,\n"
26603 "                   int partnum);\n"
26604 "\n"
26605 msgstr ""
26606
26607 #. type: =head2
26608 #: ../src/guestfs-actions.pod:5306
26609 msgid "guestfs_part_disk"
26610 msgstr ""
26611
26612 #. type: verbatim
26613 #: ../src/guestfs-actions.pod:5308
26614 #, no-wrap
26615 msgid ""
26616 " int\n"
26617 " guestfs_part_disk (guestfs_h *g,\n"
26618 "                    const char *device,\n"
26619 "                    const char *parttype);\n"
26620 "\n"
26621 msgstr ""
26622
26623 #. type: textblock
26624 #: ../src/guestfs-actions.pod:5313
26625 msgid ""
26626 "This command is simply a combination of C<guestfs_part_init> followed by "
26627 "C<guestfs_part_add> to create a single primary partition covering the whole "
26628 "disk."
26629 msgstr ""
26630
26631 #. type: textblock
26632 #: ../src/guestfs-actions.pod:5317
26633 msgid ""
26634 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26635 "possible values are described in C<guestfs_part_init>."
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../src/guestfs-actions.pod:5327
26640 msgid "guestfs_part_get_bootable"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../src/guestfs-actions.pod:5329
26645 #, no-wrap
26646 msgid ""
26647 " int\n"
26648 " guestfs_part_get_bootable (guestfs_h *g,\n"
26649 "                            const char *device,\n"
26650 "                            int partnum);\n"
26651 "\n"
26652 msgstr ""
26653
26654 #. type: textblock
26655 #: ../src/guestfs-actions.pod:5337
26656 msgid "See also C<guestfs_part_set_bootable>."
26657 msgstr ""
26658
26659 #. type: =head2
26660 #: ../src/guestfs-actions.pod:5343
26661 msgid "guestfs_part_get_mbr_id"
26662 msgstr ""
26663
26664 #. type: verbatim
26665 #: ../src/guestfs-actions.pod:5345
26666 #, no-wrap
26667 msgid ""
26668 " int\n"
26669 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
26670 "                          const char *device,\n"
26671 "                          int partnum);\n"
26672 "\n"
26673 msgstr ""
26674
26675 #. type: textblock
26676 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
26677 msgid ""
26678 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26679 "undefined results for other partition table types (see "
26680 "C<guestfs_part_get_parttype>)."
26681 msgstr ""
26682
26683 #. type: =head2
26684 #: ../src/guestfs-actions.pod:5361
26685 msgid "guestfs_part_get_parttype"
26686 msgstr ""
26687
26688 #. type: verbatim
26689 #: ../src/guestfs-actions.pod:5363
26690 #, no-wrap
26691 msgid ""
26692 " char *\n"
26693 " guestfs_part_get_parttype (guestfs_h *g,\n"
26694 "                            const char *device);\n"
26695 "\n"
26696 msgstr ""
26697
26698 #. type: textblock
26699 #: ../src/guestfs-actions.pod:5370
26700 msgid ""
26701 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26702 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26703 "possible, although unusual.  See C<guestfs_part_init> for a full list."
26704 msgstr ""
26705
26706 #. type: =head2
26707 #: ../src/guestfs-actions.pod:5380
26708 msgid "guestfs_part_init"
26709 msgstr ""
26710
26711 #. type: verbatim
26712 #: ../src/guestfs-actions.pod:5382
26713 #, no-wrap
26714 msgid ""
26715 " int\n"
26716 " guestfs_part_init (guestfs_h *g,\n"
26717 "                    const char *device,\n"
26718 "                    const char *parttype);\n"
26719 "\n"
26720 msgstr ""
26721
26722 #. type: textblock
26723 #: ../src/guestfs-actions.pod:5391
26724 msgid ""
26725 "Initially there are no partitions.  Following this, you should call "
26726 "C<guestfs_part_add> for each partition required."
26727 msgstr ""
26728
26729 #. type: =head2
26730 #: ../src/guestfs-actions.pod:5464
26731 msgid "guestfs_part_list"
26732 msgstr ""
26733
26734 #. type: verbatim
26735 #: ../src/guestfs-actions.pod:5466
26736 #, no-wrap
26737 msgid ""
26738 " struct guestfs_partition_list *\n"
26739 " guestfs_part_list (guestfs_h *g,\n"
26740 "                    const char *device);\n"
26741 "\n"
26742 msgstr ""
26743
26744 #. type: textblock
26745 #: ../src/guestfs-actions.pod:5483
26746 msgid ""
26747 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26748 "the device's sector size, see C<guestfs_blockdev_getss>."
26749 msgstr ""
26750
26751 #. type: textblock
26752 #: ../src/guestfs-actions.pod:5496
26753 msgid ""
26754 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
26755 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
26756 "use>."
26757 msgstr ""
26758
26759 #. type: =head2
26760 #: ../src/guestfs-actions.pod:5502
26761 msgid "guestfs_part_set_bootable"
26762 msgstr ""
26763
26764 #. type: verbatim
26765 #: ../src/guestfs-actions.pod:5504
26766 #, no-wrap
26767 msgid ""
26768 " int\n"
26769 " guestfs_part_set_bootable (guestfs_h *g,\n"
26770 "                            const char *device,\n"
26771 "                            int partnum,\n"
26772 "                            int bootable);\n"
26773 "\n"
26774 msgstr ""
26775
26776 #. type: =head2
26777 #: ../src/guestfs-actions.pod:5521
26778 msgid "guestfs_part_set_mbr_id"
26779 msgstr ""
26780
26781 #. type: verbatim
26782 #: ../src/guestfs-actions.pod:5523
26783 #, no-wrap
26784 msgid ""
26785 " int\n"
26786 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
26787 "                          const char *device,\n"
26788 "                          int partnum,\n"
26789 "                          int idbyte);\n"
26790 "\n"
26791 msgstr ""
26792
26793 #. type: =head2
26794 #: ../src/guestfs-actions.pod:5543
26795 msgid "guestfs_part_set_name"
26796 msgstr ""
26797
26798 #. type: verbatim
26799 #: ../src/guestfs-actions.pod:5545
26800 #, no-wrap
26801 msgid ""
26802 " int\n"
26803 " guestfs_part_set_name (guestfs_h *g,\n"
26804 "                        const char *device,\n"
26805 "                        int partnum,\n"
26806 "                        const char *name);\n"
26807 "\n"
26808 msgstr ""
26809
26810 #. type: =head2
26811 #: ../src/guestfs-actions.pod:5561
26812 msgid "guestfs_part_to_dev"
26813 msgstr ""
26814
26815 #. type: verbatim
26816 #: ../src/guestfs-actions.pod:5563
26817 #, no-wrap
26818 msgid ""
26819 " char *\n"
26820 " guestfs_part_to_dev (guestfs_h *g,\n"
26821 "                      const char *partition);\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: textblock
26826 #: ../src/guestfs-actions.pod:5571
26827 msgid ""
26828 "The named partition must exist, for example as a string returned from "
26829 "C<guestfs_list_partitions>."
26830 msgstr ""
26831
26832 #. type: =head2
26833 #: ../src/guestfs-actions.pod:5579
26834 msgid "guestfs_ping_daemon"
26835 msgstr ""
26836
26837 #. type: verbatim
26838 #: ../src/guestfs-actions.pod:5581
26839 #, no-wrap
26840 msgid ""
26841 " int\n"
26842 " guestfs_ping_daemon (guestfs_h *g);\n"
26843 "\n"
26844 msgstr ""
26845
26846 #. type: =head2
26847 #: ../src/guestfs-actions.pod:5593
26848 msgid "guestfs_pread"
26849 msgstr ""
26850
26851 #. type: verbatim
26852 #: ../src/guestfs-actions.pod:5595
26853 #, no-wrap
26854 msgid ""
26855 " char *\n"
26856 " guestfs_pread (guestfs_h *g,\n"
26857 "                const char *path,\n"
26858 "                int count,\n"
26859 "                int64_t offset,\n"
26860 "                size_t *size_r);\n"
26861 "\n"
26862 msgstr ""
26863
26864 #. type: textblock
26865 #: ../src/guestfs-actions.pod:5608
26866 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
26867 msgstr ""
26868
26869 #. type: =head2
26870 #: ../src/guestfs-actions.pod:5619
26871 msgid "guestfs_pread_device"
26872 msgstr ""
26873
26874 #. type: verbatim
26875 #: ../src/guestfs-actions.pod:5621
26876 #, no-wrap
26877 msgid ""
26878 " char *\n"
26879 " guestfs_pread_device (guestfs_h *g,\n"
26880 "                       const char *device,\n"
26881 "                       int count,\n"
26882 "                       int64_t offset,\n"
26883 "                       size_t *size_r);\n"
26884 "\n"
26885 msgstr ""
26886
26887 #. type: textblock
26888 #: ../src/guestfs-actions.pod:5634
26889 msgid "See also C<guestfs_pread>."
26890 msgstr ""
26891
26892 #. type: textblock
26893 #: ../src/guestfs-actions.pod:5643
26894 msgid "(Added in 1.5.21)"
26895 msgstr ""
26896
26897 #. type: =head2
26898 #: ../src/guestfs-actions.pod:5645
26899 msgid "guestfs_pvcreate"
26900 msgstr ""
26901
26902 #. type: verbatim
26903 #: ../src/guestfs-actions.pod:5647
26904 #, no-wrap
26905 msgid ""
26906 " int\n"
26907 " guestfs_pvcreate (guestfs_h *g,\n"
26908 "                   const char *device);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:5659
26914 msgid "guestfs_pvremove"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:5661
26919 #, no-wrap
26920 msgid ""
26921 " int\n"
26922 " guestfs_pvremove (guestfs_h *g,\n"
26923 "                   const char *device);\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: =head2
26928 #: ../src/guestfs-actions.pod:5676
26929 msgid "guestfs_pvresize"
26930 msgstr ""
26931
26932 #. type: verbatim
26933 #: ../src/guestfs-actions.pod:5678
26934 #, no-wrap
26935 msgid ""
26936 " int\n"
26937 " guestfs_pvresize (guestfs_h *g,\n"
26938 "                   const char *device);\n"
26939 "\n"
26940 msgstr ""
26941
26942 #. type: =head2
26943 #: ../src/guestfs-actions.pod:5689
26944 msgid "guestfs_pvresize_size"
26945 msgstr ""
26946
26947 #. type: verbatim
26948 #: ../src/guestfs-actions.pod:5691
26949 #, no-wrap
26950 msgid ""
26951 " int\n"
26952 " guestfs_pvresize_size (guestfs_h *g,\n"
26953 "                        const char *device,\n"
26954 "                        int64_t size);\n"
26955 "\n"
26956 msgstr ""
26957
26958 #. type: textblock
26959 #: ../src/guestfs-actions.pod:5696
26960 msgid ""
26961 "This command is the same as C<guestfs_pvresize> except that it allows you to "
26962 "specify the new size (in bytes) explicitly."
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:5703
26967 msgid "guestfs_pvs"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:5705
26972 #, no-wrap
26973 msgid ""
26974 " char **\n"
26975 " guestfs_pvs (guestfs_h *g);\n"
26976 "\n"
26977 msgstr ""
26978
26979 #. type: textblock
26980 #: ../src/guestfs-actions.pod:5714
26981 msgid "See also C<guestfs_pvs_full>."
26982 msgstr ""
26983
26984 #. type: =head2
26985 #: ../src/guestfs-actions.pod:5722
26986 msgid "guestfs_pvs_full"
26987 msgstr ""
26988
26989 #. type: verbatim
26990 #: ../src/guestfs-actions.pod:5724
26991 #, no-wrap
26992 msgid ""
26993 " struct guestfs_lvm_pv_list *\n"
26994 " guestfs_pvs_full (guestfs_h *g);\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../src/guestfs-actions.pod:5730
27000 msgid ""
27001 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27002 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27003 "use>."
27004 msgstr ""
27005
27006 #. type: =head2
27007 #: ../src/guestfs-actions.pod:5736
27008 msgid "guestfs_pvuuid"
27009 msgstr ""
27010
27011 #. type: verbatim
27012 #: ../src/guestfs-actions.pod:5738
27013 #, no-wrap
27014 msgid ""
27015 " char *\n"
27016 " guestfs_pvuuid (guestfs_h *g,\n"
27017 "                 const char *device);\n"
27018 "\n"
27019 msgstr ""
27020
27021 #. type: =head2
27022 #: ../src/guestfs-actions.pod:5749
27023 msgid "guestfs_pwrite"
27024 msgstr ""
27025
27026 #. type: verbatim
27027 #: ../src/guestfs-actions.pod:5751
27028 #, no-wrap
27029 msgid ""
27030 " int\n"
27031 " guestfs_pwrite (guestfs_h *g,\n"
27032 "                 const char *path,\n"
27033 "                 const char *content,\n"
27034 "                 size_t content_size,\n"
27035 "                 int64_t offset);\n"
27036 "\n"
27037 msgstr ""
27038
27039 #. type: textblock
27040 #: ../src/guestfs-actions.pod:5767
27041 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../src/guestfs-actions.pod:5776
27046 msgid "guestfs_pwrite_device"
27047 msgstr ""
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:5778
27051 #, no-wrap
27052 msgid ""
27053 " int\n"
27054 " guestfs_pwrite_device (guestfs_h *g,\n"
27055 "                        const char *device,\n"
27056 "                        const char *content,\n"
27057 "                        size_t content_size,\n"
27058 "                        int64_t offset);\n"
27059 "\n"
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../src/guestfs-actions.pod:5793
27064 msgid "See also C<guestfs_pwrite>."
27065 msgstr ""
27066
27067 #. type: textblock
27068 #: ../src/guestfs-actions.pod:5800
27069 msgid "(Added in 1.5.20)"
27070 msgstr ""
27071
27072 #. type: =head2
27073 #: ../src/guestfs-actions.pod:5802
27074 msgid "guestfs_read_file"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../src/guestfs-actions.pod:5804
27079 #, no-wrap
27080 msgid ""
27081 " char *\n"
27082 " guestfs_read_file (guestfs_h *g,\n"
27083 "                    const char *path,\n"
27084 "                    size_t *size_r);\n"
27085 "\n"
27086 msgstr ""
27087
27088 #. type: textblock
27089 #: ../src/guestfs-actions.pod:5812
27090 msgid ""
27091 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27092 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27093 "function is limited in the total size of file that can be handled."
27094 msgstr ""
27095
27096 #. type: textblock
27097 #: ../src/guestfs-actions.pod:5824
27098 msgid "(Added in 1.0.63)"
27099 msgstr ""
27100
27101 #. type: =head2
27102 #: ../src/guestfs-actions.pod:5826
27103 msgid "guestfs_read_lines"
27104 msgstr ""
27105
27106 #. type: verbatim
27107 #: ../src/guestfs-actions.pod:5828
27108 #, no-wrap
27109 msgid ""
27110 " char **\n"
27111 " guestfs_read_lines (guestfs_h *g,\n"
27112 "                     const char *path);\n"
27113 "\n"
27114 msgstr ""
27115
27116 #. type: textblock
27117 #: ../src/guestfs-actions.pod:5837
27118 msgid ""
27119 "Note that this function cannot correctly handle binary files (specifically, "
27120 "files containing C<\\0> character which is treated as end of line).  For "
27121 "those you need to use the C<guestfs_read_file> function which has a more "
27122 "complex interface."
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../src/guestfs-actions.pod:5848
27127 msgid "guestfs_readdir"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../src/guestfs-actions.pod:5850
27132 #, no-wrap
27133 msgid ""
27134 " struct guestfs_dirent_list *\n"
27135 " guestfs_readdir (guestfs_h *g,\n"
27136 "                  const char *dir);\n"
27137 "\n"
27138 msgstr ""
27139
27140 #. type: textblock
27141 #: ../src/guestfs-actions.pod:5904
27142 msgid ""
27143 "This function is primarily intended for use by programs.  To get a simple "
27144 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27145 "consumption, use C<guestfs_ll>."
27146 msgstr ""
27147
27148 #. type: textblock
27149 #: ../src/guestfs-actions.pod:5908
27150 msgid ""
27151 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27152 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27153 "use>."
27154 msgstr ""
27155
27156 #. type: =head2
27157 #: ../src/guestfs-actions.pod:5914
27158 msgid "guestfs_readlink"
27159 msgstr ""
27160
27161 #. type: verbatim
27162 #: ../src/guestfs-actions.pod:5916
27163 #, no-wrap
27164 msgid ""
27165 " char *\n"
27166 " guestfs_readlink (guestfs_h *g,\n"
27167 "                   const char *path);\n"
27168 "\n"
27169 msgstr ""
27170
27171 #. type: =head2
27172 #: ../src/guestfs-actions.pod:5927
27173 msgid "guestfs_readlinklist"
27174 msgstr ""
27175
27176 #. type: verbatim
27177 #: ../src/guestfs-actions.pod:5929
27178 #, no-wrap
27179 msgid ""
27180 " char **\n"
27181 " guestfs_readlinklist (guestfs_h *g,\n"
27182 "                       const char *path,\n"
27183 "                       char *const *names);\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../src/guestfs-actions.pod:5962
27189 msgid "guestfs_realpath"
27190 msgstr ""
27191
27192 #. type: verbatim
27193 #: ../src/guestfs-actions.pod:5964
27194 #, no-wrap
27195 msgid ""
27196 " char *\n"
27197 " guestfs_realpath (guestfs_h *g,\n"
27198 "                   const char *path);\n"
27199 "\n"
27200 msgstr ""
27201
27202 #. type: =head2
27203 #: ../src/guestfs-actions.pod:5976
27204 msgid "guestfs_removexattr"
27205 msgstr ""
27206
27207 #. type: verbatim
27208 #: ../src/guestfs-actions.pod:5978
27209 #, no-wrap
27210 msgid ""
27211 " int\n"
27212 " guestfs_removexattr (guestfs_h *g,\n"
27213 "                      const char *xattr,\n"
27214 "                      const char *path);\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: textblock
27219 #: ../src/guestfs-actions.pod:5986
27220 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27221 msgstr ""
27222
27223 #. type: =head2
27224 #: ../src/guestfs-actions.pod:5992
27225 msgid "guestfs_resize2fs"
27226 msgstr ""
27227
27228 #. type: verbatim
27229 #: ../src/guestfs-actions.pod:5994
27230 #, no-wrap
27231 msgid ""
27232 " int\n"
27233 " guestfs_resize2fs (guestfs_h *g,\n"
27234 "                    const char *device);\n"
27235 "\n"
27236 msgstr ""
27237
27238 #. type: textblock
27239 #: ../src/guestfs-actions.pod:6001
27240 msgid ""
27241 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27242 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27243 "sometimes gives an error about this and sometimes not.  In any case, it is "
27244 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:6011
27249 msgid "guestfs_resize2fs_M"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:6013
27254 #, no-wrap
27255 msgid ""
27256 " int\n"
27257 " guestfs_resize2fs_M (guestfs_h *g,\n"
27258 "                      const char *device);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: textblock
27263 #: ../src/guestfs-actions.pod:6017
27264 msgid ""
27265 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27266 "resized to its minimum size.  This works like the I<-M> option to the "
27267 "C<resize2fs> command."
27268 msgstr ""
27269
27270 #. type: textblock
27271 #: ../src/guestfs-actions.pod:6021
27272 msgid ""
27273 "To get the resulting size of the filesystem you should call "
27274 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27275 "These two numbers, multiplied together, give the resulting size of the "
27276 "minimal filesystem in bytes."
27277 msgstr ""
27278
27279 #. type: =head2
27280 #: ../src/guestfs-actions.pod:6030
27281 msgid "guestfs_resize2fs_size"
27282 msgstr ""
27283
27284 #. type: verbatim
27285 #: ../src/guestfs-actions.pod:6032
27286 #, no-wrap
27287 msgid ""
27288 " int\n"
27289 " guestfs_resize2fs_size (guestfs_h *g,\n"
27290 "                         const char *device,\n"
27291 "                         int64_t size);\n"
27292 "\n"
27293 msgstr ""
27294
27295 #. type: textblock
27296 #: ../src/guestfs-actions.pod:6037
27297 msgid ""
27298 "This command is the same as C<guestfs_resize2fs> except that it allows you "
27299 "to specify the new size (in bytes) explicitly."
27300 msgstr ""
27301
27302 #. type: =head2
27303 #: ../src/guestfs-actions.pod:6044
27304 msgid "guestfs_rm"
27305 msgstr ""
27306
27307 #. type: verbatim
27308 #: ../src/guestfs-actions.pod:6046
27309 #, no-wrap
27310 msgid ""
27311 " int\n"
27312 " guestfs_rm (guestfs_h *g,\n"
27313 "             const char *path);\n"
27314 "\n"
27315 msgstr ""
27316
27317 #. type: =head2
27318 #: ../src/guestfs-actions.pod:6056
27319 msgid "guestfs_rm_rf"
27320 msgstr ""
27321
27322 #. type: verbatim
27323 #: ../src/guestfs-actions.pod:6058
27324 #, no-wrap
27325 msgid ""
27326 " int\n"
27327 " guestfs_rm_rf (guestfs_h *g,\n"
27328 "                const char *path);\n"
27329 "\n"
27330 msgstr ""
27331
27332 #. type: =head2
27333 #: ../src/guestfs-actions.pod:6070
27334 msgid "guestfs_rmdir"
27335 msgstr ""
27336
27337 #. type: verbatim
27338 #: ../src/guestfs-actions.pod:6072
27339 #, no-wrap
27340 msgid ""
27341 " int\n"
27342 " guestfs_rmdir (guestfs_h *g,\n"
27343 "                const char *path);\n"
27344 "\n"
27345 msgstr ""
27346
27347 #. type: =head2
27348 #: ../src/guestfs-actions.pod:6082
27349 msgid "guestfs_rmmountpoint"
27350 msgstr ""
27351
27352 #. type: verbatim
27353 #: ../src/guestfs-actions.pod:6084
27354 #, no-wrap
27355 msgid ""
27356 " int\n"
27357 " guestfs_rmmountpoint (guestfs_h *g,\n"
27358 "                       const char *exemptpath);\n"
27359 "\n"
27360 msgstr ""
27361
27362 #. type: textblock
27363 #: ../src/guestfs-actions.pod:6088
27364 msgid ""
27365 "This calls removes a mountpoint that was previously created with "
27366 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
27367 msgstr ""
27368
27369 #. type: =head2
27370 #: ../src/guestfs-actions.pod:6096
27371 msgid "guestfs_scrub_device"
27372 msgstr ""
27373
27374 #. type: verbatim
27375 #: ../src/guestfs-actions.pod:6098
27376 #, no-wrap
27377 msgid ""
27378 " int\n"
27379 " guestfs_scrub_device (guestfs_h *g,\n"
27380 "                       const char *device);\n"
27381 "\n"
27382 msgstr ""
27383
27384 #. type: textblock
27385 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
27386 msgid "(Added in 1.0.52)"
27387 msgstr ""
27388
27389 #. type: =head2
27390 #: ../src/guestfs-actions.pod:6115
27391 msgid "guestfs_scrub_file"
27392 msgstr ""
27393
27394 #. type: verbatim
27395 #: ../src/guestfs-actions.pod:6117
27396 #, no-wrap
27397 msgid ""
27398 " int\n"
27399 " guestfs_scrub_file (guestfs_h *g,\n"
27400 "                     const char *file);\n"
27401 "\n"
27402 msgstr ""
27403
27404 #. type: =head2
27405 #: ../src/guestfs-actions.pod:6133
27406 msgid "guestfs_scrub_freespace"
27407 msgstr ""
27408
27409 #. type: verbatim
27410 #: ../src/guestfs-actions.pod:6135
27411 #, no-wrap
27412 msgid ""
27413 " int\n"
27414 " guestfs_scrub_freespace (guestfs_h *g,\n"
27415 "                          const char *dir);\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: textblock
27420 #: ../src/guestfs-actions.pod:6139
27421 msgid ""
27422 "This command creates the directory C<dir> and then fills it with files until "
27423 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
27424 "and deletes them.  The intention is to scrub any free space on the partition "
27425 "containing C<dir>."
27426 msgstr ""
27427
27428 #. type: =head2
27429 #: ../src/guestfs-actions.pod:6152
27430 msgid "guestfs_set_append"
27431 msgstr ""
27432
27433 #. type: verbatim
27434 #: ../src/guestfs-actions.pod:6154
27435 #, no-wrap
27436 msgid ""
27437 " int\n"
27438 " guestfs_set_append (guestfs_h *g,\n"
27439 "                     const char *append);\n"
27440 "\n"
27441 msgstr ""
27442
27443 #. type: =head2
27444 #: ../src/guestfs-actions.pod:6171
27445 msgid "guestfs_set_attach_method"
27446 msgstr ""
27447
27448 #. type: verbatim
27449 #: ../src/guestfs-actions.pod:6173
27450 #, no-wrap
27451 msgid ""
27452 " int\n"
27453 " guestfs_set_attach_method (guestfs_h *g,\n"
27454 "                            const char *attachmethod);\n"
27455 "\n"
27456 msgstr ""
27457
27458 #. type: =head2
27459 #: ../src/guestfs-actions.pod:6201
27460 msgid "guestfs_set_autosync"
27461 msgstr ""
27462
27463 #. type: verbatim
27464 #: ../src/guestfs-actions.pod:6203
27465 #, no-wrap
27466 msgid ""
27467 " int\n"
27468 " guestfs_set_autosync (guestfs_h *g,\n"
27469 "                       int autosync);\n"
27470 "\n"
27471 msgstr ""
27472
27473 #. type: =head2
27474 #: ../src/guestfs-actions.pod:6219
27475 msgid "guestfs_set_direct"
27476 msgstr ""
27477
27478 #. type: verbatim
27479 #: ../src/guestfs-actions.pod:6221
27480 #, no-wrap
27481 msgid ""
27482 " int\n"
27483 " guestfs_set_direct (guestfs_h *g,\n"
27484 "                     int direct);\n"
27485 "\n"
27486 msgstr ""
27487
27488 #. type: textblock
27489 #: ../src/guestfs-actions.pod:6229
27490 msgid ""
27491 "One consequence of this is that log messages aren't caught by the library "
27492 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
27493 "stdout."
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:6242
27498 msgid "guestfs_set_e2label"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:6244
27503 #, no-wrap
27504 msgid ""
27505 " int\n"
27506 " guestfs_set_e2label (guestfs_h *g,\n"
27507 "                      const char *device,\n"
27508 "                      const char *label);\n"
27509 "\n"
27510 msgstr ""
27511
27512 #. type: textblock
27513 #: ../src/guestfs-actions.pod:6253
27514 msgid ""
27515 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
27516 "the existing label on a filesystem."
27517 msgstr ""
27518
27519 #. type: =head2
27520 #: ../src/guestfs-actions.pod:6260
27521 msgid "guestfs_set_e2uuid"
27522 msgstr ""
27523
27524 #. type: verbatim
27525 #: ../src/guestfs-actions.pod:6262
27526 #, no-wrap
27527 msgid ""
27528 " int\n"
27529 " guestfs_set_e2uuid (guestfs_h *g,\n"
27530 "                     const char *device,\n"
27531 "                     const char *uuid);\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: textblock
27536 #: ../src/guestfs-actions.pod:6272
27537 msgid ""
27538 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
27539 "the existing UUID of a filesystem."
27540 msgstr ""
27541
27542 #. type: =head2
27543 #: ../src/guestfs-actions.pod:6279
27544 msgid "guestfs_set_memsize"
27545 msgstr ""
27546
27547 #. type: verbatim
27548 #: ../src/guestfs-actions.pod:6281
27549 #, no-wrap
27550 msgid ""
27551 " int\n"
27552 " guestfs_set_memsize (guestfs_h *g,\n"
27553 "                      int memsize);\n"
27554 "\n"
27555 msgstr ""
27556
27557 #. type: textblock
27558 #: ../src/guestfs-actions.pod:6285
27559 msgid ""
27560 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
27561 "This only has any effect if called before C<guestfs_launch>."
27562 msgstr ""
27563
27564 #. type: =head2
27565 #: ../src/guestfs-actions.pod:6300
27566 msgid "guestfs_set_network"
27567 msgstr ""
27568
27569 #. type: verbatim
27570 #: ../src/guestfs-actions.pod:6302
27571 #, no-wrap
27572 msgid ""
27573 " int\n"
27574 " guestfs_set_network (guestfs_h *g,\n"
27575 "                      int network);\n"
27576 "\n"
27577 msgstr ""
27578
27579 #. type: textblock
27580 #: ../src/guestfs-actions.pod:6312
27581 msgid ""
27582 "You must call this before calling C<guestfs_launch>, otherwise it has no "
27583 "effect."
27584 msgstr ""
27585
27586 #. type: =head2
27587 #: ../src/guestfs-actions.pod:6319
27588 msgid "guestfs_set_path"
27589 msgstr ""
27590
27591 #. type: verbatim
27592 #: ../src/guestfs-actions.pod:6321
27593 #, no-wrap
27594 msgid ""
27595 " int\n"
27596 " guestfs_set_path (guestfs_h *g,\n"
27597 "                   const char *searchpath);\n"
27598 "\n"
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:6336
27603 msgid "guestfs_set_pgroup"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:6338
27608 #, no-wrap
27609 msgid ""
27610 " int\n"
27611 " guestfs_set_pgroup (guestfs_h *g,\n"
27612 "                     int pgroup);\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: =head2
27617 #: ../src/guestfs-actions.pod:6355
27618 msgid "guestfs_set_qemu"
27619 msgstr ""
27620
27621 #. type: verbatim
27622 #: ../src/guestfs-actions.pod:6357
27623 #, no-wrap
27624 msgid ""
27625 " int\n"
27626 " guestfs_set_qemu (guestfs_h *g,\n"
27627 "                   const char *qemu);\n"
27628 "\n"
27629 msgstr ""
27630
27631 #. type: =head2
27632 #: ../src/guestfs-actions.pod:6383
27633 msgid "guestfs_set_recovery_proc"
27634 msgstr ""
27635
27636 #. type: verbatim
27637 #: ../src/guestfs-actions.pod:6385
27638 #, no-wrap
27639 msgid ""
27640 " int\n"
27641 " guestfs_set_recovery_proc (guestfs_h *g,\n"
27642 "                            int recoveryproc);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:6389
27648 msgid ""
27649 "If this is called with the parameter C<false> then C<guestfs_launch> does "
27650 "not create a recovery process.  The purpose of the recovery process is to "
27651 "stop runaway qemu processes in the case where the main program aborts "
27652 "abruptly."
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:6394
27657 msgid ""
27658 "This only has any effect if called before C<guestfs_launch>, and the default "
27659 "is true."
27660 msgstr ""
27661
27662 #. type: =head2
27663 #: ../src/guestfs-actions.pod:6407
27664 msgid "guestfs_set_selinux"
27665 msgstr ""
27666
27667 #. type: verbatim
27668 #: ../src/guestfs-actions.pod:6409
27669 #, no-wrap
27670 msgid ""
27671 " int\n"
27672 " guestfs_set_selinux (guestfs_h *g,\n"
27673 "                      int selinux);\n"
27674 "\n"
27675 msgstr ""
27676
27677 #. type: =head2
27678 #: ../src/guestfs-actions.pod:6426
27679 msgid "guestfs_set_trace"
27680 msgstr ""
27681
27682 #. type: verbatim
27683 #: ../src/guestfs-actions.pod:6428
27684 #, no-wrap
27685 msgid ""
27686 " int\n"
27687 " guestfs_set_trace (guestfs_h *g,\n"
27688 "                    int trace);\n"
27689 "\n"
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../src/guestfs-actions.pod:6442
27694 msgid ""
27695 "Trace messages are normally sent to C<stderr>, unless you register a "
27696 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27697 msgstr ""
27698
27699 #. type: =head2
27700 #: ../src/guestfs-actions.pod:6450
27701 msgid "guestfs_set_verbose"
27702 msgstr ""
27703
27704 #. type: verbatim
27705 #: ../src/guestfs-actions.pod:6452
27706 #, no-wrap
27707 msgid ""
27708 " int\n"
27709 " guestfs_set_verbose (guestfs_h *g,\n"
27710 "                      int verbose);\n"
27711 "\n"
27712 msgstr ""
27713
27714 #. type: textblock
27715 #: ../src/guestfs-actions.pod:6461
27716 msgid ""
27717 "Verbose messages are normally sent to C<stderr>, unless you register a "
27718 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:6469
27723 msgid "guestfs_setcon"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:6471
27728 #, no-wrap
27729 msgid ""
27730 " int\n"
27731 " guestfs_setcon (guestfs_h *g,\n"
27732 "                 const char *context);\n"
27733 "\n"
27734 msgstr ""
27735
27736 #. type: =head2
27737 #: ../src/guestfs-actions.pod:6484
27738 msgid "guestfs_setxattr"
27739 msgstr ""
27740
27741 #. type: verbatim
27742 #: ../src/guestfs-actions.pod:6486
27743 #, no-wrap
27744 msgid ""
27745 " int\n"
27746 " guestfs_setxattr (guestfs_h *g,\n"
27747 "                   const char *xattr,\n"
27748 "                   const char *val,\n"
27749 "                   int vallen,\n"
27750 "                   const char *path);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: textblock
27755 #: ../src/guestfs-actions.pod:6497
27756 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
27757 msgstr ""
27758
27759 #. type: =head2
27760 #: ../src/guestfs-actions.pod:6503
27761 msgid "guestfs_sfdisk"
27762 msgstr ""
27763
27764 #. type: verbatim
27765 #: ../src/guestfs-actions.pod:6505
27766 #, no-wrap
27767 msgid ""
27768 " int\n"
27769 " guestfs_sfdisk (guestfs_h *g,\n"
27770 "                 const char *device,\n"
27771 "                 int cyls,\n"
27772 "                 int heads,\n"
27773 "                 int sectors,\n"
27774 "                 char *const *lines);\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: textblock
27779 #: ../src/guestfs-actions.pod:6533
27780 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
27781 msgstr ""
27782
27783 #. type: textblock
27784 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6604
27785 msgid ""
27786 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
27787 "instead."
27788 msgstr ""
27789
27790 #. type: =head2
27791 #: ../src/guestfs-actions.pod:6550
27792 msgid "guestfs_sfdiskM"
27793 msgstr ""
27794
27795 #. type: verbatim
27796 #: ../src/guestfs-actions.pod:6552
27797 #, no-wrap
27798 msgid ""
27799 " int\n"
27800 " guestfs_sfdiskM (guestfs_h *g,\n"
27801 "                  const char *device,\n"
27802 "                  char *const *lines);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:6557
27808 msgid ""
27809 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
27810 "partition sizes are specified in megabytes only (rounded to the nearest "
27811 "cylinder) and you don't need to specify the cyls, heads and sectors "
27812 "parameters which were rarely if ever used anyway."
27813 msgstr ""
27814
27815 #. type: textblock
27816 #: ../src/guestfs-actions.pod:6563
27817 msgid ""
27818 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
27819 "C<guestfs_part_disk>"
27820 msgstr ""
27821
27822 #. type: =head2
27823 #: ../src/guestfs-actions.pod:6580
27824 msgid "guestfs_sfdisk_N"
27825 msgstr ""
27826
27827 #. type: verbatim
27828 #: ../src/guestfs-actions.pod:6582
27829 #, no-wrap
27830 msgid ""
27831 " int\n"
27832 " guestfs_sfdisk_N (guestfs_h *g,\n"
27833 "                   const char *device,\n"
27834 "                   int partnum,\n"
27835 "                   int cyls,\n"
27836 "                   int heads,\n"
27837 "                   int sectors,\n"
27838 "                   const char *line);\n"
27839 "\n"
27840 msgstr ""
27841
27842 #. type: textblock
27843 #: ../src/guestfs-actions.pod:6594
27844 msgid ""
27845 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
27846 "for the cyls/heads/sectors parameters."
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../src/guestfs-actions.pod:6597
27851 msgid "See also: C<guestfs_part_add>"
27852 msgstr ""
27853
27854 #. type: =head2
27855 #: ../src/guestfs-actions.pod:6613
27856 msgid "guestfs_sfdisk_disk_geometry"
27857 msgstr ""
27858
27859 #. type: verbatim
27860 #: ../src/guestfs-actions.pod:6615
27861 #, no-wrap
27862 msgid ""
27863 " char *\n"
27864 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
27865 "                               const char *device);\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: textblock
27870 #: ../src/guestfs-actions.pod:6619
27871 msgid ""
27872 "This displays the disk geometry of C<device> read from the partition table.  "
27873 "Especially in the case where the underlying block device has been resized, "
27874 "this can be different from the kernel's idea of the geometry (see "
27875 "C<guestfs_sfdisk_kernel_geometry>)."
27876 msgstr ""
27877
27878 #. type: =head2
27879 #: ../src/guestfs-actions.pod:6632
27880 msgid "guestfs_sfdisk_kernel_geometry"
27881 msgstr ""
27882
27883 #. type: verbatim
27884 #: ../src/guestfs-actions.pod:6634
27885 #, no-wrap
27886 msgid ""
27887 " char *\n"
27888 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
27889 "                                 const char *device);\n"
27890 "\n"
27891 msgstr ""
27892
27893 #. type: =head2
27894 #: ../src/guestfs-actions.pod:6648
27895 msgid "guestfs_sfdisk_l"
27896 msgstr ""
27897
27898 #. type: verbatim
27899 #: ../src/guestfs-actions.pod:6650
27900 #, no-wrap
27901 msgid ""
27902 " char *\n"
27903 " guestfs_sfdisk_l (guestfs_h *g,\n"
27904 "                   const char *device);\n"
27905 "\n"
27906 msgstr ""
27907
27908 #. type: textblock
27909 #: ../src/guestfs-actions.pod:6658
27910 msgid "See also: C<guestfs_part_list>"
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../src/guestfs-actions.pod:6663
27915 msgid ""
27916 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
27917 "call instead."
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:6672
27922 msgid "guestfs_sh"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:6674
27927 #, no-wrap
27928 msgid ""
27929 " char *\n"
27930 " guestfs_sh (guestfs_h *g,\n"
27931 "             const char *command);\n"
27932 "\n"
27933 msgstr ""
27934
27935 #. type: textblock
27936 #: ../src/guestfs-actions.pod:6681
27937 msgid "This is like C<guestfs_command>, but passes the command to:"
27938 msgstr ""
27939
27940 #. type: textblock
27941 #: ../src/guestfs-actions.pod:6689
27942 msgid "All the provisos about C<guestfs_command> apply to this call."
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:6696
27947 msgid "guestfs_sh_lines"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:6698
27952 #, no-wrap
27953 msgid ""
27954 " char **\n"
27955 " guestfs_sh_lines (guestfs_h *g,\n"
27956 "                   const char *command);\n"
27957 "\n"
27958 msgstr ""
27959
27960 #. type: textblock
27961 #: ../src/guestfs-actions.pod:6702
27962 msgid ""
27963 "This is the same as C<guestfs_sh>, but splits the result into a list of "
27964 "lines."
27965 msgstr ""
27966
27967 #. type: textblock
27968 #: ../src/guestfs-actions.pod:6705
27969 msgid "See also: C<guestfs_command_lines>"
27970 msgstr ""
27971
27972 #. type: =head2
27973 #: ../src/guestfs-actions.pod:6713
27974 msgid "guestfs_sleep"
27975 msgstr ""
27976
27977 #. type: verbatim
27978 #: ../src/guestfs-actions.pod:6715
27979 #, no-wrap
27980 msgid ""
27981 " int\n"
27982 " guestfs_sleep (guestfs_h *g,\n"
27983 "                int secs);\n"
27984 "\n"
27985 msgstr ""
27986
27987 #. type: textblock
27988 #: ../src/guestfs-actions.pod:6723
27989 msgid "(Added in 1.0.41)"
27990 msgstr ""
27991
27992 #. type: =head2
27993 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
27994 msgid "guestfs_stat"
27995 msgstr ""
27996
27997 #. type: verbatim
27998 #: ../src/guestfs-actions.pod:6727
27999 #, no-wrap
28000 msgid ""
28001 " struct guestfs_stat *\n"
28002 " guestfs_stat (guestfs_h *g,\n"
28003 "               const char *path);\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: =head2
28008 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
28009 msgid "guestfs_statvfs"
28010 msgstr ""
28011
28012 #. type: verbatim
28013 #: ../src/guestfs-actions.pod:6743
28014 #, no-wrap
28015 msgid ""
28016 " struct guestfs_statvfs *\n"
28017 " guestfs_statvfs (guestfs_h *g,\n"
28018 "                  const char *path);\n"
28019 "\n"
28020 msgstr ""
28021
28022 #. type: textblock
28023 #: ../src/guestfs-actions.pod:6753
28024 msgid ""
28025 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28026 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28027 msgstr ""
28028
28029 #. type: =head2
28030 #: ../src/guestfs-actions.pod:6759
28031 msgid "guestfs_strings"
28032 msgstr ""
28033
28034 #. type: verbatim
28035 #: ../src/guestfs-actions.pod:6761
28036 #, no-wrap
28037 msgid ""
28038 " char **\n"
28039 " guestfs_strings (guestfs_h *g,\n"
28040 "                  const char *path);\n"
28041 "\n"
28042 msgstr ""
28043
28044 #. type: =head2
28045 #: ../src/guestfs-actions.pod:6777
28046 msgid "guestfs_strings_e"
28047 msgstr ""
28048
28049 #. type: verbatim
28050 #: ../src/guestfs-actions.pod:6779
28051 #, no-wrap
28052 msgid ""
28053 " char **\n"
28054 " guestfs_strings_e (guestfs_h *g,\n"
28055 "                    const char *encoding,\n"
28056 "                    const char *path);\n"
28057 "\n"
28058 msgstr ""
28059
28060 #. type: textblock
28061 #: ../src/guestfs-actions.pod:6784
28062 msgid ""
28063 "This is like the C<guestfs_strings> command, but allows you to specify the "
28064 "encoding of strings that are looked for in the source file C<path>."
28065 msgstr ""
28066
28067 #. type: textblock
28068 #: ../src/guestfs-actions.pod:6794
28069 msgid ""
28070 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28071 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28072 msgstr ""
28073
28074 #. type: =head2
28075 #: ../src/guestfs-actions.pod:6832
28076 msgid "guestfs_swapoff_device"
28077 msgstr ""
28078
28079 #. type: verbatim
28080 #: ../src/guestfs-actions.pod:6834
28081 #, no-wrap
28082 msgid ""
28083 " int\n"
28084 " guestfs_swapoff_device (guestfs_h *g,\n"
28085 "                         const char *device);\n"
28086 "\n"
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../src/guestfs-actions.pod:6838
28091 msgid ""
28092 "This command disables the libguestfs appliance swap device or partition "
28093 "named C<device>.  See C<guestfs_swapon_device>."
28094 msgstr ""
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:6846
28098 msgid "guestfs_swapoff_file"
28099 msgstr ""
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:6848
28103 #, no-wrap
28104 msgid ""
28105 " int\n"
28106 " guestfs_swapoff_file (guestfs_h *g,\n"
28107 "                       const char *file);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:6858
28113 msgid "guestfs_swapoff_label"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:6860
28118 #, no-wrap
28119 msgid ""
28120 " int\n"
28121 " guestfs_swapoff_label (guestfs_h *g,\n"
28122 "                        const char *label);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: =head2
28127 #: ../src/guestfs-actions.pod:6871
28128 msgid "guestfs_swapoff_uuid"
28129 msgstr ""
28130
28131 #. type: verbatim
28132 #: ../src/guestfs-actions.pod:6873
28133 #, no-wrap
28134 msgid ""
28135 " int\n"
28136 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28137 "                       const char *uuid);\n"
28138 "\n"
28139 msgstr ""
28140
28141 #. type: =head2
28142 #: ../src/guestfs-actions.pod:6884
28143 msgid "guestfs_swapon_device"
28144 msgstr ""
28145
28146 #. type: verbatim
28147 #: ../src/guestfs-actions.pod:6886
28148 #, no-wrap
28149 msgid ""
28150 " int\n"
28151 " guestfs_swapon_device (guestfs_h *g,\n"
28152 "                        const char *device);\n"
28153 "\n"
28154 msgstr ""
28155
28156 #. type: textblock
28157 #: ../src/guestfs-actions.pod:6890
28158 msgid ""
28159 "This command enables the libguestfs appliance to use the swap device or "
28160 "partition named C<device>.  The increased memory is made available for all "
28161 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28162 msgstr ""
28163
28164 #. type: =head2
28165 #: ../src/guestfs-actions.pod:6906
28166 msgid "guestfs_swapon_file"
28167 msgstr ""
28168
28169 #. type: verbatim
28170 #: ../src/guestfs-actions.pod:6908
28171 #, no-wrap
28172 msgid ""
28173 " int\n"
28174 " guestfs_swapon_file (guestfs_h *g,\n"
28175 "                      const char *file);\n"
28176 "\n"
28177 msgstr ""
28178
28179 #. type: textblock
28180 #: ../src/guestfs-actions.pod:6912
28181 msgid ""
28182 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28183 "notes."
28184 msgstr ""
28185
28186 #. type: =head2
28187 #: ../src/guestfs-actions.pod:6919
28188 msgid "guestfs_swapon_label"
28189 msgstr ""
28190
28191 #. type: verbatim
28192 #: ../src/guestfs-actions.pod:6921
28193 #, no-wrap
28194 msgid ""
28195 " int\n"
28196 " guestfs_swapon_label (guestfs_h *g,\n"
28197 "                       const char *label);\n"
28198 "\n"
28199 msgstr ""
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:6925
28203 msgid ""
28204 "This command enables swap to a labeled swap partition.  See "
28205 "C<guestfs_swapon_device> for other notes."
28206 msgstr ""
28207
28208 #. type: =head2
28209 #: ../src/guestfs-actions.pod:6932
28210 msgid "guestfs_swapon_uuid"
28211 msgstr ""
28212
28213 #. type: verbatim
28214 #: ../src/guestfs-actions.pod:6934
28215 #, no-wrap
28216 msgid ""
28217 " int\n"
28218 " guestfs_swapon_uuid (guestfs_h *g,\n"
28219 "                      const char *uuid);\n"
28220 "\n"
28221 msgstr ""
28222
28223 #. type: textblock
28224 #: ../src/guestfs-actions.pod:6938
28225 msgid ""
28226 "This command enables swap to a swap partition with the given UUID.  See "
28227 "C<guestfs_swapon_device> for other notes."
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:6945
28232 msgid "guestfs_sync"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:6947
28237 #, no-wrap
28238 msgid ""
28239 " int\n"
28240 " guestfs_sync (guestfs_h *g);\n"
28241 "\n"
28242 msgstr ""
28243
28244 #. type: =head2
28245 #: ../src/guestfs-actions.pod:6960
28246 msgid "guestfs_tail"
28247 msgstr ""
28248
28249 #. type: verbatim
28250 #: ../src/guestfs-actions.pod:6962
28251 #, no-wrap
28252 msgid ""
28253 " char **\n"
28254 " guestfs_tail (guestfs_h *g,\n"
28255 "               const char *path);\n"
28256 "\n"
28257 msgstr ""
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:6978
28261 msgid "guestfs_tail_n"
28262 msgstr ""
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:6980
28266 #, no-wrap
28267 msgid ""
28268 " char **\n"
28269 " guestfs_tail_n (guestfs_h *g,\n"
28270 "                 int nrlines,\n"
28271 "                 const char *path);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: =head2
28276 #: ../src/guestfs-actions.pod:7002
28277 msgid "guestfs_tar_in"
28278 msgstr ""
28279
28280 #. type: verbatim
28281 #: ../src/guestfs-actions.pod:7004
28282 #, no-wrap
28283 msgid ""
28284 " int\n"
28285 " guestfs_tar_in (guestfs_h *g,\n"
28286 "                 const char *tarfile,\n"
28287 "                 const char *directory);\n"
28288 "\n"
28289 msgstr ""
28290
28291 #. type: textblock
28292 #: ../src/guestfs-actions.pod:7012
28293 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
28294 msgstr ""
28295
28296 #. type: textblock
28297 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
28298 msgid "(Added in 1.0.3)"
28299 msgstr ""
28300
28301 #. type: =head2
28302 #: ../src/guestfs-actions.pod:7019
28303 msgid "guestfs_tar_out"
28304 msgstr ""
28305
28306 #. type: verbatim
28307 #: ../src/guestfs-actions.pod:7021
28308 #, no-wrap
28309 msgid ""
28310 " int\n"
28311 " guestfs_tar_out (guestfs_h *g,\n"
28312 "                  const char *directory,\n"
28313 "                  const char *tarfile);\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:7029
28319 msgid ""
28320 "To download a compressed tarball, use C<guestfs_tgz_out> or "
28321 "C<guestfs_txz_out>."
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:7036
28326 msgid "guestfs_tgz_in"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:7038
28331 #, no-wrap
28332 msgid ""
28333 " int\n"
28334 " guestfs_tgz_in (guestfs_h *g,\n"
28335 "                 const char *tarball,\n"
28336 "                 const char *directory);\n"
28337 "\n"
28338 msgstr ""
28339
28340 #. type: textblock
28341 #: ../src/guestfs-actions.pod:7046
28342 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
28343 msgstr ""
28344
28345 #. type: =head2
28346 #: ../src/guestfs-actions.pod:7052
28347 msgid "guestfs_tgz_out"
28348 msgstr ""
28349
28350 #. type: verbatim
28351 #: ../src/guestfs-actions.pod:7054
28352 #, no-wrap
28353 msgid ""
28354 " int\n"
28355 " guestfs_tgz_out (guestfs_h *g,\n"
28356 "                  const char *directory,\n"
28357 "                  const char *tarball);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:7062
28363 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
28364 msgstr ""
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:7068
28368 msgid "guestfs_touch"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:7070
28373 #, no-wrap
28374 msgid ""
28375 " int\n"
28376 " guestfs_touch (guestfs_h *g,\n"
28377 "                const char *path);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:7085
28383 msgid "guestfs_truncate"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:7087
28388 #, no-wrap
28389 msgid ""
28390 " int\n"
28391 " guestfs_truncate (guestfs_h *g,\n"
28392 "                   const char *path);\n"
28393 "\n"
28394 msgstr ""
28395
28396 #. type: =head2
28397 #: ../src/guestfs-actions.pod:7098
28398 msgid "guestfs_truncate_size"
28399 msgstr ""
28400
28401 #. type: verbatim
28402 #: ../src/guestfs-actions.pod:7100
28403 #, no-wrap
28404 msgid ""
28405 " int\n"
28406 " guestfs_truncate_size (guestfs_h *g,\n"
28407 "                        const char *path,\n"
28408 "                        int64_t size);\n"
28409 "\n"
28410 msgstr ""
28411
28412 #. type: textblock
28413 #: ../src/guestfs-actions.pod:7108
28414 msgid ""
28415 "If the current file size is less than C<size> then the file is extended to "
28416 "the required size with zero bytes.  This creates a sparse file (ie. disk "
28417 "blocks are not allocated for the file until you write to it).  To create a "
28418 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
28419 msgstr ""
28420
28421 #. type: =head2
28422 #: ../src/guestfs-actions.pod:7118
28423 msgid "guestfs_tune2fs_l"
28424 msgstr ""
28425
28426 #. type: verbatim
28427 #: ../src/guestfs-actions.pod:7120
28428 #, no-wrap
28429 msgid ""
28430 " char **\n"
28431 " guestfs_tune2fs_l (guestfs_h *g,\n"
28432 "                    const char *device);\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: =head2
28437 #: ../src/guestfs-actions.pod:7140
28438 msgid "guestfs_txz_in"
28439 msgstr ""
28440
28441 #. type: verbatim
28442 #: ../src/guestfs-actions.pod:7142
28443 #, no-wrap
28444 msgid ""
28445 " int\n"
28446 " guestfs_txz_in (guestfs_h *g,\n"
28447 "                 const char *tarball,\n"
28448 "                 const char *directory);\n"
28449 "\n"
28450 msgstr ""
28451
28452 #. type: =head2
28453 #: ../src/guestfs-actions.pod:7154
28454 msgid "guestfs_txz_out"
28455 msgstr ""
28456
28457 #. type: verbatim
28458 #: ../src/guestfs-actions.pod:7156
28459 #, no-wrap
28460 msgid ""
28461 " int\n"
28462 " guestfs_txz_out (guestfs_h *g,\n"
28463 "                  const char *directory,\n"
28464 "                  const char *tarball);\n"
28465 "\n"
28466 msgstr ""
28467
28468 #. type: =head2
28469 #: ../src/guestfs-actions.pod:7168
28470 msgid "guestfs_umask"
28471 msgstr ""
28472
28473 #. type: verbatim
28474 #: ../src/guestfs-actions.pod:7170
28475 #, no-wrap
28476 msgid ""
28477 " int\n"
28478 " guestfs_umask (guestfs_h *g,\n"
28479 "                int mask);\n"
28480 "\n"
28481 msgstr ""
28482
28483 #. type: textblock
28484 #: ../src/guestfs-actions.pod:7186
28485 msgid ""
28486 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
28487 "C<guestfs_mkdir>."
28488 msgstr ""
28489
28490 #. type: =head2
28491 #: ../src/guestfs-actions.pod:7195
28492 msgid "guestfs_umount"
28493 msgstr ""
28494
28495 #. type: verbatim
28496 #: ../src/guestfs-actions.pod:7197
28497 #, no-wrap
28498 msgid ""
28499 " int\n"
28500 " guestfs_umount (guestfs_h *g,\n"
28501 "                 const char *pathordevice);\n"
28502 "\n"
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:7209
28507 msgid "guestfs_umount_all"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:7211
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_umount_all (guestfs_h *g);\n"
28516 "\n"
28517 msgstr ""
28518
28519 #. type: =head2
28520 #: ../src/guestfs-actions.pod:7222
28521 msgid "guestfs_upload"
28522 msgstr ""
28523
28524 #. type: verbatim
28525 #: ../src/guestfs-actions.pod:7224
28526 #, no-wrap
28527 msgid ""
28528 " int\n"
28529 " guestfs_upload (guestfs_h *g,\n"
28530 "                 const char *filename,\n"
28531 "                 const char *remotefilename);\n"
28532 "\n"
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:7234
28537 msgid "See also C<guestfs_download>."
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:7245
28542 msgid "guestfs_upload_offset"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:7247
28547 #, no-wrap
28548 msgid ""
28549 " int\n"
28550 " guestfs_upload_offset (guestfs_h *g,\n"
28551 "                        const char *filename,\n"
28552 "                        const char *remotefilename,\n"
28553 "                        int64_t offset);\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: textblock
28558 #: ../src/guestfs-actions.pod:7263
28559 msgid ""
28560 "Note that there is no limit on the amount of data that can be uploaded with "
28561 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
28562 "full amount unless an error occurs."
28563 msgstr ""
28564
28565 #. type: textblock
28566 #: ../src/guestfs-actions.pod:7268
28567 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
28568 msgstr ""
28569
28570 #. type: =head2
28571 #: ../src/guestfs-actions.pod:7279
28572 msgid "guestfs_utimens"
28573 msgstr ""
28574
28575 #. type: verbatim
28576 #: ../src/guestfs-actions.pod:7281
28577 #, no-wrap
28578 msgid ""
28579 " int\n"
28580 " guestfs_utimens (guestfs_h *g,\n"
28581 "                  const char *path,\n"
28582 "                  int64_t atsecs,\n"
28583 "                  int64_t atnsecs,\n"
28584 "                  int64_t mtsecs,\n"
28585 "                  int64_t mtnsecs);\n"
28586 "\n"
28587 msgstr ""
28588
28589 #. type: =head2
28590 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
28591 msgid "guestfs_version"
28592 msgstr ""
28593
28594 #. type: verbatim
28595 #: ../src/guestfs-actions.pod:7312
28596 #, no-wrap
28597 msgid ""
28598 " struct guestfs_version *\n"
28599 " guestfs_version (guestfs_h *g);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: textblock
28604 #: ../src/guestfs-actions.pod:7340
28605 msgid ""
28606 "I<Note:> Don't use this call to test for availability of features.  In "
28607 "enterprise distributions we backport features from later versions into "
28608 "earlier versions, making this an unreliable way to test for features.  Use "
28609 "C<guestfs_available> instead."
28610 msgstr ""
28611
28612 #. type: textblock
28613 #: ../src/guestfs-actions.pod:7346
28614 msgid ""
28615 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
28616 "error.  I<The caller must call C<guestfs_free_version> after use>."
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../src/guestfs-actions.pod:7350
28621 msgid "(Added in 1.0.58)"
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:7352
28626 msgid "guestfs_vfs_label"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:7354
28631 #, no-wrap
28632 msgid ""
28633 " char *\n"
28634 " guestfs_vfs_label (guestfs_h *g,\n"
28635 "                    const char *device);\n"
28636 "\n"
28637 msgstr ""
28638
28639 #. type: textblock
28640 #: ../src/guestfs-actions.pod:7363
28641 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
28642 msgstr ""
28643
28644 #. type: textblock
28645 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
28646 msgid "(Added in 1.3.18)"
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:7370
28651 msgid "guestfs_vfs_type"
28652 msgstr ""
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:7372
28656 #, no-wrap
28657 msgid ""
28658 " char *\n"
28659 " guestfs_vfs_type (guestfs_h *g,\n"
28660 "                   const char *device);\n"
28661 "\n"
28662 msgstr ""
28663
28664 #. type: =head2
28665 #: ../src/guestfs-actions.pod:7389
28666 msgid "guestfs_vfs_uuid"
28667 msgstr ""
28668
28669 #. type: verbatim
28670 #: ../src/guestfs-actions.pod:7391
28671 #, no-wrap
28672 msgid ""
28673 " char *\n"
28674 " guestfs_vfs_uuid (guestfs_h *g,\n"
28675 "                   const char *device);\n"
28676 "\n"
28677 msgstr ""
28678
28679 #. type: textblock
28680 #: ../src/guestfs-actions.pod:7400
28681 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
28682 msgstr ""
28683
28684 #. type: =head2
28685 #: ../src/guestfs-actions.pod:7407
28686 msgid "guestfs_vg_activate"
28687 msgstr ""
28688
28689 #. type: verbatim
28690 #: ../src/guestfs-actions.pod:7409
28691 #, no-wrap
28692 msgid ""
28693 " int\n"
28694 " guestfs_vg_activate (guestfs_h *g,\n"
28695 "                      int activate,\n"
28696 "                      char *const *volgroups);\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:7426
28702 msgid "guestfs_vg_activate_all"
28703 msgstr ""
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:7428
28707 #, no-wrap
28708 msgid ""
28709 " int\n"
28710 " guestfs_vg_activate_all (guestfs_h *g,\n"
28711 "                          int activate);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: =head2
28716 #: ../src/guestfs-actions.pod:7441
28717 msgid "guestfs_vgcreate"
28718 msgstr ""
28719
28720 #. type: verbatim
28721 #: ../src/guestfs-actions.pod:7443
28722 #, no-wrap
28723 msgid ""
28724 " int\n"
28725 " guestfs_vgcreate (guestfs_h *g,\n"
28726 "                   const char *volgroup,\n"
28727 "                   char *const *physvols);\n"
28728 "\n"
28729 msgstr ""
28730
28731 #. type: =head2
28732 #: ../src/guestfs-actions.pod:7455
28733 msgid "guestfs_vglvuuids"
28734 msgstr ""
28735
28736 #. type: verbatim
28737 #: ../src/guestfs-actions.pod:7457
28738 #, no-wrap
28739 msgid ""
28740 " char **\n"
28741 " guestfs_vglvuuids (guestfs_h *g,\n"
28742 "                    const char *vgname);\n"
28743 "\n"
28744 msgstr ""
28745
28746 #. type: textblock
28747 #: ../src/guestfs-actions.pod:7464
28748 msgid ""
28749 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
28750 "associate logical volumes and volume groups."
28751 msgstr ""
28752
28753 #. type: textblock
28754 #: ../src/guestfs-actions.pod:7467
28755 msgid "See also C<guestfs_vgpvuuids>."
28756 msgstr ""
28757
28758 #. type: =head2
28759 #: ../src/guestfs-actions.pod:7475
28760 msgid "guestfs_vgpvuuids"
28761 msgstr ""
28762
28763 #. type: verbatim
28764 #: ../src/guestfs-actions.pod:7477
28765 #, no-wrap
28766 msgid ""
28767 " char **\n"
28768 " guestfs_vgpvuuids (guestfs_h *g,\n"
28769 "                    const char *vgname);\n"
28770 "\n"
28771 msgstr ""
28772
28773 #. type: textblock
28774 #: ../src/guestfs-actions.pod:7484
28775 msgid ""
28776 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
28777 "associate physical volumes and volume groups."
28778 msgstr ""
28779
28780 #. type: textblock
28781 #: ../src/guestfs-actions.pod:7487
28782 msgid "See also C<guestfs_vglvuuids>."
28783 msgstr ""
28784
28785 #. type: =head2
28786 #: ../src/guestfs-actions.pod:7495
28787 msgid "guestfs_vgremove"
28788 msgstr ""
28789
28790 #. type: verbatim
28791 #: ../src/guestfs-actions.pod:7497
28792 #, no-wrap
28793 msgid ""
28794 " int\n"
28795 " guestfs_vgremove (guestfs_h *g,\n"
28796 "                   const char *vgname);\n"
28797 "\n"
28798 msgstr ""
28799
28800 #. type: =head2
28801 #: ../src/guestfs-actions.pod:7510
28802 msgid "guestfs_vgrename"
28803 msgstr ""
28804
28805 #. type: verbatim
28806 #: ../src/guestfs-actions.pod:7512
28807 #, no-wrap
28808 msgid ""
28809 " int\n"
28810 " guestfs_vgrename (guestfs_h *g,\n"
28811 "                   const char *volgroup,\n"
28812 "                   const char *newvolgroup);\n"
28813 "\n"
28814 msgstr ""
28815
28816 #. type: =head2
28817 #: ../src/guestfs-actions.pod:7523
28818 msgid "guestfs_vgs"
28819 msgstr ""
28820
28821 #. type: verbatim
28822 #: ../src/guestfs-actions.pod:7525
28823 #, no-wrap
28824 msgid ""
28825 " char **\n"
28826 " guestfs_vgs (guestfs_h *g);\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:7534
28832 msgid "See also C<guestfs_vgs_full>."
28833 msgstr ""
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:7542
28837 msgid "guestfs_vgs_full"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:7544
28842 #, no-wrap
28843 msgid ""
28844 " struct guestfs_lvm_vg_list *\n"
28845 " guestfs_vgs_full (guestfs_h *g);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: textblock
28850 #: ../src/guestfs-actions.pod:7550
28851 msgid ""
28852 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
28853 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
28854 "use>."
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:7556
28859 msgid "guestfs_vgscan"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:7558
28864 #, no-wrap
28865 msgid ""
28866 " int\n"
28867 " guestfs_vgscan (guestfs_h *g);\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: =head2
28872 #: ../src/guestfs-actions.pod:7568
28873 msgid "guestfs_vguuid"
28874 msgstr ""
28875
28876 #. type: verbatim
28877 #: ../src/guestfs-actions.pod:7570
28878 #, no-wrap
28879 msgid ""
28880 " char *\n"
28881 " guestfs_vguuid (guestfs_h *g,\n"
28882 "                 const char *vgname);\n"
28883 "\n"
28884 msgstr ""
28885
28886 #. type: =head2
28887 #: ../src/guestfs-actions.pod:7581
28888 msgid "guestfs_wait_ready"
28889 msgstr ""
28890
28891 #. type: verbatim
28892 #: ../src/guestfs-actions.pod:7583
28893 #, no-wrap
28894 msgid ""
28895 " int\n"
28896 " guestfs_wait_ready (guestfs_h *g);\n"
28897 "\n"
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:7586
28902 msgid "This function is a no op."
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:7588
28907 msgid ""
28908 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
28909 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
28910 "is no longer necessary because C<guestfs_launch> now does the waiting."
28911 msgstr ""
28912
28913 #. type: textblock
28914 #: ../src/guestfs-actions.pod:7593
28915 msgid ""
28916 "If you see any calls to this function in code then you can just remove them, "
28917 "unless you want to retain compatibility with older versions of the API."
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../src/guestfs-actions.pod:7599
28922 msgid ""
28923 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
28924 "instead."
28925 msgstr ""
28926
28927 #. type: =head2
28928 #: ../src/guestfs-actions.pod:7608
28929 msgid "guestfs_wc_c"
28930 msgstr ""
28931
28932 #. type: verbatim
28933 #: ../src/guestfs-actions.pod:7610
28934 #, no-wrap
28935 msgid ""
28936 " int\n"
28937 " guestfs_wc_c (guestfs_h *g,\n"
28938 "               const char *path);\n"
28939 "\n"
28940 msgstr ""
28941
28942 #. type: =head2
28943 #: ../src/guestfs-actions.pod:7621
28944 msgid "guestfs_wc_l"
28945 msgstr ""
28946
28947 #. type: verbatim
28948 #: ../src/guestfs-actions.pod:7623
28949 #, no-wrap
28950 msgid ""
28951 " int\n"
28952 " guestfs_wc_l (guestfs_h *g,\n"
28953 "               const char *path);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: =head2
28958 #: ../src/guestfs-actions.pod:7634
28959 msgid "guestfs_wc_w"
28960 msgstr ""
28961
28962 #. type: verbatim
28963 #: ../src/guestfs-actions.pod:7636
28964 #, no-wrap
28965 msgid ""
28966 " int\n"
28967 " guestfs_wc_w (guestfs_h *g,\n"
28968 "               const char *path);\n"
28969 "\n"
28970 msgstr ""
28971
28972 #. type: =head2
28973 #: ../src/guestfs-actions.pod:7647
28974 msgid "guestfs_write"
28975 msgstr ""
28976
28977 #. type: verbatim
28978 #: ../src/guestfs-actions.pod:7649
28979 #, no-wrap
28980 msgid ""
28981 " int\n"
28982 " guestfs_write (guestfs_h *g,\n"
28983 "                const char *path,\n"
28984 "                const char *content,\n"
28985 "                size_t content_size);\n"
28986 "\n"
28987 msgstr ""
28988
28989 #. type: textblock
28990 #: ../src/guestfs-actions.pod:7658
28991 msgid "See also C<guestfs_write_append>."
28992 msgstr ""
28993
28994 #. type: =head2
28995 #: ../src/guestfs-actions.pod:7667
28996 msgid "guestfs_write_append"
28997 msgstr ""
28998
28999 #. type: verbatim
29000 #: ../src/guestfs-actions.pod:7669
29001 #, no-wrap
29002 msgid ""
29003 " int\n"
29004 " guestfs_write_append (guestfs_h *g,\n"
29005 "                       const char *path,\n"
29006 "                       const char *content,\n"
29007 "                       size_t content_size);\n"
29008 "\n"
29009 msgstr ""
29010
29011 #. type: textblock
29012 #: ../src/guestfs-actions.pod:7678
29013 msgid "See also C<guestfs_write>."
29014 msgstr ""
29015
29016 #. type: =head2
29017 #: ../src/guestfs-actions.pod:7687
29018 msgid "guestfs_write_file"
29019 msgstr ""
29020
29021 #. type: verbatim
29022 #: ../src/guestfs-actions.pod:7689
29023 #, no-wrap
29024 msgid ""
29025 " int\n"
29026 " guestfs_write_file (guestfs_h *g,\n"
29027 "                     const char *path,\n"
29028 "                     const char *content,\n"
29029 "                     int size);\n"
29030 "\n"
29031 msgstr ""
29032
29033 #. type: textblock
29034 #: ../src/guestfs-actions.pod:7711
29035 msgid ""
29036 "This function is deprecated.  In new code, use the L</guestfs_write> call "
29037 "instead."
29038 msgstr ""
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:7720
29042 msgid "guestfs_zegrep"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:7722
29047 #, no-wrap
29048 msgid ""
29049 " char **\n"
29050 " guestfs_zegrep (guestfs_h *g,\n"
29051 "                 const char *regex,\n"
29052 "                 const char *path);\n"
29053 "\n"
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../src/guestfs-actions.pod:7739
29058 msgid "guestfs_zegrepi"
29059 msgstr ""
29060
29061 #. type: verbatim
29062 #: ../src/guestfs-actions.pod:7741
29063 #, no-wrap
29064 msgid ""
29065 " char **\n"
29066 " guestfs_zegrepi (guestfs_h *g,\n"
29067 "                  const char *regex,\n"
29068 "                  const char *path);\n"
29069 "\n"
29070 msgstr ""
29071
29072 #. type: =head2
29073 #: ../src/guestfs-actions.pod:7758
29074 msgid "guestfs_zero"
29075 msgstr ""
29076
29077 #. type: verbatim
29078 #: ../src/guestfs-actions.pod:7760
29079 #, no-wrap
29080 msgid ""
29081 " int\n"
29082 " guestfs_zero (guestfs_h *g,\n"
29083 "               const char *device);\n"
29084 "\n"
29085 msgstr ""
29086
29087 #. type: textblock
29088 #: ../src/guestfs-actions.pod:7770
29089 msgid ""
29090 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29091 "C<guestfs_is_zero_device>"
29092 msgstr ""
29093
29094 #. type: =head2
29095 #: ../src/guestfs-actions.pod:7782
29096 msgid "guestfs_zero_device"
29097 msgstr ""
29098
29099 #. type: verbatim
29100 #: ../src/guestfs-actions.pod:7784
29101 #, no-wrap
29102 msgid ""
29103 " int\n"
29104 " guestfs_zero_device (guestfs_h *g,\n"
29105 "                      const char *device);\n"
29106 "\n"
29107 msgstr ""
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:7788
29111 msgid ""
29112 "This command writes zeroes over the entire C<device>.  Compare with "
29113 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29114 msgstr ""
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:7802
29118 msgid "(Added in 1.3.1)"
29119 msgstr ""
29120
29121 #. type: =head2
29122 #: ../src/guestfs-actions.pod:7804
29123 msgid "guestfs_zerofree"
29124 msgstr ""
29125
29126 #. type: verbatim
29127 #: ../src/guestfs-actions.pod:7806
29128 #, no-wrap
29129 msgid ""
29130 " int\n"
29131 " guestfs_zerofree (guestfs_h *g,\n"
29132 "                   const char *device);\n"
29133 "\n"
29134 msgstr ""
29135
29136 #. type: =head2
29137 #: ../src/guestfs-actions.pod:7825
29138 msgid "guestfs_zfgrep"
29139 msgstr ""
29140
29141 #. type: verbatim
29142 #: ../src/guestfs-actions.pod:7827
29143 #, no-wrap
29144 msgid ""
29145 " char **\n"
29146 " guestfs_zfgrep (guestfs_h *g,\n"
29147 "                 const char *pattern,\n"
29148 "                 const char *path);\n"
29149 "\n"
29150 msgstr ""
29151
29152 #. type: =head2
29153 #: ../src/guestfs-actions.pod:7844
29154 msgid "guestfs_zfgrepi"
29155 msgstr ""
29156
29157 #. type: verbatim
29158 #: ../src/guestfs-actions.pod:7846
29159 #, no-wrap
29160 msgid ""
29161 " char **\n"
29162 " guestfs_zfgrepi (guestfs_h *g,\n"
29163 "                  const char *pattern,\n"
29164 "                  const char *path);\n"
29165 "\n"
29166 msgstr ""
29167
29168 #. type: =head2
29169 #: ../src/guestfs-actions.pod:7863
29170 msgid "guestfs_zfile"
29171 msgstr ""
29172
29173 #. type: verbatim
29174 #: ../src/guestfs-actions.pod:7865
29175 #, no-wrap
29176 msgid ""
29177 " char *\n"
29178 " guestfs_zfile (guestfs_h *g,\n"
29179 "                const char *meth,\n"
29180 "                const char *path);\n"
29181 "\n"
29182 msgstr ""
29183
29184 #. type: textblock
29185 #: ../src/guestfs-actions.pod:7875
29186 msgid ""
29187 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29188 "files."
29189 msgstr ""
29190
29191 #. type: textblock
29192 #: ../src/guestfs-actions.pod:7881
29193 msgid ""
29194 "This function is deprecated.  In new code, use the L</guestfs_file> call "
29195 "instead."
29196 msgstr ""
29197
29198 #. type: =head2
29199 #: ../src/guestfs-actions.pod:7890
29200 msgid "guestfs_zgrep"
29201 msgstr ""
29202
29203 #. type: verbatim
29204 #: ../src/guestfs-actions.pod:7892
29205 #, no-wrap
29206 msgid ""
29207 " char **\n"
29208 " guestfs_zgrep (guestfs_h *g,\n"
29209 "                const char *regex,\n"
29210 "                const char *path);\n"
29211 "\n"
29212 msgstr ""
29213
29214 #. type: =head2
29215 #: ../src/guestfs-actions.pod:7909
29216 msgid "guestfs_zgrepi"
29217 msgstr ""
29218
29219 #. type: verbatim
29220 #: ../src/guestfs-actions.pod:7911
29221 #, no-wrap
29222 msgid ""
29223 " char **\n"
29224 " guestfs_zgrepi (guestfs_h *g,\n"
29225 "                 const char *regex,\n"
29226 "                 const char *path);\n"
29227 "\n"
29228 msgstr ""
29229
29230 #. type: =item
29231 #: ../src/guestfs-availability.pod:3
29232 msgid "B<augeas>"
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-availability.pod:5
29237 msgid ""
29238 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29239 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29240 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29241 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29242 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29243 msgstr ""
29244
29245 #. type: =item
29246 #: ../src/guestfs-availability.pod:21
29247 msgid "B<btrfs>"
29248 msgstr ""
29249
29250 #. type: textblock
29251 #: ../src/guestfs-availability.pod:23
29252 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29253 msgstr ""
29254
29255 #. type: =item
29256 #: ../src/guestfs-availability.pod:26
29257 msgid "B<inotify>"
29258 msgstr ""
29259
29260 #. type: textblock
29261 #: ../src/guestfs-availability.pod:28
29262 msgid ""
29263 "The following functions: L</guestfs_inotify_add_watch> "
29264 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
29265 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
29266 msgstr ""
29267
29268 #. type: =item
29269 #: ../src/guestfs-availability.pod:36
29270 msgid "B<linuxfsuuid>"
29271 msgstr ""
29272
29273 #. type: textblock
29274 #: ../src/guestfs-availability.pod:38
29275 msgid ""
29276 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
29277 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
29278 msgstr ""
29279
29280 #. type: =item
29281 #: ../src/guestfs-availability.pod:45
29282 msgid "B<linuxmodules>"
29283 msgstr ""
29284
29285 #. type: textblock
29286 #: ../src/guestfs-availability.pod:47
29287 msgid "The following functions: L</guestfs_modprobe>"
29288 msgstr ""
29289
29290 #. type: =item
29291 #: ../src/guestfs-availability.pod:50
29292 msgid "B<linuxxattrs>"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-availability.pod:52
29297 msgid ""
29298 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
29299 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
29300 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
29301 "L</guestfs_setxattr>"
29302 msgstr ""
29303
29304 #. type: =item
29305 #: ../src/guestfs-availability.pod:63
29306 msgid "B<luks>"
29307 msgstr ""
29308
29309 #. type: textblock
29310 #: ../src/guestfs-availability.pod:65
29311 msgid ""
29312 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
29313 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
29314 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
29315 msgstr ""
29316
29317 #. type: =item
29318 #: ../src/guestfs-availability.pod:74
29319 msgid "B<lvm2>"
29320 msgstr ""
29321
29322 #. type: textblock
29323 #: ../src/guestfs-availability.pod:76
29324 msgid ""
29325 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
29326 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
29327 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
29328 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
29329 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
29330 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
29331 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
29332 "L</guestfs_vgs_full>"
29333 msgstr ""
29334
29335 #. type: =item
29336 #: ../src/guestfs-availability.pod:99
29337 msgid "B<mknod>"
29338 msgstr ""
29339
29340 #. type: textblock
29341 #: ../src/guestfs-availability.pod:101
29342 msgid ""
29343 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
29344 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
29345 msgstr ""
29346
29347 #. type: =item
29348 #: ../src/guestfs-availability.pod:107
29349 msgid "B<ntfs3g>"
29350 msgstr ""
29351
29352 #. type: textblock
29353 #: ../src/guestfs-availability.pod:109
29354 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
29355 msgstr ""
29356
29357 #. type: =item
29358 #: ../src/guestfs-availability.pod:112
29359 msgid "B<ntfsprogs>"
29360 msgstr ""
29361
29362 #. type: textblock
29363 #: ../src/guestfs-availability.pod:114
29364 msgid ""
29365 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
29366 "L</guestfs_ntfsresize_size>"
29367 msgstr ""
29368
29369 #. type: =item
29370 #: ../src/guestfs-availability.pod:119
29371 msgid "B<realpath>"
29372 msgstr ""
29373
29374 #. type: textblock
29375 #: ../src/guestfs-availability.pod:121
29376 msgid "The following functions: L</guestfs_realpath>"
29377 msgstr ""
29378
29379 #. type: =item
29380 #: ../src/guestfs-availability.pod:124
29381 msgid "B<scrub>"
29382 msgstr ""
29383
29384 #. type: textblock
29385 #: ../src/guestfs-availability.pod:126
29386 msgid ""
29387 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
29388 "L</guestfs_scrub_freespace>"
29389 msgstr ""
29390
29391 #. type: =item
29392 #: ../src/guestfs-availability.pod:131
29393 msgid "B<selinux>"
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-availability.pod:133
29398 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
29399 msgstr ""
29400
29401 #. type: =item
29402 #: ../src/guestfs-availability.pod:137
29403 msgid "B<xz>"
29404 msgstr ""
29405
29406 #. type: textblock
29407 #: ../src/guestfs-availability.pod:139
29408 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
29409 msgstr ""
29410
29411 #. type: =item
29412 #: ../src/guestfs-availability.pod:143
29413 msgid "B<zerofree>"
29414 msgstr ""
29415
29416 #. type: textblock
29417 #: ../src/guestfs-availability.pod:145
29418 msgid "The following functions: L</guestfs_zerofree>"
29419 msgstr ""
29420
29421 #. type: =head2
29422 #: ../src/guestfs-structs.pod:1
29423 msgid "guestfs_int_bool"
29424 msgstr ""
29425
29426 #. type: verbatim
29427 #: ../src/guestfs-structs.pod:3
29428 #, no-wrap
29429 msgid ""
29430 " struct guestfs_int_bool {\n"
29431 "   int32_t i;\n"
29432 "   int32_t b;\n"
29433 " };\n"
29434 " \n"
29435 msgstr ""
29436
29437 #. type: verbatim
29438 #: ../src/guestfs-structs.pod:8
29439 #, no-wrap
29440 msgid ""
29441 " struct guestfs_int_bool_list {\n"
29442 "   uint32_t len; /* Number of elements in list. */\n"
29443 "   struct guestfs_int_bool *val; /* Elements. */\n"
29444 " };\n"
29445 " \n"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-structs.pod:13
29450 #, no-wrap
29451 msgid ""
29452 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
29453 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: =head2
29458 #: ../src/guestfs-structs.pod:16
29459 msgid "guestfs_lvm_pv"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../src/guestfs-structs.pod:18
29464 #, no-wrap
29465 msgid ""
29466 " struct guestfs_lvm_pv {\n"
29467 "   char *pv_name;\n"
29468 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29469 "*/\n"
29470 "   char pv_uuid[32];\n"
29471 "   char *pv_fmt;\n"
29472 "   uint64_t pv_size;\n"
29473 "   uint64_t dev_size;\n"
29474 "   uint64_t pv_free;\n"
29475 "   uint64_t pv_used;\n"
29476 "   char *pv_attr;\n"
29477 "   int64_t pv_pe_count;\n"
29478 "   int64_t pv_pe_alloc_count;\n"
29479 "   char *pv_tags;\n"
29480 "   uint64_t pe_start;\n"
29481 "   int64_t pv_mda_count;\n"
29482 "   uint64_t pv_mda_free;\n"
29483 " };\n"
29484 " \n"
29485 msgstr ""
29486
29487 #. type: verbatim
29488 #: ../src/guestfs-structs.pod:36
29489 #, no-wrap
29490 msgid ""
29491 " struct guestfs_lvm_pv_list {\n"
29492 "   uint32_t len; /* Number of elements in list. */\n"
29493 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
29494 " };\n"
29495 " \n"
29496 msgstr ""
29497
29498 #. type: verbatim
29499 #: ../src/guestfs-structs.pod:41
29500 #, no-wrap
29501 msgid ""
29502 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
29503 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
29504 "\n"
29505 msgstr ""
29506
29507 #. type: =head2
29508 #: ../src/guestfs-structs.pod:44
29509 msgid "guestfs_lvm_vg"
29510 msgstr ""
29511
29512 #. type: verbatim
29513 #: ../src/guestfs-structs.pod:46
29514 #, no-wrap
29515 msgid ""
29516 " struct guestfs_lvm_vg {\n"
29517 "   char *vg_name;\n"
29518 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29519 "*/\n"
29520 "   char vg_uuid[32];\n"
29521 "   char *vg_fmt;\n"
29522 "   char *vg_attr;\n"
29523 "   uint64_t vg_size;\n"
29524 "   uint64_t vg_free;\n"
29525 "   char *vg_sysid;\n"
29526 "   uint64_t vg_extent_size;\n"
29527 "   int64_t vg_extent_count;\n"
29528 "   int64_t vg_free_count;\n"
29529 "   int64_t max_lv;\n"
29530 "   int64_t max_pv;\n"
29531 "   int64_t pv_count;\n"
29532 "   int64_t lv_count;\n"
29533 "   int64_t snap_count;\n"
29534 "   int64_t vg_seqno;\n"
29535 "   char *vg_tags;\n"
29536 "   int64_t vg_mda_count;\n"
29537 "   uint64_t vg_mda_free;\n"
29538 " };\n"
29539 " \n"
29540 msgstr ""
29541
29542 #. type: verbatim
29543 #: ../src/guestfs-structs.pod:69
29544 #, no-wrap
29545 msgid ""
29546 " struct guestfs_lvm_vg_list {\n"
29547 "   uint32_t len; /* Number of elements in list. */\n"
29548 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
29549 " };\n"
29550 " \n"
29551 msgstr ""
29552
29553 #. type: verbatim
29554 #: ../src/guestfs-structs.pod:74
29555 #, no-wrap
29556 msgid ""
29557 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
29558 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
29559 "\n"
29560 msgstr ""
29561
29562 #. type: =head2
29563 #: ../src/guestfs-structs.pod:77
29564 msgid "guestfs_lvm_lv"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-structs.pod:79
29569 #, no-wrap
29570 msgid ""
29571 " struct guestfs_lvm_lv {\n"
29572 "   char *lv_name;\n"
29573 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29574 "*/\n"
29575 "   char lv_uuid[32];\n"
29576 "   char *lv_attr;\n"
29577 "   int64_t lv_major;\n"
29578 "   int64_t lv_minor;\n"
29579 "   int64_t lv_kernel_major;\n"
29580 "   int64_t lv_kernel_minor;\n"
29581 "   uint64_t lv_size;\n"
29582 "   int64_t seg_count;\n"
29583 "   char *origin;\n"
29584 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29585 "   float snap_percent;\n"
29586 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29587 "   float copy_percent;\n"
29588 "   char *move_pv;\n"
29589 "   char *lv_tags;\n"
29590 "   char *mirror_log;\n"
29591 "   char *modules;\n"
29592 " };\n"
29593 " \n"
29594 msgstr ""
29595
29596 #. type: verbatim
29597 #: ../src/guestfs-structs.pod:101
29598 #, no-wrap
29599 msgid ""
29600 " struct guestfs_lvm_lv_list {\n"
29601 "   uint32_t len; /* Number of elements in list. */\n"
29602 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
29603 " };\n"
29604 " \n"
29605 msgstr ""
29606
29607 #. type: verbatim
29608 #: ../src/guestfs-structs.pod:106
29609 #, no-wrap
29610 msgid ""
29611 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
29612 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
29613 "\n"
29614 msgstr ""
29615
29616 #. type: verbatim
29617 #: ../src/guestfs-structs.pod:111
29618 #, no-wrap
29619 msgid ""
29620 " struct guestfs_stat {\n"
29621 "   int64_t dev;\n"
29622 "   int64_t ino;\n"
29623 "   int64_t mode;\n"
29624 "   int64_t nlink;\n"
29625 "   int64_t uid;\n"
29626 "   int64_t gid;\n"
29627 "   int64_t rdev;\n"
29628 "   int64_t size;\n"
29629 "   int64_t blksize;\n"
29630 "   int64_t blocks;\n"
29631 "   int64_t atime;\n"
29632 "   int64_t mtime;\n"
29633 "   int64_t ctime;\n"
29634 " };\n"
29635 " \n"
29636 msgstr ""
29637
29638 #. type: verbatim
29639 #: ../src/guestfs-structs.pod:127
29640 #, no-wrap
29641 msgid ""
29642 " struct guestfs_stat_list {\n"
29643 "   uint32_t len; /* Number of elements in list. */\n"
29644 "   struct guestfs_stat *val; /* Elements. */\n"
29645 " };\n"
29646 " \n"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-structs.pod:132
29651 #, no-wrap
29652 msgid ""
29653 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
29654 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
29655 "\n"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-structs.pod:137
29660 #, no-wrap
29661 msgid ""
29662 " struct guestfs_statvfs {\n"
29663 "   int64_t bsize;\n"
29664 "   int64_t frsize;\n"
29665 "   int64_t blocks;\n"
29666 "   int64_t bfree;\n"
29667 "   int64_t bavail;\n"
29668 "   int64_t files;\n"
29669 "   int64_t ffree;\n"
29670 "   int64_t favail;\n"
29671 "   int64_t fsid;\n"
29672 "   int64_t flag;\n"
29673 "   int64_t namemax;\n"
29674 " };\n"
29675 " \n"
29676 msgstr ""
29677
29678 #. type: verbatim
29679 #: ../src/guestfs-structs.pod:151
29680 #, no-wrap
29681 msgid ""
29682 " struct guestfs_statvfs_list {\n"
29683 "   uint32_t len; /* Number of elements in list. */\n"
29684 "   struct guestfs_statvfs *val; /* Elements. */\n"
29685 " };\n"
29686 " \n"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-structs.pod:156
29691 #, no-wrap
29692 msgid ""
29693 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
29694 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
29695 "\n"
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-structs.pod:159
29700 msgid "guestfs_dirent"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-structs.pod:161
29705 #, no-wrap
29706 msgid ""
29707 " struct guestfs_dirent {\n"
29708 "   int64_t ino;\n"
29709 "   char ftyp;\n"
29710 "   char *name;\n"
29711 " };\n"
29712 " \n"
29713 msgstr ""
29714
29715 #. type: verbatim
29716 #: ../src/guestfs-structs.pod:167
29717 #, no-wrap
29718 msgid ""
29719 " struct guestfs_dirent_list {\n"
29720 "   uint32_t len; /* Number of elements in list. */\n"
29721 "   struct guestfs_dirent *val; /* Elements. */\n"
29722 " };\n"
29723 " \n"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-structs.pod:172
29728 #, no-wrap
29729 msgid ""
29730 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
29731 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-structs.pod:177
29737 #, no-wrap
29738 msgid ""
29739 " struct guestfs_version {\n"
29740 "   int64_t major;\n"
29741 "   int64_t minor;\n"
29742 "   int64_t release;\n"
29743 "   char *extra;\n"
29744 " };\n"
29745 " \n"
29746 msgstr ""
29747
29748 #. type: verbatim
29749 #: ../src/guestfs-structs.pod:184
29750 #, no-wrap
29751 msgid ""
29752 " struct guestfs_version_list {\n"
29753 "   uint32_t len; /* Number of elements in list. */\n"
29754 "   struct guestfs_version *val; /* Elements. */\n"
29755 " };\n"
29756 " \n"
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-structs.pod:189
29761 #, no-wrap
29762 msgid ""
29763 " void guestfs_free_version (struct guestfs_free_version *);\n"
29764 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
29765 "\n"
29766 msgstr ""
29767
29768 #. type: =head2
29769 #: ../src/guestfs-structs.pod:192
29770 msgid "guestfs_xattr"
29771 msgstr ""
29772
29773 #. type: verbatim
29774 #: ../src/guestfs-structs.pod:194
29775 #, no-wrap
29776 msgid ""
29777 " struct guestfs_xattr {\n"
29778 "   char *attrname;\n"
29779 "   /* The next two fields describe a byte array. */\n"
29780 "   uint32_t attrval_len;\n"
29781 "   char *attrval;\n"
29782 " };\n"
29783 " \n"
29784 msgstr ""
29785
29786 #. type: verbatim
29787 #: ../src/guestfs-structs.pod:201
29788 #, no-wrap
29789 msgid ""
29790 " struct guestfs_xattr_list {\n"
29791 "   uint32_t len; /* Number of elements in list. */\n"
29792 "   struct guestfs_xattr *val; /* Elements. */\n"
29793 " };\n"
29794 " \n"
29795 msgstr ""
29796
29797 #. type: verbatim
29798 #: ../src/guestfs-structs.pod:206
29799 #, no-wrap
29800 msgid ""
29801 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
29802 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
29803 "\n"
29804 msgstr ""
29805
29806 #. type: =head2
29807 #: ../src/guestfs-structs.pod:209
29808 msgid "guestfs_inotify_event"
29809 msgstr ""
29810
29811 #. type: verbatim
29812 #: ../src/guestfs-structs.pod:211
29813 #, no-wrap
29814 msgid ""
29815 " struct guestfs_inotify_event {\n"
29816 "   int64_t in_wd;\n"
29817 "   uint32_t in_mask;\n"
29818 "   uint32_t in_cookie;\n"
29819 "   char *in_name;\n"
29820 " };\n"
29821 " \n"
29822 msgstr ""
29823
29824 #. type: verbatim
29825 #: ../src/guestfs-structs.pod:218
29826 #, no-wrap
29827 msgid ""
29828 " struct guestfs_inotify_event_list {\n"
29829 "   uint32_t len; /* Number of elements in list. */\n"
29830 "   struct guestfs_inotify_event *val; /* Elements. */\n"
29831 " };\n"
29832 " \n"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-structs.pod:223
29837 #, no-wrap
29838 msgid ""
29839 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
29840 " void guestfs_free_inotify_event_list (struct "
29841 "guestfs_free_inotify_event_list *);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: =head2
29846 #: ../src/guestfs-structs.pod:226
29847 msgid "guestfs_partition"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../src/guestfs-structs.pod:228
29852 #, no-wrap
29853 msgid ""
29854 " struct guestfs_partition {\n"
29855 "   int32_t part_num;\n"
29856 "   uint64_t part_start;\n"
29857 "   uint64_t part_end;\n"
29858 "   uint64_t part_size;\n"
29859 " };\n"
29860 " \n"
29861 msgstr ""
29862
29863 #. type: verbatim
29864 #: ../src/guestfs-structs.pod:235
29865 #, no-wrap
29866 msgid ""
29867 " struct guestfs_partition_list {\n"
29868 "   uint32_t len; /* Number of elements in list. */\n"
29869 "   struct guestfs_partition *val; /* Elements. */\n"
29870 " };\n"
29871 " \n"
29872 msgstr ""
29873
29874 #. type: verbatim
29875 #: ../src/guestfs-structs.pod:240
29876 #, no-wrap
29877 msgid ""
29878 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
29879 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
29880 "\n"
29881 msgstr ""
29882
29883 #. type: =head2
29884 #: ../src/guestfs-structs.pod:243
29885 msgid "guestfs_application"
29886 msgstr ""
29887
29888 #. type: verbatim
29889 #: ../src/guestfs-structs.pod:245
29890 #, no-wrap
29891 msgid ""
29892 " struct guestfs_application {\n"
29893 "   char *app_name;\n"
29894 "   char *app_display_name;\n"
29895 "   int32_t app_epoch;\n"
29896 "   char *app_version;\n"
29897 "   char *app_release;\n"
29898 "   char *app_install_path;\n"
29899 "   char *app_trans_path;\n"
29900 "   char *app_publisher;\n"
29901 "   char *app_url;\n"
29902 "   char *app_source_package;\n"
29903 "   char *app_summary;\n"
29904 "   char *app_description;\n"
29905 " };\n"
29906 " \n"
29907 msgstr ""
29908
29909 #. type: verbatim
29910 #: ../src/guestfs-structs.pod:260
29911 #, no-wrap
29912 msgid ""
29913 " struct guestfs_application_list {\n"
29914 "   uint32_t len; /* Number of elements in list. */\n"
29915 "   struct guestfs_application *val; /* Elements. */\n"
29916 " };\n"
29917 " \n"
29918 msgstr ""
29919
29920 #. type: verbatim
29921 #: ../src/guestfs-structs.pod:265
29922 #, no-wrap
29923 msgid ""
29924 " void guestfs_free_application (struct guestfs_free_application *);\n"
29925 " void guestfs_free_application_list (struct guestfs_free_application_list "
29926 "*);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: textblock
29931 #: ../src/guestfs.pod:5
29932 msgid "guestfs - Library for accessing and modifying virtual machine images"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs.pod:11
29937 #, no-wrap
29938 msgid ""
29939 " guestfs_h *g = guestfs_create ();\n"
29940 " guestfs_add_drive (g, \"guest.img\");\n"
29941 " guestfs_launch (g);\n"
29942 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
29943 " guestfs_touch (g, \"/hello\");\n"
29944 " guestfs_umount (g, \"/\");\n"
29945 " guestfs_close (g);\n"
29946 "\n"
29947 msgstr ""
29948
29949 #. type: textblock
29950 #: ../src/guestfs.pod:25
29951 msgid ""
29952 "Libguestfs is a library for accessing and modifying guest disk images.  "
29953 "Amongst the things this is good for: making batch configuration changes to "
29954 "guests, getting disk used/free statistics (see also: virt-df), migrating "
29955 "between virtualization systems (see also: virt-p2v), performing partial "
29956 "backups, performing partial guest clones, cloning guests and changing "
29957 "registry/UUID/hostname info, and much else besides."
29958 msgstr ""
29959
29960 #. type: textblock
29961 #: ../src/guestfs.pod:33
29962 msgid ""
29963 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
29964 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
29965 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
29966 "qcow2, vmdk."
29967 msgstr ""
29968
29969 #. type: textblock
29970 #: ../src/guestfs.pod:38
29971 msgid ""
29972 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
29973 "what filesystem is in each LV, etc.).  It can also run commands in the "
29974 "context of the guest.  Also you can access filesystems over FUSE."
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../src/guestfs.pod:43
29979 msgid ""
29980 "Libguestfs is a library that can be linked with C and C++ management "
29981 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
29982 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
29983 "line."
29984 msgstr ""
29985
29986 #. type: textblock
29987 #: ../src/guestfs.pod:48
29988 msgid ""
29989 "You don't need to be root to use libguestfs, although obviously you do need "
29990 "enough permissions to access the disk images."
29991 msgstr ""
29992
29993 #. type: textblock
29994 #: ../src/guestfs.pod:51
29995 msgid ""
29996 "Libguestfs is a large API because it can do many things.  For a gentle "
29997 "introduction, please read the L</API OVERVIEW> section next."
29998 msgstr ""
29999
30000 #. type: textblock
30001 #: ../src/guestfs.pod:54
30002 msgid ""
30003 "There are also some example programs in the L<guestfs-examples(3)> manual "
30004 "page."
30005 msgstr ""
30006
30007 #. type: =head1
30008 #: ../src/guestfs.pod:57
30009 msgid "API OVERVIEW"
30010 msgstr ""
30011
30012 #. type: textblock
30013 #: ../src/guestfs.pod:59
30014 msgid ""
30015 "This section provides a gentler overview of the libguestfs API.  We also try "
30016 "to group API calls together, where that may not be obvious from reading "
30017 "about the individual calls in the main section of this manual."
30018 msgstr ""
30019
30020 #. type: =head2
30021 #: ../src/guestfs.pod:64
30022 msgid "HANDLES"
30023 msgstr ""
30024
30025 #. type: textblock
30026 #: ../src/guestfs.pod:66
30027 msgid ""
30028 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30029 "must add at least one disk image to the handle, followed by launching the "
30030 "handle, then performing whatever operations you want, and finally closing "
30031 "the handle.  By convention we use the single letter C<g> for the name of the "
30032 "handle variable, although of course you can use any name you want."
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../src/guestfs.pod:73
30037 msgid "The general structure of all libguestfs-using programs looks like this:"
30038 msgstr ""
30039
30040 #. type: verbatim
30041 #: ../src/guestfs.pod:76
30042 #, no-wrap
30043 msgid ""
30044 " guestfs_h *g = guestfs_create ();\n"
30045 " \n"
30046 msgstr ""
30047
30048 #. type: verbatim
30049 #: ../src/guestfs.pod:78
30050 #, no-wrap
30051 msgid ""
30052 " /* Call guestfs_add_drive additional times if there are\n"
30053 "  * multiple disk images.\n"
30054 "  */\n"
30055 " guestfs_add_drive (g, \"guest.img\");\n"
30056 " \n"
30057 msgstr ""
30058
30059 #. type: verbatim
30060 #: ../src/guestfs.pod:83
30061 #, no-wrap
30062 msgid ""
30063 " /* Most manipulation calls won't work until you've launched\n"
30064 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30065 "  * and _before_ other commands.\n"
30066 "  */\n"
30067 " guestfs_launch (g);\n"
30068 " \n"
30069 msgstr ""
30070
30071 #. type: verbatim
30072 #: ../src/guestfs.pod:89
30073 #, no-wrap
30074 msgid ""
30075 " /* Now you can examine what partitions, LVs etc are available.\n"
30076 "  */\n"
30077 " char **partitions = guestfs_list_partitions (g);\n"
30078 " char **logvols = guestfs_lvs (g);\n"
30079 " \n"
30080 msgstr ""
30081
30082 #. type: verbatim
30083 #: ../src/guestfs.pod:94
30084 #, no-wrap
30085 msgid ""
30086 " /* To access a filesystem in the image, you must mount it.\n"
30087 "  */\n"
30088 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30089 " \n"
30090 msgstr ""
30091
30092 #. type: verbatim
30093 #: ../src/guestfs.pod:98
30094 #, no-wrap
30095 msgid ""
30096 " /* Now you can perform filesystem actions on the guest\n"
30097 "  * disk image.\n"
30098 "  */\n"
30099 " guestfs_touch (g, \"/hello\");\n"
30100 " \n"
30101 msgstr ""
30102
30103 #. type: verbatim
30104 #: ../src/guestfs.pod:103
30105 #, no-wrap
30106 msgid ""
30107 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30108 "  * it is done automatically when you close the handle.  See\n"
30109 "  * discussion of autosync in this page.\n"
30110 "  */\n"
30111 " guestfs_sync (g);\n"
30112 " \n"
30113 msgstr ""
30114
30115 #. type: verbatim
30116 #: ../src/guestfs.pod:109
30117 #, no-wrap
30118 msgid ""
30119 " /* Close the handle 'g'. */\n"
30120 " guestfs_close (g);\n"
30121 "\n"
30122 msgstr ""
30123
30124 #. type: textblock
30125 #: ../src/guestfs.pod:112
30126 msgid ""
30127 "The code above doesn't include any error checking.  In real code you should "
30128 "check return values carefully for errors.  In general all functions that "
30129 "return integers return C<-1> on error, and all functions that return "
30130 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30131 "how to handle errors, and consult the documentation for each function call "
30132 "below to see precisely how they return error indications.  See "
30133 "L<guestfs-examples(3)> for fully worked examples."
30134 msgstr ""
30135
30136 #. type: =head2
30137 #: ../src/guestfs.pod:121
30138 msgid "DISK IMAGES"
30139 msgstr ""
30140
30141 #. type: textblock
30142 #: ../src/guestfs.pod:123
30143 msgid ""
30144 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30145 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30146 "actual block device, or simply an empty file of zeroes that you have created "
30147 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30148 "of these."
30149 msgstr ""
30150
30151 #. type: textblock
30152 #: ../src/guestfs.pod:129
30153 msgid ""
30154 "The call you should use in modern code for adding drives is "
30155 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30156 "specifying that the format is raw, do:"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../src/guestfs.pod:133
30161 #, no-wrap
30162 msgid ""
30163 " guestfs_add_drive_opts (g, filename,\n"
30164 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30165 "                         -1);\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: textblock
30170 #: ../src/guestfs.pod:137
30171 msgid "You can add a disk read-only using:"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs.pod:139
30176 #, no-wrap
30177 msgid ""
30178 " guestfs_add_drive_opts (g, filename,\n"
30179 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30180 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30181 "                         -1);\n"
30182 "\n"
30183 msgstr ""
30184
30185 #. type: textblock
30186 #: ../src/guestfs.pod:144
30187 msgid ""
30188 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30189 "libguestfs won't modify the file."
30190 msgstr ""
30191
30192 #. type: textblock
30193 #: ../src/guestfs.pod:147
30194 msgid ""
30195 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30196 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30197 "corruption, but adding it read-only is safe."
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../src/guestfs.pod:151
30202 msgid ""
30203 "You must add at least one disk image, and you may add multiple disk images.  "
30204 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30205 "first one you added), C</dev/sdb> (for the second one you added), etc."
30206 msgstr ""
30207
30208 #. type: textblock
30209 #: ../src/guestfs.pod:156
30210 msgid ""
30211 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30212 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30213 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30214 msgstr ""
30215
30216 #. type: =head2
30217 #: ../src/guestfs.pod:161
30218 msgid "MOUNTING"
30219 msgstr ""
30220
30221 #. type: textblock
30222 #: ../src/guestfs.pod:163
30223 msgid ""
30224 "Before you can read or write files, create directories and so on in a disk "
30225 "image that contains filesystems, you have to mount those filesystems using "
30226 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30227 "a disk image contains (for example) one partition with a filesystem on that "
30228 "partition, then you can mount it directly:"
30229 msgstr ""
30230
30231 #. type: verbatim
30232 #: ../src/guestfs.pod:170
30233 #, no-wrap
30234 msgid ""
30235 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30236 "\n"
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs.pod:172
30241 msgid ""
30242 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30243 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30244 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30245 "that these are libguestfs virtual devices, and are nothing to do with host "
30246 "devices."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../src/guestfs.pod:178
30251 msgid ""
30252 "If you are given a disk image and you don't know what it contains then you "
30253 "have to find out.  Libguestfs can do that too: use "
30254 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
30255 "and LVs, and either try mounting each to see what is mountable, or else "
30256 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
30257 "filesystems, use L</guestfs_list_filesystems>."
30258 msgstr ""
30259
30260 #. type: textblock
30261 #: ../src/guestfs.pod:186
30262 msgid ""
30263 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
30264 "L</INSPECTION> below).  But you might find it easier to look at higher level "
30265 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
30266 msgstr ""
30267
30268 #. type: textblock
30269 #: ../src/guestfs.pod:191
30270 msgid ""
30271 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
30272 "several other variations of the C<guestfs_mount_*> call."
30273 msgstr ""
30274
30275 #. type: =head2
30276 #: ../src/guestfs.pod:194
30277 msgid "FILESYSTEM ACCESS AND MODIFICATION"
30278 msgstr ""
30279
30280 #. type: textblock
30281 #: ../src/guestfs.pod:196
30282 msgid ""
30283 "The majority of the libguestfs API consists of fairly low-level calls for "
30284 "accessing and modifying the files, directories, symlinks etc on mounted "
30285 "filesystems.  There are over a hundred such calls which you can find listed "
30286 "in detail below in this man page, and we don't even pretend to cover them "
30287 "all in this overview."
30288 msgstr ""
30289
30290 #. type: textblock
30291 #: ../src/guestfs.pod:202
30292 msgid ""
30293 "Specify filenames as full paths, starting with C<\"/\"> and including the "
30294 "mount point."
30295 msgstr ""
30296
30297 #. type: textblock
30298 #: ../src/guestfs.pod:205
30299 msgid ""
30300 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
30301 "the file called C<\"etc/passwd\"> then you could do:"
30302 msgstr ""
30303
30304 #. type: verbatim
30305 #: ../src/guestfs.pod:208
30306 #, no-wrap
30307 msgid ""
30308 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
30309 "\n"
30310 msgstr ""
30311
30312 #. type: textblock
30313 #: ../src/guestfs.pod:210
30314 msgid ""
30315 "This would return C<data> as a newly allocated buffer containing the full "
30316 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
30317 "or C<NULL> if there was an error."
30318 msgstr ""
30319
30320 #. type: textblock
30321 #: ../src/guestfs.pod:214
30322 msgid ""
30323 "As another example, to create a top-level directory on that filesystem "
30324 "called C<\"var\"> you would do:"
30325 msgstr ""
30326
30327 #. type: verbatim
30328 #: ../src/guestfs.pod:217
30329 #, no-wrap
30330 msgid ""
30331 " guestfs_mkdir (g, \"/var\");\n"
30332 "\n"
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../src/guestfs.pod:219
30337 msgid "To create a symlink you could do:"
30338 msgstr ""
30339
30340 #. type: verbatim
30341 #: ../src/guestfs.pod:221
30342 #, no-wrap
30343 msgid ""
30344 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
30345 "               \"/etc/rc3.d/S30portmap\");\n"
30346 "\n"
30347 msgstr ""
30348
30349 #. type: textblock
30350 #: ../src/guestfs.pod:224
30351 msgid ""
30352 "Libguestfs will reject attempts to use relative paths and there is no "
30353 "concept of a current working directory."
30354 msgstr ""
30355
30356 #. type: textblock
30357 #: ../src/guestfs.pod:227
30358 msgid ""
30359 "Libguestfs can return errors in many situations: for example if the "
30360 "filesystem isn't writable, or if a file or directory that you requested "
30361 "doesn't exist.  If you are using the C API (documented here)  you have to "
30362 "check for those error conditions after each call.  (Other language bindings "
30363 "turn these errors into exceptions)."
30364 msgstr ""
30365
30366 #. type: textblock
30367 #: ../src/guestfs.pod:233
30368 msgid ""
30369 "File writes are affected by the per-handle umask, set by calling "
30370 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
30371 msgstr ""
30372
30373 #. type: =head2
30374 #: ../src/guestfs.pod:236
30375 msgid "PARTITIONING"
30376 msgstr ""
30377
30378 #. type: textblock
30379 #: ../src/guestfs.pod:238
30380 msgid ""
30381 "Libguestfs contains API calls to read, create and modify partition tables on "
30382 "disk images."
30383 msgstr ""
30384
30385 #. type: textblock
30386 #: ../src/guestfs.pod:241
30387 msgid ""
30388 "In the common case where you want to create a single partition covering the "
30389 "whole disk, you should use the L</guestfs_part_disk> call:"
30390 msgstr ""
30391
30392 #. type: verbatim
30393 #: ../src/guestfs.pod:245
30394 #, no-wrap
30395 msgid ""
30396 " const char *parttype = \"mbr\";\n"
30397 " if (disk_is_larger_than_2TB)\n"
30398 "   parttype = \"gpt\";\n"
30399 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
30400 "\n"
30401 msgstr ""
30402
30403 #. type: textblock
30404 #: ../src/guestfs.pod:250
30405 msgid ""
30406 "Obviously this effectively wipes anything that was on that disk image "
30407 "before."
30408 msgstr ""
30409
30410 #. type: =head2
30411 #: ../src/guestfs.pod:253
30412 msgid "LVM2"
30413 msgstr ""
30414
30415 #. type: textblock
30416 #: ../src/guestfs.pod:255
30417 msgid ""
30418 "Libguestfs provides access to a large part of the LVM2 API, such as "
30419 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
30420 "unless you familiarize yourself with the concepts of physical volumes, "
30421 "volume groups and logical volumes."
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs.pod:260
30426 msgid ""
30427 "This author strongly recommends reading the LVM HOWTO, online at "
30428 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs.pod:263
30433 msgid "DOWNLOADING"
30434 msgstr ""
30435
30436 #. type: textblock
30437 #: ../src/guestfs.pod:265
30438 msgid ""
30439 "Use L</guestfs_cat> to download small, text only files.  This call is "
30440 "limited to files which are less than 2 MB and which cannot contain any ASCII "
30441 "NUL (C<\\0>) characters.  However the API is very simple to use."
30442 msgstr ""
30443
30444 #. type: textblock
30445 #: ../src/guestfs.pod:269
30446 msgid ""
30447 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
30448 "bit data, since it returns a (pointer, size) pair.  However it is still "
30449 "limited to \"small\" files, less than 2 MB."
30450 msgstr ""
30451
30452 #. type: textblock
30453 #: ../src/guestfs.pod:273
30454 msgid ""
30455 "L</guestfs_download> can be used to download any file, with no limits on "
30456 "content or size (even files larger than 4 GB)."
30457 msgstr ""
30458
30459 #. type: textblock
30460 #: ../src/guestfs.pod:276
30461 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
30462 msgstr ""
30463
30464 #. type: =head2
30465 #: ../src/guestfs.pod:279
30466 msgid "UPLOADING"
30467 msgstr ""
30468
30469 #. type: textblock
30470 #: ../src/guestfs.pod:281
30471 msgid ""
30472 "It's often the case that you want to write a file or files to the disk "
30473 "image."
30474 msgstr ""
30475
30476 #. type: textblock
30477 #: ../src/guestfs.pod:284
30478 msgid ""
30479 "To write a small file with fixed content, use L</guestfs_write>.  To create "
30480 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
30481 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
30482 "variety of other functions for creating test files, for example "
30483 "L</guestfs_fill> and L</guestfs_fill_pattern>."
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs.pod:290
30488 msgid ""
30489 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
30490 "file content or size (even files larger than 4 GB)."
30491 msgstr ""
30492
30493 #. type: textblock
30494 #: ../src/guestfs.pod:293
30495 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
30496 msgstr ""
30497
30498 #. type: textblock
30499 #: ../src/guestfs.pod:295
30500 msgid ""
30501 "However the fastest way to upload I<large numbers of arbitrary files> is to "
30502 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
30503 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
30504 "the drive in a predictable way (eg. adding it last after all other drives) "
30505 "then you can get the device name from L</guestfs_list_devices> and mount it "
30506 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
30507 "sometimes non-portable between kernel versions, and they don't support "
30508 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
30509 "using a label or UUID, use an ISO image instead."
30510 msgstr ""
30511
30512 #. type: =head2
30513 #: ../src/guestfs.pod:306
30514 msgid "COPYING"
30515 msgstr ""
30516
30517 #. type: textblock
30518 #: ../src/guestfs.pod:308
30519 msgid ""
30520 "There are various different commands for copying between files and devices "
30521 "and in and out of the guest filesystem.  These are summarised in the table "
30522 "below."
30523 msgstr ""
30524
30525 #. type: =item
30526 #: ../src/guestfs.pod:314
30527 msgid "B<file> to B<file>"
30528 msgstr ""
30529
30530 #. type: textblock
30531 #: ../src/guestfs.pod:316
30532 msgid ""
30533 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
30534 "directories recursively."
30535 msgstr ""
30536
30537 #. type: =item
30538 #: ../src/guestfs.pod:319
30539 msgid "B<file or device> to B<file or device>"
30540 msgstr ""
30541
30542 #. type: textblock
30543 #: ../src/guestfs.pod:321
30544 msgid ""
30545 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
30546 "devices in the guest."
30547 msgstr ""
30548
30549 #. type: textblock
30550 #: ../src/guestfs.pod:324
30551 msgid "Example: duplicate the contents of an LV:"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs.pod:326
30556 #, no-wrap
30557 msgid ""
30558 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
30559 "\n"
30560 msgstr ""
30561
30562 #. type: textblock
30563 #: ../src/guestfs.pod:328
30564 msgid ""
30565 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
30566 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
30567 "L</guestfs_copy_size>."
30568 msgstr ""
30569
30570 #. type: =item
30571 #: ../src/guestfs.pod:332
30572 msgid "B<file on the host> to B<file or device>"
30573 msgstr ""
30574
30575 #. type: textblock
30576 #: ../src/guestfs.pod:334
30577 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
30578 msgstr ""
30579
30580 #. type: =item
30581 #: ../src/guestfs.pod:336
30582 msgid "B<file or device> to B<file on the host>"
30583 msgstr ""
30584
30585 #. type: textblock
30586 #: ../src/guestfs.pod:338
30587 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
30588 msgstr ""
30589
30590 #. type: =head2
30591 #: ../src/guestfs.pod:342
30592 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
30593 msgstr ""
30594
30595 #. type: textblock
30596 #: ../src/guestfs.pod:344
30597 msgid ""
30598 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
30599 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
30600 "appears you can only upload and download to files.  However many Un*x-like "
30601 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
30602 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
30603 "stderr, and arbitrary file descriptor N."
30604 msgstr ""
30605
30606 #. type: textblock
30607 #: ../src/guestfs.pod:352
30608 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs.pod:355
30613 #, no-wrap
30614 msgid ""
30615 " guestfs_download (g, filename, \"/dev/stdout\");\n"
30616 "\n"
30617 msgstr ""
30618
30619 #. type: textblock
30620 #: ../src/guestfs.pod:357
30621 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
30622 msgstr ""
30623
30624 #. type: verbatim
30625 #: ../src/guestfs.pod:359
30626 #, no-wrap
30627 msgid ""
30628 " char devfd[64];\n"
30629 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
30630 " guestfs_tar_out (g, \"/\", devfd);\n"
30631 "\n"
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs.pod:363
30636 msgid "LISTING FILES"
30637 msgstr ""
30638
30639 #. type: textblock
30640 #: ../src/guestfs.pod:365
30641 msgid ""
30642 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
30643 "L<guestfish(1)>-equivalent command C<ll>)."
30644 msgstr ""
30645
30646 #. type: textblock
30647 #: ../src/guestfs.pod:368
30648 msgid ""
30649 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
30650 "programs, as a flat list of strings."
30651 msgstr ""
30652
30653 #. type: textblock
30654 #: ../src/guestfs.pod:371
30655 msgid ""
30656 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
30657 "directory, plus additional information about each one.  It is more "
30658 "equivalent to using the L<readdir(3)> call on a local filesystem."
30659 msgstr ""
30660
30661 #. type: textblock
30662 #: ../src/guestfs.pod:375
30663 msgid ""
30664 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
30665 "files."
30666 msgstr ""
30667
30668 #. type: =head2
30669 #: ../src/guestfs.pod:378
30670 msgid "RUNNING COMMANDS"
30671 msgstr ""
30672
30673 #. type: textblock
30674 #: ../src/guestfs.pod:380
30675 msgid ""
30676 "Although libguestfs is primarily an API for manipulating files inside guest "
30677 "images, we also provide some limited facilities for running commands inside "
30678 "guests."
30679 msgstr ""
30680
30681 #. type: textblock
30682 #: ../src/guestfs.pod:384
30683 msgid "There are many limitations to this:"
30684 msgstr ""
30685
30686 #. type: textblock
30687 #: ../src/guestfs.pod:390
30688 msgid ""
30689 "The kernel version that the command runs under will be different from what "
30690 "it expects."
30691 msgstr ""
30692
30693 #. type: textblock
30694 #: ../src/guestfs.pod:395
30695 msgid ""
30696 "If the command needs to communicate with daemons, then most likely they "
30697 "won't be running."
30698 msgstr ""
30699
30700 #. type: textblock
30701 #: ../src/guestfs.pod:400
30702 msgid "The command will be running in limited memory."
30703 msgstr ""
30704
30705 #. type: textblock
30706 #: ../src/guestfs.pod:404
30707 msgid ""
30708 "The network may not be available unless you enable it (see "
30709 "L</guestfs_set_network>)."
30710 msgstr ""
30711
30712 #. type: textblock
30713 #: ../src/guestfs.pod:409
30714 msgid "Only supports Linux guests (not Windows, BSD, etc)."
30715 msgstr ""
30716
30717 #. type: textblock
30718 #: ../src/guestfs.pod:413
30719 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
30720 msgstr ""
30721
30722 #. type: textblock
30723 #: ../src/guestfs.pod:418
30724 msgid ""
30725 "For SELinux guests, you may need to enable SELinux and load policy first.  "
30726 "See L</SELINUX> in this manpage."
30727 msgstr ""
30728
30729 #. type: textblock
30730 #: ../src/guestfs.pod:423
30731 msgid ""
30732 "I<Security:> It is not safe to run commands from untrusted, possibly "
30733 "malicious guests.  These commands may attempt to exploit your program by "
30734 "sending unexpected output.  They could also try to exploit the Linux kernel "
30735 "or qemu provided by the libguestfs appliance.  They could use the network "
30736 "provided by the libguestfs appliance to bypass ordinary network partitions "
30737 "and firewalls.  They could use the elevated privileges or different SELinux "
30738 "context of your program to their advantage."
30739 msgstr ""
30740
30741 #. type: textblock
30742 #: ../src/guestfs.pod:432
30743 msgid ""
30744 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
30745 "(a script which runs when the guest next boots normally), and to have this "
30746 "script run the commands you want in the normal context of the running guest, "
30747 "network security and so on.  For information about other security issues, "
30748 "see L</SECURITY>."
30749 msgstr ""
30750
30751 #. type: textblock
30752 #: ../src/guestfs.pod:440
30753 msgid ""
30754 "The two main API calls to run commands are L</guestfs_command> and "
30755 "L</guestfs_sh> (there are also variations)."
30756 msgstr ""
30757
30758 #. type: textblock
30759 #: ../src/guestfs.pod:443
30760 msgid ""
30761 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
30762 "shell globs, redirections, etc will work."
30763 msgstr ""
30764
30765 #. type: =head2
30766 #: ../src/guestfs.pod:446
30767 msgid "CONFIGURATION FILES"
30768 msgstr ""
30769
30770 #. type: textblock
30771 #: ../src/guestfs.pod:448
30772 msgid ""
30773 "To read and write configuration files in Linux guest filesystems, we "
30774 "strongly recommend using Augeas.  For example, Augeas understands how to "
30775 "read and write, say, a Linux shadow password file or X.org configuration "
30776 "file, and so avoids you having to write that code."
30777 msgstr ""
30778
30779 #. type: textblock
30780 #: ../src/guestfs.pod:453
30781 msgid ""
30782 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
30783 "document Augeas itself here because there is excellent documentation on the "
30784 "L<http://augeas.net/> website."
30785 msgstr ""
30786
30787 #. type: textblock
30788 #: ../src/guestfs.pod:457
30789 msgid ""
30790 "If you don't want to use Augeas (you fool!) then try calling "
30791 "L</guestfs_read_lines> to get the file as a list of lines which you can "
30792 "iterate over."
30793 msgstr ""
30794
30795 #. type: =head2
30796 #: ../src/guestfs.pod:461
30797 msgid "SELINUX"
30798 msgstr ""
30799
30800 #. type: textblock
30801 #: ../src/guestfs.pod:463
30802 msgid ""
30803 "We support SELinux guests.  To ensure that labeling happens correctly in "
30804 "SELinux guests, you need to enable SELinux and load the guest's policy:"
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs.pod:471
30809 msgid "Before launching, do:"
30810 msgstr ""
30811
30812 #. type: verbatim
30813 #: ../src/guestfs.pod:473
30814 #, no-wrap
30815 msgid ""
30816 " guestfs_set_selinux (g, 1);\n"
30817 "\n"
30818 msgstr ""
30819
30820 #. type: textblock
30821 #: ../src/guestfs.pod:477
30822 msgid ""
30823 "After mounting the guest's filesystem(s), load the policy.  This is best "
30824 "done by running the L<load_policy(8)> command in the guest itself:"
30825 msgstr ""
30826
30827 #. type: verbatim
30828 #: ../src/guestfs.pod:481
30829 #, no-wrap
30830 msgid ""
30831 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
30832 "\n"
30833 msgstr ""
30834
30835 #. type: textblock
30836 #: ../src/guestfs.pod:483
30837 msgid ""
30838 "(Older versions of C<load_policy> require you to specify the name of the "
30839 "policy file)."
30840 msgstr ""
30841
30842 #. type: textblock
30843 #: ../src/guestfs.pod:488
30844 msgid ""
30845 "Optionally, set the security context for the API.  The correct security "
30846 "context to use can only be known by inspecting the guest.  As an example:"
30847 msgstr ""
30848
30849 #. type: verbatim
30850 #: ../src/guestfs.pod:492
30851 #, no-wrap
30852 msgid ""
30853 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
30854 "\n"
30855 msgstr ""
30856
30857 #. type: textblock
30858 #: ../src/guestfs.pod:496
30859 msgid "This will work for running commands and editing existing files."
30860 msgstr ""
30861
30862 #. type: textblock
30863 #: ../src/guestfs.pod:498
30864 msgid ""
30865 "When new files are created, you may need to label them explicitly, for "
30866 "example by running the external command C<restorecon pathname>."
30867 msgstr ""
30868
30869 #. type: =head2
30870 #: ../src/guestfs.pod:502
30871 msgid "UMASK"
30872 msgstr ""
30873
30874 #. type: textblock
30875 #: ../src/guestfs.pod:504
30876 msgid ""
30877 "Certain calls are affected by the current file mode creation mask (the "
30878 "\"umask\").  In particular ones which create files or directories, such as "
30879 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
30880 "either the default mode that the file is created with or modifies the mode "
30881 "that you supply."
30882 msgstr ""
30883
30884 #. type: textblock
30885 #: ../src/guestfs.pod:510
30886 msgid ""
30887 "The default umask is C<022>, so files are created with modes such as C<0644> "
30888 "and directories with C<0755>."
30889 msgstr ""
30890
30891 #. type: textblock
30892 #: ../src/guestfs.pod:513
30893 msgid ""
30894 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
30895 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
30896 "L</guestfs_chmod> after creating each file or directory."
30897 msgstr ""
30898
30899 #. type: textblock
30900 #: ../src/guestfs.pod:517
30901 msgid "For more information about umask, see L<umask(2)>."
30902 msgstr ""
30903
30904 #. type: textblock
30905 #: ../src/guestfs.pod:521
30906 msgid ""
30907 "Libguestfs allows you to access Linux guests which have been encrypted using "
30908 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
30909 "standard.  This includes nearly all whole disk encryption systems used by "
30910 "modern Linux guests."
30911 msgstr ""
30912
30913 #. type: textblock
30914 #: ../src/guestfs.pod:527
30915 msgid ""
30916 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
30917 "returns the string C<crypto_LUKS>)."
30918 msgstr ""
30919
30920 #. type: textblock
30921 #: ../src/guestfs.pod:530
30922 msgid ""
30923 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
30924 "will require the passphrase!"
30925 msgstr ""
30926
30927 #. type: textblock
30928 #: ../src/guestfs.pod:533
30929 msgid ""
30930 "Opening a LUKS device creates a new device mapper device called "
30931 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
30932 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
30933 "decrypted from and encrypted to the underlying block device respectively."
30934 msgstr ""
30935
30936 #. type: textblock
30937 #: ../src/guestfs.pod:539
30938 msgid ""
30939 "LVM volume groups on the device can be made visible by calling "
30940 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
30941 "volume(s) can now be mounted in the usual way."
30942 msgstr ""
30943
30944 #. type: textblock
30945 #: ../src/guestfs.pod:543
30946 msgid ""
30947 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
30948 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
30949 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
30950 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
30951 "underlying encrypted block device)."
30952 msgstr ""
30953
30954 #. type: =head2
30955 #: ../src/guestfs.pod:550
30956 msgid "INSPECTION"
30957 msgstr ""
30958
30959 #. type: textblock
30960 #: ../src/guestfs.pod:552
30961 msgid ""
30962 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
30963 "contains operating systems, an install CD or a live CD.  (These APIs used to "
30964 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
30965 "version 1.5.3 the most frequently used part of this library has been "
30966 "rewritten in C and moved into the core code)."
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../src/guestfs.pod:559
30971 msgid ""
30972 "Add all disks belonging to the unknown virtual machine and call "
30973 "L</guestfs_launch> in the usual way."
30974 msgstr ""
30975
30976 #. type: textblock
30977 #: ../src/guestfs.pod:562
30978 msgid ""
30979 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
30980 "and certain heuristics, and returns a list of operating systems that were "
30981 "found.  An empty list means none were found.  A single element is the root "
30982 "filesystem of the operating system.  For dual- or multi-boot guests, "
30983 "multiple roots can be returned, each one corresponding to a separate "
30984 "operating system.  (Multi-boot virtual machines are extremely rare in the "
30985 "world of virtualization, but since this scenario can happen, we have built "
30986 "libguestfs to deal with it.)"
30987 msgstr ""
30988
30989 #. type: textblock
30990 #: ../src/guestfs.pod:571
30991 msgid ""
30992 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
30993 "to get additional details about that operating system.  For example, call "
30994 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
30995 "Windows and Linux-based operating systems respectively."
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs.pod:577
31000 msgid ""
31001 "Un*x-like and Linux-based operating systems usually consist of several "
31002 "filesystems which are mounted at boot time (for example, a separate boot "
31003 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31004 "filesystems correspond to mount points.  Call "
31005 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31006 "hash table like this example:"
31007 msgstr ""
31008
31009 #. type: verbatim
31010 #: ../src/guestfs.pod:584
31011 #, no-wrap
31012 msgid ""
31013 " /boot => /dev/sda1\n"
31014 " /     => /dev/vg_guest/lv_root\n"
31015 " /usr  => /dev/vg_guest/lv_usr\n"
31016 "\n"
31017 msgstr ""
31018
31019 #. type: textblock
31020 #: ../src/guestfs.pod:588
31021 msgid ""
31022 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31023 "filesystems as suggested."
31024 msgstr ""
31025
31026 #. type: textblock
31027 #: ../src/guestfs.pod:591
31028 msgid ""
31029 "Be careful to mount filesystems in the right order (eg. C</> before "
31030 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31031 "work."
31032 msgstr ""
31033
31034 #. type: textblock
31035 #: ../src/guestfs.pod:595
31036 msgid ""
31037 "Inspection currently only works for some common operating systems.  "
31038 "Contributors are welcome to send patches for other operating systems that we "
31039 "currently cannot detect."
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../src/guestfs.pod:599
31044 msgid ""
31045 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31046 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31047 "encrypted devices."
31048 msgstr ""
31049
31050 #. type: textblock
31051 #: ../src/guestfs.pod:603
31052 msgid ""
31053 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31054 "inspection and caches the results in the guest handle.  Subsequent calls to "
31055 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31056 "re-read the disks.  If you change the content of the guest disks, you can "
31057 "redo inspection by calling L</guestfs_inspect_os> again.  "
31058 "(L</guestfs_inspect_list_applications> works a little differently from the "
31059 "other calls and does read the disks.  See documentation for that function "
31060 "for details)."
31061 msgstr ""
31062
31063 #. type: =head3
31064 #: ../src/guestfs.pod:612
31065 msgid "INSPECTING INSTALL DISKS"
31066 msgstr ""
31067
31068 #. type: textblock
31069 #: ../src/guestfs.pod:614
31070 msgid ""
31071 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31072 "CDs and more."
31073 msgstr ""
31074
31075 #. type: textblock
31076 #: ../src/guestfs.pod:617
31077 msgid ""
31078 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31079 "system, which currently can be C<installed> (a regular operating system) or "
31080 "C<installer> (some sort of install disk)."
31081 msgstr ""
31082
31083 #. type: textblock
31084 #: ../src/guestfs.pod:621
31085 msgid ""
31086 "Further information is available about the operating system that can be "
31087 "installed using the regular inspection APIs like "
31088 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31089 "etc."
31090 msgstr ""
31091
31092 #. type: textblock
31093 #: ../src/guestfs.pod:626
31094 msgid ""
31095 "Some additional information specific to installer disks is also available "
31096 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31097 "L</guestfs_inspect_is_multipart> calls."
31098 msgstr ""
31099
31100 #. type: =head2
31101 #: ../src/guestfs.pod:631
31102 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31103 msgstr ""
31104
31105 #. type: textblock
31106 #: ../src/guestfs.pod:633
31107 msgid ""
31108 "Libguestfs can mount NTFS partitions.  It does this using the "
31109 "L<http://www.ntfs-3g.org/> driver."
31110 msgstr ""
31111
31112 #. type: =head3
31113 #: ../src/guestfs.pod:636
31114 msgid "DRIVE LETTERS AND PATHS"
31115 msgstr ""
31116
31117 #. type: textblock
31118 #: ../src/guestfs.pod:638
31119 msgid ""
31120 "DOS and Windows still use drive letters, and the filesystems are always "
31121 "treated as case insensitive by Windows itself, and therefore you might find "
31122 "a Windows configuration file referring to a path like "
31123 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31124 "that directory might be referred to as C</WINDOWS/System32>."
31125 msgstr ""
31126
31127 #. type: textblock
31128 #: ../src/guestfs.pod:644
31129 msgid ""
31130 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31131 "L</guestfs_inspect_get_drive_mappings>)"
31132 msgstr ""
31133
31134 #. type: textblock
31135 #: ../src/guestfs.pod:647
31136 msgid ""
31137 "Dealing with separator characters (backslash vs forward slash) is outside "
31138 "the scope of libguestfs, but usually a simple character replacement will "
31139 "work."
31140 msgstr ""
31141
31142 #. type: textblock
31143 #: ../src/guestfs.pod:651
31144 msgid ""
31145 "To resolve the case insensitivity of paths, call "
31146 "L</guestfs_case_sensitive_path>."
31147 msgstr ""
31148
31149 #. type: =head3
31150 #: ../src/guestfs.pod:654
31151 msgid "ACCESSING THE WINDOWS REGISTRY"
31152 msgstr ""
31153
31154 #. type: textblock
31155 #: ../src/guestfs.pod:656
31156 msgid ""
31157 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31158 "files, through the library C<hivex> which is part of the libguestfs project "
31159 "although ships as a separate tarball.  You have to locate and download the "
31160 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31161 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31162 "L<virt-win-reg(1)> for more help on this issue."
31163 msgstr ""
31164
31165 #. type: =head3
31166 #: ../src/guestfs.pod:664
31167 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31168 msgstr ""
31169
31170 #. type: textblock
31171 #: ../src/guestfs.pod:666
31172 msgid ""
31173 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31174 "provide something which looks like a Linux symlink.  The way it tries to do "
31175 "the rewriting is described here:"
31176 msgstr ""
31177
31178 #. type: textblock
31179 #: ../src/guestfs.pod:670
31180 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs.pod:672
31185 msgid ""
31186 "The essential problem is that ntfs-3g simply does not have enough "
31187 "information to do a correct job.  NTFS links can contain drive letters and "
31188 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31189 "It is almost certainly the case that libguestfs callers should ignore what "
31190 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31191 msgstr ""
31192
31193 #. type: textblock
31194 #: ../src/guestfs.pod:679
31195 msgid ""
31196 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31197 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31198 "attribute, and read the raw reparse data from that (you can find the format "
31199 "documented in various places around the web)."
31200 msgstr ""
31201
31202 #. type: =head3
31203 #: ../src/guestfs.pod:684
31204 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs.pod:686
31209 msgid ""
31210 "There are other useful extended attributes that can be read from ntfs-3g "
31211 "filesystems (using L</guestfs_getxattr>).  See:"
31212 msgstr ""
31213
31214 #. type: textblock
31215 #: ../src/guestfs.pod:689
31216 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31217 msgstr ""
31218
31219 #. type: =head2
31220 #: ../src/guestfs.pod:691
31221 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31222 msgstr ""
31223
31224 #. type: textblock
31225 #: ../src/guestfs.pod:693
31226 msgid ""
31227 "Although we don't want to discourage you from using the C API, we will "
31228 "mention here that the same API is also available in other languages."
31229 msgstr ""
31230
31231 #. type: textblock
31232 #: ../src/guestfs.pod:696
31233 msgid ""
31234 "The API is broadly identical in all supported languages.  This means that "
31235 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31236 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31237 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31238 "each language."
31239 msgstr ""
31240
31241 #. type: textblock
31242 #: ../src/guestfs.pod:702
31243 msgid ""
31244 "Error messages are automatically transformed into exceptions if the language "
31245 "supports it."
31246 msgstr ""
31247
31248 #. type: textblock
31249 #: ../src/guestfs.pod:705
31250 msgid ""
31251 "We don't try to \"object orientify\" parts of the API in OO languages, "
31252 "although contributors are welcome to write higher level APIs above what we "
31253 "provide in their favourite languages if they wish."
31254 msgstr ""
31255
31256 #. type: =item
31257 #: ../src/guestfs.pod:711
31258 msgid "B<C++>"
31259 msgstr ""
31260
31261 #. type: textblock
31262 #: ../src/guestfs.pod:713
31263 msgid ""
31264 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
31265 "identical to the C API.  C++ classes and exceptions are not used."
31266 msgstr ""
31267
31268 #. type: =item
31269 #: ../src/guestfs.pod:717
31270 msgid "B<C#>"
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs.pod:719
31275 msgid ""
31276 "The C# bindings are highly experimental.  Please read the warnings at the "
31277 "top of C<csharp/Libguestfs.cs>."
31278 msgstr ""
31279
31280 #. type: =item
31281 #: ../src/guestfs.pod:722
31282 msgid "B<Haskell>"
31283 msgstr ""
31284
31285 #. type: textblock
31286 #: ../src/guestfs.pod:724
31287 msgid ""
31288 "This is the only language binding that is working but incomplete.  Only "
31289 "calls which return simple integers have been bound in Haskell, and we are "
31290 "looking for help to complete this binding."
31291 msgstr ""
31292
31293 #. type: =item
31294 #: ../src/guestfs.pod:728
31295 msgid "B<Java>"
31296 msgstr ""
31297
31298 #. type: textblock
31299 #: ../src/guestfs.pod:730
31300 msgid ""
31301 "Full documentation is contained in the Javadoc which is distributed with "
31302 "libguestfs.  For examples, see L<guestfs-java(3)>."
31303 msgstr ""
31304
31305 #. type: =item
31306 #: ../src/guestfs.pod:733
31307 msgid "B<OCaml>"
31308 msgstr ""
31309
31310 #. type: textblock
31311 #: ../src/guestfs.pod:735
31312 msgid "See L<guestfs-ocaml(3)>."
31313 msgstr ""
31314
31315 #. type: =item
31316 #: ../src/guestfs.pod:737
31317 msgid "B<Perl>"
31318 msgstr ""
31319
31320 #. type: textblock
31321 #: ../src/guestfs.pod:739
31322 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
31323 msgstr ""
31324
31325 #. type: =item
31326 #: ../src/guestfs.pod:741
31327 msgid "B<PHP>"
31328 msgstr ""
31329
31330 #. type: textblock
31331 #: ../src/guestfs.pod:743
31332 msgid ""
31333 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
31334 "the php-libguestfs package for your distribution."
31335 msgstr ""
31336
31337 #. type: textblock
31338 #: ../src/guestfs.pod:746
31339 msgid "The PHP binding only works correctly on 64 bit machines."
31340 msgstr ""
31341
31342 #. type: =item
31343 #: ../src/guestfs.pod:748
31344 msgid "B<Python>"
31345 msgstr ""
31346
31347 #. type: textblock
31348 #: ../src/guestfs.pod:750
31349 msgid "See L<guestfs-python(3)>."
31350 msgstr ""
31351
31352 #. type: =item
31353 #: ../src/guestfs.pod:752
31354 msgid "B<Ruby>"
31355 msgstr ""
31356
31357 #. type: textblock
31358 #: ../src/guestfs.pod:754
31359 msgid "See L<guestfs-ruby(3)>."
31360 msgstr ""
31361
31362 #. type: =item
31363 #: ../src/guestfs.pod:756
31364 msgid "B<shell scripts>"
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs.pod:758
31369 msgid "See L<guestfish(1)>."
31370 msgstr ""
31371
31372 #. type: =head2
31373 #: ../src/guestfs.pod:762
31374 msgid "LIBGUESTFS GOTCHAS"
31375 msgstr ""
31376
31377 #. type: textblock
31378 #: ../src/guestfs.pod:764
31379 msgid ""
31380 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
31381 "system [...] that works in the way it is documented but is counterintuitive "
31382 "and almost invites mistakes.\""
31383 msgstr ""
31384
31385 #. type: textblock
31386 #: ../src/guestfs.pod:768
31387 msgid ""
31388 "Since we developed libguestfs and the associated tools, there are several "
31389 "things we would have designed differently, but are now stuck with for "
31390 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
31391 "release, you can expect these to change.  Beware of them."
31392 msgstr ""
31393
31394 #. type: =item
31395 #: ../src/guestfs.pod:776
31396 msgid "Autosync / forgetting to sync."
31397 msgstr ""
31398
31399 #. type: textblock
31400 #: ../src/guestfs.pod:778
31401 msgid ""
31402 "I<Update:> Autosync is enabled by default for all API users starting from "
31403 "libguestfs 1.5.24.  This section only applies to older versions."
31404 msgstr ""
31405
31406 #. type: textblock
31407 #: ../src/guestfs.pod:781
31408 msgid ""
31409 "When modifying a filesystem from C or another language, you B<must> unmount "
31410 "all filesystems and call L</guestfs_sync> explicitly before you close the "
31411 "libguestfs handle.  You can also call:"
31412 msgstr ""
31413
31414 #. type: verbatim
31415 #: ../src/guestfs.pod:785
31416 #, no-wrap
31417 msgid ""
31418 " guestfs_set_autosync (g, 1);\n"
31419 "\n"
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs.pod:787
31424 msgid ""
31425 "to have the unmount/sync done automatically for you when the handle 'g' is "
31426 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
31427 "q.v.)"
31428 msgstr ""
31429
31430 #. type: textblock
31431 #: ../src/guestfs.pod:791
31432 msgid ""
31433 "If you forget to do this, then it is entirely possible that your changes "
31434 "won't be written out, or will be partially written, or (very rarely) that "
31435 "you'll get disk corruption."
31436 msgstr ""
31437
31438 #. type: textblock
31439 #: ../src/guestfs.pod:795
31440 msgid ""
31441 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
31442 "guestfish scripts that forget to sync will work just fine, which can make "
31443 "this very puzzling if you are trying to debug a problem."
31444 msgstr ""
31445
31446 #. type: =item
31447 #: ../src/guestfs.pod:799
31448 msgid "Mount option C<-o sync> should not be the default."
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs.pod:801
31453 msgid ""
31454 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
31455 "However C<-o sync> does not add any reliability benefit, but does have a "
31456 "very large performance impact."
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs.pod:805
31461 msgid ""
31462 "The work around is to use L</guestfs_mount_options> and set the mount "
31463 "options that you actually want to use."
31464 msgstr ""
31465
31466 #. type: =item
31467 #: ../src/guestfs.pod:808
31468 msgid "Read-only should be the default."
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs.pod:810
31473 msgid ""
31474 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
31475 "specify I<--rw> if you want to make changes to the image."
31476 msgstr ""
31477
31478 #. type: textblock
31479 #: ../src/guestfs.pod:813
31480 msgid "This would reduce the potential to corrupt live VM images."
31481 msgstr ""
31482
31483 #. type: textblock
31484 #: ../src/guestfs.pod:815
31485 msgid ""
31486 "Note that many filesystems change the disk when you just mount and unmount, "
31487 "even if you didn't perform any writes.  You need to use "
31488 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
31489 msgstr ""
31490
31491 #. type: =item
31492 #: ../src/guestfs.pod:819
31493 msgid "guestfish command line is hard to use."
31494 msgstr ""
31495
31496 #. type: textblock
31497 #: ../src/guestfs.pod:821
31498 msgid ""
31499 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
31500 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
31501 "exist, so it fails.  In earlier versions of guestfish the error message was "
31502 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
31503 "we should have used C<guestfish -c command> to run commands."
31504 msgstr ""
31505
31506 #. type: =item
31507 #: ../src/guestfs.pod:828
31508 msgid "guestfish megabyte modifiers don't work right on all commands"
31509 msgstr ""
31510
31511 #. type: textblock
31512 #: ../src/guestfs.pod:830
31513 msgid ""
31514 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
31515 "other modifiers).  What guestfish actually does is to multiply the number "
31516 "part by the modifier part and pass the result to the C API.  However this "
31517 "doesn't work for a few APIs which aren't expecting bytes, but are already "
31518 "expecting some other unit (eg. megabytes)."
31519 msgstr ""
31520
31521 #. type: textblock
31522 #: ../src/guestfs.pod:837
31523 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
31524 msgstr ""
31525
31526 #. type: verbatim
31527 #: ../src/guestfs.pod:839
31528 #, no-wrap
31529 msgid ""
31530 " lvcreate LV VG 100M\n"
31531 "\n"
31532 msgstr ""
31533
31534 #. type: textblock
31535 #: ../src/guestfs.pod:841
31536 msgid ""
31537 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
31538 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
31539 "megabytes * megabytes) logical volume.  The error message you get from this "
31540 "is also a little obscure."
31541 msgstr ""
31542
31543 #. type: textblock
31544 #: ../src/guestfs.pod:846
31545 msgid ""
31546 "This could be fixed in the generator by specially marking parameters and "
31547 "return values which take bytes or other units."
31548 msgstr ""
31549
31550 #. type: =item
31551 #: ../src/guestfs.pod:849
31552 msgid "Ambiguity between devices and paths"
31553 msgstr ""
31554
31555 #. type: textblock
31556 #: ../src/guestfs.pod:851
31557 msgid ""
31558 "There is a subtle ambiguity in the API between a device name "
31559 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
31560 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
31561 msgstr ""
31562
31563 #. type: textblock
31564 #: ../src/guestfs.pod:856
31565 msgid ""
31566 "In the current API we usually resolve this ambiguity by having two separate "
31567 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
31568 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
31569 "detecting if the path supplied begins with C</dev/>."
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs.pod:862
31574 msgid ""
31575 "To avoid both the ambiguity and the need to duplicate some calls, we could "
31576 "make paths/devices into structured names.  One way to do this would be to "
31577 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
31578 "aspect of grub.  Another way would be to use a structured type, equivalent "
31579 "to this OCaml type:"
31580 msgstr ""
31581
31582 #. type: verbatim
31583 #: ../src/guestfs.pod:868
31584 #, no-wrap
31585 msgid ""
31586 " type path = Path of string | Device of int | Partition of int * int\n"
31587 "\n"
31588 msgstr ""
31589
31590 #. type: textblock
31591 #: ../src/guestfs.pod:870
31592 msgid "which would allow you to pass arguments like:"
31593 msgstr ""
31594
31595 #. type: verbatim
31596 #: ../src/guestfs.pod:872
31597 #, no-wrap
31598 msgid ""
31599 " Path \"/foo/bar\"\n"
31600 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
31601 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
31602 " Path \"/dev/sdb2\"    (* not a device *)\n"
31603 "\n"
31604 msgstr ""
31605
31606 #. type: textblock
31607 #: ../src/guestfs.pod:877
31608 msgid ""
31609 "As you can see there are still problems to resolve even with this "
31610 "representation.  Also consider how it might work in guestfish."
31611 msgstr ""
31612
31613 #. type: =head2
31614 #: ../src/guestfs.pod:882
31615 msgid "KEYS AND PASSPHRASES"
31616 msgstr ""
31617
31618 #. type: textblock
31619 #: ../src/guestfs.pod:884
31620 msgid ""
31621 "Certain libguestfs calls take a parameter that contains sensitive key "
31622 "material, passed in as a C string."
31623 msgstr ""
31624
31625 #. type: textblock
31626 #: ../src/guestfs.pod:887
31627 msgid ""
31628 "In the future we would hope to change the libguestfs implementation so that "
31629 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
31630 "swap.  However this is I<not> done at the moment, because of the complexity "
31631 "of such an implementation."
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs.pod:892
31636 msgid ""
31637 "Therefore you should be aware that any key parameter you pass to libguestfs "
31638 "might end up being written out to the swap partition.  If this is a concern, "
31639 "scrub the swap partition or don't use libguestfs on encrypted devices."
31640 msgstr ""
31641
31642 #. type: =head2
31643 #: ../src/guestfs.pod:897
31644 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
31645 msgstr ""
31646
31647 #. type: textblock
31648 #: ../src/guestfs.pod:899
31649 msgid ""
31650 "All high-level libguestfs actions are synchronous.  If you want to use "
31651 "libguestfs asynchronously then you must create a thread."
31652 msgstr ""
31653
31654 #. type: textblock
31655 #: ../src/guestfs.pod:902
31656 msgid ""
31657 "Only use the handle from a single thread.  Either use the handle exclusively "
31658 "from one thread, or provide your own mutex so that two threads cannot issue "
31659 "calls on the same handle at the same time."
31660 msgstr ""
31661
31662 #. type: textblock
31663 #: ../src/guestfs.pod:906
31664 msgid ""
31665 "See the graphical program guestfs-browser for one possible architecture for "
31666 "multithreaded programs using libvirt and libguestfs."
31667 msgstr ""
31668
31669 #. type: =head2
31670 #: ../src/guestfs.pod:909
31671 msgid "PATH"
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs.pod:911
31676 msgid ""
31677 "Libguestfs needs a supermin appliance, which it finds by looking along an "
31678 "internal path."
31679 msgstr ""
31680
31681 #. type: textblock
31682 #: ../src/guestfs.pod:914
31683 msgid ""
31684 "By default it looks for these in the directory C<$libdir/guestfs> "
31685 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
31686 msgstr ""
31687
31688 #. type: textblock
31689 #: ../src/guestfs.pod:917
31690 msgid ""
31691 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
31692 "to change the directories that libguestfs will search in.  The value is a "
31693 "colon-separated list of paths.  The current directory is I<not> searched "
31694 "unless the path contains an empty element or C<.>.  For example "
31695 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
31696 "then C</usr/lib/guestfs>."
31697 msgstr ""
31698
31699 #. type: =head2
31700 #: ../src/guestfs.pod:924
31701 msgid "QEMU WRAPPERS"
31702 msgstr ""
31703
31704 #. type: textblock
31705 #: ../src/guestfs.pod:926
31706 msgid ""
31707 "If you want to compile your own qemu, run qemu from a non-standard location, "
31708 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
31709 "around qemu."
31710 msgstr ""
31711
31712 #. type: textblock
31713 #: ../src/guestfs.pod:930
31714 msgid ""
31715 "There is one important rule to remember: you I<must C<exec qemu>> as the "
31716 "last command in the shell script (so that qemu replaces the shell and "
31717 "becomes the direct child of the libguestfs-using program).  If you don't do "
31718 "this, then the qemu process won't be cleaned up correctly."
31719 msgstr ""
31720
31721 #. type: textblock
31722 #: ../src/guestfs.pod:935
31723 msgid ""
31724 "Here is an example of a wrapper, where I have built my own copy of qemu from "
31725 "source:"
31726 msgstr ""
31727
31728 #. type: verbatim
31729 #: ../src/guestfs.pod:938
31730 #, no-wrap
31731 msgid ""
31732 " #!/bin/sh -\n"
31733 " qemudir=/home/rjones/d/qemu\n"
31734 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
31735 "\"$@\"\n"
31736 "\n"
31737 msgstr ""
31738
31739 #. type: textblock
31740 #: ../src/guestfs.pod:942
31741 msgid ""
31742 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
31743 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
31744 "example:"
31745 msgstr ""
31746
31747 #. type: verbatim
31748 #: ../src/guestfs.pod:946
31749 #, no-wrap
31750 msgid ""
31751 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
31752 "\n"
31753 msgstr ""
31754
31755 #. type: textblock
31756 #: ../src/guestfs.pod:948
31757 msgid ""
31758 "Note that libguestfs also calls qemu with the -help and -version options in "
31759 "order to determine features."
31760 msgstr ""
31761
31762 #. type: =head2
31763 #: ../src/guestfs.pod:951
31764 msgid "ATTACHING TO RUNNING DAEMONS"
31765 msgstr ""
31766
31767 #. type: textblock
31768 #: ../src/guestfs.pod:953
31769 msgid ""
31770 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
31771 "babies.  Use with caution."
31772 msgstr ""
31773
31774 #. type: textblock
31775 #: ../src/guestfs.pod:956
31776 msgid ""
31777 "I<Note (2):> This section explains how to attach to a running daemon from a "
31778 "low level perspective.  For most users, simply using virt tools such as "
31779 "L<guestfish(1)> with the I<--live> option will \"just work\"."
31780 msgstr ""
31781
31782 #. type: =head3
31783 #: ../src/guestfs.pod:960
31784 msgid "Using guestfs_set_attach_method"
31785 msgstr ""
31786
31787 #. type: textblock
31788 #: ../src/guestfs.pod:962
31789 msgid ""
31790 "By calling L</guestfs_set_attach_method> you can change how the library "
31791 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
31792 "L</ARCHITECTURE> for some background)."
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs.pod:966
31797 msgid ""
31798 "The normal attach method is C<appliance>, where a small appliance is created "
31799 "containing the daemon, and then the library connects to this."
31800 msgstr ""
31801
31802 #. type: textblock
31803 #: ../src/guestfs.pod:969
31804 msgid ""
31805 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
31806 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
31807 "daemon over the Unix domain socket."
31808 msgstr ""
31809
31810 #. type: textblock
31811 #: ../src/guestfs.pod:973
31812 msgid ""
31813 "The normal use for this is to connect to a running virtual machine that "
31814 "contains a C<guestfsd> daemon, and send commands so you can read and write "
31815 "files inside the live virtual machine."
31816 msgstr ""
31817
31818 #. type: =head3
31819 #: ../src/guestfs.pod:977
31820 msgid "Using guestfs_add_domain with live flag"
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:979
31825 msgid ""
31826 "L</guestfs_add_domain> provides some help for getting the correct attach "
31827 "method.  If you pass the C<live> option to this function, then (if the "
31828 "virtual machine is running) it will examine the libvirt XML looking for a "
31829 "virtio-serial channel to connect to:"
31830 msgstr ""
31831
31832 #. type: verbatim
31833 #: ../src/guestfs.pod:985
31834 #, no-wrap
31835 msgid ""
31836 " <domain>\n"
31837 "   ...\n"
31838 "   <devices>\n"
31839 "     ...\n"
31840 "     <channel type='unix'>\n"
31841 "       <source mode='bind' path='/path/to/socket'/>\n"
31842 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
31843 "     </channel>\n"
31844 "     ...\n"
31845 "   </devices>\n"
31846 " </domain>\n"
31847 "\n"
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs.pod:997
31852 msgid ""
31853 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
31854 "method to C<unix:/path/to/socket>."
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs.pod:1000
31859 msgid ""
31860 "Some of the libguestfs tools (including guestfish) support a I<--live> "
31861 "option which is passed through to L</guestfs_add_domain> thus allowing you "
31862 "to attach to and modify live virtual machines."
31863 msgstr ""
31864
31865 #. type: textblock
31866 #: ../src/guestfs.pod:1004
31867 msgid ""
31868 "The virtual machine needs to have been set up beforehand so that it has the "
31869 "virtio-serial channel and so that guestfsd is running inside it."
31870 msgstr ""
31871
31872 #. type: =head2
31873 #: ../src/guestfs.pod:1008
31874 msgid "ABI GUARANTEE"
31875 msgstr ""
31876
31877 #. type: textblock
31878 #: ../src/guestfs.pod:1010
31879 msgid ""
31880 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
31881 "actions as outlined in this section.  Although we will deprecate some "
31882 "actions, for example if they get replaced by newer calls, we will keep the "
31883 "old actions forever.  This allows you the developer to program in confidence "
31884 "against the libguestfs API."
31885 msgstr ""
31886
31887 #. type: =head2
31888 #: ../src/guestfs.pod:1016
31889 msgid "BLOCK DEVICE NAMING"
31890 msgstr ""
31891
31892 #. type: textblock
31893 #: ../src/guestfs.pod:1018
31894 msgid ""
31895 "In the kernel there is now quite a profusion of schemata for naming block "
31896 "devices (in this context, by I<block device> I mean a physical or virtual "
31897 "hard drive).  The original Linux IDE driver used names starting with "
31898 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
31899 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
31900 "replacement for the old IDE driver (particularly for SATA devices) those "
31901 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
31902 "machines with paravirtualized drivers.  This has created several different "
31903 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
31904 "Xen PV disks."
31905 msgstr ""
31906
31907 #. type: textblock
31908 #: ../src/guestfs.pod:1030
31909 msgid ""
31910 "As discussed above, libguestfs uses a qemu appliance running an embedded "
31911 "Linux kernel to access block devices.  We can run a variety of appliances "
31912 "based on a variety of Linux kernels."
31913 msgstr ""
31914
31915 #. type: textblock
31916 #: ../src/guestfs.pod:1034
31917 msgid ""
31918 "This causes a problem for libguestfs because many API calls use device or "
31919 "partition names.  Working scripts and the recipe (example) scripts that we "
31920 "make available over the internet could fail if the naming scheme changes."
31921 msgstr ""
31922
31923 #. type: textblock
31924 #: ../src/guestfs.pod:1039
31925 msgid ""
31926 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
31927 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
31928 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
31929 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
31930 msgstr ""
31931
31932 #. type: textblock
31933 #: ../src/guestfs.pod:1045
31934 msgid ""
31935 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
31936 "L</guestfs_list_partitions> and similar calls return the true names of the "
31937 "devices and partitions as known to the appliance."
31938 msgstr ""
31939
31940 #. type: =head3
31941 #: ../src/guestfs.pod:1050
31942 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
31943 msgstr ""
31944
31945 #. type: textblock
31946 #: ../src/guestfs.pod:1052
31947 msgid ""
31948 "Usually this translation is transparent.  However in some (very rare)  cases "
31949 "you may need to know the exact algorithm.  Such cases include where you use "
31950 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
31951 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
31952 "devices."
31953 msgstr ""
31954
31955 #. type: textblock
31956 #: ../src/guestfs.pod:1058
31957 msgid ""
31958 "The algorithm is applied only to I<parameters> which are known to be either "
31959 "device or partition names.  Return values from functions such as "
31960 "L</guestfs_list_devices> are never changed."
31961 msgstr ""
31962
31963 #. type: textblock
31964 #: ../src/guestfs.pod:1066
31965 msgid "Is the string a parameter which is a device or partition name?"
31966 msgstr ""
31967
31968 #. type: textblock
31969 #: ../src/guestfs.pod:1070
31970 msgid "Does the string begin with C</dev/sd>?"
31971 msgstr ""
31972
31973 #. type: textblock
31974 #: ../src/guestfs.pod:1074
31975 msgid ""
31976 "Does the named device exist? If so, we use that device.  However if I<not> "
31977 "then we continue with this algorithm."
31978 msgstr ""
31979
31980 #. type: textblock
31981 #: ../src/guestfs.pod:1079
31982 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
31983 msgstr ""
31984
31985 #. type: textblock
31986 #: ../src/guestfs.pod:1081
31987 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
31988 msgstr ""
31989
31990 #. type: textblock
31991 #: ../src/guestfs.pod:1083
31992 msgid "If that named device exists, use it.  If not, continue."
31993 msgstr ""
31994
31995 #. type: textblock
31996 #: ../src/guestfs.pod:1087
31997 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
31998 msgstr ""
31999
32000 #. type: textblock
32001 #: ../src/guestfs.pod:1089
32002 msgid "If that named device exists, use it.  If not, return an error."
32003 msgstr ""
32004
32005 #. type: =head3
32006 #: ../src/guestfs.pod:1093
32007 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32008 msgstr ""
32009
32010 #. type: textblock
32011 #: ../src/guestfs.pod:1095
32012 msgid ""
32013 "Although the standard naming scheme and automatic translation is useful for "
32014 "simple programs and guestfish scripts, for larger programs it is best not to "
32015 "rely on this mechanism."
32016 msgstr ""
32017
32018 #. type: textblock
32019 #: ../src/guestfs.pod:1099
32020 msgid ""
32021 "Where possible for maximum future portability programs using libguestfs "
32022 "should use these future-proof techniques:"
32023 msgstr ""
32024
32025 #. type: textblock
32026 #: ../src/guestfs.pod:1106
32027 msgid ""
32028 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32029 "device names, and then use those names directly."
32030 msgstr ""
32031
32032 #. type: textblock
32033 #: ../src/guestfs.pod:1109
32034 msgid "Since those device names exist by definition, they will never be translated."
32035 msgstr ""
32036
32037 #. type: textblock
32038 #: ../src/guestfs.pod:1114
32039 msgid ""
32040 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32041 "filesystem labels."
32042 msgstr ""
32043
32044 #. type: =head1
32045 #: ../src/guestfs.pod:1119
32046 msgid "SECURITY"
32047 msgstr ""
32048
32049 #. type: textblock
32050 #: ../src/guestfs.pod:1121
32051 msgid ""
32052 "This section discusses security implications of using libguestfs, "
32053 "particularly with untrusted or malicious guests or disk images."
32054 msgstr ""
32055
32056 #. type: =head2
32057 #: ../src/guestfs.pod:1124
32058 msgid "GENERAL SECURITY CONSIDERATIONS"
32059 msgstr ""
32060
32061 #. type: textblock
32062 #: ../src/guestfs.pod:1126
32063 msgid ""
32064 "Be careful with any files or data that you download from a guest (by "
32065 "\"download\" we mean not just the L</guestfs_download> command but any "
32066 "command that reads files, filenames, directories or anything else from a "
32067 "disk image).  An attacker could manipulate the data to fool your program "
32068 "into doing the wrong thing.  Consider cases such as:"
32069 msgstr ""
32070
32071 #. type: textblock
32072 #: ../src/guestfs.pod:1136
32073 msgid "the data (file etc) not being present"
32074 msgstr ""
32075
32076 #. type: textblock
32077 #: ../src/guestfs.pod:1140
32078 msgid "being present but empty"
32079 msgstr ""
32080
32081 #. type: textblock
32082 #: ../src/guestfs.pod:1144
32083 msgid "being much larger than normal"
32084 msgstr ""
32085
32086 #. type: textblock
32087 #: ../src/guestfs.pod:1148
32088 msgid "containing arbitrary 8 bit data"
32089 msgstr ""
32090
32091 #. type: textblock
32092 #: ../src/guestfs.pod:1152
32093 msgid "being in an unexpected character encoding"
32094 msgstr ""
32095
32096 #. type: textblock
32097 #: ../src/guestfs.pod:1156
32098 msgid "containing homoglyphs."
32099 msgstr ""
32100
32101 #. type: =head2
32102 #: ../src/guestfs.pod:1160
32103 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32104 msgstr ""
32105
32106 #. type: textblock
32107 #: ../src/guestfs.pod:1162
32108 msgid ""
32109 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32110 "(VFS) module can sometimes be escalated into exploits by deliberately "
32111 "creating a malicious, malformed filesystem.  These exploits are very severe "
32112 "for two reasons.  Firstly there are very many filesystem drivers in the "
32113 "kernel, and many of them are infrequently used and not much developer "
32114 "attention has been paid to the code.  Linux userspace helps potential "
32115 "crackers by detecting the filesystem type and automatically choosing the "
32116 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32117 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32118 "exploit (worse in some ways), giving immediate and total access to the "
32119 "system right down to the hardware level."
32120 msgstr ""
32121
32122 #. type: textblock
32123 #: ../src/guestfs.pod:1175
32124 msgid ""
32125 "That explains why you should never mount a filesystem from an untrusted "
32126 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32127 "inside a qemu virtual machine, usually running as a non-root user.  The "
32128 "attacker would need to write a filesystem which first exploited the kernel, "
32129 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32130 "the libguestfs protocol, and finally to be as serious as the host kernel "
32131 "exploit it would need to escalate its privileges to root.  This multi-step "
32132 "escalation, performed by a static piece of data, is thought to be extremely "
32133 "hard to do, although we never say 'never' about security issues."
32134 msgstr ""
32135
32136 #. type: textblock
32137 #: ../src/guestfs.pod:1186
32138 msgid ""
32139 "In any case callers can reduce the attack surface by forcing the filesystem "
32140 "type when mounting (use L</guestfs_mount_vfs>)."
32141 msgstr ""
32142
32143 #. type: =head2
32144 #: ../src/guestfs.pod:1189
32145 msgid "PROTOCOL SECURITY"
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs.pod:1191
32150 msgid ""
32151 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32152 "defined upper message size.  However a program that uses libguestfs must "
32153 "also take care - for example you can write a program that downloads a binary "
32154 "from a disk image and executes it locally, and no amount of protocol "
32155 "security will save you from the consequences."
32156 msgstr ""
32157
32158 #. type: =head2
32159 #: ../src/guestfs.pod:1197
32160 msgid "INSPECTION SECURITY"
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs.pod:1199
32165 msgid ""
32166 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32167 "directly from the guest, and these could contain any 8 bit data.  Callers "
32168 "should be careful to escape these before printing them to a structured file "
32169 "(for example, use HTML escaping if creating a web page)."
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs.pod:1205
32174 msgid ""
32175 "Guest configuration may be altered in unusual ways by the administrator of "
32176 "the virtual machine, and may not reflect reality (particularly for untrusted "
32177 "or actively malicious guests).  For example we parse the hostname from "
32178 "configuration files like C</etc/sysconfig/network> that we find in the "
32179 "guest, but the guest administrator can easily manipulate these files to "
32180 "provide the wrong hostname."
32181 msgstr ""
32182
32183 #. type: textblock
32184 #: ../src/guestfs.pod:1213
32185 msgid ""
32186 "The inspection API parses guest configuration using two external libraries: "
32187 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32188 "designed to be robust in the face of malicious data, although denial of "
32189 "service attacks are still possible, for example with oversized configuration "
32190 "files."
32191 msgstr ""
32192
32193 #. type: =head2
32194 #: ../src/guestfs.pod:1219
32195 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
32196 msgstr ""
32197
32198 #. type: textblock
32199 #: ../src/guestfs.pod:1221
32200 msgid ""
32201 "Be very cautious about running commands from the guest.  By running a "
32202 "command in the guest, you are giving CPU time to a binary that you do not "
32203 "control, under the same user account as the library, albeit wrapped in qemu "
32204 "virtualization.  More information and alternatives can be found in the "
32205 "section L</RUNNING COMMANDS>."
32206 msgstr ""
32207
32208 #. type: =head2
32209 #: ../src/guestfs.pod:1227
32210 msgid "CVE-2010-3851"
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs.pod:1229
32215 msgid "https://bugzilla.redhat.com/642934"
32216 msgstr ""
32217
32218 #. type: textblock
32219 #: ../src/guestfs.pod:1231
32220 msgid ""
32221 "This security bug concerns the automatic disk format detection that qemu "
32222 "does on disk images."
32223 msgstr ""
32224
32225 #. type: textblock
32226 #: ../src/guestfs.pod:1234
32227 msgid ""
32228 "A raw disk image is just the raw bytes, there is no header.  Other disk "
32229 "images like qcow2 contain a special header.  Qemu deals with this by looking "
32230 "for one of the known headers, and if none is found then assuming the disk "
32231 "image must be raw."
32232 msgstr ""
32233
32234 #. type: textblock
32235 #: ../src/guestfs.pod:1239
32236 msgid ""
32237 "This allows a guest which has been given a raw disk image to write some "
32238 "other header.  At next boot (or when the disk image is accessed by "
32239 "libguestfs) qemu would do autodetection and think the disk image format was, "
32240 "say, qcow2 based on the header written by the guest."
32241 msgstr ""
32242
32243 #. type: textblock
32244 #: ../src/guestfs.pod:1244
32245 msgid ""
32246 "This in itself would not be a problem, but qcow2 offers many features, one "
32247 "of which is to allow a disk image to refer to another image (called the "
32248 "\"backing disk\").  It does this by placing the path to the backing disk "
32249 "into the qcow2 header.  This path is not validated and could point to any "
32250 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
32251 "\"holes\" in the qcow2 disk image, which of course is completely under the "
32252 "control of the attacker."
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs.pod:1252
32257 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
32258 msgstr ""
32259
32260 #. type: textblock
32261 #: ../src/guestfs.pod:1259
32262 msgid "You have enabled the network or have opened the disk in write mode."
32263 msgstr ""
32264
32265 #. type: textblock
32266 #: ../src/guestfs.pod:1263
32267 msgid ""
32268 "You are also running untrusted code from the guest (see L</RUNNING "
32269 "COMMANDS>)."
32270 msgstr ""
32271
32272 #. type: textblock
32273 #: ../src/guestfs.pod:1268
32274 msgid ""
32275 "The way to avoid this is to specify the expected disk format when adding "
32276 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
32277 "should always do this if the disk is raw format, and it's a good idea for "
32278 "other cases too."
32279 msgstr ""
32280
32281 #. type: textblock
32282 #: ../src/guestfs.pod:1273
32283 msgid ""
32284 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
32285 "format is fetched from libvirt and passed through."
32286 msgstr ""
32287
32288 #. type: textblock
32289 #: ../src/guestfs.pod:1276
32290 msgid ""
32291 "For libguestfs tools, use the I<--format> command line parameter as "
32292 "appropriate."
32293 msgstr ""
32294
32295 #. type: =head1
32296 #: ../src/guestfs.pod:1279
32297 msgid "CONNECTION MANAGEMENT"
32298 msgstr ""
32299
32300 #. type: =head2
32301 #: ../src/guestfs.pod:1281
32302 msgid "guestfs_h *"
32303 msgstr ""
32304
32305 #. type: textblock
32306 #: ../src/guestfs.pod:1283
32307 msgid ""
32308 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
32309 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
32310 "handle and release all resources used."
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs.pod:1287
32315 msgid ""
32316 "For information on using multiple handles and threads, see the section "
32317 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
32318 msgstr ""
32319
32320 #. type: =head2
32321 #: ../src/guestfs.pod:1290
32322 msgid "guestfs_create"
32323 msgstr ""
32324
32325 #. type: verbatim
32326 #: ../src/guestfs.pod:1292
32327 #, no-wrap
32328 msgid ""
32329 " guestfs_h *guestfs_create (void);\n"
32330 "\n"
32331 msgstr ""
32332
32333 #. type: textblock
32334 #: ../src/guestfs.pod:1294
32335 msgid "Create a connection handle."
32336 msgstr ""
32337
32338 #. type: textblock
32339 #: ../src/guestfs.pod:1296
32340 msgid ""
32341 "On success this returns a non-NULL pointer to a handle.  On error it returns "
32342 "NULL."
32343 msgstr ""
32344
32345 #. type: textblock
32346 #: ../src/guestfs.pod:1299
32347 msgid ""
32348 "You have to \"configure\" the handle after creating it.  This includes "
32349 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
32350 "handle at least once."
32351 msgstr ""
32352
32353 #. type: textblock
32354 #: ../src/guestfs.pod:1303
32355 msgid "After configuring the handle, you have to call L</guestfs_launch>."
32356 msgstr ""
32357
32358 #. type: textblock
32359 #: ../src/guestfs.pod:1305
32360 msgid ""
32361 "You may also want to configure error handling for the handle.  See the "
32362 "L</ERROR HANDLING> section below."
32363 msgstr ""
32364
32365 #. type: =head2
32366 #: ../src/guestfs.pod:1308
32367 msgid "guestfs_close"
32368 msgstr ""
32369
32370 #. type: verbatim
32371 #: ../src/guestfs.pod:1310
32372 #, no-wrap
32373 msgid ""
32374 " void guestfs_close (guestfs_h *g);\n"
32375 "\n"
32376 msgstr ""
32377
32378 #. type: textblock
32379 #: ../src/guestfs.pod:1312
32380 msgid "This closes the connection handle and frees up all resources used."
32381 msgstr ""
32382
32383 #. type: textblock
32384 #: ../src/guestfs.pod:1314
32385 msgid ""
32386 "If autosync was set on the handle and the handle was launched, then this "
32387 "implicitly calls various functions to unmount filesystems and sync the "
32388 "disk.  See L</guestfs_set_autosync> for more details."
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs.pod:1318
32393 msgid "If a close callback was set on the handle, then it is called."
32394 msgstr ""
32395
32396 #. type: =head1
32397 #: ../src/guestfs.pod:1320
32398 msgid "ERROR HANDLING"
32399 msgstr ""
32400
32401 #. type: textblock
32402 #: ../src/guestfs.pod:1322
32403 msgid ""
32404 "API functions can return errors.  For example, almost all functions that "
32405 "return C<int> will return C<-1> to indicate an error."
32406 msgstr ""
32407
32408 #. type: textblock
32409 #: ../src/guestfs.pod:1325
32410 msgid ""
32411 "Additional information is available for errors: an error message string and "
32412 "optionally an error number (errno) if the thing that failed was a system "
32413 "call."
32414 msgstr ""
32415
32416 #. type: textblock
32417 #: ../src/guestfs.pod:1329
32418 msgid ""
32419 "You can get at the additional information about the last error on the handle "
32420 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
32421 "up an error handler with L</guestfs_set_error_handler>."
32422 msgstr ""
32423
32424 #. type: textblock
32425 #: ../src/guestfs.pod:1334
32426 msgid ""
32427 "When the handle is created, a default error handler is installed which "
32428 "prints the error message string to C<stderr>.  For small short-running "
32429 "command line programs it is sufficient to do:"
32430 msgstr ""
32431
32432 #. type: verbatim
32433 #: ../src/guestfs.pod:1338
32434 #, no-wrap
32435 msgid ""
32436 " if (guestfs_launch (g) == -1)\n"
32437 "   exit (EXIT_FAILURE);\n"
32438 "\n"
32439 msgstr ""
32440
32441 #. type: textblock
32442 #: ../src/guestfs.pod:1341
32443 msgid ""
32444 "since the default error handler will ensure that an error message has been "
32445 "printed to C<stderr> before the program exits."
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs.pod:1344
32450 msgid ""
32451 "For other programs the caller will almost certainly want to install an "
32452 "alternate error handler or do error handling in-line like this:"
32453 msgstr ""
32454
32455 #. type: verbatim
32456 #: ../src/guestfs.pod:1347
32457 #, no-wrap
32458 msgid ""
32459 " g = guestfs_create ();\n"
32460 " \n"
32461 msgstr ""
32462
32463 #. type: verbatim
32464 #: ../src/guestfs.pod:1349
32465 #, no-wrap
32466 msgid ""
32467 " /* This disables the default behaviour of printing errors\n"
32468 "    on stderr. */\n"
32469 " guestfs_set_error_handler (g, NULL, NULL);\n"
32470 " \n"
32471 msgstr ""
32472
32473 #. type: verbatim
32474 #: ../src/guestfs.pod:1353
32475 #, no-wrap
32476 msgid ""
32477 " if (guestfs_launch (g) == -1) {\n"
32478 "   /* Examine the error message and print it etc. */\n"
32479 "   char *msg = guestfs_last_error (g);\n"
32480 "   int errnum = guestfs_last_errno (g);\n"
32481 "   fprintf (stderr, \"%s\\n\", msg);\n"
32482 "   /* ... */\n"
32483 "  }\n"
32484 "\n"
32485 msgstr ""
32486
32487 #. type: textblock
32488 #: ../src/guestfs.pod:1361
32489 msgid ""
32490 "Out of memory errors are handled differently.  The default action is to call "
32491 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
32492 "L</guestfs_set_out_of_memory_handler>."
32493 msgstr ""
32494
32495 #. type: textblock
32496 #: ../src/guestfs.pod:1365
32497 msgid ""
32498 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
32499 "because there is no handle if this happens there is no way to get additional "
32500 "error information.  However L</guestfs_create> is supposed to be a "
32501 "lightweight operation which can only fail because of insufficient memory (it "
32502 "returns NULL in this case)."
32503 msgstr ""
32504
32505 #. type: =head2
32506 #: ../src/guestfs.pod:1371
32507 msgid "guestfs_last_error"
32508 msgstr ""
32509
32510 #. type: verbatim
32511 #: ../src/guestfs.pod:1373
32512 #, no-wrap
32513 msgid ""
32514 " const char *guestfs_last_error (guestfs_h *g);\n"
32515 "\n"
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs.pod:1375
32520 msgid ""
32521 "This returns the last error message that happened on C<g>.  If there has not "
32522 "been an error since the handle was created, then this returns C<NULL>."
32523 msgstr ""
32524
32525 #. type: textblock
32526 #: ../src/guestfs.pod:1379
32527 msgid ""
32528 "The lifetime of the returned string is until the next error occurs, or "
32529 "L</guestfs_close> is called."
32530 msgstr ""
32531
32532 #. type: =head2
32533 #: ../src/guestfs.pod:1382
32534 msgid "guestfs_last_errno"
32535 msgstr ""
32536
32537 #. type: verbatim
32538 #: ../src/guestfs.pod:1384
32539 #, no-wrap
32540 msgid ""
32541 " int guestfs_last_errno (guestfs_h *g);\n"
32542 "\n"
32543 msgstr ""
32544
32545 #. type: textblock
32546 #: ../src/guestfs.pod:1386
32547 msgid "This returns the last error number (errno) that happened on C<g>."
32548 msgstr ""
32549
32550 #. type: textblock
32551 #: ../src/guestfs.pod:1388
32552 msgid "If successful, an errno integer not equal to zero is returned."
32553 msgstr ""
32554
32555 #. type: textblock
32556 #: ../src/guestfs.pod:1390
32557 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:1397
32562 msgid "There has not been any error on the handle."
32563 msgstr ""
32564
32565 #. type: textblock
32566 #: ../src/guestfs.pod:1401
32567 msgid ""
32568 "There has been an error but the errno was meaningless.  This corresponds to "
32569 "the case where the error did not come from a failed system call, but for "
32570 "some other reason."
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs.pod:1407
32575 msgid ""
32576 "There was an error from a failed system call, but for some reason the errno "
32577 "was not captured and returned.  This usually indicates a bug in libguestfs."
32578 msgstr ""
32579
32580 #. type: textblock
32581 #: ../src/guestfs.pod:1413
32582 msgid ""
32583 "Libguestfs tries to convert the errno from inside the applicance into a "
32584 "corresponding errno for the caller (not entirely trivial: the appliance "
32585 "might be running a completely different operating system from the library "
32586 "and error numbers are not standardized across Un*xen).  If this could not be "
32587 "done, then the error is translated to C<EINVAL>.  In practice this should "
32588 "only happen in very rare circumstances."
32589 msgstr ""
32590
32591 #. type: =head2
32592 #: ../src/guestfs.pod:1421
32593 msgid "guestfs_set_error_handler"
32594 msgstr ""
32595
32596 #. type: verbatim
32597 #: ../src/guestfs.pod:1423
32598 #, no-wrap
32599 msgid ""
32600 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
32601 "                                           void *opaque,\n"
32602 "                                           const char *msg);\n"
32603 " void guestfs_set_error_handler (guestfs_h *g,\n"
32604 "                                 guestfs_error_handler_cb cb,\n"
32605 "                                 void *opaque);\n"
32606 "\n"
32607 msgstr ""
32608
32609 #. type: textblock
32610 #: ../src/guestfs.pod:1430
32611 msgid ""
32612 "The callback C<cb> will be called if there is an error.  The parameters "
32613 "passed to the callback are an opaque data pointer and the error message "
32614 "string."
32615 msgstr ""
32616
32617 #. type: textblock
32618 #: ../src/guestfs.pod:1434
32619 msgid ""
32620 "C<errno> is not passed to the callback.  To get that the callback must call "
32621 "L</guestfs_last_errno>."
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:1437
32626 msgid ""
32627 "Note that the message string C<msg> is freed as soon as the callback "
32628 "function returns, so if you want to stash it somewhere you must make your "
32629 "own copy."
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs.pod:1441
32634 msgid "The default handler prints messages on C<stderr>."
32635 msgstr ""
32636
32637 #. type: textblock
32638 #: ../src/guestfs.pod:1443
32639 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
32640 msgstr ""
32641
32642 #. type: =head2
32643 #: ../src/guestfs.pod:1445
32644 msgid "guestfs_get_error_handler"
32645 msgstr ""
32646
32647 #. type: verbatim
32648 #: ../src/guestfs.pod:1447
32649 #, no-wrap
32650 msgid ""
32651 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
32652 "                                                     void **opaque_rtn);\n"
32653 "\n"
32654 msgstr ""
32655
32656 #. type: textblock
32657 #: ../src/guestfs.pod:1450
32658 msgid "Returns the current error handler callback."
32659 msgstr ""
32660
32661 #. type: =head2
32662 #: ../src/guestfs.pod:1452
32663 msgid "guestfs_set_out_of_memory_handler"
32664 msgstr ""
32665
32666 #. type: verbatim
32667 #: ../src/guestfs.pod:1454
32668 #, no-wrap
32669 msgid ""
32670 " typedef void (*guestfs_abort_cb) (void);\n"
32671 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
32672 "                                         guestfs_abort_cb);\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs.pod:1458
32678 msgid ""
32679 "The callback C<cb> will be called if there is an out of memory situation.  "
32680 "I<Note this callback must not return>."
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs.pod:1461
32685 msgid "The default is to call L<abort(3)>."
32686 msgstr ""
32687
32688 #. type: textblock
32689 #: ../src/guestfs.pod:1463
32690 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
32691 msgstr ""
32692
32693 #. type: =head2
32694 #: ../src/guestfs.pod:1466
32695 msgid "guestfs_get_out_of_memory_handler"
32696 msgstr ""
32697
32698 #. type: verbatim
32699 #: ../src/guestfs.pod:1468
32700 #, no-wrap
32701 msgid ""
32702 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: textblock
32707 #: ../src/guestfs.pod:1470
32708 msgid "This returns the current out of memory handler."
32709 msgstr ""
32710
32711 #. type: =head1
32712 #: ../src/guestfs.pod:1472
32713 msgid "API CALLS"
32714 msgstr ""
32715
32716 #. type: =head1
32717 #: ../src/guestfs.pod:1476
32718 msgid "STRUCTURES"
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs.pod:1478
32723 msgid "@STRUCTS@"
32724 msgstr ""
32725
32726 #. type: =head1
32727 #: ../src/guestfs.pod:1480
32728 msgid "AVAILABILITY"
32729 msgstr ""
32730
32731 #. type: =head2
32732 #: ../src/guestfs.pod:1482
32733 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs.pod:1484
32738 msgid ""
32739 "Using L</guestfs_available> you can test availability of the following "
32740 "groups of functions.  This test queries the appliance to see if the "
32741 "appliance you are currently using supports the functionality."
32742 msgstr ""
32743
32744 #. type: textblock
32745 #: ../src/guestfs.pod:1489
32746 msgid "@AVAILABILITY@"
32747 msgstr ""
32748
32749 #. type: =head2
32750 #: ../src/guestfs.pod:1491
32751 msgid "GUESTFISH supported COMMAND"
32752 msgstr ""
32753
32754 #. type: textblock
32755 #: ../src/guestfs.pod:1493
32756 msgid ""
32757 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
32758 "prints out the available groups and whether they are supported by this build "
32759 "of libguestfs.  Note however that you have to do C<run> first."
32760 msgstr ""
32761
32762 #. type: =head2
32763 #: ../src/guestfs.pod:1498
32764 msgid "SINGLE CALLS AT COMPILE TIME"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs.pod:1500
32769 msgid ""
32770 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
32771 "function, such as:"
32772 msgstr ""
32773
32774 #. type: verbatim
32775 #: ../src/guestfs.pod:1503
32776 #, no-wrap
32777 msgid ""
32778 " #define LIBGUESTFS_HAVE_DD 1\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs.pod:1505
32784 msgid "if L</guestfs_dd> is available."
32785 msgstr ""
32786
32787 #. type: textblock
32788 #: ../src/guestfs.pod:1507
32789 msgid ""
32790 "Before version 1.5.8, if you needed to test whether a single libguestfs "
32791 "function is available at compile time, we recommended using build tools such "
32792 "as autoconf or cmake.  For example in autotools you could use:"
32793 msgstr ""
32794
32795 #. type: verbatim
32796 #: ../src/guestfs.pod:1512
32797 #, no-wrap
32798 msgid ""
32799 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
32800 " AC_CHECK_FUNCS([guestfs_dd])\n"
32801 "\n"
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:1515
32806 msgid ""
32807 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
32808 "in your program."
32809 msgstr ""
32810
32811 #. type: =head2
32812 #: ../src/guestfs.pod:1518
32813 msgid "SINGLE CALLS AT RUN TIME"
32814 msgstr ""
32815
32816 #. type: textblock
32817 #: ../src/guestfs.pod:1520
32818 msgid ""
32819 "Testing at compile time doesn't guarantee that a function really exists in "
32820 "the library.  The reason is that you might be dynamically linked against a "
32821 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
32822 "This situation unfortunately results in a segmentation fault, which is a "
32823 "shortcoming of the C dynamic linking system itself."
32824 msgstr ""
32825
32826 #. type: textblock
32827 #: ../src/guestfs.pod:1527
32828 msgid ""
32829 "You can use L<dlopen(3)> to test if a function is available at run time, as "
32830 "in this example program (note that you still need the compile time check as "
32831 "well):"
32832 msgstr ""
32833
32834 #. type: verbatim
32835 #: ../src/guestfs.pod:1531
32836 #, no-wrap
32837 msgid ""
32838 " #include <stdio.h>\n"
32839 " #include <stdlib.h>\n"
32840 " #include <unistd.h>\n"
32841 " #include <dlfcn.h>\n"
32842 " #include <guestfs.h>\n"
32843 " \n"
32844 msgstr ""
32845
32846 #. type: verbatim
32847 #: ../src/guestfs.pod:1537
32848 #, no-wrap
32849 msgid ""
32850 " main ()\n"
32851 " {\n"
32852 " #ifdef LIBGUESTFS_HAVE_DD\n"
32853 "   void *dl;\n"
32854 "   int has_function;\n"
32855 " \n"
32856 msgstr ""
32857
32858 #. type: verbatim
32859 #: ../src/guestfs.pod:1543
32860 #, no-wrap
32861 msgid ""
32862 "   /* Test if the function guestfs_dd is really available. */\n"
32863 "   dl = dlopen (NULL, RTLD_LAZY);\n"
32864 "   if (!dl) {\n"
32865 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
32866 "     exit (EXIT_FAILURE);\n"
32867 "   }\n"
32868 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
32869 "   dlclose (dl);\n"
32870 " \n"
32871 msgstr ""
32872
32873 #. type: verbatim
32874 #: ../src/guestfs.pod:1552
32875 #, no-wrap
32876 msgid ""
32877 "   if (!has_function)\n"
32878 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
32879 "   else {\n"
32880 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
32881 "     /* Now it's safe to call\n"
32882 "     guestfs_dd (g, \"foo\", \"bar\");\n"
32883 "     */\n"
32884 "   }\n"
32885 " #else\n"
32886 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
32887 " #endif\n"
32888 "  }\n"
32889 "\n"
32890 msgstr ""
32891
32892 #. type: textblock
32893 #: ../src/guestfs.pod:1565
32894 msgid ""
32895 "You may think the above is an awful lot of hassle, and it is.  There are "
32896 "other ways outside of the C linking system to ensure that this kind of "
32897 "incompatibility never arises, such as using package versioning:"
32898 msgstr ""
32899
32900 #. type: verbatim
32901 #: ../src/guestfs.pod:1570
32902 #, no-wrap
32903 msgid ""
32904 " Requires: libguestfs >= 1.0.80\n"
32905 "\n"
32906 msgstr ""
32907
32908 #. type: =head1
32909 #: ../src/guestfs.pod:1572
32910 msgid "CALLS WITH OPTIONAL ARGUMENTS"
32911 msgstr ""
32912
32913 #. type: textblock
32914 #: ../src/guestfs.pod:1574
32915 msgid ""
32916 "A recent feature of the API is the introduction of calls which take optional "
32917 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
32918 "takes variable arguments (ie. C<...>), as in this example:"
32919 msgstr ""
32920
32921 #. type: verbatim
32922 #: ../src/guestfs.pod:1579
32923 #, no-wrap
32924 msgid ""
32925 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
32926 "\n"
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs.pod:1581
32931 msgid ""
32932 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
32933 "call with no optional arguments specified:"
32934 msgstr ""
32935
32936 #. type: verbatim
32937 #: ../src/guestfs.pod:1584
32938 #, no-wrap
32939 msgid ""
32940 " guestfs_add_drive_opts (g, filename, -1);\n"
32941 "\n"
32942 msgstr ""
32943
32944 #. type: textblock
32945 #: ../src/guestfs.pod:1586
32946 msgid "With a single optional argument:"
32947 msgstr ""
32948
32949 #. type: verbatim
32950 #: ../src/guestfs.pod:1588
32951 #, no-wrap
32952 msgid ""
32953 " guestfs_add_drive_opts (g, filename,\n"
32954 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
32955 "                         -1);\n"
32956 "\n"
32957 msgstr ""
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:1592
32961 msgid "With two:"
32962 msgstr ""
32963
32964 #. type: verbatim
32965 #: ../src/guestfs.pod:1594
32966 #, no-wrap
32967 msgid ""
32968 " guestfs_add_drive_opts (g, filename,\n"
32969 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
32970 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32971 "                         -1);\n"
32972 "\n"
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:1599
32977 msgid ""
32978 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
32979 "happen!"
32980 msgstr ""
32981
32982 #. type: =head2
32983 #: ../src/guestfs.pod:1602
32984 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:1604
32989 msgid ""
32990 "The second variant has the same name with the suffix C<_va>, which works the "
32991 "same way but takes a C<va_list>.  See the C manual for details.  For the "
32992 "example function, this is declared:"
32993 msgstr ""
32994
32995 #. type: verbatim
32996 #: ../src/guestfs.pod:1608
32997 #, no-wrap
32998 msgid ""
32999 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33000 "                                va_list args);\n"
33001 "\n"
33002 msgstr ""
33003
33004 #. type: =head2
33005 #: ../src/guestfs.pod:1611
33006 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33007 msgstr ""
33008
33009 #. type: textblock
33010 #: ../src/guestfs.pod:1613
33011 msgid ""
33012 "The third variant is useful where you need to construct these calls.  You "
33013 "pass in a structure where you fill in the optional fields.  The structure "
33014 "has a bitmask as the first element which you must set to indicate which "
33015 "fields you have filled in.  For our example function the structure and call "
33016 "are declared:"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs.pod:1619
33021 #, no-wrap
33022 msgid ""
33023 " struct guestfs_add_drive_opts_argv {\n"
33024 "   uint64_t bitmask;\n"
33025 "   int readonly;\n"
33026 "   const char *format;\n"
33027 "   /* ... */\n"
33028 " };\n"
33029 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33030 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33031 "\n"
33032 msgstr ""
33033
33034 #. type: textblock
33035 #: ../src/guestfs.pod:1628
33036 msgid "You could call it like this:"
33037 msgstr ""
33038
33039 #. type: verbatim
33040 #: ../src/guestfs.pod:1630
33041 #, no-wrap
33042 msgid ""
33043 " struct guestfs_add_drive_opts_argv optargs = {\n"
33044 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33045 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33046 "   .readonly = 1,\n"
33047 "   .format = \"qcow2\"\n"
33048 " };\n"
33049 " \n"
33050 msgstr ""
33051
33052 #. type: verbatim
33053 #: ../src/guestfs.pod:1637
33054 #, no-wrap
33055 msgid ""
33056 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33057 "\n"
33058 msgstr ""
33059
33060 #. type: textblock
33061 #: ../src/guestfs.pod:1645
33062 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33063 msgstr ""
33064
33065 #. type: textblock
33066 #: ../src/guestfs.pod:1650
33067 msgid "You do not need to fill in all fields of the structure."
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs.pod:1654
33072 msgid ""
33073 "There must be a one-to-one correspondence between fields of the structure "
33074 "that are filled in, and bits set in the bitmask."
33075 msgstr ""
33076
33077 #. type: =head2
33078 #: ../src/guestfs.pod:1659
33079 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33080 msgstr ""
33081
33082 #. type: textblock
33083 #: ../src/guestfs.pod:1661
33084 msgid ""
33085 "In other languages, optional arguments are expressed in the way that is "
33086 "natural for that language.  We refer you to the language-specific "
33087 "documentation for more details on that."
33088 msgstr ""
33089
33090 #. type: textblock
33091 #: ../src/guestfs.pod:1665
33092 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33093 msgstr ""
33094
33095 #. type: =head2
33096 #: ../src/guestfs.pod:1667
33097 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:1669
33102 msgid ""
33103 "B<Note:> This section documents the generic event mechanism introduced in "
33104 "libguestfs 1.10, which you should use in new code if possible.  The old "
33105 "functions C<guestfs_set_log_message_callback>, "
33106 "C<guestfs_set_subprocess_quit_callback>, "
33107 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33108 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33109 "page.  Because of the ABI guarantee, the old functions continue to work."
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs.pod:1678
33114 msgid ""
33115 "Handles generate events when certain things happen, such as log messages "
33116 "being generated, progress messages during long-running operations, or the "
33117 "handle being closed.  The API calls described below let you register a "
33118 "callback to be called when events happen.  You can register multiple "
33119 "callbacks (for the same, different or overlapping sets of events), and "
33120 "individually remove callbacks.  If callbacks are not removed, then they "
33121 "remain in force until the handle is closed."
33122 msgstr ""
33123
33124 #. type: textblock
33125 #: ../src/guestfs.pod:1686
33126 msgid ""
33127 "In the current implementation, events are only generated synchronously: that "
33128 "means that events (and hence callbacks) can only happen while you are in the "
33129 "middle of making another libguestfs call.  The callback is called in the "
33130 "same thread."
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs.pod:1691
33135 msgid ""
33136 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33137 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33138 msgstr ""
33139
33140 #. type: =head3
33141 #: ../src/guestfs.pod:1695
33142 msgid "CLASSES OF EVENTS"
33143 msgstr ""
33144
33145 #. type: =item
33146 #: ../src/guestfs.pod:1699
33147 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:1702
33152 msgid ""
33153 "The callback function will be called while the handle is being closed "
33154 "(synchronously from L</guestfs_close>)."
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs.pod:1705
33159 msgid ""
33160 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33161 "handles that are open when the program exits.  This means that this callback "
33162 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33163 "problems in higher-level languages (eg. if your HLL interpreter has already "
33164 "been cleaned up by the time this is called, and if your callback then jumps "
33165 "into some HLL function)."
33166 msgstr ""
33167
33168 #. type: textblock
33169 #: ../src/guestfs.pod:1712
33170 msgid ""
33171 "If no callback is registered: the handle is closed without any callback "
33172 "being invoked."
33173 msgstr ""
33174
33175 #. type: =item
33176 #: ../src/guestfs.pod:1715
33177 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33178 msgstr ""
33179
33180 #. type: textblock
33181 #: ../src/guestfs.pod:1718
33182 msgid ""
33183 "The callback function will be called when the child process quits, either "
33184 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33185 "corresponds to a transition from any state to the CONFIG state)."
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
33190 msgid "If no callback is registered: the event is ignored."
33191 msgstr ""
33192
33193 #. type: =item
33194 #: ../src/guestfs.pod:1724
33195 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
33196 msgstr ""
33197
33198 #. type: textblock
33199 #: ../src/guestfs.pod:1727
33200 msgid ""
33201 "The callback function will be called when the child process becomes ready "
33202 "first time after it has been launched.  (This corresponds to a transition "
33203 "from LAUNCHING to the READY state)."
33204 msgstr ""
33205
33206 #. type: =item
33207 #: ../src/guestfs.pod:1733
33208 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
33209 msgstr ""
33210
33211 #. type: textblock
33212 #: ../src/guestfs.pod:1736
33213 msgid ""
33214 "Some long-running operations can generate progress messages.  If this "
33215 "callback is registered, then it will be called each time a progress message "
33216 "is generated (usually two seconds after the operation started, and three "
33217 "times per second thereafter until it completes, although the frequency may "
33218 "change in future versions)."
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs.pod:1742
33223 msgid ""
33224 "The callback receives in the payload four unsigned 64 bit numbers which are "
33225 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
33226 msgstr ""
33227
33228 #. type: textblock
33229 #: ../src/guestfs.pod:1745
33230 msgid ""
33231 "The units of C<total> are not defined, although for some operations C<total> "
33232 "may relate in some way to the amount of data to be transferred (eg. in bytes "
33233 "or megabytes), and C<position> may be the portion which has been "
33234 "transferred."
33235 msgstr ""
33236
33237 #. type: textblock
33238 #: ../src/guestfs.pod:1750
33239 msgid "The only defined and stable parts of the API are:"
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs.pod:1756
33244 msgid ""
33245 "The callback can display to the user some type of progress bar or indicator "
33246 "which shows the ratio of C<position>:C<total>."
33247 msgstr ""
33248
33249 #. type: textblock
33250 #: ../src/guestfs.pod:1761
33251 msgid "0 E<lt>= C<position> E<lt>= C<total>"
33252 msgstr ""
33253
33254 #. type: textblock
33255 #: ../src/guestfs.pod:1765
33256 msgid ""
33257 "If any progress notification is sent during a call, then a final progress "
33258 "notification is always sent when C<position> = C<total> (I<unless> the call "
33259 "fails with an error)."
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs.pod:1769
33264 msgid ""
33265 "This is to simplify caller code, so callers can easily set the progress "
33266 "indicator to \"100%\" at the end of the operation, without requiring special "
33267 "code to detect this case."
33268 msgstr ""
33269
33270 #. type: textblock
33271 #: ../src/guestfs.pod:1775
33272 msgid ""
33273 "For some calls we are unable to estimate the progress of the call, but we "
33274 "can still generate progress messages to indicate activity.  This is known as "
33275 "\"pulse mode\", and is directly supported by certain progress bar "
33276 "implementations (eg. GtkProgressBar)."
33277 msgstr ""
33278
33279 #. type: textblock
33280 #: ../src/guestfs.pod:1780
33281 msgid ""
33282 "For these calls, zero or more progress messages are generated with "
33283 "C<position = 0> and C<total = 1>, followed by a final message with "
33284 "C<position = total = 1>."
33285 msgstr ""
33286
33287 #. type: textblock
33288 #: ../src/guestfs.pod:1784
33289 msgid ""
33290 "As noted above, if the call fails with an error then the final message may "
33291 "not be generated."
33292 msgstr ""
33293
33294 #. type: textblock
33295 #: ../src/guestfs.pod:1789
33296 msgid ""
33297 "The callback also receives the procedure number (C<proc_nr>) and serial "
33298 "number (C<serial>) of the call.  These are only useful for debugging "
33299 "protocol issues, and the callback can normally ignore them.  The callback "
33300 "may want to print these numbers in error messages or debugging messages."
33301 msgstr ""
33302
33303 #. type: textblock
33304 #: ../src/guestfs.pod:1795
33305 msgid "If no callback is registered: progress messages are discarded."
33306 msgstr ""
33307
33308 #. type: =item
33309 #: ../src/guestfs.pod:1797
33310 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs.pod:1800
33315 msgid ""
33316 "The callback function is called whenever a log message is generated by qemu, "
33317 "the appliance kernel, guestfsd (daemon), or utility programs."
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:1803
33322 msgid ""
33323 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
33324 "(L</guestfs_launch>) then additional debug messages are generated."
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
33329 msgid ""
33330 "If no callback is registered: the messages are discarded unless the verbose "
33331 "flag is set in which case they are sent to stderr.  You can override the "
33332 "printing of verbose messages to stderr by setting up a callback."
33333 msgstr ""
33334
33335 #. type: =item
33336 #: ../src/guestfs.pod:1811
33337 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
33338 msgstr ""
33339
33340 #. type: textblock
33341 #: ../src/guestfs.pod:1814
33342 msgid ""
33343 "The callback function is called whenever a log message is generated by the "
33344 "library part of libguestfs."
33345 msgstr ""
33346
33347 #. type: textblock
33348 #: ../src/guestfs.pod:1817
33349 msgid ""
33350 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
33351 "messages are generated."
33352 msgstr ""
33353
33354 #. type: =item
33355 #: ../src/guestfs.pod:1825
33356 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
33357 msgstr ""
33358
33359 #. type: textblock
33360 #: ../src/guestfs.pod:1828
33361 msgid ""
33362 "The callback function is called whenever a trace message is generated.  This "
33363 "only applies if the trace flag (L</guestfs_set_trace>) is set."
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../src/guestfs.pod:1831
33368 msgid ""
33369 "If no callback is registered: the messages are sent to stderr.  You can "
33370 "override the printing of trace messages to stderr by setting up a callback."
33371 msgstr ""
33372
33373 #. type: =head3
33374 #: ../src/guestfs.pod:1837
33375 msgid "guestfs_set_event_callback"
33376 msgstr ""
33377
33378 #. type: verbatim
33379 #: ../src/guestfs.pod:1839
33380 #, no-wrap
33381 msgid ""
33382 " int guestfs_set_event_callback (guestfs_h *g,\n"
33383 "                                 guestfs_event_callback cb,\n"
33384 "                                 uint64_t event_bitmask,\n"
33385 "                                 int flags,\n"
33386 "                                 void *opaque);\n"
33387 "\n"
33388 msgstr ""
33389
33390 #. type: textblock
33391 #: ../src/guestfs.pod:1845
33392 msgid ""
33393 "This function registers a callback (C<cb>) for all event classes in the "
33394 "C<event_bitmask>."
33395 msgstr ""
33396
33397 #. type: textblock
33398 #: ../src/guestfs.pod:1848
33399 msgid ""
33400 "For example, to register for all log message events, you could call this "
33401 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
33402 "To register a single callback for all possible classes of events, use "
33403 "C<GUESTFS_EVENT_ALL>."
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs.pod:1854
33408 msgid "C<flags> should always be passed as 0."
33409 msgstr ""
33410
33411 #. type: textblock
33412 #: ../src/guestfs.pod:1856
33413 msgid ""
33414 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
33415 "it for any purpose."
33416 msgstr ""
33417
33418 #. type: textblock
33419 #: ../src/guestfs.pod:1859
33420 msgid ""
33421 "The return value is the event handle (an integer) which you can use to "
33422 "delete the callback (see below)."
33423 msgstr ""
33424
33425 #. type: textblock
33426 #: ../src/guestfs.pod:1862
33427 msgid ""
33428 "If there is an error, this function returns C<-1>, and sets the error in the "
33429 "handle in the usual way (see L</guestfs_last_error> etc.)"
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs.pod:1865
33434 msgid ""
33435 "Callbacks remain in effect until they are deleted, or until the handle is "
33436 "closed."
33437 msgstr ""
33438
33439 #. type: textblock
33440 #: ../src/guestfs.pod:1868
33441 msgid ""
33442 "In the case where multiple callbacks are registered for a particular event "
33443 "class, all of the callbacks are called.  The order in which multiple "
33444 "callbacks are called is not defined."
33445 msgstr ""
33446
33447 #. type: =head3
33448 #: ../src/guestfs.pod:1872
33449 msgid "guestfs_delete_event_callback"
33450 msgstr ""
33451
33452 #. type: verbatim
33453 #: ../src/guestfs.pod:1874
33454 #, no-wrap
33455 msgid ""
33456 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
33457 "\n"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs.pod:1876
33462 msgid ""
33463 "Delete a callback that was previously registered.  C<event_handle> should be "
33464 "the integer that was returned by a previous call to "
33465 "C<guestfs_set_event_callback> on the same handle."
33466 msgstr ""
33467
33468 #. type: =head3
33469 #: ../src/guestfs.pod:1880
33470 msgid "guestfs_event_callback"
33471 msgstr ""
33472
33473 #. type: verbatim
33474 #: ../src/guestfs.pod:1882
33475 #, no-wrap
33476 msgid ""
33477 " typedef void (*guestfs_event_callback) (\n"
33478 "                  guestfs_h *g,\n"
33479 "                  void *opaque,\n"
33480 "                  uint64_t event,\n"
33481 "                  int event_handle,\n"
33482 "                  int flags,\n"
33483 "                  const char *buf, size_t buf_len,\n"
33484 "                  const uint64_t *array, size_t array_len);\n"
33485 "\n"
33486 msgstr ""
33487
33488 #. type: textblock
33489 #: ../src/guestfs.pod:1891
33490 msgid "This is the type of the event callback function that you have to provide."
33491 msgstr ""
33492
33493 #. type: textblock
33494 #: ../src/guestfs.pod:1894
33495 msgid ""
33496 "The basic parameters are: the handle (C<g>), the opaque user pointer "
33497 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
33498 "handle, and C<flags> which in the current API you should ignore."
33499 msgstr ""
33500
33501 #. type: textblock
33502 #: ../src/guestfs.pod:1898
33503 msgid ""
33504 "The remaining parameters contain the event payload (if any).  Each event may "
33505 "contain a payload, which usually relates to the event class, but for future "
33506 "proofing your code should be written to handle any payload for any event "
33507 "class."
33508 msgstr ""
33509
33510 #. type: textblock
33511 #: ../src/guestfs.pod:1903
33512 msgid ""
33513 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
33514 "there is no message buffer).  Note that this message buffer can contain "
33515 "arbitrary 8 bit data, including NUL bytes."
33516 msgstr ""
33517
33518 #. type: textblock
33519 #: ../src/guestfs.pod:1907
33520 msgid ""
33521 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
33522 "moment this is only used for progress messages."
33523 msgstr ""
33524
33525 #. type: =head3
33526 #: ../src/guestfs.pod:1910
33527 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:1912
33532 msgid ""
33533 "One motivation for the generic event API was to allow GUI programs to "
33534 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
33535 "unconditionally to C<stderr>."
33536 msgstr ""
33537
33538 #. type: textblock
33539 #: ../src/guestfs.pod:1916
33540 msgid ""
33541 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
33542 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
33543 "messages are not events; you must capture error messages separately)."
33544 msgstr ""
33545
33546 #. type: textblock
33547 #: ../src/guestfs.pod:1921
33548 msgid ""
33549 "Programs have to set up a callback to capture the classes of events of "
33550 "interest:"
33551 msgstr ""
33552
33553 #. type: verbatim
33554 #: ../src/guestfs.pod:1924
33555 #, no-wrap
33556 msgid ""
33557 " int eh =\n"
33558 "   guestfs_set_event_callback\n"
33559 "     (g, message_callback,\n"
33560 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
33561 "      GUESTFS_EVENT_TRACE,\n"
33562 "      0, NULL) == -1)\n"
33563 " if (eh == -1) {\n"
33564 "   // handle error in the usual way\n"
33565 " }\n"
33566 "\n"
33567 msgstr ""
33568
33569 #. type: textblock
33570 #: ../src/guestfs.pod:1934
33571 msgid ""
33572 "The callback can then direct messages to the appropriate place.  In this "
33573 "example, messages are directed to syslog:"
33574 msgstr ""
33575
33576 #. type: verbatim
33577 #: ../src/guestfs.pod:1937
33578 #, no-wrap
33579 msgid ""
33580 " static void\n"
33581 " message_callback (\n"
33582 "         guestfs_h *g,\n"
33583 "         void *opaque,\n"
33584 "         uint64_t event,\n"
33585 "         int event_handle,\n"
33586 "         int flags,\n"
33587 "         const char *buf, size_t buf_len,\n"
33588 "         const uint64_t *array, size_t array_len)\n"
33589 " {\n"
33590 "   const int priority = LOG_USER|LOG_INFO;\n"
33591 "   if (buf_len > 0)\n"
33592 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
33593 " }\n"
33594 "\n"
33595 msgstr ""
33596
33597 #. type: =head1
33598 #: ../src/guestfs.pod:1952
33599 msgid "CANCELLING LONG TRANSFERS"
33600 msgstr ""
33601
33602 #. type: textblock
33603 #: ../src/guestfs.pod:1954
33604 msgid ""
33605 "Some operations can be cancelled by the caller while they are in progress.  "
33606 "Currently only operations that involve uploading or downloading data can be "
33607 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
33608 "parameters in the generator)."
33609 msgstr ""
33610
33611 #. type: =head2
33612 #: ../src/guestfs.pod:1959
33613 msgid "guestfs_user_cancel"
33614 msgstr ""
33615
33616 #. type: verbatim
33617 #: ../src/guestfs.pod:1961
33618 #, no-wrap
33619 msgid ""
33620 " void guestfs_user_cancel (guestfs_h *g);\n"
33621 "\n"
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs.pod:1963
33626 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
33627 msgstr ""
33628
33629 #. type: textblock
33630 #: ../src/guestfs.pod:1966
33631 msgid ""
33632 "Unlike most other libguestfs calls, this function is signal safe and thread "
33633 "safe.  You can call it from a signal handler or from another thread, without "
33634 "needing to do any locking."
33635 msgstr ""
33636
33637 #. type: textblock
33638 #: ../src/guestfs.pod:1970
33639 msgid ""
33640 "The transfer that was in progress (if there is one) will stop shortly "
33641 "afterwards, and will return an error.  The errno (see "
33642 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
33643 "out if the operation was cancelled or failed because of another error."
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs.pod:1976
33648 msgid ""
33649 "No cleanup is performed: for example, if a file was being uploaded then "
33650 "after cancellation there may be a partially uploaded file.  It is the "
33651 "caller's responsibility to clean up if necessary."
33652 msgstr ""
33653
33654 #. type: textblock
33655 #: ../src/guestfs.pod:1980
33656 msgid "There are two common places that you might call C<guestfs_user_cancel>."
33657 msgstr ""
33658
33659 #. type: textblock
33660 #: ../src/guestfs.pod:1982
33661 msgid ""
33662 "In an interactive text-based program, you might call it from a C<SIGINT> "
33663 "signal handler so that pressing C<^C> cancels the current operation.  (You "
33664 "also need to call L</guestfs_set_pgroup> so that child processes don't "
33665 "receive the C<^C> signal)."
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:1987
33670 msgid ""
33671 "In a graphical program, when the main thread is displaying a progress bar "
33672 "with a cancel button, wire up the cancel button to call this function."
33673 msgstr ""
33674
33675 #. type: =head1
33676 #: ../src/guestfs.pod:1991
33677 msgid "PRIVATE DATA AREA"
33678 msgstr ""
33679
33680 #. type: textblock
33681 #: ../src/guestfs.pod:1993
33682 msgid ""
33683 "You can attach named pieces of private data to the libguestfs handle, fetch "
33684 "them by name, and walk over them, for the lifetime of the handle.  This is "
33685 "called the private data area and is only available from the C API."
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs.pod:1998
33690 msgid "To attach a named piece of data, use the following call:"
33691 msgstr ""
33692
33693 #. type: verbatim
33694 #: ../src/guestfs.pod:2000
33695 #, no-wrap
33696 msgid ""
33697 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
33698 "\n"
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:2002
33703 msgid ""
33704 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
33705 "pointer (which can be C<NULL>).  Any previous item with the same key is "
33706 "overwritten."
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs.pod:2006
33711 msgid ""
33712 "You can use any C<key> you want, but your key should I<not> start with an "
33713 "underscore character.  Keys beginning with an underscore character are "
33714 "reserved for internal libguestfs purposes (eg. for implementing language "
33715 "bindings).  It is recommended that you prefix the key with some unique "
33716 "string to avoid collisions with other users."
33717 msgstr ""
33718
33719 #. type: textblock
33720 #: ../src/guestfs.pod:2012
33721 msgid "To retrieve the pointer, use:"
33722 msgstr ""
33723
33724 #. type: verbatim
33725 #: ../src/guestfs.pod:2014
33726 #, no-wrap
33727 msgid ""
33728 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
33729 "\n"
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:2016
33734 msgid ""
33735 "This function returns C<NULL> if either no data is found associated with "
33736 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
33737 "C<NULL>."
33738 msgstr ""
33739
33740 #. type: textblock
33741 #: ../src/guestfs.pod:2020
33742 msgid ""
33743 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
33744 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
33745 "all.  In particular, libguestfs does I<not> try to free the data when the "
33746 "handle is closed.  If the data must be freed, then the caller must either "
33747 "free it before calling L</guestfs_close> or must set up a close callback to "
33748 "do it (see L</GUESTFS_EVENT_CLOSE>)."
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:2027
33753 msgid "To walk over all entries, use these two functions:"
33754 msgstr ""
33755
33756 #. type: verbatim
33757 #: ../src/guestfs.pod:2029
33758 #, no-wrap
33759 msgid ""
33760 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
33761 "\n"
33762 msgstr ""
33763
33764 #. type: verbatim
33765 #: ../src/guestfs.pod:2031
33766 #, no-wrap
33767 msgid ""
33768 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
33769 "\n"
33770 msgstr ""
33771
33772 #. type: textblock
33773 #: ../src/guestfs.pod:2033
33774 msgid ""
33775 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
33776 "not have any particular meaning -- keys are not returned in any defined "
33777 "order).  A pointer to the key is returned in C<*key_rtn> and the "
33778 "corresponding data pointer is returned from the function.  C<NULL> is "
33779 "returned if there are no keys stored in the handle."
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs.pod:2039
33784 msgid ""
33785 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
33786 "value of this function is also C<NULL> is there are no further entries to "
33787 "return."
33788 msgstr ""
33789
33790 #. type: textblock
33791 #: ../src/guestfs.pod:2043
33792 msgid "Notes about walking over entries:"
33793 msgstr ""
33794
33795 #. type: textblock
33796 #: ../src/guestfs.pod:2049
33797 msgid "You must not call C<guestfs_set_private> while walking over the entries."
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs.pod:2054
33802 msgid ""
33803 "The handle maintains an internal iterator which is reset when you call "
33804 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
33805 "call C<guestfs_set_private>."
33806 msgstr ""
33807
33808 #. type: textblock
33809 #: ../src/guestfs.pod:2060
33810 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
33811 msgstr ""
33812
33813 #. type: verbatim
33814 #: ../src/guestfs.pod:2062
33815 #, no-wrap
33816 msgid ""
33817 " guestfs_set_private (g, key, NULL);\n"
33818 "\n"
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../src/guestfs.pod:2064
33823 msgid "then that C<key> is not returned when walking."
33824 msgstr ""
33825
33826 #. type: textblock
33827 #: ../src/guestfs.pod:2068
33828 msgid ""
33829 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
33830 "C<guestfs_next_private> or C<guestfs_set_private>."
33831 msgstr ""
33832
33833 #. type: textblock
33834 #: ../src/guestfs.pod:2074
33835 msgid ""
33836 "The following example code shows how to print all keys and data pointers "
33837 "that are associated with the handle C<g>:"
33838 msgstr ""
33839
33840 #. type: verbatim
33841 #: ../src/guestfs.pod:2077
33842 #, no-wrap
33843 msgid ""
33844 " const char *key;\n"
33845 " void *data = guestfs_first_private (g, &key);\n"
33846 " while (data != NULL)\n"
33847 "   {\n"
33848 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
33849 "     data = guestfs_next_private (g, &key);\n"
33850 "   }\n"
33851 "\n"
33852 msgstr ""
33853
33854 #. type: textblock
33855 #: ../src/guestfs.pod:2085
33856 msgid ""
33857 "More commonly you are only interested in keys that begin with an "
33858 "application-specific prefix C<foo_>.  Modify the loop like so:"
33859 msgstr ""
33860
33861 #. type: verbatim
33862 #: ../src/guestfs.pod:2088
33863 #, no-wrap
33864 msgid ""
33865 " const char *key;\n"
33866 " void *data = guestfs_first_private (g, &key);\n"
33867 " while (data != NULL)\n"
33868 "   {\n"
33869 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33870 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
33871 "     data = guestfs_next_private (g, &key);\n"
33872 "   }\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: textblock
33877 #: ../src/guestfs.pod:2097
33878 msgid ""
33879 "If you need to modify keys while walking, then you have to jump back to the "
33880 "beginning of the loop.  For example, to delete all keys prefixed with "
33881 "C<foo_>:"
33882 msgstr ""
33883
33884 #. type: verbatim
33885 #: ../src/guestfs.pod:2101
33886 #, no-wrap
33887 msgid ""
33888 "  const char *key;\n"
33889 "  void *data;\n"
33890 " again:\n"
33891 "  data = guestfs_first_private (g, &key);\n"
33892 "  while (data != NULL)\n"
33893 "    {\n"
33894 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33895 "        {\n"
33896 "          guestfs_set_private (g, key, NULL);\n"
33897 "          /* note that 'key' pointer is now invalid, and so is\n"
33898 "             the internal iterator */\n"
33899 "          goto again;\n"
33900 "        }\n"
33901 "      data = guestfs_next_private (g, &key);\n"
33902 "    }\n"
33903 "\n"
33904 msgstr ""
33905
33906 #. type: textblock
33907 #: ../src/guestfs.pod:2117
33908 msgid ""
33909 "Note that the above loop is guaranteed to terminate because the keys are "
33910 "being deleted, but other manipulations of keys within the loop might not "
33911 "terminate unless you also maintain an indication of which keys have been "
33912 "visited."
33913 msgstr ""
33914
33915 #. type: =end
33916 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
33917 msgid "html"
33918 msgstr ""
33919
33920 #. type: textblock
33921 #: ../src/guestfs.pod:2124
33922 msgid ""
33923 "<!-- old anchor for the next section --> <a "
33924 "name=\"state_machine_and_low_level_event_api\"/>"
33925 msgstr ""
33926
33927 #. type: =head1
33928 #: ../src/guestfs.pod:2129
33929 msgid "ARCHITECTURE"
33930 msgstr ""
33931
33932 #. type: textblock
33933 #: ../src/guestfs.pod:2131
33934 msgid ""
33935 "Internally, libguestfs is implemented by running an appliance (a special "
33936 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
33937 "process of the main program."
33938 msgstr ""
33939
33940 #. type: verbatim
33941 #: ../src/guestfs.pod:2135
33942 #, no-wrap
33943 msgid ""
33944 "  ___________________\n"
33945 " /                   \\\n"
33946 " | main program      |\n"
33947 " |                   |\n"
33948 " |                   |           child process / appliance\n"
33949 " |                   |           __________________________\n"
33950 " |                   |          / qemu                     \\\n"
33951 " +-------------------+   RPC    |      +-----------------+ |\n"
33952 " | libguestfs     <--------------------> guestfsd        | |\n"
33953 " |                   |          |      +-----------------+ |\n"
33954 " \\___________________/          |      | Linux kernel    | |\n"
33955 "                                |      +--^--------------+ |\n"
33956 "                                \\_________|________________/\n"
33957 "                                          |\n"
33958 "                                   _______v______\n"
33959 "                                  /              \\\n"
33960 "                                  | Device or    |\n"
33961 "                                  | disk image   |\n"
33962 "                                  \\______________/\n"
33963 "\n"
33964 msgstr ""
33965
33966 #. type: textblock
33967 #: ../src/guestfs.pod:2155
33968 msgid ""
33969 "The library, linked to the main program, creates the child process and hence "
33970 "the appliance in the L</guestfs_launch> function."
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:2158
33975 msgid ""
33976 "Inside the appliance is a Linux kernel and a complete stack of userspace "
33977 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
33978 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
33979 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
33980 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
33981 "attached to the qemu process which translates device access by the "
33982 "appliance's Linux kernel into accesses to the image."
33983 msgstr ""
33984
33985 #. type: textblock
33986 #: ../src/guestfs.pod:2167
33987 msgid ""
33988 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
33989 "Although the disk image you are attached to might also be used by some "
33990 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
33991 "care if both libguestfs's qemu process and your virtual machine are trying "
33992 "to update the disk image at the same time, since these usually results in "
33993 "massive disk corruption)."
33994 msgstr ""
33995
33996 #. type: =head1
33997 #: ../src/guestfs.pod:2174
33998 msgid "STATE MACHINE"
33999 msgstr ""
34000
34001 #. type: textblock
34002 #: ../src/guestfs.pod:2176
34003 msgid "libguestfs uses a state machine to model the child process:"
34004 msgstr ""
34005
34006 #. type: verbatim
34007 #: ../src/guestfs.pod:2178
34008 #, no-wrap
34009 msgid ""
34010 "                         |\n"
34011 "                    guestfs_create\n"
34012 "                         |\n"
34013 "                         |\n"
34014 "                     ____V_____\n"
34015 "                    /          \\\n"
34016 "                    |  CONFIG  |\n"
34017 "                    \\__________/\n"
34018 "                     ^ ^   ^  \\\n"
34019 "                    /  |    \\  \\ guestfs_launch\n"
34020 "                   /   |    _\\__V______\n"
34021 "                  /    |   /           \\\n"
34022 "                 /     |   | LAUNCHING |\n"
34023 "                /      |   \\___________/\n"
34024 "               /       |       /\n"
34025 "              /        |  guestfs_launch\n"
34026 "             /         |     /\n"
34027 "    ______  /        __|____V\n"
34028 "   /      \\ ------> /        \\\n"
34029 "   | BUSY |         | READY  |\n"
34030 "   \\______/ <------ \\________/\n"
34031 "\n"
34032 msgstr ""
34033
34034 #. type: textblock
34035 #: ../src/guestfs.pod:2200
34036 msgid ""
34037 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34038 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34039 "(3) alternating between READY and BUSY as commands are issued to, and "
34040 "carried out by, the child process."
34041 msgstr ""
34042
34043 #. type: textblock
34044 #: ../src/guestfs.pod:2205
34045 msgid ""
34046 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34047 "asynchronously at any time (eg. due to some internal error), and that causes "
34048 "the state to transition back to CONFIG."
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:2209
34053 msgid ""
34054 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34055 "issued when in the CONFIG state."
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs.pod:2212
34060 msgid ""
34061 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34062 "L</guestfs_launch> blocks until the child process is READY to accept "
34063 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34064 "moves the state from CONFIG to LAUNCHING while it is running."
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:2218
34069 msgid ""
34070 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34071 "state.  These API calls block waiting for the command to be carried out "
34072 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34073 "non-blocking versions, and no way to issue more than one command per handle "
34074 "at the same time."
34075 msgstr ""
34076
34077 #. type: textblock
34078 #: ../src/guestfs.pod:2224
34079 msgid ""
34080 "Finally, the child process sends asynchronous messages back to the main "
34081 "program, such as kernel log messages.  You can register a callback to "
34082 "receive these messages."
34083 msgstr ""
34084
34085 #. type: =head1
34086 #: ../src/guestfs.pod:2228
34087 msgid "INTERNALS"
34088 msgstr ""
34089
34090 #. type: =head2
34091 #: ../src/guestfs.pod:2230
34092 msgid "COMMUNICATION PROTOCOL"
34093 msgstr ""
34094
34095 #. type: textblock
34096 #: ../src/guestfs.pod:2232
34097 msgid ""
34098 "Don't rely on using this protocol directly.  This section documents how it "
34099 "currently works, but it may change at any time."
34100 msgstr ""
34101
34102 #. type: textblock
34103 #: ../src/guestfs.pod:2235
34104 msgid ""
34105 "The protocol used to talk between the library and the daemon running inside "
34106 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34107 "1014, RFC 1832, RFC 4506)."
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:2239
34112 msgid ""
34113 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34114 "this file is automatically generated)."
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs.pod:2242
34119 msgid ""
34120 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34121 "and C<FileOut> parameters, which are handled with very simple request/reply "
34122 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34123 "parameters, which use the same request and reply messages, but they may also "
34124 "be followed by files sent using a chunked encoding."
34125 msgstr ""
34126
34127 #. type: =head3
34128 #: ../src/guestfs.pod:2249
34129 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:2251
34134 msgid "For ordinary functions, the request message is:"
34135 msgstr ""
34136
34137 #. type: verbatim
34138 #: ../src/guestfs.pod:2253
34139 #, no-wrap
34140 msgid ""
34141 " total length (header + arguments,\n"
34142 "      but not including the length word itself)\n"
34143 " struct guestfs_message_header (encoded as XDR)\n"
34144 " struct guestfs_<foo>_args (encoded as XDR)\n"
34145 "\n"
34146 msgstr ""
34147
34148 #. type: textblock
34149 #: ../src/guestfs.pod:2258
34150 msgid ""
34151 "The total length field allows the daemon to allocate a fixed size buffer "
34152 "into which it slurps the rest of the message.  As a result, the total length "
34153 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34154 "effective size of any request is limited to somewhere under this size."
34155 msgstr ""
34156
34157 #. type: textblock
34158 #: ../src/guestfs.pod:2264
34159 msgid ""
34160 "Note also that many functions don't take any arguments, in which case the "
34161 "C<guestfs_I<foo>_args> is completely omitted."
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:2267
34166 msgid ""
34167 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34168 "receiver knows what type of args structure to expect, or none at all."
34169 msgstr ""
34170
34171 #. type: textblock
34172 #: ../src/guestfs.pod:2271
34173 msgid ""
34174 "For functions that take optional arguments, the optional arguments are "
34175 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34176 "arguments.  A bitmask in the header indicates which optional arguments are "
34177 "meaningful.  The bitmask is also checked to see if it contains bits set "
34178 "which the daemon does not know about (eg. if more optional arguments were "
34179 "added in a later version of the library), and this causes the call to be "
34180 "rejected."
34181 msgstr ""
34182
34183 #. type: textblock
34184 #: ../src/guestfs.pod:2279
34185 msgid "The reply message for ordinary functions is:"
34186 msgstr ""
34187
34188 #. type: verbatim
34189 #: ../src/guestfs.pod:2281
34190 #, no-wrap
34191 msgid ""
34192 " total length (header + ret,\n"
34193 "      but not including the length word itself)\n"
34194 " struct guestfs_message_header (encoded as XDR)\n"
34195 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34196 "\n"
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:2286
34201 msgid ""
34202 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
34203 "functions that return no formal return values."
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs.pod:2289
34208 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
34209 msgstr ""
34210
34211 #. type: textblock
34212 #: ../src/guestfs.pod:2292
34213 msgid ""
34214 "In the case of an error, a flag is set in the header, and the reply message "
34215 "is slightly changed:"
34216 msgstr ""
34217
34218 #. type: verbatim
34219 #: ../src/guestfs.pod:2295
34220 #, no-wrap
34221 msgid ""
34222 " total length (header + error,\n"
34223 "      but not including the length word itself)\n"
34224 " struct guestfs_message_header (encoded as XDR)\n"
34225 " struct guestfs_message_error (encoded as XDR)\n"
34226 "\n"
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs.pod:2300
34231 msgid ""
34232 "The C<guestfs_message_error> structure contains the error message as a "
34233 "string."
34234 msgstr ""
34235
34236 #. type: =head3
34237 #: ../src/guestfs.pod:2303
34238 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs.pod:2305
34243 msgid ""
34244 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
34245 "The normal request message is sent (see above).  However this is followed by "
34246 "a sequence of file chunks."
34247 msgstr ""
34248
34249 #. type: verbatim
34250 #: ../src/guestfs.pod:2309
34251 #, no-wrap
34252 msgid ""
34253 " total length (header + arguments,\n"
34254 "      but not including the length word itself,\n"
34255 "      and not including the chunks)\n"
34256 " struct guestfs_message_header (encoded as XDR)\n"
34257 " struct guestfs_<foo>_args (encoded as XDR)\n"
34258 " sequence of chunks for FileIn param #0\n"
34259 " sequence of chunks for FileIn param #1 etc.\n"
34260 "\n"
34261 msgstr ""
34262
34263 #. type: textblock
34264 #: ../src/guestfs.pod:2317
34265 msgid "The \"sequence of chunks\" is:"
34266 msgstr ""
34267
34268 #. type: verbatim
34269 #: ../src/guestfs.pod:2319
34270 #, no-wrap
34271 msgid ""
34272 " length of chunk (not including length word itself)\n"
34273 " struct guestfs_chunk (encoded as XDR)\n"
34274 " length of chunk\n"
34275 " struct guestfs_chunk (encoded as XDR)\n"
34276 "   ...\n"
34277 " length of chunk\n"
34278 " struct guestfs_chunk (with data.data_len == 0)\n"
34279 "\n"
34280 msgstr ""
34281
34282 #. type: textblock
34283 #: ../src/guestfs.pod:2327
34284 msgid ""
34285 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
34286 "is set in the final chunk to indicate either successful completion or early "
34287 "cancellation."
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:2331
34292 msgid ""
34293 "At time of writing there are no functions that have more than one FileIn "
34294 "parameter.  However this is (theoretically) supported, by sending the "
34295 "sequence of chunks for each FileIn parameter one after another (from left to "
34296 "right)."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:2336
34301 msgid ""
34302 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
34303 "transfer.  The library does this by sending a chunk with a special flag set "
34304 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
34305 "RPC, does I<not> send any reply, and goes back to reading the next request."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:2342
34310 msgid ""
34311 "The daemon may also cancel.  It does this by writing a special word "
34312 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
34313 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
34314 "cancel chunk).  The special word is chosen so that even if cancellation "
34315 "happens right at the end of the transfer (after the library has finished "
34316 "writing and has started listening for the reply), the \"spurious\" cancel "
34317 "flag will not be confused with the reply message."
34318 msgstr ""
34319
34320 #. type: textblock
34321 #: ../src/guestfs.pod:2351
34322 msgid ""
34323 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
34324 "limit), and also files where the size is not known in advance (eg. from "
34325 "pipes or sockets).  However the chunks are rather small "
34326 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
34327 "to keep much in memory."
34328 msgstr ""
34329
34330 #. type: =head3
34331 #: ../src/guestfs.pod:2357
34332 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
34333 msgstr ""
34334
34335 #. type: textblock
34336 #: ../src/guestfs.pod:2359
34337 msgid ""
34338 "The protocol for FileOut parameters is exactly the same as for FileIn "
34339 "parameters, but with the roles of daemon and library reversed."
34340 msgstr ""
34341
34342 #. type: verbatim
34343 #: ../src/guestfs.pod:2362
34344 #, no-wrap
34345 msgid ""
34346 " total length (header + ret,\n"
34347 "      but not including the length word itself,\n"
34348 "      and not including the chunks)\n"
34349 " struct guestfs_message_header (encoded as XDR)\n"
34350 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34351 " sequence of chunks for FileOut param #0\n"
34352 " sequence of chunks for FileOut param #1 etc.\n"
34353 "\n"
34354 msgstr ""
34355
34356 #. type: =head3
34357 #: ../src/guestfs.pod:2370
34358 msgid "INITIAL MESSAGE"
34359 msgstr ""
34360
34361 #. type: textblock
34362 #: ../src/guestfs.pod:2372
34363 msgid ""
34364 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
34365 "which indicates that the guest and daemon is alive.  This is what "
34366 "L</guestfs_launch> waits for."
34367 msgstr ""
34368
34369 #. type: =head3
34370 #: ../src/guestfs.pod:2376
34371 msgid "PROGRESS NOTIFICATION MESSAGES"
34372 msgstr ""
34373
34374 #. type: textblock
34375 #: ../src/guestfs.pod:2378
34376 msgid ""
34377 "The daemon may send progress notification messages at any time.  These are "
34378 "distinguished by the normal length word being replaced by "
34379 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
34380 msgstr ""
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:2382
34384 msgid ""
34385 "The library turns them into progress callbacks (see "
34386 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
34387 "them if not."
34388 msgstr ""
34389
34390 #. type: textblock
34391 #: ../src/guestfs.pod:2386
34392 msgid ""
34393 "The daemon self-limits the frequency of progress messages it sends (see "
34394 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
34395 "messages."
34396 msgstr ""
34397
34398 #. type: =head1
34399 #: ../src/guestfs.pod:2390
34400 msgid "LIBGUESTFS VERSION NUMBERS"
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs.pod:2392
34405 msgid ""
34406 "Since April 2010, libguestfs has started to make separate development and "
34407 "stable releases, along with corresponding branches in our git repository.  "
34408 "These separate releases can be identified by version number:"
34409 msgstr ""
34410
34411 #. type: verbatim
34412 #: ../src/guestfs.pod:2397
34413 #, no-wrap
34414 msgid ""
34415 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
34416 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
34417 "       |\n"
34418 "       v\n"
34419 " 1  .  3  .  5\n"
34420 " ^           ^\n"
34421 " |           |\n"
34422 " |           `-------- sub-version\n"
34423 " |\n"
34424 " `------ always '1' because we don't change the ABI\n"
34425 "\n"
34426 msgstr ""
34427
34428 #. type: textblock
34429 #: ../src/guestfs.pod:2408
34430 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:2410
34435 msgid ""
34436 "As time passes we cherry pick fixes from the development branch and backport "
34437 "those into the stable branch, the effect being that the stable branch should "
34438 "get more stable and less buggy over time.  So the stable releases are ideal "
34439 "for people who don't need new features but would just like the software to "
34440 "work."
34441 msgstr ""
34442
34443 #. type: textblock
34444 #: ../src/guestfs.pod:2416
34445 msgid "Our criteria for backporting changes are:"
34446 msgstr ""
34447
34448 #. type: textblock
34449 #: ../src/guestfs.pod:2422
34450 msgid ""
34451 "Documentation changes which don't affect any code are backported unless the "
34452 "documentation refers to a future feature which is not in stable."
34453 msgstr ""
34454
34455 #. type: textblock
34456 #: ../src/guestfs.pod:2428
34457 msgid ""
34458 "Bug fixes which are not controversial, fix obvious problems, and have been "
34459 "well tested are backported."
34460 msgstr ""
34461
34462 #. type: textblock
34463 #: ../src/guestfs.pod:2433
34464 msgid ""
34465 "Simple rearrangements of code which shouldn't affect how it works get "
34466 "backported.  This is so that the code in the two branches doesn't get too "
34467 "far out of step, allowing us to backport future fixes more easily."
34468 msgstr ""
34469
34470 #. type: textblock
34471 #: ../src/guestfs.pod:2439
34472 msgid ""
34473 "We I<don't> backport new features, new APIs, new tools etc, except in one "
34474 "exceptional case: the new feature is required in order to implement an "
34475 "important bug fix."
34476 msgstr ""
34477
34478 #. type: textblock
34479 #: ../src/guestfs.pod:2445
34480 msgid ""
34481 "A new stable branch starts when we think the new features in development are "
34482 "substantial and compelling enough over the current stable branch to warrant "
34483 "it.  When that happens we create new stable and development versions 1.N.0 "
34484 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
34485 "stable at this point, but by backporting fixes from development, that branch "
34486 "will stabilize over time."
34487 msgstr ""
34488
34489 #. type: =head1
34490 #: ../src/guestfs.pod:2453
34491 msgid "EXTENDING LIBGUESTFS"
34492 msgstr ""
34493
34494 #. type: =head2
34495 #: ../src/guestfs.pod:2455
34496 msgid "ADDING A NEW API ACTION"
34497 msgstr ""
34498
34499 #. type: textblock
34500 #: ../src/guestfs.pod:2457
34501 msgid ""
34502 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
34503 "documentation) are generated, and this makes it easy to extend the "
34504 "libguestfs API."
34505 msgstr ""
34506
34507 #. type: textblock
34508 #: ../src/guestfs.pod:2461
34509 msgid "To add a new API action there are two changes:"
34510 msgstr ""
34511
34512 #. type: textblock
34513 #: ../src/guestfs.pod:2467
34514 msgid ""
34515 "You need to add a description of the call (name, parameters, return type, "
34516 "tests, documentation) to C<generator/generator_actions.ml>."
34517 msgstr ""
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:2470
34521 msgid ""
34522 "There are two sorts of API action, depending on whether the call goes "
34523 "through to the daemon in the appliance, or is serviced entirely by the "
34524 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
34525 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
34526 "an example of the latter, since a trace flag is maintained in the handle and "
34527 "all tracing is done on the library side."
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:2478
34532 msgid ""
34533 "Most new actions are of the first type, and get added to the "
34534 "C<daemon_functions> list.  Each function has a unique procedure number used "
34535 "in the RPC protocol which is assigned to that action when we publish "
34536 "libguestfs and cannot be reused.  Take the latest procedure number and "
34537 "increment it."
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs.pod:2484
34542 msgid ""
34543 "For library-only actions of the second type, add to the "
34544 "C<non_daemon_functions> list.  Since these functions are serviced by the "
34545 "library and do not travel over the RPC mechanism to the daemon, these "
34546 "functions do not need a procedure number, and so the procedure number is set "
34547 "to C<-1>."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:2492
34552 msgid "Implement the action (in C):"
34553 msgstr ""
34554
34555 #. type: textblock
34556 #: ../src/guestfs.pod:2494
34557 msgid ""
34558 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
34559 "C<daemon/> directory."
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:2497
34564 msgid ""
34565 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
34566 "(note: double underscore) in the C<src/> directory."
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:2500
34571 msgid "In either case, use another function as an example of what to do."
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:2504
34576 msgid "After making these changes, use C<make> to compile."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:2506
34581 msgid ""
34582 "Note that you don't need to implement the RPC, language bindings, manual "
34583 "pages or anything else.  It's all automatically generated from the OCaml "
34584 "description."
34585 msgstr ""
34586
34587 #. type: =head2
34588 #: ../src/guestfs.pod:2510
34589 msgid "ADDING TESTS FOR AN API ACTION"
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:2512
34594 msgid ""
34595 "You can supply zero or as many tests as you want per API call.  The tests "
34596 "can either be added as part of the API description "
34597 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
34598 "drop a script into C<regressions/>.  Note that adding a script to "
34599 "C<regressions/> is slower, so if possible use the first method."
34600 msgstr ""
34601
34602 #. type: textblock
34603 #: ../src/guestfs.pod:2518
34604 msgid ""
34605 "The following describes the test environment used when you add an API test "
34606 "in C<generator_actions.ml>."
34607 msgstr ""
34608
34609 #. type: textblock
34610 #: ../src/guestfs.pod:2521
34611 msgid "The test environment has 4 block devices:"
34612 msgstr ""
34613
34614 #. type: =item
34615 #: ../src/guestfs.pod:2525
34616 msgid "C</dev/sda> 500MB"
34617 msgstr ""
34618
34619 #. type: textblock
34620 #: ../src/guestfs.pod:2527
34621 msgid "General block device for testing."
34622 msgstr ""
34623
34624 #. type: =item
34625 #: ../src/guestfs.pod:2529
34626 msgid "C</dev/sdb> 50MB"
34627 msgstr ""
34628
34629 #. type: textblock
34630 #: ../src/guestfs.pod:2531
34631 msgid ""
34632 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
34633 "operations."
34634 msgstr ""
34635
34636 #. type: =item
34637 #: ../src/guestfs.pod:2534
34638 msgid "C</dev/sdc> 10MB"
34639 msgstr ""
34640
34641 #. type: textblock
34642 #: ../src/guestfs.pod:2536
34643 msgid "Used in a few tests where two block devices are needed."
34644 msgstr ""
34645
34646 #. type: =item
34647 #: ../src/guestfs.pod:2538
34648 msgid "C</dev/sdd>"
34649 msgstr ""
34650
34651 #. type: textblock
34652 #: ../src/guestfs.pod:2540
34653 msgid "ISO with fixed content (see C<images/test.iso>)."
34654 msgstr ""
34655
34656 #. type: textblock
34657 #: ../src/guestfs.pod:2544
34658 msgid ""
34659 "To be able to run the tests in a reasonable amount of time, the libguestfs "
34660 "appliance and block devices are reused between tests.  So don't try testing "
34661 "L</guestfs_kill_subprocess> :-x"
34662 msgstr ""
34663
34664 #. type: textblock
34665 #: ../src/guestfs.pod:2548
34666 msgid ""
34667 "Each test starts with an initial scenario, selected using one of the "
34668 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
34669 "initialize the disks mentioned above in a particular way as documented in "
34670 "C<generator_types.ml>.  You should not assume anything about the previous "
34671 "contents of other disks that are not initialized."
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:2554
34676 msgid ""
34677 "You can add a prerequisite clause to any individual test.  This is a "
34678 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
34679 "if testing a command which might not work on all variations of libguestfs "
34680 "builds.  A test that has prerequisite of C<Always> means to run "
34681 "unconditionally."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:2560
34686 msgid ""
34687 "In addition, packagers can skip individual tests by setting environment "
34688 "variables before running C<make check>."
34689 msgstr ""
34690
34691 #. type: verbatim
34692 #: ../src/guestfs.pod:2563
34693 #, no-wrap
34694 msgid ""
34695 " SKIP_TEST_<CMD>_<NUM>=1\n"
34696 "\n"
34697 msgstr ""
34698
34699 #. type: textblock
34700 #: ../src/guestfs.pod:2565
34701 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:2567
34706 msgid "or:"
34707 msgstr ""
34708
34709 #. type: verbatim
34710 #: ../src/guestfs.pod:2569
34711 #, no-wrap
34712 msgid ""
34713 " SKIP_TEST_<CMD>=1\n"
34714 "\n"
34715 msgstr ""
34716
34717 #. type: textblock
34718 #: ../src/guestfs.pod:2571
34719 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
34720 msgstr ""
34721
34722 #. type: textblock
34723 #: ../src/guestfs.pod:2573
34724 msgid "Packagers can run only certain tests by setting for example:"
34725 msgstr ""
34726
34727 #. type: verbatim
34728 #: ../src/guestfs.pod:2575
34729 #, no-wrap
34730 msgid ""
34731 " TEST_ONLY=\"vfs_type zerofree\"\n"
34732 "\n"
34733 msgstr ""
34734
34735 #. type: textblock
34736 #: ../src/guestfs.pod:2577
34737 msgid ""
34738 "See C<capitests/tests.c> for more details of how these environment variables "
34739 "work."
34740 msgstr ""
34741
34742 #. type: =head2
34743 #: ../src/guestfs.pod:2580
34744 msgid "DEBUGGING NEW API ACTIONS"
34745 msgstr ""
34746
34747 #. type: textblock
34748 #: ../src/guestfs.pod:2582
34749 msgid "Test new actions work before submitting them."
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:2584
34754 msgid "You can use guestfish to try out new commands."
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:2586
34759 msgid ""
34760 "Debugging the daemon is a problem because it runs inside a minimal "
34761 "environment.  However you can fprintf messages in the daemon to stderr, and "
34762 "they will show up if you use C<guestfish -v>."
34763 msgstr ""
34764
34765 #. type: =head2
34766 #: ../src/guestfs.pod:2590
34767 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs.pod:2592
34772 msgid ""
34773 "Our C source code generally adheres to some basic code-formatting "
34774 "conventions.  The existing code base is not totally consistent on this "
34775 "front, but we do prefer that contributed code be formatted similarly.  In "
34776 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
34777 "indentation level, and other than that, follow the K&R style."
34778 msgstr ""
34779
34780 #. type: textblock
34781 #: ../src/guestfs.pod:2598
34782 msgid ""
34783 "If you use Emacs, add the following to one of one of your start-up files "
34784 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
34785 msgstr ""
34786
34787 #. type: verbatim
34788 #: ../src/guestfs.pod:2601
34789 #, no-wrap
34790 msgid ""
34791 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
34792 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
34793 " (add-hook 'find-file-hook\n"
34794 "     '(lambda () (if (and buffer-file-name\n"
34795 "                          (string-match \"/libguestfs\\\\>\"\n"
34796 "                              (buffer-file-name))\n"
34797 "                          (not (string-equal mode-name \"Change Log\"))\n"
34798 "                          (not (string-equal mode-name \"Makefile\")))\n"
34799 "                     (setq indent-tabs-mode nil))))\n"
34800 " \n"
34801 msgstr ""
34802
34803 #. type: verbatim
34804 #: ../src/guestfs.pod:2611
34805 #, no-wrap
34806 msgid ""
34807 " ;;; When editing C sources in libguestfs, use this style.\n"
34808 " (defun libguestfs-c-mode ()\n"
34809 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
34810 "   (interactive)\n"
34811 "   (c-set-style \"K&R\")\n"
34812 "   (setq c-indent-level 2)\n"
34813 "   (setq c-basic-offset 2))\n"
34814 " (add-hook 'c-mode-hook\n"
34815 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
34816 "                               (buffer-file-name))\n"
34817 "                           (libguestfs-c-mode))))\n"
34818 "\n"
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:2623
34823 msgid "Enable warnings when compiling (and fix any problems this finds):"
34824 msgstr ""
34825
34826 #. type: verbatim
34827 #: ../src/guestfs.pod:2626
34828 #, no-wrap
34829 msgid ""
34830 " ./configure --enable-gcc-warnings\n"
34831 "\n"
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:2628
34836 msgid "Useful targets are:"
34837 msgstr ""
34838
34839 #. type: verbatim
34840 #: ../src/guestfs.pod:2630
34841 #, no-wrap
34842 msgid ""
34843 " make syntax-check  # checks the syntax of the C code\n"
34844 " make check         # runs the test suite\n"
34845 "\n"
34846 msgstr ""
34847
34848 #. type: =head2
34849 #: ../src/guestfs.pod:2633
34850 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:2635
34855 msgid ""
34856 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
34857 "which are used to do shell quoting."
34858 msgstr ""
34859
34860 #. type: =item
34861 #: ../src/guestfs.pod:2640
34862 msgid "%Q"
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:2642
34867 msgid ""
34868 "Simple shell quoted string.  Any spaces or other shell characters are "
34869 "escaped for you."
34870 msgstr ""
34871
34872 #. type: =item
34873 #: ../src/guestfs.pod:2645
34874 msgid "%R"
34875 msgstr ""
34876
34877 #. type: textblock
34878 #: ../src/guestfs.pod:2647
34879 msgid ""
34880 "Same as C<%Q> except the string is treated as a path which is prefixed by "
34881 "the sysroot."
34882 msgstr ""
34883
34884 #. type: verbatim
34885 #: ../src/guestfs.pod:2654
34886 #, no-wrap
34887 msgid ""
34888 " asprintf (&cmd, \"cat %R\", path);\n"
34889 "\n"
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:2656
34894 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:2658
34899 msgid ""
34900 "I<Note:> Do I<not> use these when you are passing parameters to the "
34901 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
34902 "because they are not passed via the shell (instead, straight to exec).  You "
34903 "probably want to use the C<sysroot_path()> function however."
34904 msgstr ""
34905
34906 #. type: =head2
34907 #: ../src/guestfs.pod:2664
34908 msgid "SUBMITTING YOUR NEW API ACTIONS"
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:2666
34913 msgid ""
34914 "Submit patches to the mailing list: "
34915 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
34916 "L<rjones@redhat.com>."
34917 msgstr ""
34918
34919 #. type: =head2
34920 #: ../src/guestfs.pod:2670
34921 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:2672
34926 msgid "We support i18n (gettext anyhow) in the library."
34927 msgstr ""
34928
34929 #. type: textblock
34930 #: ../src/guestfs.pod:2674
34931 msgid ""
34932 "However many messages come from the daemon, and we don't translate those at "
34933 "the moment.  One reason is that the appliance generally has all locale files "
34934 "removed from it, because they take up a lot of space.  So we'd have to readd "
34935 "some of those, as well as copying our PO files into the appliance."
34936 msgstr ""
34937
34938 #. type: textblock
34939 #: ../src/guestfs.pod:2680
34940 msgid ""
34941 "Debugging messages are never translated, since they are intended for the "
34942 "programmers."
34943 msgstr ""
34944
34945 #. type: =head2
34946 #: ../src/guestfs.pod:2683
34947 msgid "SOURCE CODE SUBDIRECTORIES"
34948 msgstr ""
34949
34950 #. type: textblock
34951 #: ../src/guestfs.pod:2689
34952 msgid "The libguestfs appliance, build scripts and so on."
34953 msgstr ""
34954
34955 #. type: =item
34956 #: ../src/guestfs.pod:2691
34957 msgid "C<capitests>"
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:2693
34962 msgid "Automated tests of the C API."
34963 msgstr ""
34964
34965 #. type: =item
34966 #: ../src/guestfs.pod:2695
34967 msgid "C<cat>"
34968 msgstr ""
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:2697
34972 msgid ""
34973 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
34974 "documentation."
34975 msgstr ""
34976
34977 #. type: =item
34978 #: ../src/guestfs.pod:2700
34979 msgid "C<caution>"
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:2702
34984 msgid ""
34985 "Safety and liveness tests of components that libguestfs depends upon (not of "
34986 "libguestfs itself).  Mainly this is for qemu and the kernel."
34987 msgstr ""
34988
34989 #. type: =item
34990 #: ../src/guestfs.pod:2705
34991 msgid "C<contrib>"
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:2707
34996 msgid "Outside contributions, experimental parts."
34997 msgstr ""
34998
34999 #. type: =item
35000 #: ../src/guestfs.pod:2709
35001 msgid "C<daemon>"
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:2711
35006 msgid ""
35007 "The daemon that runs inside the libguestfs appliance and carries out "
35008 "actions."
35009 msgstr ""
35010
35011 #. type: =item
35012 #: ../src/guestfs.pod:2714
35013 msgid "C<df>"
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:2716
35018 msgid "L<virt-df(1)> command and documentation."
35019 msgstr ""
35020
35021 #. type: =item
35022 #: ../src/guestfs.pod:2718
35023 msgid "C<edit>"
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:2720
35028 msgid "L<virt-edit(1)> command and documentation."
35029 msgstr ""
35030
35031 #. type: =item
35032 #: ../src/guestfs.pod:2722
35033 msgid "C<examples>"
35034 msgstr ""
35035
35036 #. type: textblock
35037 #: ../src/guestfs.pod:2724
35038 msgid "C API example code."
35039 msgstr ""
35040
35041 #. type: =item
35042 #: ../src/guestfs.pod:2726
35043 msgid "C<fish>"
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:2728
35048 msgid ""
35049 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35050 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35051 "L<virt-tar-out(1)>."
35052 msgstr ""
35053
35054 #. type: =item
35055 #: ../src/guestfs.pod:2732
35056 msgid "C<fuse>"
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:2734
35061 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35062 msgstr ""
35063
35064 #. type: =item
35065 #: ../src/guestfs.pod:2736
35066 msgid "C<generator>"
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs.pod:2738
35071 msgid ""
35072 "The crucially important generator, used to automatically generate large "
35073 "amounts of boilerplate C code for things like RPC and bindings."
35074 msgstr ""
35075
35076 #. type: =item
35077 #: ../src/guestfs.pod:2741
35078 msgid "C<images>"
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:2743
35083 msgid "Files used by the test suite."
35084 msgstr ""
35085
35086 #. type: textblock
35087 #: ../src/guestfs.pod:2745
35088 msgid "Some \"phony\" guest images which we test against."
35089 msgstr ""
35090
35091 #. type: =item
35092 #: ../src/guestfs.pod:2747
35093 msgid "C<inspector>"
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:2749
35098 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35099 msgstr ""
35100
35101 #. type: =item
35102 #: ../src/guestfs.pod:2751
35103 msgid "C<logo>"
35104 msgstr ""
35105
35106 #. type: textblock
35107 #: ../src/guestfs.pod:2753
35108 msgid "Logo used on the website.  The fish is called Arthur by the way."
35109 msgstr ""
35110
35111 #. type: =item
35112 #: ../src/guestfs.pod:2755
35113 msgid "C<m4>"
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:2757
35118 msgid "M4 macros used by autoconf."
35119 msgstr ""
35120
35121 #. type: =item
35122 #: ../src/guestfs.pod:2759
35123 msgid "C<po>"
35124 msgstr ""
35125
35126 #. type: textblock
35127 #: ../src/guestfs.pod:2761
35128 msgid "Translations of simple gettext strings."
35129 msgstr ""
35130
35131 #. type: =item
35132 #: ../src/guestfs.pod:2763
35133 msgid "C<po-docs>"
35134 msgstr ""
35135
35136 #. type: textblock
35137 #: ../src/guestfs.pod:2765
35138 msgid ""
35139 "The build infrastructure and PO files for translations of manpages and POD "
35140 "files.  Eventually this will be combined with the C<po> directory, but that "
35141 "is rather complicated."
35142 msgstr ""
35143
35144 #. type: =item
35145 #: ../src/guestfs.pod:2769
35146 msgid "C<regressions>"
35147 msgstr ""
35148
35149 #. type: textblock
35150 #: ../src/guestfs.pod:2771
35151 msgid "Regression tests."
35152 msgstr ""
35153
35154 #. type: =item
35155 #: ../src/guestfs.pod:2773
35156 msgid "C<rescue>"
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:2775
35161 msgid "L<virt-rescue(1)> command and documentation."
35162 msgstr ""
35163
35164 #. type: =item
35165 #: ../src/guestfs.pod:2777
35166 msgid "C<src>"
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:2779
35171 msgid "Source code to the C library."
35172 msgstr ""
35173
35174 #. type: =item
35175 #: ../src/guestfs.pod:2781
35176 msgid "C<tools>"
35177 msgstr ""
35178
35179 #. type: textblock
35180 #: ../src/guestfs.pod:2783
35181 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
35182 msgstr ""
35183
35184 #. type: =item
35185 #: ../src/guestfs.pod:2785
35186 msgid "C<test-tool>"
35187 msgstr ""
35188
35189 #. type: textblock
35190 #: ../src/guestfs.pod:2787
35191 msgid ""
35192 "Test tool for end users to test if their qemu/kernel combination will work "
35193 "with libguestfs."
35194 msgstr ""
35195
35196 #. type: =item
35197 #: ../src/guestfs.pod:2790
35198 msgid "C<csharp>"
35199 msgstr ""
35200
35201 #. type: =item
35202 #: ../src/guestfs.pod:2792
35203 msgid "C<haskell>"
35204 msgstr ""
35205
35206 #. type: =item
35207 #: ../src/guestfs.pod:2794
35208 msgid "C<java>"
35209 msgstr ""
35210
35211 #. type: =item
35212 #: ../src/guestfs.pod:2796
35213 msgid "C<ocaml>"
35214 msgstr ""
35215
35216 #. type: =item
35217 #: ../src/guestfs.pod:2798
35218 msgid "C<php>"
35219 msgstr ""
35220
35221 #. type: =item
35222 #: ../src/guestfs.pod:2800
35223 msgid "C<perl>"
35224 msgstr ""
35225
35226 #. type: =item
35227 #: ../src/guestfs.pod:2802
35228 msgid "C<python>"
35229 msgstr ""
35230
35231 #. type: =item
35232 #: ../src/guestfs.pod:2804
35233 msgid "C<ruby>"
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:2806
35238 msgid "Language bindings."
35239 msgstr ""
35240
35241 #. type: =head2
35242 #: ../src/guestfs.pod:2810
35243 msgid "MAKING A STABLE RELEASE"
35244 msgstr ""
35245
35246 #. type: textblock
35247 #: ../src/guestfs.pod:2812
35248 msgid ""
35249 "When we make a stable release, there are several steps documented here.  See "
35250 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
35251 "branch policy."
35252 msgstr ""
35253
35254 #. type: textblock
35255 #: ../src/guestfs.pod:2820
35256 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:2825
35261 msgid "Finalize RELEASE-NOTES."
35262 msgstr ""
35263
35264 #. type: textblock
35265 #: ../src/guestfs.pod:2829
35266 msgid "Update ROADMAP."
35267 msgstr ""
35268
35269 #. type: textblock
35270 #: ../src/guestfs.pod:2833
35271 msgid "Run C<src/api-support/update-from-tarballs.sh>."
35272 msgstr ""
35273
35274 #. type: textblock
35275 #: ../src/guestfs.pod:2837
35276 msgid "Push and pull from Transifex."
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:2839
35281 msgid "Run:"
35282 msgstr ""
35283
35284 #. type: verbatim
35285 #: ../src/guestfs.pod:2841
35286 #, no-wrap
35287 msgid ""
35288 " tx push -s\n"
35289 "\n"
35290 msgstr ""
35291
35292 #. type: textblock
35293 #: ../src/guestfs.pod:2843
35294 msgid "to push the latest POT files to Transifex.  Then run:"
35295 msgstr ""
35296
35297 #. type: verbatim
35298 #: ../src/guestfs.pod:2845
35299 #, no-wrap
35300 msgid ""
35301 " ./tx-pull.sh\n"
35302 "\n"
35303 msgstr ""
35304
35305 #. type: textblock
35306 #: ../src/guestfs.pod:2847
35307 msgid "which is a wrapper to pull the latest translated C<*.po> files."
35308 msgstr ""
35309
35310 #. type: textblock
35311 #: ../src/guestfs.pod:2851
35312 msgid ""
35313 "Create new stable and development directories under "
35314 "L<http://libguestfs.org/download>."
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:2856
35319 msgid "Create the branch in git:"
35320 msgstr ""
35321
35322 #. type: verbatim
35323 #: ../src/guestfs.pod:2858
35324 #, no-wrap
35325 msgid ""
35326 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
35327 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
35328 " git branch stable-1.XX\n"
35329 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
35330 "\n"
35331 msgstr ""
35332
35333 #. type: =head1
35334 #: ../src/guestfs.pod:2865
35335 msgid "LIMITS"
35336 msgstr ""
35337
35338 #. type: =head2
35339 #: ../src/guestfs.pod:2867
35340 msgid "PROTOCOL LIMITS"
35341 msgstr ""
35342
35343 #. type: textblock
35344 #: ../src/guestfs.pod:2869
35345 msgid ""
35346 "Internally libguestfs uses a message-based protocol to pass API calls and "
35347 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
35348 "plenty more detail about this).  The maximum message size used by the "
35349 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
35350 "aware of this limit.  The API calls which may be affected are individually "
35351 "documented, with a link back to this section of the documentation."
35352 msgstr ""
35353
35354 #. type: textblock
35355 #: ../src/guestfs.pod:2877
35356 msgid ""
35357 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
35358 "a simple string.  Because this string is at some point internally encoded as "
35359 "a message, the maximum size that it can return is slightly under 4 MB.  If "
35360 "the requested file is larger than this then you will get an error."
35361 msgstr ""
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:2883
35365 msgid ""
35366 "In order to transfer large files into and out of the guest filesystem, you "
35367 "need to use particular calls that support this.  The sections L</UPLOADING> "
35368 "and L</DOWNLOADING> document how to do this."
35369 msgstr ""
35370
35371 #. type: textblock
35372 #: ../src/guestfs.pod:2887
35373 msgid ""
35374 "You might also consider mounting the disk image using our FUSE filesystem "
35375 "support (L<guestmount(1)>)."
35376 msgstr ""
35377
35378 #. type: =head2
35379 #: ../src/guestfs.pod:2890
35380 msgid "MAXIMUM NUMBER OF DISKS"
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:2892
35385 msgid "When using virtio disks (the default) the current limit is B<25> disks."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:2895
35390 msgid ""
35391 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
35392 "slots.  However febootstrap only understands disks with names C</dev/vda> "
35393 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
35394 "purposes."
35395 msgstr ""
35396
35397 #. type: textblock
35398 #: ../src/guestfs.pod:2900
35399 msgid ""
35400 "We are working to substantially raise this limit in future versions but it "
35401 "requires complex changes to qemu."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:2903
35406 msgid ""
35407 "In future versions of libguestfs it should also be possible to \"hot plug\" "
35408 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
35409 "requires changes to qemu."
35410 msgstr ""
35411
35412 #. type: =head2
35413 #: ../src/guestfs.pod:2907
35414 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
35415 msgstr ""
35416
35417 #. type: textblock
35418 #: ../src/guestfs.pod:2909
35419 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
35420 msgstr ""
35421
35422 #. type: textblock
35423 #: ../src/guestfs.pod:2911
35424 msgid ""
35425 "This is because it reserves 4 bits for the minor device number (thus "
35426 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
35427 msgstr ""
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:2914
35431 msgid ""
35432 "If you attach a disk with more than 15 partitions, the extra partitions are "
35433 "ignored by libguestfs."
35434 msgstr ""
35435
35436 #. type: =head2
35437 #: ../src/guestfs.pod:2917
35438 msgid "MAXIMUM SIZE OF A DISK"
35439 msgstr ""
35440
35441 #. type: textblock
35442 #: ../src/guestfs.pod:2919
35443 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
35444 msgstr ""
35445
35446 #. type: textblock
35447 #: ../src/guestfs.pod:2921
35448 msgid ""
35449 "We have tested block devices up to 1 exabyte (2**60 or "
35450 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
35451 "filesystem."
35452 msgstr ""
35453
35454 #. type: textblock
35455 #: ../src/guestfs.pod:2925
35456 msgid ""
35457 "Although libguestfs probably does not impose any limit, the underlying host "
35458 "storage will.  If you store disk images on a host ext4 filesystem, then the "
35459 "maximum size will be limited by the maximum ext4 file size (currently 16 "
35460 "TB).  If you store disk images as host logical volumes then you are limited "
35461 "by the maximum size of an LV."
35462 msgstr ""
35463
35464 #. type: textblock
35465 #: ../src/guestfs.pod:2931
35466 msgid ""
35467 "For the hugest disk image files, we recommend using XFS on the host for "
35468 "storage."
35469 msgstr ""
35470
35471 #. type: =head2
35472 #: ../src/guestfs.pod:2934
35473 msgid "MAXIMUM SIZE OF A PARTITION"
35474 msgstr ""
35475
35476 #. type: textblock
35477 #: ../src/guestfs.pod:2936
35478 msgid ""
35479 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
35480 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
35481 "address a partition located beyond 2 TB on the disk."
35482 msgstr ""
35483
35484 #. type: textblock
35485 #: ../src/guestfs.pod:2940
35486 msgid ""
35487 "It is recommended that you use GPT partitions on disks which are larger than "
35488 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
35489 "which are theoretically larger than the largest disk we could support."
35490 msgstr ""
35491
35492 #. type: =head2
35493 #: ../src/guestfs.pod:2945
35494 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
35495 msgstr ""
35496
35497 #. type: textblock
35498 #: ../src/guestfs.pod:2947
35499 msgid ""
35500 "This depends on the filesystem type.  libguestfs itself does not impose any "
35501 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
35502 "what these limits are."
35503 msgstr ""
35504
35505 #. type: =head2
35506 #: ../src/guestfs.pod:2951
35507 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
35508 msgstr ""
35509
35510 #. type: textblock
35511 #: ../src/guestfs.pod:2953
35512 msgid ""
35513 "The API functions L</guestfs_upload>, L</guestfs_download>, "
35514 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
35515 "uploads and downloads."
35516 msgstr ""
35517
35518 #. type: =head2
35519 #: ../src/guestfs.pod:2957
35520 msgid "INSPECTION LIMITS"
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:2959
35525 msgid ""
35526 "The inspection code has several arbitrary limits on things like the size of "
35527 "Windows Registry hive it will read, and the length of product name.  These "
35528 "are intended to stop a malicious guest from consuming arbitrary amounts of "
35529 "memory and disk space on the host, and should not be reached in practice.  "
35530 "See the source code for more information."
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:2985
35535 msgid ""
35536 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
35537 "effect as calling C<guestfs_set_verbose (g, 1)>."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:2997
35542 msgid ""
35543 "Set the path that libguestfs uses to search for a supermin appliance.  See "
35544 "the discussion of paths in section L</PATH> above."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:3006
35549 msgid "See also L</QEMU WRAPPERS> above."
35550 msgstr ""
35551
35552 #. type: textblock
35553 #: ../src/guestfs.pod:3010
35554 msgid ""
35555 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
35556 "effect as calling C<guestfs_set_trace (g, 1)>."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:3028
35561 msgid ""
35562 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
35563 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
35564 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
35565 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
35566 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
35567 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
35568 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
35569 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
35570 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
35571 msgstr ""
35572
35573 #. type: textblock
35574 #: ../src/guestfs.pod:3058
35575 msgid ""
35576 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
35577 "L<lvm(8)>, L<disktype(1)>."
35578 msgstr ""
35579
35580 #. type: =head1
35581 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
35582 msgid "BUGS"
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:3067
35587 msgid "To get a list of bugs against libguestfs use this link:"
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:3069
35592 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:3071
35597 msgid "To report a new bug against libguestfs use this link:"
35598 msgstr ""
35599
35600 #. type: textblock
35601 #: ../src/guestfs.pod:3073
35602 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:3075
35607 msgid "When reporting a bug, please check:"
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:3081
35612 msgid "That the bug hasn't been reported already."
35613 msgstr ""
35614
35615 #. type: textblock
35616 #: ../src/guestfs.pod:3085
35617 msgid "That you are testing a recent version."
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:3089
35622 msgid "Describe the bug accurately, and give a way to reproduce it."
35623 msgstr ""
35624
35625 #. type: textblock
35626 #: ../src/guestfs.pod:3093
35627 msgid ""
35628 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
35629 "bug report."
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../test-tool/libguestfs-test-tool.pod:5
35634 msgid "libguestfs-test-tool - End user tests for libguestfs"
35635 msgstr ""
35636
35637 #. type: verbatim
35638 #: ../test-tool/libguestfs-test-tool.pod:9
35639 #, no-wrap
35640 msgid ""
35641 " libguestfs-test-tool [--options]\n"
35642 "\n"
35643 msgstr ""
35644
35645 #. type: textblock
35646 #: ../test-tool/libguestfs-test-tool.pod:13
35647 msgid ""
35648 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
35649 "and developers, to allow them to check basic libguestfs functionality is "
35650 "working.  This is needed because libguestfs occasionally breaks for reasons "
35651 "beyond our control: usually because of changes in the underlying qemu or "
35652 "kernel packages, or the host environment."
35653 msgstr ""
35654
35655 #. type: textblock
35656 #: ../test-tool/libguestfs-test-tool.pod:20
35657 msgid "If you suspect a problem in libguestfs, then just run:"
35658 msgstr ""
35659
35660 #. type: verbatim
35661 #: ../test-tool/libguestfs-test-tool.pod:22
35662 #, no-wrap
35663 msgid ""
35664 " libguestfs-test-tool\n"
35665 "\n"
35666 msgstr ""
35667
35668 #. type: textblock
35669 #: ../test-tool/libguestfs-test-tool.pod:24
35670 msgid "It will print lots of diagnostic messages."
35671 msgstr ""
35672
35673 #. type: textblock
35674 #: ../test-tool/libguestfs-test-tool.pod:26
35675 msgid "If it runs to completion successfully, you will see this near the end:"
35676 msgstr ""
35677
35678 #. type: verbatim
35679 #: ../test-tool/libguestfs-test-tool.pod:28
35680 #, no-wrap
35681 msgid ""
35682 " ===== TEST FINISHED OK =====\n"
35683 "\n"
35684 msgstr ""
35685
35686 #. type: textblock
35687 #: ../test-tool/libguestfs-test-tool.pod:30
35688 msgid "and the test tool will exit with code 0."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../test-tool/libguestfs-test-tool.pod:32
35693 msgid ""
35694 "If it fails (and/or exits with non-zero error code), please paste the "
35695 "B<complete, unedited> output of the test tool into a bug report.  More "
35696 "information about reporting bugs can be found on the "
35697 "L<http://libguestfs.org/> website."
35698 msgstr ""
35699
35700 #. type: =item
35701 #: ../test-tool/libguestfs-test-tool.pod:41
35702 msgid "I<--help>"
35703 msgstr ""
35704
35705 #. type: textblock
35706 #: ../test-tool/libguestfs-test-tool.pod:43
35707 msgid "Display short usage information and exit."
35708 msgstr ""
35709
35710 #. type: =item
35711 #: ../test-tool/libguestfs-test-tool.pod:45
35712 msgid "I<--qemu qemu_binary>"
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../test-tool/libguestfs-test-tool.pod:47
35717 msgid ""
35718 "If you have downloaded another qemu binary, point this option at the full "
35719 "path of the binary to try it."
35720 msgstr ""
35721
35722 #. type: =item
35723 #: ../test-tool/libguestfs-test-tool.pod:50
35724 msgid "I<--qemudir qemu_source_dir>"
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../test-tool/libguestfs-test-tool.pod:52
35729 msgid ""
35730 "If you have compiled qemu from source, point this option at the source "
35731 "directory to try it."
35732 msgstr ""
35733
35734 #. type: =item
35735 #: ../test-tool/libguestfs-test-tool.pod:55
35736 msgid "I<--timeout N>"
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../test-tool/libguestfs-test-tool.pod:57
35741 msgid ""
35742 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
35743 "does not usually need to be adjusted unless your machine is very slow."
35744 msgstr ""
35745
35746 #. type: =head1
35747 #: ../test-tool/libguestfs-test-tool.pod:63
35748 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
35749 msgstr ""
35750
35751 #. type: textblock
35752 #: ../test-tool/libguestfs-test-tool.pod:65
35753 msgid ""
35754 "If you have compiled another version of qemu from source and would like to "
35755 "try that, then you can use the I<--qemudir> option to point to the qemu "
35756 "source directory."
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../test-tool/libguestfs-test-tool.pod:69
35761 msgid ""
35762 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
35763 "option to point to the binary."
35764 msgstr ""
35765
35766 #. type: textblock
35767 #: ../test-tool/libguestfs-test-tool.pod:72
35768 msgid ""
35769 "When using an alternate qemu with libguestfs, usually you would need to "
35770 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
35771 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
35772 "when you use either of the I<--qemudir> or I<--qemu> options."
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../test-tool/libguestfs-test-tool.pod:79
35777 msgid ""
35778 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
35779 "I<1> if there was an error."
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../test-tool/libguestfs-test-tool.pod:84
35784 msgid ""
35785 "For the full list of environment variables which may affect libguestfs, "
35786 "please see the L<guestfs(3)> manual page."
35787 msgstr ""
35788
35789 #. type: textblock
35790 #: ../test-tool/libguestfs-test-tool.pod:89
35791 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../tools/virt-list-filesystems.pl:32
35796 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
35797 msgstr ""
35798
35799 #. type: verbatim
35800 #: ../tools/virt-list-filesystems.pl:36
35801 #, no-wrap
35802 msgid ""
35803 " virt-list-filesystems [--options] domname\n"
35804 "\n"
35805 msgstr ""
35806
35807 #. type: verbatim
35808 #: ../tools/virt-list-filesystems.pl:38
35809 #, no-wrap
35810 msgid ""
35811 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
35812 "\n"
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
35817 msgid ""
35818 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
35819 "replacement."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../tools/virt-list-filesystems.pl:45
35824 msgid ""
35825 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
35826 "are contained in a virtual machine or disk image."
35827 msgstr ""
35828
35829 #. type: textblock
35830 #: ../tools/virt-list-filesystems.pl:49
35831 msgid ""
35832 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
35833 "functionality.  For more complex cases you should look at the "
35834 "L<guestfish(1)> tool."
35835 msgstr ""
35836
35837 #. type: textblock
35838 #: ../tools/virt-list-filesystems.pl:112
35839 msgid ""
35840 "With this option, C<virt-list-filesystems> displays the type of each "
35841 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
35842 msgstr ""
35843
35844 #. type: =item
35845 #: ../tools/virt-list-filesystems.pl:119
35846 msgid "B<-a>"
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../tools/virt-list-filesystems.pl:123
35851 msgid ""
35852 "Normally we only show mountable filesystems.  If this option is given then "
35853 "swap devices are shown too."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../tools/virt-list-filesystems.pl:197
35858 msgid ""
35859 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
35860 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
35861 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
35866 msgid "Copyright (C) 2009 Red Hat Inc."
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../tools/virt-list-partitions.pl:32
35871 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
35872 msgstr ""
35873
35874 #. type: verbatim
35875 #: ../tools/virt-list-partitions.pl:36
35876 #, no-wrap
35877 msgid ""
35878 " virt-list-partitions [--options] domname\n"
35879 "\n"
35880 msgstr ""
35881
35882 #. type: verbatim
35883 #: ../tools/virt-list-partitions.pl:38
35884 #, no-wrap
35885 msgid ""
35886 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35887 "\n"
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../tools/virt-list-partitions.pl:45
35892 msgid ""
35893 "C<virt-list-partitions> is a command line tool to list the partitions that "
35894 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35895 "first step to using L<virt-resize(1)>."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../tools/virt-list-partitions.pl:50
35900 msgid ""
35901 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35902 "functionality.  For more complex cases you should look at the "
35903 "L<guestfish(1)> tool."
35904 msgstr ""
35905
35906 #. type: textblock
35907 #: ../tools/virt-list-partitions.pl:113
35908 msgid "Show sizes in human-readable form (eg. \"1G\")."
35909 msgstr ""
35910
35911 #. type: textblock
35912 #: ../tools/virt-list-partitions.pl:123
35913 msgid ""
35914 "With this option, C<virt-list-partitions> displays the type and size of each "
35915 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35916 msgstr ""
35917
35918 #. type: =item
35919 #: ../tools/virt-list-partitions.pl:130
35920 msgid "B<-t>"
35921 msgstr ""
35922
35923 #. type: =item
35924 #: ../tools/virt-list-partitions.pl:132
35925 msgid "B<--total>"
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../tools/virt-list-partitions.pl:134
35930 msgid "Display the total size of each block device (as a separate row or rows)."
35931 msgstr ""
35932
35933 #. type: textblock
35934 #: ../tools/virt-list-partitions.pl:267
35935 msgid ""
35936 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
35937 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
35938 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35939 msgstr ""
35940
35941 #. type: textblock
35942 #: ../tools/virt-list-partitions.pl:283
35943 msgid "Copyright (C) 2009-2010 Red Hat Inc."
35944 msgstr ""
35945
35946 #. type: textblock
35947 #: ../tools/virt-make-fs.pl:37
35948 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
35949 msgstr ""
35950
35951 #. type: verbatim
35952 #: ../tools/virt-make-fs.pl:41
35953 #, no-wrap
35954 msgid ""
35955 " virt-make-fs [--options] input.tar output.img\n"
35956 "\n"
35957 msgstr ""
35958
35959 #. type: verbatim
35960 #: ../tools/virt-make-fs.pl:43
35961 #, no-wrap
35962 msgid ""
35963 " virt-make-fs [--options] input.tar.gz output.img\n"
35964 "\n"
35965 msgstr ""
35966
35967 #. type: verbatim
35968 #: ../tools/virt-make-fs.pl:45
35969 #, no-wrap
35970 msgid ""
35971 " virt-make-fs [--options] directory output.img\n"
35972 "\n"
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../tools/virt-make-fs.pl:49
35977 msgid ""
35978 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
35979 "archive or some files in a directory.  It is similar to tools like "
35980 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
35981 "it can create common filesystem types like ext2/3 or NTFS, which can be "
35982 "useful if you want to attach these filesystems to existing virtual machines "
35983 "(eg. to import large amounts of read-only data to a VM)."
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../tools/virt-make-fs.pl:57
35988 msgid "Basic usage is:"
35989 msgstr ""
35990
35991 #. type: verbatim
35992 #: ../tools/virt-make-fs.pl:59
35993 #, no-wrap
35994 msgid ""
35995 " virt-make-fs input output\n"
35996 "\n"
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../tools/virt-make-fs.pl:61
36001 msgid ""
36002 "where C<input> is either a directory containing files that you want to add, "
36003 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36004 "C<output> is a disk image.  The input type is detected automatically.  The "
36005 "output disk image defaults to a raw ext2 image unless you specify extra "
36006 "flags (see L</OPTIONS> below)."
36007 msgstr ""
36008
36009 #. type: =head2
36010 #: ../tools/virt-make-fs.pl:67
36011 msgid "EXTRA SPACE"
36012 msgstr ""
36013
36014 #. type: textblock
36015 #: ../tools/virt-make-fs.pl:69
36016 msgid ""
36017 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36018 "the files that it contains, but might have extra space.  Depending on how "
36019 "you are going to use the output, you might think this extra space is wasted "
36020 "and want to minimize it, or you might want to leave space so that more files "
36021 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36022 "but you can use the I<--size> flag to leave space in the filesystem if you "
36023 "want it."
36024 msgstr ""
36025
36026 #. type: textblock
36027 #: ../tools/virt-make-fs.pl:77
36028 msgid ""
36029 "An alternative way to leave extra space but not make the output image any "
36030 "bigger is to use an alternative disk image format (instead of the default "
36031 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36032 "image format (check your hypervisor supports this before using it).  This "
36033 "allows you to choose a large I<--size> but the extra space won't actually be "
36034 "allocated in the image until you try to store something in it."
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../tools/virt-make-fs.pl:85
36039 msgid ""
36040 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36041 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36042 "to build another image from scratch."
36043 msgstr ""
36044
36045 #. type: =head3
36046 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
36047 msgid "EXAMPLE"
36048 msgstr ""
36049
36050 #. type: verbatim
36051 #: ../tools/virt-make-fs.pl:91
36052 #, no-wrap
36053 msgid ""
36054 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36055 "\n"
36056 msgstr ""
36057
36058 #. type: =head2
36059 #: ../tools/virt-make-fs.pl:93
36060 msgid "FILESYSTEM TYPE"
36061 msgstr ""
36062
36063 #. type: textblock
36064 #: ../tools/virt-make-fs.pl:95
36065 msgid ""
36066 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36067 "libguestfs supports can be used (but I<not> read-only formats like "
36068 "ISO9660).  Here are some of the more common choices:"
36069 msgstr ""
36070
36071 #. type: =item
36072 #: ../tools/virt-make-fs.pl:101
36073 msgid "I<ext3>"
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../tools/virt-make-fs.pl:103
36078 msgid ""
36079 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36080 "you are not going to use the filesystem in a way that requires the journal, "
36081 "then this is just wasted overhead."
36082 msgstr ""
36083
36084 #. type: =item
36085 #: ../tools/virt-make-fs.pl:107
36086 msgid "I<ntfs> or I<vfat>"
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../tools/virt-make-fs.pl:109
36091 msgid "Useful if exporting data to a Windows guest."
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../tools/virt-make-fs.pl:111
36096 msgid ""
36097 "I<Note for vfat>: The tar archive or local directory must only contain files "
36098 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36099 "program running within libguestfs is unable to change the ownership of "
36100 "non-root files, since vfat itself does not support this."
36101 msgstr ""
36102
36103 #. type: =item
36104 #: ../tools/virt-make-fs.pl:116
36105 msgid "I<minix>"
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../tools/virt-make-fs.pl:118
36110 msgid ""
36111 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36112 "total filesystem size."
36113 msgstr ""
36114
36115 #. type: verbatim
36116 #: ../tools/virt-make-fs.pl:125
36117 #, no-wrap
36118 msgid ""
36119 " virt-make-fs --type=minix input minixfs.img\n"
36120 "\n"
36121 msgstr ""
36122
36123 #. type: =head2
36124 #: ../tools/virt-make-fs.pl:127
36125 msgid "TO PARTITION OR NOT TO PARTITION"
36126 msgstr ""
36127
36128 #. type: textblock
36129 #: ../tools/virt-make-fs.pl:129
36130 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../tools/virt-make-fs.pl:131
36135 msgid ""
36136 "Adding a partition can make the disk image more compatible with certain "
36137 "virtualized operating systems which don't expect to see a filesystem "
36138 "directly located on a block device (Linux doesn't care and will happily "
36139 "handle both types)."
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../tools/virt-make-fs.pl:136
36144 msgid ""
36145 "On the other hand, if you have a partition table then the output image is no "
36146 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36147 "directly on a partitioned disk image.  (However libguestfs tools such as "
36148 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../tools/virt-make-fs.pl:144
36153 msgid "Add an MBR partition:"
36154 msgstr ""
36155
36156 #. type: verbatim
36157 #: ../tools/virt-make-fs.pl:146
36158 #, no-wrap
36159 msgid ""
36160 " virt-make-fs --partition -- input disk.img\n"
36161 "\n"
36162 msgstr ""
36163
36164 #. type: textblock
36165 #: ../tools/virt-make-fs.pl:148
36166 msgid ""
36167 "If the output disk image could be terabyte-sized or larger, it's better to "
36168 "use an EFI/GPT-compatible partition table:"
36169 msgstr ""
36170
36171 #. type: verbatim
36172 #: ../tools/virt-make-fs.pl:151
36173 #, no-wrap
36174 msgid ""
36175 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36176 "\n"
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../tools/virt-make-fs.pl:179
36181 msgid "Enable debugging information."
36182 msgstr ""
36183
36184 #. type: =item
36185 #: ../tools/virt-make-fs.pl:185
36186 msgid "B<--size=E<lt>NE<gt>>"
36187 msgstr ""
36188
36189 #. type: =item
36190 #: ../tools/virt-make-fs.pl:187
36191 msgid "B<--size=+E<lt>NE<gt>>"
36192 msgstr ""
36193
36194 #. type: =item
36195 #: ../tools/virt-make-fs.pl:189
36196 msgid "B<-s E<lt>NE<gt>>"
36197 msgstr ""
36198
36199 #. type: =item
36200 #: ../tools/virt-make-fs.pl:191
36201 msgid "B<-s +E<lt>NE<gt>>"
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../tools/virt-make-fs.pl:193
36206 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
36207 msgstr ""
36208
36209 #. type: textblock
36210 #: ../tools/virt-make-fs.pl:196
36211 msgid ""
36212 "If this option is I<not> given, then the output image will be just large "
36213 "enough to contain all the files, with not much wasted space."
36214 msgstr ""
36215
36216 #. type: textblock
36217 #: ../tools/virt-make-fs.pl:199
36218 msgid ""
36219 "To choose a fixed size output disk, specify an absolute number followed by "
36220 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36221 "Petabytes or Exabytes.  This must be large enough to contain all the input "
36222 "files, else you will get an error."
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../tools/virt-make-fs.pl:204
36227 msgid ""
36228 "To leave extra space, specify C<+> (plus sign) and a number followed by "
36229 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36230 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
36231 "the input files, and (approximately) an extra 200 MB free space."
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../tools/virt-make-fs.pl:210
36236 msgid ""
36237 "Note that virt-make-fs estimates free space, and therefore will not produce "
36238 "filesystems containing precisely the free space requested.  (It is much more "
36239 "expensive and time-consuming to produce a filesystem which has precisely the "
36240 "desired free space)."
36241 msgstr ""
36242
36243 #. type: =item
36244 #: ../tools/virt-make-fs.pl:219
36245 msgid "B<--format=E<lt>fmtE<gt>>"
36246 msgstr ""
36247
36248 #. type: =item
36249 #: ../tools/virt-make-fs.pl:221
36250 msgid "B<-F E<lt>fmtE<gt>>"
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../tools/virt-make-fs.pl:223
36255 msgid "Choose the output disk image format."
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../tools/virt-make-fs.pl:225
36260 msgid "The default is C<raw> (raw disk image)."
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../tools/virt-make-fs.pl:227
36265 msgid ""
36266 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
36267 "that would really make sense here is C<qcow2>."
36268 msgstr ""
36269
36270 #. type: =item
36271 #: ../tools/virt-make-fs.pl:234
36272 msgid "B<--type=E<lt>fsE<gt>>"
36273 msgstr ""
36274
36275 #. type: =item
36276 #: ../tools/virt-make-fs.pl:236
36277 msgid "B<-t E<lt>fsE<gt>>"
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../tools/virt-make-fs.pl:238
36282 msgid "Choose the output filesystem type."
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../tools/virt-make-fs.pl:240
36287 msgid "The default is C<ext2>."
36288 msgstr ""
36289
36290 #. type: textblock
36291 #: ../tools/virt-make-fs.pl:242
36292 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
36293 msgstr ""
36294
36295 #. type: =item
36296 #: ../tools/virt-make-fs.pl:249
36297 msgid "B<--partition>"
36298 msgstr ""
36299
36300 #. type: =item
36301 #: ../tools/virt-make-fs.pl:251
36302 msgid "B<--partition=E<lt>parttypeE<gt>>"
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../tools/virt-make-fs.pl:253
36307 msgid ""
36308 "If specified, this flag adds an MBR partition table to the output disk "
36309 "image."
36310 msgstr ""
36311
36312 #. type: textblock
36313 #: ../tools/virt-make-fs.pl:256
36314 msgid ""
36315 "You can change the partition table type, eg. I<--partition=gpt> for large "
36316 "disks."
36317 msgstr ""
36318
36319 #. type: textblock
36320 #: ../tools/virt-make-fs.pl:259
36321 msgid ""
36322 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
36323 "might consider the next parameter to be the partition type.  For example:"
36324 msgstr ""
36325
36326 #. type: verbatim
36327 #: ../tools/virt-make-fs.pl:263
36328 #, no-wrap
36329 msgid ""
36330 " virt-make-fs --partition input.tar ...\n"
36331 "\n"
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../tools/virt-make-fs.pl:265
36336 msgid ""
36337 "would cause virt-make-fs to think you wanted to use a partition type of "
36338 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
36339 "dash) between options and the input file argument:"
36340 msgstr ""
36341
36342 #. type: verbatim
36343 #: ../tools/virt-make-fs.pl:269
36344 #, no-wrap
36345 msgid ""
36346 " virt-make-fs --partition -- input.tar ...\n"
36347 "\n"
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../tools/virt-make-fs.pl:541
36352 msgid ""
36353 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
36354 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
36355 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
36356 msgstr ""
36357
36358 #. type: textblock
36359 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
36360 msgid ""
36361 "When reporting bugs, please enable debugging and capture the I<complete> "
36362 "output:"
36363 msgstr ""
36364
36365 #. type: verbatim
36366 #: ../tools/virt-make-fs.pl:558
36367 #, no-wrap
36368 msgid ""
36369 " export LIBGUESTFS_DEBUG=1\n"
36370 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
36371 "\n"
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../tools/virt-make-fs.pl:561
36376 msgid ""
36377 "Attach /tmp/virt-make-fs.log to a new bug report at "
36378 "L<https://bugzilla.redhat.com/>"
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../tools/virt-tar.pl:33
36383 msgid "virt-tar - Extract or upload files to a virtual machine"
36384 msgstr ""
36385
36386 #. type: verbatim
36387 #: ../tools/virt-tar.pl:37
36388 #, no-wrap
36389 msgid ""
36390 " virt-tar [--options] -x domname directory tarball\n"
36391 "\n"
36392 msgstr ""
36393
36394 #. type: verbatim
36395 #: ../tools/virt-tar.pl:39
36396 #, no-wrap
36397 msgid ""
36398 " virt-tar [--options] -u domname tarball directory\n"
36399 "\n"
36400 msgstr ""
36401
36402 #. type: verbatim
36403 #: ../tools/virt-tar.pl:41
36404 #, no-wrap
36405 msgid ""
36406 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
36407 "\n"
36408 msgstr ""
36409
36410 #. type: verbatim
36411 #: ../tools/virt-tar.pl:43
36412 #, no-wrap
36413 msgid ""
36414 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
36415 "\n"
36416 msgstr ""
36417
36418 #. type: =head2
36419 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
36420 msgid "NOTE"
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../tools/virt-tar.pl:47
36425 msgid ""
36426 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36427 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../tools/virt-tar.pl:52
36432 msgid "Download C</home> from the VM into a local tarball:"
36433 msgstr ""
36434
36435 #. type: verbatim
36436 #: ../tools/virt-tar.pl:54
36437 #, no-wrap
36438 msgid ""
36439 " virt-tar -x domname /home home.tar\n"
36440 "\n"
36441 msgstr ""
36442
36443 #. type: verbatim
36444 #: ../tools/virt-tar.pl:56
36445 #, no-wrap
36446 msgid ""
36447 " virt-tar -zx domname /home home.tar.gz\n"
36448 "\n"
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../tools/virt-tar.pl:58
36453 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
36454 msgstr ""
36455
36456 #. type: verbatim
36457 #: ../tools/virt-tar.pl:60
36458 #, no-wrap
36459 msgid ""
36460 " virt-tar -u domname uploadstuff.tar /tmp\n"
36461 "\n"
36462 msgstr ""
36463
36464 #. type: verbatim
36465 #: ../tools/virt-tar.pl:62
36466 #, no-wrap
36467 msgid ""
36468 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
36469 "\n"
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../tools/virt-tar.pl:66
36474 msgid ""
36475 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
36476 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
36477 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../tools/virt-tar.pl:71
36482 msgid ""
36483 "You can use I<-x> (extract) on live virtual machines, but you might get "
36484 "inconsistent results or errors if there is filesystem activity inside the "
36485 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
36486 "work, but the only way to guarantee consistent results is if the virtual "
36487 "machine is shut down."
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../tools/virt-tar.pl:79
36492 msgid ""
36493 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
36494 "parts of a guest filesystem.  There are many possibilities: making backups, "
36495 "uploading data files, snooping on guest activity, fixing or customizing "
36496 "guests, etc."
36497 msgstr ""
36498
36499 #. type: textblock
36500 #: ../tools/virt-tar.pl:84
36501 msgid ""
36502 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
36503 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
36504 "should look at the L<guestfish(1)> tool."
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../tools/virt-tar.pl:88
36509 msgid ""
36510 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
36511 "its contents (recursively) from the virtual machine into a local tarball.  "
36512 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
36513 "virtual machine.  You cannot use these two options together."
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../tools/virt-tar.pl:94
36518 msgid ""
36519 "In addition, you may need to use the I<-z> (gZip) option to enable "
36520 "compression.  When uploading, you have to specify I<-z> if the upload file "
36521 "is compressed because virt-tar won't detect this on its own."
36522 msgstr ""
36523
36524 #. type: textblock
36525 #: ../tools/virt-tar.pl:98
36526 msgid ""
36527 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
36528 "example it cannot do PKZip files or bzip2 compression.  If you want that "
36529 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
36530 "the L<libguestfs(3)> API)."
36531 msgstr ""
36532
36533 #. type: =item
36534 #: ../tools/virt-tar.pl:160
36535 msgid "B<--extract>"
36536 msgstr ""
36537
36538 #. type: =item
36539 #: ../tools/virt-tar.pl:162
36540 msgid "B<--download>"
36541 msgstr ""
36542
36543 #. type: =item
36544 #: ../tools/virt-tar.pl:164
36545 msgid "B<-u>"
36546 msgstr ""
36547
36548 #. type: =item
36549 #: ../tools/virt-tar.pl:166
36550 msgid "B<--upload>"
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../tools/virt-tar.pl:168
36555 msgid ""
36556 "Use I<-x> to extract (download) a directory from a virtual machine to a "
36557 "local tarball."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../tools/virt-tar.pl:171
36562 msgid ""
36563 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
36564 "Please read the L</WARNING> section above before using this option."
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../tools/virt-tar.pl:175
36569 msgid "You must specify exactly one of these options."
36570 msgstr ""
36571
36572 #. type: =item
36573 #: ../tools/virt-tar.pl:181
36574 msgid "B<-z>"
36575 msgstr ""
36576
36577 #. type: =item
36578 #: ../tools/virt-tar.pl:183
36579 msgid "B<--gzip>"
36580 msgstr ""
36581
36582 #. type: textblock
36583 #: ../tools/virt-tar.pl:185
36584 msgid "Specify that the input or output tarball is gzip-compressed."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../tools/virt-tar.pl:298
36589 msgid ""
36590 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
36591 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36592 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
36593 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../tools/virt-win-reg.pl:37
36598 msgid ""
36599 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
36600 "guest"
36601 msgstr ""
36602
36603 #. type: verbatim
36604 #: ../tools/virt-win-reg.pl:41
36605 #, no-wrap
36606 msgid ""
36607 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
36608 "\n"
36609 msgstr ""
36610
36611 #. type: verbatim
36612 #: ../tools/virt-win-reg.pl:43
36613 #, no-wrap
36614 msgid ""
36615 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
36616 "\n"
36617 msgstr ""
36618
36619 #. type: verbatim
36620 #: ../tools/virt-win-reg.pl:45
36621 #, no-wrap
36622 msgid ""
36623 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
36624 "\n"
36625 msgstr ""
36626
36627 #. type: verbatim
36628 #: ../tools/virt-win-reg.pl:47
36629 #, no-wrap
36630 msgid ""
36631 " virt-win-reg --merge domname [input.reg ...]\n"
36632 "\n"
36633 msgstr ""
36634
36635 #. type: verbatim
36636 #: ../tools/virt-win-reg.pl:49
36637 #, no-wrap
36638 msgid ""
36639 " virt-win-reg [--options] disk.img ... # instead of domname\n"
36640 "\n"
36641 msgstr ""
36642
36643 #. type: textblock
36644 #: ../tools/virt-win-reg.pl:53
36645 msgid ""
36646 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
36647 "virtual machines.  If you do this, you I<will> get irreversible disk "
36648 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
36649 "but doesn't catch all cases."
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../tools/virt-win-reg.pl:58
36654 msgid ""
36655 "Modifying the Windows Registry is an inherently risky operation.  The format "
36656 "is deliberately obscure and undocumented, and Registry changes can leave the "
36657 "system unbootable.  Therefore when using the I<--merge> option, make sure "
36658 "you have a reliable backup first."
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../tools/virt-win-reg.pl:65
36663 msgid ""
36664 "This program can export and merge Windows Registry entries from a Windows "
36665 "guest."
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../tools/virt-win-reg.pl:68
36670 msgid ""
36671 "The first parameter is the libvirt guest name or the raw disk image of a "
36672 "Windows guest."
36673 msgstr ""
36674
36675 #. type: textblock
36676 #: ../tools/virt-win-reg.pl:71
36677 msgid ""
36678 "If I<--merge> is I<not> specified, then the chosen registry key is "
36679 "displayed/exported (recursively).  For example:"
36680 msgstr ""
36681
36682 #. type: verbatim
36683 #: ../tools/virt-win-reg.pl:74
36684 #, no-wrap
36685 msgid ""
36686 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
36687 "\n"
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../tools/virt-win-reg.pl:76
36692 msgid "You can also display single values from within registry keys, for example:"
36693 msgstr ""
36694
36695 #. type: verbatim
36696 #: ../tools/virt-win-reg.pl:79
36697 #, no-wrap
36698 msgid ""
36699 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
36700 " $ virt-win-reg Windows7 $cvkey ProductName\n"
36701 " Windows 7 Enterprise\n"
36702 "\n"
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../tools/virt-win-reg.pl:83
36707 msgid ""
36708 "With I<--merge>, you can merge a textual regedit file into the Windows "
36709 "Registry:"
36710 msgstr ""
36711
36712 #. type: verbatim
36713 #: ../tools/virt-win-reg.pl:86
36714 #, no-wrap
36715 msgid ""
36716 " $ virt-win-reg --merge Windows7 changes.reg\n"
36717 "\n"
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../tools/virt-win-reg.pl:90
36722 msgid ""
36723 "This program is only meant for simple access to the registry.  If you want "
36724 "to do complicated things with the registry, we suggest you download the "
36725 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
36726 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
36727 "L<hivexregedit(1)>."
36728 msgstr ""
36729
36730 #. type: =item
36731 #: ../tools/virt-win-reg.pl:159
36732 msgid "B<--merge>"
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../tools/virt-win-reg.pl:161
36737 msgid ""
36738 "In merge mode, this merges a textual regedit file into the Windows Registry "
36739 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
36740 "displays or exports Registry entries instead."
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../tools/virt-win-reg.pl:165
36745 msgid ""
36746 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
36747 "result in disk corruption.  However exporting (without this flag)  is always "
36748 "safe."
36749 msgstr ""
36750
36751 #. type: =item
36752 #: ../tools/virt-win-reg.pl:173
36753 msgid "B<--encoding> UTF-16LE|ASCII"
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../tools/virt-win-reg.pl:175
36758 msgid ""
36759 "When merging (only), you may need to specify the encoding for strings to be "
36760 "used in the hive file.  This is explained in detail in "
36761 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../tools/virt-win-reg.pl:179
36766 msgid ""
36767 "The default is to use UTF-16LE, which should work with recent versions of "
36768 "Windows."
36769 msgstr ""
36770
36771 #. type: =item
36772 #: ../tools/virt-win-reg.pl:186
36773 msgid "B<--unsafe-printable-strings>"
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../tools/virt-win-reg.pl:188
36778 msgid ""
36779 "When exporting (only), assume strings are UTF-16LE and print them as strings "
36780 "instead of hex sequences.  Remove the final zero codepoint from strings if "
36781 "present."
36782 msgstr ""
36783
36784 #. type: textblock
36785 #: ../tools/virt-win-reg.pl:192
36786 msgid ""
36787 "This is unsafe and does not preserve the fidelity of strings in the original "
36788 "Registry for various reasons:"
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../tools/virt-win-reg.pl:199
36793 msgid ""
36794 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
36795 "other encodings will be corrupted by this transformation."
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../tools/virt-win-reg.pl:204
36800 msgid ""
36801 "Assumes that everything which has type 1 or 2 is really a string and that "
36802 "everything else is not a string, but the type field in real Registries is "
36803 "not reliable."
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../tools/virt-win-reg.pl:210
36808 msgid ""
36809 "Loses information about whether a zero codepoint followed the string in the "
36810 "Registry or not."
36811 msgstr ""
36812
36813 #. type: textblock
36814 #: ../tools/virt-win-reg.pl:215
36815 msgid ""
36816 "This all happens because the Registry itself contains no information about "
36817 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../tools/virt-win-reg.pl:219
36822 msgid ""
36823 "You should only use this option for quick hacking and debugging of the "
36824 "Registry contents, and I<never> use it if the output is going to be passed "
36825 "into another program or stored in another Registry."
36826 msgstr ""
36827
36828 #. type: =head1
36829 #: ../tools/virt-win-reg.pl:556
36830 msgid "SUPPORTED SYSTEMS"
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../tools/virt-win-reg.pl:558
36835 msgid ""
36836 "The program currently supports Windows NT-derived guests starting with "
36837 "Windows XP through to at least Windows 7."
36838 msgstr ""
36839
36840 #. type: textblock
36841 #: ../tools/virt-win-reg.pl:561
36842 msgid "The following Registry keys are supported:"
36843 msgstr ""
36844
36845 #. type: =item
36846 #: ../tools/virt-win-reg.pl:565
36847 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
36848 msgstr ""
36849
36850 #. type: =item
36851 #: ../tools/virt-win-reg.pl:567
36852 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
36853 msgstr ""
36854
36855 #. type: =item
36856 #: ../tools/virt-win-reg.pl:569
36857 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
36858 msgstr ""
36859
36860 #. type: =item
36861 #: ../tools/virt-win-reg.pl:571
36862 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
36863 msgstr ""
36864
36865 #. type: =item
36866 #: ../tools/virt-win-reg.pl:573
36867 msgid "C<HKEY_USERS\\.DEFAULT>"
36868 msgstr ""
36869
36870 #. type: =item
36871 #: ../tools/virt-win-reg.pl:575
36872 msgid "C<HKEY_USERS\\I<SID>>"
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../tools/virt-win-reg.pl:577
36877 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
36878 msgstr ""
36879
36880 #. type: =item
36881 #: ../tools/virt-win-reg.pl:579
36882 msgid "C<HKEY_USERS\\I<username>>"
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../tools/virt-win-reg.pl:581
36887 msgid "where I<username> is a local user name (this is a libguestfs extension)."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../tools/virt-win-reg.pl:585
36892 msgid ""
36893 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
36894 "C<HKEY_USERS>."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../tools/virt-win-reg.pl:588
36899 msgid ""
36900 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
36901 "supported (there is no \"current user\")."
36902 msgstr ""
36903
36904 #. type: =head1
36905 #: ../tools/virt-win-reg.pl:591
36906 msgid "ENCODING"
36907 msgstr ""
36908
36909 #. type: textblock
36910 #: ../tools/virt-win-reg.pl:593
36911 msgid ""
36912 "C<virt-win-reg> expects that regedit files have already been reencoded in "
36913 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
36914 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
36915 "with Windows-style line endings, you may need to reencode the whole file "
36916 "before or after processing."
36917 msgstr ""
36918
36919 #. type: textblock
36920 #: ../tools/virt-win-reg.pl:599
36921 msgid ""
36922 "To reencode a file from Windows format to Linux (before processing it with "
36923 "the I<--merge> option), you would do something like this:"
36924 msgstr ""
36925
36926 #. type: verbatim
36927 #: ../tools/virt-win-reg.pl:602
36928 #, no-wrap
36929 msgid ""
36930 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
36931 "\n"
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../tools/virt-win-reg.pl:604
36936 msgid ""
36937 "To go in the opposite direction, after exporting and before sending the file "
36938 "to a Windows user, do something like this:"
36939 msgstr ""
36940
36941 #. type: verbatim
36942 #: ../tools/virt-win-reg.pl:607
36943 #, no-wrap
36944 msgid ""
36945 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
36946 "\n"
36947 msgstr ""
36948
36949 #. type: textblock
36950 #: ../tools/virt-win-reg.pl:609
36951 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
36952 msgstr ""
36953
36954 #. type: textblock
36955 #: ../tools/virt-win-reg.pl:611
36956 msgid ""
36957 "If you are unsure about the current encoding, use the L<file(1)> command.  "
36958 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
36959 "Windows-style (CRLF) line endings, like this:"
36960 msgstr ""
36961
36962 #. type: verbatim
36963 #: ../tools/virt-win-reg.pl:615
36964 #, no-wrap
36965 msgid ""
36966 " $ file software.reg\n"
36967 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
36968 " with CRLF line terminators\n"
36969 "\n"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../tools/virt-win-reg.pl:619
36974 msgid "This file would need conversion before you could I<--merge> it."
36975 msgstr ""
36976
36977 #. type: =head1
36978 #: ../tools/virt-win-reg.pl:621
36979 msgid "CurrentControlSet etc."
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../tools/virt-win-reg.pl:623
36984 msgid ""
36985 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
36986 "Registry at the level of the hive file, and therefore you cannot modify "
36987 "these."
36988 msgstr ""
36989
36990 #. type: textblock
36991 #: ../tools/virt-win-reg.pl:627
36992 msgid ""
36993 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
36994 "circumstances it might refer to another control set.  The way to find out is "
36995 "to look at the C<HKLM\\SYSTEM\\Select> key:"
36996 msgstr ""
36997
36998 #. type: verbatim
36999 #: ../tools/virt-win-reg.pl:631
37000 #, no-wrap
37001 msgid ""
37002 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37003 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37004 " \"Current\"=dword:00000001\n"
37005 " \"Default\"=dword:00000001\n"
37006 " \"Failed\"=dword:00000000\n"
37007 " \"LastKnownGood\"=dword:00000002\n"
37008 "\n"
37009 msgstr ""
37010
37011 #. type: textblock
37012 #: ../tools/virt-win-reg.pl:638
37013 msgid "\"Current\" is the one which Windows will choose when it boots."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../tools/virt-win-reg.pl:640
37018 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
37019 msgstr ""
37020
37021 #. type: =head1
37022 #: ../tools/virt-win-reg.pl:643
37023 msgid "WINDOWS TIPS"
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../tools/virt-win-reg.pl:645
37028 msgid ""
37029 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37030 "be shut off, else you will get disk corruption."
37031 msgstr ""
37032
37033 #. type: =head2
37034 #: ../tools/virt-win-reg.pl:648
37035 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../tools/virt-win-reg.pl:650
37040 msgid ""
37041 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37042 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37043 "is uploaded into C<C:\\>:"
37044 msgstr ""
37045
37046 #. type: verbatim
37047 #: ../tools/virt-win-reg.pl:654
37048 #, no-wrap
37049 msgid ""
37050 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37051 "\n"
37052 msgstr ""
37053
37054 #. type: textblock
37055 #: ../tools/virt-win-reg.pl:656
37056 msgid "Prepare a regedit file containing the registry change:"
37057 msgstr ""
37058
37059 #. type: verbatim
37060 #: ../tools/virt-win-reg.pl:658
37061 #, no-wrap
37062 msgid ""
37063 " cat > test.reg <<'EOF'\n"
37064 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37065 " \"Test\"=\"c:\\\\test.bat\"\n"
37066 " EOF\n"
37067 "\n"
37068 msgstr ""
37069
37070 #. type: textblock
37071 #: ../tools/virt-win-reg.pl:663
37072 msgid ""
37073 "In this example we use the key C<RunOnce> which means that the script will "
37074 "run precisely once when the first user logs in.  If you want it to run every "
37075 "time a user logs in, replace C<RunOnce> with C<Run>."
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../tools/virt-win-reg.pl:667
37080 msgid "Now update the registry:"
37081 msgstr ""
37082
37083 #. type: verbatim
37084 #: ../tools/virt-win-reg.pl:669
37085 #, no-wrap
37086 msgid ""
37087 " virt-win-reg --merge WindowsGuest test.reg\n"
37088 "\n"
37089 msgstr ""
37090
37091 #. type: =head2
37092 #: ../tools/virt-win-reg.pl:671
37093 msgid "INSTALLING A SERVICE"
37094 msgstr ""
37095
37096 #. type: textblock
37097 #: ../tools/virt-win-reg.pl:673
37098 msgid ""
37099 "This section assumes you are familiar with Windows services, and you either "
37100 "have a program which handles the Windows Service Control Protocol directly "
37101 "or you want to run any program using a service wrapper like SrvAny or the "
37102 "free RHSrvAny."
37103 msgstr ""
37104
37105 #. type: textblock
37106 #: ../tools/virt-win-reg.pl:678
37107 msgid ""
37108 "First upload the program and optionally the service wrapper.  In this case "
37109 "the test program is called C<test.exe> and we are using the RHSrvAny "
37110 "wrapper:"
37111 msgstr ""
37112
37113 #. type: verbatim
37114 #: ../tools/virt-win-reg.pl:682
37115 #, no-wrap
37116 msgid ""
37117 " guestfish -i -d WindowsGuest <<EOF\n"
37118 "   upload rhsrvany.exe /rhsrvany.exe\n"
37119 "   upload test.exe /test.exe\n"
37120 " EOF\n"
37121 "\n"
37122 msgstr ""
37123
37124 #. type: textblock
37125 #: ../tools/virt-win-reg.pl:687
37126 msgid ""
37127 "Prepare a regedit file containing the registry changes.  In this example, "
37128 "the first registry change is needed for the service itself or the service "
37129 "wrapper (if used).  The second registry change is only needed because I am "
37130 "using the RHSrvAny service wrapper."
37131 msgstr ""
37132
37133 #. type: verbatim
37134 #: ../tools/virt-win-reg.pl:692
37135 #, no-wrap
37136 msgid ""
37137 " cat > service.reg <<'EOF'\n"
37138 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37139 " \"Type\"=dword:00000010\n"
37140 " \"Start\"=dword:00000002\n"
37141 " \"ErrorControl\"=dword:00000001\n"
37142 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37143 " \"DisplayName\"=\"RHSrvAny\"\n"
37144 " \"ObjectName\"=\"NetworkService\"\n"
37145 " \n"
37146 msgstr ""
37147
37148 #. type: verbatim
37149 #: ../tools/virt-win-reg.pl:701
37150 #, no-wrap
37151 msgid ""
37152 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37153 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37154 " \"PWD\"=\"c:\\\\Temp\"\n"
37155 " EOF\n"
37156 "\n"
37157 msgstr ""
37158
37159 #. type: textblock
37160 #: ../tools/virt-win-reg.pl:712
37161 msgid ""
37162 "For use of C<ControlSet001> see the section above in this manual page.  You "
37163 "may need to adjust this according to the control set that is in use by the "
37164 "guest."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../tools/virt-win-reg.pl:718
37169 msgid ""
37170 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37171 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37172 "privileged account."
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../tools/virt-win-reg.pl:724
37177 msgid ""
37178 "For the meaning of the magic numbers, see this Microsoft KB article: "
37179 "L<http://support.microsoft.com/kb/103000>."
37180 msgstr ""
37181
37182 #. type: textblock
37183 #: ../tools/virt-win-reg.pl:729
37184 msgid "Update the registry:"
37185 msgstr ""
37186
37187 #. type: verbatim
37188 #: ../tools/virt-win-reg.pl:731
37189 #, no-wrap
37190 msgid ""
37191 " virt-win-reg --merge WindowsGuest service.reg\n"
37192 "\n"
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../tools/virt-win-reg.pl:735
37197 msgid ""
37198 "Be careful when passing parameters containing C<\\> (backslash) in the "
37199 "shell.  Usually you will have to use 'single quotes' or double backslashes "
37200 "(but not both) to protect them from the shell."
37201 msgstr ""
37202
37203 #. type: textblock
37204 #: ../tools/virt-win-reg.pl:739
37205 msgid "Paths and value names are case-insensitive."
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../tools/virt-win-reg.pl:748
37210 msgid ""
37211 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
37212 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
37213 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
37214 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37215 msgstr ""
37216
37217 #. type: verbatim
37218 #: ../tools/virt-win-reg.pl:766
37219 #, no-wrap
37220 msgid ""
37221 " export LIBGUESTFS_DEBUG=1\n"
37222 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
37223 "\n"
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../tools/virt-win-reg.pl:769
37228 msgid ""
37229 "Attach /tmp/virt-win-reg.log to a new bug report at "
37230 "L<https://bugzilla.redhat.com/>"
37231 msgstr ""