Version 1.13.17.
[libguestfs.git] / po-docs / uk.po
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 #
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-04 19:22+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
33 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
37 msgid "NAME"
38 msgstr "НАЗВА"
39
40 #. type: textblock
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
43 msgstr ""
44
45 #. type: =head1
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
57 #: ../test-tool/libguestfs-test-tool.pod:7
58 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
59 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
60 #: ../tools/virt-win-reg.pl:39
61 msgid "SYNOPSIS"
62 msgstr "КОРОТКИЙ ОПИС"
63
64 #. type: verbatim
65 #: ../cat/virt-cat.pod:9
66 #, fuzzy, no-wrap
67 #| msgid ""
68 #| " virt-list-partitions [--options] domname\n"
69 #| "\n"
70 msgid ""
71 " virt-cat [--options] -d domname file [file ...]\n"
72 "\n"
73 msgstr ""
74 " virt-list-partitions [--параметри] назва_домену\n"
75 "\n"
76
77 #. type: verbatim
78 #: ../cat/virt-cat.pod:11
79 #, fuzzy, no-wrap
80 #| msgid ""
81 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
82 #| "\n"
83 msgid ""
84 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
85 "\n"
86 msgstr ""
87 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
88 "\n"
89
90 #. type: textblock
91 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
92 #: ../inspector/virt-inspector.pod:13
93 msgid "Old-style:"
94 msgstr ""
95
96 #. type: verbatim
97 #: ../cat/virt-cat.pod:15
98 #, no-wrap
99 msgid ""
100 " virt-cat domname file\n"
101 "\n"
102 msgstr ""
103
104 #. type: verbatim
105 #: ../cat/virt-cat.pod:17
106 #, no-wrap
107 msgid ""
108 " virt-cat disk.img file\n"
109 "\n"
110 msgstr ""
111
112 #. type: =head1
113 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
114 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
115 #: ../erlang/examples/guestfs-erlang.pod:16
116 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
117 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
118 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
119 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
120 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
121 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
122 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
123 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
124 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
125 #: ../test-tool/libguestfs-test-tool.pod:11
126 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
127 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
128 #: ../tools/virt-win-reg.pl:63
129 msgid "DESCRIPTION"
130 msgstr "ОПИС"
131
132 #. type: textblock
133 #: ../cat/virt-cat.pod:21
134 msgid ""
135 "C<virt-cat> is a command line tool to display the contents of C<file> where "
136 "C<file> exists in the named virtual machine (or disk image)."
137 msgstr ""
138
139 #. type: textblock
140 #: ../cat/virt-cat.pod:24
141 msgid ""
142 "Multiple filenames can be given, in which case they are concatenated "
143 "together.  Each filename must be a full path, starting at the root directory "
144 "(starting with '/')."
145 msgstr ""
146
147 #. type: textblock
148 #: ../cat/virt-cat.pod:28
149 msgid ""
150 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
151 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
152 "(see L</USING GUESTFISH> below)."
153 msgstr ""
154
155 #. type: =head1
156 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
157 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
158 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
159 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
160 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
161 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
162 #: ../tools/virt-tar.pl:50
163 msgid "EXAMPLES"
164 msgstr "ПРИКЛАДИ"
165
166 #. type: textblock
167 #: ../cat/virt-cat.pod:34
168 msgid ""
169 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
170 msgstr ""
171
172 #. type: verbatim
173 #: ../cat/virt-cat.pod:37
174 #, no-wrap
175 msgid ""
176 " virt-cat -d mydomain /etc/fstab\n"
177 "\n"
178 msgstr ""
179
180 #. type: textblock
181 #: ../cat/virt-cat.pod:39
182 msgid "List syslog messages from a VM disk image file:"
183 msgstr ""
184
185 #. type: verbatim
186 #: ../cat/virt-cat.pod:41
187 #, no-wrap
188 msgid ""
189 " virt-cat -a disk.img /var/log/messages | tail\n"
190 "\n"
191 msgstr ""
192
193 #. type: textblock
194 #: ../cat/virt-cat.pod:43
195 msgid "Find out what DHCP IP address a VM acquired:"
196 msgstr ""
197
198 #. type: verbatim
199 #: ../cat/virt-cat.pod:45
200 #, no-wrap
201 msgid ""
202 " virt-cat -d mydomain /var/log/messages | \\\n"
203 "   grep 'dhclient: bound to' | tail\n"
204 "\n"
205 msgstr ""
206
207 #. type: textblock
208 #: ../cat/virt-cat.pod:48
209 msgid "Find out what packages were recently installed:"
210 msgstr ""
211
212 #. type: verbatim
213 #: ../cat/virt-cat.pod:50
214 #, no-wrap
215 msgid ""
216 " virt-cat -d mydomain /var/log/yum.log | tail\n"
217 "\n"
218 msgstr ""
219
220 #. type: textblock
221 #: ../cat/virt-cat.pod:52
222 msgid "Find out who is logged on inside a virtual machine:"
223 msgstr ""
224
225 #. type: verbatim
226 #: ../cat/virt-cat.pod:54
227 #, no-wrap
228 msgid ""
229 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
230 " who /tmp/utmp\n"
231 "\n"
232 msgstr ""
233
234 #. type: textblock
235 #: ../cat/virt-cat.pod:57
236 msgid "or who was logged on:"
237 msgstr ""
238
239 #. type: verbatim
240 #: ../cat/virt-cat.pod:59
241 #, no-wrap
242 msgid ""
243 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
244 " last -f /tmp/wtmp\n"
245 "\n"
246 msgstr ""
247
248 #. type: =head1
249 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
250 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
251 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
252 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
253 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
254 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
255 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
256 #: ../test-tool/libguestfs-test-tool.pod:36
257 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
258 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
259 #: ../tools/virt-win-reg.pl:96
260 msgid "OPTIONS"
261 msgstr "ПАРАМЕТРИ"
262
263 #. type: =item
264 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
265 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
266 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
267 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
268 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
269 #: ../test-tool/libguestfs-test-tool.pod:40
270 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
271 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
272 #: ../tools/virt-win-reg.pl:104
273 msgid "B<--help>"
274 msgstr "B<--help>"
275
276 #. type: textblock
277 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
278 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
279 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
280 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
281 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
282 #: ../tools/virt-win-reg.pl:106
283 msgid "Display brief help."
284 msgstr ""
285
286 #. type: =item
287 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
288 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
289 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
290 #, fuzzy
291 #| msgid "B<-f file>"
292 msgid "B<-a> file"
293 msgstr "B<-f файл>"
294
295 #. type: =item
296 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
297 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
298 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
299 #, fuzzy
300 #| msgid "B<--add image>"
301 msgid "B<--add> file"
302 msgstr "B<--add образ>"
303
304 #. type: textblock
305 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
306 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
307 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
308 msgid ""
309 "Add I<file> which should be a disk image from a virtual machine.  If the "
310 "virtual machine has multiple block devices, you must supply all of them with "
311 "separate I<-a> options."
312 msgstr ""
313
314 #. type: textblock
315 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
316 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
317 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
318 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
319 msgid ""
320 "The format of the disk image is auto-detected.  To override this and force a "
321 "particular format use the I<--format=..> option."
322 msgstr ""
323
324 #. type: =item
325 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
326 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
327 #, fuzzy
328 #| msgid "B<-c URI>"
329 msgid "B<-c> URI"
330 msgstr "B<-c адреса>"
331
332 #. type: =item
333 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
334 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
335 #, fuzzy
336 #| msgid "B<--connect URI>"
337 msgid "B<--connect> URI"
338 msgstr "B<--connect адреса>"
339
340 #. type: textblock
341 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
342 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
343 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
344 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
345 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
346 msgid ""
347 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
348 "to the default libvirt hypervisor."
349 msgstr ""
350
351 #. type: textblock
352 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
353 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
354 msgid ""
355 "If you specify guest block devices directly (I<-a>), then libvirt is not "
356 "used at all."
357 msgstr ""
358
359 #. type: =item
360 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
361 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
362 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
363 msgid "B<-d> guest"
364 msgstr ""
365
366 #. type: =item
367 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
368 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
369 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
370 msgid "B<--domain> guest"
371 msgstr ""
372
373 #. type: textblock
374 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
375 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
376 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
377 msgid ""
378 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
379 "instead of names."
380 msgstr ""
381
382 #. type: =item
383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
385 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
386 msgid "B<--echo-keys>"
387 msgstr "B<--echo-keys>"
388
389 #. type: textblock
390 #: ../cat/virt-cat.pod:100
391 msgid ""
392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
393 "so you cannot see what you are typing.  If you are not worried about Tempest "
394 "attacks and there is no one else in the room you can specify this flag to "
395 "see what you are typing."
396 msgstr ""
397
398 #. type: =item
399 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
400 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
401 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
402 #: ../rescue/virt-rescue.pod:124
403 msgid "B<--format=raw|qcow2|..>"
404 msgstr "B<--format=raw|qcow2|..>"
405
406 #. type: =item
407 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
408 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
409 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
410 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
411 msgid "B<--format>"
412 msgstr "B<--format>"
413
414 #. type: textblock
415 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
416 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
417 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
418 #: ../rescue/virt-rescue.pod:128
419 msgid ""
420 "The default for the I<-a> option is to auto-detect the format of the disk "
421 "image.  Using this forces the disk format for I<-a> options which follow on "
422 "the command line.  Using I<--format> with no argument switches back to auto-"
423 "detection for subsequent I<-a> options."
424 msgstr ""
425
426 #. type: textblock
427 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
428 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
429 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
430 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
431 #: ../src/guestfs.pod:2791
432 msgid "For example:"
433 msgstr "Приклад:"
434
435 #. type: verbatim
436 #: ../cat/virt-cat.pod:116
437 #, fuzzy, no-wrap
438 #| msgid ""
439 #| " guestfish --format=raw -a disk.img\n"
440 #| "\n"
441 msgid ""
442 " virt-cat --format=raw -a disk.img file\n"
443 "\n"
444 msgstr ""
445 " guestfish --format=raw -a disk.img\n"
446 "\n"
447
448 #. type: textblock
449 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
450 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
451 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
452 msgid "forces raw format (no auto-detection) for C<disk.img>."
453 msgstr ""
454
455 #. type: verbatim
456 #: ../cat/virt-cat.pod:120
457 #, fuzzy, no-wrap
458 #| msgid ""
459 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
460 #| "\n"
461 msgid ""
462 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
463 "\n"
464 msgstr ""
465 " guestfish --format=raw -a disk.img --format -a another.img\n"
466 "\n"
467
468 #. type: textblock
469 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
470 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
471 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
479 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
480 #: ../rescue/virt-rescue.pod:144
481 msgid ""
482 "If you have untrusted raw-format guest disk images, you should use this "
483 "option to specify the disk format.  This avoids a possible security problem "
484 "with malicious guests (CVE-2010-3851)."
485 msgstr ""
486
487 #. type: =item
488 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
489 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
490 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
491 msgid "B<--keys-from-stdin>"
492 msgstr "B<--keys-from-stdin>"
493
494 #. type: textblock
495 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
496 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
497 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
498 msgid ""
499 "Read key or passphrase parameters from stdin.  The default is to try to read "
500 "passphrases from the user by opening C</dev/tty>."
501 msgstr ""
502
503 #. type: =item
504 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
505 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
506 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
507 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
508 #: ../sparsify/virt-sparsify.pod:159
509 msgid "B<-v>"
510 msgstr "B<-v>"
511
512 #. type: =item
513 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
514 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
515 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
516 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
517 #: ../sparsify/virt-sparsify.pod:161
518 msgid "B<--verbose>"
519 msgstr "B<--verbose>"
520
521 #. type: textblock
522 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
523 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
524 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
525 #: ../sparsify/virt-sparsify.pod:163
526 msgid "Enable verbose messages for debugging."
527 msgstr ""
528
529 #. type: =item
530 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
531 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
532 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
533 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
534 #: ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
535 msgid "B<-V>"
536 msgstr "B<-V>"
537
538 #. type: =item
539 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
540 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
541 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
542 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
543 #: ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167
544 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70
545 #: ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119
546 #: ../tools/virt-win-reg.pl:112
547 msgid "B<--version>"
548 msgstr "B<--version>"
549
550 #. type: textblock
551 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
552 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
553 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
554 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
555 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
556 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
557 #: ../tools/virt-win-reg.pl:114
558 msgid "Display version number and exit."
559 msgstr "Показати дані щодо версії і завершити роботу."
560
561 #. type: =item
562 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
563 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
564 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
565 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
566 #: ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
567 msgid "B<-x>"
568 msgstr "B<-x>"
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
572 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
573 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
574 #: ../sparsify/virt-sparsify.pod:173
575 msgid "Enable tracing of libguestfs API calls."
576 msgstr ""
577
578 #. type: =head1
579 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
580 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
581 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
582 msgstr ""
583
584 #. type: textblock
585 #: ../cat/virt-cat.pod:154
586 msgid "Previous versions of virt-cat allowed you to write either:"
587 msgstr ""
588
589 #. type: verbatim
590 #: ../cat/virt-cat.pod:156
591 #, fuzzy, no-wrap
592 #| msgid ""
593 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
594 #| "\n"
595 msgid ""
596 " virt-cat disk.img [disk.img ...] file\n"
597 "\n"
598 msgstr ""
599 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
600 "\n"
601
602 #. type: textblock
603 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
604 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
605 #, fuzzy
606 #| msgid "or:"
607 msgid "or"
608 msgstr "або:"
609
610 #. type: verbatim
611 #: ../cat/virt-cat.pod:160
612 #, no-wrap
613 msgid ""
614 " virt-cat guestname file\n"
615 "\n"
616 msgstr ""
617
618 #. type: textblock
619 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
620 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
621 msgid ""
622 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
623 "the confusing case where a disk image might have the same name as a guest."
624 msgstr ""
625
626 #. type: textblock
627 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
628 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
629 msgid "For compatibility the old style is still supported."
630 msgstr ""
631
632 #. type: =head1
633 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
634 msgid "USING GUESTFISH"
635 msgstr ""
636
637 #. type: textblock
638 #: ../cat/virt-cat.pod:170
639 msgid ""
640 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
641 "C<virt-cat> doesn't work."
642 msgstr ""
643
644 #. type: textblock
645 #: ../cat/virt-cat.pod:173
646 msgid "Using C<virt-cat> is approximately equivalent to doing:"
647 msgstr ""
648
649 #. type: verbatim
650 #: ../cat/virt-cat.pod:175
651 #, fuzzy, no-wrap
652 #| msgid ""
653 #| " guestfish --ro -d myguest -i\n"
654 #| "\n"
655 msgid ""
656 " guestfish --ro -i -d domname download file -\n"
657 "\n"
658 msgstr ""
659 " guestfish --ro -d myguest -i\n"
660 "\n"
661
662 #. type: textblock
663 #: ../cat/virt-cat.pod:177
664 msgid ""
665 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
666 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
667 msgstr ""
668
669 #. type: textblock
670 #: ../cat/virt-cat.pod:181
671 msgid ""
672 "The command above uses libguestfs's guest inspection feature and so does not "
673 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
674 "disk images that don't contain guests.  To display a file from a disk image "
675 "directly, use:"
676 msgstr ""
677
678 #. type: verbatim
679 #: ../cat/virt-cat.pod:186
680 #, fuzzy, no-wrap
681 #| msgid ""
682 #| " guestfish [--ro] -i disk.img\n"
683 #| "\n"
684 msgid ""
685 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
686 "\n"
687 msgstr ""
688 " guestfish [--ro] -i disk.img\n"
689 "\n"
690
691 #. type: textblock
692 #: ../cat/virt-cat.pod:188
693 msgid ""
694 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
695 "the disk image, and C<file> is the full path to the file."
696 msgstr ""
697
698 #. type: =head1
699 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
700 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
701 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
702 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
703 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
704 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
705 msgid "SHELL QUOTING"
706 msgstr ""
707
708 #. type: textblock
709 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
710 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
711 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
712 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
713 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
714 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
715 msgid ""
716 "Libvirt guest names can contain arbitrary characters, some of which have "
717 "meaning to the shell such as C<#> and space.  You may need to quote or "
718 "escape these characters on the command line.  See the shell manual page L<sh"
719 "(1)> for details."
720 msgstr ""
721
722 #. type: =head1
723 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
724 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
725 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
726 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
727 #: ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
728 msgid "EXIT STATUS"
729 msgstr ""
730
731 #. type: textblock
732 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
733 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
734 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
735 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
736 msgid ""
737 "This program returns 0 if successful, or non-zero if there was an error."
738 msgstr ""
739
740 #. type: =head1
741 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
742 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
743 #: ../erlang/examples/guestfs-erlang.pod:97
744 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
745 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
746 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
747 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
748 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
749 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
750 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
751 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
752 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3167
753 #: ../test-tool/libguestfs-test-tool.pod:100
754 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
755 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
756 #: ../tools/virt-win-reg.pl:746
757 msgid "SEE ALSO"
758 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
759
760 #. type: textblock
761 #: ../cat/virt-cat.pod:205
762 #, fuzzy
763 #| msgid ""
764 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
765 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
766 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
767 msgid ""
768 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
769 "tar-out(1)>, L<http://libguestfs.org/>."
770 msgstr ""
771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
772 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
773 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
774
775 #. type: =head1
776 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
777 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
778 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
779 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
780 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
781 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
782 msgid "AUTHOR"
783 msgstr "АВТОР"
784
785 #. type: textblock
786 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
787 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
788 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
789 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
790 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
791 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
792 #: ../tools/virt-win-reg.pl:774
793 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
794 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
795
796 #. type: =head1
797 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
798 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
799 #: ../erlang/examples/guestfs-erlang.pod:114
800 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
801 #: ../fish/guestfish.pod:1265 ../fish/virt-copy-in.pod:64
802 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
803 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
804 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
805 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
806 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
807 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
808 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3246
809 #: ../test-tool/libguestfs-test-tool.pod:110
810 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
811 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
812 #: ../tools/virt-win-reg.pl:776
813 msgid "COPYRIGHT"
814 msgstr "АВТОРСЬКІ ПРАВА"
815
816 #. type: textblock
817 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
818 #: ../resize/virt-resize.pod:641
819 #, fuzzy
820 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
821 msgid "Copyright (C) 2010-2011 Red Hat Inc."
822 msgstr "© Red Hat Inc., 2009–2010"
823
824 #. type: textblock
825 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
826 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
827 #: ../fish/guestfish.pod:1270 ../fish/virt-copy-in.pod:69
828 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
829 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
830 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
831 #: ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272
832 #: ../test-tool/libguestfs-test-tool.pod:115
833 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
834 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
835 #: ../tools/virt-win-reg.pl:780
836 msgid ""
837 "This program is free software; you can redistribute it and/or modify it "
838 "under the terms of the GNU General Public License as published by the Free "
839 "Software Foundation; either version 2 of the License, or (at your option) "
840 "any later version."
841 msgstr ""
842
843 #. type: textblock
844 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
845 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
846 #: ../fish/guestfish.pod:1275 ../fish/virt-copy-in.pod:74
847 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
848 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
849 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
850 #: ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277
851 #: ../test-tool/libguestfs-test-tool.pod:120
852 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
853 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
854 #: ../tools/virt-win-reg.pl:785
855 msgid ""
856 "This program is distributed in the hope that it will be useful, but WITHOUT "
857 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
858 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
859 "more details."
860 msgstr ""
861 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
862 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
863 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
864 "дізнатися з GNU General Public License."
865
866 #. type: textblock
867 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
868 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
869 #: ../fish/guestfish.pod:1280 ../fish/virt-copy-in.pod:79
870 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
871 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
872 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
873 #: ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282
874 #: ../test-tool/libguestfs-test-tool.pod:125
875 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
876 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
877 #: ../tools/virt-win-reg.pl:790
878 msgid ""
879 "You should have received a copy of the GNU General Public License along with "
880 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
881 "Ave, Cambridge, MA 02139, USA."
882 msgstr ""
883
884 #. type: textblock
885 #: ../cat/virt-filesystems.pod:5
886 msgid ""
887 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
888 "virtual machine or disk image"
889 msgstr ""
890
891 #. type: verbatim
892 #: ../cat/virt-filesystems.pod:9
893 #, fuzzy, no-wrap
894 #| msgid ""
895 #| " virt-list-partitions [--options] domname\n"
896 #| "\n"
897 msgid ""
898 " virt-filesystems [--options] -d domname\n"
899 "\n"
900 msgstr ""
901 " virt-list-partitions [--параметри] назва_домену\n"
902 "\n"
903
904 #. type: verbatim
905 #: ../cat/virt-filesystems.pod:11
906 #, fuzzy, no-wrap
907 #| msgid ""
908 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
909 #| "\n"
910 msgid ""
911 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
912 "\n"
913 msgstr ""
914 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
915 "\n"
916
917 #. type: textblock
918 #: ../cat/virt-filesystems.pod:15
919 msgid ""
920 "This tool allows you to discover filesystems, partitions, logical volumes, "
921 "and their sizes in a disk image or virtual machine.  It is a replacement for "
922 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
923 msgstr ""
924
925 #. type: textblock
926 #: ../cat/virt-filesystems.pod:20
927 msgid ""
928 "One use for this tool is from shell scripts to iterate over all filesystems "
929 "from a disk image:"
930 msgstr ""
931
932 #. type: verbatim
933 #: ../cat/virt-filesystems.pod:23
934 #, no-wrap
935 msgid ""
936 " for fs in $(virt-filesystems -a disk.img); do\n"
937 "   # ...\n"
938 " done\n"
939 "\n"
940 msgstr ""
941
942 #. type: textblock
943 #: ../cat/virt-filesystems.pod:27
944 msgid ""
945 "Another use is to list partitions before using another tool to modify those "
946 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
947 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
948 msgstr ""
949
950 #. type: textblock
951 #: ../cat/virt-filesystems.pod:32
952 msgid ""
953 "Various command line options control what this program displays.  You need "
954 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
955 "guest respectively.  If you just specify that then the program shows "
956 "filesystems found, one per line, like this:"
957 msgstr ""
958
959 #. type: verbatim
960 #: ../cat/virt-filesystems.pod:37
961 #, no-wrap
962 msgid ""
963 " $ virt-filesystems -a disk.img\n"
964 " /dev/sda1\n"
965 " /dev/vg_guest/lv_root\n"
966 "\n"
967 msgstr ""
968
969 #. type: textblock
970 #: ../cat/virt-filesystems.pod:41
971 msgid ""
972 "If you add I<-l> or I<--long> then the output includes extra information:"
973 msgstr ""
974
975 #. type: verbatim
976 #: ../cat/virt-filesystems.pod:44
977 #, no-wrap
978 msgid ""
979 " $ virt-filesystems -a disk.img -l\n"
980 " Name                   Type         VFS   Label  Size\n"
981 " /dev/sda1              filesystem   ext4  boot   524288000\n"
982 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
983 "\n"
984 msgstr ""
985
986 #. type: textblock
987 #: ../cat/virt-filesystems.pod:49
988 msgid ""
989 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
990 "shown as well:"
991 msgstr ""
992
993 #. type: verbatim
994 #: ../cat/virt-filesystems.pod:52
995 #, no-wrap
996 msgid ""
997 " $ virt-filesystems -a disk.img --extra\n"
998 " /dev/sda1\n"
999 " /dev/vg_guest/lv_root\n"
1000 " /dev/vg_guest/lv_swap\n"
1001 " /dev/vg_guest/lv_data\n"
1002 "\n"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../cat/virt-filesystems.pod:58
1007 msgid ""
1008 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1009 msgstr ""
1010
1011 #. type: verbatim
1012 #: ../cat/virt-filesystems.pod:60
1013 #, no-wrap
1014 msgid ""
1015 " $ virt-filesystems -a disk.img --partitions\n"
1016 " /dev/sda1\n"
1017 " /dev/sda2\n"
1018 "\n"
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../cat/virt-filesystems.pod:64
1023 msgid ""
1024 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1025 "volumes>, I<--block-devices> to list those items."
1026 msgstr ""
1027
1028 #. type: textblock
1029 #: ../cat/virt-filesystems.pod:67
1030 msgid ""
1031 "You can use these options in combination as well (if you want a combination "
1032 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1033 "items fall into several categories (eg. C</dev/sda1> might be both a "
1034 "partition and a filesystem).  These items are listed several times.  To get "
1035 "a list which includes absolutely everything that virt-filesystems knows "
1036 "about, use the I<--all> option."
1037 msgstr ""
1038
1039 #. type: textblock
1040 #: ../cat/virt-filesystems.pod:74
1041 msgid ""
1042 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1043 "uuid> option to display device and filesystem UUIDs in the long output."
1044 msgstr ""
1045
1046 #. type: textblock
1047 #: ../cat/virt-filesystems.pod:78
1048 msgid ""
1049 "I<--all --long --uuid> is a useful combination to display all possible "
1050 "information about everything."
1051 msgstr ""
1052
1053 #. type: verbatim
1054 #: ../cat/virt-filesystems.pod:81
1055 #, no-wrap
1056 msgid ""
1057 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1058 " Name      Type       VFS  Label           Size Parent   UUID\n"
1059 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1060 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1061 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1062 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1063 " /dev/sda  device     -    -               20G  -        -\n"
1064 "\n"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:89
1069 msgid ""
1070 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1071 msgstr ""
1072
1073 #. type: =item
1074 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1075 #, fuzzy
1076 #| msgid "B<--help>"
1077 msgid "B<--all>"
1078 msgstr "B<--help>"
1079
1080 #. type: textblock
1081 #: ../cat/virt-filesystems.pod:112
1082 msgid ""
1083 "Display everything.  This is currently the same as specifying these options: "
1084 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1085 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1086 "added to this list in future)."
1087 msgstr ""
1088
1089 #. type: textblock
1090 #: ../cat/virt-filesystems.pod:117
1091 #, fuzzy
1092 #| msgid "See also L</is-lv>."
1093 msgid "See also I<--long>."
1094 msgstr "Див. також L</is-lv>."
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:119
1098 #, fuzzy
1099 #| msgid "B<--live>"
1100 msgid "B<--blkdevs>"
1101 msgstr "B<--live>"
1102
1103 #. type: =item
1104 #: ../cat/virt-filesystems.pod:121
1105 #, fuzzy
1106 #| msgid "is-blockdev"
1107 msgid "B<--block-devices>"
1108 msgstr "is-blockdev"
1109
1110 #. type: textblock
1111 #: ../cat/virt-filesystems.pod:123
1112 #, fuzzy
1113 #| msgid "is-blockdev"
1114 msgid "Display block devices."
1115 msgstr "is-blockdev"
1116
1117 #. type: =item
1118 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1119 #, fuzzy
1120 #| msgid "B<--csh>"
1121 msgid "B<--csv>"
1122 msgstr "B<--csh>"
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1126 msgid ""
1127 "Write out the results in CSV format (comma-separated values).  This format "
1128 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1129 "ABOUT CSV FORMAT> below."
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../cat/virt-filesystems.pod:150
1134 msgid ""
1135 "When prompting for keys and passphrases, virt-filesystems normally turns "
1136 "echoing off so you cannot see what you are typing.  If you are not worried "
1137 "about Tempest attacks and there is no one else in the room you can specify "
1138 "this flag to see what you are typing."
1139 msgstr ""
1140
1141 #. type: =item
1142 #: ../cat/virt-filesystems.pod:155
1143 #, fuzzy
1144 #| msgid "B<--ro>"
1145 msgid "B<--extra>"
1146 msgstr "B<--ro>"
1147
1148 #. type: textblock
1149 #: ../cat/virt-filesystems.pod:157
1150 msgid ""
1151 "This causes filesystems that are not ordinary, mountable filesystems to be "
1152 "displayed.  This category includes swapspace, and filesystems that are empty "
1153 "or contain unknown data."
1154 msgstr ""
1155
1156 #. type: textblock
1157 #: ../cat/virt-filesystems.pod:161
1158 msgid "This option implies I<--filesystems>."
1159 msgstr ""
1160
1161 #. type: =item
1162 #: ../cat/virt-filesystems.pod:163
1163 #, fuzzy
1164 #| msgid "list-filesystems"
1165 msgid "B<--filesystems>"
1166 msgstr "list-filesystems"
1167
1168 #. type: textblock
1169 #: ../cat/virt-filesystems.pod:165
1170 msgid ""
1171 "Display mountable filesystems.  If no display option was selected then this "
1172 "option is implied."
1173 msgstr ""
1174
1175 #. type: textblock
1176 #: ../cat/virt-filesystems.pod:168
1177 msgid "With I<--extra>, non-mountable filesystems are shown too."
1178 msgstr ""
1179
1180 #. type: verbatim
1181 #: ../cat/virt-filesystems.pod:181
1182 #, fuzzy, no-wrap
1183 #| msgid ""
1184 #| " guestfish --format=raw -a disk.img\n"
1185 #| "\n"
1186 msgid ""
1187 " virt-filesystems --format=raw -a disk.img\n"
1188 "\n"
1189 msgstr ""
1190 " guestfish --format=raw -a disk.img\n"
1191 "\n"
1192
1193 #. type: verbatim
1194 #: ../cat/virt-filesystems.pod:185
1195 #, fuzzy, no-wrap
1196 #| msgid ""
1197 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1198 #| "\n"
1199 msgid ""
1200 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1201 "\n"
1202 msgstr ""
1203 " guestfish --format=raw -a disk.img --format -a another.img\n"
1204 "\n"
1205
1206 #. type: =item
1207 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1208 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1209 #: ../tools/virt-list-partitions.pl:109
1210 msgid "B<-h>"
1211 msgstr "B<-h>"
1212
1213 #. type: =item
1214 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1215 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1216 #, fuzzy
1217 #| msgid "B<-h> | B<--human-readable>"
1218 msgid "B<--human-readable>"
1219 msgstr "B<-h> | B<--human-readable>"
1220
1221 #. type: textblock
1222 #: ../cat/virt-filesystems.pod:198
1223 msgid "In I<--long> mode, display sizes in human-readable format."
1224 msgstr ""
1225
1226 #. type: =item
1227 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1228 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1229 msgid "B<-l>"
1230 msgstr ""
1231
1232 #. type: =item
1233 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1234 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1235 #, fuzzy
1236 #| msgid "B<--ro>"
1237 msgid "B<--long>"
1238 msgstr "B<--ro>"
1239
1240 #. type: textblock
1241 #: ../cat/virt-filesystems.pod:209
1242 msgid "Display extra columns of data (\"long format\")."
1243 msgstr ""
1244
1245 #. type: textblock
1246 #: ../cat/virt-filesystems.pod:211
1247 msgid "A title row is added unless you also specify I<--no-title>."
1248 msgstr ""
1249
1250 #. type: textblock
1251 #: ../cat/virt-filesystems.pod:213
1252 msgid ""
1253 "The extra columns displayed depend on what output you select, and the "
1254 "ordering of columns may change in future versions.  Use the title row, I<--"
1255 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1256 "programs."
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-filesystems.pod:218
1261 msgid ""
1262 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1263 "default is to show raw numbers of I<bytes>."
1264 msgstr ""
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:221
1268 msgid "Use I<--uuid> to display UUIDs too."
1269 msgstr ""
1270
1271 #. type: =item
1272 #: ../cat/virt-filesystems.pod:223
1273 #, fuzzy
1274 #| msgid "B<--live>"
1275 msgid "B<--lvs>"
1276 msgstr "B<--live>"
1277
1278 #. type: =item
1279 #: ../cat/virt-filesystems.pod:225
1280 #, fuzzy
1281 #| msgid "B<--live>"
1282 msgid "B<--logvols>"
1283 msgstr "B<--live>"
1284
1285 #. type: =item
1286 #: ../cat/virt-filesystems.pod:227
1287 #, fuzzy
1288 #| msgid "B<--live>"
1289 msgid "B<--logical-volumes>"
1290 msgstr "B<--live>"
1291
1292 #. type: textblock
1293 #: ../cat/virt-filesystems.pod:229
1294 msgid ""
1295 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1296 "of whether the LVs contain filesystems."
1297 msgstr ""
1298
1299 #. type: =item
1300 #: ../cat/virt-filesystems.pod:232
1301 #, fuzzy
1302 #| msgid "B<--listen>"
1303 msgid "B<--no-title>"
1304 msgstr "B<--listen>"
1305
1306 #. type: textblock
1307 #: ../cat/virt-filesystems.pod:234
1308 msgid "In I<--long> mode, don't add a title row."
1309 msgstr ""
1310
1311 #. type: textblock
1312 #: ../cat/virt-filesystems.pod:236
1313 msgid ""
1314 "Note that the order of the columns is not fixed, and may change in future "
1315 "versions of virt-filesystems, so using this option may give you unexpected "
1316 "surprises."
1317 msgstr ""
1318
1319 #. type: =item
1320 #: ../cat/virt-filesystems.pod:240
1321 #, fuzzy
1322 #| msgid "B<--partition>"
1323 msgid "B<--parts>"
1324 msgstr "B<--partition>"
1325
1326 #. type: =item
1327 #: ../cat/virt-filesystems.pod:242
1328 #, fuzzy
1329 #| msgid "B<--partition>"
1330 msgid "B<--partitions>"
1331 msgstr "B<--partition>"
1332
1333 #. type: textblock
1334 #: ../cat/virt-filesystems.pod:244
1335 msgid ""
1336 "Display partitions.  In this mode, these are displayed irrespective of "
1337 "whether the partitions contain filesystems."
1338 msgstr ""
1339
1340 #. type: =item
1341 #: ../cat/virt-filesystems.pod:247
1342 #, fuzzy
1343 #| msgid "B<--csh>"
1344 msgid "B<--pvs>"
1345 msgstr "B<--csh>"
1346
1347 #. type: =item
1348 #: ../cat/virt-filesystems.pod:249
1349 #, fuzzy
1350 #| msgid "B<--verbose>"
1351 msgid "B<--physvols>"
1352 msgstr "B<--verbose>"
1353
1354 #. type: =item
1355 #: ../cat/virt-filesystems.pod:251
1356 msgid "B<--physical-volumes>"
1357 msgstr ""
1358
1359 #. type: textblock
1360 #: ../cat/virt-filesystems.pod:253
1361 msgid "Display LVM physical volumes."
1362 msgstr ""
1363
1364 #. type: =item
1365 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1366 #, fuzzy
1367 #| msgid "B<--live>"
1368 msgid "B<--uuid>"
1369 msgstr "B<--live>"
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:257
1373 #, fuzzy
1374 #| msgid "B<--csh>"
1375 msgid "B<--uuids>"
1376 msgstr "B<--csh>"
1377
1378 #. type: textblock
1379 #: ../cat/virt-filesystems.pod:259
1380 msgid "In I<--long> mode, display UUIDs as well."
1381 msgstr ""
1382
1383 #. type: =item
1384 #: ../cat/virt-filesystems.pod:273
1385 #, fuzzy
1386 #| msgid "B<--csh>"
1387 msgid "B<--vgs>"
1388 msgstr "B<--csh>"
1389
1390 #. type: =item
1391 #: ../cat/virt-filesystems.pod:275
1392 #, fuzzy
1393 #| msgid "B<--verbose>"
1394 msgid "B<--volgroups>"
1395 msgstr "B<--verbose>"
1396
1397 #. type: =item
1398 #: ../cat/virt-filesystems.pod:277
1399 #, fuzzy
1400 #| msgid "B<--verbose>"
1401 msgid "B<--volume-groups>"
1402 msgstr "B<--verbose>"
1403
1404 #. type: textblock
1405 #: ../cat/virt-filesystems.pod:279
1406 msgid "Display LVM volume groups."
1407 msgstr ""
1408
1409 #. type: =head1
1410 #: ../cat/virt-filesystems.pod:287
1411 msgid "COLUMNS"
1412 msgstr ""
1413
1414 #. type: textblock
1415 #: ../cat/virt-filesystems.pod:289
1416 msgid ""
1417 "Note that columns in the output are subject to reordering and change in "
1418 "future versions of this tool."
1419 msgstr ""
1420
1421 #. type: =item
1422 #: ../cat/virt-filesystems.pod:294
1423 msgid "B<Name>"
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../cat/virt-filesystems.pod:296
1428 msgid "The filesystem, partition, block device or LVM name."
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:298
1433 msgid ""
1434 "For device and partition names these are displayed as canonical libguestfs "
1435 "names, so that for example C</dev/sda2> is the second partition on the first "
1436 "device."
1437 msgstr ""
1438
1439 #. type: textblock
1440 #: ../cat/virt-filesystems.pod:302
1441 msgid ""
1442 "If the I<--long> option is B<not> specified, then only the name column is "
1443 "shown in the output."
1444 msgstr ""
1445
1446 #. type: =item
1447 #: ../cat/virt-filesystems.pod:305
1448 #, fuzzy
1449 #| msgid "B<-N type>"
1450 msgid "B<Type>"
1451 msgstr "B<-N тип>"
1452
1453 #. type: textblock
1454 #: ../cat/virt-filesystems.pod:307
1455 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1456 msgstr ""
1457
1458 #. type: =item
1459 #: ../cat/virt-filesystems.pod:309
1460 msgid "B<VFS>"
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../cat/virt-filesystems.pod:311
1465 msgid ""
1466 "If there is a filesystem, then this column displays the filesystem type if "
1467 "one could be detected, eg. C<ext4>."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:314
1472 msgid "B<Label>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:316
1477 msgid ""
1478 "If the object has a label (used for identifying and mounting filesystems) "
1479 "then this column contains the label."
1480 msgstr ""
1481
1482 #. type: =item
1483 #: ../cat/virt-filesystems.pod:319
1484 #, fuzzy
1485 #| msgid "B<part_size>"
1486 msgid "B<Size>"
1487 msgstr "B<part_size>"
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:321
1491 msgid ""
1492 "The size of the object in bytes.  If the I<--human> option is used then the "
1493 "size is displayed in a human-readable form."
1494 msgstr ""
1495
1496 #. type: =item
1497 #: ../cat/virt-filesystems.pod:324
1498 msgid "B<Parent>"
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:326
1503 msgid ""
1504 "The parent column records the parent relationship between objects.  For "
1505 "example, if the object is a partition, then this column contains the name of "
1506 "the containing device.  If the object is a logical volume, then this column "
1507 "is the name of the volume group."
1508 msgstr ""
1509
1510 #. type: =item
1511 #: ../cat/virt-filesystems.pod:331
1512 msgid "B<UUID>"
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-filesystems.pod:333
1517 msgid ""
1518 "If the object has a UUID (used for identifying and mounting filesystems and "
1519 "block devices) then this column contains the UUID as a string."
1520 msgstr ""
1521
1522 #. type: textblock
1523 #: ../cat/virt-filesystems.pod:337
1524 msgid "The UUID is only displayed if the I<--uuid> option is given."
1525 msgstr ""
1526
1527 #. type: =head1
1528 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1529 #: ../df/virt-df.pod:191
1530 msgid "NOTE ABOUT CSV FORMAT"
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1535 #: ../df/virt-df.pod:193
1536 msgid ""
1537 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1538 "should be easy to parse, but it is definitely not easy to parse."
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1543 #: ../df/virt-df.pod:196
1544 msgid ""
1545 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1546 "reliably.  This example has two columns:"
1547 msgstr ""
1548
1549 #. type: verbatim
1550 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1551 #: ../df/virt-df.pod:199
1552 #, no-wrap
1553 msgid ""
1554 " \"foo,bar\",baz\n"
1555 "\n"
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1560 #: ../df/virt-df.pod:201
1561 msgid ""
1562 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1563 "reliably.  This example has one row:"
1564 msgstr ""
1565
1566 #. type: verbatim
1567 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1568 #: ../df/virt-df.pod:204
1569 #, no-wrap
1570 msgid ""
1571 " \"foo\n"
1572 " bar\",baz\n"
1573 "\n"
1574 msgstr ""
1575
1576 #. type: textblock
1577 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1578 #: ../df/virt-df.pod:207
1579 msgid ""
1580 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1581 "packaged in major Linux distributions)."
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1586 #: ../df/virt-df.pod:210
1587 msgid ""
1588 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1589 "or Python's built-in csv library)."
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1594 #: ../df/virt-df.pod:213
1595 msgid "Most spreadsheets and databases can import CSV directly."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:379
1600 #, fuzzy
1601 #| msgid ""
1602 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1603 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1604 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1605 msgid ""
1606 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1607 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1608 "libguestfs.org/>."
1609 msgstr ""
1610 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1611 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1612 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1616 #: ../tools/virt-win-reg.pl:778
1617 msgid "Copyright (C) 2010 Red Hat Inc."
1618 msgstr ""
1619
1620 #. type: textblock
1621 #: ../cat/virt-ls.pod:5
1622 msgid "virt-ls - List files in a virtual machine"
1623 msgstr ""
1624
1625 #. type: verbatim
1626 #: ../cat/virt-ls.pod:9
1627 #, no-wrap
1628 msgid ""
1629 " virt-ls [--options] -d domname directory [directory ...]\n"
1630 "\n"
1631 msgstr ""
1632
1633 #. type: verbatim
1634 #: ../cat/virt-ls.pod:11
1635 #, fuzzy, no-wrap
1636 #| msgid ""
1637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1638 #| "\n"
1639 msgid ""
1640 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1641 "\n"
1642 msgstr ""
1643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1644 "\n"
1645
1646 #. type: textblock
1647 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1648 msgid "Old style:"
1649 msgstr ""
1650
1651 #. type: verbatim
1652 #: ../cat/virt-ls.pod:15
1653 #, fuzzy, no-wrap
1654 #| msgid ""
1655 #| " virt-list-partitions [--options] domname\n"
1656 #| "\n"
1657 msgid ""
1658 " virt-ls [--options] domname directory\n"
1659 "\n"
1660 msgstr ""
1661 " virt-list-partitions [--параметри] назва_домену\n"
1662 "\n"
1663
1664 #. type: verbatim
1665 #: ../cat/virt-ls.pod:17
1666 #, fuzzy, no-wrap
1667 #| msgid ""
1668 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1669 #| "\n"
1670 msgid ""
1671 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1672 "\n"
1673 msgstr ""
1674 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1675 "\n"
1676
1677 #. type: textblock
1678 #: ../cat/virt-ls.pod:21
1679 msgid ""
1680 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1681 "more from a virtual machine or disk image."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:24
1686 msgid ""
1687 "Multiple directory names can be given, in which case the output from each is "
1688 "concatenated."
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-ls.pod:27
1693 msgid ""
1694 "To list directories from a libvirt guest use the I<-d> option to specify the "
1695 "name of the guest.  For a disk image, use the I<-a> option."
1696 msgstr ""
1697
1698 #. type: textblock
1699 #: ../cat/virt-ls.pod:31
1700 msgid ""
1701 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1702 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1703 "(3)> API."
1704 msgstr ""
1705
1706 #. type: textblock
1707 #: ../cat/virt-ls.pod:37
1708 msgid "Get a list of all files and directories in a virtual machine:"
1709 msgstr ""
1710
1711 #. type: verbatim
1712 #: ../cat/virt-ls.pod:39
1713 #, fuzzy, no-wrap
1714 #| msgid ""
1715 #| " guestfish --ro -d myguest -i\n"
1716 #| "\n"
1717 msgid ""
1718 " virt-ls -R -d guest /\n"
1719 "\n"
1720 msgstr ""
1721 " guestfish --ro -d myguest -i\n"
1722 "\n"
1723
1724 #. type: textblock
1725 #: ../cat/virt-ls.pod:41
1726 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1727 msgstr ""
1728
1729 #. type: verbatim
1730 #: ../cat/virt-ls.pod:43
1731 #, no-wrap
1732 msgid ""
1733 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1734 "\n"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../cat/virt-ls.pod:45
1739 msgid "List all public-writable directories in a Linux virtual machine:"
1740 msgstr ""
1741
1742 #. type: verbatim
1743 #: ../cat/virt-ls.pod:47
1744 #, no-wrap
1745 msgid ""
1746 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1747 "\n"
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-ls.pod:49
1752 msgid "List all Unix domain sockets in a Linux virtual machine:"
1753 msgstr ""
1754
1755 #. type: verbatim
1756 #: ../cat/virt-ls.pod:51
1757 #, no-wrap
1758 msgid ""
1759 " virt-ls -lR -d guest / | grep '^s'\n"
1760 "\n"
1761 msgstr ""
1762
1763 #. type: textblock
1764 #: ../cat/virt-ls.pod:53
1765 msgid "List all regular files with filenames ending in '.png':"
1766 msgstr ""
1767
1768 #. type: verbatim
1769 #: ../cat/virt-ls.pod:55
1770 #, no-wrap
1771 msgid ""
1772 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1773 "\n"
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../cat/virt-ls.pod:57
1778 msgid "To display files larger than 10MB in home directories:"
1779 msgstr ""
1780
1781 #. type: verbatim
1782 #: ../cat/virt-ls.pod:59
1783 #, no-wrap
1784 msgid ""
1785 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1786 "\n"
1787 msgstr ""
1788
1789 #. type: textblock
1790 #: ../cat/virt-ls.pod:61
1791 msgid "Find everything modified in the last 7 days:"
1792 msgstr ""
1793
1794 #. type: verbatim
1795 #: ../cat/virt-ls.pod:63
1796 #, no-wrap
1797 msgid ""
1798 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-ls.pod:65
1804 msgid "Find regular files modified in the last 24 hours:"
1805 msgstr ""
1806
1807 #. type: verbatim
1808 #: ../cat/virt-ls.pod:67
1809 #, no-wrap
1810 msgid ""
1811 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1812 "\n"
1813 msgstr ""
1814
1815 #. type: =head2
1816 #: ../cat/virt-ls.pod:69
1817 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-ls.pod:71
1822 msgid ""
1823 "Find the differences between files in a guest and an earlier snapshot of the "
1824 "same guest."
1825 msgstr ""
1826
1827 #. type: verbatim
1828 #: ../cat/virt-ls.pod:74
1829 #, no-wrap
1830 msgid ""
1831 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1832 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1833 " diff -u old new | less\n"
1834 "\n"
1835 msgstr ""
1836
1837 #. type: textblock
1838 #: ../cat/virt-ls.pod:78
1839 msgid ""
1840 "The commands above won't find files where the content has changed but the "
1841 "metadata (eg. file size and modification date) is the same.  To do that, you "
1842 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1843 "checksum> can be quite slow since it has to read and compute a checksum of "
1844 "every regular file in the virtual machine."
1845 msgstr ""
1846
1847 #. type: =head1
1848 #: ../cat/virt-ls.pod:84
1849 msgid "OUTPUT MODES"
1850 msgstr ""
1851
1852 #. type: textblock
1853 #: ../cat/virt-ls.pod:86
1854 msgid ""
1855 "C<virt-ls> has four output modes, controlled by different combinations of "
1856 "the I<-l> and I<-R> options."
1857 msgstr ""
1858
1859 #. type: =head2
1860 #: ../cat/virt-ls.pod:89
1861 msgid "SIMPLE LISTING"
1862 msgstr ""
1863
1864 #. type: textblock
1865 #: ../cat/virt-ls.pod:91
1866 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:93
1871 #, no-wrap
1872 msgid ""
1873 " $ virt-ls -d guest /\n"
1874 " bin\n"
1875 " boot\n"
1876 " [etc.]\n"
1877 "\n"
1878 msgstr ""
1879
1880 #. type: =head2
1881 #: ../cat/virt-ls.pod:98
1882 #, fuzzy
1883 #| msgid "MOUNTING"
1884 msgid "LONG LISTING"
1885 msgstr "МОНТУВАННЯ"
1886
1887 #. type: textblock
1888 #: ../cat/virt-ls.pod:100
1889 msgid ""
1890 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1891 "(more specifically, like the C<guestfs_ll> function)."
1892 msgstr ""
1893
1894 #. type: verbatim
1895 #: ../cat/virt-ls.pod:103
1896 #, no-wrap
1897 msgid ""
1898 " $ virt-ls -l -d guest /\n"
1899 " total 204\n"
1900 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1901 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1902 " [etc.]\n"
1903 "\n"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:109
1908 msgid ""
1909 "Note that while this is useful for displaying a directory, do not try "
1910 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1911 "instead."
1912 msgstr ""
1913
1914 #. type: =head2
1915 #: ../cat/virt-ls.pod:113
1916 msgid "RECURSIVE LISTING"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:115
1921 msgid ""
1922 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1923 "and directories recursively:"
1924 msgstr ""
1925
1926 #. type: verbatim
1927 #: ../cat/virt-ls.pod:118
1928 #, no-wrap
1929 msgid ""
1930 " $ virt-ls -R -d guest /tmp\n"
1931 " foo\n"
1932 " foo/bar\n"
1933 " [etc.]\n"
1934 "\n"
1935 msgstr ""
1936
1937 #. type: textblock
1938 #: ../cat/virt-ls.pod:123
1939 msgid ""
1940 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1941 "converts C<\\0> characters to C<\\n>."
1942 msgstr ""
1943
1944 #. type: =head2
1945 #: ../cat/virt-ls.pod:126
1946 msgid "RECURSIVE LONG LISTING"
1947 msgstr ""
1948
1949 #. type: textblock
1950 #: ../cat/virt-ls.pod:128
1951 msgid ""
1952 "Using I<-lR> options together changes the output to display directories "
1953 "recursively, with file stats, and optionally other features such as "
1954 "checksums and extended attributes."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-ls.pod:132
1959 msgid ""
1960 "Most of the interesting features of C<virt-ls> are only available when using "
1961 "I<-lR> mode."
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-ls.pod:135
1966 msgid ""
1967 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1968 "you cannot use the output in another program (because filenames can contain "
1969 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1970 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1971 "on you by creating filenames with embedded newline characters.  To B<safely> "
1972 "parse the output in another program, use the I<--csv> (Comma-Separated "
1973 "Values) option."
1974 msgstr ""
1975
1976 #. type: textblock
1977 #: ../cat/virt-ls.pod:143
1978 msgid ""
1979 "Note that this output format is completely unrelated to the C<ls -lR> "
1980 "command."
1981 msgstr ""
1982
1983 #. type: verbatim
1984 #: ../cat/virt-ls.pod:146
1985 #, no-wrap
1986 msgid ""
1987 " $ virt-ls -lR -d guest /bin\n"
1988 " d 0555       4096 /bin\n"
1989 " - 0755        123 /bin/alsaunmute\n"
1990 " - 0755      28328 /bin/arch\n"
1991 " l 0777          4 /bin/awk -> gawk\n"
1992 " - 0755      27216 /bin/basename\n"
1993 " - 0755     943360 /bin/bash\n"
1994 " [etc.]\n"
1995 "\n"
1996 msgstr ""
1997
1998 #. type: textblock
1999 #: ../cat/virt-ls.pod:155
2000 msgid "These basic fields are always shown:"
2001 msgstr ""
2002
2003 #. type: =item
2004 #: ../cat/virt-ls.pod:159
2005 #, fuzzy
2006 #| msgid "vfs-type"
2007 msgid "type"
2008 msgstr "vfs-type"
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:161
2012 msgid ""
2013 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2014 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2015 "link), C<s> (socket) or C<u> (unknown)."
2016 msgstr ""
2017
2018 #. type: =item
2019 #: ../cat/virt-ls.pod:171
2020 #, fuzzy
2021 #| msgid "version"
2022 msgid "permissions"
2023 msgstr "version"
2024
2025 #. type: textblock
2026 #: ../cat/virt-ls.pod:173
2027 msgid "The Unix permissions, displayed as a 4 digit octal number."
2028 msgstr ""
2029
2030 #. type: =item
2031 #: ../cat/virt-ls.pod:175
2032 #, fuzzy
2033 #| msgid "filesize"
2034 msgid "size"
2035 msgstr "filesize"
2036
2037 #. type: textblock
2038 #: ../cat/virt-ls.pod:177
2039 msgid ""
2040 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2041 "readable> option is given, in which case this is shown as a human-readable "
2042 "number."
2043 msgstr ""
2044
2045 #. type: =head2
2046 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2047 msgid "path"
2048 msgstr ""
2049
2050 #. type: textblock
2051 #: ../cat/virt-ls.pod:183
2052 msgid "The full path of the file or directory."
2053 msgstr ""
2054
2055 #. type: =item
2056 #: ../cat/virt-ls.pod:185
2057 #, fuzzy
2058 #| msgid "readlink"
2059 msgid "link"
2060 msgstr "readlink"
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:187
2064 msgid "For symbolic links only, the link target."
2065 msgstr ""
2066
2067 #. type: textblock
2068 #: ../cat/virt-ls.pod:191
2069 msgid ""
2070 "In I<-lR> mode, additional command line options enable the display of more "
2071 "fields."
2072 msgstr ""
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:194
2076 msgid ""
2077 "With the I<--uids> flag, these additional fields are displayed before the "
2078 "path:"
2079 msgstr ""
2080
2081 #. type: =item
2082 #: ../cat/virt-ls.pod:199
2083 #, fuzzy
2084 #| msgid "lvuuid"
2085 msgid "uid"
2086 msgstr "lvuuid"
2087
2088 #. type: =item
2089 #: ../cat/virt-ls.pod:201
2090 #, fuzzy
2091 #| msgid "vguuid"
2092 msgid "gid"
2093 msgstr "vguuid"
2094
2095 #. type: textblock
2096 #: ../cat/virt-ls.pod:203
2097 msgid ""
2098 "The UID and GID of the owner of the file (displayed numerically).  Note "
2099 "these only make sense in the context of a Unix-like guest."
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-ls.pod:208
2104 msgid "With the I<--times> flag, these additional fields are displayed:"
2105 msgstr ""
2106
2107 #. type: =item
2108 #: ../cat/virt-ls.pod:212
2109 #, fuzzy
2110 #| msgid "time"
2111 msgid "atime"
2112 msgstr "time"
2113
2114 #. type: textblock
2115 #: ../cat/virt-ls.pod:214
2116 msgid "The time of last access."
2117 msgstr ""
2118
2119 #. type: =item
2120 #: ../cat/virt-ls.pod:216
2121 #, fuzzy
2122 #| msgid "time"
2123 msgid "mtime"
2124 msgstr "time"
2125
2126 #. type: textblock
2127 #: ../cat/virt-ls.pod:218
2128 msgid "The time of last modification."
2129 msgstr ""
2130
2131 #. type: =item
2132 #: ../cat/virt-ls.pod:220
2133 #, fuzzy
2134 #| msgid "time"
2135 msgid "ctime"
2136 msgstr "time"
2137
2138 #. type: textblock
2139 #: ../cat/virt-ls.pod:222
2140 msgid "The time of last status change."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-ls.pod:226
2145 msgid ""
2146 "The time fields are displayed as string dates and times, unless one of the "
2147 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:229
2152 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2153 msgstr ""
2154
2155 #. type: =item
2156 #: ../cat/virt-ls.pod:233
2157 #, fuzzy
2158 #| msgid "zero-device"
2159 msgid "device"
2160 msgstr "zero-device"
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:235
2164 msgid ""
2165 "The device containing the file (displayed as major:minor).  This may not "
2166 "match devices as known to the guest."
2167 msgstr ""
2168
2169 #. type: =item
2170 #: ../cat/virt-ls.pod:238
2171 msgid "inode"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:240
2176 msgid "The inode number."
2177 msgstr ""
2178
2179 #. type: =item
2180 #: ../cat/virt-ls.pod:242
2181 #, fuzzy
2182 #| msgid "readlink"
2183 msgid "nlink"
2184 msgstr "readlink"
2185
2186 #. type: textblock
2187 #: ../cat/virt-ls.pod:244
2188 msgid "The number of hard links."
2189 msgstr ""
2190
2191 #. type: =item
2192 #: ../cat/virt-ls.pod:246
2193 msgid "rdev"
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-ls.pod:248
2198 msgid ""
2199 "For block and char special files, the device (displayed as major:minor)."
2200 msgstr ""
2201
2202 #. type: =item
2203 #: ../cat/virt-ls.pod:251
2204 #, fuzzy
2205 #| msgid "C<blocksize>"
2206 msgid "blocks"
2207 msgstr "C<blocksize>"
2208
2209 #. type: textblock
2210 #: ../cat/virt-ls.pod:253
2211 msgid "The number of 512 byte blocks allocated to the file."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:257
2216 msgid ""
2217 "With the I<--checksum> flag, the checksum of the file contents is shown "
2218 "(only for regular files).  Computing file checksums can take a considerable "
2219 "amount of time."
2220 msgstr ""
2221
2222 #. type: =item
2223 #: ../cat/virt-ls.pod:280
2224 #, fuzzy
2225 #| msgid "checksum"
2226 msgid "B<--checksum>"
2227 msgstr "checksum"
2228
2229 #. type: =item
2230 #: ../cat/virt-ls.pod:282
2231 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:284
2236 msgid ""
2237 "Display checksum over file contents for regular files.  With no argument, "
2238 "this defaults to using I<md5>.  Using an argument, you can select the "
2239 "checksum type to use."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2244 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2245 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2246 msgid ""
2247 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2248 "LISTING> above."
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../cat/virt-ls.pod:316
2253 msgid ""
2254 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2255 "so you cannot see what you are typing.  If you are not worried about Tempest "
2256 "attacks and there is no one else in the room you can specify this flag to "
2257 "see what you are typing."
2258 msgstr ""
2259
2260 #. type: =item
2261 #: ../cat/virt-ls.pod:321
2262 #, fuzzy
2263 #| msgid "B<--no-dest-paths>"
2264 msgid "B<--extra-stats>"
2265 msgstr "B<--no-dest-paths>"
2266
2267 #. type: textblock
2268 #: ../cat/virt-ls.pod:323
2269 msgid "Display extra stats."
2270 msgstr ""
2271
2272 #. type: verbatim
2273 #: ../cat/virt-ls.pod:339
2274 #, fuzzy, no-wrap
2275 #| msgid ""
2276 #| " guestfish --format=raw -a disk.img\n"
2277 #| "\n"
2278 msgid ""
2279 " virt-ls --format=raw -a disk.img /dir\n"
2280 "\n"
2281 msgstr ""
2282 " guestfish --format=raw -a disk.img\n"
2283 "\n"
2284
2285 #. type: verbatim
2286 #: ../cat/virt-ls.pod:343
2287 #, fuzzy, no-wrap
2288 #| msgid ""
2289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2290 #| "\n"
2291 msgid ""
2292 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2293 "\n"
2294 msgstr ""
2295 " guestfish --format=raw -a disk.img --format -a another.img\n"
2296 "\n"
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:356
2300 msgid "Display file sizes in human-readable format."
2301 msgstr ""
2302
2303 #. type: =item
2304 #: ../cat/virt-ls.pod:370
2305 msgid "B<-R>"
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:372
2310 #, fuzzy
2311 #| msgid "B<--live>"
2312 msgid "B<--recursive>"
2313 msgstr "B<--live>"
2314
2315 #. type: textblock
2316 #: ../cat/virt-ls.pod:374
2317 msgid ""
2318 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2319 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2320 "LISTING>."
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:378
2325 msgid ""
2326 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2327 "LONG LISTING>."
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:381
2332 msgid ""
2333 "C<virt-ls -R> produces a recursive list of files starting at the named "
2334 "directory.  See L</RECURSIVE LISTING>."
2335 msgstr ""
2336
2337 #. type: textblock
2338 #: ../cat/virt-ls.pod:384
2339 msgid ""
2340 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2341 "parsed.  See L</RECURSIVE LONG LISTING>."
2342 msgstr ""
2343
2344 #. type: =item
2345 #: ../cat/virt-ls.pod:387
2346 #, fuzzy
2347 #| msgid "B<--live>"
2348 msgid "B<--times>"
2349 msgstr "B<--live>"
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:389
2353 msgid "Display time fields."
2354 msgstr ""
2355
2356 #. type: =item
2357 #: ../cat/virt-ls.pod:394
2358 #, fuzzy
2359 #| msgid "B<--echo-keys>"
2360 msgid "B<--time-days>"
2361 msgstr "B<--echo-keys>"
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:396
2365 msgid "Display time fields as days before now (negative if in the future)."
2366 msgstr ""
2367
2368 #. type: textblock
2369 #: ../cat/virt-ls.pod:398
2370 msgid ""
2371 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2372 "of the file is between 0 and 86399 seconds."
2373 msgstr ""
2374
2375 #. type: =item
2376 #: ../cat/virt-ls.pod:404
2377 #, fuzzy
2378 #| msgid "B<--live>"
2379 msgid "B<--time-relative>"
2380 msgstr "B<--live>"
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:406
2384 msgid "Display time fields as seconds before now (negative if in the future)."
2385 msgstr ""
2386
2387 #. type: =item
2388 #: ../cat/virt-ls.pod:411
2389 #, fuzzy
2390 #| msgid "I<--timeout N>"
2391 msgid "B<--time-t>"
2392 msgstr "I<--timeout N>"
2393
2394 #. type: textblock
2395 #: ../cat/virt-ls.pod:413
2396 msgid "Display time fields as seconds since the Unix epoch."
2397 msgstr ""
2398
2399 #. type: =item
2400 #: ../cat/virt-ls.pod:418
2401 #, fuzzy
2402 #| msgid "B<--csh>"
2403 msgid "B<--uids>"
2404 msgstr "B<--csh>"
2405
2406 #. type: textblock
2407 #: ../cat/virt-ls.pod:420
2408 msgid "Display UID and GID fields."
2409 msgstr ""
2410
2411 #. type: textblock
2412 #: ../cat/virt-ls.pod:445
2413 msgid "Previous versions of virt-ls allowed you to write either:"
2414 msgstr ""
2415
2416 #. type: verbatim
2417 #: ../cat/virt-ls.pod:447
2418 #, fuzzy, no-wrap
2419 #| msgid ""
2420 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2421 #| "\n"
2422 msgid ""
2423 " virt-ls disk.img [disk.img ...] /dir\n"
2424 "\n"
2425 msgstr ""
2426 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2427 "\n"
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:451
2431 #, fuzzy, no-wrap
2432 #| msgid ""
2433 #| " inspect-get-hostname root\n"
2434 #| "\n"
2435 msgid ""
2436 " virt-ls guestname /dir\n"
2437 "\n"
2438 msgstr ""
2439 " inspect-get-hostname корінь\n"
2440 "\n"
2441
2442 #. type: textblock
2443 #: ../cat/virt-ls.pod:497
2444 #, fuzzy
2445 #| msgid ""
2446 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2447 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2448 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2449 msgid ""
2450 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2451 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2452 "L<http://libguestfs.org/>."
2453 msgstr ""
2454 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2455 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2456 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2460 #: ../rescue/virt-rescue.pod:302
2461 #, fuzzy
2462 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2463 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2464 msgstr "© Red Hat Inc., 2009–2010"
2465
2466 #. type: textblock
2467 #: ../df/virt-df.pod:5
2468 msgid "virt-df - Display free space on virtual filesystems"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../df/virt-df.pod:9
2473 #, fuzzy, no-wrap
2474 #| msgid ""
2475 #| " virt-list-partitions [--options] domname\n"
2476 #| "\n"
2477 msgid ""
2478 " virt-df [--options]\n"
2479 "\n"
2480 msgstr ""
2481 " virt-list-partitions [--параметри] назва_домену\n"
2482 "\n"
2483
2484 #. type: verbatim
2485 #: ../df/virt-df.pod:11
2486 #, fuzzy, no-wrap
2487 #| msgid ""
2488 #| " virt-list-partitions [--options] domname\n"
2489 #| "\n"
2490 msgid ""
2491 " virt-df [--options] -d domname\n"
2492 "\n"
2493 msgstr ""
2494 " virt-list-partitions [--параметри] назва_домену\n"
2495 "\n"
2496
2497 #. type: verbatim
2498 #: ../df/virt-df.pod:13
2499 #, fuzzy, no-wrap
2500 #| msgid ""
2501 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2502 #| "\n"
2503 msgid ""
2504 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2505 "\n"
2506 msgstr ""
2507 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2508 "\n"
2509
2510 #. type: verbatim
2511 #: ../df/virt-df.pod:17
2512 #, fuzzy, no-wrap
2513 #| msgid ""
2514 #| " virt-list-partitions [--options] domname\n"
2515 #| "\n"
2516 msgid ""
2517 " virt-df [--options] domname\n"
2518 "\n"
2519 msgstr ""
2520 " virt-list-partitions [--параметри] назва_домену\n"
2521 "\n"
2522
2523 #. type: verbatim
2524 #: ../df/virt-df.pod:19
2525 #, fuzzy, no-wrap
2526 #| msgid ""
2527 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2528 #| "\n"
2529 msgid ""
2530 " virt-df [--options] disk.img [disk.img ...]\n"
2531 "\n"
2532 msgstr ""
2533 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2534 "\n"
2535
2536 #. type: textblock
2537 #: ../df/virt-df.pod:23
2538 msgid ""
2539 "C<virt-df> is a command line tool to display free space on virtual machine "
2540 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2541 "allocated to a virtual machine, but can look inside disk images to see how "
2542 "much space is really being used."
2543 msgstr ""
2544
2545 #. type: textblock
2546 #: ../df/virt-df.pod:28
2547 msgid ""
2548 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2549 "to get a list of all active and inactive guests, and performs a C<df>-type "
2550 "operation on each one in turn, printing out the results."
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../df/virt-df.pod:32
2555 msgid ""
2556 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2557 "type operation on either the single named libvirt domain, or on the disk "
2558 "image(s) listed on the command line (which must all belong to a single VM).  "
2559 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2560 "guest>.  If you want to run on multiple guests, then you have to invoke "
2561 "C<virt-df> multiple times."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../df/virt-df.pod:39
2566 msgid ""
2567 "Use the I<--csv> option to get a format which can be easily parsed by other "
2568 "programs.  Other options are similar to the standard L<df(1)> command."
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../df/virt-df.pod:45
2573 msgid ""
2574 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2575 "output human-readable:"
2576 msgstr ""
2577
2578 #. type: verbatim
2579 #: ../df/virt-df.pod:48
2580 #, no-wrap
2581 msgid ""
2582 " # virt-df -d F14x64 -h\n"
2583 " Filesystem                       Size     Used  Available  Use%\n"
2584 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2585 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2586 "\n"
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../df/virt-df.pod:53
2591 msgid "Show disk usage for a disk image file called C<test.img>:"
2592 msgstr ""
2593
2594 #. type: verbatim
2595 #: ../df/virt-df.pod:55
2596 #, no-wrap
2597 msgid ""
2598 " $ virt-df -a test1.img\n"
2599 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2600 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2601 "\n"
2602 msgstr ""
2603
2604 #. type: verbatim
2605 #: ../df/virt-df.pod:112
2606 #, fuzzy, no-wrap
2607 #| msgid ""
2608 #| " guestfish --format=raw -a disk.img\n"
2609 #| "\n"
2610 msgid ""
2611 " virt-df --format=raw -a disk.img\n"
2612 "\n"
2613 msgstr ""
2614 " guestfish --format=raw -a disk.img\n"
2615 "\n"
2616
2617 #. type: verbatim
2618 #: ../df/virt-df.pod:116
2619 #, fuzzy, no-wrap
2620 #| msgid ""
2621 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2622 #| "\n"
2623 msgid ""
2624 " virt-df --format=raw -a disk.img --format -a another.img\n"
2625 "\n"
2626 msgstr ""
2627 " guestfish --format=raw -a disk.img --format -a another.img\n"
2628 "\n"
2629
2630 #. type: textblock
2631 #: ../df/virt-df.pod:129
2632 msgid "Print sizes in human-readable format."
2633 msgstr ""
2634
2635 #. type: textblock
2636 #: ../df/virt-df.pod:131
2637 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2638 msgstr ""
2639
2640 #. type: =item
2641 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2642 msgid "B<-i>"
2643 msgstr "B<-i>"
2644
2645 #. type: =item
2646 #: ../df/virt-df.pod:135
2647 #, fuzzy
2648 #| msgid "B<--live>"
2649 msgid "B<--inodes>"
2650 msgstr "B<--live>"
2651
2652 #. type: textblock
2653 #: ../df/virt-df.pod:137
2654 msgid "Print inodes instead of blocks."
2655 msgstr ""
2656
2657 #. type: =item
2658 #: ../df/virt-df.pod:139
2659 #, fuzzy
2660 #| msgid "B<--merge>"
2661 msgid "B<--one-per-guest>"
2662 msgstr "B<--merge>"
2663
2664 #. type: textblock
2665 #: ../df/virt-df.pod:141
2666 msgid ""
2667 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2668 "disks from several guests to a single libguestfs appliance."
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../df/virt-df.pod:144
2673 msgid "You might use this option in the following circumstances:"
2674 msgstr ""
2675
2676 #. type: =item
2677 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2678 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2679 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2680 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2681 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2682 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2683 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2684 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2685 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2686 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2687 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2688 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2689 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2690 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2691 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2692 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2693 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2694 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2695 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2696 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2697 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2698 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2699 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2700 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2701 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2702 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2703 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2704 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2705 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
2706 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
2707 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
2708 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
2709 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2710 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2711 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2712 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2713 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
2714 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2715 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
2716 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
2717 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
2718 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
2719 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
2720 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
2721 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
2722 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
2723 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
2724 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
2725 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
2726 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
2727 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
2728 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
2729 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
2730 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
2731 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
2732 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
2733 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
2734 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
2735 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
2736 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2959
2737 #: ../src/guestfs.pod:2964 ../src/guestfs.pod:2968 ../src/guestfs.pod:2972
2738 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2990 ../src/guestfs.pod:2995
2739 #: ../src/guestfs.pod:3223 ../src/guestfs.pod:3227 ../src/guestfs.pod:3231
2740 #: ../src/guestfs.pod:3235 ../tools/virt-win-reg.pl:197
2741 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
2742 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
2743 #: ../tools/virt-win-reg.pl:722
2744 msgid "*"
2745 msgstr "*"
2746
2747 #. type: textblock
2748 #: ../df/virt-df.pod:150
2749 msgid ""
2750 "If you think an untrusted guest might actively try to exploit the libguestfs "
2751 "appliance kernel, then this prevents one guest from interfering with the "
2752 "stats printed for another guest."
2753 msgstr ""
2754
2755 #. type: textblock
2756 #: ../df/virt-df.pod:156
2757 msgid ""
2758 "If the kernel has a bug which stops it from accessing a filesystem in one "
2759 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2760 "and report stats for further guests."
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../df/virt-df.pod:165
2765 msgid ""
2766 "Print UUIDs instead of names.  This is useful for following a guest even "
2767 "when the guest is migrated or renamed, or when two guests happen to have the "
2768 "same name."
2769 msgstr ""
2770
2771 #. type: textblock
2772 #: ../df/virt-df.pod:169
2773 msgid ""
2774 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2775 "images, we still print the disk image name even when this option is "
2776 "specified."
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../df/virt-df.pod:229
2781 msgid ""
2782 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2783 "libguestfs.org/>."
2784 msgstr ""
2785
2786 #. type: textblock
2787 #: ../edit/virt-edit.pod:5
2788 msgid "virt-edit - Edit a file in a virtual machine"
2789 msgstr ""
2790
2791 #. type: verbatim
2792 #: ../edit/virt-edit.pod:9
2793 #, fuzzy, no-wrap
2794 #| msgid ""
2795 #| " virt-list-partitions [--options] domname\n"
2796 #| "\n"
2797 msgid ""
2798 " virt-edit [--options] -d domname file [file ...]\n"
2799 "\n"
2800 msgstr ""
2801 " virt-list-partitions [--параметри] назва_домену\n"
2802 "\n"
2803
2804 #. type: verbatim
2805 #: ../edit/virt-edit.pod:11
2806 #, fuzzy, no-wrap
2807 #| msgid ""
2808 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2809 #| "\n"
2810 msgid ""
2811 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2812 "\n"
2813 msgstr ""
2814 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2815 "\n"
2816
2817 #. type: verbatim
2818 #: ../edit/virt-edit.pod:13
2819 #, no-wrap
2820 msgid ""
2821 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2822 "\n"
2823 msgstr ""
2824
2825 #. type: verbatim
2826 #: ../edit/virt-edit.pod:17
2827 #, no-wrap
2828 msgid ""
2829 " virt-edit domname file\n"
2830 "\n"
2831 msgstr ""
2832
2833 #. type: verbatim
2834 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2835 #, fuzzy, no-wrap
2836 #| msgid ""
2837 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2838 #| "\n"
2839 msgid ""
2840 " virt-edit disk.img [disk.img ...] file\n"
2841 "\n"
2842 msgstr ""
2843 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2844 "\n"
2845
2846 #. type: =head1
2847 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2848 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2849 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2850 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2851 msgid "WARNING"
2852 msgstr "ПОПЕРЕДЖЕННЯ"
2853
2854 #. type: textblock
2855 #: ../edit/virt-edit.pod:23
2856 msgid ""
2857 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2858 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2859 "doing this, but doesn't catch all cases."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../edit/virt-edit.pod:29
2864 msgid ""
2865 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2866 "exists in the named virtual machine (or disk image)."
2867 msgstr ""
2868
2869 #. type: textblock
2870 #: ../edit/virt-edit.pod:32
2871 msgid ""
2872 "Multiple filenames can be given, in which case they are each edited in "
2873 "turn.  Each filename must be a full path, starting at the root directory "
2874 "(starting with '/')."
2875 msgstr ""
2876
2877 #. type: textblock
2878 #: ../edit/virt-edit.pod:36
2879 msgid "If you want to just view a file, use L<virt-cat(1)>."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../edit/virt-edit.pod:38
2884 msgid ""
2885 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2886 "USING GUESTFISH> below)."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../edit/virt-edit.pod:41
2891 msgid ""
2892 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2893 "that and much more."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../edit/virt-edit.pod:46
2898 msgid "Edit the named files interactively:"
2899 msgstr ""
2900
2901 #. type: verbatim
2902 #: ../edit/virt-edit.pod:48
2903 #, no-wrap
2904 msgid ""
2905 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2906 "\n"
2907 msgstr ""
2908
2909 #. type: verbatim
2910 #: ../edit/virt-edit.pod:50
2911 #, no-wrap
2912 msgid ""
2913 " virt-edit -d mydomain /etc/passwd\n"
2914 "\n"
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../edit/virt-edit.pod:52
2919 msgid "For Windows guests, some Windows paths are understood:"
2920 msgstr ""
2921
2922 #. type: verbatim
2923 #: ../edit/virt-edit.pod:54
2924 #, no-wrap
2925 msgid ""
2926 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2927 "\n"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../edit/virt-edit.pod:56
2932 msgid ""
2933 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2934 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2935 msgstr ""
2936
2937 #. type: verbatim
2938 #: ../edit/virt-edit.pod:60
2939 #, no-wrap
2940 msgid ""
2941 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2942 "\n"
2943 msgstr ""
2944
2945 #. type: =item
2946 #: ../edit/virt-edit.pod:81
2947 msgid "B<-b> extension"
2948 msgstr ""
2949
2950 #. type: =item
2951 #: ../edit/virt-edit.pod:83
2952 msgid "B<--backup> extension"
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../edit/virt-edit.pod:85
2957 msgid ""
2958 "Create a backup of the original file I<in the guest disk image>.  The backup "
2959 "has the original filename with C<extension> added."
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../edit/virt-edit.pod:88
2964 msgid ""
2965 "Usually the first character of C<extension> would be a dot C<.> so you would "
2966 "write:"
2967 msgstr ""
2968
2969 #. type: verbatim
2970 #: ../edit/virt-edit.pod:91
2971 #, no-wrap
2972 msgid ""
2973 " virt-edit -b .orig [etc]\n"
2974 "\n"
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../edit/virt-edit.pod:93
2979 msgid "By default, no backup file is made."
2980 msgstr ""
2981
2982 #. type: =item
2983 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2984 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2985 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2986 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2987 msgid "B<-c URI>"
2988 msgstr "B<-c адреса>"
2989
2990 #. type: =item
2991 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2992 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2993 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2994 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2995 msgid "B<--connect URI>"
2996 msgstr "B<--connect адреса>"
2997
2998 #. type: textblock
2999 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3000 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3001 #: ../tools/virt-win-reg.pl:135
3002 msgid ""
3003 "If you specify guest block devices directly, then libvirt is not used at all."
3004 msgstr ""
3005
3006 #. type: textblock
3007 #: ../edit/virt-edit.pod:114
3008 msgid ""
3009 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3010 "off so you cannot see what you are typing.  If you are not worried about "
3011 "Tempest attacks and there is no one else in the room you can specify this "
3012 "flag to see what you are typing."
3013 msgstr ""
3014
3015 #. type: =item
3016 #: ../edit/virt-edit.pod:119
3017 msgid "B<-e> EXPR"
3018 msgstr ""
3019
3020 #. type: =item
3021 #: ../edit/virt-edit.pod:121
3022 #, fuzzy
3023 #| msgid "B<--help>"
3024 msgid "B<--expr> EXPR"
3025 msgstr "B<--help>"
3026
3027 #. type: textblock
3028 #: ../edit/virt-edit.pod:123
3029 msgid ""
3030 "Instead of launching the external editor, non-interactively apply the Perl "
3031 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3032 "EDITING> below."
3033 msgstr ""
3034
3035 #. type: textblock
3036 #: ../edit/virt-edit.pod:127
3037 msgid ""
3038 "Be careful to properly quote the expression to prevent it from being altered "
3039 "by the shell."
3040 msgstr ""
3041
3042 #. type: textblock
3043 #: ../edit/virt-edit.pod:130
3044 msgid "Note that this option is only available when Perl 5 is installed."
3045 msgstr ""
3046
3047 #. type: =item
3048 #: ../edit/virt-edit.pod:132
3049 #, fuzzy
3050 #| msgid "B<--format=raw|qcow2|..>"
3051 msgid "B<--format> raw|qcow2|..."
3052 msgstr "B<--format=raw|qcow2|..>"
3053
3054 #. type: verbatim
3055 #: ../edit/virt-edit.pod:143
3056 #, fuzzy, no-wrap
3057 #| msgid ""
3058 #| " guestfish --format=raw -a disk.img\n"
3059 #| "\n"
3060 msgid ""
3061 " virt-edit --format=raw -a disk.img file\n"
3062 "\n"
3063 msgstr ""
3064 " guestfish --format=raw -a disk.img\n"
3065 "\n"
3066
3067 #. type: verbatim
3068 #: ../edit/virt-edit.pod:147
3069 #, fuzzy, no-wrap
3070 #| msgid ""
3071 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3072 #| "\n"
3073 msgid ""
3074 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3075 "\n"
3076 msgstr ""
3077 " guestfish --format=raw -a disk.img --format -a another.img\n"
3078 "\n"
3079
3080 #. type: textblock
3081 #: ../edit/virt-edit.pod:181
3082 msgid "Previous versions of virt-edit allowed you to write either:"
3083 msgstr ""
3084
3085 #. type: verbatim
3086 #: ../edit/virt-edit.pod:187
3087 #, fuzzy, no-wrap
3088 #| msgid ""
3089 #| " edit filename\n"
3090 #| "\n"
3091 msgid ""
3092 " virt-edit guestname file\n"
3093 "\n"
3094 msgstr ""
3095 " edit назва_файла\n"
3096 "\n"
3097
3098 #. type: =head1
3099 #: ../edit/virt-edit.pod:195
3100 msgid "NON-INTERACTIVE EDITING"
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../edit/virt-edit.pod:197
3105 msgid ""
3106 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3107 "administrator can interactively edit the file."
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../edit/virt-edit.pod:200
3112 msgid ""
3113 "There are two ways also to use C<virt-edit> from scripts in order to make "
3114 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3115 "like this, it's less error-prone to write scripts directly using the "
3116 "libguestfs API and Augeas for configuration file editing.)"
3117 msgstr ""
3118
3119 #. type: textblock
3120 #: ../edit/virt-edit.pod:206
3121 msgid ""
3122 "The first method is to temporarily set C<$EDITOR> to any script or program "
3123 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3124 "update C<tmpfile> in place however it likes."
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../edit/virt-edit.pod:210
3129 msgid ""
3130 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3131 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3132 "instances of C<foo> with C<bar> in a file:"
3133 msgstr ""
3134
3135 #. type: verbatim
3136 #: ../edit/virt-edit.pod:214
3137 #, no-wrap
3138 msgid ""
3139 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3140 "\n"
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../edit/virt-edit.pod:216
3145 msgid ""
3146 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3147 "For example to delete root's password you could do:"
3148 msgstr ""
3149
3150 #. type: verbatim
3151 #: ../edit/virt-edit.pod:219
3152 #, no-wrap
3153 msgid ""
3154 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3155 "\n"
3156 msgstr ""
3157
3158 #. type: textblock
3159 #: ../edit/virt-edit.pod:221
3160 msgid ""
3161 "What really happens is that the snippet is evaluated as a Perl expression "
3162 "for each line of the file.  The line, including the final C<\\n>, is passed "
3163 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../edit/virt-edit.pod:226
3168 msgid ""
3169 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3170 "C<apache> user account from the password file you can do:"
3171 msgstr ""
3172
3173 #. type: verbatim
3174 #: ../edit/virt-edit.pod:229
3175 #, no-wrap
3176 msgid ""
3177 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3178 "\n"
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../edit/virt-edit.pod:231
3183 msgid ""
3184 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3185 "the end of the file is rather difficult this way since there is no concept "
3186 "of \"last line of the file\" - your expression just doesn't get called "
3187 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3188 "want to do this."
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../edit/virt-edit.pod:237
3193 msgid ""
3194 "The variable C<$lineno> contains the current line number.  As is "
3195 "traditional, the first line in the file is number C<1>."
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../edit/virt-edit.pod:240
3200 msgid ""
3201 "The return value from the expression is ignored, but the expression may call "
3202 "C<die> in order to abort the whole program, leaving the original file "
3203 "untouched."
3204 msgstr ""
3205
3206 #. type: textblock
3207 #: ../edit/virt-edit.pod:244
3208 msgid ""
3209 "Remember when matching the end of a line that C<$_> may contain the final C<"
3210 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3211 "newline then neither of these.  Thus to match or substitute some text at the "
3212 "end of a line, use this regular expression:"
3213 msgstr ""
3214
3215 #. type: verbatim
3216 #: ../edit/virt-edit.pod:249
3217 #, no-wrap
3218 msgid ""
3219 " /some text(\\r?\\n)?$/\n"
3220 "\n"
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../edit/virt-edit.pod:251
3225 msgid ""
3226 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3227 "$_> itself (since that would remove all newlines from the file):"
3228 msgstr ""
3229
3230 #. type: verbatim
3231 #: ../edit/virt-edit.pod:255
3232 #, no-wrap
3233 msgid ""
3234 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3235 "\n"
3236 msgstr ""
3237
3238 #. type: =head1
3239 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3240 msgid "WINDOWS PATHS"
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../edit/virt-edit.pod:259
3245 msgid ""
3246 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3247 "paths (eg. C<E:\\foo\\bar.txt>)."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../edit/virt-edit.pod:262
3252 msgid "If and only if the guest is running Windows then:"
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../edit/virt-edit.pod:268
3257 msgid ""
3258 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3259 "to the correct filesystem."
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../edit/virt-edit.pod:273
3264 msgid ""
3265 "Any backslash (C<\\>) characters in the path are replaced with forward "
3266 "slashes so that libguestfs can process it."
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:278
3271 msgid ""
3272 "The path is resolved case insensitively to locate the file that should be "
3273 "edited."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../edit/virt-edit.pod:283
3278 msgid "There are some known shortcomings:"
3279 msgstr ""
3280
3281 #. type: textblock
3282 #: ../edit/virt-edit.pod:289
3283 msgid "Some NTFS symbolic links may not be followed correctly."
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../edit/virt-edit.pod:293
3288 msgid "NTFS junction points that cross filesystems are not followed."
3289 msgstr ""
3290
3291 #. type: textblock
3292 #: ../edit/virt-edit.pod:299
3293 msgid ""
3294 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3295 "C<virt-edit> doesn't work."
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../edit/virt-edit.pod:302
3300 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3301 msgstr ""
3302
3303 #. type: verbatim
3304 #: ../edit/virt-edit.pod:304
3305 #, fuzzy, no-wrap
3306 #| msgid ""
3307 #| " guestfish --ro -d myguest -i\n"
3308 #| "\n"
3309 msgid ""
3310 " guestfish --rw -i -d domname edit /file\n"
3311 "\n"
3312 msgstr ""
3313 " guestfish --ro -d myguest -i\n"
3314 "\n"
3315
3316 #. type: textblock
3317 #: ../edit/virt-edit.pod:306
3318 msgid ""
3319 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3320 "path to the file."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../edit/virt-edit.pod:309
3325 msgid ""
3326 "The command above uses libguestfs's guest inspection feature and so does not "
3327 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3328 "disk images that don't contain guests.  To edit a file on a disk image "
3329 "directly, use:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../edit/virt-edit.pod:314
3334 #, fuzzy, no-wrap
3335 #| msgid ""
3336 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3337 #| "\n"
3338 msgid ""
3339 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3340 "\n"
3341 msgstr ""
3342 " guestfish --format=raw -a disk.img --format -a another.img\n"
3343 "\n"
3344
3345 #. type: textblock
3346 #: ../edit/virt-edit.pod:316
3347 msgid ""
3348 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3349 "the disk image to edit, and C</file> is the full path to the file."
3350 msgstr ""
3351
3352 #. type: textblock
3353 #: ../edit/virt-edit.pod:320
3354 msgid ""
3355 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3356 "C<write> or C<upload> instead:"
3357 msgstr ""
3358
3359 #. type: verbatim
3360 #: ../edit/virt-edit.pod:323
3361 #, fuzzy, no-wrap
3362 #| msgid ""
3363 #| " guestfish --ro -d myguest -i\n"
3364 #| "\n"
3365 msgid ""
3366 " guestfish --rw -i -d domname touch /newfile\n"
3367 "\n"
3368 msgstr ""
3369 " guestfish --ro -d myguest -i\n"
3370 "\n"
3371
3372 #. type: verbatim
3373 #: ../edit/virt-edit.pod:325
3374 #, no-wrap
3375 msgid ""
3376 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3377 "\n"
3378 msgstr ""
3379
3380 #. type: verbatim
3381 #: ../edit/virt-edit.pod:327
3382 #, no-wrap
3383 msgid ""
3384 " guestfish --rw -i -d domname upload localfile /newfile\n"
3385 "\n"
3386 msgstr ""
3387
3388 #. type: =head1
3389 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3390 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3391 #: ../src/guestfs.pod:3106 ../test-tool/libguestfs-test-tool.pod:95
3392 msgid "ENVIRONMENT VARIABLES"
3393 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3394
3395 #. type: =item
3396 #: ../edit/virt-edit.pod:333
3397 #, fuzzy
3398 #| msgid "EDITOR"
3399 msgid "C<EDITOR>"
3400 msgstr "РЕДАКТОР"
3401
3402 #. type: textblock
3403 #: ../edit/virt-edit.pod:335
3404 msgid ""
3405 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3406 "\"emacs -nw\">"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../edit/virt-edit.pod:338
3411 msgid "If not set, C<vi> is used."
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../edit/virt-edit.pod:356
3416 #, fuzzy
3417 #| msgid ""
3418 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3419 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3420 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3421 msgid ""
3422 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3423 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3424 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3425 msgstr ""
3426 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3427 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3428 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3429
3430 #. type: textblock
3431 #: ../erlang/examples/guestfs-erlang.pod:5
3432 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3433 msgstr ""
3434
3435 #. type: verbatim
3436 #: ../erlang/examples/guestfs-erlang.pod:9
3437 #, no-wrap
3438 msgid ""
3439 " {ok, G} = guestfs:create(),\n"
3440 " ok = guestfs:add_drive_opts(G, Disk,\n"
3441 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3442 " ok = guestfs:launch(G),\n"
3443 " [Device] = guestfs:list_devices(G),\n"
3444 " ok = guestfs:close(G).\n"
3445 "\n"
3446 msgstr ""
3447
3448 #. type: textblock
3449 #: ../erlang/examples/guestfs-erlang.pod:18
3450 msgid ""
3451 "This manual page documents how to call libguestfs from the Erlang "
3452 "programming language.  This page just documents the differences from the C "
3453 "API and gives some examples.  If you are not familiar with using libguestfs, "
3454 "you also need to read L<guestfs(3)>."
3455 msgstr ""
3456
3457 #. type: =head2
3458 #: ../erlang/examples/guestfs-erlang.pod:23
3459 msgid "OPENING AND CLOSING THE HANDLE"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../erlang/examples/guestfs-erlang.pod:25
3464 msgid ""
3465 "The Erlang bindings are implemented using an external program called C<erl-"
3466 "guestfs>.  This program must be on the current PATH, or else you should "
3467 "specify the full path to the program:"
3468 msgstr ""
3469
3470 #. type: verbatim
3471 #: ../erlang/examples/guestfs-erlang.pod:29
3472 #, fuzzy, no-wrap
3473 #| msgid ""
3474 #| " g = guestfs_create ();\n"
3475 #| " \n"
3476 msgid ""
3477 " {ok, G} = guestfs:create().\n"
3478 "\n"
3479 msgstr ""
3480 " g = guestfs_create ();\n"
3481 " \n"
3482
3483 #. type: verbatim
3484 #: ../erlang/examples/guestfs-erlang.pod:31
3485 #, no-wrap
3486 msgid ""
3487 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3488 "\n"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../erlang/examples/guestfs-erlang.pod:33
3493 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3494 msgstr ""
3495
3496 #. type: textblock
3497 #: ../erlang/examples/guestfs-erlang.pod:36
3498 msgid "To close the handle:"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../erlang/examples/guestfs-erlang.pod:38
3503 #, fuzzy, no-wrap
3504 #| msgid ""
3505 #| " g = guestfs_create ();\n"
3506 #| " \n"
3507 msgid ""
3508 " ok = guestfs:close(G).\n"
3509 "\n"
3510 msgstr ""
3511 " g = guestfs_create ();\n"
3512 " \n"
3513
3514 #. type: =head2
3515 #: ../erlang/examples/guestfs-erlang.pod:40
3516 #, fuzzy
3517 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3518 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3519 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3520
3521 #. type: textblock
3522 #: ../erlang/examples/guestfs-erlang.pod:42
3523 msgid ""
3524 "For functions that take optional arguments, the first arguments are the non-"
3525 "optional ones.  The last argument is a list of tuples supplying the "
3526 "remaining optional arguments."
3527 msgstr ""
3528
3529 #. type: verbatim
3530 #: ../erlang/examples/guestfs-erlang.pod:46
3531 #, fuzzy, no-wrap
3532 #| msgid ""
3533 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3534 #| "                                va_list args);\n"
3535 #| "\n"
3536 msgid ""
3537 " ok = guestfs:add_drive_opts(G, Disk,\n"
3538 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3539 "\n"
3540 msgstr ""
3541 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3542 "                                va_list args);\n"
3543 "\n"
3544
3545 #. type: textblock
3546 #: ../erlang/examples/guestfs-erlang.pod:49
3547 msgid "If the last argument would be an empty list, you can also omit it:"
3548 msgstr ""
3549
3550 #. type: verbatim
3551 #: ../erlang/examples/guestfs-erlang.pod:51
3552 #, fuzzy, no-wrap
3553 #| msgid ""
3554 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3555 #| "\n"
3556 msgid ""
3557 " ok = guestfs:add_drive_opts(G, Disk).\n"
3558 "\n"
3559 msgstr ""
3560 " guestfs_add_drive_opts (g, filename, -1);\n"
3561 "\n"
3562
3563 #. type: =head2
3564 #: ../erlang/examples/guestfs-erlang.pod:53
3565 msgid "RETURN VALUES AND ERRORS"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../erlang/examples/guestfs-erlang.pod:55
3570 msgid ""
3571 "On success, most functions return a C<Result> term (which could be a list, "
3572 "string, tuple etc.).  If there is nothing for the function to return, then "
3573 "the atom C<ok> is returned."
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../erlang/examples/guestfs-erlang.pod:59
3578 msgid "On error, you would see one of the following tuples:"
3579 msgstr ""
3580
3581 #. type: =item
3582 #: ../erlang/examples/guestfs-erlang.pod:63
3583 msgid "C<{error, Msg, Errno}>"
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../erlang/examples/guestfs-erlang.pod:65
3588 msgid "This indicates an ordinary error from the function."
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../erlang/examples/guestfs-erlang.pod:67
3593 msgid ""
3594 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3595 "(integer)."
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../erlang/examples/guestfs-erlang.pod:70
3600 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3601 msgstr ""
3602
3603 #. type: =item
3604 #: ../erlang/examples/guestfs-erlang.pod:72
3605 msgid "C<{unknown, Function}>"
3606 msgstr ""
3607
3608 #. type: textblock
3609 #: ../erlang/examples/guestfs-erlang.pod:74
3610 msgid ""
3611 "This indicates that the function you called is not known.  Generally this "
3612 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3613 "which you should not do."
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../erlang/examples/guestfs-erlang.pod:78
3618 msgid "C<Function> is the name of the unknown function."
3619 msgstr ""
3620
3621 #. type: =item
3622 #: ../erlang/examples/guestfs-erlang.pod:80
3623 msgid "C<{unknownarg, Arg}>"
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../erlang/examples/guestfs-erlang.pod:82
3628 msgid ""
3629 "This indicates that you called a function with optional arguments, with an "
3630 "unknown argument name."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../erlang/examples/guestfs-erlang.pod:85
3635 msgid "C<Arg> is the name of the unknown argument."
3636 msgstr ""
3637
3638 #. type: =head1
3639 #: ../erlang/examples/guestfs-erlang.pod:89
3640 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3641 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3642 #: ../python/examples/guestfs-python.pod:34
3643 #: ../ruby/examples/guestfs-ruby.pod:28
3644 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../erlang/examples/guestfs-erlang.pod:91
3649 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3650 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3651 #: ../python/examples/guestfs-python.pod:36
3652 #: ../ruby/examples/guestfs-ruby.pod:30
3653 #, fuzzy
3654 #| msgid "EXAMPLE"
3655 msgid "@EXAMPLE1@"
3656 msgstr "ПРИКЛАД"
3657
3658 #. type: =head1
3659 #: ../erlang/examples/guestfs-erlang.pod:93
3660 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3661 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3662 #: ../python/examples/guestfs-python.pod:38
3663 #: ../ruby/examples/guestfs-ruby.pod:32
3664 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../erlang/examples/guestfs-erlang.pod:95
3669 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3670 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3671 #: ../python/examples/guestfs-python.pod:40
3672 #: ../ruby/examples/guestfs-ruby.pod:34
3673 #, fuzzy
3674 #| msgid "EXAMPLE"
3675 msgid "@EXAMPLE2@"
3676 msgstr "ПРИКЛАД"
3677
3678 #. type: textblock
3679 #: ../erlang/examples/guestfs-erlang.pod:99
3680 #, fuzzy
3681 #| msgid ""
3682 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3683 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3684 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3685 msgid ""
3686 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3687 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3688 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
3689 msgstr ""
3690 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3691 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3692 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3693
3694 #. type: =head1
3695 #: ../erlang/examples/guestfs-erlang.pod:110
3696 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3697 #: ../fish/guestfish.pod:1261 ../fish/virt-copy-in.pod:60
3698 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3699 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3700 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3701 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3702 #: ../python/examples/guestfs-python.pod:54
3703 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3242
3704 #: ../test-tool/libguestfs-test-tool.pod:106
3705 msgid "AUTHORS"
3706 msgstr "АВТОРИ"
3707
3708 #. type: textblock
3709 #: ../erlang/examples/guestfs-erlang.pod:112
3710 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3711 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:62
3712 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3713 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3714 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3715 #: ../perl/examples/guestfs-perl.pod:54
3716 #: ../python/examples/guestfs-python.pod:56
3717 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3244
3718 #: ../test-tool/libguestfs-test-tool.pod:108
3719 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../erlang/examples/guestfs-erlang.pod:116
3724 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3725 #, fuzzy
3726 #| msgid "Copyright (C) 2009 Red Hat Inc."
3727 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3728 msgstr "© Red Hat Inc., 2009"
3729
3730 #. type: textblock
3731 #: ../erlang/examples/guestfs-erlang.pod:118
3732 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3733 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3734 #: ../perl/examples/guestfs-perl.pod:60
3735 #: ../python/examples/guestfs-python.pod:62
3736 #: ../ruby/examples/guestfs-ruby.pod:56
3737 msgid ""
3738 "The examples in this manual page may be freely copied, modified and "
3739 "distributed without any restrictions."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../erlang/examples/guestfs-erlang.pod:121
3744 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3745 #: ../java/examples/guestfs-java.pod:69
3746 #: ../ocaml/examples/guestfs-ocaml.pod:102
3747 #: ../perl/examples/guestfs-perl.pod:63
3748 #: ../python/examples/guestfs-python.pod:65
3749 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3251
3750 msgid ""
3751 "This library is free software; you can redistribute it and/or modify it "
3752 "under the terms of the GNU Lesser General Public License as published by the "
3753 "Free Software Foundation; either version 2 of the License, or (at your "
3754 "option) any later version."
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../erlang/examples/guestfs-erlang.pod:126
3759 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3760 #: ../java/examples/guestfs-java.pod:74
3761 #: ../ocaml/examples/guestfs-ocaml.pod:107
3762 #: ../perl/examples/guestfs-perl.pod:68
3763 #: ../python/examples/guestfs-python.pod:70
3764 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3256
3765 msgid ""
3766 "This library is distributed in the hope that it will be useful, but WITHOUT "
3767 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3768 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3769 "for more details."
3770 msgstr ""
3771
3772 #. type: textblock
3773 #: ../erlang/examples/guestfs-erlang.pod:131
3774 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3775 #: ../java/examples/guestfs-java.pod:79
3776 #: ../ocaml/examples/guestfs-ocaml.pod:112
3777 #: ../perl/examples/guestfs-perl.pod:73
3778 #: ../python/examples/guestfs-python.pod:75
3779 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3261
3780 msgid ""
3781 "You should have received a copy of the GNU Lesser General Public License "
3782 "along with this library; if not, write to the Free Software Foundation, "
3783 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../examples/guestfs-examples.pod:5
3788 msgid "guestfs-examples - Examples of using libguestfs from C"
3789 msgstr ""
3790
3791 #. type: verbatim
3792 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3793 #, no-wrap
3794 msgid ""
3795 " #include <guestfs.h>\n"
3796 " \n"
3797 msgstr ""
3798 " #include <guestfs.h>\n"
3799 " \n"
3800
3801 #. type: verbatim
3802 #: ../examples/guestfs-examples.pod:11
3803 #, no-wrap
3804 msgid ""
3805 " guestfs_h *g = guestfs_create ();\n"
3806 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3807 " guestfs_launch (g);\n"
3808 "\n"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3813 #, no-wrap
3814 msgid ""
3815 " cc prog.c -o prog -lguestfs\n"
3816 "or:\n"
3817 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3818 "\n"
3819 msgstr ""
3820 " cc prog.c -o prog -lguestfs\n"
3821 "або:\n"
3822 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3823 "\n"
3824
3825 #. type: textblock
3826 #: ../examples/guestfs-examples.pod:21
3827 msgid ""
3828 "This manual page contains examples of calling libguestfs from the C "
3829 "programming language.  If you are not familiar with using libguestfs, you "
3830 "also need to read L<guestfs(3)>."
3831 msgstr ""
3832
3833 #. type: textblock
3834 #: ../examples/guestfs-examples.pod:35
3835 #, fuzzy
3836 #| msgid ""
3837 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3838 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3839 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3840 msgid ""
3841 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3842 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3843 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3844 msgstr ""
3845 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3846 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3847 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3848
3849 #. type: textblock
3850 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3851 #: ../python/examples/guestfs-python.pod:60
3852 #: ../ruby/examples/guestfs-ruby.pod:54
3853 #, fuzzy
3854 #| msgid "Copyright (C) 2009 Red Hat Inc."
3855 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3856 msgstr "© Red Hat Inc., 2009"
3857
3858 #. type: =end
3859 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3860 msgid "comment"
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../examples/guestfs-recipes.pod:5
3865 msgid ""
3866 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3867 "here.  The only way which works for both sorts of output is to just write "
3868 "the URL directly.  Do NOT use L<...> for URLs."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../examples/guestfs-recipes.pod:9
3873 msgid ""
3874 "We break with tradition here and don't use ALL CAPS for the section "
3875 "headings, as this makes them much easier to read."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../examples/guestfs-recipes.pod:16
3880 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3881 msgstr ""
3882
3883 #. type: textblock
3884 #: ../examples/guestfs-recipes.pod:20
3885 msgid ""
3886 "This page contains recipes for and links to things you can do using "
3887 "libguestfs, L<guestfish(1)> and the virt tools."
3888 msgstr ""
3889
3890 #. type: =head1
3891 #: ../examples/guestfs-recipes.pod:23
3892 msgid "Audit a virtual machine for setuid files"
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../examples/guestfs-recipes.pod:25
3897 msgid ""
3898 "The link below contains a small program which can be used to audit a Linux "
3899 "virtual machine to see what setuid and setgid files it contains."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../examples/guestfs-recipes.pod:28
3904 msgid ""
3905 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3906 "files/#content"
3907 msgstr ""
3908
3909 #. type: =head1
3910 #: ../examples/guestfs-recipes.pod:30
3911 msgid "Change the background image in a Windows XP VM"
3912 msgstr ""
3913
3914 #. type: textblock
3915 #: ../examples/guestfs-recipes.pod:32
3916 msgid ""
3917 "The links below explain how to use L<guestfish(1)> to change the background "
3918 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3919 "be substantially different for each version of Windows."
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:37
3924 msgid ""
3925 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3926 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3927 msgstr ""
3928
3929 #. type: =head1
3930 #: ../examples/guestfs-recipes.pod:40
3931 msgid "Cloning a virtual machine (Linux)"
3932 msgstr ""
3933
3934 #. type: textblock
3935 #: ../examples/guestfs-recipes.pod:42
3936 msgid ""
3937 "The guestfish technique described in the link below works well for most "
3938 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3939 "slightly."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../examples/guestfs-recipes.pod:46
3944 msgid ""
3945 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3946 "vm/#content"
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../examples/guestfs-recipes.pod:48
3951 msgid ""
3952 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3953 "discussion."
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../examples/guestfs-recipes.pod:51
3958 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3959 msgstr ""
3960
3961 #. type: =head1
3962 #: ../examples/guestfs-recipes.pod:53
3963 msgid "Cloning a virtual machine (Windows)"
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../examples/guestfs-recipes.pod:55
3968 msgid ""
3969 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3970 "straightforward.  Currently there is code in the Aeolus Oz project which "
3971 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3972 "we may add sysprepping ability."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../examples/guestfs-recipes.pod:60
3977 msgid ""
3978 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3979 "list/2011-May/msg00019.html"
3980 msgstr ""
3981
3982 #. type: =head1
3983 #: ../examples/guestfs-recipes.pod:63
3984 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3985 msgstr ""
3986
3987 #. type: textblock
3988 #: ../examples/guestfs-recipes.pod:65
3989 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3990 msgstr ""
3991
3992 #. type: verbatim
3993 #: ../examples/guestfs-recipes.pod:67
3994 #, no-wrap
3995 msgid ""
3996 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3997 "\n"
3998 msgstr ""
3999
4000 #. type: textblock
4001 #: ../examples/guestfs-recipes.pod:69
4002 msgid "To export just a subdirectory, eg. C</files>, do:"
4003 msgstr ""
4004
4005 #. type: verbatim
4006 #: ../examples/guestfs-recipes.pod:71
4007 #, no-wrap
4008 msgid ""
4009 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4010 "\n"
4011 msgstr ""
4012
4013 #. type: =head1
4014 #: ../examples/guestfs-recipes.pod:73
4015 msgid "Create empty disk images"
4016 msgstr ""
4017
4018 #. type: textblock
4019 #: ../examples/guestfs-recipes.pod:75
4020 msgid ""
4021 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4022 "The useful guide below explains the options available."
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../examples/guestfs-recipes.pod:78
4027 msgid ""
4028 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4029 "#content"
4030 msgstr ""
4031
4032 #. type: =head1
4033 #: ../examples/guestfs-recipes.pod:80
4034 msgid "Dump raw filesystem content from inside a disk image or VM"
4035 msgstr ""
4036
4037 #. type: textblock
4038 #: ../examples/guestfs-recipes.pod:82
4039 msgid ""
4040 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4041 "filesystem content from any filesystem in a disk image or a VM (even one "
4042 "which is encrypted or buried inside an LV):"
4043 msgstr ""
4044
4045 #. type: verbatim
4046 #: ../examples/guestfs-recipes.pod:86
4047 #, fuzzy, no-wrap
4048 #| msgid ""
4049 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4050 #| "\n"
4051 msgid ""
4052 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4053 "\n"
4054 msgstr ""
4055 " guestfish --format=raw -a disk.img --format -a another.img\n"
4056 "\n"
4057
4058 #. type: verbatim
4059 #: ../examples/guestfs-recipes.pod:88
4060 #, no-wrap
4061 msgid ""
4062 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4063 "\n"
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../examples/guestfs-recipes.pod:90
4068 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4069 msgstr ""
4070
4071 #. type: =head1
4072 #: ../examples/guestfs-recipes.pod:92
4073 msgid "Edit grub configuration in a VM"
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../examples/guestfs-recipes.pod:94
4078 msgid "You can use this to:"
4079 msgstr ""
4080
4081 #. type: textblock
4082 #: ../examples/guestfs-recipes.pod:100
4083 msgid "Fix a virtual machine that does not boot."
4084 msgstr ""
4085
4086 #. type: textblock
4087 #: ../examples/guestfs-recipes.pod:104
4088 msgid "Change which kernel is used to boot the VM."
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../examples/guestfs-recipes.pod:108
4093 msgid "Change kernel command line options."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../examples/guestfs-recipes.pod:112
4098 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4099 msgstr ""
4100
4101 #. type: verbatim
4102 #: ../examples/guestfs-recipes.pod:114
4103 #, no-wrap
4104 msgid ""
4105 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4106 "\n"
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../examples/guestfs-recipes.pod:116
4111 msgid ""
4112 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4113 "this:"
4114 msgstr ""
4115
4116 #. type: verbatim
4117 #: ../examples/guestfs-recipes.pod:119
4118 #, no-wrap
4119 msgid ""
4120 " virt-rescue -d BrokenGuest\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: =head1
4125 #: ../examples/guestfs-recipes.pod:121
4126 msgid "Export any directory from a VM"
4127 msgstr ""
4128
4129 #. type: textblock
4130 #: ../examples/guestfs-recipes.pod:123
4131 msgid ""
4132 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../examples/guestfs-recipes.pod:126
4137 #, fuzzy, no-wrap
4138 #| msgid ""
4139 #| " copy-out /home .\n"
4140 #| "\n"
4141 msgid ""
4142 " virt-copy-out -d Guest /home .\n"
4143 "\n"
4144 msgstr ""
4145 " copy-out /home .\n"
4146 "\n"
4147
4148 #. type: textblock
4149 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4150 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4151 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4152 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4153 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4154 #: ../tools/virt-win-reg.pl:706
4155 msgid "Notes:"
4156 msgstr "Нотатки:"
4157
4158 #. type: textblock
4159 #: ../examples/guestfs-recipes.pod:134
4160 msgid ""
4161 "The final dot of the command is not a printing error.  It means we want to "
4162 "copy out to the current directory."
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../examples/guestfs-recipes.pod:139
4167 msgid "This creates a directory called C<home> under the current directory."
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../examples/guestfs-recipes.pod:143
4172 msgid ""
4173 "If the guest is a Windows guest then you can use drive letters and "
4174 "backslashes, but you must prefix the path with C<win:> and quote it to "
4175 "protect it from the shell, like this:"
4176 msgstr ""
4177
4178 #. type: verbatim
4179 #: ../examples/guestfs-recipes.pod:147
4180 #, no-wrap
4181 msgid ""
4182 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4183 "\n"
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../examples/guestfs-recipes.pod:149
4188 msgid "To get the output as a compressed tarball, do:"
4189 msgstr ""
4190
4191 #. type: verbatim
4192 #: ../examples/guestfs-recipes.pod:151
4193 #, no-wrap
4194 msgid ""
4195 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../examples/guestfs-recipes.pod:153
4201 msgid ""
4202 "Although it sounds tempting, this is usually not a reliable way to get a "
4203 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
4204 "org/FAQ.html#backup"
4205 msgstr ""
4206
4207 #. type: =head1
4208 #: ../examples/guestfs-recipes.pod:157
4209 msgid "Find out which user is using the most space"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../examples/guestfs-recipes.pod:159
4214 msgid ""
4215 "This simple script examines a Linux guest to find out which user is using "
4216 "the most space in their home directory:"
4217 msgstr ""
4218
4219 #. type: verbatim
4220 #: ../examples/guestfs-recipes.pod:162
4221 #, fuzzy, no-wrap
4222 #| msgid ""
4223 #| " #!/usr/bin/guestfish -f\n"
4224 #| "\n"
4225 msgid ""
4226 " #!/bin/sh -\n"
4227 " \n"
4228 msgstr ""
4229 " #!/usr/bin/guestfish -f\n"
4230 "\n"
4231
4232 #. type: verbatim
4233 #: ../examples/guestfs-recipes.pod:164
4234 #, fuzzy, no-wrap
4235 #| msgid ""
4236 #| " set-qemu qemu\n"
4237 #| "\n"
4238 msgid ""
4239 " set -e\n"
4240 " \n"
4241 msgstr ""
4242 " set-qemu qemu\n"
4243 "\n"
4244
4245 #. type: verbatim
4246 #: ../examples/guestfs-recipes.pod:166
4247 #, no-wrap
4248 msgid ""
4249 " vm=\"$1\"\n"
4250 " dir=/home\n"
4251 " \n"
4252 msgstr ""
4253
4254 #. type: verbatim
4255 #: ../examples/guestfs-recipes.pod:169
4256 #, fuzzy, no-wrap
4257 #| msgid ""
4258 #| " guestfish --ro -d myguest -i\n"
4259 #| "\n"
4260 msgid ""
4261 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4262 " \n"
4263 msgstr ""
4264 " guestfish --ro -d myguest -i\n"
4265 "\n"
4266
4267 #. type: verbatim
4268 #: ../examples/guestfs-recipes.pod:171
4269 #, no-wrap
4270 msgid ""
4271 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4272 "     echo -n \"$dir/$d\"\n"
4273 "     echo -ne '\\t'\n"
4274 "     guestfish --remote du \"$dir/$d\";\n"
4275 " done | sort -nr -k 2\n"
4276 " \n"
4277 msgstr ""
4278
4279 #. type: verbatim
4280 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4281 #, no-wrap
4282 msgid ""
4283 " guestfish --remote exit\n"
4284 "\n"
4285 msgstr ""
4286
4287 #. type: =head1
4288 #: ../examples/guestfs-recipes.pod:179
4289 msgid "Get DHCP address from a VM"
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../examples/guestfs-recipes.pod:181
4294 msgid ""
4295 "The link below explains the many different possible techniques for getting "
4296 "the last assigned DHCP address of a virtual machine."
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../examples/guestfs-recipes.pod:184
4301 msgid ""
4302 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4303 "a-virtual-machine-disk-image/#content"
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../examples/guestfs-recipes.pod:186
4308 msgid ""
4309 "In the libguestfs source examples directory you will find the latest version "
4310 "of the C<virt-dhcp-address.c> program."
4311 msgstr ""
4312
4313 #. type: =head1
4314 #: ../examples/guestfs-recipes.pod:189
4315 msgid "Get the operating system product name string"
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../examples/guestfs-recipes.pod:191
4320 msgid "Save the following script into a file called C<product-name.sh>:"
4321 msgstr ""
4322
4323 #. type: verbatim
4324 #: ../examples/guestfs-recipes.pod:193
4325 #, fuzzy, no-wrap
4326 #| msgid ""
4327 #| " eval \"`guestfish --listen`\"\n"
4328 #| " guestfish --remote add-ro disk.img\n"
4329 #| " guestfish --remote run\n"
4330 #| " guestfish --remote lvs\n"
4331 #| "\n"
4332 msgid ""
4333 " #!/bin/sh -\n"
4334 " set -e\n"
4335 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4336 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4337 " guestfish --remote inspect-get-product-name \"$root\"\n"
4338 " guestfish --remote exit\n"
4339 "\n"
4340 msgstr ""
4341 " eval \"`guestfish --listen`\"\n"
4342 " guestfish --remote add-ro disk.img\n"
4343 " guestfish --remote run\n"
4344 " guestfish --remote lvs\n"
4345 "\n"
4346
4347 #. type: textblock
4348 #: ../examples/guestfs-recipes.pod:200
4349 msgid "Make the script executable and run it on a named guest:"
4350 msgstr ""
4351
4352 #. type: verbatim
4353 #: ../examples/guestfs-recipes.pod:202
4354 #, no-wrap
4355 msgid ""
4356 " # product-name.sh RHEL60x64\n"
4357 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4358 "\n"
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../examples/guestfs-recipes.pod:205
4363 msgid ""
4364 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4365 "C<xpath> command line tool or from your favourite programming language:"
4366 msgstr ""
4367
4368 #. type: verbatim
4369 #: ../examples/guestfs-recipes.pod:209
4370 #, no-wrap
4371 msgid ""
4372 " # virt-inspector RHEL60x64 > xml\n"
4373 " # xpath '//product_name' < xml\n"
4374 " Found 1 nodes:\n"
4375 " -- NODE --\n"
4376 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4377 "\n"
4378 msgstr ""
4379
4380 #. type: =head1
4381 #: ../examples/guestfs-recipes.pod:215
4382 msgid "Get the default boot kernel for a Linux VM"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../examples/guestfs-recipes.pod:217
4387 msgid ""
4388 "The link below contains a program to print the default boot kernel for a "
4389 "Linux VM."
4390 msgstr ""
4391
4392 #. type: textblock
4393 #: ../examples/guestfs-recipes.pod:220
4394 msgid ""
4395 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4396 "kernel-for-a-vm/#content"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../examples/guestfs-recipes.pod:222
4401 msgid ""
4402 "It uses Augeas, and the technique is generally applicable for many different "
4403 "tasks, such as:"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../examples/guestfs-recipes.pod:229
4408 msgid "listing the user accounts in the guest"
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../examples/guestfs-recipes.pod:233
4413 msgid "what repositories is it configured to use"
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../examples/guestfs-recipes.pod:237
4418 msgid "what NTP servers does it connect to"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:241
4423 msgid "what were the boot messages last time it booted"
4424 msgstr ""
4425
4426 #. type: textblock
4427 #: ../examples/guestfs-recipes.pod:245
4428 msgid "listing who was logged in recently"
4429 msgstr ""
4430
4431 #. type: textblock
4432 #: ../examples/guestfs-recipes.pod:249
4433 msgid "http://augeas.net/"
4434 msgstr ""
4435
4436 #. type: =head1
4437 #: ../examples/guestfs-recipes.pod:251
4438 msgid "Install RPMs in a guest"
4439 msgstr ""
4440
4441 #. type: textblock
4442 #: ../examples/guestfs-recipes.pod:253
4443 msgid ""
4444 "The link below contains a method to install RPMs in a guest.  In fact the "
4445 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4446 "installs them next time the guest is booted.  You could use this technique "
4447 "to install vital security updates in an offline guest."
4448 msgstr ""
4449
4450 #. type: textblock
4451 #: ../examples/guestfs-recipes.pod:259
4452 msgid ""
4453 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4454 msgstr ""
4455
4456 #. type: =head1
4457 #: ../examples/guestfs-recipes.pod:261
4458 msgid "List applications installed in a VM"
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../examples/guestfs-recipes.pod:263
4463 msgid "Save the following to a file C<list-apps.sh>:"
4464 msgstr ""
4465
4466 #. type: verbatim
4467 #: ../examples/guestfs-recipes.pod:265
4468 #, fuzzy, no-wrap
4469 #| msgid ""
4470 #| " eval \"`guestfish --listen`\"\n"
4471 #| " guestfish --remote add-ro disk.img\n"
4472 #| " guestfish --remote run\n"
4473 #| " guestfish --remote lvs\n"
4474 #| "\n"
4475 msgid ""
4476 " #!/bin/sh -\n"
4477 " set -e\n"
4478 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4479 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4480 " guestfish --remote inspect-list-applications \"$root\"\n"
4481 " guestfish --remote exit\n"
4482 "\n"
4483 msgstr ""
4484 " eval \"`guestfish --listen`\"\n"
4485 " guestfish --remote add-ro disk.img\n"
4486 " guestfish --remote run\n"
4487 " guestfish --remote lvs\n"
4488 "\n"
4489
4490 #. type: textblock
4491 #: ../examples/guestfs-recipes.pod:272
4492 msgid ""
4493 "Make the file executable and then you can run it on any named virtual "
4494 "machine:"
4495 msgstr ""
4496
4497 #. type: verbatim
4498 #: ../examples/guestfs-recipes.pod:275
4499 #, no-wrap
4500 msgid ""
4501 " # list-apps.sh WinGuest\n"
4502 " [0] = {\n"
4503 "   app_name: Mozilla Firefox (3.6.12)\n"
4504 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4505 "   app_epoch: 0\n"
4506 "   app_version: 3.6.12 (en-GB)\n"
4507 "   app_release:\n"
4508 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4509 "   app_trans_path:\n"
4510 "   app_publisher: Mozilla\n"
4511 "   app_url: http://www.mozilla.com/en-GB/\n"
4512 "   app_source_package:\n"
4513 "   app_summary:\n"
4514 "   app_description: Mozilla Firefox\n"
4515 " }\n"
4516 " [1] = {\n"
4517 "   app_name: VLC media player\n"
4518 "   app_display_name: VLC media player 1.1.5\n"
4519 "   app_epoch: 0\n"
4520 "   app_version: 1.1.5\n"
4521 "   app_release:\n"
4522 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4523 "   app_trans_path:\n"
4524 "   app_publisher: VideoLAN\n"
4525 "   app_url: http://www.videolan.org/\n"
4526 "   app_source_package:\n"
4527 "   app_summary:\n"
4528 "   app_description:\n"
4529 " }\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../examples/guestfs-recipes.pod:305
4535 msgid ""
4536 "If you want to run the script on disk images (instead of libvirt virtual "
4537 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4538 ">."
4539 msgstr ""
4540
4541 #. type: =head1
4542 #: ../examples/guestfs-recipes.pod:309
4543 msgid "List files and directories in a VM"
4544 msgstr ""
4545
4546 #. type: textblock
4547 #: ../examples/guestfs-recipes.pod:311
4548 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../examples/guestfs-recipes.pod:313
4553 #, fuzzy, no-wrap
4554 #| msgid ""
4555 #| " guestfish --ro -d myguest -i\n"
4556 #| "\n"
4557 msgid ""
4558 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4559 "\n"
4560 msgstr ""
4561 " guestfish --ro -d myguest -i\n"
4562 "\n"
4563
4564 #. type: =head1
4565 #: ../examples/guestfs-recipes.pod:315
4566 msgid "List services in a Windows VM"
4567 msgstr ""
4568
4569 #. type: textblock
4570 #: ../examples/guestfs-recipes.pod:317
4571 msgid ""
4572 "The link below contains a script that can be used to list out the services "
4573 "from a Windows VM, and whether those services run at boot time or are loaded "
4574 "on demand."
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../examples/guestfs-recipes.pod:321
4579 msgid ""
4580 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4581 "#content"
4582 msgstr ""
4583
4584 #. type: =head1
4585 #: ../examples/guestfs-recipes.pod:323
4586 msgid "Make a disk image sparse"
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../examples/guestfs-recipes.pod:325
4591 msgid ""
4592 "The link below contains some guides for making a disk image sparse (or "
4593 "reintroducing sparseness)."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../examples/guestfs-recipes.pod:328
4598 msgid ""
4599 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4600 msgstr ""
4601
4602 #. type: =head1
4603 #: ../examples/guestfs-recipes.pod:330
4604 msgid "Monitor disk usage over time"
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../examples/guestfs-recipes.pod:332
4609 msgid ""
4610 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4611 "The link below contains a guide."
4612 msgstr ""
4613
4614 #. type: textblock
4615 #: ../examples/guestfs-recipes.pod:335
4616 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4617 msgstr ""
4618
4619 #. type: =head1
4620 #: ../examples/guestfs-recipes.pod:337
4621 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../examples/guestfs-recipes.pod:339
4626 msgid ""
4627 "L<guestfish(1)> plus the tools described in the link below can be used to "
4628 "read out the Windows Event Log from any virtual machine running Windows "
4629 "Vista or a later version."
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../examples/guestfs-recipes.pod:343
4634 msgid ""
4635 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4636 "guestfish/#content"
4637 msgstr ""
4638
4639 #. type: =head1
4640 #: ../examples/guestfs-recipes.pod:345
4641 msgid "Remove root password (Linux)"
4642 msgstr ""
4643
4644 #. type: textblock
4645 #: ../examples/guestfs-recipes.pod:347
4646 msgid ""
4647 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4648 "files.  One use is to remove the root password from a Linux guest:"
4649 msgstr ""
4650
4651 #. type: verbatim
4652 #: ../examples/guestfs-recipes.pod:350
4653 #, no-wrap
4654 msgid ""
4655 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4656 "\n"
4657 msgstr ""
4658
4659 #. type: =head1
4660 #: ../examples/guestfs-recipes.pod:352
4661 msgid "Remove Administrator password (Windows)"
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../examples/guestfs-recipes.pod:354
4666 msgid ""
4667 "The link below contains one technique for removing the Administrator "
4668 "password from a Windows VM, or to be more precise, it gives you a command "
4669 "prompt the next time you log in which you can use to bypass any security:"
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../examples/guestfs-recipes.pod:359
4674 msgid ""
4675 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4676 "administrator-password-with-guestfish/"
4677 msgstr ""
4678
4679 #. type: =head1
4680 #: ../examples/guestfs-recipes.pod:361
4681 msgid "Unpack a live CD"
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../examples/guestfs-recipes.pod:363
4686 msgid ""
4687 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4688 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4689 "layers, as outlined in the guide below."
4690 msgstr ""
4691
4692 #. type: textblock
4693 #: ../examples/guestfs-recipes.pod:367
4694 msgid ""
4695 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4696 "cd/#content"
4697 msgstr ""
4698
4699 #. type: =head1
4700 #: ../examples/guestfs-recipes.pod:369
4701 msgid "Uploading and downloading files"
4702 msgstr ""
4703
4704 #. type: textblock
4705 #: ../examples/guestfs-recipes.pod:371
4706 msgid ""
4707 "The link below contains general tips on uploading (copying in)  and "
4708 "downloading (copying out) files from VMs."
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../examples/guestfs-recipes.pod:374
4713 msgid ""
4714 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4715 msgstr ""
4716
4717 #. type: =head1
4718 #: ../examples/guestfs-recipes.pod:376
4719 msgid "Use libguestfs tools on VMware ESX guests"
4720 msgstr ""
4721
4722 #. type: textblock
4723 #: ../examples/guestfs-recipes.pod:378
4724 msgid ""
4725 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4726 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../examples/guestfs-recipes.pod:382
4731 msgid ""
4732 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4733 "guests/#content"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../examples/guestfs-recipes.pod:386
4738 #, fuzzy
4739 #| msgid ""
4740 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4741 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4742 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4743 msgid ""
4744 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4745 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4746 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4747 msgstr ""
4748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4749 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4750 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4751
4752 #. type: textblock
4753 #: ../examples/guestfs-recipes.pod:403
4754 #, fuzzy
4755 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4756 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4757 msgstr "© Red Hat Inc., 2009–2010"
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:1
4761 msgid "add-cdrom"
4762 msgstr ""
4763
4764 #. type: verbatim
4765 #: ../fish/guestfish-actions.pod:3
4766 #, no-wrap
4767 msgid ""
4768 " add-cdrom filename\n"
4769 "\n"
4770 msgstr ""
4771
4772 #. type: textblock
4773 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4774 msgid "This function adds a virtual CD-ROM disk image to the guest."
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4779 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../fish/guestfish-actions.pod:15
4784 msgid ""
4785 "This call checks for the existence of C<filename>.  This stops you from "
4786 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4787 "and C<http:> URLs.  To specify those, use the general L</config> call "
4788 "instead."
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../fish/guestfish-actions.pod:22
4793 msgid ""
4794 "If you just want to add an ISO file (often you use this as an efficient way "
4795 "to transfer large files into the guest), then you should probably use L</add-"
4796 "drive-ro> instead."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4801 #: ../fish/guestfish-actions.pod:177
4802 msgid ""
4803 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4804 "instead."
4805 msgstr ""
4806
4807 #. type: textblock
4808 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4809 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4810 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4811 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4812 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4813 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4814 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4815 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4816 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4817 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
4818 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
4819 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
4820 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
4821 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
4822 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
4823 #: ../src/guestfs-actions.pod:8040
4824 msgid ""
4825 "Deprecated functions will not be removed from the API, but the fact that "
4826 "they are deprecated indicates that there are problems with correct use of "
4827 "these functions."
4828 msgstr ""
4829
4830 #. type: =head2
4831 #: ../fish/guestfish-actions.pod:35
4832 msgid "add-domain"
4833 msgstr "add-domain"
4834
4835 #. type: =head2
4836 #: ../fish/guestfish-actions.pod:37
4837 msgid "domain"
4838 msgstr ""
4839
4840 #. type: verbatim
4841 #: ../fish/guestfish-actions.pod:39
4842 #, no-wrap
4843 msgid ""
4844 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4845 "\n"
4846 msgstr ""
4847
4848 #. type: textblock
4849 #: ../fish/guestfish-actions.pod:41
4850 msgid ""
4851 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4852 "It works by connecting to libvirt, requesting the domain and domain XML from "
4853 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4854 msgstr ""
4855
4856 #. type: textblock
4857 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4858 msgid ""
4859 "The number of disks added is returned.  This operation is atomic: if an "
4860 "error is returned, then no disks are added."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4865 msgid ""
4866 "This function does some minimal checks to make sure the libvirt domain is "
4867 "not running (unless C<readonly> is true).  In a future version we will try "
4868 "to acquire the libvirt lock on each disk."
4869 msgstr ""
4870
4871 #. type: textblock
4872 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4873 msgid ""
4874 "Disks must be accessible locally.  This often means that adding disks from a "
4875 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4876 "unless those disks are accessible via the same device path locally too."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4881 msgid ""
4882 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4883 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4884 "libvirt URI (or one set through an environment variable, see the libvirt "
4885 "documentation for full details)."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4890 msgid ""
4891 "The optional C<live> flag controls whether this call will try to connect to "
4892 "a running virtual machine C<guestfsd> process if it sees a suitable "
4893 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4894 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4895 "DAEMONS> for more information."
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4900 msgid ""
4901 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4902 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4903 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4904 "as usual."
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../fish/guestfish-actions.pod:76
4909 msgid ""
4910 "The other optional parameters are passed directly through to L</add-drive-"
4911 "opts>."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4916 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4917 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4918 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4919 #: ../fish/guestfish-actions.pod:3504
4920 msgid ""
4921 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4922 msgstr ""
4923
4924 #. type: =head2
4925 #: ../fish/guestfish-actions.pod:81
4926 msgid "add-drive"
4927 msgstr "add-drive"
4928
4929 #. type: verbatim
4930 #: ../fish/guestfish-actions.pod:83
4931 #, no-wrap
4932 msgid ""
4933 " add-drive filename\n"
4934 "\n"
4935 msgstr ""
4936 " add-drive назва_файла\n"
4937 "\n"
4938
4939 #. type: textblock
4940 #: ../fish/guestfish-actions.pod:85
4941 msgid ""
4942 "This function is the equivalent of calling L</add-drive-opts> with no "
4943 "optional parameters, so the disk is added writable, with the format being "
4944 "detected automatically."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../fish/guestfish-actions.pod:89
4949 msgid ""
4950 "Automatic detection of the format opens you up to a potential security hole "
4951 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4952 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4953 "you should think about replacing calls to this function with calls to L</add-"
4954 "drive-opts>, and specifying the format."
4955 msgstr ""
4956
4957 #. type: =head2
4958 #: ../fish/guestfish-actions.pod:96
4959 msgid "add-drive-opts"
4960 msgstr "add-drive-opts"
4961
4962 #. type: =head2
4963 #: ../fish/guestfish-actions.pod:98
4964 msgid "add"
4965 msgstr "add"
4966
4967 #. type: verbatim
4968 #: ../fish/guestfish-actions.pod:100
4969 #, no-wrap
4970 msgid ""
4971 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4972 "\n"
4973 msgstr ""
4974
4975 #. type: textblock
4976 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4977 msgid ""
4978 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4979 "The first time you call this function, the disk appears as C</dev/sda>, the "
4980 "second time as C</dev/sdb>, and so on."
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4985 msgid ""
4986 "You don't necessarily need to be root when using libguestfs.  However you "
4987 "obviously do need sufficient permissions to access the filename for whatever "
4988 "operations you want to perform (ie. read access if you just want to read the "
4989 "image or write access if you want to modify the image)."
4990 msgstr ""
4991
4992 #. type: textblock
4993 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4994 msgid "This call checks that C<filename> exists."
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4999 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5000 msgid "The optional arguments are:"
5001 msgstr ""
5002
5003 #. type: =item
5004 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5005 msgid "C<readonly>"
5006 msgstr "C<readonly>"
5007
5008 #. type: textblock
5009 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5010 msgid ""
5011 "If true then the image is treated as read-only.  Writes are still allowed, "
5012 "but they are stored in a temporary snapshot overlay which is discarded at "
5013 "the end.  The disk that you add is not modified."
5014 msgstr ""
5015
5016 #. type: =item
5017 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5018 msgid "C<format>"
5019 msgstr "C<format>"
5020
5021 #. type: textblock
5022 #: ../fish/guestfish-actions.pod:127
5023 msgid ""
5024 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5025 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5026 "include C<raw> and C<qcow2>."
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5031 msgid ""
5032 "Automatic detection of the format opens you up to a potential security hole "
5033 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5034 "RHBZ#642934.  Specifying the format closes this security hole."
5035 msgstr ""
5036
5037 #. type: =item
5038 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5039 msgid "C<iface>"
5040 msgstr "C<iface>"
5041
5042 #. type: textblock
5043 #: ../fish/guestfish-actions.pod:138
5044 msgid ""
5045 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5046 "add-drive-with-if> call (q.v.)"
5047 msgstr ""
5048
5049 #. type: =head2
5050 #: ../fish/guestfish-actions.pod:145
5051 msgid "add-drive-ro"
5052 msgstr "add-drive-ro"
5053
5054 #. type: =head2
5055 #: ../fish/guestfish-actions.pod:147
5056 msgid "add-ro"
5057 msgstr "add-ro"
5058
5059 #. type: verbatim
5060 #: ../fish/guestfish-actions.pod:149
5061 #, no-wrap
5062 msgid ""
5063 " add-drive-ro filename\n"
5064 "\n"
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:151
5069 msgid ""
5070 "This function is the equivalent of calling L</add-drive-opts> with the "
5071 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5072 "is added read-only, with the format being detected automatically."
5073 msgstr ""
5074
5075 #. type: =head2
5076 #: ../fish/guestfish-actions.pod:156
5077 msgid "add-drive-ro-with-if"
5078 msgstr ""
5079
5080 #. type: verbatim
5081 #: ../fish/guestfish-actions.pod:158
5082 #, no-wrap
5083 msgid ""
5084 " add-drive-ro-with-if filename iface\n"
5085 "\n"
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../fish/guestfish-actions.pod:160
5090 msgid ""
5091 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5092 "interface emulation to use at run time."
5093 msgstr ""
5094
5095 #. type: =head2
5096 #: ../fish/guestfish-actions.pod:170
5097 msgid "add-drive-with-if"
5098 msgstr ""
5099
5100 #. type: verbatim
5101 #: ../fish/guestfish-actions.pod:172
5102 #, no-wrap
5103 msgid ""
5104 " add-drive-with-if filename iface\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../fish/guestfish-actions.pod:174
5110 msgid ""
5111 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5112 "interface emulation to use at run time."
5113 msgstr ""
5114
5115 #. type: =head2
5116 #: ../fish/guestfish-actions.pod:184
5117 msgid "aug-clear"
5118 msgstr ""
5119
5120 #. type: verbatim
5121 #: ../fish/guestfish-actions.pod:186
5122 #, no-wrap
5123 msgid ""
5124 " aug-clear augpath\n"
5125 "\n"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5130 msgid ""
5131 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5132 "L<augtool(1)> C<clear> command."
5133 msgstr ""
5134
5135 #. type: =head2
5136 #: ../fish/guestfish-actions.pod:191
5137 msgid "aug-close"
5138 msgstr ""
5139
5140 #. type: verbatim
5141 #: ../fish/guestfish-actions.pod:193
5142 #, no-wrap
5143 msgid ""
5144 " aug-close\n"
5145 "\n"
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:195
5150 msgid ""
5151 "Close the current Augeas handle and free up any resources used by it.  After "
5152 "calling this, you have to call L</aug-init> again before you can use any "
5153 "other Augeas functions."
5154 msgstr ""
5155
5156 #. type: =head2
5157 #: ../fish/guestfish-actions.pod:200
5158 msgid "aug-defnode"
5159 msgstr ""
5160
5161 #. type: verbatim
5162 #: ../fish/guestfish-actions.pod:202
5163 #, no-wrap
5164 msgid ""
5165 " aug-defnode name expr val\n"
5166 "\n"
5167 msgstr ""
5168
5169 #. type: textblock
5170 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5171 msgid ""
5172 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5173 msgstr ""
5174
5175 #. type: textblock
5176 #: ../fish/guestfish-actions.pod:207
5177 msgid ""
5178 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5179 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5180 "containing that single node."
5181 msgstr ""
5182
5183 #. type: textblock
5184 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5185 msgid ""
5186 "On success this returns a pair containing the number of nodes in the "
5187 "nodeset, and a boolean flag if a node was created."
5188 msgstr ""
5189
5190 #. type: =head2
5191 #: ../fish/guestfish-actions.pod:215
5192 msgid "aug-defvar"
5193 msgstr ""
5194
5195 #. type: verbatim
5196 #: ../fish/guestfish-actions.pod:217
5197 #, no-wrap
5198 msgid ""
5199 " aug-defvar name expr\n"
5200 "\n"
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5205 msgid ""
5206 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5207 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5212 msgid ""
5213 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5214 "evaluates to something which is not a nodeset."
5215 msgstr ""
5216
5217 #. type: =head2
5218 #: ../fish/guestfish-actions.pod:226
5219 msgid "aug-get"
5220 msgstr ""
5221
5222 #. type: verbatim
5223 #: ../fish/guestfish-actions.pod:228
5224 #, no-wrap
5225 msgid ""
5226 " aug-get augpath\n"
5227 "\n"
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5232 msgid ""
5233 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5234 "node, the C<value> is returned."
5235 msgstr ""
5236
5237 #. type: =head2
5238 #: ../fish/guestfish-actions.pod:233
5239 msgid "aug-init"
5240 msgstr ""
5241
5242 #. type: verbatim
5243 #: ../fish/guestfish-actions.pod:235
5244 #, no-wrap
5245 msgid ""
5246 " aug-init root flags\n"
5247 "\n"
5248 msgstr ""
5249
5250 #. type: textblock
5251 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5252 msgid ""
5253 "Create a new Augeas handle for editing configuration files.  If there was "
5254 "any previous Augeas handle associated with this guestfs session, then it is "
5255 "closed."
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../fish/guestfish-actions.pod:241
5260 msgid "You must call this before using any other L</aug-*> commands."
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5265 msgid ""
5266 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5271 msgid ""
5272 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5273 "logical I<or> of the following integers:"
5274 msgstr ""
5275
5276 #. type: =item
5277 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5278 msgid "C<AUG_SAVE_BACKUP> = 1"
5279 msgstr "C<AUG_SAVE_BACKUP> = 1"
5280
5281 #. type: textblock
5282 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5283 msgid "Keep the original file with a C<.augsave> extension."
5284 msgstr ""
5285
5286 #. type: =item
5287 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5288 msgid "C<AUG_SAVE_NEWFILE> = 2"
5289 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5290
5291 #. type: textblock
5292 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5293 msgid ""
5294 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5295 "original.  Overrides C<AUG_SAVE_BACKUP>."
5296 msgstr ""
5297
5298 #. type: =item
5299 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5300 msgid "C<AUG_TYPE_CHECK> = 4"
5301 msgstr "C<AUG_TYPE_CHECK> = 4"
5302
5303 #. type: textblock
5304 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5305 msgid "Typecheck lenses."
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../fish/guestfish-actions.pod:266
5310 msgid ""
5311 "This option is only useful when debugging Augeas lenses.  Use of this option "
5312 "may require additional memory for the libguestfs appliance.  You may need to "
5313 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5314 msgstr ""
5315
5316 #. type: =item
5317 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5318 msgid "C<AUG_NO_STDINC> = 8"
5319 msgstr "C<AUG_NO_STDINC> = 8"
5320
5321 #. type: textblock
5322 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5323 msgid "Do not use standard load path for modules."
5324 msgstr ""
5325
5326 #. type: =item
5327 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5328 msgid "C<AUG_SAVE_NOOP> = 16"
5329 msgstr "C<AUG_SAVE_NOOP> = 16"
5330
5331 #. type: textblock
5332 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5333 msgid "Make save a no-op, just record what would have been changed."
5334 msgstr ""
5335
5336 #. type: =item
5337 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5338 msgid "C<AUG_NO_LOAD> = 32"
5339 msgstr "C<AUG_NO_LOAD> = 32"
5340
5341 #. type: textblock
5342 #: ../fish/guestfish-actions.pod:281
5343 msgid "Do not load the tree in L</aug-init>."
5344 msgstr ""
5345
5346 #. type: textblock
5347 #: ../fish/guestfish-actions.pod:285
5348 msgid "To close the handle, you can call L</aug-close>."
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5353 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5354 msgstr ""
5355
5356 #. type: =head2
5357 #: ../fish/guestfish-actions.pod:289
5358 msgid "aug-insert"
5359 msgstr ""
5360
5361 #. type: verbatim
5362 #: ../fish/guestfish-actions.pod:291
5363 #, no-wrap
5364 msgid ""
5365 " aug-insert augpath label true|false\n"
5366 "\n"
5367 msgstr ""
5368
5369 #. type: textblock
5370 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5371 msgid ""
5372 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5373 "or after C<path> (depending on the boolean flag C<before>)."
5374 msgstr ""
5375
5376 #. type: textblock
5377 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5378 msgid ""
5379 "C<path> must match exactly one existing node in the tree, and C<label> must "
5380 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5381 msgstr ""
5382
5383 #. type: =head2
5384 #: ../fish/guestfish-actions.pod:301
5385 msgid "aug-load"
5386 msgstr ""
5387
5388 #. type: verbatim
5389 #: ../fish/guestfish-actions.pod:303
5390 #, no-wrap
5391 msgid ""
5392 " aug-load\n"
5393 "\n"
5394 msgstr ""
5395
5396 #. type: textblock
5397 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5398 msgid "Load files into the tree."
5399 msgstr "Завантажити файли до ієрархії."
5400
5401 #. type: textblock
5402 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5403 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5404 msgstr ""
5405
5406 #. type: =head2
5407 #: ../fish/guestfish-actions.pod:310
5408 msgid "aug-ls"
5409 msgstr ""
5410
5411 #. type: verbatim
5412 #: ../fish/guestfish-actions.pod:312
5413 #, no-wrap
5414 msgid ""
5415 " aug-ls augpath\n"
5416 "\n"
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../fish/guestfish-actions.pod:314
5421 msgid ""
5422 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5423 "resulting nodes into alphabetical order."
5424 msgstr ""
5425
5426 #. type: =head2
5427 #: ../fish/guestfish-actions.pod:317
5428 msgid "aug-match"
5429 msgstr ""
5430
5431 #. type: verbatim
5432 #: ../fish/guestfish-actions.pod:319
5433 #, no-wrap
5434 msgid ""
5435 " aug-match augpath\n"
5436 "\n"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5441 msgid ""
5442 "Returns a list of paths which match the path expression C<path>.  The "
5443 "returned paths are sufficiently qualified so that they match exactly one "
5444 "node in the current tree."
5445 msgstr ""
5446
5447 #. type: =head2
5448 #: ../fish/guestfish-actions.pod:325
5449 msgid "aug-mv"
5450 msgstr ""
5451
5452 #. type: verbatim
5453 #: ../fish/guestfish-actions.pod:327
5454 #, no-wrap
5455 msgid ""
5456 " aug-mv src dest\n"
5457 "\n"
5458 msgstr ""
5459
5460 #. type: textblock
5461 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5462 msgid ""
5463 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5464 "C<dest> is overwritten if it exists."
5465 msgstr ""
5466
5467 #. type: =head2
5468 #: ../fish/guestfish-actions.pod:332
5469 msgid "aug-rm"
5470 msgstr ""
5471
5472 #. type: verbatim
5473 #: ../fish/guestfish-actions.pod:334
5474 #, no-wrap
5475 msgid ""
5476 " aug-rm augpath\n"
5477 "\n"
5478 msgstr ""
5479
5480 #. type: textblock
5481 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5482 msgid "Remove C<path> and all of its children."
5483 msgstr ""
5484
5485 #. type: textblock
5486 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5487 msgid "On success this returns the number of entries which were removed."
5488 msgstr ""
5489
5490 #. type: =head2
5491 #: ../fish/guestfish-actions.pod:340
5492 msgid "aug-save"
5493 msgstr ""
5494
5495 #. type: verbatim
5496 #: ../fish/guestfish-actions.pod:342
5497 #, no-wrap
5498 msgid ""
5499 " aug-save\n"
5500 "\n"
5501 msgstr ""
5502
5503 #. type: textblock
5504 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5505 msgid "This writes all pending changes to disk."
5506 msgstr ""
5507
5508 #. type: textblock
5509 #: ../fish/guestfish-actions.pod:346
5510 msgid ""
5511 "The flags which were passed to L</aug-init> affect exactly how files are "
5512 "saved."
5513 msgstr ""
5514
5515 #. type: =head2
5516 #: ../fish/guestfish-actions.pod:349
5517 msgid "aug-set"
5518 msgstr ""
5519
5520 #. type: verbatim
5521 #: ../fish/guestfish-actions.pod:351
5522 #, no-wrap
5523 msgid ""
5524 " aug-set augpath val\n"
5525 "\n"
5526 msgstr ""
5527
5528 #. type: textblock
5529 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5530 msgid "Set the value associated with C<path> to C<val>."
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../fish/guestfish-actions.pod:355
5535 msgid ""
5536 "In the Augeas API, it is possible to clear a node by setting the value to "
5537 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5538 "this call.  Instead you must use the L</aug-clear> call."
5539 msgstr ""
5540
5541 #. type: =head2
5542 #: ../fish/guestfish-actions.pod:360
5543 msgid "available"
5544 msgstr ""
5545
5546 #. type: verbatim
5547 #: ../fish/guestfish-actions.pod:362
5548 #, no-wrap
5549 msgid ""
5550 " available 'groups ...'\n"
5551 "\n"
5552 msgstr ""
5553
5554 #. type: textblock
5555 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5556 msgid ""
5557 "This command is used to check the availability of some groups of "
5558 "functionality in the appliance, which not all builds of the libguestfs "
5559 "appliance will be able to provide."
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../fish/guestfish-actions.pod:368
5564 msgid ""
5565 "The libguestfs groups, and the functions that those groups correspond to, "
5566 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5567 "runtime by calling L</available-all-groups>."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5572 msgid ""
5573 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5574 "\"]> would check for the availability of the Linux inotify functions and "
5575 "Augeas (configuration file editing) functions."
5576 msgstr ""
5577
5578 #. type: textblock
5579 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5580 msgid "The command returns no error if I<all> requested groups are available."
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5585 msgid ""
5586 "It fails with an error if one or more of the requested groups is unavailable "
5587 "in the appliance."
5588 msgstr ""
5589
5590 #. type: textblock
5591 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5592 msgid ""
5593 "If an unknown group name is included in the list of groups then an error is "
5594 "always returned."
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5599 msgid "I<Notes:>"
5600 msgstr "I<Нотатки:>"
5601
5602 #. type: textblock
5603 #: ../fish/guestfish-actions.pod:392
5604 msgid "You must call L</launch> before calling this function."
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5609 msgid ""
5610 "The reason is because we don't know what groups are supported by the "
5611 "appliance/daemon until it is running and can be queried."
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5616 msgid ""
5617 "If a group of functions is available, this does not necessarily mean that "
5618 "they will work.  You still have to check for errors when calling individual "
5619 "API functions even if they are available."
5620 msgstr ""
5621
5622 #. type: textblock
5623 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5624 msgid ""
5625 "It is usually the job of distro packagers to build complete functionality "
5626 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5627 "with all requirements satisfied, will support everything."
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../fish/guestfish-actions.pod:414
5632 msgid ""
5633 "This call was added in version C<1.0.80>.  In previous versions of "
5634 "libguestfs all you could do would be to speculatively execute a command to "
5635 "find out if the daemon implemented it.  See also L</version>."
5636 msgstr ""
5637
5638 #. type: =head2
5639 #: ../fish/guestfish-actions.pod:421
5640 msgid "available-all-groups"
5641 msgstr ""
5642
5643 #. type: verbatim
5644 #: ../fish/guestfish-actions.pod:423
5645 #, no-wrap
5646 msgid ""
5647 " available-all-groups\n"
5648 "\n"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../fish/guestfish-actions.pod:425
5653 msgid ""
5654 "This command returns a list of all optional groups that this daemon knows "
5655 "about.  Note this returns both supported and unsupported groups.  To find "
5656 "out which ones the daemon can actually support you have to call L</"
5657 "available> on each member of the returned list."
5658 msgstr ""
5659
5660 #. type: textblock
5661 #: ../fish/guestfish-actions.pod:431
5662 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5663 msgstr ""
5664
5665 #. type: =head2
5666 #: ../fish/guestfish-actions.pod:433
5667 msgid "base64-in"
5668 msgstr ""
5669
5670 #. type: verbatim
5671 #: ../fish/guestfish-actions.pod:435
5672 #, no-wrap
5673 msgid ""
5674 " base64-in (base64file|-) filename\n"
5675 "\n"
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5680 msgid ""
5681 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5686 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5687 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5688 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5689 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5690 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5691 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5692 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5693 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5694 msgstr ""
5695
5696 #. type: =head2
5697 #: ../fish/guestfish-actions.pod:442
5698 msgid "base64-out"
5699 msgstr ""
5700
5701 #. type: verbatim
5702 #: ../fish/guestfish-actions.pod:444
5703 #, no-wrap
5704 msgid ""
5705 " base64-out filename (base64file|-)\n"
5706 "\n"
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5711 msgid ""
5712 "This command downloads the contents of C<filename>, writing it out to local "
5713 "file C<base64file> encoded as base64."
5714 msgstr ""
5715
5716 #. type: =head2
5717 #: ../fish/guestfish-actions.pod:451
5718 msgid "blockdev-flushbufs"
5719 msgstr ""
5720
5721 #. type: verbatim
5722 #: ../fish/guestfish-actions.pod:453
5723 #, no-wrap
5724 msgid ""
5725 " blockdev-flushbufs device\n"
5726 "\n"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5731 msgid ""
5732 "This tells the kernel to flush internal buffers associated with C<device>."
5733 msgstr ""
5734
5735 #. type: textblock
5736 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5737 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5738 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5739 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5740 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5741 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5742 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5743 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5744 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5745 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5746 msgid "This uses the L<blockdev(8)> command."
5747 msgstr ""
5748
5749 #. type: =head2
5750 #: ../fish/guestfish-actions.pod:460
5751 msgid "blockdev-getbsz"
5752 msgstr ""
5753
5754 #. type: verbatim
5755 #: ../fish/guestfish-actions.pod:462
5756 #, no-wrap
5757 msgid ""
5758 " blockdev-getbsz device\n"
5759 "\n"
5760 msgstr ""
5761
5762 #. type: textblock
5763 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5764 msgid "This returns the block size of a device."
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5769 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5770 msgid ""
5771 "(Note this is different from both I<size in blocks> and I<filesystem block "
5772 "size>)."
5773 msgstr ""
5774
5775 #. type: =head2
5776 #: ../fish/guestfish-actions.pod:471
5777 msgid "blockdev-getro"
5778 msgstr ""
5779
5780 #. type: verbatim
5781 #: ../fish/guestfish-actions.pod:473
5782 #, no-wrap
5783 msgid ""
5784 " blockdev-getro device\n"
5785 "\n"
5786 msgstr ""
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5790 msgid ""
5791 "Returns a boolean indicating if the block device is read-only (true if read-"
5792 "only, false if not)."
5793 msgstr ""
5794
5795 #. type: =head2
5796 #: ../fish/guestfish-actions.pod:480
5797 msgid "blockdev-getsize64"
5798 msgstr ""
5799
5800 #. type: verbatim
5801 #: ../fish/guestfish-actions.pod:482
5802 #, no-wrap
5803 msgid ""
5804 " blockdev-getsize64 device\n"
5805 "\n"
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5810 msgid "This returns the size of the device in bytes."
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../fish/guestfish-actions.pod:486
5815 msgid "See also L</blockdev-getsz>."
5816 msgstr ""
5817
5818 #. type: =head2
5819 #: ../fish/guestfish-actions.pod:490
5820 msgid "blockdev-getss"
5821 msgstr ""
5822
5823 #. type: verbatim
5824 #: ../fish/guestfish-actions.pod:492
5825 #, no-wrap
5826 msgid ""
5827 " blockdev-getss device\n"
5828 "\n"
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5833 msgid ""
5834 "This returns the size of sectors on a block device.  Usually 512, but can be "
5835 "larger for modern devices."
5836 msgstr ""
5837
5838 #. type: textblock
5839 #: ../fish/guestfish-actions.pod:497
5840 msgid ""
5841 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5842 msgstr ""
5843
5844 #. type: =head2
5845 #: ../fish/guestfish-actions.pod:502
5846 msgid "blockdev-getsz"
5847 msgstr ""
5848
5849 #. type: verbatim
5850 #: ../fish/guestfish-actions.pod:504
5851 #, no-wrap
5852 msgid ""
5853 " blockdev-getsz device\n"
5854 "\n"
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5859 msgid ""
5860 "This returns the size of the device in units of 512-byte sectors (even if "
5861 "the sectorsize isn't 512 bytes ... weird)."
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:509
5866 msgid ""
5867 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5868 "blockdev-getsize64> for the more useful I<size in bytes>."
5869 msgstr ""
5870
5871 #. type: =head2
5872 #: ../fish/guestfish-actions.pod:515
5873 msgid "blockdev-rereadpt"
5874 msgstr ""
5875
5876 #. type: verbatim
5877 #: ../fish/guestfish-actions.pod:517
5878 #, no-wrap
5879 msgid ""
5880 " blockdev-rereadpt device\n"
5881 "\n"
5882 msgstr ""
5883
5884 #. type: textblock
5885 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5886 msgid "Reread the partition table on C<device>."
5887 msgstr ""
5888
5889 #. type: =head2
5890 #: ../fish/guestfish-actions.pod:523
5891 msgid "blockdev-setbsz"
5892 msgstr ""
5893
5894 #. type: verbatim
5895 #: ../fish/guestfish-actions.pod:525
5896 #, no-wrap
5897 msgid ""
5898 " blockdev-setbsz device blocksize\n"
5899 "\n"
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5904 msgid "This sets the block size of a device."
5905 msgstr ""
5906
5907 #. type: =head2
5908 #: ../fish/guestfish-actions.pod:534
5909 msgid "blockdev-setro"
5910 msgstr ""
5911
5912 #. type: verbatim
5913 #: ../fish/guestfish-actions.pod:536
5914 #, no-wrap
5915 msgid ""
5916 " blockdev-setro device\n"
5917 "\n"
5918 msgstr ""
5919
5920 #. type: textblock
5921 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5922 msgid "Sets the block device named C<device> to read-only."
5923 msgstr ""
5924
5925 #. type: =head2
5926 #: ../fish/guestfish-actions.pod:542
5927 msgid "blockdev-setrw"
5928 msgstr ""
5929
5930 #. type: verbatim
5931 #: ../fish/guestfish-actions.pod:544
5932 #, no-wrap
5933 msgid ""
5934 " blockdev-setrw device\n"
5935 "\n"
5936 msgstr ""
5937
5938 #. type: textblock
5939 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5940 msgid "Sets the block device named C<device> to read-write."
5941 msgstr ""
5942
5943 #. type: =head2
5944 #: ../fish/guestfish-actions.pod:550
5945 msgid "btrfs-filesystem-resize"
5946 msgstr ""
5947
5948 #. type: verbatim
5949 #: ../fish/guestfish-actions.pod:552
5950 #, no-wrap
5951 msgid ""
5952 " btrfs-filesystem-resize mountpoint [size:..]\n"
5953 "\n"
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5958 msgid "This command resizes a btrfs filesystem."
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5963 msgid ""
5964 "Note that unlike other resize calls, the filesystem has to be mounted and "
5965 "the parameter is the mountpoint not the device (this is a requirement of "
5966 "btrfs itself)."
5967 msgstr ""
5968
5969 #. type: textblock
5970 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5971 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
5972 msgid "The optional parameters are:"
5973 msgstr ""
5974
5975 #. type: =item
5976 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5977 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
5978 msgid "C<size>"
5979 msgstr ""
5980
5981 #. type: textblock
5982 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5983 msgid ""
5984 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5985 "resized to the maximum size."
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5990 msgid "See also L<btrfs(8)>."
5991 msgstr ""
5992
5993 #. type: =head2
5994 #: ../fish/guestfish-actions.pod:575
5995 msgid "case-sensitive-path"
5996 msgstr ""
5997
5998 #. type: verbatim
5999 #: ../fish/guestfish-actions.pod:577
6000 #, no-wrap
6001 msgid ""
6002 " case-sensitive-path path\n"
6003 "\n"
6004 msgstr ""
6005
6006 #. type: textblock
6007 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6008 msgid ""
6009 "This can be used to resolve case insensitive paths on a filesystem which is "
6010 "case sensitive.  The use case is to resolve paths which you have read from "
6011 "Windows configuration files or the Windows Registry, to the true path."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6016 msgid ""
6017 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6018 "(and probably others), which is that although the underlying filesystem is "
6019 "case-insensitive, the driver exports the filesystem to Linux as case-"
6020 "sensitive."
6021 msgstr ""
6022
6023 #. type: textblock
6024 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6025 msgid ""
6026 "One consequence of this is that special directories such as C<c:\\windows> "
6027 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6028 "precise details of how they were created.  In Windows itself this would not "
6029 "be a problem."
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6034 msgid ""
6035 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6036 "#posixfilenames1>"
6037 msgstr ""
6038
6039 #. type: textblock
6040 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6041 msgid ""
6042 "This function resolves the true case of each element in the path and returns "
6043 "the case-sensitive path."
6044 msgstr ""
6045
6046 #. type: textblock
6047 #: ../fish/guestfish-actions.pod:601
6048 msgid ""
6049 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
6050 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6051 "the directories were originally created under Windows)."
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6056 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6057 msgstr ""
6058
6059 #. type: textblock
6060 #: ../fish/guestfish-actions.pod:609
6061 msgid "See also L</realpath>."
6062 msgstr ""
6063
6064 #. type: =head2
6065 #: ../fish/guestfish-actions.pod:611
6066 msgid "cat"
6067 msgstr "cat"
6068
6069 #. type: verbatim
6070 #: ../fish/guestfish-actions.pod:613
6071 #, no-wrap
6072 msgid ""
6073 " cat path\n"
6074 "\n"
6075 msgstr ""
6076 " cat шлях\n"
6077 "\n"
6078
6079 #. type: textblock
6080 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6081 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
6082 msgid "Return the contents of the file named C<path>."
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../fish/guestfish-actions.pod:617
6087 msgid ""
6088 "Note that this function cannot correctly handle binary files (specifically, "
6089 "files containing C<\\0> character which is treated as end of string).  For "
6090 "those you need to use the L</read-file> or L</download> functions which have "
6091 "a more complex interface."
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6096 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6097 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6098 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6099 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6100 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6101 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6102 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6103 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6104 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6105 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6106 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6107 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6108 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6109 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6110 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6111 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6112 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
6113 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
6114 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
6115 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
6116 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
6117 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
6118 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
6119 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
6120 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
6121 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
6122 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
6123 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
6124 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
6125 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
6126 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
6127 msgid ""
6128 "Because of the message protocol, there is a transfer limit of somewhere "
6129 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6130 msgstr ""
6131
6132 #. type: =head2
6133 #: ../fish/guestfish-actions.pod:625
6134 msgid "checksum"
6135 msgstr "checksum"
6136
6137 #. type: verbatim
6138 #: ../fish/guestfish-actions.pod:627
6139 #, no-wrap
6140 msgid ""
6141 " checksum csumtype path\n"
6142 "\n"
6143 msgstr ""
6144
6145 #. type: textblock
6146 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6147 msgid ""
6148 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6153 msgid ""
6154 "The type of checksum to compute is given by the C<csumtype> parameter which "
6155 "must have one of the following values:"
6156 msgstr ""
6157
6158 #. type: =item
6159 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6160 msgid "C<crc>"
6161 msgstr "C<crc>"
6162
6163 #. type: textblock
6164 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6165 msgid ""
6166 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6167 "C<cksum> command."
6168 msgstr ""
6169
6170 #. type: =item
6171 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6172 msgid "C<md5>"
6173 msgstr "C<md5>"
6174
6175 #. type: textblock
6176 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6177 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6178 msgstr ""
6179
6180 #. type: =item
6181 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6182 msgid "C<sha1>"
6183 msgstr "C<sha1>"
6184
6185 #. type: textblock
6186 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6187 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6188 msgstr ""
6189
6190 #. type: =item
6191 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6192 msgid "C<sha224>"
6193 msgstr "C<sha224>"
6194
6195 #. type: textblock
6196 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6197 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6198 msgstr ""
6199
6200 #. type: =item
6201 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6202 msgid "C<sha256>"
6203 msgstr "C<sha256>"
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6207 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6208 msgstr ""
6209
6210 #. type: =item
6211 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6212 msgid "C<sha384>"
6213 msgstr "C<sha384>"
6214
6215 #. type: textblock
6216 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6217 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6218 msgstr ""
6219
6220 #. type: =item
6221 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6222 msgid "C<sha512>"
6223 msgstr "C<sha512>"
6224
6225 #. type: textblock
6226 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6227 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6228 msgstr ""
6229
6230 #. type: textblock
6231 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6232 msgid "The checksum is returned as a printable string."
6233 msgstr ""
6234
6235 #. type: textblock
6236 #: ../fish/guestfish-actions.pod:670
6237 msgid "To get the checksum for a device, use L</checksum-device>."
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../fish/guestfish-actions.pod:672
6242 msgid "To get the checksums for many files, use L</checksums-out>."
6243 msgstr ""
6244
6245 #. type: =head2
6246 #: ../fish/guestfish-actions.pod:674
6247 msgid "checksum-device"
6248 msgstr "checksum-device"
6249
6250 #. type: verbatim
6251 #: ../fish/guestfish-actions.pod:676
6252 #, no-wrap
6253 msgid ""
6254 " checksum-device csumtype device\n"
6255 "\n"
6256 msgstr ""
6257
6258 #. type: textblock
6259 #: ../fish/guestfish-actions.pod:678
6260 msgid ""
6261 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6262 "device named C<device>.  For the types of checksums supported see the L</"
6263 "checksum> command."
6264 msgstr ""
6265
6266 #. type: =head2
6267 #: ../fish/guestfish-actions.pod:682
6268 msgid "checksums-out"
6269 msgstr ""
6270
6271 #. type: verbatim
6272 #: ../fish/guestfish-actions.pod:684
6273 #, no-wrap
6274 msgid ""
6275 " checksums-out csumtype directory (sumsfile|-)\n"
6276 "\n"
6277 msgstr ""
6278
6279 #. type: textblock
6280 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6281 msgid ""
6282 "This command computes the checksums of all regular files in C<directory> and "
6283 "then emits a list of those checksums to the local output file C<sumsfile>."
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6288 msgid ""
6289 "This can be used for verifying the integrity of a virtual machine.  However "
6290 "to be properly secure you should pay attention to the output of the checksum "
6291 "command (it uses the ones from GNU coreutils).  In particular when the "
6292 "filename is not printable, coreutils uses a special backslash syntax.  For "
6293 "more information, see the GNU coreutils info file."
6294 msgstr ""
6295
6296 #. type: =head2
6297 #: ../fish/guestfish-actions.pod:700
6298 msgid "chmod"
6299 msgstr "chmod"
6300
6301 #. type: verbatim
6302 #: ../fish/guestfish-actions.pod:702
6303 #, no-wrap
6304 msgid ""
6305 " chmod mode path\n"
6306 "\n"
6307 msgstr ""
6308
6309 #. type: textblock
6310 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6311 msgid ""
6312 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6313 "supported."
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6318 msgid ""
6319 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6320 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6321 "C<700>."
6322 msgstr ""
6323
6324 #. type: textblock
6325 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6326 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6327 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6328 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
6329 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
6330 msgid "The mode actually set is affected by the umask."
6331 msgstr ""
6332
6333 #. type: =head2
6334 #: ../fish/guestfish-actions.pod:713
6335 msgid "chown"
6336 msgstr "chown"
6337
6338 #. type: verbatim
6339 #: ../fish/guestfish-actions.pod:715
6340 #, no-wrap
6341 msgid ""
6342 " chown owner group path\n"
6343 "\n"
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6348 msgid "Change the file owner to C<owner> and group to C<group>."
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6353 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
6354 msgid ""
6355 "Only numeric uid and gid are supported.  If you want to use names, you will "
6356 "need to locate and parse the password file yourself (Augeas support makes "
6357 "this relatively easy)."
6358 msgstr ""
6359
6360 #. type: =head2
6361 #: ../fish/guestfish-actions.pod:723
6362 msgid "command"
6363 msgstr ""
6364
6365 #. type: verbatim
6366 #: ../fish/guestfish-actions.pod:725
6367 #, no-wrap
6368 msgid ""
6369 " command 'arguments ...'\n"
6370 "\n"
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6375 msgid ""
6376 "This call runs a command from the guest filesystem.  The filesystem must be "
6377 "mounted, and must contain a compatible operating system (ie. something "
6378 "Linux, with the same or compatible processor architecture)."
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:732
6383 msgid ""
6384 "The single parameter is an argv-style list of arguments.  The first element "
6385 "is the name of the program to run.  Subsequent elements are parameters.  The "
6386 "list must be non-empty (ie. must contain a program name).  Note that the "
6387 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6388 msgstr ""
6389
6390 #. type: textblock
6391 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6392 msgid "The return value is anything printed to I<stdout> by the command."
6393 msgstr ""
6394
6395 #. type: textblock
6396 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6397 msgid ""
6398 "If the command returns a non-zero exit status, then this function returns an "
6399 "error message.  The error message string is the content of I<stderr> from "
6400 "the command."
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6405 msgid ""
6406 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6407 "bin>.  If you require a program from another location, you should provide "
6408 "the full path in the first parameter."
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6413 msgid ""
6414 "Shared libraries and data files required by the program must be available on "
6415 "filesystems which are mounted in the correct places.  It is the caller's "
6416 "responsibility to ensure all filesystems that are needed are mounted at the "
6417 "right locations."
6418 msgstr ""
6419
6420 #. type: =head2
6421 #: ../fish/guestfish-actions.pod:760
6422 msgid "command-lines"
6423 msgstr ""
6424
6425 #. type: verbatim
6426 #: ../fish/guestfish-actions.pod:762
6427 #, no-wrap
6428 msgid ""
6429 " command-lines 'arguments ...'\n"
6430 "\n"
6431 msgstr ""
6432
6433 #. type: textblock
6434 #: ../fish/guestfish-actions.pod:764
6435 msgid ""
6436 "This is the same as L</command>, but splits the result into a list of lines."
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:767
6441 msgid "See also: L</sh-lines>"
6442 msgstr ""
6443
6444 #. type: =head2
6445 #: ../fish/guestfish-actions.pod:772
6446 #, fuzzy
6447 #| msgid "pread-device"
6448 msgid "compress-device-out"
6449 msgstr "pread-device"
6450
6451 #. type: verbatim
6452 #: ../fish/guestfish-actions.pod:774
6453 #, no-wrap
6454 msgid ""
6455 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6456 "\n"
6457 msgstr ""
6458
6459 #. type: textblock
6460 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6461 msgid ""
6462 "This command compresses C<device> and writes it out to the local file "
6463 "C<zdevice>."
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:779
6468 msgid ""
6469 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6470 "compress-out>."
6471 msgstr ""
6472
6473 #. type: =head2
6474 #: ../fish/guestfish-actions.pod:786
6475 #, fuzzy
6476 #| msgid "copy-out"
6477 msgid "compress-out"
6478 msgstr "copy-out"
6479
6480 #. type: verbatim
6481 #: ../fish/guestfish-actions.pod:788
6482 #, no-wrap
6483 msgid ""
6484 " compress-out ctype file (zfile|-) [level:..]\n"
6485 "\n"
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6490 msgid ""
6491 "This command compresses C<file> and writes it out to the local file C<zfile>."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6496 msgid ""
6497 "The compression program used is controlled by the C<ctype> parameter.  "
6498 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6499 "Some compression types may not be supported by particular builds of "
6500 "libguestfs, in which case you will get an error containing the substring "
6501 "\"not supported\"."
6502 msgstr ""
6503
6504 #. type: textblock
6505 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6506 msgid ""
6507 "The optional C<level> parameter controls compression level.  The meaning and "
6508 "default for this parameter depends on the compression program being used."
6509 msgstr ""
6510
6511 #. type: =head2
6512 #: ../fish/guestfish-actions.pod:807
6513 msgid "config"
6514 msgstr ""
6515
6516 #. type: verbatim
6517 #: ../fish/guestfish-actions.pod:809
6518 #, no-wrap
6519 msgid ""
6520 " config qemuparam qemuvalue\n"
6521 "\n"
6522 msgstr ""
6523
6524 #. type: textblock
6525 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6526 msgid ""
6527 "This can be used to add arbitrary qemu command line parameters of the form "
6528 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6529 "setting some parameters which would interfere with parameters that we use."
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6534 msgid "The first character of C<param> string must be a C<-> (dash)."
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6539 msgid "C<value> can be NULL."
6540 msgstr ""
6541
6542 #. type: =head2
6543 #: ../fish/guestfish-actions.pod:820
6544 msgid "copy-size"
6545 msgstr ""
6546
6547 #. type: verbatim
6548 #: ../fish/guestfish-actions.pod:822
6549 #, no-wrap
6550 msgid ""
6551 " copy-size src dest size\n"
6552 "\n"
6553 msgstr ""
6554
6555 #. type: textblock
6556 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6557 msgid ""
6558 "This command copies exactly C<size> bytes from one source device or file "
6559 "C<src> to another destination device or file C<dest>."
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6564 msgid ""
6565 "Note this will fail if the source is too short or if the destination is not "
6566 "large enough."
6567 msgstr ""
6568
6569 #. type: =head2
6570 #: ../fish/guestfish-actions.pod:830
6571 msgid "cp"
6572 msgstr "cp"
6573
6574 #. type: verbatim
6575 #: ../fish/guestfish-actions.pod:832
6576 #, no-wrap
6577 msgid ""
6578 " cp src dest\n"
6579 "\n"
6580 msgstr ""
6581
6582 #. type: textblock
6583 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6584 msgid ""
6585 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6586 "destination filename or destination directory."
6587 msgstr ""
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:837
6591 msgid "cp-a"
6592 msgstr "cp-a"
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:839
6596 #, no-wrap
6597 msgid ""
6598 " cp-a src dest\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6604 msgid ""
6605 "This copies a file or directory from C<src> to C<dest> recursively using the "
6606 "C<cp -a> command."
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:844
6611 msgid "dd"
6612 msgstr "dd"
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:846
6616 #, no-wrap
6617 msgid ""
6618 " dd src dest\n"
6619 "\n"
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6624 msgid ""
6625 "This command copies from one source device or file C<src> to another "
6626 "destination device or file C<dest>.  Normally you would use this to copy to "
6627 "or from a device or partition, for example to duplicate a filesystem."
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../fish/guestfish-actions.pod:853
6632 msgid ""
6633 "If the destination is a device, it must be as large or larger than the "
6634 "source file or device, otherwise the copy will fail.  This command cannot do "
6635 "partial copies (see L</copy-size>)."
6636 msgstr ""
6637
6638 #. type: =head2
6639 #: ../fish/guestfish-actions.pod:857
6640 msgid "df"
6641 msgstr "df"
6642
6643 #. type: verbatim
6644 #: ../fish/guestfish-actions.pod:859
6645 #, no-wrap
6646 msgid ""
6647 " df\n"
6648 "\n"
6649 msgstr ""
6650 " df\n"
6651 "\n"
6652
6653 #. type: textblock
6654 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
6655 msgid "This command runs the C<df> command to report disk space used."
6656 msgstr ""
6657
6658 #. type: textblock
6659 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6660 msgid ""
6661 "This command is mostly useful for interactive sessions.  It is I<not> "
6662 "intended that you try to parse the output string.  Use L</statvfs> from "
6663 "programs."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:867
6668 msgid "df-h"
6669 msgstr "df-h"
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:869
6673 #, no-wrap
6674 msgid ""
6675 " df-h\n"
6676 "\n"
6677 msgstr ""
6678 " df-h\n"
6679 "\n"
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
6683 msgid ""
6684 "This command runs the C<df -h> command to report disk space used in human-"
6685 "readable format."
6686 msgstr ""
6687
6688 #. type: =head2
6689 #: ../fish/guestfish-actions.pod:878
6690 msgid "dmesg"
6691 msgstr "dmesg"
6692
6693 #. type: verbatim
6694 #: ../fish/guestfish-actions.pod:880
6695 #, no-wrap
6696 msgid ""
6697 " dmesg\n"
6698 "\n"
6699 msgstr ""
6700 " dmesg\n"
6701 "\n"
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
6705 msgid ""
6706 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6707 "This is sometimes useful for extended debugging of problems."
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:886
6712 msgid ""
6713 "Another way to get the same information is to enable verbose messages with "
6714 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6715 "before running the program."
6716 msgstr ""
6717
6718 #. type: =head2
6719 #: ../fish/guestfish-actions.pod:891
6720 msgid "download"
6721 msgstr "download"
6722
6723 #. type: verbatim
6724 #: ../fish/guestfish-actions.pod:893
6725 #, no-wrap
6726 msgid ""
6727 " download remotefilename (filename|-)\n"
6728 "\n"
6729 msgstr ""
6730
6731 #. type: textblock
6732 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6733 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
6734 msgid ""
6735 "Download file C<remotefilename> and save it as C<filename> on the local "
6736 "machine."
6737 msgstr ""
6738
6739 #. type: textblock
6740 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6741 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
6742 msgid "C<filename> can also be a named pipe."
6743 msgstr ""
6744
6745 #. type: textblock
6746 #: ../fish/guestfish-actions.pod:900
6747 msgid "See also L</upload>, L</cat>."
6748 msgstr ""
6749
6750 #. type: =head2
6751 #: ../fish/guestfish-actions.pod:904
6752 msgid "download-offset"
6753 msgstr "download-offset"
6754
6755 #. type: verbatim
6756 #: ../fish/guestfish-actions.pod:906
6757 #, no-wrap
6758 msgid ""
6759 " download-offset remotefilename (filename|-) offset size\n"
6760 "\n"
6761 msgstr ""
6762
6763 #. type: textblock
6764 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
6765 msgid ""
6766 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6767 "region must be within the file or device)."
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:914
6772 msgid ""
6773 "Note that there is no limit on the amount of data that can be downloaded "
6774 "with this call, unlike with L</pread>, and this call always reads the full "
6775 "amount unless an error occurs."
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:919
6780 msgid "See also L</download>, L</pread>."
6781 msgstr ""
6782
6783 #. type: =head2
6784 #: ../fish/guestfish-actions.pod:923
6785 msgid "drop-caches"
6786 msgstr ""
6787
6788 #. type: verbatim
6789 #: ../fish/guestfish-actions.pod:925
6790 #, no-wrap
6791 msgid ""
6792 " drop-caches whattodrop\n"
6793 "\n"
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
6798 msgid ""
6799 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6800 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6801 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
6806 msgid "Setting C<whattodrop> to 3 should drop everything."
6807 msgstr ""
6808
6809 #. type: textblock
6810 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
6811 msgid ""
6812 "This automatically calls L<sync(2)> before the operation, so that the "
6813 "maximum guest memory is freed."
6814 msgstr ""
6815
6816 #. type: =head2
6817 #: ../fish/guestfish-actions.pod:937
6818 msgid "du"
6819 msgstr "du"
6820
6821 #. type: verbatim
6822 #: ../fish/guestfish-actions.pod:939
6823 #, no-wrap
6824 msgid ""
6825 " du path\n"
6826 "\n"
6827 msgstr ""
6828 " du шлях\n"
6829 "\n"
6830
6831 #. type: textblock
6832 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
6833 msgid ""
6834 "This command runs the C<du -s> command to estimate file space usage for "
6835 "C<path>."
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
6840 msgid ""
6841 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6842 "estimate includes the contents of the directory and all subdirectories "
6843 "(recursively)."
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
6848 msgid ""
6849 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6850 msgstr ""
6851
6852 #. type: =head2
6853 #: ../fish/guestfish-actions.pod:951
6854 msgid "e2fsck-f"
6855 msgstr "e2fsck-f"
6856
6857 #. type: verbatim
6858 #: ../fish/guestfish-actions.pod:953
6859 #, no-wrap
6860 msgid ""
6861 " e2fsck-f device\n"
6862 "\n"
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
6867 msgid ""
6868 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6869 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6870 "clean (I<-f>)."
6871 msgstr ""
6872
6873 #. type: textblock
6874 #: ../fish/guestfish-actions.pod:959
6875 msgid ""
6876 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6877 "should use L</fsck>."
6878 msgstr ""
6879
6880 #. type: =head2
6881 #: ../fish/guestfish-actions.pod:962
6882 msgid "echo-daemon"
6883 msgstr ""
6884
6885 #. type: verbatim
6886 #: ../fish/guestfish-actions.pod:964
6887 #, no-wrap
6888 msgid ""
6889 " echo-daemon 'words ...'\n"
6890 "\n"
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
6895 msgid ""
6896 "This command concatenates the list of C<words> passed with single spaces "
6897 "between them and returns the resulting string."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
6902 msgid "You can use this command to test the connection through to the daemon."
6903 msgstr ""
6904
6905 #. type: textblock
6906 #: ../fish/guestfish-actions.pod:971
6907 msgid "See also L</ping-daemon>."
6908 msgstr ""
6909
6910 #. type: =head2
6911 #: ../fish/guestfish-actions.pod:973
6912 msgid "egrep"
6913 msgstr "egrep"
6914
6915 #. type: verbatim
6916 #: ../fish/guestfish-actions.pod:975
6917 #, no-wrap
6918 msgid ""
6919 " egrep regex path\n"
6920 "\n"
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
6925 msgid ""
6926 "This calls the external C<egrep> program and returns the matching lines."
6927 msgstr ""
6928
6929 #. type: =head2
6930 #: ../fish/guestfish-actions.pod:983
6931 msgid "egrepi"
6932 msgstr "egrepi"
6933
6934 #. type: verbatim
6935 #: ../fish/guestfish-actions.pod:985
6936 #, no-wrap
6937 msgid ""
6938 " egrepi regex path\n"
6939 "\n"
6940 msgstr ""
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
6944 msgid ""
6945 "This calls the external C<egrep -i> program and returns the matching lines."
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../fish/guestfish-actions.pod:993
6950 msgid "equal"
6951 msgstr "equal"
6952
6953 #. type: verbatim
6954 #: ../fish/guestfish-actions.pod:995
6955 #, no-wrap
6956 msgid ""
6957 " equal file1 file2\n"
6958 "\n"
6959 msgstr ""
6960 " equal файл1 файл2\n"
6961 "\n"
6962
6963 #. type: textblock
6964 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
6965 msgid ""
6966 "This compares the two files C<file1> and C<file2> and returns true if their "
6967 "content is exactly equal, or false otherwise."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
6972 msgid "The external L<cmp(1)> program is used for the comparison."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:1002
6977 msgid "exists"
6978 msgstr "exists"
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:1004
6982 #, no-wrap
6983 msgid ""
6984 " exists path\n"
6985 "\n"
6986 msgstr ""
6987 " exists шлях\n"
6988 "\n"
6989
6990 #. type: textblock
6991 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
6992 msgid ""
6993 "This returns C<true> if and only if there is a file, directory (or anything) "
6994 "with the given C<path> name."
6995 msgstr ""
6996
6997 #. type: textblock
6998 #: ../fish/guestfish-actions.pod:1009
6999 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7000 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
7001
7002 #. type: =head2
7003 #: ../fish/guestfish-actions.pod:1011
7004 msgid "fallocate"
7005 msgstr "fallocate"
7006
7007 #. type: verbatim
7008 #: ../fish/guestfish-actions.pod:1013
7009 #, no-wrap
7010 msgid ""
7011 " fallocate path len\n"
7012 "\n"
7013 msgstr ""
7014 " fallocate шлях довжина\n"
7015 "\n"
7016
7017 #. type: textblock
7018 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
7019 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7020 msgid ""
7021 "This command preallocates a file (containing zero bytes) named C<path> of "
7022 "size C<len> bytes.  If the file exists already, it is overwritten."
7023 msgstr ""
7024
7025 #. type: textblock
7026 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7027 msgid ""
7028 "Do not confuse this with the guestfish-specific C<alloc> command which "
7029 "allocates a file in the host and attaches it as a device."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1023
7034 msgid ""
7035 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7036 "instead."
7037 msgstr ""
7038
7039 #. type: =head2
7040 #: ../fish/guestfish-actions.pod:1030
7041 msgid "fallocate64"
7042 msgstr "fallocate64"
7043
7044 #. type: verbatim
7045 #: ../fish/guestfish-actions.pod:1032
7046 #, no-wrap
7047 msgid ""
7048 " fallocate64 path len\n"
7049 "\n"
7050 msgstr ""
7051 " fallocate64 шлях довжина\n"
7052 "\n"
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:1038
7056 msgid ""
7057 "Note that this call allocates disk blocks for the file.  To create a sparse "
7058 "file use L</truncate-size> instead."
7059 msgstr ""
7060
7061 #. type: textblock
7062 #: ../fish/guestfish-actions.pod:1041
7063 msgid ""
7064 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7065 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7066 "maximum size of files created through that call to 1GB."
7067 msgstr ""
7068
7069 #. type: textblock
7070 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7071 msgid ""
7072 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7073 "commands which create a file in the host and attach it as a device."
7074 msgstr ""
7075
7076 #. type: =head2
7077 #: ../fish/guestfish-actions.pod:1050
7078 msgid "fgrep"
7079 msgstr "fgrep"
7080
7081 #. type: verbatim
7082 #: ../fish/guestfish-actions.pod:1052
7083 #, no-wrap
7084 msgid ""
7085 " fgrep pattern path\n"
7086 "\n"
7087 msgstr ""
7088 " fgrep шаблон шлях\n"
7089 "\n"
7090
7091 #. type: textblock
7092 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7093 msgid ""
7094 "This calls the external C<fgrep> program and returns the matching lines."
7095 msgstr ""
7096
7097 #. type: =head2
7098 #: ../fish/guestfish-actions.pod:1060
7099 msgid "fgrepi"
7100 msgstr "fgrepi"
7101
7102 #. type: verbatim
7103 #: ../fish/guestfish-actions.pod:1062
7104 #, no-wrap
7105 msgid ""
7106 " fgrepi pattern path\n"
7107 "\n"
7108 msgstr ""
7109 " fgrepi шаблон шлях\n"
7110 "\n"
7111
7112 #. type: textblock
7113 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7114 msgid ""
7115 "This calls the external C<fgrep -i> program and returns the matching lines."
7116 msgstr ""
7117
7118 #. type: =head2
7119 #: ../fish/guestfish-actions.pod:1070
7120 msgid "file"
7121 msgstr "file"
7122
7123 #. type: verbatim
7124 #: ../fish/guestfish-actions.pod:1072
7125 #, no-wrap
7126 msgid ""
7127 " file path\n"
7128 "\n"
7129 msgstr ""
7130 " file шлях\n"
7131 "\n"
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7135 msgid ""
7136 "This call uses the standard L<file(1)> command to determine the type or "
7137 "contents of the file."
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7142 msgid ""
7143 "This call will also transparently look inside various types of compressed "
7144 "file."
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7149 msgid ""
7150 "The exact command which runs is C<file -zb path>.  Note in particular that "
7151 "the filename is not prepended to the output (the I<-b> option)."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7156 msgid ""
7157 "The output depends on the output of the underlying L<file(1)> command and it "
7158 "can change in future in ways beyond our control.  In other words, the output "
7159 "is not guaranteed by the ABI."
7160 msgstr ""
7161
7162 #. type: textblock
7163 #: ../fish/guestfish-actions.pod:1088
7164 msgid ""
7165 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7166 "(etc), L</is-zero>."
7167 msgstr ""
7168
7169 #. type: =head2
7170 #: ../fish/guestfish-actions.pod:1091
7171 msgid "file-architecture"
7172 msgstr "file-architecture"
7173
7174 #. type: verbatim
7175 #: ../fish/guestfish-actions.pod:1093
7176 #, no-wrap
7177 msgid ""
7178 " file-architecture filename\n"
7179 "\n"
7180 msgstr ""
7181 " file-architecture назва_файла\n"
7182 "\n"
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7186 msgid ""
7187 "This detects the architecture of the binary C<filename>, and returns it if "
7188 "known."
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7193 msgid "Currently defined architectures are:"
7194 msgstr ""
7195
7196 #. type: =item
7197 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7198 msgid "\"i386\""
7199 msgstr "\"i386\""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7203 msgid ""
7204 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7205 "irrespective of the precise processor requirements of the binary."
7206 msgstr ""
7207
7208 #. type: =item
7209 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7210 msgid "\"x86_64\""
7211 msgstr "\"x86_64\""
7212
7213 #. type: textblock
7214 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7215 msgid "64 bit x86-64."
7216 msgstr ""
7217
7218 #. type: =item
7219 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7220 msgid "\"sparc\""
7221 msgstr ""
7222
7223 #. type: textblock
7224 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7225 msgid "32 bit SPARC."
7226 msgstr ""
7227
7228 #. type: =item
7229 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7230 msgid "\"sparc64\""
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7235 msgid "64 bit SPARC V9 and above."
7236 msgstr ""
7237
7238 #. type: =item
7239 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7240 msgid "\"ia64\""
7241 msgstr "\"ia64\""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7245 msgid "Intel Itanium."
7246 msgstr "Intel Itanium."
7247
7248 #. type: =item
7249 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7250 msgid "\"ppc\""
7251 msgstr ""
7252
7253 #. type: textblock
7254 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7255 msgid "32 bit Power PC."
7256 msgstr ""
7257
7258 #. type: =item
7259 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7260 msgid "\"ppc64\""
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7265 msgid "64 bit Power PC."
7266 msgstr ""
7267
7268 #. type: textblock
7269 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7270 msgid "Libguestfs may return other architecture strings in future."
7271 msgstr ""
7272
7273 #. type: textblock
7274 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7275 msgid "The function works on at least the following types of files:"
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7280 msgid "many types of Un*x and Linux binary"
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7285 msgid "many types of Un*x and Linux shared library"
7286 msgstr ""
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7290 msgid "Windows Win32 and Win64 binaries"
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7295 msgid "Windows Win32 and Win64 DLLs"
7296 msgstr ""
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7300 msgid "Win32 binaries and DLLs return C<i386>."
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7305 msgid "Win64 binaries and DLLs return C<x86_64>."
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7310 msgid "Linux kernel modules"
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7315 msgid "Linux new-style initrd images"
7316 msgstr ""
7317
7318 #. type: textblock
7319 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7320 msgid "some non-x86 Linux vmlinuz kernels"
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7325 msgid "What it can't do currently:"
7326 msgstr ""
7327
7328 #. type: textblock
7329 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7330 msgid "static libraries (libfoo.a)"
7331 msgstr ""
7332
7333 #. type: textblock
7334 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7335 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7340 msgid "x86 Linux vmlinuz kernels"
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7345 msgid ""
7346 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7347 "compressed code, and are horribly hard to unpack.  If you want to find the "
7348 "architecture of a kernel, use the architecture of the associated initrd or "
7349 "kernel module(s) instead."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:1196
7354 msgid "filesize"
7355 msgstr "filesize"
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:1198
7359 #, no-wrap
7360 msgid ""
7361 " filesize file\n"
7362 "\n"
7363 msgstr ""
7364 " filesize файл\n"
7365 "\n"
7366
7367 #. type: textblock
7368 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7369 msgid "This command returns the size of C<file> in bytes."
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:1202
7374 msgid ""
7375 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7376 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7377 msgstr ""
7378
7379 #. type: =head2
7380 #: ../fish/guestfish-actions.pod:1206
7381 msgid "fill"
7382 msgstr "fill"
7383
7384 #. type: verbatim
7385 #: ../fish/guestfish-actions.pod:1208
7386 #, no-wrap
7387 msgid ""
7388 " fill c len path\n"
7389 "\n"
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7394 msgid ""
7395 "This command creates a new file called C<path>.  The initial content of the "
7396 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7397 "[0..255]>."
7398 msgstr ""
7399
7400 #. type: textblock
7401 #: ../fish/guestfish-actions.pod:1214
7402 msgid ""
7403 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7404 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7405 "L</fill-pattern>."
7406 msgstr ""
7407
7408 #. type: =head2
7409 #: ../fish/guestfish-actions.pod:1219
7410 msgid "fill-pattern"
7411 msgstr "fill-pattern"
7412
7413 #. type: verbatim
7414 #: ../fish/guestfish-actions.pod:1221
7415 #, no-wrap
7416 msgid ""
7417 " fill-pattern pattern len path\n"
7418 "\n"
7419 msgstr ""
7420
7421 #. type: textblock
7422 #: ../fish/guestfish-actions.pod:1223
7423 msgid ""
7424 "This function is like L</fill> except that it creates a new file of length "
7425 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7426 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7427 "bytes."
7428 msgstr ""
7429
7430 #. type: =head2
7431 #: ../fish/guestfish-actions.pod:1228
7432 msgid "find"
7433 msgstr "find"
7434
7435 #. type: verbatim
7436 #: ../fish/guestfish-actions.pod:1230
7437 #, no-wrap
7438 msgid ""
7439 " find directory\n"
7440 "\n"
7441 msgstr ""
7442 " find каталог\n"
7443 "\n"
7444
7445 #. type: textblock
7446 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7447 msgid ""
7448 "This command lists out all files and directories, recursively, starting at "
7449 "C<directory>.  It is essentially equivalent to running the shell command "
7450 "C<find directory -print> but some post-processing happens on the output, "
7451 "described below."
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7456 msgid ""
7457 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7458 "structure was:"
7459 msgstr ""
7460
7461 #. type: verbatim
7462 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7463 #, no-wrap
7464 msgid ""
7465 " /tmp/a\n"
7466 " /tmp/b\n"
7467 " /tmp/c/d\n"
7468 "\n"
7469 msgstr ""
7470
7471 #. type: textblock
7472 #: ../fish/guestfish-actions.pod:1244
7473 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7474 msgstr ""
7475
7476 #. type: verbatim
7477 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7478 #, no-wrap
7479 msgid ""
7480 " a\n"
7481 " b\n"
7482 " c\n"
7483 " c/d\n"
7484 "\n"
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7489 msgid "If C<directory> is not a directory, then this command returns an error."
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7494 msgid "The returned list is sorted."
7495 msgstr ""
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:1257
7499 msgid "See also L</find0>."
7500 msgstr "Див. також L</find0>."
7501
7502 #. type: =head2
7503 #: ../fish/guestfish-actions.pod:1262
7504 msgid "find0"
7505 msgstr "find0"
7506
7507 #. type: verbatim
7508 #: ../fish/guestfish-actions.pod:1264
7509 #, no-wrap
7510 msgid ""
7511 " find0 directory (files|-)\n"
7512 "\n"
7513 msgstr ""
7514 " find0 каталог (файли|-)\n"
7515 "\n"
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7519 msgid ""
7520 "This command lists out all files and directories, recursively, starting at "
7521 "C<directory>, placing the resulting list in the external file called "
7522 "C<files>."
7523 msgstr ""
7524
7525 #. type: textblock
7526 #: ../fish/guestfish-actions.pod:1270
7527 msgid ""
7528 "This command works the same way as L</find> with the following exceptions:"
7529 msgstr ""
7530
7531 #. type: textblock
7532 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7533 msgid "The resulting list is written to an external file."
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7538 msgid ""
7539 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7540 "L<find(1)> option I<-print0>."
7541 msgstr ""
7542
7543 #. type: textblock
7544 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7545 msgid "This command is not limited in the number of names that it can return."
7546 msgstr ""
7547
7548 #. type: textblock
7549 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7550 msgid "The result list is not sorted."
7551 msgstr ""
7552
7553 #. type: =head2
7554 #: ../fish/guestfish-actions.pod:1297
7555 msgid "findfs-label"
7556 msgstr "findfs-label"
7557
7558 #. type: verbatim
7559 #: ../fish/guestfish-actions.pod:1299
7560 #, no-wrap
7561 msgid ""
7562 " findfs-label label\n"
7563 "\n"
7564 msgstr ""
7565 " findfs-label мітка\n"
7566 "\n"
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7570 msgid ""
7571 "This command searches the filesystems and returns the one which has the "
7572 "given label.  An error is returned if no such filesystem can be found."
7573 msgstr ""
7574
7575 #. type: textblock
7576 #: ../fish/guestfish-actions.pod:1305
7577 msgid "To find the label of a filesystem, use L</vfs-label>."
7578 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7579
7580 #. type: =head2
7581 #: ../fish/guestfish-actions.pod:1307
7582 msgid "findfs-uuid"
7583 msgstr "findfs-uuid"
7584
7585 #. type: verbatim
7586 #: ../fish/guestfish-actions.pod:1309
7587 #, no-wrap
7588 msgid ""
7589 " findfs-uuid uuid\n"
7590 "\n"
7591 msgstr ""
7592 " findfs-uuid uuid\n"
7593 "\n"
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7597 msgid ""
7598 "This command searches the filesystems and returns the one which has the "
7599 "given UUID.  An error is returned if no such filesystem can be found."
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:1315
7604 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7605 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7606
7607 #. type: =head2
7608 #: ../fish/guestfish-actions.pod:1317
7609 msgid "fsck"
7610 msgstr "fsck"
7611
7612 #. type: verbatim
7613 #: ../fish/guestfish-actions.pod:1319
7614 #, no-wrap
7615 msgid ""
7616 " fsck fstype device\n"
7617 "\n"
7618 msgstr ""
7619 " fsck тип_файлової_системи пристрій\n"
7620 "\n"
7621
7622 #. type: textblock
7623 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7624 msgid ""
7625 "This runs the filesystem checker (fsck) on C<device> which should have "
7626 "filesystem type C<fstype>."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7631 msgid ""
7632 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7633 "codes from C<fsck>."
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7638 msgid "Multiple status codes can be summed together."
7639 msgstr ""
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7643 msgid ""
7644 "A non-zero return code can mean \"success\", for example if errors have been "
7645 "corrected on the filesystem."
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
7650 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
7655 msgid ""
7656 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7657 msgstr ""
7658
7659 #. type: =head2
7660 #: ../fish/guestfish-actions.pod:1349
7661 msgid "get-append"
7662 msgstr "get-append"
7663
7664 #. type: verbatim
7665 #: ../fish/guestfish-actions.pod:1351
7666 #, no-wrap
7667 msgid ""
7668 " get-append\n"
7669 "\n"
7670 msgstr ""
7671 " get-append\n"
7672 "\n"
7673
7674 #. type: textblock
7675 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
7676 msgid ""
7677 "Return the additional kernel options which are added to the guest kernel "
7678 "command line."
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
7683 msgid "If C<NULL> then no options are added."
7684 msgstr ""
7685
7686 #. type: =head2
7687 #: ../fish/guestfish-actions.pod:1358
7688 msgid "get-attach-method"
7689 msgstr "get-attach-method"
7690
7691 #. type: verbatim
7692 #: ../fish/guestfish-actions.pod:1360
7693 #, no-wrap
7694 msgid ""
7695 " get-attach-method\n"
7696 "\n"
7697 msgstr ""
7698 " get-attach-method\n"
7699 "\n"
7700
7701 #. type: textblock
7702 #: ../fish/guestfish-actions.pod:1362
7703 msgid "Return the current attach method.  See L</set-attach-method>."
7704 msgstr ""
7705
7706 #. type: =head2
7707 #: ../fish/guestfish-actions.pod:1364
7708 msgid "get-autosync"
7709 msgstr "get-autosync"
7710
7711 #. type: verbatim
7712 #: ../fish/guestfish-actions.pod:1366
7713 #, no-wrap
7714 msgid ""
7715 " get-autosync\n"
7716 "\n"
7717 msgstr ""
7718 " get-autosync\n"
7719 "\n"
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
7723 msgid "Get the autosync flag."
7724 msgstr ""
7725
7726 #. type: =head2
7727 #: ../fish/guestfish-actions.pod:1370
7728 msgid "get-direct"
7729 msgstr "get-direct"
7730
7731 #. type: verbatim
7732 #: ../fish/guestfish-actions.pod:1372
7733 #, no-wrap
7734 msgid ""
7735 " get-direct\n"
7736 "\n"
7737 msgstr ""
7738 " get-direct\n"
7739 "\n"
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
7743 msgid "Return the direct appliance mode flag."
7744 msgstr ""
7745
7746 #. type: =head2
7747 #: ../fish/guestfish-actions.pod:1376
7748 msgid "get-e2label"
7749 msgstr "get-e2label"
7750
7751 #. type: verbatim
7752 #: ../fish/guestfish-actions.pod:1378
7753 #, no-wrap
7754 msgid ""
7755 " get-e2label device\n"
7756 "\n"
7757 msgstr ""
7758 " get-e2label пристрій\n"
7759 "\n"
7760
7761 #. type: textblock
7762 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
7763 msgid ""
7764 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:1383
7769 msgid ""
7770 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7771 "instead."
7772 msgstr ""
7773
7774 #. type: =head2
7775 #: ../fish/guestfish-actions.pod:1390
7776 msgid "get-e2uuid"
7777 msgstr "get-e2uuid"
7778
7779 #. type: verbatim
7780 #: ../fish/guestfish-actions.pod:1392
7781 #, no-wrap
7782 msgid ""
7783 " get-e2uuid device\n"
7784 "\n"
7785 msgstr ""
7786 " get-e2uuid пристрій\n"
7787 "\n"
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
7791 msgid ""
7792 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7793 msgstr ""
7794
7795 #. type: textblock
7796 #: ../fish/guestfish-actions.pod:1397
7797 msgid ""
7798 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7799 "instead."
7800 msgstr ""
7801
7802 #. type: =head2
7803 #: ../fish/guestfish-actions.pod:1404
7804 msgid "get-memsize"
7805 msgstr "get-memsize"
7806
7807 #. type: verbatim
7808 #: ../fish/guestfish-actions.pod:1406
7809 #, no-wrap
7810 msgid ""
7811 " get-memsize\n"
7812 "\n"
7813 msgstr ""
7814 " get-memsize\n"
7815 "\n"
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
7819 msgid ""
7820 "This gets the memory size in megabytes allocated to the qemu subprocess."
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../fish/guestfish-actions.pod:1411
7825 msgid ""
7826 "If L</set-memsize> was not called on this handle, and if "
7827 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7828 "value for memsize."
7829 msgstr ""
7830
7831 #. type: textblock
7832 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7833 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7834 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
7835 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
7836 msgid ""
7837 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7838 msgstr ""
7839
7840 #. type: =head2
7841 #: ../fish/guestfish-actions.pod:1418
7842 msgid "get-network"
7843 msgstr "get-network"
7844
7845 #. type: verbatim
7846 #: ../fish/guestfish-actions.pod:1420
7847 #, no-wrap
7848 msgid ""
7849 " get-network\n"
7850 "\n"
7851 msgstr ""
7852 " get-network\n"
7853 "\n"
7854
7855 #. type: textblock
7856 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
7857 msgid "This returns the enable network flag."
7858 msgstr ""
7859
7860 #. type: =head2
7861 #: ../fish/guestfish-actions.pod:1424
7862 msgid "get-path"
7863 msgstr "get-path"
7864
7865 #. type: verbatim
7866 #: ../fish/guestfish-actions.pod:1426
7867 #, no-wrap
7868 msgid ""
7869 " get-path\n"
7870 "\n"
7871 msgstr ""
7872 " get-path\n"
7873 "\n"
7874
7875 #. type: textblock
7876 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
7877 msgid "Return the current search path."
7878 msgstr ""
7879
7880 #. type: textblock
7881 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
7882 msgid ""
7883 "This is always non-NULL.  If it wasn't set already, then this will return "
7884 "the default path."
7885 msgstr ""
7886
7887 #. type: =head2
7888 #: ../fish/guestfish-actions.pod:1433
7889 msgid "get-pgroup"
7890 msgstr ""
7891
7892 #. type: verbatim
7893 #: ../fish/guestfish-actions.pod:1435
7894 #, no-wrap
7895 msgid ""
7896 " get-pgroup\n"
7897 "\n"
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
7902 msgid "This returns the process group flag."
7903 msgstr ""
7904
7905 #. type: =head2
7906 #: ../fish/guestfish-actions.pod:1439
7907 msgid "get-pid"
7908 msgstr "get-pid"
7909
7910 #. type: =head2
7911 #: ../fish/guestfish-actions.pod:1441
7912 msgid "pid"
7913 msgstr ""
7914
7915 #. type: verbatim
7916 #: ../fish/guestfish-actions.pod:1443
7917 #, no-wrap
7918 msgid ""
7919 " get-pid\n"
7920 "\n"
7921 msgstr ""
7922 " get-pid\n"
7923 "\n"
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
7927 msgid ""
7928 "Return the process ID of the qemu subprocess.  If there is no qemu "
7929 "subprocess, then this will return an error."
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
7934 msgid "This is an internal call used for debugging and testing."
7935 msgstr ""
7936
7937 #. type: =head2
7938 #: ../fish/guestfish-actions.pod:1450
7939 msgid "get-qemu"
7940 msgstr "get-qemu"
7941
7942 #. type: verbatim
7943 #: ../fish/guestfish-actions.pod:1452
7944 #, no-wrap
7945 msgid ""
7946 " get-qemu\n"
7947 "\n"
7948 msgstr ""
7949 " get-qemu\n"
7950 "\n"
7951
7952 #. type: textblock
7953 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
7954 msgid "Return the current qemu binary."
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
7959 msgid ""
7960 "This is always non-NULL.  If it wasn't set already, then this will return "
7961 "the default qemu binary name."
7962 msgstr ""
7963
7964 #. type: =head2
7965 #: ../fish/guestfish-actions.pod:1459
7966 msgid "get-recovery-proc"
7967 msgstr "get-recovery-proc"
7968
7969 #. type: verbatim
7970 #: ../fish/guestfish-actions.pod:1461
7971 #, no-wrap
7972 msgid ""
7973 " get-recovery-proc\n"
7974 "\n"
7975 msgstr ""
7976 " get-recovery-proc\n"
7977 "\n"
7978
7979 #. type: textblock
7980 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
7981 msgid "Return the recovery process enabled flag."
7982 msgstr ""
7983
7984 #. type: =head2
7985 #: ../fish/guestfish-actions.pod:1465
7986 msgid "get-selinux"
7987 msgstr "get-selinux"
7988
7989 #. type: verbatim
7990 #: ../fish/guestfish-actions.pod:1467
7991 #, no-wrap
7992 msgid ""
7993 " get-selinux\n"
7994 "\n"
7995 msgstr ""
7996 " get-selinux\n"
7997 "\n"
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1469
8001 msgid ""
8002 "This returns the current setting of the selinux flag which is passed to the "
8003 "appliance at boot time.  See L</set-selinux>."
8004 msgstr ""
8005
8006 #. type: =head2
8007 #: ../fish/guestfish-actions.pod:1475
8008 #, fuzzy
8009 #| msgid "get-pid"
8010 msgid "get-smp"
8011 msgstr "get-pid"
8012
8013 #. type: verbatim
8014 #: ../fish/guestfish-actions.pod:1477
8015 #, fuzzy, no-wrap
8016 #| msgid ""
8017 #| " get-pid\n"
8018 #| "\n"
8019 msgid ""
8020 " get-smp\n"
8021 "\n"
8022 msgstr ""
8023 " get-pid\n"
8024 "\n"
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8028 msgid "This returns the number of virtual CPUs assigned to the appliance."
8029 msgstr ""
8030
8031 #. type: =head2
8032 #: ../fish/guestfish-actions.pod:1481
8033 msgid "get-state"
8034 msgstr "get-state"
8035
8036 #. type: verbatim
8037 #: ../fish/guestfish-actions.pod:1483
8038 #, no-wrap
8039 msgid ""
8040 " get-state\n"
8041 "\n"
8042 msgstr ""
8043 " get-state\n"
8044 "\n"
8045
8046 #. type: textblock
8047 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8048 msgid ""
8049 "This returns the current state as an opaque integer.  This is only useful "
8050 "for printing debug and internal error messages."
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8055 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8056 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
8057 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
8058 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
8059 msgid "For more information on states, see L<guestfs(3)>."
8060 msgstr ""
8061
8062 #. type: =head2
8063 #: ../fish/guestfish-actions.pod:1490
8064 msgid "get-trace"
8065 msgstr "get-trace"
8066
8067 #. type: verbatim
8068 #: ../fish/guestfish-actions.pod:1492
8069 #, no-wrap
8070 msgid ""
8071 " get-trace\n"
8072 "\n"
8073 msgstr ""
8074 " get-trace\n"
8075 "\n"
8076
8077 #. type: textblock
8078 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8079 msgid "Return the command trace flag."
8080 msgstr ""
8081
8082 #. type: =head2
8083 #: ../fish/guestfish-actions.pod:1496
8084 msgid "get-umask"
8085 msgstr "get-umask"
8086
8087 #. type: verbatim
8088 #: ../fish/guestfish-actions.pod:1498
8089 #, no-wrap
8090 msgid ""
8091 " get-umask\n"
8092 "\n"
8093 msgstr ""
8094 " get-umask\n"
8095 "\n"
8096
8097 #. type: textblock
8098 #: ../fish/guestfish-actions.pod:1500
8099 msgid ""
8100 "Return the current umask.  By default the umask is C<022> unless it has been "
8101 "set by calling L</umask>."
8102 msgstr ""
8103
8104 #. type: =head2
8105 #: ../fish/guestfish-actions.pod:1503
8106 msgid "get-verbose"
8107 msgstr "get-verbose"
8108
8109 #. type: verbatim
8110 #: ../fish/guestfish-actions.pod:1505
8111 #, no-wrap
8112 msgid ""
8113 " get-verbose\n"
8114 "\n"
8115 msgstr ""
8116 " get-verbose\n"
8117 "\n"
8118
8119 #. type: textblock
8120 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8121 msgid "This returns the verbose messages flag."
8122 msgstr ""
8123
8124 #. type: =head2
8125 #: ../fish/guestfish-actions.pod:1509
8126 msgid "getcon"
8127 msgstr "getcon"
8128
8129 #. type: verbatim
8130 #: ../fish/guestfish-actions.pod:1511
8131 #, no-wrap
8132 msgid ""
8133 " getcon\n"
8134 "\n"
8135 msgstr ""
8136 " getcon\n"
8137 "\n"
8138
8139 #. type: textblock
8140 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8141 msgid "This gets the SELinux security context of the daemon."
8142 msgstr ""
8143
8144 #. type: textblock
8145 #: ../fish/guestfish-actions.pod:1515
8146 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8147 msgstr ""
8148
8149 #. type: =head2
8150 #: ../fish/guestfish-actions.pod:1518
8151 msgid "getxattr"
8152 msgstr "getxattr"
8153
8154 #. type: verbatim
8155 #: ../fish/guestfish-actions.pod:1520
8156 #, no-wrap
8157 msgid ""
8158 " getxattr path name\n"
8159 "\n"
8160 msgstr ""
8161 " getxattr шлях назва\n"
8162 "\n"
8163
8164 #. type: textblock
8165 #: ../fish/guestfish-actions.pod:1522
8166 msgid ""
8167 "Get a single extended attribute from file C<path> named C<name>.  This call "
8168 "follows symlinks.  If you want to lookup an extended attribute for the "
8169 "symlink itself, use L</lgetxattr>."
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8174 msgid ""
8175 "Normally it is better to get all extended attributes from a file in one go "
8176 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8177 "buggy and do not provide a way to list out attributes.  For these "
8178 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8179 "attributes you want in advance and call this function."
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8184 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
8185 msgid ""
8186 "Extended attribute values are blobs of binary data.  If there is no extended "
8187 "attribute named C<name>, this returns an error."
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:1536
8192 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8193 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8194
8195 #. type: =head2
8196 #: ../fish/guestfish-actions.pod:1538
8197 msgid "getxattrs"
8198 msgstr "getxattrs"
8199
8200 #. type: verbatim
8201 #: ../fish/guestfish-actions.pod:1540
8202 #, no-wrap
8203 msgid ""
8204 " getxattrs path\n"
8205 "\n"
8206 msgstr ""
8207 " getxattrs шлях\n"
8208 "\n"
8209
8210 #. type: textblock
8211 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8212 msgid ""
8213 "This call lists the extended attributes of the file or directory C<path>."
8214 msgstr ""
8215
8216 #. type: textblock
8217 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8218 msgid ""
8219 "At the system call level, this is a combination of the L<listxattr(2)> and "
8220 "L<getxattr(2)> calls."
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:1548
8225 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8226 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8227
8228 #. type: =head2
8229 #: ../fish/guestfish-actions.pod:1550
8230 msgid "glob-expand"
8231 msgstr "glob-expand"
8232
8233 #. type: verbatim
8234 #: ../fish/guestfish-actions.pod:1552
8235 #, no-wrap
8236 msgid ""
8237 " glob-expand pattern\n"
8238 "\n"
8239 msgstr ""
8240 " glob-expand шаблон\n"
8241 "\n"
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8245 msgid ""
8246 "This command searches for all the pathnames matching C<pattern> according to "
8247 "the wildcard expansion rules used by the shell."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8252 msgid ""
8253 "If no paths match, then this returns an empty list (note: not an error)."
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8258 msgid ""
8259 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8260 "GLOB_BRACE>.  See that manual page for more details."
8261 msgstr ""
8262
8263 #. type: =head2
8264 #: ../fish/guestfish-actions.pod:1565
8265 msgid "grep"
8266 msgstr "grep"
8267
8268 #. type: verbatim
8269 #: ../fish/guestfish-actions.pod:1567
8270 #, no-wrap
8271 msgid ""
8272 " grep regex path\n"
8273 "\n"
8274 msgstr ""
8275 " grepi формальний_вираз шлях\n"
8276 "\n"
8277
8278 #. type: textblock
8279 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8280 msgid "This calls the external C<grep> program and returns the matching lines."
8281 msgstr ""
8282
8283 #. type: =head2
8284 #: ../fish/guestfish-actions.pod:1575
8285 msgid "grepi"
8286 msgstr "grepi"
8287
8288 #. type: verbatim
8289 #: ../fish/guestfish-actions.pod:1577
8290 #, no-wrap
8291 msgid ""
8292 " grepi regex path\n"
8293 "\n"
8294 msgstr ""
8295 " grepi формальний_вираз шлях\n"
8296 "\n"
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8300 msgid ""
8301 "This calls the external C<grep -i> program and returns the matching lines."
8302 msgstr ""
8303
8304 #. type: =head2
8305 #: ../fish/guestfish-actions.pod:1585
8306 msgid "grub-install"
8307 msgstr "grub-install"
8308
8309 #. type: verbatim
8310 #: ../fish/guestfish-actions.pod:1587
8311 #, no-wrap
8312 msgid ""
8313 " grub-install root device\n"
8314 "\n"
8315 msgstr ""
8316 " grub-install кореневий пристрій\n"
8317 "\n"
8318
8319 #. type: textblock
8320 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8321 msgid ""
8322 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8323 "with the root directory being C<root>."
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8328 msgid ""
8329 "There is currently no way in the API to install grub2, which is used by most "
8330 "modern Linux guests.  It is possible to run the grub2 command from the "
8331 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8336 msgid ""
8337 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8338 "compatible with itself, so this only works in rather narrow circumstances.  "
8339 "Careful testing with each guest version is advisable."
8340 msgstr ""
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8344 msgid ""
8345 "If grub-install reports the error \"No suitable drive was found in the "
8346 "generated device map.\" it may be that you need to create a C</boot/grub/"
8347 "device.map> file first that contains the mapping between grub device names "
8348 "and Linux device names.  It is usually sufficient to create a file "
8349 "containing:"
8350 msgstr ""
8351
8352 #. type: verbatim
8353 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8354 #, no-wrap
8355 msgid ""
8356 " (hd0) /dev/vda\n"
8357 "\n"
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8362 msgid "replacing C</dev/vda> with the name of the installation device."
8363 msgstr ""
8364
8365 #. type: =head2
8366 #: ../fish/guestfish-actions.pod:1625
8367 msgid "head"
8368 msgstr "head"
8369
8370 #. type: verbatim
8371 #: ../fish/guestfish-actions.pod:1627
8372 #, no-wrap
8373 msgid ""
8374 " head path\n"
8375 "\n"
8376 msgstr ""
8377 " head шлях\n"
8378 "\n"
8379
8380 #. type: textblock
8381 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8382 msgid ""
8383 "This command returns up to the first 10 lines of a file as a list of strings."
8384 msgstr ""
8385
8386 #. type: =head2
8387 #: ../fish/guestfish-actions.pod:1635
8388 msgid "head-n"
8389 msgstr "head-n"
8390
8391 #. type: verbatim
8392 #: ../fish/guestfish-actions.pod:1637
8393 #, no-wrap
8394 msgid ""
8395 " head-n nrlines path\n"
8396 "\n"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8401 msgid ""
8402 "If the parameter C<nrlines> is a positive number, this returns the first "
8403 "C<nrlines> lines of the file C<path>."
8404 msgstr ""
8405
8406 #. type: textblock
8407 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8408 msgid ""
8409 "If the parameter C<nrlines> is a negative number, this returns lines from "
8410 "the file C<path>, excluding the last C<nrlines> lines."
8411 msgstr ""
8412
8413 #. type: textblock
8414 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8415 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
8416 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8417 msgstr ""
8418
8419 #. type: =head2
8420 #: ../fish/guestfish-actions.pod:1650
8421 msgid "hexdump"
8422 msgstr "hexdump"
8423
8424 #. type: verbatim
8425 #: ../fish/guestfish-actions.pod:1652
8426 #, no-wrap
8427 msgid ""
8428 " hexdump path\n"
8429 "\n"
8430 msgstr ""
8431 " hexdump шлях\n"
8432 "\n"
8433
8434 #. type: textblock
8435 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8436 msgid ""
8437 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8438 "readable, canonical hex dump of the file."
8439 msgstr ""
8440
8441 #. type: =head2
8442 #: ../fish/guestfish-actions.pod:1660
8443 msgid "initrd-cat"
8444 msgstr "initrd-cat"
8445
8446 #. type: verbatim
8447 #: ../fish/guestfish-actions.pod:1662
8448 #, no-wrap
8449 msgid ""
8450 " initrd-cat initrdpath filename\n"
8451 "\n"
8452 msgstr ""
8453 " initrd-cat шлях_initrd назва_файла\n"
8454 "\n"
8455
8456 #. type: textblock
8457 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8458 msgid ""
8459 "This command unpacks the file C<filename> from the initrd file called "
8460 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8461 "character."
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8466 msgid ""
8467 "For example, in guestfish you could use the following command to examine the "
8468 "boot script (usually called C</init>)  contained in a Linux initrd or "
8469 "initramfs image:"
8470 msgstr ""
8471
8472 #. type: verbatim
8473 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8474 #, no-wrap
8475 msgid ""
8476 " initrd-cat /boot/initrd-<version>.img init\n"
8477 "\n"
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1674
8482 msgid "See also L</initrd-list>."
8483 msgstr "Див. також L</initrd-list>."
8484
8485 #. type: =head2
8486 #: ../fish/guestfish-actions.pod:1679
8487 msgid "initrd-list"
8488 msgstr "initrd-list"
8489
8490 #. type: verbatim
8491 #: ../fish/guestfish-actions.pod:1681
8492 #, no-wrap
8493 msgid ""
8494 " initrd-list path\n"
8495 "\n"
8496 msgstr ""
8497 " initrd-list шлях\n"
8498 "\n"
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8502 msgid "This command lists out files contained in an initrd."
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8507 msgid ""
8508 "The files are listed without any initial C</> character.  The files are "
8509 "listed in the order they appear (not necessarily alphabetical).  Directory "
8510 "names are listed as separate items."
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8515 msgid ""
8516 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8517 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8518 "files)."
8519 msgstr ""
8520
8521 #. type: =head2
8522 #: ../fish/guestfish-actions.pod:1693
8523 msgid "inotify-add-watch"
8524 msgstr "inotify-add-watch"
8525
8526 #. type: verbatim
8527 #: ../fish/guestfish-actions.pod:1695
8528 #, no-wrap
8529 msgid ""
8530 " inotify-add-watch path mask\n"
8531 "\n"
8532 msgstr ""
8533 " inotify-add-watch шлях маска\n"
8534 "\n"
8535
8536 #. type: textblock
8537 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8538 msgid "Watch C<path> for the events listed in C<mask>."
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8543 msgid ""
8544 "Note that if C<path> is a directory then events within that directory are "
8545 "watched, but this does I<not> happen recursively (in subdirectories)."
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8550 msgid ""
8551 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8552 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8553 msgstr ""
8554
8555 #. type: =head2
8556 #: ../fish/guestfish-actions.pod:1707
8557 msgid "inotify-close"
8558 msgstr "inotify-close"
8559
8560 #. type: verbatim
8561 #: ../fish/guestfish-actions.pod:1709
8562 #, no-wrap
8563 msgid ""
8564 " inotify-close\n"
8565 "\n"
8566 msgstr ""
8567 " inotify-close\n"
8568 "\n"
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8572 msgid ""
8573 "This closes the inotify handle which was previously opened by inotify_init.  "
8574 "It removes all watches, throws away any pending events, and deallocates all "
8575 "resources."
8576 msgstr ""
8577
8578 #. type: =head2
8579 #: ../fish/guestfish-actions.pod:1715
8580 msgid "inotify-files"
8581 msgstr "inotify-files"
8582
8583 #. type: verbatim
8584 #: ../fish/guestfish-actions.pod:1717
8585 #, no-wrap
8586 msgid ""
8587 " inotify-files\n"
8588 "\n"
8589 msgstr ""
8590 " inotify-files\n"
8591 "\n"
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1719
8595 msgid ""
8596 "This function is a helpful wrapper around L</inotify-read> which just "
8597 "returns a list of pathnames of objects that were touched.  The returned "
8598 "pathnames are sorted and deduplicated."
8599 msgstr ""
8600
8601 #. type: =head2
8602 #: ../fish/guestfish-actions.pod:1723
8603 msgid "inotify-init"
8604 msgstr "inotify-init"
8605
8606 #. type: verbatim
8607 #: ../fish/guestfish-actions.pod:1725
8608 #, no-wrap
8609 msgid ""
8610 " inotify-init maxevents\n"
8611 "\n"
8612 msgstr ""
8613
8614 #. type: textblock
8615 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8616 msgid ""
8617 "This command creates a new inotify handle.  The inotify subsystem can be "
8618 "used to notify events which happen to objects in the guest filesystem."
8619 msgstr ""
8620
8621 #. type: textblock
8622 #: ../fish/guestfish-actions.pod:1731
8623 msgid ""
8624 "C<maxevents> is the maximum number of events which will be queued up between "
8625 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8626 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8627 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8628 "but records the fact that it threw them away by setting a flag "
8629 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:1741
8634 msgid ""
8635 "Before any events are generated, you have to add some watches to the "
8636 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8637 "L</inotify-watch-all>."
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../fish/guestfish-actions.pod:1747
8642 msgid ""
8643 "Queued up events should be read periodically by calling L</inotify-read> (or "
8644 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8645 "If you don't read the events out often enough then you risk the internal "
8646 "queue overflowing."
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:1754
8651 msgid ""
8652 "The handle should be closed after use by calling L</inotify-close>.  This "
8653 "also removes any watches automatically."
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
8658 msgid ""
8659 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8660 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8661 "that there is one global inotify handle per libguestfs instance."
8662 msgstr ""
8663
8664 #. type: =head2
8665 #: ../fish/guestfish-actions.pod:1763
8666 msgid "inotify-read"
8667 msgstr "inotify-read"
8668
8669 #. type: verbatim
8670 #: ../fish/guestfish-actions.pod:1765
8671 #, no-wrap
8672 msgid ""
8673 " inotify-read\n"
8674 "\n"
8675 msgstr ""
8676 " inotify-read\n"
8677 "\n"
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
8681 msgid ""
8682 "Return the complete queue of events that have happened since the previous "
8683 "read call."
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
8688 msgid "If no events have happened, this returns an empty list."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
8693 msgid ""
8694 "I<Note>: In order to make sure that all events have been read, you must call "
8695 "this function repeatedly until it returns an empty list.  The reason is that "
8696 "the call will read events up to the maximum appliance-to-host message size "
8697 "and leave remaining events in the queue."
8698 msgstr ""
8699
8700 #. type: =head2
8701 #: ../fish/guestfish-actions.pod:1778
8702 msgid "inotify-rm-watch"
8703 msgstr "inotify-rm-watch"
8704
8705 #. type: verbatim
8706 #: ../fish/guestfish-actions.pod:1780
8707 #, no-wrap
8708 msgid ""
8709 " inotify-rm-watch wd\n"
8710 "\n"
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1782
8715 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8716 msgstr ""
8717
8718 #. type: =head2
8719 #: ../fish/guestfish-actions.pod:1785
8720 msgid "inspect-get-arch"
8721 msgstr "inspect-get-arch"
8722
8723 #. type: verbatim
8724 #: ../fish/guestfish-actions.pod:1787
8725 #, no-wrap
8726 msgid ""
8727 " inspect-get-arch root\n"
8728 "\n"
8729 msgstr ""
8730 " inspect-get-arch корінь\n"
8731 "\n"
8732
8733 #. type: textblock
8734 #: ../fish/guestfish-actions.pod:1789
8735 msgid ""
8736 "This returns the architecture of the inspected operating system.  The "
8737 "possible return values are listed under L</file-architecture>."
8738 msgstr ""
8739
8740 #. type: textblock
8741 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
8742 msgid ""
8743 "If the architecture could not be determined, then the string C<unknown> is "
8744 "returned."
8745 msgstr ""
8746
8747 #. type: textblock
8748 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8749 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8750 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8751 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8752 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8753 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8754 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8755 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8756 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
8757 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
8758 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
8759 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
8760 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
8761 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
8762 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
8763 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
8764 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
8765 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8766 msgstr ""
8767
8768 #. type: =head2
8769 #: ../fish/guestfish-actions.pod:1798
8770 msgid "inspect-get-distro"
8771 msgstr "inspect-get-distro"
8772
8773 #. type: verbatim
8774 #: ../fish/guestfish-actions.pod:1800
8775 #, no-wrap
8776 msgid ""
8777 " inspect-get-distro root\n"
8778 "\n"
8779 msgstr ""
8780 " inspect-get-distro корінь\n"
8781 "\n"
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
8785 msgid ""
8786 "This returns the distro (distribution) of the inspected operating system."
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
8791 msgid "Currently defined distros are:"
8792 msgstr ""
8793
8794 #. type: =item
8795 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
8796 msgid "\"archlinux\""
8797 msgstr "\"archlinux\""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
8801 msgid "Arch Linux."
8802 msgstr "Arch Linux."
8803
8804 #. type: =item
8805 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
8806 msgid "\"centos\""
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
8811 msgid "CentOS."
8812 msgstr ""
8813
8814 #. type: =item
8815 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
8816 msgid "\"debian\""
8817 msgstr "\"debian\""
8818
8819 #. type: textblock
8820 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
8821 msgid "Debian."
8822 msgstr "Debian."
8823
8824 #. type: =item
8825 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
8826 msgid "\"fedora\""
8827 msgstr "\"fedora\""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
8831 msgid "Fedora."
8832 msgstr "Fedora."
8833
8834 #. type: =item
8835 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
8836 msgid "\"gentoo\""
8837 msgstr "\"gentoo\""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
8841 msgid "Gentoo."
8842 msgstr "Gentoo."
8843
8844 #. type: =item
8845 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
8846 msgid "\"linuxmint\""
8847 msgstr "\"linuxmint\""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
8851 msgid "Linux Mint."
8852 msgstr "Linux Mint."
8853
8854 #. type: =item
8855 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
8856 msgid "\"mandriva\""
8857 msgstr "\"mandriva\""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
8861 msgid "Mandriva."
8862 msgstr "Mandriva."
8863
8864 #. type: =item
8865 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
8866 msgid "\"meego\""
8867 msgstr "\"meego\""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
8871 msgid "MeeGo."
8872 msgstr "MeeGo."
8873
8874 #. type: =item
8875 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
8876 msgid "\"pardus\""
8877 msgstr "\"pardus\""
8878
8879 #. type: textblock
8880 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
8881 msgid "Pardus."
8882 msgstr "Pardus."
8883
8884 #. type: =item
8885 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
8886 msgid "\"redhat-based\""
8887 msgstr "\"redhat-based\""
8888
8889 #. type: textblock
8890 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
8891 msgid "Some Red Hat-derived distro."
8892 msgstr "Дистрибутив, що походить від Red Hat."
8893
8894 #. type: =item
8895 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
8896 msgid "\"rhel\""
8897 msgstr "\"rhel\""
8898
8899 #. type: textblock
8900 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
8901 msgid "Red Hat Enterprise Linux."
8902 msgstr ""
8903
8904 #. type: =item
8905 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
8906 msgid "\"scientificlinux\""
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
8911 msgid "Scientific Linux."
8912 msgstr ""
8913
8914 #. type: =item
8915 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
8916 msgid "\"slackware\""
8917 msgstr ""
8918
8919 #. type: textblock
8920 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
8921 msgid "Slackware."
8922 msgstr ""
8923
8924 #. type: =item
8925 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
8926 #, fuzzy
8927 #| msgid "\"linux\""
8928 msgid "\"ttylinux\""
8929 msgstr "\"linux\""
8930
8931 #. type: textblock
8932 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
8933 #, fuzzy
8934 #| msgid "\"linux\""
8935 msgid "ttylinux."
8936 msgstr "\"linux\""
8937
8938 #. type: =item
8939 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
8940 msgid "\"ubuntu\""
8941 msgstr "\"ubuntu\""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
8945 msgid "Ubuntu."
8946 msgstr "Ubuntu."
8947
8948 #. type: =item
8949 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8950 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
8951 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8952 msgid "\"unknown\""
8953 msgstr "\"unknown\""
8954
8955 #. type: textblock
8956 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
8957 msgid "The distro could not be determined."
8958 msgstr "Дистрибутив, тип якого не вдалося визначити."
8959
8960 #. type: =item
8961 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8962 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
8963 msgid "\"windows\""
8964 msgstr "\"windows\""
8965
8966 #. type: textblock
8967 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
8968 msgid ""
8969 "Windows does not have distributions.  This string is returned if the OS type "
8970 "is Windows."
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8975 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
8976 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
8977 msgid ""
8978 "Future versions of libguestfs may return other strings here.  The caller "
8979 "should be prepared to handle any string."
8980 msgstr ""
8981
8982 #. type: =head2
8983 #: ../fish/guestfish-actions.pod:1885
8984 msgid "inspect-get-drive-mappings"
8985 msgstr ""
8986
8987 #. type: verbatim
8988 #: ../fish/guestfish-actions.pod:1887
8989 #, no-wrap
8990 msgid ""
8991 " inspect-get-drive-mappings root\n"
8992 "\n"
8993 msgstr ""
8994
8995 #. type: textblock
8996 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
8997 msgid ""
8998 "This call is useful for Windows which uses a primitive system of assigning "
8999 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9000 "Windows Registry to find out how disks/partitions are mapped to drive "
9001 "letters, and returns a hash table as in the example below:"
9002 msgstr ""
9003
9004 #. type: verbatim
9005 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
9006 #, no-wrap
9007 msgid ""
9008 " C      =>     /dev/vda2\n"
9009 " E      =>     /dev/vdb1\n"
9010 " F      =>     /dev/vdc1\n"
9011 "\n"
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
9016 msgid ""
9017 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9018 "and just contains the drive letter, without the customary colon separator "
9019 "character."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
9024 msgid ""
9025 "In future we may support other operating systems that also used drive "
9026 "letters, but the keys for those might not be case insensitive and might be "
9027 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9028 "C<h1> etc."
9029 msgstr ""
9030
9031 #. type: textblock
9032 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
9033 msgid ""
9034 "For Windows guests, currently only hard drive mappings are returned.  "
9035 "Removable disks (eg. DVD-ROMs) are ignored."
9036 msgstr ""
9037
9038 #. type: textblock
9039 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
9040 msgid ""
9041 "For guests that do not use drive mappings, or if the drive mappings could "
9042 "not be determined, this returns an empty hash table."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:1914
9047 msgid ""
9048 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9049 "get-mountpoints>, L</inspect-get-filesystems>."
9050 msgstr ""
9051
9052 #. type: =head2
9053 #: ../fish/guestfish-actions.pod:1918
9054 msgid "inspect-get-filesystems"
9055 msgstr "inspect-get-filesystems"
9056
9057 #. type: verbatim
9058 #: ../fish/guestfish-actions.pod:1920
9059 #, no-wrap
9060 msgid ""
9061 " inspect-get-filesystems root\n"
9062 "\n"
9063 msgstr ""
9064 " inspect-get-filesystems корінь\n"
9065 "\n"
9066
9067 #. type: textblock
9068 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
9069 msgid ""
9070 "This returns a list of all the filesystems that we think are associated with "
9071 "this operating system.  This includes the root filesystem, other ordinary "
9072 "filesystems, and non-mounted devices like swap partitions."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
9077 msgid ""
9078 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9079 "to be shared between operating systems."
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../fish/guestfish-actions.pod:1930
9084 msgid ""
9085 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9086 "get-mountpoints>."
9087 msgstr ""
9088
9089 #. type: =head2
9090 #: ../fish/guestfish-actions.pod:1933
9091 msgid "inspect-get-format"
9092 msgstr "inspect-get-format"
9093
9094 #. type: verbatim
9095 #: ../fish/guestfish-actions.pod:1935
9096 #, no-wrap
9097 msgid ""
9098 " inspect-get-format root\n"
9099 "\n"
9100 msgstr ""
9101 " inspect-get-format корінь\n"
9102 "\n"
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
9106 msgid ""
9107 "This returns the format of the inspected operating system.  You can use it "
9108 "to detect install images, live CDs and similar."
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
9113 msgid "Currently defined formats are:"
9114 msgstr ""
9115
9116 #. type: =item
9117 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
9118 msgid "\"installed\""
9119 msgstr "\"installed\""
9120
9121 #. type: textblock
9122 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
9123 msgid "This is an installed operating system."
9124 msgstr "Це встановлена операційна система."
9125
9126 #. type: =item
9127 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9128 msgid "\"installer\""
9129 msgstr ""
9130
9131 #. type: textblock
9132 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
9133 msgid ""
9134 "The disk image being inspected is not an installed operating system, but a "
9135 "I<bootable> install disk, live CD, or similar."
9136 msgstr ""
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
9140 msgid "The format of this disk image is not known."
9141 msgstr ""
9142
9143 #. type: =head2
9144 #: ../fish/guestfish-actions.pod:1964
9145 msgid "inspect-get-hostname"
9146 msgstr "inspect-get-hostname"
9147
9148 #. type: verbatim
9149 #: ../fish/guestfish-actions.pod:1966
9150 #, no-wrap
9151 msgid ""
9152 " inspect-get-hostname root\n"
9153 "\n"
9154 msgstr ""
9155 " inspect-get-hostname корінь\n"
9156 "\n"
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
9160 msgid ""
9161 "This function returns the hostname of the operating system as found by "
9162 "inspection of the guest's configuration files."
9163 msgstr ""
9164
9165 #. type: textblock
9166 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
9167 msgid ""
9168 "If the hostname could not be determined, then the string C<unknown> is "
9169 "returned."
9170 msgstr ""
9171
9172 #. type: =head2
9173 #: ../fish/guestfish-actions.pod:1976
9174 msgid "inspect-get-icon"
9175 msgstr ""
9176
9177 #. type: verbatim
9178 #: ../fish/guestfish-actions.pod:1978
9179 #, no-wrap
9180 msgid ""
9181 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9182 "\n"
9183 msgstr ""
9184
9185 #. type: textblock
9186 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
9187 msgid ""
9188 "This function returns an icon corresponding to the inspected operating "
9189 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9190 "to PNG if necessary)."
9191 msgstr ""
9192
9193 #. type: textblock
9194 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
9195 msgid ""
9196 "If it was not possible to get an icon this function returns a zero-length "
9197 "(non-NULL) buffer.  I<Callers must check for this case>."
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
9202 msgid ""
9203 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9204 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9205 "this file will be returned.  You can disable favicons by passing the "
9206 "optional C<favicon> boolean as false (default is true)."
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
9211 msgid ""
9212 "If finding the favicon fails, then we look in other places in the guest for "
9213 "a suitable icon."
9214 msgstr ""
9215
9216 #. type: textblock
9217 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
9218 msgid ""
9219 "If the optional C<highquality> boolean is true then only high quality icons "
9220 "are returned, which means only icons of high resolution with an alpha "
9221 "channel.  The default (false) is to return any icon we can, even if it is of "
9222 "substandard quality."
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
9227 msgid ""
9228 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9229 "before you call this, since it needs to read information from the guest "
9230 "filesystem during the call."
9231 msgstr ""
9232
9233 #. type: textblock
9234 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
9235 msgid ""
9236 "B<Security:> The icon data comes from the untrusted guest, and should be "
9237 "treated with caution.  PNG files have been known to contain exploits.  "
9238 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9239 "trying to process or display the icon."
9240 msgstr ""
9241
9242 #. type: textblock
9243 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9244 msgid ""
9245 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9246 "tries to return the largest, highest quality icon available.  The "
9247 "application must scale the icon to the required size."
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
9252 msgid ""
9253 "Extracting icons from Windows guests requires the external C<wrestool> "
9254 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9255 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9256 "installed separately."
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9261 msgid ""
9262 "Operating system icons are usually trademarks.  Seek legal advice before "
9263 "using trademarks in applications."
9264 msgstr ""
9265
9266 #. type: =head2
9267 #: ../fish/guestfish-actions.pod:2042
9268 msgid "inspect-get-major-version"
9269 msgstr "inspect-get-major-version"
9270
9271 #. type: verbatim
9272 #: ../fish/guestfish-actions.pod:2044
9273 #, no-wrap
9274 msgid ""
9275 " inspect-get-major-version root\n"
9276 "\n"
9277 msgstr ""
9278 " inspect-get-major-version корінь\n"
9279 "\n"
9280
9281 #. type: textblock
9282 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9283 msgid ""
9284 "This returns the major version number of the inspected operating system."
9285 msgstr ""
9286
9287 #. type: textblock
9288 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9289 msgid ""
9290 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9291 "popular public names used by the operating system.  Notably the operating "
9292 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9293 "1).  You can find out the real versions corresponding to releases of Windows "
9294 "by consulting Wikipedia or MSDN."
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9299 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9300 msgid "If the version could not be determined, then C<0> is returned."
9301 msgstr ""
9302
9303 #. type: =head2
9304 #: ../fish/guestfish-actions.pod:2060
9305 msgid "inspect-get-minor-version"
9306 msgstr "inspect-get-minor-version"
9307
9308 #. type: verbatim
9309 #: ../fish/guestfish-actions.pod:2062
9310 #, no-wrap
9311 msgid ""
9312 " inspect-get-minor-version root\n"
9313 "\n"
9314 msgstr ""
9315 " inspect-get-minor-version корінь\n"
9316 "\n"
9317
9318 #. type: textblock
9319 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9320 msgid ""
9321 "This returns the minor version number of the inspected operating system."
9322 msgstr ""
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:2069
9326 msgid ""
9327 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9328 "get-major-version>."
9329 msgstr ""
9330
9331 #. type: =head2
9332 #: ../fish/guestfish-actions.pod:2072
9333 msgid "inspect-get-mountpoints"
9334 msgstr "inspect-get-mountpoints"
9335
9336 #. type: verbatim
9337 #: ../fish/guestfish-actions.pod:2074
9338 #, no-wrap
9339 msgid ""
9340 " inspect-get-mountpoints root\n"
9341 "\n"
9342 msgstr ""
9343 " inspect-get-mountpoints корінь\n"
9344 "\n"
9345
9346 #. type: textblock
9347 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9348 msgid ""
9349 "This returns a hash of where we think the filesystems associated with this "
9350 "operating system should be mounted.  Callers should note that this is at "
9351 "best an educated guess made by reading configuration files such as C</etc/"
9352 "fstab>.  I<In particular note> that this may return filesystems which are "
9353 "non-existent or not mountable and callers should be prepared to handle or "
9354 "ignore failures if they try to mount them."
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9359 msgid ""
9360 "Each element in the returned hashtable has a key which is the path of the "
9361 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9362 "mounted there (eg. C</dev/sda1>)."
9363 msgstr ""
9364
9365 #. type: textblock
9366 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9367 msgid ""
9368 "Non-mounted devices such as swap devices are I<not> returned in this list."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:2093
9373 msgid ""
9374 "For operating systems like Windows which still use drive letters, this call "
9375 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9376 "information about the mapping of drive letters to partitions, see L</inspect-"
9377 "get-drive-mappings>."
9378 msgstr ""
9379
9380 #. type: textblock
9381 #: ../fish/guestfish-actions.pod:2099
9382 msgid ""
9383 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9384 "get-filesystems>."
9385 msgstr ""
9386
9387 #. type: =head2
9388 #: ../fish/guestfish-actions.pod:2102
9389 msgid "inspect-get-package-format"
9390 msgstr "inspect-get-package-format"
9391
9392 #. type: verbatim
9393 #: ../fish/guestfish-actions.pod:2104
9394 #, no-wrap
9395 msgid ""
9396 " inspect-get-package-format root\n"
9397 "\n"
9398 msgstr ""
9399 " inspect-get-package-format корінь\n"
9400 "\n"
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:2106
9404 msgid ""
9405 "This function and L</inspect-get-package-management> return the package "
9406 "format and package management tool used by the inspected operating system.  "
9407 "For example for Fedora these functions would return C<rpm> (package format) "
9408 "and C<yum> (package management)."
9409 msgstr ""
9410
9411 #. type: textblock
9412 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9413 msgid ""
9414 "This returns the string C<unknown> if we could not determine the package "
9415 "format I<or> if the operating system does not have a real packaging system "
9416 "(eg. Windows)."
9417 msgstr ""
9418
9419 #. type: textblock
9420 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9421 msgid ""
9422 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9423 "Future versions of libguestfs may return other strings."
9424 msgstr ""
9425
9426 #. type: =head2
9427 #: ../fish/guestfish-actions.pod:2121
9428 msgid "inspect-get-package-management"
9429 msgstr "inspect-get-package-management"
9430
9431 #. type: verbatim
9432 #: ../fish/guestfish-actions.pod:2123
9433 #, no-wrap
9434 msgid ""
9435 " inspect-get-package-management root\n"
9436 "\n"
9437 msgstr ""
9438 " inspect-get-package-management корінь\n"
9439 "\n"
9440
9441 #. type: textblock
9442 #: ../fish/guestfish-actions.pod:2125
9443 msgid ""
9444 "L</inspect-get-package-format> and this function return the package format "
9445 "and package management tool used by the inspected operating system.  For "
9446 "example for Fedora these functions would return C<rpm> (package format) and "
9447 "C<yum> (package management)."
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
9452 msgid ""
9453 "This returns the string C<unknown> if we could not determine the package "
9454 "management tool I<or> if the operating system does not have a real packaging "
9455 "system (eg. Windows)."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
9460 msgid ""
9461 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9462 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9463 "libguestfs may return other strings."
9464 msgstr ""
9465
9466 #. type: =head2
9467 #: ../fish/guestfish-actions.pod:2142
9468 msgid "inspect-get-product-name"
9469 msgstr "inspect-get-product-name"
9470
9471 #. type: verbatim
9472 #: ../fish/guestfish-actions.pod:2144
9473 #, no-wrap
9474 msgid ""
9475 " inspect-get-product-name root\n"
9476 "\n"
9477 msgstr ""
9478 " inspect-get-product-name корінь\n"
9479 "\n"
9480
9481 #. type: textblock
9482 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
9483 msgid ""
9484 "This returns the product name of the inspected operating system.  The "
9485 "product name is generally some freeform string which can be displayed to the "
9486 "user, but should not be parsed by programs."
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
9491 msgid ""
9492 "If the product name could not be determined, then the string C<unknown> is "
9493 "returned."
9494 msgstr ""
9495
9496 #. type: =head2
9497 #: ../fish/guestfish-actions.pod:2156
9498 msgid "inspect-get-product-variant"
9499 msgstr ""
9500
9501 #. type: verbatim
9502 #: ../fish/guestfish-actions.pod:2158
9503 #, no-wrap
9504 msgid ""
9505 " inspect-get-product-variant root\n"
9506 "\n"
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
9511 msgid "This returns the product variant of the inspected operating system."
9512 msgstr ""
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
9516 msgid ""
9517 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9518 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9519 "is usually a string such as C<Client> or C<Server> (other values are "
9520 "possible).  This can be used to distinguish consumer and enterprise versions "
9521 "of Windows that have the same version number (for example, Windows 7 and "
9522 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9523 "the latter is C<Server>)."
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9528 msgid ""
9529 "For enterprise Linux guests, in future we intend this to return the product "
9530 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9531 "implemented at present."
9532 msgstr ""
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
9536 msgid ""
9537 "If the product variant could not be determined, then the string C<unknown> "
9538 "is returned."
9539 msgstr ""
9540
9541 #. type: textblock
9542 #: ../fish/guestfish-actions.pod:2179
9543 msgid ""
9544 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9545 "get-product-name>, L</inspect-get-major-version>."
9546 msgstr ""
9547
9548 #. type: =head2
9549 #: ../fish/guestfish-actions.pod:2183
9550 msgid "inspect-get-roots"
9551 msgstr "inspect-get-roots"
9552
9553 #. type: verbatim
9554 #: ../fish/guestfish-actions.pod:2185
9555 #, no-wrap
9556 msgid ""
9557 " inspect-get-roots\n"
9558 "\n"
9559 msgstr ""
9560 " inspect-get-roots\n"
9561 "\n"
9562
9563 #. type: textblock
9564 #: ../fish/guestfish-actions.pod:2187
9565 msgid ""
9566 "This function is a convenient way to get the list of root devices, as "
9567 "returned from a previous call to L</inspect-os>, but without redoing the "
9568 "whole inspection process."
9569 msgstr ""
9570
9571 #. type: textblock
9572 #: ../fish/guestfish-actions.pod:2191
9573 msgid ""
9574 "This returns an empty list if either no root devices were found or the "
9575 "caller has not called L</inspect-os>."
9576 msgstr ""
9577
9578 #. type: =head2
9579 #: ../fish/guestfish-actions.pod:2196
9580 msgid "inspect-get-type"
9581 msgstr "inspect-get-type"
9582
9583 #. type: verbatim
9584 #: ../fish/guestfish-actions.pod:2198
9585 #, no-wrap
9586 msgid ""
9587 " inspect-get-type root\n"
9588 "\n"
9589 msgstr ""
9590 " inspect-get-type корінь\n"
9591 "\n"
9592
9593 #. type: textblock
9594 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9595 msgid ""
9596 "This returns the type of the inspected operating system.  Currently defined "
9597 "types are:"
9598 msgstr ""
9599
9600 #. type: =item
9601 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9602 msgid "\"linux\""
9603 msgstr "\"linux\""
9604
9605 #. type: textblock
9606 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9607 msgid "Any Linux-based operating system."
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9612 msgid "Any Microsoft Windows operating system."
9613 msgstr ""
9614
9615 #. type: =item
9616 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9617 msgid "\"freebsd\""
9618 msgstr "\"freebsd\""
9619
9620 #. type: textblock
9621 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9622 msgid "FreeBSD."
9623 msgstr "FreeBSD."
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9627 msgid "The operating system type could not be determined."
9628 msgstr ""
9629
9630 #. type: =head2
9631 #: ../fish/guestfish-actions.pod:2228
9632 msgid "inspect-get-windows-current-control-set"
9633 msgstr ""
9634
9635 #. type: verbatim
9636 #: ../fish/guestfish-actions.pod:2230
9637 #, no-wrap
9638 msgid ""
9639 " inspect-get-windows-current-control-set root\n"
9640 "\n"
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9645 msgid ""
9646 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9647 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
9652 msgid ""
9653 "This call assumes that the guest is Windows and that the Registry could be "
9654 "examined by inspection.  If this is not the case then an error is returned."
9655 msgstr ""
9656
9657 #. type: =head2
9658 #: ../fish/guestfish-actions.pod:2241
9659 msgid "inspect-get-windows-systemroot"
9660 msgstr "inspect-get-windows-systemroot"
9661
9662 #. type: verbatim
9663 #: ../fish/guestfish-actions.pod:2243
9664 #, no-wrap
9665 msgid ""
9666 " inspect-get-windows-systemroot root\n"
9667 "\n"
9668 msgstr ""
9669 " inspect-get-windows-systemroot корінь\n"
9670 "\n"
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
9674 msgid ""
9675 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9676 "is a directory path such as C</WINDOWS>."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
9681 msgid ""
9682 "This call assumes that the guest is Windows and that the systemroot could be "
9683 "determined by inspection.  If this is not the case then an error is returned."
9684 msgstr ""
9685
9686 #. type: =head2
9687 #: ../fish/guestfish-actions.pod:2254
9688 msgid "inspect-is-live"
9689 msgstr "inspect-is-live"
9690
9691 #. type: verbatim
9692 #: ../fish/guestfish-actions.pod:2256
9693 #, no-wrap
9694 msgid ""
9695 " inspect-is-live root\n"
9696 "\n"
9697 msgstr ""
9698 " inspect-is-live корінь\n"
9699 "\n"
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:2258
9703 msgid ""
9704 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9705 "then this returns true if a live image was detected on the disk."
9706 msgstr ""
9707
9708 #. type: =head2
9709 #: ../fish/guestfish-actions.pod:2264
9710 msgid "inspect-is-multipart"
9711 msgstr "inspect-is-multipart"
9712
9713 #. type: verbatim
9714 #: ../fish/guestfish-actions.pod:2266
9715 #, no-wrap
9716 msgid ""
9717 " inspect-is-multipart root\n"
9718 "\n"
9719 msgstr ""
9720 " inspect-is-multipart корінь\n"
9721 "\n"
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:2268
9725 msgid ""
9726 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9727 "then this returns true if the disk is part of a set."
9728 msgstr ""
9729
9730 #. type: =head2
9731 #: ../fish/guestfish-actions.pod:2274
9732 msgid "inspect-is-netinst"
9733 msgstr "inspect-is-netinst"
9734
9735 #. type: verbatim
9736 #: ../fish/guestfish-actions.pod:2276
9737 #, no-wrap
9738 msgid ""
9739 " inspect-is-netinst root\n"
9740 "\n"
9741 msgstr ""
9742 " inspect-is-netinst корінь\n"
9743 "\n"
9744
9745 #. type: textblock
9746 #: ../fish/guestfish-actions.pod:2278
9747 msgid ""
9748 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9749 "then this returns true if the disk is a network installer, ie. not a self-"
9750 "contained install CD but one which is likely to require network access to "
9751 "complete the install."
9752 msgstr ""
9753
9754 #. type: =head2
9755 #: ../fish/guestfish-actions.pod:2286
9756 msgid "inspect-list-applications"
9757 msgstr "inspect-list-applications"
9758
9759 #. type: verbatim
9760 #: ../fish/guestfish-actions.pod:2288
9761 #, no-wrap
9762 msgid ""
9763 " inspect-list-applications root\n"
9764 "\n"
9765 msgstr ""
9766 " inspect-list-applications кореневий_каталог\n"
9767 "\n"
9768
9769 #. type: textblock
9770 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
9771 msgid "Return the list of applications installed in the operating system."
9772 msgstr ""
9773
9774 #. type: textblock
9775 #: ../fish/guestfish-actions.pod:2292
9776 msgid ""
9777 "I<Note:> This call works differently from other parts of the inspection "
9778 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9779 "then mount up the disks, before calling this.  Listing applications is a "
9780 "significantly more difficult operation which requires access to the full "
9781 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9782 "are just returning data cached in the libguestfs handle, this call actually "
9783 "reads parts of the mounted filesystems during the call."
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
9788 msgid ""
9789 "This returns an empty list if the inspection code was not able to determine "
9790 "the list of applications."
9791 msgstr ""
9792
9793 #. type: textblock
9794 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
9795 msgid "The application structure contains the following fields:"
9796 msgstr ""
9797
9798 #. type: =item
9799 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
9800 msgid "C<app_name>"
9801 msgstr "C<app_name>"
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
9805 msgid ""
9806 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9807 "guests, this is the package name."
9808 msgstr ""
9809
9810 #. type: =item
9811 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
9812 msgid "C<app_display_name>"
9813 msgstr "C<app_display_name>"
9814
9815 #. type: textblock
9816 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
9817 msgid ""
9818 "The display name of the application, sometimes localized to the install "
9819 "language of the guest operating system."
9820 msgstr ""
9821
9822 #. type: textblock
9823 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
9824 msgid ""
9825 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9826 "to display something can use C<app_name> instead."
9827 msgstr ""
9828
9829 #. type: =item
9830 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
9831 msgid "C<app_epoch>"
9832 msgstr "C<app_epoch>"
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
9836 msgid ""
9837 "For package managers which use epochs, this contains the epoch of the "
9838 "package (an integer).  If unavailable, this is returned as C<0>."
9839 msgstr ""
9840
9841 #. type: =item
9842 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
9843 msgid "C<app_version>"
9844 msgstr "C<app_version>"
9845
9846 #. type: textblock
9847 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
9848 msgid ""
9849 "The version string of the application or package.  If unavailable this is "
9850 "returned as an empty string C<\"\">."
9851 msgstr ""
9852
9853 #. type: =item
9854 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
9855 msgid "C<app_release>"
9856 msgstr "C<app_release>"
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
9860 msgid ""
9861 "The release string of the application or package, for package managers that "
9862 "use this.  If unavailable this is returned as an empty string C<\"\">."
9863 msgstr ""
9864
9865 #. type: =item
9866 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
9867 msgid "C<app_install_path>"
9868 msgstr "C<app_install_path>"
9869
9870 #. type: textblock
9871 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
9872 msgid ""
9873 "The installation path of the application (on operating systems such as "
9874 "Windows which use installation paths).  This path is in the format used by "
9875 "the guest operating system, it is not a libguestfs path."
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
9880 msgid "If unavailable this is returned as an empty string C<\"\">."
9881 msgstr ""
9882
9883 #. type: =item
9884 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
9885 msgid "C<app_trans_path>"
9886 msgstr "C<app_trans_path>"
9887
9888 #. type: textblock
9889 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
9890 msgid ""
9891 "The install path translated into a libguestfs path.  If unavailable this is "
9892 "returned as an empty string C<\"\">."
9893 msgstr ""
9894
9895 #. type: =item
9896 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
9897 msgid "C<app_publisher>"
9898 msgstr "C<app_publisher>"
9899
9900 #. type: textblock
9901 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
9902 msgid ""
9903 "The name of the publisher of the application, for package managers that use "
9904 "this.  If unavailable this is returned as an empty string C<\"\">."
9905 msgstr ""
9906
9907 #. type: =item
9908 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
9909 msgid "C<app_url>"
9910 msgstr "C<app_url>"
9911
9912 #. type: textblock
9913 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
9914 msgid ""
9915 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9916 "returned as an empty string C<\"\">."
9917 msgstr ""
9918
9919 #. type: =item
9920 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
9921 msgid "C<app_source_package>"
9922 msgstr "C<app_source_package>"
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
9926 msgid ""
9927 "For packaging systems which support this, the name of the source package.  "
9928 "If unavailable this is returned as an empty string C<\"\">."
9929 msgstr ""
9930
9931 #. type: =item
9932 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
9933 msgid "C<app_summary>"
9934 msgstr "C<app_summary>"
9935
9936 #. type: textblock
9937 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
9938 msgid ""
9939 "A short (usually one line) description of the application or package.  If "
9940 "unavailable this is returned as an empty string C<\"\">."
9941 msgstr ""
9942
9943 #. type: =item
9944 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
9945 msgid "C<app_description>"
9946 msgstr "C<app_description>"
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
9950 msgid ""
9951 "A longer description of the application or package.  If unavailable this is "
9952 "returned as an empty string C<\"\">."
9953 msgstr ""
9954
9955 #. type: =head2
9956 #: ../fish/guestfish-actions.pod:2382
9957 msgid "inspect-os"
9958 msgstr "inspect-os"
9959
9960 #. type: verbatim
9961 #: ../fish/guestfish-actions.pod:2384
9962 #, no-wrap
9963 msgid ""
9964 " inspect-os\n"
9965 "\n"
9966 msgstr ""
9967 " inspect-os\n"
9968 "\n"
9969
9970 #. type: textblock
9971 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
9972 msgid ""
9973 "This function uses other libguestfs functions and certain heuristics to "
9974 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9975 "for operating systems."
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
9980 msgid "The list returned is empty if no operating systems were found."
9981 msgstr ""
9982
9983 #. type: textblock
9984 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
9985 msgid ""
9986 "If one operating system was found, then this returns a list with a single "
9987 "element, which is the name of the root filesystem of this operating system.  "
9988 "It is also possible for this function to return a list containing more than "
9989 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9990 "element being the root filesystem of one of the operating systems."
9991 msgstr ""
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:2399
9995 msgid ""
9996 "You can pass the root string(s) returned to other L</inspect-get-*> "
9997 "functions in order to query further information about each operating system, "
9998 "such as the name and version."
9999 msgstr ""
10000
10001 #. type: textblock
10002 #: ../fish/guestfish-actions.pod:2404
10003 msgid ""
10004 "This function uses other libguestfs features such as L</mount-ro> and L</"
10005 "umount-all> in order to mount and unmount filesystems and look at the "
10006 "contents.  This should be called with no disks currently mounted.  The "
10007 "function may also use Augeas, so any existing Augeas handle will be closed."
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
10012 msgid ""
10013 "This function cannot decrypt encrypted disks.  The caller must do that first "
10014 "(supplying the necessary keys) if the disk is encrypted."
10015 msgstr ""
10016
10017 #. type: textblock
10018 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
10019 #: ../fish/guestfish-actions.pod:2673
10020 msgid "See also L</list-filesystems>."
10021 msgstr "Див. також L</list-filesystems>."
10022
10023 #. type: =head2
10024 #: ../fish/guestfish-actions.pod:2418
10025 msgid "is-blockdev"
10026 msgstr "is-blockdev"
10027
10028 #. type: verbatim
10029 #: ../fish/guestfish-actions.pod:2420
10030 #, no-wrap
10031 msgid ""
10032 " is-blockdev path\n"
10033 "\n"
10034 msgstr ""
10035 " is-blockdev шлях\n"
10036 "\n"
10037
10038 #. type: textblock
10039 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
10040 msgid ""
10041 "This returns C<true> if and only if there is a block device with the given "
10042 "C<path> name."
10043 msgstr ""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10047 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10048 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10049 #: ../fish/guestfish-actions.pod:2524
10050 msgid "See also L</stat>."
10051 msgstr "Див. також L</stat>."
10052
10053 #. type: =head2
10054 #: ../fish/guestfish-actions.pod:2427
10055 msgid "is-busy"
10056 msgstr "is-busy"
10057
10058 #. type: verbatim
10059 #: ../fish/guestfish-actions.pod:2429
10060 #, no-wrap
10061 msgid ""
10062 " is-busy\n"
10063 "\n"
10064 msgstr ""
10065 " is-busy\n"
10066 "\n"
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
10070 msgid ""
10071 "This returns true iff this handle is busy processing a command (in the "
10072 "C<BUSY> state)."
10073 msgstr ""
10074
10075 #. type: =head2
10076 #: ../fish/guestfish-actions.pod:2436
10077 msgid "is-chardev"
10078 msgstr "is-chardev"
10079
10080 #. type: verbatim
10081 #: ../fish/guestfish-actions.pod:2438
10082 #, no-wrap
10083 msgid ""
10084 " is-chardev path\n"
10085 "\n"
10086 msgstr ""
10087 " is-chardev шлях\n"
10088 "\n"
10089
10090 #. type: textblock
10091 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
10092 msgid ""
10093 "This returns C<true> if and only if there is a character device with the "
10094 "given C<path> name."
10095 msgstr ""
10096
10097 #. type: =head2
10098 #: ../fish/guestfish-actions.pod:2445
10099 msgid "is-config"
10100 msgstr "is-config"
10101
10102 #. type: verbatim
10103 #: ../fish/guestfish-actions.pod:2447
10104 #, no-wrap
10105 msgid ""
10106 " is-config\n"
10107 "\n"
10108 msgstr ""
10109 " is-config\n"
10110 "\n"
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
10114 msgid ""
10115 "This returns true iff this handle is being configured (in the C<CONFIG> "
10116 "state)."
10117 msgstr ""
10118
10119 #. type: =head2
10120 #: ../fish/guestfish-actions.pod:2454
10121 msgid "is-dir"
10122 msgstr "is-dir"
10123
10124 #. type: verbatim
10125 #: ../fish/guestfish-actions.pod:2456
10126 #, no-wrap
10127 msgid ""
10128 " is-dir path\n"
10129 "\n"
10130 msgstr ""
10131 " is-dir шлях\n"
10132 "\n"
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
10136 msgid ""
10137 "This returns C<true> if and only if there is a directory with the given "
10138 "C<path> name.  Note that it returns false for other objects like files."
10139 msgstr ""
10140
10141 #. type: =head2
10142 #: ../fish/guestfish-actions.pod:2464
10143 msgid "is-fifo"
10144 msgstr "is-fifo"
10145
10146 #. type: verbatim
10147 #: ../fish/guestfish-actions.pod:2466
10148 #, no-wrap
10149 msgid ""
10150 " is-fifo path\n"
10151 "\n"
10152 msgstr ""
10153 " is-fifo шлях\n"
10154 "\n"
10155
10156 #. type: textblock
10157 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
10158 msgid ""
10159 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10160 "given C<path> name."
10161 msgstr ""
10162
10163 #. type: =head2
10164 #: ../fish/guestfish-actions.pod:2473
10165 msgid "is-file"
10166 msgstr "is-file"
10167
10168 #. type: verbatim
10169 #: ../fish/guestfish-actions.pod:2475
10170 #, no-wrap
10171 msgid ""
10172 " is-file path\n"
10173 "\n"
10174 msgstr ""
10175 " is-file шлях\n"
10176 "\n"
10177
10178 #. type: textblock
10179 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
10180 msgid ""
10181 "This returns C<true> if and only if there is a regular file with the given "
10182 "C<path> name.  Note that it returns false for other objects like directories."
10183 msgstr ""
10184
10185 #. type: =head2
10186 #: ../fish/guestfish-actions.pod:2483
10187 msgid "is-launching"
10188 msgstr "is-launching"
10189
10190 #. type: verbatim
10191 #: ../fish/guestfish-actions.pod:2485
10192 #, no-wrap
10193 msgid ""
10194 " is-launching\n"
10195 "\n"
10196 msgstr ""
10197 " is-launching\n"
10198 "\n"
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
10202 msgid ""
10203 "This returns true iff this handle is launching the subprocess (in the "
10204 "C<LAUNCHING> state)."
10205 msgstr ""
10206
10207 #. type: =head2
10208 #: ../fish/guestfish-actions.pod:2492
10209 msgid "is-lv"
10210 msgstr "is-lv"
10211
10212 #. type: verbatim
10213 #: ../fish/guestfish-actions.pod:2494
10214 #, no-wrap
10215 msgid ""
10216 " is-lv device\n"
10217 "\n"
10218 msgstr ""
10219 " is-lv пристрій\n"
10220 "\n"
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
10224 msgid ""
10225 "This command tests whether C<device> is a logical volume, and returns true "
10226 "iff this is the case."
10227 msgstr ""
10228
10229 #. type: =head2
10230 #: ../fish/guestfish-actions.pod:2499
10231 msgid "is-ready"
10232 msgstr "is-ready"
10233
10234 #. type: verbatim
10235 #: ../fish/guestfish-actions.pod:2501
10236 #, no-wrap
10237 msgid ""
10238 " is-ready\n"
10239 "\n"
10240 msgstr ""
10241 " is-ready\n"
10242 "\n"
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
10246 msgid ""
10247 "This returns true iff this handle is ready to accept commands (in the "
10248 "C<READY> state)."
10249 msgstr ""
10250
10251 #. type: =head2
10252 #: ../fish/guestfish-actions.pod:2508
10253 msgid "is-socket"
10254 msgstr "is-socket"
10255
10256 #. type: verbatim
10257 #: ../fish/guestfish-actions.pod:2510
10258 #, no-wrap
10259 msgid ""
10260 " is-socket path\n"
10261 "\n"
10262 msgstr ""
10263 " is-socket шлях\n"
10264 "\n"
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
10268 msgid ""
10269 "This returns C<true> if and only if there is a Unix domain socket with the "
10270 "given C<path> name."
10271 msgstr ""
10272
10273 #. type: =head2
10274 #: ../fish/guestfish-actions.pod:2517
10275 msgid "is-symlink"
10276 msgstr "is-symlink"
10277
10278 #. type: verbatim
10279 #: ../fish/guestfish-actions.pod:2519
10280 #, no-wrap
10281 msgid ""
10282 " is-symlink path\n"
10283 "\n"
10284 msgstr ""
10285 " is-symlink шлях\n"
10286 "\n"
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
10290 msgid ""
10291 "This returns C<true> if and only if there is a symbolic link with the given "
10292 "C<path> name."
10293 msgstr ""
10294
10295 #. type: =head2
10296 #: ../fish/guestfish-actions.pod:2526
10297 msgid "is-zero"
10298 msgstr ""
10299
10300 #. type: verbatim
10301 #: ../fish/guestfish-actions.pod:2528
10302 #, no-wrap
10303 msgid ""
10304 " is-zero path\n"
10305 "\n"
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10310 msgid ""
10311 "This returns true iff the file exists and the file is empty or it contains "
10312 "all zero bytes."
10313 msgstr ""
10314
10315 #. type: =head2
10316 #: ../fish/guestfish-actions.pod:2533
10317 msgid "is-zero-device"
10318 msgstr ""
10319
10320 #. type: verbatim
10321 #: ../fish/guestfish-actions.pod:2535
10322 #, no-wrap
10323 msgid ""
10324 " is-zero-device device\n"
10325 "\n"
10326 msgstr ""
10327
10328 #. type: textblock
10329 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10330 msgid "This returns true iff the device exists and contains all zero bytes."
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10335 msgid "Note that for large devices this can take a long time to run."
10336 msgstr ""
10337
10338 #. type: =head2
10339 #: ../fish/guestfish-actions.pod:2541
10340 msgid "kill-subprocess"
10341 msgstr "kill-subprocess"
10342
10343 #. type: verbatim
10344 #: ../fish/guestfish-actions.pod:2543
10345 #, no-wrap
10346 msgid ""
10347 " kill-subprocess\n"
10348 "\n"
10349 msgstr ""
10350 " kill-subprocess\n"
10351 "\n"
10352
10353 #. type: textblock
10354 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10355 msgid "This kills the qemu subprocess.  You should never need to call this."
10356 msgstr ""
10357
10358 #. type: =head2
10359 #: ../fish/guestfish-actions.pod:2547
10360 msgid "launch"
10361 msgstr "launch"
10362
10363 #. type: =head2
10364 #: ../fish/guestfish-actions.pod:2549
10365 msgid "run"
10366 msgstr ""
10367
10368 #. type: verbatim
10369 #: ../fish/guestfish-actions.pod:2551
10370 #, no-wrap
10371 msgid ""
10372 " launch\n"
10373 "\n"
10374 msgstr ""
10375 " launch\n"
10376 "\n"
10377
10378 #. type: textblock
10379 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10380 msgid ""
10381 "Internally libguestfs is implemented by running a virtual machine using "
10382 "L<qemu(1)>."
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10387 msgid ""
10388 "You should call this after configuring the handle (eg. adding drives) but "
10389 "before performing any actions."
10390 msgstr ""
10391
10392 #. type: =head2
10393 #: ../fish/guestfish-actions.pod:2559
10394 msgid "lchown"
10395 msgstr "lchown"
10396
10397 #. type: verbatim
10398 #: ../fish/guestfish-actions.pod:2561
10399 #, no-wrap
10400 msgid ""
10401 " lchown owner group path\n"
10402 "\n"
10403 msgstr ""
10404 " lchown власник група шлях\n"
10405 "\n"
10406
10407 #. type: textblock
10408 #: ../fish/guestfish-actions.pod:2563
10409 msgid ""
10410 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10411 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10412 "target."
10413 msgstr ""
10414
10415 #. type: =head2
10416 #: ../fish/guestfish-actions.pod:2571
10417 msgid "lgetxattr"
10418 msgstr "lgetxattr"
10419
10420 #. type: verbatim
10421 #: ../fish/guestfish-actions.pod:2573
10422 #, no-wrap
10423 msgid ""
10424 " lgetxattr path name\n"
10425 "\n"
10426 msgstr ""
10427 " lgetxattr шлях назва\n"
10428 "\n"
10429
10430 #. type: textblock
10431 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10432 msgid ""
10433 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10434 "is a symlink, then this call returns an extended attribute from the symlink."
10435 msgstr ""
10436
10437 #. type: textblock
10438 #: ../fish/guestfish-actions.pod:2589
10439 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10440 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10441
10442 #. type: =head2
10443 #: ../fish/guestfish-actions.pod:2591
10444 msgid "lgetxattrs"
10445 msgstr "lgetxattrs"
10446
10447 #. type: verbatim
10448 #: ../fish/guestfish-actions.pod:2593
10449 #, no-wrap
10450 msgid ""
10451 " lgetxattrs path\n"
10452 "\n"
10453 msgstr ""
10454 " lgetxattrs шлях\n"
10455 "\n"
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2595
10459 msgid ""
10460 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10461 "it returns the extended attributes of the link itself."
10462 msgstr ""
10463
10464 #. type: =head2
10465 #: ../fish/guestfish-actions.pod:2599
10466 msgid "list-9p"
10467 msgstr ""
10468
10469 #. type: verbatim
10470 #: ../fish/guestfish-actions.pod:2601
10471 #, no-wrap
10472 msgid ""
10473 " list-9p\n"
10474 "\n"
10475 msgstr ""
10476
10477 #. type: textblock
10478 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10479 msgid ""
10480 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10481 "returned."
10482 msgstr ""
10483
10484 #. type: =head2
10485 #: ../fish/guestfish-actions.pod:2606
10486 msgid "list-devices"
10487 msgstr "list-devices"
10488
10489 #. type: verbatim
10490 #: ../fish/guestfish-actions.pod:2608
10491 #, no-wrap
10492 msgid ""
10493 " list-devices\n"
10494 "\n"
10495 msgstr ""
10496 " list-devices\n"
10497 "\n"
10498
10499 #. type: textblock
10500 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
10501 msgid "List all the block devices."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
10506 msgid "The full block device names are returned, eg. C</dev/sda>."
10507 msgstr ""
10508
10509 #. type: =head2
10510 #: ../fish/guestfish-actions.pod:2616
10511 msgid "list-dm-devices"
10512 msgstr ""
10513
10514 #. type: verbatim
10515 #: ../fish/guestfish-actions.pod:2618
10516 #, no-wrap
10517 msgid ""
10518 " list-dm-devices\n"
10519 "\n"
10520 msgstr ""
10521
10522 #. type: textblock
10523 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
10524 msgid "List all device mapper devices."
10525 msgstr ""
10526
10527 #. type: textblock
10528 #: ../fish/guestfish-actions.pod:2622
10529 msgid ""
10530 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10531 "previous call to L</luks-open>."
10532 msgstr ""
10533
10534 #. type: textblock
10535 #: ../fish/guestfish-actions.pod:2625
10536 msgid ""
10537 "Device mapper devices which correspond to logical volumes are I<not> "
10538 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10539 msgstr ""
10540
10541 #. type: =head2
10542 #: ../fish/guestfish-actions.pod:2629
10543 msgid "list-filesystems"
10544 msgstr "list-filesystems"
10545
10546 #. type: verbatim
10547 #: ../fish/guestfish-actions.pod:2631
10548 #, no-wrap
10549 msgid ""
10550 " list-filesystems\n"
10551 "\n"
10552 msgstr ""
10553 " list-filesystems\n"
10554 "\n"
10555
10556 #. type: textblock
10557 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
10558 msgid ""
10559 "This inspection command looks for filesystems on partitions, block devices "
10560 "and logical volumes, returning a list of devices containing filesystems and "
10561 "their type."
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
10566 msgid ""
10567 "The return value is a hash, where the keys are the devices containing "
10568 "filesystems, and the values are the filesystem types.  For example:"
10569 msgstr ""
10570
10571 #. type: verbatim
10572 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
10573 #, no-wrap
10574 msgid ""
10575 " \"/dev/sda1\" => \"ntfs\"\n"
10576 " \"/dev/sda2\" => \"ext2\"\n"
10577 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10578 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10579 "\n"
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10584 msgid ""
10585 "The value can have the special value \"unknown\", meaning the content of the "
10586 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:2650
10591 msgid ""
10592 "This command runs other libguestfs commands, which might include L</mount> "
10593 "and L</umount>, and therefore you should use this soon after launch and only "
10594 "when nothing is mounted."
10595 msgstr ""
10596
10597 #. type: textblock
10598 #: ../fish/guestfish-actions.pod:2654
10599 msgid ""
10600 "Not all of the filesystems returned will be mountable.  In particular, swap "
10601 "partitions are returned in the list.  Also this command does not check that "
10602 "each filesystem found is valid and mountable, and some filesystems might be "
10603 "mountable but require special options.  Filesystems may not all belong to a "
10604 "single logical operating system (use L</inspect-os> to look for OSes)."
10605 msgstr ""
10606
10607 #. type: =head2
10608 #: ../fish/guestfish-actions.pod:2662
10609 msgid "list-partitions"
10610 msgstr "list-partitions"
10611
10612 #. type: verbatim
10613 #: ../fish/guestfish-actions.pod:2664
10614 #, no-wrap
10615 msgid ""
10616 " list-partitions\n"
10617 "\n"
10618 msgstr ""
10619 " list-partitions\n"
10620 "\n"
10621
10622 #. type: textblock
10623 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
10624 msgid "List all the partitions detected on all block devices."
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
10629 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10630 msgstr ""
10631
10632 #. type: textblock
10633 #: ../fish/guestfish-actions.pod:2670
10634 msgid ""
10635 "This does not return logical volumes.  For that you will need to call L</"
10636 "lvs>."
10637 msgstr ""
10638
10639 #. type: =head2
10640 #: ../fish/guestfish-actions.pod:2675
10641 msgid "ll"
10642 msgstr "ll"
10643
10644 #. type: verbatim
10645 #: ../fish/guestfish-actions.pod:2677
10646 #, no-wrap
10647 msgid ""
10648 " ll directory\n"
10649 "\n"
10650 msgstr ""
10651 " ll каталог\n"
10652 "\n"
10653
10654 #. type: textblock
10655 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
10656 msgid ""
10657 "List the files in C<directory> (relative to the root directory, there is no "
10658 "cwd) in the format of 'ls -la'."
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
10663 msgid ""
10664 "This command is mostly useful for interactive sessions.  It is I<not> "
10665 "intended that you try to parse the output string."
10666 msgstr ""
10667
10668 #. type: =head2
10669 #: ../fish/guestfish-actions.pod:2685
10670 msgid "ln"
10671 msgstr "ln"
10672
10673 #. type: verbatim
10674 #: ../fish/guestfish-actions.pod:2687
10675 #, no-wrap
10676 msgid ""
10677 " ln target linkname\n"
10678 "\n"
10679 msgstr ""
10680 " ln призначення назва_посилання\n"
10681 "\n"
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
10685 msgid "This command creates a hard link using the C<ln> command."
10686 msgstr ""
10687
10688 #. type: =head2
10689 #: ../fish/guestfish-actions.pod:2691
10690 msgid "ln-f"
10691 msgstr "ln-f"
10692
10693 #. type: verbatim
10694 #: ../fish/guestfish-actions.pod:2693
10695 #, no-wrap
10696 msgid ""
10697 " ln-f target linkname\n"
10698 "\n"
10699 msgstr ""
10700 " ln-f призначення назва_посилання\n"
10701 "\n"
10702
10703 #. type: textblock
10704 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
10705 msgid ""
10706 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10707 "option removes the link (C<linkname>) if it exists already."
10708 msgstr ""
10709
10710 #. type: =head2
10711 #: ../fish/guestfish-actions.pod:2698
10712 msgid "ln-s"
10713 msgstr "ln-s"
10714
10715 #. type: verbatim
10716 #: ../fish/guestfish-actions.pod:2700
10717 #, no-wrap
10718 msgid ""
10719 " ln-s target linkname\n"
10720 "\n"
10721 msgstr ""
10722 " ln-s призначення назва_посилання\n"
10723 "\n"
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
10727 msgid "This command creates a symbolic link using the C<ln -s> command."
10728 msgstr ""
10729
10730 #. type: =head2
10731 #: ../fish/guestfish-actions.pod:2704
10732 msgid "ln-sf"
10733 msgstr "ln-sf"
10734
10735 #. type: verbatim
10736 #: ../fish/guestfish-actions.pod:2706
10737 #, no-wrap
10738 msgid ""
10739 " ln-sf target linkname\n"
10740 "\n"
10741 msgstr ""
10742 " ln-sf призначення назва_посилання\n"
10743 "\n"
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
10747 msgid ""
10748 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10749 "option removes the link (C<linkname>) if it exists already."
10750 msgstr ""
10751
10752 #. type: =head2
10753 #: ../fish/guestfish-actions.pod:2711
10754 msgid "lremovexattr"
10755 msgstr "lremovexattr"
10756
10757 #. type: verbatim
10758 #: ../fish/guestfish-actions.pod:2713
10759 #, no-wrap
10760 msgid ""
10761 " lremovexattr xattr path\n"
10762 "\n"
10763 msgstr ""
10764
10765 #. type: textblock
10766 #: ../fish/guestfish-actions.pod:2715
10767 msgid ""
10768 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10769 "it removes an extended attribute of the link itself."
10770 msgstr ""
10771
10772 #. type: =head2
10773 #: ../fish/guestfish-actions.pod:2719
10774 msgid "ls"
10775 msgstr "ls"
10776
10777 #. type: verbatim
10778 #: ../fish/guestfish-actions.pod:2721
10779 #, no-wrap
10780 msgid ""
10781 " ls directory\n"
10782 "\n"
10783 msgstr ""
10784 " ls каталог\n"
10785 "\n"
10786
10787 #. type: textblock
10788 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
10789 msgid ""
10790 "List the files in C<directory> (relative to the root directory, there is no "
10791 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10792 msgstr ""
10793
10794 #. type: textblock
10795 #: ../fish/guestfish-actions.pod:2727
10796 msgid ""
10797 "This command is mostly useful for interactive sessions.  Programs should "
10798 "probably use L</readdir> instead."
10799 msgstr ""
10800
10801 #. type: =head2
10802 #: ../fish/guestfish-actions.pod:2730
10803 msgid "lsetxattr"
10804 msgstr "lsetxattr"
10805
10806 #. type: verbatim
10807 #: ../fish/guestfish-actions.pod:2732
10808 #, no-wrap
10809 msgid ""
10810 " lsetxattr xattr val vallen path\n"
10811 "\n"
10812 msgstr ""
10813
10814 #. type: textblock
10815 #: ../fish/guestfish-actions.pod:2734
10816 msgid ""
10817 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10818 "sets an extended attribute of the link itself."
10819 msgstr ""
10820
10821 #. type: =head2
10822 #: ../fish/guestfish-actions.pod:2738
10823 msgid "lstat"
10824 msgstr "lstat"
10825
10826 #. type: verbatim
10827 #: ../fish/guestfish-actions.pod:2740
10828 #, no-wrap
10829 msgid ""
10830 " lstat path\n"
10831 "\n"
10832 msgstr ""
10833 " lstat шлях\n"
10834 "\n"
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10838 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
10839 msgid "Returns file information for the given C<path>."
10840 msgstr ""
10841
10842 #. type: textblock
10843 #: ../fish/guestfish-actions.pod:2744
10844 msgid ""
10845 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10846 "the link is stat-ed, not the file it refers to."
10847 msgstr ""
10848
10849 #. type: textblock
10850 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
10851 msgid "This is the same as the C<lstat(2)> system call."
10852 msgstr ""
10853
10854 #. type: =head2
10855 #: ../fish/guestfish-actions.pod:2750
10856 msgid "lstatlist"
10857 msgstr "lstatlist"
10858
10859 #. type: verbatim
10860 #: ../fish/guestfish-actions.pod:2752
10861 #, no-wrap
10862 msgid ""
10863 " lstatlist path 'names ...'\n"
10864 "\n"
10865 msgstr ""
10866
10867 #. type: textblock
10868 #: ../fish/guestfish-actions.pod:2754
10869 msgid ""
10870 "This call allows you to perform the L</lstat> operation on multiple files, "
10871 "where all files are in the directory C<path>.  C<names> is the list of files "
10872 "from this directory."
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
10877 msgid ""
10878 "On return you get a list of stat structs, with a one-to-one correspondence "
10879 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10880 "then the C<ino> field of that structure is set to C<-1>."
10881 msgstr ""
10882
10883 #. type: textblock
10884 #: ../fish/guestfish-actions.pod:2763
10885 msgid ""
10886 "This call is intended for programs that want to efficiently list a directory "
10887 "contents without making many round-trips.  See also L</lxattrlist> for a "
10888 "similarly efficient call for getting extended attributes.  Very long "
10889 "directory listings might cause the protocol message size to be exceeded, "
10890 "causing this call to fail.  The caller must split up such requests into "
10891 "smaller groups of names."
10892 msgstr ""
10893
10894 #. type: =head2
10895 #: ../fish/guestfish-actions.pod:2771
10896 msgid "luks-add-key"
10897 msgstr "luks-add-key"
10898
10899 #. type: verbatim
10900 #: ../fish/guestfish-actions.pod:2773
10901 #, no-wrap
10902 msgid ""
10903 " luks-add-key device keyslot\n"
10904 "\n"
10905 msgstr ""
10906
10907 #. type: textblock
10908 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
10909 msgid ""
10910 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10911 "existing key, and is used to access the device.  C<newkey> is the new key to "
10912 "add.  C<keyslot> is the key slot that will be replaced."
10913 msgstr ""
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:2780
10917 msgid ""
10918 "Note that if C<keyslot> already contains a key, then this command will "
10919 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10924 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10925 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10926 msgid ""
10927 "This command has one or more key or passphrase parameters.  Guestfish will "
10928 "prompt for these separately."
10929 msgstr ""
10930
10931 #. type: =head2
10932 #: ../fish/guestfish-actions.pod:2787
10933 msgid "luks-close"
10934 msgstr "luks-close"
10935
10936 #. type: verbatim
10937 #: ../fish/guestfish-actions.pod:2789
10938 #, no-wrap
10939 msgid ""
10940 " luks-close device\n"
10941 "\n"
10942 msgstr ""
10943 " luks-close пристрій\n"
10944 "\n"
10945
10946 #. type: textblock
10947 #: ../fish/guestfish-actions.pod:2791
10948 msgid ""
10949 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10950 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10951 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10952 "block device."
10953 msgstr ""
10954
10955 #. type: =head2
10956 #: ../fish/guestfish-actions.pod:2797
10957 msgid "luks-format"
10958 msgstr "luks-format"
10959
10960 #. type: verbatim
10961 #: ../fish/guestfish-actions.pod:2799
10962 #, no-wrap
10963 msgid ""
10964 " luks-format device keyslot\n"
10965 "\n"
10966 msgstr ""
10967
10968 #. type: textblock
10969 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
10970 msgid ""
10971 "This command erases existing data on C<device> and formats the device as a "
10972 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10973 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10974 msgstr ""
10975
10976 #. type: textblock
10977 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10978 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10979 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10980 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10981 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
10982 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
10983 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
10984 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
10985 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
10986 msgid ""
10987 "B<This command is dangerous.  Without careful use you can easily destroy all "
10988 "your data>."
10989 msgstr ""
10990
10991 #. type: =head2
10992 #: ../fish/guestfish-actions.pod:2812
10993 msgid "luks-format-cipher"
10994 msgstr "luks-format-cipher"
10995
10996 #. type: verbatim
10997 #: ../fish/guestfish-actions.pod:2814
10998 #, no-wrap
10999 msgid ""
11000 " luks-format-cipher device keyslot cipher\n"
11001 "\n"
11002 msgstr ""
11003
11004 #. type: textblock
11005 #: ../fish/guestfish-actions.pod:2816
11006 msgid ""
11007 "This command is the same as L</luks-format> but it also allows you to set "
11008 "the C<cipher> used."
11009 msgstr ""
11010
11011 #. type: =head2
11012 #: ../fish/guestfish-actions.pod:2825
11013 msgid "luks-kill-slot"
11014 msgstr "luks-kill-slot"
11015
11016 #. type: verbatim
11017 #: ../fish/guestfish-actions.pod:2827
11018 #, no-wrap
11019 msgid ""
11020 " luks-kill-slot device keyslot\n"
11021 "\n"
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
11026 msgid ""
11027 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11028 "device C<device>.  C<key> must be one of the I<other> keys."
11029 msgstr ""
11030
11031 #. type: =head2
11032 #: ../fish/guestfish-actions.pod:2836
11033 msgid "luks-open"
11034 msgstr "luks-open"
11035
11036 #. type: verbatim
11037 #: ../fish/guestfish-actions.pod:2838
11038 #, no-wrap
11039 msgid ""
11040 " luks-open device mapname\n"
11041 "\n"
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
11046 msgid ""
11047 "This command opens a block device which has been encrypted according to the "
11048 "Linux Unified Key Setup (LUKS) standard."
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
11053 msgid "C<device> is the encrypted block device or partition."
11054 msgstr ""
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
11058 msgid ""
11059 "The caller must supply one of the keys associated with the LUKS block "
11060 "device, in the C<key> parameter."
11061 msgstr ""
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
11065 msgid ""
11066 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11067 "writes to this block device are decrypted from and encrypted to the "
11068 "underlying C<device> respectively."
11069 msgstr ""
11070
11071 #. type: textblock
11072 #: ../fish/guestfish-actions.pod:2852
11073 msgid ""
11074 "If this block device contains LVM volume groups, then calling L</vgscan> "
11075 "followed by L</vg-activate-all> will make them visible."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2856
11080 msgid "Use L</list-dm-devices> to list all device mapper devices."
11081 msgstr ""
11082
11083 #. type: =head2
11084 #: ../fish/guestfish-actions.pod:2862
11085 msgid "luks-open-ro"
11086 msgstr "luks-open-ro"
11087
11088 #. type: verbatim
11089 #: ../fish/guestfish-actions.pod:2864
11090 #, no-wrap
11091 msgid ""
11092 " luks-open-ro device mapname\n"
11093 "\n"
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2866
11098 msgid ""
11099 "This is the same as L</luks-open> except that a read-only mapping is created."
11100 msgstr ""
11101
11102 #. type: =head2
11103 #: ../fish/guestfish-actions.pod:2872
11104 msgid "lvcreate"
11105 msgstr "lvcreate"
11106
11107 #. type: verbatim
11108 #: ../fish/guestfish-actions.pod:2874
11109 #, no-wrap
11110 msgid ""
11111 " lvcreate logvol volgroup mbytes\n"
11112 "\n"
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
11117 msgid ""
11118 "This creates an LVM logical volume called C<logvol> on the volume group "
11119 "C<volgroup>, with C<size> megabytes."
11120 msgstr ""
11121
11122 #. type: =head2
11123 #: ../fish/guestfish-actions.pod:2879
11124 msgid "lvm-canonical-lv-name"
11125 msgstr "lvm-canonical-lv-name"
11126
11127 #. type: verbatim
11128 #: ../fish/guestfish-actions.pod:2881
11129 #, no-wrap
11130 msgid ""
11131 " lvm-canonical-lv-name lvname\n"
11132 "\n"
11133 msgstr ""
11134
11135 #. type: textblock
11136 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
11137 msgid ""
11138 "This converts alternative naming schemes for LVs that you might find to the "
11139 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11140 "LV>."
11141 msgstr ""
11142
11143 #. type: textblock
11144 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
11145 msgid ""
11146 "This command returns an error if the C<lvname> parameter does not refer to a "
11147 "logical volume."
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:2890
11152 msgid "See also L</is-lv>."
11153 msgstr "Див. також L</is-lv>."
11154
11155 #. type: =head2
11156 #: ../fish/guestfish-actions.pod:2892
11157 msgid "lvm-clear-filter"
11158 msgstr "lvm-clear-filter"
11159
11160 #. type: verbatim
11161 #: ../fish/guestfish-actions.pod:2894
11162 #, no-wrap
11163 msgid ""
11164 " lvm-clear-filter\n"
11165 "\n"
11166 msgstr ""
11167 " lvm-clear-filter\n"
11168 "\n"
11169
11170 #. type: textblock
11171 #: ../fish/guestfish-actions.pod:2896
11172 msgid ""
11173 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11174 "block device."
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11179 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
11180 msgid ""
11181 "This command also clears the LVM cache and performs a volume group scan."
11182 msgstr ""
11183
11184 #. type: =head2
11185 #: ../fish/guestfish-actions.pod:2902
11186 msgid "lvm-remove-all"
11187 msgstr "lvm-remove-all"
11188
11189 #. type: verbatim
11190 #: ../fish/guestfish-actions.pod:2904
11191 #, no-wrap
11192 msgid ""
11193 " lvm-remove-all\n"
11194 "\n"
11195 msgstr ""
11196 " lvm-remove-all\n"
11197 "\n"
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
11201 msgid ""
11202 "This command removes all LVM logical volumes, volume groups and physical "
11203 "volumes."
11204 msgstr ""
11205
11206 #. type: =head2
11207 #: ../fish/guestfish-actions.pod:2912
11208 msgid "lvm-set-filter"
11209 msgstr "lvm-set-filter"
11210
11211 #. type: verbatim
11212 #: ../fish/guestfish-actions.pod:2914
11213 #, no-wrap
11214 msgid ""
11215 " lvm-set-filter 'devices ...'\n"
11216 "\n"
11217 msgstr ""
11218 " lvm-set-filter 'пристрої...'\n"
11219 "\n"
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
11223 msgid ""
11224 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11225 "block devices in the list C<devices>, and will ignore all other attached "
11226 "block devices."
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
11231 msgid ""
11232 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11233 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11234 "there are two types of duplication possible: either cloned PVs/VGs which "
11235 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11236 "same name.  In normal operation you cannot create this situation, but you "
11237 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11238 "inside the LVM metadata."
11239 msgstr ""
11240
11241 #. type: textblock
11242 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11243 msgid "You can filter whole block devices or individual partitions."
11244 msgstr ""
11245
11246 #. type: textblock
11247 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
11248 msgid ""
11249 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11250 "filesystem), even if you are not filtering out that VG."
11251 msgstr ""
11252
11253 #. type: =head2
11254 #: ../fish/guestfish-actions.pod:2939
11255 msgid "lvremove"
11256 msgstr "lvremove"
11257
11258 #. type: verbatim
11259 #: ../fish/guestfish-actions.pod:2941
11260 #, no-wrap
11261 msgid ""
11262 " lvremove device\n"
11263 "\n"
11264 msgstr ""
11265 " lvremove пристрій\n"
11266 "\n"
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
11270 msgid ""
11271 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11272 "LV, such as C</dev/VG/LV>."
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
11277 msgid ""
11278 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11279 "dev/VG>."
11280 msgstr ""
11281
11282 #. type: =head2
11283 #: ../fish/guestfish-actions.pod:2949
11284 msgid "lvrename"
11285 msgstr "lvrename"
11286
11287 #. type: verbatim
11288 #: ../fish/guestfish-actions.pod:2951
11289 #, no-wrap
11290 msgid ""
11291 " lvrename logvol newlogvol\n"
11292 "\n"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
11297 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11298 msgstr ""
11299
11300 #. type: =head2
11301 #: ../fish/guestfish-actions.pod:2955
11302 msgid "lvresize"
11303 msgstr "lvresize"
11304
11305 #. type: verbatim
11306 #: ../fish/guestfish-actions.pod:2957
11307 #, no-wrap
11308 msgid ""
11309 " lvresize device mbytes\n"
11310 "\n"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
11315 msgid ""
11316 "This resizes (expands or shrinks) an existing LVM logical volume to "
11317 "C<mbytes>.  When reducing, data in the reduced part is lost."
11318 msgstr ""
11319
11320 #. type: =head2
11321 #: ../fish/guestfish-actions.pod:2963
11322 msgid "lvresize-free"
11323 msgstr "lvresize-free"
11324
11325 #. type: verbatim
11326 #: ../fish/guestfish-actions.pod:2965
11327 #, no-wrap
11328 msgid ""
11329 " lvresize-free lv percent\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
11335 msgid ""
11336 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11337 "remaining free space in the volume group.  Commonly you would call this with "
11338 "pc = 100 which expands the logical volume as much as possible, using all "
11339 "remaining free space in the volume group."
11340 msgstr ""
11341
11342 #. type: =head2
11343 #: ../fish/guestfish-actions.pod:2973
11344 msgid "lvs"
11345 msgstr "lvs"
11346
11347 #. type: verbatim
11348 #: ../fish/guestfish-actions.pod:2975
11349 #, no-wrap
11350 msgid ""
11351 " lvs\n"
11352 "\n"
11353 msgstr ""
11354 " lvs\n"
11355 "\n"
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11359 msgid ""
11360 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11361 "(8)> command."
11362 msgstr ""
11363
11364 #. type: textblock
11365 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11366 msgid ""
11367 "This returns a list of the logical volume device names (eg. C</dev/"
11368 "VolGroup00/LogVol00>)."
11369 msgstr ""
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:2983
11373 msgid "See also L</lvs-full>, L</list-filesystems>."
11374 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11375
11376 #. type: =head2
11377 #: ../fish/guestfish-actions.pod:2985
11378 msgid "lvs-full"
11379 msgstr "lvs-full"
11380
11381 #. type: verbatim
11382 #: ../fish/guestfish-actions.pod:2987
11383 #, no-wrap
11384 msgid ""
11385 " lvs-full\n"
11386 "\n"
11387 msgstr ""
11388 " lvs-full\n"
11389 "\n"
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11393 msgid ""
11394 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11395 "(8)> command.  The \"full\" version includes all fields."
11396 msgstr ""
11397
11398 #. type: =head2
11399 #: ../fish/guestfish-actions.pod:2992
11400 msgid "lvuuid"
11401 msgstr "lvuuid"
11402
11403 #. type: verbatim
11404 #: ../fish/guestfish-actions.pod:2994
11405 #, no-wrap
11406 msgid ""
11407 " lvuuid device\n"
11408 "\n"
11409 msgstr ""
11410 " lvuuid пристрій\n"
11411 "\n"
11412
11413 #. type: textblock
11414 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11415 msgid "This command returns the UUID of the LVM LV C<device>."
11416 msgstr ""
11417
11418 #. type: =head2
11419 #: ../fish/guestfish-actions.pod:2998
11420 msgid "lxattrlist"
11421 msgstr "lxattrlist"
11422
11423 #. type: verbatim
11424 #: ../fish/guestfish-actions.pod:3000
11425 #, no-wrap
11426 msgid ""
11427 " lxattrlist path 'names ...'\n"
11428 "\n"
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11433 msgid ""
11434 "This call allows you to get the extended attributes of multiple files, where "
11435 "all files are in the directory C<path>.  C<names> is the list of files from "
11436 "this directory."
11437 msgstr ""
11438
11439 #. type: textblock
11440 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11441 msgid ""
11442 "On return you get a flat list of xattr structs which must be interpreted "
11443 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11444 "C<attrval> in this struct is zero-length to indicate there was an error "
11445 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11446 "number (the number of following attributes for this file, which could be C<"
11447 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11448 "for the first named file.  This repeats for the second and subsequent files."
11449 msgstr ""
11450
11451 #. type: textblock
11452 #: ../fish/guestfish-actions.pod:3016
11453 msgid ""
11454 "This call is intended for programs that want to efficiently list a directory "
11455 "contents without making many round-trips.  See also L</lstatlist> for a "
11456 "similarly efficient call for getting standard stats.  Very long directory "
11457 "listings might cause the protocol message size to be exceeded, causing this "
11458 "call to fail.  The caller must split up such requests into smaller groups of "
11459 "names."
11460 msgstr ""
11461
11462 #. type: =head2
11463 #: ../fish/guestfish-actions.pod:3024
11464 msgid "mkdir"
11465 msgstr "mkdir"
11466
11467 #. type: verbatim
11468 #: ../fish/guestfish-actions.pod:3026
11469 #, no-wrap
11470 msgid ""
11471 " mkdir path\n"
11472 "\n"
11473 msgstr ""
11474 " mkdir шлях\n"
11475 "\n"
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11479 msgid "Create a directory named C<path>."
11480 msgstr ""
11481
11482 #. type: =head2
11483 #: ../fish/guestfish-actions.pod:3030
11484 msgid "mkdir-mode"
11485 msgstr "mkdir-mode"
11486
11487 #. type: verbatim
11488 #: ../fish/guestfish-actions.pod:3032
11489 #, no-wrap
11490 msgid ""
11491 " mkdir-mode path mode\n"
11492 "\n"
11493 msgstr ""
11494 " mkdir-mode шлях режим\n"
11495 "\n"
11496
11497 #. type: textblock
11498 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11499 msgid ""
11500 "This command creates a directory, setting the initial permissions of the "
11501 "directory to C<mode>."
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11506 msgid ""
11507 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11508 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11509 "other ways."
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3041
11514 msgid "See also L</mkdir>, L</umask>"
11515 msgstr "Див. також L</mkdir>, L</umask>"
11516
11517 #. type: =head2
11518 #: ../fish/guestfish-actions.pod:3043
11519 msgid "mkdir-p"
11520 msgstr "mkdir-p"
11521
11522 #. type: verbatim
11523 #: ../fish/guestfish-actions.pod:3045
11524 #, no-wrap
11525 msgid ""
11526 " mkdir-p path\n"
11527 "\n"
11528 msgstr ""
11529 " mkdir-p шлях\n"
11530 "\n"
11531
11532 #. type: textblock
11533 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11534 msgid ""
11535 "Create a directory named C<path>, creating any parent directories as "
11536 "necessary.  This is like the C<mkdir -p> shell command."
11537 msgstr ""
11538
11539 #. type: =head2
11540 #: ../fish/guestfish-actions.pod:3050
11541 msgid "mkdtemp"
11542 msgstr "mkdtemp"
11543
11544 #. type: verbatim
11545 #: ../fish/guestfish-actions.pod:3052
11546 #, no-wrap
11547 msgid ""
11548 " mkdtemp template\n"
11549 "\n"
11550 msgstr ""
11551 " mkdtemp шаблон\n"
11552 "\n"
11553
11554 #. type: textblock
11555 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
11556 msgid ""
11557 "This command creates a temporary directory.  The C<template> parameter "
11558 "should be a full pathname for the temporary directory name with the final "
11559 "six characters being \"XXXXXX\"."
11560 msgstr ""
11561
11562 #. type: textblock
11563 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
11564 msgid ""
11565 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11566 "being suitable for Windows filesystems."
11567 msgstr ""
11568
11569 #. type: textblock
11570 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
11571 msgid "The name of the temporary directory that was created is returned."
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
11576 msgid "The temporary directory is created with mode 0700 and is owned by root."
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
11581 msgid ""
11582 "The caller is responsible for deleting the temporary directory and its "
11583 "contents after use."
11584 msgstr ""
11585
11586 #. type: textblock
11587 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
11588 msgid "See also: L<mkdtemp(3)>"
11589 msgstr ""
11590
11591 #. type: =head2
11592 #: ../fish/guestfish-actions.pod:3073
11593 msgid "mke2fs-J"
11594 msgstr "mke2fs-J"
11595
11596 #. type: verbatim
11597 #: ../fish/guestfish-actions.pod:3075
11598 #, no-wrap
11599 msgid ""
11600 " mke2fs-J fstype blocksize device journal\n"
11601 "\n"
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
11606 msgid ""
11607 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11608 "C<journal>.  It is equivalent to the command:"
11609 msgstr ""
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
11613 #, no-wrap
11614 msgid ""
11615 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11616 "\n"
11617 msgstr ""
11618 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11619 "\n"
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3083
11623 msgid "See also L</mke2journal>."
11624 msgstr "Див. також L</mke2journal>."
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3085
11628 msgid "mke2fs-JL"
11629 msgstr "mke2fs-JL"
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3087
11633 #, no-wrap
11634 msgid ""
11635 " mke2fs-JL fstype blocksize device label\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
11641 msgid ""
11642 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11643 "the journal labeled C<label>."
11644 msgstr ""
11645
11646 #. type: textblock
11647 #: ../fish/guestfish-actions.pod:3092
11648 msgid "See also L</mke2journal-L>."
11649 msgstr "Див. також L</mke2journal-L>."
11650
11651 #. type: =head2
11652 #: ../fish/guestfish-actions.pod:3094
11653 msgid "mke2fs-JU"
11654 msgstr "mke2fs-JU"
11655
11656 #. type: verbatim
11657 #: ../fish/guestfish-actions.pod:3096
11658 #, no-wrap
11659 msgid ""
11660 " mke2fs-JU fstype blocksize device uuid\n"
11661 "\n"
11662 msgstr ""
11663
11664 #. type: textblock
11665 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
11666 msgid ""
11667 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11668 "the journal with UUID C<uuid>."
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../fish/guestfish-actions.pod:3101
11673 msgid "See also L</mke2journal-U>."
11674 msgstr "Див. також L</mke2journal-U>."
11675
11676 #. type: =head2
11677 #: ../fish/guestfish-actions.pod:3103
11678 msgid "mke2journal"
11679 msgstr "mke2journal"
11680
11681 #. type: verbatim
11682 #: ../fish/guestfish-actions.pod:3105
11683 #, no-wrap
11684 msgid ""
11685 " mke2journal blocksize device\n"
11686 "\n"
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
11691 msgid ""
11692 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11693 "command:"
11694 msgstr ""
11695
11696 #. type: verbatim
11697 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
11698 #, no-wrap
11699 msgid ""
11700 " mke2fs -O journal_dev -b blocksize device\n"
11701 "\n"
11702 msgstr ""
11703
11704 #. type: =head2
11705 #: ../fish/guestfish-actions.pod:3112
11706 msgid "mke2journal-L"
11707 msgstr "mke2journal-L"
11708
11709 #. type: verbatim
11710 #: ../fish/guestfish-actions.pod:3114
11711 #, no-wrap
11712 msgid ""
11713 " mke2journal-L blocksize label device\n"
11714 "\n"
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
11719 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11720 msgstr ""
11721
11722 #. type: =head2
11723 #: ../fish/guestfish-actions.pod:3118
11724 msgid "mke2journal-U"
11725 msgstr "mke2journal-U"
11726
11727 #. type: verbatim
11728 #: ../fish/guestfish-actions.pod:3120
11729 #, no-wrap
11730 msgid ""
11731 " mke2journal-U blocksize uuid device\n"
11732 "\n"
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
11737 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11738 msgstr ""
11739
11740 #. type: =head2
11741 #: ../fish/guestfish-actions.pod:3124
11742 msgid "mkfifo"
11743 msgstr "mkfifo"
11744
11745 #. type: verbatim
11746 #: ../fish/guestfish-actions.pod:3126
11747 #, no-wrap
11748 msgid ""
11749 " mkfifo mode path\n"
11750 "\n"
11751 msgstr ""
11752 " mkfifo режим шлях\n"
11753 "\n"
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:3128
11757 msgid ""
11758 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11759 "is just a convenient wrapper around L</mknod>."
11760 msgstr ""
11761
11762 #. type: =head2
11763 #: ../fish/guestfish-actions.pod:3134
11764 msgid "mkfs"
11765 msgstr "mkfs"
11766
11767 #. type: verbatim
11768 #: ../fish/guestfish-actions.pod:3136
11769 #, no-wrap
11770 msgid ""
11771 " mkfs fstype device\n"
11772 "\n"
11773 msgstr ""
11774 " mkfs тип_файлової_системи пристрій\n"
11775 "\n"
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
11779 msgid ""
11780 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11781 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11782 msgstr ""
11783
11784 #. type: =head2
11785 #: ../fish/guestfish-actions.pod:3142
11786 msgid "mkfs-b"
11787 msgstr "mkfs-b"
11788
11789 #. type: verbatim
11790 #: ../fish/guestfish-actions.pod:3144
11791 #, no-wrap
11792 msgid ""
11793 " mkfs-b fstype blocksize device\n"
11794 "\n"
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:3146
11799 msgid ""
11800 "This call is similar to L</mkfs>, but it allows you to control the block "
11801 "size of the resulting filesystem.  Supported block sizes depend on the "
11802 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11803 msgstr ""
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11807 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
11808 msgid ""
11809 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11810 "cluster size."
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:3154
11815 msgid ""
11816 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11817 "instead."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:3161
11822 msgid "mkfs-opts"
11823 msgstr "mkfs-opts"
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:3163
11827 #, no-wrap
11828 msgid ""
11829 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
11835 msgid ""
11836 "This function creates a filesystem on C<device>.  The filesystem type is "
11837 "C<fstype>, for example C<ext3>."
11838 msgstr ""
11839
11840 #. type: =item
11841 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
11842 msgid "C<blocksize>"
11843 msgstr "C<blocksize>"
11844
11845 #. type: textblock
11846 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
11847 msgid ""
11848 "The filesystem block size.  Supported block sizes depend on the filesystem "
11849 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11850 "filesystems."
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
11855 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11856 msgstr ""
11857
11858 #. type: =item
11859 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
11860 msgid "C<features>"
11861 msgstr "C<features>"
11862
11863 #. type: textblock
11864 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
11865 msgid "This passes the I<-O> parameter to the external mkfs program."
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
11870 msgid ""
11871 "For certain filesystem types, this allows extra filesystem features to be "
11872 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
11877 msgid ""
11878 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11879 "type."
11880 msgstr ""
11881
11882 #. type: =item
11883 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
11884 msgid "C<inode>"
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
11889 msgid ""
11890 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11891 "sets the inode size (only for ext2/3/4 filesystems at present)."
11892 msgstr ""
11893
11894 #. type: =item
11895 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
11896 msgid "C<sectorsize>"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
11901 msgid ""
11902 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11903 "sets sector size for ufs filesystem."
11904 msgstr ""
11905
11906 #. type: =head2
11907 #: ../fish/guestfish-actions.pod:3208
11908 msgid "mkmountpoint"
11909 msgstr "mkmountpoint"
11910
11911 #. type: verbatim
11912 #: ../fish/guestfish-actions.pod:3210
11913 #, no-wrap
11914 msgid ""
11915 " mkmountpoint exemptpath\n"
11916 "\n"
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:3212
11921 msgid ""
11922 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11923 "to create extra mountpoints before mounting the first filesystem."
11924 msgstr ""
11925
11926 #. type: textblock
11927 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
11928 msgid ""
11929 "These calls are I<only> necessary in some very limited circumstances, mainly "
11930 "the case where you want to mount a mix of unrelated and/or read-only "
11931 "filesystems together."
11932 msgstr ""
11933
11934 #. type: textblock
11935 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
11936 msgid ""
11937 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11938 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11939 "inside that.  You can unpack this as follows in guestfish:"
11940 msgstr ""
11941
11942 #. type: verbatim
11943 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
11944 #, no-wrap
11945 msgid ""
11946 " add-ro Fedora-11-i686-Live.iso\n"
11947 " run\n"
11948 " mkmountpoint /cd\n"
11949 " mkmountpoint /sqsh\n"
11950 " mkmountpoint /ext3fs\n"
11951 " mount /dev/sda /cd\n"
11952 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11953 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11954 "\n"
11955 msgstr ""
11956 " add-ro Fedora-11-i686-Live.iso\n"
11957 " run\n"
11958 " mkmountpoint /cd\n"
11959 " mkmountpoint /sqsh\n"
11960 " mkmountpoint /ext3fs\n"
11961 " mount /dev/sda /cd\n"
11962 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11963 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11964 "\n"
11965
11966 #. type: textblock
11967 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
11968 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:3236
11973 msgid ""
11974 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11975 "unexpected errors if you try to mix these calls.  It is safest to manually "
11976 "unmount filesystems and remove mountpoints after use."
11977 msgstr ""
11978
11979 #. type: textblock
11980 #: ../fish/guestfish-actions.pod:3240
11981 msgid ""
11982 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11983 "for this to work for manual mountpoints, you must ensure that the innermost "
11984 "mountpoints have the longest pathnames, as in the example code above."
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
11989 msgid ""
11990 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:3247
11995 msgid ""
11996 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11997 "L</umount-all> to be called when the handle is closed which can also trigger "
11998 "these issues."
11999 msgstr ""
12000
12001 #. type: =head2
12002 #: ../fish/guestfish-actions.pod:3251
12003 msgid "mknod"
12004 msgstr "mknod"
12005
12006 #. type: verbatim
12007 #: ../fish/guestfish-actions.pod:3253
12008 #, no-wrap
12009 msgid ""
12010 " mknod mode devmajor devminor path\n"
12011 "\n"
12012 msgstr ""
12013
12014 #. type: textblock
12015 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
12016 msgid ""
12017 "This call creates block or character special devices, or named pipes (FIFOs)."
12018 msgstr ""
12019
12020 #. type: textblock
12021 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
12022 msgid ""
12023 "The C<mode> parameter should be the mode, using the standard constants.  "
12024 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12025 "used when creating block and character special devices."
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:3263
12030 msgid ""
12031 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12032 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12033 "regular file).  These constants are available in the standard Linux header "
12034 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12035 "wrappers around this command which bitwise OR in the appropriate constant "
12036 "for you."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../fish/guestfish-actions.pod:3273
12041 msgid "mknod-b"
12042 msgstr "mknod-b"
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:3275
12046 #, no-wrap
12047 msgid ""
12048 " mknod-b mode devmajor devminor path\n"
12049 "\n"
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:3277
12054 msgid ""
12055 "This call creates a block device node called C<path> with mode C<mode> and "
12056 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12057 "wrapper around L</mknod>."
12058 msgstr ""
12059
12060 #. type: =head2
12061 #: ../fish/guestfish-actions.pod:3283
12062 msgid "mknod-c"
12063 msgstr "mknod-c"
12064
12065 #. type: verbatim
12066 #: ../fish/guestfish-actions.pod:3285
12067 #, no-wrap
12068 msgid ""
12069 " mknod-c mode devmajor devminor path\n"
12070 "\n"
12071 msgstr ""
12072
12073 #. type: textblock
12074 #: ../fish/guestfish-actions.pod:3287
12075 msgid ""
12076 "This call creates a char device node called C<path> with mode C<mode> and "
12077 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12078 "wrapper around L</mknod>."
12079 msgstr ""
12080
12081 #. type: =head2
12082 #: ../fish/guestfish-actions.pod:3293
12083 msgid "mkswap"
12084 msgstr "mkswap"
12085
12086 #. type: verbatim
12087 #: ../fish/guestfish-actions.pod:3295
12088 #, no-wrap
12089 msgid ""
12090 " mkswap device\n"
12091 "\n"
12092 msgstr ""
12093 " mkswap пристрій\n"
12094 "\n"
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
12098 msgid "Create a swap partition on C<device>."
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:3299
12103 msgid "mkswap-L"
12104 msgstr "mkswap-L"
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:3301
12108 #, no-wrap
12109 msgid ""
12110 " mkswap-L label device\n"
12111 "\n"
12112 msgstr ""
12113 " mkswap-L мітка пристрій\n"
12114 "\n"
12115
12116 #. type: textblock
12117 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
12118 msgid "Create a swap partition on C<device> with label C<label>."
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
12123 msgid ""
12124 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12125 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12126 "or swap tools."
12127 msgstr ""
12128
12129 #. type: =head2
12130 #: ../fish/guestfish-actions.pod:3309
12131 msgid "mkswap-U"
12132 msgstr "mkswap-U"
12133
12134 #. type: verbatim
12135 #: ../fish/guestfish-actions.pod:3311
12136 #, no-wrap
12137 msgid ""
12138 " mkswap-U uuid device\n"
12139 "\n"
12140 msgstr ""
12141 " mkswap-U uuid пристрій\n"
12142 "\n"
12143
12144 #. type: textblock
12145 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
12146 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12147 msgstr ""
12148
12149 #. type: =head2
12150 #: ../fish/guestfish-actions.pod:3315
12151 msgid "mkswap-file"
12152 msgstr "mkswap-file"
12153
12154 #. type: verbatim
12155 #: ../fish/guestfish-actions.pod:3317
12156 #, no-wrap
12157 msgid ""
12158 " mkswap-file path\n"
12159 "\n"
12160 msgstr ""
12161 " mkswap-file шлях\n"
12162 "\n"
12163
12164 #. type: textblock
12165 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
12166 msgid "Create a swap file."
12167 msgstr "Створити файл резервної пам’яті."
12168
12169 #. type: textblock
12170 #: ../fish/guestfish-actions.pod:3321
12171 msgid ""
12172 "This command just writes a swap file signature to an existing file.  To "
12173 "create the file itself, use something like L</fallocate>."
12174 msgstr ""
12175
12176 #. type: =head2
12177 #: ../fish/guestfish-actions.pod:3324
12178 msgid "modprobe"
12179 msgstr "modprobe"
12180
12181 #. type: verbatim
12182 #: ../fish/guestfish-actions.pod:3326
12183 #, no-wrap
12184 msgid ""
12185 " modprobe modulename\n"
12186 "\n"
12187 msgstr ""
12188 " modprobe назва_модуля\n"
12189 "\n"
12190
12191 #. type: textblock
12192 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
12193 msgid "This loads a kernel module in the appliance."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
12198 msgid ""
12199 "The kernel module must have been whitelisted when libguestfs was built (see "
12200 "C<appliance/kmod.whitelist.in> in the source)."
12201 msgstr ""
12202
12203 #. type: =head2
12204 #: ../fish/guestfish-actions.pod:3333
12205 msgid "mount"
12206 msgstr "mount"
12207
12208 #. type: verbatim
12209 #: ../fish/guestfish-actions.pod:3335
12210 #, no-wrap
12211 msgid ""
12212 " mount device mountpoint\n"
12213 "\n"
12214 msgstr ""
12215 " mount пристрій точка_монтування\n"
12216 "\n"
12217
12218 #. type: textblock
12219 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
12220 msgid ""
12221 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12222 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12223 "those block devices contain partitions, they will have the usual names (eg. "
12224 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
12229 msgid ""
12230 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12231 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12232 "mounted on directories which already exist."
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
12237 msgid ""
12238 "The mounted filesystem is writable, if we have sufficient permissions on the "
12239 "underlying device."
12240 msgstr ""
12241
12242 #. type: textblock
12243 #: ../fish/guestfish-actions.pod:3351
12244 msgid ""
12245 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12246 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12247 "problems for users.  If your program might need to work with older versions "
12248 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12249 "first parameter if you don't want any options)."
12250 msgstr ""
12251
12252 #. type: =head2
12253 #: ../fish/guestfish-actions.pod:3358
12254 msgid "mount-9p"
12255 msgstr ""
12256
12257 #. type: verbatim
12258 #: ../fish/guestfish-actions.pod:3360
12259 #, no-wrap
12260 msgid ""
12261 " mount-9p mounttag mountpoint [options:..]\n"
12262 "\n"
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
12267 msgid ""
12268 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12269 "C<mountpoint>."
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
12274 msgid ""
12275 "If required, C<trans=virtio> will be automatically added to the options.  "
12276 "Any other options required can be passed in the optional C<options> "
12277 "parameter."
12278 msgstr ""
12279
12280 #. type: =head2
12281 #: ../fish/guestfish-actions.pod:3371
12282 msgid "mount-loop"
12283 msgstr "mount-loop"
12284
12285 #. type: verbatim
12286 #: ../fish/guestfish-actions.pod:3373
12287 #, no-wrap
12288 msgid ""
12289 " mount-loop file mountpoint\n"
12290 "\n"
12291 msgstr ""
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
12295 msgid ""
12296 "This command lets you mount C<file> (a filesystem image in a file) on a "
12297 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12298 "mountpoint>."
12299 msgstr ""
12300
12301 #. type: =head2
12302 #: ../fish/guestfish-actions.pod:3379
12303 msgid "mount-options"
12304 msgstr "mount-options"
12305
12306 #. type: verbatim
12307 #: ../fish/guestfish-actions.pod:3381
12308 #, no-wrap
12309 msgid ""
12310 " mount-options options device mountpoint\n"
12311 "\n"
12312 msgstr ""
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:3383
12316 msgid ""
12317 "This is the same as the L</mount> command, but it allows you to set the "
12318 "mount options as for the L<mount(8)> I<-o> flag."
12319 msgstr ""
12320
12321 #. type: textblock
12322 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
12323 msgid ""
12324 "If the C<options> parameter is an empty string, then no options are passed "
12325 "(all options default to whatever the filesystem uses)."
12326 msgstr ""
12327
12328 #. type: =head2
12329 #: ../fish/guestfish-actions.pod:3391
12330 msgid "mount-ro"
12331 msgstr "mount-ro"
12332
12333 #. type: verbatim
12334 #: ../fish/guestfish-actions.pod:3393
12335 #, no-wrap
12336 msgid ""
12337 " mount-ro device mountpoint\n"
12338 "\n"
12339 msgstr ""
12340 " mount-ro пристрій точка_монтування\n"
12341 "\n"
12342
12343 #. type: textblock
12344 #: ../fish/guestfish-actions.pod:3395
12345 msgid ""
12346 "This is the same as the L</mount> command, but it mounts the filesystem with "
12347 "the read-only (I<-o ro>) flag."
12348 msgstr ""
12349
12350 #. type: =head2
12351 #: ../fish/guestfish-actions.pod:3398
12352 msgid "mount-vfs"
12353 msgstr "mount-vfs"
12354
12355 #. type: verbatim
12356 #: ../fish/guestfish-actions.pod:3400
12357 #, no-wrap
12358 msgid ""
12359 " mount-vfs options vfstype device mountpoint\n"
12360 "\n"
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:3402
12365 msgid ""
12366 "This is the same as the L</mount> command, but it allows you to set both the "
12367 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12368 msgstr ""
12369
12370 #. type: =head2
12371 #: ../fish/guestfish-actions.pod:3406
12372 msgid "mountpoints"
12373 msgstr "mountpoints"
12374
12375 #. type: verbatim
12376 #: ../fish/guestfish-actions.pod:3408
12377 #, no-wrap
12378 msgid ""
12379 " mountpoints\n"
12380 "\n"
12381 msgstr ""
12382 " mountpoints\n"
12383 "\n"
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:3410
12387 msgid ""
12388 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12389 "This one returns a hash table (map) of device name to directory where the "
12390 "device is mounted."
12391 msgstr ""
12392
12393 #. type: =head2
12394 #: ../fish/guestfish-actions.pod:3414
12395 msgid "mounts"
12396 msgstr "mounts"
12397
12398 #. type: verbatim
12399 #: ../fish/guestfish-actions.pod:3416
12400 #, no-wrap
12401 msgid ""
12402 " mounts\n"
12403 "\n"
12404 msgstr ""
12405 " mounts\n"
12406 "\n"
12407
12408 #. type: textblock
12409 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12410 msgid ""
12411 "This returns the list of currently mounted filesystems.  It returns the list "
12412 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12413 msgstr ""
12414
12415 #. type: textblock
12416 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12417 msgid "Some internal mounts are not shown."
12418 msgstr ""
12419
12420 #. type: textblock
12421 #: ../fish/guestfish-actions.pod:3423
12422 msgid "See also: L</mountpoints>"
12423 msgstr "Див. також L</mountpoints>"
12424
12425 #. type: =head2
12426 #: ../fish/guestfish-actions.pod:3425
12427 msgid "mv"
12428 msgstr "mv"
12429
12430 #. type: verbatim
12431 #: ../fish/guestfish-actions.pod:3427
12432 #, no-wrap
12433 msgid ""
12434 " mv src dest\n"
12435 "\n"
12436 msgstr ""
12437 " mv джерело призначення\n"
12438 "\n"
12439
12440 #. type: textblock
12441 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12442 msgid ""
12443 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12444 "destination filename or destination directory."
12445 msgstr ""
12446
12447 #. type: =head2
12448 #: ../fish/guestfish-actions.pod:3432
12449 msgid "ntfs-3g-probe"
12450 msgstr "ntfs-3g-probe"
12451
12452 #. type: verbatim
12453 #: ../fish/guestfish-actions.pod:3434
12454 #, no-wrap
12455 msgid ""
12456 " ntfs-3g-probe true|false device\n"
12457 "\n"
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12462 msgid ""
12463 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12464 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12465 "write, and some cannot be mounted at all)."
12466 msgstr ""
12467
12468 #. type: textblock
12469 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12470 msgid ""
12471 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12472 "can be mounted read-write.  Set it to false if you want to test if the "
12473 "volume can be mounted read-only."
12474 msgstr ""
12475
12476 #. type: textblock
12477 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12478 msgid ""
12479 "The return value is an integer which C<0> if the operation would succeed, or "
12480 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12481 msgstr ""
12482
12483 #. type: =head2
12484 #: ../fish/guestfish-actions.pod:3448
12485 msgid "ntfsresize"
12486 msgstr "ntfsresize"
12487
12488 #. type: verbatim
12489 #: ../fish/guestfish-actions.pod:3450
12490 #, no-wrap
12491 msgid ""
12492 " ntfsresize device\n"
12493 "\n"
12494 msgstr ""
12495 " ntfsresize пристрій\n"
12496 "\n"
12497
12498 #. type: textblock
12499 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12500 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12501 msgid ""
12502 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12503 "size of the underlying device."
12504 msgstr ""
12505
12506 #. type: textblock
12507 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12508 msgid ""
12509 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12510 "consistency check (for safety).  You have to boot into Windows to perform "
12511 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12512 "resize filesystems which have been marked in this way.  So in effect it is "
12513 "not possible to call ntfsresize multiple times on a single filesystem "
12514 "without booting into Windows between each resize."
12515 msgstr ""
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12519 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12520 msgid "See also L<ntfsresize(8)>."
12521 msgstr ""
12522
12523 #. type: textblock
12524 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12525 msgid ""
12526 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12527 "call instead."
12528 msgstr ""
12529
12530 #. type: =head2
12531 #: ../fish/guestfish-actions.pod:3472
12532 msgid "ntfsresize-opts"
12533 msgstr ""
12534
12535 #. type: verbatim
12536 #: ../fish/guestfish-actions.pod:3474
12537 #, no-wrap
12538 msgid ""
12539 " ntfsresize-opts device [size:..] [force:..]\n"
12540 "\n"
12541 msgstr ""
12542
12543 #. type: textblock
12544 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12545 msgid ""
12546 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12547 "resized to fit the container (eg. partition)."
12548 msgstr ""
12549
12550 #. type: =item
12551 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12552 msgid "C<force>"
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12557 msgid ""
12558 "If this option is true, then force the resize of the filesystem even if the "
12559 "filesystem is marked as requiring a consistency check."
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../fish/guestfish-actions.pod:3493
12564 msgid ""
12565 "After the resize operation, the filesystem is always marked as requiring a "
12566 "consistency check (for safety).  You have to boot into Windows to perform "
12567 "this check and clear this condition.  If you I<don't> set the C<force> "
12568 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12569 "a single filesystem without booting into Windows between each resize."
12570 msgstr ""
12571
12572 #. type: =head2
12573 #: ../fish/guestfish-actions.pod:3506
12574 msgid "ntfsresize-size"
12575 msgstr "ntfsresize-size"
12576
12577 #. type: verbatim
12578 #: ../fish/guestfish-actions.pod:3508
12579 #, no-wrap
12580 msgid ""
12581 " ntfsresize-size device size\n"
12582 "\n"
12583 msgstr ""
12584
12585 #. type: textblock
12586 #: ../fish/guestfish-actions.pod:3510
12587 msgid ""
12588 "This command is the same as L</ntfsresize> except that it allows you to "
12589 "specify the new size (in bytes) explicitly."
12590 msgstr ""
12591
12592 #. type: =head2
12593 #: ../fish/guestfish-actions.pod:3520
12594 msgid "part-add"
12595 msgstr "part-add"
12596
12597 #. type: verbatim
12598 #: ../fish/guestfish-actions.pod:3522
12599 #, no-wrap
12600 msgid ""
12601 " part-add device prlogex startsect endsect\n"
12602 "\n"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../fish/guestfish-actions.pod:3524
12607 msgid ""
12608 "This command adds a partition to C<device>.  If there is no partition table "
12609 "on the device, call L</part-init> first."
12610 msgstr ""
12611
12612 #. type: textblock
12613 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
12614 msgid ""
12615 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12616 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12617 "C<logical>) and C<e> (or C<extended>) partition types."
12618 msgstr ""
12619
12620 #. type: textblock
12621 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
12622 msgid ""
12623 "C<startsect> and C<endsect> are the start and end of the partition in "
12624 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12625 "from the end of the disk (C<-1> is the last sector)."
12626 msgstr ""
12627
12628 #. type: textblock
12629 #: ../fish/guestfish-actions.pod:3536
12630 msgid ""
12631 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12632 "part-disk> to do that."
12633 msgstr ""
12634
12635 #. type: =head2
12636 #: ../fish/guestfish-actions.pod:3539
12637 msgid "part-del"
12638 msgstr "part-del"
12639
12640 #. type: verbatim
12641 #: ../fish/guestfish-actions.pod:3541
12642 #, no-wrap
12643 msgid ""
12644 " part-del device partnum\n"
12645 "\n"
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
12650 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12651 msgstr ""
12652
12653 #. type: textblock
12654 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
12655 msgid ""
12656 "Note that in the case of MBR partitioning, deleting an extended partition "
12657 "also deletes any logical partitions it contains."
12658 msgstr ""
12659
12660 #. type: =head2
12661 #: ../fish/guestfish-actions.pod:3549
12662 msgid "part-disk"
12663 msgstr "part-disk"
12664
12665 #. type: verbatim
12666 #: ../fish/guestfish-actions.pod:3551
12667 #, no-wrap
12668 msgid ""
12669 " part-disk device parttype\n"
12670 "\n"
12671 msgstr ""
12672 " part-disk пристрій тип_розділу\n"
12673 "\n"
12674
12675 #. type: textblock
12676 #: ../fish/guestfish-actions.pod:3553
12677 msgid ""
12678 "This command is simply a combination of L</part-init> followed by L</part-"
12679 "add> to create a single primary partition covering the whole disk."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:3557
12684 msgid ""
12685 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12686 "possible values are described in L</part-init>."
12687 msgstr ""
12688
12689 #. type: =head2
12690 #: ../fish/guestfish-actions.pod:3563
12691 msgid "part-get-bootable"
12692 msgstr "part-get-bootable"
12693
12694 #. type: verbatim
12695 #: ../fish/guestfish-actions.pod:3565
12696 #, no-wrap
12697 msgid ""
12698 " part-get-bootable device partnum\n"
12699 "\n"
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
12704 msgid ""
12705 "This command returns true if the partition C<partnum> on C<device> has the "
12706 "bootable flag set."
12707 msgstr ""
12708
12709 #. type: textblock
12710 #: ../fish/guestfish-actions.pod:3570
12711 msgid "See also L</part-set-bootable>."
12712 msgstr "Див. також L</part-set-bootable>."
12713
12714 #. type: =head2
12715 #: ../fish/guestfish-actions.pod:3572
12716 msgid "part-get-mbr-id"
12717 msgstr "part-get-mbr-id"
12718
12719 #. type: verbatim
12720 #: ../fish/guestfish-actions.pod:3574
12721 #, no-wrap
12722 msgid ""
12723 " part-get-mbr-id device partnum\n"
12724 "\n"
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
12729 msgid ""
12730 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12731 "partition C<partnum>."
12732 msgstr ""
12733
12734 #. type: textblock
12735 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12736 msgid ""
12737 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12738 "undefined results for other partition table types (see L</part-get-"
12739 "parttype>)."
12740 msgstr ""
12741
12742 #. type: =head2
12743 #: ../fish/guestfish-actions.pod:3583
12744 msgid "part-get-parttype"
12745 msgstr "part-get-parttype"
12746
12747 #. type: verbatim
12748 #: ../fish/guestfish-actions.pod:3585
12749 #, no-wrap
12750 msgid ""
12751 " part-get-parttype device\n"
12752 "\n"
12753 msgstr ""
12754 " part-get-parttype пристрій\n"
12755 "\n"
12756
12757 #. type: textblock
12758 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
12759 msgid ""
12760 "This command examines the partition table on C<device> and returns the "
12761 "partition table type (format) being used."
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../fish/guestfish-actions.pod:3590
12766 msgid ""
12767 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12768 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12769 "possible, although unusual.  See L</part-init> for a full list."
12770 msgstr ""
12771
12772 #. type: =head2
12773 #: ../fish/guestfish-actions.pod:3595
12774 msgid "part-init"
12775 msgstr "part-init"
12776
12777 #. type: verbatim
12778 #: ../fish/guestfish-actions.pod:3597
12779 #, no-wrap
12780 msgid ""
12781 " part-init device parttype\n"
12782 "\n"
12783 msgstr ""
12784
12785 #. type: textblock
12786 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
12787 msgid ""
12788 "This creates an empty partition table on C<device> of one of the partition "
12789 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12790 "(for large disks)."
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:3603
12795 msgid ""
12796 "Initially there are no partitions.  Following this, you should call L</part-"
12797 "add> for each partition required."
12798 msgstr ""
12799
12800 #. type: textblock
12801 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
12802 msgid "Possible values for C<parttype> are:"
12803 msgstr ""
12804
12805 #. type: =item
12806 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
12807 msgid "B<efi>"
12808 msgstr ""
12809
12810 #. type: =item
12811 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
12812 msgid "B<gpt>"
12813 msgstr ""
12814
12815 #. type: textblock
12816 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
12817 msgid "Intel EFI / GPT partition table."
12818 msgstr ""
12819
12820 #. type: textblock
12821 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
12822 msgid ""
12823 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12824 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12825 "the C<mbr> format."
12826 msgstr ""
12827
12828 #. type: =item
12829 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
12830 msgid "B<mbr>"
12831 msgstr ""
12832
12833 #. type: =item
12834 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
12835 msgid "B<msdos>"
12836 msgstr ""
12837
12838 #. type: textblock
12839 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
12840 msgid ""
12841 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12842 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12843 "TB.  For large disks we recommend using C<gpt>."
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
12848 msgid ""
12849 "Other partition table types that may work but are not supported include:"
12850 msgstr ""
12851
12852 #. type: =item
12853 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
12854 msgid "B<aix>"
12855 msgstr "B<aix>"
12856
12857 #. type: textblock
12858 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
12859 msgid "AIX disk labels."
12860 msgstr "Мітки дисків AIX."
12861
12862 #. type: =item
12863 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
12864 #, fuzzy
12865 #| msgid "B<amiga> | B<rdb>"
12866 msgid "B<amiga>"
12867 msgstr "B<amiga> | B<rdb>"
12868
12869 #. type: =item
12870 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
12871 msgid "B<rdb>"
12872 msgstr ""
12873
12874 #. type: textblock
12875 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
12876 msgid "Amiga \"Rigid Disk Block\" format."
12877 msgstr "Формат \"Rigid Disk Block\" Amiga."
12878
12879 #. type: =item
12880 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
12881 msgid "B<bsd>"
12882 msgstr "B<bsd>"
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
12886 msgid "BSD disk labels."
12887 msgstr "Мітки дисків BSD."
12888
12889 #. type: =item
12890 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
12891 msgid "B<dasd>"
12892 msgstr "B<dasd>"
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
12896 msgid "DASD, used on IBM mainframes."
12897 msgstr "DASD, використовувалися у мейнфреймах IBM."
12898
12899 #. type: =item
12900 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
12901 msgid "B<dvh>"
12902 msgstr "B<dvh>"
12903
12904 #. type: textblock
12905 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
12906 msgid "MIPS/SGI volumes."
12907 msgstr "Томи MIPS/SGI."
12908
12909 #. type: =item
12910 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
12911 msgid "B<mac>"
12912 msgstr "B<mac>"
12913
12914 #. type: textblock
12915 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
12916 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12917 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12918
12919 #. type: =item
12920 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
12921 msgid "B<pc98>"
12922 msgstr "B<pc98>"
12923
12924 #. type: textblock
12925 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
12926 msgid "NEC PC-98 format, common in Japan apparently."
12927 msgstr "Формат NEC PC-98, поширений у Японії."
12928
12929 #. type: =item
12930 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
12931 msgid "B<sun>"
12932 msgstr "B<sun>"
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
12936 msgid "Sun disk labels."
12937 msgstr "Мітки дисків Sun."
12938
12939 #. type: =head2
12940 #: ../fish/guestfish-actions.pod:3672
12941 msgid "part-list"
12942 msgstr "part-list"
12943
12944 #. type: verbatim
12945 #: ../fish/guestfish-actions.pod:3674
12946 #, no-wrap
12947 msgid ""
12948 " part-list device\n"
12949 "\n"
12950 msgstr ""
12951 " part-list device\n"
12952 "\n"
12953
12954 #. type: textblock
12955 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
12956 msgid ""
12957 "This command parses the partition table on C<device> and returns the list of "
12958 "partitions found."
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
12963 msgid "The fields in the returned structure are:"
12964 msgstr ""
12965
12966 #. type: =item
12967 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
12968 msgid "B<part_num>"
12969 msgstr "B<part_num>"
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
12973 msgid "Partition number, counting from 1."
12974 msgstr ""
12975
12976 #. type: =item
12977 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
12978 msgid "B<part_start>"
12979 msgstr "B<part_start>"
12980
12981 #. type: textblock
12982 #: ../fish/guestfish-actions.pod:3689
12983 msgid ""
12984 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12985 "the device's sector size, see L</blockdev-getss>."
12986 msgstr ""
12987
12988 #. type: =item
12989 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
12990 msgid "B<part_end>"
12991 msgstr "B<part_end>"
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
12995 msgid "End of the partition in bytes."
12996 msgstr ""
12997
12998 #. type: =item
12999 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
13000 msgid "B<part_size>"
13001 msgstr "B<part_size>"
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
13005 msgid "Size of the partition in bytes."
13006 msgstr ""
13007
13008 #. type: =head2
13009 #: ../fish/guestfish-actions.pod:3702
13010 msgid "part-set-bootable"
13011 msgstr "part-set-bootable"
13012
13013 #. type: verbatim
13014 #: ../fish/guestfish-actions.pod:3704
13015 #, no-wrap
13016 msgid ""
13017 " part-set-bootable device partnum true|false\n"
13018 "\n"
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
13023 msgid ""
13024 "This sets the bootable flag on partition numbered C<partnum> on device "
13025 "C<device>.  Note that partitions are numbered from 1."
13026 msgstr ""
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
13030 msgid ""
13031 "The bootable flag is used by some operating systems (notably Windows) to "
13032 "determine which partition to boot from.  It is by no means universally "
13033 "recognized."
13034 msgstr ""
13035
13036 #. type: =head2
13037 #: ../fish/guestfish-actions.pod:3713
13038 msgid "part-set-mbr-id"
13039 msgstr "part-set-mbr-id"
13040
13041 #. type: verbatim
13042 #: ../fish/guestfish-actions.pod:3715
13043 #, no-wrap
13044 msgid ""
13045 " part-set-mbr-id device partnum idbyte\n"
13046 "\n"
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
13051 msgid ""
13052 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13053 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13054 "documentation are in fact hexadecimal numbers, but usually documented "
13055 "without any leading \"0x\" which might be confusing."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3727
13060 msgid "part-set-name"
13061 msgstr "part-set-name"
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3729
13065 #, no-wrap
13066 msgid ""
13067 " part-set-name device partnum name\n"
13068 "\n"
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
13073 msgid ""
13074 "This sets the partition name on partition numbered C<partnum> on device "
13075 "C<device>.  Note that partitions are numbered from 1."
13076 msgstr ""
13077
13078 #. type: textblock
13079 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
13080 msgid ""
13081 "The partition name can only be set on certain types of partition table.  "
13082 "This works on C<gpt> but not on C<mbr> partitions."
13083 msgstr ""
13084
13085 #. type: =head2
13086 #: ../fish/guestfish-actions.pod:3737
13087 msgid "part-to-dev"
13088 msgstr "part-to-dev"
13089
13090 #. type: verbatim
13091 #: ../fish/guestfish-actions.pod:3739
13092 #, no-wrap
13093 msgid ""
13094 " part-to-dev partition\n"
13095 "\n"
13096 msgstr ""
13097 " part-to-dev розділ\n"
13098 "\n"
13099
13100 #. type: textblock
13101 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
13102 msgid ""
13103 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13104 "partition number, returning the device name (eg. \"/dev/sdb\")."
13105 msgstr ""
13106
13107 #. type: textblock
13108 #: ../fish/guestfish-actions.pod:3745
13109 msgid ""
13110 "The named partition must exist, for example as a string returned from L</"
13111 "list-partitions>."
13112 msgstr ""
13113
13114 #. type: =head2
13115 #: ../fish/guestfish-actions.pod:3748
13116 msgid "ping-daemon"
13117 msgstr "ping-daemon"
13118
13119 #. type: verbatim
13120 #: ../fish/guestfish-actions.pod:3750
13121 #, no-wrap
13122 msgid ""
13123 " ping-daemon\n"
13124 "\n"
13125 msgstr ""
13126 " ping-daemon\n"
13127 "\n"
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
13131 msgid ""
13132 "This is a test probe into the guestfs daemon running inside the qemu "
13133 "subprocess.  Calling this function checks that the daemon responds to the "
13134 "ping message, without affecting the daemon or attached block device(s) in "
13135 "any other way."
13136 msgstr ""
13137
13138 #. type: =head2
13139 #: ../fish/guestfish-actions.pod:3757
13140 msgid "pread"
13141 msgstr "pread"
13142
13143 #. type: verbatim
13144 #: ../fish/guestfish-actions.pod:3759
13145 #, no-wrap
13146 msgid ""
13147 " pread path count offset\n"
13148 "\n"
13149 msgstr ""
13150
13151 #. type: textblock
13152 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
13153 msgid ""
13154 "This command lets you read part of a file.  It reads C<count> bytes of the "
13155 "file, starting at C<offset>, from file C<path>."
13156 msgstr ""
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13160 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
13161 msgid ""
13162 "This may read fewer bytes than requested.  For further details see the "
13163 "L<pread(2)> system call."
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:3767
13168 msgid "See also L</pwrite>, L</pread-device>."
13169 msgstr "Див. також L</pwrite>, L</pread-device>."
13170
13171 #. type: =head2
13172 #: ../fish/guestfish-actions.pod:3772
13173 msgid "pread-device"
13174 msgstr "pread-device"
13175
13176 #. type: verbatim
13177 #: ../fish/guestfish-actions.pod:3774
13178 #, no-wrap
13179 msgid ""
13180 " pread-device device count offset\n"
13181 "\n"
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
13186 msgid ""
13187 "This command lets you read part of a file.  It reads C<count> bytes of "
13188 "C<device>, starting at C<offset>."
13189 msgstr ""
13190
13191 #. type: textblock
13192 #: ../fish/guestfish-actions.pod:3782
13193 msgid "See also L</pread>."
13194 msgstr "Див. також L</pread>."
13195
13196 #. type: =head2
13197 #: ../fish/guestfish-actions.pod:3787
13198 msgid "pvcreate"
13199 msgstr "pvcreate"
13200
13201 #. type: verbatim
13202 #: ../fish/guestfish-actions.pod:3789
13203 #, no-wrap
13204 msgid ""
13205 " pvcreate device\n"
13206 "\n"
13207 msgstr ""
13208 " pvcreate пристрій\n"
13209 "\n"
13210
13211 #. type: textblock
13212 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
13213 msgid ""
13214 "This creates an LVM physical volume on the named C<device>, where C<device> "
13215 "should usually be a partition name such as C</dev/sda1>."
13216 msgstr ""
13217
13218 #. type: =head2
13219 #: ../fish/guestfish-actions.pod:3795
13220 msgid "pvremove"
13221 msgstr "pvremove"
13222
13223 #. type: verbatim
13224 #: ../fish/guestfish-actions.pod:3797
13225 #, no-wrap
13226 msgid ""
13227 " pvremove device\n"
13228 "\n"
13229 msgstr ""
13230 " pvremove пристрій\n"
13231 "\n"
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
13235 msgid ""
13236 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13237 "it."
13238 msgstr ""
13239
13240 #. type: textblock
13241 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
13242 msgid ""
13243 "The implementation uses the C<pvremove> command which refuses to wipe "
13244 "physical volumes that contain any volume groups, so you have to remove those "
13245 "first."
13246 msgstr ""
13247
13248 #. type: =head2
13249 #: ../fish/guestfish-actions.pod:3806
13250 msgid "pvresize"
13251 msgstr "pvresize"
13252
13253 #. type: verbatim
13254 #: ../fish/guestfish-actions.pod:3808
13255 #, no-wrap
13256 msgid ""
13257 " pvresize device\n"
13258 "\n"
13259 msgstr ""
13260 " pvresize пристрій\n"
13261 "\n"
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
13265 msgid ""
13266 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13267 "the new size of the underlying device."
13268 msgstr ""
13269
13270 #. type: =head2
13271 #: ../fish/guestfish-actions.pod:3813
13272 msgid "pvresize-size"
13273 msgstr "pvresize-size"
13274
13275 #. type: verbatim
13276 #: ../fish/guestfish-actions.pod:3815
13277 #, no-wrap
13278 msgid ""
13279 " pvresize-size device size\n"
13280 "\n"
13281 msgstr ""
13282
13283 #. type: textblock
13284 #: ../fish/guestfish-actions.pod:3817
13285 msgid ""
13286 "This command is the same as L</pvresize> except that it allows you to "
13287 "specify the new size (in bytes) explicitly."
13288 msgstr ""
13289
13290 #. type: =head2
13291 #: ../fish/guestfish-actions.pod:3820
13292 msgid "pvs"
13293 msgstr "pvs"
13294
13295 #. type: verbatim
13296 #: ../fish/guestfish-actions.pod:3822
13297 #, no-wrap
13298 msgid ""
13299 " pvs\n"
13300 "\n"
13301 msgstr ""
13302 " pvs\n"
13303 "\n"
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
13307 msgid ""
13308 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13309 "(8)> command."
13310 msgstr ""
13311
13312 #. type: textblock
13313 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
13314 msgid ""
13315 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13316 "sda2>)."
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3830
13321 msgid "See also L</pvs-full>."
13322 msgstr "Див. також L</pvs-full>."
13323
13324 #. type: =head2
13325 #: ../fish/guestfish-actions.pod:3832
13326 msgid "pvs-full"
13327 msgstr "pvs-full"
13328
13329 #. type: verbatim
13330 #: ../fish/guestfish-actions.pod:3834
13331 #, no-wrap
13332 msgid ""
13333 " pvs-full\n"
13334 "\n"
13335 msgstr ""
13336 " pvs-full\n"
13337 "\n"
13338
13339 #. type: textblock
13340 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
13341 msgid ""
13342 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13343 "(8)> command.  The \"full\" version includes all fields."
13344 msgstr ""
13345
13346 #. type: =head2
13347 #: ../fish/guestfish-actions.pod:3839
13348 msgid "pvuuid"
13349 msgstr "pvuuid"
13350
13351 #. type: verbatim
13352 #: ../fish/guestfish-actions.pod:3841
13353 #, no-wrap
13354 msgid ""
13355 " pvuuid device\n"
13356 "\n"
13357 msgstr ""
13358 " pvuuid пристрій\n"
13359 "\n"
13360
13361 #. type: textblock
13362 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
13363 msgid "This command returns the UUID of the LVM PV C<device>."
13364 msgstr ""
13365
13366 #. type: =head2
13367 #: ../fish/guestfish-actions.pod:3845
13368 msgid "pwrite"
13369 msgstr "pwrite"
13370
13371 #. type: verbatim
13372 #: ../fish/guestfish-actions.pod:3847
13373 #, no-wrap
13374 msgid ""
13375 " pwrite path content offset\n"
13376 "\n"
13377 msgstr ""
13378
13379 #. type: textblock
13380 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
13381 msgid ""
13382 "This command writes to part of a file.  It writes the data buffer C<content> "
13383 "to the file C<path> starting at offset C<offset>."
13384 msgstr ""
13385
13386 #. type: textblock
13387 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
13388 msgid ""
13389 "This command implements the L<pwrite(2)> system call, and like that system "
13390 "call it may not write the full data requested.  The return value is the "
13391 "number of bytes that were actually written to the file.  This could even be "
13392 "0, although short writes are unlikely for regular files in ordinary "
13393 "circumstances."
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:3858
13398 msgid "See also L</pread>, L</pwrite-device>."
13399 msgstr "Див. також L</pread>, L</pwrite-device>."
13400
13401 #. type: =head2
13402 #: ../fish/guestfish-actions.pod:3863
13403 msgid "pwrite-device"
13404 msgstr "pwrite-device"
13405
13406 #. type: verbatim
13407 #: ../fish/guestfish-actions.pod:3865
13408 #, no-wrap
13409 msgid ""
13410 " pwrite-device device content offset\n"
13411 "\n"
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
13416 msgid ""
13417 "This command writes to part of a device.  It writes the data buffer "
13418 "C<content> to C<device> starting at offset C<offset>."
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13423 msgid ""
13424 "This command implements the L<pwrite(2)> system call, and like that system "
13425 "call it may not write the full data requested (although short writes to disk "
13426 "devices and partitions are probably impossible with standard Linux kernels)."
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../fish/guestfish-actions.pod:3875
13431 msgid "See also L</pwrite>."
13432 msgstr "Див. також L</pwrite>."
13433
13434 #. type: =head2
13435 #: ../fish/guestfish-actions.pod:3880
13436 msgid "read-file"
13437 msgstr "read-file"
13438
13439 #. type: verbatim
13440 #: ../fish/guestfish-actions.pod:3882
13441 #, no-wrap
13442 msgid ""
13443 " read-file path\n"
13444 "\n"
13445 msgstr ""
13446 " read-file шлях\n"
13447 "\n"
13448
13449 #. type: textblock
13450 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13451 msgid "This calls returns the contents of the file C<path> as a buffer."
13452 msgstr ""
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:3887
13456 msgid ""
13457 "Unlike L</cat>, this function can correctly handle files that contain "
13458 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13459 "is limited in the total size of file that can be handled."
13460 msgstr ""
13461
13462 #. type: =head2
13463 #: ../fish/guestfish-actions.pod:3895
13464 msgid "read-lines"
13465 msgstr "read-lines"
13466
13467 #. type: verbatim
13468 #: ../fish/guestfish-actions.pod:3897
13469 #, no-wrap
13470 msgid ""
13471 " read-lines path\n"
13472 "\n"
13473 msgstr ""
13474 " read-lines шлях\n"
13475 "\n"
13476
13477 #. type: textblock
13478 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13479 msgid ""
13480 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13481 "C<CRLF> character sequences are I<not> returned."
13482 msgstr ""
13483
13484 #. type: textblock
13485 #: ../fish/guestfish-actions.pod:3904
13486 msgid ""
13487 "Note that this function cannot correctly handle binary files (specifically, "
13488 "files containing C<\\0> character which is treated as end of line).  For "
13489 "those you need to use the L</read-file> function which has a more complex "
13490 "interface."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3909
13495 msgid "readdir"
13496 msgstr "readdir"
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3911
13500 #, no-wrap
13501 msgid ""
13502 " readdir dir\n"
13503 "\n"
13504 msgstr ""
13505 " readdir каталог\n"
13506 "\n"
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13510 msgid "This returns the list of directory entries in directory C<dir>."
13511 msgstr ""
13512
13513 #. type: textblock
13514 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13515 msgid ""
13516 "All entries in the directory are returned, including C<.> and C<..>.  The "
13517 "entries are I<not> sorted, but returned in the same order as the underlying "
13518 "filesystem."
13519 msgstr ""
13520
13521 #. type: textblock
13522 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13523 msgid ""
13524 "Also this call returns basic file type information about each file.  The "
13525 "C<ftyp> field will contain one of the following characters:"
13526 msgstr ""
13527
13528 #. type: =item
13529 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13530 msgid "'b'"
13531 msgstr "'b'"
13532
13533 #. type: textblock
13534 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13535 msgid "Block special"
13536 msgstr "Блоковий особливий"
13537
13538 #. type: =item
13539 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13540 msgid "'c'"
13541 msgstr "'c'"
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13545 msgid "Char special"
13546 msgstr "Символьний особливий"
13547
13548 #. type: =item
13549 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13550 msgid "'d'"
13551 msgstr "'d'"
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13555 msgid "Directory"
13556 msgstr "Каталог"
13557
13558 #. type: =item
13559 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13560 msgid "'f'"
13561 msgstr "'f'"
13562
13563 #. type: textblock
13564 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13565 msgid "FIFO (named pipe)"
13566 msgstr "FIFO (іменований канал)"
13567
13568 #. type: =item
13569 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13570 msgid "'l'"
13571 msgstr "'l'"
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13575 msgid "Symbolic link"
13576 msgstr "Символічне посилання"
13577
13578 #. type: =item
13579 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13580 msgid "'r'"
13581 msgstr "'r'"
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13585 msgid "Regular file"
13586 msgstr "Звичайний файл"
13587
13588 #. type: =item
13589 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13590 msgid "'s'"
13591 msgstr "'s'"
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13595 msgid "Socket"
13596 msgstr "Сокет"
13597
13598 #. type: =item
13599 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13600 msgid "'u'"
13601 msgstr "'u'"
13602
13603 #. type: textblock
13604 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13605 msgid "Unknown file type"
13606 msgstr "Невідомий тип файла"
13607
13608 #. type: =item
13609 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
13610 msgid "'?'"
13611 msgstr ""
13612
13613 #. type: textblock
13614 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
13615 msgid ""
13616 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13617 msgstr ""
13618
13619 #. type: textblock
13620 #: ../fish/guestfish-actions.pod:3963
13621 msgid ""
13622 "This function is primarily intended for use by programs.  To get a simple "
13623 "list of names, use L</ls>.  To get a printable directory for human "
13624 "consumption, use L</ll>."
13625 msgstr ""
13626
13627 #. type: =head2
13628 #: ../fish/guestfish-actions.pod:3967
13629 msgid "readlink"
13630 msgstr "readlink"
13631
13632 #. type: verbatim
13633 #: ../fish/guestfish-actions.pod:3969
13634 #, no-wrap
13635 msgid ""
13636 " readlink path\n"
13637 "\n"
13638 msgstr ""
13639 " readlink шлях\n"
13640 "\n"
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
13644 msgid "This command reads the target of a symbolic link."
13645 msgstr ""
13646
13647 #. type: =head2
13648 #: ../fish/guestfish-actions.pod:3973
13649 msgid "readlinklist"
13650 msgstr "readlinklist"
13651
13652 #. type: verbatim
13653 #: ../fish/guestfish-actions.pod:3975
13654 #, no-wrap
13655 msgid ""
13656 " readlinklist path 'names ...'\n"
13657 "\n"
13658 msgstr ""
13659
13660 #. type: textblock
13661 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
13662 msgid ""
13663 "This call allows you to do a C<readlink> operation on multiple files, where "
13664 "all files are in the directory C<path>.  C<names> is the list of files from "
13665 "this directory."
13666 msgstr ""
13667
13668 #. type: textblock
13669 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
13670 msgid ""
13671 "On return you get a list of strings, with a one-to-one correspondence to the "
13672 "C<names> list.  Each string is the value of the symbolic link."
13673 msgstr ""
13674
13675 #. type: textblock
13676 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
13677 msgid ""
13678 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13679 "result string is the empty string C<\"\">.  However the whole operation is "
13680 "completed even if there were C<readlink(2)> errors, and so you can call this "
13681 "function with names where you don't know if they are symbolic links already "
13682 "(albeit slightly less efficient)."
13683 msgstr ""
13684
13685 #. type: textblock
13686 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
13687 msgid ""
13688 "This call is intended for programs that want to efficiently list a directory "
13689 "contents without making many round-trips.  Very long directory listings "
13690 "might cause the protocol message size to be exceeded, causing this call to "
13691 "fail.  The caller must split up such requests into smaller groups of names."
13692 msgstr ""
13693
13694 #. type: =head2
13695 #: ../fish/guestfish-actions.pod:3999
13696 msgid "realpath"
13697 msgstr "realpath"
13698
13699 #. type: verbatim
13700 #: ../fish/guestfish-actions.pod:4001
13701 #, no-wrap
13702 msgid ""
13703 " realpath path\n"
13704 "\n"
13705 msgstr ""
13706 " realpath шлях\n"
13707 "\n"
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
13711 msgid ""
13712 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13713 "has no C<.>, C<..> or symbolic link path elements."
13714 msgstr ""
13715
13716 #. type: =head2
13717 #: ../fish/guestfish-actions.pod:4006
13718 msgid "removexattr"
13719 msgstr "removexattr"
13720
13721 #. type: verbatim
13722 #: ../fish/guestfish-actions.pod:4008
13723 #, no-wrap
13724 msgid ""
13725 " removexattr xattr path\n"
13726 "\n"
13727 msgstr ""
13728
13729 #. type: textblock
13730 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
13731 msgid ""
13732 "This call removes the extended attribute named C<xattr> of the file C<path>."
13733 msgstr ""
13734
13735 #. type: textblock
13736 #: ../fish/guestfish-actions.pod:4013
13737 msgid "See also: L</lremovexattr>, L<attr(5)>."
13738 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13739
13740 #. type: =head2
13741 #: ../fish/guestfish-actions.pod:4015
13742 msgid "resize2fs"
13743 msgstr "resize2fs"
13744
13745 #. type: verbatim
13746 #: ../fish/guestfish-actions.pod:4017
13747 #, no-wrap
13748 msgid ""
13749 " resize2fs device\n"
13750 "\n"
13751 msgstr ""
13752 " resize2fs пристрій\n"
13753 "\n"
13754
13755 #. type: textblock
13756 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
13757 msgid ""
13758 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13759 "underlying device."
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4022
13764 msgid ""
13765 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13766 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13767 "gives an error about this and sometimes not.  In any case, it is always safe "
13768 "to call L</e2fsck-f> before calling this function."
13769 msgstr ""
13770
13771 #. type: =head2
13772 #: ../fish/guestfish-actions.pod:4028
13773 msgid "resize2fs-M"
13774 msgstr "resize2fs-M"
13775
13776 #. type: verbatim
13777 #: ../fish/guestfish-actions.pod:4030
13778 #, no-wrap
13779 msgid ""
13780 " resize2fs-M device\n"
13781 "\n"
13782 msgstr ""
13783 " resize2fs-M пристрій\n"
13784 "\n"
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:4032
13788 msgid ""
13789 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13790 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13791 "command."
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:4036
13796 msgid ""
13797 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13798 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13799 "multiplied together, give the resulting size of the minimal filesystem in "
13800 "bytes."
13801 msgstr ""
13802
13803 #. type: =head2
13804 #: ../fish/guestfish-actions.pod:4041
13805 msgid "resize2fs-size"
13806 msgstr "resize2fs-size"
13807
13808 #. type: verbatim
13809 #: ../fish/guestfish-actions.pod:4043
13810 #, no-wrap
13811 msgid ""
13812 " resize2fs-size device size\n"
13813 "\n"
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:4045
13818 msgid ""
13819 "This command is the same as L</resize2fs> except that it allows you to "
13820 "specify the new size (in bytes) explicitly."
13821 msgstr ""
13822
13823 #. type: =head2
13824 #: ../fish/guestfish-actions.pod:4048
13825 msgid "rm"
13826 msgstr "rm"
13827
13828 #. type: verbatim
13829 #: ../fish/guestfish-actions.pod:4050
13830 #, no-wrap
13831 msgid ""
13832 " rm path\n"
13833 "\n"
13834 msgstr ""
13835 " rm шлях\n"
13836 "\n"
13837
13838 #. type: textblock
13839 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
13840 msgid "Remove the single file C<path>."
13841 msgstr ""
13842
13843 #. type: =head2
13844 #: ../fish/guestfish-actions.pod:4054
13845 msgid "rm-rf"
13846 msgstr "rm-rf"
13847
13848 #. type: verbatim
13849 #: ../fish/guestfish-actions.pod:4056
13850 #, no-wrap
13851 msgid ""
13852 " rm-rf path\n"
13853 "\n"
13854 msgstr ""
13855 " rm-rf шлях\n"
13856 "\n"
13857
13858 #. type: textblock
13859 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
13860 msgid ""
13861 "Remove the file or directory C<path>, recursively removing the contents if "
13862 "its a directory.  This is like the C<rm -rf> shell command."
13863 msgstr ""
13864
13865 #. type: =head2
13866 #: ../fish/guestfish-actions.pod:4062
13867 msgid "rmdir"
13868 msgstr "rmdir"
13869
13870 #. type: verbatim
13871 #: ../fish/guestfish-actions.pod:4064
13872 #, no-wrap
13873 msgid ""
13874 " rmdir path\n"
13875 "\n"
13876 msgstr ""
13877 " rmdir шлях\n"
13878 "\n"
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
13882 msgid "Remove the single directory C<path>."
13883 msgstr ""
13884
13885 #. type: =head2
13886 #: ../fish/guestfish-actions.pod:4068
13887 msgid "rmmountpoint"
13888 msgstr "rmmountpoint"
13889
13890 #. type: verbatim
13891 #: ../fish/guestfish-actions.pod:4070
13892 #, no-wrap
13893 msgid ""
13894 " rmmountpoint exemptpath\n"
13895 "\n"
13896 msgstr ""
13897
13898 #. type: textblock
13899 #: ../fish/guestfish-actions.pod:4072
13900 msgid ""
13901 "This calls removes a mountpoint that was previously created with L</"
13902 "mkmountpoint>.  See L</mkmountpoint> for full details."
13903 msgstr ""
13904
13905 #. type: =head2
13906 #: ../fish/guestfish-actions.pod:4076
13907 msgid "scrub-device"
13908 msgstr "scrub-device"
13909
13910 #. type: verbatim
13911 #: ../fish/guestfish-actions.pod:4078
13912 #, no-wrap
13913 msgid ""
13914 " scrub-device device\n"
13915 "\n"
13916 msgstr ""
13917 " scrub-device пристрій\n"
13918 "\n"
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
13922 msgid ""
13923 "This command writes patterns over C<device> to make data retrieval more "
13924 "difficult."
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13929 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
13930 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
13931 msgid ""
13932 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13933 "more details."
13934 msgstr ""
13935
13936 #. type: =head2
13937 #: ../fish/guestfish-actions.pod:4089
13938 msgid "scrub-file"
13939 msgstr "scrub-file"
13940
13941 #. type: verbatim
13942 #: ../fish/guestfish-actions.pod:4091
13943 #, no-wrap
13944 msgid ""
13945 " scrub-file file\n"
13946 "\n"
13947 msgstr ""
13948 " scrub-file файл\n"
13949 "\n"
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
13953 msgid ""
13954 "This command writes patterns over a file to make data retrieval more "
13955 "difficult."
13956 msgstr ""
13957
13958 #. type: textblock
13959 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
13960 msgid "The file is I<removed> after scrubbing."
13961 msgstr ""
13962
13963 #. type: =head2
13964 #: ../fish/guestfish-actions.pod:4101
13965 msgid "scrub-freespace"
13966 msgstr "scrub-freespace"
13967
13968 #. type: verbatim
13969 #: ../fish/guestfish-actions.pod:4103
13970 #, no-wrap
13971 msgid ""
13972 " scrub-freespace dir\n"
13973 "\n"
13974 msgstr ""
13975 " scrub-freespace каталог\n"
13976 "\n"
13977
13978 #. type: textblock
13979 #: ../fish/guestfish-actions.pod:4105
13980 msgid ""
13981 "This command creates the directory C<dir> and then fills it with files until "
13982 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13983 "deletes them.  The intention is to scrub any free space on the partition "
13984 "containing C<dir>."
13985 msgstr ""
13986
13987 #. type: =head2
13988 #: ../fish/guestfish-actions.pod:4114
13989 msgid "set-append"
13990 msgstr "set-append"
13991
13992 #. type: =head2
13993 #: ../fish/guestfish-actions.pod:4116
13994 msgid "append"
13995 msgstr ""
13996
13997 #. type: verbatim
13998 #: ../fish/guestfish-actions.pod:4118
13999 #, no-wrap
14000 msgid ""
14001 " set-append append\n"
14002 "\n"
14003 msgstr ""
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
14007 msgid ""
14008 "This function is used to add additional options to the guest kernel command "
14009 "line."
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
14014 msgid ""
14015 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14016 "environment variable."
14017 msgstr ""
14018
14019 #. type: textblock
14020 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
14021 msgid ""
14022 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14023 "(libguestfs always adds a few of its own)."
14024 msgstr ""
14025
14026 #. type: =head2
14027 #: ../fish/guestfish-actions.pod:4129
14028 msgid "set-attach-method"
14029 msgstr "set-attach-method"
14030
14031 #. type: =head2
14032 #: ../fish/guestfish-actions.pod:4131
14033 msgid "attach-method"
14034 msgstr ""
14035
14036 #. type: verbatim
14037 #: ../fish/guestfish-actions.pod:4133
14038 #, no-wrap
14039 msgid ""
14040 " set-attach-method attachmethod\n"
14041 "\n"
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
14046 msgid ""
14047 "Set the method that libguestfs uses to connect to the back end guestfsd "
14048 "daemon.  Possible methods are:"
14049 msgstr ""
14050
14051 #. type: =item
14052 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
14053 #: ../src/guestfs.pod:2826
14054 msgid "C<appliance>"
14055 msgstr "C<appliance>"
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
14059 msgid ""
14060 "Launch an appliance and connect to it.  This is the ordinary method and the "
14061 "default."
14062 msgstr ""
14063
14064 #. type: =item
14065 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
14066 msgid "C<unix:I<path>>"
14067 msgstr "C<unix:I<шлях>>"
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
14071 msgid "Connect to the Unix domain socket I<path>."
14072 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14073
14074 #. type: textblock
14075 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
14076 msgid ""
14077 "This method lets you connect to an existing daemon or (using virtio-serial) "
14078 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14079 "RUNNING DAEMONS>."
14080 msgstr ""
14081
14082 #. type: =head2
14083 #: ../fish/guestfish-actions.pod:4155
14084 msgid "set-autosync"
14085 msgstr "set-autosync"
14086
14087 #. type: =head2
14088 #: ../fish/guestfish-actions.pod:4157
14089 msgid "autosync"
14090 msgstr "autosync"
14091
14092 #. type: verbatim
14093 #: ../fish/guestfish-actions.pod:4159
14094 #, no-wrap
14095 msgid ""
14096 " set-autosync true|false\n"
14097 "\n"
14098 msgstr ""
14099 " set-autosync true|false\n"
14100 "\n"
14101
14102 #. type: textblock
14103 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
14104 msgid ""
14105 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14106 "effort attempt to make filesystems consistent and synchronized when the "
14107 "handle is closed (also if the program exits without closing handles)."
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
14112 msgid ""
14113 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14114 "disabled by default)."
14115 msgstr ""
14116
14117 #. type: =head2
14118 #: ../fish/guestfish-actions.pod:4169
14119 msgid "set-direct"
14120 msgstr "set-direct"
14121
14122 #. type: =head2
14123 #: ../fish/guestfish-actions.pod:4171
14124 msgid "direct"
14125 msgstr "direct"
14126
14127 #. type: verbatim
14128 #: ../fish/guestfish-actions.pod:4173
14129 #, no-wrap
14130 msgid ""
14131 " set-direct true|false\n"
14132 "\n"
14133 msgstr ""
14134 " set-direct true|false\n"
14135 "\n"
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
14139 msgid ""
14140 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14141 "passed directly through to the appliance once it is launched."
14142 msgstr ""
14143
14144 #. type: textblock
14145 #: ../fish/guestfish-actions.pod:4179
14146 msgid ""
14147 "One consequence of this is that log messages aren't caught by the library "
14148 "and handled by L</set-log-message-callback>, but go straight to stdout."
14149 msgstr ""
14150
14151 #. type: textblock
14152 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
14153 msgid "You probably don't want to use this unless you know what you are doing."
14154 msgstr ""
14155
14156 #. type: textblock
14157 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
14158 msgid "The default is disabled."
14159 msgstr ""
14160
14161 #. type: =head2
14162 #: ../fish/guestfish-actions.pod:4188
14163 msgid "set-e2label"
14164 msgstr "set-e2label"
14165
14166 #. type: verbatim
14167 #: ../fish/guestfish-actions.pod:4190
14168 #, no-wrap
14169 msgid ""
14170 " set-e2label device label\n"
14171 "\n"
14172 msgstr ""
14173
14174 #. type: textblock
14175 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
14176 msgid ""
14177 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14178 "C<label>.  Filesystem labels are limited to 16 characters."
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:4196
14183 msgid ""
14184 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14185 "label on a filesystem."
14186 msgstr ""
14187
14188 #. type: =head2
14189 #: ../fish/guestfish-actions.pod:4199
14190 msgid "set-e2uuid"
14191 msgstr "set-e2uuid"
14192
14193 #. type: verbatim
14194 #: ../fish/guestfish-actions.pod:4201
14195 #, no-wrap
14196 msgid ""
14197 " set-e2uuid device uuid\n"
14198 "\n"
14199 msgstr ""
14200
14201 #. type: textblock
14202 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
14203 msgid ""
14204 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14205 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14206 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../fish/guestfish-actions.pod:4208
14211 msgid ""
14212 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14213 "UUID of a filesystem."
14214 msgstr ""
14215
14216 #. type: =head2
14217 #: ../fish/guestfish-actions.pod:4211
14218 msgid "set-memsize"
14219 msgstr "set-memsize"
14220
14221 #. type: =head2
14222 #: ../fish/guestfish-actions.pod:4213
14223 msgid "memsize"
14224 msgstr ""
14225
14226 #. type: verbatim
14227 #: ../fish/guestfish-actions.pod:4215
14228 #, no-wrap
14229 msgid ""
14230 " set-memsize memsize\n"
14231 "\n"
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:4217
14236 msgid ""
14237 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14238 "This only has any effect if called before L</launch>."
14239 msgstr ""
14240
14241 #. type: textblock
14242 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
14243 msgid ""
14244 "You can also change this by setting the environment variable "
14245 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14246 msgstr ""
14247
14248 #. type: =head2
14249 #: ../fish/guestfish-actions.pod:4228
14250 msgid "set-network"
14251 msgstr "set-network"
14252
14253 #. type: =head2
14254 #: ../fish/guestfish-actions.pod:4230
14255 msgid "network"
14256 msgstr "network"
14257
14258 #. type: verbatim
14259 #: ../fish/guestfish-actions.pod:4232
14260 #, no-wrap
14261 msgid ""
14262 " set-network true|false\n"
14263 "\n"
14264 msgstr ""
14265 " set-network true|false\n"
14266 "\n"
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
14270 msgid ""
14271 "If C<network> is true, then the network is enabled in the libguestfs "
14272 "appliance.  The default is false."
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
14277 msgid ""
14278 "This affects whether commands are able to access the network (see L<guestfs"
14279 "(3)/RUNNING COMMANDS>)."
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../fish/guestfish-actions.pod:4240
14284 msgid ""
14285 "You must call this before calling L</launch>, otherwise it has no effect."
14286 msgstr ""
14287
14288 #. type: =head2
14289 #: ../fish/guestfish-actions.pod:4243
14290 msgid "set-path"
14291 msgstr "set-path"
14292
14293 #. type: verbatim
14294 #: ../fish/guestfish-actions.pod:4247
14295 #, no-wrap
14296 msgid ""
14297 " set-path searchpath\n"
14298 "\n"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
14303 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14304 msgstr ""
14305
14306 #. type: textblock
14307 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
14308 msgid ""
14309 "The default is C<$libdir/guestfs> unless overridden by setting "
14310 "C<LIBGUESTFS_PATH> environment variable."
14311 msgstr ""
14312
14313 #. type: textblock
14314 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
14315 msgid "Setting C<path> to C<NULL> restores the default path."
14316 msgstr ""
14317
14318 #. type: =head2
14319 #: ../fish/guestfish-actions.pod:4256
14320 msgid "set-pgroup"
14321 msgstr ""
14322
14323 #. type: =head2
14324 #: ../fish/guestfish-actions.pod:4258
14325 msgid "pgroup"
14326 msgstr ""
14327
14328 #. type: verbatim
14329 #: ../fish/guestfish-actions.pod:4260
14330 #, no-wrap
14331 msgid ""
14332 " set-pgroup true|false\n"
14333 "\n"
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
14338 msgid ""
14339 "If C<pgroup> is true, child processes are placed into their own process "
14340 "group."
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
14345 msgid ""
14346 "The practical upshot of this is that signals like C<SIGINT> (from users "
14347 "pressing C<^C>) won't be received by the child process."
14348 msgstr ""
14349
14350 #. type: textblock
14351 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
14352 msgid ""
14353 "The default for this flag is false, because usually you want C<^C> to kill "
14354 "the subprocess."
14355 msgstr ""
14356
14357 #. type: =head2
14358 #: ../fish/guestfish-actions.pod:4271
14359 msgid "set-qemu"
14360 msgstr "set-qemu"
14361
14362 #. type: =head2
14363 #: ../fish/guestfish-actions.pod:4273
14364 msgid "qemu"
14365 msgstr "qemu"
14366
14367 #. type: verbatim
14368 #: ../fish/guestfish-actions.pod:4275
14369 #, no-wrap
14370 msgid ""
14371 " set-qemu qemu\n"
14372 "\n"
14373 msgstr ""
14374 " set-qemu qemu\n"
14375 "\n"
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
14379 msgid "Set the qemu binary that we will use."
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
14384 msgid ""
14385 "The default is chosen when the library was compiled by the configure script."
14386 msgstr ""
14387
14388 #. type: textblock
14389 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
14390 msgid ""
14391 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14392 "variable."
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
14397 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14398 msgstr ""
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
14402 msgid ""
14403 "Note that you should call this function as early as possible after creating "
14404 "the handle.  This is because some pre-launch operations depend on testing "
14405 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14406 "don't retest features, and so you might see inconsistent results.  Using the "
14407 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14408 "the qemu binary at the same time as the handle is created."
14409 msgstr ""
14410
14411 #. type: =head2
14412 #: ../fish/guestfish-actions.pod:4295
14413 msgid "set-recovery-proc"
14414 msgstr "set-recovery-proc"
14415
14416 #. type: =head2
14417 #: ../fish/guestfish-actions.pod:4297
14418 msgid "recovery-proc"
14419 msgstr "recovery-proc"
14420
14421 #. type: verbatim
14422 #: ../fish/guestfish-actions.pod:4299
14423 #, no-wrap
14424 msgid ""
14425 " set-recovery-proc true|false\n"
14426 "\n"
14427 msgstr ""
14428 " set-recovery-proc true|false\n"
14429 "\n"
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4301
14433 msgid ""
14434 "If this is called with the parameter C<false> then L</launch> does not "
14435 "create a recovery process.  The purpose of the recovery process is to stop "
14436 "runaway qemu processes in the case where the main program aborts abruptly."
14437 msgstr ""
14438
14439 #. type: textblock
14440 #: ../fish/guestfish-actions.pod:4306
14441 msgid ""
14442 "This only has any effect if called before L</launch>, and the default is "
14443 "true."
14444 msgstr ""
14445
14446 #. type: textblock
14447 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
14448 msgid ""
14449 "About the only time when you would want to disable this is if the main "
14450 "process will fork itself into the background (\"daemonize\" itself).  In "
14451 "this case the recovery process thinks that the main program has disappeared "
14452 "and so kills qemu, which is not very helpful."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:4315
14457 msgid "set-selinux"
14458 msgstr "set-selinux"
14459
14460 #. type: =head2
14461 #: ../fish/guestfish-actions.pod:4317
14462 msgid "selinux"
14463 msgstr "selinux"
14464
14465 #. type: verbatim
14466 #: ../fish/guestfish-actions.pod:4319
14467 #, no-wrap
14468 msgid ""
14469 " set-selinux true|false\n"
14470 "\n"
14471 msgstr ""
14472 " set-selinux true|false\n"
14473 "\n"
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14477 msgid ""
14478 "This sets the selinux flag that is passed to the appliance at boot time.  "
14479 "The default is C<selinux=0> (disabled)."
14480 msgstr ""
14481
14482 #. type: textblock
14483 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14484 msgid ""
14485 "Note that if SELinux is enabled, it is always in Permissive mode "
14486 "(C<enforcing=0>)."
14487 msgstr ""
14488
14489 #. type: =head2
14490 #: ../fish/guestfish-actions.pod:4330
14491 #, fuzzy
14492 #| msgid "set-path"
14493 msgid "set-smp"
14494 msgstr "set-path"
14495
14496 #. type: =head2
14497 #: ../fish/guestfish-actions.pod:4332
14498 msgid "smp"
14499 msgstr ""
14500
14501 #. type: verbatim
14502 #: ../fish/guestfish-actions.pod:4334
14503 #, fuzzy, no-wrap
14504 #| msgid ""
14505 #| " set-qemu qemu\n"
14506 #| "\n"
14507 msgid ""
14508 " set-smp smp\n"
14509 "\n"
14510 msgstr ""
14511 " set-qemu qemu\n"
14512 "\n"
14513
14514 #. type: textblock
14515 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14516 msgid ""
14517 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14518 "C<1>.  Increasing this may improve performance, though often it has no "
14519 "effect."
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:4340
14524 msgid "This function must be called before L</launch>."
14525 msgstr ""
14526
14527 #. type: =head2
14528 #: ../fish/guestfish-actions.pod:4342
14529 msgid "set-trace"
14530 msgstr "set-trace"
14531
14532 #. type: =head2
14533 #: ../fish/guestfish-actions.pod:4344
14534 msgid "trace"
14535 msgstr "trace"
14536
14537 #. type: verbatim
14538 #: ../fish/guestfish-actions.pod:4346
14539 #, no-wrap
14540 msgid ""
14541 " set-trace true|false\n"
14542 "\n"
14543 msgstr ""
14544 " set-trace true|false\n"
14545 "\n"
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14549 msgid ""
14550 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14551 "return values are traced."
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14556 msgid ""
14557 "If you want to trace C API calls into libguestfs (and other libraries) then "
14558 "possibly a better way is to use the external ltrace(1) command."
14559 msgstr ""
14560
14561 #. type: textblock
14562 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14563 msgid ""
14564 "Command traces are disabled unless the environment variable "
14565 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14566 msgstr ""
14567
14568 #. type: textblock
14569 #: ../fish/guestfish-actions.pod:4358
14570 msgid ""
14571 "Trace messages are normally sent to C<stderr>, unless you register a "
14572 "callback to send them somewhere else (see L</set-event-callback>)."
14573 msgstr ""
14574
14575 #. type: =head2
14576 #: ../fish/guestfish-actions.pod:4362
14577 msgid "set-verbose"
14578 msgstr "set-verbose"
14579
14580 #. type: =head2
14581 #: ../fish/guestfish-actions.pod:4364
14582 msgid "verbose"
14583 msgstr ""
14584
14585 #. type: verbatim
14586 #: ../fish/guestfish-actions.pod:4366
14587 #, no-wrap
14588 msgid ""
14589 " set-verbose true|false\n"
14590 "\n"
14591 msgstr ""
14592 " set-verbose true|false\n"
14593 "\n"
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14597 msgid "If C<verbose> is true, this turns on verbose messages."
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14602 msgid ""
14603 "Verbose messages are disabled unless the environment variable "
14604 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14605 msgstr ""
14606
14607 #. type: textblock
14608 #: ../fish/guestfish-actions.pod:4373
14609 msgid ""
14610 "Verbose messages are normally sent to C<stderr>, unless you register a "
14611 "callback to send them somewhere else (see L</set-event-callback>)."
14612 msgstr ""
14613
14614 #. type: =head2
14615 #: ../fish/guestfish-actions.pod:4377
14616 msgid "setcon"
14617 msgstr "setcon"
14618
14619 #. type: verbatim
14620 #: ../fish/guestfish-actions.pod:4379
14621 #, no-wrap
14622 msgid ""
14623 " setcon context\n"
14624 "\n"
14625 msgstr ""
14626 " setcon контекст\n"
14627 "\n"
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14631 msgid ""
14632 "This sets the SELinux security context of the daemon to the string "
14633 "C<context>."
14634 msgstr ""
14635
14636 #. type: textblock
14637 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14638 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14639 msgstr ""
14640
14641 #. type: =head2
14642 #: ../fish/guestfish-actions.pod:4386
14643 msgid "setxattr"
14644 msgstr "setxattr"
14645
14646 #. type: verbatim
14647 #: ../fish/guestfish-actions.pod:4388
14648 #, no-wrap
14649 msgid ""
14650 " setxattr xattr val vallen path\n"
14651 "\n"
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
14656 msgid ""
14657 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14658 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14659 msgstr ""
14660
14661 #. type: textblock
14662 #: ../fish/guestfish-actions.pod:4394
14663 msgid "See also: L</lsetxattr>, L<attr(5)>."
14664 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14665
14666 #. type: =head2
14667 #: ../fish/guestfish-actions.pod:4396
14668 msgid "sfdisk"
14669 msgstr "sfdisk"
14670
14671 #. type: verbatim
14672 #: ../fish/guestfish-actions.pod:4398
14673 #, no-wrap
14674 msgid ""
14675 " sfdisk device cyls heads sectors 'lines ...'\n"
14676 "\n"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
14681 msgid ""
14682 "This is a direct interface to the L<sfdisk(8)> program for creating "
14683 "partitions on block devices."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
14688 msgid "C<device> should be a block device, for example C</dev/sda>."
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
14693 msgid ""
14694 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14695 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14696 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14697 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14698 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14699 "the kernel) cannot work out the right geometry and you will need to tell it."
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
14704 msgid ""
14705 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14706 "refer to the L<sfdisk(8)> manpage."
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
14711 msgid ""
14712 "To create a single partition occupying the whole disk, you would pass "
14713 "C<lines> as a single element list, when the single element being the string "
14714 "C<,> (comma)."
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:4420
14719 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14720 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
14724 #: ../fish/guestfish-actions.pod:4471
14725 msgid ""
14726 "I<This function is deprecated.> In new code, use the L</part_add> call "
14727 "instead."
14728 msgstr ""
14729
14730 #. type: =head2
14731 #: ../fish/guestfish-actions.pod:4433
14732 msgid "sfdiskM"
14733 msgstr "sfdiskM"
14734
14735 #. type: verbatim
14736 #: ../fish/guestfish-actions.pod:4435
14737 #, no-wrap
14738 msgid ""
14739 " sfdiskM device 'lines ...'\n"
14740 "\n"
14741 msgstr ""
14742
14743 #. type: textblock
14744 #: ../fish/guestfish-actions.pod:4437
14745 msgid ""
14746 "This is a simplified interface to the L</sfdisk> command, where partition "
14747 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14748 "you don't need to specify the cyls, heads and sectors parameters which were "
14749 "rarely if ever used anyway."
14750 msgstr ""
14751
14752 #. type: textblock
14753 #: ../fish/guestfish-actions.pod:4443
14754 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14755 msgstr ""
14756 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14757
14758 #. type: =head2
14759 #: ../fish/guestfish-actions.pod:4456
14760 msgid "sfdisk-N"
14761 msgstr "sfdisk-N"
14762
14763 #. type: verbatim
14764 #: ../fish/guestfish-actions.pod:4458
14765 #, no-wrap
14766 msgid ""
14767 " sfdisk-N device partnum cyls heads sectors line\n"
14768 "\n"
14769 msgstr ""
14770
14771 #. type: textblock
14772 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
14773 msgid ""
14774 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14775 "(note: C<n> counts from 1)."
14776 msgstr ""
14777
14778 #. type: textblock
14779 #: ../fish/guestfish-actions.pod:4463
14780 msgid ""
14781 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14782 "cyls/heads/sectors parameters."
14783 msgstr ""
14784
14785 #. type: textblock
14786 #: ../fish/guestfish-actions.pod:4466
14787 msgid "See also: L</part-add>"
14788 msgstr "Див. також L</part-add>"
14789
14790 #. type: =head2
14791 #: ../fish/guestfish-actions.pod:4478
14792 msgid "sfdisk-disk-geometry"
14793 msgstr "sfdisk-disk-geometry"
14794
14795 #. type: verbatim
14796 #: ../fish/guestfish-actions.pod:4480
14797 #, no-wrap
14798 msgid ""
14799 " sfdisk-disk-geometry device\n"
14800 "\n"
14801 msgstr ""
14802 " sfdisk-disk-geometry пристрій\n"
14803 "\n"
14804
14805 #. type: textblock
14806 #: ../fish/guestfish-actions.pod:4482
14807 msgid ""
14808 "This displays the disk geometry of C<device> read from the partition table.  "
14809 "Especially in the case where the underlying block device has been resized, "
14810 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14811 "kernel-geometry>)."
14812 msgstr ""
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14816 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
14817 msgid "The result is in human-readable format, and not designed to be parsed."
14818 msgstr ""
14819
14820 #. type: =head2
14821 #: ../fish/guestfish-actions.pod:4490
14822 msgid "sfdisk-kernel-geometry"
14823 msgstr "sfdisk-kernel-geometry"
14824
14825 #. type: verbatim
14826 #: ../fish/guestfish-actions.pod:4492
14827 #, no-wrap
14828 msgid ""
14829 " sfdisk-kernel-geometry device\n"
14830 "\n"
14831 msgstr ""
14832 " sfdisk-kernel-geometry пристрій\n"
14833 "\n"
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
14837 msgid "This displays the kernel's idea of the geometry of C<device>."
14838 msgstr ""
14839
14840 #. type: =head2
14841 #: ../fish/guestfish-actions.pod:4499
14842 msgid "sfdisk-l"
14843 msgstr "sfdisk-l"
14844
14845 #. type: verbatim
14846 #: ../fish/guestfish-actions.pod:4501
14847 #, no-wrap
14848 msgid ""
14849 " sfdisk-l device\n"
14850 "\n"
14851 msgstr ""
14852 " sfdisk-l пристрій\n"
14853 "\n"
14854
14855 #. type: textblock
14856 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
14857 msgid ""
14858 "This displays the partition table on C<device>, in the human-readable output "
14859 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14860 msgstr ""
14861
14862 #. type: textblock
14863 #: ../fish/guestfish-actions.pod:4507
14864 msgid "See also: L</part-list>"
14865 msgstr "Див. також L</part-list>"
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4509
14869 msgid ""
14870 "I<This function is deprecated.> In new code, use the L</part_list> call "
14871 "instead."
14872 msgstr ""
14873
14874 #. type: =head2
14875 #: ../fish/guestfish-actions.pod:4516
14876 msgid "sh"
14877 msgstr "sh"
14878
14879 #. type: verbatim
14880 #: ../fish/guestfish-actions.pod:4518
14881 #, no-wrap
14882 msgid ""
14883 " sh command\n"
14884 "\n"
14885 msgstr ""
14886 " sh команда\n"
14887 "\n"
14888
14889 #. type: textblock
14890 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
14891 msgid ""
14892 "This call runs a command from the guest filesystem via the guest's C</bin/"
14893 "sh>."
14894 msgstr ""
14895
14896 #. type: textblock
14897 #: ../fish/guestfish-actions.pod:4523
14898 msgid "This is like L</command>, but passes the command to:"
14899 msgstr ""
14900
14901 #. type: verbatim
14902 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
14903 #, no-wrap
14904 msgid ""
14905 " /bin/sh -c \"command\"\n"
14906 "\n"
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
14911 msgid ""
14912 "Depending on the guest's shell, this usually results in wildcards being "
14913 "expanded, shell expressions being interpolated and so on."
14914 msgstr ""
14915
14916 #. type: textblock
14917 #: ../fish/guestfish-actions.pod:4531
14918 msgid "All the provisos about L</command> apply to this call."
14919 msgstr ""
14920
14921 #. type: =head2
14922 #: ../fish/guestfish-actions.pod:4533
14923 msgid "sh-lines"
14924 msgstr "sh-lines"
14925
14926 #. type: verbatim
14927 #: ../fish/guestfish-actions.pod:4535
14928 #, no-wrap
14929 msgid ""
14930 " sh-lines command\n"
14931 "\n"
14932 msgstr ""
14933 " sh-lines команда\n"
14934 "\n"
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4537
14938 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14939 msgstr ""
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:4540
14943 msgid "See also: L</command-lines>"
14944 msgstr "Див. також L</command-lines>"
14945
14946 #. type: =head2
14947 #: ../fish/guestfish-actions.pod:4542
14948 msgid "sleep"
14949 msgstr "sleep"
14950
14951 #. type: verbatim
14952 #: ../fish/guestfish-actions.pod:4544
14953 #, no-wrap
14954 msgid ""
14955 " sleep secs\n"
14956 "\n"
14957 msgstr ""
14958 " sleep час_у_секундах\n"
14959 "\n"
14960
14961 #. type: textblock
14962 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
14963 msgid "Sleep for C<secs> seconds."
14964 msgstr ""
14965
14966 #. type: =head2
14967 #: ../fish/guestfish-actions.pod:4548
14968 msgid "stat"
14969 msgstr "stat"
14970
14971 #. type: verbatim
14972 #: ../fish/guestfish-actions.pod:4550
14973 #, no-wrap
14974 msgid ""
14975 " stat path\n"
14976 "\n"
14977 msgstr ""
14978 " stat шлях\n"
14979 "\n"
14980
14981 #. type: textblock
14982 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
14983 msgid "This is the same as the C<stat(2)> system call."
14984 msgstr ""
14985
14986 #. type: =head2
14987 #: ../fish/guestfish-actions.pod:4556
14988 msgid "statvfs"
14989 msgstr "statvfs"
14990
14991 #. type: verbatim
14992 #: ../fish/guestfish-actions.pod:4558
14993 #, no-wrap
14994 msgid ""
14995 " statvfs path\n"
14996 "\n"
14997 msgstr ""
14998 " statvfs шлях\n"
14999 "\n"
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
15003 msgid ""
15004 "Returns file system statistics for any mounted file system.  C<path> should "
15005 "be a file or directory in the mounted file system (typically it is the mount "
15006 "point itself, but it doesn't need to be)."
15007 msgstr ""
15008
15009 #. type: textblock
15010 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
15011 msgid "This is the same as the C<statvfs(2)> system call."
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../fish/guestfish-actions.pod:4566
15016 msgid "strings"
15017 msgstr "strings"
15018
15019 #. type: verbatim
15020 #: ../fish/guestfish-actions.pod:4568
15021 #, no-wrap
15022 msgid ""
15023 " strings path\n"
15024 "\n"
15025 msgstr ""
15026 " strings шлях\n"
15027 "\n"
15028
15029 #. type: textblock
15030 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
15031 msgid ""
15032 "This runs the L<strings(1)> command on a file and returns the list of "
15033 "printable strings found."
15034 msgstr ""
15035
15036 #. type: =head2
15037 #: ../fish/guestfish-actions.pod:4576
15038 msgid "strings-e"
15039 msgstr "strings-e"
15040
15041 #. type: verbatim
15042 #: ../fish/guestfish-actions.pod:4578
15043 #, no-wrap
15044 msgid ""
15045 " strings-e encoding path\n"
15046 "\n"
15047 msgstr ""
15048 " strings-e кодування шлях\n"
15049 "\n"
15050
15051 #. type: textblock
15052 #: ../fish/guestfish-actions.pod:4580
15053 msgid ""
15054 "This is like the L</strings> command, but allows you to specify the encoding "
15055 "of strings that are looked for in the source file C<path>."
15056 msgstr ""
15057
15058 #. type: textblock
15059 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
15060 msgid "Allowed encodings are:"
15061 msgstr "Можливими кодуваннями є:"
15062
15063 #. type: =item
15064 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
15065 msgid "s"
15066 msgstr "s"
15067
15068 #. type: textblock
15069 #: ../fish/guestfish-actions.pod:4590
15070 msgid ""
15071 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15072 "ISO-8859-X (this is what L</strings> uses)."
15073 msgstr ""
15074
15075 #. type: =item
15076 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
15077 msgid "S"
15078 msgstr "S"
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
15082 msgid "Single 8-bit-byte characters."
15083 msgstr "Окремі 8-бітові-байтові символи."
15084
15085 #. type: =item
15086 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
15087 msgid "b"
15088 msgstr "b"
15089
15090 #. type: textblock
15091 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
15092 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15093 msgstr ""
15094
15095 #. type: =item
15096 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
15097 msgid "l (lower case letter L)"
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
15102 msgid ""
15103 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15104 "examining binaries in Windows guests."
15105 msgstr ""
15106
15107 #. type: =item
15108 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
15109 msgid "B"
15110 msgstr "B"
15111
15112 #. type: textblock
15113 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
15114 msgid "32-bit big endian such as UCS-4BE."
15115 msgstr ""
15116
15117 #. type: =item
15118 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
15119 msgid "L"
15120 msgstr "L"
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
15124 msgid "32-bit little endian such as UCS-4LE."
15125 msgstr ""
15126
15127 #. type: textblock
15128 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
15129 msgid "The returned strings are transcoded to UTF-8."
15130 msgstr ""
15131
15132 #. type: =head2
15133 #: ../fish/guestfish-actions.pod:4622
15134 msgid "swapoff-device"
15135 msgstr "swapoff-device"
15136
15137 #. type: verbatim
15138 #: ../fish/guestfish-actions.pod:4624
15139 #, no-wrap
15140 msgid ""
15141 " swapoff-device device\n"
15142 "\n"
15143 msgstr ""
15144 " swapoff-device пристрій\n"
15145 "\n"
15146
15147 #. type: textblock
15148 #: ../fish/guestfish-actions.pod:4626
15149 msgid ""
15150 "This command disables the libguestfs appliance swap device or partition "
15151 "named C<device>.  See L</swapon-device>."
15152 msgstr ""
15153
15154 #. type: =head2
15155 #: ../fish/guestfish-actions.pod:4630
15156 msgid "swapoff-file"
15157 msgstr "swapoff-file"
15158
15159 #. type: verbatim
15160 #: ../fish/guestfish-actions.pod:4632
15161 #, no-wrap
15162 msgid ""
15163 " swapoff-file file\n"
15164 "\n"
15165 msgstr ""
15166 " swapoff-file файл\n"
15167 "\n"
15168
15169 #. type: textblock
15170 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
15171 msgid "This command disables the libguestfs appliance swap on file."
15172 msgstr ""
15173
15174 #. type: =head2
15175 #: ../fish/guestfish-actions.pod:4636
15176 msgid "swapoff-label"
15177 msgstr "swapoff-label"
15178
15179 #. type: verbatim
15180 #: ../fish/guestfish-actions.pod:4638
15181 #, no-wrap
15182 msgid ""
15183 " swapoff-label label\n"
15184 "\n"
15185 msgstr ""
15186 " swapoff-label мітка\n"
15187 "\n"
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
15191 msgid ""
15192 "This command disables the libguestfs appliance swap on labeled swap "
15193 "partition."
15194 msgstr ""
15195
15196 #. type: =head2
15197 #: ../fish/guestfish-actions.pod:4643
15198 msgid "swapoff-uuid"
15199 msgstr "swapoff-uuid"
15200
15201 #. type: verbatim
15202 #: ../fish/guestfish-actions.pod:4645
15203 #, no-wrap
15204 msgid ""
15205 " swapoff-uuid uuid\n"
15206 "\n"
15207 msgstr ""
15208 " swapoff-uuid uuid\n"
15209 "\n"
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
15213 msgid ""
15214 "This command disables the libguestfs appliance swap partition with the given "
15215 "UUID."
15216 msgstr ""
15217
15218 #. type: =head2
15219 #: ../fish/guestfish-actions.pod:4650
15220 msgid "swapon-device"
15221 msgstr "swapon-device"
15222
15223 #. type: verbatim
15224 #: ../fish/guestfish-actions.pod:4652
15225 #, no-wrap
15226 msgid ""
15227 " swapon-device device\n"
15228 "\n"
15229 msgstr ""
15230 " swapon-device пристрій\n"
15231 "\n"
15232
15233 #. type: textblock
15234 #: ../fish/guestfish-actions.pod:4654
15235 msgid ""
15236 "This command enables the libguestfs appliance to use the swap device or "
15237 "partition named C<device>.  The increased memory is made available for all "
15238 "commands, for example those run using L</command> or L</sh>."
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
15243 msgid ""
15244 "Note that you should not swap to existing guest swap partitions unless you "
15245 "know what you are doing.  They may contain hibernation information, or other "
15246 "information that the guest doesn't want you to trash.  You also risk leaking "
15247 "information about the host to the guest this way.  Instead, attach a new "
15248 "host device to the guest and swap on that."
15249 msgstr ""
15250
15251 #. type: =head2
15252 #: ../fish/guestfish-actions.pod:4666
15253 msgid "swapon-file"
15254 msgstr "swapon-file"
15255
15256 #. type: verbatim
15257 #: ../fish/guestfish-actions.pod:4668
15258 #, no-wrap
15259 msgid ""
15260 " swapon-file file\n"
15261 "\n"
15262 msgstr ""
15263 " swapon-file файл\n"
15264 "\n"
15265
15266 #. type: textblock
15267 #: ../fish/guestfish-actions.pod:4670
15268 msgid ""
15269 "This command enables swap to a file.  See L</swapon-device> for other notes."
15270 msgstr ""
15271
15272 #. type: =head2
15273 #: ../fish/guestfish-actions.pod:4673
15274 msgid "swapon-label"
15275 msgstr "swapon-label"
15276
15277 #. type: verbatim
15278 #: ../fish/guestfish-actions.pod:4675
15279 #, no-wrap
15280 msgid ""
15281 " swapon-label label\n"
15282 "\n"
15283 msgstr ""
15284 " swapon-label мітка\n"
15285 "\n"
15286
15287 #. type: textblock
15288 #: ../fish/guestfish-actions.pod:4677
15289 msgid ""
15290 "This command enables swap to a labeled swap partition.  See L</swapon-"
15291 "device> for other notes."
15292 msgstr ""
15293
15294 #. type: =head2
15295 #: ../fish/guestfish-actions.pod:4680
15296 msgid "swapon-uuid"
15297 msgstr "swapon-uuid"
15298
15299 #. type: verbatim
15300 #: ../fish/guestfish-actions.pod:4682
15301 #, no-wrap
15302 msgid ""
15303 " swapon-uuid uuid\n"
15304 "\n"
15305 msgstr ""
15306 " swapon-uuid uuid\n"
15307 "\n"
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4684
15311 msgid ""
15312 "This command enables swap to a swap partition with the given UUID.  See L</"
15313 "swapon-device> for other notes."
15314 msgstr ""
15315
15316 #. type: =head2
15317 #: ../fish/guestfish-actions.pod:4687
15318 msgid "sync"
15319 msgstr "sync"
15320
15321 #. type: verbatim
15322 #: ../fish/guestfish-actions.pod:4689
15323 #, no-wrap
15324 msgid ""
15325 " sync\n"
15326 "\n"
15327 msgstr ""
15328 " sync\n"
15329 "\n"
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
15333 msgid ""
15334 "This syncs the disk, so that any writes are flushed through to the "
15335 "underlying disk image."
15336 msgstr ""
15337
15338 #. type: textblock
15339 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
15340 msgid ""
15341 "You should always call this if you have modified a disk image, before "
15342 "closing the handle."
15343 msgstr ""
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-actions.pod:4697
15347 msgid "tail"
15348 msgstr "tail"
15349
15350 #. type: verbatim
15351 #: ../fish/guestfish-actions.pod:4699
15352 #, no-wrap
15353 msgid ""
15354 " tail path\n"
15355 "\n"
15356 msgstr ""
15357 " tail шлях\n"
15358 "\n"
15359
15360 #. type: textblock
15361 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
15362 msgid ""
15363 "This command returns up to the last 10 lines of a file as a list of strings."
15364 msgstr ""
15365
15366 #. type: =head2
15367 #: ../fish/guestfish-actions.pod:4707
15368 msgid "tail-n"
15369 msgstr "tail-n"
15370
15371 #. type: verbatim
15372 #: ../fish/guestfish-actions.pod:4709
15373 #, no-wrap
15374 msgid ""
15375 " tail-n nrlines path\n"
15376 "\n"
15377 msgstr ""
15378
15379 #. type: textblock
15380 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
15381 msgid ""
15382 "If the parameter C<nrlines> is a positive number, this returns the last "
15383 "C<nrlines> lines of the file C<path>."
15384 msgstr ""
15385
15386 #. type: textblock
15387 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
15388 msgid ""
15389 "If the parameter C<nrlines> is a negative number, this returns lines from "
15390 "the file C<path>, starting with the C<-nrlines>th line."
15391 msgstr ""
15392
15393 #. type: =head2
15394 #: ../fish/guestfish-actions.pod:4722
15395 msgid "tar-in"
15396 msgstr "tar-in"
15397
15398 #. type: verbatim
15399 #: ../fish/guestfish-actions.pod:4724
15400 #, no-wrap
15401 msgid ""
15402 " tar-in (tarfile|-) directory\n"
15403 "\n"
15404 msgstr ""
15405 " tar-in (файл_tar|-) каталог\n"
15406 "\n"
15407
15408 #. type: textblock
15409 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
15410 msgid ""
15411 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15412 "tar file) into C<directory>."
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../fish/guestfish-actions.pod:4729
15417 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15418 msgstr ""
15419
15420 #. type: =head2
15421 #: ../fish/guestfish-actions.pod:4734
15422 msgid "tar-out"
15423 msgstr "tar-out"
15424
15425 #. type: verbatim
15426 #: ../fish/guestfish-actions.pod:4736
15427 #, no-wrap
15428 msgid ""
15429 " tar-out directory (tarfile|-)\n"
15430 "\n"
15431 msgstr ""
15432 " tar-out каталог (файл tar|-)\n"
15433 "\n"
15434
15435 #. type: textblock
15436 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
15437 msgid ""
15438 "This command packs the contents of C<directory> and downloads it to local "
15439 "file C<tarfile>."
15440 msgstr ""
15441
15442 #. type: textblock
15443 #: ../fish/guestfish-actions.pod:4741
15444 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15445 msgstr ""
15446
15447 #. type: =head2
15448 #: ../fish/guestfish-actions.pod:4746
15449 msgid "tgz-in"
15450 msgstr "tgz-in"
15451
15452 #. type: verbatim
15453 #: ../fish/guestfish-actions.pod:4748
15454 #, no-wrap
15455 msgid ""
15456 " tgz-in (tarball|-) directory\n"
15457 "\n"
15458 msgstr ""
15459 " tgz-in (архів tar|-) каталог\n"
15460 "\n"
15461
15462 #. type: textblock
15463 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
15464 msgid ""
15465 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15466 "tar file) into C<directory>."
15467 msgstr ""
15468
15469 #. type: textblock
15470 #: ../fish/guestfish-actions.pod:4753
15471 msgid "To upload an uncompressed tarball, use L</tar-in>."
15472 msgstr ""
15473
15474 #. type: =head2
15475 #: ../fish/guestfish-actions.pod:4757
15476 msgid "tgz-out"
15477 msgstr "tgz-out"
15478
15479 #. type: verbatim
15480 #: ../fish/guestfish-actions.pod:4759
15481 #, no-wrap
15482 msgid ""
15483 " tgz-out directory (tarball|-)\n"
15484 "\n"
15485 msgstr ""
15486 " tgz-out каталог (архів tar|-)\n"
15487 "\n"
15488
15489 #. type: textblock
15490 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
15491 msgid ""
15492 "This command packs the contents of C<directory> and downloads it to local "
15493 "file C<tarball>."
15494 msgstr ""
15495
15496 #. type: textblock
15497 #: ../fish/guestfish-actions.pod:4764
15498 msgid "To download an uncompressed tarball, use L</tar-out>."
15499 msgstr ""
15500
15501 #. type: =head2
15502 #: ../fish/guestfish-actions.pod:4768
15503 msgid "touch"
15504 msgstr "touch"
15505
15506 #. type: verbatim
15507 #: ../fish/guestfish-actions.pod:4770
15508 #, no-wrap
15509 msgid ""
15510 " touch path\n"
15511 "\n"
15512 msgstr ""
15513 " touch шлях\n"
15514 "\n"
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
15518 msgid ""
15519 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15520 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15521 "length file."
15522 msgstr ""
15523
15524 #. type: textblock
15525 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15526 msgid ""
15527 "This command only works on regular files, and will fail on other file types "
15528 "such as directories, symbolic links, block special etc."
15529 msgstr ""
15530
15531 #. type: =head2
15532 #: ../fish/guestfish-actions.pod:4779
15533 msgid "truncate"
15534 msgstr "truncate"
15535
15536 #. type: verbatim
15537 #: ../fish/guestfish-actions.pod:4781
15538 #, no-wrap
15539 msgid ""
15540 " truncate path\n"
15541 "\n"
15542 msgstr ""
15543 " truncate шлях\n"
15544 "\n"
15545
15546 #. type: textblock
15547 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15548 msgid ""
15549 "This command truncates C<path> to a zero-length file.  The file must exist "
15550 "already."
15551 msgstr ""
15552
15553 #. type: =head2
15554 #: ../fish/guestfish-actions.pod:4786
15555 msgid "truncate-size"
15556 msgstr "truncate-size"
15557
15558 #. type: verbatim
15559 #: ../fish/guestfish-actions.pod:4788
15560 #, no-wrap
15561 msgid ""
15562 " truncate-size path size\n"
15563 "\n"
15564 msgstr ""
15565 " truncate-size шлях розмір\n"
15566 "\n"
15567
15568 #. type: textblock
15569 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15570 msgid ""
15571 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15572 "already."
15573 msgstr ""
15574
15575 #. type: textblock
15576 #: ../fish/guestfish-actions.pod:4793
15577 msgid ""
15578 "If the current file size is less than C<size> then the file is extended to "
15579 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15580 "blocks are not allocated for the file until you write to it).  To create a "
15581 "non-sparse file of zeroes, use L</fallocate64> instead."
15582 msgstr ""
15583
15584 #. type: =head2
15585 #: ../fish/guestfish-actions.pod:4799
15586 msgid "tune2fs-l"
15587 msgstr "tune2fs-l"
15588
15589 #. type: verbatim
15590 #: ../fish/guestfish-actions.pod:4801
15591 #, no-wrap
15592 msgid ""
15593 " tune2fs-l device\n"
15594 "\n"
15595 msgstr ""
15596 " tune2fs-l пристрій\n"
15597 "\n"
15598
15599 #. type: textblock
15600 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15601 msgid ""
15602 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15603 "C<device>."
15604 msgstr ""
15605
15606 #. type: textblock
15607 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15608 msgid ""
15609 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15610 "for more details.  The list of fields returned isn't clearly defined, and "
15611 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15612 "and the filesystem itself."
15613 msgstr ""
15614
15615 #. type: =head2
15616 #: ../fish/guestfish-actions.pod:4811
15617 msgid "txz-in"
15618 msgstr "txz-in"
15619
15620 #. type: verbatim
15621 #: ../fish/guestfish-actions.pod:4813
15622 #, no-wrap
15623 msgid ""
15624 " txz-in (tarball|-) directory\n"
15625 "\n"
15626 msgstr ""
15627 " txz-in (архів tar|-) каталог\n"
15628 "\n"
15629
15630 #. type: textblock
15631 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15632 msgid ""
15633 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15634 "tar file) into C<directory>."
15635 msgstr ""
15636
15637 #. type: =head2
15638 #: ../fish/guestfish-actions.pod:4820
15639 msgid "txz-out"
15640 msgstr "txz-out"
15641
15642 #. type: verbatim
15643 #: ../fish/guestfish-actions.pod:4822
15644 #, no-wrap
15645 msgid ""
15646 " txz-out directory (tarball|-)\n"
15647 "\n"
15648 msgstr ""
15649 " txz-out каталог (архів tar|-)\n"
15650 "\n"
15651
15652 #. type: textblock
15653 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
15654 msgid ""
15655 "This command packs the contents of C<directory> and downloads it to local "
15656 "file C<tarball> (as an xz compressed tar archive)."
15657 msgstr ""
15658
15659 #. type: =head2
15660 #: ../fish/guestfish-actions.pod:4829
15661 msgid "umask"
15662 msgstr "umask"
15663
15664 #. type: verbatim
15665 #: ../fish/guestfish-actions.pod:4831
15666 #, no-wrap
15667 msgid ""
15668 " umask mask\n"
15669 "\n"
15670 msgstr ""
15671 " umask маска\n"
15672 "\n"
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
15676 msgid ""
15677 "This function sets the mask used for creating new files and device nodes to "
15678 "C<mask & 0777>."
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
15683 msgid ""
15684 "Typical umask values would be C<022> which creates new files with "
15685 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15686 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
15691 msgid ""
15692 "The default umask is C<022>.  This is important because it means that "
15693 "directories and device nodes will be created with C<0644> or C<0755> mode "
15694 "even if you specify C<0777>."
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish-actions.pod:4845
15699 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15700 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
15704 msgid "This call returns the previous umask."
15705 msgstr ""
15706
15707 #. type: =head2
15708 #: ../fish/guestfish-actions.pod:4850
15709 msgid "umount"
15710 msgstr "umount"
15711
15712 #. type: =head2
15713 #: ../fish/guestfish-actions.pod:4852
15714 msgid "unmount"
15715 msgstr "unmount"
15716
15717 #. type: verbatim
15718 #: ../fish/guestfish-actions.pod:4854
15719 #, no-wrap
15720 msgid ""
15721 " umount pathordevice\n"
15722 "\n"
15723 msgstr ""
15724 " umount шлях_або_пристрій\n"
15725 "\n"
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
15729 msgid ""
15730 "This unmounts the given filesystem.  The filesystem may be specified either "
15731 "by its mountpoint (path) or the device which contains the filesystem."
15732 msgstr ""
15733
15734 #. type: =head2
15735 #: ../fish/guestfish-actions.pod:4860
15736 msgid "umount-all"
15737 msgstr "umount-all"
15738
15739 #. type: =head2
15740 #: ../fish/guestfish-actions.pod:4862
15741 msgid "unmount-all"
15742 msgstr "unmount-all"
15743
15744 #. type: verbatim
15745 #: ../fish/guestfish-actions.pod:4864
15746 #, no-wrap
15747 msgid ""
15748 " umount-all\n"
15749 "\n"
15750 msgstr ""
15751 " umount-all\n"
15752 "\n"
15753
15754 #. type: textblock
15755 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
15756 msgid "This unmounts all mounted filesystems."
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
15761 msgid "Some internal mounts are not unmounted by this call."
15762 msgstr ""
15763
15764 #. type: =head2
15765 #: ../fish/guestfish-actions.pod:4870
15766 msgid "upload"
15767 msgstr "upload"
15768
15769 #. type: verbatim
15770 #: ../fish/guestfish-actions.pod:4872
15771 #, no-wrap
15772 msgid ""
15773 " upload (filename|-) remotefilename\n"
15774 "\n"
15775 msgstr ""
15776 " upload (назва_файла|-) назва_віддаленого_файла\n"
15777 "\n"
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
15781 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
15782 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15783 msgstr ""
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:4879
15787 msgid "See also L</download>."
15788 msgstr "Див. також L</download>."
15789
15790 #. type: =head2
15791 #: ../fish/guestfish-actions.pod:4883
15792 msgid "upload-offset"
15793 msgstr "upload-offset"
15794
15795 #. type: verbatim
15796 #: ../fish/guestfish-actions.pod:4885
15797 #, no-wrap
15798 msgid ""
15799 " upload-offset (filename|-) remotefilename offset\n"
15800 "\n"
15801 msgstr ""
15802 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15803 "\n"
15804
15805 #. type: textblock
15806 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
15807 msgid ""
15808 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15809 "The intention is to overwrite parts of existing files or devices, although "
15810 "if a non-existant file is specified then it is created with a \"hole\" "
15811 "before C<offset>.  The size of the data written is implicit in the size of "
15812 "the source C<filename>."
15813 msgstr ""
15814
15815 #. type: textblock
15816 #: ../fish/guestfish-actions.pod:4897
15817 msgid ""
15818 "Note that there is no limit on the amount of data that can be uploaded with "
15819 "this call, unlike with L</pwrite>, and this call always writes the full "
15820 "amount unless an error occurs."
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../fish/guestfish-actions.pod:4902
15825 msgid "See also L</upload>, L</pwrite>."
15826 msgstr "Див. також L</upload>, L</pwrite>."
15827
15828 #. type: =head2
15829 #: ../fish/guestfish-actions.pod:4906
15830 msgid "utimens"
15831 msgstr "utimens"
15832
15833 #. type: verbatim
15834 #: ../fish/guestfish-actions.pod:4908
15835 #, no-wrap
15836 msgid ""
15837 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15838 "\n"
15839 msgstr ""
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
15843 msgid "This command sets the timestamps of a file with nanosecond precision."
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
15848 msgid ""
15849 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15850 "from the epoch."
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
15855 msgid ""
15856 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15857 "nanoseconds from the epoch."
15858 msgstr ""
15859
15860 #. type: textblock
15861 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
15862 msgid ""
15863 "If the C<*nsecs> field contains the special value C<-1> then the "
15864 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15865 "ignored in this case)."
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
15870 msgid ""
15871 "If the C<*nsecs> field contains the special value C<-2> then the "
15872 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15873 "in this case)."
15874 msgstr ""
15875
15876 #. type: =head2
15877 #: ../fish/guestfish-actions.pod:4927
15878 msgid "version"
15879 msgstr "version"
15880
15881 #. type: verbatim
15882 #: ../fish/guestfish-actions.pod:4929
15883 #, no-wrap
15884 msgid ""
15885 " version\n"
15886 "\n"
15887 msgstr ""
15888 " version\n"
15889 "\n"
15890
15891 #. type: textblock
15892 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
15893 msgid ""
15894 "Return the libguestfs version number that the program is linked against."
15895 msgstr ""
15896
15897 #. type: textblock
15898 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
15899 msgid ""
15900 "Note that because of dynamic linking this is not necessarily the version of "
15901 "libguestfs that you compiled against.  You can compile the program, and then "
15902 "at runtime dynamically link against a completely different C<libguestfs.so> "
15903 "library."
15904 msgstr ""
15905
15906 #. type: textblock
15907 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
15908 msgid ""
15909 "This call was added in version C<1.0.58>.  In previous versions of "
15910 "libguestfs there was no way to get the version number.  From C code you can "
15911 "use dynamic linker functions to find out if this symbol exists (if it "
15912 "doesn't, then it's an earlier version)."
15913 msgstr ""
15914
15915 #. type: textblock
15916 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
15917 msgid ""
15918 "The call returns a structure with four elements.  The first three (C<major>, "
15919 "C<minor> and C<release>) are numbers and correspond to the usual version "
15920 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15921 "but may be used for distro-specific information."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
15926 msgid ""
15927 "To construct the original version string: C<$major.$minor.$release$extra>"
15928 msgstr ""
15929
15930 #. type: textblock
15931 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
15932 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15933 msgstr ""
15934
15935 #. type: textblock
15936 #: ../fish/guestfish-actions.pod:4956
15937 msgid ""
15938 "I<Note:> Don't use this call to test for availability of features.  In "
15939 "enterprise distributions we backport features from later versions into "
15940 "earlier versions, making this an unreliable way to test for features.  Use "
15941 "L</available> instead."
15942 msgstr ""
15943
15944 #. type: =head2
15945 #: ../fish/guestfish-actions.pod:4962
15946 msgid "vfs-label"
15947 msgstr "vfs-label"
15948
15949 #. type: verbatim
15950 #: ../fish/guestfish-actions.pod:4964
15951 #, no-wrap
15952 msgid ""
15953 " vfs-label device\n"
15954 "\n"
15955 msgstr ""
15956 " vfs-label пристрій\n"
15957 "\n"
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
15961 msgid "This returns the filesystem label of the filesystem on C<device>."
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
15966 msgid "If the filesystem is unlabeled, this returns the empty string."
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../fish/guestfish-actions.pod:4971
15971 msgid "To find a filesystem from the label, use L</findfs-label>."
15972 msgstr ""
15973
15974 #. type: =head2
15975 #: ../fish/guestfish-actions.pod:4973
15976 msgid "vfs-type"
15977 msgstr "vfs-type"
15978
15979 #. type: verbatim
15980 #: ../fish/guestfish-actions.pod:4975
15981 #, no-wrap
15982 msgid ""
15983 " vfs-type device\n"
15984 "\n"
15985 msgstr ""
15986 " vfs-type пристрій\n"
15987 "\n"
15988
15989 #. type: textblock
15990 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
15991 msgid ""
15992 "This command gets the filesystem type corresponding to the filesystem on "
15993 "C<device>."
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
15998 msgid ""
15999 "For most filesystems, the result is the name of the Linux VFS module which "
16000 "would be used to mount this filesystem if you mounted it without specifying "
16001 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16002 msgstr ""
16003
16004 #. type: =head2
16005 #: ../fish/guestfish-actions.pod:4985
16006 msgid "vfs-uuid"
16007 msgstr "vfs-uuid"
16008
16009 #. type: verbatim
16010 #: ../fish/guestfish-actions.pod:4987
16011 #, no-wrap
16012 msgid ""
16013 " vfs-uuid device\n"
16014 "\n"
16015 msgstr ""
16016 " vfs-uuid пристрій\n"
16017 "\n"
16018
16019 #. type: textblock
16020 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
16021 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16022 msgstr ""
16023
16024 #. type: textblock
16025 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
16026 msgid "If the filesystem does not have a UUID, this returns the empty string."
16027 msgstr ""
16028
16029 #. type: textblock
16030 #: ../fish/guestfish-actions.pod:4994
16031 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16032 msgstr ""
16033
16034 #. type: =head2
16035 #: ../fish/guestfish-actions.pod:4996
16036 msgid "vg-activate"
16037 msgstr "vg-activate"
16038
16039 #. type: verbatim
16040 #: ../fish/guestfish-actions.pod:4998
16041 #, no-wrap
16042 msgid ""
16043 " vg-activate true|false 'volgroups ...'\n"
16044 "\n"
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
16049 msgid ""
16050 "This command activates or (if C<activate> is false) deactivates all logical "
16051 "volumes in the listed volume groups C<volgroups>."
16052 msgstr ""
16053
16054 #. type: textblock
16055 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
16056 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
16061 msgid ""
16062 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16063 "activated or deactivated."
16064 msgstr ""
16065
16066 #. type: =head2
16067 #: ../fish/guestfish-actions.pod:5008
16068 msgid "vg-activate-all"
16069 msgstr "vg-activate-all"
16070
16071 #. type: verbatim
16072 #: ../fish/guestfish-actions.pod:5010
16073 #, no-wrap
16074 msgid ""
16075 " vg-activate-all true|false\n"
16076 "\n"
16077 msgstr ""
16078 " vg-activate-all true|false\n"
16079 "\n"
16080
16081 #. type: textblock
16082 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
16083 msgid ""
16084 "This command activates or (if C<activate> is false) deactivates all logical "
16085 "volumes in all volume groups."
16086 msgstr ""
16087
16088 #. type: textblock
16089 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
16090 msgid "This command is the same as running C<vgchange -a y|n>"
16091 msgstr ""
16092
16093 #. type: =head2
16094 #: ../fish/guestfish-actions.pod:5017
16095 msgid "vgcreate"
16096 msgstr "vgcreate"
16097
16098 #. type: verbatim
16099 #: ../fish/guestfish-actions.pod:5019
16100 #, no-wrap
16101 msgid ""
16102 " vgcreate volgroup 'physvols ...'\n"
16103 "\n"
16104 msgstr ""
16105
16106 #. type: textblock
16107 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
16108 msgid ""
16109 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16110 "of physical volumes C<physvols>."
16111 msgstr ""
16112
16113 #. type: =head2
16114 #: ../fish/guestfish-actions.pod:5024
16115 msgid "vglvuuids"
16116 msgstr "vglvuuids"
16117
16118 #. type: verbatim
16119 #: ../fish/guestfish-actions.pod:5026
16120 #, no-wrap
16121 msgid ""
16122 " vglvuuids vgname\n"
16123 "\n"
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
16128 msgid ""
16129 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16130 "volumes created in this volume group."
16131 msgstr ""
16132
16133 #. type: textblock
16134 #: ../fish/guestfish-actions.pod:5031
16135 msgid ""
16136 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16137 "logical volumes and volume groups."
16138 msgstr ""
16139
16140 #. type: textblock
16141 #: ../fish/guestfish-actions.pod:5034
16142 msgid "See also L</vgpvuuids>."
16143 msgstr "Див. також L</vgpvuuids>."
16144
16145 #. type: =head2
16146 #: ../fish/guestfish-actions.pod:5036
16147 msgid "vgpvuuids"
16148 msgstr "vgpvuuids"
16149
16150 #. type: verbatim
16151 #: ../fish/guestfish-actions.pod:5038
16152 #, no-wrap
16153 msgid ""
16154 " vgpvuuids vgname\n"
16155 "\n"
16156 msgstr ""
16157
16158 #. type: textblock
16159 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
16160 msgid ""
16161 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16162 "volumes that this volume group resides on."
16163 msgstr ""
16164
16165 #. type: textblock
16166 #: ../fish/guestfish-actions.pod:5043
16167 msgid ""
16168 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16169 "physical volumes and volume groups."
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../fish/guestfish-actions.pod:5046
16174 msgid "See also L</vglvuuids>."
16175 msgstr "Див. також L</vglvuuids>."
16176
16177 #. type: =head2
16178 #: ../fish/guestfish-actions.pod:5048
16179 msgid "vgremove"
16180 msgstr "vgremove"
16181
16182 #. type: verbatim
16183 #: ../fish/guestfish-actions.pod:5050
16184 #, no-wrap
16185 msgid ""
16186 " vgremove vgname\n"
16187 "\n"
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
16192 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16193 msgstr ""
16194
16195 #. type: textblock
16196 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
16197 msgid ""
16198 "This also forcibly removes all logical volumes in the volume group (if any)."
16199 msgstr ""
16200
16201 #. type: =head2
16202 #: ../fish/guestfish-actions.pod:5057
16203 msgid "vgrename"
16204 msgstr "vgrename"
16205
16206 #. type: verbatim
16207 #: ../fish/guestfish-actions.pod:5059
16208 #, no-wrap
16209 msgid ""
16210 " vgrename volgroup newvolgroup\n"
16211 "\n"
16212 msgstr ""
16213
16214 #. type: textblock
16215 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
16216 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16217 msgstr ""
16218
16219 #. type: =head2
16220 #: ../fish/guestfish-actions.pod:5063
16221 msgid "vgs"
16222 msgstr "vgs"
16223
16224 #. type: verbatim
16225 #: ../fish/guestfish-actions.pod:5065
16226 #, no-wrap
16227 msgid ""
16228 " vgs\n"
16229 "\n"
16230 msgstr ""
16231 " vgs\n"
16232 "\n"
16233
16234 #. type: textblock
16235 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
16236 msgid ""
16237 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16238 "> command."
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
16243 msgid ""
16244 "This returns a list of just the volume group names that were detected (eg. "
16245 "C<VolGroup00>)."
16246 msgstr ""
16247
16248 #. type: textblock
16249 #: ../fish/guestfish-actions.pod:5073
16250 msgid "See also L</vgs-full>."
16251 msgstr "Див. також L</vgs-full>."
16252
16253 #. type: =head2
16254 #: ../fish/guestfish-actions.pod:5075
16255 msgid "vgs-full"
16256 msgstr "vgs-full"
16257
16258 #. type: verbatim
16259 #: ../fish/guestfish-actions.pod:5077
16260 #, no-wrap
16261 msgid ""
16262 " vgs-full\n"
16263 "\n"
16264 msgstr ""
16265 " vgs-full\n"
16266 "\n"
16267
16268 #. type: textblock
16269 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
16270 msgid ""
16271 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16272 "> command.  The \"full\" version includes all fields."
16273 msgstr ""
16274
16275 #. type: =head2
16276 #: ../fish/guestfish-actions.pod:5082
16277 msgid "vgscan"
16278 msgstr "vgscan"
16279
16280 #. type: verbatim
16281 #: ../fish/guestfish-actions.pod:5084
16282 #, no-wrap
16283 msgid ""
16284 " vgscan\n"
16285 "\n"
16286 msgstr ""
16287 " vgscan\n"
16288 "\n"
16289
16290 #. type: textblock
16291 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
16292 msgid ""
16293 "This rescans all block devices and rebuilds the list of LVM physical "
16294 "volumes, volume groups and logical volumes."
16295 msgstr ""
16296
16297 #. type: =head2
16298 #: ../fish/guestfish-actions.pod:5089
16299 msgid "vguuid"
16300 msgstr "vguuid"
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish-actions.pod:5091
16304 #, no-wrap
16305 msgid ""
16306 " vguuid vgname\n"
16307 "\n"
16308 msgstr ""
16309
16310 #. type: textblock
16311 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
16312 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16313 msgstr ""
16314
16315 #. type: =head2
16316 #: ../fish/guestfish-actions.pod:5095
16317 msgid "wc-c"
16318 msgstr "wc-c"
16319
16320 #. type: verbatim
16321 #: ../fish/guestfish-actions.pod:5097
16322 #, no-wrap
16323 msgid ""
16324 " wc-c path\n"
16325 "\n"
16326 msgstr ""
16327 " wc-c шлях\n"
16328 "\n"
16329
16330 #. type: textblock
16331 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
16332 msgid ""
16333 "This command counts the characters in a file, using the C<wc -c> external "
16334 "command."
16335 msgstr ""
16336
16337 #. type: =head2
16338 #: ../fish/guestfish-actions.pod:5102
16339 msgid "wc-l"
16340 msgstr "wc-l"
16341
16342 #. type: verbatim
16343 #: ../fish/guestfish-actions.pod:5104
16344 #, no-wrap
16345 msgid ""
16346 " wc-l path\n"
16347 "\n"
16348 msgstr ""
16349 " wc-l шлях\n"
16350 "\n"
16351
16352 #. type: textblock
16353 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
16354 msgid ""
16355 "This command counts the lines in a file, using the C<wc -l> external command."
16356 msgstr ""
16357
16358 #. type: =head2
16359 #: ../fish/guestfish-actions.pod:5109
16360 msgid "wc-w"
16361 msgstr "wc-w"
16362
16363 #. type: verbatim
16364 #: ../fish/guestfish-actions.pod:5111
16365 #, no-wrap
16366 msgid ""
16367 " wc-w path\n"
16368 "\n"
16369 msgstr ""
16370 " wc-w шлях\n"
16371 "\n"
16372
16373 #. type: textblock
16374 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
16375 msgid ""
16376 "This command counts the words in a file, using the C<wc -w> external command."
16377 msgstr ""
16378
16379 #. type: =head2
16380 #: ../fish/guestfish-actions.pod:5116
16381 msgid "write"
16382 msgstr "write"
16383
16384 #. type: verbatim
16385 #: ../fish/guestfish-actions.pod:5118
16386 #, no-wrap
16387 msgid ""
16388 " write path content\n"
16389 "\n"
16390 msgstr ""
16391 " write шлях дані\n"
16392 "\n"
16393
16394 #. type: textblock
16395 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
16396 msgid ""
16397 "This call creates a file called C<path>.  The content of the file is the "
16398 "string C<content> (which can contain any 8 bit data)."
16399 msgstr ""
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-actions.pod:5123
16403 msgid "See also L</write-append>."
16404 msgstr ""
16405
16406 #. type: =head2
16407 #: ../fish/guestfish-actions.pod:5128
16408 msgid "write-append"
16409 msgstr ""
16410
16411 #. type: verbatim
16412 #: ../fish/guestfish-actions.pod:5130
16413 #, no-wrap
16414 msgid ""
16415 " write-append path content\n"
16416 "\n"
16417 msgstr ""
16418
16419 #. type: textblock
16420 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
16421 msgid ""
16422 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16423 "not exist, then a new file is created."
16424 msgstr ""
16425
16426 #. type: textblock
16427 #: ../fish/guestfish-actions.pod:5135
16428 msgid "See also L</write>."
16429 msgstr ""
16430
16431 #. type: =head2
16432 #: ../fish/guestfish-actions.pod:5140
16433 msgid "write-file"
16434 msgstr "write-file"
16435
16436 #. type: verbatim
16437 #: ../fish/guestfish-actions.pod:5142
16438 #, no-wrap
16439 msgid ""
16440 " write-file path content size\n"
16441 "\n"
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
16446 msgid ""
16447 "This call creates a file called C<path>.  The contents of the file is the "
16448 "string C<content> (which can contain any 8 bit data), with length C<size>."
16449 msgstr ""
16450
16451 #. type: textblock
16452 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
16453 msgid ""
16454 "As a special case, if C<size> is C<0> then the length is calculated using "
16455 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16456 msgstr ""
16457
16458 #. type: textblock
16459 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
16460 msgid ""
16461 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16462 "I<not> work, even if the length is specified."
16463 msgstr ""
16464
16465 #. type: textblock
16466 #: ../fish/guestfish-actions.pod:5158
16467 msgid ""
16468 "I<This function is deprecated.> In new code, use the L</write> call instead."
16469 msgstr ""
16470
16471 #. type: =head2
16472 #: ../fish/guestfish-actions.pod:5165
16473 msgid "zegrep"
16474 msgstr "zegrep"
16475
16476 #. type: verbatim
16477 #: ../fish/guestfish-actions.pod:5167
16478 #, no-wrap
16479 msgid ""
16480 " zegrep regex path\n"
16481 "\n"
16482 msgstr ""
16483 " zegrep формальний_вираз шлях\n"
16484 "\n"
16485
16486 #. type: textblock
16487 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
16488 msgid ""
16489 "This calls the external C<zegrep> program and returns the matching lines."
16490 msgstr ""
16491
16492 #. type: =head2
16493 #: ../fish/guestfish-actions.pod:5175
16494 msgid "zegrepi"
16495 msgstr "zegrepi"
16496
16497 #. type: verbatim
16498 #: ../fish/guestfish-actions.pod:5177
16499 #, no-wrap
16500 msgid ""
16501 " zegrepi regex path\n"
16502 "\n"
16503 msgstr ""
16504
16505 #. type: textblock
16506 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
16507 msgid ""
16508 "This calls the external C<zegrep -i> program and returns the matching lines."
16509 msgstr ""
16510
16511 #. type: =head2
16512 #: ../fish/guestfish-actions.pod:5185
16513 msgid "zero"
16514 msgstr "zero"
16515
16516 #. type: verbatim
16517 #: ../fish/guestfish-actions.pod:5187
16518 #, no-wrap
16519 msgid ""
16520 " zero device\n"
16521 "\n"
16522 msgstr ""
16523 " zero пристрій\n"
16524 "\n"
16525
16526 #. type: textblock
16527 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
16528 msgid "This command writes zeroes over the first few blocks of C<device>."
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
16533 msgid ""
16534 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16535 "securely wipe the device).  It should be sufficient to remove any partition "
16536 "tables, filesystem superblocks and so on."
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16541 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
16542 msgid ""
16543 "If blocks are already zero, then this command avoids writing zeroes.  This "
16544 "prevents the underlying device from becoming non-sparse or growing "
16545 "unnecessarily."
16546 msgstr ""
16547
16548 #. type: textblock
16549 #: ../fish/guestfish-actions.pod:5199
16550 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16551 msgstr ""
16552
16553 #. type: =head2
16554 #: ../fish/guestfish-actions.pod:5202
16555 msgid "zero-device"
16556 msgstr "zero-device"
16557
16558 #. type: verbatim
16559 #: ../fish/guestfish-actions.pod:5204
16560 #, no-wrap
16561 msgid ""
16562 " zero-device device\n"
16563 "\n"
16564 msgstr ""
16565 " zero-device пристрій\n"
16566 "\n"
16567
16568 #. type: textblock
16569 #: ../fish/guestfish-actions.pod:5206
16570 msgid ""
16571 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16572 "which just zeroes the first few blocks of a device."
16573 msgstr ""
16574
16575 #. type: =head2
16576 #: ../fish/guestfish-actions.pod:5217
16577 msgid "zerofree"
16578 msgstr "zerofree"
16579
16580 #. type: verbatim
16581 #: ../fish/guestfish-actions.pod:5219
16582 #, no-wrap
16583 msgid ""
16584 " zerofree device\n"
16585 "\n"
16586 msgstr ""
16587 " zerofree пристрій\n"
16588 "\n"
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16592 msgid ""
16593 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16594 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16595 "possible to compress the filesystem more effectively."
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16600 msgid "You should B<not> run this program if the filesystem is mounted."
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16605 msgid ""
16606 "It is possible that using this program can damage the filesystem or data on "
16607 "the filesystem."
16608 msgstr ""
16609
16610 #. type: =head2
16611 #: ../fish/guestfish-actions.pod:5232
16612 msgid "zfgrep"
16613 msgstr "zfgrep"
16614
16615 #. type: verbatim
16616 #: ../fish/guestfish-actions.pod:5234
16617 #, no-wrap
16618 msgid ""
16619 " zfgrep pattern path\n"
16620 "\n"
16621 msgstr ""
16622 " zfgrep шаблон шлях\n"
16623 "\n"
16624
16625 #. type: textblock
16626 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16627 msgid ""
16628 "This calls the external C<zfgrep> program and returns the matching lines."
16629 msgstr ""
16630
16631 #. type: =head2
16632 #: ../fish/guestfish-actions.pod:5242
16633 msgid "zfgrepi"
16634 msgstr "zfgrepi"
16635
16636 #. type: verbatim
16637 #: ../fish/guestfish-actions.pod:5244
16638 #, no-wrap
16639 msgid ""
16640 " zfgrepi pattern path\n"
16641 "\n"
16642 msgstr ""
16643 " zfgrepi шаблон шлях\n"
16644 "\n"
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
16648 msgid ""
16649 "This calls the external C<zfgrep -i> program and returns the matching lines."
16650 msgstr ""
16651
16652 #. type: =head2
16653 #: ../fish/guestfish-actions.pod:5252
16654 msgid "zfile"
16655 msgstr "zfile"
16656
16657 #. type: verbatim
16658 #: ../fish/guestfish-actions.pod:5254
16659 #, no-wrap
16660 msgid ""
16661 " zfile meth path\n"
16662 "\n"
16663 msgstr ""
16664 " zfile метод шлях\n"
16665 "\n"
16666
16667 #. type: textblock
16668 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
16669 msgid ""
16670 "This command runs C<file> after first decompressing C<path> using C<method>."
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
16675 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-actions.pod:5261
16680 msgid ""
16681 "Since 1.0.63, use L</file> instead which can now process compressed files."
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../fish/guestfish-actions.pod:5264
16686 msgid ""
16687 "I<This function is deprecated.> In new code, use the L</file> call instead."
16688 msgstr ""
16689
16690 #. type: =head2
16691 #: ../fish/guestfish-actions.pod:5271
16692 msgid "zgrep"
16693 msgstr "zgrep"
16694
16695 #. type: verbatim
16696 #: ../fish/guestfish-actions.pod:5273
16697 #, no-wrap
16698 msgid ""
16699 " zgrep regex path\n"
16700 "\n"
16701 msgstr ""
16702 " zgrep формальний_вираз шлях\n"
16703 "\n"
16704
16705 #. type: textblock
16706 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
16707 msgid ""
16708 "This calls the external C<zgrep> program and returns the matching lines."
16709 msgstr ""
16710
16711 #. type: =head2
16712 #: ../fish/guestfish-actions.pod:5281
16713 msgid "zgrepi"
16714 msgstr "zgrepi"
16715
16716 #. type: verbatim
16717 #: ../fish/guestfish-actions.pod:5283
16718 #, no-wrap
16719 msgid ""
16720 " zgrepi regex path\n"
16721 "\n"
16722 msgstr ""
16723 " zgrepi формальний_вираз шлях\n"
16724 "\n"
16725
16726 #. type: textblock
16727 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
16728 msgid ""
16729 "This calls the external C<zgrep -i> program and returns the matching lines."
16730 msgstr ""
16731
16732 #. type: =head2
16733 #: ../fish/guestfish-commands.pod:1
16734 msgid "alloc"
16735 msgstr "alloc"
16736
16737 #. type: =head2
16738 #: ../fish/guestfish-commands.pod:3
16739 msgid "allocate"
16740 msgstr ""
16741
16742 #. type: verbatim
16743 #: ../fish/guestfish-commands.pod:5
16744 #, no-wrap
16745 msgid ""
16746 " alloc filename size\n"
16747 "\n"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish-commands.pod:7
16752 msgid ""
16753 "This creates an empty (zeroed) file of the given size, and then adds so it "
16754 "can be further examined."
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16759 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16764 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish-commands.pod:14
16769 msgid ""
16770 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16771 "image, see L</PREPARED DISK IMAGES>."
16772 msgstr ""
16773
16774 #. type: =head2
16775 #: ../fish/guestfish-commands.pod:17
16776 msgid "copy-in"
16777 msgstr "copy-in"
16778
16779 #. type: verbatim
16780 #: ../fish/guestfish-commands.pod:19
16781 #, no-wrap
16782 msgid ""
16783 " copy-in local [local ...] /remotedir\n"
16784 "\n"
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish-commands.pod:21
16789 msgid ""
16790 "C<copy-in> copies local files or directories recursively into the disk "
16791 "image, placing them in the directory called C</remotedir> (which must "
16792 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16793 "other commands as necessary."
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-commands.pod:26
16798 msgid ""
16799 "Multiple local files and directories can be specified, but the last "
16800 "parameter must always be a remote directory.  Wildcards cannot be used."
16801 msgstr ""
16802
16803 #. type: =head2
16804 #: ../fish/guestfish-commands.pod:30
16805 msgid "copy-out"
16806 msgstr "copy-out"
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish-commands.pod:32
16810 #, no-wrap
16811 msgid ""
16812 " copy-out remote [remote ...] localdir\n"
16813 "\n"
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish-commands.pod:34
16818 msgid ""
16819 "C<copy-out> copies remote files or directories recursively out of the disk "
16820 "image, placing them on the host disk in a local directory called C<localdir> "
16821 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16822 "download>, L</tar-out> and other commands as necessary."
16823 msgstr ""
16824
16825 #. type: textblock
16826 #: ../fish/guestfish-commands.pod:40
16827 msgid ""
16828 "Multiple remote files and directories can be specified, but the last "
16829 "parameter must always be a local directory.  To download to the current "
16830 "directory, use C<.> as in:"
16831 msgstr ""
16832
16833 #. type: verbatim
16834 #: ../fish/guestfish-commands.pod:44
16835 #, no-wrap
16836 msgid ""
16837 " copy-out /home .\n"
16838 "\n"
16839 msgstr ""
16840 " copy-out /home .\n"
16841 "\n"
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-commands.pod:46
16845 msgid ""
16846 "Wildcards cannot be used in the ordinary command, but you can use them with "
16847 "the help of L</glob> like this:"
16848 msgstr ""
16849
16850 #. type: verbatim
16851 #: ../fish/guestfish-commands.pod:49
16852 #, no-wrap
16853 msgid ""
16854 " glob copy-out /home/* .\n"
16855 "\n"
16856 msgstr ""
16857 " glob copy-out /home/* .\n"
16858 "\n"
16859
16860 #. type: =head2
16861 #: ../fish/guestfish-commands.pod:51
16862 msgid "display"
16863 msgstr ""
16864
16865 #. type: verbatim
16866 #: ../fish/guestfish-commands.pod:53
16867 #, no-wrap
16868 msgid ""
16869 " display filename\n"
16870 "\n"
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish-commands.pod:55
16875 msgid ""
16876 "Use C<display> (a graphical display program) to display an image file.  It "
16877 "downloads the file, and runs C<display> on it."
16878 msgstr ""
16879
16880 #. type: textblock
16881 #: ../fish/guestfish-commands.pod:58
16882 msgid ""
16883 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16884 "environment variable.  For example to use the GNOME display program:"
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish-commands.pod:61
16889 #, no-wrap
16890 msgid ""
16891 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish-commands.pod:63
16897 msgid "See also L<display(1)>."
16898 msgstr ""
16899
16900 #. type: =head2
16901 #: ../fish/guestfish-commands.pod:65
16902 msgid "echo"
16903 msgstr "echo"
16904
16905 #. type: verbatim
16906 #: ../fish/guestfish-commands.pod:67
16907 #, no-wrap
16908 msgid ""
16909 " echo [params ...]\n"
16910 "\n"
16911 msgstr ""
16912 " echo [параметри...]\n"
16913 "\n"
16914
16915 #. type: textblock
16916 #: ../fish/guestfish-commands.pod:69
16917 msgid "This echos the parameters to the terminal."
16918 msgstr ""
16919
16920 #. type: =head2
16921 #: ../fish/guestfish-commands.pod:71
16922 msgid "edit"
16923 msgstr "edit"
16924
16925 #. type: =head2
16926 #: ../fish/guestfish-commands.pod:73
16927 msgid "vi"
16928 msgstr "vi"
16929
16930 #. type: =head2
16931 #: ../fish/guestfish-commands.pod:75
16932 msgid "emacs"
16933 msgstr "emacs"
16934
16935 #. type: verbatim
16936 #: ../fish/guestfish-commands.pod:77
16937 #, no-wrap
16938 msgid ""
16939 " edit filename\n"
16940 "\n"
16941 msgstr ""
16942 " edit назва_файла\n"
16943 "\n"
16944
16945 #. type: textblock
16946 #: ../fish/guestfish-commands.pod:79
16947 msgid ""
16948 "This is used to edit a file.  It downloads the file, edits it locally using "
16949 "your editor, then uploads the result."
16950 msgstr ""
16951
16952 #. type: textblock
16953 #: ../fish/guestfish-commands.pod:82
16954 msgid ""
16955 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16956 "or C<emacs> you will get those corresponding editors."
16957 msgstr ""
16958
16959 #. type: =head2
16960 #: ../fish/guestfish-commands.pod:86
16961 msgid "glob"
16962 msgstr "glob"
16963
16964 #. type: verbatim
16965 #: ../fish/guestfish-commands.pod:88
16966 #, no-wrap
16967 msgid ""
16968 " glob command args...\n"
16969 "\n"
16970 msgstr ""
16971 " glob команда параметри...\n"
16972 "\n"
16973
16974 #. type: textblock
16975 #: ../fish/guestfish-commands.pod:90
16976 msgid ""
16977 "Expand wildcards in any paths in the args list, and run C<command> "
16978 "repeatedly on each matching path."
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-commands.pod:93
16983 msgid "See L</WILDCARDS AND GLOBBING>."
16984 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16985
16986 #. type: =head2
16987 #: ../fish/guestfish-commands.pod:95
16988 msgid "hexedit"
16989 msgstr "hexedit"
16990
16991 #. type: verbatim
16992 #: ../fish/guestfish-commands.pod:97
16993 #, no-wrap
16994 msgid ""
16995 " hexedit <filename|device>\n"
16996 " hexedit <filename|device> <max>\n"
16997 " hexedit <filename|device> <start> <max>\n"
16998 "\n"
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish-commands.pod:101
17003 msgid ""
17004 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17005 "device."
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish-commands.pod:104
17010 msgid ""
17011 "This command works by downloading potentially the whole file or device, "
17012 "editing it locally, then uploading it.  If the file or device is large, you "
17013 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17014 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17015 "usual modifiers allowed such as C<1M> (1 megabyte)."
17016 msgstr ""
17017
17018 #. type: textblock
17019 #: ../fish/guestfish-commands.pod:111
17020 msgid "For example to edit the first few sectors of a disk you might do:"
17021 msgstr ""
17022
17023 #. type: verbatim
17024 #: ../fish/guestfish-commands.pod:114
17025 #, no-wrap
17026 msgid ""
17027 " hexedit /dev/sda 1M\n"
17028 "\n"
17029 msgstr ""
17030 " hexedit /dev/sda 1M\n"
17031 "\n"
17032
17033 #. type: textblock
17034 #: ../fish/guestfish-commands.pod:116
17035 msgid ""
17036 "which would allow you to edit anywhere within the first megabyte of the disk."
17037 msgstr ""
17038
17039 #. type: textblock
17040 #: ../fish/guestfish-commands.pod:119
17041 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17042 msgstr ""
17043
17044 #. type: verbatim
17045 #: ../fish/guestfish-commands.pod:121
17046 #, no-wrap
17047 msgid ""
17048 " hexedit /dev/sda1 0x400 0x400\n"
17049 "\n"
17050 msgstr ""
17051 " hexedit /dev/sda1 0x400 0x400\n"
17052 "\n"
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-commands.pod:123
17056 msgid "(assuming the superblock is in the standard location)."
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish-commands.pod:125
17061 msgid ""
17062 "This command requires the external L<hexedit(1)> program.  You can specify "
17063 "another program to use by setting the C<HEXEDITOR> environment variable."
17064 msgstr ""
17065
17066 #. type: textblock
17067 #: ../fish/guestfish-commands.pod:129
17068 msgid "See also L</hexdump>."
17069 msgstr "Див. також L</hexdump>."
17070
17071 #. type: =head2
17072 #: ../fish/guestfish-commands.pod:131
17073 msgid "lcd"
17074 msgstr "lcd"
17075
17076 #. type: verbatim
17077 #: ../fish/guestfish-commands.pod:133
17078 #, no-wrap
17079 msgid ""
17080 " lcd directory\n"
17081 "\n"
17082 msgstr ""
17083
17084 #. type: textblock
17085 #: ../fish/guestfish-commands.pod:135
17086 msgid ""
17087 "Change the local directory, ie. the current directory of guestfish itself."
17088 msgstr ""
17089
17090 #. type: textblock
17091 #: ../fish/guestfish-commands.pod:138
17092 msgid "Note that C<!cd> won't do what you might expect."
17093 msgstr ""
17094
17095 #. type: =head2
17096 #: ../fish/guestfish-commands.pod:140
17097 msgid "man"
17098 msgstr "man"
17099
17100 #. type: =head2
17101 #: ../fish/guestfish-commands.pod:142
17102 msgid "manual"
17103 msgstr ""
17104
17105 #. type: verbatim
17106 #: ../fish/guestfish-commands.pod:144
17107 #, no-wrap
17108 msgid ""
17109 "  man\n"
17110 "\n"
17111 msgstr ""
17112 "  man\n"
17113 "\n"
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-commands.pod:146
17117 msgid "Opens the manual page for guestfish."
17118 msgstr ""
17119
17120 #. type: =head2
17121 #: ../fish/guestfish-commands.pod:148
17122 msgid "more"
17123 msgstr "more"
17124
17125 #. type: =head2
17126 #: ../fish/guestfish-commands.pod:150
17127 msgid "less"
17128 msgstr "less"
17129
17130 #. type: verbatim
17131 #: ../fish/guestfish-commands.pod:152
17132 #, no-wrap
17133 msgid ""
17134 " more filename\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: verbatim
17139 #: ../fish/guestfish-commands.pod:154
17140 #, no-wrap
17141 msgid ""
17142 " less filename\n"
17143 "\n"
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish-commands.pod:156
17148 msgid "This is used to view a file."
17149 msgstr ""
17150
17151 #. type: textblock
17152 #: ../fish/guestfish-commands.pod:158
17153 msgid ""
17154 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17155 "C<less> you will get the C<less> command specifically."
17156 msgstr ""
17157
17158 #. type: =head2
17159 #: ../fish/guestfish-commands.pod:161
17160 msgid "reopen"
17161 msgstr "reopen"
17162
17163 #. type: verbatim
17164 #: ../fish/guestfish-commands.pod:163
17165 #, no-wrap
17166 msgid ""
17167 "  reopen\n"
17168 "\n"
17169 msgstr ""
17170
17171 #. type: textblock
17172 #: ../fish/guestfish-commands.pod:165
17173 msgid ""
17174 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17175 "normally, because the handle is closed properly when guestfish exits.  "
17176 "However this is occasionally useful for testing."
17177 msgstr ""
17178
17179 #. type: =head2
17180 #: ../fish/guestfish-commands.pod:169
17181 msgid "setenv"
17182 msgstr ""
17183
17184 #. type: verbatim
17185 #: ../fish/guestfish-commands.pod:171
17186 #, no-wrap
17187 msgid ""
17188 "  setenv VAR value\n"
17189 "\n"
17190 msgstr ""
17191
17192 #. type: textblock
17193 #: ../fish/guestfish-commands.pod:173
17194 msgid "Set the environment variable C<VAR> to the string C<value>."
17195 msgstr ""
17196
17197 #. type: textblock
17198 #: ../fish/guestfish-commands.pod:175
17199 msgid ""
17200 "To print the value of an environment variable use a shell command such as:"
17201 msgstr ""
17202
17203 #. type: verbatim
17204 #: ../fish/guestfish-commands.pod:178
17205 #, no-wrap
17206 msgid ""
17207 " !echo $VAR\n"
17208 "\n"
17209 msgstr ""
17210
17211 #. type: =head2
17212 #: ../fish/guestfish-commands.pod:180
17213 msgid "sparse"
17214 msgstr "sparse"
17215
17216 #. type: verbatim
17217 #: ../fish/guestfish-commands.pod:182
17218 #, no-wrap
17219 msgid ""
17220 " sparse filename size\n"
17221 "\n"
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-commands.pod:184
17226 msgid ""
17227 "This creates an empty sparse file of the given size, and then adds so it can "
17228 "be further examined."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-commands.pod:187
17233 msgid ""
17234 "In all respects it works the same as the L</alloc> command, except that the "
17235 "image file is allocated sparsely, which means that disk blocks are not "
17236 "assigned to the file until they are needed.  Sparse disk files only use "
17237 "space when written to, but they are slower and there is a danger you could "
17238 "run out of real disk space during a write operation."
17239 msgstr ""
17240
17241 #. type: =head2
17242 #: ../fish/guestfish-commands.pod:197
17243 msgid "supported"
17244 msgstr "supported"
17245
17246 #. type: verbatim
17247 #: ../fish/guestfish-commands.pod:199
17248 #, no-wrap
17249 msgid ""
17250 " supported\n"
17251 "\n"
17252 msgstr ""
17253 " supported\n"
17254 "\n"
17255
17256 #. type: textblock
17257 #: ../fish/guestfish-commands.pod:201
17258 msgid ""
17259 "This command returns a list of the optional groups known to the daemon, and "
17260 "indicates which ones are supported by this build of the libguestfs appliance."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-commands.pod:205
17265 msgid "See also L<guestfs(3)/AVAILABILITY>."
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-commands.pod:207
17270 msgid "time"
17271 msgstr "time"
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-commands.pod:209
17275 #, no-wrap
17276 msgid ""
17277 " time command args...\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-commands.pod:211
17283 msgid ""
17284 "Run the command as usual, but print the elapsed time afterwards.  This can "
17285 "be useful for benchmarking operations."
17286 msgstr ""
17287
17288 #. type: =head2
17289 #: ../fish/guestfish-commands.pod:214
17290 msgid "unsetenv"
17291 msgstr ""
17292
17293 #. type: verbatim
17294 #: ../fish/guestfish-commands.pod:216
17295 #, no-wrap
17296 msgid ""
17297 "  unsetenv VAR\n"
17298 "\n"
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish-commands.pod:218
17303 msgid "Remove C<VAR> from the environment."
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish.pod:5
17308 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17309 msgstr ""
17310
17311 #. type: verbatim
17312 #: ../fish/guestfish.pod:9
17313 #, no-wrap
17314 msgid ""
17315 " guestfish [--options] [commands]\n"
17316 "\n"
17317 msgstr ""
17318
17319 #. type: verbatim
17320 #: ../fish/guestfish.pod:11
17321 #, no-wrap
17322 msgid ""
17323 " guestfish\n"
17324 "\n"
17325 msgstr ""
17326
17327 #. type: verbatim
17328 #: ../fish/guestfish.pod:13
17329 #, no-wrap
17330 msgid ""
17331 " guestfish [--ro|--rw] -a disk.img\n"
17332 "\n"
17333 msgstr ""
17334
17335 #. type: verbatim
17336 #: ../fish/guestfish.pod:15
17337 #, no-wrap
17338 msgid ""
17339 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17340 "\n"
17341 msgstr ""
17342
17343 #. type: verbatim
17344 #: ../fish/guestfish.pod:17
17345 #, no-wrap
17346 msgid ""
17347 " guestfish -d libvirt-domain\n"
17348 "\n"
17349 msgstr ""
17350
17351 #. type: verbatim
17352 #: ../fish/guestfish.pod:19
17353 #, no-wrap
17354 msgid ""
17355 " guestfish [--ro|--rw] -a disk.img -i\n"
17356 "\n"
17357 msgstr ""
17358
17359 #. type: verbatim
17360 #: ../fish/guestfish.pod:21
17361 #, no-wrap
17362 msgid ""
17363 " guestfish -d libvirt-domain -i\n"
17364 "\n"
17365 msgstr ""
17366
17367 #. type: textblock
17368 #: ../fish/guestfish.pod:25
17369 msgid ""
17370 "Using guestfish in read/write mode on live virtual machines can be "
17371 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17372 "option to use guestfish safely if the disk image or virtual machine might be "
17373 "live."
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../fish/guestfish.pod:32
17378 msgid ""
17379 "Guestfish is a shell and command-line tool for examining and modifying "
17380 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17381 "functionality of the guestfs API, see L<guestfs(3)>."
17382 msgstr ""
17383
17384 #. type: textblock
17385 #: ../fish/guestfish.pod:36
17386 msgid ""
17387 "Guestfish gives you structured access to the libguestfs API, from shell "
17388 "scripts or the command line or interactively.  If you want to rescue a "
17389 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17390 "command."
17391 msgstr ""
17392
17393 #. type: =head2
17394 #: ../fish/guestfish.pod:43
17395 msgid "As an interactive shell"
17396 msgstr ""
17397
17398 #. type: verbatim
17399 #: ../fish/guestfish.pod:45
17400 #, no-wrap
17401 msgid ""
17402 " $ guestfish\n"
17403 " \n"
17404 msgstr ""
17405
17406 #. type: verbatim
17407 #: ../fish/guestfish.pod:47
17408 #, no-wrap
17409 msgid ""
17410 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17411 " editing virtual machine filesystems.\n"
17412 " \n"
17413 msgstr ""
17414
17415 #. type: verbatim
17416 #: ../fish/guestfish.pod:50
17417 #, no-wrap
17418 msgid ""
17419 " Type: 'help' for a list of commands\n"
17420 "       'man' to read the manual\n"
17421 "       'quit' to quit the shell\n"
17422 " \n"
17423 msgstr ""
17424
17425 #. type: verbatim
17426 #: ../fish/guestfish.pod:54
17427 #, no-wrap
17428 msgid ""
17429 " ><fs> add-ro disk.img\n"
17430 " ><fs> run\n"
17431 " ><fs> list-filesystems\n"
17432 " /dev/sda1: ext4\n"
17433 " /dev/vg_guest/lv_root: ext4\n"
17434 " /dev/vg_guest/lv_swap: swap\n"
17435 " ><fs> mount /dev/vg_guest/lv_root /\n"
17436 " ><fs> cat /etc/fstab\n"
17437 " # /etc/fstab\n"
17438 " # Created by anaconda\n"
17439 " [...]\n"
17440 " ><fs> exit\n"
17441 "\n"
17442 msgstr ""
17443
17444 #. type: =head2
17445 #: ../fish/guestfish.pod:67
17446 msgid "From shell scripts"
17447 msgstr ""
17448
17449 #. type: textblock
17450 #: ../fish/guestfish.pod:69
17451 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17452 msgstr ""
17453
17454 #. type: verbatim
17455 #: ../fish/guestfish.pod:71
17456 #, no-wrap
17457 msgid ""
17458 " guestfish <<_EOF_\n"
17459 " add disk.img\n"
17460 " run\n"
17461 " mount /dev/vg_guest/lv_root /\n"
17462 " write /etc/motd \"Welcome, new users\"\n"
17463 " _EOF_\n"
17464 "\n"
17465 msgstr ""
17466
17467 #. type: textblock
17468 #: ../fish/guestfish.pod:78
17469 msgid "List the LVM logical volumes in a disk image:"
17470 msgstr ""
17471
17472 #. type: verbatim
17473 #: ../fish/guestfish.pod:80
17474 #, no-wrap
17475 msgid ""
17476 " guestfish -a disk.img --ro <<_EOF_\n"
17477 " run\n"
17478 " lvs\n"
17479 " _EOF_\n"
17480 "\n"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:85
17485 msgid "List all the filesystems in a disk image:"
17486 msgstr ""
17487
17488 #. type: verbatim
17489 #: ../fish/guestfish.pod:87
17490 #, no-wrap
17491 msgid ""
17492 " guestfish -a disk.img --ro <<_EOF_\n"
17493 " run\n"
17494 " list-filesystems\n"
17495 " _EOF_\n"
17496 "\n"
17497 msgstr ""
17498
17499 #. type: =head2
17500 #: ../fish/guestfish.pod:92
17501 msgid "On one command line"
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17506 msgid "Update C</etc/resolv.conf> in a guest:"
17507 msgstr ""
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish.pod:96
17511 #, no-wrap
17512 msgid ""
17513 " guestfish \\\n"
17514 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17515 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17516 "\n"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:100
17521 msgid "Edit C</boot/grub/grub.conf> interactively:"
17522 msgstr ""
17523
17524 #. type: verbatim
17525 #: ../fish/guestfish.pod:102
17526 #, no-wrap
17527 msgid ""
17528 " guestfish --rw --add disk.img \\\n"
17529 "   --mount /dev/vg_guest/lv_root \\\n"
17530 "   --mount /dev/sda1:/boot \\\n"
17531 "   edit /boot/grub/grub.conf\n"
17532 "\n"
17533 msgstr ""
17534
17535 #. type: =head2
17536 #: ../fish/guestfish.pod:107
17537 msgid "Mount disks automatically"
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish.pod:109
17542 msgid ""
17543 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17544 msgstr ""
17545
17546 #. type: verbatim
17547 #: ../fish/guestfish.pod:112
17548 #, no-wrap
17549 msgid ""
17550 " guestfish --ro -a disk.img -i cat /etc/group\n"
17551 "\n"
17552 msgstr ""
17553
17554 #. type: verbatim
17555 #: ../fish/guestfish.pod:114
17556 #, no-wrap
17557 msgid ""
17558 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17559 "\n"
17560 msgstr ""
17561
17562 #. type: textblock
17563 #: ../fish/guestfish.pod:116
17564 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17565 msgstr ""
17566
17567 #. type: verbatim
17568 #: ../fish/guestfish.pod:118
17569 #, no-wrap
17570 msgid ""
17571 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17572 "\n"
17573 msgstr ""
17574
17575 #. type: =head2
17576 #: ../fish/guestfish.pod:120
17577 msgid "As a script interpreter"
17578 msgstr ""
17579
17580 #. type: textblock
17581 #: ../fish/guestfish.pod:122
17582 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17583 msgstr ""
17584
17585 #. type: verbatim
17586 #: ../fish/guestfish.pod:124
17587 #, no-wrap
17588 msgid ""
17589 " #!/usr/bin/guestfish -f\n"
17590 " sparse test1.img 100M\n"
17591 " run\n"
17592 " part-disk /dev/sda mbr\n"
17593 " mkfs ext2 /dev/sda1\n"
17594 "\n"
17595 msgstr ""
17596
17597 #. type: =head2
17598 #: ../fish/guestfish.pod:130
17599 msgid "Start with a prepared disk"
17600 msgstr ""
17601
17602 #. type: textblock
17603 #: ../fish/guestfish.pod:132
17604 msgid ""
17605 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17606 "single ext2-formatted partition:"
17607 msgstr ""
17608
17609 #. type: verbatim
17610 #: ../fish/guestfish.pod:135
17611 #, no-wrap
17612 msgid ""
17613 " guestfish -N fs\n"
17614 "\n"
17615 msgstr ""
17616
17617 #. type: textblock
17618 #: ../fish/guestfish.pod:137
17619 msgid "To list what is available do:"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17624 #, no-wrap
17625 msgid ""
17626 " guestfish -N help | less\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: =head2
17631 #: ../fish/guestfish.pod:141
17632 msgid "Remote control"
17633 msgstr "Дистанційне керування"
17634
17635 #. type: verbatim
17636 #: ../fish/guestfish.pod:143
17637 #, no-wrap
17638 msgid ""
17639 " eval \"`guestfish --listen`\"\n"
17640 " guestfish --remote add-ro disk.img\n"
17641 " guestfish --remote run\n"
17642 " guestfish --remote lvs\n"
17643 "\n"
17644 msgstr ""
17645 " eval \"`guestfish --listen`\"\n"
17646 " guestfish --remote add-ro disk.img\n"
17647 " guestfish --remote run\n"
17648 " guestfish --remote lvs\n"
17649 "\n"
17650
17651 #. type: textblock
17652 #: ../fish/guestfish.pod:154
17653 msgid "Displays general help on options."
17654 msgstr ""
17655
17656 #. type: =item
17657 #: ../fish/guestfish.pod:158
17658 msgid "B<--cmd-help>"
17659 msgstr "B<--cmd-help>"
17660
17661 #. type: textblock
17662 #: ../fish/guestfish.pod:160
17663 msgid "Lists all available guestfish commands."
17664 msgstr ""
17665
17666 #. type: =item
17667 #: ../fish/guestfish.pod:162
17668 msgid "B<-h cmd>"
17669 msgstr "B<-h команда>"
17670
17671 #. type: =item
17672 #: ../fish/guestfish.pod:164
17673 msgid "B<--cmd-help cmd>"
17674 msgstr "B<--cmd-help команда>"
17675
17676 #. type: textblock
17677 #: ../fish/guestfish.pod:166
17678 msgid "Displays detailed help on a single command C<cmd>."
17679 msgstr ""
17680
17681 #. type: =item
17682 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17683 msgid "B<-a image>"
17684 msgstr "B<-a образ>"
17685
17686 #. type: =item
17687 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17688 msgid "B<--add image>"
17689 msgstr "B<--add образ>"
17690
17691 #. type: textblock
17692 #: ../fish/guestfish.pod:172
17693 msgid "Add a block device or virtual machine image to the shell."
17694 msgstr ""
17695
17696 #. type: textblock
17697 #: ../fish/guestfish.pod:177
17698 msgid ""
17699 "Using this flag is mostly equivalent to using the C<add> command, with "
17700 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17701 "the I<--format=...> flag was given."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17706 msgid ""
17707 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17708 "URI to use.  The default is to use the default libvirt connection."
17709 msgstr ""
17710
17711 #. type: =item
17712 #: ../fish/guestfish.pod:189
17713 msgid "B<--csh>"
17714 msgstr "B<--csh>"
17715
17716 #. type: textblock
17717 #: ../fish/guestfish.pod:191
17718 msgid ""
17719 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17720 "section L</REMOTE CONTROL AND CSH> below."
17721 msgstr ""
17722
17723 #. type: =item
17724 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17725 msgid "B<-d libvirt-domain>"
17726 msgstr "B<-d домен-libvirt>"
17727
17728 #. type: =item
17729 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17730 msgid "B<--domain libvirt-domain>"
17731 msgstr "B<--domain домен-libvirt>"
17732
17733 #. type: textblock
17734 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17735 msgid ""
17736 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17737 "used, then any libvirt domain can be used.  However in write mode, only "
17738 "libvirt domains which are shut down can be named here."
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17743 msgid "Domain UUIDs can be used instead of names."
17744 msgstr ""
17745
17746 #. type: textblock
17747 #: ../fish/guestfish.pod:204
17748 msgid ""
17749 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17750 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17751 "if the I<--format:...> flag was given."
17752 msgstr ""
17753
17754 #. type: =item
17755 #: ../fish/guestfish.pod:208
17756 msgid "B<-D>"
17757 msgstr "B<-D>"
17758
17759 #. type: =item
17760 #: ../fish/guestfish.pod:210
17761 msgid "B<--no-dest-paths>"
17762 msgstr "B<--no-dest-paths>"
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:212
17766 msgid ""
17767 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17768 "to hit the tab key to complete paths on the guest filesystem, but this "
17769 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17770 "allow this feature to be disabled."
17771 msgstr ""
17772
17773 #. type: textblock
17774 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17775 msgid ""
17776 "When prompting for keys and passphrases, guestfish normally turns echoing "
17777 "off so you cannot see what you are typing.  If you are not worried about "
17778 "Tempest attacks and there is no one else in the room you can specify this "
17779 "flag to see what you are typing."
17780 msgstr ""
17781
17782 #. type: =item
17783 #: ../fish/guestfish.pod:224
17784 msgid "B<-f file>"
17785 msgstr "B<-f файл>"
17786
17787 #. type: =item
17788 #: ../fish/guestfish.pod:226
17789 msgid "B<--file file>"
17790 msgstr "B<--file файл>"
17791
17792 #. type: textblock
17793 #: ../fish/guestfish.pod:228
17794 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17795 msgstr ""
17796
17797 #. type: verbatim
17798 #: ../fish/guestfish.pod:231
17799 #, no-wrap
17800 msgid ""
17801 " #!/usr/bin/guestfish -f\n"
17802 "\n"
17803 msgstr ""
17804 " #!/usr/bin/guestfish -f\n"
17805 "\n"
17806
17807 #. type: verbatim
17808 #: ../fish/guestfish.pod:244
17809 #, no-wrap
17810 msgid ""
17811 " guestfish --format=raw -a disk.img\n"
17812 "\n"
17813 msgstr ""
17814 " guestfish --format=raw -a disk.img\n"
17815 "\n"
17816
17817 #. type: verbatim
17818 #: ../fish/guestfish.pod:248
17819 #, no-wrap
17820 msgid ""
17821 " guestfish --format=raw -a disk.img --format -a another.img\n"
17822 "\n"
17823 msgstr ""
17824 " guestfish --format=raw -a disk.img --format -a another.img\n"
17825 "\n"
17826
17827 #. type: textblock
17828 #: ../fish/guestfish.pod:253
17829 msgid ""
17830 "If you have untrusted raw-format guest disk images, you should use this "
17831 "option to specify the disk format.  This avoids a possible security problem "
17832 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17833 msgstr ""
17834
17835 #. type: =item
17836 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17837 msgid "B<--inspector>"
17838 msgstr "B<--inspector>"
17839
17840 #. type: textblock
17841 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17842 msgid ""
17843 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17844 "system and mount filesystems as they would be mounted on the real virtual "
17845 "machine."
17846 msgstr ""
17847
17848 #. type: textblock
17849 #: ../fish/guestfish.pod:266
17850 msgid "Typical usage is either:"
17851 msgstr ""
17852
17853 #. type: verbatim
17854 #: ../fish/guestfish.pod:268
17855 #, no-wrap
17856 msgid ""
17857 " guestfish -d myguest -i\n"
17858 "\n"
17859 msgstr ""
17860 " guestfish -d myguest -i\n"
17861 "\n"
17862
17863 #. type: textblock
17864 #: ../fish/guestfish.pod:270
17865 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17866 msgstr ""
17867
17868 #. type: verbatim
17869 #: ../fish/guestfish.pod:272
17870 #, no-wrap
17871 msgid ""
17872 " guestfish --ro -d myguest -i\n"
17873 "\n"
17874 msgstr ""
17875 " guestfish --ro -d myguest -i\n"
17876 "\n"
17877
17878 #. type: textblock
17879 #: ../fish/guestfish.pod:274
17880 msgid "(for active domains, readonly), or specify the block device directly:"
17881 msgstr ""
17882
17883 #. type: verbatim
17884 #: ../fish/guestfish.pod:276
17885 #, no-wrap
17886 msgid ""
17887 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17888 "\n"
17889 msgstr ""
17890 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17891 "\n"
17892
17893 #. type: textblock
17894 #: ../fish/guestfish.pod:278
17895 msgid ""
17896 "Note that the command line syntax changed slightly over older versions of "
17897 "guestfish.  You can still use the old syntax:"
17898 msgstr ""
17899
17900 #. type: verbatim
17901 #: ../fish/guestfish.pod:281
17902 #, no-wrap
17903 msgid ""
17904 " guestfish [--ro] -i disk.img\n"
17905 "\n"
17906 msgstr ""
17907 " guestfish [--ro] -i disk.img\n"
17908 "\n"
17909
17910 #. type: verbatim
17911 #: ../fish/guestfish.pod:283
17912 #, no-wrap
17913 msgid ""
17914 " guestfish [--ro] -i libvirt-domain\n"
17915 "\n"
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish.pod:285
17920 msgid ""
17921 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17922 "then using other commands to mount the filesystems that were found."
17923 msgstr ""
17924
17925 #. type: =item
17926 #: ../fish/guestfish.pod:294
17927 msgid "B<--listen>"
17928 msgstr "B<--listen>"
17929
17930 #. type: textblock
17931 #: ../fish/guestfish.pod:296
17932 msgid ""
17933 "Fork into the background and listen for remote commands.  See section L</"
17934 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17935 msgstr ""
17936
17937 #. type: =item
17938 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17939 msgid "B<--live>"
17940 msgstr "B<--live>"
17941
17942 #. type: textblock
17943 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17944 msgid ""
17945 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17946 "ATTACHING TO RUNNING DAEMONS>)."
17947 msgstr ""
17948
17949 #. type: =item
17950 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17951 msgid "B<-m dev[:mountpoint[:options]]>"
17952 msgstr ""
17953
17954 #. type: =item
17955 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17956 msgid "B<--mount dev[:mountpoint[:options]]>"
17957 msgstr ""
17958
17959 #. type: textblock
17960 #: ../fish/guestfish.pod:308
17961 msgid "Mount the named partition or logical volume on the given mountpoint."
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish.pod:310
17966 msgid "If the mountpoint is omitted, it defaults to C</>."
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:312
17971 msgid "You have to mount something on C</> before most commands will work."
17972 msgstr ""
17973
17974 #. type: textblock
17975 #: ../fish/guestfish.pod:314
17976 msgid ""
17977 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17978 "launched."
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:317
17983 msgid ""
17984 "If you don't know what filesystems a disk image contains, you can either run "
17985 "guestfish without this option, then list the partitions, filesystems and LVs "
17986 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17987 "commands), or you can use the L<virt-filesystems(1)> program."
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17992 msgid ""
17993 "The third (and rarely used) part of the mount parameter is the list of mount "
17994 "options used to mount the underlying filesystem.  If this is not given, then "
17995 "the mount options are either the empty string or C<ro> (the latter if the "
17996 "I<--ro> flag is used).  By specifying the mount options, you override this "
17997 "default choice.  Probably the only time you would use this is to enable ACLs "
17998 "and/or extended attributes if the filesystem can support them:"
17999 msgstr ""
18000
18001 #. type: verbatim
18002 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
18003 #, no-wrap
18004 msgid ""
18005 " -m /dev/sda1:/:acl,user_xattr\n"
18006 "\n"
18007 msgstr ""
18008
18009 #. type: textblock
18010 #: ../fish/guestfish.pod:333
18011 msgid "Using this flag is equivalent to using the C<mount-options> command."
18012 msgstr ""
18013
18014 #. type: =item
18015 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18016 #: ../resize/virt-resize.pod:358
18017 msgid "B<-n>"
18018 msgstr "B<-n>"
18019
18020 #. type: =item
18021 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18022 msgid "B<--no-sync>"
18023 msgstr "B<--no-sync>"
18024
18025 #. type: textblock
18026 #: ../fish/guestfish.pod:339
18027 msgid ""
18028 "Disable autosync.  This is enabled by default.  See the discussion of "
18029 "autosync in the L<guestfs(3)> manpage."
18030 msgstr ""
18031
18032 #. type: =item
18033 #: ../fish/guestfish.pod:342
18034 msgid "B<-N type>"
18035 msgstr "B<-N тип>"
18036
18037 #. type: =item
18038 #: ../fish/guestfish.pod:344
18039 msgid "B<--new type>"
18040 msgstr "B<--new тип>"
18041
18042 #. type: =item
18043 #: ../fish/guestfish.pod:346
18044 msgid "B<-N help>"
18045 msgstr "B<-N help>"
18046
18047 #. type: textblock
18048 #: ../fish/guestfish.pod:348
18049 msgid ""
18050 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18051 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18052 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18053 "IMAGES> below."
18054 msgstr ""
18055
18056 #. type: =item
18057 #: ../fish/guestfish.pod:353
18058 msgid "B<--progress-bars>"
18059 msgstr "B<--progress-bars>"
18060
18061 #. type: textblock
18062 #: ../fish/guestfish.pod:355
18063 msgid "Enable progress bars, even when guestfish is used non-interactively."
18064 msgstr ""
18065
18066 #. type: textblock
18067 #: ../fish/guestfish.pod:357
18068 msgid ""
18069 "Progress bars are enabled by default when guestfish is used as an "
18070 "interactive shell."
18071 msgstr ""
18072
18073 #. type: =item
18074 #: ../fish/guestfish.pod:360
18075 msgid "B<--no-progress-bars>"
18076 msgstr "B<--no-progress-bars>"
18077
18078 #. type: textblock
18079 #: ../fish/guestfish.pod:362
18080 msgid "Disable progress bars."
18081 msgstr ""
18082
18083 #. type: =item
18084 #: ../fish/guestfish.pod:364
18085 msgid "B<--remote[=pid]>"
18086 msgstr "B<--remote[=pid]>"
18087
18088 #. type: textblock
18089 #: ../fish/guestfish.pod:366
18090 msgid ""
18091 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18092 "CONTROL GUESTFISH OVER A SOCKET> below."
18093 msgstr ""
18094
18095 #. type: =item
18096 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18097 #: ../rescue/virt-rescue.pod:161
18098 msgid "B<-r>"
18099 msgstr "B<-r>"
18100
18101 #. type: =item
18102 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18103 #: ../rescue/virt-rescue.pod:163
18104 msgid "B<--ro>"
18105 msgstr "B<--ro>"
18106
18107 #. type: textblock
18108 #: ../fish/guestfish.pod:373
18109 msgid ""
18110 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18111 "mounts are done read-only."
18112 msgstr ""
18113
18114 #. type: textblock
18115 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18116 msgid ""
18117 "The option must always be used if the disk image or virtual machine might be "
18118 "running, and is generally recommended in cases where you don't need write "
18119 "access to the disk."
18120 msgstr ""
18121
18122 #. type: textblock
18123 #: ../fish/guestfish.pod:380
18124 msgid ""
18125 "Note that prepared disk images created with I<-N> are not affected by this "
18126 "option.  Also commands like C<add> are not affected - you have to specify "
18127 "the C<readonly:true> option explicitly if you need it."
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/guestfish.pod:384
18132 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18133 msgstr ""
18134
18135 #. type: =item
18136 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18137 #: ../rescue/virt-rescue.pod:173
18138 msgid "B<--selinux>"
18139 msgstr "B<--selinux>"
18140
18141 #. type: textblock
18142 #: ../fish/guestfish.pod:388
18143 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:394
18148 msgid ""
18149 "Enable very verbose messages.  This is particularly useful if you find a bug."
18150 msgstr ""
18151
18152 #. type: textblock
18153 #: ../fish/guestfish.pod:401
18154 msgid "Display the guestfish / libguestfs version number and exit."
18155 msgstr ""
18156
18157 #. type: =item
18158 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18159 #: ../rescue/virt-rescue.pod:194
18160 msgid "B<-w>"
18161 msgstr "B<-w>"
18162
18163 #. type: =item
18164 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18165 #: ../rescue/virt-rescue.pod:196
18166 msgid "B<--rw>"
18167 msgstr "B<--rw>"
18168
18169 #. type: textblock
18170 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18171 msgid ""
18172 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18173 "mounts are done read-write."
18174 msgstr ""
18175
18176 #. type: textblock
18177 #: ../fish/guestfish.pod:410
18178 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish.pod:414
18183 msgid "Echo each command before executing it."
18184 msgstr ""
18185
18186 #. type: =head1
18187 #: ../fish/guestfish.pod:418
18188 msgid "COMMANDS ON COMMAND LINE"
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish.pod:420
18193 msgid ""
18194 "Any additional (non-option) arguments are treated as commands to execute."
18195 msgstr ""
18196
18197 #. type: textblock
18198 #: ../fish/guestfish.pod:423
18199 msgid ""
18200 "Commands to execute should be separated by a colon (C<:>), where the colon "
18201 "is a separate parameter.  Thus:"
18202 msgstr ""
18203
18204 #. type: verbatim
18205 #: ../fish/guestfish.pod:426
18206 #, no-wrap
18207 msgid ""
18208 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18209 "\n"
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../fish/guestfish.pod:428
18214 msgid ""
18215 "If there are no additional arguments, then we enter a shell, either an "
18216 "interactive shell with a prompt (if the input is a terminal) or a non-"
18217 "interactive shell."
18218 msgstr ""
18219
18220 #. type: textblock
18221 #: ../fish/guestfish.pod:432
18222 msgid ""
18223 "In either command line mode or non-interactive shell, the first command that "
18224 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18225 "prompt) if a command fails, you can continue to enter commands."
18226 msgstr ""
18227
18228 #. type: =head1
18229 #: ../fish/guestfish.pod:437
18230 msgid "USING launch (OR run)"
18231 msgstr ""
18232
18233 #. type: textblock
18234 #: ../fish/guestfish.pod:439
18235 msgid ""
18236 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18237 "then launch it, then mount any disks you need, and finally issue actions/"
18238 "commands.  So the general order of the day is:"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:447
18243 msgid "add or -a/--add"
18244 msgstr ""
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:451
18248 msgid "launch (aka run)"
18249 msgstr ""
18250
18251 #. type: textblock
18252 #: ../fish/guestfish.pod:455
18253 msgid "mount or -m/--mount"
18254 msgstr ""
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:459
18258 msgid "any other commands"
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish.pod:463
18263 msgid ""
18264 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18265 "guest before mounting or performing any other commands."
18266 msgstr ""
18267
18268 #. type: textblock
18269 #: ../fish/guestfish.pod:466
18270 msgid ""
18271 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18272 "I<--new> options were given then C<run> is done automatically, simply "
18273 "because guestfish can't perform the action you asked for without doing this."
18274 msgstr ""
18275
18276 #. type: =head1
18277 #: ../fish/guestfish.pod:471
18278 msgid "OPENING DISKS FOR READ AND WRITE"
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../fish/guestfish.pod:473
18283 msgid ""
18284 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18285 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18286 "I<-i> and I<-m> open disk images read-only or for writing."
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:478
18291 msgid ""
18292 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18293 "opening disk images supplied on the command line for write.  To open a disk "
18294 "image read-only you have to do I<-a image --ro>."
18295 msgstr ""
18296
18297 #. type: textblock
18298 #: ../fish/guestfish.pod:482
18299 msgid ""
18300 "This matters: If you accidentally open a live VM disk image writable then "
18301 "you will cause irreversible disk corruption."
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../fish/guestfish.pod:485
18306 msgid ""
18307 "In a future libguestfs we intend to change the default the other way.  Disk "
18308 "images will be opened read-only.  You will have to either specify "
18309 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18310 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18311 "access for disk images specified by those other command line options."
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:492
18316 msgid ""
18317 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18318 "which does nothing (it is already the default).  However it is highly "
18319 "recommended that you use this option to indicate that you need write access, "
18320 "and prepare your scripts for the day when this option will be required for "
18321 "write access."
18322 msgstr ""
18323
18324 #. type: textblock
18325 #: ../fish/guestfish.pod:498
18326 msgid ""
18327 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18328 "other libguestfs program apart from guestfish and guestmount."
18329 msgstr ""
18330
18331 #. type: =head1
18332 #: ../fish/guestfish.pod:501
18333 msgid "QUOTING"
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish.pod:503
18338 msgid ""
18339 "You can quote ordinary parameters using either single or double quotes.  For "
18340 "example:"
18341 msgstr ""
18342
18343 #. type: verbatim
18344 #: ../fish/guestfish.pod:506
18345 #, no-wrap
18346 msgid ""
18347 " add \"file with a space.img\"\n"
18348 "\n"
18349 msgstr ""
18350
18351 #. type: verbatim
18352 #: ../fish/guestfish.pod:508
18353 #, no-wrap
18354 msgid ""
18355 " rm '/file name'\n"
18356 "\n"
18357 msgstr ""
18358
18359 #. type: verbatim
18360 #: ../fish/guestfish.pod:510
18361 #, no-wrap
18362 msgid ""
18363 " rm '/\"'\n"
18364 "\n"
18365 msgstr ""
18366
18367 #. type: textblock
18368 #: ../fish/guestfish.pod:512
18369 msgid ""
18370 "A few commands require a list of strings to be passed.  For these, use a "
18371 "whitespace-separated list, enclosed in quotes.  Strings containing "
18372 "whitespace to be passed through must be enclosed in single quotes.  A "
18373 "literal single quote must be escaped with a backslash."
18374 msgstr ""
18375
18376 #. type: verbatim
18377 #: ../fish/guestfish.pod:517
18378 #, no-wrap
18379 msgid ""
18380 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18381 " command \"/bin/echo 'foo      bar'\"\n"
18382 " command \"/bin/echo \\'foo\\'\"\n"
18383 "\n"
18384 msgstr ""
18385
18386 #. type: =head2
18387 #: ../fish/guestfish.pod:521
18388 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18389 msgstr ""
18390
18391 #. type: textblock
18392 #: ../fish/guestfish.pod:523
18393 msgid ""
18394 "In double-quoted arguments (only) use backslash to insert special characters:"
18395 msgstr ""
18396
18397 #. type: =item
18398 #: ../fish/guestfish.pod:528
18399 msgid "C<\\a>"
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../fish/guestfish.pod:530
18404 msgid "Alert (bell) character."
18405 msgstr ""
18406
18407 #. type: =item
18408 #: ../fish/guestfish.pod:532
18409 msgid "C<\\b>"
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish.pod:534
18414 msgid "Backspace character."
18415 msgstr ""
18416
18417 #. type: =item
18418 #: ../fish/guestfish.pod:536
18419 msgid "C<\\f>"
18420 msgstr ""
18421
18422 #. type: textblock
18423 #: ../fish/guestfish.pod:538
18424 msgid "Form feed character."
18425 msgstr ""
18426
18427 #. type: =item
18428 #: ../fish/guestfish.pod:540
18429 msgid "C<\\n>"
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fish/guestfish.pod:542
18434 msgid "Newline character."
18435 msgstr ""
18436
18437 #. type: =item
18438 #: ../fish/guestfish.pod:544
18439 msgid "C<\\r>"
18440 msgstr ""
18441
18442 #. type: textblock
18443 #: ../fish/guestfish.pod:546
18444 msgid "Carriage return character."
18445 msgstr ""
18446
18447 #. type: =item
18448 #: ../fish/guestfish.pod:548
18449 msgid "C<\\t>"
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../fish/guestfish.pod:550
18454 msgid "Horizontal tab character."
18455 msgstr ""
18456
18457 #. type: =item
18458 #: ../fish/guestfish.pod:552
18459 msgid "C<\\v>"
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:554
18464 msgid "Vertical tab character."
18465 msgstr ""
18466
18467 #. type: =item
18468 #: ../fish/guestfish.pod:556
18469 msgid "C<\\\">"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish.pod:558
18474 msgid "A literal double quote character."
18475 msgstr ""
18476
18477 #. type: =item
18478 #: ../fish/guestfish.pod:560
18479 msgid "C<\\ooo>"
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fish/guestfish.pod:562
18484 msgid ""
18485 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18486 "(unlike C)."
18487 msgstr ""
18488
18489 #. type: =item
18490 #: ../fish/guestfish.pod:565
18491 msgid "C<\\xhh>"
18492 msgstr ""
18493
18494 #. type: textblock
18495 #: ../fish/guestfish.pod:567
18496 msgid ""
18497 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18498 msgstr ""
18499
18500 #. type: textblock
18501 #: ../fish/guestfish.pod:570
18502 msgid ""
18503 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18504 "strings."
18505 msgstr ""
18506
18507 #. type: =item
18508 #: ../fish/guestfish.pod:573
18509 msgid "C<\\\\>"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:575
18514 msgid "A literal backslash character."
18515 msgstr ""
18516
18517 #. type: =head1
18518 #: ../fish/guestfish.pod:579
18519 msgid "OPTIONAL ARGUMENTS"
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:581
18524 msgid ""
18525 "Some commands take optional arguments.  These arguments appear in this "
18526 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18527 msgstr ""
18528
18529 #. type: verbatim
18530 #: ../fish/guestfish.pod:585
18531 #, no-wrap
18532 msgid ""
18533 " add-drive-opts filename\n"
18534 "\n"
18535 msgstr ""
18536
18537 #. type: verbatim
18538 #: ../fish/guestfish.pod:587
18539 #, no-wrap
18540 msgid ""
18541 " add-drive-opts filename readonly:true\n"
18542 "\n"
18543 msgstr ""
18544
18545 #. type: verbatim
18546 #: ../fish/guestfish.pod:589
18547 #, no-wrap
18548 msgid ""
18549 " add-drive-opts filename format:qcow2 readonly:false\n"
18550 "\n"
18551 msgstr ""
18552
18553 #. type: textblock
18554 #: ../fish/guestfish.pod:591
18555 msgid ""
18556 "Each optional argument can appear at most once.  All optional arguments must "
18557 "appear after the required ones."
18558 msgstr ""
18559
18560 #. type: =head1
18561 #: ../fish/guestfish.pod:594
18562 msgid "NUMBERS"
18563 msgstr "ЧИСЛА"
18564
18565 #. type: textblock
18566 #: ../fish/guestfish.pod:596
18567 msgid ""
18568 "This section applies to all commands which can take integers as parameters."
18569 msgstr ""
18570
18571 #. type: =head2
18572 #: ../fish/guestfish.pod:599
18573 msgid "SIZE SUFFIX"
18574 msgstr ""
18575
18576 #. type: textblock
18577 #: ../fish/guestfish.pod:601
18578 msgid ""
18579 "When the command takes a parameter measured in bytes, you can use one of the "
18580 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18581 msgstr ""
18582
18583 #. type: =item
18584 #: ../fish/guestfish.pod:607
18585 msgid "B<k> or B<K> or B<KiB>"
18586 msgstr "B<k>, B<K> або B<KiB>"
18587
18588 #. type: textblock
18589 #: ../fish/guestfish.pod:609
18590 msgid "The size in kilobytes (multiplied by 1024)."
18591 msgstr ""
18592
18593 #. type: =item
18594 #: ../fish/guestfish.pod:611
18595 msgid "B<KB>"
18596 msgstr "B<KB>"
18597
18598 #. type: textblock
18599 #: ../fish/guestfish.pod:613
18600 msgid "The size in SI 1000 byte units."
18601 msgstr ""
18602
18603 #. type: =item
18604 #: ../fish/guestfish.pod:615
18605 msgid "B<M> or B<MiB>"
18606 msgstr "B<M> або B<MiB>"
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:617
18610 msgid "The size in megabytes (multiplied by 1048576)."
18611 msgstr ""
18612
18613 #. type: =item
18614 #: ../fish/guestfish.pod:619
18615 msgid "B<MB>"
18616 msgstr "B<MB>"
18617
18618 #. type: textblock
18619 #: ../fish/guestfish.pod:621
18620 msgid "The size in SI 1000000 byte units."
18621 msgstr ""
18622
18623 #. type: =item
18624 #: ../fish/guestfish.pod:623
18625 msgid "B<G> or B<GiB>"
18626 msgstr "B<G> або B<GiB>"
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:625
18630 msgid "The size in gigabytes (multiplied by 2**30)."
18631 msgstr "Розмір у гігабайтах (з множником 2**30)."
18632
18633 #. type: =item
18634 #: ../fish/guestfish.pod:627
18635 msgid "B<GB>"
18636 msgstr "B<GB>"
18637
18638 #. type: textblock
18639 #: ../fish/guestfish.pod:629
18640 msgid "The size in SI 10**9 byte units."
18641 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18642
18643 #. type: =item
18644 #: ../fish/guestfish.pod:631
18645 msgid "B<T> or B<TiB>"
18646 msgstr "B<T> або B<TiB>"
18647
18648 #. type: textblock
18649 #: ../fish/guestfish.pod:633
18650 msgid "The size in terabytes (multiplied by 2**40)."
18651 msgstr "Розмір у терабайтах (з множником 2**40)."
18652
18653 #. type: =item
18654 #: ../fish/guestfish.pod:635
18655 msgid "B<TB>"
18656 msgstr "B<TB>"
18657
18658 #. type: textblock
18659 #: ../fish/guestfish.pod:637
18660 msgid "The size in SI 10**12 byte units."
18661 msgstr ""
18662
18663 #. type: =item
18664 #: ../fish/guestfish.pod:639
18665 msgid "B<P> or B<PiB>"
18666 msgstr "B<P> або B<PiB>"
18667
18668 #. type: textblock
18669 #: ../fish/guestfish.pod:641
18670 msgid "The size in petabytes (multiplied by 2**50)."
18671 msgstr ""
18672
18673 #. type: =item
18674 #: ../fish/guestfish.pod:643
18675 msgid "B<PB>"
18676 msgstr "B<PB>"
18677
18678 #. type: textblock
18679 #: ../fish/guestfish.pod:645
18680 msgid "The size in SI 10**15 byte units."
18681 msgstr ""
18682
18683 #. type: =item
18684 #: ../fish/guestfish.pod:647
18685 msgid "B<E> or B<EiB>"
18686 msgstr "B<E> або B<EiB>"
18687
18688 #. type: textblock
18689 #: ../fish/guestfish.pod:649
18690 msgid "The size in exabytes (multiplied by 2**60)."
18691 msgstr ""
18692
18693 #. type: =item
18694 #: ../fish/guestfish.pod:651
18695 msgid "B<EB>"
18696 msgstr "B<EB>"
18697
18698 #. type: textblock
18699 #: ../fish/guestfish.pod:653
18700 msgid "The size in SI 10**18 byte units."
18701 msgstr ""
18702
18703 #. type: =item
18704 #: ../fish/guestfish.pod:655
18705 msgid "B<Z> or B<ZiB>"
18706 msgstr "B<Z> або B<ZiB>"
18707
18708 #. type: textblock
18709 #: ../fish/guestfish.pod:657
18710 msgid "The size in zettabytes (multiplied by 2**70)."
18711 msgstr ""
18712
18713 #. type: =item
18714 #: ../fish/guestfish.pod:659
18715 msgid "B<ZB>"
18716 msgstr "B<ZB>"
18717
18718 #. type: textblock
18719 #: ../fish/guestfish.pod:661
18720 msgid "The size in SI 10**21 byte units."
18721 msgstr ""
18722
18723 #. type: =item
18724 #: ../fish/guestfish.pod:663
18725 msgid "B<Y> or B<YiB>"
18726 msgstr "B<Y> або B<YiB>"
18727
18728 #. type: textblock
18729 #: ../fish/guestfish.pod:665
18730 msgid "The size in yottabytes (multiplied by 2**80)."
18731 msgstr ""
18732
18733 #. type: =item
18734 #: ../fish/guestfish.pod:667
18735 msgid "B<YB>"
18736 msgstr "B<YB>"
18737
18738 #. type: textblock
18739 #: ../fish/guestfish.pod:669
18740 msgid "The size in SI 10**24 byte units."
18741 msgstr ""
18742
18743 #. type: verbatim
18744 #: ../fish/guestfish.pod:675
18745 #, no-wrap
18746 msgid ""
18747 " truncate-size /file 1G\n"
18748 "\n"
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:677
18753 msgid "would truncate the file to 1 gigabyte."
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fish/guestfish.pod:679
18758 msgid ""
18759 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18760 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18761 "suffix will probably not do what you expect."
18762 msgstr ""
18763
18764 #. type: =head2
18765 #: ../fish/guestfish.pod:683
18766 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18767 msgstr ""
18768
18769 #. type: textblock
18770 #: ../fish/guestfish.pod:685
18771 msgid ""
18772 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18773 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18774 msgstr ""
18775
18776 #. type: verbatim
18777 #: ../fish/guestfish.pod:688
18778 #, no-wrap
18779 msgid ""
18780 " 1234      decimal number 1234\n"
18781 " 02322     octal number, equivalent to decimal 1234\n"
18782 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18783 "\n"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:692
18788 msgid ""
18789 "When using the C<chmod> command, you almost always want to specify an octal "
18790 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18791 "L<chmod(1)> program):"
18792 msgstr ""
18793
18794 #. type: verbatim
18795 #: ../fish/guestfish.pod:696
18796 #, no-wrap
18797 msgid ""
18798 " chmod 0777 /public  # OK\n"
18799 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18800 "\n"
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:699
18805 msgid ""
18806 "Commands that return numbers usually print them in decimal, but some "
18807 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18808 "octal, preceeded by C<0>)."
18809 msgstr ""
18810
18811 #. type: =head1
18812 #: ../fish/guestfish.pod:703
18813 msgid "WILDCARDS AND GLOBBING"
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/guestfish.pod:705
18818 msgid ""
18819 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18820 "(globbing) by default.  So for example the following will not do what you "
18821 "expect:"
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../fish/guestfish.pod:709
18826 #, no-wrap
18827 msgid ""
18828 " rm-rf /home/*\n"
18829 "\n"
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../fish/guestfish.pod:711
18834 msgid ""
18835 "Assuming you don't have a directory called literally C</home/*> then the "
18836 "above command will return an error."
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish.pod:714
18841 msgid "To perform wildcard expansion, use the C<glob> command."
18842 msgstr ""
18843
18844 #. type: verbatim
18845 #: ../fish/guestfish.pod:716
18846 #, no-wrap
18847 msgid ""
18848 " glob rm-rf /home/*\n"
18849 "\n"
18850 msgstr ""
18851
18852 #. type: textblock
18853 #: ../fish/guestfish.pod:718
18854 msgid ""
18855 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18856 "many times), equivalent to:"
18857 msgstr ""
18858
18859 #. type: verbatim
18860 #: ../fish/guestfish.pod:721
18861 #, no-wrap
18862 msgid ""
18863 " rm-rf /home/jim\n"
18864 " rm-rf /home/joe\n"
18865 " rm-rf /home/mary\n"
18866 "\n"
18867 msgstr ""
18868
18869 #. type: textblock
18870 #: ../fish/guestfish.pod:725
18871 msgid "C<glob> only works on simple guest paths and not on device names."
18872 msgstr ""
18873
18874 #. type: textblock
18875 #: ../fish/guestfish.pod:727
18876 msgid ""
18877 "If you have several parameters, each containing a wildcard, then glob will "
18878 "perform a Cartesian product."
18879 msgstr ""
18880
18881 #. type: =head1
18882 #: ../fish/guestfish.pod:730
18883 msgid "COMMENTS"
18884 msgstr "КОМЕНТАРІ"
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:732
18888 msgid ""
18889 "Any line which starts with a I<#> character is treated as a comment and "
18890 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18891 "a command.  For example:"
18892 msgstr ""
18893
18894 #. type: verbatim
18895 #: ../fish/guestfish.pod:736
18896 #, no-wrap
18897 msgid ""
18898 " # this is a comment\n"
18899 "         # this is a comment\n"
18900 " foo # NOT a comment\n"
18901 "\n"
18902 msgstr ""
18903
18904 #. type: textblock
18905 #: ../fish/guestfish.pod:740
18906 msgid "Blank lines are also ignored."
18907 msgstr ""
18908
18909 #. type: =head1
18910 #: ../fish/guestfish.pod:742
18911 msgid "RUNNING COMMANDS LOCALLY"
18912 msgstr ""
18913
18914 #. type: textblock
18915 #: ../fish/guestfish.pod:744
18916 msgid ""
18917 "Any line which starts with a I<!> character is treated as a command sent to "
18918 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18919 msgstr ""
18920
18921 #. type: verbatim
18922 #: ../fish/guestfish.pod:748
18923 #, no-wrap
18924 msgid ""
18925 " !mkdir local\n"
18926 " tgz-out /remote local/remote-data.tar.gz\n"
18927 "\n"
18928 msgstr ""
18929
18930 #. type: textblock
18931 #: ../fish/guestfish.pod:751
18932 msgid ""
18933 "will create a directory C<local> on the host, and then export the contents "
18934 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18935 "(See C<tgz-out>)."
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:755
18940 msgid ""
18941 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18942 "effect, due to the way that subprocesses work in Unix."
18943 msgstr ""
18944
18945 #. type: =head2
18946 #: ../fish/guestfish.pod:758
18947 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18948 msgstr ""
18949
18950 #. type: textblock
18951 #: ../fish/guestfish.pod:760
18952 msgid ""
18953 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18954 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18955 "and executed as guestfish commands."
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/guestfish.pod:764
18960 msgid ""
18961 "Thus you can use shell script to construct arbitrary guestfish commands "
18962 "which are then parsed by guestfish."
18963 msgstr ""
18964
18965 #. type: textblock
18966 #: ../fish/guestfish.pod:767
18967 msgid ""
18968 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18969 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18970 "if we use a shell script to create the guestfish commands for us:"
18971 msgstr ""
18972
18973 #. type: verbatim
18974 #: ../fish/guestfish.pod:772
18975 #, no-wrap
18976 msgid ""
18977 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18978 "\n"
18979 msgstr ""
18980
18981 #. type: textblock
18982 #: ../fish/guestfish.pod:774
18983 msgid "or with names like C</foo.001>:"
18984 msgstr ""
18985
18986 #. type: verbatim
18987 #: ../fish/guestfish.pod:776
18988 #, no-wrap
18989 msgid ""
18990 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18991 "\n"
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:778
18996 msgid ""
18997 "When using guestfish interactively it can be helpful to just run the shell "
18998 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18999 "ordinary I<!> local command), see what guestfish commands it would run, and "
19000 "when you are happy with those prepend the C<E<lt>> character to run the "
19001 "guestfish commands for real."
19002 msgstr ""
19003
19004 #. type: =head1
19005 #: ../fish/guestfish.pod:784
19006 msgid "PIPES"
19007 msgstr "КАНАЛИ"
19008
19009 #. type: textblock
19010 #: ../fish/guestfish.pod:786
19011 msgid ""
19012 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19013 "command (a guestfish command) to the second command (any host command).  For "
19014 "example:"
19015 msgstr ""
19016
19017 #. type: verbatim
19018 #: ../fish/guestfish.pod:790
19019 #, no-wrap
19020 msgid ""
19021 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19022 "\n"
19023 msgstr ""
19024
19025 #. type: textblock
19026 #: ../fish/guestfish.pod:792
19027 msgid ""
19028 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19029 "program).  The above command would list all accounts in the guest filesystem "
19030 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19031 msgstr ""
19032
19033 #. type: verbatim
19034 #: ../fish/guestfish.pod:797
19035 #, no-wrap
19036 msgid ""
19037 " hexdump /bin/ls | head\n"
19038 " list-devices | tail -1\n"
19039 " tgz-out / - | tar ztf -\n"
19040 "\n"
19041 msgstr ""
19042
19043 #. type: textblock
19044 #: ../fish/guestfish.pod:801
19045 msgid ""
19046 "The space before the pipe symbol is required, any space after the pipe "
19047 "symbol is optional.  Everything after the pipe symbol is just passed "
19048 "straight to the host shell, so it can contain redirections, globs and "
19049 "anything else that makes sense on the host side."
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../fish/guestfish.pod:806
19054 msgid ""
19055 "To use a literal argument which begins with a pipe symbol, you have to quote "
19056 "it, eg:"
19057 msgstr ""
19058
19059 #. type: verbatim
19060 #: ../fish/guestfish.pod:809
19061 #, no-wrap
19062 msgid ""
19063 " echo \"|\"\n"
19064 "\n"
19065 msgstr ""
19066
19067 #. type: =head1
19068 #: ../fish/guestfish.pod:811
19069 msgid "HOME DIRECTORIES"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:813
19074 msgid ""
19075 "If a parameter starts with the character C<~> then the tilde may be expanded "
19076 "as a home directory path (either C<~> for the current user's home directory, "
19077 "or C<~user> for another user)."
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:817
19082 msgid ""
19083 "Note that home directory expansion happens for users known I<on the host>, "
19084 "not in the guest filesystem."
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fish/guestfish.pod:820
19089 msgid ""
19090 "To use a literal argument which begins with a tilde, you have to quote it, "
19091 "eg:"
19092 msgstr ""
19093
19094 #. type: verbatim
19095 #: ../fish/guestfish.pod:823
19096 #, no-wrap
19097 msgid ""
19098 " echo \"~\"\n"
19099 "\n"
19100 msgstr ""
19101
19102 #. type: =head2
19103 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19104 msgid "ENCRYPTED DISKS"
19105 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19106
19107 #. type: textblock
19108 #: ../fish/guestfish.pod:827
19109 msgid ""
19110 "Libguestfs has some support for Linux guests encrypted according to the "
19111 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19112 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19113 "LUKS is supported."
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../fish/guestfish.pod:832
19118 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19119 msgstr ""
19120
19121 #. type: verbatim
19122 #: ../fish/guestfish.pod:834
19123 #, no-wrap
19124 msgid ""
19125 " ><fs> vfs-type /dev/sda2\n"
19126 " crypto_LUKS\n"
19127 "\n"
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:837
19132 msgid ""
19133 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19134 "device called C</dev/mapper/luksdev>."
19135 msgstr ""
19136
19137 #. type: verbatim
19138 #: ../fish/guestfish.pod:840
19139 #, no-wrap
19140 msgid ""
19141 " ><fs> luks-open /dev/sda2 luksdev\n"
19142 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19143 "\n"
19144 msgstr ""
19145
19146 #. type: textblock
19147 #: ../fish/guestfish.pod:843
19148 msgid ""
19149 "Finally you have to tell LVM to scan for volume groups on the newly created "
19150 "mapper device:"
19151 msgstr ""
19152
19153 #. type: verbatim
19154 #: ../fish/guestfish.pod:846
19155 #, no-wrap
19156 msgid ""
19157 " vgscan\n"
19158 " vg-activate-all true\n"
19159 "\n"
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:849
19164 msgid "The logical volume(s) can now be mounted in the usual way."
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../fish/guestfish.pod:851
19169 msgid ""
19170 "Before closing a LUKS device you must unmount any logical volumes on it and "
19171 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19172 "one.  Then you can close the mapper device:"
19173 msgstr ""
19174
19175 #. type: verbatim
19176 #: ../fish/guestfish.pod:855
19177 #, no-wrap
19178 msgid ""
19179 " vg-activate false /dev/VG\n"
19180 " luks-close /dev/mapper/luksdev\n"
19181 "\n"
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:860
19186 msgid ""
19187 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19188 "letters and paths (with some limitations).  The following commands are "
19189 "equivalent:"
19190 msgstr ""
19191
19192 #. type: verbatim
19193 #: ../fish/guestfish.pod:864
19194 #, no-wrap
19195 msgid ""
19196 " file /WINDOWS/system32/config/system.LOG\n"
19197 "\n"
19198 msgstr ""
19199
19200 #. type: verbatim
19201 #: ../fish/guestfish.pod:866
19202 #, no-wrap
19203 msgid ""
19204 " file win:\\windows\\system32\\config\\system.log\n"
19205 "\n"
19206 msgstr ""
19207
19208 #. type: verbatim
19209 #: ../fish/guestfish.pod:868
19210 #, no-wrap
19211 msgid ""
19212 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19213 "\n"
19214 msgstr ""
19215
19216 #. type: textblock
19217 #: ../fish/guestfish.pod:870
19218 msgid ""
19219 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19220 "where the drive is mounted, prepending that to the path, changing all "
19221 "backslash characters to forward slash, then resolving the result using L</"
19222 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19223 "the parameter might be rewritten like this:"
19224 msgstr ""
19225
19226 #. type: verbatim
19227 #: ../fish/guestfish.pod:876
19228 #, no-wrap
19229 msgid ""
19230 " win:e:\\foo\\bar => /e/FOO/bar\n"
19231 "\n"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:878
19236 msgid "This only works in argument positions that expect a path."
19237 msgstr ""
19238
19239 #. type: =head1
19240 #: ../fish/guestfish.pod:880
19241 msgid "UPLOADING AND DOWNLOADING FILES"
19242 msgstr ""
19243
19244 #. type: textblock
19245 #: ../fish/guestfish.pod:882
19246 msgid ""
19247 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19248 "others which upload from or download to a local file, you can use the "
19249 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19250 msgstr ""
19251
19252 #. type: verbatim
19253 #: ../fish/guestfish.pod:886
19254 #, no-wrap
19255 msgid ""
19256 " upload - /foo\n"
19257 "\n"
19258 msgstr ""
19259
19260 #. type: textblock
19261 #: ../fish/guestfish.pod:888
19262 msgid ""
19263 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19264 msgstr ""
19265
19266 #. type: verbatim
19267 #: ../fish/guestfish.pod:891
19268 #, no-wrap
19269 msgid ""
19270 " tar-out /etc - | tar tf -\n"
19271 "\n"
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:893
19276 msgid ""
19277 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19278 "command (see L</PIPES>)."
19279 msgstr ""
19280
19281 #. type: textblock
19282 #: ../fish/guestfish.pod:896
19283 msgid ""
19284 "When using C<-> to read from stdin, the input is read up to the end of "
19285 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19286 "some arbitrary end marker:"
19287 msgstr ""
19288
19289 #. type: verbatim
19290 #: ../fish/guestfish.pod:900
19291 #, no-wrap
19292 msgid ""
19293 " upload -<<END /foo\n"
19294 " input line 1\n"
19295 " input line 2\n"
19296 " input line 3\n"
19297 " END\n"
19298 "\n"
19299 msgstr ""
19300
19301 #. type: textblock
19302 #: ../fish/guestfish.pod:906
19303 msgid ""
19304 "Any string of characters can be used instead of C<END>.  The end marker must "
19305 "appear on a line of its own, without any preceeding or following characters "
19306 "(not even spaces)."
19307 msgstr ""
19308
19309 #. type: textblock
19310 #: ../fish/guestfish.pod:910
19311 msgid ""
19312 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19313 "upload local files (so-called \"FileIn\" parameters in the generator)."
19314 msgstr ""
19315
19316 #. type: =head1
19317 #: ../fish/guestfish.pod:913
19318 msgid "EXIT ON ERROR BEHAVIOUR"
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:915
19323 msgid ""
19324 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19325 "taking commands from a human over a tty), and will exit on the first error "
19326 "in non-interactive mode (scripts, commands given on the command line)."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/guestfish.pod:920
19331 msgid ""
19332 "If you prefix a command with a I<-> character, then that command will not "
19333 "cause guestfish to exit, even if that (one) command returns an error."
19334 msgstr ""
19335
19336 #. type: =head1
19337 #: ../fish/guestfish.pod:924
19338 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:926
19343 msgid ""
19344 "Guestfish can be remote-controlled over a socket.  This is useful "
19345 "particularly in shell scripts where you want to make several different "
19346 "changes to a filesystem, but you don't want the overhead of starting up a "
19347 "guestfish process each time."
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fish/guestfish.pod:931
19352 msgid "Start a guestfish server process using:"
19353 msgstr ""
19354
19355 #. type: verbatim
19356 #: ../fish/guestfish.pod:933
19357 #, no-wrap
19358 msgid ""
19359 " eval \"`guestfish --listen`\"\n"
19360 "\n"
19361 msgstr ""
19362
19363 #. type: textblock
19364 #: ../fish/guestfish.pod:935
19365 msgid "and then send it commands by doing:"
19366 msgstr ""
19367
19368 #. type: verbatim
19369 #: ../fish/guestfish.pod:937
19370 #, no-wrap
19371 msgid ""
19372 " guestfish --remote cmd [...]\n"
19373 "\n"
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish.pod:939
19378 msgid "To cause the server to exit, send it the exit command:"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:943
19383 msgid ""
19384 "Note that the server will normally exit if there is an error in a command.  "
19385 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19386 "BEHAVIOUR>."
19387 msgstr ""
19388
19389 #. type: =head2
19390 #: ../fish/guestfish.pod:947
19391 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19392 msgstr ""
19393
19394 #. type: textblock
19395 #: ../fish/guestfish.pod:949
19396 msgid ""
19397 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19398 "is how the I<--remote> option knows where to send the commands.  You can "
19399 "have several guestfish listener processes running using:"
19400 msgstr ""
19401
19402 #. type: verbatim
19403 #: ../fish/guestfish.pod:953
19404 #, no-wrap
19405 msgid ""
19406 " eval \"`guestfish --listen`\"\n"
19407 " pid1=$GUESTFISH_PID\n"
19408 " eval \"`guestfish --listen`\"\n"
19409 " pid2=$GUESTFISH_PID\n"
19410 " ...\n"
19411 " guestfish --remote=$pid1 cmd\n"
19412 " guestfish --remote=$pid2 cmd\n"
19413 "\n"
19414 msgstr ""
19415
19416 #. type: =head2
19417 #: ../fish/guestfish.pod:961
19418 msgid "REMOTE CONTROL AND CSH"
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../fish/guestfish.pod:963
19423 msgid ""
19424 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19425 "option:"
19426 msgstr ""
19427
19428 #. type: verbatim
19429 #: ../fish/guestfish.pod:966
19430 #, no-wrap
19431 msgid ""
19432 " eval \"`guestfish --listen --csh`\"\n"
19433 "\n"
19434 msgstr ""
19435
19436 #. type: =head2
19437 #: ../fish/guestfish.pod:968
19438 msgid "REMOTE CONTROL DETAILS"
19439 msgstr ""
19440
19441 #. type: textblock
19442 #: ../fish/guestfish.pod:970
19443 msgid ""
19444 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19445 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19446 "and C<$PID> is the process ID of the server."
19447 msgstr ""
19448
19449 #. type: textblock
19450 #: ../fish/guestfish.pod:974
19451 msgid "Guestfish client and server versions must match exactly."
19452 msgstr ""
19453
19454 #. type: =head2
19455 #: ../fish/guestfish.pod:976
19456 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19457 msgstr ""
19458
19459 #. type: textblock
19460 #: ../fish/guestfish.pod:978
19461 msgid ""
19462 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19463 "context hangs, ie. don't do (note the backquotes):"
19464 msgstr ""
19465
19466 #. type: verbatim
19467 #: ../fish/guestfish.pod:981
19468 #, fuzzy, no-wrap
19469 #| msgid ""
19470 #| " guestfish --ro -d myguest -i\n"
19471 #| "\n"
19472 msgid ""
19473 " a=`guestfish --remote run`\n"
19474 "\n"
19475 msgstr ""
19476 " guestfish --ro -d myguest -i\n"
19477 "\n"
19478
19479 #. type: textblock
19480 #: ../fish/guestfish.pod:983
19481 msgid ""
19482 "Since the C<run> command produces no output on stdout, this is not useful "
19483 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19484 "cgi?id=592910>."
19485 msgstr ""
19486
19487 #. type: =head1
19488 #: ../fish/guestfish.pod:987
19489 msgid "PREPARED DISK IMAGES"
19490 msgstr ""
19491
19492 #. type: textblock
19493 #: ../fish/guestfish.pod:989
19494 msgid ""
19495 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19496 "preformatted disk images that guestfish can make for you to save typing.  "
19497 "This is particularly useful for testing purposes.  This option is used "
19498 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19499 "can be mixed with I<-a>)."
19500 msgstr ""
19501
19502 #. type: textblock
19503 #: ../fish/guestfish.pod:995
19504 msgid ""
19505 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19506 "the second and so on.  Existing files in the current directory are "
19507 "I<overwritten>."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../fish/guestfish.pod:999
19512 msgid ""
19513 "The type briefly describes how the disk should be sized, partitioned, how "
19514 "filesystem(s) should be created, and how content should be added.  "
19515 "Optionally the type can be followed by extra parameters, separated by C<:> "
19516 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19517 "allocated disk, containing a single partition, with the partition formatted "
19518 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19519 "disk instead."
19520 msgstr ""
19521
19522 #. type: textblock
19523 #: ../fish/guestfish.pod:1007
19524 msgid "To list the available types and any extra parameters they take, run:"
19525 msgstr ""
19526
19527 #. type: textblock
19528 #: ../fish/guestfish.pod:1011
19529 msgid ""
19530 "Note that the prepared filesystem is not mounted.  You would usually have to "
19531 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19532 msgstr ""
19533
19534 #. type: textblock
19535 #: ../fish/guestfish.pod:1015
19536 msgid ""
19537 "If any I<-N> or I<--new> options are given, the guest is automatically "
19538 "launched."
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../fish/guestfish.pod:1020
19543 msgid "Create a 100MB disk with an ext4-formatted partition:"
19544 msgstr ""
19545
19546 #. type: verbatim
19547 #: ../fish/guestfish.pod:1022
19548 #, no-wrap
19549 msgid ""
19550 " guestfish -N fs:ext4\n"
19551 "\n"
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../fish/guestfish.pod:1024
19556 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19557 msgstr ""
19558
19559 #. type: verbatim
19560 #: ../fish/guestfish.pod:1026
19561 #, no-wrap
19562 msgid ""
19563 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19564 "\n"
19565 msgstr ""
19566
19567 #. type: textblock
19568 #: ../fish/guestfish.pod:1028
19569 msgid "Create a blank 200MB disk:"
19570 msgstr ""
19571
19572 #. type: verbatim
19573 #: ../fish/guestfish.pod:1030
19574 #, no-wrap
19575 msgid ""
19576 " guestfish -N disk:200M\n"
19577 "\n"
19578 msgstr ""
19579
19580 #. type: =head1
19581 #: ../fish/guestfish.pod:1032
19582 msgid "PROGRESS BARS"
19583 msgstr ""
19584
19585 #. type: textblock
19586 #: ../fish/guestfish.pod:1034
19587 msgid ""
19588 "Some (not all) long-running commands send progress notification messages as "
19589 "they are running.  Guestfish turns these messages into progress bars."
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../fish/guestfish.pod:1038
19594 msgid ""
19595 "When a command that supports progress bars takes longer than two seconds to "
19596 "run, and if progress bars are enabled, then you will see one appearing below "
19597 "the command:"
19598 msgstr ""
19599
19600 #. type: verbatim
19601 #: ../fish/guestfish.pod:1042
19602 #, no-wrap
19603 msgid ""
19604 " ><fs> copy-size /large-file /another-file 2048M\n"
19605 " / 10% [#####-----------------------------------------] 00:30\n"
19606 "\n"
19607 msgstr ""
19608
19609 #. type: textblock
19610 #: ../fish/guestfish.pod:1045
19611 msgid ""
19612 "The spinner on the left hand side moves round once for every progress "
19613 "notification received from the backend.  This is a (reasonably) golden "
19614 "assurance that the command is \"doing something\" even if the progress bar "
19615 "is not moving, because the command is able to send the progress "
19616 "notifications.  When the bar reaches 100% and the command finishes, the "
19617 "spinner disappears."
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../fish/guestfish.pod:1052
19622 msgid ""
19623 "Progress bars are enabled by default when guestfish is used interactively.  "
19624 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19625 "and you can disable them completely using I<--no-progress-bars>."
19626 msgstr ""
19627
19628 #. type: =head1
19629 #: ../fish/guestfish.pod:1057
19630 msgid "GUESTFISH COMMANDS"
19631 msgstr ""
19632
19633 #. type: textblock
19634 #: ../fish/guestfish.pod:1059
19635 msgid ""
19636 "The commands in this section are guestfish convenience commands, in other "
19637 "words, they are not part of the L<guestfs(3)> API."
19638 msgstr ""
19639
19640 #. type: =head2
19641 #: ../fish/guestfish.pod:1062
19642 msgid "help"
19643 msgstr "help"
19644
19645 #. type: verbatim
19646 #: ../fish/guestfish.pod:1064
19647 #, no-wrap
19648 msgid ""
19649 " help\n"
19650 " help cmd\n"
19651 "\n"
19652 msgstr ""
19653 " help\n"
19654 " help команда\n"
19655 "\n"
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:1067
19659 msgid "Without any parameter, this provides general help."
19660 msgstr "Без параметра показує загальну довідкову інформацію."
19661
19662 #. type: textblock
19663 #: ../fish/guestfish.pod:1069
19664 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19665 msgstr ""
19666
19667 #. type: =head2
19668 #: ../fish/guestfish.pod:1071
19669 msgid "quit | exit"
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/guestfish.pod:1073
19674 msgid "This exits guestfish.  You can also use C<^D> key."
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/guestfish.pod:1075
19679 msgid "@FISH_COMMANDS@"
19680 msgstr ""
19681
19682 #. type: =head1
19683 #: ../fish/guestfish.pod:1077
19684 msgid "COMMANDS"
19685 msgstr "КОМАНДИ"
19686
19687 #. type: textblock
19688 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
19689 msgid "@ACTIONS@"
19690 msgstr "@ACTIONS@"
19691
19692 #. type: textblock
19693 #: ../fish/guestfish.pod:1083
19694 msgid ""
19695 "guestfish returns 0 if the commands completed without error, or 1 if there "
19696 "was an error."
19697 msgstr ""
19698
19699 #. type: =item
19700 #: ../fish/guestfish.pod:1090
19701 msgid "EDITOR"
19702 msgstr "РЕДАКТОР"
19703
19704 #. type: textblock
19705 #: ../fish/guestfish.pod:1092
19706 msgid ""
19707 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19708 "C<vi>."
19709 msgstr ""
19710
19711 #. type: =item
19712 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
19713 msgid "FEBOOTSTRAP_KERNEL"
19714 msgstr ""
19715
19716 #. type: =item
19717 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
19718 msgid "FEBOOTSTRAP_MODULES"
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
19723 msgid ""
19724 "These two environment variables allow the kernel that libguestfs uses in the "
19725 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19726 "most recent host kernel is chosen.  For more information about kernel "
19727 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19728 "available in febootstrap E<ge> 3.8."
19729 msgstr ""
19730
19731 #. type: =item
19732 #: ../fish/guestfish.pod:1105
19733 msgid "GUESTFISH_DISPLAY_IMAGE"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:1107
19738 msgid ""
19739 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19740 "If not set, it uses L<display(1)>."
19741 msgstr ""
19742
19743 #. type: =item
19744 #: ../fish/guestfish.pod:1110
19745 msgid "GUESTFISH_PID"
19746 msgstr ""
19747
19748 #. type: textblock
19749 #: ../fish/guestfish.pod:1112
19750 msgid ""
19751 "Used with the I<--remote> option to specify the remote guestfish process to "
19752 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19753 msgstr ""
19754
19755 #. type: =item
19756 #: ../fish/guestfish.pod:1116
19757 msgid "HEXEDITOR"
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../fish/guestfish.pod:1118
19762 msgid ""
19763 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19764 "not specified, the external L<hexedit(1)> program is used."
19765 msgstr ""
19766
19767 #. type: =item
19768 #: ../fish/guestfish.pod:1122
19769 msgid "HOME"
19770 msgstr "ДОМІВКА"
19771
19772 #. type: textblock
19773 #: ../fish/guestfish.pod:1124
19774 msgid ""
19775 "If compiled with GNU readline support, various files in the home directory "
19776 "can be used.  See L</FILES>."
19777 msgstr ""
19778
19779 #. type: =item
19780 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
19781 msgid "LIBGUESTFS_APPEND"
19782 msgstr ""
19783
19784 #. type: textblock
19785 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
19786 msgid "Pass additional options to the guest kernel."
19787 msgstr ""
19788
19789 #. type: =item
19790 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
19791 msgid "LIBGUESTFS_DEBUG"
19792 msgstr "LIBGUESTFS_DEBUG"
19793
19794 #. type: textblock
19795 #: ../fish/guestfish.pod:1133
19796 msgid ""
19797 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19798 "effect as using the B<-v> option."
19799 msgstr ""
19800
19801 #. type: =item
19802 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
19803 msgid "LIBGUESTFS_MEMSIZE"
19804 msgstr "LIBGUESTFS_MEMSIZE"
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
19808 msgid ""
19809 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
19814 #, no-wrap
19815 msgid ""
19816 " LIBGUESTFS_MEMSIZE=700\n"
19817 "\n"
19818 msgstr ""
19819 " LIBGUESTFS_MEMSIZE=700\n"
19820 "\n"
19821
19822 #. type: =item
19823 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
19824 msgid "LIBGUESTFS_PATH"
19825 msgstr ""
19826
19827 #. type: textblock
19828 #: ../fish/guestfish.pod:1145
19829 msgid ""
19830 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19831 "the discussion of paths in L<guestfs(3)>."
19832 msgstr ""
19833
19834 #. type: =item
19835 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
19836 msgid "LIBGUESTFS_QEMU"
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
19841 msgid ""
19842 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19843 "which was found at compile time by the configure script is used."
19844 msgstr ""
19845
19846 #. type: =item
19847 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
19848 msgid "LIBGUESTFS_TRACE"
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../fish/guestfish.pod:1156
19853 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19854 msgstr ""
19855
19856 #. type: =item
19857 #: ../fish/guestfish.pod:1158
19858 msgid "PAGER"
19859 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19860
19861 #. type: textblock
19862 #: ../fish/guestfish.pod:1160
19863 msgid ""
19864 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19865 "C<more>."
19866 msgstr ""
19867
19868 #. type: =item
19869 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236
19870 #: ../src/guestfs.pod:3154
19871 msgid "TMPDIR"
19872 msgstr ""
19873
19874 #. type: textblock
19875 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
19876 msgid ""
19877 "Location of temporary directory, defaults to C</tmp> except for the cached "
19878 "supermin appliance which defaults to C</var/tmp>."
19879 msgstr ""
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
19883 msgid ""
19884 "If libguestfs was compiled to use the supermin appliance then the real "
19885 "appliance is cached in this directory, shared between all handles belonging "
19886 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19887 "use in case C</var/tmp> is not large enough."
19888 msgstr ""
19889
19890 #. type: =head1
19891 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19892 #: ../rescue/virt-rescue.pod:273
19893 msgid "FILES"
19894 msgstr "ФАЙЛИ"
19895
19896 #. type: =item
19897 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19898 #: ../rescue/virt-rescue.pod:277
19899 msgid "$HOME/.libguestfs-tools.rc"
19900 msgstr ""
19901
19902 #. type: =item
19903 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19904 #: ../rescue/virt-rescue.pod:279
19905 msgid "/etc/libguestfs-tools.conf"
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19910 #: ../rescue/virt-rescue.pod:281
19911 msgid ""
19912 "This configuration file controls the default read-only or read-write mode "
19913 "(I<--ro> or I<--rw>)."
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/guestfish.pod:1187
19918 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19919 msgstr ""
19920
19921 #. type: =item
19922 #: ../fish/guestfish.pod:1189
19923 msgid "$HOME/.guestfish"
19924 msgstr ""
19925
19926 #. type: textblock
19927 #: ../fish/guestfish.pod:1191
19928 msgid ""
19929 "If compiled with GNU readline support, then the command history is saved in "
19930 "this file."
19931 msgstr ""
19932
19933 #. type: =item
19934 #: ../fish/guestfish.pod:1194
19935 msgid "$HOME/.inputrc"
19936 msgstr ""
19937
19938 #. type: =item
19939 #: ../fish/guestfish.pod:1196
19940 msgid "/etc/inputrc"
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:1198
19945 msgid ""
19946 "If compiled with GNU readline support, then these files can be used to "
19947 "configure readline.  For further information, please see L<readline(3)/"
19948 "INITIALIZATION FILE>."
19949 msgstr ""
19950
19951 #. type: textblock
19952 #: ../fish/guestfish.pod:1202
19953 msgid "To write rules which only apply to guestfish, use:"
19954 msgstr ""
19955
19956 #. type: verbatim
19957 #: ../fish/guestfish.pod:1204
19958 #, no-wrap
19959 msgid ""
19960 " $if guestfish\n"
19961 " ...\n"
19962 " $endif\n"
19963 "\n"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../fish/guestfish.pod:1208
19968 msgid ""
19969 "Variables that you can set in inputrc that change the behaviour of guestfish "
19970 "in useful ways include:"
19971 msgstr ""
19972
19973 #. type: =item
19974 #: ../fish/guestfish.pod:1213
19975 msgid "completion-ignore-case (default: on)"
19976 msgstr ""
19977
19978 #. type: textblock
19979 #: ../fish/guestfish.pod:1215
19980 msgid ""
19981 "By default, guestfish will ignore case when tab-completing paths on the "
19982 "disk.  Use:"
19983 msgstr ""
19984
19985 #. type: verbatim
19986 #: ../fish/guestfish.pod:1218
19987 #, no-wrap
19988 msgid ""
19989 " set completion-ignore-case off\n"
19990 "\n"
19991 msgstr ""
19992
19993 #. type: textblock
19994 #: ../fish/guestfish.pod:1220
19995 msgid "to make guestfish case sensitive."
19996 msgstr ""
19997
19998 #. type: =item
19999 #: ../fish/guestfish.pod:1224
20000 msgid "test1.img"
20001 msgstr ""
20002
20003 #. type: =item
20004 #: ../fish/guestfish.pod:1226
20005 msgid "test2.img (etc)"
20006 msgstr ""
20007
20008 #. type: textblock
20009 #: ../fish/guestfish.pod:1228
20010 msgid ""
20011 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20012 "will be created in the file C<test1.img> in the current directory.  The "
20013 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20014 "the same name will be overwritten."
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../fish/guestfish.pod:1237
20019 msgid ""
20020 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
20021 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
20022 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
20023 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
20024 ">, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)"
20025 ">, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-"
20026 "helper(8)>."
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:1267 ../src/guestfs.pod:3248
20031 #: ../test-tool/libguestfs-test-tool.pod:112
20032 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../fish/virt-copy-in.pod:5
20037 msgid ""
20038 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fish/virt-copy-in.pod:9
20043 #, no-wrap
20044 msgid ""
20045 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: verbatim
20050 #: ../fish/virt-copy-in.pod:11
20051 #, no-wrap
20052 msgid ""
20053 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20054 "\n"
20055 msgstr ""
20056
20057 #. type: textblock
20058 #: ../fish/virt-copy-in.pod:15
20059 msgid ""
20060 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20061 "causing disk corruption.  The virtual machine must be shut down before you "
20062 "use this command."
20063 msgstr ""
20064
20065 #. type: textblock
20066 #: ../fish/virt-copy-in.pod:21
20067 msgid ""
20068 "C<virt-copy-in> copies files and directories from the local disk into a "
20069 "virtual machine disk image or named libvirt domain."
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../fish/virt-copy-in.pod:24
20074 msgid ""
20075 "You can give one of more filenames and directories on the command line.  "
20076 "Directories are copied in recursively.  The final parameter must be the "
20077 "destination directory in the disk image which must be an absolute path "
20078 "starting with a C</> character."
20079 msgstr ""
20080
20081 #. type: verbatim
20082 #: ../fish/virt-copy-in.pod:33
20083 #, no-wrap
20084 msgid ""
20085 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20086 "\n"
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20091 msgid "Upload a home directory to a guest:"
20092 msgstr ""
20093
20094 #. type: verbatim
20095 #: ../fish/virt-copy-in.pod:37
20096 #, no-wrap
20097 msgid ""
20098 " virt-copy-in -d MyGuest skel /home\n"
20099 "\n"
20100 msgstr ""
20101
20102 #. type: =head1
20103 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20104 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20105 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20106 msgstr ""
20107
20108 #. type: textblock
20109 #: ../fish/virt-copy-in.pod:41
20110 msgid ""
20111 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20112 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20113 "are probably better off using guestfish directly."
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20118 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20119 msgid ""
20120 "Since the shell script just passes options straight to guestfish, read "
20121 "L<guestfish(1)> to see the full list of options."
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../fish/virt-copy-in.pod:52
20126 #, fuzzy
20127 #| msgid ""
20128 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20129 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20130 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20131 #| "libguestfs.org/>."
20132 msgid ""
20133 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20134 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20135 msgstr ""
20136 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20137 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20138 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20139 "org/>."
20140
20141 #. type: textblock
20142 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20143 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20144 #, fuzzy
20145 #| msgid "Copyright (C) 2009 Red Hat Inc."
20146 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20147 msgstr "© Red Hat Inc., 2009"
20148
20149 #. type: textblock
20150 #: ../fish/virt-copy-out.pod:5
20151 msgid ""
20152 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20153 "image."
20154 msgstr ""
20155
20156 #. type: verbatim
20157 #: ../fish/virt-copy-out.pod:9
20158 #, no-wrap
20159 msgid ""
20160 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20161 "\n"
20162 msgstr ""
20163
20164 #. type: verbatim
20165 #: ../fish/virt-copy-out.pod:11
20166 #, no-wrap
20167 msgid ""
20168 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20169 "\n"
20170 msgstr ""
20171
20172 #. type: textblock
20173 #: ../fish/virt-copy-out.pod:15
20174 msgid ""
20175 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20176 "image or named libvirt domain."
20177 msgstr ""
20178
20179 #. type: textblock
20180 #: ../fish/virt-copy-out.pod:18
20181 msgid ""
20182 "You can give one of more filenames and directories on the command line.  "
20183 "Directories are copied out recursively."
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../fish/virt-copy-out.pod:23
20188 msgid "Download the home directories from a virtual machine:"
20189 msgstr ""
20190
20191 #. type: verbatim
20192 #: ../fish/virt-copy-out.pod:25
20193 #, no-wrap
20194 msgid ""
20195 " mkdir homes\n"
20196 " virt-copy-out -d MyGuest /home homes\n"
20197 "\n"
20198 msgstr ""
20199
20200 #. type: textblock
20201 #: ../fish/virt-copy-out.pod:30
20202 msgid ""
20203 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20204 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20205 "are probably better off using guestfish directly."
20206 msgstr ""
20207
20208 #. type: textblock
20209 #: ../fish/virt-copy-out.pod:41
20210 #, fuzzy
20211 #| msgid ""
20212 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20213 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20214 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20215 #| "libguestfs.org/>."
20216 msgid ""
20217 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20218 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20219 msgstr ""
20220 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20221 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20222 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20223 "org/>."
20224
20225 #. type: textblock
20226 #: ../fish/virt-tar-in.pod:5
20227 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20228 msgstr ""
20229
20230 #. type: verbatim
20231 #: ../fish/virt-tar-in.pod:9
20232 #, no-wrap
20233 msgid ""
20234 " virt-tar-in -a disk.img data.tar /destination\n"
20235 "\n"
20236 msgstr ""
20237
20238 #. type: verbatim
20239 #: ../fish/virt-tar-in.pod:11
20240 #, no-wrap
20241 msgid ""
20242 " virt-tar-in -d domain data.tar /destination\n"
20243 "\n"
20244 msgstr ""
20245
20246 #. type: verbatim
20247 #: ../fish/virt-tar-in.pod:13
20248 #, no-wrap
20249 msgid ""
20250 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20251 "\n"
20252 msgstr ""
20253
20254 #. type: textblock
20255 #: ../fish/virt-tar-in.pod:17
20256 msgid ""
20257 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20258 "causing disk corruption.  The virtual machine must be shut down before you "
20259 "use this command."
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/virt-tar-in.pod:23
20264 msgid ""
20265 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20266 "image or named libvirt domain."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fish/virt-tar-in.pod:26
20271 msgid ""
20272 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20273 "standard input.  The second parameter is the absolute target directory to "
20274 "unpack into."
20275 msgstr ""
20276
20277 #. type: verbatim
20278 #: ../fish/virt-tar-in.pod:34
20279 #, no-wrap
20280 msgid ""
20281 " virt-tar-in -d MyGuest homes.tar /home\n"
20282 "\n"
20283 msgstr ""
20284
20285 #. type: textblock
20286 #: ../fish/virt-tar-in.pod:38
20287 msgid ""
20288 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20289 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20290 "probably better off using guestfish directly."
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../fish/virt-tar-in.pod:49
20295 #, fuzzy
20296 #| msgid ""
20297 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20298 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20299 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20300 #| "libguestfs.org/>."
20301 msgid ""
20302 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20303 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20304 "org/>."
20305 msgstr ""
20306 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20307 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20308 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20309 "org/>."
20310
20311 #. type: textblock
20312 #: ../fish/virt-tar-out.pod:5
20313 msgid ""
20314 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20315 msgstr ""
20316
20317 #. type: verbatim
20318 #: ../fish/virt-tar-out.pod:9
20319 #, no-wrap
20320 msgid ""
20321 " virt-tar-out -a disk.img /dir files.tar\n"
20322 "\n"
20323 msgstr ""
20324
20325 #. type: verbatim
20326 #: ../fish/virt-tar-out.pod:11
20327 #, no-wrap
20328 msgid ""
20329 " virt-tar-out -d domain /dir files.tar\n"
20330 "\n"
20331 msgstr ""
20332
20333 #. type: verbatim
20334 #: ../fish/virt-tar-out.pod:13
20335 #, no-wrap
20336 msgid ""
20337 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20338 "\n"
20339 msgstr ""
20340
20341 #. type: textblock
20342 #: ../fish/virt-tar-out.pod:17
20343 msgid ""
20344 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../fish/virt-tar-out.pod:20
20349 msgid ""
20350 "The first parameter is the absolute path of the virtual machine directory.  "
20351 "The second parameter is the tar file to write.  Use C<-> to write to "
20352 "standard output."
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/virt-tar-out.pod:26
20357 msgid "Download the home directories from a guest:"
20358 msgstr ""
20359
20360 #. type: verbatim
20361 #: ../fish/virt-tar-out.pod:28
20362 #, no-wrap
20363 msgid ""
20364 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20365 "\n"
20366 msgstr ""
20367
20368 #. type: textblock
20369 #: ../fish/virt-tar-out.pod:32
20370 msgid ""
20371 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20372 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20373 "are probably better off using guestfish directly."
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../fish/virt-tar-out.pod:43
20378 #, fuzzy
20379 #| msgid ""
20380 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20381 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20382 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20383 #| "libguestfs.org/>."
20384 msgid ""
20385 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20386 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20387 msgstr ""
20388 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20389 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20390 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20391 "org/>."
20392
20393 #. type: textblock
20394 #: ../fuse/guestmount.pod:5
20395 msgid ""
20396 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20397 msgstr ""
20398
20399 #. type: verbatim
20400 #: ../fuse/guestmount.pod:9
20401 #, no-wrap
20402 msgid ""
20403 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20404 "\n"
20405 msgstr ""
20406
20407 #. type: verbatim
20408 #: ../fuse/guestmount.pod:11
20409 #, no-wrap
20410 msgid ""
20411 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20412 "\n"
20413 msgstr ""
20414
20415 #. type: verbatim
20416 #: ../fuse/guestmount.pod:13
20417 #, no-wrap
20418 msgid ""
20419 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20420 "\n"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fuse/guestmount.pod:17
20425 msgid ""
20426 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20427 "machines.  If you do this, you risk disk corruption in the VM."
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../fuse/guestmount.pod:22
20432 msgid ""
20433 "The guestmount program can be used to mount virtual machine filesystems and "
20434 "other disk images on the host.  It uses libguestfs for access to the guest "
20435 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20436 "a mountable device."
20437 msgstr ""
20438
20439 #. type: textblock
20440 #: ../fuse/guestmount.pod:27
20441 msgid ""
20442 "Along with other options, you have to give at least one device (I<-a> "
20443 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20444 "option) or use the I<-i> inspection option.  How this works is better "
20445 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20446 "below."
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../fuse/guestmount.pod:33
20451 msgid ""
20452 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20453 "by you, and the filesystem will not be visible to any other users unless you "
20454 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20455 "the filesystem, use the C<fusermount -u> command."
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../fuse/guestmount.pod:41
20460 msgid ""
20461 "For a typical Windows guest which has its main filesystem on the first "
20462 "partition:"
20463 msgstr ""
20464
20465 #. type: verbatim
20466 #: ../fuse/guestmount.pod:44
20467 #, no-wrap
20468 msgid ""
20469 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20470 "\n"
20471 msgstr ""
20472
20473 #. type: textblock
20474 #: ../fuse/guestmount.pod:46
20475 msgid ""
20476 "For a typical Linux guest which has a /boot filesystem on the first "
20477 "partition, and the root filesystem on a logical volume:"
20478 msgstr ""
20479
20480 #. type: verbatim
20481 #: ../fuse/guestmount.pod:49
20482 #, no-wrap
20483 msgid ""
20484 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20485 "\n"
20486 msgstr ""
20487
20488 #. type: textblock
20489 #: ../fuse/guestmount.pod:51
20490 msgid "To get libguestfs to detect guest mountpoints for you:"
20491 msgstr ""
20492
20493 #. type: verbatim
20494 #: ../fuse/guestmount.pod:53
20495 #, no-wrap
20496 msgid ""
20497 " guestmount -a guest.img -i --ro /mnt\n"
20498 "\n"
20499 msgstr ""
20500
20501 #. type: textblock
20502 #: ../fuse/guestmount.pod:55
20503 msgid "For a libvirt guest called \"Guest\" you could do:"
20504 msgstr ""
20505
20506 #. type: verbatim
20507 #: ../fuse/guestmount.pod:57
20508 #, no-wrap
20509 msgid ""
20510 " guestmount -d Guest -i --ro /mnt\n"
20511 "\n"
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../fuse/guestmount.pod:59
20516 msgid ""
20517 "If you don't know what filesystems are contained in a guest or disk image, "
20518 "use L<virt-filesystems(1)> first:"
20519 msgstr ""
20520
20521 #. type: verbatim
20522 #: ../fuse/guestmount.pod:62
20523 #, no-wrap
20524 msgid ""
20525 " virt-filesystems MyGuest\n"
20526 "\n"
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fuse/guestmount.pod:64
20531 msgid ""
20532 "If you want to trace the libguestfs calls but without excessive debugging "
20533 "information, we recommend:"
20534 msgstr ""
20535
20536 #. type: verbatim
20537 #: ../fuse/guestmount.pod:67
20538 #, no-wrap
20539 msgid ""
20540 " guestmount [...] --trace /mnt\n"
20541 "\n"
20542 msgstr ""
20543
20544 #. type: textblock
20545 #: ../fuse/guestmount.pod:69
20546 msgid "If you want to debug the program, we recommend:"
20547 msgstr ""
20548
20549 #. type: verbatim
20550 #: ../fuse/guestmount.pod:71
20551 #, no-wrap
20552 msgid ""
20553 " guestmount [...] --trace --verbose /mnt\n"
20554 "\n"
20555 msgstr ""
20556
20557 #. type: =head1
20558 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20559 #: ../resize/virt-resize.pod:544
20560 msgid "NOTES"
20561 msgstr "ПРИМІТКИ"
20562
20563 #. type: =head2
20564 #: ../fuse/guestmount.pod:75
20565 msgid "Other users cannot see the filesystem by default"
20566 msgstr ""
20567
20568 #. type: textblock
20569 #: ../fuse/guestmount.pod:77
20570 msgid ""
20571 "If you mount a filesystem as one user (eg. root), then other users will not "
20572 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20573 "option when mounting:"
20574 msgstr ""
20575
20576 #. type: verbatim
20577 #: ../fuse/guestmount.pod:81
20578 #, no-wrap
20579 msgid ""
20580 " sudo guestmount [...] -o allow_other /mnt\n"
20581 "\n"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fuse/guestmount.pod:91
20586 msgid "Add a block device or virtual machine image."
20587 msgstr ""
20588
20589 #. type: =item
20590 #: ../fuse/guestmount.pod:114
20591 msgid "B<--dir-cache-timeout N>"
20592 msgstr "B<--dir-cache-timeout N>"
20593
20594 #. type: textblock
20595 #: ../fuse/guestmount.pod:116
20596 msgid ""
20597 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20598 "seconds.  The readdir cache [actually, there are several semi-independent "
20599 "caches] is populated after a readdir(2) call with the stat and extended "
20600 "attributes of the files in the directory, in anticipation that they will be "
20601 "requested soon after."
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fuse/guestmount.pod:122
20606 msgid ""
20607 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20608 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20609 "requests, only cache existing ones."
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fuse/guestmount.pod:142
20614 msgid ""
20615 "If you have untrusted raw-format guest disk images, you should use this "
20616 "option to specify the disk format.  This avoids a possible security problem "
20617 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20618 "guestfs_add_drive_opts>."
20619 msgstr ""
20620
20621 #. type: =item
20622 #: ../fuse/guestmount.pod:147
20623 msgid "B<--fuse-help>"
20624 msgstr "B<--fuse-help>"
20625
20626 #. type: textblock
20627 #: ../fuse/guestmount.pod:149
20628 msgid "Display help on special FUSE options (see I<-o> below)."
20629 msgstr ""
20630
20631 #. type: textblock
20632 #: ../fuse/guestmount.pod:153
20633 msgid "Display brief help and exit."
20634 msgstr ""
20635
20636 #. type: textblock
20637 #: ../fuse/guestmount.pod:177
20638 msgid ""
20639 "Mount the named partition or logical volume on the given mountpoint B<in the "
20640 "guest> (this has nothing to do with mountpoints in the host)."
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fuse/guestmount.pod:180
20645 msgid ""
20646 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20647 "something on C</>."
20648 msgstr ""
20649
20650 #. type: textblock
20651 #: ../fuse/guestmount.pod:197
20652 msgid ""
20653 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20654 "unmounted.  If you specify this option, then we don't attempt to sync the "
20655 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20656 msgstr ""
20657
20658 #. type: =item
20659 #: ../fuse/guestmount.pod:202
20660 #, fuzzy
20661 #| msgid "B<--partition>"
20662 msgid "B<-o option>"
20663 msgstr "B<--partition>"
20664
20665 #. type: =item
20666 #: ../fuse/guestmount.pod:204
20667 #, fuzzy
20668 #| msgid "B<--partition>"
20669 msgid "B<--option option>"
20670 msgstr "B<--partition>"
20671
20672 #. type: textblock
20673 #: ../fuse/guestmount.pod:206
20674 msgid "Pass extra options to FUSE."
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fuse/guestmount.pod:208
20679 msgid ""
20680 "To get a list of all the extra options supported by FUSE, use the command "
20681 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20682 "of them are a good idea."
20683 msgstr ""
20684
20685 #. type: verbatim
20686 #: ../fuse/guestmount.pod:212
20687 #, no-wrap
20688 msgid ""
20689 " guestmount --fuse-help\n"
20690 "\n"
20691 msgstr ""
20692
20693 #. type: textblock
20694 #: ../fuse/guestmount.pod:214
20695 msgid "Some potentially useful FUSE options:"
20696 msgstr ""
20697
20698 #. type: =item
20699 #: ../fuse/guestmount.pod:218
20700 msgid "B<-o allow_other>"
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../fuse/guestmount.pod:220
20705 msgid "Allow other users to see the filesystem."
20706 msgstr ""
20707
20708 #. type: =item
20709 #: ../fuse/guestmount.pod:222
20710 msgid "B<-o attr_timeout=N>"
20711 msgstr "B<-o attr_timeout=N>"
20712
20713 #. type: textblock
20714 #: ../fuse/guestmount.pod:224
20715 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20716 msgstr ""
20717
20718 #. type: =item
20719 #: ../fuse/guestmount.pod:226
20720 msgid "B<-o kernel_cache>"
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../fuse/guestmount.pod:228
20725 msgid ""
20726 "Allow the kernel to cache files (reduces the number of reads that have to go "
20727 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20728 "afford the extra memory usage."
20729 msgstr ""
20730
20731 #. type: =item
20732 #: ../fuse/guestmount.pod:232
20733 msgid "B<-o uid=N> B<-o gid=N>"
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../fuse/guestmount.pod:234
20738 msgid ""
20739 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20740 "the chosen values."
20741 msgstr ""
20742
20743 #. type: textblock
20744 #: ../fuse/guestmount.pod:243
20745 msgid ""
20746 "Add devices and mount everything read-only.  Also disallow writes and make "
20747 "the disk appear read-only to FUSE."
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fuse/guestmount.pod:246
20752 msgid ""
20753 "This is highly recommended if you are not going to edit the guest disk.  If "
20754 "the guest is running and this option is I<not> supplied, then there is a "
20755 "strong risk of disk corruption in the guest.  We try to prevent this from "
20756 "happening, but it is not always possible."
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20761 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20762 msgstr ""
20763
20764 #. type: textblock
20765 #: ../fuse/guestmount.pod:255
20766 msgid "Enable SELinux support for the guest."
20767 msgstr ""
20768
20769 #. type: textblock
20770 #: ../fuse/guestmount.pod:261
20771 msgid "Enable verbose messages from underlying libguestfs."
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../fuse/guestmount.pod:267
20776 msgid "Display the program version and exit."
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20781 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20782 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20783 msgstr ""
20784
20785 #. type: =item
20786 #: ../fuse/guestmount.pod:280
20787 #, fuzzy
20788 #| msgid "B<--ro>"
20789 msgid "B<--trace>"
20790 msgstr "B<--ro>"
20791
20792 #. type: textblock
20793 #: ../fuse/guestmount.pod:282
20794 msgid "Trace libguestfs calls and entry into each FUSE function."
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../fuse/guestmount.pod:284
20799 msgid "This also stops the daemon from forking into the background."
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../fuse/guestmount.pod:310
20804 msgid ""
20805 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20806 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20807 "net/>."
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../fuse/guestmount.pod:325
20812 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../inspector/virt-inspector.pod:5
20817 msgid ""
20818 "virt-inspector - Display operating system version and other information "
20819 "about a virtual machine"
20820 msgstr ""
20821
20822 #. type: verbatim
20823 #: ../inspector/virt-inspector.pod:9
20824 #, fuzzy, no-wrap
20825 #| msgid ""
20826 #| " virt-list-partitions [--options] domname\n"
20827 #| "\n"
20828 msgid ""
20829 " virt-inspector [--options] -d domname\n"
20830 "\n"
20831 msgstr ""
20832 " virt-list-partitions [--параметри] назва_домену\n"
20833 "\n"
20834
20835 #. type: verbatim
20836 #: ../inspector/virt-inspector.pod:11
20837 #, fuzzy, no-wrap
20838 #| msgid ""
20839 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20840 #| "\n"
20841 msgid ""
20842 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20843 "\n"
20844 msgstr ""
20845 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20846 "\n"
20847
20848 #. type: verbatim
20849 #: ../inspector/virt-inspector.pod:15
20850 #, fuzzy, no-wrap
20851 #| msgid ""
20852 #| " virt-list-partitions [--options] domname\n"
20853 #| "\n"
20854 msgid ""
20855 " virt-inspector domname\n"
20856 "\n"
20857 msgstr ""
20858 " virt-list-partitions [--параметри] назва_домену\n"
20859 "\n"
20860
20861 #. type: verbatim
20862 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20863 #, fuzzy, no-wrap
20864 #| msgid ""
20865 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20866 #| "\n"
20867 msgid ""
20868 " virt-inspector disk.img [disk.img ...]\n"
20869 "\n"
20870 msgstr ""
20871 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20872 "\n"
20873
20874 #. type: textblock
20875 #: ../inspector/virt-inspector.pod:21
20876 msgid ""
20877 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20878 "determine the version of the operating system and other information about "
20879 "the virtual machine."
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../inspector/virt-inspector.pod:25
20884 msgid "Virt-inspector produces XML output for feeding into other programs."
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../inspector/virt-inspector.pod:27
20889 msgid ""
20890 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20891 "the libvirt domain (see: C<virsh list --all>)."
20892 msgstr ""
20893
20894 #. type: textblock
20895 #: ../inspector/virt-inspector.pod:30
20896 msgid ""
20897 "You can also run virt-inspector directly on disk images from a single "
20898 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20899 "has several block devices, in which case you should list several I<-a> "
20900 "options one after another, with the first corresponding to the guest's C</"
20901 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../inspector/virt-inspector.pod:37
20906 msgid ""
20907 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20908 "keys and similar."
20909 msgstr ""
20910
20911 #. type: textblock
20912 #: ../inspector/virt-inspector.pod:40
20913 msgid ""
20914 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20915 "inspect several virtual machines, you have to run virt-inspector several "
20916 "times (for example, from a shell script for-loop)."
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../inspector/virt-inspector.pod:45
20921 msgid ""
20922 "Because virt-inspector needs direct access to guest images, it won't "
20923 "normally work over remote libvirt connections."
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../inspector/virt-inspector.pod:48
20928 msgid ""
20929 "All of the information available from virt-inspector is also available "
20930 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20931 "The same information can also be fetched using guestfish or via libguestfs "
20932 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20933 "WITH OTHER PROGRAMMING LANGUAGES>)."
20934 msgstr ""
20935
20936 #. type: textblock
20937 #: ../inspector/virt-inspector.pod:81
20938 msgid ""
20939 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20940 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20941 "at all."
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../inspector/virt-inspector.pod:94
20946 msgid ""
20947 "When prompting for keys and passphrases, virt-inspector normally turns "
20948 "echoing off so you cannot see what you are typing.  If you are not worried "
20949 "about Tempest attacks and there is no one else in the room you can specify "
20950 "this flag to see what you are typing."
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20955 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20956 #: ../tools/virt-win-reg.pl:144
20957 msgid ""
20958 "Specify the format of disk images given on the command line.  If this is "
20959 "omitted then the format is autodetected from the content of the disk image."
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20964 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20965 #: ../tools/virt-win-reg.pl:148
20966 msgid ""
20967 "If disk images are requested from libvirt, then this program asks libvirt "
20968 "for this information.  In this case, the value of the format parameter is "
20969 "ignored."
20970 msgstr ""
20971
20972 #. type: textblock
20973 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20974 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
20975 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
20976 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
20977 msgid ""
20978 "If working with untrusted raw-format guest disk images, you should ensure "
20979 "the format is always specified."
20980 msgstr ""
20981
20982 #. type: textblock
20983 #: ../inspector/virt-inspector.pod:139
20984 msgid "Previous versions of virt-inspector allowed you to write either:"
20985 msgstr ""
20986
20987 #. type: verbatim
20988 #: ../inspector/virt-inspector.pod:145
20989 #, fuzzy, no-wrap
20990 #| msgid ""
20991 #| " inspect-get-hostname root\n"
20992 #| "\n"
20993 msgid ""
20994 " virt-inspector guestname\n"
20995 "\n"
20996 msgstr ""
20997 " inspect-get-hostname корінь\n"
20998 "\n"
20999
21000 #. type: =head1
21001 #: ../inspector/virt-inspector.pod:153
21002 msgid "XML FORMAT"
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../inspector/virt-inspector.pod:155
21007 msgid ""
21008 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21009 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21010 "just an overview."
21011 msgstr ""
21012
21013 #. type: textblock
21014 #: ../inspector/virt-inspector.pod:159
21015 msgid ""
21016 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21017 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21018 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21019 "which is vanishingly rare in real world VMs."
21020 msgstr ""
21021
21022 #. type: =head2
21023 #: ../inspector/virt-inspector.pod:164
21024 msgid "E<lt>operatingsystemE<gt>"
21025 msgstr ""
21026
21027 #. type: textblock
21028 #: ../inspector/virt-inspector.pod:166
21029 msgid ""
21030 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21031 "describe the operating system, its architecture, the descriptive \"product "
21032 "name\" string, the type of OS and so on, as in this example:"
21033 msgstr ""
21034
21035 #. type: verbatim
21036 #: ../inspector/virt-inspector.pod:170
21037 #, no-wrap
21038 msgid ""
21039 " <operatingsystems>\n"
21040 "   <operatingsystem>\n"
21041 "     <root>/dev/sda2</root>\n"
21042 "     <name>windows</name>\n"
21043 "     <arch>i386</arch>\n"
21044 "     <distro>windows</distro>\n"
21045 "     <product_name>Windows 7 Enterprise</product_name>\n"
21046 "     <product_variant>Client</product_variant>\n"
21047 "     <major_version>6</major_version>\n"
21048 "     <minor_version>1</minor_version>\n"
21049 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21050 "     <format>installed</format>\n"
21051 "\n"
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../inspector/virt-inspector.pod:183
21056 msgid ""
21057 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21058 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21059 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21060 "architecture.  The other fields are fairly self-explanatory, but because "
21061 "these fields are taken directly from the libguestfs inspection API you can "
21062 "find precise information from L<guestfs(3)/INSPECTION>."
21063 msgstr ""
21064
21065 #. type: textblock
21066 #: ../inspector/virt-inspector.pod:191
21067 msgid ""
21068 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21069 "of view of libguestfs (block devices may have completely different names "
21070 "inside the VM itself)."
21071 msgstr ""
21072
21073 #. type: =head2
21074 #: ../inspector/virt-inspector.pod:195
21075 #, fuzzy
21076 #| msgid "mountpoints"
21077 msgid "E<lt>mountpointsE<gt>"
21078 msgstr "mountpoints"
21079
21080 #. type: textblock
21081 #: ../inspector/virt-inspector.pod:197
21082 msgid ""
21083 "Un*x-like guests typically have multiple filesystems which are mounted at "
21084 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21085 "element which looks like this:"
21086 msgstr ""
21087
21088 #. type: verbatim
21089 #: ../inspector/virt-inspector.pod:201
21090 #, no-wrap
21091 msgid ""
21092 " <operatingsystems>\n"
21093 "   <operatingsystem>\n"
21094 "     ...\n"
21095 "     <mountpoints>\n"
21096 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21097 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21098 "     </mountpoints>\n"
21099 "\n"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../inspector/virt-inspector.pod:209
21104 msgid ""
21105 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21106 "and may have completely different names inside the guest.  Only mountable "
21107 "filesystems appear in this list, not things like swap devices."
21108 msgstr ""
21109
21110 #. type: =head2
21111 #: ../inspector/virt-inspector.pod:214
21112 #, fuzzy
21113 #| msgid "list-filesystems"
21114 msgid "E<lt>filesystemsE<gt>"
21115 msgstr "list-filesystems"
21116
21117 #. type: textblock
21118 #: ../inspector/virt-inspector.pod:216
21119 msgid ""
21120 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21121 "filesystems belonging to the guest, including swap and empty partitions.  "
21122 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21123 "this OS or shared with this OS and other OSes)."
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../inspector/virt-inspector.pod:222
21128 msgid "You might see something like this:"
21129 msgstr ""
21130
21131 #. type: verbatim
21132 #: ../inspector/virt-inspector.pod:224
21133 #, no-wrap
21134 msgid ""
21135 " <operatingsystems>\n"
21136 "   <operatingsystem>\n"
21137 "     ...\n"
21138 "     <filesystems>\n"
21139 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21140 "         <type>ext4</type>\n"
21141 "         <label>Fedora-13-x86_64</label>\n"
21142 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21143 "       </filesystem>\n"
21144 "\n"
21145 msgstr ""
21146
21147 #. type: textblock
21148 #: ../inspector/virt-inspector.pod:234
21149 msgid ""
21150 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21151 "the label, and the UUID."
21152 msgstr ""
21153
21154 #. type: =head2
21155 #: ../inspector/virt-inspector.pod:237
21156 msgid "E<lt>applicationsE<gt>"
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../inspector/virt-inspector.pod:239
21161 msgid ""
21162 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21163 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21164 "machine."
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../inspector/virt-inspector.pod:243
21169 msgid ""
21170 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21171 "Typical values would be C<rpm> and C<deb>."
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../inspector/virt-inspector.pod:246
21176 msgid ""
21177 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21178 "Typical values include C<yum>, C<up2date> and C<apt>"
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../inspector/virt-inspector.pod:249
21183 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21184 msgstr ""
21185
21186 #. type: verbatim
21187 #: ../inspector/virt-inspector.pod:252
21188 #, no-wrap
21189 msgid ""
21190 " <operatingsystems>\n"
21191 "   <operatingsystem>\n"
21192 "     ...\n"
21193 "     <applications>\n"
21194 "       <application>\n"
21195 "         <name>coreutils</name>\n"
21196 "         <version>8.5</version>\n"
21197 "         <release>1</release>\n"
21198 "       </application>\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../inspector/virt-inspector.pod:262
21204 msgid ""
21205 "The version and release fields may not be available for some types guests.  "
21206 "Other fields are possible, see L<guestfs(3)/"
21207 "guestfs_inspect_list_applications>."
21208 msgstr ""
21209
21210 #. type: =head2
21211 #: ../inspector/virt-inspector.pod:266
21212 msgid "E<lt>drive_mappingsE<gt>"
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../inspector/virt-inspector.pod:268
21217 msgid ""
21218 "For operating systems like Windows which use drive letters, virt-inspector "
21219 "is able to find out how drive letters map to filesystems."
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../inspector/virt-inspector.pod:272
21224 #, no-wrap
21225 msgid ""
21226 " <operatingsystems>\n"
21227 "   <operatingsystem>\n"
21228 "     ...\n"
21229 "     <drive_mappings>\n"
21230 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21231 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21232 "     </drive_mappings>\n"
21233 "\n"
21234 msgstr ""
21235
21236 #. type: textblock
21237 #: ../inspector/virt-inspector.pod:280
21238 msgid ""
21239 "In the example above, drive C maps to the filesystem on the second partition "
21240 "on the first disk, and drive E maps to the filesystem on the first partition "
21241 "on the second disk."
21242 msgstr ""
21243
21244 #. type: textblock
21245 #: ../inspector/virt-inspector.pod:284
21246 msgid ""
21247 "Note that this only covers permanent local filesystem mappings, not things "
21248 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21249 "here."
21250 msgstr ""
21251
21252 #. type: =head2
21253 #: ../inspector/virt-inspector.pod:288
21254 #, fuzzy
21255 #| msgid "B<-s E<lt>NE<gt>>"
21256 msgid "E<lt>iconE<gt>"
21257 msgstr "B<-s E<lt>NE<gt>>"
21258
21259 #. type: textblock
21260 #: ../inspector/virt-inspector.pod:290
21261 msgid ""
21262 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21263 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21264 "very large and high quality."
21265 msgstr ""
21266
21267 #. type: verbatim
21268 #: ../inspector/virt-inspector.pod:294
21269 #, no-wrap
21270 msgid ""
21271 " <operatingsystems>\n"
21272 "   <operatingsystem>\n"
21273 "     ...\n"
21274 "     <icon>\n"
21275 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21276 "       [... many lines of base64 data ...]\n"
21277 "     </icon>\n"
21278 "\n"
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../inspector/virt-inspector.pod:302
21283 msgid ""
21284 "To display the icon, you have to extract it and convert the base64 data back "
21285 "to a binary file.  Use an XPath query or simply an editor to extract the "
21286 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21287 "to a PNG file:"
21288 msgstr ""
21289
21290 #. type: verbatim
21291 #: ../inspector/virt-inspector.pod:307
21292 #, no-wrap
21293 msgid ""
21294 " base64 -i -d < icon.data > icon.png\n"
21295 "\n"
21296 msgstr ""
21297
21298 #. type: =head2
21299 #: ../inspector/virt-inspector.pod:309
21300 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../inspector/virt-inspector.pod:311
21305 msgid ""
21306 "Virt-inspector can detect some operating system installers on install disks, "
21307 "live CDs, bootable USB keys and more."
21308 msgstr ""
21309
21310 #. type: textblock
21311 #: ../inspector/virt-inspector.pod:314
21312 msgid ""
21313 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21314 "fields may be present to indicate a live CD, network installer, or one part "
21315 "of a multipart CD.  For example:"
21316 msgstr ""
21317
21318 #. type: verbatim
21319 #: ../inspector/virt-inspector.pod:318
21320 #, no-wrap
21321 msgid ""
21322 " <operatingsystems>\n"
21323 "   <operatingsystem>\n"
21324 "     <root>/dev/sda</root>\n"
21325 "     <name>linux</name>\n"
21326 "     <arch>i386</arch>\n"
21327 "     <distro>ubuntu</distro>\n"
21328 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21329 "     <major_version>10</major_version>\n"
21330 "     <minor_version>10</minor_version>\n"
21331 "     <format>installer</format>\n"
21332 "     <live/>\n"
21333 "\n"
21334 msgstr ""
21335
21336 #. type: =head1
21337 #: ../inspector/virt-inspector.pod:330
21338 msgid "USING XPATH"
21339 msgstr ""
21340
21341 #. type: textblock
21342 #: ../inspector/virt-inspector.pod:332
21343 msgid ""
21344 "You can use the XPath query language to select parts of the XML.  We "
21345 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21346 msgstr ""
21347
21348 #. type: verbatim
21349 #: ../inspector/virt-inspector.pod:338
21350 #, no-wrap
21351 msgid ""
21352 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21353 " <filesystems>\n"
21354 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21355 "        <type>ext4</type>\n"
21356 " [...]\n"
21357 "\n"
21358 msgstr ""
21359
21360 #. type: verbatim
21361 #: ../inspector/virt-inspector.pod:344
21362 #, no-wrap
21363 msgid ""
21364 " $ virt-inspector -d Guest | \\\n"
21365 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21366 " ext4\n"
21367 "\n"
21368 msgstr ""
21369
21370 #. type: verbatim
21371 #: ../inspector/virt-inspector.pod:348
21372 #, no-wrap
21373 msgid ""
21374 " $ virt-inspector -d Guest | \\\n"
21375 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21376 " [displays the guest icon, if there is one]\n"
21377 "\n"
21378 msgstr ""
21379
21380 #. type: =head1
21381 #: ../inspector/virt-inspector.pod:359
21382 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21383 msgstr ""
21384
21385 #. type: textblock
21386 #: ../inspector/virt-inspector.pod:361
21387 msgid ""
21388 "Early versions of libguestfs shipped with a different virt-inspector program "
21389 "written in Perl (the current version is written in C).  The XML output of "
21390 "the Perl virt-inspector was different and it could also output in other "
21391 "formats like text."
21392 msgstr ""
21393
21394 #. type: textblock
21395 #: ../inspector/virt-inspector.pod:366
21396 msgid ""
21397 "The old virt-inspector is no longer supported or shipped with libguestfs."
21398 msgstr ""
21399
21400 #. type: textblock
21401 #: ../inspector/virt-inspector.pod:369
21402 msgid ""
21403 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21404 "versions of virt-inspector with different names:"
21405 msgstr ""
21406
21407 #. type: verbatim
21408 #: ../inspector/virt-inspector.pod:372
21409 #, no-wrap
21410 msgid ""
21411 " virt-inspector     Old Perl version.\n"
21412 " virt-inspector2    New C version.\n"
21413 "\n"
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../inspector/virt-inspector.pod:382
21418 #, fuzzy
21419 #| msgid ""
21420 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21421 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21422 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21423 msgid ""
21424 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21425 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21426 msgstr ""
21427 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21428 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21429 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21430
21431 #. type: textblock
21432 #: ../inspector/virt-inspector.pod:399
21433 msgid "Matthew Booth L<mbooth@redhat.com>"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../java/examples/guestfs-java.pod:5
21438 msgid "guestfs-java - How to use libguestfs from Java"
21439 msgstr ""
21440
21441 #. type: verbatim
21442 #: ../java/examples/guestfs-java.pod:9
21443 #, no-wrap
21444 msgid ""
21445 " import com.redhat.et.libguestfs.*;\n"
21446 " \n"
21447 msgstr ""
21448
21449 #. type: verbatim
21450 #: ../java/examples/guestfs-java.pod:11
21451 #, no-wrap
21452 msgid ""
21453 " GuestFS g = new GuestFS ();\n"
21454 " g.add_drive_opts (\"disk.img\", null);\n"
21455 " g.launch ();\n"
21456 "\n"
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../java/examples/guestfs-java.pod:17
21461 msgid ""
21462 "This manual page documents how to call libguestfs from the Java programming "
21463 "language.  This page just documents the differences from the C API and gives "
21464 "some examples.  If you are not familiar with using libguestfs, you also need "
21465 "to read L<guestfs(3)>."
21466 msgstr ""
21467
21468 #. type: =head2
21469 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21470 msgid "CLOSING THE HANDLE"
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../java/examples/guestfs-java.pod:24
21475 msgid ""
21476 "The handle is closed when it is reaped by the garbage collector.  Because "
21477 "libguestfs handles include a lot of state, it is also possible to close (and "
21478 "hence free) them explicitly by calling the C<close> method."
21479 msgstr ""
21480
21481 #. type: =head2
21482 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21483 #: ../python/examples/guestfs-python.pod:21
21484 #: ../ruby/examples/guestfs-ruby.pod:22
21485 #, fuzzy
21486 #| msgid "OPTIONS"
21487 msgid "EXCEPTIONS"
21488 msgstr "ПАРАМЕТРИ"
21489
21490 #. type: textblock
21491 #: ../java/examples/guestfs-java.pod:31
21492 msgid ""
21493 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21494 "exception.  This has a single parameter which is the error message (a "
21495 "C<String>)."
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../java/examples/guestfs-java.pod:35
21500 msgid "Calling any method on a closed handle raises the same exception."
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../java/examples/guestfs-java.pod:47
21505 #, fuzzy
21506 #| msgid ""
21507 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21508 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21509 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21510 msgid ""
21511 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21512 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21513 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21514 msgstr ""
21515 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21516 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21517 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21518
21519 #. type: textblock
21520 #: ../ocaml/examples/guestfs-ocaml.pod:5
21521 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../ocaml/examples/guestfs-ocaml.pod:9
21526 msgid "Module style:"
21527 msgstr ""
21528
21529 #. type: verbatim
21530 #: ../ocaml/examples/guestfs-ocaml.pod:11
21531 #, no-wrap
21532 msgid ""
21533 " let g = Guestfs.create () in\n"
21534 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21535 " Guestfs.launch g;\n"
21536 "\n"
21537 msgstr ""
21538
21539 #. type: textblock
21540 #: ../ocaml/examples/guestfs-ocaml.pod:15
21541 msgid "Object-oriented style:"
21542 msgstr ""
21543
21544 #. type: verbatim
21545 #: ../ocaml/examples/guestfs-ocaml.pod:17
21546 #, no-wrap
21547 msgid ""
21548 " let g = new Guestfs.guestfs () in\n"
21549 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21550 " g#launch ();\n"
21551 "\n"
21552 msgstr ""
21553
21554 #. type: verbatim
21555 #: ../ocaml/examples/guestfs-ocaml.pod:21
21556 #, no-wrap
21557 msgid ""
21558 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21559 "or:\n"
21560 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21561 "\n"
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../ocaml/examples/guestfs-ocaml.pod:27
21566 msgid ""
21567 "This manual page documents how to call libguestfs from the OCaml programming "
21568 "language.  This page just documents the differences from the C API and gives "
21569 "some examples.  If you are not familiar with using libguestfs, you also need "
21570 "to read L<guestfs(3)>."
21571 msgstr ""
21572
21573 #. type: =head2
21574 #: ../ocaml/examples/guestfs-ocaml.pod:32
21575 msgid "PROGRAMMING STYLES"
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../ocaml/examples/guestfs-ocaml.pod:34
21580 msgid ""
21581 "There are two different programming styles supported by the OCaml bindings.  "
21582 "You can use a module style, with each C function mapped to an OCaml function:"
21583 msgstr ""
21584
21585 #. type: verbatim
21586 #: ../ocaml/examples/guestfs-ocaml.pod:38
21587 #, fuzzy, no-wrap
21588 #| msgid ""
21589 #| " int guestfs_last_errno (guestfs_h *g);\n"
21590 #| "\n"
21591 msgid ""
21592 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21593 "\n"
21594 msgstr ""
21595 " int guestfs_last_errno (guestfs_h *g);\n"
21596 "\n"
21597
21598 #. type: textblock
21599 #: ../ocaml/examples/guestfs-ocaml.pod:40
21600 msgid "becomes:"
21601 msgstr ""
21602
21603 #. type: verbatim
21604 #: ../ocaml/examples/guestfs-ocaml.pod:42
21605 #, no-wrap
21606 msgid ""
21607 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21608 "\n"
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../ocaml/examples/guestfs-ocaml.pod:44
21613 msgid ""
21614 "Alternately you can use an object-oriented style, calling methods on the "
21615 "class C<Guestfs.guestfs>:"
21616 msgstr ""
21617
21618 #. type: verbatim
21619 #: ../ocaml/examples/guestfs-ocaml.pod:47
21620 #, no-wrap
21621 msgid ""
21622 " method set_verbose : bool -> unit\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../ocaml/examples/guestfs-ocaml.pod:49
21628 msgid ""
21629 "The object-oriented style is usually briefer, and the minor performance "
21630 "penalty isn't noticable in the general overhead of performing libguestfs "
21631 "functions."
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../ocaml/examples/guestfs-ocaml.pod:55
21636 msgid ""
21637 "The handle is closed when it is reaped by the garbage collector.  Because "
21638 "libguestfs handles include a lot of state, it is also possible to close (and "
21639 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21640 "method."
21641 msgstr ""
21642
21643 #. type: textblock
21644 #: ../ocaml/examples/guestfs-ocaml.pod:62
21645 msgid ""
21646 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21647 "exception.  This has a single parameter which is the error message (a "
21648 "string)."
21649 msgstr ""
21650
21651 #. type: textblock
21652 #: ../ocaml/examples/guestfs-ocaml.pod:66
21653 msgid ""
21654 "Calling any function/method on a closed handle raises C<Guestfs."
21655 "Handle_closed>.  The single parameter is the name of the function that you "
21656 "called."
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../ocaml/examples/guestfs-ocaml.pod:80
21661 #, fuzzy
21662 #| msgid ""
21663 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21664 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21665 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21666 msgid ""
21667 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21668 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21669 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21670 msgstr ""
21671 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21672 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21673 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21674
21675 #. type: textblock
21676 #: ../perl/examples/guestfs-perl.pod:5
21677 msgid "guestfs-perl - How to use libguestfs from Perl"
21678 msgstr ""
21679
21680 #. type: verbatim
21681 #: ../perl/examples/guestfs-perl.pod:9
21682 #, no-wrap
21683 msgid ""
21684 " use Sys::Guestfs;\n"
21685 " \n"
21686 msgstr ""
21687
21688 #. type: verbatim
21689 #: ../perl/examples/guestfs-perl.pod:11
21690 #, no-wrap
21691 msgid ""
21692 " my $h = Sys::Guestfs->new ();\n"
21693 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21694 " $h->launch ();\n"
21695 " $h->mount_options ('', '/dev/sda1', '/');\n"
21696 " $h->touch ('/hello');\n"
21697 " $h->sync ();\n"
21698 "\n"
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../perl/examples/guestfs-perl.pod:20
21703 msgid ""
21704 "This manual page documents how to call libguestfs from the Perl programming "
21705 "language.  This page just documents the differences from the C API and gives "
21706 "some examples.  If you are not familiar with using libguestfs, you also need "
21707 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21708 msgstr ""
21709
21710 #. type: =head2
21711 #: ../perl/examples/guestfs-perl.pod:26
21712 msgid "ERRORS"
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../perl/examples/guestfs-perl.pod:28
21717 msgid ""
21718 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21719 ">)."
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../perl/examples/guestfs-perl.pod:41
21724 #, fuzzy
21725 #| msgid ""
21726 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21727 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21728 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21729 msgid ""
21730 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21731 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21732 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21733 msgstr ""
21734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21735 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21736 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21737
21738 #. type: textblock
21739 #: ../python/examples/guestfs-python.pod:5
21740 msgid "guestfs-python - How to use libguestfs from Python"
21741 msgstr ""
21742
21743 #. type: verbatim
21744 #: ../python/examples/guestfs-python.pod:9
21745 #, no-wrap
21746 msgid ""
21747 " import guestfs\n"
21748 " g = guestfs.GuestFS ()\n"
21749 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21750 " g.launch\n"
21751 "\n"
21752 msgstr ""
21753
21754 #. type: textblock
21755 #: ../python/examples/guestfs-python.pod:16
21756 msgid ""
21757 "This manual page documents how to call libguestfs from the Python "
21758 "programming language.  This page just documents the differences from the C "
21759 "API and gives some examples.  If you are not familiar with using libguestfs, "
21760 "you also need to read L<guestfs(3)>."
21761 msgstr ""
21762
21763 #. type: textblock
21764 #: ../python/examples/guestfs-python.pod:23
21765 msgid ""
21766 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21767 "single string argument which is the error message."
21768 msgstr ""
21769
21770 #. type: =head2
21771 #: ../python/examples/guestfs-python.pod:26
21772 msgid "MORE DOCUMENTATION"
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../python/examples/guestfs-python.pod:28
21777 msgid "Type:"
21778 msgstr ""
21779
21780 #. type: verbatim
21781 #: ../python/examples/guestfs-python.pod:30
21782 #, no-wrap
21783 msgid ""
21784 " $ python\n"
21785 " >>> import guestfs\n"
21786 " >>> help (guestfs)\n"
21787 "\n"
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../python/examples/guestfs-python.pod:44
21792 #, fuzzy
21793 #| msgid ""
21794 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21795 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21796 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21797 msgid ""
21798 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21799 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21800 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21801 msgstr ""
21802 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21803 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21804 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21805
21806 #. type: textblock
21807 #: ../rescue/virt-rescue.pod:5
21808 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21809 msgstr ""
21810
21811 #. type: verbatim
21812 #: ../rescue/virt-rescue.pod:9
21813 #, fuzzy, no-wrap
21814 #| msgid ""
21815 #| " virt-list-partitions [--options] domname\n"
21816 #| "\n"
21817 msgid ""
21818 " virt-rescue [--options] -d domname\n"
21819 "\n"
21820 msgstr ""
21821 " virt-list-partitions [--параметри] назва_домену\n"
21822 "\n"
21823
21824 #. type: verbatim
21825 #: ../rescue/virt-rescue.pod:11
21826 #, fuzzy, no-wrap
21827 #| msgid ""
21828 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21829 #| "\n"
21830 msgid ""
21831 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21832 "\n"
21833 msgstr ""
21834 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21835 "\n"
21836
21837 #. type: verbatim
21838 #: ../rescue/virt-rescue.pod:15
21839 #, fuzzy, no-wrap
21840 #| msgid ""
21841 #| " virt-list-partitions [--options] domname\n"
21842 #| "\n"
21843 msgid ""
21844 " virt-rescue [--options] domname\n"
21845 "\n"
21846 msgstr ""
21847 " virt-list-partitions [--параметри] назва_домену\n"
21848 "\n"
21849
21850 #. type: verbatim
21851 #: ../rescue/virt-rescue.pod:17
21852 #, fuzzy, no-wrap
21853 #| msgid ""
21854 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21855 #| "\n"
21856 msgid ""
21857 " virt-rescue [--options] disk.img [disk.img ...]\n"
21858 "\n"
21859 msgstr ""
21860 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21861 "\n"
21862
21863 #. type: textblock
21864 #: ../rescue/virt-rescue.pod:21
21865 msgid ""
21866 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21867 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21868 "you from doing this, but doesn't catch all cases."
21869 msgstr ""
21870
21871 #. type: textblock
21872 #: ../rescue/virt-rescue.pod:25
21873 msgid ""
21874 "However if you use the I<--ro> (read only) option, then you can attach a "
21875 "shell to a live virtual machine.  The results might be strange or "
21876 "inconsistent at times but you won't get disk corruption."
21877 msgstr ""
21878
21879 #. type: textblock
21880 #: ../rescue/virt-rescue.pod:31
21881 msgid ""
21882 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21883 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21884 "recovery tools which you can use to examine or rescue a virtual machine or "
21885 "disk image."
21886 msgstr ""
21887
21888 #. type: textblock
21889 #: ../rescue/virt-rescue.pod:36
21890 msgid ""
21891 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21892 "on disk image(s):"
21893 msgstr ""
21894
21895 #. type: verbatim
21896 #: ../rescue/virt-rescue.pod:39
21897 #, no-wrap
21898 msgid ""
21899 " virt-rescue -d GuestName\n"
21900 "\n"
21901 msgstr ""
21902
21903 #. type: verbatim
21904 #: ../rescue/virt-rescue.pod:41
21905 #, no-wrap
21906 msgid ""
21907 " virt-rescue --ro -a /path/to/disk.img\n"
21908 "\n"
21909 msgstr ""
21910
21911 #. type: verbatim
21912 #: ../rescue/virt-rescue.pod:43
21913 #, no-wrap
21914 msgid ""
21915 " virt-rescue -a /dev/sdc\n"
21916 "\n"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../rescue/virt-rescue.pod:45
21921 msgid "For live VMs you I<must> use the --ro option."
21922 msgstr ""
21923
21924 #. type: textblock
21925 #: ../rescue/virt-rescue.pod:47
21926 msgid ""
21927 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21928 "in an interactive bash shell where you can use many ordinary Linux "
21929 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21930 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21931 "is an empty directory called C</sysroot> where you can mount filesystems."
21932 msgstr ""
21933
21934 #. type: textblock
21935 #: ../rescue/virt-rescue.pod:54
21936 msgid ""
21937 "In the example below, we list logical volumes, then choose one to mount "
21938 "under C</sysroot>:"
21939 msgstr ""
21940
21941 #. type: verbatim
21942 #: ../rescue/virt-rescue.pod:57
21943 #, no-wrap
21944 msgid ""
21945 " ><rescue> lvs\n"
21946 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21947 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21948 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21949 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21950 " ><rescue> ls /sysroot\n"
21951 "\n"
21952 msgstr ""
21953
21954 #. type: textblock
21955 #: ../rescue/virt-rescue.pod:64
21956 msgid ""
21957 "If you don't know what filesystems are available on the virtual machine then "
21958 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../rescue/virt-rescue.pod:70
21963 msgid ""
21964 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21965 "virtual machine.  For example you can use it on a blank file if you want to "
21966 "partition that file (although we would recommend using L<guestfish(1)> "
21967 "instead as it is more suitable for this purpose).  You can even use virt-"
21968 "rescue on things like SD cards."
21969 msgstr ""
21970
21971 #. type: textblock
21972 #: ../rescue/virt-rescue.pod:76
21973 msgid ""
21974 "Virt-rescue does not require root.  You only need to run it as root if you "
21975 "need root to open the disk image."
21976 msgstr ""
21977
21978 #. type: textblock
21979 #: ../rescue/virt-rescue.pod:79
21980 msgid ""
21981 "This tool is just designed for quick interactive hacking on a virtual "
21982 "machine.  For more structured access to a virtual machine disk image, you "
21983 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21984 "make scripted changes to guests, use L<guestfish(1)>."
21985 msgstr ""
21986
21987 #. type: =item
21988 #: ../rescue/virt-rescue.pod:103
21989 msgid "B<--append kernelopts>"
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../rescue/virt-rescue.pod:105
21994 msgid "Pass additional options to the rescue kernel."
21995 msgstr ""
21996
21997 #. type: verbatim
21998 #: ../rescue/virt-rescue.pod:135
21999 #, fuzzy, no-wrap
22000 #| msgid ""
22001 #| " guestfish --format=raw -a disk.img\n"
22002 #| "\n"
22003 msgid ""
22004 " virt-rescue --format=raw -a disk.img\n"
22005 "\n"
22006 msgstr ""
22007 " guestfish --format=raw -a disk.img\n"
22008 "\n"
22009
22010 #. type: verbatim
22011 #: ../rescue/virt-rescue.pod:139
22012 #, fuzzy, no-wrap
22013 #| msgid ""
22014 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
22015 #| "\n"
22016 msgid ""
22017 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22018 "\n"
22019 msgstr ""
22020 " guestfish --format=raw -a disk.img --format -a another.img\n"
22021 "\n"
22022
22023 #. type: =item
22024 #: ../rescue/virt-rescue.pod:148
22025 msgid "B<-m MB>"
22026 msgstr ""
22027
22028 #. type: =item
22029 #: ../rescue/virt-rescue.pod:150
22030 #, fuzzy
22031 #| msgid "B<--merge>"
22032 msgid "B<--memsize MB>"
22033 msgstr "B<--merge>"
22034
22035 #. type: textblock
22036 #: ../rescue/virt-rescue.pod:152
22037 msgid ""
22038 "Change the amount of memory allocated to the rescue system.  The default is "
22039 "set by libguestfs and is small but adequate for running system tools.  The "
22040 "occasional program might need more memory.  The parameter is specified in "
22041 "megabytes."
22042 msgstr ""
22043
22044 #. type: =item
22045 #: ../rescue/virt-rescue.pod:157
22046 #, fuzzy
22047 #| msgid "B<--inspector>"
22048 msgid "B<--network>"
22049 msgstr "B<--inspector>"
22050
22051 #. type: textblock
22052 #: ../rescue/virt-rescue.pod:159
22053 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../rescue/virt-rescue.pod:165
22058 msgid "Open the image read-only."
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../rescue/virt-rescue.pod:175
22063 msgid ""
22064 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22065 "SELINUX> before using this option."
22066 msgstr ""
22067
22068 #. type: =item
22069 #: ../rescue/virt-rescue.pod:178
22070 #, fuzzy
22071 #| msgid "B<--csh>"
22072 msgid "B<--smp> N"
22073 msgstr "B<--csh>"
22074
22075 #. type: textblock
22076 #: ../rescue/virt-rescue.pod:180
22077 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../rescue/virt-rescue.pod:198
22082 msgid ""
22083 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22084 "are done read-write."
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../rescue/virt-rescue.pod:211
22089 msgid "Previous versions of virt-rescue allowed you to write either:"
22090 msgstr ""
22091
22092 #. type: verbatim
22093 #: ../rescue/virt-rescue.pod:213
22094 #, fuzzy, no-wrap
22095 #| msgid ""
22096 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22097 #| "\n"
22098 msgid ""
22099 " virt-rescue disk.img [disk.img ...]\n"
22100 "\n"
22101 msgstr ""
22102 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22103 "\n"
22104
22105 #. type: verbatim
22106 #: ../rescue/virt-rescue.pod:217
22107 #, fuzzy, no-wrap
22108 #| msgid ""
22109 #| " file-architecture filename\n"
22110 #| "\n"
22111 msgid ""
22112 " virt-rescue guestname\n"
22113 "\n"
22114 msgstr ""
22115 " file-architecture назва_файла\n"
22116 "\n"
22117
22118 #. type: =head1
22119 #: ../rescue/virt-rescue.pod:225
22120 msgid "NETWORK"
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../rescue/virt-rescue.pod:227
22125 msgid ""
22126 "Adding the I<--network> option enables QEMU user networking in the rescue "
22127 "appliance.  There are some differences between user networking and ordinary "
22128 "networking:"
22129 msgstr ""
22130
22131 #. type: =item
22132 #: ../rescue/virt-rescue.pod:233
22133 msgid "ping does not work"
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../rescue/virt-rescue.pod:235
22138 msgid ""
22139 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22140 "send the ping packets, and because virt-rescue must be able to run as non-"
22141 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22142 "The ping command will appear to resolve addresses but will not be able to "
22143 "send or receive any packets.  This does not mean that the network is not "
22144 "working."
22145 msgstr ""
22146
22147 #. type: =item
22148 #: ../rescue/virt-rescue.pod:242
22149 msgid "cannot receive connections"
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../rescue/virt-rescue.pod:244
22154 msgid "QEMU user networking cannot receive incoming connections."
22155 msgstr ""
22156
22157 #. type: =item
22158 #: ../rescue/virt-rescue.pod:246
22159 msgid "making TCP connections"
22160 msgstr ""
22161
22162 #. type: textblock
22163 #: ../rescue/virt-rescue.pod:248
22164 msgid ""
22165 "The virt-rescue appliance needs to be small and so does not include many "
22166 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22167 "make TCP connections from the shell using the magical C</dev/tcp/"
22168 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22169 msgstr ""
22170
22171 #. type: verbatim
22172 #: ../rescue/virt-rescue.pod:253
22173 #, no-wrap
22174 msgid ""
22175 " exec 3<>/dev/tcp/redhat.com/80\n"
22176 " echo \"GET /\" >&3\n"
22177 " cat <&3\n"
22178 "\n"
22179 msgstr ""
22180
22181 #. type: textblock
22182 #: ../rescue/virt-rescue.pod:257
22183 msgid "See L<bash(1)> for more details."
22184 msgstr ""
22185
22186 #. type: textblock
22187 #: ../rescue/virt-rescue.pod:263
22188 msgid ""
22189 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22190 "ENVIRONMENT VARIABLES> for the complete list."
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../rescue/virt-rescue.pod:290
22195 #, fuzzy
22196 #| msgid ""
22197 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22198 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22199 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22200 msgid ""
22201 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22202 "libguestfs.org/>."
22203 msgstr ""
22204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22205 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22206 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22207
22208 #. type: textblock
22209 #: ../resize/virt-resize.pod:5
22210 msgid "virt-resize - Resize a virtual machine disk"
22211 msgstr ""
22212
22213 #. type: verbatim
22214 #: ../resize/virt-resize.pod:9
22215 #, no-wrap
22216 msgid ""
22217 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22218 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22219 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22220 "\n"
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../resize/virt-resize.pod:15
22225 msgid ""
22226 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22227 "larger or smaller overall, and resizing or deleting any partitions contained "
22228 "within."
22229 msgstr ""
22230
22231 #. type: textblock
22232 #: ../resize/virt-resize.pod:19
22233 msgid ""
22234 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22235 "not> be used on live virtual machines - for consistent results, shut the "
22236 "virtual machine down before resizing it."
22237 msgstr ""
22238
22239 #. type: textblock
22240 #: ../resize/virt-resize.pod:23
22241 msgid ""
22242 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22243 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22244 msgstr ""
22245
22246 #. type: =item
22247 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22248 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22249 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
22250 msgid "1."
22251 msgstr "1."
22252
22253 #. type: textblock
22254 #: ../resize/virt-resize.pod:33
22255 msgid ""
22256 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22257 "fill the extra 5GB of space."
22258 msgstr ""
22259
22260 #. type: verbatim
22261 #: ../resize/virt-resize.pod:36
22262 #, no-wrap
22263 msgid ""
22264 " virt-filesystems --long -h --all -a olddisk\n"
22265 " \n"
22266 msgstr ""
22267
22268 #. type: verbatim
22269 #: ../resize/virt-resize.pod:38
22270 #, no-wrap
22271 msgid ""
22272 " truncate -r olddisk newdisk\n"
22273 " truncate -s +5G newdisk\n"
22274 " \n"
22275 msgstr ""
22276
22277 #. type: verbatim
22278 #: ../resize/virt-resize.pod:41
22279 #, no-wrap
22280 msgid ""
22281 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22282 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22283 "\n"
22284 msgstr ""
22285
22286 #. type: =item
22287 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22288 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22289 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
22290 msgid "2."
22291 msgstr "2."
22292
22293 #. type: textblock
22294 #: ../resize/virt-resize.pod:46
22295 msgid ""
22296 "As above, but make the /boot partition 200MB bigger, while giving the "
22297 "remaining space to /dev/sda2:"
22298 msgstr ""
22299
22300 #. type: verbatim
22301 #: ../resize/virt-resize.pod:49
22302 #, no-wrap
22303 msgid ""
22304 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22305 "   olddisk newdisk\n"
22306 "\n"
22307 msgstr ""
22308
22309 #. type: =item
22310 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22311 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22312 #: ../src/guestfs.pod:1436
22313 msgid "3."
22314 msgstr "3."
22315
22316 #. type: textblock
22317 #: ../resize/virt-resize.pod:54
22318 msgid ""
22319 "As in the first example, but expand a logical volume as the final step.  "
22320 "This is what you would typically use for Linux guests that use LVM:"
22321 msgstr ""
22322
22323 #. type: verbatim
22324 #: ../resize/virt-resize.pod:58
22325 #, no-wrap
22326 msgid ""
22327 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22328 "   olddisk newdisk\n"
22329 "\n"
22330 msgstr ""
22331
22332 #. type: =item
22333 #: ../resize/virt-resize.pod:61
22334 msgid "4."
22335 msgstr ""
22336
22337 #. type: textblock
22338 #: ../resize/virt-resize.pod:63
22339 msgid ""
22340 "As in the first example, but the output format will be qcow2 instead of a "
22341 "raw disk:"
22342 msgstr ""
22343
22344 #. type: verbatim
22345 #: ../resize/virt-resize.pod:66
22346 #, no-wrap
22347 msgid ""
22348 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22349 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22350 "\n"
22351 msgstr ""
22352
22353 #. type: =head1
22354 #: ../resize/virt-resize.pod:71
22355 msgid "DETAILED USAGE"
22356 msgstr ""
22357
22358 #. type: =head2
22359 #: ../resize/virt-resize.pod:73
22360 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22361 msgstr ""
22362
22363 #. type: =item
22364 #: ../resize/virt-resize.pod:77
22365 msgid "1. Shut down the virtual machine"
22366 msgstr ""
22367
22368 #. type: =item
22369 #: ../resize/virt-resize.pod:79
22370 msgid "2. Locate input disk image"
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../resize/virt-resize.pod:81
22375 msgid ""
22376 "Locate the input disk image (ie. the file or device on the host containing "
22377 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22378 "dumpxml> like this to find the disk image name:"
22379 msgstr ""
22380
22381 #. type: verbatim
22382 #: ../resize/virt-resize.pod:85
22383 #, no-wrap
22384 msgid ""
22385 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22386 " Found 1 nodes:\n"
22387 " -- NODE --\n"
22388 " <source dev=\"/dev/vg/lv_guest\" />\n"
22389 "\n"
22390 msgstr ""
22391
22392 #. type: =item
22393 #: ../resize/virt-resize.pod:90
22394 msgid "3. Look at current sizing"
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../resize/virt-resize.pod:92
22399 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22400 msgstr ""
22401
22402 #. type: verbatim
22403 #: ../resize/virt-resize.pod:95
22404 #, no-wrap
22405 msgid ""
22406 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22407 " Name       Type       Size  Parent\n"
22408 " /dev/sda1  partition  101M  /dev/sda\n"
22409 " /dev/sda2  partition  7.9G  /dev/sda\n"
22410 " /dev/sda   device     8.0G  -\n"
22411 "\n"
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../resize/virt-resize.pod:101
22416 msgid ""
22417 "(This example is a virtual machine with an 8 GB disk which we would like to "
22418 "expand up to 10 GB)."
22419 msgstr ""
22420
22421 #. type: =item
22422 #: ../resize/virt-resize.pod:104
22423 msgid "4. Create output disk"
22424 msgstr ""
22425
22426 #. type: textblock
22427 #: ../resize/virt-resize.pod:106
22428 msgid ""
22429 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22430 "to store the resized output disk."
22431 msgstr ""
22432
22433 #. type: textblock
22434 #: ../resize/virt-resize.pod:109
22435 msgid ""
22436 "To store the resized disk image in a file, create a file of a suitable size:"
22437 msgstr ""
22438
22439 #. type: verbatim
22440 #: ../resize/virt-resize.pod:112
22441 #, no-wrap
22442 msgid ""
22443 " # rm -f outdisk\n"
22444 " # truncate -s 10G outdisk\n"
22445 "\n"
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../resize/virt-resize.pod:115
22450 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22451 msgstr ""
22452
22453 #. type: verbatim
22454 #: ../resize/virt-resize.pod:117
22455 #, no-wrap
22456 msgid ""
22457 " # lvcreate -L 10G -n lv_name vg_name\n"
22458 "\n"
22459 msgstr ""
22460
22461 #. type: textblock
22462 #: ../resize/virt-resize.pod:119
22463 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22464 msgstr ""
22465
22466 #. type: verbatim
22467 #: ../resize/virt-resize.pod:121
22468 #, no-wrap
22469 msgid ""
22470 " # virsh pool-list\n"
22471 " # virsh vol-create-as poolname newvol 10G\n"
22472 "\n"
22473 msgstr ""
22474
22475 #. type: =item
22476 #: ../resize/virt-resize.pod:124
22477 msgid "5. Resize"
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../resize/virt-resize.pod:126
22482 msgid ""
22483 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22484 "file) and the output disk.  The output disk is the one created in the "
22485 "previous step."
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../resize/virt-resize.pod:130
22490 #, no-wrap
22491 msgid ""
22492 " # virt-resize indisk outdisk\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../resize/virt-resize.pod:132
22498 msgid ""
22499 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22500 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22501 "larger, then an extra, empty partition is created at the end of the disk "
22502 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22503 "error."
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../resize/virt-resize.pod:138
22508 msgid ""
22509 "More realistically you'd want to expand existing partitions in the disk "
22510 "image by passing extra options (for the full list see the L</OPTIONS> "
22511 "section below)."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../resize/virt-resize.pod:142
22516 msgid ""
22517 "L</--expand> is the most useful option.  It expands the named partition "
22518 "within the disk to fill any extra space:"
22519 msgstr ""
22520
22521 #. type: verbatim
22522 #: ../resize/virt-resize.pod:145
22523 #, no-wrap
22524 msgid ""
22525 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22526 "\n"
22527 msgstr ""
22528
22529 #. type: textblock
22530 #: ../resize/virt-resize.pod:147
22531 msgid ""
22532 "(In this case, an extra partition is I<not> created at the end of the disk, "
22533 "because there will be no unused space)."
22534 msgstr ""
22535
22536 #. type: textblock
22537 #: ../resize/virt-resize.pod:150
22538 msgid ""
22539 "L</--resize> is the other commonly used option.  The following would "
22540 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22541 "rest of the available space:"
22542 msgstr ""
22543
22544 #. type: verbatim
22545 #: ../resize/virt-resize.pod:154
22546 #, no-wrap
22547 msgid ""
22548 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22549 "     indisk outdisk\n"
22550 "\n"
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../resize/virt-resize.pod:157
22555 msgid ""
22556 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22557 "if virt-resize knows how, it will resize the contents, the equivalent of "
22558 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22559 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22560 "filesystems, so you would have to online resize them after booting the guest."
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../resize/virt-resize.pod:164
22565 msgid "Other options are covered below."
22566 msgstr ""
22567
22568 #. type: =item
22569 #: ../resize/virt-resize.pod:166
22570 msgid "6. Test"
22571 msgstr ""
22572
22573 #. type: textblock
22574 #: ../resize/virt-resize.pod:168
22575 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../resize/virt-resize.pod:170
22580 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22581 msgstr ""
22582
22583 #. type: verbatim
22584 #: ../resize/virt-resize.pod:172
22585 #, fuzzy, no-wrap
22586 #| msgid ""
22587 #| " edit filename\n"
22588 #| "\n"
22589 msgid ""
22590 " # virsh edit guestname\n"
22591 "\n"
22592 msgstr ""
22593 " edit назва_файла\n"
22594 "\n"
22595
22596 #. type: textblock
22597 #: ../resize/virt-resize.pod:174
22598 msgid ""
22599 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22600 "html#elementsDisks>"
22601 msgstr ""
22602
22603 #. type: textblock
22604 #: ../resize/virt-resize.pod:177
22605 msgid "Then start up the domain with the new, resized disk:"
22606 msgstr ""
22607
22608 #. type: verbatim
22609 #: ../resize/virt-resize.pod:179
22610 #, fuzzy, no-wrap
22611 #| msgid ""
22612 #| " ln-s target linkname\n"
22613 #| "\n"
22614 msgid ""
22615 " # virsh start guestname\n"
22616 "\n"
22617 msgstr ""
22618 " ln-s призначення назва_посилання\n"
22619 "\n"
22620
22621 #. type: textblock
22622 #: ../resize/virt-resize.pod:181
22623 msgid ""
22624 "and check that it still works.  See also the L</NOTES> section below for "
22625 "additional information."
22626 msgstr ""
22627
22628 #. type: =item
22629 #: ../resize/virt-resize.pod:184
22630 msgid "7. Resize LVs etc inside the guest"
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../resize/virt-resize.pod:186
22635 msgid "(This can also be done offline using L<guestfish(1)>)"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../resize/virt-resize.pod:188
22640 msgid ""
22641 "Once the guest has booted you should see the new space available, at least "
22642 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22643 "may need to resize LVs inside PVs, and also resize filesystem types that "
22644 "virt-resize does not know how to expand."
22645 msgstr ""
22646
22647 #. type: =head2
22648 #: ../resize/virt-resize.pod:195
22649 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../resize/virt-resize.pod:197
22654 msgid ""
22655 "Shrinking is somewhat more complex than expanding, and only an overview is "
22656 "given here."
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../resize/virt-resize.pod:200
22661 msgid ""
22662 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22663 "filesystems).  The user has to shrink content before passing the disk image "
22664 "to virt-resize, and virt-resize will check that the content has been shrunk "
22665 "properly."
22666 msgstr ""
22667
22668 #. type: textblock
22669 #: ../resize/virt-resize.pod:205
22670 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22671 msgstr ""
22672
22673 #. type: textblock
22674 #: ../resize/virt-resize.pod:207
22675 msgid ""
22676 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22677 "steps 3 and 4 above to allocate a new disk image."
22678 msgstr ""
22679
22680 #. type: textblock
22681 #: ../resize/virt-resize.pod:210
22682 msgid ""
22683 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22684 msgstr ""
22685
22686 #. type: =head2
22687 #: ../resize/virt-resize.pod:213
22688 msgid "IGNORING OR DELETING PARTITIONS"
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../resize/virt-resize.pod:215
22693 msgid ""
22694 "virt-resize also gives a convenient way to ignore or delete partitions when "
22695 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22696 "up the copy where you don't care about the existing contents of a "
22697 "partition.  Deleting a partition removes it completely, but note that it "
22698 "also renumbers any partitions after the one which is deleted, which can "
22699 "leave some guests unbootable."
22700 msgstr ""
22701
22702 #. type: =head2
22703 #: ../resize/virt-resize.pod:222
22704 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22705 msgstr ""
22706
22707 #. type: textblock
22708 #: ../resize/virt-resize.pod:224
22709 msgid ""
22710 "If the input disk is in qcow2 format, then you may prefer that the output is "
22711 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22712 "the fly.  The output format is simply determined by the format of the empty "
22713 "output container that you provide.  Thus to create qcow2 output, use:"
22714 msgstr ""
22715
22716 #. type: verbatim
22717 #: ../resize/virt-resize.pod:230
22718 #, no-wrap
22719 msgid ""
22720 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22721 "\n"
22722 msgstr ""
22723
22724 #. type: textblock
22725 #: ../resize/virt-resize.pod:232
22726 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../resize/virt-resize.pod:234
22731 msgid "Similarly, to get non-sparse raw output use:"
22732 msgstr ""
22733
22734 #. type: verbatim
22735 #: ../resize/virt-resize.pod:236
22736 #, fuzzy, no-wrap
22737 #| msgid ""
22738 #| " fallocate path len\n"
22739 #| "\n"
22740 msgid ""
22741 " fallocate -l size outdisk\n"
22742 "\n"
22743 msgstr ""
22744 " fallocate шлях довжина\n"
22745 "\n"
22746
22747 #. type: textblock
22748 #: ../resize/virt-resize.pod:238
22749 msgid ""
22750 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22751 "dev/zero of=outdisk bs=1M count=..>)"
22752 msgstr ""
22753
22754 #. type: textblock
22755 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22756 msgid "Display help."
22757 msgstr ""
22758
22759 #. type: =item
22760 #: ../resize/virt-resize.pod:249
22761 msgid "B<-d>"
22762 msgstr ""
22763
22764 #. type: =item
22765 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22766 #: ../tools/virt-win-reg.pl:120
22767 msgid "B<--debug>"
22768 msgstr "B<--debug>"
22769
22770 #. type: textblock
22771 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22772 msgid "Enable debugging messages."
22773 msgstr ""
22774
22775 #. type: =item
22776 #: ../resize/virt-resize.pod:255
22777 #, fuzzy
22778 #| msgid "B<--no-dest-paths>"
22779 msgid "B<--delete part>"
22780 msgstr "B<--no-dest-paths>"
22781
22782 #. type: textblock
22783 #: ../resize/virt-resize.pod:257
22784 msgid ""
22785 "Delete the named partition.  It would be more accurate to describe this as "
22786 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22787 "the original disk image is left intact."
22788 msgstr ""
22789
22790 #. type: textblock
22791 #: ../resize/virt-resize.pod:261
22792 msgid ""
22793 "Note that when you delete a partition, then anything contained in the "
22794 "partition is also deleted.  Furthermore, this causes any partitions that "
22795 "come after to be I<renumbered>, which can easily make your guest unbootable."
22796 msgstr ""
22797
22798 #. type: textblock
22799 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22800 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
22801 msgid "You can give this option multiple times."
22802 msgstr ""
22803
22804 #. type: =item
22805 #: ../resize/virt-resize.pod:268
22806 #, fuzzy
22807 #| msgid "B<--partition>"
22808 msgid "B<--expand part>"
22809 msgstr "B<--partition>"
22810
22811 #. type: textblock
22812 #: ../resize/virt-resize.pod:270
22813 msgid ""
22814 "Expand the named partition so it uses up all extra space (space left over "
22815 "after any other resize changes that you request have been done)."
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../resize/virt-resize.pod:273
22820 msgid ""
22821 "If virt-resize knows how, it will expand the direct content of the "
22822 "partition.  For example, if the partition is an LVM PV, it will expand the "
22823 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22824 "content it doesn't know about alone."
22825 msgstr ""
22826
22827 #. type: textblock
22828 #: ../resize/virt-resize.pod:278
22829 msgid "Currently virt-resize can resize:"
22830 msgstr ""
22831
22832 #. type: textblock
22833 #: ../resize/virt-resize.pod:284
22834 msgid "ext2, ext3 and ext4 filesystems."
22835 msgstr ""
22836
22837 #. type: textblock
22838 #: ../resize/virt-resize.pod:288
22839 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22840 msgstr ""
22841
22842 #. type: textblock
22843 #: ../resize/virt-resize.pod:290
22844 msgid ""
22845 "The filesystem must have been shut down consistently last time it was used.  "
22846 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22847 "consistency check, so at the first boot after resizing Windows will check "
22848 "the disk."
22849 msgstr ""
22850
22851 #. type: textblock
22852 #: ../resize/virt-resize.pod:297
22853 msgid ""
22854 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22855 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22856 "resize LVs as desired after boot."
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../resize/virt-resize.pod:303
22861 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22866 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22867 msgstr ""
22868
22869 #. type: =item
22870 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
22871 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
22872 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22873 msgid "B<--format> raw"
22874 msgstr ""
22875
22876 #. type: textblock
22877 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22878 msgid ""
22879 "Specify the format of the input disk image.  If this flag is not given then "
22880 "it is auto-detected from the image itself."
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../resize/virt-resize.pod:317
22885 msgid ""
22886 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22887 "AND NON-SPARSE RAW FORMATS>."
22888 msgstr ""
22889
22890 #. type: =item
22891 #: ../resize/virt-resize.pod:320
22892 #, fuzzy
22893 #| msgid "B<--format>"
22894 msgid "B<--ignore part>"
22895 msgstr "B<--format>"
22896
22897 #. type: textblock
22898 #: ../resize/virt-resize.pod:322
22899 msgid ""
22900 "Ignore the named partition.  Effectively this means the partition is "
22901 "allocated on the destination disk, but the content is not copied across from "
22902 "the source disk.  The content of the partition will be blank (all zero "
22903 "bytes)."
22904 msgstr ""
22905
22906 #. type: =item
22907 #: ../resize/virt-resize.pod:329
22908 msgid "B<--LV-expand logvol>"
22909 msgstr ""
22910
22911 #. type: textblock
22912 #: ../resize/virt-resize.pod:331
22913 msgid ""
22914 "This takes the logical volume and, as a final step, expands it to fill all "
22915 "the space available in its volume group.  A typical usage, assuming a Linux "
22916 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22917 "lv_root> would be:"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../resize/virt-resize.pod:336
22922 #, no-wrap
22923 msgid ""
22924 " virt-resize indisk outdisk \\\n"
22925 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22926 "\n"
22927 msgstr ""
22928
22929 #. type: textblock
22930 #: ../resize/virt-resize.pod:339
22931 msgid ""
22932 "This would first expand the partition (and PV), and then expand the root "
22933 "device to fill the extra space in the PV."
22934 msgstr ""
22935
22936 #. type: textblock
22937 #: ../resize/virt-resize.pod:342
22938 msgid ""
22939 "The contents of the LV are also resized if virt-resize knows how to do "
22940 "that.  You can stop virt-resize from trying to expand the content by using "
22941 "the option I<--no-expand-content>."
22942 msgstr ""
22943
22944 #. type: textblock
22945 #: ../resize/virt-resize.pod:346
22946 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22947 msgstr ""
22948
22949 #. type: textblock
22950 #: ../resize/virt-resize.pod:348
22951 msgid ""
22952 "You can give this option multiple times, I<but> it doesn't make sense to do "
22953 "this unless the logical volumes you specify are all in different volume "
22954 "groups."
22955 msgstr ""
22956
22957 #. type: =item
22958 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
22959 #, fuzzy
22960 #| msgid "B<-h> | B<--human-readable>"
22961 msgid "B<--machine-readable>"
22962 msgstr "B<-h> | B<--human-readable>"
22963
22964 #. type: textblock
22965 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
22966 msgid ""
22967 "This option is used to make the output more machine friendly when being "
22968 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22969 msgstr ""
22970
22971 #. type: =item
22972 #: ../resize/virt-resize.pod:360
22973 #, fuzzy
22974 #| msgid "B<--debug>"
22975 msgid "B<--dryrun>"
22976 msgstr "B<--debug>"
22977
22978 #. type: textblock
22979 #: ../resize/virt-resize.pod:362
22980 msgid "Print a summary of what would be done, but don't do anything."
22981 msgstr ""
22982
22983 #. type: =item
22984 #: ../resize/virt-resize.pod:364
22985 msgid "B<--no-copy-boot-loader>"
22986 msgstr ""
22987
22988 #. type: textblock
22989 #: ../resize/virt-resize.pod:366
22990 msgid ""
22991 "By default, virt-resize copies over some sectors at the start of the disk "
22992 "(up to the beginning of the first partition).  Commonly these sectors "
22993 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22994 "in order for the guest to boot correctly."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../resize/virt-resize.pod:371
22999 msgid ""
23000 "If you specify this flag, then this initial copy is not done.  You may need "
23001 "to reinstall the boot loader in this case."
23002 msgstr ""
23003
23004 #. type: =item
23005 #: ../resize/virt-resize.pod:374
23006 #, fuzzy
23007 #| msgid "B<--partition>"
23008 msgid "B<--no-extra-partition>"
23009 msgstr "B<--partition>"
23010
23011 #. type: textblock
23012 #: ../resize/virt-resize.pod:376
23013 msgid ""
23014 "By default, virt-resize creates an extra partition if there is any extra, "
23015 "unused space after all resizing has happened.  Use this option to prevent "
23016 "the extra partition from being created.  If you do this then the extra space "
23017 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23018 "tool in the guest."
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../resize/virt-resize.pod:382
23023 msgid ""
23024 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23025 "will be created."
23026 msgstr ""
23027
23028 #. type: =item
23029 #: ../resize/virt-resize.pod:385
23030 #, fuzzy
23031 #| msgid "B<--no-dest-paths>"
23032 msgid "B<--no-expand-content>"
23033 msgstr "B<--no-dest-paths>"
23034
23035 #. type: textblock
23036 #: ../resize/virt-resize.pod:387
23037 msgid ""
23038 "By default, virt-resize will try to expand the direct contents of "
23039 "partitions, if it knows how (see I<--expand> option above)."
23040 msgstr ""
23041
23042 #. type: textblock
23043 #: ../resize/virt-resize.pod:390
23044 msgid ""
23045 "If you give the I<--no-expand-content> option then virt-resize will not "
23046 "attempt this."
23047 msgstr ""
23048
23049 #. type: =item
23050 #: ../resize/virt-resize.pod:393
23051 #, fuzzy
23052 #| msgid "ntfsresize-size"
23053 msgid "B<--ntfsresize-force>"
23054 msgstr "ntfsresize-size"
23055
23056 #. type: textblock
23057 #: ../resize/virt-resize.pod:395
23058 msgid ""
23059 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23060 "the NTFS disk is marked as needing a consistency check.  You have to use "
23061 "this option if you want to resize a Windows guest multiple times without "
23062 "booting into Windows between each resize."
23063 msgstr ""
23064
23065 #. type: =item
23066 #: ../resize/virt-resize.pod:401
23067 #, fuzzy
23068 #| msgid "B<--format>"
23069 msgid "B<--output-format> raw"
23070 msgstr "B<--format>"
23071
23072 #. type: textblock
23073 #: ../resize/virt-resize.pod:403
23074 msgid ""
23075 "Specify the format of the output disk image.  If this flag is not given then "
23076 "it is auto-detected from the image itself."
23077 msgstr ""
23078
23079 #. type: textblock
23080 #: ../resize/virt-resize.pod:409
23081 msgid ""
23082 "Note that this option I<does not create> the output format.  This option "
23083 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23084 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23085 "SPARSE RAW FORMATS>."
23086 msgstr ""
23087
23088 #. type: =item
23089 #: ../resize/virt-resize.pod:414 ../sparsify/virt-sparsify.pod:153
23090 msgid "B<-q>"
23091 msgstr ""
23092
23093 #. type: =item
23094 #: ../resize/virt-resize.pod:416 ../sparsify/virt-sparsify.pod:155
23095 #, fuzzy
23096 #| msgid "B<--live>"
23097 msgid "B<--quiet>"
23098 msgstr "B<--live>"
23099
23100 #. type: textblock
23101 #: ../resize/virt-resize.pod:418
23102 msgid "Don't print the summary."
23103 msgstr ""
23104
23105 #. type: =item
23106 #: ../resize/virt-resize.pod:420
23107 #, fuzzy
23108 #| msgid "B<part_size>"
23109 msgid "B<--resize part=size>"
23110 msgstr "B<part_size>"
23111
23112 #. type: textblock
23113 #: ../resize/virt-resize.pod:422
23114 msgid ""
23115 "Resize the named partition (expanding or shrinking it) so that it has the "
23116 "given size."
23117 msgstr ""
23118
23119 #. type: textblock
23120 #: ../resize/virt-resize.pod:425
23121 msgid ""
23122 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23123 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23124 "size; or as a relative number or percentage.  For example:"
23125 msgstr ""
23126
23127 #. type: verbatim
23128 #: ../resize/virt-resize.pod:431
23129 #, fuzzy, no-wrap
23130 #| msgid ""
23131 #| " hexedit /dev/sda 1M\n"
23132 #| "\n"
23133 msgid ""
23134 " --resize /dev/sda2=10G\n"
23135 "\n"
23136 msgstr ""
23137 " hexedit /dev/sda 1M\n"
23138 "\n"
23139
23140 #. type: verbatim
23141 #: ../resize/virt-resize.pod:433
23142 #, fuzzy, no-wrap
23143 #| msgid ""
23144 #| " pvresize device\n"
23145 #| "\n"
23146 msgid ""
23147 " --resize /dev/sda4=90%\n"
23148 "\n"
23149 msgstr ""
23150 " pvresize пристрій\n"
23151 "\n"
23152
23153 #. type: verbatim
23154 #: ../resize/virt-resize.pod:435
23155 #, fuzzy, no-wrap
23156 #| msgid ""
23157 #| " hexedit /dev/sda 1M\n"
23158 #| "\n"
23159 msgid ""
23160 " --resize /dev/sda2=+1G\n"
23161 "\n"
23162 msgstr ""
23163 " hexedit /dev/sda 1M\n"
23164 "\n"
23165
23166 #. type: verbatim
23167 #: ../resize/virt-resize.pod:437
23168 #, fuzzy, no-wrap
23169 #| msgid ""
23170 #| " hexedit /dev/sda 1M\n"
23171 #| "\n"
23172 msgid ""
23173 " --resize /dev/sda2=-200M\n"
23174 "\n"
23175 msgstr ""
23176 " hexedit /dev/sda 1M\n"
23177 "\n"
23178
23179 #. type: verbatim
23180 #: ../resize/virt-resize.pod:439
23181 #, fuzzy, no-wrap
23182 #| msgid ""
23183 #| " hexedit /dev/sda 1M\n"
23184 #| "\n"
23185 msgid ""
23186 " --resize /dev/sda1=+128K\n"
23187 "\n"
23188 msgstr ""
23189 " hexedit /dev/sda 1M\n"
23190 "\n"
23191
23192 #. type: verbatim
23193 #: ../resize/virt-resize.pod:441
23194 #, fuzzy, no-wrap
23195 #| msgid ""
23196 #| " hexedit /dev/sda 1M\n"
23197 #| "\n"
23198 msgid ""
23199 " --resize /dev/sda1=+10%\n"
23200 "\n"
23201 msgstr ""
23202 " hexedit /dev/sda 1M\n"
23203 "\n"
23204
23205 #. type: verbatim
23206 #: ../resize/virt-resize.pod:443
23207 #, fuzzy, no-wrap
23208 #| msgid ""
23209 #| " hexedit /dev/sda 1M\n"
23210 #| "\n"
23211 msgid ""
23212 " --resize /dev/sda1=-10%\n"
23213 "\n"
23214 msgstr ""
23215 " hexedit /dev/sda 1M\n"
23216 "\n"
23217
23218 #. type: textblock
23219 #: ../resize/virt-resize.pod:445
23220 msgid ""
23221 "You can increase the size of any partition.  Virt-resize will expand the "
23222 "direct content of the partition if it knows how (see I<--expand> below)."
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:449
23227 msgid ""
23228 "You can only I<decrease> the size of partitions that contain filesystems or "
23229 "PVs which have already been shrunk.  Virt-resize will check this has been "
23230 "done before proceeding, or else will print an error (see also I<--resize-"
23231 "force>)."
23232 msgstr ""
23233
23234 #. type: =item
23235 #: ../resize/virt-resize.pod:456
23236 msgid "B<--resize-force part=size>"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../resize/virt-resize.pod:458
23241 msgid ""
23242 "This is the same as I<--resize> except that it will let you decrease the "
23243 "size of any partition.  Generally this means you will lose any data which "
23244 "was at the end of the partition you shrink, but you may not care about that "
23245 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23246 "as a swap partition)."
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../resize/virt-resize.pod:464
23251 msgid "See also the I<--ignore> option."
23252 msgstr ""
23253
23254 #. type: =item
23255 #: ../resize/virt-resize.pod:466
23256 #, fuzzy
23257 #| msgid "B<--partition>"
23258 msgid "B<--shrink part>"
23259 msgstr "B<--partition>"
23260
23261 #. type: textblock
23262 #: ../resize/virt-resize.pod:468
23263 msgid ""
23264 "Shrink the named partition until the overall disk image fits in the "
23265 "destination.  The named partition B<must> contain a filesystem or PV which "
23266 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23267 "online tools).  Virt-resize will check this and give an error if it has not "
23268 "been done."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../resize/virt-resize.pod:474
23273 msgid ""
23274 "The amount by which the overall disk must be shrunk (after carrying out all "
23275 "other operations requested by the user) is called the \"deficit\".  For "
23276 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23277 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23278 "would give an error unless the user specified a partition to shrink and that "
23279 "partition had more than a gigabyte of free space."
23280 msgstr ""
23281
23282 #. type: =head1
23283 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
23284 msgid "MACHINE READABLE OUTPUT"
23285 msgstr ""
23286
23287 #. type: textblock
23288 #: ../resize/virt-resize.pod:494
23289 msgid ""
23290 "The I<--machine-readable> option can be used to make the output more machine "
23291 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23292 "etc."
23293 msgstr ""
23294
23295 #. type: textblock
23296 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
23297 msgid "There are two ways to use this option."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../resize/virt-resize.pod:500
23302 msgid ""
23303 "Firstly use the option on its own to query the capabilities of the virt-"
23304 "resize binary.  Typical output looks like this:"
23305 msgstr ""
23306
23307 #. type: verbatim
23308 #: ../resize/virt-resize.pod:503
23309 #, no-wrap
23310 msgid ""
23311 " $ virt-resize --machine-readable\n"
23312 " virt-resize\n"
23313 " ntfsresize-force\n"
23314 " 32bitok\n"
23315 " ntfs\n"
23316 " btrfs\n"
23317 "\n"
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
23322 msgid ""
23323 "A list of features is printed, one per line, and the program exits with "
23324 "status 0."
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
23329 msgid ""
23330 "Secondly use the option in conjunction with other options to make the "
23331 "regular program output more machine friendly."
23332 msgstr ""
23333
23334 #. type: textblock
23335 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
23336 msgid "At the moment this means:"
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
23341 msgid ""
23342 "Progress bar messages can be parsed from stdout by looking for this regular "
23343 "expression:"
23344 msgstr ""
23345
23346 #. type: verbatim
23347 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
23348 #, no-wrap
23349 msgid ""
23350 " ^[0-9]+/[0-9]+$\n"
23351 "\n"
23352 msgstr ""
23353
23354 #. type: textblock
23355 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
23356 msgid ""
23357 "The calling program should treat messages sent to stdout (except for "
23358 "progress bar messages) as status messages.  They can be logged and/or "
23359 "displayed to the user."
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../resize/virt-resize.pod:535
23364 msgid ""
23365 "The calling program should treat messages sent to stderr as error messages.  "
23366 "In addition, virt-resize exits with a non-zero status code if there was a "
23367 "fatal error."
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../resize/virt-resize.pod:541
23372 msgid ""
23373 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23374 "readable> option and will return an error."
23375 msgstr ""
23376
23377 #. type: =head2
23378 #: ../resize/virt-resize.pod:546
23379 msgid "\"Partition 1 does not end on cylinder boundary.\""
23380 msgstr ""
23381
23382 #. type: textblock
23383 #: ../resize/virt-resize.pod:548
23384 msgid ""
23385 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23386 "means the partitions will not be aligned to the ancient CHS geometry.  "
23387 "However CHS geometry is meaningless for disks manufactured since the early "
23388 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23389 "cylinders is not required by any modern operating system."
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../resize/virt-resize.pod:555
23394 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../resize/virt-resize.pod:557
23399 msgid ""
23400 "In Windows Vista and later versions, Microsoft switched to using a separate "
23401 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23402 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23403 "the boot partition.  Doing so seems to break the guest completely.  However "
23404 "expanding the second partition (ie. C: drive) should work."
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../resize/virt-resize.pod:564
23409 msgid ""
23410 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23411 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23412 "it find errors) is nothing to worry about."
23413 msgstr ""
23414
23415 #. type: =head2
23416 #: ../resize/virt-resize.pod:568
23417 msgid "GUEST BOOT STUCK AT \"GRUB\""
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../resize/virt-resize.pod:570
23422 msgid ""
23423 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23424 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23425 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23426 "although we think is to do with partition alignment."
23427 msgstr ""
23428
23429 #. type: verbatim
23430 #: ../resize/virt-resize.pod:575
23431 #, no-wrap
23432 msgid ""
23433 " guestfish -i -a newdisk\n"
23434 " ><fs> cat /boot/grub/device.map\n"
23435 " # check the contents of this file are sensible or\n"
23436 " # edit the file if necessary\n"
23437 " ><fs> grub-install / /dev/vda\n"
23438 " ><fs> exit\n"
23439 "\n"
23440 msgstr ""
23441
23442 #. type: textblock
23443 #: ../resize/virt-resize.pod:582
23444 msgid ""
23445 "For more flexible guest reconfiguration, including if you need to specify "
23446 "other parameters to grub-install, use L<virt-rescue(1)>."
23447 msgstr ""
23448
23449 #. type: =head1
23450 #: ../resize/virt-resize.pod:585
23451 msgid "ALTERNATIVE TOOLS"
23452 msgstr ""
23453
23454 #. type: textblock
23455 #: ../resize/virt-resize.pod:587
23456 msgid ""
23457 "There are several proprietary tools for resizing partitions.  We won't "
23458 "mention any here."
23459 msgstr ""
23460
23461 #. type: textblock
23462 #: ../resize/virt-resize.pod:590
23463 msgid ""
23464 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23465 "operations on disk images.  They can resize and move partitions, but I don't "
23466 "think they can do anything with the contents, and they certainly don't "
23467 "understand LVM."
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../resize/virt-resize.pod:595
23472 msgid ""
23473 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23474 "but at a much lower level.  You will probably end up hand-calculating sector "
23475 "offsets, which is something that virt-resize was designed to avoid.  If you "
23476 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23477 "I<--debug> flag."
23478 msgstr ""
23479
23480 #. type: textblock
23481 #: ../resize/virt-resize.pod:615
23482 msgid ""
23483 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23484 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23485 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23486 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23487 "L<http://libguestfs.org/>."
23488 msgstr ""
23489
23490 #. type: textblock
23491 #: ../ruby/examples/guestfs-ruby.pod:5
23492 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23493 msgstr ""
23494
23495 #. type: verbatim
23496 #: ../ruby/examples/guestfs-ruby.pod:9
23497 #, no-wrap
23498 msgid ""
23499 " require 'guestfs'\n"
23500 " g = Guestfs::Guestfs.new()\n"
23501 " g.add_drive_opts(\"disk.img\",\n"
23502 "                  :readonly => 1, :format => \"raw\")\n"
23503 " g.launch()\n"
23504 "\n"
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../ruby/examples/guestfs-ruby.pod:17
23509 msgid ""
23510 "This manual page documents how to call libguestfs from the Ruby programming "
23511 "language.  This page just documents the differences from the C API and gives "
23512 "some examples.  If you are not familiar with using libguestfs, you also need "
23513 "to read L<guestfs(3)>."
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../ruby/examples/guestfs-ruby.pod:24
23518 msgid ""
23519 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23520 "This has a single parameter which is the error message (a string)."
23521 msgstr ""
23522
23523 #. type: textblock
23524 #: ../ruby/examples/guestfs-ruby.pod:38
23525 #, fuzzy
23526 #| msgid ""
23527 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23528 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23529 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23530 msgid ""
23531 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23532 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23533 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23534 msgstr ""
23535 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23536 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23537 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23538
23539 #. type: textblock
23540 #: ../sparsify/virt-sparsify.pod:5
23541 msgid "virt-sparsify - Make a virtual machine disk sparse"
23542 msgstr ""
23543
23544 #. type: verbatim
23545 #: ../sparsify/virt-sparsify.pod:9
23546 #, fuzzy, no-wrap
23547 #| msgid ""
23548 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23549 #| "\n"
23550 msgid ""
23551 " virt-sparsify [--options] indisk outdisk\n"
23552 "\n"
23553 msgstr ""
23554 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23555 "\n"
23556
23557 #. type: textblock
23558 #: ../sparsify/virt-sparsify.pod:13
23559 msgid ""
23560 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23561 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23562 "the disk image can be converted back to free space on the host."
23563 msgstr ""
23564
23565 #. type: textblock
23566 #: ../sparsify/virt-sparsify.pod:18
23567 msgid ""
23568 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23569 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23570 msgstr ""
23571
23572 #. type: textblock
23573 #: ../sparsify/virt-sparsify.pod:21
23574 msgid ""
23575 "Virt-sparsify can also convert between some disk formats, for example "
23576 "converting a raw disk image to a thin-provisioned qcow2 image."
23577 msgstr ""
23578
23579 #. type: textblock
23580 #: ../sparsify/virt-sparsify.pod:24
23581 msgid ""
23582 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23583 "machines.  If a virtual machine has multiple disk images, then you must "
23584 "sparsify each one separately."
23585 msgstr ""
23586
23587 #. type: =head2
23588 #: ../sparsify/virt-sparsify.pod:28
23589 msgid "IMPORTANT LIMITATIONS"
23590 msgstr ""
23591
23592 #. type: textblock
23593 #: ../sparsify/virt-sparsify.pod:34
23594 msgid ""
23595 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23596 "image to a destination image, leaving the source unchanged.  I<Check that "
23597 "the sparsification was successful before deleting the source image>."
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../sparsify/virt-sparsify.pod:41
23602 msgid "The virtual machine I<must be shut down> before using this tool."
23603 msgstr ""
23604
23605 #. type: textblock
23606 #: ../sparsify/virt-sparsify.pod:45
23607 msgid ""
23608 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23609 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23610 "usually much less space is required."
23611 msgstr ""
23612
23613 #. type: textblock
23614 #: ../sparsify/virt-sparsify.pod:51
23615 msgid ""
23616 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23617 msgstr ""
23618
23619 #. type: textblock
23620 #: ../sparsify/virt-sparsify.pod:56
23621 msgid "Virt-sparsify cannot handle encrypted disks."
23622 msgstr ""
23623
23624 #. type: textblock
23625 #: ../sparsify/virt-sparsify.pod:60
23626 msgid ""
23627 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23628 "this space is often used for critical items like bootloaders so it's not "
23629 "really unused."
23630 msgstr ""
23631
23632 #. type: textblock
23633 #: ../sparsify/virt-sparsify.pod:66
23634 msgid ""
23635 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23636 "to do this unless we can be sure there is no hibernation data, so at the "
23637 "moment swap partitions are ignored."
23638 msgstr ""
23639
23640 #. type: textblock
23641 #: ../sparsify/virt-sparsify.pod:72
23642 msgid ""
23643 "You may also want to read the manual pages for the associated tools L<virt-"
23644 "filesystems(1)> and L<virt-df(1)> before starting."
23645 msgstr ""
23646
23647 #. type: textblock
23648 #: ../sparsify/virt-sparsify.pod:77
23649 msgid "Typical usage is:"
23650 msgstr ""
23651
23652 #. type: verbatim
23653 #: ../sparsify/virt-sparsify.pod:79
23654 #, no-wrap
23655 msgid ""
23656 " virt-sparsify indisk outdisk\n"
23657 "\n"
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../sparsify/virt-sparsify.pod:81
23662 msgid ""
23663 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23664 "is created, or overwritten if it already exists.  The format of the input "
23665 "disk is detected (eg. qcow2) and the same format is used for the output disk."
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../sparsify/virt-sparsify.pod:86
23670 msgid "To convert between formats, use the I<--convert> option:"
23671 msgstr ""
23672
23673 #. type: verbatim
23674 #: ../sparsify/virt-sparsify.pod:88
23675 #, no-wrap
23676 msgid ""
23677 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: textblock
23682 #: ../sparsify/virt-sparsify.pod:90
23683 msgid ""
23684 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23685 "can find within the source disk image.  You can get it to ignore (don't zero "
23686 "free space on) certain filesystems by doing:"
23687 msgstr ""
23688
23689 #. type: verbatim
23690 #: ../sparsify/virt-sparsify.pod:94
23691 #, no-wrap
23692 msgid ""
23693 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23694 "\n"
23695 msgstr ""
23696
23697 #. type: textblock
23698 #: ../sparsify/virt-sparsify.pod:96
23699 msgid ""
23700 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23701 msgstr ""
23702
23703 #. type: =item
23704 #: ../sparsify/virt-sparsify.pod:107
23705 #, fuzzy
23706 #| msgid "B<--connect URI>"
23707 msgid "B<--convert> raw"
23708 msgstr "B<--connect адреса>"
23709
23710 #. type: =item
23711 #: ../sparsify/virt-sparsify.pod:109
23712 #, fuzzy
23713 #| msgid "B<--format=raw|qcow2|..>"
23714 msgid "B<--convert> qcow2"
23715 msgstr "B<--format=raw|qcow2|..>"
23716
23717 #. type: =item
23718 #: ../sparsify/virt-sparsify.pod:111
23719 msgid "B<--convert> [other formats]"
23720 msgstr ""
23721
23722 #. type: textblock
23723 #: ../sparsify/virt-sparsify.pod:113
23724 msgid ""
23725 "Use C<output-format> as the format for the destination image.  If this is "
23726 "not specified, then the input format is used."
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../sparsify/virt-sparsify.pod:116
23731 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23732 msgstr ""
23733
23734 #. type: textblock
23735 #: ../sparsify/virt-sparsify.pod:118
23736 msgid ""
23737 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
23738 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23739 msgstr ""
23740
23741 #. type: textblock
23742 #: ../sparsify/virt-sparsify.pod:122
23743 msgid ""
23744 "Specifying the I<--convert> option is usually a good idea, because then virt-"
23745 "sparsify doesn't need to try to guess the input format."
23746 msgstr ""
23747
23748 #. type: =item
23749 #: ../sparsify/virt-sparsify.pod:127
23750 #, fuzzy
23751 #| msgid "B<--format=raw|qcow2|..>"
23752 msgid "B<--format> qcow2"
23753 msgstr "B<--format=raw|qcow2|..>"
23754
23755 #. type: =item
23756 #: ../sparsify/virt-sparsify.pod:135
23757 #, fuzzy
23758 #| msgid "list-filesystems"
23759 msgid "B<--ignore> filesystem"
23760 msgstr "list-filesystems"
23761
23762 #. type: =item
23763 #: ../sparsify/virt-sparsify.pod:137
23764 #, fuzzy
23765 #| msgid "B<--verbose>"
23766 msgid "B<--ignore> volgroup"
23767 msgstr "B<--verbose>"
23768
23769 #. type: textblock
23770 #: ../sparsify/virt-sparsify.pod:139
23771 msgid ""
23772 "Ignore the named filesystem.  Free space on the filesystem will not be "
23773 "zeroed, but existing blocks of zeroes will still be sparsified."
23774 msgstr ""
23775
23776 #. type: textblock
23777 #: ../sparsify/virt-sparsify.pod:142
23778 msgid ""
23779 "In the second form, this ignores the named volume group.  Use the volume "
23780 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../sparsify/virt-sparsify.pod:157
23785 msgid "This disables progress bars and other unnecessary output."
23786 msgstr ""
23787
23788 #. type: textblock
23789 #: ../sparsify/virt-sparsify.pod:179
23790 msgid ""
23791 "The I<--machine-readable> option can be used to make the output more machine "
23792 "friendly, which is useful when calling virt-sparsify from other programs, "
23793 "GUIs etc."
23794 msgstr ""
23795
23796 #. type: textblock
23797 #: ../sparsify/virt-sparsify.pod:185
23798 msgid ""
23799 "Firstly use the option on its own to query the capabilities of the virt-"
23800 "sparsify binary.  Typical output looks like this:"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../sparsify/virt-sparsify.pod:188
23805 #, no-wrap
23806 msgid ""
23807 " $ virt-sparsify --machine-readable\n"
23808 " virt-sparsify\n"
23809 " ntfs\n"
23810 " btrfs\n"
23811 "\n"
23812 msgstr ""
23813
23814 #. type: textblock
23815 #: ../sparsify/virt-sparsify.pod:218
23816 msgid ""
23817 "The calling program should treat messages sent to stderr as error messages.  "
23818 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23819 "fatal error."
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../sparsify/virt-sparsify.pod:224
23824 msgid ""
23825 "All versions of virt-sparsify have supported the I<--machine-readable> "
23826 "option."
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../sparsify/virt-sparsify.pod:238
23831 msgid ""
23832 "Location of the temporary directory used for the potentially large temporary "
23833 "overlay file."
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../sparsify/virt-sparsify.pod:241
23838 msgid ""
23839 "You should ensure there is enough free space in the worst case for a full "
23840 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23841 "to another directory that has enough space."
23842 msgstr ""
23843
23844 #. type: textblock
23845 #: ../sparsify/virt-sparsify.pod:245
23846 #, fuzzy
23847 #| msgid "The default is C<ext2>."
23848 msgid "This defaults to C</tmp>."
23849 msgstr "Типовим значенням є C<ext2>."
23850
23851 #. type: textblock
23852 #: ../sparsify/virt-sparsify.pod:249
23853 msgid ""
23854 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23855 msgstr ""
23856
23857 #. type: textblock
23858 #: ../sparsify/virt-sparsify.pod:253
23859 #, fuzzy
23860 #| msgid ""
23861 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23862 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
23863 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
23864 #| "libguestfs.org/>."
23865 msgid ""
23866 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23867 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
23868 "(1)>, L<http://libguestfs.org/>."
23869 msgstr ""
23870 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
23871 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
23872 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
23873 "org/>."
23874
23875 #. type: textblock
23876 #: ../sparsify/virt-sparsify.pod:270
23877 #, fuzzy
23878 #| msgid "Copyright (C) 2009 Red Hat Inc."
23879 msgid "Copyright (C) 2011 Red Hat Inc."
23880 msgstr "© Red Hat Inc., 2009"
23881
23882 #. type: =head2
23883 #: ../src/guestfs-actions.pod:1
23884 msgid "guestfs_add_cdrom"
23885 msgstr ""
23886
23887 #. type: verbatim
23888 #: ../src/guestfs-actions.pod:3
23889 #, no-wrap
23890 msgid ""
23891 " int\n"
23892 " guestfs_add_cdrom (guestfs_h *g,\n"
23893 "                    const char *filename);\n"
23894 "\n"
23895 msgstr ""
23896
23897 #. type: textblock
23898 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23899 #: ../src/guestfs-actions.pod:270
23900 msgid ""
23901 "I<This function is deprecated.> In new code, use the L</"
23902 "guestfs_add_drive_opts> call instead."
23903 msgstr ""
23904
23905 #. type: textblock
23906 #: ../src/guestfs-actions.pod:24
23907 msgid ""
23908 "This call checks for the existence of C<filename>.  This stops you from "
23909 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23910 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23911 "instead."
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../src/guestfs-actions.pod:31
23916 msgid ""
23917 "If you just want to add an ISO file (often you use this as an efficient way "
23918 "to transfer large files into the guest), then you should probably use "
23919 "C<guestfs_add_drive_ro> instead."
23920 msgstr ""
23921
23922 #. type: textblock
23923 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23924 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23925 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23926 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23927 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23928 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23929 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23930 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23931 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23932 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23933 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23934 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23935 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23936 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
23937 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
23938 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
23939 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
23940 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
23941 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
23942 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
23943 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
23944 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
23945 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
23946 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
23947 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
23948 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
23949 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
23950 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
23951 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
23952 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
23953 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
23954 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
23955 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
23956 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
23957 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
23958 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
23959 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
23960 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
23961 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
23962 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
23963 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
23964 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
23965 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
23966 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
23967 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
23968 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
23969 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
23970 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
23971 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
23972 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
23973 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
23974 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
23975 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
23976 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
23977 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
23978 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
23979 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
23980 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
23981 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
23982 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
23983 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
23984 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
23985 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
23986 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
23987 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
23988 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
23989 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
23990 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
23991 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
23992 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
23993 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
23994 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
23995 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
23996 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
23997 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
23998 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
23999 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
24000 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
24001 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
24002 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
24003 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
24004 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
24005 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
24006 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
24007 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
24008 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
24009 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
24010 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
24011 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
24012 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
24013 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
24014 #: ../src/guestfs-actions.pod:7988
24015 msgid "This function returns 0 on success or -1 on error."
24016 msgstr ""
24017
24018 #. type: textblock
24019 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24020 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
24021 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
24022 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
24023 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
24024 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
24025 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
24026 #: ../src/guestfs-actions.pod:7765
24027 msgid "(Added in 0.3)"
24028 msgstr ""
24029
24030 #. type: =head2
24031 #: ../src/guestfs-actions.pod:41
24032 msgid "guestfs_add_domain"
24033 msgstr ""
24034
24035 #. type: verbatim
24036 #: ../src/guestfs-actions.pod:43
24037 #, no-wrap
24038 msgid ""
24039 " int\n"
24040 " guestfs_add_domain (guestfs_h *g,\n"
24041 "                     const char *dom,\n"
24042 "                     ...);\n"
24043 "\n"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24048 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
24049 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
24050 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
24051 #: ../src/guestfs-actions.pod:5321
24052 msgid ""
24053 "You may supply a list of optional arguments to this call.  Use zero or more "
24054 "of the following pairs of parameters, and terminate the list with C<-1> on "
24055 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24056 msgstr ""
24057
24058 #. type: verbatim
24059 #: ../src/guestfs-actions.pod:53
24060 #, no-wrap
24061 msgid ""
24062 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24063 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24064 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24065 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24066 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24067 "\n"
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../src/guestfs-actions.pod:59
24072 msgid ""
24073 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24074 "It works by connecting to libvirt, requesting the domain and domain XML from "
24075 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24076 "one."
24077 msgstr ""
24078
24079 #. type: textblock
24080 #: ../src/guestfs-actions.pod:94
24081 msgid ""
24082 "The other optional parameters are passed directly through to "
24083 "C<guestfs_add_drive_opts>."
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
24088 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
24089 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
24090 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
24091 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
24092 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
24093 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
24094 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
24095 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
24096 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
24097 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
24098 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
24099 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
24100 msgid "On error this function returns -1."
24101 msgstr ""
24102
24103 #. type: textblock
24104 #: ../src/guestfs-actions.pod:99
24105 msgid "(Added in 1.7.4)"
24106 msgstr ""
24107
24108 #. type: =head2
24109 #: ../src/guestfs-actions.pod:101
24110 msgid "guestfs_add_domain_va"
24111 msgstr ""
24112
24113 #. type: verbatim
24114 #: ../src/guestfs-actions.pod:103
24115 #, no-wrap
24116 msgid ""
24117 " int\n"
24118 " guestfs_add_domain_va (guestfs_h *g,\n"
24119 "                        const char *dom,\n"
24120 "                        va_list args);\n"
24121 "\n"
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../src/guestfs-actions.pod:108
24126 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24127 msgstr ""
24128
24129 #. type: textblock
24130 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24131 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
24132 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
24133 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
24134 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
24135 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
24136 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
24137 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
24138 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
24139 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24140 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
24141
24142 #. type: =head2
24143 #: ../src/guestfs-actions.pod:112
24144 msgid "guestfs_add_domain_argv"
24145 msgstr "guestfs_add_domain_argv"
24146
24147 #. type: verbatim
24148 #: ../src/guestfs-actions.pod:114
24149 #, no-wrap
24150 msgid ""
24151 " int\n"
24152 " guestfs_add_domain_argv (guestfs_h *g,\n"
24153 "                          const char *dom,\n"
24154 "                          const struct guestfs_add_domain_argv *optargs);\n"
24155 "\n"
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../src/guestfs-actions.pod:119
24160 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24161 msgstr ""
24162
24163 #. type: =head2
24164 #: ../src/guestfs-actions.pod:123
24165 msgid "guestfs_add_drive"
24166 msgstr ""
24167
24168 #. type: verbatim
24169 #: ../src/guestfs-actions.pod:125
24170 #, no-wrap
24171 msgid ""
24172 " int\n"
24173 " guestfs_add_drive (guestfs_h *g,\n"
24174 "                    const char *filename);\n"
24175 "\n"
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../src/guestfs-actions.pod:129
24180 msgid ""
24181 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24182 "optional parameters, so the disk is added writable, with the format being "
24183 "detected automatically."
24184 msgstr ""
24185
24186 #. type: textblock
24187 #: ../src/guestfs-actions.pod:133
24188 msgid ""
24189 "Automatic detection of the format opens you up to a potential security hole "
24190 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24191 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24192 "you should think about replacing calls to this function with calls to "
24193 "C<guestfs_add_drive_opts>, and specifying the format."
24194 msgstr ""
24195
24196 #. type: =head2
24197 #: ../src/guestfs-actions.pod:144
24198 msgid "guestfs_add_drive_opts"
24199 msgstr ""
24200
24201 #. type: verbatim
24202 #: ../src/guestfs-actions.pod:146
24203 #, no-wrap
24204 msgid ""
24205 " int\n"
24206 " guestfs_add_drive_opts (guestfs_h *g,\n"
24207 "                         const char *filename,\n"
24208 "                         ...);\n"
24209 "\n"
24210 msgstr ""
24211
24212 #. type: verbatim
24213 #: ../src/guestfs-actions.pod:156
24214 #, no-wrap
24215 msgid ""
24216 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24217 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24218 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24219 "\n"
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../src/guestfs-actions.pod:185
24224 msgid ""
24225 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24226 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24227 "Possible formats include C<raw> and C<qcow2>."
24228 msgstr ""
24229
24230 #. type: textblock
24231 #: ../src/guestfs-actions.pod:196
24232 msgid ""
24233 "This rarely-used option lets you emulate the behaviour of the deprecated "
24234 "C<guestfs_add_drive_with_if> call (q.v.)"
24235 msgstr ""
24236
24237 #. type: textblock
24238 #: ../src/guestfs-actions.pod:203
24239 msgid "(Added in 1.5.23)"
24240 msgstr ""
24241
24242 #. type: =head2
24243 #: ../src/guestfs-actions.pod:205
24244 msgid "guestfs_add_drive_opts_va"
24245 msgstr ""
24246
24247 #. type: verbatim
24248 #: ../src/guestfs-actions.pod:207
24249 #, no-wrap
24250 msgid ""
24251 " int\n"
24252 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24253 "                            const char *filename,\n"
24254 "                            va_list args);\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: textblock
24259 #: ../src/guestfs-actions.pod:212
24260 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24261 msgstr ""
24262
24263 #. type: =head2
24264 #: ../src/guestfs-actions.pod:216
24265 msgid "guestfs_add_drive_opts_argv"
24266 msgstr ""
24267
24268 #. type: verbatim
24269 #: ../src/guestfs-actions.pod:218
24270 #, no-wrap
24271 msgid ""
24272 " int\n"
24273 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24274 "                              const char *filename,\n"
24275 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24276 "\n"
24277 msgstr ""
24278
24279 #. type: textblock
24280 #: ../src/guestfs-actions.pod:223
24281 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24282 msgstr ""
24283
24284 #. type: =head2
24285 #: ../src/guestfs-actions.pod:227
24286 msgid "guestfs_add_drive_ro"
24287 msgstr ""
24288
24289 #. type: verbatim
24290 #: ../src/guestfs-actions.pod:229
24291 #, no-wrap
24292 msgid ""
24293 " int\n"
24294 " guestfs_add_drive_ro (guestfs_h *g,\n"
24295 "                       const char *filename);\n"
24296 "\n"
24297 msgstr ""
24298
24299 #. type: textblock
24300 #: ../src/guestfs-actions.pod:233
24301 msgid ""
24302 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24303 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24304 "disk is added read-only, with the format being detected automatically."
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:240
24309 msgid "(Added in 1.0.38)"
24310 msgstr ""
24311
24312 #. type: =head2
24313 #: ../src/guestfs-actions.pod:242
24314 msgid "guestfs_add_drive_ro_with_if"
24315 msgstr ""
24316
24317 #. type: verbatim
24318 #: ../src/guestfs-actions.pod:244
24319 #, no-wrap
24320 msgid ""
24321 " int\n"
24322 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24323 "                               const char *filename,\n"
24324 "                               const char *iface);\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../src/guestfs-actions.pod:256
24330 msgid ""
24331 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24332 "QEMU interface emulation to use at run time."
24333 msgstr ""
24334
24335 #. type: textblock
24336 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
24337 #: ../src/guestfs-actions.pod:2580
24338 msgid "(Added in 1.0.84)"
24339 msgstr ""
24340
24341 #. type: =head2
24342 #: ../src/guestfs-actions.pod:263
24343 msgid "guestfs_add_drive_with_if"
24344 msgstr ""
24345
24346 #. type: verbatim
24347 #: ../src/guestfs-actions.pod:265
24348 #, no-wrap
24349 msgid ""
24350 " int\n"
24351 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24352 "                            const char *filename,\n"
24353 "                            const char *iface);\n"
24354 "\n"
24355 msgstr ""
24356
24357 #. type: textblock
24358 #: ../src/guestfs-actions.pod:277
24359 msgid ""
24360 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24361 "QEMU interface emulation to use at run time."
24362 msgstr ""
24363
24364 #. type: =head2
24365 #: ../src/guestfs-actions.pod:284
24366 msgid "guestfs_aug_clear"
24367 msgstr ""
24368
24369 #. type: verbatim
24370 #: ../src/guestfs-actions.pod:286
24371 #, no-wrap
24372 msgid ""
24373 " int\n"
24374 " guestfs_aug_clear (guestfs_h *g,\n"
24375 "                    const char *augpath);\n"
24376 "\n"
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
24381 msgid "(Added in 1.3.4)"
24382 msgstr ""
24383
24384 #. type: =head2
24385 #: ../src/guestfs-actions.pod:297
24386 msgid "guestfs_aug_close"
24387 msgstr ""
24388
24389 #. type: verbatim
24390 #: ../src/guestfs-actions.pod:299
24391 #, no-wrap
24392 msgid ""
24393 " int\n"
24394 " guestfs_aug_close (guestfs_h *g);\n"
24395 "\n"
24396 msgstr ""
24397
24398 #. type: textblock
24399 #: ../src/guestfs-actions.pod:302
24400 msgid ""
24401 "Close the current Augeas handle and free up any resources used by it.  After "
24402 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24403 "any other Augeas functions."
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24408 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24409 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24410 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24411 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24412 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24413 #: ../src/guestfs-actions.pod:5989
24414 msgid "(Added in 0.7)"
24415 msgstr ""
24416
24417 #. type: =head2
24418 #: ../src/guestfs-actions.pod:311
24419 msgid "guestfs_aug_defnode"
24420 msgstr ""
24421
24422 #. type: verbatim
24423 #: ../src/guestfs-actions.pod:313
24424 #, no-wrap
24425 msgid ""
24426 " struct guestfs_int_bool *\n"
24427 " guestfs_aug_defnode (guestfs_h *g,\n"
24428 "                      const char *name,\n"
24429 "                      const char *expr,\n"
24430 "                      const char *val);\n"
24431 "\n"
24432 msgstr ""
24433
24434 #. type: textblock
24435 #: ../src/guestfs-actions.pod:322
24436 msgid ""
24437 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24438 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24439 "containing that single node."
24440 msgstr ""
24441
24442 #. type: textblock
24443 #: ../src/guestfs-actions.pod:330
24444 msgid ""
24445 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24446 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24447 msgstr ""
24448
24449 #. type: =head2
24450 #: ../src/guestfs-actions.pod:336
24451 msgid "guestfs_aug_defvar"
24452 msgstr ""
24453
24454 #. type: verbatim
24455 #: ../src/guestfs-actions.pod:338
24456 #, no-wrap
24457 msgid ""
24458 " int\n"
24459 " guestfs_aug_defvar (guestfs_h *g,\n"
24460 "                     const char *name,\n"
24461 "                     const char *expr);\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../src/guestfs-actions.pod:354
24467 msgid "guestfs_aug_get"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../src/guestfs-actions.pod:356
24472 #, no-wrap
24473 msgid ""
24474 " char *\n"
24475 " guestfs_aug_get (guestfs_h *g,\n"
24476 "                  const char *augpath);\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24482 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24483 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24484 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
24485 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
24486 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
24487 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
24488 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
24489 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
24490 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
24491 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
24492 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
24493 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
24494 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
24495 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
24496 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
24497 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
24498 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
24499 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
24500 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
24501 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
24502 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
24503 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
24504 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
24505 msgid ""
24506 "This function returns a string, or NULL on error.  I<The caller must free "
24507 "the returned string after use>."
24508 msgstr ""
24509
24510 #. type: =head2
24511 #: ../src/guestfs-actions.pod:368
24512 msgid "guestfs_aug_init"
24513 msgstr ""
24514
24515 #. type: verbatim
24516 #: ../src/guestfs-actions.pod:370
24517 #, no-wrap
24518 msgid ""
24519 " int\n"
24520 " guestfs_aug_init (guestfs_h *g,\n"
24521 "                   const char *root,\n"
24522 "                   int flags);\n"
24523 "\n"
24524 msgstr ""
24525
24526 #. type: textblock
24527 #: ../src/guestfs-actions.pod:379
24528 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24529 msgstr ""
24530
24531 #. type: textblock
24532 #: ../src/guestfs-actions.pod:404
24533 msgid ""
24534 "This option is only useful when debugging Augeas lenses.  Use of this option "
24535 "may require additional memory for the libguestfs appliance.  You may need to "
24536 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24537 "C<guestfs_set_memsize>."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../src/guestfs-actions.pod:419
24542 msgid "Do not load the tree in C<guestfs_aug_init>."
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../src/guestfs-actions.pod:423
24547 msgid "To close the handle, you can call C<guestfs_aug_close>."
24548 msgstr ""
24549
24550 #. type: =head2
24551 #: ../src/guestfs-actions.pod:431
24552 msgid "guestfs_aug_insert"
24553 msgstr ""
24554
24555 #. type: verbatim
24556 #: ../src/guestfs-actions.pod:433
24557 #, no-wrap
24558 msgid ""
24559 " int\n"
24560 " guestfs_aug_insert (guestfs_h *g,\n"
24561 "                     const char *augpath,\n"
24562 "                     const char *label,\n"
24563 "                     int before);\n"
24564 "\n"
24565 msgstr ""
24566
24567 #. type: =head2
24568 #: ../src/guestfs-actions.pod:451
24569 msgid "guestfs_aug_load"
24570 msgstr ""
24571
24572 #. type: verbatim
24573 #: ../src/guestfs-actions.pod:453
24574 #, no-wrap
24575 msgid ""
24576 " int\n"
24577 " guestfs_aug_load (guestfs_h *g);\n"
24578 "\n"
24579 msgstr ""
24580
24581 #. type: =head2
24582 #: ../src/guestfs-actions.pod:465
24583 msgid "guestfs_aug_ls"
24584 msgstr ""
24585
24586 #. type: verbatim
24587 #: ../src/guestfs-actions.pod:467
24588 #, no-wrap
24589 msgid ""
24590 " char **\n"
24591 " guestfs_aug_ls (guestfs_h *g,\n"
24592 "                 const char *augpath);\n"
24593 "\n"
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../src/guestfs-actions.pod:471
24598 msgid ""
24599 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24600 "sorting the resulting nodes into alphabetical order."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24605 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24606 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
24607 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
24608 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
24609 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
24610 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
24611 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
24612 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
24613 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
24614 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
24615 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
24616 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
24617 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
24618 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
24619 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
24620 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
24621 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
24622 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
24623 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
24624 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
24625 #: ../src/guestfs-actions.pod:8086
24626 msgid ""
24627 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24628 ">), or NULL if there was an error.  I<The caller must free the strings and "
24629 "the array after use>."
24630 msgstr ""
24631
24632 #. type: textblock
24633 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24634 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
24635 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
24636 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
24637 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
24638 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
24639 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
24640 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
24641 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
24642 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
24643 #: ../src/guestfs-actions.pod:7877
24644 msgid "(Added in 0.8)"
24645 msgstr ""
24646
24647 #. type: =head2
24648 #: ../src/guestfs-actions.pod:480
24649 msgid "guestfs_aug_match"
24650 msgstr ""
24651
24652 #. type: verbatim
24653 #: ../src/guestfs-actions.pod:482
24654 #, no-wrap
24655 msgid ""
24656 " char **\n"
24657 " guestfs_aug_match (guestfs_h *g,\n"
24658 "                    const char *augpath);\n"
24659 "\n"
24660 msgstr ""
24661
24662 #. type: =head2
24663 #: ../src/guestfs-actions.pod:496
24664 msgid "guestfs_aug_mv"
24665 msgstr ""
24666
24667 #. type: verbatim
24668 #: ../src/guestfs-actions.pod:498
24669 #, no-wrap
24670 msgid ""
24671 " int\n"
24672 " guestfs_aug_mv (guestfs_h *g,\n"
24673 "                 const char *src,\n"
24674 "                 const char *dest);\n"
24675 "\n"
24676 msgstr ""
24677
24678 #. type: =head2
24679 #: ../src/guestfs-actions.pod:510
24680 msgid "guestfs_aug_rm"
24681 msgstr ""
24682
24683 #. type: verbatim
24684 #: ../src/guestfs-actions.pod:512
24685 #, no-wrap
24686 msgid ""
24687 " int\n"
24688 " guestfs_aug_rm (guestfs_h *g,\n"
24689 "                 const char *augpath);\n"
24690 "\n"
24691 msgstr ""
24692
24693 #. type: =head2
24694 #: ../src/guestfs-actions.pod:524
24695 msgid "guestfs_aug_save"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../src/guestfs-actions.pod:526
24700 #, no-wrap
24701 msgid ""
24702 " int\n"
24703 " guestfs_aug_save (guestfs_h *g);\n"
24704 "\n"
24705 msgstr ""
24706
24707 #. type: textblock
24708 #: ../src/guestfs-actions.pod:531
24709 msgid ""
24710 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24711 "are saved."
24712 msgstr ""
24713
24714 #. type: =head2
24715 #: ../src/guestfs-actions.pod:538
24716 msgid "guestfs_aug_set"
24717 msgstr ""
24718
24719 #. type: verbatim
24720 #: ../src/guestfs-actions.pod:540
24721 #, no-wrap
24722 msgid ""
24723 " int\n"
24724 " guestfs_aug_set (guestfs_h *g,\n"
24725 "                  const char *augpath,\n"
24726 "                  const char *val);\n"
24727 "\n"
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../src/guestfs-actions.pod:547
24732 msgid ""
24733 "In the Augeas API, it is possible to clear a node by setting the value to "
24734 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24735 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24736 msgstr ""
24737
24738 #. type: =head2
24739 #: ../src/guestfs-actions.pod:556
24740 msgid "guestfs_available"
24741 msgstr ""
24742
24743 #. type: verbatim
24744 #: ../src/guestfs-actions.pod:558
24745 #, no-wrap
24746 msgid ""
24747 " int\n"
24748 " guestfs_available (guestfs_h *g,\n"
24749 "                    char *const *groups);\n"
24750 "\n"
24751 msgstr ""
24752
24753 #. type: textblock
24754 #: ../src/guestfs-actions.pod:566
24755 msgid ""
24756 "The libguestfs groups, and the functions that those groups correspond to, "
24757 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24758 "runtime by calling C<guestfs_available_all_groups>."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../src/guestfs-actions.pod:590
24763 msgid "You must call C<guestfs_launch> before calling this function."
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../src/guestfs-actions.pod:612
24768 msgid ""
24769 "This call was added in version C<1.0.80>.  In previous versions of "
24770 "libguestfs all you could do would be to speculatively execute a command to "
24771 "find out if the daemon implemented it.  See also C<guestfs_version>."
24772 msgstr ""
24773
24774 #. type: textblock
24775 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
24776 msgid "(Added in 1.0.80)"
24777 msgstr ""
24778
24779 #. type: =head2
24780 #: ../src/guestfs-actions.pod:623
24781 msgid "guestfs_available_all_groups"
24782 msgstr ""
24783
24784 #. type: verbatim
24785 #: ../src/guestfs-actions.pod:625
24786 #, no-wrap
24787 msgid ""
24788 " char **\n"
24789 " guestfs_available_all_groups (guestfs_h *g);\n"
24790 "\n"
24791 msgstr ""
24792
24793 #. type: textblock
24794 #: ../src/guestfs-actions.pod:628
24795 msgid ""
24796 "This command returns a list of all optional groups that this daemon knows "
24797 "about.  Note this returns both supported and unsupported groups.  To find "
24798 "out which ones the daemon can actually support you have to call "
24799 "C<guestfs_available> on each member of the returned list."
24800 msgstr ""
24801
24802 #. type: textblock
24803 #: ../src/guestfs-actions.pod:634
24804 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../src/guestfs-actions.pod:640
24809 msgid "(Added in 1.3.15)"
24810 msgstr ""
24811
24812 #. type: =head2
24813 #: ../src/guestfs-actions.pod:642
24814 msgid "guestfs_base64_in"
24815 msgstr ""
24816
24817 #. type: verbatim
24818 #: ../src/guestfs-actions.pod:644
24819 #, no-wrap
24820 msgid ""
24821 " int\n"
24822 " guestfs_base64_in (guestfs_h *g,\n"
24823 "                    const char *base64file,\n"
24824 "                    const char *filename);\n"
24825 "\n"
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24830 msgid "(Added in 1.3.5)"
24831 msgstr ""
24832
24833 #. type: =head2
24834 #: ../src/guestfs-actions.pod:656
24835 msgid "guestfs_base64_out"
24836 msgstr ""
24837
24838 #. type: verbatim
24839 #: ../src/guestfs-actions.pod:658
24840 #, no-wrap
24841 msgid ""
24842 " int\n"
24843 " guestfs_base64_out (guestfs_h *g,\n"
24844 "                     const char *filename,\n"
24845 "                     const char *base64file);\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: =head2
24850 #: ../src/guestfs-actions.pod:670
24851 msgid "guestfs_blockdev_flushbufs"
24852 msgstr ""
24853
24854 #. type: verbatim
24855 #: ../src/guestfs-actions.pod:672
24856 #, no-wrap
24857 msgid ""
24858 " int\n"
24859 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24860 "                             const char *device);\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24866 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24867 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24868 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24869 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24870 msgid "(Added in 0.9.3)"
24871 msgstr ""
24872
24873 #. type: =head2
24874 #: ../src/guestfs-actions.pod:685
24875 msgid "guestfs_blockdev_getbsz"
24876 msgstr ""
24877
24878 #. type: verbatim
24879 #: ../src/guestfs-actions.pod:687
24880 #, no-wrap
24881 msgid ""
24882 " int\n"
24883 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24884 "                          const char *device);\n"
24885 "\n"
24886 msgstr ""
24887
24888 #. type: =head2
24889 #: ../src/guestfs-actions.pod:702
24890 msgid "guestfs_blockdev_getro"
24891 msgstr ""
24892
24893 #. type: verbatim
24894 #: ../src/guestfs-actions.pod:704
24895 #, no-wrap
24896 msgid ""
24897 " int\n"
24898 " guestfs_blockdev_getro (guestfs_h *g,\n"
24899 "                         const char *device);\n"
24900 "\n"
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
24905 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
24906 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
24907 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
24908 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
24909 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
24910 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
24911 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
24912 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
24913 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
24914 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
24915 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
24916 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
24917 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
24918 #: ../src/guestfs-actions.pod:5482
24919 msgid "This function returns a C truth value on success or -1 on error."
24920 msgstr ""
24921
24922 #. type: =head2
24923 #: ../src/guestfs-actions.pod:717
24924 msgid "guestfs_blockdev_getsize64"
24925 msgstr ""
24926
24927 #. type: verbatim
24928 #: ../src/guestfs-actions.pod:719
24929 #, no-wrap
24930 msgid ""
24931 " int64_t\n"
24932 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24933 "                             const char *device);\n"
24934 "\n"
24935 msgstr ""
24936
24937 #. type: textblock
24938 #: ../src/guestfs-actions.pod:725
24939 msgid "See also C<guestfs_blockdev_getsz>."
24940 msgstr ""
24941
24942 #. type: =head2
24943 #: ../src/guestfs-actions.pod:733
24944 msgid "guestfs_blockdev_getss"
24945 msgstr ""
24946
24947 #. type: verbatim
24948 #: ../src/guestfs-actions.pod:735
24949 #, no-wrap
24950 msgid ""
24951 " int\n"
24952 " guestfs_blockdev_getss (guestfs_h *g,\n"
24953 "                         const char *device);\n"
24954 "\n"
24955 msgstr ""
24956
24957 #. type: textblock
24958 #: ../src/guestfs-actions.pod:742
24959 msgid ""
24960 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24961 "that)."
24962 msgstr ""
24963
24964 #. type: =head2
24965 #: ../src/guestfs-actions.pod:751
24966 msgid "guestfs_blockdev_getsz"
24967 msgstr ""
24968
24969 #. type: verbatim
24970 #: ../src/guestfs-actions.pod:753
24971 #, no-wrap
24972 msgid ""
24973 " int64_t\n"
24974 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24975 "                         const char *device);\n"
24976 "\n"
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../src/guestfs-actions.pod:760
24981 msgid ""
24982 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24983 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24984 msgstr ""
24985
24986 #. type: =head2
24987 #: ../src/guestfs-actions.pod:770
24988 msgid "guestfs_blockdev_rereadpt"
24989 msgstr ""
24990
24991 #. type: verbatim
24992 #: ../src/guestfs-actions.pod:772
24993 #, no-wrap
24994 msgid ""
24995 " int\n"
24996 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24997 "                            const char *device);\n"
24998 "\n"
24999 msgstr ""
25000
25001 #. type: =head2
25002 #: ../src/guestfs-actions.pod:784
25003 msgid "guestfs_blockdev_setbsz"
25004 msgstr ""
25005
25006 #. type: verbatim
25007 #: ../src/guestfs-actions.pod:786
25008 #, no-wrap
25009 msgid ""
25010 " int\n"
25011 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25012 "                          const char *device,\n"
25013 "                          int blocksize);\n"
25014 "\n"
25015 msgstr ""
25016
25017 #. type: =head2
25018 #: ../src/guestfs-actions.pod:802
25019 msgid "guestfs_blockdev_setro"
25020 msgstr ""
25021
25022 #. type: verbatim
25023 #: ../src/guestfs-actions.pod:804
25024 #, no-wrap
25025 msgid ""
25026 " int\n"
25027 " guestfs_blockdev_setro (guestfs_h *g,\n"
25028 "                         const char *device);\n"
25029 "\n"
25030 msgstr ""
25031
25032 #. type: =head2
25033 #: ../src/guestfs-actions.pod:816
25034 msgid "guestfs_blockdev_setrw"
25035 msgstr ""
25036
25037 #. type: verbatim
25038 #: ../src/guestfs-actions.pod:818
25039 #, no-wrap
25040 msgid ""
25041 " int\n"
25042 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25043 "                         const char *device);\n"
25044 "\n"
25045 msgstr ""
25046
25047 #. type: =head2
25048 #: ../src/guestfs-actions.pod:830
25049 msgid "guestfs_btrfs_filesystem_resize"
25050 msgstr ""
25051
25052 #. type: verbatim
25053 #: ../src/guestfs-actions.pod:832
25054 #, no-wrap
25055 msgid ""
25056 " int\n"
25057 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25058 "                                  const char *mountpoint,\n"
25059 "                                  ...);\n"
25060 "\n"
25061 msgstr ""
25062
25063 #. type: verbatim
25064 #: ../src/guestfs-actions.pod:842
25065 #, no-wrap
25066 msgid ""
25067 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25068 "\n"
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../src/guestfs-actions.pod:865
25073 msgid "(Added in 1.11.17)"
25074 msgstr ""
25075
25076 #. type: =head2
25077 #: ../src/guestfs-actions.pod:867
25078 msgid "guestfs_btrfs_filesystem_resize_va"
25079 msgstr ""
25080
25081 #. type: verbatim
25082 #: ../src/guestfs-actions.pod:869
25083 #, no-wrap
25084 msgid ""
25085 " int\n"
25086 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25087 "                                     const char *mountpoint,\n"
25088 "                                     va_list args);\n"
25089 "\n"
25090 msgstr ""
25091
25092 #. type: textblock
25093 #: ../src/guestfs-actions.pod:874
25094 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:878
25099 msgid "guestfs_btrfs_filesystem_resize_argv"
25100 msgstr ""
25101
25102 #. type: verbatim
25103 #: ../src/guestfs-actions.pod:880
25104 #, no-wrap
25105 msgid ""
25106 " int\n"
25107 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25108 "                                       const char *mountpoint,\n"
25109 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25110 "\n"
25111 msgstr ""
25112
25113 #. type: textblock
25114 #: ../src/guestfs-actions.pod:885
25115 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25116 msgstr ""
25117
25118 #. type: =head2
25119 #: ../src/guestfs-actions.pod:889
25120 msgid "guestfs_case_sensitive_path"
25121 msgstr ""
25122
25123 #. type: verbatim
25124 #: ../src/guestfs-actions.pod:891
25125 #, no-wrap
25126 msgid ""
25127 " char *\n"
25128 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25129 "                              const char *path);\n"
25130 "\n"
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../src/guestfs-actions.pod:917
25135 msgid ""
25136 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25137 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25138 "how the directories were originally created under Windows)."
25139 msgstr ""
25140
25141 #. type: textblock
25142 #: ../src/guestfs-actions.pod:925
25143 msgid "See also C<guestfs_realpath>."
25144 msgstr ""
25145
25146 #. type: textblock
25147 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
25148 msgid "(Added in 1.0.75)"
25149 msgstr ""
25150
25151 #. type: =head2
25152 #: ../src/guestfs-actions.pod:932
25153 msgid "guestfs_cat"
25154 msgstr ""
25155
25156 #. type: verbatim
25157 #: ../src/guestfs-actions.pod:934
25158 #, no-wrap
25159 msgid ""
25160 " char *\n"
25161 " guestfs_cat (guestfs_h *g,\n"
25162 "              const char *path);\n"
25163 "\n"
25164 msgstr ""
25165
25166 #. type: textblock
25167 #: ../src/guestfs-actions.pod:940
25168 msgid ""
25169 "Note that this function cannot correctly handle binary files (specifically, "
25170 "files containing C<\\0> character which is treated as end of string).  For "
25171 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25172 "functions which have a more complex interface."
25173 msgstr ""
25174
25175 #. type: textblock
25176 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
25177 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
25178 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
25179 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
25180 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
25181 #: ../src/guestfs-actions.pod:7713
25182 msgid "(Added in 0.4)"
25183 msgstr ""
25184
25185 #. type: =head2
25186 #: ../src/guestfs-actions.pod:953
25187 msgid "guestfs_checksum"
25188 msgstr ""
25189
25190 #. type: verbatim
25191 #: ../src/guestfs-actions.pod:955
25192 #, no-wrap
25193 msgid ""
25194 " char *\n"
25195 " guestfs_checksum (guestfs_h *g,\n"
25196 "                   const char *csumtype,\n"
25197 "                   const char *path);\n"
25198 "\n"
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:1001
25203 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25204 msgstr ""
25205
25206 #. type: textblock
25207 #: ../src/guestfs-actions.pod:1003
25208 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
25213 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
25214 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
25215 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
25216 msgid "(Added in 1.0.2)"
25217 msgstr ""
25218
25219 #. type: =head2
25220 #: ../src/guestfs-actions.pod:1010
25221 msgid "guestfs_checksum_device"
25222 msgstr ""
25223
25224 #. type: verbatim
25225 #: ../src/guestfs-actions.pod:1012
25226 #, no-wrap
25227 msgid ""
25228 " char *\n"
25229 " guestfs_checksum_device (guestfs_h *g,\n"
25230 "                          const char *csumtype,\n"
25231 "                          const char *device);\n"
25232 "\n"
25233 msgstr ""
25234
25235 #. type: textblock
25236 #: ../src/guestfs-actions.pod:1017
25237 msgid ""
25238 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25239 "device named C<device>.  For the types of checksums supported see the "
25240 "C<guestfs_checksum> command."
25241 msgstr ""
25242
25243 #. type: textblock
25244 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
25245 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
25246 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
25247 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
25248 #: ../src/guestfs-actions.pod:7725
25249 msgid "(Added in 1.3.2)"
25250 msgstr ""
25251
25252 #. type: =head2
25253 #: ../src/guestfs-actions.pod:1026
25254 msgid "guestfs_checksums_out"
25255 msgstr ""
25256
25257 #. type: verbatim
25258 #: ../src/guestfs-actions.pod:1028
25259 #, no-wrap
25260 msgid ""
25261 " int\n"
25262 " guestfs_checksums_out (guestfs_h *g,\n"
25263 "                        const char *csumtype,\n"
25264 "                        const char *directory,\n"
25265 "                        const char *sumsfile);\n"
25266 "\n"
25267 msgstr ""
25268
25269 #. type: textblock
25270 #: ../src/guestfs-actions.pod:1048
25271 msgid "(Added in 1.3.7)"
25272 msgstr ""
25273
25274 #. type: =head2
25275 #: ../src/guestfs-actions.pod:1050
25276 msgid "guestfs_chmod"
25277 msgstr ""
25278
25279 #. type: verbatim
25280 #: ../src/guestfs-actions.pod:1052
25281 #, no-wrap
25282 msgid ""
25283 " int\n"
25284 " guestfs_chmod (guestfs_h *g,\n"
25285 "                int mode,\n"
25286 "                const char *path);\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: =head2
25291 #: ../src/guestfs-actions.pod:1070
25292 msgid "guestfs_chown"
25293 msgstr ""
25294
25295 #. type: verbatim
25296 #: ../src/guestfs-actions.pod:1072
25297 #, no-wrap
25298 msgid ""
25299 " int\n"
25300 " guestfs_chown (guestfs_h *g,\n"
25301 "                int owner,\n"
25302 "                int group,\n"
25303 "                const char *path);\n"
25304 "\n"
25305 msgstr ""
25306
25307 #. type: =head2
25308 #: ../src/guestfs-actions.pod:1088
25309 msgid "guestfs_command"
25310 msgstr ""
25311
25312 #. type: verbatim
25313 #: ../src/guestfs-actions.pod:1090
25314 #, no-wrap
25315 msgid ""
25316 " char *\n"
25317 " guestfs_command (guestfs_h *g,\n"
25318 "                  char *const *arguments);\n"
25319 "\n"
25320 msgstr ""
25321
25322 #. type: textblock
25323 #: ../src/guestfs-actions.pod:1099
25324 msgid ""
25325 "The single parameter is an argv-style list of arguments.  The first element "
25326 "is the name of the program to run.  Subsequent elements are parameters.  The "
25327 "list must be non-empty (ie. must contain a program name).  Note that the "
25328 "command runs directly, and is I<not> invoked via the shell (see "
25329 "C<guestfs_sh>)."
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
25334 #: ../src/guestfs-actions.pod:1726
25335 msgid "(Added in 0.9.1)"
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:1132
25340 msgid "guestfs_command_lines"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:1134
25345 #, no-wrap
25346 msgid ""
25347 " char **\n"
25348 " guestfs_command_lines (guestfs_h *g,\n"
25349 "                        char *const *arguments);\n"
25350 "\n"
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../src/guestfs-actions.pod:1138
25355 msgid ""
25356 "This is the same as C<guestfs_command>, but splits the result into a list of "
25357 "lines."
25358 msgstr ""
25359
25360 #. type: textblock
25361 #: ../src/guestfs-actions.pod:1141
25362 msgid "See also: C<guestfs_sh_lines>"
25363 msgstr ""
25364
25365 #. type: =head2
25366 #: ../src/guestfs-actions.pod:1152
25367 #, fuzzy
25368 #| msgid "guestfs_zero_device"
25369 msgid "guestfs_compress_device_out"
25370 msgstr "guestfs_zero_device"
25371
25372 #. type: verbatim
25373 #: ../src/guestfs-actions.pod:1154
25374 #, fuzzy, no-wrap
25375 #| msgid ""
25376 #| " int\n"
25377 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25378 #| "                             const char *device,\n"
25379 #| "                             const char *key,\n"
25380 #| "                             int keyslot,\n"
25381 #| "                             const char *cipher);\n"
25382 #| "\n"
25383 msgid ""
25384 " int\n"
25385 " guestfs_compress_device_out (guestfs_h *g,\n"
25386 "                              const char *ctype,\n"
25387 "                              const char *device,\n"
25388 "                              const char *zdevice,\n"
25389 "                              ...);\n"
25390 "\n"
25391 msgstr ""
25392 " int\n"
25393 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25394 "                             const char *device,\n"
25395 "                             const char *key,\n"
25396 "                             int keyslot,\n"
25397 "                             const char *cipher);\n"
25398 "\n"
25399
25400 #. type: verbatim
25401 #: ../src/guestfs-actions.pod:1166
25402 #, no-wrap
25403 msgid ""
25404 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25405 "\n"
25406 msgstr ""
25407
25408 #. type: textblock
25409 #: ../src/guestfs-actions.pod:1171
25410 msgid ""
25411 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25412 "C<guestfs_compress_out>."
25413 msgstr ""
25414
25415 #. type: textblock
25416 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
25417 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
25418 #, fuzzy
25419 #| msgid "(Added in 1.3.1)"
25420 msgid "(Added in 1.13.15)"
25421 msgstr "(Додано у 1.3.1)"
25422
25423 #. type: =head2
25424 #: ../src/guestfs-actions.pod:1178
25425 #, fuzzy
25426 #| msgid "guestfs_zero_device"
25427 msgid "guestfs_compress_device_out_va"
25428 msgstr "guestfs_zero_device"
25429
25430 #. type: verbatim
25431 #: ../src/guestfs-actions.pod:1180
25432 #, fuzzy, no-wrap
25433 #| msgid ""
25434 #| " int\n"
25435 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25436 #| "                             const char *device,\n"
25437 #| "                             const char *key,\n"
25438 #| "                             int keyslot,\n"
25439 #| "                             const char *cipher);\n"
25440 #| "\n"
25441 msgid ""
25442 " int\n"
25443 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25444 "                                 const char *ctype,\n"
25445 "                                 const char *device,\n"
25446 "                                 const char *zdevice,\n"
25447 "                                 va_list args);\n"
25448 "\n"
25449 msgstr ""
25450 " int\n"
25451 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25452 "                             const char *device,\n"
25453 "                             const char *key,\n"
25454 "                             int keyslot,\n"
25455 "                             const char *cipher);\n"
25456 "\n"
25457
25458 #. type: textblock
25459 #: ../src/guestfs-actions.pod:1187
25460 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25461 msgstr ""
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:1191
25465 #, fuzzy
25466 #| msgid "guestfs_mkfs_opts_argv"
25467 msgid "guestfs_compress_device_out_argv"
25468 msgstr "guestfs_mkfs_opts_argv"
25469
25470 #. type: verbatim
25471 #: ../src/guestfs-actions.pod:1193
25472 #, fuzzy, no-wrap
25473 #| msgid ""
25474 #| " int\n"
25475 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25476 #| "                         const char *fstype,\n"
25477 #| "                         const char *device,\n"
25478 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25479 #| "\n"
25480 msgid ""
25481 " int\n"
25482 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25483 "                                   const char *ctype,\n"
25484 "                                   const char *device,\n"
25485 "                                   const char *zdevice,\n"
25486 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25487 "\n"
25488 msgstr ""
25489 " int\n"
25490 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25491 "                         const char *fstype,\n"
25492 "                         const char *device,\n"
25493 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25494 "\n"
25495
25496 #. type: textblock
25497 #: ../src/guestfs-actions.pod:1200
25498 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../src/guestfs-actions.pod:1204
25503 #, fuzzy
25504 #| msgid "guestfs_create"
25505 msgid "guestfs_compress_out"
25506 msgstr "guestfs_create"
25507
25508 #. type: verbatim
25509 #: ../src/guestfs-actions.pod:1206
25510 #, fuzzy, no-wrap
25511 #| msgid ""
25512 #| " int\n"
25513 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25514 #| "                       const char *device,\n"
25515 #| "                       const char *key,\n"
25516 #| "                       const char *newkey,\n"
25517 #| "                       int keyslot);\n"
25518 #| "\n"
25519 msgid ""
25520 " int\n"
25521 " guestfs_compress_out (guestfs_h *g,\n"
25522 "                       const char *ctype,\n"
25523 "                       const char *file,\n"
25524 "                       const char *zfile,\n"
25525 "                       ...);\n"
25526 "\n"
25527 msgstr ""
25528 " int\n"
25529 " guestfs_luks_add_key (guestfs_h *g,\n"
25530 "                       const char *device,\n"
25531 "                       const char *key,\n"
25532 "                       const char *newkey,\n"
25533 "                       int keyslot);\n"
25534 "\n"
25535
25536 #. type: verbatim
25537 #: ../src/guestfs-actions.pod:1218
25538 #, no-wrap
25539 msgid ""
25540 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25541 "\n"
25542 msgstr ""
25543
25544 #. type: =head2
25545 #: ../src/guestfs-actions.pod:1237
25546 #, fuzzy
25547 #| msgid "guestfs_mkfs_opts_va"
25548 msgid "guestfs_compress_out_va"
25549 msgstr "guestfs_mkfs_opts_va"
25550
25551 #. type: verbatim
25552 #: ../src/guestfs-actions.pod:1239
25553 #, fuzzy, no-wrap
25554 #| msgid ""
25555 #| " int\n"
25556 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25557 #| "                       const char *device,\n"
25558 #| "                       const char *key,\n"
25559 #| "                       const char *newkey,\n"
25560 #| "                       int keyslot);\n"
25561 #| "\n"
25562 msgid ""
25563 " int\n"
25564 " guestfs_compress_out_va (guestfs_h *g,\n"
25565 "                          const char *ctype,\n"
25566 "                          const char *file,\n"
25567 "                          const char *zfile,\n"
25568 "                          va_list args);\n"
25569 "\n"
25570 msgstr ""
25571 " int\n"
25572 " guestfs_luks_add_key (guestfs_h *g,\n"
25573 "                       const char *device,\n"
25574 "                       const char *key,\n"
25575 "                       const char *newkey,\n"
25576 "                       int keyslot);\n"
25577 "\n"
25578
25579 #. type: textblock
25580 #: ../src/guestfs-actions.pod:1246
25581 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25582 msgstr ""
25583
25584 #. type: =head2
25585 #: ../src/guestfs-actions.pod:1250
25586 #, fuzzy
25587 #| msgid "guestfs_mkfs_opts_argv"
25588 msgid "guestfs_compress_out_argv"
25589 msgstr "guestfs_mkfs_opts_argv"
25590
25591 #. type: verbatim
25592 #: ../src/guestfs-actions.pod:1252
25593 #, fuzzy, no-wrap
25594 #| msgid ""
25595 #| " int\n"
25596 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25597 #| "                         const char *fstype,\n"
25598 #| "                         const char *device,\n"
25599 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25600 #| "\n"
25601 msgid ""
25602 " int\n"
25603 " guestfs_compress_out_argv (guestfs_h *g,\n"
25604 "                            const char *ctype,\n"
25605 "                            const char *file,\n"
25606 "                            const char *zfile,\n"
25607 "                            const struct guestfs_compress_out_argv *optargs);\n"
25608 "\n"
25609 msgstr ""
25610 " int\n"
25611 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25612 "                         const char *fstype,\n"
25613 "                         const char *device,\n"
25614 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25615 "\n"
25616
25617 #. type: textblock
25618 #: ../src/guestfs-actions.pod:1259
25619 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25620 msgstr ""
25621
25622 #. type: =head2
25623 #: ../src/guestfs-actions.pod:1263
25624 msgid "guestfs_config"
25625 msgstr ""
25626
25627 #. type: verbatim
25628 #: ../src/guestfs-actions.pod:1265
25629 #, no-wrap
25630 msgid ""
25631 " int\n"
25632 " guestfs_config (guestfs_h *g,\n"
25633 "                 const char *qemuparam,\n"
25634 "                 const char *qemuvalue);\n"
25635 "\n"
25636 msgstr ""
25637
25638 #. type: =head2
25639 #: ../src/guestfs-actions.pod:1283
25640 msgid "guestfs_copy_size"
25641 msgstr ""
25642
25643 #. type: verbatim
25644 #: ../src/guestfs-actions.pod:1285
25645 #, no-wrap
25646 msgid ""
25647 " int\n"
25648 " guestfs_copy_size (guestfs_h *g,\n"
25649 "                    const char *src,\n"
25650 "                    const char *dest,\n"
25651 "                    int64_t size);\n"
25652 "\n"
25653 msgstr ""
25654
25655 #. type: textblock
25656 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
25657 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
25658 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
25659 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
25660 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
25661 #: ../src/guestfs-actions.pod:7961
25662 msgid ""
25663 "This long-running command can generate progress notification messages so "
25664 "that the caller can display a progress bar or indicator.  To receive these "
25665 "messages, the caller must register a progress event callback.  See L<guestfs"
25666 "(3)/GUESTFS_EVENT_PROGRESS>."
25667 msgstr ""
25668
25669 #. type: textblock
25670 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
25671 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
25672 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
25673 msgid "(Added in 1.0.87)"
25674 msgstr ""
25675
25676 #. type: =head2
25677 #: ../src/guestfs-actions.pod:1306
25678 msgid "guestfs_cp"
25679 msgstr ""
25680
25681 #. type: verbatim
25682 #: ../src/guestfs-actions.pod:1308
25683 #, no-wrap
25684 msgid ""
25685 " int\n"
25686 " guestfs_cp (guestfs_h *g,\n"
25687 "             const char *src,\n"
25688 "             const char *dest);\n"
25689 "\n"
25690 msgstr ""
25691
25692 #. type: textblock
25693 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
25694 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
25695 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
25696 #: ../src/guestfs-actions.pod:5734
25697 msgid "(Added in 1.0.18)"
25698 msgstr ""
25699
25700 #. type: =head2
25701 #: ../src/guestfs-actions.pod:1320
25702 msgid "guestfs_cp_a"
25703 msgstr ""
25704
25705 #. type: verbatim
25706 #: ../src/guestfs-actions.pod:1322
25707 #, no-wrap
25708 msgid ""
25709 " int\n"
25710 " guestfs_cp_a (guestfs_h *g,\n"
25711 "               const char *src,\n"
25712 "               const char *dest);\n"
25713 "\n"
25714 msgstr ""
25715
25716 #. type: =head2
25717 #: ../src/guestfs-actions.pod:1334
25718 msgid "guestfs_dd"
25719 msgstr ""
25720
25721 #. type: verbatim
25722 #: ../src/guestfs-actions.pod:1336
25723 #, no-wrap
25724 msgid ""
25725 " int\n"
25726 " guestfs_dd (guestfs_h *g,\n"
25727 "             const char *src,\n"
25728 "             const char *dest);\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: textblock
25733 #: ../src/guestfs-actions.pod:1346
25734 msgid ""
25735 "If the destination is a device, it must be as large or larger than the "
25736 "source file or device, otherwise the copy will fail.  This command cannot do "
25737 "partial copies (see C<guestfs_copy_size>)."
25738 msgstr ""
25739
25740 #. type: =head2
25741 #: ../src/guestfs-actions.pod:1354
25742 msgid "guestfs_df"
25743 msgstr ""
25744
25745 #. type: verbatim
25746 #: ../src/guestfs-actions.pod:1356
25747 #, no-wrap
25748 msgid ""
25749 " char *\n"
25750 " guestfs_df (guestfs_h *g);\n"
25751 "\n"
25752 msgstr ""
25753
25754 #. type: textblock
25755 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
25756 msgid ""
25757 "This command is mostly useful for interactive sessions.  It is I<not> "
25758 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25759 "from programs."
25760 msgstr ""
25761
25762 #. type: textblock
25763 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
25764 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
25765 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
25766 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
25767 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
25768 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
25769 #: ../src/guestfs-actions.pod:7804
25770 msgid "(Added in 1.0.54)"
25771 msgstr ""
25772
25773 #. type: =head2
25774 #: ../src/guestfs-actions.pod:1370
25775 msgid "guestfs_df_h"
25776 msgstr ""
25777
25778 #. type: verbatim
25779 #: ../src/guestfs-actions.pod:1372
25780 #, no-wrap
25781 msgid ""
25782 " char *\n"
25783 " guestfs_df_h (guestfs_h *g);\n"
25784 "\n"
25785 msgstr ""
25786
25787 #. type: =head2
25788 #: ../src/guestfs-actions.pod:1387
25789 msgid "guestfs_dmesg"
25790 msgstr ""
25791
25792 #. type: verbatim
25793 #: ../src/guestfs-actions.pod:1389
25794 #, no-wrap
25795 msgid ""
25796 " char *\n"
25797 " guestfs_dmesg (guestfs_h *g);\n"
25798 "\n"
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:1396
25803 msgid ""
25804 "Another way to get the same information is to enable verbose messages with "
25805 "C<guestfs_set_verbose> or by setting the environment variable "
25806 "C<LIBGUESTFS_DEBUG=1> before running the program."
25807 msgstr ""
25808
25809 #. type: =head2
25810 #: ../src/guestfs-actions.pod:1406
25811 msgid "guestfs_download"
25812 msgstr ""
25813
25814 #. type: verbatim
25815 #: ../src/guestfs-actions.pod:1408
25816 #, no-wrap
25817 msgid ""
25818 " int\n"
25819 " guestfs_download (guestfs_h *g,\n"
25820 "                   const char *remotefilename,\n"
25821 "                   const char *filename);\n"
25822 "\n"
25823 msgstr ""
25824
25825 #. type: textblock
25826 #: ../src/guestfs-actions.pod:1418
25827 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25828 msgstr ""
25829
25830 #. type: =head2
25831 #: ../src/guestfs-actions.pod:1429
25832 msgid "guestfs_download_offset"
25833 msgstr ""
25834
25835 #. type: verbatim
25836 #: ../src/guestfs-actions.pod:1431
25837 #, no-wrap
25838 msgid ""
25839 " int\n"
25840 " guestfs_download_offset (guestfs_h *g,\n"
25841 "                          const char *remotefilename,\n"
25842 "                          const char *filename,\n"
25843 "                          int64_t offset,\n"
25844 "                          int64_t size);\n"
25845 "\n"
25846 msgstr ""
25847
25848 #. type: textblock
25849 #: ../src/guestfs-actions.pod:1444
25850 msgid ""
25851 "Note that there is no limit on the amount of data that can be downloaded "
25852 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25853 "full amount unless an error occurs."
25854 msgstr ""
25855
25856 #. type: textblock
25857 #: ../src/guestfs-actions.pod:1449
25858 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25859 msgstr ""
25860
25861 #. type: textblock
25862 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
25863 msgid "(Added in 1.5.17)"
25864 msgstr ""
25865
25866 #. type: =head2
25867 #: ../src/guestfs-actions.pod:1460
25868 msgid "guestfs_drop_caches"
25869 msgstr ""
25870
25871 #. type: verbatim
25872 #: ../src/guestfs-actions.pod:1462
25873 #, no-wrap
25874 msgid ""
25875 " int\n"
25876 " guestfs_drop_caches (guestfs_h *g,\n"
25877 "                      int whattodrop);\n"
25878 "\n"
25879 msgstr ""
25880
25881 #. type: =head2
25882 #: ../src/guestfs-actions.pod:1480
25883 msgid "guestfs_du"
25884 msgstr ""
25885
25886 #. type: verbatim
25887 #: ../src/guestfs-actions.pod:1482
25888 #, no-wrap
25889 msgid ""
25890 " int64_t\n"
25891 " guestfs_du (guestfs_h *g,\n"
25892 "             const char *path);\n"
25893 "\n"
25894 msgstr ""
25895
25896 #. type: =head2
25897 #: ../src/guestfs-actions.pod:1505
25898 msgid "guestfs_e2fsck_f"
25899 msgstr ""
25900
25901 #. type: verbatim
25902 #: ../src/guestfs-actions.pod:1507
25903 #, no-wrap
25904 msgid ""
25905 " int\n"
25906 " guestfs_e2fsck_f (guestfs_h *g,\n"
25907 "                   const char *device);\n"
25908 "\n"
25909 msgstr ""
25910
25911 #. type: textblock
25912 #: ../src/guestfs-actions.pod:1515
25913 msgid ""
25914 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25915 "Normally you should use C<guestfs_fsck>."
25916 msgstr ""
25917
25918 #. type: textblock
25919 #: ../src/guestfs-actions.pod:1520
25920 msgid "(Added in 1.0.29)"
25921 msgstr ""
25922
25923 #. type: =head2
25924 #: ../src/guestfs-actions.pod:1522
25925 msgid "guestfs_echo_daemon"
25926 msgstr ""
25927
25928 #. type: verbatim
25929 #: ../src/guestfs-actions.pod:1524
25930 #, no-wrap
25931 msgid ""
25932 " char *\n"
25933 " guestfs_echo_daemon (guestfs_h *g,\n"
25934 "                      char *const *words);\n"
25935 "\n"
25936 msgstr ""
25937
25938 #. type: textblock
25939 #: ../src/guestfs-actions.pod:1533
25940 msgid "See also C<guestfs_ping_daemon>."
25941 msgstr ""
25942
25943 #. type: textblock
25944 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
25945 #: ../src/guestfs-actions.pod:6607
25946 msgid "(Added in 1.0.69)"
25947 msgstr ""
25948
25949 #. type: =head2
25950 #: ../src/guestfs-actions.pod:1540
25951 msgid "guestfs_egrep"
25952 msgstr ""
25953
25954 #. type: verbatim
25955 #: ../src/guestfs-actions.pod:1542
25956 #, no-wrap
25957 msgid ""
25958 " char **\n"
25959 " guestfs_egrep (guestfs_h *g,\n"
25960 "                const char *regex,\n"
25961 "                const char *path);\n"
25962 "\n"
25963 msgstr ""
25964
25965 #. type: textblock
25966 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
25967 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
25968 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
25969 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
25970 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
25971 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
25972 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
25973 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
25974 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
25975 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
25976 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
25977 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
25978 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
25979 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
25980 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
25981 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
25982 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
25983 msgid "(Added in 1.0.66)"
25984 msgstr ""
25985
25986 #. type: =head2
25987 #: ../src/guestfs-actions.pod:1559
25988 msgid "guestfs_egrepi"
25989 msgstr ""
25990
25991 #. type: verbatim
25992 #: ../src/guestfs-actions.pod:1561
25993 #, no-wrap
25994 msgid ""
25995 " char **\n"
25996 " guestfs_egrepi (guestfs_h *g,\n"
25997 "                 const char *regex,\n"
25998 "                 const char *path);\n"
25999 "\n"
26000 msgstr ""
26001
26002 #. type: =head2
26003 #: ../src/guestfs-actions.pod:1578
26004 msgid "guestfs_equal"
26005 msgstr ""
26006
26007 #. type: verbatim
26008 #: ../src/guestfs-actions.pod:1580
26009 #, no-wrap
26010 msgid ""
26011 " int\n"
26012 " guestfs_equal (guestfs_h *g,\n"
26013 "                const char *file1,\n"
26014 "                const char *file2);\n"
26015 "\n"
26016 msgstr ""
26017
26018 #. type: =head2
26019 #: ../src/guestfs-actions.pod:1594
26020 msgid "guestfs_exists"
26021 msgstr ""
26022
26023 #. type: verbatim
26024 #: ../src/guestfs-actions.pod:1596
26025 #, no-wrap
26026 msgid ""
26027 " int\n"
26028 " guestfs_exists (guestfs_h *g,\n"
26029 "                 const char *path);\n"
26030 "\n"
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../src/guestfs-actions.pod:1603
26035 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26036 msgstr ""
26037
26038 #. type: =head2
26039 #: ../src/guestfs-actions.pod:1609
26040 msgid "guestfs_fallocate"
26041 msgstr ""
26042
26043 #. type: verbatim
26044 #: ../src/guestfs-actions.pod:1611
26045 #, no-wrap
26046 msgid ""
26047 " int\n"
26048 " guestfs_fallocate (guestfs_h *g,\n"
26049 "                    const char *path,\n"
26050 "                    int len);\n"
26051 "\n"
26052 msgstr ""
26053
26054 #. type: textblock
26055 #: ../src/guestfs-actions.pod:1616
26056 msgid ""
26057 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26058 "call instead."
26059 msgstr ""
26060
26061 #. type: =head2
26062 #: ../src/guestfs-actions.pod:1635
26063 msgid "guestfs_fallocate64"
26064 msgstr ""
26065
26066 #. type: verbatim
26067 #: ../src/guestfs-actions.pod:1637
26068 #, no-wrap
26069 msgid ""
26070 " int\n"
26071 " guestfs_fallocate64 (guestfs_h *g,\n"
26072 "                      const char *path,\n"
26073 "                      int64_t len);\n"
26074 "\n"
26075 msgstr ""
26076
26077 #. type: textblock
26078 #: ../src/guestfs-actions.pod:1646
26079 msgid ""
26080 "Note that this call allocates disk blocks for the file.  To create a sparse "
26081 "file use C<guestfs_truncate_size> instead."
26082 msgstr ""
26083
26084 #. type: textblock
26085 #: ../src/guestfs-actions.pod:1649
26086 msgid ""
26087 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26088 "oversight it only allowed 30 bit lengths to be specified, effectively "
26089 "limiting the maximum size of files created through that call to 1GB."
26090 msgstr ""
26091
26092 #. type: textblock
26093 #: ../src/guestfs-actions.pod:1660
26094 msgid "(Added in 1.3.17)"
26095 msgstr ""
26096
26097 #. type: =head2
26098 #: ../src/guestfs-actions.pod:1662
26099 msgid "guestfs_fgrep"
26100 msgstr ""
26101
26102 #. type: verbatim
26103 #: ../src/guestfs-actions.pod:1664
26104 #, no-wrap
26105 msgid ""
26106 " char **\n"
26107 " guestfs_fgrep (guestfs_h *g,\n"
26108 "                const char *pattern,\n"
26109 "                const char *path);\n"
26110 "\n"
26111 msgstr ""
26112
26113 #. type: =head2
26114 #: ../src/guestfs-actions.pod:1681
26115 msgid "guestfs_fgrepi"
26116 msgstr ""
26117
26118 #. type: verbatim
26119 #: ../src/guestfs-actions.pod:1683
26120 #, no-wrap
26121 msgid ""
26122 " char **\n"
26123 " guestfs_fgrepi (guestfs_h *g,\n"
26124 "                 const char *pattern,\n"
26125 "                 const char *path);\n"
26126 "\n"
26127 msgstr ""
26128
26129 #. type: =head2
26130 #: ../src/guestfs-actions.pod:1700
26131 msgid "guestfs_file"
26132 msgstr ""
26133
26134 #. type: verbatim
26135 #: ../src/guestfs-actions.pod:1702
26136 #, no-wrap
26137 msgid ""
26138 " char *\n"
26139 " guestfs_file (guestfs_h *g,\n"
26140 "               const char *path);\n"
26141 "\n"
26142 msgstr ""
26143
26144 #. type: textblock
26145 #: ../src/guestfs-actions.pod:1720
26146 msgid ""
26147 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26148 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26149 msgstr ""
26150
26151 #. type: =head2
26152 #: ../src/guestfs-actions.pod:1728
26153 msgid "guestfs_file_architecture"
26154 msgstr ""
26155
26156 #. type: verbatim
26157 #: ../src/guestfs-actions.pod:1730
26158 #, no-wrap
26159 msgid ""
26160 " char *\n"
26161 " guestfs_file_architecture (guestfs_h *g,\n"
26162 "                            const char *filename);\n"
26163 "\n"
26164 msgstr ""
26165
26166 #. type: textblock
26167 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
26168 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
26169 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
26170 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
26171 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
26172 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
26173 #: ../src/guestfs-actions.pod:3694
26174 msgid "(Added in 1.5.3)"
26175 msgstr ""
26176
26177 #. type: =head2
26178 #: ../src/guestfs-actions.pod:1840
26179 msgid "guestfs_filesize"
26180 msgstr ""
26181
26182 #. type: verbatim
26183 #: ../src/guestfs-actions.pod:1842
26184 #, no-wrap
26185 msgid ""
26186 " int64_t\n"
26187 " guestfs_filesize (guestfs_h *g,\n"
26188 "                   const char *file);\n"
26189 "\n"
26190 msgstr ""
26191
26192 #. type: textblock
26193 #: ../src/guestfs-actions.pod:1848
26194 msgid ""
26195 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26196 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26197 "devices, use C<guestfs_blockdev_getsize64>."
26198 msgstr ""
26199
26200 #. type: textblock
26201 #: ../src/guestfs-actions.pod:1854
26202 msgid "(Added in 1.0.82)"
26203 msgstr ""
26204
26205 #. type: =head2
26206 #: ../src/guestfs-actions.pod:1856
26207 msgid "guestfs_fill"
26208 msgstr ""
26209
26210 #. type: verbatim
26211 #: ../src/guestfs-actions.pod:1858
26212 #, no-wrap
26213 msgid ""
26214 " int\n"
26215 " guestfs_fill (guestfs_h *g,\n"
26216 "               int c,\n"
26217 "               int len,\n"
26218 "               const char *path);\n"
26219 "\n"
26220 msgstr ""
26221
26222 #. type: textblock
26223 #: ../src/guestfs-actions.pod:1868
26224 msgid ""
26225 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26226 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26227 "bytes use C<guestfs_fill_pattern>."
26228 msgstr ""
26229
26230 #. type: textblock
26231 #: ../src/guestfs-actions.pod:1880
26232 msgid "(Added in 1.0.79)"
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:1882
26237 msgid "guestfs_fill_pattern"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:1884
26242 #, no-wrap
26243 msgid ""
26244 " int\n"
26245 " guestfs_fill_pattern (guestfs_h *g,\n"
26246 "                       const char *pattern,\n"
26247 "                       int len,\n"
26248 "                       const char *path);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: textblock
26253 #: ../src/guestfs-actions.pod:1890
26254 msgid ""
26255 "This function is like C<guestfs_fill> except that it creates a new file of "
26256 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26257 "pattern is truncated if necessary to ensure the length of the file is "
26258 "exactly C<len> bytes."
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:1902
26263 msgid "(Added in 1.3.12)"
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:1904
26268 msgid "guestfs_find"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:1906
26273 #, no-wrap
26274 msgid ""
26275 " char **\n"
26276 " guestfs_find (guestfs_h *g,\n"
26277 "               const char *directory);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../src/guestfs-actions.pod:1922
26283 msgid ""
26284 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26285 msgstr ""
26286
26287 #. type: textblock
26288 #: ../src/guestfs-actions.pod:1935
26289 msgid "See also C<guestfs_find0>."
26290 msgstr ""
26291
26292 #. type: textblock
26293 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
26294 #: ../src/guestfs-actions.pod:6152
26295 msgid "(Added in 1.0.27)"
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:1946
26300 msgid "guestfs_find0"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:1948
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_find0 (guestfs_h *g,\n"
26309 "                const char *directory,\n"
26310 "                const char *files);\n"
26311 "\n"
26312 msgstr ""
26313
26314 #. type: textblock
26315 #: ../src/guestfs-actions.pod:1957
26316 msgid ""
26317 "This command works the same way as C<guestfs_find> with the following "
26318 "exceptions:"
26319 msgstr ""
26320
26321 #. type: textblock
26322 #: ../src/guestfs-actions.pod:1984
26323 msgid "(Added in 1.0.74)"
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../src/guestfs-actions.pod:1986
26328 msgid "guestfs_findfs_label"
26329 msgstr ""
26330
26331 #. type: verbatim
26332 #: ../src/guestfs-actions.pod:1988
26333 #, no-wrap
26334 msgid ""
26335 " char *\n"
26336 " guestfs_findfs_label (guestfs_h *g,\n"
26337 "                       const char *label);\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: textblock
26342 #: ../src/guestfs-actions.pod:1996
26343 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26344 msgstr ""
26345
26346 #. type: =head2
26347 #: ../src/guestfs-actions.pod:2003
26348 msgid "guestfs_findfs_uuid"
26349 msgstr ""
26350
26351 #. type: verbatim
26352 #: ../src/guestfs-actions.pod:2005
26353 #, no-wrap
26354 msgid ""
26355 " char *\n"
26356 " guestfs_findfs_uuid (guestfs_h *g,\n"
26357 "                      const char *uuid);\n"
26358 "\n"
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../src/guestfs-actions.pod:2013
26363 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:2020
26368 msgid "guestfs_fsck"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:2022
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_fsck (guestfs_h *g,\n"
26377 "               const char *fstype,\n"
26378 "               const char *device);\n"
26379 "\n"
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
26384 msgid "(Added in 1.0.16)"
26385 msgstr ""
26386
26387 #. type: =head2
26388 #: ../src/guestfs-actions.pod:2059
26389 msgid "guestfs_get_append"
26390 msgstr ""
26391
26392 #. type: verbatim
26393 #: ../src/guestfs-actions.pod:2061
26394 #, no-wrap
26395 msgid ""
26396 " const char *\n"
26397 " guestfs_get_append (guestfs_h *g);\n"
26398 "\n"
26399 msgstr ""
26400
26401 #. type: textblock
26402 #: ../src/guestfs-actions.pod:2069
26403 msgid ""
26404 "This function returns a string which may be NULL.  There is no way to return "
26405 "an error from this function.  The string is owned by the guest handle and "
26406 "must I<not> be freed."
26407 msgstr ""
26408
26409 #. type: textblock
26410 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
26411 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
26412 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
26413 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
26414 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
26415 msgid "(Added in 1.0.26)"
26416 msgstr ""
26417
26418 #. type: =head2
26419 #: ../src/guestfs-actions.pod:2075
26420 msgid "guestfs_get_attach_method"
26421 msgstr ""
26422
26423 #. type: verbatim
26424 #: ../src/guestfs-actions.pod:2077
26425 #, no-wrap
26426 msgid ""
26427 " char *\n"
26428 " guestfs_get_attach_method (guestfs_h *g);\n"
26429 "\n"
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:2080
26434 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26435 msgstr ""
26436
26437 #. type: textblock
26438 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
26439 msgid "(Added in 1.9.8)"
26440 msgstr ""
26441
26442 #. type: =head2
26443 #: ../src/guestfs-actions.pod:2087
26444 msgid "guestfs_get_autosync"
26445 msgstr ""
26446
26447 #. type: verbatim
26448 #: ../src/guestfs-actions.pod:2089
26449 #, no-wrap
26450 msgid ""
26451 " int\n"
26452 " guestfs_get_autosync (guestfs_h *g);\n"
26453 "\n"
26454 msgstr ""
26455
26456 #. type: =head2
26457 #: ../src/guestfs-actions.pod:2098
26458 msgid "guestfs_get_direct"
26459 msgstr ""
26460
26461 #. type: verbatim
26462 #: ../src/guestfs-actions.pod:2100
26463 #, no-wrap
26464 msgid ""
26465 " int\n"
26466 " guestfs_get_direct (guestfs_h *g);\n"
26467 "\n"
26468 msgstr ""
26469
26470 #. type: textblock
26471 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
26472 msgid "(Added in 1.0.72)"
26473 msgstr ""
26474
26475 #. type: =head2
26476 #: ../src/guestfs-actions.pod:2109
26477 msgid "guestfs_get_e2label"
26478 msgstr ""
26479
26480 #. type: verbatim
26481 #: ../src/guestfs-actions.pod:2111
26482 #, no-wrap
26483 msgid ""
26484 " char *\n"
26485 " guestfs_get_e2label (guestfs_h *g,\n"
26486 "                      const char *device);\n"
26487 "\n"
26488 msgstr ""
26489
26490 #. type: textblock
26491 #: ../src/guestfs-actions.pod:2115
26492 msgid ""
26493 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26494 "call instead."
26495 msgstr ""
26496
26497 #. type: textblock
26498 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
26499 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
26500 msgid "(Added in 1.0.15)"
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../src/guestfs-actions.pod:2130
26505 msgid "guestfs_get_e2uuid"
26506 msgstr ""
26507
26508 #. type: verbatim
26509 #: ../src/guestfs-actions.pod:2132
26510 #, no-wrap
26511 msgid ""
26512 " char *\n"
26513 " guestfs_get_e2uuid (guestfs_h *g,\n"
26514 "                     const char *device);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:2136
26520 msgid ""
26521 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26522 "call instead."
26523 msgstr ""
26524
26525 #. type: =head2
26526 #: ../src/guestfs-actions.pod:2151
26527 msgid "guestfs_get_memsize"
26528 msgstr ""
26529
26530 #. type: verbatim
26531 #: ../src/guestfs-actions.pod:2153
26532 #, no-wrap
26533 msgid ""
26534 " int\n"
26535 " guestfs_get_memsize (guestfs_h *g);\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: textblock
26540 #: ../src/guestfs-actions.pod:2159
26541 msgid ""
26542 "If C<guestfs_set_memsize> was not called on this handle, and if "
26543 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26544 "value for memsize."
26545 msgstr ""
26546
26547 #. type: textblock
26548 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
26549 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
26550 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
26551 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
26552 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
26553 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
26554 msgid "(Added in 1.0.55)"
26555 msgstr ""
26556
26557 #. type: =head2
26558 #: ../src/guestfs-actions.pod:2170
26559 msgid "guestfs_get_network"
26560 msgstr ""
26561
26562 #. type: verbatim
26563 #: ../src/guestfs-actions.pod:2172
26564 #, no-wrap
26565 msgid ""
26566 " int\n"
26567 " guestfs_get_network (guestfs_h *g);\n"
26568 "\n"
26569 msgstr ""
26570
26571 #. type: textblock
26572 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
26573 msgid "(Added in 1.5.4)"
26574 msgstr ""
26575
26576 #. type: =head2
26577 #: ../src/guestfs-actions.pod:2181
26578 msgid "guestfs_get_path"
26579 msgstr ""
26580
26581 #. type: verbatim
26582 #: ../src/guestfs-actions.pod:2183
26583 #, no-wrap
26584 msgid ""
26585 " const char *\n"
26586 " guestfs_get_path (guestfs_h *g);\n"
26587 "\n"
26588 msgstr ""
26589
26590 #. type: textblock
26591 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
26592 msgid ""
26593 "This function returns a string, or NULL on error.  The string is owned by "
26594 "the guest handle and must I<not> be freed."
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../src/guestfs-actions.pod:2196
26599 msgid "guestfs_get_pgroup"
26600 msgstr ""
26601
26602 #. type: verbatim
26603 #: ../src/guestfs-actions.pod:2198
26604 #, no-wrap
26605 msgid ""
26606 " int\n"
26607 " guestfs_get_pgroup (guestfs_h *g);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
26613 #: ../src/guestfs-actions.pod:7844
26614 #, fuzzy
26615 #| msgid "(Added in 1.5.1)"
26616 msgid "(Added in 1.11.18)"
26617 msgstr "(Додано у 1.5.1)"
26618
26619 #. type: =head2
26620 #: ../src/guestfs-actions.pod:2207
26621 msgid "guestfs_get_pid"
26622 msgstr ""
26623
26624 #. type: verbatim
26625 #: ../src/guestfs-actions.pod:2209
26626 #, no-wrap
26627 msgid ""
26628 " int\n"
26629 " guestfs_get_pid (guestfs_h *g);\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: textblock
26634 #: ../src/guestfs-actions.pod:2219
26635 msgid "(Added in 1.0.56)"
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../src/guestfs-actions.pod:2221
26640 msgid "guestfs_get_qemu"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../src/guestfs-actions.pod:2223
26645 #, no-wrap
26646 msgid ""
26647 " const char *\n"
26648 " guestfs_get_qemu (guestfs_h *g);\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: textblock
26653 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
26654 msgid "(Added in 1.0.6)"
26655 msgstr ""
26656
26657 #. type: =head2
26658 #: ../src/guestfs-actions.pod:2236
26659 msgid "guestfs_get_recovery_proc"
26660 msgstr ""
26661
26662 #. type: verbatim
26663 #: ../src/guestfs-actions.pod:2238
26664 #, no-wrap
26665 msgid ""
26666 " int\n"
26667 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26668 "\n"
26669 msgstr ""
26670
26671 #. type: textblock
26672 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
26673 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
26674 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
26675 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
26676 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
26677 #: ../src/guestfs-actions.pod:7467
26678 msgid "(Added in 1.0.77)"
26679 msgstr ""
26680
26681 #. type: =head2
26682 #: ../src/guestfs-actions.pod:2247
26683 msgid "guestfs_get_selinux"
26684 msgstr ""
26685
26686 #. type: verbatim
26687 #: ../src/guestfs-actions.pod:2249
26688 #, no-wrap
26689 msgid ""
26690 " int\n"
26691 " guestfs_get_selinux (guestfs_h *g);\n"
26692 "\n"
26693 msgstr ""
26694
26695 #. type: textblock
26696 #: ../src/guestfs-actions.pod:2252
26697 msgid ""
26698 "This returns the current setting of the selinux flag which is passed to the "
26699 "appliance at boot time.  See C<guestfs_set_selinux>."
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
26704 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
26705 msgid "(Added in 1.0.67)"
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:2262
26710 #, fuzzy
26711 #| msgid "guestfs_zgrep"
26712 msgid "guestfs_get_smp"
26713 msgstr "guestfs_zgrep"
26714
26715 #. type: verbatim
26716 #: ../src/guestfs-actions.pod:2264
26717 #, fuzzy, no-wrap
26718 #| msgid ""
26719 #| " int guestfs_last_errno (guestfs_h *g);\n"
26720 #| "\n"
26721 msgid ""
26722 " int\n"
26723 " guestfs_get_smp (guestfs_h *g);\n"
26724 "\n"
26725 msgstr ""
26726 " int guestfs_last_errno (guestfs_h *g);\n"
26727 "\n"
26728
26729 #. type: =head2
26730 #: ../src/guestfs-actions.pod:2273
26731 msgid "guestfs_get_state"
26732 msgstr ""
26733
26734 #. type: verbatim
26735 #: ../src/guestfs-actions.pod:2275
26736 #, no-wrap
26737 msgid ""
26738 " int\n"
26739 " guestfs_get_state (guestfs_h *g);\n"
26740 "\n"
26741 msgstr ""
26742
26743 #. type: =head2
26744 #: ../src/guestfs-actions.pod:2287
26745 msgid "guestfs_get_trace"
26746 msgstr ""
26747
26748 #. type: verbatim
26749 #: ../src/guestfs-actions.pod:2289
26750 #, no-wrap
26751 msgid ""
26752 " int\n"
26753 " guestfs_get_trace (guestfs_h *g);\n"
26754 "\n"
26755 msgstr ""
26756
26757 #. type: =head2
26758 #: ../src/guestfs-actions.pod:2298
26759 msgid "guestfs_get_umask"
26760 msgstr ""
26761
26762 #. type: verbatim
26763 #: ../src/guestfs-actions.pod:2300
26764 #, no-wrap
26765 msgid ""
26766 " int\n"
26767 " guestfs_get_umask (guestfs_h *g);\n"
26768 "\n"
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:2303
26773 msgid ""
26774 "Return the current umask.  By default the umask is C<022> unless it has been "
26775 "set by calling C<guestfs_umask>."
26776 msgstr ""
26777
26778 #. type: =head2
26779 #: ../src/guestfs-actions.pod:2310
26780 msgid "guestfs_get_verbose"
26781 msgstr ""
26782
26783 #. type: verbatim
26784 #: ../src/guestfs-actions.pod:2312
26785 #, no-wrap
26786 msgid ""
26787 " int\n"
26788 " guestfs_get_verbose (guestfs_h *g);\n"
26789 "\n"
26790 msgstr ""
26791
26792 #. type: =head2
26793 #: ../src/guestfs-actions.pod:2321
26794 msgid "guestfs_getcon"
26795 msgstr ""
26796
26797 #. type: verbatim
26798 #: ../src/guestfs-actions.pod:2323
26799 #, no-wrap
26800 msgid ""
26801 " char *\n"
26802 " guestfs_getcon (guestfs_h *g);\n"
26803 "\n"
26804 msgstr ""
26805
26806 #. type: textblock
26807 #: ../src/guestfs-actions.pod:2328
26808 msgid ""
26809 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../src/guestfs-actions.pod:2336
26814 msgid "guestfs_getxattr"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../src/guestfs-actions.pod:2338
26819 #, no-wrap
26820 msgid ""
26821 " char *\n"
26822 " guestfs_getxattr (guestfs_h *g,\n"
26823 "                   const char *path,\n"
26824 "                   const char *name,\n"
26825 "                   size_t *size_r);\n"
26826 "\n"
26827 msgstr ""
26828
26829 #. type: textblock
26830 #: ../src/guestfs-actions.pod:2344
26831 msgid ""
26832 "Get a single extended attribute from file C<path> named C<name>.  This call "
26833 "follows symlinks.  If you want to lookup an extended attribute for the "
26834 "symlink itself, use C<guestfs_lgetxattr>."
26835 msgstr ""
26836
26837 #. type: textblock
26838 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
26839 msgid ""
26840 "Normally it is better to get all extended attributes from a file in one go "
26841 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26842 "implementations are buggy and do not provide a way to list out attributes.  "
26843 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26844 "extended attributes you want in advance and call this function."
26845 msgstr ""
26846
26847 #. type: textblock
26848 #: ../src/guestfs-actions.pod:2358
26849 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26850 msgstr ""
26851
26852 #. type: textblock
26853 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
26854 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
26855 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
26856 #: ../src/guestfs-actions.pod:5960
26857 msgid ""
26858 "This function returns a buffer, or NULL on error.  The size of the returned "
26859 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26860 "after use>."
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
26865 msgid "(Added in 1.7.24)"
26866 msgstr ""
26867
26868 #. type: =head2
26869 #: ../src/guestfs-actions.pod:2366
26870 msgid "guestfs_getxattrs"
26871 msgstr ""
26872
26873 #. type: verbatim
26874 #: ../src/guestfs-actions.pod:2368
26875 #, no-wrap
26876 msgid ""
26877 " struct guestfs_xattr_list *\n"
26878 " guestfs_getxattrs (guestfs_h *g,\n"
26879 "                    const char *path);\n"
26880 "\n"
26881 msgstr ""
26882
26883 #. type: textblock
26884 #: ../src/guestfs-actions.pod:2378
26885 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
26890 #: ../src/guestfs-actions.pod:4546
26891 msgid ""
26892 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26893 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26894 msgstr ""
26895
26896 #. type: textblock
26897 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
26898 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
26899 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
26900 #: ../src/guestfs-actions.pod:8055
26901 msgid "(Added in 1.0.59)"
26902 msgstr ""
26903
26904 #. type: =head2
26905 #: ../src/guestfs-actions.pod:2386
26906 msgid "guestfs_glob_expand"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:2388
26911 #, no-wrap
26912 msgid ""
26913 " char **\n"
26914 " guestfs_glob_expand (guestfs_h *g,\n"
26915 "                      const char *pattern);\n"
26916 "\n"
26917 msgstr ""
26918
26919 #. type: textblock
26920 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
26921 #: ../src/guestfs-actions.pod:6870
26922 msgid "(Added in 1.0.50)"
26923 msgstr ""
26924
26925 #. type: =head2
26926 #: ../src/guestfs-actions.pod:2409
26927 msgid "guestfs_grep"
26928 msgstr ""
26929
26930 #. type: verbatim
26931 #: ../src/guestfs-actions.pod:2411
26932 #, no-wrap
26933 msgid ""
26934 " char **\n"
26935 " guestfs_grep (guestfs_h *g,\n"
26936 "               const char *regex,\n"
26937 "               const char *path);\n"
26938 "\n"
26939 msgstr ""
26940
26941 #. type: =head2
26942 #: ../src/guestfs-actions.pod:2428
26943 msgid "guestfs_grepi"
26944 msgstr ""
26945
26946 #. type: verbatim
26947 #: ../src/guestfs-actions.pod:2430
26948 #, no-wrap
26949 msgid ""
26950 " char **\n"
26951 " guestfs_grepi (guestfs_h *g,\n"
26952 "                const char *regex,\n"
26953 "                const char *path);\n"
26954 "\n"
26955 msgstr ""
26956
26957 #. type: =head2
26958 #: ../src/guestfs-actions.pod:2447
26959 msgid "guestfs_grub_install"
26960 msgstr ""
26961
26962 #. type: verbatim
26963 #: ../src/guestfs-actions.pod:2449
26964 #, no-wrap
26965 msgid ""
26966 " int\n"
26967 " guestfs_grub_install (guestfs_h *g,\n"
26968 "                       const char *root,\n"
26969 "                       const char *device);\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: textblock
26974 #: ../src/guestfs-actions.pod:2492
26975 msgid "(Added in 1.0.17)"
26976 msgstr ""
26977
26978 #. type: =head2
26979 #: ../src/guestfs-actions.pod:2494
26980 msgid "guestfs_head"
26981 msgstr ""
26982
26983 #. type: verbatim
26984 #: ../src/guestfs-actions.pod:2496
26985 #, no-wrap
26986 msgid ""
26987 " char **\n"
26988 " guestfs_head (guestfs_h *g,\n"
26989 "               const char *path);\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: =head2
26994 #: ../src/guestfs-actions.pod:2512
26995 msgid "guestfs_head_n"
26996 msgstr ""
26997
26998 #. type: verbatim
26999 #: ../src/guestfs-actions.pod:2514
27000 #, no-wrap
27001 msgid ""
27002 " char **\n"
27003 " guestfs_head_n (guestfs_h *g,\n"
27004 "                 int nrlines,\n"
27005 "                 const char *path);\n"
27006 "\n"
27007 msgstr ""
27008
27009 #. type: =head2
27010 #: ../src/guestfs-actions.pod:2536
27011 msgid "guestfs_hexdump"
27012 msgstr ""
27013
27014 #. type: verbatim
27015 #: ../src/guestfs-actions.pod:2538
27016 #, no-wrap
27017 msgid ""
27018 " char *\n"
27019 " guestfs_hexdump (guestfs_h *g,\n"
27020 "                  const char *path);\n"
27021 "\n"
27022 msgstr ""
27023
27024 #. type: textblock
27025 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
27026 #: ../src/guestfs-actions.pod:6989
27027 msgid "(Added in 1.0.22)"
27028 msgstr ""
27029
27030 #. type: =head2
27031 #: ../src/guestfs-actions.pod:2553
27032 msgid "guestfs_initrd_cat"
27033 msgstr ""
27034
27035 #. type: verbatim
27036 #: ../src/guestfs-actions.pod:2555
27037 #, no-wrap
27038 msgid ""
27039 " char *\n"
27040 " guestfs_initrd_cat (guestfs_h *g,\n"
27041 "                     const char *initrdpath,\n"
27042 "                     const char *filename,\n"
27043 "                     size_t *size_r);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:2571
27049 msgid "See also C<guestfs_initrd_list>."
27050 msgstr ""
27051
27052 #. type: =head2
27053 #: ../src/guestfs-actions.pod:2582
27054 msgid "guestfs_initrd_list"
27055 msgstr ""
27056
27057 #. type: verbatim
27058 #: ../src/guestfs-actions.pod:2584
27059 #, no-wrap
27060 msgid ""
27061 " char **\n"
27062 " guestfs_initrd_list (guestfs_h *g,\n"
27063 "                      const char *path);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:2604
27069 msgid "guestfs_inotify_add_watch"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:2606
27074 #, no-wrap
27075 msgid ""
27076 " int64_t\n"
27077 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27078 "                            const char *path,\n"
27079 "                            int mask);\n"
27080 "\n"
27081 msgstr ""
27082
27083 #. type: =head2
27084 #: ../src/guestfs-actions.pod:2625
27085 msgid "guestfs_inotify_close"
27086 msgstr ""
27087
27088 #. type: verbatim
27089 #: ../src/guestfs-actions.pod:2627
27090 #, no-wrap
27091 msgid ""
27092 " int\n"
27093 " guestfs_inotify_close (guestfs_h *g);\n"
27094 "\n"
27095 msgstr ""
27096
27097 #. type: =head2
27098 #: ../src/guestfs-actions.pod:2638
27099 msgid "guestfs_inotify_files"
27100 msgstr ""
27101
27102 #. type: verbatim
27103 #: ../src/guestfs-actions.pod:2640
27104 #, no-wrap
27105 msgid ""
27106 " char **\n"
27107 " guestfs_inotify_files (guestfs_h *g);\n"
27108 "\n"
27109 msgstr ""
27110
27111 #. type: textblock
27112 #: ../src/guestfs-actions.pod:2643
27113 msgid ""
27114 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27115 "returns a list of pathnames of objects that were touched.  The returned "
27116 "pathnames are sorted and deduplicated."
27117 msgstr ""
27118
27119 #. type: =head2
27120 #: ../src/guestfs-actions.pod:2653
27121 msgid "guestfs_inotify_init"
27122 msgstr ""
27123
27124 #. type: verbatim
27125 #: ../src/guestfs-actions.pod:2655
27126 #, no-wrap
27127 msgid ""
27128 " int\n"
27129 " guestfs_inotify_init (guestfs_h *g,\n"
27130 "                       int maxevents);\n"
27131 "\n"
27132 msgstr ""
27133
27134 #. type: textblock
27135 #: ../src/guestfs-actions.pod:2663
27136 msgid ""
27137 "C<maxevents> is the maximum number of events which will be queued up between "
27138 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27139 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27140 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27141 "throws away events, but records the fact that it threw them away by setting "
27142 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27143 "C<guestfs_inotify_read>)."
27144 msgstr ""
27145
27146 #. type: textblock
27147 #: ../src/guestfs-actions.pod:2673
27148 msgid ""
27149 "Before any events are generated, you have to add some watches to the "
27150 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27151 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27152 msgstr ""
27153
27154 #. type: textblock
27155 #: ../src/guestfs-actions.pod:2679
27156 msgid ""
27157 "Queued up events should be read periodically by calling "
27158 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27159 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27160 "often enough then you risk the internal queue overflowing."
27161 msgstr ""
27162
27163 #. type: textblock
27164 #: ../src/guestfs-actions.pod:2686
27165 msgid ""
27166 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27167 "This also removes any watches automatically."
27168 msgstr ""
27169
27170 #. type: =head2
27171 #: ../src/guestfs-actions.pod:2699
27172 msgid "guestfs_inotify_read"
27173 msgstr ""
27174
27175 #. type: verbatim
27176 #: ../src/guestfs-actions.pod:2701
27177 #, no-wrap
27178 msgid ""
27179 " struct guestfs_inotify_event_list *\n"
27180 " guestfs_inotify_read (guestfs_h *g);\n"
27181 "\n"
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:2715
27186 msgid ""
27187 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27188 "there was an error.  I<The caller must call "
27189 "C<guestfs_free_inotify_event_list> after use>."
27190 msgstr ""
27191
27192 #. type: =head2
27193 #: ../src/guestfs-actions.pod:2721
27194 msgid "guestfs_inotify_rm_watch"
27195 msgstr ""
27196
27197 #. type: verbatim
27198 #: ../src/guestfs-actions.pod:2723
27199 #, no-wrap
27200 msgid ""
27201 " int\n"
27202 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27203 "                           int wd);\n"
27204 "\n"
27205 msgstr ""
27206
27207 #. type: textblock
27208 #: ../src/guestfs-actions.pod:2727
27209 msgid ""
27210 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
27211 msgstr ""
27212
27213 #. type: =head2
27214 #: ../src/guestfs-actions.pod:2734
27215 msgid "guestfs_inspect_get_arch"
27216 msgstr ""
27217
27218 #. type: verbatim
27219 #: ../src/guestfs-actions.pod:2736
27220 #, no-wrap
27221 msgid ""
27222 " char *\n"
27223 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27224 "                           const char *root);\n"
27225 "\n"
27226 msgstr ""
27227
27228 #. type: textblock
27229 #: ../src/guestfs-actions.pod:2740
27230 msgid ""
27231 "This returns the architecture of the inspected operating system.  The "
27232 "possible return values are listed under C<guestfs_file_architecture>."
27233 msgstr ""
27234
27235 #. type: =head2
27236 #: ../src/guestfs-actions.pod:2754
27237 msgid "guestfs_inspect_get_distro"
27238 msgstr ""
27239
27240 #. type: verbatim
27241 #: ../src/guestfs-actions.pod:2756
27242 #, no-wrap
27243 msgid ""
27244 " char *\n"
27245 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27246 "                             const char *root);\n"
27247 "\n"
27248 msgstr ""
27249
27250 #. type: =head2
27251 #: ../src/guestfs-actions.pod:2848
27252 msgid "guestfs_inspect_get_drive_mappings"
27253 msgstr ""
27254
27255 #. type: verbatim
27256 #: ../src/guestfs-actions.pod:2850
27257 #, no-wrap
27258 msgid ""
27259 " char **\n"
27260 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27261 "                                     const char *root);\n"
27262 "\n"
27263 msgstr ""
27264
27265 #. type: textblock
27266 #: ../src/guestfs-actions.pod:2879
27267 msgid ""
27268 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27269 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27270 msgstr ""
27271
27272 #. type: textblock
27273 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
27274 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
27275 #: ../src/guestfs-actions.pod:7291
27276 msgid ""
27277 "This function returns a NULL-terminated array of strings, or NULL if there "
27278 "was an error.  The array of strings will always have length C<2n+1>, where "
27279 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27280 "caller must free the strings and the array after use>."
27281 msgstr ""
27282
27283 #. type: textblock
27284 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
27285 msgid "(Added in 1.9.17)"
27286 msgstr ""
27287
27288 #. type: =head2
27289 #: ../src/guestfs-actions.pod:2891
27290 msgid "guestfs_inspect_get_filesystems"
27291 msgstr ""
27292
27293 #. type: verbatim
27294 #: ../src/guestfs-actions.pod:2893
27295 #, no-wrap
27296 msgid ""
27297 " char **\n"
27298 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27299 "                                  const char *root);\n"
27300 "\n"
27301 msgstr ""
27302
27303 #. type: textblock
27304 #: ../src/guestfs-actions.pod:2905
27305 msgid ""
27306 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27307 "C<guestfs_inspect_get_mountpoints>."
27308 msgstr ""
27309
27310 #. type: =head2
27311 #: ../src/guestfs-actions.pod:2914
27312 msgid "guestfs_inspect_get_format"
27313 msgstr ""
27314
27315 #. type: verbatim
27316 #: ../src/guestfs-actions.pod:2916
27317 #, no-wrap
27318 msgid ""
27319 " char *\n"
27320 " guestfs_inspect_get_format (guestfs_h *g,\n"
27321 "                             const char *root);\n"
27322 "\n"
27323 msgstr ""
27324
27325 #. type: textblock
27326 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
27327 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
27328 #: ../src/guestfs-actions.pod:6171
27329 msgid "(Added in 1.9.4)"
27330 msgstr ""
27331
27332 #. type: =head2
27333 #: ../src/guestfs-actions.pod:2952
27334 msgid "guestfs_inspect_get_hostname"
27335 msgstr ""
27336
27337 #. type: verbatim
27338 #: ../src/guestfs-actions.pod:2954
27339 #, no-wrap
27340 msgid ""
27341 " char *\n"
27342 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27343 "                               const char *root);\n"
27344 "\n"
27345 msgstr ""
27346
27347 #. type: textblock
27348 #: ../src/guestfs-actions.pod:2969
27349 msgid "(Added in 1.7.9)"
27350 msgstr ""
27351
27352 #. type: =head2
27353 #: ../src/guestfs-actions.pod:2971
27354 msgid "guestfs_inspect_get_icon"
27355 msgstr ""
27356
27357 #. type: verbatim
27358 #: ../src/guestfs-actions.pod:2973
27359 #, no-wrap
27360 msgid ""
27361 " char *\n"
27362 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27363 "                           const char *root,\n"
27364 "                           size_t *size_r,\n"
27365 "                           ...);\n"
27366 "\n"
27367 msgstr ""
27368
27369 #. type: verbatim
27370 #: ../src/guestfs-actions.pod:2984
27371 #, no-wrap
27372 msgid ""
27373 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27374 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27375 "\n"
27376 msgstr ""
27377
27378 #. type: textblock
27379 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
27380 #: ../src/guestfs-actions.pod:5120
27381 msgid "(Added in 1.11.12)"
27382 msgstr ""
27383
27384 #. type: =head2
27385 #: ../src/guestfs-actions.pod:3053
27386 msgid "guestfs_inspect_get_icon_va"
27387 msgstr ""
27388
27389 #. type: verbatim
27390 #: ../src/guestfs-actions.pod:3055
27391 #, no-wrap
27392 msgid ""
27393 " char *\n"
27394 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27395 "                              const char *root,\n"
27396 "                              size_t *size_r,\n"
27397 "                              va_list args);\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: textblock
27402 #: ../src/guestfs-actions.pod:3061
27403 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27404 msgstr ""
27405
27406 #. type: =head2
27407 #: ../src/guestfs-actions.pod:3065
27408 msgid "guestfs_inspect_get_icon_argv"
27409 msgstr ""
27410
27411 #. type: verbatim
27412 #: ../src/guestfs-actions.pod:3067
27413 #, no-wrap
27414 msgid ""
27415 " char *\n"
27416 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27417 "                                const char *root,\n"
27418 "                                size_t *size_r,\n"
27419 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27420 "\n"
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:3073
27425 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27426 msgstr ""
27427
27428 #. type: =head2
27429 #: ../src/guestfs-actions.pod:3077
27430 msgid "guestfs_inspect_get_major_version"
27431 msgstr ""
27432
27433 #. type: verbatim
27434 #: ../src/guestfs-actions.pod:3079
27435 #, no-wrap
27436 msgid ""
27437 " int\n"
27438 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27439 "                                    const char *root);\n"
27440 "\n"
27441 msgstr ""
27442
27443 #. type: =head2
27444 #: ../src/guestfs-actions.pod:3101
27445 msgid "guestfs_inspect_get_minor_version"
27446 msgstr ""
27447
27448 #. type: verbatim
27449 #: ../src/guestfs-actions.pod:3103
27450 #, no-wrap
27451 msgid ""
27452 " int\n"
27453 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27454 "                                    const char *root);\n"
27455 "\n"
27456 msgstr ""
27457
27458 #. type: textblock
27459 #: ../src/guestfs-actions.pod:3112
27460 msgid ""
27461 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27462 "C<guestfs_inspect_get_major_version>."
27463 msgstr ""
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:3119
27467 msgid "guestfs_inspect_get_mountpoints"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:3121
27472 #, no-wrap
27473 msgid ""
27474 " char **\n"
27475 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27476 "                                  const char *root);\n"
27477 "\n"
27478 msgstr ""
27479
27480 #. type: textblock
27481 #: ../src/guestfs-actions.pod:3142
27482 msgid ""
27483 "For operating systems like Windows which still use drive letters, this call "
27484 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27485 "information about the mapping of drive letters to partitions, see "
27486 "C<guestfs_inspect_get_drive_mappings>."
27487 msgstr ""
27488
27489 #. type: textblock
27490 #: ../src/guestfs-actions.pod:3148
27491 msgid ""
27492 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27493 "C<guestfs_inspect_get_filesystems>."
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:3159
27498 msgid "guestfs_inspect_get_package_format"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:3161
27503 #, no-wrap
27504 msgid ""
27505 " char *\n"
27506 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27507 "                                     const char *root);\n"
27508 "\n"
27509 msgstr ""
27510
27511 #. type: textblock
27512 #: ../src/guestfs-actions.pod:3165
27513 msgid ""
27514 "This function and C<guestfs_inspect_get_package_management> return the "
27515 "package format and package management tool used by the inspected operating "
27516 "system.  For example for Fedora these functions would return C<rpm> (package "
27517 "format) and C<yum> (package management)."
27518 msgstr ""
27519
27520 #. type: textblock
27521 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
27522 msgid "(Added in 1.7.5)"
27523 msgstr ""
27524
27525 #. type: =head2
27526 #: ../src/guestfs-actions.pod:3185
27527 msgid "guestfs_inspect_get_package_management"
27528 msgstr ""
27529
27530 #. type: verbatim
27531 #: ../src/guestfs-actions.pod:3187
27532 #, no-wrap
27533 msgid ""
27534 " char *\n"
27535 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27536 "                                         const char *root);\n"
27537 "\n"
27538 msgstr ""
27539
27540 #. type: textblock
27541 #: ../src/guestfs-actions.pod:3191
27542 msgid ""
27543 "C<guestfs_inspect_get_package_format> and this function return the package "
27544 "format and package management tool used by the inspected operating system.  "
27545 "For example for Fedora these functions would return C<rpm> (package format) "
27546 "and C<yum> (package management)."
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:3213
27551 msgid "guestfs_inspect_get_product_name"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:3215
27556 #, no-wrap
27557 msgid ""
27558 " char *\n"
27559 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27560 "                                   const char *root);\n"
27561 "\n"
27562 msgstr ""
27563
27564 #. type: =head2
27565 #: ../src/guestfs-actions.pod:3234
27566 msgid "guestfs_inspect_get_product_variant"
27567 msgstr ""
27568
27569 #. type: verbatim
27570 #: ../src/guestfs-actions.pod:3236
27571 #, no-wrap
27572 msgid ""
27573 " char *\n"
27574 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27575 "                                      const char *root);\n"
27576 "\n"
27577 msgstr ""
27578
27579 #. type: textblock
27580 #: ../src/guestfs-actions.pod:3259
27581 msgid ""
27582 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27583 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27584 msgstr ""
27585
27586 #. type: textblock
27587 #: ../src/guestfs-actions.pod:3266
27588 msgid "(Added in 1.9.13)"
27589 msgstr ""
27590
27591 #. type: =head2
27592 #: ../src/guestfs-actions.pod:3268
27593 msgid "guestfs_inspect_get_roots"
27594 msgstr ""
27595
27596 #. type: verbatim
27597 #: ../src/guestfs-actions.pod:3270
27598 #, no-wrap
27599 msgid ""
27600 " char **\n"
27601 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27602 "\n"
27603 msgstr ""
27604
27605 #. type: textblock
27606 #: ../src/guestfs-actions.pod:3273
27607 msgid ""
27608 "This function is a convenient way to get the list of root devices, as "
27609 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27610 "the whole inspection process."
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../src/guestfs-actions.pod:3277
27615 msgid ""
27616 "This returns an empty list if either no root devices were found or the "
27617 "caller has not called C<guestfs_inspect_os>."
27618 msgstr ""
27619
27620 #. type: textblock
27621 #: ../src/guestfs-actions.pod:3286
27622 msgid "(Added in 1.7.3)"
27623 msgstr ""
27624
27625 #. type: =head2
27626 #: ../src/guestfs-actions.pod:3288
27627 msgid "guestfs_inspect_get_type"
27628 msgstr ""
27629
27630 #. type: verbatim
27631 #: ../src/guestfs-actions.pod:3290
27632 #, no-wrap
27633 msgid ""
27634 " char *\n"
27635 " guestfs_inspect_get_type (guestfs_h *g,\n"
27636 "                           const char *root);\n"
27637 "\n"
27638 msgstr ""
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:3327
27642 msgid "guestfs_inspect_get_windows_current_control_set"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:3329
27647 #, no-wrap
27648 msgid ""
27649 " char *\n"
27650 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27651 "                                                  const char *root);\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: =head2
27656 #: ../src/guestfs-actions.pod:3347
27657 msgid "guestfs_inspect_get_windows_systemroot"
27658 msgstr ""
27659
27660 #. type: verbatim
27661 #: ../src/guestfs-actions.pod:3349
27662 #, no-wrap
27663 msgid ""
27664 " char *\n"
27665 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27666 "                                         const char *root);\n"
27667 "\n"
27668 msgstr ""
27669
27670 #. type: textblock
27671 #: ../src/guestfs-actions.pod:3365
27672 msgid "(Added in 1.5.25)"
27673 msgstr ""
27674
27675 #. type: =head2
27676 #: ../src/guestfs-actions.pod:3367
27677 msgid "guestfs_inspect_is_live"
27678 msgstr ""
27679
27680 #. type: verbatim
27681 #: ../src/guestfs-actions.pod:3369
27682 #, no-wrap
27683 msgid ""
27684 " int\n"
27685 " guestfs_inspect_is_live (guestfs_h *g,\n"
27686 "                          const char *root);\n"
27687 "\n"
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:3373
27692 msgid ""
27693 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27694 "disk), then this returns true if a live image was detected on the disk."
27695 msgstr ""
27696
27697 #. type: =head2
27698 #: ../src/guestfs-actions.pod:3383
27699 msgid "guestfs_inspect_is_multipart"
27700 msgstr ""
27701
27702 #. type: verbatim
27703 #: ../src/guestfs-actions.pod:3385
27704 #, no-wrap
27705 msgid ""
27706 " int\n"
27707 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27708 "                               const char *root);\n"
27709 "\n"
27710 msgstr ""
27711
27712 #. type: textblock
27713 #: ../src/guestfs-actions.pod:3389
27714 msgid ""
27715 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27716 "disk), then this returns true if the disk is part of a set."
27717 msgstr ""
27718
27719 #. type: =head2
27720 #: ../src/guestfs-actions.pod:3399
27721 msgid "guestfs_inspect_is_netinst"
27722 msgstr ""
27723
27724 #. type: verbatim
27725 #: ../src/guestfs-actions.pod:3401
27726 #, no-wrap
27727 msgid ""
27728 " int\n"
27729 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27730 "                             const char *root);\n"
27731 "\n"
27732 msgstr ""
27733
27734 #. type: textblock
27735 #: ../src/guestfs-actions.pod:3405
27736 msgid ""
27737 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27738 "disk), then this returns true if the disk is a network installer, ie. not a "
27739 "self-contained install CD but one which is likely to require network access "
27740 "to complete the install."
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:3417
27745 msgid "guestfs_inspect_list_applications"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:3419
27750 #, no-wrap
27751 msgid ""
27752 " struct guestfs_application_list *\n"
27753 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27754 "                                    const char *root);\n"
27755 "\n"
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:3425
27760 msgid ""
27761 "I<Note:> This call works differently from other parts of the inspection "
27762 "API.  You have to call C<guestfs_inspect_os>, then "
27763 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27764 "this.  Listing applications is a significantly more difficult operation "
27765 "which requires access to the full filesystem.  Also note that unlike the "
27766 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27767 "the libguestfs handle, this call actually reads parts of the mounted "
27768 "filesystems during the call."
27769 msgstr ""
27770
27771 #. type: textblock
27772 #: ../src/guestfs-actions.pod:3515
27773 msgid ""
27774 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27775 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27776 "after use>."
27777 msgstr ""
27778
27779 #. type: textblock
27780 #: ../src/guestfs-actions.pod:3519
27781 msgid "(Added in 1.7.8)"
27782 msgstr ""
27783
27784 #. type: =head2
27785 #: ../src/guestfs-actions.pod:3521
27786 msgid "guestfs_inspect_os"
27787 msgstr ""
27788
27789 #. type: verbatim
27790 #: ../src/guestfs-actions.pod:3523
27791 #, no-wrap
27792 msgid ""
27793 " char **\n"
27794 " guestfs_inspect_os (guestfs_h *g);\n"
27795 "\n"
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../src/guestfs-actions.pod:3539
27800 msgid ""
27801 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27802 "functions in order to query further information about each operating system, "
27803 "such as the name and version."
27804 msgstr ""
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:3544
27808 msgid ""
27809 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27810 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27811 "the contents.  This should be called with no disks currently mounted.  The "
27812 "function may also use Augeas, so any existing Augeas handle will be closed."
27813 msgstr ""
27814
27815 #. type: textblock
27816 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
27817 #: ../src/guestfs-actions.pod:3969
27818 msgid "See also C<guestfs_list_filesystems>."
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../src/guestfs-actions.pod:3564
27823 msgid "guestfs_is_blockdev"
27824 msgstr ""
27825
27826 #. type: verbatim
27827 #: ../src/guestfs-actions.pod:3566
27828 #, no-wrap
27829 msgid ""
27830 " int\n"
27831 " guestfs_is_blockdev (guestfs_h *g,\n"
27832 "                      const char *path);\n"
27833 "\n"
27834 msgstr ""
27835
27836 #. type: textblock
27837 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
27838 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
27839 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
27840 #: ../src/guestfs-actions.pod:3734
27841 msgid "See also C<guestfs_stat>."
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
27846 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
27847 #: ../src/guestfs-actions.pod:3738
27848 msgid "(Added in 1.5.10)"
27849 msgstr ""
27850
27851 #. type: =head2
27852 #: ../src/guestfs-actions.pod:3579
27853 msgid "guestfs_is_busy"
27854 msgstr ""
27855
27856 #. type: verbatim
27857 #: ../src/guestfs-actions.pod:3581
27858 #, no-wrap
27859 msgid ""
27860 " int\n"
27861 " guestfs_is_busy (guestfs_h *g);\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: =head2
27866 #: ../src/guestfs-actions.pod:3593
27867 msgid "guestfs_is_chardev"
27868 msgstr ""
27869
27870 #. type: verbatim
27871 #: ../src/guestfs-actions.pod:3595
27872 #, no-wrap
27873 msgid ""
27874 " int\n"
27875 " guestfs_is_chardev (guestfs_h *g,\n"
27876 "                     const char *path);\n"
27877 "\n"
27878 msgstr ""
27879
27880 #. type: =head2
27881 #: ../src/guestfs-actions.pod:3608
27882 msgid "guestfs_is_config"
27883 msgstr ""
27884
27885 #. type: verbatim
27886 #: ../src/guestfs-actions.pod:3610
27887 #, no-wrap
27888 msgid ""
27889 " int\n"
27890 " guestfs_is_config (guestfs_h *g);\n"
27891 "\n"
27892 msgstr ""
27893
27894 #. type: =head2
27895 #: ../src/guestfs-actions.pod:3622
27896 msgid "guestfs_is_dir"
27897 msgstr ""
27898
27899 #. type: verbatim
27900 #: ../src/guestfs-actions.pod:3624
27901 #, no-wrap
27902 msgid ""
27903 " int\n"
27904 " guestfs_is_dir (guestfs_h *g,\n"
27905 "                 const char *path);\n"
27906 "\n"
27907 msgstr ""
27908
27909 #. type: =head2
27910 #: ../src/guestfs-actions.pod:3638
27911 msgid "guestfs_is_fifo"
27912 msgstr ""
27913
27914 #. type: verbatim
27915 #: ../src/guestfs-actions.pod:3640
27916 #, no-wrap
27917 msgid ""
27918 " int\n"
27919 " guestfs_is_fifo (guestfs_h *g,\n"
27920 "                  const char *path);\n"
27921 "\n"
27922 msgstr ""
27923
27924 #. type: =head2
27925 #: ../src/guestfs-actions.pod:3653
27926 msgid "guestfs_is_file"
27927 msgstr ""
27928
27929 #. type: verbatim
27930 #: ../src/guestfs-actions.pod:3655
27931 #, no-wrap
27932 msgid ""
27933 " int\n"
27934 " guestfs_is_file (guestfs_h *g,\n"
27935 "                  const char *path);\n"
27936 "\n"
27937 msgstr ""
27938
27939 #. type: =head2
27940 #: ../src/guestfs-actions.pod:3669
27941 msgid "guestfs_is_launching"
27942 msgstr ""
27943
27944 #. type: verbatim
27945 #: ../src/guestfs-actions.pod:3671
27946 #, no-wrap
27947 msgid ""
27948 " int\n"
27949 " guestfs_is_launching (guestfs_h *g);\n"
27950 "\n"
27951 msgstr ""
27952
27953 #. type: =head2
27954 #: ../src/guestfs-actions.pod:3683
27955 msgid "guestfs_is_lv"
27956 msgstr ""
27957
27958 #. type: verbatim
27959 #: ../src/guestfs-actions.pod:3685
27960 #, no-wrap
27961 msgid ""
27962 " int\n"
27963 " guestfs_is_lv (guestfs_h *g,\n"
27964 "                const char *device);\n"
27965 "\n"
27966 msgstr ""
27967
27968 #. type: =head2
27969 #: ../src/guestfs-actions.pod:3696
27970 msgid "guestfs_is_ready"
27971 msgstr ""
27972
27973 #. type: verbatim
27974 #: ../src/guestfs-actions.pod:3698
27975 #, no-wrap
27976 msgid ""
27977 " int\n"
27978 " guestfs_is_ready (guestfs_h *g);\n"
27979 "\n"
27980 msgstr ""
27981
27982 #. type: =head2
27983 #: ../src/guestfs-actions.pod:3710
27984 msgid "guestfs_is_socket"
27985 msgstr ""
27986
27987 #. type: verbatim
27988 #: ../src/guestfs-actions.pod:3712
27989 #, no-wrap
27990 msgid ""
27991 " int\n"
27992 " guestfs_is_socket (guestfs_h *g,\n"
27993 "                    const char *path);\n"
27994 "\n"
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:3725
27999 msgid "guestfs_is_symlink"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:3727
28004 #, no-wrap
28005 msgid ""
28006 " int\n"
28007 " guestfs_is_symlink (guestfs_h *g,\n"
28008 "                     const char *path);\n"
28009 "\n"
28010 msgstr ""
28011
28012 #. type: =head2
28013 #: ../src/guestfs-actions.pod:3740
28014 msgid "guestfs_is_zero"
28015 msgstr ""
28016
28017 #. type: verbatim
28018 #: ../src/guestfs-actions.pod:3742
28019 #, no-wrap
28020 msgid ""
28021 " int\n"
28022 " guestfs_is_zero (guestfs_h *g,\n"
28023 "                  const char *path);\n"
28024 "\n"
28025 msgstr ""
28026
28027 #. type: textblock
28028 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
28029 msgid "(Added in 1.11.8)"
28030 msgstr ""
28031
28032 #. type: =head2
28033 #: ../src/guestfs-actions.pod:3753
28034 msgid "guestfs_is_zero_device"
28035 msgstr ""
28036
28037 #. type: verbatim
28038 #: ../src/guestfs-actions.pod:3755
28039 #, no-wrap
28040 msgid ""
28041 " int\n"
28042 " guestfs_is_zero_device (guestfs_h *g,\n"
28043 "                         const char *device);\n"
28044 "\n"
28045 msgstr ""
28046
28047 #. type: =head2
28048 #: ../src/guestfs-actions.pod:3767
28049 msgid "guestfs_kill_subprocess"
28050 msgstr ""
28051
28052 #. type: verbatim
28053 #: ../src/guestfs-actions.pod:3769
28054 #, no-wrap
28055 msgid ""
28056 " int\n"
28057 " guestfs_kill_subprocess (guestfs_h *g);\n"
28058 "\n"
28059 msgstr ""
28060
28061 #. type: =head2
28062 #: ../src/guestfs-actions.pod:3778
28063 msgid "guestfs_launch"
28064 msgstr ""
28065
28066 #. type: verbatim
28067 #: ../src/guestfs-actions.pod:3780
28068 #, no-wrap
28069 msgid ""
28070 " int\n"
28071 " guestfs_launch (guestfs_h *g);\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: =head2
28076 #: ../src/guestfs-actions.pod:3798
28077 msgid "guestfs_lchown"
28078 msgstr ""
28079
28080 #. type: verbatim
28081 #: ../src/guestfs-actions.pod:3800
28082 #, no-wrap
28083 msgid ""
28084 " int\n"
28085 " guestfs_lchown (guestfs_h *g,\n"
28086 "                 int owner,\n"
28087 "                 int group,\n"
28088 "                 const char *path);\n"
28089 "\n"
28090 msgstr ""
28091
28092 #. type: textblock
28093 #: ../src/guestfs-actions.pod:3806
28094 msgid ""
28095 "Change the file owner to C<owner> and group to C<group>.  This is like "
28096 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28097 "changed, not the target."
28098 msgstr ""
28099
28100 #. type: =head2
28101 #: ../src/guestfs-actions.pod:3818
28102 msgid "guestfs_lgetxattr"
28103 msgstr ""
28104
28105 #. type: verbatim
28106 #: ../src/guestfs-actions.pod:3820
28107 #, no-wrap
28108 msgid ""
28109 " char *\n"
28110 " guestfs_lgetxattr (guestfs_h *g,\n"
28111 "                    const char *path,\n"
28112 "                    const char *name,\n"
28113 "                    size_t *size_r);\n"
28114 "\n"
28115 msgstr ""
28116
28117 #. type: textblock
28118 #: ../src/guestfs-actions.pod:3840
28119 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28120 msgstr ""
28121
28122 #. type: =head2
28123 #: ../src/guestfs-actions.pod:3848
28124 msgid "guestfs_lgetxattrs"
28125 msgstr ""
28126
28127 #. type: verbatim
28128 #: ../src/guestfs-actions.pod:3850
28129 #, no-wrap
28130 msgid ""
28131 " struct guestfs_xattr_list *\n"
28132 " guestfs_lgetxattrs (guestfs_h *g,\n"
28133 "                     const char *path);\n"
28134 "\n"
28135 msgstr ""
28136
28137 #. type: textblock
28138 #: ../src/guestfs-actions.pod:3854
28139 msgid ""
28140 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28141 "then it returns the extended attributes of the link itself."
28142 msgstr ""
28143
28144 #. type: =head2
28145 #: ../src/guestfs-actions.pod:3864
28146 msgid "guestfs_list_9p"
28147 msgstr ""
28148
28149 #. type: verbatim
28150 #: ../src/guestfs-actions.pod:3866
28151 #, no-wrap
28152 msgid ""
28153 " char **\n"
28154 " guestfs_list_9p (guestfs_h *g);\n"
28155 "\n"
28156 msgstr ""
28157
28158 #. type: =head2
28159 #: ../src/guestfs-actions.pod:3878
28160 msgid "guestfs_list_devices"
28161 msgstr ""
28162
28163 #. type: verbatim
28164 #: ../src/guestfs-actions.pod:3880
28165 #, no-wrap
28166 msgid ""
28167 " char **\n"
28168 " guestfs_list_devices (guestfs_h *g);\n"
28169 "\n"
28170 msgstr ""
28171
28172 #. type: =head2
28173 #: ../src/guestfs-actions.pod:3895
28174 msgid "guestfs_list_dm_devices"
28175 msgstr ""
28176
28177 #. type: verbatim
28178 #: ../src/guestfs-actions.pod:3897
28179 #, no-wrap
28180 msgid ""
28181 " char **\n"
28182 " guestfs_list_dm_devices (guestfs_h *g);\n"
28183 "\n"
28184 msgstr ""
28185
28186 #. type: textblock
28187 #: ../src/guestfs-actions.pod:3902
28188 msgid ""
28189 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28190 "previous call to C<guestfs_luks_open>."
28191 msgstr ""
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:3905
28195 msgid ""
28196 "Device mapper devices which correspond to logical volumes are I<not> "
28197 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28198 "volumes."
28199 msgstr ""
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
28203 msgid "(Added in 1.11.15)"
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../src/guestfs-actions.pod:3915
28208 msgid "guestfs_list_filesystems"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:3917
28213 #, no-wrap
28214 msgid ""
28215 " char **\n"
28216 " guestfs_list_filesystems (guestfs_h *g);\n"
28217 "\n"
28218 msgstr ""
28219
28220 #. type: textblock
28221 #: ../src/guestfs-actions.pod:3937
28222 msgid ""
28223 "This command runs other libguestfs commands, which might include "
28224 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28225 "soon after launch and only when nothing is mounted."
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:3941
28230 msgid ""
28231 "Not all of the filesystems returned will be mountable.  In particular, swap "
28232 "partitions are returned in the list.  Also this command does not check that "
28233 "each filesystem found is valid and mountable, and some filesystems might be "
28234 "mountable but require special options.  Filesystems may not all belong to a "
28235 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28236 msgstr ""
28237
28238 #. type: textblock
28239 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
28240 msgid "(Added in 1.5.15)"
28241 msgstr ""
28242
28243 #. type: =head2
28244 #: ../src/guestfs-actions.pod:3957
28245 msgid "guestfs_list_partitions"
28246 msgstr "guestfs_list_partitions"
28247
28248 #. type: verbatim
28249 #: ../src/guestfs-actions.pod:3959
28250 #, no-wrap
28251 msgid ""
28252 " char **\n"
28253 " guestfs_list_partitions (guestfs_h *g);\n"
28254 "\n"
28255 msgstr ""
28256 " char **\n"
28257 " guestfs_list_partitions (guestfs_h *g);\n"
28258 "\n"
28259
28260 #. type: textblock
28261 #: ../src/guestfs-actions.pod:3966
28262 msgid ""
28263 "This does not return logical volumes.  For that you will need to call "
28264 "C<guestfs_lvs>."
28265 msgstr ""
28266
28267 #. type: =head2
28268 #: ../src/guestfs-actions.pod:3977
28269 msgid "guestfs_ll"
28270 msgstr "guestfs_ll"
28271
28272 #. type: verbatim
28273 #: ../src/guestfs-actions.pod:3979
28274 #, no-wrap
28275 msgid ""
28276 " char *\n"
28277 " guestfs_ll (guestfs_h *g,\n"
28278 "             const char *directory);\n"
28279 "\n"
28280 msgstr ""
28281 " char *\n"
28282 " guestfs_ll (guestfs_h *g,\n"
28283 "             const char *directory);\n"
28284 "\n"
28285
28286 #. type: =head2
28287 #: ../src/guestfs-actions.pod:3994
28288 msgid "guestfs_ln"
28289 msgstr "guestfs_ln"
28290
28291 #. type: verbatim
28292 #: ../src/guestfs-actions.pod:3996
28293 #, no-wrap
28294 msgid ""
28295 " int\n"
28296 " guestfs_ln (guestfs_h *g,\n"
28297 "             const char *target,\n"
28298 "             const char *linkname);\n"
28299 "\n"
28300 msgstr ""
28301 " int\n"
28302 " guestfs_ln (guestfs_h *g,\n"
28303 "             const char *target,\n"
28304 "             const char *linkname);\n"
28305 "\n"
28306
28307 #. type: =head2
28308 #: ../src/guestfs-actions.pod:4007
28309 msgid "guestfs_ln_f"
28310 msgstr "guestfs_ln_f"
28311
28312 #. type: verbatim
28313 #: ../src/guestfs-actions.pod:4009
28314 #, no-wrap
28315 msgid ""
28316 " int\n"
28317 " guestfs_ln_f (guestfs_h *g,\n"
28318 "               const char *target,\n"
28319 "               const char *linkname);\n"
28320 "\n"
28321 msgstr ""
28322 " int\n"
28323 " guestfs_ln_f (guestfs_h *g,\n"
28324 "               const char *target,\n"
28325 "               const char *linkname);\n"
28326 "\n"
28327
28328 #. type: =head2
28329 #: ../src/guestfs-actions.pod:4021
28330 msgid "guestfs_ln_s"
28331 msgstr "guestfs_ln_s"
28332
28333 #. type: verbatim
28334 #: ../src/guestfs-actions.pod:4023
28335 #, no-wrap
28336 msgid ""
28337 " int\n"
28338 " guestfs_ln_s (guestfs_h *g,\n"
28339 "               const char *target,\n"
28340 "               const char *linkname);\n"
28341 "\n"
28342 msgstr ""
28343 " int\n"
28344 " guestfs_ln_s (guestfs_h *g,\n"
28345 "               const char *target,\n"
28346 "               const char *linkname);\n"
28347 "\n"
28348
28349 #. type: =head2
28350 #: ../src/guestfs-actions.pod:4034
28351 msgid "guestfs_ln_sf"
28352 msgstr "guestfs_ln_sf"
28353
28354 #. type: verbatim
28355 #: ../src/guestfs-actions.pod:4036
28356 #, no-wrap
28357 msgid ""
28358 " int\n"
28359 " guestfs_ln_sf (guestfs_h *g,\n"
28360 "                const char *target,\n"
28361 "                const char *linkname);\n"
28362 "\n"
28363 msgstr ""
28364 " int\n"
28365 " guestfs_ln_sf (guestfs_h *g,\n"
28366 "                const char *target,\n"
28367 "                const char *linkname);\n"
28368 "\n"
28369
28370 #. type: =head2
28371 #: ../src/guestfs-actions.pod:4048
28372 msgid "guestfs_lremovexattr"
28373 msgstr "guestfs_lremovexattr"
28374
28375 #. type: verbatim
28376 #: ../src/guestfs-actions.pod:4050
28377 #, no-wrap
28378 msgid ""
28379 " int\n"
28380 " guestfs_lremovexattr (guestfs_h *g,\n"
28381 "                       const char *xattr,\n"
28382 "                       const char *path);\n"
28383 "\n"
28384 msgstr ""
28385 " int\n"
28386 " guestfs_lremovexattr (guestfs_h *g,\n"
28387 "                       const char *xattr,\n"
28388 "                       const char *path);\n"
28389 "\n"
28390
28391 #. type: textblock
28392 #: ../src/guestfs-actions.pod:4055
28393 msgid ""
28394 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28395 "link, then it removes an extended attribute of the link itself."
28396 msgstr ""
28397
28398 #. type: =head2
28399 #: ../src/guestfs-actions.pod:4063
28400 msgid "guestfs_ls"
28401 msgstr "guestfs_ls"
28402
28403 #. type: verbatim
28404 #: ../src/guestfs-actions.pod:4065
28405 #, no-wrap
28406 msgid ""
28407 " char **\n"
28408 " guestfs_ls (guestfs_h *g,\n"
28409 "             const char *directory);\n"
28410 "\n"
28411 msgstr ""
28412 " char **\n"
28413 " guestfs_ls (guestfs_h *g,\n"
28414 "             const char *directory);\n"
28415 "\n"
28416
28417 #. type: textblock
28418 #: ../src/guestfs-actions.pod:4073
28419 msgid ""
28420 "This command is mostly useful for interactive sessions.  Programs should "
28421 "probably use C<guestfs_readdir> instead."
28422 msgstr ""
28423
28424 #. type: =head2
28425 #: ../src/guestfs-actions.pod:4082
28426 msgid "guestfs_lsetxattr"
28427 msgstr "guestfs_lsetxattr"
28428
28429 #. type: verbatim
28430 #: ../src/guestfs-actions.pod:4084
28431 #, no-wrap
28432 msgid ""
28433 " int\n"
28434 " guestfs_lsetxattr (guestfs_h *g,\n"
28435 "                    const char *xattr,\n"
28436 "                    const char *val,\n"
28437 "                    int vallen,\n"
28438 "                    const char *path);\n"
28439 "\n"
28440 msgstr ""
28441 " int\n"
28442 " guestfs_lsetxattr (guestfs_h *g,\n"
28443 "                    const char *xattr,\n"
28444 "                    const char *val,\n"
28445 "                    int vallen,\n"
28446 "                    const char *path);\n"
28447 "\n"
28448
28449 #. type: textblock
28450 #: ../src/guestfs-actions.pod:4091
28451 msgid ""
28452 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28453 "then it sets an extended attribute of the link itself."
28454 msgstr ""
28455
28456 #. type: =head2
28457 #: ../src/guestfs-actions.pod:4099
28458 msgid "guestfs_lstat"
28459 msgstr "guestfs_lstat"
28460
28461 #. type: verbatim
28462 #: ../src/guestfs-actions.pod:4101
28463 #, no-wrap
28464 msgid ""
28465 " struct guestfs_stat *\n"
28466 " guestfs_lstat (guestfs_h *g,\n"
28467 "                const char *path);\n"
28468 "\n"
28469 msgstr ""
28470 " struct guestfs_stat *\n"
28471 " guestfs_lstat (guestfs_h *g,\n"
28472 "                const char *path);\n"
28473 "\n"
28474
28475 #. type: textblock
28476 #: ../src/guestfs-actions.pod:4107
28477 msgid ""
28478 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28479 "link, then the link is stat-ed, not the file it refers to."
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
28484 msgid ""
28485 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28486 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28487 msgstr ""
28488
28489 #. type: textblock
28490 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
28491 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
28492 msgid "(Added in 0.9.2)"
28493 msgstr "(Додано у 0.9.2)"
28494
28495 #. type: =head2
28496 #: ../src/guestfs-actions.pod:4119
28497 msgid "guestfs_lstatlist"
28498 msgstr "guestfs_lstatlist"
28499
28500 #. type: verbatim
28501 #: ../src/guestfs-actions.pod:4121
28502 #, no-wrap
28503 msgid ""
28504 " struct guestfs_stat_list *\n"
28505 " guestfs_lstatlist (guestfs_h *g,\n"
28506 "                    const char *path,\n"
28507 "                    char *const *names);\n"
28508 "\n"
28509 msgstr ""
28510 " struct guestfs_stat_list *\n"
28511 " guestfs_lstatlist (guestfs_h *g,\n"
28512 "                    const char *path,\n"
28513 "                    char *const *names);\n"
28514 "\n"
28515
28516 #. type: textblock
28517 #: ../src/guestfs-actions.pod:4126
28518 msgid ""
28519 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28520 "files, where all files are in the directory C<path>.  C<names> is the list "
28521 "of files from this directory."
28522 msgstr ""
28523
28524 #. type: textblock
28525 #: ../src/guestfs-actions.pod:4135
28526 msgid ""
28527 "This call is intended for programs that want to efficiently list a directory "
28528 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28529 "for a similarly efficient call for getting extended attributes.  Very long "
28530 "directory listings might cause the protocol message size to be exceeded, "
28531 "causing this call to fail.  The caller must split up such requests into "
28532 "smaller groups of names."
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:4143
28537 msgid ""
28538 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28539 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28540 msgstr ""
28541
28542 #. type: =head2
28543 #: ../src/guestfs-actions.pod:4149
28544 msgid "guestfs_luks_add_key"
28545 msgstr "guestfs_luks_add_key"
28546
28547 #. type: verbatim
28548 #: ../src/guestfs-actions.pod:4151
28549 #, no-wrap
28550 msgid ""
28551 " int\n"
28552 " guestfs_luks_add_key (guestfs_h *g,\n"
28553 "                       const char *device,\n"
28554 "                       const char *key,\n"
28555 "                       const char *newkey,\n"
28556 "                       int keyslot);\n"
28557 "\n"
28558 msgstr ""
28559 " int\n"
28560 " guestfs_luks_add_key (guestfs_h *g,\n"
28561 "                       const char *device,\n"
28562 "                       const char *key,\n"
28563 "                       const char *newkey,\n"
28564 "                       int keyslot);\n"
28565 "\n"
28566
28567 #. type: textblock
28568 #: ../src/guestfs-actions.pod:4163
28569 msgid ""
28570 "Note that if C<keyslot> already contains a key, then this command will "
28571 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28572 msgstr ""
28573
28574 #. type: textblock
28575 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
28576 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
28577 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
28578 msgid ""
28579 "This function takes a key or passphrase parameter which could contain "
28580 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28581 "information."
28582 msgstr ""
28583
28584 #. type: textblock
28585 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
28586 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
28587 msgid "(Added in 1.5.2)"
28588 msgstr "(Додано у 1.5.2)"
28589
28590 #. type: =head2
28591 #: ../src/guestfs-actions.pod:4175
28592 msgid "guestfs_luks_close"
28593 msgstr "guestfs_luks_close"
28594
28595 #. type: verbatim
28596 #: ../src/guestfs-actions.pod:4177
28597 #, no-wrap
28598 msgid ""
28599 " int\n"
28600 " guestfs_luks_close (guestfs_h *g,\n"
28601 "                     const char *device);\n"
28602 "\n"
28603 msgstr ""
28604 " int\n"
28605 " guestfs_luks_close (guestfs_h *g,\n"
28606 "                     const char *device);\n"
28607 "\n"
28608
28609 #. type: textblock
28610 #: ../src/guestfs-actions.pod:4181
28611 msgid ""
28612 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28613 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28614 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28615 "underlying block device."
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
28620 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
28621 #: ../src/guestfs-actions.pod:4408
28622 msgid "(Added in 1.5.1)"
28623 msgstr "(Додано у 1.5.1)"
28624
28625 #. type: =head2
28626 #: ../src/guestfs-actions.pod:4191
28627 msgid "guestfs_luks_format"
28628 msgstr "guestfs_luks_format"
28629
28630 #. type: verbatim
28631 #: ../src/guestfs-actions.pod:4193
28632 #, no-wrap
28633 msgid ""
28634 " int\n"
28635 " guestfs_luks_format (guestfs_h *g,\n"
28636 "                      const char *device,\n"
28637 "                      const char *key,\n"
28638 "                      int keyslot);\n"
28639 "\n"
28640 msgstr ""
28641 " int\n"
28642 " guestfs_luks_format (guestfs_h *g,\n"
28643 "                      const char *device,\n"
28644 "                      const char *key,\n"
28645 "                      int keyslot);\n"
28646 "\n"
28647
28648 #. type: =head2
28649 #: ../src/guestfs-actions.pod:4215
28650 msgid "guestfs_luks_format_cipher"
28651 msgstr "guestfs_luks_format_cipher"
28652
28653 #. type: verbatim
28654 #: ../src/guestfs-actions.pod:4217
28655 #, no-wrap
28656 msgid ""
28657 " int\n"
28658 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28659 "                             const char *device,\n"
28660 "                             const char *key,\n"
28661 "                             int keyslot,\n"
28662 "                             const char *cipher);\n"
28663 "\n"
28664 msgstr ""
28665 " int\n"
28666 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28667 "                             const char *device,\n"
28668 "                             const char *key,\n"
28669 "                             int keyslot,\n"
28670 "                             const char *cipher);\n"
28671 "\n"
28672
28673 #. type: textblock
28674 #: ../src/guestfs-actions.pod:4224
28675 msgid ""
28676 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28677 "set the C<cipher> used."
28678 msgstr ""
28679
28680 #. type: =head2
28681 #: ../src/guestfs-actions.pod:4238
28682 msgid "guestfs_luks_kill_slot"
28683 msgstr "guestfs_luks_kill_slot"
28684
28685 #. type: verbatim
28686 #: ../src/guestfs-actions.pod:4240
28687 #, no-wrap
28688 msgid ""
28689 " int\n"
28690 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28691 "                         const char *device,\n"
28692 "                         const char *key,\n"
28693 "                         int keyslot);\n"
28694 "\n"
28695 msgstr ""
28696 " int\n"
28697 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28698 "                         const char *device,\n"
28699 "                         const char *key,\n"
28700 "                         int keyslot);\n"
28701 "\n"
28702
28703 #. type: =head2
28704 #: ../src/guestfs-actions.pod:4258
28705 msgid "guestfs_luks_open"
28706 msgstr "guestfs_luks_open"
28707
28708 #. type: verbatim
28709 #: ../src/guestfs-actions.pod:4260
28710 #, no-wrap
28711 msgid ""
28712 " int\n"
28713 " guestfs_luks_open (guestfs_h *g,\n"
28714 "                    const char *device,\n"
28715 "                    const char *key,\n"
28716 "                    const char *mapname);\n"
28717 "\n"
28718 msgstr ""
28719 " int\n"
28720 " guestfs_luks_open (guestfs_h *g,\n"
28721 "                    const char *device,\n"
28722 "                    const char *key,\n"
28723 "                    const char *mapname);\n"
28724 "\n"
28725
28726 #. type: textblock
28727 #: ../src/guestfs-actions.pod:4278
28728 msgid ""
28729 "If this block device contains LVM volume groups, then calling "
28730 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28731 "visible."
28732 msgstr ""
28733
28734 #. type: textblock
28735 #: ../src/guestfs-actions.pod:4282
28736 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28737 msgstr ""
28738
28739 #. type: =head2
28740 #: ../src/guestfs-actions.pod:4293
28741 msgid "guestfs_luks_open_ro"
28742 msgstr "guestfs_luks_open_ro"
28743
28744 #. type: verbatim
28745 #: ../src/guestfs-actions.pod:4295
28746 #, no-wrap
28747 msgid ""
28748 " int\n"
28749 " guestfs_luks_open_ro (guestfs_h *g,\n"
28750 "                       const char *device,\n"
28751 "                       const char *key,\n"
28752 "                       const char *mapname);\n"
28753 "\n"
28754 msgstr ""
28755 " int\n"
28756 " guestfs_luks_open_ro (guestfs_h *g,\n"
28757 "                       const char *device,\n"
28758 "                       const char *key,\n"
28759 "                       const char *mapname);\n"
28760 "\n"
28761
28762 #. type: textblock
28763 #: ../src/guestfs-actions.pod:4301
28764 msgid ""
28765 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28766 "created."
28767 msgstr ""
28768
28769 #. type: =head2
28770 #: ../src/guestfs-actions.pod:4312
28771 msgid "guestfs_lvcreate"
28772 msgstr "guestfs_lvcreate"
28773
28774 #. type: verbatim
28775 #: ../src/guestfs-actions.pod:4314
28776 #, no-wrap
28777 msgid ""
28778 " int\n"
28779 " guestfs_lvcreate (guestfs_h *g,\n"
28780 "                   const char *logvol,\n"
28781 "                   const char *volgroup,\n"
28782 "                   int mbytes);\n"
28783 "\n"
28784 msgstr ""
28785 " int\n"
28786 " guestfs_lvcreate (guestfs_h *g,\n"
28787 "                   const char *logvol,\n"
28788 "                   const char *volgroup,\n"
28789 "                   int mbytes);\n"
28790 "\n"
28791
28792 #. type: =head2
28793 #: ../src/guestfs-actions.pod:4327
28794 msgid "guestfs_lvm_canonical_lv_name"
28795 msgstr "guestfs_lvm_canonical_lv_name"
28796
28797 #. type: verbatim
28798 #: ../src/guestfs-actions.pod:4329
28799 #, no-wrap
28800 msgid ""
28801 " char *\n"
28802 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28803 "                                const char *lvname);\n"
28804 "\n"
28805 msgstr ""
28806 " char *\n"
28807 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28808 "                                const char *lvname);\n"
28809 "\n"
28810
28811 #. type: textblock
28812 #: ../src/guestfs-actions.pod:4340
28813 msgid "See also C<guestfs_is_lv>."
28814 msgstr ""
28815
28816 #. type: textblock
28817 #: ../src/guestfs-actions.pod:4345
28818 msgid "(Added in 1.5.24)"
28819 msgstr "(Додано у 1.5.24)"
28820
28821 #. type: =head2
28822 #: ../src/guestfs-actions.pod:4347
28823 msgid "guestfs_lvm_clear_filter"
28824 msgstr "guestfs_lvm_clear_filter"
28825
28826 #. type: verbatim
28827 #: ../src/guestfs-actions.pod:4349
28828 #, no-wrap
28829 msgid ""
28830 " int\n"
28831 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28832 "\n"
28833 msgstr ""
28834 " int\n"
28835 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28836 "\n"
28837
28838 #. type: textblock
28839 #: ../src/guestfs-actions.pod:4352
28840 msgid ""
28841 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28842 "see every block device."
28843 msgstr ""
28844
28845 #. type: =head2
28846 #: ../src/guestfs-actions.pod:4362
28847 msgid "guestfs_lvm_remove_all"
28848 msgstr "guestfs_lvm_remove_all"
28849
28850 #. type: verbatim
28851 #: ../src/guestfs-actions.pod:4364
28852 #, no-wrap
28853 msgid ""
28854 " int\n"
28855 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28856 "\n"
28857 msgstr ""
28858 " int\n"
28859 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28860 "\n"
28861
28862 #. type: =head2
28863 #: ../src/guestfs-actions.pod:4377
28864 msgid "guestfs_lvm_set_filter"
28865 msgstr "guestfs_lvm_set_filter"
28866
28867 #. type: verbatim
28868 #: ../src/guestfs-actions.pod:4379
28869 #, no-wrap
28870 msgid ""
28871 " int\n"
28872 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28873 "                         char *const *devices);\n"
28874 "\n"
28875 msgstr ""
28876 " int\n"
28877 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28878 "                         char *const *devices);\n"
28879 "\n"
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:4410
28883 msgid "guestfs_lvremove"
28884 msgstr "guestfs_lvremove"
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:4412
28888 #, no-wrap
28889 msgid ""
28890 " int\n"
28891 " guestfs_lvremove (guestfs_h *g,\n"
28892 "                   const char *device);\n"
28893 "\n"
28894 msgstr ""
28895 " int\n"
28896 " guestfs_lvremove (guestfs_h *g,\n"
28897 "                   const char *device);\n"
28898 "\n"
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
28902 #: ../src/guestfs-actions.pod:7667
28903 msgid "(Added in 1.0.13)"
28904 msgstr "(Додано у 1.0.13)"
28905
28906 #. type: =head2
28907 #: ../src/guestfs-actions.pod:4426
28908 msgid "guestfs_lvrename"
28909 msgstr "guestfs_lvrename"
28910
28911 #. type: verbatim
28912 #: ../src/guestfs-actions.pod:4428
28913 #, no-wrap
28914 msgid ""
28915 " int\n"
28916 " guestfs_lvrename (guestfs_h *g,\n"
28917 "                   const char *logvol,\n"
28918 "                   const char *newlogvol);\n"
28919 "\n"
28920 msgstr ""
28921 " int\n"
28922 " guestfs_lvrename (guestfs_h *g,\n"
28923 "                   const char *logvol,\n"
28924 "                   const char *newlogvol);\n"
28925 "\n"
28926
28927 #. type: textblock
28928 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
28929 msgid "(Added in 1.0.83)"
28930 msgstr "(Додано у 1.0.83)"
28931
28932 #. type: =head2
28933 #: ../src/guestfs-actions.pod:4439
28934 msgid "guestfs_lvresize"
28935 msgstr "guestfs_lvresize"
28936
28937 #. type: verbatim
28938 #: ../src/guestfs-actions.pod:4441
28939 #, no-wrap
28940 msgid ""
28941 " int\n"
28942 " guestfs_lvresize (guestfs_h *g,\n"
28943 "                   const char *device,\n"
28944 "                   int mbytes);\n"
28945 "\n"
28946 msgstr ""
28947 " int\n"
28948 " guestfs_lvresize (guestfs_h *g,\n"
28949 "                   const char *device,\n"
28950 "                   int mbytes);\n"
28951 "\n"
28952
28953 #. type: =head2
28954 #: ../src/guestfs-actions.pod:4454
28955 msgid "guestfs_lvresize_free"
28956 msgstr "guestfs_lvresize_free"
28957
28958 #. type: verbatim
28959 #: ../src/guestfs-actions.pod:4456
28960 #, no-wrap
28961 msgid ""
28962 " int\n"
28963 " guestfs_lvresize_free (guestfs_h *g,\n"
28964 "                        const char *lv,\n"
28965 "                        int percent);\n"
28966 "\n"
28967 msgstr ""
28968 " int\n"
28969 " guestfs_lvresize_free (guestfs_h *g,\n"
28970 "                        const char *lv,\n"
28971 "                        int percent);\n"
28972 "\n"
28973
28974 #. type: textblock
28975 #: ../src/guestfs-actions.pod:4469
28976 msgid "(Added in 1.3.3)"
28977 msgstr "(Додано у 1.3.3)"
28978
28979 #. type: =head2
28980 #: ../src/guestfs-actions.pod:4471
28981 msgid "guestfs_lvs"
28982 msgstr "guestfs_lvs"
28983
28984 #. type: verbatim
28985 #: ../src/guestfs-actions.pod:4473
28986 #, no-wrap
28987 msgid ""
28988 " char **\n"
28989 " guestfs_lvs (guestfs_h *g);\n"
28990 "\n"
28991 msgstr ""
28992 " char **\n"
28993 " guestfs_lvs (guestfs_h *g);\n"
28994 "\n"
28995
28996 #. type: textblock
28997 #: ../src/guestfs-actions.pod:4482
28998 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28999 msgstr ""
29000
29001 #. type: =head2
29002 #: ../src/guestfs-actions.pod:4490
29003 msgid "guestfs_lvs_full"
29004 msgstr "guestfs_lvs_full"
29005
29006 #. type: verbatim
29007 #: ../src/guestfs-actions.pod:4492
29008 #, no-wrap
29009 msgid ""
29010 " struct guestfs_lvm_lv_list *\n"
29011 " guestfs_lvs_full (guestfs_h *g);\n"
29012 "\n"
29013 msgstr ""
29014 " struct guestfs_lvm_lv_list *\n"
29015 " guestfs_lvs_full (guestfs_h *g);\n"
29016 "\n"
29017
29018 #. type: textblock
29019 #: ../src/guestfs-actions.pod:4498
29020 msgid ""
29021 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29022 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29023 msgstr ""
29024
29025 #. type: =head2
29026 #: ../src/guestfs-actions.pod:4504
29027 msgid "guestfs_lvuuid"
29028 msgstr "guestfs_lvuuid"
29029
29030 #. type: verbatim
29031 #: ../src/guestfs-actions.pod:4506
29032 #, no-wrap
29033 msgid ""
29034 " char *\n"
29035 " guestfs_lvuuid (guestfs_h *g,\n"
29036 "                 const char *device);\n"
29037 "\n"
29038 msgstr ""
29039 " char *\n"
29040 " guestfs_lvuuid (guestfs_h *g,\n"
29041 "                 const char *device);\n"
29042 "\n"
29043
29044 #. type: =head2
29045 #: ../src/guestfs-actions.pod:4517
29046 msgid "guestfs_lxattrlist"
29047 msgstr "guestfs_lxattrlist"
29048
29049 #. type: verbatim
29050 #: ../src/guestfs-actions.pod:4519
29051 #, no-wrap
29052 msgid ""
29053 " struct guestfs_xattr_list *\n"
29054 " guestfs_lxattrlist (guestfs_h *g,\n"
29055 "                     const char *path,\n"
29056 "                     char *const *names);\n"
29057 "\n"
29058 msgstr ""
29059 " struct guestfs_xattr_list *\n"
29060 " guestfs_lxattrlist (guestfs_h *g,\n"
29061 "                     const char *path,\n"
29062 "                     char *const *names);\n"
29063 "\n"
29064
29065 #. type: textblock
29066 #: ../src/guestfs-actions.pod:4538
29067 msgid ""
29068 "This call is intended for programs that want to efficiently list a directory "
29069 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29070 "a similarly efficient call for getting standard stats.  Very long directory "
29071 "listings might cause the protocol message size to be exceeded, causing this "
29072 "call to fail.  The caller must split up such requests into smaller groups of "
29073 "names."
29074 msgstr ""
29075
29076 #. type: =head2
29077 #: ../src/guestfs-actions.pod:4552
29078 msgid "guestfs_mkdir"
29079 msgstr "guestfs_mkdir"
29080
29081 #. type: verbatim
29082 #: ../src/guestfs-actions.pod:4554
29083 #, no-wrap
29084 msgid ""
29085 " int\n"
29086 " guestfs_mkdir (guestfs_h *g,\n"
29087 "                const char *path);\n"
29088 "\n"
29089 msgstr ""
29090 " int\n"
29091 " guestfs_mkdir (guestfs_h *g,\n"
29092 "                const char *path);\n"
29093 "\n"
29094
29095 #. type: =head2
29096 #: ../src/guestfs-actions.pod:4564
29097 msgid "guestfs_mkdir_mode"
29098 msgstr "guestfs_mkdir_mode"
29099
29100 #. type: verbatim
29101 #: ../src/guestfs-actions.pod:4566
29102 #, no-wrap
29103 msgid ""
29104 " int\n"
29105 " guestfs_mkdir_mode (guestfs_h *g,\n"
29106 "                     const char *path,\n"
29107 "                     int mode);\n"
29108 "\n"
29109 msgstr ""
29110 " int\n"
29111 " guestfs_mkdir_mode (guestfs_h *g,\n"
29112 "                     const char *path,\n"
29113 "                     int mode);\n"
29114 "\n"
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:4578
29118 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29119 msgstr ""
29120
29121 #. type: =head2
29122 #: ../src/guestfs-actions.pod:4584
29123 msgid "guestfs_mkdir_p"
29124 msgstr "guestfs_mkdir_p"
29125
29126 #. type: verbatim
29127 #: ../src/guestfs-actions.pod:4586
29128 #, no-wrap
29129 msgid ""
29130 " int\n"
29131 " guestfs_mkdir_p (guestfs_h *g,\n"
29132 "                  const char *path);\n"
29133 "\n"
29134 msgstr ""
29135 " int\n"
29136 " guestfs_mkdir_p (guestfs_h *g,\n"
29137 "                  const char *path);\n"
29138 "\n"
29139
29140 #. type: =head2
29141 #: ../src/guestfs-actions.pod:4597
29142 msgid "guestfs_mkdtemp"
29143 msgstr "guestfs_mkdtemp"
29144
29145 #. type: verbatim
29146 #: ../src/guestfs-actions.pod:4599
29147 #, no-wrap
29148 msgid ""
29149 " char *\n"
29150 " guestfs_mkdtemp (guestfs_h *g,\n"
29151 "                  const char *template);\n"
29152 "\n"
29153 msgstr ""
29154 " char *\n"
29155 " guestfs_mkdtemp (guestfs_h *g,\n"
29156 "                  const char *template);\n"
29157 "\n"
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:4627
29161 msgid "guestfs_mke2fs_J"
29162 msgstr "guestfs_mke2fs_J"
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:4629
29166 #, no-wrap
29167 msgid ""
29168 " int\n"
29169 " guestfs_mke2fs_J (guestfs_h *g,\n"
29170 "                   const char *fstype,\n"
29171 "                   int blocksize,\n"
29172 "                   const char *device,\n"
29173 "                   const char *journal);\n"
29174 "\n"
29175 msgstr ""
29176 " int\n"
29177 " guestfs_mke2fs_J (guestfs_h *g,\n"
29178 "                   const char *fstype,\n"
29179 "                   int blocksize,\n"
29180 "                   const char *device,\n"
29181 "                   const char *journal);\n"
29182 "\n"
29183
29184 #. type: textblock
29185 #: ../src/guestfs-actions.pod:4642
29186 msgid "See also C<guestfs_mke2journal>."
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
29191 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
29192 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
29193 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
29194 msgid "(Added in 1.0.68)"
29195 msgstr "(Додано у 1.0.68)"
29196
29197 #. type: =head2
29198 #: ../src/guestfs-actions.pod:4648
29199 msgid "guestfs_mke2fs_JL"
29200 msgstr "guestfs_mke2fs_JL"
29201
29202 #. type: verbatim
29203 #: ../src/guestfs-actions.pod:4650
29204 #, no-wrap
29205 msgid ""
29206 " int\n"
29207 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29208 "                    const char *fstype,\n"
29209 "                    int blocksize,\n"
29210 "                    const char *device,\n"
29211 "                    const char *label);\n"
29212 "\n"
29213 msgstr ""
29214 " int\n"
29215 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29216 "                    const char *fstype,\n"
29217 "                    int blocksize,\n"
29218 "                    const char *device,\n"
29219 "                    const char *label);\n"
29220 "\n"
29221
29222 #. type: textblock
29223 #: ../src/guestfs-actions.pod:4660
29224 msgid "See also C<guestfs_mke2journal_L>."
29225 msgstr ""
29226
29227 #. type: =head2
29228 #: ../src/guestfs-actions.pod:4666
29229 msgid "guestfs_mke2fs_JU"
29230 msgstr "guestfs_mke2fs_JU"
29231
29232 #. type: verbatim
29233 #: ../src/guestfs-actions.pod:4668
29234 #, no-wrap
29235 msgid ""
29236 " int\n"
29237 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29238 "                    const char *fstype,\n"
29239 "                    int blocksize,\n"
29240 "                    const char *device,\n"
29241 "                    const char *uuid);\n"
29242 "\n"
29243 msgstr ""
29244 " int\n"
29245 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29246 "                    const char *fstype,\n"
29247 "                    int blocksize,\n"
29248 "                    const char *device,\n"
29249 "                    const char *uuid);\n"
29250 "\n"
29251
29252 #. type: textblock
29253 #: ../src/guestfs-actions.pod:4678
29254 msgid "See also C<guestfs_mke2journal_U>."
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:4684
29259 msgid "guestfs_mke2journal"
29260 msgstr "guestfs_mke2journal"
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:4686
29264 #, no-wrap
29265 msgid ""
29266 " int\n"
29267 " guestfs_mke2journal (guestfs_h *g,\n"
29268 "                      int blocksize,\n"
29269 "                      const char *device);\n"
29270 "\n"
29271 msgstr ""
29272 " int\n"
29273 " guestfs_mke2journal (guestfs_h *g,\n"
29274 "                      int blocksize,\n"
29275 "                      const char *device);\n"
29276 "\n"
29277
29278 #. type: =head2
29279 #: ../src/guestfs-actions.pod:4700
29280 msgid "guestfs_mke2journal_L"
29281 msgstr "guestfs_mke2journal_L"
29282
29283 #. type: verbatim
29284 #: ../src/guestfs-actions.pod:4702
29285 #, no-wrap
29286 msgid ""
29287 " int\n"
29288 " guestfs_mke2journal_L (guestfs_h *g,\n"
29289 "                        int blocksize,\n"
29290 "                        const char *label,\n"
29291 "                        const char *device);\n"
29292 "\n"
29293 msgstr ""
29294 " int\n"
29295 " guestfs_mke2journal_L (guestfs_h *g,\n"
29296 "                        int blocksize,\n"
29297 "                        const char *label,\n"
29298 "                        const char *device);\n"
29299 "\n"
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:4714
29303 msgid "guestfs_mke2journal_U"
29304 msgstr "guestfs_mke2journal_U"
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:4716
29308 #, no-wrap
29309 msgid ""
29310 " int\n"
29311 " guestfs_mke2journal_U (guestfs_h *g,\n"
29312 "                        int blocksize,\n"
29313 "                        const char *uuid,\n"
29314 "                        const char *device);\n"
29315 "\n"
29316 msgstr ""
29317 " int\n"
29318 " guestfs_mke2journal_U (guestfs_h *g,\n"
29319 "                        int blocksize,\n"
29320 "                        const char *uuid,\n"
29321 "                        const char *device);\n"
29322 "\n"
29323
29324 #. type: =head2
29325 #: ../src/guestfs-actions.pod:4728
29326 msgid "guestfs_mkfifo"
29327 msgstr "guestfs_mkfifo"
29328
29329 #. type: verbatim
29330 #: ../src/guestfs-actions.pod:4730
29331 #, no-wrap
29332 msgid ""
29333 " int\n"
29334 " guestfs_mkfifo (guestfs_h *g,\n"
29335 "                 int mode,\n"
29336 "                 const char *path);\n"
29337 "\n"
29338 msgstr ""
29339 " int\n"
29340 " guestfs_mkfifo (guestfs_h *g,\n"
29341 "                 int mode,\n"
29342 "                 const char *path);\n"
29343 "\n"
29344
29345 #. type: textblock
29346 #: ../src/guestfs-actions.pod:4735
29347 msgid ""
29348 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29349 "is just a convenient wrapper around C<guestfs_mknod>."
29350 msgstr ""
29351
29352 #. type: =head2
29353 #: ../src/guestfs-actions.pod:4745
29354 msgid "guestfs_mkfs"
29355 msgstr "guestfs_mkfs"
29356
29357 #. type: verbatim
29358 #: ../src/guestfs-actions.pod:4747
29359 #, no-wrap
29360 msgid ""
29361 " int\n"
29362 " guestfs_mkfs (guestfs_h *g,\n"
29363 "               const char *fstype,\n"
29364 "               const char *device);\n"
29365 "\n"
29366 msgstr ""
29367 " int\n"
29368 " guestfs_mkfs (guestfs_h *g,\n"
29369 "               const char *fstype,\n"
29370 "               const char *device);\n"
29371 "\n"
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:4760
29375 msgid "guestfs_mkfs_b"
29376 msgstr "guestfs_mkfs_b"
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:4762
29380 #, no-wrap
29381 msgid ""
29382 " int\n"
29383 " guestfs_mkfs_b (guestfs_h *g,\n"
29384 "                 const char *fstype,\n"
29385 "                 int blocksize,\n"
29386 "                 const char *device);\n"
29387 "\n"
29388 msgstr ""
29389 " int\n"
29390 " guestfs_mkfs_b (guestfs_h *g,\n"
29391 "                 const char *fstype,\n"
29392 "                 int blocksize,\n"
29393 "                 const char *device);\n"
29394 "\n"
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:4768
29398 msgid ""
29399 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29400 "call instead."
29401 msgstr ""
29402
29403 #. type: textblock
29404 #: ../src/guestfs-actions.pod:4775
29405 msgid ""
29406 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29407 "block size of the resulting filesystem.  Supported block sizes depend on the "
29408 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29409 msgstr ""
29410
29411 #. type: =head2
29412 #: ../src/guestfs-actions.pod:4787
29413 msgid "guestfs_mkfs_opts"
29414 msgstr "guestfs_mkfs_opts"
29415
29416 #. type: verbatim
29417 #: ../src/guestfs-actions.pod:4789
29418 #, no-wrap
29419 msgid ""
29420 " int\n"
29421 " guestfs_mkfs_opts (guestfs_h *g,\n"
29422 "                    const char *fstype,\n"
29423 "                    const char *device,\n"
29424 "                    ...);\n"
29425 "\n"
29426 msgstr ""
29427 " int\n"
29428 " guestfs_mkfs_opts (guestfs_h *g,\n"
29429 "                    const char *fstype,\n"
29430 "                    const char *device,\n"
29431 "                    ...);\n"
29432 "\n"
29433
29434 #. type: verbatim
29435 #: ../src/guestfs-actions.pod:4800
29436 #, no-wrap
29437 msgid ""
29438 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29439 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29440 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29441 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29442 "\n"
29443 msgstr ""
29444
29445 #. type: textblock
29446 #: ../src/guestfs-actions.pod:4848
29447 msgid "(Added in 1.7.19)"
29448 msgstr "(Додано у 1.7.19)"
29449
29450 #. type: =head2
29451 #: ../src/guestfs-actions.pod:4850
29452 msgid "guestfs_mkfs_opts_va"
29453 msgstr "guestfs_mkfs_opts_va"
29454
29455 #. type: verbatim
29456 #: ../src/guestfs-actions.pod:4852
29457 #, no-wrap
29458 msgid ""
29459 " int\n"
29460 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29461 "                       const char *fstype,\n"
29462 "                       const char *device,\n"
29463 "                       va_list args);\n"
29464 "\n"
29465 msgstr ""
29466 " int\n"
29467 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29468 "                       const char *fstype,\n"
29469 "                       const char *device,\n"
29470 "                       va_list args);\n"
29471 "\n"
29472
29473 #. type: textblock
29474 #: ../src/guestfs-actions.pod:4858
29475 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29476 msgstr ""
29477
29478 #. type: =head2
29479 #: ../src/guestfs-actions.pod:4862
29480 msgid "guestfs_mkfs_opts_argv"
29481 msgstr "guestfs_mkfs_opts_argv"
29482
29483 #. type: verbatim
29484 #: ../src/guestfs-actions.pod:4864
29485 #, no-wrap
29486 msgid ""
29487 " int\n"
29488 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29489 "                         const char *fstype,\n"
29490 "                         const char *device,\n"
29491 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29492 "\n"
29493 msgstr ""
29494 " int\n"
29495 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29496 "                         const char *fstype,\n"
29497 "                         const char *device,\n"
29498 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29499 "\n"
29500
29501 #. type: textblock
29502 #: ../src/guestfs-actions.pod:4870
29503 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-actions.pod:4874
29508 msgid "guestfs_mkmountpoint"
29509 msgstr "guestfs_mkmountpoint"
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-actions.pod:4876
29513 #, no-wrap
29514 msgid ""
29515 " int\n"
29516 " guestfs_mkmountpoint (guestfs_h *g,\n"
29517 "                       const char *exemptpath);\n"
29518 "\n"
29519 msgstr ""
29520 " int\n"
29521 " guestfs_mkmountpoint (guestfs_h *g,\n"
29522 "                       const char *exemptpath);\n"
29523 "\n"
29524
29525 #. type: textblock
29526 #: ../src/guestfs-actions.pod:4880
29527 msgid ""
29528 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29529 "that can be used to create extra mountpoints before mounting the first "
29530 "filesystem."
29531 msgstr ""
29532
29533 #. type: textblock
29534 #: ../src/guestfs-actions.pod:4904
29535 msgid ""
29536 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29537 "may get unexpected errors if you try to mix these calls.  It is safest to "
29538 "manually unmount filesystems and remove mountpoints after use."
29539 msgstr ""
29540
29541 #. type: textblock
29542 #: ../src/guestfs-actions.pod:4908
29543 msgid ""
29544 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29545 "first, so for this to work for manual mountpoints, you must ensure that the "
29546 "innermost mountpoints have the longest pathnames, as in the example code "
29547 "above."
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:4915
29552 msgid ""
29553 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29554 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29555 "can also trigger these issues."
29556 msgstr ""
29557
29558 #. type: textblock
29559 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
29560 #: ../src/guestfs-actions.pod:6237
29561 msgid "(Added in 1.0.62)"
29562 msgstr "(Додано у 1.0.62)"
29563
29564 #. type: =head2
29565 #: ../src/guestfs-actions.pod:4923
29566 msgid "guestfs_mknod"
29567 msgstr ""
29568
29569 #. type: verbatim
29570 #: ../src/guestfs-actions.pod:4925
29571 #, no-wrap
29572 msgid ""
29573 " int\n"
29574 " guestfs_mknod (guestfs_h *g,\n"
29575 "                int mode,\n"
29576 "                int devmajor,\n"
29577 "                int devminor,\n"
29578 "                const char *path);\n"
29579 "\n"
29580 msgstr ""
29581
29582 #. type: textblock
29583 #: ../src/guestfs-actions.pod:4940
29584 msgid ""
29585 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29586 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29587 "regular file).  These constants are available in the standard Linux header "
29588 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29589 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29590 "the appropriate constant for you."
29591 msgstr ""
29592
29593 #. type: =head2
29594 #: ../src/guestfs-actions.pod:4954
29595 msgid "guestfs_mknod_b"
29596 msgstr ""
29597
29598 #. type: verbatim
29599 #: ../src/guestfs-actions.pod:4956
29600 #, no-wrap
29601 msgid ""
29602 " int\n"
29603 " guestfs_mknod_b (guestfs_h *g,\n"
29604 "                  int mode,\n"
29605 "                  int devmajor,\n"
29606 "                  int devminor,\n"
29607 "                  const char *path);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:4963
29613 msgid ""
29614 "This call creates a block device node called C<path> with mode C<mode> and "
29615 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29616 "wrapper around C<guestfs_mknod>."
29617 msgstr ""
29618
29619 #. type: =head2
29620 #: ../src/guestfs-actions.pod:4973
29621 msgid "guestfs_mknod_c"
29622 msgstr ""
29623
29624 #. type: verbatim
29625 #: ../src/guestfs-actions.pod:4975
29626 #, no-wrap
29627 msgid ""
29628 " int\n"
29629 " guestfs_mknod_c (guestfs_h *g,\n"
29630 "                  int mode,\n"
29631 "                  int devmajor,\n"
29632 "                  int devminor,\n"
29633 "                  const char *path);\n"
29634 "\n"
29635 msgstr ""
29636
29637 #. type: textblock
29638 #: ../src/guestfs-actions.pod:4982
29639 msgid ""
29640 "This call creates a char device node called C<path> with mode C<mode> and "
29641 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29642 "wrapper around C<guestfs_mknod>."
29643 msgstr ""
29644
29645 #. type: =head2
29646 #: ../src/guestfs-actions.pod:4992
29647 msgid "guestfs_mkswap"
29648 msgstr ""
29649
29650 #. type: verbatim
29651 #: ../src/guestfs-actions.pod:4994
29652 #, no-wrap
29653 msgid ""
29654 " int\n"
29655 " guestfs_mkswap (guestfs_h *g,\n"
29656 "                 const char *device);\n"
29657 "\n"
29658 msgstr ""
29659
29660 #. type: =head2
29661 #: ../src/guestfs-actions.pod:5004
29662 msgid "guestfs_mkswap_L"
29663 msgstr ""
29664
29665 #. type: verbatim
29666 #: ../src/guestfs-actions.pod:5006
29667 #, no-wrap
29668 msgid ""
29669 " int\n"
29670 " guestfs_mkswap_L (guestfs_h *g,\n"
29671 "                   const char *label,\n"
29672 "                   const char *device);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: =head2
29677 #: ../src/guestfs-actions.pod:5021
29678 msgid "guestfs_mkswap_U"
29679 msgstr ""
29680
29681 #. type: verbatim
29682 #: ../src/guestfs-actions.pod:5023
29683 #, no-wrap
29684 msgid ""
29685 " int\n"
29686 " guestfs_mkswap_U (guestfs_h *g,\n"
29687 "                   const char *uuid,\n"
29688 "                   const char *device);\n"
29689 "\n"
29690 msgstr ""
29691
29692 #. type: =head2
29693 #: ../src/guestfs-actions.pod:5034
29694 msgid "guestfs_mkswap_file"
29695 msgstr ""
29696
29697 #. type: verbatim
29698 #: ../src/guestfs-actions.pod:5036
29699 #, no-wrap
29700 msgid ""
29701 " int\n"
29702 " guestfs_mkswap_file (guestfs_h *g,\n"
29703 "                      const char *path);\n"
29704 "\n"
29705 msgstr ""
29706
29707 #. type: textblock
29708 #: ../src/guestfs-actions.pod:5042
29709 msgid ""
29710 "This command just writes a swap file signature to an existing file.  To "
29711 "create the file itself, use something like C<guestfs_fallocate>."
29712 msgstr ""
29713
29714 #. type: =head2
29715 #: ../src/guestfs-actions.pod:5049
29716 msgid "guestfs_modprobe"
29717 msgstr ""
29718
29719 #. type: verbatim
29720 #: ../src/guestfs-actions.pod:5051
29721 #, no-wrap
29722 msgid ""
29723 " int\n"
29724 " guestfs_modprobe (guestfs_h *g,\n"
29725 "                   const char *modulename);\n"
29726 "\n"
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:5064
29731 msgid "guestfs_mount"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:5066
29736 #, no-wrap
29737 msgid ""
29738 " int\n"
29739 " guestfs_mount (guestfs_h *g,\n"
29740 "                const char *device,\n"
29741 "                const char *mountpoint);\n"
29742 "\n"
29743 msgstr ""
29744
29745 #. type: textblock
29746 #: ../src/guestfs-actions.pod:5085
29747 msgid ""
29748 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29749 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29750 "problems for users.  If your program might need to work with older versions "
29751 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29752 "for the first parameter if you don't want any options)."
29753 msgstr ""
29754
29755 #. type: =head2
29756 #: ../src/guestfs-actions.pod:5096
29757 msgid "guestfs_mount_9p"
29758 msgstr ""
29759
29760 #. type: verbatim
29761 #: ../src/guestfs-actions.pod:5098
29762 #, no-wrap
29763 msgid ""
29764 " int\n"
29765 " guestfs_mount_9p (guestfs_h *g,\n"
29766 "                   const char *mounttag,\n"
29767 "                   const char *mountpoint,\n"
29768 "                   ...);\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: verbatim
29773 #: ../src/guestfs-actions.pod:5109
29774 #, no-wrap
29775 msgid ""
29776 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29777 "\n"
29778 msgstr ""
29779
29780 #. type: =head2
29781 #: ../src/guestfs-actions.pod:5122
29782 msgid "guestfs_mount_9p_va"
29783 msgstr ""
29784
29785 #. type: verbatim
29786 #: ../src/guestfs-actions.pod:5124
29787 #, no-wrap
29788 msgid ""
29789 " int\n"
29790 " guestfs_mount_9p_va (guestfs_h *g,\n"
29791 "                      const char *mounttag,\n"
29792 "                      const char *mountpoint,\n"
29793 "                      va_list args);\n"
29794 "\n"
29795 msgstr ""
29796
29797 #. type: textblock
29798 #: ../src/guestfs-actions.pod:5130
29799 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29800 msgstr ""
29801
29802 #. type: =head2
29803 #: ../src/guestfs-actions.pod:5134
29804 msgid "guestfs_mount_9p_argv"
29805 msgstr ""
29806
29807 #. type: verbatim
29808 #: ../src/guestfs-actions.pod:5136
29809 #, no-wrap
29810 msgid ""
29811 " int\n"
29812 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29813 "                        const char *mounttag,\n"
29814 "                        const char *mountpoint,\n"
29815 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29816 "\n"
29817 msgstr ""
29818
29819 #. type: textblock
29820 #: ../src/guestfs-actions.pod:5142
29821 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29822 msgstr ""
29823
29824 #. type: =head2
29825 #: ../src/guestfs-actions.pod:5146
29826 msgid "guestfs_mount_loop"
29827 msgstr ""
29828
29829 #. type: verbatim
29830 #: ../src/guestfs-actions.pod:5148
29831 #, no-wrap
29832 msgid ""
29833 " int\n"
29834 " guestfs_mount_loop (guestfs_h *g,\n"
29835 "                     const char *file,\n"
29836 "                     const char *mountpoint);\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: =head2
29841 #: ../src/guestfs-actions.pod:5161
29842 msgid "guestfs_mount_options"
29843 msgstr ""
29844
29845 #. type: verbatim
29846 #: ../src/guestfs-actions.pod:5163
29847 #, no-wrap
29848 msgid ""
29849 " int\n"
29850 " guestfs_mount_options (guestfs_h *g,\n"
29851 "                        const char *options,\n"
29852 "                        const char *device,\n"
29853 "                        const char *mountpoint);\n"
29854 "\n"
29855 msgstr ""
29856
29857 #. type: textblock
29858 #: ../src/guestfs-actions.pod:5169
29859 msgid ""
29860 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29861 "the mount options as for the L<mount(8)> I<-o> flag."
29862 msgstr ""
29863
29864 #. type: textblock
29865 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
29866 #: ../src/guestfs-actions.pod:5210
29867 msgid "(Added in 1.0.10)"
29868 msgstr ""
29869
29870 #. type: =head2
29871 #: ../src/guestfs-actions.pod:5181
29872 msgid "guestfs_mount_ro"
29873 msgstr ""
29874
29875 #. type: verbatim
29876 #: ../src/guestfs-actions.pod:5183
29877 #, no-wrap
29878 msgid ""
29879 " int\n"
29880 " guestfs_mount_ro (guestfs_h *g,\n"
29881 "                   const char *device,\n"
29882 "                   const char *mountpoint);\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: textblock
29887 #: ../src/guestfs-actions.pod:5188
29888 msgid ""
29889 "This is the same as the C<guestfs_mount> command, but it mounts the "
29890 "filesystem with the read-only (I<-o ro>) flag."
29891 msgstr ""
29892
29893 #. type: =head2
29894 #: ../src/guestfs-actions.pod:5195
29895 msgid "guestfs_mount_vfs"
29896 msgstr ""
29897
29898 #. type: verbatim
29899 #: ../src/guestfs-actions.pod:5197
29900 #, no-wrap
29901 msgid ""
29902 " int\n"
29903 " guestfs_mount_vfs (guestfs_h *g,\n"
29904 "                    const char *options,\n"
29905 "                    const char *vfstype,\n"
29906 "                    const char *device,\n"
29907 "                    const char *mountpoint);\n"
29908 "\n"
29909 msgstr ""
29910
29911 #. type: textblock
29912 #: ../src/guestfs-actions.pod:5204
29913 msgid ""
29914 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29915 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29916 "t> flags."
29917 msgstr ""
29918
29919 #. type: =head2
29920 #: ../src/guestfs-actions.pod:5212
29921 msgid "guestfs_mountpoints"
29922 msgstr ""
29923
29924 #. type: verbatim
29925 #: ../src/guestfs-actions.pod:5214
29926 #, no-wrap
29927 msgid ""
29928 " char **\n"
29929 " guestfs_mountpoints (guestfs_h *g);\n"
29930 "\n"
29931 msgstr ""
29932
29933 #. type: textblock
29934 #: ../src/guestfs-actions.pod:5217
29935 msgid ""
29936 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29937 "devices.  This one returns a hash table (map) of device name to directory "
29938 "where the device is mounted."
29939 msgstr ""
29940
29941 #. type: =head2
29942 #: ../src/guestfs-actions.pod:5229
29943 msgid "guestfs_mounts"
29944 msgstr ""
29945
29946 #. type: verbatim
29947 #: ../src/guestfs-actions.pod:5231
29948 #, no-wrap
29949 msgid ""
29950 " char **\n"
29951 " guestfs_mounts (guestfs_h *g);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: textblock
29956 #: ../src/guestfs-actions.pod:5239
29957 msgid "See also: C<guestfs_mountpoints>"
29958 msgstr ""
29959
29960 #. type: =head2
29961 #: ../src/guestfs-actions.pod:5247
29962 msgid "guestfs_mv"
29963 msgstr ""
29964
29965 #. type: verbatim
29966 #: ../src/guestfs-actions.pod:5249
29967 #, no-wrap
29968 msgid ""
29969 " int\n"
29970 " guestfs_mv (guestfs_h *g,\n"
29971 "             const char *src,\n"
29972 "             const char *dest);\n"
29973 "\n"
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:5261
29978 msgid "guestfs_ntfs_3g_probe"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:5263
29983 #, no-wrap
29984 msgid ""
29985 " int\n"
29986 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29987 "                        int rw,\n"
29988 "                        const char *device);\n"
29989 "\n"
29990 msgstr ""
29991
29992 #. type: textblock
29993 #: ../src/guestfs-actions.pod:5282
29994 msgid "(Added in 1.0.43)"
29995 msgstr ""
29996
29997 #. type: =head2
29998 #: ../src/guestfs-actions.pod:5284
29999 msgid "guestfs_ntfsresize"
30000 msgstr ""
30001
30002 #. type: verbatim
30003 #: ../src/guestfs-actions.pod:5286
30004 #, no-wrap
30005 msgid ""
30006 " int\n"
30007 " guestfs_ntfsresize (guestfs_h *g,\n"
30008 "                     const char *device);\n"
30009 "\n"
30010 msgstr ""
30011
30012 #. type: textblock
30013 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
30014 msgid ""
30015 "I<This function is deprecated.> In new code, use the L</"
30016 "guestfs_ntfsresize_opts> call instead."
30017 msgstr ""
30018
30019 #. type: =head2
30020 #: ../src/guestfs-actions.pod:5314
30021 msgid "guestfs_ntfsresize_opts"
30022 msgstr ""
30023
30024 #. type: verbatim
30025 #: ../src/guestfs-actions.pod:5316
30026 #, no-wrap
30027 msgid ""
30028 " int\n"
30029 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30030 "                          const char *device,\n"
30031 "                          ...);\n"
30032 "\n"
30033 msgstr ""
30034
30035 #. type: verbatim
30036 #: ../src/guestfs-actions.pod:5326
30037 #, no-wrap
30038 msgid ""
30039 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30040 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30041 "\n"
30042 msgstr ""
30043
30044 #. type: textblock
30045 #: ../src/guestfs-actions.pod:5346
30046 msgid ""
30047 "After the resize operation, the filesystem is always marked as requiring a "
30048 "consistency check (for safety).  You have to boot into Windows to perform "
30049 "this check and clear this condition.  If you I<don't> set the C<force> "
30050 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30051 "times on a single filesystem without booting into Windows between each "
30052 "resize."
30053 msgstr ""
30054
30055 #. type: =head2
30056 #: ../src/guestfs-actions.pod:5361
30057 msgid "guestfs_ntfsresize_opts_va"
30058 msgstr ""
30059
30060 #. type: verbatim
30061 #: ../src/guestfs-actions.pod:5363
30062 #, no-wrap
30063 msgid ""
30064 " int\n"
30065 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30066 "                             const char *device,\n"
30067 "                             va_list args);\n"
30068 "\n"
30069 msgstr ""
30070
30071 #. type: textblock
30072 #: ../src/guestfs-actions.pod:5368
30073 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30074 msgstr ""
30075
30076 #. type: =head2
30077 #: ../src/guestfs-actions.pod:5372
30078 msgid "guestfs_ntfsresize_opts_argv"
30079 msgstr ""
30080
30081 #. type: verbatim
30082 #: ../src/guestfs-actions.pod:5374
30083 #, no-wrap
30084 msgid ""
30085 " int\n"
30086 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30087 "                               const char *device,\n"
30088 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: textblock
30093 #: ../src/guestfs-actions.pod:5379
30094 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30095 msgstr ""
30096
30097 #. type: =head2
30098 #: ../src/guestfs-actions.pod:5383
30099 msgid "guestfs_ntfsresize_size"
30100 msgstr ""
30101
30102 #. type: verbatim
30103 #: ../src/guestfs-actions.pod:5385
30104 #, no-wrap
30105 msgid ""
30106 " int\n"
30107 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30108 "                          const char *device,\n"
30109 "                          int64_t size);\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../src/guestfs-actions.pod:5397
30115 msgid ""
30116 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30117 "to specify the new size (in bytes) explicitly."
30118 msgstr ""
30119
30120 #. type: textblock
30121 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
30122 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
30123 #: ../src/guestfs-actions.pod:7824
30124 msgid "(Added in 1.3.14)"
30125 msgstr ""
30126
30127 #. type: =head2
30128 #: ../src/guestfs-actions.pod:5404
30129 msgid "guestfs_part_add"
30130 msgstr ""
30131
30132 #. type: verbatim
30133 #: ../src/guestfs-actions.pod:5406
30134 #, no-wrap
30135 msgid ""
30136 " int\n"
30137 " guestfs_part_add (guestfs_h *g,\n"
30138 "                   const char *device,\n"
30139 "                   const char *prlogex,\n"
30140 "                   int64_t startsect,\n"
30141 "                   int64_t endsect);\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: textblock
30146 #: ../src/guestfs-actions.pod:5413
30147 msgid ""
30148 "This command adds a partition to C<device>.  If there is no partition table "
30149 "on the device, call C<guestfs_part_init> first."
30150 msgstr ""
30151
30152 #. type: textblock
30153 #: ../src/guestfs-actions.pod:5425
30154 msgid ""
30155 "Creating a partition which covers the whole disk is not so easy.  Use "
30156 "C<guestfs_part_disk> to do that."
30157 msgstr ""
30158
30159 #. type: textblock
30160 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
30161 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
30162 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
30163 #: ../src/guestfs-actions.pod:5702
30164 msgid "(Added in 1.0.78)"
30165 msgstr ""
30166
30167 #. type: =head2
30168 #: ../src/guestfs-actions.pod:5432
30169 msgid "guestfs_part_del"
30170 msgstr ""
30171
30172 #. type: verbatim
30173 #: ../src/guestfs-actions.pod:5434
30174 #, no-wrap
30175 msgid ""
30176 " int\n"
30177 " guestfs_part_del (guestfs_h *g,\n"
30178 "                   const char *device,\n"
30179 "                   int partnum);\n"
30180 "\n"
30181 msgstr ""
30182
30183 #. type: =head2
30184 #: ../src/guestfs-actions.pod:5449
30185 msgid "guestfs_part_disk"
30186 msgstr ""
30187
30188 #. type: verbatim
30189 #: ../src/guestfs-actions.pod:5451
30190 #, no-wrap
30191 msgid ""
30192 " int\n"
30193 " guestfs_part_disk (guestfs_h *g,\n"
30194 "                    const char *device,\n"
30195 "                    const char *parttype);\n"
30196 "\n"
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../src/guestfs-actions.pod:5456
30201 msgid ""
30202 "This command is simply a combination of C<guestfs_part_init> followed by "
30203 "C<guestfs_part_add> to create a single primary partition covering the whole "
30204 "disk."
30205 msgstr ""
30206
30207 #. type: textblock
30208 #: ../src/guestfs-actions.pod:5460
30209 msgid ""
30210 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30211 "possible values are described in C<guestfs_part_init>."
30212 msgstr ""
30213
30214 #. type: =head2
30215 #: ../src/guestfs-actions.pod:5470
30216 msgid "guestfs_part_get_bootable"
30217 msgstr ""
30218
30219 #. type: verbatim
30220 #: ../src/guestfs-actions.pod:5472
30221 #, no-wrap
30222 msgid ""
30223 " int\n"
30224 " guestfs_part_get_bootable (guestfs_h *g,\n"
30225 "                            const char *device,\n"
30226 "                            int partnum);\n"
30227 "\n"
30228 msgstr ""
30229
30230 #. type: textblock
30231 #: ../src/guestfs-actions.pod:5480
30232 msgid "See also C<guestfs_part_set_bootable>."
30233 msgstr ""
30234
30235 #. type: =head2
30236 #: ../src/guestfs-actions.pod:5486
30237 msgid "guestfs_part_get_mbr_id"
30238 msgstr ""
30239
30240 #. type: verbatim
30241 #: ../src/guestfs-actions.pod:5488
30242 #, no-wrap
30243 msgid ""
30244 " int\n"
30245 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30246 "                          const char *device,\n"
30247 "                          int partnum);\n"
30248 "\n"
30249 msgstr ""
30250
30251 #. type: textblock
30252 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
30253 msgid ""
30254 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30255 "undefined results for other partition table types (see "
30256 "C<guestfs_part_get_parttype>)."
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../src/guestfs-actions.pod:5504
30261 msgid "guestfs_part_get_parttype"
30262 msgstr ""
30263
30264 #. type: verbatim
30265 #: ../src/guestfs-actions.pod:5506
30266 #, no-wrap
30267 msgid ""
30268 " char *\n"
30269 " guestfs_part_get_parttype (guestfs_h *g,\n"
30270 "                            const char *device);\n"
30271 "\n"
30272 msgstr ""
30273
30274 #. type: textblock
30275 #: ../src/guestfs-actions.pod:5513
30276 msgid ""
30277 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30278 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30279 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30280 msgstr ""
30281
30282 #. type: =head2
30283 #: ../src/guestfs-actions.pod:5523
30284 msgid "guestfs_part_init"
30285 msgstr ""
30286
30287 #. type: verbatim
30288 #: ../src/guestfs-actions.pod:5525
30289 #, no-wrap
30290 msgid ""
30291 " int\n"
30292 " guestfs_part_init (guestfs_h *g,\n"
30293 "                    const char *device,\n"
30294 "                    const char *parttype);\n"
30295 "\n"
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-actions.pod:5534
30300 msgid ""
30301 "Initially there are no partitions.  Following this, you should call "
30302 "C<guestfs_part_add> for each partition required."
30303 msgstr ""
30304
30305 #. type: =head2
30306 #: ../src/guestfs-actions.pod:5607
30307 msgid "guestfs_part_list"
30308 msgstr "guestfs_part_list"
30309
30310 #. type: verbatim
30311 #: ../src/guestfs-actions.pod:5609
30312 #, no-wrap
30313 msgid ""
30314 " struct guestfs_partition_list *\n"
30315 " guestfs_part_list (guestfs_h *g,\n"
30316 "                    const char *device);\n"
30317 "\n"
30318 msgstr ""
30319 " struct guestfs_partition_list *\n"
30320 " guestfs_part_list (guestfs_h *g,\n"
30321 "                    const char *device);\n"
30322 "\n"
30323
30324 #. type: textblock
30325 #: ../src/guestfs-actions.pod:5626
30326 msgid ""
30327 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30328 "the device's sector size, see C<guestfs_blockdev_getss>."
30329 msgstr ""
30330
30331 #. type: textblock
30332 #: ../src/guestfs-actions.pod:5639
30333 msgid ""
30334 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30335 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30336 "use>."
30337 msgstr ""
30338
30339 #. type: =head2
30340 #: ../src/guestfs-actions.pod:5645
30341 msgid "guestfs_part_set_bootable"
30342 msgstr ""
30343
30344 #. type: verbatim
30345 #: ../src/guestfs-actions.pod:5647
30346 #, no-wrap
30347 msgid ""
30348 " int\n"
30349 " guestfs_part_set_bootable (guestfs_h *g,\n"
30350 "                            const char *device,\n"
30351 "                            int partnum,\n"
30352 "                            int bootable);\n"
30353 "\n"
30354 msgstr ""
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:5664
30358 msgid "guestfs_part_set_mbr_id"
30359 msgstr ""
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:5666
30363 #, no-wrap
30364 msgid ""
30365 " int\n"
30366 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30367 "                          const char *device,\n"
30368 "                          int partnum,\n"
30369 "                          int idbyte);\n"
30370 "\n"
30371 msgstr ""
30372
30373 #. type: =head2
30374 #: ../src/guestfs-actions.pod:5686
30375 msgid "guestfs_part_set_name"
30376 msgstr ""
30377
30378 #. type: verbatim
30379 #: ../src/guestfs-actions.pod:5688
30380 #, no-wrap
30381 msgid ""
30382 " int\n"
30383 " guestfs_part_set_name (guestfs_h *g,\n"
30384 "                        const char *device,\n"
30385 "                        int partnum,\n"
30386 "                        const char *name);\n"
30387 "\n"
30388 msgstr ""
30389
30390 #. type: =head2
30391 #: ../src/guestfs-actions.pod:5704
30392 msgid "guestfs_part_to_dev"
30393 msgstr ""
30394
30395 #. type: verbatim
30396 #: ../src/guestfs-actions.pod:5706
30397 #, no-wrap
30398 msgid ""
30399 " char *\n"
30400 " guestfs_part_to_dev (guestfs_h *g,\n"
30401 "                      const char *partition);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: textblock
30406 #: ../src/guestfs-actions.pod:5714
30407 msgid ""
30408 "The named partition must exist, for example as a string returned from "
30409 "C<guestfs_list_partitions>."
30410 msgstr ""
30411
30412 #. type: =head2
30413 #: ../src/guestfs-actions.pod:5722
30414 msgid "guestfs_ping_daemon"
30415 msgstr ""
30416
30417 #. type: verbatim
30418 #: ../src/guestfs-actions.pod:5724
30419 #, no-wrap
30420 msgid ""
30421 " int\n"
30422 " guestfs_ping_daemon (guestfs_h *g);\n"
30423 "\n"
30424 msgstr ""
30425
30426 #. type: =head2
30427 #: ../src/guestfs-actions.pod:5736
30428 msgid "guestfs_pread"
30429 msgstr ""
30430
30431 #. type: verbatim
30432 #: ../src/guestfs-actions.pod:5738
30433 #, no-wrap
30434 msgid ""
30435 " char *\n"
30436 " guestfs_pread (guestfs_h *g,\n"
30437 "                const char *path,\n"
30438 "                int count,\n"
30439 "                int64_t offset,\n"
30440 "                size_t *size_r);\n"
30441 "\n"
30442 msgstr ""
30443
30444 #. type: textblock
30445 #: ../src/guestfs-actions.pod:5751
30446 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30447 msgstr ""
30448
30449 #. type: =head2
30450 #: ../src/guestfs-actions.pod:5762
30451 msgid "guestfs_pread_device"
30452 msgstr ""
30453
30454 #. type: verbatim
30455 #: ../src/guestfs-actions.pod:5764
30456 #, no-wrap
30457 msgid ""
30458 " char *\n"
30459 " guestfs_pread_device (guestfs_h *g,\n"
30460 "                       const char *device,\n"
30461 "                       int count,\n"
30462 "                       int64_t offset,\n"
30463 "                       size_t *size_r);\n"
30464 "\n"
30465 msgstr ""
30466
30467 #. type: textblock
30468 #: ../src/guestfs-actions.pod:5777
30469 msgid "See also C<guestfs_pread>."
30470 msgstr ""
30471
30472 #. type: textblock
30473 #: ../src/guestfs-actions.pod:5786
30474 msgid "(Added in 1.5.21)"
30475 msgstr ""
30476
30477 #. type: =head2
30478 #: ../src/guestfs-actions.pod:5788
30479 msgid "guestfs_pvcreate"
30480 msgstr ""
30481
30482 #. type: verbatim
30483 #: ../src/guestfs-actions.pod:5790
30484 #, no-wrap
30485 msgid ""
30486 " int\n"
30487 " guestfs_pvcreate (guestfs_h *g,\n"
30488 "                   const char *device);\n"
30489 "\n"
30490 msgstr ""
30491
30492 #. type: =head2
30493 #: ../src/guestfs-actions.pod:5802
30494 msgid "guestfs_pvremove"
30495 msgstr ""
30496
30497 #. type: verbatim
30498 #: ../src/guestfs-actions.pod:5804
30499 #, no-wrap
30500 msgid ""
30501 " int\n"
30502 " guestfs_pvremove (guestfs_h *g,\n"
30503 "                   const char *device);\n"
30504 "\n"
30505 msgstr ""
30506
30507 #. type: =head2
30508 #: ../src/guestfs-actions.pod:5819
30509 msgid "guestfs_pvresize"
30510 msgstr ""
30511
30512 #. type: verbatim
30513 #: ../src/guestfs-actions.pod:5821
30514 #, no-wrap
30515 msgid ""
30516 " int\n"
30517 " guestfs_pvresize (guestfs_h *g,\n"
30518 "                   const char *device);\n"
30519 "\n"
30520 msgstr ""
30521
30522 #. type: =head2
30523 #: ../src/guestfs-actions.pod:5832
30524 msgid "guestfs_pvresize_size"
30525 msgstr ""
30526
30527 #. type: verbatim
30528 #: ../src/guestfs-actions.pod:5834
30529 #, no-wrap
30530 msgid ""
30531 " int\n"
30532 " guestfs_pvresize_size (guestfs_h *g,\n"
30533 "                        const char *device,\n"
30534 "                        int64_t size);\n"
30535 "\n"
30536 msgstr ""
30537
30538 #. type: textblock
30539 #: ../src/guestfs-actions.pod:5839
30540 msgid ""
30541 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30542 "specify the new size (in bytes) explicitly."
30543 msgstr ""
30544
30545 #. type: =head2
30546 #: ../src/guestfs-actions.pod:5846
30547 msgid "guestfs_pvs"
30548 msgstr ""
30549
30550 #. type: verbatim
30551 #: ../src/guestfs-actions.pod:5848
30552 #, no-wrap
30553 msgid ""
30554 " char **\n"
30555 " guestfs_pvs (guestfs_h *g);\n"
30556 "\n"
30557 msgstr ""
30558
30559 #. type: textblock
30560 #: ../src/guestfs-actions.pod:5857
30561 msgid "See also C<guestfs_pvs_full>."
30562 msgstr ""
30563
30564 #. type: =head2
30565 #: ../src/guestfs-actions.pod:5865
30566 msgid "guestfs_pvs_full"
30567 msgstr ""
30568
30569 #. type: verbatim
30570 #: ../src/guestfs-actions.pod:5867
30571 #, no-wrap
30572 msgid ""
30573 " struct guestfs_lvm_pv_list *\n"
30574 " guestfs_pvs_full (guestfs_h *g);\n"
30575 "\n"
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../src/guestfs-actions.pod:5873
30580 msgid ""
30581 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30582 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30583 msgstr ""
30584
30585 #. type: =head2
30586 #: ../src/guestfs-actions.pod:5879
30587 msgid "guestfs_pvuuid"
30588 msgstr ""
30589
30590 #. type: verbatim
30591 #: ../src/guestfs-actions.pod:5881
30592 #, no-wrap
30593 msgid ""
30594 " char *\n"
30595 " guestfs_pvuuid (guestfs_h *g,\n"
30596 "                 const char *device);\n"
30597 "\n"
30598 msgstr ""
30599
30600 #. type: =head2
30601 #: ../src/guestfs-actions.pod:5892
30602 msgid "guestfs_pwrite"
30603 msgstr ""
30604
30605 #. type: verbatim
30606 #: ../src/guestfs-actions.pod:5894
30607 #, no-wrap
30608 msgid ""
30609 " int\n"
30610 " guestfs_pwrite (guestfs_h *g,\n"
30611 "                 const char *path,\n"
30612 "                 const char *content,\n"
30613 "                 size_t content_size,\n"
30614 "                 int64_t offset);\n"
30615 "\n"
30616 msgstr ""
30617
30618 #. type: textblock
30619 #: ../src/guestfs-actions.pod:5910
30620 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30621 msgstr ""
30622
30623 #. type: =head2
30624 #: ../src/guestfs-actions.pod:5919
30625 msgid "guestfs_pwrite_device"
30626 msgstr ""
30627
30628 #. type: verbatim
30629 #: ../src/guestfs-actions.pod:5921
30630 #, no-wrap
30631 msgid ""
30632 " int\n"
30633 " guestfs_pwrite_device (guestfs_h *g,\n"
30634 "                        const char *device,\n"
30635 "                        const char *content,\n"
30636 "                        size_t content_size,\n"
30637 "                        int64_t offset);\n"
30638 "\n"
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../src/guestfs-actions.pod:5936
30643 msgid "See also C<guestfs_pwrite>."
30644 msgstr ""
30645
30646 #. type: textblock
30647 #: ../src/guestfs-actions.pod:5943
30648 msgid "(Added in 1.5.20)"
30649 msgstr ""
30650
30651 #. type: =head2
30652 #: ../src/guestfs-actions.pod:5945
30653 msgid "guestfs_read_file"
30654 msgstr ""
30655
30656 #. type: verbatim
30657 #: ../src/guestfs-actions.pod:5947
30658 #, no-wrap
30659 msgid ""
30660 " char *\n"
30661 " guestfs_read_file (guestfs_h *g,\n"
30662 "                    const char *path,\n"
30663 "                    size_t *size_r);\n"
30664 "\n"
30665 msgstr ""
30666
30667 #. type: textblock
30668 #: ../src/guestfs-actions.pod:5955
30669 msgid ""
30670 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30671 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30672 "function is limited in the total size of file that can be handled."
30673 msgstr ""
30674
30675 #. type: textblock
30676 #: ../src/guestfs-actions.pod:5967
30677 msgid "(Added in 1.0.63)"
30678 msgstr ""
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:5969
30682 msgid "guestfs_read_lines"
30683 msgstr ""
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:5971
30687 #, no-wrap
30688 msgid ""
30689 " char **\n"
30690 " guestfs_read_lines (guestfs_h *g,\n"
30691 "                     const char *path);\n"
30692 "\n"
30693 msgstr ""
30694
30695 #. type: textblock
30696 #: ../src/guestfs-actions.pod:5980
30697 msgid ""
30698 "Note that this function cannot correctly handle binary files (specifically, "
30699 "files containing C<\\0> character which is treated as end of line).  For "
30700 "those you need to use the C<guestfs_read_file> function which has a more "
30701 "complex interface."
30702 msgstr ""
30703
30704 #. type: =head2
30705 #: ../src/guestfs-actions.pod:5991
30706 msgid "guestfs_readdir"
30707 msgstr ""
30708
30709 #. type: verbatim
30710 #: ../src/guestfs-actions.pod:5993
30711 #, no-wrap
30712 msgid ""
30713 " struct guestfs_dirent_list *\n"
30714 " guestfs_readdir (guestfs_h *g,\n"
30715 "                  const char *dir);\n"
30716 "\n"
30717 msgstr ""
30718
30719 #. type: textblock
30720 #: ../src/guestfs-actions.pod:6047
30721 msgid ""
30722 "This function is primarily intended for use by programs.  To get a simple "
30723 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30724 "consumption, use C<guestfs_ll>."
30725 msgstr ""
30726
30727 #. type: textblock
30728 #: ../src/guestfs-actions.pod:6051
30729 msgid ""
30730 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30731 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30732 msgstr ""
30733
30734 #. type: =head2
30735 #: ../src/guestfs-actions.pod:6057
30736 msgid "guestfs_readlink"
30737 msgstr ""
30738
30739 #. type: verbatim
30740 #: ../src/guestfs-actions.pod:6059
30741 #, no-wrap
30742 msgid ""
30743 " char *\n"
30744 " guestfs_readlink (guestfs_h *g,\n"
30745 "                   const char *path);\n"
30746 "\n"
30747 msgstr ""
30748
30749 #. type: =head2
30750 #: ../src/guestfs-actions.pod:6070
30751 msgid "guestfs_readlinklist"
30752 msgstr ""
30753
30754 #. type: verbatim
30755 #: ../src/guestfs-actions.pod:6072
30756 #, no-wrap
30757 msgid ""
30758 " char **\n"
30759 " guestfs_readlinklist (guestfs_h *g,\n"
30760 "                       const char *path,\n"
30761 "                       char *const *names);\n"
30762 "\n"
30763 msgstr ""
30764
30765 #. type: =head2
30766 #: ../src/guestfs-actions.pod:6105
30767 msgid "guestfs_realpath"
30768 msgstr ""
30769
30770 #. type: verbatim
30771 #: ../src/guestfs-actions.pod:6107
30772 #, no-wrap
30773 msgid ""
30774 " char *\n"
30775 " guestfs_realpath (guestfs_h *g,\n"
30776 "                   const char *path);\n"
30777 "\n"
30778 msgstr ""
30779
30780 #. type: =head2
30781 #: ../src/guestfs-actions.pod:6119
30782 msgid "guestfs_removexattr"
30783 msgstr ""
30784
30785 #. type: verbatim
30786 #: ../src/guestfs-actions.pod:6121
30787 #, no-wrap
30788 msgid ""
30789 " int\n"
30790 " guestfs_removexattr (guestfs_h *g,\n"
30791 "                      const char *xattr,\n"
30792 "                      const char *path);\n"
30793 "\n"
30794 msgstr ""
30795
30796 #. type: textblock
30797 #: ../src/guestfs-actions.pod:6129
30798 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30799 msgstr ""
30800
30801 #. type: =head2
30802 #: ../src/guestfs-actions.pod:6135
30803 msgid "guestfs_resize2fs"
30804 msgstr ""
30805
30806 #. type: verbatim
30807 #: ../src/guestfs-actions.pod:6137
30808 #, no-wrap
30809 msgid ""
30810 " int\n"
30811 " guestfs_resize2fs (guestfs_h *g,\n"
30812 "                    const char *device);\n"
30813 "\n"
30814 msgstr ""
30815
30816 #. type: textblock
30817 #: ../src/guestfs-actions.pod:6144
30818 msgid ""
30819 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30820 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30821 "sometimes gives an error about this and sometimes not.  In any case, it is "
30822 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30823 msgstr ""
30824
30825 #. type: =head2
30826 #: ../src/guestfs-actions.pod:6154
30827 msgid "guestfs_resize2fs_M"
30828 msgstr ""
30829
30830 #. type: verbatim
30831 #: ../src/guestfs-actions.pod:6156
30832 #, no-wrap
30833 msgid ""
30834 " int\n"
30835 " guestfs_resize2fs_M (guestfs_h *g,\n"
30836 "                      const char *device);\n"
30837 "\n"
30838 msgstr ""
30839
30840 #. type: textblock
30841 #: ../src/guestfs-actions.pod:6160
30842 msgid ""
30843 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30844 "resized to its minimum size.  This works like the I<-M> option to the "
30845 "C<resize2fs> command."
30846 msgstr ""
30847
30848 #. type: textblock
30849 #: ../src/guestfs-actions.pod:6164
30850 msgid ""
30851 "To get the resulting size of the filesystem you should call "
30852 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30853 "These two numbers, multiplied together, give the resulting size of the "
30854 "minimal filesystem in bytes."
30855 msgstr ""
30856
30857 #. type: =head2
30858 #: ../src/guestfs-actions.pod:6173
30859 msgid "guestfs_resize2fs_size"
30860 msgstr ""
30861
30862 #. type: verbatim
30863 #: ../src/guestfs-actions.pod:6175
30864 #, no-wrap
30865 msgid ""
30866 " int\n"
30867 " guestfs_resize2fs_size (guestfs_h *g,\n"
30868 "                         const char *device,\n"
30869 "                         int64_t size);\n"
30870 "\n"
30871 msgstr ""
30872
30873 #. type: textblock
30874 #: ../src/guestfs-actions.pod:6180
30875 msgid ""
30876 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30877 "to specify the new size (in bytes) explicitly."
30878 msgstr ""
30879
30880 #. type: =head2
30881 #: ../src/guestfs-actions.pod:6187
30882 msgid "guestfs_rm"
30883 msgstr ""
30884
30885 #. type: verbatim
30886 #: ../src/guestfs-actions.pod:6189
30887 #, no-wrap
30888 msgid ""
30889 " int\n"
30890 " guestfs_rm (guestfs_h *g,\n"
30891 "             const char *path);\n"
30892 "\n"
30893 msgstr ""
30894
30895 #. type: =head2
30896 #: ../src/guestfs-actions.pod:6199
30897 msgid "guestfs_rm_rf"
30898 msgstr ""
30899
30900 #. type: verbatim
30901 #: ../src/guestfs-actions.pod:6201
30902 #, no-wrap
30903 msgid ""
30904 " int\n"
30905 " guestfs_rm_rf (guestfs_h *g,\n"
30906 "                const char *path);\n"
30907 "\n"
30908 msgstr ""
30909
30910 #. type: =head2
30911 #: ../src/guestfs-actions.pod:6213
30912 msgid "guestfs_rmdir"
30913 msgstr ""
30914
30915 #. type: verbatim
30916 #: ../src/guestfs-actions.pod:6215
30917 #, no-wrap
30918 msgid ""
30919 " int\n"
30920 " guestfs_rmdir (guestfs_h *g,\n"
30921 "                const char *path);\n"
30922 "\n"
30923 msgstr ""
30924
30925 #. type: =head2
30926 #: ../src/guestfs-actions.pod:6225
30927 msgid "guestfs_rmmountpoint"
30928 msgstr ""
30929
30930 #. type: verbatim
30931 #: ../src/guestfs-actions.pod:6227
30932 #, no-wrap
30933 msgid ""
30934 " int\n"
30935 " guestfs_rmmountpoint (guestfs_h *g,\n"
30936 "                       const char *exemptpath);\n"
30937 "\n"
30938 msgstr ""
30939
30940 #. type: textblock
30941 #: ../src/guestfs-actions.pod:6231
30942 msgid ""
30943 "This calls removes a mountpoint that was previously created with "
30944 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30945 msgstr ""
30946
30947 #. type: =head2
30948 #: ../src/guestfs-actions.pod:6239
30949 msgid "guestfs_scrub_device"
30950 msgstr ""
30951
30952 #. type: verbatim
30953 #: ../src/guestfs-actions.pod:6241
30954 #, no-wrap
30955 msgid ""
30956 " int\n"
30957 " guestfs_scrub_device (guestfs_h *g,\n"
30958 "                       const char *device);\n"
30959 "\n"
30960 msgstr ""
30961
30962 #. type: textblock
30963 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
30964 #: ../src/guestfs-actions.pod:6293
30965 msgid "(Added in 1.0.52)"
30966 msgstr ""
30967
30968 #. type: =head2
30969 #: ../src/guestfs-actions.pod:6258
30970 msgid "guestfs_scrub_file"
30971 msgstr ""
30972
30973 #. type: verbatim
30974 #: ../src/guestfs-actions.pod:6260
30975 #, no-wrap
30976 msgid ""
30977 " int\n"
30978 " guestfs_scrub_file (guestfs_h *g,\n"
30979 "                     const char *file);\n"
30980 "\n"
30981 msgstr ""
30982
30983 #. type: =head2
30984 #: ../src/guestfs-actions.pod:6276
30985 msgid "guestfs_scrub_freespace"
30986 msgstr ""
30987
30988 #. type: verbatim
30989 #: ../src/guestfs-actions.pod:6278
30990 #, no-wrap
30991 msgid ""
30992 " int\n"
30993 " guestfs_scrub_freespace (guestfs_h *g,\n"
30994 "                          const char *dir);\n"
30995 "\n"
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs-actions.pod:6282
31000 msgid ""
31001 "This command creates the directory C<dir> and then fills it with files until "
31002 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31003 "and deletes them.  The intention is to scrub any free space on the partition "
31004 "containing C<dir>."
31005 msgstr ""
31006
31007 #. type: =head2
31008 #: ../src/guestfs-actions.pod:6295
31009 msgid "guestfs_set_append"
31010 msgstr ""
31011
31012 #. type: verbatim
31013 #: ../src/guestfs-actions.pod:6297
31014 #, no-wrap
31015 msgid ""
31016 " int\n"
31017 " guestfs_set_append (guestfs_h *g,\n"
31018 "                     const char *append);\n"
31019 "\n"
31020 msgstr ""
31021
31022 #. type: =head2
31023 #: ../src/guestfs-actions.pod:6314
31024 msgid "guestfs_set_attach_method"
31025 msgstr ""
31026
31027 #. type: verbatim
31028 #: ../src/guestfs-actions.pod:6316
31029 #, no-wrap
31030 msgid ""
31031 " int\n"
31032 " guestfs_set_attach_method (guestfs_h *g,\n"
31033 "                            const char *attachmethod);\n"
31034 "\n"
31035 msgstr ""
31036
31037 #. type: =head2
31038 #: ../src/guestfs-actions.pod:6344
31039 msgid "guestfs_set_autosync"
31040 msgstr ""
31041
31042 #. type: verbatim
31043 #: ../src/guestfs-actions.pod:6346
31044 #, no-wrap
31045 msgid ""
31046 " int\n"
31047 " guestfs_set_autosync (guestfs_h *g,\n"
31048 "                       int autosync);\n"
31049 "\n"
31050 msgstr ""
31051
31052 #. type: =head2
31053 #: ../src/guestfs-actions.pod:6362
31054 msgid "guestfs_set_direct"
31055 msgstr ""
31056
31057 #. type: verbatim
31058 #: ../src/guestfs-actions.pod:6364
31059 #, no-wrap
31060 msgid ""
31061 " int\n"
31062 " guestfs_set_direct (guestfs_h *g,\n"
31063 "                     int direct);\n"
31064 "\n"
31065 msgstr ""
31066
31067 #. type: textblock
31068 #: ../src/guestfs-actions.pod:6372
31069 msgid ""
31070 "One consequence of this is that log messages aren't caught by the library "
31071 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31072 "stdout."
31073 msgstr ""
31074
31075 #. type: =head2
31076 #: ../src/guestfs-actions.pod:6385
31077 msgid "guestfs_set_e2label"
31078 msgstr ""
31079
31080 #. type: verbatim
31081 #: ../src/guestfs-actions.pod:6387
31082 #, no-wrap
31083 msgid ""
31084 " int\n"
31085 " guestfs_set_e2label (guestfs_h *g,\n"
31086 "                      const char *device,\n"
31087 "                      const char *label);\n"
31088 "\n"
31089 msgstr ""
31090
31091 #. type: textblock
31092 #: ../src/guestfs-actions.pod:6396
31093 msgid ""
31094 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31095 "the existing label on a filesystem."
31096 msgstr ""
31097
31098 #. type: =head2
31099 #: ../src/guestfs-actions.pod:6403
31100 msgid "guestfs_set_e2uuid"
31101 msgstr ""
31102
31103 #. type: verbatim
31104 #: ../src/guestfs-actions.pod:6405
31105 #, no-wrap
31106 msgid ""
31107 " int\n"
31108 " guestfs_set_e2uuid (guestfs_h *g,\n"
31109 "                     const char *device,\n"
31110 "                     const char *uuid);\n"
31111 "\n"
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs-actions.pod:6415
31116 msgid ""
31117 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31118 "the existing UUID of a filesystem."
31119 msgstr ""
31120
31121 #. type: =head2
31122 #: ../src/guestfs-actions.pod:6422
31123 msgid "guestfs_set_memsize"
31124 msgstr ""
31125
31126 #. type: verbatim
31127 #: ../src/guestfs-actions.pod:6424
31128 #, no-wrap
31129 msgid ""
31130 " int\n"
31131 " guestfs_set_memsize (guestfs_h *g,\n"
31132 "                      int memsize);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:6428
31138 msgid ""
31139 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31140 "This only has any effect if called before C<guestfs_launch>."
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-actions.pod:6443
31145 msgid "guestfs_set_network"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-actions.pod:6445
31150 #, no-wrap
31151 msgid ""
31152 " int\n"
31153 " guestfs_set_network (guestfs_h *g,\n"
31154 "                      int network);\n"
31155 "\n"
31156 msgstr ""
31157
31158 #. type: textblock
31159 #: ../src/guestfs-actions.pod:6455
31160 msgid ""
31161 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31162 "effect."
31163 msgstr ""
31164
31165 #. type: =head2
31166 #: ../src/guestfs-actions.pod:6462
31167 msgid "guestfs_set_path"
31168 msgstr ""
31169
31170 #. type: verbatim
31171 #: ../src/guestfs-actions.pod:6464
31172 #, no-wrap
31173 msgid ""
31174 " int\n"
31175 " guestfs_set_path (guestfs_h *g,\n"
31176 "                   const char *searchpath);\n"
31177 "\n"
31178 msgstr ""
31179
31180 #. type: =head2
31181 #: ../src/guestfs-actions.pod:6479
31182 msgid "guestfs_set_pgroup"
31183 msgstr ""
31184
31185 #. type: verbatim
31186 #: ../src/guestfs-actions.pod:6481
31187 #, no-wrap
31188 msgid ""
31189 " int\n"
31190 " guestfs_set_pgroup (guestfs_h *g,\n"
31191 "                     int pgroup);\n"
31192 "\n"
31193 msgstr ""
31194
31195 #. type: =head2
31196 #: ../src/guestfs-actions.pod:6498
31197 msgid "guestfs_set_qemu"
31198 msgstr ""
31199
31200 #. type: verbatim
31201 #: ../src/guestfs-actions.pod:6500
31202 #, no-wrap
31203 msgid ""
31204 " int\n"
31205 " guestfs_set_qemu (guestfs_h *g,\n"
31206 "                   const char *qemu);\n"
31207 "\n"
31208 msgstr ""
31209
31210 #. type: =head2
31211 #: ../src/guestfs-actions.pod:6526
31212 msgid "guestfs_set_recovery_proc"
31213 msgstr ""
31214
31215 #. type: verbatim
31216 #: ../src/guestfs-actions.pod:6528
31217 #, no-wrap
31218 msgid ""
31219 " int\n"
31220 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31221 "                            int recoveryproc);\n"
31222 "\n"
31223 msgstr ""
31224
31225 #. type: textblock
31226 #: ../src/guestfs-actions.pod:6532
31227 msgid ""
31228 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31229 "not create a recovery process.  The purpose of the recovery process is to "
31230 "stop runaway qemu processes in the case where the main program aborts "
31231 "abruptly."
31232 msgstr ""
31233
31234 #. type: textblock
31235 #: ../src/guestfs-actions.pod:6537
31236 msgid ""
31237 "This only has any effect if called before C<guestfs_launch>, and the default "
31238 "is true."
31239 msgstr ""
31240
31241 #. type: =head2
31242 #: ../src/guestfs-actions.pod:6550
31243 msgid "guestfs_set_selinux"
31244 msgstr ""
31245
31246 #. type: verbatim
31247 #: ../src/guestfs-actions.pod:6552
31248 #, no-wrap
31249 msgid ""
31250 " int\n"
31251 " guestfs_set_selinux (guestfs_h *g,\n"
31252 "                      int selinux);\n"
31253 "\n"
31254 msgstr ""
31255
31256 #. type: =head2
31257 #: ../src/guestfs-actions.pod:6569
31258 #, fuzzy
31259 #| msgid "guestfs_ln_s"
31260 msgid "guestfs_set_smp"
31261 msgstr "guestfs_ln_s"
31262
31263 #. type: verbatim
31264 #: ../src/guestfs-actions.pod:6571
31265 #, fuzzy, no-wrap
31266 #| msgid ""
31267 #| " int\n"
31268 #| " guestfs_mkdir_p (guestfs_h *g,\n"
31269 #| "                  const char *path);\n"
31270 #| "\n"
31271 msgid ""
31272 " int\n"
31273 " guestfs_set_smp (guestfs_h *g,\n"
31274 "                  int smp);\n"
31275 "\n"
31276 msgstr ""
31277 " int\n"
31278 " guestfs_mkdir_p (guestfs_h *g,\n"
31279 "                  const char *path);\n"
31280 "\n"
31281
31282 #. type: textblock
31283 #: ../src/guestfs-actions.pod:6579
31284 msgid "This function must be called before C<guestfs_launch>."
31285 msgstr ""
31286
31287 #. type: =head2
31288 #: ../src/guestfs-actions.pod:6585
31289 msgid "guestfs_set_trace"
31290 msgstr ""
31291
31292 #. type: verbatim
31293 #: ../src/guestfs-actions.pod:6587
31294 #, no-wrap
31295 msgid ""
31296 " int\n"
31297 " guestfs_set_trace (guestfs_h *g,\n"
31298 "                    int trace);\n"
31299 "\n"
31300 msgstr ""
31301
31302 #. type: textblock
31303 #: ../src/guestfs-actions.pod:6601
31304 msgid ""
31305 "Trace messages are normally sent to C<stderr>, unless you register a "
31306 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31307 msgstr ""
31308
31309 #. type: =head2
31310 #: ../src/guestfs-actions.pod:6609
31311 msgid "guestfs_set_verbose"
31312 msgstr ""
31313
31314 #. type: verbatim
31315 #: ../src/guestfs-actions.pod:6611
31316 #, no-wrap
31317 msgid ""
31318 " int\n"
31319 " guestfs_set_verbose (guestfs_h *g,\n"
31320 "                      int verbose);\n"
31321 "\n"
31322 msgstr ""
31323
31324 #. type: textblock
31325 #: ../src/guestfs-actions.pod:6620
31326 msgid ""
31327 "Verbose messages are normally sent to C<stderr>, unless you register a "
31328 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31329 msgstr ""
31330
31331 #. type: =head2
31332 #: ../src/guestfs-actions.pod:6628
31333 msgid "guestfs_setcon"
31334 msgstr ""
31335
31336 #. type: verbatim
31337 #: ../src/guestfs-actions.pod:6630
31338 #, no-wrap
31339 msgid ""
31340 " int\n"
31341 " guestfs_setcon (guestfs_h *g,\n"
31342 "                 const char *context);\n"
31343 "\n"
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:6643
31348 msgid "guestfs_setxattr"
31349 msgstr ""
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:6645
31353 #, no-wrap
31354 msgid ""
31355 " int\n"
31356 " guestfs_setxattr (guestfs_h *g,\n"
31357 "                   const char *xattr,\n"
31358 "                   const char *val,\n"
31359 "                   int vallen,\n"
31360 "                   const char *path);\n"
31361 "\n"
31362 msgstr ""
31363
31364 #. type: textblock
31365 #: ../src/guestfs-actions.pod:6656
31366 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31367 msgstr ""
31368
31369 #. type: =head2
31370 #: ../src/guestfs-actions.pod:6662
31371 msgid "guestfs_sfdisk"
31372 msgstr ""
31373
31374 #. type: verbatim
31375 #: ../src/guestfs-actions.pod:6664
31376 #, no-wrap
31377 msgid ""
31378 " int\n"
31379 " guestfs_sfdisk (guestfs_h *g,\n"
31380 "                 const char *device,\n"
31381 "                 int cyls,\n"
31382 "                 int heads,\n"
31383 "                 int sectors,\n"
31384 "                 char *const *lines);\n"
31385 "\n"
31386 msgstr ""
31387
31388 #. type: textblock
31389 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
31390 #: ../src/guestfs-actions.pod:6750
31391 msgid ""
31392 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31393 "call instead."
31394 msgstr ""
31395
31396 #. type: textblock
31397 #: ../src/guestfs-actions.pod:6699
31398 msgid ""
31399 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31400 msgstr ""
31401
31402 #. type: =head2
31403 #: ../src/guestfs-actions.pod:6709
31404 msgid "guestfs_sfdiskM"
31405 msgstr ""
31406
31407 #. type: verbatim
31408 #: ../src/guestfs-actions.pod:6711
31409 #, no-wrap
31410 msgid ""
31411 " int\n"
31412 " guestfs_sfdiskM (guestfs_h *g,\n"
31413 "                  const char *device,\n"
31414 "                  char *const *lines);\n"
31415 "\n"
31416 msgstr ""
31417
31418 #. type: textblock
31419 #: ../src/guestfs-actions.pod:6723
31420 msgid ""
31421 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31422 "partition sizes are specified in megabytes only (rounded to the nearest "
31423 "cylinder) and you don't need to specify the cyls, heads and sectors "
31424 "parameters which were rarely if ever used anyway."
31425 msgstr ""
31426
31427 #. type: textblock
31428 #: ../src/guestfs-actions.pod:6729
31429 msgid ""
31430 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31431 "C<guestfs_part_disk>"
31432 msgstr ""
31433
31434 #. type: =head2
31435 #: ../src/guestfs-actions.pod:6739
31436 msgid "guestfs_sfdisk_N"
31437 msgstr ""
31438
31439 #. type: verbatim
31440 #: ../src/guestfs-actions.pod:6741
31441 #, no-wrap
31442 msgid ""
31443 " int\n"
31444 " guestfs_sfdisk_N (guestfs_h *g,\n"
31445 "                   const char *device,\n"
31446 "                   int partnum,\n"
31447 "                   int cyls,\n"
31448 "                   int heads,\n"
31449 "                   int sectors,\n"
31450 "                   const char *line);\n"
31451 "\n"
31452 msgstr ""
31453
31454 #. type: textblock
31455 #: ../src/guestfs-actions.pod:6760
31456 msgid ""
31457 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31458 "for the cyls/heads/sectors parameters."
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs-actions.pod:6763
31463 msgid "See also: C<guestfs_part_add>"
31464 msgstr ""
31465
31466 #. type: =head2
31467 #: ../src/guestfs-actions.pod:6772
31468 msgid "guestfs_sfdisk_disk_geometry"
31469 msgstr ""
31470
31471 #. type: verbatim
31472 #: ../src/guestfs-actions.pod:6774
31473 #, no-wrap
31474 msgid ""
31475 " char *\n"
31476 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31477 "                               const char *device);\n"
31478 "\n"
31479 msgstr ""
31480
31481 #. type: textblock
31482 #: ../src/guestfs-actions.pod:6778
31483 msgid ""
31484 "This displays the disk geometry of C<device> read from the partition table.  "
31485 "Especially in the case where the underlying block device has been resized, "
31486 "this can be different from the kernel's idea of the geometry (see "
31487 "C<guestfs_sfdisk_kernel_geometry>)."
31488 msgstr ""
31489
31490 #. type: =head2
31491 #: ../src/guestfs-actions.pod:6791
31492 msgid "guestfs_sfdisk_kernel_geometry"
31493 msgstr ""
31494
31495 #. type: verbatim
31496 #: ../src/guestfs-actions.pod:6793
31497 #, no-wrap
31498 msgid ""
31499 " char *\n"
31500 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31501 "                                 const char *device);\n"
31502 "\n"
31503 msgstr ""
31504
31505 #. type: =head2
31506 #: ../src/guestfs-actions.pod:6807
31507 msgid "guestfs_sfdisk_l"
31508 msgstr ""
31509
31510 #. type: verbatim
31511 #: ../src/guestfs-actions.pod:6809
31512 #, no-wrap
31513 msgid ""
31514 " char *\n"
31515 " guestfs_sfdisk_l (guestfs_h *g,\n"
31516 "                   const char *device);\n"
31517 "\n"
31518 msgstr ""
31519
31520 #. type: textblock
31521 #: ../src/guestfs-actions.pod:6813
31522 msgid ""
31523 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31524 "call instead."
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs-actions.pod:6824
31529 msgid "See also: C<guestfs_part_list>"
31530 msgstr ""
31531
31532 #. type: =head2
31533 #: ../src/guestfs-actions.pod:6831
31534 msgid "guestfs_sh"
31535 msgstr ""
31536
31537 #. type: verbatim
31538 #: ../src/guestfs-actions.pod:6833
31539 #, no-wrap
31540 msgid ""
31541 " char *\n"
31542 " guestfs_sh (guestfs_h *g,\n"
31543 "             const char *command);\n"
31544 "\n"
31545 msgstr ""
31546
31547 #. type: textblock
31548 #: ../src/guestfs-actions.pod:6840
31549 msgid "This is like C<guestfs_command>, but passes the command to:"
31550 msgstr ""
31551
31552 #. type: textblock
31553 #: ../src/guestfs-actions.pod:6848
31554 msgid "All the provisos about C<guestfs_command> apply to this call."
31555 msgstr ""
31556
31557 #. type: =head2
31558 #: ../src/guestfs-actions.pod:6855
31559 msgid "guestfs_sh_lines"
31560 msgstr ""
31561
31562 #. type: verbatim
31563 #: ../src/guestfs-actions.pod:6857
31564 #, no-wrap
31565 msgid ""
31566 " char **\n"
31567 " guestfs_sh_lines (guestfs_h *g,\n"
31568 "                   const char *command);\n"
31569 "\n"
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs-actions.pod:6861
31574 msgid ""
31575 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31576 "lines."
31577 msgstr ""
31578
31579 #. type: textblock
31580 #: ../src/guestfs-actions.pod:6864
31581 msgid "See also: C<guestfs_command_lines>"
31582 msgstr ""
31583
31584 #. type: =head2
31585 #: ../src/guestfs-actions.pod:6872
31586 msgid "guestfs_sleep"
31587 msgstr ""
31588
31589 #. type: verbatim
31590 #: ../src/guestfs-actions.pod:6874
31591 #, no-wrap
31592 msgid ""
31593 " int\n"
31594 " guestfs_sleep (guestfs_h *g,\n"
31595 "                int secs);\n"
31596 "\n"
31597 msgstr ""
31598
31599 #. type: textblock
31600 #: ../src/guestfs-actions.pod:6882
31601 msgid "(Added in 1.0.41)"
31602 msgstr ""
31603
31604 #. type: =head2
31605 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
31606 msgid "guestfs_stat"
31607 msgstr ""
31608
31609 #. type: verbatim
31610 #: ../src/guestfs-actions.pod:6886
31611 #, no-wrap
31612 msgid ""
31613 " struct guestfs_stat *\n"
31614 " guestfs_stat (guestfs_h *g,\n"
31615 "               const char *path);\n"
31616 "\n"
31617 msgstr ""
31618
31619 #. type: =head2
31620 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
31621 msgid "guestfs_statvfs"
31622 msgstr ""
31623
31624 #. type: verbatim
31625 #: ../src/guestfs-actions.pod:6902
31626 #, no-wrap
31627 msgid ""
31628 " struct guestfs_statvfs *\n"
31629 " guestfs_statvfs (guestfs_h *g,\n"
31630 "                  const char *path);\n"
31631 "\n"
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs-actions.pod:6912
31636 msgid ""
31637 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31638 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31639 msgstr ""
31640
31641 #. type: =head2
31642 #: ../src/guestfs-actions.pod:6918
31643 msgid "guestfs_strings"
31644 msgstr ""
31645
31646 #. type: verbatim
31647 #: ../src/guestfs-actions.pod:6920
31648 #, no-wrap
31649 msgid ""
31650 " char **\n"
31651 " guestfs_strings (guestfs_h *g,\n"
31652 "                  const char *path);\n"
31653 "\n"
31654 msgstr ""
31655
31656 #. type: =head2
31657 #: ../src/guestfs-actions.pod:6936
31658 msgid "guestfs_strings_e"
31659 msgstr ""
31660
31661 #. type: verbatim
31662 #: ../src/guestfs-actions.pod:6938
31663 #, no-wrap
31664 msgid ""
31665 " char **\n"
31666 " guestfs_strings_e (guestfs_h *g,\n"
31667 "                    const char *encoding,\n"
31668 "                    const char *path);\n"
31669 "\n"
31670 msgstr ""
31671
31672 #. type: textblock
31673 #: ../src/guestfs-actions.pod:6943
31674 msgid ""
31675 "This is like the C<guestfs_strings> command, but allows you to specify the "
31676 "encoding of strings that are looked for in the source file C<path>."
31677 msgstr ""
31678
31679 #. type: textblock
31680 #: ../src/guestfs-actions.pod:6953
31681 msgid ""
31682 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31683 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31684 msgstr ""
31685
31686 #. type: =head2
31687 #: ../src/guestfs-actions.pod:6991
31688 msgid "guestfs_swapoff_device"
31689 msgstr ""
31690
31691 #. type: verbatim
31692 #: ../src/guestfs-actions.pod:6993
31693 #, no-wrap
31694 msgid ""
31695 " int\n"
31696 " guestfs_swapoff_device (guestfs_h *g,\n"
31697 "                         const char *device);\n"
31698 "\n"
31699 msgstr ""
31700
31701 #. type: textblock
31702 #: ../src/guestfs-actions.pod:6997
31703 msgid ""
31704 "This command disables the libguestfs appliance swap device or partition "
31705 "named C<device>.  See C<guestfs_swapon_device>."
31706 msgstr ""
31707
31708 #. type: =head2
31709 #: ../src/guestfs-actions.pod:7005
31710 msgid "guestfs_swapoff_file"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs-actions.pod:7007
31715 #, no-wrap
31716 msgid ""
31717 " int\n"
31718 " guestfs_swapoff_file (guestfs_h *g,\n"
31719 "                       const char *file);\n"
31720 "\n"
31721 msgstr ""
31722
31723 #. type: =head2
31724 #: ../src/guestfs-actions.pod:7017
31725 msgid "guestfs_swapoff_label"
31726 msgstr ""
31727
31728 #. type: verbatim
31729 #: ../src/guestfs-actions.pod:7019
31730 #, no-wrap
31731 msgid ""
31732 " int\n"
31733 " guestfs_swapoff_label (guestfs_h *g,\n"
31734 "                        const char *label);\n"
31735 "\n"
31736 msgstr ""
31737
31738 #. type: =head2
31739 #: ../src/guestfs-actions.pod:7030
31740 msgid "guestfs_swapoff_uuid"
31741 msgstr ""
31742
31743 #. type: verbatim
31744 #: ../src/guestfs-actions.pod:7032
31745 #, no-wrap
31746 msgid ""
31747 " int\n"
31748 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31749 "                       const char *uuid);\n"
31750 "\n"
31751 msgstr ""
31752
31753 #. type: =head2
31754 #: ../src/guestfs-actions.pod:7043
31755 msgid "guestfs_swapon_device"
31756 msgstr ""
31757
31758 #. type: verbatim
31759 #: ../src/guestfs-actions.pod:7045
31760 #, no-wrap
31761 msgid ""
31762 " int\n"
31763 " guestfs_swapon_device (guestfs_h *g,\n"
31764 "                        const char *device);\n"
31765 "\n"
31766 msgstr ""
31767
31768 #. type: textblock
31769 #: ../src/guestfs-actions.pod:7049
31770 msgid ""
31771 "This command enables the libguestfs appliance to use the swap device or "
31772 "partition named C<device>.  The increased memory is made available for all "
31773 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31774 msgstr ""
31775
31776 #. type: =head2
31777 #: ../src/guestfs-actions.pod:7065
31778 msgid "guestfs_swapon_file"
31779 msgstr ""
31780
31781 #. type: verbatim
31782 #: ../src/guestfs-actions.pod:7067
31783 #, no-wrap
31784 msgid ""
31785 " int\n"
31786 " guestfs_swapon_file (guestfs_h *g,\n"
31787 "                      const char *file);\n"
31788 "\n"
31789 msgstr ""
31790
31791 #. type: textblock
31792 #: ../src/guestfs-actions.pod:7071
31793 msgid ""
31794 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31795 "notes."
31796 msgstr ""
31797
31798 #. type: =head2
31799 #: ../src/guestfs-actions.pod:7078
31800 msgid "guestfs_swapon_label"
31801 msgstr ""
31802
31803 #. type: verbatim
31804 #: ../src/guestfs-actions.pod:7080
31805 #, no-wrap
31806 msgid ""
31807 " int\n"
31808 " guestfs_swapon_label (guestfs_h *g,\n"
31809 "                       const char *label);\n"
31810 "\n"
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs-actions.pod:7084
31815 msgid ""
31816 "This command enables swap to a labeled swap partition.  See "
31817 "C<guestfs_swapon_device> for other notes."
31818 msgstr ""
31819
31820 #. type: =head2
31821 #: ../src/guestfs-actions.pod:7091
31822 msgid "guestfs_swapon_uuid"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs-actions.pod:7093
31827 #, no-wrap
31828 msgid ""
31829 " int\n"
31830 " guestfs_swapon_uuid (guestfs_h *g,\n"
31831 "                      const char *uuid);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs-actions.pod:7097
31837 msgid ""
31838 "This command enables swap to a swap partition with the given UUID.  See "
31839 "C<guestfs_swapon_device> for other notes."
31840 msgstr ""
31841
31842 #. type: =head2
31843 #: ../src/guestfs-actions.pod:7104
31844 msgid "guestfs_sync"
31845 msgstr ""
31846
31847 #. type: verbatim
31848 #: ../src/guestfs-actions.pod:7106
31849 #, no-wrap
31850 msgid ""
31851 " int\n"
31852 " guestfs_sync (guestfs_h *g);\n"
31853 "\n"
31854 msgstr ""
31855
31856 #. type: =head2
31857 #: ../src/guestfs-actions.pod:7119
31858 msgid "guestfs_tail"
31859 msgstr ""
31860
31861 #. type: verbatim
31862 #: ../src/guestfs-actions.pod:7121
31863 #, no-wrap
31864 msgid ""
31865 " char **\n"
31866 " guestfs_tail (guestfs_h *g,\n"
31867 "               const char *path);\n"
31868 "\n"
31869 msgstr ""
31870
31871 #. type: =head2
31872 #: ../src/guestfs-actions.pod:7137
31873 msgid "guestfs_tail_n"
31874 msgstr ""
31875
31876 #. type: verbatim
31877 #: ../src/guestfs-actions.pod:7139
31878 #, no-wrap
31879 msgid ""
31880 " char **\n"
31881 " guestfs_tail_n (guestfs_h *g,\n"
31882 "                 int nrlines,\n"
31883 "                 const char *path);\n"
31884 "\n"
31885 msgstr ""
31886
31887 #. type: =head2
31888 #: ../src/guestfs-actions.pod:7161
31889 msgid "guestfs_tar_in"
31890 msgstr ""
31891
31892 #. type: verbatim
31893 #: ../src/guestfs-actions.pod:7163
31894 #, no-wrap
31895 msgid ""
31896 " int\n"
31897 " guestfs_tar_in (guestfs_h *g,\n"
31898 "                 const char *tarfile,\n"
31899 "                 const char *directory);\n"
31900 "\n"
31901 msgstr ""
31902
31903 #. type: textblock
31904 #: ../src/guestfs-actions.pod:7171
31905 msgid ""
31906 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31907 msgstr ""
31908
31909 #. type: textblock
31910 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
31911 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
31912 msgid "(Added in 1.0.3)"
31913 msgstr ""
31914
31915 #. type: =head2
31916 #: ../src/guestfs-actions.pod:7178
31917 msgid "guestfs_tar_out"
31918 msgstr ""
31919
31920 #. type: verbatim
31921 #: ../src/guestfs-actions.pod:7180
31922 #, no-wrap
31923 msgid ""
31924 " int\n"
31925 " guestfs_tar_out (guestfs_h *g,\n"
31926 "                  const char *directory,\n"
31927 "                  const char *tarfile);\n"
31928 "\n"
31929 msgstr ""
31930
31931 #. type: textblock
31932 #: ../src/guestfs-actions.pod:7188
31933 msgid ""
31934 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31935 "C<guestfs_txz_out>."
31936 msgstr ""
31937
31938 #. type: =head2
31939 #: ../src/guestfs-actions.pod:7195
31940 msgid "guestfs_tgz_in"
31941 msgstr ""
31942
31943 #. type: verbatim
31944 #: ../src/guestfs-actions.pod:7197
31945 #, no-wrap
31946 msgid ""
31947 " int\n"
31948 " guestfs_tgz_in (guestfs_h *g,\n"
31949 "                 const char *tarball,\n"
31950 "                 const char *directory);\n"
31951 "\n"
31952 msgstr ""
31953
31954 #. type: textblock
31955 #: ../src/guestfs-actions.pod:7205
31956 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31957 msgstr ""
31958
31959 #. type: =head2
31960 #: ../src/guestfs-actions.pod:7211
31961 msgid "guestfs_tgz_out"
31962 msgstr ""
31963
31964 #. type: verbatim
31965 #: ../src/guestfs-actions.pod:7213
31966 #, no-wrap
31967 msgid ""
31968 " int\n"
31969 " guestfs_tgz_out (guestfs_h *g,\n"
31970 "                  const char *directory,\n"
31971 "                  const char *tarball);\n"
31972 "\n"
31973 msgstr ""
31974
31975 #. type: textblock
31976 #: ../src/guestfs-actions.pod:7221
31977 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31978 msgstr ""
31979
31980 #. type: =head2
31981 #: ../src/guestfs-actions.pod:7227
31982 msgid "guestfs_touch"
31983 msgstr ""
31984
31985 #. type: verbatim
31986 #: ../src/guestfs-actions.pod:7229
31987 #, no-wrap
31988 msgid ""
31989 " int\n"
31990 " guestfs_touch (guestfs_h *g,\n"
31991 "                const char *path);\n"
31992 "\n"
31993 msgstr ""
31994
31995 #. type: =head2
31996 #: ../src/guestfs-actions.pod:7244
31997 msgid "guestfs_truncate"
31998 msgstr ""
31999
32000 #. type: verbatim
32001 #: ../src/guestfs-actions.pod:7246
32002 #, no-wrap
32003 msgid ""
32004 " int\n"
32005 " guestfs_truncate (guestfs_h *g,\n"
32006 "                   const char *path);\n"
32007 "\n"
32008 msgstr ""
32009
32010 #. type: =head2
32011 #: ../src/guestfs-actions.pod:7257
32012 msgid "guestfs_truncate_size"
32013 msgstr ""
32014
32015 #. type: verbatim
32016 #: ../src/guestfs-actions.pod:7259
32017 #, no-wrap
32018 msgid ""
32019 " int\n"
32020 " guestfs_truncate_size (guestfs_h *g,\n"
32021 "                        const char *path,\n"
32022 "                        int64_t size);\n"
32023 "\n"
32024 msgstr ""
32025
32026 #. type: textblock
32027 #: ../src/guestfs-actions.pod:7267
32028 msgid ""
32029 "If the current file size is less than C<size> then the file is extended to "
32030 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32031 "blocks are not allocated for the file until you write to it).  To create a "
32032 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32033 msgstr ""
32034
32035 #. type: =head2
32036 #: ../src/guestfs-actions.pod:7277
32037 msgid "guestfs_tune2fs_l"
32038 msgstr ""
32039
32040 #. type: verbatim
32041 #: ../src/guestfs-actions.pod:7279
32042 #, no-wrap
32043 msgid ""
32044 " char **\n"
32045 " guestfs_tune2fs_l (guestfs_h *g,\n"
32046 "                    const char *device);\n"
32047 "\n"
32048 msgstr ""
32049
32050 #. type: =head2
32051 #: ../src/guestfs-actions.pod:7299
32052 msgid "guestfs_txz_in"
32053 msgstr ""
32054
32055 #. type: verbatim
32056 #: ../src/guestfs-actions.pod:7301
32057 #, no-wrap
32058 msgid ""
32059 " int\n"
32060 " guestfs_txz_in (guestfs_h *g,\n"
32061 "                 const char *tarball,\n"
32062 "                 const char *directory);\n"
32063 "\n"
32064 msgstr ""
32065
32066 #. type: =head2
32067 #: ../src/guestfs-actions.pod:7313
32068 msgid "guestfs_txz_out"
32069 msgstr ""
32070
32071 #. type: verbatim
32072 #: ../src/guestfs-actions.pod:7315
32073 #, no-wrap
32074 msgid ""
32075 " int\n"
32076 " guestfs_txz_out (guestfs_h *g,\n"
32077 "                  const char *directory,\n"
32078 "                  const char *tarball);\n"
32079 "\n"
32080 msgstr ""
32081
32082 #. type: =head2
32083 #: ../src/guestfs-actions.pod:7327
32084 msgid "guestfs_umask"
32085 msgstr ""
32086
32087 #. type: verbatim
32088 #: ../src/guestfs-actions.pod:7329
32089 #, no-wrap
32090 msgid ""
32091 " int\n"
32092 " guestfs_umask (guestfs_h *g,\n"
32093 "                int mask);\n"
32094 "\n"
32095 msgstr ""
32096
32097 #. type: textblock
32098 #: ../src/guestfs-actions.pod:7345
32099 msgid ""
32100 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32101 "C<guestfs_mkdir>."
32102 msgstr ""
32103
32104 #. type: =head2
32105 #: ../src/guestfs-actions.pod:7354
32106 msgid "guestfs_umount"
32107 msgstr ""
32108
32109 #. type: verbatim
32110 #: ../src/guestfs-actions.pod:7356
32111 #, no-wrap
32112 msgid ""
32113 " int\n"
32114 " guestfs_umount (guestfs_h *g,\n"
32115 "                 const char *pathordevice);\n"
32116 "\n"
32117 msgstr ""
32118
32119 #. type: =head2
32120 #: ../src/guestfs-actions.pod:7368
32121 msgid "guestfs_umount_all"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-actions.pod:7370
32126 #, no-wrap
32127 msgid ""
32128 " int\n"
32129 " guestfs_umount_all (guestfs_h *g);\n"
32130 "\n"
32131 msgstr ""
32132
32133 #. type: =head2
32134 #: ../src/guestfs-actions.pod:7381
32135 msgid "guestfs_upload"
32136 msgstr ""
32137
32138 #. type: verbatim
32139 #: ../src/guestfs-actions.pod:7383
32140 #, no-wrap
32141 msgid ""
32142 " int\n"
32143 " guestfs_upload (guestfs_h *g,\n"
32144 "                 const char *filename,\n"
32145 "                 const char *remotefilename);\n"
32146 "\n"
32147 msgstr ""
32148
32149 #. type: textblock
32150 #: ../src/guestfs-actions.pod:7393
32151 msgid "See also C<guestfs_download>."
32152 msgstr ""
32153
32154 #. type: =head2
32155 #: ../src/guestfs-actions.pod:7404
32156 msgid "guestfs_upload_offset"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-actions.pod:7406
32161 #, no-wrap
32162 msgid ""
32163 " int\n"
32164 " guestfs_upload_offset (guestfs_h *g,\n"
32165 "                        const char *filename,\n"
32166 "                        const char *remotefilename,\n"
32167 "                        int64_t offset);\n"
32168 "\n"
32169 msgstr ""
32170
32171 #. type: textblock
32172 #: ../src/guestfs-actions.pod:7422
32173 msgid ""
32174 "Note that there is no limit on the amount of data that can be uploaded with "
32175 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32176 "full amount unless an error occurs."
32177 msgstr ""
32178
32179 #. type: textblock
32180 #: ../src/guestfs-actions.pod:7427
32181 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32182 msgstr ""
32183
32184 #. type: =head2
32185 #: ../src/guestfs-actions.pod:7438
32186 msgid "guestfs_utimens"
32187 msgstr ""
32188
32189 #. type: verbatim
32190 #: ../src/guestfs-actions.pod:7440
32191 #, no-wrap
32192 msgid ""
32193 " int\n"
32194 " guestfs_utimens (guestfs_h *g,\n"
32195 "                  const char *path,\n"
32196 "                  int64_t atsecs,\n"
32197 "                  int64_t atnsecs,\n"
32198 "                  int64_t mtsecs,\n"
32199 "                  int64_t mtnsecs);\n"
32200 "\n"
32201 msgstr ""
32202
32203 #. type: =head2
32204 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
32205 msgid "guestfs_version"
32206 msgstr ""
32207
32208 #. type: verbatim
32209 #: ../src/guestfs-actions.pod:7471
32210 #, no-wrap
32211 msgid ""
32212 " struct guestfs_version *\n"
32213 " guestfs_version (guestfs_h *g);\n"
32214 "\n"
32215 msgstr ""
32216
32217 #. type: textblock
32218 #: ../src/guestfs-actions.pod:7499
32219 msgid ""
32220 "I<Note:> Don't use this call to test for availability of features.  In "
32221 "enterprise distributions we backport features from later versions into "
32222 "earlier versions, making this an unreliable way to test for features.  Use "
32223 "C<guestfs_available> instead."
32224 msgstr ""
32225
32226 #. type: textblock
32227 #: ../src/guestfs-actions.pod:7505
32228 msgid ""
32229 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32230 "error.  I<The caller must call C<guestfs_free_version> after use>."
32231 msgstr ""
32232
32233 #. type: textblock
32234 #: ../src/guestfs-actions.pod:7509
32235 msgid "(Added in 1.0.58)"
32236 msgstr ""
32237
32238 #. type: =head2
32239 #: ../src/guestfs-actions.pod:7511
32240 msgid "guestfs_vfs_label"
32241 msgstr ""
32242
32243 #. type: verbatim
32244 #: ../src/guestfs-actions.pod:7513
32245 #, no-wrap
32246 msgid ""
32247 " char *\n"
32248 " guestfs_vfs_label (guestfs_h *g,\n"
32249 "                    const char *device);\n"
32250 "\n"
32251 msgstr ""
32252
32253 #. type: textblock
32254 #: ../src/guestfs-actions.pod:7522
32255 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32256 msgstr ""
32257
32258 #. type: textblock
32259 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
32260 msgid "(Added in 1.3.18)"
32261 msgstr ""
32262
32263 #. type: =head2
32264 #: ../src/guestfs-actions.pod:7529
32265 msgid "guestfs_vfs_type"
32266 msgstr ""
32267
32268 #. type: verbatim
32269 #: ../src/guestfs-actions.pod:7531
32270 #, no-wrap
32271 msgid ""
32272 " char *\n"
32273 " guestfs_vfs_type (guestfs_h *g,\n"
32274 "                   const char *device);\n"
32275 "\n"
32276 msgstr ""
32277
32278 #. type: =head2
32279 #: ../src/guestfs-actions.pod:7548
32280 msgid "guestfs_vfs_uuid"
32281 msgstr ""
32282
32283 #. type: verbatim
32284 #: ../src/guestfs-actions.pod:7550
32285 #, no-wrap
32286 msgid ""
32287 " char *\n"
32288 " guestfs_vfs_uuid (guestfs_h *g,\n"
32289 "                   const char *device);\n"
32290 "\n"
32291 msgstr ""
32292
32293 #. type: textblock
32294 #: ../src/guestfs-actions.pod:7559
32295 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32296 msgstr ""
32297
32298 #. type: =head2
32299 #: ../src/guestfs-actions.pod:7566
32300 msgid "guestfs_vg_activate"
32301 msgstr ""
32302
32303 #. type: verbatim
32304 #: ../src/guestfs-actions.pod:7568
32305 #, no-wrap
32306 msgid ""
32307 " int\n"
32308 " guestfs_vg_activate (guestfs_h *g,\n"
32309 "                      int activate,\n"
32310 "                      char *const *volgroups);\n"
32311 "\n"
32312 msgstr ""
32313
32314 #. type: =head2
32315 #: ../src/guestfs-actions.pod:7585
32316 msgid "guestfs_vg_activate_all"
32317 msgstr ""
32318
32319 #. type: verbatim
32320 #: ../src/guestfs-actions.pod:7587
32321 #, no-wrap
32322 msgid ""
32323 " int\n"
32324 " guestfs_vg_activate_all (guestfs_h *g,\n"
32325 "                          int activate);\n"
32326 "\n"
32327 msgstr ""
32328
32329 #. type: =head2
32330 #: ../src/guestfs-actions.pod:7600
32331 msgid "guestfs_vgcreate"
32332 msgstr ""
32333
32334 #. type: verbatim
32335 #: ../src/guestfs-actions.pod:7602
32336 #, no-wrap
32337 msgid ""
32338 " int\n"
32339 " guestfs_vgcreate (guestfs_h *g,\n"
32340 "                   const char *volgroup,\n"
32341 "                   char *const *physvols);\n"
32342 "\n"
32343 msgstr ""
32344
32345 #. type: =head2
32346 #: ../src/guestfs-actions.pod:7614
32347 msgid "guestfs_vglvuuids"
32348 msgstr ""
32349
32350 #. type: verbatim
32351 #: ../src/guestfs-actions.pod:7616
32352 #, no-wrap
32353 msgid ""
32354 " char **\n"
32355 " guestfs_vglvuuids (guestfs_h *g,\n"
32356 "                    const char *vgname);\n"
32357 "\n"
32358 msgstr ""
32359
32360 #. type: textblock
32361 #: ../src/guestfs-actions.pod:7623
32362 msgid ""
32363 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32364 "associate logical volumes and volume groups."
32365 msgstr ""
32366
32367 #. type: textblock
32368 #: ../src/guestfs-actions.pod:7626
32369 msgid "See also C<guestfs_vgpvuuids>."
32370 msgstr ""
32371
32372 #. type: =head2
32373 #: ../src/guestfs-actions.pod:7634
32374 msgid "guestfs_vgpvuuids"
32375 msgstr ""
32376
32377 #. type: verbatim
32378 #: ../src/guestfs-actions.pod:7636
32379 #, no-wrap
32380 msgid ""
32381 " char **\n"
32382 " guestfs_vgpvuuids (guestfs_h *g,\n"
32383 "                    const char *vgname);\n"
32384 "\n"
32385 msgstr ""
32386
32387 #. type: textblock
32388 #: ../src/guestfs-actions.pod:7643
32389 msgid ""
32390 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32391 "associate physical volumes and volume groups."
32392 msgstr ""
32393
32394 #. type: textblock
32395 #: ../src/guestfs-actions.pod:7646
32396 msgid "See also C<guestfs_vglvuuids>."
32397 msgstr ""
32398
32399 #. type: =head2
32400 #: ../src/guestfs-actions.pod:7654
32401 msgid "guestfs_vgremove"
32402 msgstr ""
32403
32404 #. type: verbatim
32405 #: ../src/guestfs-actions.pod:7656
32406 #, no-wrap
32407 msgid ""
32408 " int\n"
32409 " guestfs_vgremove (guestfs_h *g,\n"
32410 "                   const char *vgname);\n"
32411 "\n"
32412 msgstr ""
32413
32414 #. type: =head2
32415 #: ../src/guestfs-actions.pod:7669
32416 msgid "guestfs_vgrename"
32417 msgstr ""
32418
32419 #. type: verbatim
32420 #: ../src/guestfs-actions.pod:7671
32421 #, no-wrap
32422 msgid ""
32423 " int\n"
32424 " guestfs_vgrename (guestfs_h *g,\n"
32425 "                   const char *volgroup,\n"
32426 "                   const char *newvolgroup);\n"
32427 "\n"
32428 msgstr ""
32429
32430 #. type: =head2
32431 #: ../src/guestfs-actions.pod:7682
32432 msgid "guestfs_vgs"
32433 msgstr ""
32434
32435 #. type: verbatim
32436 #: ../src/guestfs-actions.pod:7684
32437 #, no-wrap
32438 msgid ""
32439 " char **\n"
32440 " guestfs_vgs (guestfs_h *g);\n"
32441 "\n"
32442 msgstr ""
32443
32444 #. type: textblock
32445 #: ../src/guestfs-actions.pod:7693
32446 msgid "See also C<guestfs_vgs_full>."
32447 msgstr ""
32448
32449 #. type: =head2
32450 #: ../src/guestfs-actions.pod:7701
32451 msgid "guestfs_vgs_full"
32452 msgstr ""
32453
32454 #. type: verbatim
32455 #: ../src/guestfs-actions.pod:7703
32456 #, no-wrap
32457 msgid ""
32458 " struct guestfs_lvm_vg_list *\n"
32459 " guestfs_vgs_full (guestfs_h *g);\n"
32460 "\n"
32461 msgstr ""
32462
32463 #. type: textblock
32464 #: ../src/guestfs-actions.pod:7709
32465 msgid ""
32466 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32467 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32468 msgstr ""
32469
32470 #. type: =head2
32471 #: ../src/guestfs-actions.pod:7715
32472 msgid "guestfs_vgscan"
32473 msgstr ""
32474
32475 #. type: verbatim
32476 #: ../src/guestfs-actions.pod:7717
32477 #, no-wrap
32478 msgid ""
32479 " int\n"
32480 " guestfs_vgscan (guestfs_h *g);\n"
32481 "\n"
32482 msgstr ""
32483
32484 #. type: =head2
32485 #: ../src/guestfs-actions.pod:7727
32486 msgid "guestfs_vguuid"
32487 msgstr ""
32488
32489 #. type: verbatim
32490 #: ../src/guestfs-actions.pod:7729
32491 #, no-wrap
32492 msgid ""
32493 " char *\n"
32494 " guestfs_vguuid (guestfs_h *g,\n"
32495 "                 const char *vgname);\n"
32496 "\n"
32497 msgstr ""
32498
32499 #. type: =head2
32500 #: ../src/guestfs-actions.pod:7740
32501 msgid "guestfs_wait_ready"
32502 msgstr ""
32503
32504 #. type: verbatim
32505 #: ../src/guestfs-actions.pod:7742
32506 #, no-wrap
32507 msgid ""
32508 " int\n"
32509 " guestfs_wait_ready (guestfs_h *g);\n"
32510 "\n"
32511 msgstr ""
32512
32513 #. type: textblock
32514 #: ../src/guestfs-actions.pod:7745
32515 msgid ""
32516 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32517 "instead."
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs-actions.pod:7752
32522 msgid "This function is a no op."
32523 msgstr ""
32524
32525 #. type: textblock
32526 #: ../src/guestfs-actions.pod:7754
32527 msgid ""
32528 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32529 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32530 "is no longer necessary because C<guestfs_launch> now does the waiting."
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs-actions.pod:7759
32535 msgid ""
32536 "If you see any calls to this function in code then you can just remove them, "
32537 "unless you want to retain compatibility with older versions of the API."
32538 msgstr ""
32539
32540 #. type: =head2
32541 #: ../src/guestfs-actions.pod:7767
32542 msgid "guestfs_wc_c"
32543 msgstr ""
32544
32545 #. type: verbatim
32546 #: ../src/guestfs-actions.pod:7769
32547 #, no-wrap
32548 msgid ""
32549 " int\n"
32550 " guestfs_wc_c (guestfs_h *g,\n"
32551 "               const char *path);\n"
32552 "\n"
32553 msgstr ""
32554
32555 #. type: =head2
32556 #: ../src/guestfs-actions.pod:7780
32557 msgid "guestfs_wc_l"
32558 msgstr ""
32559
32560 #. type: verbatim
32561 #: ../src/guestfs-actions.pod:7782
32562 #, no-wrap
32563 msgid ""
32564 " int\n"
32565 " guestfs_wc_l (guestfs_h *g,\n"
32566 "               const char *path);\n"
32567 "\n"
32568 msgstr ""
32569
32570 #. type: =head2
32571 #: ../src/guestfs-actions.pod:7793
32572 msgid "guestfs_wc_w"
32573 msgstr ""
32574
32575 #. type: verbatim
32576 #: ../src/guestfs-actions.pod:7795
32577 #, no-wrap
32578 msgid ""
32579 " int\n"
32580 " guestfs_wc_w (guestfs_h *g,\n"
32581 "               const char *path);\n"
32582 "\n"
32583 msgstr ""
32584
32585 #. type: =head2
32586 #: ../src/guestfs-actions.pod:7806
32587 msgid "guestfs_write"
32588 msgstr ""
32589
32590 #. type: verbatim
32591 #: ../src/guestfs-actions.pod:7808
32592 #, no-wrap
32593 msgid ""
32594 " int\n"
32595 " guestfs_write (guestfs_h *g,\n"
32596 "                const char *path,\n"
32597 "                const char *content,\n"
32598 "                size_t content_size);\n"
32599 "\n"
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs-actions.pod:7817
32604 msgid "See also C<guestfs_write_append>."
32605 msgstr ""
32606
32607 #. type: =head2
32608 #: ../src/guestfs-actions.pod:7826
32609 msgid "guestfs_write_append"
32610 msgstr ""
32611
32612 #. type: verbatim
32613 #: ../src/guestfs-actions.pod:7828
32614 #, no-wrap
32615 msgid ""
32616 " int\n"
32617 " guestfs_write_append (guestfs_h *g,\n"
32618 "                       const char *path,\n"
32619 "                       const char *content,\n"
32620 "                       size_t content_size);\n"
32621 "\n"
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs-actions.pod:7837
32626 msgid "See also C<guestfs_write>."
32627 msgstr ""
32628
32629 #. type: =head2
32630 #: ../src/guestfs-actions.pod:7846
32631 msgid "guestfs_write_file"
32632 msgstr "guestfs_write_file"
32633
32634 #. type: verbatim
32635 #: ../src/guestfs-actions.pod:7848
32636 #, no-wrap
32637 msgid ""
32638 " int\n"
32639 " guestfs_write_file (guestfs_h *g,\n"
32640 "                     const char *path,\n"
32641 "                     const char *content,\n"
32642 "                     int size);\n"
32643 "\n"
32644 msgstr ""
32645 " int\n"
32646 " guestfs_write_file (guestfs_h *g,\n"
32647 "                     const char *path,\n"
32648 "                     const char *content,\n"
32649 "                     int size);\n"
32650 "\n"
32651
32652 #. type: textblock
32653 #: ../src/guestfs-actions.pod:7854
32654 msgid ""
32655 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32656 "instead."
32657 msgstr ""
32658
32659 #. type: =head2
32660 #: ../src/guestfs-actions.pod:7879
32661 msgid "guestfs_zegrep"
32662 msgstr "guestfs_zegrep"
32663
32664 #. type: verbatim
32665 #: ../src/guestfs-actions.pod:7881
32666 #, no-wrap
32667 msgid ""
32668 " char **\n"
32669 " guestfs_zegrep (guestfs_h *g,\n"
32670 "                 const char *regex,\n"
32671 "                 const char *path);\n"
32672 "\n"
32673 msgstr ""
32674 " char **\n"
32675 " guestfs_zegrep (guestfs_h *g,\n"
32676 "                 const char *regex,\n"
32677 "                 const char *path);\n"
32678 "\n"
32679
32680 #. type: =head2
32681 #: ../src/guestfs-actions.pod:7898
32682 msgid "guestfs_zegrepi"
32683 msgstr "guestfs_zegrepi"
32684
32685 #. type: verbatim
32686 #: ../src/guestfs-actions.pod:7900
32687 #, no-wrap
32688 msgid ""
32689 " char **\n"
32690 " guestfs_zegrepi (guestfs_h *g,\n"
32691 "                  const char *regex,\n"
32692 "                  const char *path);\n"
32693 "\n"
32694 msgstr ""
32695 " char **\n"
32696 " guestfs_zegrepi (guestfs_h *g,\n"
32697 "                  const char *regex,\n"
32698 "                  const char *path);\n"
32699 "\n"
32700
32701 #. type: =head2
32702 #: ../src/guestfs-actions.pod:7917
32703 msgid "guestfs_zero"
32704 msgstr "guestfs_zero"
32705
32706 #. type: verbatim
32707 #: ../src/guestfs-actions.pod:7919
32708 #, no-wrap
32709 msgid ""
32710 " int\n"
32711 " guestfs_zero (guestfs_h *g,\n"
32712 "               const char *device);\n"
32713 "\n"
32714 msgstr ""
32715 " int\n"
32716 " guestfs_zero (guestfs_h *g,\n"
32717 "               const char *device);\n"
32718 "\n"
32719
32720 #. type: textblock
32721 #: ../src/guestfs-actions.pod:7933
32722 msgid ""
32723 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32724 "C<guestfs_is_zero_device>"
32725 msgstr ""
32726
32727 #. type: =head2
32728 #: ../src/guestfs-actions.pod:7945
32729 msgid "guestfs_zero_device"
32730 msgstr "guestfs_zero_device"
32731
32732 #. type: verbatim
32733 #: ../src/guestfs-actions.pod:7947
32734 #, no-wrap
32735 msgid ""
32736 " int\n"
32737 " guestfs_zero_device (guestfs_h *g,\n"
32738 "                      const char *device);\n"
32739 "\n"
32740 msgstr ""
32741 " int\n"
32742 " guestfs_zero_device (guestfs_h *g,\n"
32743 "                      const char *device);\n"
32744 "\n"
32745
32746 #. type: textblock
32747 #: ../src/guestfs-actions.pod:7951
32748 msgid ""
32749 "This command writes zeroes over the entire C<device>.  Compare with "
32750 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32751 msgstr ""
32752
32753 #. type: textblock
32754 #: ../src/guestfs-actions.pod:7969
32755 msgid "(Added in 1.3.1)"
32756 msgstr "(Додано у 1.3.1)"
32757
32758 #. type: =head2
32759 #: ../src/guestfs-actions.pod:7971
32760 msgid "guestfs_zerofree"
32761 msgstr "guestfs_zerofree"
32762
32763 #. type: verbatim
32764 #: ../src/guestfs-actions.pod:7973
32765 #, no-wrap
32766 msgid ""
32767 " int\n"
32768 " guestfs_zerofree (guestfs_h *g,\n"
32769 "                   const char *device);\n"
32770 "\n"
32771 msgstr ""
32772 " int\n"
32773 " guestfs_zerofree (guestfs_h *g,\n"
32774 "                   const char *device);\n"
32775 "\n"
32776
32777 #. type: =head2
32778 #: ../src/guestfs-actions.pod:7992
32779 msgid "guestfs_zfgrep"
32780 msgstr "guestfs_zfgrep"
32781
32782 #. type: verbatim
32783 #: ../src/guestfs-actions.pod:7994
32784 #, no-wrap
32785 msgid ""
32786 " char **\n"
32787 " guestfs_zfgrep (guestfs_h *g,\n"
32788 "                 const char *pattern,\n"
32789 "                 const char *path);\n"
32790 "\n"
32791 msgstr ""
32792 " char **\n"
32793 " guestfs_zfgrep (guestfs_h *g,\n"
32794 "                 const char *pattern,\n"
32795 "                 const char *path);\n"
32796 "\n"
32797
32798 #. type: =head2
32799 #: ../src/guestfs-actions.pod:8011
32800 msgid "guestfs_zfgrepi"
32801 msgstr "guestfs_zfgrepi"
32802
32803 #. type: verbatim
32804 #: ../src/guestfs-actions.pod:8013
32805 #, no-wrap
32806 msgid ""
32807 " char **\n"
32808 " guestfs_zfgrepi (guestfs_h *g,\n"
32809 "                  const char *pattern,\n"
32810 "                  const char *path);\n"
32811 "\n"
32812 msgstr ""
32813 " char **\n"
32814 " guestfs_zfgrepi (guestfs_h *g,\n"
32815 "                  const char *pattern,\n"
32816 "                  const char *path);\n"
32817 "\n"
32818
32819 #. type: =head2
32820 #: ../src/guestfs-actions.pod:8030
32821 msgid "guestfs_zfile"
32822 msgstr "guestfs_zfile"
32823
32824 #. type: verbatim
32825 #: ../src/guestfs-actions.pod:8032
32826 #, no-wrap
32827 msgid ""
32828 " char *\n"
32829 " guestfs_zfile (guestfs_h *g,\n"
32830 "                const char *meth,\n"
32831 "                const char *path);\n"
32832 "\n"
32833 msgstr ""
32834 " char *\n"
32835 " guestfs_zfile (guestfs_h *g,\n"
32836 "                const char *meth,\n"
32837 "                const char *path);\n"
32838 "\n"
32839
32840 #. type: textblock
32841 #: ../src/guestfs-actions.pod:8037
32842 msgid ""
32843 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32844 "instead."
32845 msgstr ""
32846
32847 #. type: textblock
32848 #: ../src/guestfs-actions.pod:8049
32849 msgid ""
32850 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32851 "files."
32852 msgstr ""
32853
32854 #. type: =head2
32855 #: ../src/guestfs-actions.pod:8057
32856 msgid "guestfs_zgrep"
32857 msgstr "guestfs_zgrep"
32858
32859 #. type: verbatim
32860 #: ../src/guestfs-actions.pod:8059
32861 #, no-wrap
32862 msgid ""
32863 " char **\n"
32864 " guestfs_zgrep (guestfs_h *g,\n"
32865 "                const char *regex,\n"
32866 "                const char *path);\n"
32867 "\n"
32868 msgstr ""
32869 " char **\n"
32870 " guestfs_zgrep (guestfs_h *g,\n"
32871 "                const char *regex,\n"
32872 "                const char *path);\n"
32873 "\n"
32874
32875 #. type: =head2
32876 #: ../src/guestfs-actions.pod:8076
32877 msgid "guestfs_zgrepi"
32878 msgstr "guestfs_zgrepi"
32879
32880 #. type: verbatim
32881 #: ../src/guestfs-actions.pod:8078
32882 #, no-wrap
32883 msgid ""
32884 " char **\n"
32885 " guestfs_zgrepi (guestfs_h *g,\n"
32886 "                 const char *regex,\n"
32887 "                 const char *path);\n"
32888 "\n"
32889 msgstr ""
32890 " char **\n"
32891 " guestfs_zgrepi (guestfs_h *g,\n"
32892 "                 const char *regex,\n"
32893 "                 const char *path);\n"
32894 "\n"
32895
32896 #. type: =item
32897 #: ../src/guestfs-availability.pod:3
32898 msgid "B<augeas>"
32899 msgstr "B<augeas>"
32900
32901 #. type: textblock
32902 #: ../src/guestfs-availability.pod:5
32903 msgid ""
32904 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32905 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32906 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32907 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32908 "L</guestfs_aug_save> L</guestfs_aug_set>"
32909 msgstr ""
32910
32911 #. type: =item
32912 #: ../src/guestfs-availability.pod:21
32913 msgid "B<btrfs>"
32914 msgstr ""
32915
32916 #. type: textblock
32917 #: ../src/guestfs-availability.pod:23
32918 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32919 msgstr ""
32920
32921 #. type: =item
32922 #: ../src/guestfs-availability.pod:26
32923 #, fuzzy
32924 #| msgid "B<scrub>"
32925 msgid "B<grub>"
32926 msgstr "B<scrub>"
32927
32928 #. type: textblock
32929 #: ../src/guestfs-availability.pod:28
32930 msgid "The following functions: L</guestfs_grub_install>"
32931 msgstr ""
32932
32933 #. type: =item
32934 #: ../src/guestfs-availability.pod:31
32935 msgid "B<inotify>"
32936 msgstr "B<inotify>"
32937
32938 #. type: textblock
32939 #: ../src/guestfs-availability.pod:33
32940 msgid ""
32941 "The following functions: L</guestfs_inotify_add_watch> L</"
32942 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32943 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32944 msgstr ""
32945
32946 #. type: =item
32947 #: ../src/guestfs-availability.pod:41
32948 msgid "B<linuxfsuuid>"
32949 msgstr "B<linuxfsuuid>"
32950
32951 #. type: textblock
32952 #: ../src/guestfs-availability.pod:43
32953 msgid ""
32954 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32955 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32956 msgstr ""
32957
32958 #. type: =item
32959 #: ../src/guestfs-availability.pod:50
32960 msgid "B<linuxmodules>"
32961 msgstr "B<linuxmodules>"
32962
32963 #. type: textblock
32964 #: ../src/guestfs-availability.pod:52
32965 msgid "The following functions: L</guestfs_modprobe>"
32966 msgstr ""
32967
32968 #. type: =item
32969 #: ../src/guestfs-availability.pod:55
32970 msgid "B<linuxxattrs>"
32971 msgstr "B<linuxxattrs>"
32972
32973 #. type: textblock
32974 #: ../src/guestfs-availability.pod:57
32975 msgid ""
32976 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32977 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32978 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32979 "guestfs_setxattr>"
32980 msgstr ""
32981
32982 #. type: =item
32983 #: ../src/guestfs-availability.pod:68
32984 msgid "B<luks>"
32985 msgstr "B<luks>"
32986
32987 #. type: textblock
32988 #: ../src/guestfs-availability.pod:70
32989 msgid ""
32990 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32991 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32992 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32993 msgstr ""
32994
32995 #. type: =item
32996 #: ../src/guestfs-availability.pod:79
32997 msgid "B<lvm2>"
32998 msgstr "B<lvm2>"
32999
33000 #. type: textblock
33001 #: ../src/guestfs-availability.pod:81
33002 msgid ""
33003 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33004 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33005 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33006 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33007 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33008 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33009 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33010 msgstr ""
33011
33012 #. type: =item
33013 #: ../src/guestfs-availability.pod:104
33014 msgid "B<mknod>"
33015 msgstr "B<mknod>"
33016
33017 #. type: textblock
33018 #: ../src/guestfs-availability.pod:106
33019 msgid ""
33020 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33021 "guestfs_mknod_b> L</guestfs_mknod_c>"
33022 msgstr ""
33023
33024 #. type: =item
33025 #: ../src/guestfs-availability.pod:112
33026 msgid "B<ntfs3g>"
33027 msgstr "B<ntfs3g>"
33028
33029 #. type: textblock
33030 #: ../src/guestfs-availability.pod:114
33031 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33032 msgstr ""
33033
33034 #. type: =item
33035 #: ../src/guestfs-availability.pod:117
33036 msgid "B<ntfsprogs>"
33037 msgstr "B<ntfsprogs>"
33038
33039 #. type: textblock
33040 #: ../src/guestfs-availability.pod:119
33041 msgid ""
33042 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33043 "L</guestfs_ntfsresize_size>"
33044 msgstr ""
33045
33046 #. type: =item
33047 #: ../src/guestfs-availability.pod:124
33048 msgid "B<realpath>"
33049 msgstr "B<realpath>"
33050
33051 #. type: textblock
33052 #: ../src/guestfs-availability.pod:126
33053 msgid "The following functions: L</guestfs_realpath>"
33054 msgstr ""
33055
33056 #. type: =item
33057 #: ../src/guestfs-availability.pod:129
33058 msgid "B<scrub>"
33059 msgstr "B<scrub>"
33060
33061 #. type: textblock
33062 #: ../src/guestfs-availability.pod:131
33063 msgid ""
33064 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33065 "guestfs_scrub_freespace>"
33066 msgstr ""
33067
33068 #. type: =item
33069 #: ../src/guestfs-availability.pod:136
33070 msgid "B<selinux>"
33071 msgstr "B<selinux>"
33072
33073 #. type: textblock
33074 #: ../src/guestfs-availability.pod:138
33075 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33076 msgstr ""
33077
33078 #. type: =item
33079 #: ../src/guestfs-availability.pod:142
33080 msgid "B<xz>"
33081 msgstr "B<xz>"
33082
33083 #. type: textblock
33084 #: ../src/guestfs-availability.pod:144
33085 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33086 msgstr ""
33087
33088 #. type: =item
33089 #: ../src/guestfs-availability.pod:148
33090 msgid "B<zerofree>"
33091 msgstr "B<zerofree>"
33092
33093 #. type: textblock
33094 #: ../src/guestfs-availability.pod:150
33095 msgid "The following functions: L</guestfs_zerofree>"
33096 msgstr ""
33097
33098 #. type: =head2
33099 #: ../src/guestfs-structs.pod:1
33100 msgid "guestfs_int_bool"
33101 msgstr ""
33102
33103 #. type: verbatim
33104 #: ../src/guestfs-structs.pod:3
33105 #, no-wrap
33106 msgid ""
33107 " struct guestfs_int_bool {\n"
33108 "   int32_t i;\n"
33109 "   int32_t b;\n"
33110 " };\n"
33111 " \n"
33112 msgstr ""
33113
33114 #. type: verbatim
33115 #: ../src/guestfs-structs.pod:8
33116 #, no-wrap
33117 msgid ""
33118 " struct guestfs_int_bool_list {\n"
33119 "   uint32_t len; /* Number of elements in list. */\n"
33120 "   struct guestfs_int_bool *val; /* Elements. */\n"
33121 " };\n"
33122 " \n"
33123 msgstr ""
33124
33125 #. type: verbatim
33126 #: ../src/guestfs-structs.pod:13
33127 #, no-wrap
33128 msgid ""
33129 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33130 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33131 "\n"
33132 msgstr ""
33133
33134 #. type: =head2
33135 #: ../src/guestfs-structs.pod:16
33136 msgid "guestfs_lvm_pv"
33137 msgstr ""
33138
33139 #. type: verbatim
33140 #: ../src/guestfs-structs.pod:18
33141 #, no-wrap
33142 msgid ""
33143 " struct guestfs_lvm_pv {\n"
33144 "   char *pv_name;\n"
33145 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33146 "   char pv_uuid[32];\n"
33147 "   char *pv_fmt;\n"
33148 "   uint64_t pv_size;\n"
33149 "   uint64_t dev_size;\n"
33150 "   uint64_t pv_free;\n"
33151 "   uint64_t pv_used;\n"
33152 "   char *pv_attr;\n"
33153 "   int64_t pv_pe_count;\n"
33154 "   int64_t pv_pe_alloc_count;\n"
33155 "   char *pv_tags;\n"
33156 "   uint64_t pe_start;\n"
33157 "   int64_t pv_mda_count;\n"
33158 "   uint64_t pv_mda_free;\n"
33159 " };\n"
33160 " \n"
33161 msgstr ""
33162
33163 #. type: verbatim
33164 #: ../src/guestfs-structs.pod:36
33165 #, no-wrap
33166 msgid ""
33167 " struct guestfs_lvm_pv_list {\n"
33168 "   uint32_t len; /* Number of elements in list. */\n"
33169 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33170 " };\n"
33171 " \n"
33172 msgstr ""
33173
33174 #. type: verbatim
33175 #: ../src/guestfs-structs.pod:41
33176 #, no-wrap
33177 msgid ""
33178 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33179 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33180 "\n"
33181 msgstr ""
33182
33183 #. type: =head2
33184 #: ../src/guestfs-structs.pod:44
33185 msgid "guestfs_lvm_vg"
33186 msgstr ""
33187
33188 #. type: verbatim
33189 #: ../src/guestfs-structs.pod:46
33190 #, no-wrap
33191 msgid ""
33192 " struct guestfs_lvm_vg {\n"
33193 "   char *vg_name;\n"
33194 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33195 "   char vg_uuid[32];\n"
33196 "   char *vg_fmt;\n"
33197 "   char *vg_attr;\n"
33198 "   uint64_t vg_size;\n"
33199 "   uint64_t vg_free;\n"
33200 "   char *vg_sysid;\n"
33201 "   uint64_t vg_extent_size;\n"
33202 "   int64_t vg_extent_count;\n"
33203 "   int64_t vg_free_count;\n"
33204 "   int64_t max_lv;\n"
33205 "   int64_t max_pv;\n"
33206 "   int64_t pv_count;\n"
33207 "   int64_t lv_count;\n"
33208 "   int64_t snap_count;\n"
33209 "   int64_t vg_seqno;\n"
33210 "   char *vg_tags;\n"
33211 "   int64_t vg_mda_count;\n"
33212 "   uint64_t vg_mda_free;\n"
33213 " };\n"
33214 " \n"
33215 msgstr ""
33216
33217 #. type: verbatim
33218 #: ../src/guestfs-structs.pod:69
33219 #, no-wrap
33220 msgid ""
33221 " struct guestfs_lvm_vg_list {\n"
33222 "   uint32_t len; /* Number of elements in list. */\n"
33223 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33224 " };\n"
33225 " \n"
33226 msgstr ""
33227
33228 #. type: verbatim
33229 #: ../src/guestfs-structs.pod:74
33230 #, no-wrap
33231 msgid ""
33232 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33233 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33234 "\n"
33235 msgstr ""
33236
33237 #. type: =head2
33238 #: ../src/guestfs-structs.pod:77
33239 msgid "guestfs_lvm_lv"
33240 msgstr ""
33241
33242 #. type: verbatim
33243 #: ../src/guestfs-structs.pod:79
33244 #, no-wrap
33245 msgid ""
33246 " struct guestfs_lvm_lv {\n"
33247 "   char *lv_name;\n"
33248 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33249 "   char lv_uuid[32];\n"
33250 "   char *lv_attr;\n"
33251 "   int64_t lv_major;\n"
33252 "   int64_t lv_minor;\n"
33253 "   int64_t lv_kernel_major;\n"
33254 "   int64_t lv_kernel_minor;\n"
33255 "   uint64_t lv_size;\n"
33256 "   int64_t seg_count;\n"
33257 "   char *origin;\n"
33258 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33259 "   float snap_percent;\n"
33260 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33261 "   float copy_percent;\n"
33262 "   char *move_pv;\n"
33263 "   char *lv_tags;\n"
33264 "   char *mirror_log;\n"
33265 "   char *modules;\n"
33266 " };\n"
33267 " \n"
33268 msgstr ""
33269
33270 #. type: verbatim
33271 #: ../src/guestfs-structs.pod:101
33272 #, no-wrap
33273 msgid ""
33274 " struct guestfs_lvm_lv_list {\n"
33275 "   uint32_t len; /* Number of elements in list. */\n"
33276 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33277 " };\n"
33278 " \n"
33279 msgstr ""
33280
33281 #. type: verbatim
33282 #: ../src/guestfs-structs.pod:106
33283 #, no-wrap
33284 msgid ""
33285 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33286 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33287 "\n"
33288 msgstr ""
33289
33290 #. type: verbatim
33291 #: ../src/guestfs-structs.pod:111
33292 #, no-wrap
33293 msgid ""
33294 " struct guestfs_stat {\n"
33295 "   int64_t dev;\n"
33296 "   int64_t ino;\n"
33297 "   int64_t mode;\n"
33298 "   int64_t nlink;\n"
33299 "   int64_t uid;\n"
33300 "   int64_t gid;\n"
33301 "   int64_t rdev;\n"
33302 "   int64_t size;\n"
33303 "   int64_t blksize;\n"
33304 "   int64_t blocks;\n"
33305 "   int64_t atime;\n"
33306 "   int64_t mtime;\n"
33307 "   int64_t ctime;\n"
33308 " };\n"
33309 " \n"
33310 msgstr ""
33311
33312 #. type: verbatim
33313 #: ../src/guestfs-structs.pod:127
33314 #, no-wrap
33315 msgid ""
33316 " struct guestfs_stat_list {\n"
33317 "   uint32_t len; /* Number of elements in list. */\n"
33318 "   struct guestfs_stat *val; /* Elements. */\n"
33319 " };\n"
33320 " \n"
33321 msgstr ""
33322
33323 #. type: verbatim
33324 #: ../src/guestfs-structs.pod:132
33325 #, no-wrap
33326 msgid ""
33327 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33328 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33329 "\n"
33330 msgstr ""
33331
33332 #. type: verbatim
33333 #: ../src/guestfs-structs.pod:137
33334 #, no-wrap
33335 msgid ""
33336 " struct guestfs_statvfs {\n"
33337 "   int64_t bsize;\n"
33338 "   int64_t frsize;\n"
33339 "   int64_t blocks;\n"
33340 "   int64_t bfree;\n"
33341 "   int64_t bavail;\n"
33342 "   int64_t files;\n"
33343 "   int64_t ffree;\n"
33344 "   int64_t favail;\n"
33345 "   int64_t fsid;\n"
33346 "   int64_t flag;\n"
33347 "   int64_t namemax;\n"
33348 " };\n"
33349 " \n"
33350 msgstr ""
33351
33352 #. type: verbatim
33353 #: ../src/guestfs-structs.pod:151
33354 #, no-wrap
33355 msgid ""
33356 " struct guestfs_statvfs_list {\n"
33357 "   uint32_t len; /* Number of elements in list. */\n"
33358 "   struct guestfs_statvfs *val; /* Elements. */\n"
33359 " };\n"
33360 " \n"
33361 msgstr ""
33362
33363 #. type: verbatim
33364 #: ../src/guestfs-structs.pod:156
33365 #, no-wrap
33366 msgid ""
33367 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33368 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: =head2
33373 #: ../src/guestfs-structs.pod:159
33374 msgid "guestfs_dirent"
33375 msgstr ""
33376
33377 #. type: verbatim
33378 #: ../src/guestfs-structs.pod:161
33379 #, no-wrap
33380 msgid ""
33381 " struct guestfs_dirent {\n"
33382 "   int64_t ino;\n"
33383 "   char ftyp;\n"
33384 "   char *name;\n"
33385 " };\n"
33386 " \n"
33387 msgstr ""
33388
33389 #. type: verbatim
33390 #: ../src/guestfs-structs.pod:167
33391 #, no-wrap
33392 msgid ""
33393 " struct guestfs_dirent_list {\n"
33394 "   uint32_t len; /* Number of elements in list. */\n"
33395 "   struct guestfs_dirent *val; /* Elements. */\n"
33396 " };\n"
33397 " \n"
33398 msgstr ""
33399
33400 #. type: verbatim
33401 #: ../src/guestfs-structs.pod:172
33402 #, no-wrap
33403 msgid ""
33404 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33405 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33406 "\n"
33407 msgstr ""
33408
33409 #. type: verbatim
33410 #: ../src/guestfs-structs.pod:177
33411 #, no-wrap
33412 msgid ""
33413 " struct guestfs_version {\n"
33414 "   int64_t major;\n"
33415 "   int64_t minor;\n"
33416 "   int64_t release;\n"
33417 "   char *extra;\n"
33418 " };\n"
33419 " \n"
33420 msgstr ""
33421
33422 #. type: verbatim
33423 #: ../src/guestfs-structs.pod:184
33424 #, no-wrap
33425 msgid ""
33426 " struct guestfs_version_list {\n"
33427 "   uint32_t len; /* Number of elements in list. */\n"
33428 "   struct guestfs_version *val; /* Elements. */\n"
33429 " };\n"
33430 " \n"
33431 msgstr ""
33432
33433 #. type: verbatim
33434 #: ../src/guestfs-structs.pod:189
33435 #, no-wrap
33436 msgid ""
33437 " void guestfs_free_version (struct guestfs_free_version *);\n"
33438 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33439 "\n"
33440 msgstr ""
33441
33442 #. type: =head2
33443 #: ../src/guestfs-structs.pod:192
33444 msgid "guestfs_xattr"
33445 msgstr ""
33446
33447 #. type: verbatim
33448 #: ../src/guestfs-structs.pod:194
33449 #, no-wrap
33450 msgid ""
33451 " struct guestfs_xattr {\n"
33452 "   char *attrname;\n"
33453 "   /* The next two fields describe a byte array. */\n"
33454 "   uint32_t attrval_len;\n"
33455 "   char *attrval;\n"
33456 " };\n"
33457 " \n"
33458 msgstr ""
33459
33460 #. type: verbatim
33461 #: ../src/guestfs-structs.pod:201
33462 #, no-wrap
33463 msgid ""
33464 " struct guestfs_xattr_list {\n"
33465 "   uint32_t len; /* Number of elements in list. */\n"
33466 "   struct guestfs_xattr *val; /* Elements. */\n"
33467 " };\n"
33468 " \n"
33469 msgstr ""
33470
33471 #. type: verbatim
33472 #: ../src/guestfs-structs.pod:206
33473 #, no-wrap
33474 msgid ""
33475 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33476 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33477 "\n"
33478 msgstr ""
33479
33480 #. type: =head2
33481 #: ../src/guestfs-structs.pod:209
33482 msgid "guestfs_inotify_event"
33483 msgstr ""
33484
33485 #. type: verbatim
33486 #: ../src/guestfs-structs.pod:211
33487 #, no-wrap
33488 msgid ""
33489 " struct guestfs_inotify_event {\n"
33490 "   int64_t in_wd;\n"
33491 "   uint32_t in_mask;\n"
33492 "   uint32_t in_cookie;\n"
33493 "   char *in_name;\n"
33494 " };\n"
33495 " \n"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs-structs.pod:218
33500 #, no-wrap
33501 msgid ""
33502 " struct guestfs_inotify_event_list {\n"
33503 "   uint32_t len; /* Number of elements in list. */\n"
33504 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33505 " };\n"
33506 " \n"
33507 msgstr ""
33508
33509 #. type: verbatim
33510 #: ../src/guestfs-structs.pod:223
33511 #, no-wrap
33512 msgid ""
33513 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33514 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33515 "\n"
33516 msgstr ""
33517
33518 #. type: =head2
33519 #: ../src/guestfs-structs.pod:226
33520 msgid "guestfs_partition"
33521 msgstr ""
33522
33523 #. type: verbatim
33524 #: ../src/guestfs-structs.pod:228
33525 #, no-wrap
33526 msgid ""
33527 " struct guestfs_partition {\n"
33528 "   int32_t part_num;\n"
33529 "   uint64_t part_start;\n"
33530 "   uint64_t part_end;\n"
33531 "   uint64_t part_size;\n"
33532 " };\n"
33533 " \n"
33534 msgstr ""
33535
33536 #. type: verbatim
33537 #: ../src/guestfs-structs.pod:235
33538 #, no-wrap
33539 msgid ""
33540 " struct guestfs_partition_list {\n"
33541 "   uint32_t len; /* Number of elements in list. */\n"
33542 "   struct guestfs_partition *val; /* Elements. */\n"
33543 " };\n"
33544 " \n"
33545 msgstr ""
33546
33547 #. type: verbatim
33548 #: ../src/guestfs-structs.pod:240
33549 #, no-wrap
33550 msgid ""
33551 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33552 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33553 "\n"
33554 msgstr ""
33555
33556 #. type: =head2
33557 #: ../src/guestfs-structs.pod:243
33558 msgid "guestfs_application"
33559 msgstr ""
33560
33561 #. type: verbatim
33562 #: ../src/guestfs-structs.pod:245
33563 #, no-wrap
33564 msgid ""
33565 " struct guestfs_application {\n"
33566 "   char *app_name;\n"
33567 "   char *app_display_name;\n"
33568 "   int32_t app_epoch;\n"
33569 "   char *app_version;\n"
33570 "   char *app_release;\n"
33571 "   char *app_install_path;\n"
33572 "   char *app_trans_path;\n"
33573 "   char *app_publisher;\n"
33574 "   char *app_url;\n"
33575 "   char *app_source_package;\n"
33576 "   char *app_summary;\n"
33577 "   char *app_description;\n"
33578 " };\n"
33579 " \n"
33580 msgstr ""
33581
33582 #. type: verbatim
33583 #: ../src/guestfs-structs.pod:260
33584 #, no-wrap
33585 msgid ""
33586 " struct guestfs_application_list {\n"
33587 "   uint32_t len; /* Number of elements in list. */\n"
33588 "   struct guestfs_application *val; /* Elements. */\n"
33589 " };\n"
33590 " \n"
33591 msgstr ""
33592
33593 #. type: verbatim
33594 #: ../src/guestfs-structs.pod:265
33595 #, no-wrap
33596 msgid ""
33597 " void guestfs_free_application (struct guestfs_free_application *);\n"
33598 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33599 "\n"
33600 msgstr ""
33601
33602 #. type: textblock
33603 #: ../src/guestfs.pod:5
33604 msgid "guestfs - Library for accessing and modifying virtual machine images"
33605 msgstr ""
33606 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33607 "машин"
33608
33609 #. type: verbatim
33610 #: ../src/guestfs.pod:11
33611 #, no-wrap
33612 msgid ""
33613 " guestfs_h *g = guestfs_create ();\n"
33614 " guestfs_add_drive (g, \"guest.img\");\n"
33615 " guestfs_launch (g);\n"
33616 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33617 " guestfs_touch (g, \"/hello\");\n"
33618 " guestfs_umount (g, \"/\");\n"
33619 " guestfs_close (g);\n"
33620 "\n"
33621 msgstr ""
33622 " guestfs_h *g = guestfs_create ();\n"
33623 " guestfs_add_drive (g, \"guest.img\");\n"
33624 " guestfs_launch (g);\n"
33625 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33626 " guestfs_touch (g, \"/hello\");\n"
33627 " guestfs_umount (g, \"/\");\n"
33628 " guestfs_close (g);\n"
33629 "\n"
33630
33631 #. type: textblock
33632 #: ../src/guestfs.pod:25
33633 msgid ""
33634 "Libguestfs is a library for accessing and modifying guest disk images.  "
33635 "Amongst the things this is good for: making batch configuration changes to "
33636 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33637 "between virtualization systems (see also: virt-p2v), performing partial "
33638 "backups, performing partial guest clones, cloning guests and changing "
33639 "registry/UUID/hostname info, and much else besides."
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs.pod:33
33644 msgid ""
33645 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33646 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33647 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33648 "qcow2, vmdk."
33649 msgstr ""
33650
33651 #. type: textblock
33652 #: ../src/guestfs.pod:38
33653 msgid ""
33654 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33655 "what filesystem is in each LV, etc.).  It can also run commands in the "
33656 "context of the guest.  Also you can access filesystems over FUSE."
33657 msgstr ""
33658
33659 #. type: textblock
33660 #: ../src/guestfs.pod:43
33661 msgid ""
33662 "Libguestfs is a library that can be linked with C and C++ management "
33663 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33664 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33665 "command line."
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:48
33670 msgid ""
33671 "You don't need to be root to use libguestfs, although obviously you do need "
33672 "enough permissions to access the disk images."
33673 msgstr ""
33674
33675 #. type: textblock
33676 #: ../src/guestfs.pod:51
33677 msgid ""
33678 "Libguestfs is a large API because it can do many things.  For a gentle "
33679 "introduction, please read the L</API OVERVIEW> section next."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:54
33684 msgid ""
33685 "There are also some example programs in the L<guestfs-examples(3)> manual "
33686 "page."
33687 msgstr ""
33688
33689 #. type: =head1
33690 #: ../src/guestfs.pod:57
33691 msgid "API OVERVIEW"
33692 msgstr "ОГЛЯД API"
33693
33694 #. type: textblock
33695 #: ../src/guestfs.pod:59
33696 msgid ""
33697 "This section provides a gentler overview of the libguestfs API.  We also try "
33698 "to group API calls together, where that may not be obvious from reading "
33699 "about the individual calls in the main section of this manual."
33700 msgstr ""
33701
33702 #. type: =head2
33703 #: ../src/guestfs.pod:64
33704 msgid "HANDLES"
33705 msgstr "ОБРОБНИКИ"
33706
33707 #. type: textblock
33708 #: ../src/guestfs.pod:66
33709 msgid ""
33710 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33711 "must add at least one disk image to the handle, followed by launching the "
33712 "handle, then performing whatever operations you want, and finally closing "
33713 "the handle.  By convention we use the single letter C<g> for the name of the "
33714 "handle variable, although of course you can use any name you want."
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs.pod:73
33719 msgid "The general structure of all libguestfs-using programs looks like this:"
33720 msgstr ""
33721
33722 #. type: verbatim
33723 #: ../src/guestfs.pod:76
33724 #, no-wrap
33725 msgid ""
33726 " guestfs_h *g = guestfs_create ();\n"
33727 " \n"
33728 msgstr ""
33729 " guestfs_h *g = guestfs_create ();\n"
33730 " \n"
33731
33732 #. type: verbatim
33733 #: ../src/guestfs.pod:78
33734 #, no-wrap
33735 msgid ""
33736 " /* Call guestfs_add_drive additional times if there are\n"
33737 "  * multiple disk images.\n"
33738 "  */\n"
33739 " guestfs_add_drive (g, \"guest.img\");\n"
33740 " \n"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs.pod:83
33745 #, no-wrap
33746 msgid ""
33747 " /* Most manipulation calls won't work until you've launched\n"
33748 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33749 "  * and _before_ other commands.\n"
33750 "  */\n"
33751 " guestfs_launch (g);\n"
33752 " \n"
33753 msgstr ""
33754
33755 #. type: verbatim
33756 #: ../src/guestfs.pod:89
33757 #, no-wrap
33758 msgid ""
33759 " /* Now you can examine what partitions, LVs etc are available.\n"
33760 "  */\n"
33761 " char **partitions = guestfs_list_partitions (g);\n"
33762 " char **logvols = guestfs_lvs (g);\n"
33763 " \n"
33764 msgstr ""
33765 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
33766 "  */\n"
33767 " char **partitions = guestfs_list_partitions (g);\n"
33768 " char **logvols = guestfs_lvs (g);\n"
33769 " \n"
33770
33771 #. type: verbatim
33772 #: ../src/guestfs.pod:94
33773 #, no-wrap
33774 msgid ""
33775 " /* To access a filesystem in the image, you must mount it.\n"
33776 "  */\n"
33777 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33778 " \n"
33779 msgstr ""
33780 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
33781 "  */\n"
33782 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33783 " \n"
33784
33785 #. type: verbatim
33786 #: ../src/guestfs.pod:98
33787 #, no-wrap
33788 msgid ""
33789 " /* Now you can perform filesystem actions on the guest\n"
33790 "  * disk image.\n"
33791 "  */\n"
33792 " guestfs_touch (g, \"/hello\");\n"
33793 " \n"
33794 msgstr ""
33795
33796 #. type: verbatim
33797 #: ../src/guestfs.pod:103
33798 #, no-wrap
33799 msgid ""
33800 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33801 "  * it is done automatically when you close the handle.  See\n"
33802 "  * discussion of autosync in this page.\n"
33803 "  */\n"
33804 " guestfs_sync (g);\n"
33805 " \n"
33806 msgstr ""
33807
33808 #. type: verbatim
33809 #: ../src/guestfs.pod:109
33810 #, no-wrap
33811 msgid ""
33812 " /* Close the handle 'g'. */\n"
33813 " guestfs_close (g);\n"
33814 "\n"
33815 msgstr ""
33816 " /* Закрити дескриптор 'g'. */\n"
33817 " guestfs_close (g);\n"
33818 "\n"
33819
33820 #. type: textblock
33821 #: ../src/guestfs.pod:112
33822 msgid ""
33823 "The code above doesn't include any error checking.  In real code you should "
33824 "check return values carefully for errors.  In general all functions that "
33825 "return integers return C<-1> on error, and all functions that return "
33826 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33827 "how to handle errors, and consult the documentation for each function call "
33828 "below to see precisely how they return error indications.  See L<guestfs-"
33829 "examples(3)> for fully worked examples."
33830 msgstr ""
33831
33832 #. type: =head2
33833 #: ../src/guestfs.pod:121
33834 msgid "DISK IMAGES"
33835 msgstr "ОБРАЗИ ДИСКІВ"
33836
33837 #. type: textblock
33838 #: ../src/guestfs.pod:123
33839 msgid ""
33840 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33841 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33842 "actual block device, or simply an empty file of zeroes that you have created "
33843 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33844 "of these."
33845 msgstr ""
33846
33847 #. type: textblock
33848 #: ../src/guestfs.pod:129
33849 msgid ""
33850 "The call you should use in modern code for adding drives is L</"
33851 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33852 "specifying that the format is raw, do:"
33853 msgstr ""
33854
33855 #. type: verbatim
33856 #: ../src/guestfs.pod:133
33857 #, no-wrap
33858 msgid ""
33859 " guestfs_add_drive_opts (g, filename,\n"
33860 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33861 "                         -1);\n"
33862 "\n"
33863 msgstr ""
33864 " guestfs_add_drive_opts (g, filename,\n"
33865 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33866 "                         -1);\n"
33867 "\n"
33868
33869 #. type: textblock
33870 #: ../src/guestfs.pod:137
33871 msgid "You can add a disk read-only using:"
33872 msgstr "Ви можете додати диск у режимі лише читання:"
33873
33874 #. type: verbatim
33875 #: ../src/guestfs.pod:139
33876 #, no-wrap
33877 msgid ""
33878 " guestfs_add_drive_opts (g, filename,\n"
33879 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33880 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33881 "                         -1);\n"
33882 "\n"
33883 msgstr ""
33884 " guestfs_add_drive_opts (g, filename,\n"
33885 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33886 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33887 "                         -1);\n"
33888 "\n"
33889
33890 #. type: textblock
33891 #: ../src/guestfs.pod:144
33892 msgid ""
33893 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33894 "libguestfs won't modify the file."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:147
33899 msgid ""
33900 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33901 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33902 "corruption, but adding it read-only is safe."
33903 msgstr ""
33904
33905 #. type: textblock
33906 #: ../src/guestfs.pod:151
33907 msgid ""
33908 "You must add at least one disk image, and you may add multiple disk images.  "
33909 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33910 "first one you added), C</dev/sdb> (for the second one you added), etc."
33911 msgstr ""
33912
33913 #. type: textblock
33914 #: ../src/guestfs.pod:156
33915 msgid ""
33916 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33917 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33918 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33919 msgstr ""
33920
33921 #. type: =head2
33922 #: ../src/guestfs.pod:161
33923 msgid "MOUNTING"
33924 msgstr "МОНТУВАННЯ"
33925
33926 #. type: textblock
33927 #: ../src/guestfs.pod:163
33928 msgid ""
33929 "Before you can read or write files, create directories and so on in a disk "
33930 "image that contains filesystems, you have to mount those filesystems using "
33931 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33932 "a disk image contains (for example) one partition with a filesystem on that "
33933 "partition, then you can mount it directly:"
33934 msgstr ""
33935
33936 #. type: verbatim
33937 #: ../src/guestfs.pod:170
33938 #, no-wrap
33939 msgid ""
33940 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33941 "\n"
33942 msgstr ""
33943 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33944 "\n"
33945
33946 #. type: textblock
33947 #: ../src/guestfs.pod:172
33948 msgid ""
33949 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33950 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33951 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33952 "that these are libguestfs virtual devices, and are nothing to do with host "
33953 "devices."
33954 msgstr ""
33955
33956 #. type: textblock
33957 #: ../src/guestfs.pod:178
33958 msgid ""
33959 "If you are given a disk image and you don't know what it contains then you "
33960 "have to find out.  Libguestfs can do that too: use L</"
33961 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33962 "LVs, and either try mounting each to see what is mountable, or else examine "
33963 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33964 "filesystems, use L</guestfs_list_filesystems>."
33965 msgstr ""
33966
33967 #. type: textblock
33968 #: ../src/guestfs.pod:186
33969 msgid ""
33970 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33971 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33972 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33973 msgstr ""
33974
33975 #. type: textblock
33976 #: ../src/guestfs.pod:191
33977 msgid ""
33978 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33979 "several other variations of the C<guestfs_mount_*> call."
33980 msgstr ""
33981
33982 #. type: =head2
33983 #: ../src/guestfs.pod:194
33984 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33985 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33986
33987 #. type: textblock
33988 #: ../src/guestfs.pod:196
33989 msgid ""
33990 "The majority of the libguestfs API consists of fairly low-level calls for "
33991 "accessing and modifying the files, directories, symlinks etc on mounted "
33992 "filesystems.  There are over a hundred such calls which you can find listed "
33993 "in detail below in this man page, and we don't even pretend to cover them "
33994 "all in this overview."
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs.pod:202
33999 msgid ""
34000 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34001 "mount point."
34002 msgstr ""
34003 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
34004 "точкою монтування."
34005
34006 #. type: textblock
34007 #: ../src/guestfs.pod:205
34008 msgid ""
34009 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34010 "the file called C<\"etc/passwd\"> then you could do:"
34011 msgstr ""
34012 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
34013 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
34014 "таким кодом:"
34015
34016 #. type: verbatim
34017 #: ../src/guestfs.pod:208
34018 #, no-wrap
34019 msgid ""
34020 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34021 "\n"
34022 msgstr ""
34023 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34024 "\n"
34025
34026 #. type: textblock
34027 #: ../src/guestfs.pod:210
34028 msgid ""
34029 "This would return C<data> as a newly allocated buffer containing the full "
34030 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34031 "or C<NULL> if there was an error."
34032 msgstr ""
34033
34034 #. type: textblock
34035 #: ../src/guestfs.pod:214
34036 msgid ""
34037 "As another example, to create a top-level directory on that filesystem "
34038 "called C<\"var\"> you would do:"
34039 msgstr ""
34040
34041 #. type: verbatim
34042 #: ../src/guestfs.pod:217
34043 #, no-wrap
34044 msgid ""
34045 " guestfs_mkdir (g, \"/var\");\n"
34046 "\n"
34047 msgstr ""
34048 " guestfs_mkdir (g, \"/var\");\n"
34049 "\n"
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:219
34053 msgid "To create a symlink you could do:"
34054 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
34055
34056 #. type: verbatim
34057 #: ../src/guestfs.pod:221
34058 #, no-wrap
34059 msgid ""
34060 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34061 "               \"/etc/rc3.d/S30portmap\");\n"
34062 "\n"
34063 msgstr ""
34064 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34065 "               \"/etc/rc3.d/S30portmap\");\n"
34066 "\n"
34067
34068 #. type: textblock
34069 #: ../src/guestfs.pod:224
34070 msgid ""
34071 "Libguestfs will reject attempts to use relative paths and there is no "
34072 "concept of a current working directory."
34073 msgstr ""
34074
34075 #. type: textblock
34076 #: ../src/guestfs.pod:227
34077 msgid ""
34078 "Libguestfs can return errors in many situations: for example if the "
34079 "filesystem isn't writable, or if a file or directory that you requested "
34080 "doesn't exist.  If you are using the C API (documented here)  you have to "
34081 "check for those error conditions after each call.  (Other language bindings "
34082 "turn these errors into exceptions)."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:233
34087 msgid ""
34088 "File writes are affected by the per-handle umask, set by calling L</"
34089 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34090 msgstr ""
34091
34092 #. type: =head2
34093 #: ../src/guestfs.pod:236
34094 msgid "PARTITIONING"
34095 msgstr "ПОДІЛ НА РОЗДІЛИ"
34096
34097 #. type: textblock
34098 #: ../src/guestfs.pod:238
34099 msgid ""
34100 "Libguestfs contains API calls to read, create and modify partition tables on "
34101 "disk images."
34102 msgstr ""
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:241
34106 msgid ""
34107 "In the common case where you want to create a single partition covering the "
34108 "whole disk, you should use the L</guestfs_part_disk> call:"
34109 msgstr ""
34110
34111 #. type: verbatim
34112 #: ../src/guestfs.pod:245
34113 #, no-wrap
34114 msgid ""
34115 " const char *parttype = \"mbr\";\n"
34116 " if (disk_is_larger_than_2TB)\n"
34117 "   parttype = \"gpt\";\n"
34118 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34119 "\n"
34120 msgstr ""
34121 " const char *parttype = \"mbr\";\n"
34122 " if (disk_is_larger_than_2TB)\n"
34123 "   parttype = \"gpt\";\n"
34124 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34125 "\n"
34126
34127 #. type: textblock
34128 #: ../src/guestfs.pod:250
34129 msgid ""
34130 "Obviously this effectively wipes anything that was on that disk image before."
34131 msgstr ""
34132
34133 #. type: =head2
34134 #: ../src/guestfs.pod:253
34135 msgid "LVM2"
34136 msgstr "LVM2"
34137
34138 #. type: textblock
34139 #: ../src/guestfs.pod:255
34140 msgid ""
34141 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34142 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34143 "you familiarize yourself with the concepts of physical volumes, volume "
34144 "groups and logical volumes."
34145 msgstr ""
34146
34147 #. type: textblock
34148 #: ../src/guestfs.pod:260
34149 msgid ""
34150 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34151 "tldp.org/HOWTO/LVM-HOWTO/>."
34152 msgstr ""
34153
34154 #. type: =head2
34155 #: ../src/guestfs.pod:263
34156 msgid "DOWNLOADING"
34157 msgstr "ОТРИМАННЯ ДАНИХ"
34158
34159 #. type: textblock
34160 #: ../src/guestfs.pod:265
34161 msgid ""
34162 "Use L</guestfs_cat> to download small, text only files.  This call is "
34163 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34164 "NUL (C<\\0>) characters.  However the API is very simple to use."
34165 msgstr ""
34166
34167 #. type: textblock
34168 #: ../src/guestfs.pod:269
34169 msgid ""
34170 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34171 "bit data, since it returns a (pointer, size) pair.  However it is still "
34172 "limited to \"small\" files, less than 2 MB."
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:273
34177 msgid ""
34178 "L</guestfs_download> can be used to download any file, with no limits on "
34179 "content or size (even files larger than 4 GB)."
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:276
34184 msgid ""
34185 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34186 msgstr ""
34187
34188 #. type: =head2
34189 #: ../src/guestfs.pod:279
34190 msgid "UPLOADING"
34191 msgstr "ВИВАНТАЖЕННЯ"
34192
34193 #. type: textblock
34194 #: ../src/guestfs.pod:281
34195 msgid ""
34196 "It's often the case that you want to write a file or files to the disk image."
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:284
34201 msgid ""
34202 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34203 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34204 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34205 "of other functions for creating test files, for example L</guestfs_fill> and "
34206 "L</guestfs_fill_pattern>."
34207 msgstr ""
34208
34209 #. type: textblock
34210 #: ../src/guestfs.pod:290
34211 msgid ""
34212 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34213 "file content or size (even files larger than 4 GB)."
34214 msgstr ""
34215
34216 #. type: textblock
34217 #: ../src/guestfs.pod:293
34218 msgid ""
34219 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34220 msgstr ""
34221
34222 #. type: textblock
34223 #: ../src/guestfs.pod:295
34224 msgid ""
34225 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34226 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34227 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34228 "in a predictable way (eg. adding it last after all other drives) then you "
34229 "can get the device name from L</guestfs_list_devices> and mount it directly "
34230 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34231 "portable between kernel versions, and they don't support labels or UUIDs.  "
34232 "If you want to pre-build an image or you need to mount it using a label or "
34233 "UUID, use an ISO image instead."
34234 msgstr ""
34235
34236 #. type: =head2
34237 #: ../src/guestfs.pod:306
34238 msgid "COPYING"
34239 msgstr "КОПІЮВАННЯ"
34240
34241 #. type: textblock
34242 #: ../src/guestfs.pod:308
34243 msgid ""
34244 "There are various different commands for copying between files and devices "
34245 "and in and out of the guest filesystem.  These are summarised in the table "
34246 "below."
34247 msgstr ""
34248
34249 #. type: =item
34250 #: ../src/guestfs.pod:314
34251 msgid "B<file> to B<file>"
34252 msgstr "B<файл> у B<файл>"
34253
34254 #. type: textblock
34255 #: ../src/guestfs.pod:316
34256 msgid ""
34257 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34258 "directories recursively."
34259 msgstr ""
34260
34261 #. type: =item
34262 #: ../src/guestfs.pod:319
34263 msgid "B<file or device> to B<file or device>"
34264 msgstr "B<файл або пристрій> у B<файл або пристрій>"
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:321
34268 msgid ""
34269 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34270 "devices in the guest."
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:324
34275 msgid "Example: duplicate the contents of an LV:"
34276 msgstr ""
34277
34278 #. type: verbatim
34279 #: ../src/guestfs.pod:326
34280 #, no-wrap
34281 msgid ""
34282 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34283 "\n"
34284 msgstr ""
34285 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34286 "\n"
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:328
34290 msgid ""
34291 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34292 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
34293 "guestfs_copy_size>."
34294 msgstr ""
34295
34296 #. type: =item
34297 #: ../src/guestfs.pod:332
34298 msgid "B<file on the host> to B<file or device>"
34299 msgstr ""
34300
34301 #. type: textblock
34302 #: ../src/guestfs.pod:334
34303 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34304 msgstr ""
34305
34306 #. type: =item
34307 #: ../src/guestfs.pod:336
34308 msgid "B<file or device> to B<file on the host>"
34309 msgstr ""
34310
34311 #. type: textblock
34312 #: ../src/guestfs.pod:338
34313 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34314 msgstr ""
34315
34316 #. type: =head2
34317 #: ../src/guestfs.pod:342
34318 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34319 msgstr ""
34320
34321 #. type: textblock
34322 #: ../src/guestfs.pod:344
34323 msgid ""
34324 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34325 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34326 "appears you can only upload and download to files.  However many Un*x-like "
34327 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34328 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34329 "and arbitrary file descriptor N."
34330 msgstr ""
34331
34332 #. type: textblock
34333 #: ../src/guestfs.pod:352
34334 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34335 msgstr ""
34336
34337 #. type: verbatim
34338 #: ../src/guestfs.pod:355
34339 #, no-wrap
34340 msgid ""
34341 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34342 "\n"
34343 msgstr ""
34344 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34345 "\n"
34346
34347 #. type: textblock
34348 #: ../src/guestfs.pod:357
34349 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34350 msgstr ""
34351
34352 #. type: verbatim
34353 #: ../src/guestfs.pod:359
34354 #, no-wrap
34355 msgid ""
34356 " char devfd[64];\n"
34357 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34358 " guestfs_tar_out (g, \"/\", devfd);\n"
34359 "\n"
34360 msgstr ""
34361 " char devfd[64];\n"
34362 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34363 " guestfs_tar_out (g, \"/\", devfd);\n"
34364 "\n"
34365
34366 #. type: =head2
34367 #: ../src/guestfs.pod:363
34368 msgid "LISTING FILES"
34369 msgstr "СПИСКИ ФАЙЛІВ"
34370
34371 #. type: textblock
34372 #: ../src/guestfs.pod:365
34373 msgid ""
34374 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34375 "L<guestfish(1)>-equivalent command C<ll>)."
34376 msgstr ""
34377
34378 #. type: textblock
34379 #: ../src/guestfs.pod:368
34380 msgid ""
34381 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34382 "programs, as a flat list of strings."
34383 msgstr ""
34384
34385 #. type: textblock
34386 #: ../src/guestfs.pod:371
34387 msgid ""
34388 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34389 "directory, plus additional information about each one.  It is more "
34390 "equivalent to using the L<readdir(3)> call on a local filesystem."
34391 msgstr ""
34392
34393 #. type: textblock
34394 #: ../src/guestfs.pod:375
34395 msgid ""
34396 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34397 msgstr ""
34398
34399 #. type: =head2
34400 #: ../src/guestfs.pod:378
34401 msgid "RUNNING COMMANDS"
34402 msgstr "ВИКОНАННЯ КОМАНД"
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:380
34406 msgid ""
34407 "Although libguestfs is primarily an API for manipulating files inside guest "
34408 "images, we also provide some limited facilities for running commands inside "
34409 "guests."
34410 msgstr ""
34411
34412 #. type: textblock
34413 #: ../src/guestfs.pod:384
34414 msgid "There are many limitations to this:"
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:390
34419 msgid ""
34420 "The kernel version that the command runs under will be different from what "
34421 "it expects."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:395
34426 msgid ""
34427 "If the command needs to communicate with daemons, then most likely they "
34428 "won't be running."
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:400
34433 msgid "The command will be running in limited memory."
34434 msgstr ""
34435
34436 #. type: textblock
34437 #: ../src/guestfs.pod:404
34438 msgid ""
34439 "The network may not be available unless you enable it (see L</"
34440 "guestfs_set_network>)."
34441 msgstr ""
34442
34443 #. type: textblock
34444 #: ../src/guestfs.pod:409
34445 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34446 msgstr ""
34447
34448 #. type: textblock
34449 #: ../src/guestfs.pod:413
34450 msgid ""
34451 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:418
34456 msgid ""
34457 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34458 "See L</SELINUX> in this manpage."
34459 msgstr ""
34460
34461 #. type: textblock
34462 #: ../src/guestfs.pod:423
34463 msgid ""
34464 "I<Security:> It is not safe to run commands from untrusted, possibly "
34465 "malicious guests.  These commands may attempt to exploit your program by "
34466 "sending unexpected output.  They could also try to exploit the Linux kernel "
34467 "or qemu provided by the libguestfs appliance.  They could use the network "
34468 "provided by the libguestfs appliance to bypass ordinary network partitions "
34469 "and firewalls.  They could use the elevated privileges or different SELinux "
34470 "context of your program to their advantage."
34471 msgstr ""
34472
34473 #. type: textblock
34474 #: ../src/guestfs.pod:432
34475 msgid ""
34476 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34477 "(a script which runs when the guest next boots normally), and to have this "
34478 "script run the commands you want in the normal context of the running guest, "
34479 "network security and so on.  For information about other security issues, "
34480 "see L</SECURITY>."
34481 msgstr ""
34482
34483 #. type: textblock
34484 #: ../src/guestfs.pod:440
34485 msgid ""
34486 "The two main API calls to run commands are L</guestfs_command> and L</"
34487 "guestfs_sh> (there are also variations)."
34488 msgstr ""
34489
34490 #. type: textblock
34491 #: ../src/guestfs.pod:443
34492 msgid ""
34493 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34494 "shell globs, redirections, etc will work."
34495 msgstr ""
34496
34497 #. type: =head2
34498 #: ../src/guestfs.pod:446
34499 msgid "CONFIGURATION FILES"
34500 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34501
34502 #. type: textblock
34503 #: ../src/guestfs.pod:448
34504 msgid ""
34505 "To read and write configuration files in Linux guest filesystems, we "
34506 "strongly recommend using Augeas.  For example, Augeas understands how to "
34507 "read and write, say, a Linux shadow password file or X.org configuration "
34508 "file, and so avoids you having to write that code."
34509 msgstr ""
34510
34511 #. type: textblock
34512 #: ../src/guestfs.pod:453
34513 msgid ""
34514 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34515 "document Augeas itself here because there is excellent documentation on the "
34516 "L<http://augeas.net/> website."
34517 msgstr ""
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:457
34521 msgid ""
34522 "If you don't want to use Augeas (you fool!) then try calling L</"
34523 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34524 "over."
34525 msgstr ""
34526
34527 #. type: =head2
34528 #: ../src/guestfs.pod:461
34529 msgid "SELINUX"
34530 msgstr "SELINUX"
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:463
34534 msgid ""
34535 "We support SELinux guests.  To ensure that labeling happens correctly in "
34536 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34537 msgstr ""
34538
34539 #. type: textblock
34540 #: ../src/guestfs.pod:471
34541 msgid "Before launching, do:"
34542 msgstr ""
34543
34544 #. type: verbatim
34545 #: ../src/guestfs.pod:473
34546 #, no-wrap
34547 msgid ""
34548 " guestfs_set_selinux (g, 1);\n"
34549 "\n"
34550 msgstr ""
34551 " guestfs_set_selinux (g, 1);\n"
34552 "\n"
34553
34554 #. type: textblock
34555 #: ../src/guestfs.pod:477
34556 msgid ""
34557 "After mounting the guest's filesystem(s), load the policy.  This is best "
34558 "done by running the L<load_policy(8)> command in the guest itself:"
34559 msgstr ""
34560
34561 #. type: verbatim
34562 #: ../src/guestfs.pod:481
34563 #, no-wrap
34564 msgid ""
34565 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34566 "\n"
34567 msgstr ""
34568 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34569 "\n"
34570
34571 #. type: textblock
34572 #: ../src/guestfs.pod:483
34573 msgid ""
34574 "(Older versions of C<load_policy> require you to specify the name of the "
34575 "policy file)."
34576 msgstr ""
34577
34578 #. type: textblock
34579 #: ../src/guestfs.pod:488
34580 msgid ""
34581 "Optionally, set the security context for the API.  The correct security "
34582 "context to use can only be known by inspecting the guest.  As an example:"
34583 msgstr ""
34584
34585 #. type: verbatim
34586 #: ../src/guestfs.pod:492
34587 #, no-wrap
34588 msgid ""
34589 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34590 "\n"
34591 msgstr ""
34592 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34593 "\n"
34594
34595 #. type: textblock
34596 #: ../src/guestfs.pod:496
34597 msgid "This will work for running commands and editing existing files."
34598 msgstr ""
34599
34600 #. type: textblock
34601 #: ../src/guestfs.pod:498
34602 msgid ""
34603 "When new files are created, you may need to label them explicitly, for "
34604 "example by running the external command C<restorecon pathname>."
34605 msgstr ""
34606
34607 #. type: =head2
34608 #: ../src/guestfs.pod:502
34609 msgid "UMASK"
34610 msgstr "UMASK"
34611
34612 #. type: textblock
34613 #: ../src/guestfs.pod:504
34614 msgid ""
34615 "Certain calls are affected by the current file mode creation mask (the "
34616 "\"umask\").  In particular ones which create files or directories, such as "
34617 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34618 "either the default mode that the file is created with or modifies the mode "
34619 "that you supply."
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:510
34624 msgid ""
34625 "The default umask is C<022>, so files are created with modes such as C<0644> "
34626 "and directories with C<0755>."
34627 msgstr ""
34628
34629 #. type: textblock
34630 #: ../src/guestfs.pod:513
34631 msgid ""
34632 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34633 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34634 "guestfs_chmod> after creating each file or directory."
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:517
34639 msgid "For more information about umask, see L<umask(2)>."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:521
34644 msgid ""
34645 "Libguestfs allows you to access Linux guests which have been encrypted using "
34646 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34647 "standard.  This includes nearly all whole disk encryption systems used by "
34648 "modern Linux guests."
34649 msgstr ""
34650
34651 #. type: textblock
34652 #: ../src/guestfs.pod:527
34653 msgid ""
34654 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34655 "returns the string C<crypto_LUKS>)."
34656 msgstr ""
34657
34658 #. type: textblock
34659 #: ../src/guestfs.pod:530
34660 msgid ""
34661 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34662 "will require the passphrase!"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:533
34667 msgid ""
34668 "Opening a LUKS device creates a new device mapper device called C</dev/"
34669 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34670 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34671 "from and encrypted to the underlying block device respectively."
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:539
34676 msgid ""
34677 "LVM volume groups on the device can be made visible by calling L</"
34678 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34679 "(s) can now be mounted in the usual way."
34680 msgstr ""
34681
34682 #. type: textblock
34683 #: ../src/guestfs.pod:543
34684 msgid ""
34685 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34686 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34687 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34688 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34689 "underlying encrypted block device)."
34690 msgstr ""
34691
34692 #. type: =head2
34693 #: ../src/guestfs.pod:550
34694 msgid "INSPECTION"
34695 msgstr "ПЕРЕВІРКА"
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:552
34699 msgid ""
34700 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34701 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34702 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34703 "version 1.5.3 the most frequently used part of this library has been "
34704 "rewritten in C and moved into the core code)."
34705 msgstr ""
34706
34707 #. type: textblock
34708 #: ../src/guestfs.pod:559
34709 msgid ""
34710 "Add all disks belonging to the unknown virtual machine and call L</"
34711 "guestfs_launch> in the usual way."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:562
34716 msgid ""
34717 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34718 "and certain heuristics, and returns a list of operating systems that were "
34719 "found.  An empty list means none were found.  A single element is the root "
34720 "filesystem of the operating system.  For dual- or multi-boot guests, "
34721 "multiple roots can be returned, each one corresponding to a separate "
34722 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34723 "world of virtualization, but since this scenario can happen, we have built "
34724 "libguestfs to deal with it.)"
34725 msgstr ""
34726
34727 #. type: textblock
34728 #: ../src/guestfs.pod:571
34729 msgid ""
34730 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34731 "to get additional details about that operating system.  For example, call L</"
34732 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34733 "Windows and Linux-based operating systems respectively."
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs.pod:577
34738 msgid ""
34739 "Un*x-like and Linux-based operating systems usually consist of several "
34740 "filesystems which are mounted at boot time (for example, a separate boot "
34741 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34742 "filesystems correspond to mount points.  Call "
34743 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34744 "hash table like this example:"
34745 msgstr ""
34746
34747 #. type: verbatim
34748 #: ../src/guestfs.pod:584
34749 #, no-wrap
34750 msgid ""
34751 " /boot => /dev/sda1\n"
34752 " /     => /dev/vg_guest/lv_root\n"
34753 " /usr  => /dev/vg_guest/lv_usr\n"
34754 "\n"
34755 msgstr ""
34756 " /boot => /dev/sda1\n"
34757 " /     => /dev/vg_guest/lv_root\n"
34758 " /usr  => /dev/vg_guest/lv_usr\n"
34759 "\n"
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:588
34763 msgid ""
34764 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34765 "filesystems as suggested."
34766 msgstr ""
34767
34768 #. type: textblock
34769 #: ../src/guestfs.pod:591
34770 msgid ""
34771 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34772 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:595
34777 msgid ""
34778 "Inspection currently only works for some common operating systems.  "
34779 "Contributors are welcome to send patches for other operating systems that we "
34780 "currently cannot detect."
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:599
34785 msgid ""
34786 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34787 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34788 "encrypted devices."
34789 msgstr ""
34790
34791 #. type: textblock
34792 #: ../src/guestfs.pod:603
34793 msgid ""
34794 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34795 "inspection and caches the results in the guest handle.  Subsequent calls to "
34796 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34797 "read the disks.  If you change the content of the guest disks, you can redo "
34798 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34799 "guestfs_inspect_list_applications> works a little differently from the other "
34800 "calls and does read the disks.  See documentation for that function for "
34801 "details)."
34802 msgstr ""
34803
34804 #. type: =head3
34805 #: ../src/guestfs.pod:612
34806 msgid "INSPECTING INSTALL DISKS"
34807 msgstr ""
34808
34809 #. type: textblock
34810 #: ../src/guestfs.pod:614
34811 msgid ""
34812 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34813 "CDs and more."
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs.pod:617
34818 msgid ""
34819 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34820 "system, which currently can be C<installed> (a regular operating system) or "
34821 "C<installer> (some sort of install disk)."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:621
34826 msgid ""
34827 "Further information is available about the operating system that can be "
34828 "installed using the regular inspection APIs like L</"
34829 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34830 msgstr ""
34831
34832 #. type: textblock
34833 #: ../src/guestfs.pod:626
34834 msgid ""
34835 "Some additional information specific to installer disks is also available "
34836 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34837 "guestfs_inspect_is_multipart> calls."
34838 msgstr ""
34839
34840 #. type: =head2
34841 #: ../src/guestfs.pod:631
34842 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34843 msgstr ""
34844
34845 #. type: textblock
34846 #: ../src/guestfs.pod:633
34847 msgid ""
34848 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34849 "ntfs-3g.org/> driver."
34850 msgstr ""
34851
34852 #. type: =head3
34853 #: ../src/guestfs.pod:636
34854 msgid "DRIVE LETTERS AND PATHS"
34855 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:638
34859 msgid ""
34860 "DOS and Windows still use drive letters, and the filesystems are always "
34861 "treated as case insensitive by Windows itself, and therefore you might find "
34862 "a Windows configuration file referring to a path like C<c:\\windows"
34863 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34864 "might be referred to as C</WINDOWS/System32>."
34865 msgstr ""
34866
34867 #. type: textblock
34868 #: ../src/guestfs.pod:644
34869 msgid ""
34870 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34871 "L</guestfs_inspect_get_drive_mappings>)"
34872 msgstr ""
34873
34874 #. type: textblock
34875 #: ../src/guestfs.pod:647
34876 msgid ""
34877 "Dealing with separator characters (backslash vs forward slash) is outside "
34878 "the scope of libguestfs, but usually a simple character replacement will "
34879 "work."
34880 msgstr ""
34881
34882 #. type: textblock
34883 #: ../src/guestfs.pod:651
34884 msgid ""
34885 "To resolve the case insensitivity of paths, call L</"
34886 "guestfs_case_sensitive_path>."
34887 msgstr ""
34888
34889 #. type: =head3
34890 #: ../src/guestfs.pod:654
34891 msgid "ACCESSING THE WINDOWS REGISTRY"
34892 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34893
34894 #. type: textblock
34895 #: ../src/guestfs.pod:656
34896 msgid ""
34897 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34898 "files, through the library C<hivex> which is part of the libguestfs project "
34899 "although ships as a separate tarball.  You have to locate and download the "
34900 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34901 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34902 "reg(1)> for more help on this issue."
34903 msgstr ""
34904
34905 #. type: =head3
34906 #: ../src/guestfs.pod:664
34907 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34908 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34909
34910 #. type: textblock
34911 #: ../src/guestfs.pod:666
34912 msgid ""
34913 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34914 "provide something which looks like a Linux symlink.  The way it tries to do "
34915 "the rewriting is described here:"
34916 msgstr ""
34917
34918 #. type: textblock
34919 #: ../src/guestfs.pod:670
34920 msgid ""
34921 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34922 "symbolic-links/>"
34923 msgstr ""
34924 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34925 "symbolic-links/>"
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:672
34929 msgid ""
34930 "The essential problem is that ntfs-3g simply does not have enough "
34931 "information to do a correct job.  NTFS links can contain drive letters and "
34932 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34933 "It is almost certainly the case that libguestfs callers should ignore what "
34934 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34935 msgstr ""
34936
34937 #. type: textblock
34938 #: ../src/guestfs.pod:679
34939 msgid ""
34940 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34941 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34942 "attribute, and read the raw reparse data from that (you can find the format "
34943 "documented in various places around the web)."
34944 msgstr ""
34945
34946 #. type: =head3
34947 #: ../src/guestfs.pod:684
34948 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34949 msgstr ""
34950
34951 #. type: textblock
34952 #: ../src/guestfs.pod:686
34953 msgid ""
34954 "There are other useful extended attributes that can be read from ntfs-3g "
34955 "filesystems (using L</guestfs_getxattr>).  See:"
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:689
34960 msgid ""
34961 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34962 msgstr ""
34963 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34964
34965 #. type: =head2
34966 #: ../src/guestfs.pod:691
34967 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34968 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:693
34972 msgid ""
34973 "Although we don't want to discourage you from using the C API, we will "
34974 "mention here that the same API is also available in other languages."
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:696
34979 msgid ""
34980 "The API is broadly identical in all supported languages.  This means that "
34981 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34982 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34983 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34984 "each language."
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:702
34989 msgid ""
34990 "Error messages are automatically transformed into exceptions if the language "
34991 "supports it."
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:705
34996 msgid ""
34997 "We don't try to \"object orientify\" parts of the API in OO languages, "
34998 "although contributors are welcome to write higher level APIs above what we "
34999 "provide in their favourite languages if they wish."
35000 msgstr ""
35001
35002 #. type: =item
35003 #: ../src/guestfs.pod:711
35004 msgid "B<C++>"
35005 msgstr "B<C++>"
35006
35007 #. type: textblock
35008 #: ../src/guestfs.pod:713
35009 msgid ""
35010 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35011 "identical to the C API.  C++ classes and exceptions are not used."
35012 msgstr ""
35013
35014 #. type: =item
35015 #: ../src/guestfs.pod:717
35016 msgid "B<C#>"
35017 msgstr "B<C#>"
35018
35019 #. type: textblock
35020 #: ../src/guestfs.pod:719
35021 msgid ""
35022 "The C# bindings are highly experimental.  Please read the warnings at the "
35023 "top of C<csharp/Libguestfs.cs>."
35024 msgstr ""
35025
35026 #. type: =item
35027 #: ../src/guestfs.pod:722
35028 msgid "B<Erlang>"
35029 msgstr ""
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:724
35033 #, fuzzy
35034 #| msgid "See L<guestfs-ruby(3)>."
35035 msgid "See L<guestfs-erlang(3)>."
35036 msgstr "Див. L<guestfs-ruby(3)>."
35037
35038 #. type: =item
35039 #: ../src/guestfs.pod:726
35040 msgid "B<Haskell>"
35041 msgstr "B<Haskell>"
35042
35043 #. type: textblock
35044 #: ../src/guestfs.pod:728
35045 msgid ""
35046 "This is the only language binding that is working but incomplete.  Only "
35047 "calls which return simple integers have been bound in Haskell, and we are "
35048 "looking for help to complete this binding."
35049 msgstr ""
35050
35051 #. type: =item
35052 #: ../src/guestfs.pod:732
35053 msgid "B<Java>"
35054 msgstr "B<Java>"
35055
35056 #. type: textblock
35057 #: ../src/guestfs.pod:734
35058 msgid ""
35059 "Full documentation is contained in the Javadoc which is distributed with "
35060 "libguestfs.  For examples, see L<guestfs-java(3)>."
35061 msgstr ""
35062
35063 #. type: =item
35064 #: ../src/guestfs.pod:737
35065 msgid "B<OCaml>"
35066 msgstr "B<OCaml>"
35067
35068 #. type: textblock
35069 #: ../src/guestfs.pod:739
35070 msgid "See L<guestfs-ocaml(3)>."
35071 msgstr "Див. L<guestfs-ocaml(3)>."
35072
35073 #. type: =item
35074 #: ../src/guestfs.pod:741
35075 msgid "B<Perl>"
35076 msgstr "B<Perl>"
35077
35078 #. type: textblock
35079 #: ../src/guestfs.pod:743
35080 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35081 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
35082
35083 #. type: =item
35084 #: ../src/guestfs.pod:745
35085 msgid "B<PHP>"
35086 msgstr "B<PHP>"
35087
35088 #. type: textblock
35089 #: ../src/guestfs.pod:747
35090 msgid ""
35091 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35092 "the php-libguestfs package for your distribution."
35093 msgstr ""
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:750
35097 msgid "The PHP binding only works correctly on 64 bit machines."
35098 msgstr ""
35099
35100 #. type: =item
35101 #: ../src/guestfs.pod:752
35102 msgid "B<Python>"
35103 msgstr "B<Python>"
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:754
35107 msgid "See L<guestfs-python(3)>."
35108 msgstr "Див. L<guestfs-python(3)>."
35109
35110 #. type: =item
35111 #: ../src/guestfs.pod:756
35112 msgid "B<Ruby>"
35113 msgstr "B<Ruby>"
35114
35115 #. type: textblock
35116 #: ../src/guestfs.pod:758
35117 msgid "See L<guestfs-ruby(3)>."
35118 msgstr "Див. L<guestfs-ruby(3)>."
35119
35120 #. type: =item
35121 #: ../src/guestfs.pod:760
35122 msgid "B<shell scripts>"
35123 msgstr "B<скрипти оболонки>"
35124
35125 #. type: textblock
35126 #: ../src/guestfs.pod:762
35127 msgid "See L<guestfish(1)>."
35128 msgstr "Див. L<guestfish(1)>."
35129
35130 #. type: =head2
35131 #: ../src/guestfs.pod:766
35132 msgid "LIBGUESTFS GOTCHAS"
35133 msgstr ""
35134
35135 #. type: textblock
35136 #: ../src/guestfs.pod:768
35137 msgid ""
35138 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35139 "system [...] that works in the way it is documented but is counterintuitive "
35140 "and almost invites mistakes.\""
35141 msgstr ""
35142
35143 #. type: textblock
35144 #: ../src/guestfs.pod:772
35145 msgid ""
35146 "Since we developed libguestfs and the associated tools, there are several "
35147 "things we would have designed differently, but are now stuck with for "
35148 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35149 "release, you can expect these to change.  Beware of them."
35150 msgstr ""
35151
35152 #. type: =item
35153 #: ../src/guestfs.pod:780
35154 msgid "Autosync / forgetting to sync."
35155 msgstr ""
35156
35157 #. type: textblock
35158 #: ../src/guestfs.pod:782
35159 msgid ""
35160 "I<Update:> Autosync is enabled by default for all API users starting from "
35161 "libguestfs 1.5.24.  This section only applies to older versions."
35162 msgstr ""
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:785
35166 msgid ""
35167 "When modifying a filesystem from C or another language, you B<must> unmount "
35168 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35169 "libguestfs handle.  You can also call:"
35170 msgstr ""
35171
35172 #. type: verbatim
35173 #: ../src/guestfs.pod:789
35174 #, no-wrap
35175 msgid ""
35176 " guestfs_set_autosync (g, 1);\n"
35177 "\n"
35178 msgstr ""
35179 " guestfs_set_autosync (g, 1);\n"
35180 "\n"
35181
35182 #. type: textblock
35183 #: ../src/guestfs.pod:791
35184 msgid ""
35185 "to have the unmount/sync done automatically for you when the handle 'g' is "
35186 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35187 msgstr ""
35188
35189 #. type: textblock
35190 #: ../src/guestfs.pod:795
35191 msgid ""
35192 "If you forget to do this, then it is entirely possible that your changes "
35193 "won't be written out, or will be partially written, or (very rarely) that "
35194 "you'll get disk corruption."
35195 msgstr ""
35196
35197 #. type: textblock
35198 #: ../src/guestfs.pod:799
35199 msgid ""
35200 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35201 "guestfish scripts that forget to sync will work just fine, which can make "
35202 "this very puzzling if you are trying to debug a problem."
35203 msgstr ""
35204
35205 #. type: =item
35206 #: ../src/guestfs.pod:803
35207 msgid "Mount option C<-o sync> should not be the default."
35208 msgstr ""
35209
35210 #. type: textblock
35211 #: ../src/guestfs.pod:805
35212 msgid ""
35213 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35214 "libguestfs 1.13.16.  This section only applies to older versions."
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs.pod:808
35219 msgid ""
35220 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35221 "However C<-o sync> does not add any reliability benefit, but does have a "
35222 "very large performance impact."
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:812
35227 msgid ""
35228 "The work around is to use L</guestfs_mount_options> and set the mount "
35229 "options that you actually want to use."
35230 msgstr ""
35231
35232 #. type: =item
35233 #: ../src/guestfs.pod:815
35234 msgid "Read-only should be the default."
35235 msgstr ""
35236
35237 #. type: textblock
35238 #: ../src/guestfs.pod:817
35239 msgid ""
35240 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35241 "specify I<--rw> if you want to make changes to the image."
35242 msgstr ""
35243
35244 #. type: textblock
35245 #: ../src/guestfs.pod:820
35246 msgid "This would reduce the potential to corrupt live VM images."
35247 msgstr ""
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:822
35251 msgid ""
35252 "Note that many filesystems change the disk when you just mount and unmount, "
35253 "even if you didn't perform any writes.  You need to use L</"
35254 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35255 msgstr ""
35256
35257 #. type: =item
35258 #: ../src/guestfs.pod:826
35259 msgid "guestfish command line is hard to use."
35260 msgstr ""
35261
35262 #. type: textblock
35263 #: ../src/guestfs.pod:828
35264 msgid ""
35265 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35266 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35267 "exist, so it fails.  In earlier versions of guestfish the error message was "
35268 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35269 "we should have used C<guestfish -c command> to run commands."
35270 msgstr ""
35271
35272 #. type: =item
35273 #: ../src/guestfs.pod:835
35274 msgid "guestfish megabyte modifiers don't work right on all commands"
35275 msgstr ""
35276
35277 #. type: textblock
35278 #: ../src/guestfs.pod:837
35279 msgid ""
35280 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35281 "other modifiers).  What guestfish actually does is to multiply the number "
35282 "part by the modifier part and pass the result to the C API.  However this "
35283 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35284 "expecting some other unit (eg. megabytes)."
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:844
35289 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35290 msgstr ""
35291
35292 #. type: verbatim
35293 #: ../src/guestfs.pod:846
35294 #, no-wrap
35295 msgid ""
35296 " lvcreate LV VG 100M\n"
35297 "\n"
35298 msgstr ""
35299 " lvcreate LV VG 100M\n"
35300 "\n"
35301
35302 #. type: textblock
35303 #: ../src/guestfs.pod:848
35304 msgid ""
35305 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35306 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35307 "megabytes * megabytes) logical volume.  The error message you get from this "
35308 "is also a little obscure."
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:853
35313 msgid ""
35314 "This could be fixed in the generator by specially marking parameters and "
35315 "return values which take bytes or other units."
35316 msgstr ""
35317
35318 #. type: =item
35319 #: ../src/guestfs.pod:856
35320 msgid "Ambiguity between devices and paths"
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:858
35325 msgid ""
35326 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35327 "sdb2>) and a similar pathname.  A file might just happen to be called "
35328 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs.pod:863
35333 msgid ""
35334 "In the current API we usually resolve this ambiguity by having two separate "
35335 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35336 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35337 "detecting if the path supplied begins with C</dev/>."
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:869
35342 msgid ""
35343 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35344 "make paths/devices into structured names.  One way to do this would be to "
35345 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35346 "aspect of grub.  Another way would be to use a structured type, equivalent "
35347 "to this OCaml type:"
35348 msgstr ""
35349
35350 #. type: verbatim
35351 #: ../src/guestfs.pod:875
35352 #, no-wrap
35353 msgid ""
35354 " type path = Path of string | Device of int | Partition of int * int\n"
35355 "\n"
35356 msgstr ""
35357
35358 #. type: textblock
35359 #: ../src/guestfs.pod:877
35360 msgid "which would allow you to pass arguments like:"
35361 msgstr ""
35362
35363 #. type: verbatim
35364 #: ../src/guestfs.pod:879
35365 #, no-wrap
35366 msgid ""
35367 " Path \"/foo/bar\"\n"
35368 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35369 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35370 " Path \"/dev/sdb2\"    (* not a device *)\n"
35371 "\n"
35372 msgstr ""
35373
35374 #. type: textblock
35375 #: ../src/guestfs.pod:884
35376 msgid ""
35377 "As you can see there are still problems to resolve even with this "
35378 "representation.  Also consider how it might work in guestfish."
35379 msgstr ""
35380
35381 #. type: =head2
35382 #: ../src/guestfs.pod:889
35383 msgid "KEYS AND PASSPHRASES"
35384 msgstr "КЛЮЧІ І ПАРОЛІ"
35385
35386 #. type: textblock
35387 #: ../src/guestfs.pod:891
35388 msgid ""
35389 "Certain libguestfs calls take a parameter that contains sensitive key "
35390 "material, passed in as a C string."
35391 msgstr ""
35392
35393 #. type: textblock
35394 #: ../src/guestfs.pod:894
35395 msgid ""
35396 "In the future we would hope to change the libguestfs implementation so that "
35397 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35398 "swap.  However this is I<not> done at the moment, because of the complexity "
35399 "of such an implementation."
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:899
35404 msgid ""
35405 "Therefore you should be aware that any key parameter you pass to libguestfs "
35406 "might end up being written out to the swap partition.  If this is a concern, "
35407 "scrub the swap partition or don't use libguestfs on encrypted devices."
35408 msgstr ""
35409
35410 #. type: =head2
35411 #: ../src/guestfs.pod:904
35412 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35413 msgstr ""
35414
35415 #. type: textblock
35416 #: ../src/guestfs.pod:906
35417 msgid ""
35418 "All high-level libguestfs actions are synchronous.  If you want to use "
35419 "libguestfs asynchronously then you must create a thread."
35420 msgstr ""
35421
35422 #. type: textblock
35423 #: ../src/guestfs.pod:909
35424 msgid ""
35425 "Only use the handle from a single thread.  Either use the handle exclusively "
35426 "from one thread, or provide your own mutex so that two threads cannot issue "
35427 "calls on the same handle at the same time."
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:913
35432 msgid ""
35433 "See the graphical program guestfs-browser for one possible architecture for "
35434 "multithreaded programs using libvirt and libguestfs."
35435 msgstr ""
35436
35437 #. type: =head2
35438 #: ../src/guestfs.pod:916
35439 msgid "PATH"
35440 msgstr "ШЛЯХ"
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:918
35444 msgid ""
35445 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35446 "internal path."
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:921
35451 msgid ""
35452 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35453 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:924
35458 msgid ""
35459 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35460 "to change the directories that libguestfs will search in.  The value is a "
35461 "colon-separated list of paths.  The current directory is I<not> searched "
35462 "unless the path contains an empty element or C<.>.  For example "
35463 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35464 "then C</usr/lib/guestfs>."
35465 msgstr ""
35466
35467 #. type: =head2
35468 #: ../src/guestfs.pod:931
35469 msgid "QEMU WRAPPERS"
35470 msgstr ""
35471
35472 #. type: textblock
35473 #: ../src/guestfs.pod:933
35474 msgid ""
35475 "If you want to compile your own qemu, run qemu from a non-standard location, "
35476 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35477 "around qemu."
35478 msgstr ""
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:937
35482 msgid ""
35483 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35484 "last command in the shell script (so that qemu replaces the shell and "
35485 "becomes the direct child of the libguestfs-using program).  If you don't do "
35486 "this, then the qemu process won't be cleaned up correctly."
35487 msgstr ""
35488
35489 #. type: textblock
35490 #: ../src/guestfs.pod:942
35491 msgid ""
35492 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35493 "source:"
35494 msgstr ""
35495
35496 #. type: verbatim
35497 #: ../src/guestfs.pod:945
35498 #, no-wrap
35499 msgid ""
35500 " #!/bin/sh -\n"
35501 " qemudir=/home/rjones/d/qemu\n"
35502 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35503 "\n"
35504 msgstr ""
35505 " #!/bin/sh -\n"
35506 " qemudir=/home/rjones/d/qemu\n"
35507 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35508 "\n"
35509
35510 #. type: textblock
35511 #: ../src/guestfs.pod:949
35512 msgid ""
35513 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35514 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35515 "example:"
35516 msgstr ""
35517
35518 #. type: verbatim
35519 #: ../src/guestfs.pod:953
35520 #, no-wrap
35521 msgid ""
35522 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35523 "\n"
35524 msgstr ""
35525 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35526 "\n"
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:955
35530 msgid ""
35531 "Note that libguestfs also calls qemu with the -help and -version options in "
35532 "order to determine features."
35533 msgstr ""
35534
35535 #. type: textblock
35536 #: ../src/guestfs.pod:958
35537 msgid ""
35538 "Wrappers can also be used to edit the options passed to qemu.  In the "
35539 "following example, the C<-machine ...> option (C<-machine> and the following "
35540 "argument) are removed from the command line and replaced with C<-machine pc,"
35541 "accel=tcg>.  The while loop iterates over the options until it finds the "
35542 "right one to remove, putting the remaining options into the C<args> array."
35543 msgstr ""
35544
35545 #. type: verbatim
35546 #: ../src/guestfs.pod:965
35547 #, fuzzy, no-wrap
35548 #| msgid ""
35549 #| " #!/usr/bin/guestfish -f\n"
35550 #| "\n"
35551 msgid ""
35552 " #!/bin/bash -\n"
35553 " \n"
35554 msgstr ""
35555 " #!/usr/bin/guestfish -f\n"
35556 "\n"
35557
35558 #. type: verbatim
35559 #: ../src/guestfs.pod:967
35560 #, no-wrap
35561 msgid ""
35562 " i=0\n"
35563 " while [ $# -gt 0 ]; do\n"
35564 "     case \"$1\" in\n"
35565 "     -machine)\n"
35566 "         shift 2;;\n"
35567 "     *)\n"
35568 "         args[i]=\"$1\"\n"
35569 "         (( i++ ))\n"
35570 "         shift ;;\n"
35571 "     esac\n"
35572 " done\n"
35573 " \n"
35574 msgstr ""
35575
35576 #. type: verbatim
35577 #: ../src/guestfs.pod:979
35578 #, no-wrap
35579 msgid ""
35580 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35581 "\n"
35582 msgstr ""
35583
35584 #. type: =head2
35585 #: ../src/guestfs.pod:981
35586 msgid "ATTACHING TO RUNNING DAEMONS"
35587 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35588
35589 #. type: textblock
35590 #: ../src/guestfs.pod:983
35591 msgid ""
35592 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35593 "babies.  Use with caution."
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:986
35598 msgid ""
35599 "I<Note (2):> This section explains how to attach to a running daemon from a "
35600 "low level perspective.  For most users, simply using virt tools such as "
35601 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35602 msgstr ""
35603
35604 #. type: =head3
35605 #: ../src/guestfs.pod:990
35606 msgid "Using guestfs_set_attach_method"
35607 msgstr "За допомогою guestfs_set_attach_method"
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:992
35611 msgid ""
35612 "By calling L</guestfs_set_attach_method> you can change how the library "
35613 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35614 "ARCHITECTURE> for some background)."
35615 msgstr ""
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:996
35619 msgid ""
35620 "The normal attach method is C<appliance>, where a small appliance is created "
35621 "containing the daemon, and then the library connects to this."
35622 msgstr ""
35623
35624 #. type: textblock
35625 #: ../src/guestfs.pod:999
35626 msgid ""
35627 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35628 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35629 "daemon over the Unix domain socket."
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:1003
35634 msgid ""
35635 "The normal use for this is to connect to a running virtual machine that "
35636 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35637 "files inside the live virtual machine."
35638 msgstr ""
35639
35640 #. type: =head3
35641 #: ../src/guestfs.pod:1007
35642 msgid "Using guestfs_add_domain with live flag"
35643 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35644
35645 #. type: textblock
35646 #: ../src/guestfs.pod:1009
35647 msgid ""
35648 "L</guestfs_add_domain> provides some help for getting the correct attach "
35649 "method.  If you pass the C<live> option to this function, then (if the "
35650 "virtual machine is running) it will examine the libvirt XML looking for a "
35651 "virtio-serial channel to connect to:"
35652 msgstr ""
35653
35654 #. type: verbatim
35655 #: ../src/guestfs.pod:1015
35656 #, no-wrap
35657 msgid ""
35658 " <domain>\n"
35659 "   ...\n"
35660 "   <devices>\n"
35661 "     ...\n"
35662 "     <channel type='unix'>\n"
35663 "       <source mode='bind' path='/path/to/socket'/>\n"
35664 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35665 "     </channel>\n"
35666 "     ...\n"
35667 "   </devices>\n"
35668 " </domain>\n"
35669 "\n"
35670 msgstr ""
35671 " <domain>\n"
35672 "   ...\n"
35673 "   <devices>\n"
35674 "     ...\n"
35675 "     <channel type='unix'>\n"
35676 "       <source mode='bind' path='/path/to/socket'/>\n"
35677 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35678 "     </channel>\n"
35679 "     ...\n"
35680 "   </devices>\n"
35681 " </domain>\n"
35682 "\n"
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:1027
35686 msgid ""
35687 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35688 "method to C<unix:/path/to/socket>."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:1030
35693 msgid ""
35694 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35695 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35696 "to attach to and modify live virtual machines."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../src/guestfs.pod:1034
35701 msgid ""
35702 "The virtual machine needs to have been set up beforehand so that it has the "
35703 "virtio-serial channel and so that guestfsd is running inside it."
35704 msgstr ""
35705
35706 #. type: =head2
35707 #: ../src/guestfs.pod:1038
35708 msgid "ABI GUARANTEE"
35709 msgstr "ГАРАНТІЯ ЩОДО ABI"
35710
35711 #. type: textblock
35712 #: ../src/guestfs.pod:1040
35713 msgid ""
35714 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35715 "actions as outlined in this section.  Although we will deprecate some "
35716 "actions, for example if they get replaced by newer calls, we will keep the "
35717 "old actions forever.  This allows you the developer to program in confidence "
35718 "against the libguestfs API."
35719 msgstr ""
35720
35721 #. type: =head2
35722 #: ../src/guestfs.pod:1046
35723 msgid "BLOCK DEVICE NAMING"
35724 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
35725
35726 #. type: textblock
35727 #: ../src/guestfs.pod:1048
35728 msgid ""
35729 "In the kernel there is now quite a profusion of schemata for naming block "
35730 "devices (in this context, by I<block device> I mean a physical or virtual "
35731 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35732 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35733 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35734 "for the old IDE driver (particularly for SATA devices) those devices also "
35735 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35736 "paravirtualized drivers.  This has created several different naming systems, "
35737 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35738 msgstr ""
35739
35740 #. type: textblock
35741 #: ../src/guestfs.pod:1060
35742 msgid ""
35743 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35744 "Linux kernel to access block devices.  We can run a variety of appliances "
35745 "based on a variety of Linux kernels."
35746 msgstr ""
35747
35748 #. type: textblock
35749 #: ../src/guestfs.pod:1064
35750 msgid ""
35751 "This causes a problem for libguestfs because many API calls use device or "
35752 "partition names.  Working scripts and the recipe (example) scripts that we "
35753 "make available over the internet could fail if the naming scheme changes."
35754 msgstr ""
35755
35756 #. type: textblock
35757 #: ../src/guestfs.pod:1069
35758 msgid ""
35759 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35760 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35761 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35762 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35763 msgstr ""
35764
35765 #. type: textblock
35766 #: ../src/guestfs.pod:1075
35767 msgid ""
35768 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35769 "L</guestfs_list_partitions> and similar calls return the true names of the "
35770 "devices and partitions as known to the appliance."
35771 msgstr ""
35772
35773 #. type: =head3
35774 #: ../src/guestfs.pod:1080
35775 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35776 msgstr ""
35777
35778 #. type: textblock
35779 #: ../src/guestfs.pod:1082
35780 msgid ""
35781 "Usually this translation is transparent.  However in some (very rare)  cases "
35782 "you may need to know the exact algorithm.  Such cases include where you use "
35783 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35784 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../src/guestfs.pod:1088
35789 msgid ""
35790 "The algorithm is applied only to I<parameters> which are known to be either "
35791 "device or partition names.  Return values from functions such as L</"
35792 "guestfs_list_devices> are never changed."
35793 msgstr ""
35794
35795 #. type: textblock
35796 #: ../src/guestfs.pod:1096
35797 msgid "Is the string a parameter which is a device or partition name?"
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:1100
35802 msgid "Does the string begin with C</dev/sd>?"
35803 msgstr "Чи починається рядок з C</dev/sd>?"
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:1104
35807 msgid ""
35808 "Does the named device exist? If so, we use that device.  However if I<not> "
35809 "then we continue with this algorithm."
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:1109
35814 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:1111
35819 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:1113
35824 msgid "If that named device exists, use it.  If not, continue."
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:1117
35829 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:1119
35834 msgid "If that named device exists, use it.  If not, return an error."
35835 msgstr ""
35836
35837 #. type: =head3
35838 #: ../src/guestfs.pod:1123
35839 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35840 msgstr ""
35841
35842 #. type: textblock
35843 #: ../src/guestfs.pod:1125
35844 msgid ""
35845 "Although the standard naming scheme and automatic translation is useful for "
35846 "simple programs and guestfish scripts, for larger programs it is best not to "
35847 "rely on this mechanism."
35848 msgstr ""
35849
35850 #. type: textblock
35851 #: ../src/guestfs.pod:1129
35852 msgid ""
35853 "Where possible for maximum future portability programs using libguestfs "
35854 "should use these future-proof techniques:"
35855 msgstr ""
35856
35857 #. type: textblock
35858 #: ../src/guestfs.pod:1136
35859 msgid ""
35860 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35861 "device names, and then use those names directly."
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:1139
35866 msgid ""
35867 "Since those device names exist by definition, they will never be translated."
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:1144
35872 msgid ""
35873 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35874 "filesystem labels."
35875 msgstr ""
35876
35877 #. type: =head1
35878 #: ../src/guestfs.pod:1149
35879 msgid "SECURITY"
35880 msgstr "БЕЗПЕКА"
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:1151
35884 msgid ""
35885 "This section discusses security implications of using libguestfs, "
35886 "particularly with untrusted or malicious guests or disk images."
35887 msgstr ""
35888
35889 #. type: =head2
35890 #: ../src/guestfs.pod:1154
35891 msgid "GENERAL SECURITY CONSIDERATIONS"
35892 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:1156
35896 msgid ""
35897 "Be careful with any files or data that you download from a guest (by "
35898 "\"download\" we mean not just the L</guestfs_download> command but any "
35899 "command that reads files, filenames, directories or anything else from a "
35900 "disk image).  An attacker could manipulate the data to fool your program "
35901 "into doing the wrong thing.  Consider cases such as:"
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:1166
35906 msgid "the data (file etc) not being present"
35907 msgstr ""
35908
35909 #. type: textblock
35910 #: ../src/guestfs.pod:1170
35911 msgid "being present but empty"
35912 msgstr ""
35913
35914 #. type: textblock
35915 #: ../src/guestfs.pod:1174
35916 msgid "being much larger than normal"
35917 msgstr ""
35918
35919 #. type: textblock
35920 #: ../src/guestfs.pod:1178
35921 msgid "containing arbitrary 8 bit data"
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:1182
35926 msgid "being in an unexpected character encoding"
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:1186
35931 msgid "containing homoglyphs."
35932 msgstr ""
35933
35934 #. type: =head2
35935 #: ../src/guestfs.pod:1190
35936 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35937 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35938
35939 #. type: textblock
35940 #: ../src/guestfs.pod:1192
35941 msgid ""
35942 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35943 "(VFS) module can sometimes be escalated into exploits by deliberately "
35944 "creating a malicious, malformed filesystem.  These exploits are very severe "
35945 "for two reasons.  Firstly there are very many filesystem drivers in the "
35946 "kernel, and many of them are infrequently used and not much developer "
35947 "attention has been paid to the code.  Linux userspace helps potential "
35948 "crackers by detecting the filesystem type and automatically choosing the "
35949 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35950 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35951 "exploit (worse in some ways), giving immediate and total access to the "
35952 "system right down to the hardware level."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:1205
35957 msgid ""
35958 "That explains why you should never mount a filesystem from an untrusted "
35959 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35960 "inside a qemu virtual machine, usually running as a non-root user.  The "
35961 "attacker would need to write a filesystem which first exploited the kernel, "
35962 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35963 "the libguestfs protocol, and finally to be as serious as the host kernel "
35964 "exploit it would need to escalate its privileges to root.  This multi-step "
35965 "escalation, performed by a static piece of data, is thought to be extremely "
35966 "hard to do, although we never say 'never' about security issues."
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:1216
35971 msgid ""
35972 "In any case callers can reduce the attack surface by forcing the filesystem "
35973 "type when mounting (use L</guestfs_mount_vfs>)."
35974 msgstr ""
35975
35976 #. type: =head2
35977 #: ../src/guestfs.pod:1219
35978 msgid "PROTOCOL SECURITY"
35979 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:1221
35983 msgid ""
35984 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35985 "defined upper message size.  However a program that uses libguestfs must "
35986 "also take care - for example you can write a program that downloads a binary "
35987 "from a disk image and executes it locally, and no amount of protocol "
35988 "security will save you from the consequences."
35989 msgstr ""
35990
35991 #. type: =head2
35992 #: ../src/guestfs.pod:1227
35993 msgid "INSPECTION SECURITY"
35994 msgstr ""
35995
35996 #. type: textblock
35997 #: ../src/guestfs.pod:1229
35998 msgid ""
35999 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36000 "directly from the guest, and these could contain any 8 bit data.  Callers "
36001 "should be careful to escape these before printing them to a structured file "
36002 "(for example, use HTML escaping if creating a web page)."
36003 msgstr ""
36004
36005 #. type: textblock
36006 #: ../src/guestfs.pod:1235
36007 msgid ""
36008 "Guest configuration may be altered in unusual ways by the administrator of "
36009 "the virtual machine, and may not reflect reality (particularly for untrusted "
36010 "or actively malicious guests).  For example we parse the hostname from "
36011 "configuration files like C</etc/sysconfig/network> that we find in the "
36012 "guest, but the guest administrator can easily manipulate these files to "
36013 "provide the wrong hostname."
36014 msgstr ""
36015
36016 #. type: textblock
36017 #: ../src/guestfs.pod:1243
36018 msgid ""
36019 "The inspection API parses guest configuration using two external libraries: "
36020 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36021 "designed to be robust in the face of malicious data, although denial of "
36022 "service attacks are still possible, for example with oversized configuration "
36023 "files."
36024 msgstr ""
36025
36026 #. type: =head2
36027 #: ../src/guestfs.pod:1249
36028 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36029 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:1251
36033 msgid ""
36034 "Be very cautious about running commands from the guest.  By running a "
36035 "command in the guest, you are giving CPU time to a binary that you do not "
36036 "control, under the same user account as the library, albeit wrapped in qemu "
36037 "virtualization.  More information and alternatives can be found in the "
36038 "section L</RUNNING COMMANDS>."
36039 msgstr ""
36040
36041 #. type: =head2
36042 #: ../src/guestfs.pod:1257
36043 msgid "CVE-2010-3851"
36044 msgstr "CVE-2010-3851"
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:1259
36048 msgid "https://bugzilla.redhat.com/642934"
36049 msgstr "https://bugzilla.redhat.com/642934"
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:1261
36053 msgid ""
36054 "This security bug concerns the automatic disk format detection that qemu "
36055 "does on disk images."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:1264
36060 msgid ""
36061 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36062 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36063 "for one of the known headers, and if none is found then assuming the disk "
36064 "image must be raw."
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:1269
36069 msgid ""
36070 "This allows a guest which has been given a raw disk image to write some "
36071 "other header.  At next boot (or when the disk image is accessed by "
36072 "libguestfs) qemu would do autodetection and think the disk image format was, "
36073 "say, qcow2 based on the header written by the guest."
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:1274
36078 msgid ""
36079 "This in itself would not be a problem, but qcow2 offers many features, one "
36080 "of which is to allow a disk image to refer to another image (called the "
36081 "\"backing disk\").  It does this by placing the path to the backing disk "
36082 "into the qcow2 header.  This path is not validated and could point to any "
36083 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36084 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36085 "control of the attacker."
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:1282
36090 msgid ""
36091 "In libguestfs this is rather hard to exploit except under two circumstances:"
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:1289
36096 msgid "You have enabled the network or have opened the disk in write mode."
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:1293
36101 msgid ""
36102 "You are also running untrusted code from the guest (see L</RUNNING "
36103 "COMMANDS>)."
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:1298
36108 msgid ""
36109 "The way to avoid this is to specify the expected disk format when adding "
36110 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36111 "should always do this if the disk is raw format, and it's a good idea for "
36112 "other cases too."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:1303
36117 msgid ""
36118 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36119 "format is fetched from libvirt and passed through."
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:1306
36124 msgid ""
36125 "For libguestfs tools, use the I<--format> command line parameter as "
36126 "appropriate."
36127 msgstr ""
36128
36129 #. type: =head1
36130 #: ../src/guestfs.pod:1309
36131 msgid "CONNECTION MANAGEMENT"
36132 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
36133
36134 #. type: =head2
36135 #: ../src/guestfs.pod:1311
36136 msgid "guestfs_h *"
36137 msgstr "guestfs_h *"
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:1313
36141 msgid ""
36142 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36143 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36144 "handle and release all resources used."
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:1317
36149 msgid ""
36150 "For information on using multiple handles and threads, see the section L</"
36151 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36152 msgstr ""
36153
36154 #. type: =head2
36155 #: ../src/guestfs.pod:1320
36156 msgid "guestfs_create"
36157 msgstr "guestfs_create"
36158
36159 #. type: verbatim
36160 #: ../src/guestfs.pod:1322
36161 #, no-wrap
36162 msgid ""
36163 " guestfs_h *guestfs_create (void);\n"
36164 "\n"
36165 msgstr ""
36166 " guestfs_h *guestfs_create (void);\n"
36167 "\n"
36168
36169 #. type: textblock
36170 #: ../src/guestfs.pod:1324
36171 msgid "Create a connection handle."
36172 msgstr "Створити дескриптор з’єднання."
36173
36174 #. type: textblock
36175 #: ../src/guestfs.pod:1326
36176 msgid ""
36177 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36178 "NULL."
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:1329
36183 msgid ""
36184 "You have to \"configure\" the handle after creating it.  This includes "
36185 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36186 "handle at least once."
36187 msgstr ""
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:1333
36191 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:1335
36196 msgid ""
36197 "You may also want to configure error handling for the handle.  See the L</"
36198 "ERROR HANDLING> section below."
36199 msgstr ""
36200
36201 #. type: =head2
36202 #: ../src/guestfs.pod:1338
36203 msgid "guestfs_close"
36204 msgstr "guestfs_close"
36205
36206 #. type: verbatim
36207 #: ../src/guestfs.pod:1340
36208 #, no-wrap
36209 msgid ""
36210 " void guestfs_close (guestfs_h *g);\n"
36211 "\n"
36212 msgstr ""
36213 " void guestfs_close (guestfs_h *g);\n"
36214 "\n"
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:1342
36218 msgid "This closes the connection handle and frees up all resources used."
36219 msgstr ""
36220
36221 #. type: textblock
36222 #: ../src/guestfs.pod:1344
36223 msgid ""
36224 "If autosync was set on the handle and the handle was launched, then this "
36225 "implicitly calls various functions to unmount filesystems and sync the "
36226 "disk.  See L</guestfs_set_autosync> for more details."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:1348
36231 msgid "If a close callback was set on the handle, then it is called."
36232 msgstr ""
36233
36234 #. type: =head1
36235 #: ../src/guestfs.pod:1350
36236 msgid "ERROR HANDLING"
36237 msgstr "ОБРОБКА ПОМИЛОК"
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:1352
36241 msgid ""
36242 "API functions can return errors.  For example, almost all functions that "
36243 "return C<int> will return C<-1> to indicate an error."
36244 msgstr ""
36245
36246 #. type: textblock
36247 #: ../src/guestfs.pod:1355
36248 msgid ""
36249 "Additional information is available for errors: an error message string and "
36250 "optionally an error number (errno) if the thing that failed was a system "
36251 "call."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:1359
36256 msgid ""
36257 "You can get at the additional information about the last error on the handle "
36258 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36259 "up an error handler with L</guestfs_set_error_handler>."
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:1364
36264 msgid ""
36265 "When the handle is created, a default error handler is installed which "
36266 "prints the error message string to C<stderr>.  For small short-running "
36267 "command line programs it is sufficient to do:"
36268 msgstr ""
36269
36270 #. type: verbatim
36271 #: ../src/guestfs.pod:1368
36272 #, no-wrap
36273 msgid ""
36274 " if (guestfs_launch (g) == -1)\n"
36275 "   exit (EXIT_FAILURE);\n"
36276 "\n"
36277 msgstr ""
36278 " if (guestfs_launch (g) == -1)\n"
36279 "   exit (EXIT_FAILURE);\n"
36280 "\n"
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:1371
36284 msgid ""
36285 "since the default error handler will ensure that an error message has been "
36286 "printed to C<stderr> before the program exits."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1374
36291 msgid ""
36292 "For other programs the caller will almost certainly want to install an "
36293 "alternate error handler or do error handling in-line like this:"
36294 msgstr ""
36295
36296 #. type: verbatim
36297 #: ../src/guestfs.pod:1377
36298 #, no-wrap
36299 msgid ""
36300 " /* This disables the default behaviour of printing errors\n"
36301 "    on stderr. */\n"
36302 " guestfs_set_error_handler (g, NULL, NULL);\n"
36303 " \n"
36304 msgstr ""
36305
36306 #. type: verbatim
36307 #: ../src/guestfs.pod:1381
36308 #, fuzzy, no-wrap
36309 #| msgid ""
36310 #| " if (guestfs_launch (g) == -1) {\n"
36311 #| "   /* Examine the error message and print it etc. */\n"
36312 #| "   char *msg = guestfs_last_error (g);\n"
36313 #| "   int errnum = guestfs_last_errno (g);\n"
36314 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
36315 #| "   /* ... */\n"
36316 #| "  }\n"
36317 #| "\n"
36318 msgid ""
36319 " if (guestfs_launch (g) == -1) {\n"
36320 "   /* Examine the error message and print it etc. */\n"
36321 "   char *msg = guestfs_last_error (g);\n"
36322 "   int errnum = guestfs_last_errno (g);\n"
36323 "   fprintf (stderr, \"%s\", msg);\n"
36324 "   if (errnum != 0)\n"
36325 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36326 "   fprintf (stderr, \"\\n\");\n"
36327 "   /* ... */\n"
36328 " }\n"
36329 "\n"
36330 msgstr ""
36331 " if (guestfs_launch (g) == -1) {\n"
36332 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
36333 "   char *msg = guestfs_last_error (g);\n"
36334 "   int errnum = guestfs_last_errno (g);\n"
36335 "   fprintf (stderr, \"%s\\n\", msg);\n"
36336 "   /* ... */\n"
36337 "  }\n"
36338 "\n"
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:1392
36342 msgid ""
36343 "Out of memory errors are handled differently.  The default action is to call "
36344 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36345 "guestfs_set_out_of_memory_handler>."
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:1396
36350 msgid ""
36351 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36352 "because there is no handle if this happens there is no way to get additional "
36353 "error information.  However L</guestfs_create> is supposed to be a "
36354 "lightweight operation which can only fail because of insufficient memory (it "
36355 "returns NULL in this case)."
36356 msgstr ""
36357
36358 #. type: =head2
36359 #: ../src/guestfs.pod:1402
36360 msgid "guestfs_last_error"
36361 msgstr "guestfs_last_error"
36362
36363 #. type: verbatim
36364 #: ../src/guestfs.pod:1404
36365 #, no-wrap
36366 msgid ""
36367 " const char *guestfs_last_error (guestfs_h *g);\n"
36368 "\n"
36369 msgstr ""
36370 " const char *guestfs_last_error (guestfs_h *g);\n"
36371 "\n"
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:1406
36375 msgid ""
36376 "This returns the last error message that happened on C<g>.  If there has not "
36377 "been an error since the handle was created, then this returns C<NULL>."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:1410
36382 msgid ""
36383 "The lifetime of the returned string is until the next error occurs, or L</"
36384 "guestfs_close> is called."
36385 msgstr ""
36386
36387 #. type: =head2
36388 #: ../src/guestfs.pod:1413
36389 msgid "guestfs_last_errno"
36390 msgstr "guestfs_last_errno"
36391
36392 #. type: verbatim
36393 #: ../src/guestfs.pod:1415
36394 #, no-wrap
36395 msgid ""
36396 " int guestfs_last_errno (guestfs_h *g);\n"
36397 "\n"
36398 msgstr ""
36399 " int guestfs_last_errno (guestfs_h *g);\n"
36400 "\n"
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:1417
36404 msgid "This returns the last error number (errno) that happened on C<g>."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:1419
36409 msgid "If successful, an errno integer not equal to zero is returned."
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:1421
36414 msgid ""
36415 "If no error, this returns 0.  This call can return 0 in three situations:"
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:1428
36420 msgid "There has not been any error on the handle."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:1432
36425 msgid ""
36426 "There has been an error but the errno was meaningless.  This corresponds to "
36427 "the case where the error did not come from a failed system call, but for "
36428 "some other reason."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:1438
36433 msgid ""
36434 "There was an error from a failed system call, but for some reason the errno "
36435 "was not captured and returned.  This usually indicates a bug in libguestfs."
36436 msgstr ""
36437
36438 #. type: textblock
36439 #: ../src/guestfs.pod:1444
36440 msgid ""
36441 "Libguestfs tries to convert the errno from inside the applicance into a "
36442 "corresponding errno for the caller (not entirely trivial: the appliance "
36443 "might be running a completely different operating system from the library "
36444 "and error numbers are not standardized across Un*xen).  If this could not be "
36445 "done, then the error is translated to C<EINVAL>.  In practice this should "
36446 "only happen in very rare circumstances."
36447 msgstr ""
36448
36449 #. type: =head2
36450 #: ../src/guestfs.pod:1452
36451 msgid "guestfs_set_error_handler"
36452 msgstr "guestfs_set_error_handler"
36453
36454 #. type: verbatim
36455 #: ../src/guestfs.pod:1454
36456 #, no-wrap
36457 msgid ""
36458 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36459 "                                           void *opaque,\n"
36460 "                                           const char *msg);\n"
36461 " void guestfs_set_error_handler (guestfs_h *g,\n"
36462 "                                 guestfs_error_handler_cb cb,\n"
36463 "                                 void *opaque);\n"
36464 "\n"
36465 msgstr ""
36466 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36467 "                                           void *opaque,\n"
36468 "                                           const char *msg);\n"
36469 " void guestfs_set_error_handler (guestfs_h *g,\n"
36470 "                                 guestfs_error_handler_cb cb,\n"
36471 "                                 void *opaque);\n"
36472 "\n"
36473
36474 #. type: textblock
36475 #: ../src/guestfs.pod:1461
36476 msgid ""
36477 "The callback C<cb> will be called if there is an error.  The parameters "
36478 "passed to the callback are an opaque data pointer and the error message "
36479 "string."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:1465
36484 msgid ""
36485 "C<errno> is not passed to the callback.  To get that the callback must call "
36486 "L</guestfs_last_errno>."
36487 msgstr ""
36488
36489 #. type: textblock
36490 #: ../src/guestfs.pod:1468
36491 msgid ""
36492 "Note that the message string C<msg> is freed as soon as the callback "
36493 "function returns, so if you want to stash it somewhere you must make your "
36494 "own copy."
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:1472
36499 msgid "The default handler prints messages on C<stderr>."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:1474
36504 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36505 msgstr ""
36506
36507 #. type: =head2
36508 #: ../src/guestfs.pod:1476
36509 msgid "guestfs_get_error_handler"
36510 msgstr "guestfs_get_error_handler"
36511
36512 #. type: verbatim
36513 #: ../src/guestfs.pod:1478
36514 #, no-wrap
36515 msgid ""
36516 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36517 "                                                     void **opaque_rtn);\n"
36518 "\n"
36519 msgstr ""
36520 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36521 "                                                     void **opaque_rtn);\n"
36522 "\n"
36523
36524 #. type: textblock
36525 #: ../src/guestfs.pod:1481
36526 msgid "Returns the current error handler callback."
36527 msgstr ""
36528
36529 #. type: =head2
36530 #: ../src/guestfs.pod:1483
36531 msgid "guestfs_set_out_of_memory_handler"
36532 msgstr "guestfs_set_out_of_memory_handler"
36533
36534 #. type: verbatim
36535 #: ../src/guestfs.pod:1485
36536 #, fuzzy, no-wrap
36537 #| msgid ""
36538 #| " typedef void (*guestfs_abort_cb) (void);\n"
36539 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36540 #| "                                        guestfs_abort_cb);\n"
36541 #| "\n"
36542 msgid ""
36543 " typedef void (*guestfs_abort_cb) (void);\n"
36544 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36545 "                                         guestfs_abort_cb);\n"
36546 "\n"
36547 msgstr ""
36548 " typedef void (*guestfs_abort_cb) (void);\n"
36549 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36550 "                                        guestfs_abort_cb);\n"
36551 "\n"
36552
36553 #. type: textblock
36554 #: ../src/guestfs.pod:1489
36555 msgid ""
36556 "The callback C<cb> will be called if there is an out of memory situation.  "
36557 "I<Note this callback must not return>."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:1492
36562 msgid "The default is to call L<abort(3)>."
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:1494
36567 msgid ""
36568 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36569 msgstr ""
36570
36571 #. type: =head2
36572 #: ../src/guestfs.pod:1497
36573 msgid "guestfs_get_out_of_memory_handler"
36574 msgstr "guestfs_get_out_of_memory_handler"
36575
36576 #. type: verbatim
36577 #: ../src/guestfs.pod:1499
36578 #, no-wrap
36579 msgid ""
36580 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36581 "\n"
36582 msgstr ""
36583 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36584 "\n"
36585
36586 #. type: textblock
36587 #: ../src/guestfs.pod:1501
36588 msgid "This returns the current out of memory handler."
36589 msgstr ""
36590
36591 #. type: =head1
36592 #: ../src/guestfs.pod:1503
36593 msgid "API CALLS"
36594 msgstr "ВИКЛИКИ API"
36595
36596 #. type: =head1
36597 #: ../src/guestfs.pod:1507
36598 msgid "STRUCTURES"
36599 msgstr "СТРУКТУРИ"
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:1509
36603 msgid "@STRUCTS@"
36604 msgstr "@STRUCTS@"
36605
36606 #. type: =head1
36607 #: ../src/guestfs.pod:1511
36608 msgid "AVAILABILITY"
36609 msgstr "ДОСТУПНІСТЬ"
36610
36611 #. type: =head2
36612 #: ../src/guestfs.pod:1513
36613 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36614 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:1515
36618 msgid ""
36619 "Using L</guestfs_available> you can test availability of the following "
36620 "groups of functions.  This test queries the appliance to see if the "
36621 "appliance you are currently using supports the functionality."
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:1520
36626 msgid "@AVAILABILITY@"
36627 msgstr "@AVAILABILITY@"
36628
36629 #. type: =head2
36630 #: ../src/guestfs.pod:1522
36631 msgid "GUESTFISH supported COMMAND"
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:1524
36636 msgid ""
36637 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36638 "prints out the available groups and whether they are supported by this build "
36639 "of libguestfs.  Note however that you have to do C<run> first."
36640 msgstr ""
36641
36642 #. type: =head2
36643 #: ../src/guestfs.pod:1529
36644 msgid "SINGLE CALLS AT COMPILE TIME"
36645 msgstr ""
36646
36647 #. type: textblock
36648 #: ../src/guestfs.pod:1531
36649 msgid ""
36650 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36651 "function, such as:"
36652 msgstr ""
36653
36654 #. type: verbatim
36655 #: ../src/guestfs.pod:1534
36656 #, no-wrap
36657 msgid ""
36658 " #define LIBGUESTFS_HAVE_DD 1\n"
36659 "\n"
36660 msgstr ""
36661 " #define LIBGUESTFS_HAVE_DD 1\n"
36662 "\n"
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:1536
36666 msgid "if L</guestfs_dd> is available."
36667 msgstr ""
36668
36669 #. type: textblock
36670 #: ../src/guestfs.pod:1538
36671 msgid ""
36672 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36673 "function is available at compile time, we recommended using build tools such "
36674 "as autoconf or cmake.  For example in autotools you could use:"
36675 msgstr ""
36676
36677 #. type: verbatim
36678 #: ../src/guestfs.pod:1543
36679 #, no-wrap
36680 msgid ""
36681 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36682 " AC_CHECK_FUNCS([guestfs_dd])\n"
36683 "\n"
36684 msgstr ""
36685 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36686 " AC_CHECK_FUNCS([guestfs_dd])\n"
36687 "\n"
36688
36689 #. type: textblock
36690 #: ../src/guestfs.pod:1546
36691 msgid ""
36692 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36693 "in your program."
36694 msgstr ""
36695
36696 #. type: =head2
36697 #: ../src/guestfs.pod:1549
36698 msgid "SINGLE CALLS AT RUN TIME"
36699 msgstr ""
36700
36701 #. type: textblock
36702 #: ../src/guestfs.pod:1551
36703 msgid ""
36704 "Testing at compile time doesn't guarantee that a function really exists in "
36705 "the library.  The reason is that you might be dynamically linked against a "
36706 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36707 "This situation unfortunately results in a segmentation fault, which is a "
36708 "shortcoming of the C dynamic linking system itself."
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:1558
36713 msgid ""
36714 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36715 "in this example program (note that you still need the compile time check as "
36716 "well):"
36717 msgstr ""
36718
36719 #. type: verbatim
36720 #: ../src/guestfs.pod:1562
36721 #, no-wrap
36722 msgid ""
36723 " #include <stdio.h>\n"
36724 " #include <stdlib.h>\n"
36725 " #include <unistd.h>\n"
36726 " #include <dlfcn.h>\n"
36727 " #include <guestfs.h>\n"
36728 " \n"
36729 msgstr ""
36730 " #include <stdio.h>\n"
36731 " #include <stdlib.h>\n"
36732 " #include <unistd.h>\n"
36733 " #include <dlfcn.h>\n"
36734 " #include <guestfs.h>\n"
36735 " \n"
36736
36737 #. type: verbatim
36738 #: ../src/guestfs.pod:1568
36739 #, no-wrap
36740 msgid ""
36741 " main ()\n"
36742 " {\n"
36743 " #ifdef LIBGUESTFS_HAVE_DD\n"
36744 "   void *dl;\n"
36745 "   int has_function;\n"
36746 " \n"
36747 msgstr ""
36748 " main ()\n"
36749 " {\n"
36750 " #ifdef LIBGUESTFS_HAVE_DD\n"
36751 "   void *dl;\n"
36752 "   int has_function;\n"
36753 " \n"
36754
36755 #. type: verbatim
36756 #: ../src/guestfs.pod:1574
36757 #, no-wrap
36758 msgid ""
36759 "   /* Test if the function guestfs_dd is really available. */\n"
36760 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36761 "   if (!dl) {\n"
36762 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36763 "     exit (EXIT_FAILURE);\n"
36764 "   }\n"
36765 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36766 "   dlclose (dl);\n"
36767 " \n"
36768 msgstr ""
36769
36770 #. type: verbatim
36771 #: ../src/guestfs.pod:1583
36772 #, no-wrap
36773 msgid ""
36774 "   if (!has_function)\n"
36775 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36776 "   else {\n"
36777 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36778 "     /* Now it's safe to call\n"
36779 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36780 "     */\n"
36781 "   }\n"
36782 " #else\n"
36783 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36784 " #endif\n"
36785 "  }\n"
36786 "\n"
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:1596
36791 msgid ""
36792 "You may think the above is an awful lot of hassle, and it is.  There are "
36793 "other ways outside of the C linking system to ensure that this kind of "
36794 "incompatibility never arises, such as using package versioning:"
36795 msgstr ""
36796
36797 #. type: verbatim
36798 #: ../src/guestfs.pod:1601
36799 #, no-wrap
36800 msgid ""
36801 " Requires: libguestfs >= 1.0.80\n"
36802 "\n"
36803 msgstr ""
36804
36805 #. type: =head1
36806 #: ../src/guestfs.pod:1603
36807 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../src/guestfs.pod:1605
36812 msgid ""
36813 "A recent feature of the API is the introduction of calls which take optional "
36814 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36815 "takes variable arguments (ie. C<...>), as in this example:"
36816 msgstr ""
36817
36818 #. type: verbatim
36819 #: ../src/guestfs.pod:1610
36820 #, no-wrap
36821 msgid ""
36822 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36823 "\n"
36824 msgstr ""
36825 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36826 "\n"
36827
36828 #. type: textblock
36829 #: ../src/guestfs.pod:1612
36830 msgid ""
36831 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36832 "call with no optional arguments specified:"
36833 msgstr ""
36834
36835 #. type: verbatim
36836 #: ../src/guestfs.pod:1615
36837 #, no-wrap
36838 msgid ""
36839 " guestfs_add_drive_opts (g, filename, -1);\n"
36840 "\n"
36841 msgstr ""
36842 " guestfs_add_drive_opts (g, filename, -1);\n"
36843 "\n"
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:1617
36847 msgid "With a single optional argument:"
36848 msgstr ""
36849
36850 #. type: verbatim
36851 #: ../src/guestfs.pod:1619
36852 #, no-wrap
36853 msgid ""
36854 " guestfs_add_drive_opts (g, filename,\n"
36855 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36856 "                         -1);\n"
36857 "\n"
36858 msgstr ""
36859 " guestfs_add_drive_opts (g, filename,\n"
36860 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36861 "                         -1);\n"
36862 "\n"
36863
36864 #. type: textblock
36865 #: ../src/guestfs.pod:1623
36866 msgid "With two:"
36867 msgstr ""
36868
36869 #. type: verbatim
36870 #: ../src/guestfs.pod:1625
36871 #, no-wrap
36872 msgid ""
36873 " guestfs_add_drive_opts (g, filename,\n"
36874 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36875 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36876 "                         -1);\n"
36877 "\n"
36878 msgstr ""
36879 " guestfs_add_drive_opts (g, filename,\n"
36880 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36881 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36882 "                         -1);\n"
36883 "\n"
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:1630
36887 msgid ""
36888 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36889 "happen!"
36890 msgstr ""
36891
36892 #. type: =head2
36893 #: ../src/guestfs.pod:1633
36894 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:1635
36899 msgid ""
36900 "The second variant has the same name with the suffix C<_va>, which works the "
36901 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36902 "example function, this is declared:"
36903 msgstr ""
36904
36905 #. type: verbatim
36906 #: ../src/guestfs.pod:1639
36907 #, no-wrap
36908 msgid ""
36909 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36910 "                                va_list args);\n"
36911 "\n"
36912 msgstr ""
36913 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36914 "                                va_list args);\n"
36915 "\n"
36916
36917 #. type: =head2
36918 #: ../src/guestfs.pod:1642
36919 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36920 msgstr ""
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:1644
36924 msgid ""
36925 "The third variant is useful where you need to construct these calls.  You "
36926 "pass in a structure where you fill in the optional fields.  The structure "
36927 "has a bitmask as the first element which you must set to indicate which "
36928 "fields you have filled in.  For our example function the structure and call "
36929 "are declared:"
36930 msgstr ""
36931
36932 #. type: verbatim
36933 #: ../src/guestfs.pod:1650
36934 #, no-wrap
36935 msgid ""
36936 " struct guestfs_add_drive_opts_argv {\n"
36937 "   uint64_t bitmask;\n"
36938 "   int readonly;\n"
36939 "   const char *format;\n"
36940 "   /* ... */\n"
36941 " };\n"
36942 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36943 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36944 "\n"
36945 msgstr ""
36946 " struct guestfs_add_drive_opts_argv {\n"
36947 "   uint64_t bitmask;\n"
36948 "   int readonly;\n"
36949 "   const char *format;\n"
36950 "   /* ... */\n"
36951 " };\n"
36952 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36953 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36954 "\n"
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:1659
36958 msgid "You could call it like this:"
36959 msgstr ""
36960
36961 #. type: verbatim
36962 #: ../src/guestfs.pod:1661
36963 #, no-wrap
36964 msgid ""
36965 " struct guestfs_add_drive_opts_argv optargs = {\n"
36966 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36967 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36968 "   .readonly = 1,\n"
36969 "   .format = \"qcow2\"\n"
36970 " };\n"
36971 " \n"
36972 msgstr ""
36973 " struct guestfs_add_drive_opts_argv optargs = {\n"
36974 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36975 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36976 "   .readonly = 1,\n"
36977 "   .format = \"qcow2\"\n"
36978 " };\n"
36979 " \n"
36980
36981 #. type: verbatim
36982 #: ../src/guestfs.pod:1668
36983 #, no-wrap
36984 msgid ""
36985 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36986 "\n"
36987 msgstr ""
36988 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36989 "\n"
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:1676
36993 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:1681
36998 msgid "You do not need to fill in all fields of the structure."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:1685
37003 msgid ""
37004 "There must be a one-to-one correspondence between fields of the structure "
37005 "that are filled in, and bits set in the bitmask."
37006 msgstr ""
37007
37008 #. type: =head2
37009 #: ../src/guestfs.pod:1690
37010 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37011 msgstr ""
37012
37013 #. type: textblock
37014 #: ../src/guestfs.pod:1692
37015 msgid ""
37016 "In other languages, optional arguments are expressed in the way that is "
37017 "natural for that language.  We refer you to the language-specific "
37018 "documentation for more details on that."
37019 msgstr ""
37020
37021 #. type: textblock
37022 #: ../src/guestfs.pod:1696
37023 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37024 msgstr ""
37025
37026 #. type: =head2
37027 #: ../src/guestfs.pod:1698
37028 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../src/guestfs.pod:1700
37033 msgid ""
37034 "B<Note:> This section documents the generic event mechanism introduced in "
37035 "libguestfs 1.10, which you should use in new code if possible.  The old "
37036 "functions C<guestfs_set_log_message_callback>, "
37037 "C<guestfs_set_subprocess_quit_callback>, "
37038 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37039 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37040 "page.  Because of the ABI guarantee, the old functions continue to work."
37041 msgstr ""
37042
37043 #. type: textblock
37044 #: ../src/guestfs.pod:1709
37045 msgid ""
37046 "Handles generate events when certain things happen, such as log messages "
37047 "being generated, progress messages during long-running operations, or the "
37048 "handle being closed.  The API calls described below let you register a "
37049 "callback to be called when events happen.  You can register multiple "
37050 "callbacks (for the same, different or overlapping sets of events), and "
37051 "individually remove callbacks.  If callbacks are not removed, then they "
37052 "remain in force until the handle is closed."
37053 msgstr ""
37054
37055 #. type: textblock
37056 #: ../src/guestfs.pod:1717
37057 msgid ""
37058 "In the current implementation, events are only generated synchronously: that "
37059 "means that events (and hence callbacks) can only happen while you are in the "
37060 "middle of making another libguestfs call.  The callback is called in the "
37061 "same thread."
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:1722
37066 msgid ""
37067 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37068 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37069 msgstr ""
37070
37071 #. type: =head3
37072 #: ../src/guestfs.pod:1726
37073 msgid "CLASSES OF EVENTS"
37074 msgstr ""
37075
37076 #. type: =item
37077 #: ../src/guestfs.pod:1730
37078 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../src/guestfs.pod:1733
37083 msgid ""
37084 "The callback function will be called while the handle is being closed "
37085 "(synchronously from L</guestfs_close>)."
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../src/guestfs.pod:1736
37090 msgid ""
37091 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37092 "handles that are open when the program exits.  This means that this callback "
37093 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37094 "problems in higher-level languages (eg. if your HLL interpreter has already "
37095 "been cleaned up by the time this is called, and if your callback then jumps "
37096 "into some HLL function)."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:1743
37101 msgid ""
37102 "If no callback is registered: the handle is closed without any callback "
37103 "being invoked."
37104 msgstr ""
37105
37106 #. type: =item
37107 #: ../src/guestfs.pod:1746
37108 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:1749
37113 msgid ""
37114 "The callback function will be called when the child process quits, either "
37115 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37116 "corresponds to a transition from any state to the CONFIG state)."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
37121 msgid "If no callback is registered: the event is ignored."
37122 msgstr ""
37123
37124 #. type: =item
37125 #: ../src/guestfs.pod:1755
37126 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:1758
37131 msgid ""
37132 "The callback function will be called when the child process becomes ready "
37133 "first time after it has been launched.  (This corresponds to a transition "
37134 "from LAUNCHING to the READY state)."
37135 msgstr ""
37136
37137 #. type: =item
37138 #: ../src/guestfs.pod:1764
37139 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:1767
37144 msgid ""
37145 "Some long-running operations can generate progress messages.  If this "
37146 "callback is registered, then it will be called each time a progress message "
37147 "is generated (usually two seconds after the operation started, and three "
37148 "times per second thereafter until it completes, although the frequency may "
37149 "change in future versions)."
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../src/guestfs.pod:1773
37154 msgid ""
37155 "The callback receives in the payload four unsigned 64 bit numbers which are "
37156 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37157 msgstr ""
37158
37159 #. type: textblock
37160 #: ../src/guestfs.pod:1776
37161 msgid ""
37162 "The units of C<total> are not defined, although for some operations C<total> "
37163 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37164 "or megabytes), and C<position> may be the portion which has been transferred."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:1781
37169 msgid "The only defined and stable parts of the API are:"
37170 msgstr ""
37171
37172 #. type: textblock
37173 #: ../src/guestfs.pod:1787
37174 msgid ""
37175 "The callback can display to the user some type of progress bar or indicator "
37176 "which shows the ratio of C<position>:C<total>."
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:1792
37181 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:1796
37186 msgid ""
37187 "If any progress notification is sent during a call, then a final progress "
37188 "notification is always sent when C<position> = C<total> (I<unless> the call "
37189 "fails with an error)."
37190 msgstr ""
37191
37192 #. type: textblock
37193 #: ../src/guestfs.pod:1800
37194 msgid ""
37195 "This is to simplify caller code, so callers can easily set the progress "
37196 "indicator to \"100%\" at the end of the operation, without requiring special "
37197 "code to detect this case."
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:1806
37202 msgid ""
37203 "For some calls we are unable to estimate the progress of the call, but we "
37204 "can still generate progress messages to indicate activity.  This is known as "
37205 "\"pulse mode\", and is directly supported by certain progress bar "
37206 "implementations (eg. GtkProgressBar)."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:1811
37211 msgid ""
37212 "For these calls, zero or more progress messages are generated with "
37213 "C<position = 0> and C<total = 1>, followed by a final message with "
37214 "C<position = total = 1>."
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:1815
37219 msgid ""
37220 "As noted above, if the call fails with an error then the final message may "
37221 "not be generated."
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../src/guestfs.pod:1820
37226 msgid ""
37227 "The callback also receives the procedure number (C<proc_nr>) and serial "
37228 "number (C<serial>) of the call.  These are only useful for debugging "
37229 "protocol issues, and the callback can normally ignore them.  The callback "
37230 "may want to print these numbers in error messages or debugging messages."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:1826
37235 msgid "If no callback is registered: progress messages are discarded."
37236 msgstr ""
37237
37238 #. type: =item
37239 #: ../src/guestfs.pod:1828
37240 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../src/guestfs.pod:1831
37245 msgid ""
37246 "The callback function is called whenever a log message is generated by qemu, "
37247 "the appliance kernel, guestfsd (daemon), or utility programs."
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../src/guestfs.pod:1834
37252 msgid ""
37253 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37254 "guestfs_launch>) then additional debug messages are generated."
37255 msgstr ""
37256
37257 #. type: textblock
37258 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
37259 msgid ""
37260 "If no callback is registered: the messages are discarded unless the verbose "
37261 "flag is set in which case they are sent to stderr.  You can override the "
37262 "printing of verbose messages to stderr by setting up a callback."
37263 msgstr ""
37264
37265 #. type: =item
37266 #: ../src/guestfs.pod:1842
37267 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../src/guestfs.pod:1845
37272 msgid ""
37273 "The callback function is called whenever a log message is generated by the "
37274 "library part of libguestfs."
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:1848
37279 msgid ""
37280 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37281 "messages are generated."
37282 msgstr ""
37283
37284 #. type: =item
37285 #: ../src/guestfs.pod:1856
37286 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../src/guestfs.pod:1859
37291 msgid ""
37292 "The callback function is called whenever a trace message is generated.  This "
37293 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37294 msgstr ""
37295
37296 #. type: textblock
37297 #: ../src/guestfs.pod:1862
37298 msgid ""
37299 "If no callback is registered: the messages are sent to stderr.  You can "
37300 "override the printing of trace messages to stderr by setting up a callback."
37301 msgstr ""
37302
37303 #. type: =item
37304 #: ../src/guestfs.pod:1866
37305 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37306 msgstr ""
37307
37308 #. type: textblock
37309 #: ../src/guestfs.pod:1869
37310 msgid ""
37311 "The callback function is called whenever a libguestfs function is entered."
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../src/guestfs.pod:1872
37316 msgid ""
37317 "The payload is a string which contains the name of the function that we are "
37318 "entering (not including C<guestfs_> prefix)."
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:1875
37323 msgid ""
37324 "Note that libguestfs functions can call themselves, so you may see many "
37325 "events from a single call.  A few libguestfs functions do not generate this "
37326 "event."
37327 msgstr ""
37328
37329 #. type: =head3
37330 #: ../src/guestfs.pod:1883
37331 msgid "guestfs_set_event_callback"
37332 msgstr ""
37333
37334 #. type: verbatim
37335 #: ../src/guestfs.pod:1885
37336 #, no-wrap
37337 msgid ""
37338 " int guestfs_set_event_callback (guestfs_h *g,\n"
37339 "                                 guestfs_event_callback cb,\n"
37340 "                                 uint64_t event_bitmask,\n"
37341 "                                 int flags,\n"
37342 "                                 void *opaque);\n"
37343 "\n"
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../src/guestfs.pod:1891
37348 msgid ""
37349 "This function registers a callback (C<cb>) for all event classes in the "
37350 "C<event_bitmask>."
37351 msgstr ""
37352
37353 #. type: textblock
37354 #: ../src/guestfs.pod:1894
37355 msgid ""
37356 "For example, to register for all log message events, you could call this "
37357 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37358 "To register a single callback for all possible classes of events, use "
37359 "C<GUESTFS_EVENT_ALL>."
37360 msgstr ""
37361
37362 #. type: textblock
37363 #: ../src/guestfs.pod:1900
37364 msgid "C<flags> should always be passed as 0."
37365 msgstr ""
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:1902
37369 msgid ""
37370 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37371 "it for any purpose."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:1905
37376 msgid ""
37377 "The return value is the event handle (an integer) which you can use to "
37378 "delete the callback (see below)."
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../src/guestfs.pod:1908
37383 msgid ""
37384 "If there is an error, this function returns C<-1>, and sets the error in the "
37385 "handle in the usual way (see L</guestfs_last_error> etc.)"
37386 msgstr ""
37387
37388 #. type: textblock
37389 #: ../src/guestfs.pod:1911
37390 msgid ""
37391 "Callbacks remain in effect until they are deleted, or until the handle is "
37392 "closed."
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../src/guestfs.pod:1914
37397 msgid ""
37398 "In the case where multiple callbacks are registered for a particular event "
37399 "class, all of the callbacks are called.  The order in which multiple "
37400 "callbacks are called is not defined."
37401 msgstr ""
37402
37403 #. type: =head3
37404 #: ../src/guestfs.pod:1918
37405 msgid "guestfs_delete_event_callback"
37406 msgstr ""
37407
37408 #. type: verbatim
37409 #: ../src/guestfs.pod:1920
37410 #, no-wrap
37411 msgid ""
37412 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37413 "\n"
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:1922
37418 msgid ""
37419 "Delete a callback that was previously registered.  C<event_handle> should be "
37420 "the integer that was returned by a previous call to "
37421 "C<guestfs_set_event_callback> on the same handle."
37422 msgstr ""
37423
37424 #. type: =head3
37425 #: ../src/guestfs.pod:1926
37426 msgid "guestfs_event_callback"
37427 msgstr ""
37428
37429 #. type: verbatim
37430 #: ../src/guestfs.pod:1928
37431 #, no-wrap
37432 msgid ""
37433 " typedef void (*guestfs_event_callback) (\n"
37434 "                  guestfs_h *g,\n"
37435 "                  void *opaque,\n"
37436 "                  uint64_t event,\n"
37437 "                  int event_handle,\n"
37438 "                  int flags,\n"
37439 "                  const char *buf, size_t buf_len,\n"
37440 "                  const uint64_t *array, size_t array_len);\n"
37441 "\n"
37442 msgstr ""
37443
37444 #. type: textblock
37445 #: ../src/guestfs.pod:1937
37446 msgid ""
37447 "This is the type of the event callback function that you have to provide."
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:1940
37452 msgid ""
37453 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37454 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37455 "handle, and C<flags> which in the current API you should ignore."
37456 msgstr ""
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:1944
37460 msgid ""
37461 "The remaining parameters contain the event payload (if any).  Each event may "
37462 "contain a payload, which usually relates to the event class, but for future "
37463 "proofing your code should be written to handle any payload for any event "
37464 "class."
37465 msgstr ""
37466
37467 #. type: textblock
37468 #: ../src/guestfs.pod:1949
37469 msgid ""
37470 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37471 "there is no message buffer).  Note that this message buffer can contain "
37472 "arbitrary 8 bit data, including NUL bytes."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:1953
37477 msgid ""
37478 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37479 "moment this is only used for progress messages."
37480 msgstr ""
37481
37482 #. type: =head3
37483 #: ../src/guestfs.pod:1956
37484 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37485 msgstr ""
37486
37487 #. type: textblock
37488 #: ../src/guestfs.pod:1958
37489 msgid ""
37490 "One motivation for the generic event API was to allow GUI programs to "
37491 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37492 "unconditionally to C<stderr>."
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../src/guestfs.pod:1962
37497 msgid ""
37498 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37499 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37500 "messages are not events; you must capture error messages separately)."
37501 msgstr ""
37502
37503 #. type: textblock
37504 #: ../src/guestfs.pod:1967
37505 msgid ""
37506 "Programs have to set up a callback to capture the classes of events of "
37507 "interest:"
37508 msgstr ""
37509
37510 #. type: verbatim
37511 #: ../src/guestfs.pod:1970
37512 #, no-wrap
37513 msgid ""
37514 " int eh =\n"
37515 "   guestfs_set_event_callback\n"
37516 "     (g, message_callback,\n"
37517 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37518 "      GUESTFS_EVENT_TRACE,\n"
37519 "      0, NULL) == -1)\n"
37520 " if (eh == -1) {\n"
37521 "   // handle error in the usual way\n"
37522 " }\n"
37523 "\n"
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:1980
37528 msgid ""
37529 "The callback can then direct messages to the appropriate place.  In this "
37530 "example, messages are directed to syslog:"
37531 msgstr ""
37532
37533 #. type: verbatim
37534 #: ../src/guestfs.pod:1983
37535 #, no-wrap
37536 msgid ""
37537 " static void\n"
37538 " message_callback (\n"
37539 "         guestfs_h *g,\n"
37540 "         void *opaque,\n"
37541 "         uint64_t event,\n"
37542 "         int event_handle,\n"
37543 "         int flags,\n"
37544 "         const char *buf, size_t buf_len,\n"
37545 "         const uint64_t *array, size_t array_len)\n"
37546 " {\n"
37547 "   const int priority = LOG_USER|LOG_INFO;\n"
37548 "   if (buf_len > 0)\n"
37549 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37550 " }\n"
37551 "\n"
37552 msgstr ""
37553
37554 #. type: =head1
37555 #: ../src/guestfs.pod:1998
37556 msgid "CANCELLING LONG TRANSFERS"
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../src/guestfs.pod:2000
37561 msgid ""
37562 "Some operations can be cancelled by the caller while they are in progress.  "
37563 "Currently only operations that involve uploading or downloading data can be "
37564 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37565 "parameters in the generator)."
37566 msgstr ""
37567
37568 #. type: =head2
37569 #: ../src/guestfs.pod:2005
37570 msgid "guestfs_user_cancel"
37571 msgstr ""
37572
37573 #. type: verbatim
37574 #: ../src/guestfs.pod:2007
37575 #, no-wrap
37576 msgid ""
37577 " void guestfs_user_cancel (guestfs_h *g);\n"
37578 "\n"
37579 msgstr ""
37580
37581 #. type: textblock
37582 #: ../src/guestfs.pod:2009
37583 msgid ""
37584 "C<guestfs_user_cancel> cancels the current upload or download operation."
37585 msgstr ""
37586
37587 #. type: textblock
37588 #: ../src/guestfs.pod:2012
37589 msgid ""
37590 "Unlike most other libguestfs calls, this function is signal safe and thread "
37591 "safe.  You can call it from a signal handler or from another thread, without "
37592 "needing to do any locking."
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2016
37597 msgid ""
37598 "The transfer that was in progress (if there is one) will stop shortly "
37599 "afterwards, and will return an error.  The errno (see L</"
37600 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37601 "out if the operation was cancelled or failed because of another error."
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../src/guestfs.pod:2022
37606 msgid ""
37607 "No cleanup is performed: for example, if a file was being uploaded then "
37608 "after cancellation there may be a partially uploaded file.  It is the "
37609 "caller's responsibility to clean up if necessary."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:2026
37614 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:2028
37619 msgid ""
37620 "In an interactive text-based program, you might call it from a C<SIGINT> "
37621 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37622 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37623 "receive the C<^C> signal)."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:2033
37628 msgid ""
37629 "In a graphical program, when the main thread is displaying a progress bar "
37630 "with a cancel button, wire up the cancel button to call this function."
37631 msgstr ""
37632
37633 #. type: =head1
37634 #: ../src/guestfs.pod:2037
37635 msgid "PRIVATE DATA AREA"
37636 msgstr ""
37637
37638 #. type: textblock
37639 #: ../src/guestfs.pod:2039
37640 msgid ""
37641 "You can attach named pieces of private data to the libguestfs handle, fetch "
37642 "them by name, and walk over them, for the lifetime of the handle.  This is "
37643 "called the private data area and is only available from the C API."
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:2044
37648 msgid "To attach a named piece of data, use the following call:"
37649 msgstr ""
37650
37651 #. type: verbatim
37652 #: ../src/guestfs.pod:2046
37653 #, no-wrap
37654 msgid ""
37655 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37656 "\n"
37657 msgstr ""
37658 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37659 "\n"
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:2048
37663 msgid ""
37664 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37665 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37666 "overwritten."
37667 msgstr ""
37668
37669 #. type: textblock
37670 #: ../src/guestfs.pod:2052
37671 msgid ""
37672 "You can use any C<key> you want, but your key should I<not> start with an "
37673 "underscore character.  Keys beginning with an underscore character are "
37674 "reserved for internal libguestfs purposes (eg. for implementing language "
37675 "bindings).  It is recommended that you prefix the key with some unique "
37676 "string to avoid collisions with other users."
37677 msgstr ""
37678
37679 #. type: textblock
37680 #: ../src/guestfs.pod:2058
37681 msgid "To retrieve the pointer, use:"
37682 msgstr ""
37683
37684 #. type: verbatim
37685 #: ../src/guestfs.pod:2060
37686 #, no-wrap
37687 msgid ""
37688 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37689 "\n"
37690 msgstr ""
37691 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37692 "\n"
37693
37694 #. type: textblock
37695 #: ../src/guestfs.pod:2062
37696 msgid ""
37697 "This function returns C<NULL> if either no data is found associated with "
37698 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37699 "C<NULL>."
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:2066
37704 msgid ""
37705 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37706 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37707 "all.  In particular, libguestfs does I<not> try to free the data when the "
37708 "handle is closed.  If the data must be freed, then the caller must either "
37709 "free it before calling L</guestfs_close> or must set up a close callback to "
37710 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:2073
37715 msgid "To walk over all entries, use these two functions:"
37716 msgstr ""
37717
37718 #. type: verbatim
37719 #: ../src/guestfs.pod:2075
37720 #, no-wrap
37721 msgid ""
37722 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37723 "\n"
37724 msgstr ""
37725
37726 #. type: verbatim
37727 #: ../src/guestfs.pod:2077
37728 #, no-wrap
37729 msgid ""
37730 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37731 "\n"
37732 msgstr ""
37733
37734 #. type: textblock
37735 #: ../src/guestfs.pod:2079
37736 msgid ""
37737 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37738 "not have any particular meaning -- keys are not returned in any defined "
37739 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37740 "corresponding data pointer is returned from the function.  C<NULL> is "
37741 "returned if there are no keys stored in the handle."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:2085
37746 msgid ""
37747 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37748 "value of this function is also C<NULL> is there are no further entries to "
37749 "return."
37750 msgstr ""
37751
37752 #. type: textblock
37753 #: ../src/guestfs.pod:2089
37754 msgid "Notes about walking over entries:"
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:2095
37759 msgid ""
37760 "You must not call C<guestfs_set_private> while walking over the entries."
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:2100
37765 msgid ""
37766 "The handle maintains an internal iterator which is reset when you call "
37767 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37768 "call C<guestfs_set_private>."
37769 msgstr ""
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:2106
37773 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37774 msgstr ""
37775
37776 #. type: verbatim
37777 #: ../src/guestfs.pod:2108
37778 #, no-wrap
37779 msgid ""
37780 " guestfs_set_private (g, key, NULL);\n"
37781 "\n"
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../src/guestfs.pod:2110
37786 msgid "then that C<key> is not returned when walking."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:2114
37791 msgid ""
37792 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37793 "C<guestfs_next_private> or C<guestfs_set_private>."
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:2120
37798 msgid ""
37799 "The following example code shows how to print all keys and data pointers "
37800 "that are associated with the handle C<g>:"
37801 msgstr ""
37802
37803 #. type: verbatim
37804 #: ../src/guestfs.pod:2123
37805 #, no-wrap
37806 msgid ""
37807 " const char *key;\n"
37808 " void *data = guestfs_first_private (g, &key);\n"
37809 " while (data != NULL)\n"
37810 "   {\n"
37811 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37812 "     data = guestfs_next_private (g, &key);\n"
37813 "   }\n"
37814 "\n"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:2131
37819 msgid ""
37820 "More commonly you are only interested in keys that begin with an application-"
37821 "specific prefix C<foo_>.  Modify the loop like so:"
37822 msgstr ""
37823
37824 #. type: verbatim
37825 #: ../src/guestfs.pod:2134
37826 #, no-wrap
37827 msgid ""
37828 " const char *key;\n"
37829 " void *data = guestfs_first_private (g, &key);\n"
37830 " while (data != NULL)\n"
37831 "   {\n"
37832 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37833 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37834 "     data = guestfs_next_private (g, &key);\n"
37835 "   }\n"
37836 "\n"
37837 msgstr ""
37838
37839 #. type: textblock
37840 #: ../src/guestfs.pod:2143
37841 msgid ""
37842 "If you need to modify keys while walking, then you have to jump back to the "
37843 "beginning of the loop.  For example, to delete all keys prefixed with "
37844 "C<foo_>:"
37845 msgstr ""
37846
37847 #. type: verbatim
37848 #: ../src/guestfs.pod:2147
37849 #, no-wrap
37850 msgid ""
37851 "  const char *key;\n"
37852 "  void *data;\n"
37853 " again:\n"
37854 "  data = guestfs_first_private (g, &key);\n"
37855 "  while (data != NULL)\n"
37856 "    {\n"
37857 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37858 "        {\n"
37859 "          guestfs_set_private (g, key, NULL);\n"
37860 "          /* note that 'key' pointer is now invalid, and so is\n"
37861 "             the internal iterator */\n"
37862 "          goto again;\n"
37863 "        }\n"
37864 "      data = guestfs_next_private (g, &key);\n"
37865 "    }\n"
37866 "\n"
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:2163
37871 msgid ""
37872 "Note that the above loop is guaranteed to terminate because the keys are "
37873 "being deleted, but other manipulations of keys within the loop might not "
37874 "terminate unless you also maintain an indication of which keys have been "
37875 "visited."
37876 msgstr ""
37877
37878 #. type: =end
37879 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
37880 msgid "html"
37881 msgstr "html"
37882
37883 #. type: textblock
37884 #: ../src/guestfs.pod:2170
37885 msgid ""
37886 "<!-- old anchor for the next section --> <a name="
37887 "\"state_machine_and_low_level_event_api\"/>"
37888 msgstr ""
37889 "<!-- old anchor for the next section --> <a name="
37890 "\"state_machine_and_low_level_event_api\"/>"
37891
37892 #. type: =head1
37893 #: ../src/guestfs.pod:2175
37894 msgid "ARCHITECTURE"
37895 msgstr "АРХІТЕКТУРА"
37896
37897 #. type: textblock
37898 #: ../src/guestfs.pod:2177
37899 msgid ""
37900 "Internally, libguestfs is implemented by running an appliance (a special "
37901 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37902 "process of the main program."
37903 msgstr ""
37904
37905 #. type: verbatim
37906 #: ../src/guestfs.pod:2181
37907 #, no-wrap
37908 msgid ""
37909 "  ___________________\n"
37910 " /                   \\\n"
37911 " | main program      |\n"
37912 " |                   |\n"
37913 " |                   |           child process / appliance\n"
37914 " |                   |           __________________________\n"
37915 " |                   |          / qemu                     \\\n"
37916 " +-------------------+   RPC    |      +-----------------+ |\n"
37917 " | libguestfs     <--------------------> guestfsd        | |\n"
37918 " |                   |          |      +-----------------+ |\n"
37919 " \\___________________/          |      | Linux kernel    | |\n"
37920 "                                |      +--^--------------+ |\n"
37921 "                                \\_________|________________/\n"
37922 "                                          |\n"
37923 "                                   _______v______\n"
37924 "                                  /              \\\n"
37925 "                                  | Device or    |\n"
37926 "                                  | disk image   |\n"
37927 "                                  \\______________/\n"
37928 "\n"
37929 msgstr ""
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:2201
37933 msgid ""
37934 "The library, linked to the main program, creates the child process and hence "
37935 "the appliance in the L</guestfs_launch> function."
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:2204
37940 msgid ""
37941 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37942 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37943 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37944 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37945 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37946 "attached to the qemu process which translates device access by the "
37947 "appliance's Linux kernel into accesses to the image."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../src/guestfs.pod:2213
37952 msgid ""
37953 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37954 "Although the disk image you are attached to might also be used by some "
37955 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37956 "care if both libguestfs's qemu process and your virtual machine are trying "
37957 "to update the disk image at the same time, since these usually results in "
37958 "massive disk corruption)."
37959 msgstr ""
37960
37961 #. type: =head1
37962 #: ../src/guestfs.pod:2220
37963 msgid "STATE MACHINE"
37964 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37965
37966 #. type: textblock
37967 #: ../src/guestfs.pod:2222
37968 msgid "libguestfs uses a state machine to model the child process:"
37969 msgstr ""
37970
37971 #. type: verbatim
37972 #: ../src/guestfs.pod:2224
37973 #, no-wrap
37974 msgid ""
37975 "                         |\n"
37976 "                    guestfs_create\n"
37977 "                         |\n"
37978 "                         |\n"
37979 "                     ____V_____\n"
37980 "                    /          \\\n"
37981 "                    |  CONFIG  |\n"
37982 "                    \\__________/\n"
37983 "                     ^ ^   ^  \\\n"
37984 "                    /  |    \\  \\ guestfs_launch\n"
37985 "                   /   |    _\\__V______\n"
37986 "                  /    |   /           \\\n"
37987 "                 /     |   | LAUNCHING |\n"
37988 "                /      |   \\___________/\n"
37989 "               /       |       /\n"
37990 "              /        |  guestfs_launch\n"
37991 "             /         |     /\n"
37992 "    ______  /        __|____V\n"
37993 "   /      \\ ------> /        \\\n"
37994 "   | BUSY |         | READY  |\n"
37995 "   \\______/ <------ \\________/\n"
37996 "\n"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:2246
38001 msgid ""
38002 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38003 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38004 "(3) alternating between READY and BUSY as commands are issued to, and "
38005 "carried out by, the child process."
38006 msgstr ""
38007
38008 #. type: textblock
38009 #: ../src/guestfs.pod:2251
38010 msgid ""
38011 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38012 "asynchronously at any time (eg. due to some internal error), and that causes "
38013 "the state to transition back to CONFIG."
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../src/guestfs.pod:2255
38018 msgid ""
38019 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38020 "issued when in the CONFIG state."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:2258
38025 msgid ""
38026 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38027 "L</guestfs_launch> blocks until the child process is READY to accept "
38028 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38029 "moves the state from CONFIG to LAUNCHING while it is running."
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:2264
38034 msgid ""
38035 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38036 "state.  These API calls block waiting for the command to be carried out (ie. "
38037 "the state to transition to BUSY and then back to READY).  There are no non-"
38038 "blocking versions, and no way to issue more than one command per handle at "
38039 "the same time."
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:2270
38044 msgid ""
38045 "Finally, the child process sends asynchronous messages back to the main "
38046 "program, such as kernel log messages.  You can register a callback to "
38047 "receive these messages."
38048 msgstr ""
38049
38050 #. type: =head1
38051 #: ../src/guestfs.pod:2274
38052 msgid "INTERNALS"
38053 msgstr ""
38054
38055 #. type: =head2
38056 #: ../src/guestfs.pod:2276
38057 msgid "APPLIANCE BOOT PROCESS"
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:2278
38062 msgid ""
38063 "This process has evolved and continues to evolve.  The description here "
38064 "corresponds only to the current version of libguestfs and is provided for "
38065 "information only."
38066 msgstr ""
38067
38068 #. type: textblock
38069 #: ../src/guestfs.pod:2282
38070 msgid ""
38071 "In order to follow the stages involved below, enable libguestfs debugging "
38072 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38073 msgstr ""
38074
38075 #. type: =item
38076 #: ../src/guestfs.pod:2287
38077 #, fuzzy
38078 #| msgid "C<appliance>"
38079 msgid "Create the appliance"
38080 msgstr "C<appliance>"
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:2289
38084 msgid ""
38085 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38086 "initrd and the appliance."
38087 msgstr ""
38088
38089 #. type: textblock
38090 #: ../src/guestfs.pod:2292
38091 msgid ""
38092 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38093 "directory if C<TMPDIR> is set)."
38094 msgstr ""
38095
38096 #. type: textblock
38097 #: ../src/guestfs.pod:2295
38098 msgid ""
38099 "For a complete description of how the appliance is created and cached, read "
38100 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38101 msgstr ""
38102
38103 #. type: =item
38104 #: ../src/guestfs.pod:2299
38105 msgid "Start qemu and boot the kernel"
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../src/guestfs.pod:2301
38110 msgid "qemu is invoked to boot the kernel."
38111 msgstr ""
38112
38113 #. type: =item
38114 #: ../src/guestfs.pod:2303
38115 msgid "Run the initrd"
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:2305
38120 msgid ""
38121 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38122 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38123 "order that the appliance itself can be mounted and started."
38124 msgstr ""
38125
38126 #. type: textblock
38127 #: ../src/guestfs.pod:2309
38128 msgid ""
38129 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38130 "initrd>."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:2312
38135 msgid ""
38136 "When the initrd has started you will see messages showing that kernel "
38137 "modules are being loaded, similar to this:"
38138 msgstr ""
38139
38140 #. type: verbatim
38141 #: ../src/guestfs.pod:2315
38142 #, no-wrap
38143 msgid ""
38144 " febootstrap: ext2 mini initrd starting up\n"
38145 " febootstrap: mounting /sys\n"
38146 " febootstrap: internal insmod libcrc32c.ko\n"
38147 " febootstrap: internal insmod crc32c-intel.ko\n"
38148 "\n"
38149 msgstr ""
38150
38151 #. type: =item
38152 #: ../src/guestfs.pod:2320
38153 msgid "Find and mount the appliance device"
38154 msgstr ""
38155
38156 #. type: textblock
38157 #: ../src/guestfs.pod:2322
38158 msgid ""
38159 "The appliance is a sparse file containing an ext2 filesystem which contains "
38160 "a familiar (although reduced in size) Linux operating system.  It would "
38161 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38162 msgstr ""
38163
38164 #. type: textblock
38165 #: ../src/guestfs.pod:2326
38166 msgid ""
38167 "The regular disks being inspected by libguestfs are the first devices "
38168 "exposed by qemu (eg. as C</dev/vda>)."
38169 msgstr ""
38170
38171 #. type: textblock
38172 #: ../src/guestfs.pod:2329
38173 msgid ""
38174 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38175 "there was only one regular disk)."
38176 msgstr ""
38177
38178 #. type: textblock
38179 #: ../src/guestfs.pod:2332
38180 msgid ""
38181 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38182 "and switch root into the appliance, and run C</init> from the appliance."
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:2336
38187 msgid "If this works successfully you will see messages such as:"
38188 msgstr ""
38189
38190 #. type: verbatim
38191 #: ../src/guestfs.pod:2338
38192 #, no-wrap
38193 msgid ""
38194 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38195 " febootstrap: creating /dev/root as block special 252:16\n"
38196 " febootstrap: mounting new root on /root\n"
38197 " febootstrap: chroot\n"
38198 " Starting /init script ...\n"
38199 "\n"
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:2344
38204 msgid ""
38205 "Note that C<Starting /init script ...> indicates that the appliance's init "
38206 "script is now running."
38207 msgstr ""
38208
38209 #. type: =item
38210 #: ../src/guestfs.pod:2347
38211 msgid "Initialize the appliance"
38212 msgstr ""
38213
38214 #. type: textblock
38215 #: ../src/guestfs.pod:2349
38216 msgid ""
38217 "The appliance itself now initializes itself.  This involves starting certain "
38218 "processes like C<udev>, possibly printing some debug information, and "
38219 "finally running the daemon (C<guestfsd>)."
38220 msgstr ""
38221
38222 #. type: =item
38223 #: ../src/guestfs.pod:2353
38224 #, fuzzy
38225 #| msgid "C<daemon>"
38226 msgid "The daemon"
38227 msgstr "C<daemon>"
38228
38229 #. type: textblock
38230 #: ../src/guestfs.pod:2355
38231 msgid ""
38232 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38233 "should see:"
38234 msgstr ""
38235
38236 #. type: verbatim
38237 #: ../src/guestfs.pod:2358
38238 #, fuzzy, no-wrap
38239 #| msgid ""
38240 #| " set-verbose true|false\n"
38241 #| "\n"
38242 msgid ""
38243 " verbose daemon enabled\n"
38244 "\n"
38245 msgstr ""
38246 " set-verbose true|false\n"
38247 "\n"
38248
38249 #. type: textblock
38250 #: ../src/guestfs.pod:2360
38251 msgid ""
38252 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38253 "connected on the other end to the library."
38254 msgstr ""
38255
38256 #. type: textblock
38257 #: ../src/guestfs.pod:2363
38258 msgid ""
38259 "The daemon connects to this port (and hence to the library) and sends a four "
38260 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38261 "protocol (see below)."
38262 msgstr ""
38263
38264 #. type: =head2
38265 #: ../src/guestfs.pod:2369
38266 msgid "COMMUNICATION PROTOCOL"
38267 msgstr ""
38268
38269 #. type: textblock
38270 #: ../src/guestfs.pod:2371
38271 msgid ""
38272 "Don't rely on using this protocol directly.  This section documents how it "
38273 "currently works, but it may change at any time."
38274 msgstr ""
38275
38276 #. type: textblock
38277 #: ../src/guestfs.pod:2374
38278 msgid ""
38279 "The protocol used to talk between the library and the daemon running inside "
38280 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38281 "1014, RFC 1832, RFC 4506)."
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:2378
38286 msgid ""
38287 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38288 "this file is automatically generated)."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:2381
38293 msgid ""
38294 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38295 "and C<FileOut> parameters, which are handled with very simple request/reply "
38296 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38297 "parameters, which use the same request and reply messages, but they may also "
38298 "be followed by files sent using a chunked encoding."
38299 msgstr ""
38300
38301 #. type: =head3
38302 #: ../src/guestfs.pod:2388
38303 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38304 msgstr ""
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:2390
38308 msgid "For ordinary functions, the request message is:"
38309 msgstr ""
38310
38311 #. type: verbatim
38312 #: ../src/guestfs.pod:2392
38313 #, no-wrap
38314 msgid ""
38315 " total length (header + arguments,\n"
38316 "      but not including the length word itself)\n"
38317 " struct guestfs_message_header (encoded as XDR)\n"
38318 " struct guestfs_<foo>_args (encoded as XDR)\n"
38319 "\n"
38320 msgstr ""
38321
38322 #. type: textblock
38323 #: ../src/guestfs.pod:2397
38324 msgid ""
38325 "The total length field allows the daemon to allocate a fixed size buffer "
38326 "into which it slurps the rest of the message.  As a result, the total length "
38327 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38328 "effective size of any request is limited to somewhere under this size."
38329 msgstr ""
38330
38331 #. type: textblock
38332 #: ../src/guestfs.pod:2403
38333 msgid ""
38334 "Note also that many functions don't take any arguments, in which case the "
38335 "C<guestfs_I<foo>_args> is completely omitted."
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../src/guestfs.pod:2406
38340 msgid ""
38341 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38342 "receiver knows what type of args structure to expect, or none at all."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:2410
38347 msgid ""
38348 "For functions that take optional arguments, the optional arguments are "
38349 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38350 "arguments.  A bitmask in the header indicates which optional arguments are "
38351 "meaningful.  The bitmask is also checked to see if it contains bits set "
38352 "which the daemon does not know about (eg. if more optional arguments were "
38353 "added in a later version of the library), and this causes the call to be "
38354 "rejected."
38355 msgstr ""
38356
38357 #. type: textblock
38358 #: ../src/guestfs.pod:2418
38359 msgid "The reply message for ordinary functions is:"
38360 msgstr ""
38361
38362 #. type: verbatim
38363 #: ../src/guestfs.pod:2420
38364 #, no-wrap
38365 msgid ""
38366 " total length (header + ret,\n"
38367 "      but not including the length word itself)\n"
38368 " struct guestfs_message_header (encoded as XDR)\n"
38369 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38370 "\n"
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:2425
38375 msgid ""
38376 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38377 "functions that return no formal return values."
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:2428
38382 msgid ""
38383 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38384 msgstr ""
38385
38386 #. type: textblock
38387 #: ../src/guestfs.pod:2431
38388 msgid ""
38389 "In the case of an error, a flag is set in the header, and the reply message "
38390 "is slightly changed:"
38391 msgstr ""
38392
38393 #. type: verbatim
38394 #: ../src/guestfs.pod:2434
38395 #, no-wrap
38396 msgid ""
38397 " total length (header + error,\n"
38398 "      but not including the length word itself)\n"
38399 " struct guestfs_message_header (encoded as XDR)\n"
38400 " struct guestfs_message_error (encoded as XDR)\n"
38401 "\n"
38402 msgstr ""
38403
38404 #. type: textblock
38405 #: ../src/guestfs.pod:2439
38406 msgid ""
38407 "The C<guestfs_message_error> structure contains the error message as a "
38408 "string."
38409 msgstr ""
38410
38411 #. type: =head3
38412 #: ../src/guestfs.pod:2442
38413 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:2444
38418 msgid ""
38419 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38420 "The normal request message is sent (see above).  However this is followed by "
38421 "a sequence of file chunks."
38422 msgstr ""
38423
38424 #. type: verbatim
38425 #: ../src/guestfs.pod:2448
38426 #, no-wrap
38427 msgid ""
38428 " total length (header + arguments,\n"
38429 "      but not including the length word itself,\n"
38430 "      and not including the chunks)\n"
38431 " struct guestfs_message_header (encoded as XDR)\n"
38432 " struct guestfs_<foo>_args (encoded as XDR)\n"
38433 " sequence of chunks for FileIn param #0\n"
38434 " sequence of chunks for FileIn param #1 etc.\n"
38435 "\n"
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:2456
38440 msgid "The \"sequence of chunks\" is:"
38441 msgstr ""
38442
38443 #. type: verbatim
38444 #: ../src/guestfs.pod:2458
38445 #, no-wrap
38446 msgid ""
38447 " length of chunk (not including length word itself)\n"
38448 " struct guestfs_chunk (encoded as XDR)\n"
38449 " length of chunk\n"
38450 " struct guestfs_chunk (encoded as XDR)\n"
38451 "   ...\n"
38452 " length of chunk\n"
38453 " struct guestfs_chunk (with data.data_len == 0)\n"
38454 "\n"
38455 msgstr ""
38456
38457 #. type: textblock
38458 #: ../src/guestfs.pod:2466
38459 msgid ""
38460 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38461 "is set in the final chunk to indicate either successful completion or early "
38462 "cancellation."
38463 msgstr ""
38464
38465 #. type: textblock
38466 #: ../src/guestfs.pod:2470
38467 msgid ""
38468 "At time of writing there are no functions that have more than one FileIn "
38469 "parameter.  However this is (theoretically) supported, by sending the "
38470 "sequence of chunks for each FileIn parameter one after another (from left to "
38471 "right)."
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../src/guestfs.pod:2475
38476 msgid ""
38477 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38478 "transfer.  The library does this by sending a chunk with a special flag set "
38479 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38480 "RPC, does I<not> send any reply, and goes back to reading the next request."
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:2481
38485 msgid ""
38486 "The daemon may also cancel.  It does this by writing a special word "
38487 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38488 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38489 "cancel chunk).  The special word is chosen so that even if cancellation "
38490 "happens right at the end of the transfer (after the library has finished "
38491 "writing and has started listening for the reply), the \"spurious\" cancel "
38492 "flag will not be confused with the reply message."
38493 msgstr ""
38494
38495 #. type: textblock
38496 #: ../src/guestfs.pod:2490
38497 msgid ""
38498 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38499 "limit), and also files where the size is not known in advance (eg. from "
38500 "pipes or sockets).  However the chunks are rather small "
38501 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38502 "to keep much in memory."
38503 msgstr ""
38504
38505 #. type: =head3
38506 #: ../src/guestfs.pod:2496
38507 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:2498
38512 msgid ""
38513 "The protocol for FileOut parameters is exactly the same as for FileIn "
38514 "parameters, but with the roles of daemon and library reversed."
38515 msgstr ""
38516
38517 #. type: verbatim
38518 #: ../src/guestfs.pod:2501
38519 #, no-wrap
38520 msgid ""
38521 " total length (header + ret,\n"
38522 "      but not including the length word itself,\n"
38523 "      and not including the chunks)\n"
38524 " struct guestfs_message_header (encoded as XDR)\n"
38525 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38526 " sequence of chunks for FileOut param #0\n"
38527 " sequence of chunks for FileOut param #1 etc.\n"
38528 "\n"
38529 msgstr ""
38530
38531 #. type: =head3
38532 #: ../src/guestfs.pod:2509
38533 msgid "INITIAL MESSAGE"
38534 msgstr ""
38535
38536 #. type: textblock
38537 #: ../src/guestfs.pod:2511
38538 msgid ""
38539 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38540 "which indicates that the guest and daemon is alive.  This is what L</"
38541 "guestfs_launch> waits for."
38542 msgstr ""
38543
38544 #. type: =head3
38545 #: ../src/guestfs.pod:2515
38546 msgid "PROGRESS NOTIFICATION MESSAGES"
38547 msgstr ""
38548
38549 #. type: textblock
38550 #: ../src/guestfs.pod:2517
38551 msgid ""
38552 "The daemon may send progress notification messages at any time.  These are "
38553 "distinguished by the normal length word being replaced by "
38554 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38555 msgstr ""
38556
38557 #. type: textblock
38558 #: ../src/guestfs.pod:2521
38559 msgid ""
38560 "The library turns them into progress callbacks (see L</"
38561 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38562 "if not."
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../src/guestfs.pod:2525
38567 msgid ""
38568 "The daemon self-limits the frequency of progress messages it sends (see "
38569 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38570 "messages."
38571 msgstr ""
38572
38573 #. type: =head1
38574 #: ../src/guestfs.pod:2529
38575 msgid "LIBGUESTFS VERSION NUMBERS"
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:2531
38580 msgid ""
38581 "Since April 2010, libguestfs has started to make separate development and "
38582 "stable releases, along with corresponding branches in our git repository.  "
38583 "These separate releases can be identified by version number:"
38584 msgstr ""
38585
38586 #. type: verbatim
38587 #: ../src/guestfs.pod:2536
38588 #, no-wrap
38589 msgid ""
38590 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38591 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38592 "       |\n"
38593 "       v\n"
38594 " 1  .  3  .  5\n"
38595 " ^           ^\n"
38596 " |           |\n"
38597 " |           `-------- sub-version\n"
38598 " |\n"
38599 " `------ always '1' because we don't change the ABI\n"
38600 "\n"
38601 msgstr ""
38602
38603 #. type: textblock
38604 #: ../src/guestfs.pod:2547
38605 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38606 msgstr ""
38607
38608 #. type: textblock
38609 #: ../src/guestfs.pod:2549
38610 msgid ""
38611 "As time passes we cherry pick fixes from the development branch and backport "
38612 "those into the stable branch, the effect being that the stable branch should "
38613 "get more stable and less buggy over time.  So the stable releases are ideal "
38614 "for people who don't need new features but would just like the software to "
38615 "work."
38616 msgstr ""
38617
38618 #. type: textblock
38619 #: ../src/guestfs.pod:2555
38620 msgid "Our criteria for backporting changes are:"
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:2561
38625 msgid ""
38626 "Documentation changes which don't affect any code are backported unless the "
38627 "documentation refers to a future feature which is not in stable."
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:2567
38632 msgid ""
38633 "Bug fixes which are not controversial, fix obvious problems, and have been "
38634 "well tested are backported."
38635 msgstr ""
38636
38637 #. type: textblock
38638 #: ../src/guestfs.pod:2572
38639 msgid ""
38640 "Simple rearrangements of code which shouldn't affect how it works get "
38641 "backported.  This is so that the code in the two branches doesn't get too "
38642 "far out of step, allowing us to backport future fixes more easily."
38643 msgstr ""
38644
38645 #. type: textblock
38646 #: ../src/guestfs.pod:2578
38647 msgid ""
38648 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38649 "exceptional case: the new feature is required in order to implement an "
38650 "important bug fix."
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:2584
38655 msgid ""
38656 "A new stable branch starts when we think the new features in development are "
38657 "substantial and compelling enough over the current stable branch to warrant "
38658 "it.  When that happens we create new stable and development versions 1.N.0 "
38659 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38660 "stable at this point, but by backporting fixes from development, that branch "
38661 "will stabilize over time."
38662 msgstr ""
38663
38664 #. type: =head1
38665 #: ../src/guestfs.pod:2592
38666 msgid "EXTENDING LIBGUESTFS"
38667 msgstr ""
38668
38669 #. type: =head2
38670 #: ../src/guestfs.pod:2594
38671 msgid "ADDING A NEW API ACTION"
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:2596
38676 msgid ""
38677 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38678 "documentation) are generated, and this makes it easy to extend the "
38679 "libguestfs API."
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:2600
38684 msgid "To add a new API action there are two changes:"
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../src/guestfs.pod:2606
38689 msgid ""
38690 "You need to add a description of the call (name, parameters, return type, "
38691 "tests, documentation) to C<generator/generator_actions.ml>."
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../src/guestfs.pod:2609
38696 msgid ""
38697 "There are two sorts of API action, depending on whether the call goes "
38698 "through to the daemon in the appliance, or is serviced entirely by the "
38699 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38700 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38701 "an example of the latter, since a trace flag is maintained in the handle and "
38702 "all tracing is done on the library side."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2617
38707 msgid ""
38708 "Most new actions are of the first type, and get added to the "
38709 "C<daemon_functions> list.  Each function has a unique procedure number used "
38710 "in the RPC protocol which is assigned to that action when we publish "
38711 "libguestfs and cannot be reused.  Take the latest procedure number and "
38712 "increment it."
38713 msgstr ""
38714
38715 #. type: textblock
38716 #: ../src/guestfs.pod:2623
38717 msgid ""
38718 "For library-only actions of the second type, add to the "
38719 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38720 "library and do not travel over the RPC mechanism to the daemon, these "
38721 "functions do not need a procedure number, and so the procedure number is set "
38722 "to C<-1>."
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../src/guestfs.pod:2631
38727 msgid "Implement the action (in C):"
38728 msgstr ""
38729
38730 #. type: textblock
38731 #: ../src/guestfs.pod:2633
38732 msgid ""
38733 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38734 "C<daemon/> directory."
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../src/guestfs.pod:2636
38739 msgid ""
38740 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38741 "(note: double underscore) in the C<src/> directory."
38742 msgstr ""
38743
38744 #. type: textblock
38745 #: ../src/guestfs.pod:2639
38746 msgid "In either case, use another function as an example of what to do."
38747 msgstr ""
38748
38749 #. type: textblock
38750 #: ../src/guestfs.pod:2643
38751 msgid "After making these changes, use C<make> to compile."
38752 msgstr ""
38753
38754 #. type: textblock
38755 #: ../src/guestfs.pod:2645
38756 msgid ""
38757 "Note that you don't need to implement the RPC, language bindings, manual "
38758 "pages or anything else.  It's all automatically generated from the OCaml "
38759 "description."
38760 msgstr ""
38761
38762 #. type: =head2
38763 #: ../src/guestfs.pod:2649
38764 msgid "ADDING TESTS FOR AN API ACTION"
38765 msgstr ""
38766
38767 #. type: textblock
38768 #: ../src/guestfs.pod:2651
38769 msgid ""
38770 "You can supply zero or as many tests as you want per API call.  The tests "
38771 "can either be added as part of the API description (C<generator/"
38772 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38773 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38774 "slower, so if possible use the first method."
38775 msgstr ""
38776
38777 #. type: textblock
38778 #: ../src/guestfs.pod:2657
38779 msgid ""
38780 "The following describes the test environment used when you add an API test "
38781 "in C<generator_actions.ml>."
38782 msgstr ""
38783
38784 #. type: textblock
38785 #: ../src/guestfs.pod:2660
38786 msgid "The test environment has 4 block devices:"
38787 msgstr ""
38788
38789 #. type: =item
38790 #: ../src/guestfs.pod:2664
38791 msgid "C</dev/sda> 500MB"
38792 msgstr "C</dev/sda> 500 МБ"
38793
38794 #. type: textblock
38795 #: ../src/guestfs.pod:2666
38796 msgid "General block device for testing."
38797 msgstr ""
38798
38799 #. type: =item
38800 #: ../src/guestfs.pod:2668
38801 msgid "C</dev/sdb> 50MB"
38802 msgstr "C</dev/sdb> 50 МБ"
38803
38804 #. type: textblock
38805 #: ../src/guestfs.pod:2670
38806 msgid ""
38807 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38808 "operations."
38809 msgstr ""
38810
38811 #. type: =item
38812 #: ../src/guestfs.pod:2673
38813 msgid "C</dev/sdc> 10MB"
38814 msgstr "C</dev/sdc> 10 МБ"
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:2675
38818 msgid "Used in a few tests where two block devices are needed."
38819 msgstr ""
38820
38821 #. type: =item
38822 #: ../src/guestfs.pod:2677
38823 msgid "C</dev/sdd>"
38824 msgstr "C</dev/sdd>"
38825
38826 #. type: textblock
38827 #: ../src/guestfs.pod:2679
38828 msgid "ISO with fixed content (see C<images/test.iso>)."
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../src/guestfs.pod:2683
38833 msgid ""
38834 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38835 "appliance and block devices are reused between tests.  So don't try testing "
38836 "L</guestfs_kill_subprocess> :-x"
38837 msgstr ""
38838
38839 #. type: textblock
38840 #: ../src/guestfs.pod:2687
38841 msgid ""
38842 "Each test starts with an initial scenario, selected using one of the "
38843 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38844 "initialize the disks mentioned above in a particular way as documented in "
38845 "C<generator_types.ml>.  You should not assume anything about the previous "
38846 "contents of other disks that are not initialized."
38847 msgstr ""
38848
38849 #. type: textblock
38850 #: ../src/guestfs.pod:2693
38851 msgid ""
38852 "You can add a prerequisite clause to any individual test.  This is a run-"
38853 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38854 "testing a command which might not work on all variations of libguestfs "
38855 "builds.  A test that has prerequisite of C<Always> means to run "
38856 "unconditionally."
38857 msgstr ""
38858
38859 #. type: textblock
38860 #: ../src/guestfs.pod:2699
38861 msgid ""
38862 "In addition, packagers can skip individual tests by setting environment "
38863 "variables before running C<make check>."
38864 msgstr ""
38865
38866 #. type: verbatim
38867 #: ../src/guestfs.pod:2702
38868 #, no-wrap
38869 msgid ""
38870 " SKIP_TEST_<CMD>_<NUM>=1\n"
38871 "\n"
38872 msgstr ""
38873
38874 #. type: textblock
38875 #: ../src/guestfs.pod:2704
38876 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:2706
38881 msgid "or:"
38882 msgstr "або:"
38883
38884 #. type: verbatim
38885 #: ../src/guestfs.pod:2708
38886 #, no-wrap
38887 msgid ""
38888 " SKIP_TEST_<CMD>=1\n"
38889 "\n"
38890 msgstr ""
38891
38892 #. type: textblock
38893 #: ../src/guestfs.pod:2710
38894 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../src/guestfs.pod:2712
38899 msgid "Packagers can run only certain tests by setting for example:"
38900 msgstr ""
38901
38902 #. type: verbatim
38903 #: ../src/guestfs.pod:2714
38904 #, no-wrap
38905 msgid ""
38906 " TEST_ONLY=\"vfs_type zerofree\"\n"
38907 "\n"
38908 msgstr ""
38909
38910 #. type: textblock
38911 #: ../src/guestfs.pod:2716
38912 msgid ""
38913 "See C<capitests/tests.c> for more details of how these environment variables "
38914 "work."
38915 msgstr ""
38916
38917 #. type: =head2
38918 #: ../src/guestfs.pod:2719
38919 msgid "DEBUGGING NEW API ACTIONS"
38920 msgstr ""
38921
38922 #. type: textblock
38923 #: ../src/guestfs.pod:2721
38924 msgid "Test new actions work before submitting them."
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../src/guestfs.pod:2723
38929 msgid "You can use guestfish to try out new commands."
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:2725
38934 msgid ""
38935 "Debugging the daemon is a problem because it runs inside a minimal "
38936 "environment.  However you can fprintf messages in the daemon to stderr, and "
38937 "they will show up if you use C<guestfish -v>."
38938 msgstr ""
38939
38940 #. type: =head2
38941 #: ../src/guestfs.pod:2729
38942 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:2731
38947 msgid ""
38948 "Our C source code generally adheres to some basic code-formatting "
38949 "conventions.  The existing code base is not totally consistent on this "
38950 "front, but we do prefer that contributed code be formatted similarly.  In "
38951 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38952 "indentation level, and other than that, follow the K&R style."
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../src/guestfs.pod:2737
38957 msgid ""
38958 "If you use Emacs, add the following to one of one of your start-up files (e."
38959 "g., ~/.emacs), to help ensure that you get indentation right:"
38960 msgstr ""
38961
38962 #. type: verbatim
38963 #: ../src/guestfs.pod:2740
38964 #, no-wrap
38965 msgid ""
38966 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38967 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38968 " (add-hook 'find-file-hook\n"
38969 "     '(lambda () (if (and buffer-file-name\n"
38970 "                          (string-match \"/libguestfs\\\\>\"\n"
38971 "                              (buffer-file-name))\n"
38972 "                          (not (string-equal mode-name \"Change Log\"))\n"
38973 "                          (not (string-equal mode-name \"Makefile\")))\n"
38974 "                     (setq indent-tabs-mode nil))))\n"
38975 " \n"
38976 msgstr ""
38977
38978 #. type: verbatim
38979 #: ../src/guestfs.pod:2750
38980 #, no-wrap
38981 msgid ""
38982 " ;;; When editing C sources in libguestfs, use this style.\n"
38983 " (defun libguestfs-c-mode ()\n"
38984 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38985 "   (interactive)\n"
38986 "   (c-set-style \"K&R\")\n"
38987 "   (setq c-indent-level 2)\n"
38988 "   (setq c-basic-offset 2))\n"
38989 " (add-hook 'c-mode-hook\n"
38990 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38991 "                               (buffer-file-name))\n"
38992 "                           (libguestfs-c-mode))))\n"
38993 "\n"
38994 msgstr ""
38995
38996 #. type: textblock
38997 #: ../src/guestfs.pod:2762
38998 msgid "Enable warnings when compiling (and fix any problems this finds):"
38999 msgstr ""
39000
39001 #. type: verbatim
39002 #: ../src/guestfs.pod:2765
39003 #, no-wrap
39004 msgid ""
39005 " ./configure --enable-gcc-warnings\n"
39006 "\n"
39007 msgstr ""
39008 " ./configure --enable-gcc-warnings\n"
39009 "\n"
39010
39011 #. type: textblock
39012 #: ../src/guestfs.pod:2767
39013 msgid "Useful targets are:"
39014 msgstr ""
39015
39016 #. type: verbatim
39017 #: ../src/guestfs.pod:2769
39018 #, no-wrap
39019 msgid ""
39020 " make syntax-check  # checks the syntax of the C code\n"
39021 " make check         # runs the test suite\n"
39022 "\n"
39023 msgstr ""
39024
39025 #. type: =head2
39026 #: ../src/guestfs.pod:2772
39027 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39028 msgstr ""
39029
39030 #. type: textblock
39031 #: ../src/guestfs.pod:2774
39032 msgid ""
39033 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39034 "which are used to do shell quoting."
39035 msgstr ""
39036
39037 #. type: =item
39038 #: ../src/guestfs.pod:2779
39039 msgid "%Q"
39040 msgstr "%Q"
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:2781
39044 msgid ""
39045 "Simple shell quoted string.  Any spaces or other shell characters are "
39046 "escaped for you."
39047 msgstr ""
39048
39049 #. type: =item
39050 #: ../src/guestfs.pod:2784
39051 msgid "%R"
39052 msgstr "%R"
39053
39054 #. type: textblock
39055 #: ../src/guestfs.pod:2786
39056 msgid ""
39057 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39058 "the sysroot."
39059 msgstr ""
39060
39061 #. type: verbatim
39062 #: ../src/guestfs.pod:2793
39063 #, no-wrap
39064 msgid ""
39065 " asprintf (&cmd, \"cat %R\", path);\n"
39066 "\n"
39067 msgstr ""
39068
39069 #. type: textblock
39070 #: ../src/guestfs.pod:2795
39071 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39072 msgstr ""
39073
39074 #. type: textblock
39075 #: ../src/guestfs.pod:2797
39076 msgid ""
39077 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39078 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39079 "they are not passed via the shell (instead, straight to exec).  You probably "
39080 "want to use the C<sysroot_path()> function however."
39081 msgstr ""
39082
39083 #. type: =head2
39084 #: ../src/guestfs.pod:2803
39085 msgid "SUBMITTING YOUR NEW API ACTIONS"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:2805
39090 msgid ""
39091 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39092 "libguestfs> and CC to L<rjones@redhat.com>."
39093 msgstr ""
39094
39095 #. type: =head2
39096 #: ../src/guestfs.pod:2809
39097 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39098 msgstr ""
39099
39100 #. type: textblock
39101 #: ../src/guestfs.pod:2811
39102 msgid "We support i18n (gettext anyhow) in the library."
39103 msgstr ""
39104
39105 #. type: textblock
39106 #: ../src/guestfs.pod:2813
39107 msgid ""
39108 "However many messages come from the daemon, and we don't translate those at "
39109 "the moment.  One reason is that the appliance generally has all locale files "
39110 "removed from it, because they take up a lot of space.  So we'd have to readd "
39111 "some of those, as well as copying our PO files into the appliance."
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../src/guestfs.pod:2819
39116 msgid ""
39117 "Debugging messages are never translated, since they are intended for the "
39118 "programmers."
39119 msgstr ""
39120
39121 #. type: =head2
39122 #: ../src/guestfs.pod:2822
39123 msgid "SOURCE CODE SUBDIRECTORIES"
39124 msgstr ""
39125
39126 #. type: textblock
39127 #: ../src/guestfs.pod:2828
39128 msgid "The libguestfs appliance, build scripts and so on."
39129 msgstr ""
39130
39131 #. type: =item
39132 #: ../src/guestfs.pod:2830
39133 msgid "C<capitests>"
39134 msgstr "C<capitests>"
39135
39136 #. type: textblock
39137 #: ../src/guestfs.pod:2832
39138 msgid "Automated tests of the C API."
39139 msgstr ""
39140
39141 #. type: =item
39142 #: ../src/guestfs.pod:2834
39143 msgid "C<cat>"
39144 msgstr "C<cat>"
39145
39146 #. type: textblock
39147 #: ../src/guestfs.pod:2836
39148 msgid ""
39149 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39150 "documentation."
39151 msgstr ""
39152
39153 #. type: =item
39154 #: ../src/guestfs.pod:2839
39155 msgid "C<caution>"
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../src/guestfs.pod:2841
39160 msgid ""
39161 "Safety and liveness tests of components that libguestfs depends upon (not of "
39162 "libguestfs itself).  Mainly this is for qemu and the kernel."
39163 msgstr ""
39164
39165 #. type: =item
39166 #: ../src/guestfs.pod:2844
39167 msgid "C<contrib>"
39168 msgstr "C<contrib>"
39169
39170 #. type: textblock
39171 #: ../src/guestfs.pod:2846
39172 msgid "Outside contributions, experimental parts."
39173 msgstr ""
39174
39175 #. type: =item
39176 #: ../src/guestfs.pod:2848
39177 msgid "C<daemon>"
39178 msgstr "C<daemon>"
39179
39180 #. type: textblock
39181 #: ../src/guestfs.pod:2850
39182 msgid ""
39183 "The daemon that runs inside the libguestfs appliance and carries out actions."
39184 msgstr ""
39185
39186 #. type: =item
39187 #: ../src/guestfs.pod:2853
39188 msgid "C<df>"
39189 msgstr "C<df>"
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:2855
39193 msgid "L<virt-df(1)> command and documentation."
39194 msgstr ""
39195
39196 #. type: =item
39197 #: ../src/guestfs.pod:2857
39198 msgid "C<edit>"
39199 msgstr ""
39200
39201 #. type: textblock
39202 #: ../src/guestfs.pod:2859
39203 msgid "L<virt-edit(1)> command and documentation."
39204 msgstr ""
39205
39206 #. type: =item
39207 #: ../src/guestfs.pod:2861
39208 msgid "C<examples>"
39209 msgstr "C<examples>"
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2863
39213 msgid "C API example code."
39214 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
39215
39216 #. type: =item
39217 #: ../src/guestfs.pod:2865
39218 msgid "C<fish>"
39219 msgstr "C<fish>"
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:2867
39223 msgid ""
39224 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39225 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39226 "L<virt-tar-out(1)>."
39227 msgstr ""
39228
39229 #. type: =item
39230 #: ../src/guestfs.pod:2871
39231 msgid "C<fuse>"
39232 msgstr "C<fuse>"
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:2873
39236 msgid ""
39237 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39238 msgstr ""
39239
39240 #. type: =item
39241 #: ../src/guestfs.pod:2875
39242 msgid "C<generator>"
39243 msgstr "C<generator>"
39244
39245 #. type: textblock
39246 #: ../src/guestfs.pod:2877
39247 msgid ""
39248 "The crucially important generator, used to automatically generate large "
39249 "amounts of boilerplate C code for things like RPC and bindings."
39250 msgstr ""
39251
39252 #. type: =item
39253 #: ../src/guestfs.pod:2880
39254 msgid "C<images>"
39255 msgstr "C<images>"
39256
39257 #. type: textblock
39258 #: ../src/guestfs.pod:2882
39259 msgid "Files used by the test suite."
39260 msgstr ""
39261
39262 #. type: textblock
39263 #: ../src/guestfs.pod:2884
39264 msgid "Some \"phony\" guest images which we test against."
39265 msgstr ""
39266
39267 #. type: =item
39268 #: ../src/guestfs.pod:2886
39269 msgid "C<inspector>"
39270 msgstr "C<inspector>"
39271
39272 #. type: textblock
39273 #: ../src/guestfs.pod:2888
39274 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39275 msgstr ""
39276
39277 #. type: =item
39278 #: ../src/guestfs.pod:2890
39279 msgid "C<logo>"
39280 msgstr "C<logo>"
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:2892
39284 msgid "Logo used on the website.  The fish is called Arthur by the way."
39285 msgstr ""
39286
39287 #. type: =item
39288 #: ../src/guestfs.pod:2894
39289 msgid "C<m4>"
39290 msgstr "C<m4>"
39291
39292 #. type: textblock
39293 #: ../src/guestfs.pod:2896
39294 msgid "M4 macros used by autoconf."
39295 msgstr ""
39296
39297 #. type: =item
39298 #: ../src/guestfs.pod:2898
39299 msgid "C<po>"
39300 msgstr "C<po>"
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:2900
39304 msgid "Translations of simple gettext strings."
39305 msgstr "Переклади простих рядків gettext."
39306
39307 #. type: =item
39308 #: ../src/guestfs.pod:2902
39309 msgid "C<po-docs>"
39310 msgstr "C<po-docs>"
39311
39312 #. type: textblock
39313 #: ../src/guestfs.pod:2904
39314 msgid ""
39315 "The build infrastructure and PO files for translations of manpages and POD "
39316 "files.  Eventually this will be combined with the C<po> directory, but that "
39317 "is rather complicated."
39318 msgstr ""
39319
39320 #. type: =item
39321 #: ../src/guestfs.pod:2908
39322 msgid "C<regressions>"
39323 msgstr "C<regressions>"
39324
39325 #. type: textblock
39326 #: ../src/guestfs.pod:2910
39327 msgid "Regression tests."
39328 msgstr "Тести на регресії."
39329
39330 #. type: =item
39331 #: ../src/guestfs.pod:2912
39332 msgid "C<rescue>"
39333 msgstr "C<rescue>"
39334
39335 #. type: textblock
39336 #: ../src/guestfs.pod:2914
39337 msgid "L<virt-rescue(1)> command and documentation."
39338 msgstr ""
39339
39340 #. type: =item
39341 #: ../src/guestfs.pod:2916
39342 msgid "C<src>"
39343 msgstr "C<src>"
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:2918
39347 msgid "Source code to the C library."
39348 msgstr ""
39349
39350 #. type: =item
39351 #: ../src/guestfs.pod:2920
39352 msgid "C<tools>"
39353 msgstr "C<tools>"
39354
39355 #. type: textblock
39356 #: ../src/guestfs.pod:2922
39357 msgid ""
39358 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39359 msgstr ""
39360
39361 #. type: =item
39362 #: ../src/guestfs.pod:2924
39363 msgid "C<test-tool>"
39364 msgstr "C<test-tool>"
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:2926
39368 msgid ""
39369 "Test tool for end users to test if their qemu/kernel combination will work "
39370 "with libguestfs."
39371 msgstr ""
39372
39373 #. type: =item
39374 #: ../src/guestfs.pod:2929
39375 msgid "C<csharp>"
39376 msgstr "C<csharp>"
39377
39378 #. type: =item
39379 #: ../src/guestfs.pod:2931
39380 msgid "C<erlang>"
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../src/guestfs.pod:2933
39385 msgid "C<haskell>"
39386 msgstr "C<haskell>"
39387
39388 #. type: =item
39389 #: ../src/guestfs.pod:2935
39390 msgid "C<java>"
39391 msgstr "C<java>"
39392
39393 #. type: =item
39394 #: ../src/guestfs.pod:2937
39395 msgid "C<ocaml>"
39396 msgstr "C<ocaml>"
39397
39398 #. type: =item
39399 #: ../src/guestfs.pod:2939
39400 msgid "C<php>"
39401 msgstr "C<php>"
39402
39403 #. type: =item
39404 #: ../src/guestfs.pod:2941
39405 msgid "C<perl>"
39406 msgstr "C<perl>"
39407
39408 #. type: =item
39409 #: ../src/guestfs.pod:2943
39410 msgid "C<python>"
39411 msgstr "C<python>"
39412
39413 #. type: =item
39414 #: ../src/guestfs.pod:2945
39415 msgid "C<ruby>"
39416 msgstr "C<ruby>"
39417
39418 #. type: textblock
39419 #: ../src/guestfs.pod:2947
39420 msgid "Language bindings."
39421 msgstr "Прив’язки до мов програмування."
39422
39423 #. type: =head2
39424 #: ../src/guestfs.pod:2951
39425 msgid "MAKING A STABLE RELEASE"
39426 msgstr ""
39427
39428 #. type: textblock
39429 #: ../src/guestfs.pod:2953
39430 msgid ""
39431 "When we make a stable release, there are several steps documented here.  See "
39432 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39433 "branch policy."
39434 msgstr ""
39435
39436 #. type: textblock
39437 #: ../src/guestfs.pod:2961
39438 msgid ""
39439 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39440 msgstr ""
39441
39442 #. type: textblock
39443 #: ../src/guestfs.pod:2966
39444 msgid "Finalize RELEASE-NOTES."
39445 msgstr ""
39446
39447 #. type: textblock
39448 #: ../src/guestfs.pod:2970
39449 msgid "Update ROADMAP."
39450 msgstr ""
39451
39452 #. type: textblock
39453 #: ../src/guestfs.pod:2974
39454 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39455 msgstr ""
39456
39457 #. type: textblock
39458 #: ../src/guestfs.pod:2978
39459 msgid "Push and pull from Transifex."
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:2980
39464 msgid "Run:"
39465 msgstr ""
39466
39467 #. type: verbatim
39468 #: ../src/guestfs.pod:2982
39469 #, no-wrap
39470 msgid ""
39471 " tx push -s\n"
39472 "\n"
39473 msgstr ""
39474
39475 #. type: textblock
39476 #: ../src/guestfs.pod:2984
39477 msgid "to push the latest POT files to Transifex.  Then run:"
39478 msgstr ""
39479
39480 #. type: verbatim
39481 #: ../src/guestfs.pod:2986
39482 #, no-wrap
39483 msgid ""
39484 " ./tx-pull.sh\n"
39485 "\n"
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../src/guestfs.pod:2988
39490 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39491 msgstr ""
39492
39493 #. type: textblock
39494 #: ../src/guestfs.pod:2992
39495 msgid ""
39496 "Create new stable and development directories under L<http://libguestfs.org/"
39497 "download>."
39498 msgstr ""
39499
39500 #. type: textblock
39501 #: ../src/guestfs.pod:2997
39502 msgid "Create the branch in git:"
39503 msgstr ""
39504
39505 #. type: verbatim
39506 #: ../src/guestfs.pod:2999
39507 #, no-wrap
39508 msgid ""
39509 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39510 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39511 " git branch stable-1.XX\n"
39512 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39513 "\n"
39514 msgstr ""
39515
39516 #. type: =head1
39517 #: ../src/guestfs.pod:3006
39518 msgid "LIMITS"
39519 msgstr ""
39520
39521 #. type: =head2
39522 #: ../src/guestfs.pod:3008
39523 msgid "PROTOCOL LIMITS"
39524 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39525
39526 #. type: textblock
39527 #: ../src/guestfs.pod:3010
39528 msgid ""
39529 "Internally libguestfs uses a message-based protocol to pass API calls and "
39530 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39531 "plenty more detail about this).  The maximum message size used by the "
39532 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39533 "aware of this limit.  The API calls which may be affected are individually "
39534 "documented, with a link back to this section of the documentation."
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:3018
39539 msgid ""
39540 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39541 "a simple string.  Because this string is at some point internally encoded as "
39542 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39543 "the requested file is larger than this then you will get an error."
39544 msgstr ""
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:3024
39548 msgid ""
39549 "In order to transfer large files into and out of the guest filesystem, you "
39550 "need to use particular calls that support this.  The sections L</UPLOADING> "
39551 "and L</DOWNLOADING> document how to do this."
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../src/guestfs.pod:3028
39556 msgid ""
39557 "You might also consider mounting the disk image using our FUSE filesystem "
39558 "support (L<guestmount(1)>)."
39559 msgstr ""
39560
39561 #. type: =head2
39562 #: ../src/guestfs.pod:3031
39563 msgid "MAXIMUM NUMBER OF DISKS"
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../src/guestfs.pod:3033
39568 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:3036
39573 msgid ""
39574 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39575 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39576 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39577 "purposes."
39578 msgstr ""
39579
39580 #. type: textblock
39581 #: ../src/guestfs.pod:3041
39582 msgid ""
39583 "We are working to substantially raise this limit in future versions but it "
39584 "requires complex changes to qemu."
39585 msgstr ""
39586
39587 #. type: textblock
39588 #: ../src/guestfs.pod:3044
39589 msgid ""
39590 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39591 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39592 "requires changes to qemu."
39593 msgstr ""
39594
39595 #. type: =head2
39596 #: ../src/guestfs.pod:3048
39597 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39598 msgstr ""
39599
39600 #. type: textblock
39601 #: ../src/guestfs.pod:3050
39602 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../src/guestfs.pod:3052
39607 msgid ""
39608 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39609 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39610 msgstr ""
39611
39612 #. type: textblock
39613 #: ../src/guestfs.pod:3055
39614 msgid ""
39615 "If you attach a disk with more than 15 partitions, the extra partitions are "
39616 "ignored by libguestfs."
39617 msgstr ""
39618
39619 #. type: =head2
39620 #: ../src/guestfs.pod:3058
39621 msgid "MAXIMUM SIZE OF A DISK"
39622 msgstr ""
39623
39624 #. type: textblock
39625 #: ../src/guestfs.pod:3060
39626 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../src/guestfs.pod:3062
39631 msgid ""
39632 "We have tested block devices up to 1 exabyte (2**60 or "
39633 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39634 "filesystem."
39635 msgstr ""
39636
39637 #. type: textblock
39638 #: ../src/guestfs.pod:3066
39639 msgid ""
39640 "Although libguestfs probably does not impose any limit, the underlying host "
39641 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39642 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39643 "TB).  If you store disk images as host logical volumes then you are limited "
39644 "by the maximum size of an LV."
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:3072
39649 msgid ""
39650 "For the hugest disk image files, we recommend using XFS on the host for "
39651 "storage."
39652 msgstr ""
39653
39654 #. type: =head2
39655 #: ../src/guestfs.pod:3075
39656 msgid "MAXIMUM SIZE OF A PARTITION"
39657 msgstr ""
39658
39659 #. type: textblock
39660 #: ../src/guestfs.pod:3077
39661 msgid ""
39662 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39663 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39664 "address a partition located beyond 2 TB on the disk."
39665 msgstr ""
39666
39667 #. type: textblock
39668 #: ../src/guestfs.pod:3081
39669 msgid ""
39670 "It is recommended that you use GPT partitions on disks which are larger than "
39671 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39672 "which are theoretically larger than the largest disk we could support."
39673 msgstr ""
39674
39675 #. type: =head2
39676 #: ../src/guestfs.pod:3086
39677 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39678 msgstr ""
39679
39680 #. type: textblock
39681 #: ../src/guestfs.pod:3088
39682 msgid ""
39683 "This depends on the filesystem type.  libguestfs itself does not impose any "
39684 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39685 "what these limits are."
39686 msgstr ""
39687
39688 #. type: =head2
39689 #: ../src/guestfs.pod:3092
39690 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39691 msgstr ""
39692
39693 #. type: textblock
39694 #: ../src/guestfs.pod:3094
39695 msgid ""
39696 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39697 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39698 "uploads and downloads."
39699 msgstr ""
39700
39701 #. type: =head2
39702 #: ../src/guestfs.pod:3098
39703 msgid "INSPECTION LIMITS"
39704 msgstr ""
39705
39706 #. type: textblock
39707 #: ../src/guestfs.pod:3100
39708 msgid ""
39709 "The inspection code has several arbitrary limits on things like the size of "
39710 "Windows Registry hive it will read, and the length of product name.  These "
39711 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39712 "memory and disk space on the host, and should not be reached in practice.  "
39713 "See the source code for more information."
39714 msgstr ""
39715
39716 #. type: textblock
39717 #: ../src/guestfs.pod:3126
39718 msgid ""
39719 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39720 "effect as calling C<guestfs_set_verbose (g, 1)>."
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../src/guestfs.pod:3138
39725 msgid ""
39726 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39727 "the discussion of paths in section L</PATH> above."
39728 msgstr ""
39729
39730 #. type: textblock
39731 #: ../src/guestfs.pod:3147
39732 msgid "See also L</QEMU WRAPPERS> above."
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../src/guestfs.pod:3151
39737 msgid ""
39738 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39739 "effect as calling C<guestfs_set_trace (g, 1)>."
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:3169
39744 msgid ""
39745 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39746 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39747 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39748 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39749 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
39750 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
39751 "L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
39752 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-"
39753 "helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
39754 msgstr ""
39755
39756 #. type: textblock
39757 #: ../src/guestfs.pod:3202
39758 msgid ""
39759 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39760 "(8)>, L<disktype(1)>."
39761 msgstr ""
39762
39763 #. type: =head1
39764 #: ../src/guestfs.pod:3209 ../tools/virt-make-fs.pl:553
39765 #: ../tools/virt-win-reg.pl:761
39766 msgid "BUGS"
39767 msgstr "ВАДИ"
39768
39769 #. type: textblock
39770 #: ../src/guestfs.pod:3211
39771 msgid "To get a list of bugs against libguestfs use this link:"
39772 msgstr ""
39773 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
39774 "посиланням:"
39775
39776 #. type: textblock
39777 #: ../src/guestfs.pod:3213
39778 msgid ""
39779 "L<https://bugzilla.redhat.com/buglist.cgi?"
39780 "component=libguestfs&product=Virtualization+Tools>"
39781 msgstr ""
39782 "L<https://bugzilla.redhat.com/buglist.cgi?"
39783 "component=libguestfs&product=Virtualization+Tools>"
39784
39785 #. type: textblock
39786 #: ../src/guestfs.pod:3215
39787 msgid "To report a new bug against libguestfs use this link:"
39788 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:3217
39792 msgid ""
39793 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39794 "component=libguestfs&product=Virtualization+Tools>"
39795 msgstr ""
39796 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39797 "component=libguestfs&product=Virtualization+Tools>"
39798
39799 #. type: textblock
39800 #: ../src/guestfs.pod:3219
39801 msgid "When reporting a bug, please check:"
39802 msgstr ""
39803
39804 #. type: textblock
39805 #: ../src/guestfs.pod:3225
39806 msgid "That the bug hasn't been reported already."
39807 msgstr ""
39808
39809 #. type: textblock
39810 #: ../src/guestfs.pod:3229
39811 msgid "That you are testing a recent version."
39812 msgstr ""
39813
39814 #. type: textblock
39815 #: ../src/guestfs.pod:3233
39816 msgid "Describe the bug accurately, and give a way to reproduce it."
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../src/guestfs.pod:3237
39821 msgid ""
39822 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39823 "bug report."
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../test-tool/libguestfs-test-tool.pod:5
39828 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39829 msgstr ""
39830
39831 #. type: verbatim
39832 #: ../test-tool/libguestfs-test-tool.pod:9
39833 #, no-wrap
39834 msgid ""
39835 " libguestfs-test-tool [--options]\n"
39836 "\n"
39837 msgstr ""
39838
39839 #. type: textblock
39840 #: ../test-tool/libguestfs-test-tool.pod:13
39841 msgid ""
39842 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39843 "to check basic libguestfs functionality is working.  This is needed because "
39844 "libguestfs occasionally breaks for reasons beyond our control: usually "
39845 "because of changes in the underlying qemu or kernel packages, or the host "
39846 "environment."
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../test-tool/libguestfs-test-tool.pod:19
39851 msgid "If you suspect a problem in libguestfs, then just run:"
39852 msgstr ""
39853
39854 #. type: verbatim
39855 #: ../test-tool/libguestfs-test-tool.pod:21
39856 #, no-wrap
39857 msgid ""
39858 " libguestfs-test-tool\n"
39859 "\n"
39860 msgstr ""
39861
39862 #. type: textblock
39863 #: ../test-tool/libguestfs-test-tool.pod:23
39864 msgid "It will print lots of diagnostic messages."
39865 msgstr ""
39866
39867 #. type: textblock
39868 #: ../test-tool/libguestfs-test-tool.pod:25
39869 msgid "If it runs to completion successfully, you will see this near the end:"
39870 msgstr ""
39871
39872 #. type: verbatim
39873 #: ../test-tool/libguestfs-test-tool.pod:27
39874 #, no-wrap
39875 msgid ""
39876 " ===== TEST FINISHED OK =====\n"
39877 "\n"
39878 msgstr ""
39879
39880 #. type: textblock
39881 #: ../test-tool/libguestfs-test-tool.pod:29
39882 msgid "and the test tool will exit with code 0."
39883 msgstr ""
39884
39885 #. type: textblock
39886 #: ../test-tool/libguestfs-test-tool.pod:31
39887 msgid ""
39888 "If it fails (and/or exits with non-zero error code), please paste the "
39889 "I<complete, unedited> output of the test tool into a bug report.  More "
39890 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39891 "> website."
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../test-tool/libguestfs-test-tool.pod:42
39896 msgid "Display short usage information and exit."
39897 msgstr ""
39898
39899 #. type: =item
39900 #: ../test-tool/libguestfs-test-tool.pod:44
39901 #, fuzzy
39902 #| msgid "I<--qemu qemu_binary>"
39903 msgid "B<--qemu qemu_binary>"
39904 msgstr "I<--qemu виконуваний_файл_qemu>"
39905
39906 #. type: textblock
39907 #: ../test-tool/libguestfs-test-tool.pod:46
39908 msgid ""
39909 "If you have downloaded another qemu binary, point this option at the full "
39910 "path of the binary to try it."
39911 msgstr ""
39912
39913 #. type: =item
39914 #: ../test-tool/libguestfs-test-tool.pod:49
39915 #, fuzzy
39916 #| msgid "I<--qemu qemu_binary>"
39917 msgid "B<--qemudir qemu_source_dir>"
39918 msgstr "I<--qemu виконуваний_файл_qemu>"
39919
39920 #. type: textblock
39921 #: ../test-tool/libguestfs-test-tool.pod:51
39922 msgid ""
39923 "If you have compiled qemu from source, point this option at the source "
39924 "directory to try it."
39925 msgstr ""
39926
39927 #. type: =item
39928 #: ../test-tool/libguestfs-test-tool.pod:54
39929 msgid "B<-t N>"
39930 msgstr ""
39931
39932 #. type: =item
39933 #: ../test-tool/libguestfs-test-tool.pod:56
39934 #, fuzzy
39935 #| msgid "I<--timeout N>"
39936 msgid "B<--timeout N>"
39937 msgstr "I<--timeout N>"
39938
39939 #. type: textblock
39940 #: ../test-tool/libguestfs-test-tool.pod:58
39941 msgid ""
39942 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39943 "minutes) which does not usually need to be adjusted."
39944 msgstr ""
39945
39946 #. type: =head1
39947 #: ../test-tool/libguestfs-test-tool.pod:63
39948 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39949 msgstr ""
39950
39951 #. type: textblock
39952 #: ../test-tool/libguestfs-test-tool.pod:65
39953 msgid ""
39954 "If you have compiled another version of qemu from source and would like to "
39955 "try that, then you can use the I<--qemudir> option to point to the qemu "
39956 "source directory."
39957 msgstr ""
39958
39959 #. type: textblock
39960 #: ../test-tool/libguestfs-test-tool.pod:69
39961 msgid ""
39962 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39963 "option to point to the binary."
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../test-tool/libguestfs-test-tool.pod:72
39968 msgid ""
39969 "Note when using these options, you can ignore the business of qemu wrapper "
39970 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39971 "wrapper script for you if one is needed."
39972 msgstr ""
39973
39974 #. type: =head1
39975 #: ../test-tool/libguestfs-test-tool.pod:76
39976 msgid "TRYING OUT A DIFFERENT KERNEL"
39977 msgstr ""
39978
39979 #. type: textblock
39980 #: ../test-tool/libguestfs-test-tool.pod:78
39981 msgid ""
39982 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39983 "libguestfs tries.  You do this by setting the environment variables "
39984 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39985 msgstr ""
39986
39987 #. type: textblock
39988 #: ../test-tool/libguestfs-test-tool.pod:82
39989 msgid ""
39990 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39991 "information."
39992 msgstr ""
39993
39994 #. type: =head1
39995 #: ../test-tool/libguestfs-test-tool.pod:85
39996 msgid "SELF-DIAGNOSIS"
39997 msgstr ""
39998
39999 #. type: textblock
40000 #: ../test-tool/libguestfs-test-tool.pod:87
40001 msgid ""
40002 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40003 "produced by libguestfs-test-tool and/or possible errors."
40004 msgstr ""
40005
40006 #. type: textblock
40007 #: ../test-tool/libguestfs-test-tool.pod:92
40008 msgid ""
40009 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40010 "I<1> if there was an error."
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../test-tool/libguestfs-test-tool.pod:97
40015 msgid ""
40016 "For the full list of environment variables which may affect libguestfs, "
40017 "please see the L<guestfs(3)> manual page."
40018 msgstr ""
40019
40020 #. type: textblock
40021 #: ../test-tool/libguestfs-test-tool.pod:102
40022 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../tools/virt-list-filesystems.pl:32
40027 msgid ""
40028 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40029 msgstr ""
40030
40031 #. type: verbatim
40032 #: ../tools/virt-list-filesystems.pl:36
40033 #, no-wrap
40034 msgid ""
40035 " virt-list-filesystems [--options] domname\n"
40036 "\n"
40037 msgstr ""
40038
40039 #. type: verbatim
40040 #: ../tools/virt-list-filesystems.pl:38
40041 #, no-wrap
40042 msgid ""
40043 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40044 "\n"
40045 msgstr ""
40046
40047 #. type: textblock
40048 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40049 msgid ""
40050 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40051 "replacement."
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../tools/virt-list-filesystems.pl:45
40056 msgid ""
40057 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40058 "are contained in a virtual machine or disk image."
40059 msgstr ""
40060
40061 #. type: textblock
40062 #: ../tools/virt-list-filesystems.pl:49
40063 msgid ""
40064 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40065 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40066 "> tool."
40067 msgstr ""
40068
40069 #. type: textblock
40070 #: ../tools/virt-list-filesystems.pl:112
40071 msgid ""
40072 "With this option, C<virt-list-filesystems> displays the type of each "
40073 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40074 msgstr ""
40075
40076 #. type: =item
40077 #: ../tools/virt-list-filesystems.pl:119
40078 #, fuzzy
40079 #| msgid "B<-a image>"
40080 msgid "B<-a>"
40081 msgstr "B<-a образ>"
40082
40083 #. type: textblock
40084 #: ../tools/virt-list-filesystems.pl:123
40085 msgid ""
40086 "Normally we only show mountable filesystems.  If this option is given then "
40087 "swap devices are shown too."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../tools/virt-list-filesystems.pl:197
40092 msgid ""
40093 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40094 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40095 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40096 msgstr ""
40097 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40098 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40099 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40100
40101 #. type: textblock
40102 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40103 msgid "Copyright (C) 2009 Red Hat Inc."
40104 msgstr "© Red Hat Inc., 2009"
40105
40106 #. type: textblock
40107 #: ../tools/virt-list-partitions.pl:32
40108 msgid ""
40109 "virt-list-partitions - List partitions in a virtual machine or disk image"
40110 msgstr ""
40111
40112 #. type: verbatim
40113 #: ../tools/virt-list-partitions.pl:36
40114 #, no-wrap
40115 msgid ""
40116 " virt-list-partitions [--options] domname\n"
40117 "\n"
40118 msgstr ""
40119 " virt-list-partitions [--параметри] назва_домену\n"
40120 "\n"
40121
40122 #. type: verbatim
40123 #: ../tools/virt-list-partitions.pl:38
40124 #, no-wrap
40125 msgid ""
40126 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40127 "\n"
40128 msgstr ""
40129 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
40130 "\n"
40131
40132 #. type: textblock
40133 #: ../tools/virt-list-partitions.pl:45
40134 msgid ""
40135 "C<virt-list-partitions> is a command line tool to list the partitions that "
40136 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40137 "first step to using L<virt-resize(1)>."
40138 msgstr ""
40139
40140 #. type: textblock
40141 #: ../tools/virt-list-partitions.pl:50
40142 msgid ""
40143 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40144 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40145 "> tool."
40146 msgstr ""
40147
40148 #. type: textblock
40149 #: ../tools/virt-list-partitions.pl:113
40150 msgid "Show sizes in human-readable form (eg. \"1G\")."
40151 msgstr ""
40152
40153 #. type: textblock
40154 #: ../tools/virt-list-partitions.pl:123
40155 msgid ""
40156 "With this option, C<virt-list-partitions> displays the type and size of each "
40157 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40158 msgstr ""
40159
40160 #. type: =item
40161 #: ../tools/virt-list-partitions.pl:130
40162 msgid "B<-t>"
40163 msgstr ""
40164
40165 #. type: =item
40166 #: ../tools/virt-list-partitions.pl:132
40167 #, fuzzy
40168 #| msgid "B<-t> | B<--total>"
40169 msgid "B<--total>"
40170 msgstr "B<-t> | B<--total>"
40171
40172 #. type: textblock
40173 #: ../tools/virt-list-partitions.pl:134
40174 msgid ""
40175 "Display the total size of each block device (as a separate row or rows)."
40176 msgstr ""
40177
40178 #. type: textblock
40179 #: ../tools/virt-list-partitions.pl:267
40180 msgid ""
40181 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40182 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40183 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40184 msgstr ""
40185 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40186 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40187 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40188
40189 #. type: textblock
40190 #: ../tools/virt-list-partitions.pl:283
40191 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40192 msgstr "© Red Hat Inc., 2009–2010"
40193
40194 #. type: textblock
40195 #: ../tools/virt-make-fs.pl:37
40196 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40197 msgstr ""
40198
40199 #. type: verbatim
40200 #: ../tools/virt-make-fs.pl:41
40201 #, no-wrap
40202 msgid ""
40203 " virt-make-fs [--options] input.tar output.img\n"
40204 "\n"
40205 msgstr ""
40206
40207 #. type: verbatim
40208 #: ../tools/virt-make-fs.pl:43
40209 #, no-wrap
40210 msgid ""
40211 " virt-make-fs [--options] input.tar.gz output.img\n"
40212 "\n"
40213 msgstr ""
40214
40215 #. type: verbatim
40216 #: ../tools/virt-make-fs.pl:45
40217 #, no-wrap
40218 msgid ""
40219 " virt-make-fs [--options] directory output.img\n"
40220 "\n"
40221 msgstr ""
40222
40223 #. type: textblock
40224 #: ../tools/virt-make-fs.pl:49
40225 msgid ""
40226 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40227 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40228 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40229 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40230 "you want to attach these filesystems to existing virtual machines (eg. to "
40231 "import large amounts of read-only data to a VM)."
40232 msgstr ""
40233
40234 #. type: textblock
40235 #: ../tools/virt-make-fs.pl:57
40236 msgid "Basic usage is:"
40237 msgstr ""
40238
40239 #. type: verbatim
40240 #: ../tools/virt-make-fs.pl:59
40241 #, no-wrap
40242 msgid ""
40243 " virt-make-fs input output\n"
40244 "\n"
40245 msgstr ""
40246
40247 #. type: textblock
40248 #: ../tools/virt-make-fs.pl:61
40249 msgid ""
40250 "where C<input> is either a directory containing files that you want to add, "
40251 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40252 "C<output> is a disk image.  The input type is detected automatically.  The "
40253 "output disk image defaults to a raw ext2 image unless you specify extra "
40254 "flags (see L</OPTIONS> below)."
40255 msgstr ""
40256
40257 #. type: =head2
40258 #: ../tools/virt-make-fs.pl:67
40259 msgid "EXTRA SPACE"
40260 msgstr ""
40261
40262 #. type: textblock
40263 #: ../tools/virt-make-fs.pl:69
40264 msgid ""
40265 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40266 "the files that it contains, but might have extra space.  Depending on how "
40267 "you are going to use the output, you might think this extra space is wasted "
40268 "and want to minimize it, or you might want to leave space so that more files "
40269 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40270 "but you can use the I<--size> flag to leave space in the filesystem if you "
40271 "want it."
40272 msgstr ""
40273
40274 #. type: textblock
40275 #: ../tools/virt-make-fs.pl:77
40276 msgid ""
40277 "An alternative way to leave extra space but not make the output image any "
40278 "bigger is to use an alternative disk image format (instead of the default "
40279 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40280 "image format (check your hypervisor supports this before using it).  This "
40281 "allows you to choose a large I<--size> but the extra space won't actually be "
40282 "allocated in the image until you try to store something in it."
40283 msgstr ""
40284
40285 #. type: textblock
40286 #: ../tools/virt-make-fs.pl:85
40287 msgid ""
40288 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40289 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40290 "to build another image from scratch."
40291 msgstr ""
40292
40293 #. type: =head3
40294 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
40295 #: ../tools/virt-make-fs.pl:142
40296 msgid "EXAMPLE"
40297 msgstr "ПРИКЛАД"
40298
40299 #. type: verbatim
40300 #: ../tools/virt-make-fs.pl:91
40301 #, no-wrap
40302 msgid ""
40303 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40304 "\n"
40305 msgstr ""
40306 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40307 "\n"
40308
40309 #. type: =head2
40310 #: ../tools/virt-make-fs.pl:93
40311 msgid "FILESYSTEM TYPE"
40312 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
40313
40314 #. type: textblock
40315 #: ../tools/virt-make-fs.pl:95
40316 msgid ""
40317 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40318 "libguestfs supports can be used (but I<not> read-only formats like "
40319 "ISO9660).  Here are some of the more common choices:"
40320 msgstr ""
40321
40322 #. type: =item
40323 #: ../tools/virt-make-fs.pl:101
40324 msgid "I<ext3>"
40325 msgstr "I<ext3>"
40326
40327 #. type: textblock
40328 #: ../tools/virt-make-fs.pl:103
40329 msgid ""
40330 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40331 "you are not going to use the filesystem in a way that requires the journal, "
40332 "then this is just wasted overhead."
40333 msgstr ""
40334
40335 #. type: =item
40336 #: ../tools/virt-make-fs.pl:107
40337 msgid "I<ntfs> or I<vfat>"
40338 msgstr "I<ntfs> або I<vfat>"
40339
40340 #. type: textblock
40341 #: ../tools/virt-make-fs.pl:109
40342 msgid "Useful if exporting data to a Windows guest."
40343 msgstr ""
40344
40345 #. type: textblock
40346 #: ../tools/virt-make-fs.pl:111
40347 msgid ""
40348 "I<Note for vfat>: The tar archive or local directory must only contain files "
40349 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40350 "program running within libguestfs is unable to change the ownership of non-"
40351 "root files, since vfat itself does not support this."
40352 msgstr ""
40353
40354 #. type: =item
40355 #: ../tools/virt-make-fs.pl:116
40356 msgid "I<minix>"
40357 msgstr "I<minix>"
40358
40359 #. type: textblock
40360 #: ../tools/virt-make-fs.pl:118
40361 msgid ""
40362 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40363 "total filesystem size."
40364 msgstr ""
40365
40366 #. type: verbatim
40367 #: ../tools/virt-make-fs.pl:125
40368 #, no-wrap
40369 msgid ""
40370 " virt-make-fs --type=minix input minixfs.img\n"
40371 "\n"
40372 msgstr ""
40373
40374 #. type: =head2
40375 #: ../tools/virt-make-fs.pl:127
40376 msgid "TO PARTITION OR NOT TO PARTITION"
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../tools/virt-make-fs.pl:129
40381 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40382 msgstr ""
40383
40384 #. type: textblock
40385 #: ../tools/virt-make-fs.pl:131
40386 msgid ""
40387 "Adding a partition can make the disk image more compatible with certain "
40388 "virtualized operating systems which don't expect to see a filesystem "
40389 "directly located on a block device (Linux doesn't care and will happily "
40390 "handle both types)."
40391 msgstr ""
40392
40393 #. type: textblock
40394 #: ../tools/virt-make-fs.pl:136
40395 msgid ""
40396 "On the other hand, if you have a partition table then the output image is no "
40397 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40398 "directly on a partitioned disk image.  (However libguestfs tools such as "
40399 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40400 msgstr ""
40401
40402 #. type: textblock
40403 #: ../tools/virt-make-fs.pl:144
40404 msgid "Add an MBR partition:"
40405 msgstr ""
40406
40407 #. type: verbatim
40408 #: ../tools/virt-make-fs.pl:146
40409 #, no-wrap
40410 msgid ""
40411 " virt-make-fs --partition -- input disk.img\n"
40412 "\n"
40413 msgstr ""
40414
40415 #. type: textblock
40416 #: ../tools/virt-make-fs.pl:148
40417 msgid ""
40418 "If the output disk image could be terabyte-sized or larger, it's better to "
40419 "use an EFI/GPT-compatible partition table:"
40420 msgstr ""
40421
40422 #. type: verbatim
40423 #: ../tools/virt-make-fs.pl:151
40424 #, no-wrap
40425 msgid ""
40426 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40427 "\n"
40428 msgstr ""
40429
40430 #. type: textblock
40431 #: ../tools/virt-make-fs.pl:179
40432 msgid "Enable debugging information."
40433 msgstr "Увімкнути виведення діагностичних даних."
40434
40435 #. type: =item
40436 #: ../tools/virt-make-fs.pl:185
40437 msgid "B<--size=E<lt>NE<gt>>"
40438 msgstr "B<--size=E<lt>NE<gt>>"
40439
40440 #. type: =item
40441 #: ../tools/virt-make-fs.pl:187
40442 msgid "B<--size=+E<lt>NE<gt>>"
40443 msgstr "B<--size=+E<lt>NE<gt>>"
40444
40445 #. type: =item
40446 #: ../tools/virt-make-fs.pl:189
40447 msgid "B<-s E<lt>NE<gt>>"
40448 msgstr "B<-s E<lt>NE<gt>>"
40449
40450 #. type: =item
40451 #: ../tools/virt-make-fs.pl:191
40452 msgid "B<-s +E<lt>NE<gt>>"
40453 msgstr "B<-s +E<lt>NE<gt>>"
40454
40455 #. type: textblock
40456 #: ../tools/virt-make-fs.pl:193
40457 msgid ""
40458 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40459 msgstr ""
40460
40461 #. type: textblock
40462 #: ../tools/virt-make-fs.pl:196
40463 msgid ""
40464 "If this option is I<not> given, then the output image will be just large "
40465 "enough to contain all the files, with not much wasted space."
40466 msgstr ""
40467
40468 #. type: textblock
40469 #: ../tools/virt-make-fs.pl:199
40470 msgid ""
40471 "To choose a fixed size output disk, specify an absolute number followed by b/"
40472 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40473 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40474 "files, else you will get an error."
40475 msgstr ""
40476
40477 #. type: textblock
40478 #: ../tools/virt-make-fs.pl:204
40479 msgid ""
40480 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40481 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40482 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40483 "the input files, and (approximately) an extra 200 MB free space."
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../tools/virt-make-fs.pl:210
40488 msgid ""
40489 "Note that virt-make-fs estimates free space, and therefore will not produce "
40490 "filesystems containing precisely the free space requested.  (It is much more "
40491 "expensive and time-consuming to produce a filesystem which has precisely the "
40492 "desired free space)."
40493 msgstr ""
40494
40495 #. type: =item
40496 #: ../tools/virt-make-fs.pl:219
40497 msgid "B<--format=E<lt>fmtE<gt>>"
40498 msgstr ""
40499
40500 #. type: =item
40501 #: ../tools/virt-make-fs.pl:221
40502 msgid "B<-F E<lt>fmtE<gt>>"
40503 msgstr ""
40504
40505 #. type: textblock
40506 #: ../tools/virt-make-fs.pl:223
40507 msgid "Choose the output disk image format."
40508 msgstr ""
40509
40510 #. type: textblock
40511 #: ../tools/virt-make-fs.pl:225
40512 msgid "The default is C<raw> (raw disk image)."
40513 msgstr ""
40514
40515 #. type: textblock
40516 #: ../tools/virt-make-fs.pl:227
40517 msgid ""
40518 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40519 "that would really make sense here is C<qcow2>."
40520 msgstr ""
40521
40522 #. type: =item
40523 #: ../tools/virt-make-fs.pl:234
40524 msgid "B<--type=E<lt>fsE<gt>>"
40525 msgstr ""
40526
40527 #. type: =item
40528 #: ../tools/virt-make-fs.pl:236
40529 msgid "B<-t E<lt>fsE<gt>>"
40530 msgstr ""
40531
40532 #. type: textblock
40533 #: ../tools/virt-make-fs.pl:238
40534 msgid "Choose the output filesystem type."
40535 msgstr ""
40536
40537 #. type: textblock
40538 #: ../tools/virt-make-fs.pl:240
40539 msgid "The default is C<ext2>."
40540 msgstr "Типовим значенням є C<ext2>."
40541
40542 #. type: textblock
40543 #: ../tools/virt-make-fs.pl:242
40544 msgid ""
40545 "Any filesystem which is supported read-write by libguestfs can be used here."
40546 msgstr ""
40547
40548 #. type: =item
40549 #: ../tools/virt-make-fs.pl:249
40550 msgid "B<--partition>"
40551 msgstr "B<--partition>"
40552
40553 #. type: =item
40554 #: ../tools/virt-make-fs.pl:251
40555 msgid "B<--partition=E<lt>parttypeE<gt>>"
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../tools/virt-make-fs.pl:253
40560 msgid ""
40561 "If specified, this flag adds an MBR partition table to the output disk image."
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../tools/virt-make-fs.pl:256
40566 msgid ""
40567 "You can change the partition table type, eg. I<--partition=gpt> for large "
40568 "disks."
40569 msgstr ""
40570
40571 #. type: textblock
40572 #: ../tools/virt-make-fs.pl:259
40573 msgid ""
40574 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40575 "might consider the next parameter to be the partition type.  For example:"
40576 msgstr ""
40577
40578 #. type: verbatim
40579 #: ../tools/virt-make-fs.pl:263
40580 #, no-wrap
40581 msgid ""
40582 " virt-make-fs --partition input.tar ...\n"
40583 "\n"
40584 msgstr ""
40585
40586 #. type: textblock
40587 #: ../tools/virt-make-fs.pl:265
40588 msgid ""
40589 "would cause virt-make-fs to think you wanted to use a partition type of "
40590 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40591 "dash) between options and the input file argument:"
40592 msgstr ""
40593
40594 #. type: verbatim
40595 #: ../tools/virt-make-fs.pl:269
40596 #, no-wrap
40597 msgid ""
40598 " virt-make-fs --partition -- input.tar ...\n"
40599 "\n"
40600 msgstr ""
40601 " virt-make-fs --partition -- input.tar ...\n"
40602 "\n"
40603
40604 #. type: textblock
40605 #: ../tools/virt-make-fs.pl:541
40606 msgid ""
40607 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40608 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40609 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40610 msgstr ""
40611 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40612 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40613 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40614
40615 #. type: textblock
40616 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40617 msgid ""
40618 "When reporting bugs, please enable debugging and capture the I<complete> "
40619 "output:"
40620 msgstr ""
40621
40622 #. type: verbatim
40623 #: ../tools/virt-make-fs.pl:558
40624 #, no-wrap
40625 msgid ""
40626 " export LIBGUESTFS_DEBUG=1\n"
40627 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40628 "\n"
40629 msgstr ""
40630 " export LIBGUESTFS_DEBUG=1\n"
40631 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40632 "\n"
40633
40634 #. type: textblock
40635 #: ../tools/virt-make-fs.pl:561
40636 msgid ""
40637 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40638 "redhat.com/>"
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../tools/virt-tar.pl:33
40643 msgid "virt-tar - Extract or upload files to a virtual machine"
40644 msgstr ""
40645
40646 #. type: verbatim
40647 #: ../tools/virt-tar.pl:37
40648 #, no-wrap
40649 msgid ""
40650 " virt-tar [--options] -x domname directory tarball\n"
40651 "\n"
40652 msgstr ""
40653
40654 #. type: verbatim
40655 #: ../tools/virt-tar.pl:39
40656 #, no-wrap
40657 msgid ""
40658 " virt-tar [--options] -u domname tarball directory\n"
40659 "\n"
40660 msgstr ""
40661
40662 #. type: verbatim
40663 #: ../tools/virt-tar.pl:41
40664 #, no-wrap
40665 msgid ""
40666 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40667 "\n"
40668 msgstr ""
40669
40670 #. type: verbatim
40671 #: ../tools/virt-tar.pl:43
40672 #, no-wrap
40673 msgid ""
40674 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40675 "\n"
40676 msgstr ""
40677
40678 #. type: =head2
40679 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40680 msgid "NOTE"
40681 msgstr "ПРИМІТКА"
40682
40683 #. type: textblock
40684 #: ../tools/virt-tar.pl:47
40685 msgid ""
40686 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40687 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40688 msgstr ""
40689
40690 #. type: textblock
40691 #: ../tools/virt-tar.pl:52
40692 msgid "Download C</home> from the VM into a local tarball:"
40693 msgstr ""
40694
40695 #. type: verbatim
40696 #: ../tools/virt-tar.pl:54
40697 #, no-wrap
40698 msgid ""
40699 " virt-tar -x domname /home home.tar\n"
40700 "\n"
40701 msgstr ""
40702
40703 #. type: verbatim
40704 #: ../tools/virt-tar.pl:56
40705 #, no-wrap
40706 msgid ""
40707 " virt-tar -zx domname /home home.tar.gz\n"
40708 "\n"
40709 msgstr ""
40710
40711 #. type: textblock
40712 #: ../tools/virt-tar.pl:58
40713 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40714 msgstr ""
40715
40716 #. type: verbatim
40717 #: ../tools/virt-tar.pl:60
40718 #, no-wrap
40719 msgid ""
40720 " virt-tar -u domname uploadstuff.tar /tmp\n"
40721 "\n"
40722 msgstr ""
40723
40724 #. type: verbatim
40725 #: ../tools/virt-tar.pl:62
40726 #, no-wrap
40727 msgid ""
40728 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40729 "\n"
40730 msgstr ""
40731
40732 #. type: textblock
40733 #: ../tools/virt-tar.pl:66
40734 msgid ""
40735 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40736 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40737 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../tools/virt-tar.pl:71
40742 msgid ""
40743 "You can use I<-x> (extract) on live virtual machines, but you might get "
40744 "inconsistent results or errors if there is filesystem activity inside the "
40745 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40746 "work, but the only way to guarantee consistent results is if the virtual "
40747 "machine is shut down."
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../tools/virt-tar.pl:79
40752 msgid ""
40753 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40754 "parts of a guest filesystem.  There are many possibilities: making backups, "
40755 "uploading data files, snooping on guest activity, fixing or customizing "
40756 "guests, etc."
40757 msgstr ""
40758
40759 #. type: textblock
40760 #: ../tools/virt-tar.pl:84
40761 msgid ""
40762 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40763 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40764 "should look at the L<guestfish(1)> tool."
40765 msgstr ""
40766
40767 #. type: textblock
40768 #: ../tools/virt-tar.pl:88
40769 msgid ""
40770 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40771 "its contents (recursively) from the virtual machine into a local tarball.  "
40772 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40773 "virtual machine.  You cannot use these two options together."
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../tools/virt-tar.pl:94
40778 msgid ""
40779 "In addition, you may need to use the I<-z> (gZip) option to enable "
40780 "compression.  When uploading, you have to specify I<-z> if the upload file "
40781 "is compressed because virt-tar won't detect this on its own."
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../tools/virt-tar.pl:98
40786 msgid ""
40787 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40788 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40789 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40790 "the L<libguestfs(3)> API)."
40791 msgstr ""
40792
40793 #. type: =item
40794 #: ../tools/virt-tar.pl:160
40795 #, fuzzy
40796 #| msgid "B<--format>"
40797 msgid "B<--extract>"
40798 msgstr "B<--format>"
40799
40800 #. type: =item
40801 #: ../tools/virt-tar.pl:162
40802 #, fuzzy
40803 #| msgid "download"
40804 msgid "B<--download>"
40805 msgstr "download"
40806
40807 #. type: =item
40808 #: ../tools/virt-tar.pl:164
40809 msgid "B<-u>"
40810 msgstr ""
40811
40812 #. type: =item
40813 #: ../tools/virt-tar.pl:166
40814 #, fuzzy
40815 #| msgid "B<-u> | B<--upload>"
40816 msgid "B<--upload>"
40817 msgstr "B<-u> | B<--upload>"
40818
40819 #. type: textblock
40820 #: ../tools/virt-tar.pl:168
40821 msgid ""
40822 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40823 "local tarball."
40824 msgstr ""
40825
40826 #. type: textblock
40827 #: ../tools/virt-tar.pl:171
40828 msgid ""
40829 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40830 "Please read the L</WARNING> section above before using this option."
40831 msgstr ""
40832
40833 #. type: textblock
40834 #: ../tools/virt-tar.pl:175
40835 msgid "You must specify exactly one of these options."
40836 msgstr ""
40837
40838 #. type: =item
40839 #: ../tools/virt-tar.pl:181
40840 msgid "B<-z>"
40841 msgstr ""
40842
40843 #. type: =item
40844 #: ../tools/virt-tar.pl:183
40845 #, fuzzy
40846 #| msgid "B<-z> | B<--gzip>"
40847 msgid "B<--gzip>"
40848 msgstr "B<-z> | B<--gzip>"
40849
40850 #. type: textblock
40851 #: ../tools/virt-tar.pl:185
40852 msgid "Specify that the input or output tarball is gzip-compressed."
40853 msgstr ""
40854
40855 #. type: textblock
40856 #: ../tools/virt-tar.pl:298
40857 msgid ""
40858 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40859 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40860 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40861 "org/>."
40862 msgstr ""
40863 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40864 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40865 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40866 "org/>."
40867
40868 #. type: textblock
40869 #: ../tools/virt-win-reg.pl:37
40870 msgid ""
40871 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40872 msgstr ""
40873
40874 #. type: verbatim
40875 #: ../tools/virt-win-reg.pl:41
40876 #, no-wrap
40877 msgid ""
40878 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40879 "\n"
40880 msgstr ""
40881
40882 #. type: verbatim
40883 #: ../tools/virt-win-reg.pl:43
40884 #, no-wrap
40885 msgid ""
40886 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40887 "\n"
40888 msgstr ""
40889
40890 #. type: verbatim
40891 #: ../tools/virt-win-reg.pl:45
40892 #, no-wrap
40893 msgid ""
40894 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40895 "\n"
40896 msgstr ""
40897
40898 #. type: verbatim
40899 #: ../tools/virt-win-reg.pl:47
40900 #, no-wrap
40901 msgid ""
40902 " virt-win-reg --merge domname [input.reg ...]\n"
40903 "\n"
40904 msgstr ""
40905
40906 #. type: verbatim
40907 #: ../tools/virt-win-reg.pl:49
40908 #, no-wrap
40909 msgid ""
40910 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40911 "\n"
40912 msgstr ""
40913
40914 #. type: textblock
40915 #: ../tools/virt-win-reg.pl:53
40916 msgid ""
40917 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40918 "virtual machines.  If you do this, you I<will> get irreversible disk "
40919 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40920 "but doesn't catch all cases."
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../tools/virt-win-reg.pl:58
40925 msgid ""
40926 "Modifying the Windows Registry is an inherently risky operation.  The format "
40927 "is deliberately obscure and undocumented, and Registry changes can leave the "
40928 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40929 "you have a reliable backup first."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../tools/virt-win-reg.pl:65
40934 msgid ""
40935 "This program can export and merge Windows Registry entries from a Windows "
40936 "guest."
40937 msgstr ""
40938
40939 #. type: textblock
40940 #: ../tools/virt-win-reg.pl:68
40941 msgid ""
40942 "The first parameter is the libvirt guest name or the raw disk image of a "
40943 "Windows guest."
40944 msgstr ""
40945
40946 #. type: textblock
40947 #: ../tools/virt-win-reg.pl:71
40948 msgid ""
40949 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40950 "exported (recursively).  For example:"
40951 msgstr ""
40952
40953 #. type: verbatim
40954 #: ../tools/virt-win-reg.pl:74
40955 #, no-wrap
40956 msgid ""
40957 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40958 "\n"
40959 msgstr ""
40960
40961 #. type: textblock
40962 #: ../tools/virt-win-reg.pl:76
40963 msgid ""
40964 "You can also display single values from within registry keys, for example:"
40965 msgstr ""
40966
40967 #. type: verbatim
40968 #: ../tools/virt-win-reg.pl:79
40969 #, no-wrap
40970 msgid ""
40971 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40972 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40973 " Windows 7 Enterprise\n"
40974 "\n"
40975 msgstr ""
40976
40977 #. type: textblock
40978 #: ../tools/virt-win-reg.pl:83
40979 msgid ""
40980 "With I<--merge>, you can merge a textual regedit file into the Windows "
40981 "Registry:"
40982 msgstr ""
40983
40984 #. type: verbatim
40985 #: ../tools/virt-win-reg.pl:86
40986 #, no-wrap
40987 msgid ""
40988 " $ virt-win-reg --merge Windows7 changes.reg\n"
40989 "\n"
40990 msgstr ""
40991
40992 #. type: textblock
40993 #: ../tools/virt-win-reg.pl:90
40994 msgid ""
40995 "This program is only meant for simple access to the registry.  If you want "
40996 "to do complicated things with the registry, we suggest you download the "
40997 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40998 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40999 "L<hivexregedit(1)>."
41000 msgstr ""
41001
41002 #. type: =item
41003 #: ../tools/virt-win-reg.pl:159
41004 msgid "B<--merge>"
41005 msgstr "B<--merge>"
41006
41007 #. type: textblock
41008 #: ../tools/virt-win-reg.pl:161
41009 msgid ""
41010 "In merge mode, this merges a textual regedit file into the Windows Registry "
41011 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41012 "displays or exports Registry entries instead."
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../tools/virt-win-reg.pl:165
41017 msgid ""
41018 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41019 "result in disk corruption.  However exporting (without this flag)  is always "
41020 "safe."
41021 msgstr ""
41022
41023 #. type: =item
41024 #: ../tools/virt-win-reg.pl:173
41025 msgid "B<--encoding> UTF-16LE|ASCII"
41026 msgstr ""
41027
41028 #. type: textblock
41029 #: ../tools/virt-win-reg.pl:175
41030 msgid ""
41031 "When merging (only), you may need to specify the encoding for strings to be "
41032 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41033 "(3)/ENCODING STRINGS>."
41034 msgstr ""
41035
41036 #. type: textblock
41037 #: ../tools/virt-win-reg.pl:179
41038 msgid ""
41039 "The default is to use UTF-16LE, which should work with recent versions of "
41040 "Windows."
41041 msgstr ""
41042
41043 #. type: =item
41044 #: ../tools/virt-win-reg.pl:186
41045 msgid "B<--unsafe-printable-strings>"
41046 msgstr ""
41047
41048 #. type: textblock
41049 #: ../tools/virt-win-reg.pl:188
41050 msgid ""
41051 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41052 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41053 "present."
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../tools/virt-win-reg.pl:192
41058 msgid ""
41059 "This is unsafe and does not preserve the fidelity of strings in the original "
41060 "Registry for various reasons:"
41061 msgstr ""
41062
41063 #. type: textblock
41064 #: ../tools/virt-win-reg.pl:199
41065 msgid ""
41066 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41067 "other encodings will be corrupted by this transformation."
41068 msgstr ""
41069
41070 #. type: textblock
41071 #: ../tools/virt-win-reg.pl:204
41072 msgid ""
41073 "Assumes that everything which has type 1 or 2 is really a string and that "
41074 "everything else is not a string, but the type field in real Registries is "
41075 "not reliable."
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../tools/virt-win-reg.pl:210
41080 msgid ""
41081 "Loses information about whether a zero codepoint followed the string in the "
41082 "Registry or not."
41083 msgstr ""
41084
41085 #. type: textblock
41086 #: ../tools/virt-win-reg.pl:215
41087 msgid ""
41088 "This all happens because the Registry itself contains no information about "
41089 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41090 msgstr ""
41091
41092 #. type: textblock
41093 #: ../tools/virt-win-reg.pl:219
41094 msgid ""
41095 "You should only use this option for quick hacking and debugging of the "
41096 "Registry contents, and I<never> use it if the output is going to be passed "
41097 "into another program or stored in another Registry."
41098 msgstr ""
41099
41100 #. type: =head1
41101 #: ../tools/virt-win-reg.pl:556
41102 msgid "SUPPORTED SYSTEMS"
41103 msgstr ""
41104
41105 #. type: textblock
41106 #: ../tools/virt-win-reg.pl:558
41107 msgid ""
41108 "The program currently supports Windows NT-derived guests starting with "
41109 "Windows XP through to at least Windows 7."
41110 msgstr ""
41111
41112 #. type: textblock
41113 #: ../tools/virt-win-reg.pl:561
41114 msgid "The following Registry keys are supported:"
41115 msgstr ""
41116
41117 #. type: =item
41118 #: ../tools/virt-win-reg.pl:565
41119 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41120 msgstr ""
41121
41122 #. type: =item
41123 #: ../tools/virt-win-reg.pl:567
41124 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41125 msgstr ""
41126
41127 #. type: =item
41128 #: ../tools/virt-win-reg.pl:569
41129 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41130 msgstr ""
41131
41132 #. type: =item
41133 #: ../tools/virt-win-reg.pl:571
41134 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41135 msgstr ""
41136
41137 #. type: =item
41138 #: ../tools/virt-win-reg.pl:573
41139 msgid "C<HKEY_USERS\\.DEFAULT>"
41140 msgstr ""
41141
41142 #. type: =item
41143 #: ../tools/virt-win-reg.pl:575
41144 msgid "C<HKEY_USERS\\I<SID>>"
41145 msgstr ""
41146
41147 #. type: textblock
41148 #: ../tools/virt-win-reg.pl:577
41149 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41150 msgstr ""
41151
41152 #. type: =item
41153 #: ../tools/virt-win-reg.pl:579
41154 msgid "C<HKEY_USERS\\I<username>>"
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../tools/virt-win-reg.pl:581
41159 msgid ""
41160 "where I<username> is a local user name (this is a libguestfs extension)."
41161 msgstr ""
41162
41163 #. type: textblock
41164 #: ../tools/virt-win-reg.pl:585
41165 msgid ""
41166 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41167 "C<HKEY_USERS>."
41168 msgstr ""
41169
41170 #. type: textblock
41171 #: ../tools/virt-win-reg.pl:588
41172 msgid ""
41173 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41174 "supported (there is no \"current user\")."
41175 msgstr ""
41176
41177 #. type: =head1
41178 #: ../tools/virt-win-reg.pl:591
41179 msgid "ENCODING"
41180 msgstr "КОДУВАННЯ"
41181
41182 #. type: textblock
41183 #: ../tools/virt-win-reg.pl:593
41184 msgid ""
41185 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41186 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41187 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41188 "Windows-style line endings, you may need to reencode the whole file before "
41189 "or after processing."
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../tools/virt-win-reg.pl:599
41194 msgid ""
41195 "To reencode a file from Windows format to Linux (before processing it with "
41196 "the I<--merge> option), you would do something like this:"
41197 msgstr ""
41198
41199 #. type: verbatim
41200 #: ../tools/virt-win-reg.pl:602
41201 #, no-wrap
41202 msgid ""
41203 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41204 "\n"
41205 msgstr ""
41206
41207 #. type: textblock
41208 #: ../tools/virt-win-reg.pl:604
41209 msgid ""
41210 "To go in the opposite direction, after exporting and before sending the file "
41211 "to a Windows user, do something like this:"
41212 msgstr ""
41213
41214 #. type: verbatim
41215 #: ../tools/virt-win-reg.pl:607
41216 #, no-wrap
41217 msgid ""
41218 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41219 "\n"
41220 msgstr ""
41221
41222 #. type: textblock
41223 #: ../tools/virt-win-reg.pl:609
41224 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41225 msgstr ""
41226
41227 #. type: textblock
41228 #: ../tools/virt-win-reg.pl:611
41229 msgid ""
41230 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41231 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41232 "style (CRLF) line endings, like this:"
41233 msgstr ""
41234
41235 #. type: verbatim
41236 #: ../tools/virt-win-reg.pl:615
41237 #, no-wrap
41238 msgid ""
41239 " $ file software.reg\n"
41240 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41241 " with CRLF line terminators\n"
41242 "\n"
41243 msgstr ""
41244
41245 #. type: textblock
41246 #: ../tools/virt-win-reg.pl:619
41247 msgid "This file would need conversion before you could I<--merge> it."
41248 msgstr ""
41249
41250 #. type: =head1
41251 #: ../tools/virt-win-reg.pl:621
41252 msgid "CurrentControlSet etc."
41253 msgstr ""
41254
41255 #. type: textblock
41256 #: ../tools/virt-win-reg.pl:623
41257 msgid ""
41258 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41259 "Registry at the level of the hive file, and therefore you cannot modify "
41260 "these."
41261 msgstr ""
41262
41263 #. type: textblock
41264 #: ../tools/virt-win-reg.pl:627
41265 msgid ""
41266 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41267 "circumstances it might refer to another control set.  The way to find out is "
41268 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41269 msgstr ""
41270
41271 #. type: verbatim
41272 #: ../tools/virt-win-reg.pl:631
41273 #, no-wrap
41274 msgid ""
41275 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41276 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41277 " \"Current\"=dword:00000001\n"
41278 " \"Default\"=dword:00000001\n"
41279 " \"Failed\"=dword:00000000\n"
41280 " \"LastKnownGood\"=dword:00000002\n"
41281 "\n"
41282 msgstr ""
41283
41284 #. type: textblock
41285 #: ../tools/virt-win-reg.pl:638
41286 msgid "\"Current\" is the one which Windows will choose when it boots."
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../tools/virt-win-reg.pl:640
41291 msgid ""
41292 "Similarly, other C<Current...> keys in the path may need to be replaced."
41293 msgstr ""
41294
41295 #. type: =head1
41296 #: ../tools/virt-win-reg.pl:643
41297 msgid "WINDOWS TIPS"
41298 msgstr ""
41299
41300 #. type: textblock
41301 #: ../tools/virt-win-reg.pl:645
41302 msgid ""
41303 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41304 "be shut off, else you will get disk corruption."
41305 msgstr ""
41306
41307 #. type: =head2
41308 #: ../tools/virt-win-reg.pl:648
41309 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../tools/virt-win-reg.pl:650
41314 msgid ""
41315 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41316 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41317 "is uploaded into C<C:\\>:"
41318 msgstr ""
41319
41320 #. type: verbatim
41321 #: ../tools/virt-win-reg.pl:654
41322 #, no-wrap
41323 msgid ""
41324 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41325 "\n"
41326 msgstr ""
41327
41328 #. type: textblock
41329 #: ../tools/virt-win-reg.pl:656
41330 msgid "Prepare a regedit file containing the registry change:"
41331 msgstr ""
41332
41333 #. type: verbatim
41334 #: ../tools/virt-win-reg.pl:658
41335 #, no-wrap
41336 msgid ""
41337 " cat > test.reg <<'EOF'\n"
41338 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41339 " \"Test\"=\"c:\\\\test.bat\"\n"
41340 " EOF\n"
41341 "\n"
41342 msgstr ""
41343
41344 #. type: textblock
41345 #: ../tools/virt-win-reg.pl:663
41346 msgid ""
41347 "In this example we use the key C<RunOnce> which means that the script will "
41348 "run precisely once when the first user logs in.  If you want it to run every "
41349 "time a user logs in, replace C<RunOnce> with C<Run>."
41350 msgstr ""
41351
41352 #. type: textblock
41353 #: ../tools/virt-win-reg.pl:667
41354 msgid "Now update the registry:"
41355 msgstr ""
41356
41357 #. type: verbatim
41358 #: ../tools/virt-win-reg.pl:669
41359 #, no-wrap
41360 msgid ""
41361 " virt-win-reg --merge WindowsGuest test.reg\n"
41362 "\n"
41363 msgstr ""
41364
41365 #. type: =head2
41366 #: ../tools/virt-win-reg.pl:671
41367 msgid "INSTALLING A SERVICE"
41368 msgstr ""
41369
41370 #. type: textblock
41371 #: ../tools/virt-win-reg.pl:673
41372 msgid ""
41373 "This section assumes you are familiar with Windows services, and you either "
41374 "have a program which handles the Windows Service Control Protocol directly "
41375 "or you want to run any program using a service wrapper like SrvAny or the "
41376 "free RHSrvAny."
41377 msgstr ""
41378
41379 #. type: textblock
41380 #: ../tools/virt-win-reg.pl:678
41381 msgid ""
41382 "First upload the program and optionally the service wrapper.  In this case "
41383 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41384 msgstr ""
41385
41386 #. type: verbatim
41387 #: ../tools/virt-win-reg.pl:682
41388 #, no-wrap
41389 msgid ""
41390 " guestfish -i -d WindowsGuest <<EOF\n"
41391 "   upload rhsrvany.exe /rhsrvany.exe\n"
41392 "   upload test.exe /test.exe\n"
41393 " EOF\n"
41394 "\n"
41395 msgstr ""
41396
41397 #. type: textblock
41398 #: ../tools/virt-win-reg.pl:687
41399 msgid ""
41400 "Prepare a regedit file containing the registry changes.  In this example, "
41401 "the first registry change is needed for the service itself or the service "
41402 "wrapper (if used).  The second registry change is only needed because I am "
41403 "using the RHSrvAny service wrapper."
41404 msgstr ""
41405
41406 #. type: verbatim
41407 #: ../tools/virt-win-reg.pl:692
41408 #, no-wrap
41409 msgid ""
41410 " cat > service.reg <<'EOF'\n"
41411 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41412 " \"Type\"=dword:00000010\n"
41413 " \"Start\"=dword:00000002\n"
41414 " \"ErrorControl\"=dword:00000001\n"
41415 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41416 " \"DisplayName\"=\"RHSrvAny\"\n"
41417 " \"ObjectName\"=\"NetworkService\"\n"
41418 " \n"
41419 msgstr ""
41420
41421 #. type: verbatim
41422 #: ../tools/virt-win-reg.pl:701
41423 #, no-wrap
41424 msgid ""
41425 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41426 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41427 " \"PWD\"=\"c:\\\\Temp\"\n"
41428 " EOF\n"
41429 "\n"
41430 msgstr ""
41431
41432 #. type: textblock
41433 #: ../tools/virt-win-reg.pl:712
41434 msgid ""
41435 "For use of C<ControlSet001> see the section above in this manual page.  You "
41436 "may need to adjust this according to the control set that is in use by the "
41437 "guest."
41438 msgstr ""
41439
41440 #. type: textblock
41441 #: ../tools/virt-win-reg.pl:718
41442 msgid ""
41443 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41444 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41445 "privileged account."
41446 msgstr ""
41447
41448 #. type: textblock
41449 #: ../tools/virt-win-reg.pl:724
41450 msgid ""
41451 "For the meaning of the magic numbers, see this Microsoft KB article: "
41452 "L<http://support.microsoft.com/kb/103000>."
41453 msgstr ""
41454
41455 #. type: textblock
41456 #: ../tools/virt-win-reg.pl:729
41457 msgid "Update the registry:"
41458 msgstr ""
41459
41460 #. type: verbatim
41461 #: ../tools/virt-win-reg.pl:731
41462 #, no-wrap
41463 msgid ""
41464 " virt-win-reg --merge WindowsGuest service.reg\n"
41465 "\n"
41466 msgstr ""
41467
41468 #. type: textblock
41469 #: ../tools/virt-win-reg.pl:735
41470 msgid ""
41471 "Be careful when passing parameters containing C<\\> (backslash) in the "
41472 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41473 "(but not both) to protect them from the shell."
41474 msgstr ""
41475
41476 #. type: textblock
41477 #: ../tools/virt-win-reg.pl:739
41478 msgid "Paths and value names are case-insensitive."
41479 msgstr ""
41480
41481 #. type: textblock
41482 #: ../tools/virt-win-reg.pl:748
41483 msgid ""
41484 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41485 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41486 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41487 msgstr ""
41488
41489 #. type: verbatim
41490 #: ../tools/virt-win-reg.pl:766
41491 #, no-wrap
41492 msgid ""
41493 " export LIBGUESTFS_DEBUG=1\n"
41494 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41495 "\n"
41496 msgstr ""
41497
41498 #. type: textblock
41499 #: ../tools/virt-win-reg.pl:769
41500 msgid ""
41501 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41502 "redhat.com/>"
41503 msgstr ""
41504
41505 #~ msgid "I<--help>"
41506 #~ msgstr "I<--help>"
41507
41508 #~ msgid "EXIT CODE"
41509 #~ msgstr "КОД ВИХОДУ"
41510
41511 #~ msgid "B<-a> | B<--all>"
41512 #~ msgstr "B<-a> | B<--all>"
41513
41514 #~ msgid "B<-x> | B<--extract> | B<--download>"
41515 #~ msgstr "B<-x> | B<--extract> | B<--download>"