Version 1.12.8.
[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-19 19:11+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 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "НАЗВА"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr "КОРОТКИЙ ОПИС"
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, fuzzy, no-wrap
65 #| msgid ""
66 #| " virt-list-partitions [--options] domname\n"
67 #| "\n"
68 msgid ""
69 " virt-cat [--options] -d domname file [file ...]\n"
70 "\n"
71 msgstr ""
72 " virt-list-partitions [--параметри] назва_домену\n"
73 "\n"
74
75 #. type: verbatim
76 #: ../cat/virt-cat.pod:11
77 #, fuzzy, no-wrap
78 #| msgid ""
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
80 #| "\n"
81 msgid ""
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
83 "\n"
84 msgstr ""
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
86 "\n"
87
88 #. type: textblock
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
91 msgid "Old-style:"
92 msgstr ""
93
94 #. type: verbatim
95 #: ../cat/virt-cat.pod:15
96 #, no-wrap
97 msgid ""
98 " virt-cat domname file\n"
99 "\n"
100 msgstr ""
101
102 #. type: verbatim
103 #: ../cat/virt-cat.pod:17
104 #, no-wrap
105 msgid ""
106 " virt-cat disk.img file\n"
107 "\n"
108 msgstr ""
109
110 #. type: =head1
111 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
112 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
113 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
114 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
115 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
116 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
117 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
118 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
119 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
120 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
121 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
122 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
123 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
124 #: ../tools/virt-win-reg.pl:63
125 msgid "DESCRIPTION"
126 msgstr "ОПИС"
127
128 #. type: textblock
129 #: ../cat/virt-cat.pod:21
130 msgid ""
131 "C<virt-cat> is a command line tool to display the contents of C<file> where "
132 "C<file> exists in the named virtual machine (or disk image)."
133 msgstr ""
134
135 #. type: textblock
136 #: ../cat/virt-cat.pod:24
137 msgid ""
138 "Multiple filenames can be given, in which case they are concatenated "
139 "together.  Each filename must be a full path, starting at the root directory "
140 "(starting with '/')."
141 msgstr ""
142
143 #. type: textblock
144 #: ../cat/virt-cat.pod:28
145 msgid ""
146 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
147 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
148 "(see L</USING GUESTFISH> below)."
149 msgstr ""
150
151 #. type: =head1
152 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
153 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
154 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
155 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
156 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
157 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
158 msgid "EXAMPLES"
159 msgstr "ПРИКЛАДИ"
160
161 #. type: textblock
162 #: ../cat/virt-cat.pod:34
163 msgid ""
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../cat/virt-cat.pod:37
169 #, no-wrap
170 msgid ""
171 " virt-cat -d mydomain /etc/fstab\n"
172 "\n"
173 msgstr ""
174
175 #. type: textblock
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
178 msgstr ""
179
180 #. type: verbatim
181 #: ../cat/virt-cat.pod:41
182 #, no-wrap
183 msgid ""
184 " virt-cat -a disk.img /var/log/messages | tail\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
191 msgstr ""
192
193 #. type: verbatim
194 #: ../cat/virt-cat.pod:45
195 #, no-wrap
196 msgid ""
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 "   grep 'dhclient: bound to' | tail\n"
199 "\n"
200 msgstr ""
201
202 #. type: textblock
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
205 msgstr ""
206
207 #. type: verbatim
208 #: ../cat/virt-cat.pod:50
209 #, no-wrap
210 msgid ""
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
212 "\n"
213 msgstr ""
214
215 #. type: textblock
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
218 msgstr ""
219
220 #. type: verbatim
221 #: ../cat/virt-cat.pod:54
222 #, no-wrap
223 msgid ""
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
225 " who /tmp/utmp\n"
226 "\n"
227 msgstr ""
228
229 #. type: textblock
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
232 msgstr ""
233
234 #. type: verbatim
235 #: ../cat/virt-cat.pod:59
236 #, no-wrap
237 msgid ""
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
240 "\n"
241 msgstr ""
242
243 #. type: =head1
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:36
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
254 msgid "OPTIONS"
255 msgstr "ПАРАМЕТРИ"
256
257 #. type: =item
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../test-tool/libguestfs-test-tool.pod:40
263 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
264 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
265 #: ../tools/virt-win-reg.pl:104
266 msgid "B<--help>"
267 msgstr "B<--help>"
268
269 #. type: textblock
270 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
271 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
272 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
273 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
274 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
275 #: ../tools/virt-win-reg.pl:106
276 msgid "Display brief help."
277 msgstr ""
278
279 #. type: =item
280 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
281 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
282 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
283 #, fuzzy
284 #| msgid "B<-f file>"
285 msgid "B<-a> file"
286 msgstr "B<-f файл>"
287
288 #. type: =item
289 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
290 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
291 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
292 #, fuzzy
293 #| msgid "B<--add image>"
294 msgid "B<--add> file"
295 msgstr "B<--add образ>"
296
297 #. type: textblock
298 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
299 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
300 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
301 msgid ""
302 "Add I<file> which should be a disk image from a virtual machine.  If the "
303 "virtual machine has multiple block devices, you must supply all of them with "
304 "separate I<-a> options."
305 msgstr ""
306
307 #. type: textblock
308 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
309 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
310 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
311 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
312 msgid ""
313 "The format of the disk image is auto-detected.  To override this and force a "
314 "particular format use the I<--format=..> option."
315 msgstr ""
316
317 #. type: =item
318 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
319 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
320 #, fuzzy
321 #| msgid "B<-c URI>"
322 msgid "B<-c> URI"
323 msgstr "B<-c адреса>"
324
325 #. type: =item
326 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
327 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
328 #, fuzzy
329 #| msgid "B<--connect URI>"
330 msgid "B<--connect> URI"
331 msgstr "B<--connect адреса>"
332
333 #. type: textblock
334 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
335 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
336 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
337 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
338 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
339 msgid ""
340 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
341 "to the default libvirt hypervisor."
342 msgstr ""
343
344 #. type: textblock
345 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
346 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
347 msgid ""
348 "If you specify guest block devices directly (I<-a>), then libvirt is not "
349 "used at all."
350 msgstr ""
351
352 #. type: =item
353 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
354 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
355 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
356 msgid "B<-d> guest"
357 msgstr ""
358
359 #. type: =item
360 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
361 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
362 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
363 msgid "B<--domain> guest"
364 msgstr ""
365
366 #. type: textblock
367 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
368 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
369 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
370 msgid ""
371 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
372 "instead of names."
373 msgstr ""
374
375 #. type: =item
376 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
377 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
378 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
379 msgid "B<--echo-keys>"
380 msgstr "B<--echo-keys>"
381
382 #. type: textblock
383 #: ../cat/virt-cat.pod:100
384 msgid ""
385 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
386 "so you cannot see what you are typing.  If you are not worried about Tempest "
387 "attacks and there is no one else in the room you can specify this flag to "
388 "see what you are typing."
389 msgstr ""
390
391 #. type: =item
392 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
393 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
394 #: ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99
395 #: ../rescue/virt-rescue.pod:124
396 msgid "B<--format=raw|qcow2|..>"
397 msgstr "B<--format=raw|qcow2|..>"
398
399 #. type: =item
400 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
401 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
402 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144
403 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
404 msgid "B<--format>"
405 msgstr "B<--format>"
406
407 #. type: textblock
408 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
409 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
410 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146
411 #: ../rescue/virt-rescue.pod:128
412 msgid ""
413 "The default for the I<-a> option is to auto-detect the format of the disk "
414 "image.  Using this forces the disk format for I<-a> options which follow on "
415 "the command line.  Using I<--format> with no argument switches back to auto-"
416 "detection for subsequent I<-a> options."
417 msgstr ""
418
419 #. type: textblock
420 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
421 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
422 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
423 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
424 #: ../src/guestfs.pod:2768
425 msgid "For example:"
426 msgstr "Приклад:"
427
428 #. type: verbatim
429 #: ../cat/virt-cat.pod:116
430 #, fuzzy, no-wrap
431 #| msgid ""
432 #| " guestfish --format=raw -a disk.img\n"
433 #| "\n"
434 msgid ""
435 " virt-cat --format=raw -a disk.img file\n"
436 "\n"
437 msgstr ""
438 " guestfish --format=raw -a disk.img\n"
439 "\n"
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
443 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
444 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
445 msgid "forces raw format (no auto-detection) for C<disk.img>."
446 msgstr ""
447
448 #. type: verbatim
449 #: ../cat/virt-cat.pod:120
450 #, fuzzy, no-wrap
451 #| msgid ""
452 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
453 #| "\n"
454 msgid ""
455 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
456 "\n"
457 msgstr ""
458 " guestfish --format=raw -a disk.img --format -a another.img\n"
459 "\n"
460
461 #. type: textblock
462 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
463 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
464 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
465 msgid ""
466 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
467 "detection for C<another.img>."
468 msgstr ""
469
470 #. type: textblock
471 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
472 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
473 #: ../rescue/virt-rescue.pod:144
474 msgid ""
475 "If you have untrusted raw-format guest disk images, you should use this "
476 "option to specify the disk format.  This avoids a possible security problem "
477 "with malicious guests (CVE-2010-3851)."
478 msgstr ""
479
480 #. type: =item
481 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
482 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
483 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
484 msgid "B<--keys-from-stdin>"
485 msgstr "B<--keys-from-stdin>"
486
487 #. type: textblock
488 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
489 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
490 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
491 msgid ""
492 "Read key or passphrase parameters from stdin.  The default is to try to read "
493 "passphrases from the user by opening C</dev/tty>."
494 msgstr ""
495
496 #. type: =item
497 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
498 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
499 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266
500 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
501 msgid "B<-v>"
502 msgstr "B<-v>"
503
504 #. type: =item
505 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
506 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
507 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268
508 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
509 msgid "B<--verbose>"
510 msgstr "B<--verbose>"
511
512 #. type: textblock
513 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
514 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
515 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
516 msgid "Enable verbose messages for debugging."
517 msgstr ""
518
519 #. type: =item
520 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
521 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
522 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272
523 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
524 #: ../resize/virt-resize.pod:484
525 msgid "B<-V>"
526 msgstr "B<-V>"
527
528 #. type: =item
529 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
530 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
531 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274
532 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
533 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
534 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
535 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
536 msgid "B<--version>"
537 msgstr "B<--version>"
538
539 #. type: textblock
540 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
541 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
542 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
543 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
544 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
545 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
546 msgid "Display version number and exit."
547 msgstr "Показати дані щодо версії і завершити роботу."
548
549 #. type: =item
550 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
551 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
552 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287
553 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
554 #: ../tools/virt-tar.pl:158
555 msgid "B<-x>"
556 msgstr "B<-x>"
557
558 #. type: textblock
559 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
560 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
561 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
562 msgid "Enable tracing of libguestfs API calls."
563 msgstr ""
564
565 #. type: =head1
566 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
567 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
568 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
569 msgstr ""
570
571 #. type: textblock
572 #: ../cat/virt-cat.pod:154
573 msgid "Previous versions of virt-cat allowed you to write either:"
574 msgstr ""
575
576 #. type: verbatim
577 #: ../cat/virt-cat.pod:156
578 #, fuzzy, no-wrap
579 #| msgid ""
580 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
581 #| "\n"
582 msgid ""
583 " virt-cat disk.img [disk.img ...] file\n"
584 "\n"
585 msgstr ""
586 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
587 "\n"
588
589 #. type: textblock
590 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
591 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
592 #, fuzzy
593 #| msgid "or:"
594 msgid "or"
595 msgstr "або:"
596
597 #. type: verbatim
598 #: ../cat/virt-cat.pod:160
599 #, no-wrap
600 msgid ""
601 " virt-cat guestname file\n"
602 "\n"
603 msgstr ""
604
605 #. type: textblock
606 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
607 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
608 msgid ""
609 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
610 "the confusing case where a disk image might have the same name as a guest."
611 msgstr ""
612
613 #. type: textblock
614 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
615 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
616 msgid "For compatibility the old style is still supported."
617 msgstr ""
618
619 #. type: =head1
620 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
621 msgid "USING GUESTFISH"
622 msgstr ""
623
624 #. type: textblock
625 #: ../cat/virt-cat.pod:170
626 msgid ""
627 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
628 "C<virt-cat> doesn't work."
629 msgstr ""
630
631 #. type: textblock
632 #: ../cat/virt-cat.pod:173
633 msgid "Using C<virt-cat> is approximately equivalent to doing:"
634 msgstr ""
635
636 #. type: verbatim
637 #: ../cat/virt-cat.pod:175
638 #, fuzzy, no-wrap
639 #| msgid ""
640 #| " guestfish --ro -d myguest -i\n"
641 #| "\n"
642 msgid ""
643 " guestfish --ro -i -d domname download file -\n"
644 "\n"
645 msgstr ""
646 " guestfish --ro -d myguest -i\n"
647 "\n"
648
649 #. type: textblock
650 #: ../cat/virt-cat.pod:177
651 msgid ""
652 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
653 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
654 msgstr ""
655
656 #. type: textblock
657 #: ../cat/virt-cat.pod:181
658 msgid ""
659 "The command above uses libguestfs's guest inspection feature and so does not "
660 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
661 "disk images that don't contain guests.  To display a file from a disk image "
662 "directly, use:"
663 msgstr ""
664
665 #. type: verbatim
666 #: ../cat/virt-cat.pod:186
667 #, fuzzy, no-wrap
668 #| msgid ""
669 #| " guestfish [--ro] -i disk.img\n"
670 #| "\n"
671 msgid ""
672 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
673 "\n"
674 msgstr ""
675 " guestfish [--ro] -i disk.img\n"
676 "\n"
677
678 #. type: textblock
679 #: ../cat/virt-cat.pod:188
680 msgid ""
681 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
682 "the disk image, and C<file> is the full path to the file."
683 msgstr ""
684
685 #. type: =head1
686 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
687 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
688 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
689 #: ../resize/virt-resize.pod:568 ../tools/virt-list-filesystems.pl:188
690 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
691 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
692 msgid "SHELL QUOTING"
693 msgstr ""
694
695 #. type: textblock
696 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
697 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
698 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
699 #: ../resize/virt-resize.pod:570 ../tools/virt-list-filesystems.pl:190
700 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
701 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
702 msgid ""
703 "Libvirt guest names can contain arbitrary characters, some of which have "
704 "meaning to the shell such as C<#> and space.  You may need to quote or "
705 "escape these characters on the command line.  See the shell manual page L<sh"
706 "(1)> for details."
707 msgstr ""
708
709 #. type: =head1
710 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
711 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
712 #: ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312
713 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:575
714 #: ../test-tool/libguestfs-test-tool.pod:90
715 msgid "EXIT STATUS"
716 msgstr ""
717
718 #. type: textblock
719 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
720 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
721 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
722 #: ../resize/virt-resize.pod:577
723 msgid ""
724 "This program returns 0 if successful, or non-zero if there was an error."
725 msgstr ""
726
727 #. type: =head1
728 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
729 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
730 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
731 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
732 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
733 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
734 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
735 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
736 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
737 #: ../resize/virt-resize.pod:580 ../ruby/examples/guestfs-ruby.pod:36
738 #: ../src/guestfs.pod:3146 ../test-tool/libguestfs-test-tool.pod:100
739 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
740 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
741 #: ../tools/virt-win-reg.pl:746
742 msgid "SEE ALSO"
743 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
744
745 #. type: textblock
746 #: ../cat/virt-cat.pod:205
747 #, fuzzy
748 #| msgid ""
749 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
750 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
751 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
752 msgid ""
753 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
754 "tar-out(1)>, L<http://libguestfs.org/>."
755 msgstr ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
757 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
758 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
759
760 #. type: =head1
761 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
762 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
763 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:601
764 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
765 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
766 #: ../tools/virt-win-reg.pl:772
767 msgid "AUTHOR"
768 msgstr "АВТОР"
769
770 #. type: textblock
771 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
772 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
773 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
774 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:210
775 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
776 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
777 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
778 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
779
780 #. type: =head1
781 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
782 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
783 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
784 #: ../fish/guestfish.pod:1297 ../fish/virt-copy-in.pod:64
785 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
786 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
787 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
788 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
789 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
790 #: ../resize/virt-resize.pod:605 ../ruby/examples/guestfs-ruby.pod:51
791 #: ../src/guestfs.pod:3223 ../test-tool/libguestfs-test-tool.pod:110
792 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
793 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
794 #: ../tools/virt-win-reg.pl:776
795 msgid "COPYRIGHT"
796 msgstr "АВТОРСЬКІ ПРАВА"
797
798 #. type: textblock
799 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
800 #: ../resize/virt-resize.pod:607
801 #, fuzzy
802 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
803 msgid "Copyright (C) 2010-2011 Red Hat Inc."
804 msgstr "© Red Hat Inc., 2009–2010"
805
806 #. type: textblock
807 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
808 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
809 #: ../fish/guestfish.pod:1302 ../fish/virt-copy-in.pod:69
810 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
811 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337
812 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
813 #: ../resize/virt-resize.pod:609 ../test-tool/libguestfs-test-tool.pod:115
814 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
815 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
816 #: ../tools/virt-win-reg.pl:780
817 msgid ""
818 "This program is free software; you can redistribute it and/or modify it "
819 "under the terms of the GNU General Public License as published by the Free "
820 "Software Foundation; either version 2 of the License, or (at your option) "
821 "any later version."
822 msgstr ""
823
824 #. type: textblock
825 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
826 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
827 #: ../fish/guestfish.pod:1307 ../fish/virt-copy-in.pod:74
828 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
829 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342
830 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
831 #: ../resize/virt-resize.pod:614 ../test-tool/libguestfs-test-tool.pod:120
832 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
833 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
834 #: ../tools/virt-win-reg.pl:785
835 msgid ""
836 "This program is distributed in the hope that it will be useful, but WITHOUT "
837 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
838 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
839 "more details."
840 msgstr ""
841 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
842 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
843 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
844 "дізнатися з GNU General Public License."
845
846 #. type: textblock
847 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
848 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
849 #: ../fish/guestfish.pod:1312 ../fish/virt-copy-in.pod:79
850 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
851 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347
852 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
853 #: ../resize/virt-resize.pod:619 ../test-tool/libguestfs-test-tool.pod:125
854 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
855 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
856 #: ../tools/virt-win-reg.pl:790
857 msgid ""
858 "You should have received a copy of the GNU General Public License along with "
859 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
860 "Ave, Cambridge, MA 02139, USA."
861 msgstr ""
862
863 #. type: textblock
864 #: ../cat/virt-filesystems.pod:5
865 msgid ""
866 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
867 "virtual machine or disk image"
868 msgstr ""
869
870 #. type: verbatim
871 #: ../cat/virt-filesystems.pod:9
872 #, fuzzy, no-wrap
873 #| msgid ""
874 #| " virt-list-partitions [--options] domname\n"
875 #| "\n"
876 msgid ""
877 " virt-filesystems [--options] -d domname\n"
878 "\n"
879 msgstr ""
880 " virt-list-partitions [--параметри] назва_домену\n"
881 "\n"
882
883 #. type: verbatim
884 #: ../cat/virt-filesystems.pod:11
885 #, fuzzy, no-wrap
886 #| msgid ""
887 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
888 #| "\n"
889 msgid ""
890 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
891 "\n"
892 msgstr ""
893 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
894 "\n"
895
896 #. type: textblock
897 #: ../cat/virt-filesystems.pod:15
898 msgid ""
899 "This tool allows you to discover filesystems, partitions, logical volumes, "
900 "and their sizes in a disk image or virtual machine.  It is a replacement for "
901 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
902 msgstr ""
903
904 #. type: textblock
905 #: ../cat/virt-filesystems.pod:20
906 msgid ""
907 "One use for this tool is from shell scripts to iterate over all filesystems "
908 "from a disk image:"
909 msgstr ""
910
911 #. type: verbatim
912 #: ../cat/virt-filesystems.pod:23
913 #, no-wrap
914 msgid ""
915 " for fs in $(virt-filesystems -a disk.img); do\n"
916 "   # ...\n"
917 " done\n"
918 "\n"
919 msgstr ""
920
921 #. type: textblock
922 #: ../cat/virt-filesystems.pod:27
923 msgid ""
924 "Another use is to list partitions before using another tool to modify those "
925 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
926 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-filesystems.pod:32
931 msgid ""
932 "Various command line options control what this program displays.  You need "
933 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
934 "guest respectively.  If you just specify that then the program shows "
935 "filesystems found, one per line, like this:"
936 msgstr ""
937
938 #. type: verbatim
939 #: ../cat/virt-filesystems.pod:37
940 #, no-wrap
941 msgid ""
942 " $ virt-filesystems -a disk.img\n"
943 " /dev/sda1\n"
944 " /dev/vg_guest/lv_root\n"
945 "\n"
946 msgstr ""
947
948 #. type: textblock
949 #: ../cat/virt-filesystems.pod:41
950 msgid ""
951 "If you add I<-l> or I<--long> then the output includes extra information:"
952 msgstr ""
953
954 #. type: verbatim
955 #: ../cat/virt-filesystems.pod:44
956 #, no-wrap
957 msgid ""
958 " $ virt-filesystems -a disk.img -l\n"
959 " Name                   Type         VFS   Label  Size\n"
960 " /dev/sda1              filesystem   ext4  boot   524288000\n"
961 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
962 "\n"
963 msgstr ""
964
965 #. type: textblock
966 #: ../cat/virt-filesystems.pod:49
967 msgid ""
968 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
969 "shown as well:"
970 msgstr ""
971
972 #. type: verbatim
973 #: ../cat/virt-filesystems.pod:52
974 #, no-wrap
975 msgid ""
976 " $ virt-filesystems -a disk.img --extra\n"
977 " /dev/sda1\n"
978 " /dev/vg_guest/lv_root\n"
979 " /dev/vg_guest/lv_swap\n"
980 " /dev/vg_guest/lv_data\n"
981 "\n"
982 msgstr ""
983
984 #. type: textblock
985 #: ../cat/virt-filesystems.pod:58
986 msgid ""
987 "If you add I<--partitions> then partitions are shown instead of filesystems:"
988 msgstr ""
989
990 #. type: verbatim
991 #: ../cat/virt-filesystems.pod:60
992 #, no-wrap
993 msgid ""
994 " $ virt-filesystems -a disk.img --partitions\n"
995 " /dev/sda1\n"
996 " /dev/sda2\n"
997 "\n"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../cat/virt-filesystems.pod:64
1002 msgid ""
1003 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1004 "volumes>, I<--block-devices> to list those items."
1005 msgstr ""
1006
1007 #. type: textblock
1008 #: ../cat/virt-filesystems.pod:67
1009 msgid ""
1010 "You can use these options in combination as well (if you want a combination "
1011 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1012 "items fall into several categories (eg. C</dev/sda1> might be both a "
1013 "partition and a filesystem).  These items are listed several times.  To get "
1014 "a list which includes absolutely everything that virt-filesystems knows "
1015 "about, use the I<--all> option."
1016 msgstr ""
1017
1018 #. type: textblock
1019 #: ../cat/virt-filesystems.pod:74
1020 msgid ""
1021 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1022 "uuid> option to display device and filesystem UUIDs in the long output."
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-filesystems.pod:78
1027 msgid ""
1028 "I<--all --long --uuid> is a useful combination to display all possible "
1029 "information about everything."
1030 msgstr ""
1031
1032 #. type: verbatim
1033 #: ../cat/virt-filesystems.pod:81
1034 #, no-wrap
1035 msgid ""
1036 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1037 " Name      Type       VFS  Label           Size Parent   UUID\n"
1038 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1039 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1040 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1041 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1042 " /dev/sda  device     -    -               20G  -        -\n"
1043 "\n"
1044 msgstr ""
1045
1046 #. type: textblock
1047 #: ../cat/virt-filesystems.pod:89
1048 msgid ""
1049 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1050 msgstr ""
1051
1052 #. type: =item
1053 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1054 #, fuzzy
1055 #| msgid "B<--help>"
1056 msgid "B<--all>"
1057 msgstr "B<--help>"
1058
1059 #. type: textblock
1060 #: ../cat/virt-filesystems.pod:112
1061 msgid ""
1062 "Display everything.  This is currently the same as specifying these options: "
1063 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1064 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1065 "added to this list in future)."
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../cat/virt-filesystems.pod:117
1070 #, fuzzy
1071 #| msgid "See also L</is-lv>."
1072 msgid "See also I<--long>."
1073 msgstr "Див. також L</is-lv>."
1074
1075 #. type: =item
1076 #: ../cat/virt-filesystems.pod:119
1077 #, fuzzy
1078 #| msgid "B<--live>"
1079 msgid "B<--blkdevs>"
1080 msgstr "B<--live>"
1081
1082 #. type: =item
1083 #: ../cat/virt-filesystems.pod:121
1084 #, fuzzy
1085 #| msgid "is-blockdev"
1086 msgid "B<--block-devices>"
1087 msgstr "is-blockdev"
1088
1089 #. type: textblock
1090 #: ../cat/virt-filesystems.pod:123
1091 #, fuzzy
1092 #| msgid "is-blockdev"
1093 msgid "Display block devices."
1094 msgstr "is-blockdev"
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1098 #, fuzzy
1099 #| msgid "B<--csh>"
1100 msgid "B<--csv>"
1101 msgstr "B<--csh>"
1102
1103 #. type: textblock
1104 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1105 msgid ""
1106 "Write out the results in CSV format (comma-separated values).  This format "
1107 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1108 "ABOUT CSV FORMAT> below."
1109 msgstr ""
1110
1111 #. type: textblock
1112 #: ../cat/virt-filesystems.pod:150
1113 msgid ""
1114 "When prompting for keys and passphrases, virt-filesystems normally turns "
1115 "echoing off so you cannot see what you are typing.  If you are not worried "
1116 "about Tempest attacks and there is no one else in the room you can specify "
1117 "this flag to see what you are typing."
1118 msgstr ""
1119
1120 #. type: =item
1121 #: ../cat/virt-filesystems.pod:155
1122 #, fuzzy
1123 #| msgid "B<--ro>"
1124 msgid "B<--extra>"
1125 msgstr "B<--ro>"
1126
1127 #. type: textblock
1128 #: ../cat/virt-filesystems.pod:157
1129 msgid ""
1130 "This causes filesystems that are not ordinary, mountable filesystems to be "
1131 "displayed.  This category includes swapspace, and filesystems that are empty "
1132 "or contain unknown data."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-filesystems.pod:161
1137 msgid "This option implies I<--filesystems>."
1138 msgstr ""
1139
1140 #. type: =item
1141 #: ../cat/virt-filesystems.pod:163
1142 #, fuzzy
1143 #| msgid "list-filesystems"
1144 msgid "B<--filesystems>"
1145 msgstr "list-filesystems"
1146
1147 #. type: textblock
1148 #: ../cat/virt-filesystems.pod:165
1149 msgid ""
1150 "Display mountable filesystems.  If no display option was selected then this "
1151 "option is implied."
1152 msgstr ""
1153
1154 #. type: textblock
1155 #: ../cat/virt-filesystems.pod:168
1156 msgid "With I<--extra>, non-mountable filesystems are shown too."
1157 msgstr ""
1158
1159 #. type: verbatim
1160 #: ../cat/virt-filesystems.pod:181
1161 #, fuzzy, no-wrap
1162 #| msgid ""
1163 #| " guestfish --format=raw -a disk.img\n"
1164 #| "\n"
1165 msgid ""
1166 " virt-filesystems --format=raw -a disk.img\n"
1167 "\n"
1168 msgstr ""
1169 " guestfish --format=raw -a disk.img\n"
1170 "\n"
1171
1172 #. type: verbatim
1173 #: ../cat/virt-filesystems.pod:185
1174 #, fuzzy, no-wrap
1175 #| msgid ""
1176 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1177 #| "\n"
1178 msgid ""
1179 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1180 "\n"
1181 msgstr ""
1182 " guestfish --format=raw -a disk.img --format -a another.img\n"
1183 "\n"
1184
1185 #. type: =item
1186 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1187 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1188 #: ../tools/virt-list-partitions.pl:109
1189 msgid "B<-h>"
1190 msgstr "B<-h>"
1191
1192 #. type: =item
1193 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1194 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1195 #, fuzzy
1196 #| msgid "B<-h> | B<--human-readable>"
1197 msgid "B<--human-readable>"
1198 msgstr "B<-h> | B<--human-readable>"
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:198
1202 msgid "In I<--long> mode, display sizes in human-readable format."
1203 msgstr ""
1204
1205 #. type: =item
1206 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1207 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1208 msgid "B<-l>"
1209 msgstr ""
1210
1211 #. type: =item
1212 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1213 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1214 #, fuzzy
1215 #| msgid "B<--ro>"
1216 msgid "B<--long>"
1217 msgstr "B<--ro>"
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:209
1221 msgid "Display extra columns of data (\"long format\")."
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:211
1226 msgid "A title row is added unless you also specify I<--no-title>."
1227 msgstr ""
1228
1229 #. type: textblock
1230 #: ../cat/virt-filesystems.pod:213
1231 msgid ""
1232 "The extra columns displayed depend on what output you select, and the "
1233 "ordering of columns may change in future versions.  Use the title row, I<--"
1234 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1235 "programs."
1236 msgstr ""
1237
1238 #. type: textblock
1239 #: ../cat/virt-filesystems.pod:218
1240 msgid ""
1241 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1242 "default is to show raw numbers of I<bytes>."
1243 msgstr ""
1244
1245 #. type: textblock
1246 #: ../cat/virt-filesystems.pod:221
1247 msgid "Use I<--uuid> to display UUIDs too."
1248 msgstr ""
1249
1250 #. type: =item
1251 #: ../cat/virt-filesystems.pod:223
1252 #, fuzzy
1253 #| msgid "B<--live>"
1254 msgid "B<--lvs>"
1255 msgstr "B<--live>"
1256
1257 #. type: =item
1258 #: ../cat/virt-filesystems.pod:225
1259 #, fuzzy
1260 #| msgid "B<--live>"
1261 msgid "B<--logvols>"
1262 msgstr "B<--live>"
1263
1264 #. type: =item
1265 #: ../cat/virt-filesystems.pod:227
1266 #, fuzzy
1267 #| msgid "B<--live>"
1268 msgid "B<--logical-volumes>"
1269 msgstr "B<--live>"
1270
1271 #. type: textblock
1272 #: ../cat/virt-filesystems.pod:229
1273 msgid ""
1274 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1275 "of whether the LVs contain filesystems."
1276 msgstr ""
1277
1278 #. type: =item
1279 #: ../cat/virt-filesystems.pod:232
1280 #, fuzzy
1281 #| msgid "B<--listen>"
1282 msgid "B<--no-title>"
1283 msgstr "B<--listen>"
1284
1285 #. type: textblock
1286 #: ../cat/virt-filesystems.pod:234
1287 msgid "In I<--long> mode, don't add a title row."
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../cat/virt-filesystems.pod:236
1292 msgid ""
1293 "Note that the order of the columns is not fixed, and may change in future "
1294 "versions of virt-filesystems, so using this option may give you unexpected "
1295 "surprises."
1296 msgstr ""
1297
1298 #. type: =item
1299 #: ../cat/virt-filesystems.pod:240
1300 #, fuzzy
1301 #| msgid "B<--partition>"
1302 msgid "B<--parts>"
1303 msgstr "B<--partition>"
1304
1305 #. type: =item
1306 #: ../cat/virt-filesystems.pod:242
1307 #, fuzzy
1308 #| msgid "B<--partition>"
1309 msgid "B<--partitions>"
1310 msgstr "B<--partition>"
1311
1312 #. type: textblock
1313 #: ../cat/virt-filesystems.pod:244
1314 msgid ""
1315 "Display partitions.  In this mode, these are displayed irrespective of "
1316 "whether the partitions contain filesystems."
1317 msgstr ""
1318
1319 #. type: =item
1320 #: ../cat/virt-filesystems.pod:247
1321 #, fuzzy
1322 #| msgid "B<--csh>"
1323 msgid "B<--pvs>"
1324 msgstr "B<--csh>"
1325
1326 #. type: =item
1327 #: ../cat/virt-filesystems.pod:249
1328 #, fuzzy
1329 #| msgid "B<--verbose>"
1330 msgid "B<--physvols>"
1331 msgstr "B<--verbose>"
1332
1333 #. type: =item
1334 #: ../cat/virt-filesystems.pod:251
1335 msgid "B<--physical-volumes>"
1336 msgstr ""
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:253
1340 msgid "Display LVM physical volumes."
1341 msgstr ""
1342
1343 #. type: =item
1344 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1345 #, fuzzy
1346 #| msgid "B<--live>"
1347 msgid "B<--uuid>"
1348 msgstr "B<--live>"
1349
1350 #. type: =item
1351 #: ../cat/virt-filesystems.pod:257
1352 #, fuzzy
1353 #| msgid "B<--csh>"
1354 msgid "B<--uuids>"
1355 msgstr "B<--csh>"
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:259
1359 msgid "In I<--long> mode, display UUIDs as well."
1360 msgstr ""
1361
1362 #. type: =item
1363 #: ../cat/virt-filesystems.pod:273
1364 #, fuzzy
1365 #| msgid "B<--csh>"
1366 msgid "B<--vgs>"
1367 msgstr "B<--csh>"
1368
1369 #. type: =item
1370 #: ../cat/virt-filesystems.pod:275
1371 #, fuzzy
1372 #| msgid "B<--verbose>"
1373 msgid "B<--volgroups>"
1374 msgstr "B<--verbose>"
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:277
1378 #, fuzzy
1379 #| msgid "B<--verbose>"
1380 msgid "B<--volume-groups>"
1381 msgstr "B<--verbose>"
1382
1383 #. type: textblock
1384 #: ../cat/virt-filesystems.pod:279
1385 msgid "Display LVM volume groups."
1386 msgstr ""
1387
1388 #. type: =head1
1389 #: ../cat/virt-filesystems.pod:287
1390 msgid "COLUMNS"
1391 msgstr ""
1392
1393 #. type: textblock
1394 #: ../cat/virt-filesystems.pod:289
1395 msgid ""
1396 "Note that columns in the output are subject to reordering and change in "
1397 "future versions of this tool."
1398 msgstr ""
1399
1400 #. type: =item
1401 #: ../cat/virt-filesystems.pod:294
1402 msgid "B<Name>"
1403 msgstr ""
1404
1405 #. type: textblock
1406 #: ../cat/virt-filesystems.pod:296
1407 msgid "The filesystem, partition, block device or LVM name."
1408 msgstr ""
1409
1410 #. type: textblock
1411 #: ../cat/virt-filesystems.pod:298
1412 msgid ""
1413 "For device and partition names these are displayed as canonical libguestfs "
1414 "names, so that for example C</dev/sda2> is the second partition on the first "
1415 "device."
1416 msgstr ""
1417
1418 #. type: textblock
1419 #: ../cat/virt-filesystems.pod:302
1420 msgid ""
1421 "If the I<--long> option is B<not> specified, then only the name column is "
1422 "shown in the output."
1423 msgstr ""
1424
1425 #. type: =item
1426 #: ../cat/virt-filesystems.pod:305
1427 #, fuzzy
1428 #| msgid "B<-N type>"
1429 msgid "B<Type>"
1430 msgstr "B<-N тип>"
1431
1432 #. type: textblock
1433 #: ../cat/virt-filesystems.pod:307
1434 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1435 msgstr ""
1436
1437 #. type: =item
1438 #: ../cat/virt-filesystems.pod:309
1439 msgid "B<VFS>"
1440 msgstr ""
1441
1442 #. type: textblock
1443 #: ../cat/virt-filesystems.pod:311
1444 msgid ""
1445 "If there is a filesystem, then this column displays the filesystem type if "
1446 "one could be detected, eg. C<ext4>."
1447 msgstr ""
1448
1449 #. type: =item
1450 #: ../cat/virt-filesystems.pod:314
1451 msgid "B<Label>"
1452 msgstr ""
1453
1454 #. type: textblock
1455 #: ../cat/virt-filesystems.pod:316
1456 msgid ""
1457 "If the object has a label (used for identifying and mounting filesystems) "
1458 "then this column contains the label."
1459 msgstr ""
1460
1461 #. type: =item
1462 #: ../cat/virt-filesystems.pod:319
1463 #, fuzzy
1464 #| msgid "B<part_size>"
1465 msgid "B<Size>"
1466 msgstr "B<part_size>"
1467
1468 #. type: textblock
1469 #: ../cat/virt-filesystems.pod:321
1470 msgid ""
1471 "The size of the object in bytes.  If the I<--human> option is used then the "
1472 "size is displayed in a human-readable form."
1473 msgstr ""
1474
1475 #. type: =item
1476 #: ../cat/virt-filesystems.pod:324
1477 msgid "B<Parent>"
1478 msgstr ""
1479
1480 #. type: textblock
1481 #: ../cat/virt-filesystems.pod:326
1482 msgid ""
1483 "The parent column records the parent relationship between objects.  For "
1484 "example, if the object is a partition, then this column contains the name of "
1485 "the containing device.  If the object is a logical volume, then this column "
1486 "is the name of the volume group."
1487 msgstr ""
1488
1489 #. type: =item
1490 #: ../cat/virt-filesystems.pod:331
1491 msgid "B<UUID>"
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-filesystems.pod:333
1496 msgid ""
1497 "If the object has a UUID (used for identifying and mounting filesystems and "
1498 "block devices) then this column contains the UUID as a string."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:337
1503 msgid "The UUID is only displayed if the I<--uuid> option is given."
1504 msgstr ""
1505
1506 #. type: =head1
1507 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1508 #: ../df/virt-df.pod:191
1509 msgid "NOTE ABOUT CSV FORMAT"
1510 msgstr ""
1511
1512 #. type: textblock
1513 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1514 #: ../df/virt-df.pod:193
1515 msgid ""
1516 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1517 "should be easy to parse, but it is definitely not easy to parse."
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1522 #: ../df/virt-df.pod:196
1523 msgid ""
1524 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1525 "reliably.  This example has two columns:"
1526 msgstr ""
1527
1528 #. type: verbatim
1529 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1530 #: ../df/virt-df.pod:199
1531 #, no-wrap
1532 msgid ""
1533 " \"foo,bar\",baz\n"
1534 "\n"
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1539 #: ../df/virt-df.pod:201
1540 msgid ""
1541 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1542 "reliably.  This example has one row:"
1543 msgstr ""
1544
1545 #. type: verbatim
1546 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1547 #: ../df/virt-df.pod:204
1548 #, no-wrap
1549 msgid ""
1550 " \"foo\n"
1551 " bar\",baz\n"
1552 "\n"
1553 msgstr ""
1554
1555 #. type: textblock
1556 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1557 #: ../df/virt-df.pod:207
1558 msgid ""
1559 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1560 "packaged in major Linux distributions)."
1561 msgstr ""
1562
1563 #. type: textblock
1564 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1565 #: ../df/virt-df.pod:210
1566 msgid ""
1567 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1568 "or Python's built-in csv library)."
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1573 #: ../df/virt-df.pod:213
1574 msgid "Most spreadsheets and databases can import CSV directly."
1575 msgstr ""
1576
1577 #. type: textblock
1578 #: ../cat/virt-filesystems.pod:379
1579 #, fuzzy
1580 #| msgid ""
1581 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1582 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1583 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1584 msgid ""
1585 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1586 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1587 "libguestfs.org/>."
1588 msgstr ""
1589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1590 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1591 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1592
1593 #. type: textblock
1594 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1595 #: ../tools/virt-win-reg.pl:778
1596 msgid "Copyright (C) 2010 Red Hat Inc."
1597 msgstr ""
1598
1599 #. type: textblock
1600 #: ../cat/virt-ls.pod:5
1601 msgid "virt-ls - List files in a virtual machine"
1602 msgstr ""
1603
1604 #. type: verbatim
1605 #: ../cat/virt-ls.pod:9
1606 #, no-wrap
1607 msgid ""
1608 " virt-ls [--options] -d domname directory [directory ...]\n"
1609 "\n"
1610 msgstr ""
1611
1612 #. type: verbatim
1613 #: ../cat/virt-ls.pod:11
1614 #, fuzzy, no-wrap
1615 #| msgid ""
1616 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1617 #| "\n"
1618 msgid ""
1619 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1620 "\n"
1621 msgstr ""
1622 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1623 "\n"
1624
1625 #. type: textblock
1626 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1627 msgid "Old style:"
1628 msgstr ""
1629
1630 #. type: verbatim
1631 #: ../cat/virt-ls.pod:15
1632 #, fuzzy, no-wrap
1633 #| msgid ""
1634 #| " virt-list-partitions [--options] domname\n"
1635 #| "\n"
1636 msgid ""
1637 " virt-ls [--options] domname directory\n"
1638 "\n"
1639 msgstr ""
1640 " virt-list-partitions [--параметри] назва_домену\n"
1641 "\n"
1642
1643 #. type: verbatim
1644 #: ../cat/virt-ls.pod:17
1645 #, fuzzy, no-wrap
1646 #| msgid ""
1647 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1648 #| "\n"
1649 msgid ""
1650 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1651 "\n"
1652 msgstr ""
1653 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1654 "\n"
1655
1656 #. type: textblock
1657 #: ../cat/virt-ls.pod:21
1658 msgid ""
1659 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1660 "more from a virtual machine or disk image."
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:24
1665 msgid ""
1666 "Multiple directory names can be given, in which case the output from each is "
1667 "concatenated."
1668 msgstr ""
1669
1670 #. type: textblock
1671 #: ../cat/virt-ls.pod:27
1672 msgid ""
1673 "To list directories from a libvirt guest use the I<-d> option to specify the "
1674 "name of the guest.  For a disk image, use the I<-a> option."
1675 msgstr ""
1676
1677 #. type: textblock
1678 #: ../cat/virt-ls.pod:31
1679 msgid ""
1680 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1681 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1682 "(3)> API."
1683 msgstr ""
1684
1685 #. type: textblock
1686 #: ../cat/virt-ls.pod:37
1687 msgid "Get a list of all files and directories in a virtual machine:"
1688 msgstr ""
1689
1690 #. type: verbatim
1691 #: ../cat/virt-ls.pod:39
1692 #, fuzzy, no-wrap
1693 #| msgid ""
1694 #| " guestfish --ro -d myguest -i\n"
1695 #| "\n"
1696 msgid ""
1697 " virt-ls -R -d guest /\n"
1698 "\n"
1699 msgstr ""
1700 " guestfish --ro -d myguest -i\n"
1701 "\n"
1702
1703 #. type: textblock
1704 #: ../cat/virt-ls.pod:41
1705 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1706 msgstr ""
1707
1708 #. type: verbatim
1709 #: ../cat/virt-ls.pod:43
1710 #, no-wrap
1711 msgid ""
1712 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1713 "\n"
1714 msgstr ""
1715
1716 #. type: textblock
1717 #: ../cat/virt-ls.pod:45
1718 msgid "List all public-writable directories in a Linux virtual machine:"
1719 msgstr ""
1720
1721 #. type: verbatim
1722 #: ../cat/virt-ls.pod:47
1723 #, no-wrap
1724 msgid ""
1725 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1726 "\n"
1727 msgstr ""
1728
1729 #. type: textblock
1730 #: ../cat/virt-ls.pod:49
1731 msgid "List all Unix domain sockets in a Linux virtual machine:"
1732 msgstr ""
1733
1734 #. type: verbatim
1735 #: ../cat/virt-ls.pod:51
1736 #, no-wrap
1737 msgid ""
1738 " virt-ls -lR -d guest / | grep '^s'\n"
1739 "\n"
1740 msgstr ""
1741
1742 #. type: textblock
1743 #: ../cat/virt-ls.pod:53
1744 msgid "List all regular files with filenames ending in '.png':"
1745 msgstr ""
1746
1747 #. type: verbatim
1748 #: ../cat/virt-ls.pod:55
1749 #, no-wrap
1750 msgid ""
1751 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1752 "\n"
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../cat/virt-ls.pod:57
1757 msgid "To display files larger than 10MB in home directories:"
1758 msgstr ""
1759
1760 #. type: verbatim
1761 #: ../cat/virt-ls.pod:59
1762 #, no-wrap
1763 msgid ""
1764 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1765 "\n"
1766 msgstr ""
1767
1768 #. type: textblock
1769 #: ../cat/virt-ls.pod:61
1770 msgid "Find everything modified in the last 7 days:"
1771 msgstr ""
1772
1773 #. type: verbatim
1774 #: ../cat/virt-ls.pod:63
1775 #, no-wrap
1776 msgid ""
1777 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1778 "\n"
1779 msgstr ""
1780
1781 #. type: textblock
1782 #: ../cat/virt-ls.pod:65
1783 msgid "Find regular files modified in the last 24 hours:"
1784 msgstr ""
1785
1786 #. type: verbatim
1787 #: ../cat/virt-ls.pod:67
1788 #, no-wrap
1789 msgid ""
1790 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1791 "\n"
1792 msgstr ""
1793
1794 #. type: =head2
1795 #: ../cat/virt-ls.pod:69
1796 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:71
1801 msgid ""
1802 "Find the differences between files in a guest and an earlier snapshot of the "
1803 "same guest."
1804 msgstr ""
1805
1806 #. type: verbatim
1807 #: ../cat/virt-ls.pod:74
1808 #, no-wrap
1809 msgid ""
1810 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1811 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1812 " diff -u old new | less\n"
1813 "\n"
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-ls.pod:78
1818 msgid ""
1819 "The commands above won't find files where the content has changed but the "
1820 "metadata (eg. file size and modification date) is the same.  To do that, you "
1821 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1822 "checksum> can be quite slow since it has to read and compute a checksum of "
1823 "every regular file in the virtual machine."
1824 msgstr ""
1825
1826 #. type: =head1
1827 #: ../cat/virt-ls.pod:84
1828 msgid "OUTPUT MODES"
1829 msgstr ""
1830
1831 #. type: textblock
1832 #: ../cat/virt-ls.pod:86
1833 msgid ""
1834 "C<virt-ls> has four output modes, controlled by different combinations of "
1835 "the I<-l> and I<-R> options."
1836 msgstr ""
1837
1838 #. type: =head2
1839 #: ../cat/virt-ls.pod:89
1840 msgid "SIMPLE LISTING"
1841 msgstr ""
1842
1843 #. type: textblock
1844 #: ../cat/virt-ls.pod:91
1845 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1846 msgstr ""
1847
1848 #. type: verbatim
1849 #: ../cat/virt-ls.pod:93
1850 #, no-wrap
1851 msgid ""
1852 " $ virt-ls -d guest /\n"
1853 " bin\n"
1854 " boot\n"
1855 " [etc.]\n"
1856 "\n"
1857 msgstr ""
1858
1859 #. type: =head2
1860 #: ../cat/virt-ls.pod:98
1861 #, fuzzy
1862 #| msgid "MOUNTING"
1863 msgid "LONG LISTING"
1864 msgstr "МОНТУВАННЯ"
1865
1866 #. type: textblock
1867 #: ../cat/virt-ls.pod:100
1868 msgid ""
1869 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1870 "(more specifically, like the C<guestfs_ll> function)."
1871 msgstr ""
1872
1873 #. type: verbatim
1874 #: ../cat/virt-ls.pod:103
1875 #, no-wrap
1876 msgid ""
1877 " $ virt-ls -l -d guest /\n"
1878 " total 204\n"
1879 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1880 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1881 " [etc.]\n"
1882 "\n"
1883 msgstr ""
1884
1885 #. type: textblock
1886 #: ../cat/virt-ls.pod:109
1887 msgid ""
1888 "Note that while this is useful for displaying a directory, do not try "
1889 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1890 "instead."
1891 msgstr ""
1892
1893 #. type: =head2
1894 #: ../cat/virt-ls.pod:113
1895 msgid "RECURSIVE LISTING"
1896 msgstr ""
1897
1898 #. type: textblock
1899 #: ../cat/virt-ls.pod:115
1900 msgid ""
1901 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1902 "and directories recursively:"
1903 msgstr ""
1904
1905 #. type: verbatim
1906 #: ../cat/virt-ls.pod:118
1907 #, no-wrap
1908 msgid ""
1909 " $ virt-ls -R -d guest /tmp\n"
1910 " foo\n"
1911 " foo/bar\n"
1912 " [etc.]\n"
1913 "\n"
1914 msgstr ""
1915
1916 #. type: textblock
1917 #: ../cat/virt-ls.pod:123
1918 msgid ""
1919 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1920 "converts C<\\0> characters to C<\\n>."
1921 msgstr ""
1922
1923 #. type: =head2
1924 #: ../cat/virt-ls.pod:126
1925 msgid "RECURSIVE LONG LISTING"
1926 msgstr ""
1927
1928 #. type: textblock
1929 #: ../cat/virt-ls.pod:128
1930 msgid ""
1931 "Using I<-lR> options together changes the output to display directories "
1932 "recursively, with file stats, and optionally other features such as "
1933 "checksums and extended attributes."
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-ls.pod:132
1938 msgid ""
1939 "Most of the interesting features of C<virt-ls> are only available when using "
1940 "I<-lR> mode."
1941 msgstr ""
1942
1943 #. type: textblock
1944 #: ../cat/virt-ls.pod:135
1945 msgid ""
1946 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1947 "you cannot use the output in another program (because filenames can contain "
1948 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1949 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1950 "on you by creating filenames with embedded newline characters.  To B<safely> "
1951 "parse the output in another program, use the I<--csv> (Comma-Separated "
1952 "Values) option."
1953 msgstr ""
1954
1955 #. type: textblock
1956 #: ../cat/virt-ls.pod:143
1957 msgid ""
1958 "Note that this output format is completely unrelated to the C<ls -lR> "
1959 "command."
1960 msgstr ""
1961
1962 #. type: verbatim
1963 #: ../cat/virt-ls.pod:146
1964 #, no-wrap
1965 msgid ""
1966 " $ virt-ls -lR -d guest /bin\n"
1967 " d 0555       4096 /bin\n"
1968 " - 0755        123 /bin/alsaunmute\n"
1969 " - 0755      28328 /bin/arch\n"
1970 " l 0777          4 /bin/awk -> gawk\n"
1971 " - 0755      27216 /bin/basename\n"
1972 " - 0755     943360 /bin/bash\n"
1973 " [etc.]\n"
1974 "\n"
1975 msgstr ""
1976
1977 #. type: textblock
1978 #: ../cat/virt-ls.pod:155
1979 msgid "These basic fields are always shown:"
1980 msgstr ""
1981
1982 #. type: =item
1983 #: ../cat/virt-ls.pod:159
1984 #, fuzzy
1985 #| msgid "vfs-type"
1986 msgid "type"
1987 msgstr "vfs-type"
1988
1989 #. type: textblock
1990 #: ../cat/virt-ls.pod:161
1991 msgid ""
1992 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1993 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1994 "link), C<s> (socket) or C<u> (unknown)."
1995 msgstr ""
1996
1997 #. type: =item
1998 #: ../cat/virt-ls.pod:171
1999 #, fuzzy
2000 #| msgid "version"
2001 msgid "permissions"
2002 msgstr "version"
2003
2004 #. type: textblock
2005 #: ../cat/virt-ls.pod:173
2006 msgid "The Unix permissions, displayed as a 4 digit octal number."
2007 msgstr ""
2008
2009 #. type: =item
2010 #: ../cat/virt-ls.pod:175
2011 #, fuzzy
2012 #| msgid "filesize"
2013 msgid "size"
2014 msgstr "filesize"
2015
2016 #. type: textblock
2017 #: ../cat/virt-ls.pod:177
2018 msgid ""
2019 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2020 "readable> option is given, in which case this is shown as a human-readable "
2021 "number."
2022 msgstr ""
2023
2024 #. type: =head2
2025 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4210
2026 msgid "path"
2027 msgstr ""
2028
2029 #. type: textblock
2030 #: ../cat/virt-ls.pod:183
2031 msgid "The full path of the file or directory."
2032 msgstr ""
2033
2034 #. type: =item
2035 #: ../cat/virt-ls.pod:185
2036 #, fuzzy
2037 #| msgid "readlink"
2038 msgid "link"
2039 msgstr "readlink"
2040
2041 #. type: textblock
2042 #: ../cat/virt-ls.pod:187
2043 msgid "For symbolic links only, the link target."
2044 msgstr ""
2045
2046 #. type: textblock
2047 #: ../cat/virt-ls.pod:191
2048 msgid ""
2049 "In I<-lR> mode, additional command line options enable the display of more "
2050 "fields."
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../cat/virt-ls.pod:194
2055 msgid ""
2056 "With the I<--uids> flag, these additional fields are displayed before the "
2057 "path:"
2058 msgstr ""
2059
2060 #. type: =item
2061 #: ../cat/virt-ls.pod:199
2062 #, fuzzy
2063 #| msgid "lvuuid"
2064 msgid "uid"
2065 msgstr "lvuuid"
2066
2067 #. type: =item
2068 #: ../cat/virt-ls.pod:201
2069 #, fuzzy
2070 #| msgid "vguuid"
2071 msgid "gid"
2072 msgstr "vguuid"
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:203
2076 msgid ""
2077 "The UID and GID of the owner of the file (displayed numerically).  Note "
2078 "these only make sense in the context of a Unix-like guest."
2079 msgstr ""
2080
2081 #. type: textblock
2082 #: ../cat/virt-ls.pod:208
2083 msgid "With the I<--times> flag, these additional fields are displayed:"
2084 msgstr ""
2085
2086 #. type: =item
2087 #: ../cat/virt-ls.pod:212
2088 #, fuzzy
2089 #| msgid "time"
2090 msgid "atime"
2091 msgstr "time"
2092
2093 #. type: textblock
2094 #: ../cat/virt-ls.pod:214
2095 msgid "The time of last access."
2096 msgstr ""
2097
2098 #. type: =item
2099 #: ../cat/virt-ls.pod:216
2100 #, fuzzy
2101 #| msgid "time"
2102 msgid "mtime"
2103 msgstr "time"
2104
2105 #. type: textblock
2106 #: ../cat/virt-ls.pod:218
2107 msgid "The time of last modification."
2108 msgstr ""
2109
2110 #. type: =item
2111 #: ../cat/virt-ls.pod:220
2112 #, fuzzy
2113 #| msgid "time"
2114 msgid "ctime"
2115 msgstr "time"
2116
2117 #. type: textblock
2118 #: ../cat/virt-ls.pod:222
2119 msgid "The time of last status change."
2120 msgstr ""
2121
2122 #. type: textblock
2123 #: ../cat/virt-ls.pod:226
2124 msgid ""
2125 "The time fields are displayed as string dates and times, unless one of the "
2126 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../cat/virt-ls.pod:229
2131 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2132 msgstr ""
2133
2134 #. type: =item
2135 #: ../cat/virt-ls.pod:233
2136 #, fuzzy
2137 #| msgid "zero-device"
2138 msgid "device"
2139 msgstr "zero-device"
2140
2141 #. type: textblock
2142 #: ../cat/virt-ls.pod:235
2143 msgid ""
2144 "The device containing the file (displayed as major:minor).  This may not "
2145 "match devices as known to the guest."
2146 msgstr ""
2147
2148 #. type: =item
2149 #: ../cat/virt-ls.pod:238
2150 msgid "inode"
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../cat/virt-ls.pod:240
2155 msgid "The inode number."
2156 msgstr ""
2157
2158 #. type: =item
2159 #: ../cat/virt-ls.pod:242
2160 #, fuzzy
2161 #| msgid "readlink"
2162 msgid "nlink"
2163 msgstr "readlink"
2164
2165 #. type: textblock
2166 #: ../cat/virt-ls.pod:244
2167 msgid "The number of hard links."
2168 msgstr ""
2169
2170 #. type: =item
2171 #: ../cat/virt-ls.pod:246
2172 msgid "rdev"
2173 msgstr ""
2174
2175 #. type: textblock
2176 #: ../cat/virt-ls.pod:248
2177 msgid ""
2178 "For block and char special files, the device (displayed as major:minor)."
2179 msgstr ""
2180
2181 #. type: =item
2182 #: ../cat/virt-ls.pod:251
2183 #, fuzzy
2184 #| msgid "C<blocksize>"
2185 msgid "blocks"
2186 msgstr "C<blocksize>"
2187
2188 #. type: textblock
2189 #: ../cat/virt-ls.pod:253
2190 msgid "The number of 512 byte blocks allocated to the file."
2191 msgstr ""
2192
2193 #. type: textblock
2194 #: ../cat/virt-ls.pod:257
2195 msgid ""
2196 "With the I<--checksum> flag, the checksum of the file contents is shown "
2197 "(only for regular files).  Computing file checksums can take a considerable "
2198 "amount of time."
2199 msgstr ""
2200
2201 #. type: =item
2202 #: ../cat/virt-ls.pod:280
2203 #, fuzzy
2204 #| msgid "checksum"
2205 msgid "B<--checksum>"
2206 msgstr "checksum"
2207
2208 #. type: =item
2209 #: ../cat/virt-ls.pod:282
2210 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2211 msgstr ""
2212
2213 #. type: textblock
2214 #: ../cat/virt-ls.pod:284
2215 msgid ""
2216 "Display checksum over file contents for regular files.  With no argument, "
2217 "this defaults to using I<md5>.  Using an argument, you can select the "
2218 "checksum type to use."
2219 msgstr ""
2220
2221 #. type: textblock
2222 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2223 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2224 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2225 msgid ""
2226 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2227 "LISTING> above."
2228 msgstr ""
2229
2230 #. type: textblock
2231 #: ../cat/virt-ls.pod:316
2232 msgid ""
2233 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2234 "so you cannot see what you are typing.  If you are not worried about Tempest "
2235 "attacks and there is no one else in the room you can specify this flag to "
2236 "see what you are typing."
2237 msgstr ""
2238
2239 #. type: =item
2240 #: ../cat/virt-ls.pod:321
2241 #, fuzzy
2242 #| msgid "B<--no-dest-paths>"
2243 msgid "B<--extra-stats>"
2244 msgstr "B<--no-dest-paths>"
2245
2246 #. type: textblock
2247 #: ../cat/virt-ls.pod:323
2248 msgid "Display extra stats."
2249 msgstr ""
2250
2251 #. type: verbatim
2252 #: ../cat/virt-ls.pod:339
2253 #, fuzzy, no-wrap
2254 #| msgid ""
2255 #| " guestfish --format=raw -a disk.img\n"
2256 #| "\n"
2257 msgid ""
2258 " virt-ls --format=raw -a disk.img /dir\n"
2259 "\n"
2260 msgstr ""
2261 " guestfish --format=raw -a disk.img\n"
2262 "\n"
2263
2264 #. type: verbatim
2265 #: ../cat/virt-ls.pod:343
2266 #, fuzzy, no-wrap
2267 #| msgid ""
2268 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2269 #| "\n"
2270 msgid ""
2271 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2272 "\n"
2273 msgstr ""
2274 " guestfish --format=raw -a disk.img --format -a another.img\n"
2275 "\n"
2276
2277 #. type: textblock
2278 #: ../cat/virt-ls.pod:356
2279 msgid "Display file sizes in human-readable format."
2280 msgstr ""
2281
2282 #. type: =item
2283 #: ../cat/virt-ls.pod:370
2284 msgid "B<-R>"
2285 msgstr ""
2286
2287 #. type: =item
2288 #: ../cat/virt-ls.pod:372
2289 #, fuzzy
2290 #| msgid "B<--live>"
2291 msgid "B<--recursive>"
2292 msgstr "B<--live>"
2293
2294 #. type: textblock
2295 #: ../cat/virt-ls.pod:374
2296 msgid ""
2297 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2298 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2299 "LISTING>."
2300 msgstr ""
2301
2302 #. type: textblock
2303 #: ../cat/virt-ls.pod:378
2304 msgid ""
2305 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2306 "LONG LISTING>."
2307 msgstr ""
2308
2309 #. type: textblock
2310 #: ../cat/virt-ls.pod:381
2311 msgid ""
2312 "C<virt-ls -R> produces a recursive list of files starting at the named "
2313 "directory.  See L</RECURSIVE LISTING>."
2314 msgstr ""
2315
2316 #. type: textblock
2317 #: ../cat/virt-ls.pod:384
2318 msgid ""
2319 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2320 "parsed.  See L</RECURSIVE LONG LISTING>."
2321 msgstr ""
2322
2323 #. type: =item
2324 #: ../cat/virt-ls.pod:387
2325 #, fuzzy
2326 #| msgid "B<--live>"
2327 msgid "B<--times>"
2328 msgstr "B<--live>"
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:389
2332 msgid "Display time fields."
2333 msgstr ""
2334
2335 #. type: =item
2336 #: ../cat/virt-ls.pod:394
2337 #, fuzzy
2338 #| msgid "B<--echo-keys>"
2339 msgid "B<--time-days>"
2340 msgstr "B<--echo-keys>"
2341
2342 #. type: textblock
2343 #: ../cat/virt-ls.pod:396
2344 msgid "Display time fields as days before now (negative if in the future)."
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:398
2349 msgid ""
2350 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2351 "of the file is between 0 and 86399 seconds."
2352 msgstr ""
2353
2354 #. type: =item
2355 #: ../cat/virt-ls.pod:404
2356 #, fuzzy
2357 #| msgid "B<--live>"
2358 msgid "B<--time-relative>"
2359 msgstr "B<--live>"
2360
2361 #. type: textblock
2362 #: ../cat/virt-ls.pod:406
2363 msgid "Display time fields as seconds before now (negative if in the future)."
2364 msgstr ""
2365
2366 #. type: =item
2367 #: ../cat/virt-ls.pod:411
2368 #, fuzzy
2369 #| msgid "I<--timeout N>"
2370 msgid "B<--time-t>"
2371 msgstr "I<--timeout N>"
2372
2373 #. type: textblock
2374 #: ../cat/virt-ls.pod:413
2375 msgid "Display time fields as seconds since the Unix epoch."
2376 msgstr ""
2377
2378 #. type: =item
2379 #: ../cat/virt-ls.pod:418
2380 #, fuzzy
2381 #| msgid "B<--csh>"
2382 msgid "B<--uids>"
2383 msgstr "B<--csh>"
2384
2385 #. type: textblock
2386 #: ../cat/virt-ls.pod:420
2387 msgid "Display UID and GID fields."
2388 msgstr ""
2389
2390 #. type: textblock
2391 #: ../cat/virt-ls.pod:445
2392 msgid "Previous versions of virt-ls allowed you to write either:"
2393 msgstr ""
2394
2395 #. type: verbatim
2396 #: ../cat/virt-ls.pod:447
2397 #, fuzzy, no-wrap
2398 #| msgid ""
2399 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2400 #| "\n"
2401 msgid ""
2402 " virt-ls disk.img [disk.img ...] /dir\n"
2403 "\n"
2404 msgstr ""
2405 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2406 "\n"
2407
2408 #. type: verbatim
2409 #: ../cat/virt-ls.pod:451
2410 #, fuzzy, no-wrap
2411 #| msgid ""
2412 #| " inspect-get-hostname root\n"
2413 #| "\n"
2414 msgid ""
2415 " virt-ls guestname /dir\n"
2416 "\n"
2417 msgstr ""
2418 " inspect-get-hostname корінь\n"
2419 "\n"
2420
2421 #. type: textblock
2422 #: ../cat/virt-ls.pod:497
2423 #, fuzzy
2424 #| msgid ""
2425 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2426 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2427 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2428 msgid ""
2429 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2430 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2431 "L<http://libguestfs.org/>."
2432 msgstr ""
2433 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2434 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2435 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2436
2437 #. type: textblock
2438 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2439 #: ../rescue/virt-rescue.pod:298
2440 #, fuzzy
2441 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2442 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2443 msgstr "© Red Hat Inc., 2009–2010"
2444
2445 #. type: textblock
2446 #: ../df/virt-df.pod:5
2447 msgid "virt-df - Display free space on virtual filesystems"
2448 msgstr ""
2449
2450 #. type: verbatim
2451 #: ../df/virt-df.pod:9
2452 #, fuzzy, no-wrap
2453 #| msgid ""
2454 #| " virt-list-partitions [--options] domname\n"
2455 #| "\n"
2456 msgid ""
2457 " virt-df [--options]\n"
2458 "\n"
2459 msgstr ""
2460 " virt-list-partitions [--параметри] назва_домену\n"
2461 "\n"
2462
2463 #. type: verbatim
2464 #: ../df/virt-df.pod:11
2465 #, fuzzy, no-wrap
2466 #| msgid ""
2467 #| " virt-list-partitions [--options] domname\n"
2468 #| "\n"
2469 msgid ""
2470 " virt-df [--options] -d domname\n"
2471 "\n"
2472 msgstr ""
2473 " virt-list-partitions [--параметри] назва_домену\n"
2474 "\n"
2475
2476 #. type: verbatim
2477 #: ../df/virt-df.pod:13
2478 #, fuzzy, no-wrap
2479 #| msgid ""
2480 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2481 #| "\n"
2482 msgid ""
2483 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2484 "\n"
2485 msgstr ""
2486 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2487 "\n"
2488
2489 #. type: verbatim
2490 #: ../df/virt-df.pod:17
2491 #, fuzzy, no-wrap
2492 #| msgid ""
2493 #| " virt-list-partitions [--options] domname\n"
2494 #| "\n"
2495 msgid ""
2496 " virt-df [--options] domname\n"
2497 "\n"
2498 msgstr ""
2499 " virt-list-partitions [--параметри] назва_домену\n"
2500 "\n"
2501
2502 #. type: verbatim
2503 #: ../df/virt-df.pod:19
2504 #, fuzzy, no-wrap
2505 #| msgid ""
2506 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2507 #| "\n"
2508 msgid ""
2509 " virt-df [--options] disk.img [disk.img ...]\n"
2510 "\n"
2511 msgstr ""
2512 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2513 "\n"
2514
2515 #. type: textblock
2516 #: ../df/virt-df.pod:23
2517 msgid ""
2518 "C<virt-df> is a command line tool to display free space on virtual machine "
2519 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2520 "allocated to a virtual machine, but can look inside disk images to see how "
2521 "much space is really being used."
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../df/virt-df.pod:28
2526 msgid ""
2527 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2528 "to get a list of all active and inactive guests, and performs a C<df>-type "
2529 "operation on each one in turn, printing out the results."
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../df/virt-df.pod:32
2534 msgid ""
2535 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2536 "type operation on either the single named libvirt domain, or on the disk "
2537 "image(s) listed on the command line (which must all belong to a single VM).  "
2538 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2539 "guest>.  If you want to run on multiple guests, then you have to invoke "
2540 "C<virt-df> multiple times."
2541 msgstr ""
2542
2543 #. type: textblock
2544 #: ../df/virt-df.pod:39
2545 msgid ""
2546 "Use the I<--csv> option to get a format which can be easily parsed by other "
2547 "programs.  Other options are similar to the standard L<df(1)> command."
2548 msgstr ""
2549
2550 #. type: textblock
2551 #: ../df/virt-df.pod:45
2552 msgid ""
2553 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2554 "output human-readable:"
2555 msgstr ""
2556
2557 #. type: verbatim
2558 #: ../df/virt-df.pod:48
2559 #, no-wrap
2560 msgid ""
2561 " # virt-df -d F14x64 -h\n"
2562 " Filesystem                       Size     Used  Available  Use%\n"
2563 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2564 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2565 "\n"
2566 msgstr ""
2567
2568 #. type: textblock
2569 #: ../df/virt-df.pod:53
2570 msgid "Show disk usage for a disk image file called C<test.img>:"
2571 msgstr ""
2572
2573 #. type: verbatim
2574 #: ../df/virt-df.pod:55
2575 #, no-wrap
2576 msgid ""
2577 " $ virt-df -a test1.img\n"
2578 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2579 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2580 "\n"
2581 msgstr ""
2582
2583 #. type: verbatim
2584 #: ../df/virt-df.pod:112
2585 #, fuzzy, no-wrap
2586 #| msgid ""
2587 #| " guestfish --format=raw -a disk.img\n"
2588 #| "\n"
2589 msgid ""
2590 " virt-df --format=raw -a disk.img\n"
2591 "\n"
2592 msgstr ""
2593 " guestfish --format=raw -a disk.img\n"
2594 "\n"
2595
2596 #. type: verbatim
2597 #: ../df/virt-df.pod:116
2598 #, fuzzy, no-wrap
2599 #| msgid ""
2600 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2601 #| "\n"
2602 msgid ""
2603 " virt-df --format=raw -a disk.img --format -a another.img\n"
2604 "\n"
2605 msgstr ""
2606 " guestfish --format=raw -a disk.img --format -a another.img\n"
2607 "\n"
2608
2609 #. type: textblock
2610 #: ../df/virt-df.pod:129
2611 msgid "Print sizes in human-readable format."
2612 msgstr ""
2613
2614 #. type: textblock
2615 #: ../df/virt-df.pod:131
2616 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2617 msgstr ""
2618
2619 #. type: =item
2620 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
2621 msgid "B<-i>"
2622 msgstr "B<-i>"
2623
2624 #. type: =item
2625 #: ../df/virt-df.pod:135
2626 #, fuzzy
2627 #| msgid "B<--live>"
2628 msgid "B<--inodes>"
2629 msgstr "B<--live>"
2630
2631 #. type: textblock
2632 #: ../df/virt-df.pod:137
2633 msgid "Print inodes instead of blocks."
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../df/virt-df.pod:139
2638 #, fuzzy
2639 #| msgid "B<--merge>"
2640 msgid "B<--one-per-guest>"
2641 msgstr "B<--merge>"
2642
2643 #. type: textblock
2644 #: ../df/virt-df.pod:141
2645 msgid ""
2646 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2647 "disks from several guests to a single libguestfs appliance."
2648 msgstr ""
2649
2650 #. type: textblock
2651 #: ../df/virt-df.pod:144
2652 msgid "You might use this option in the following circumstances:"
2653 msgstr ""
2654
2655 #. type: =item
2656 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2657 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2658 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2659 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2660 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2661 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2662 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2663 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2664 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2665 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2666 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2667 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2668 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2669 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2670 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2671 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2672 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2673 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2674 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2675 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555
2676 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2677 #: ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1966
2678 #: ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:1981
2679 #: ../fish/guestfish-actions.pod:1988 ../fish/guestfish.pod:445
2680 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2681 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2682 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2683 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2684 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15
2685 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:588
2686 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2687 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667
2688 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2689 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2690 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2691 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2692 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2693 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2694 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2695 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2696 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2697 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2886
2698 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2900
2699 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2914
2700 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2701 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2702 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1087
2703 #: ../src/guestfs.pod:1091 ../src/guestfs.pod:1095 ../src/guestfs.pod:1100
2704 #: ../src/guestfs.pod:1108 ../src/guestfs.pod:1127 ../src/guestfs.pod:1135
2705 #: ../src/guestfs.pod:1157 ../src/guestfs.pod:1161 ../src/guestfs.pod:1165
2706 #: ../src/guestfs.pod:1169 ../src/guestfs.pod:1173 ../src/guestfs.pod:1177
2707 #: ../src/guestfs.pod:1666 ../src/guestfs.pod:1671 ../src/guestfs.pod:1675
2708 #: ../src/guestfs.pod:1777 ../src/guestfs.pod:1782 ../src/guestfs.pod:1786
2709 #: ../src/guestfs.pod:1796 ../src/guestfs.pod:2070 ../src/guestfs.pod:2075
2710 #: ../src/guestfs.pod:2081 ../src/guestfs.pod:2089 ../src/guestfs.pod:2536
2711 #: ../src/guestfs.pod:2542 ../src/guestfs.pod:2547 ../src/guestfs.pod:2553
2712 #: ../src/guestfs.pod:2938 ../src/guestfs.pod:2943 ../src/guestfs.pod:2947
2713 #: ../src/guestfs.pod:2951 ../src/guestfs.pod:2955 ../src/guestfs.pod:2969
2714 #: ../src/guestfs.pod:2974 ../src/guestfs.pod:3200 ../src/guestfs.pod:3204
2715 #: ../src/guestfs.pod:3208 ../src/guestfs.pod:3212
2716 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2717 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2718 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2719 msgid "*"
2720 msgstr "*"
2721
2722 #. type: textblock
2723 #: ../df/virt-df.pod:150
2724 msgid ""
2725 "If you think an untrusted guest might actively try to exploit the libguestfs "
2726 "appliance kernel, then this prevents one guest from interfering with the "
2727 "stats printed for another guest."
2728 msgstr ""
2729
2730 #. type: textblock
2731 #: ../df/virt-df.pod:156
2732 msgid ""
2733 "If the kernel has a bug which stops it from accessing a filesystem in one "
2734 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2735 "and report stats for further guests."
2736 msgstr ""
2737
2738 #. type: textblock
2739 #: ../df/virt-df.pod:165
2740 msgid ""
2741 "Print UUIDs instead of names.  This is useful for following a guest even "
2742 "when the guest is migrated or renamed, or when two guests happen to have the "
2743 "same name."
2744 msgstr ""
2745
2746 #. type: textblock
2747 #: ../df/virt-df.pod:169
2748 msgid ""
2749 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2750 "images, we still print the disk image name even when this option is "
2751 "specified."
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../df/virt-df.pod:229
2756 msgid ""
2757 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2758 "libguestfs.org/>."
2759 msgstr ""
2760
2761 #. type: textblock
2762 #: ../edit/virt-edit.pod:5
2763 msgid "virt-edit - Edit a file in a virtual machine"
2764 msgstr ""
2765
2766 #. type: verbatim
2767 #: ../edit/virt-edit.pod:9
2768 #, fuzzy, no-wrap
2769 #| msgid ""
2770 #| " virt-list-partitions [--options] domname\n"
2771 #| "\n"
2772 msgid ""
2773 " virt-edit [--options] -d domname file [file ...]\n"
2774 "\n"
2775 msgstr ""
2776 " virt-list-partitions [--параметри] назва_домену\n"
2777 "\n"
2778
2779 #. type: verbatim
2780 #: ../edit/virt-edit.pod:11
2781 #, fuzzy, no-wrap
2782 #| msgid ""
2783 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2784 #| "\n"
2785 msgid ""
2786 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2787 "\n"
2788 msgstr ""
2789 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2790 "\n"
2791
2792 #. type: verbatim
2793 #: ../edit/virt-edit.pod:13
2794 #, no-wrap
2795 msgid ""
2796 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2797 "\n"
2798 msgstr ""
2799
2800 #. type: verbatim
2801 #: ../edit/virt-edit.pod:17
2802 #, no-wrap
2803 msgid ""
2804 " virt-edit domname file\n"
2805 "\n"
2806 msgstr ""
2807
2808 #. type: verbatim
2809 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2810 #, fuzzy, no-wrap
2811 #| msgid ""
2812 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2813 #| "\n"
2814 msgid ""
2815 " virt-edit disk.img [disk.img ...] file\n"
2816 "\n"
2817 msgstr ""
2818 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2819 "\n"
2820
2821 #. type: =head1
2822 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2823 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2824 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2825 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2826 msgid "WARNING"
2827 msgstr "ПОПЕРЕДЖЕННЯ"
2828
2829 #. type: textblock
2830 #: ../edit/virt-edit.pod:23
2831 msgid ""
2832 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2833 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2834 "doing this, but doesn't catch all cases."
2835 msgstr ""
2836
2837 #. type: textblock
2838 #: ../edit/virt-edit.pod:29
2839 msgid ""
2840 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2841 "exists in the named virtual machine (or disk image)."
2842 msgstr ""
2843
2844 #. type: textblock
2845 #: ../edit/virt-edit.pod:32
2846 msgid ""
2847 "Multiple filenames can be given, in which case they are each edited in "
2848 "turn.  Each filename must be a full path, starting at the root directory "
2849 "(starting with '/')."
2850 msgstr ""
2851
2852 #. type: textblock
2853 #: ../edit/virt-edit.pod:36
2854 msgid "If you want to just view a file, use L<virt-cat(1)>."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../edit/virt-edit.pod:38
2859 msgid ""
2860 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2861 "USING GUESTFISH> below)."
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../edit/virt-edit.pod:41
2866 msgid ""
2867 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2868 "that and much more."
2869 msgstr ""
2870
2871 #. type: textblock
2872 #: ../edit/virt-edit.pod:46
2873 msgid "Edit the named files interactively:"
2874 msgstr ""
2875
2876 #. type: verbatim
2877 #: ../edit/virt-edit.pod:48
2878 #, no-wrap
2879 msgid ""
2880 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2881 "\n"
2882 msgstr ""
2883
2884 #. type: verbatim
2885 #: ../edit/virt-edit.pod:50
2886 #, no-wrap
2887 msgid ""
2888 " virt-edit -d mydomain /etc/passwd\n"
2889 "\n"
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../edit/virt-edit.pod:52
2894 msgid "For Windows guests, some Windows paths are understood:"
2895 msgstr ""
2896
2897 #. type: verbatim
2898 #: ../edit/virt-edit.pod:54
2899 #, no-wrap
2900 msgid ""
2901 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2902 "\n"
2903 msgstr ""
2904
2905 #. type: textblock
2906 #: ../edit/virt-edit.pod:56
2907 msgid ""
2908 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2909 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2910 msgstr ""
2911
2912 #. type: verbatim
2913 #: ../edit/virt-edit.pod:60
2914 #, no-wrap
2915 msgid ""
2916 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2917 "\n"
2918 msgstr ""
2919
2920 #. type: =item
2921 #: ../edit/virt-edit.pod:81
2922 msgid "B<-b> extension"
2923 msgstr ""
2924
2925 #. type: =item
2926 #: ../edit/virt-edit.pod:83
2927 msgid "B<--backup> extension"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../edit/virt-edit.pod:85
2932 msgid ""
2933 "Create a backup of the original file I<in the guest disk image>.  The backup "
2934 "has the original filename with C<extension> added."
2935 msgstr ""
2936
2937 #. type: textblock
2938 #: ../edit/virt-edit.pod:88
2939 msgid ""
2940 "Usually the first character of C<extension> would be a dot C<.> so you would "
2941 "write:"
2942 msgstr ""
2943
2944 #. type: verbatim
2945 #: ../edit/virt-edit.pod:91
2946 #, no-wrap
2947 msgid ""
2948 " virt-edit -b .orig [etc]\n"
2949 "\n"
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../edit/virt-edit.pod:93
2954 msgid "By default, no backup file is made."
2955 msgstr ""
2956
2957 #. type: =item
2958 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2959 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
2960 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2961 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2962 msgid "B<-c URI>"
2963 msgstr "B<-c адреса>"
2964
2965 #. type: =item
2966 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2967 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
2968 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2969 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2970 msgid "B<--connect URI>"
2971 msgstr "B<--connect адреса>"
2972
2973 #. type: textblock
2974 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2975 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2976 #: ../tools/virt-win-reg.pl:135
2977 msgid ""
2978 "If you specify guest block devices directly, then libvirt is not used at all."
2979 msgstr ""
2980
2981 #. type: textblock
2982 #: ../edit/virt-edit.pod:114
2983 msgid ""
2984 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2985 "off so you cannot see what you are typing.  If you are not worried about "
2986 "Tempest attacks and there is no one else in the room you can specify this "
2987 "flag to see what you are typing."
2988 msgstr ""
2989
2990 #. type: =item
2991 #: ../edit/virt-edit.pod:119
2992 msgid "B<-e> EXPR"
2993 msgstr ""
2994
2995 #. type: =item
2996 #: ../edit/virt-edit.pod:121
2997 #, fuzzy
2998 #| msgid "B<--help>"
2999 msgid "B<--expr> EXPR"
3000 msgstr "B<--help>"
3001
3002 #. type: textblock
3003 #: ../edit/virt-edit.pod:123
3004 msgid ""
3005 "Instead of launching the external editor, non-interactively apply the Perl "
3006 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3007 "EDITING> below."
3008 msgstr ""
3009
3010 #. type: textblock
3011 #: ../edit/virt-edit.pod:127
3012 msgid ""
3013 "Be careful to properly quote the expression to prevent it from being altered "
3014 "by the shell."
3015 msgstr ""
3016
3017 #. type: textblock
3018 #: ../edit/virt-edit.pod:130
3019 msgid "Note that this option is only available when Perl 5 is installed."
3020 msgstr ""
3021
3022 #. type: =item
3023 #: ../edit/virt-edit.pod:132
3024 #, fuzzy
3025 #| msgid "B<--format=raw|qcow2|..>"
3026 msgid "B<--format> raw|qcow2|..."
3027 msgstr "B<--format=raw|qcow2|..>"
3028
3029 #. type: verbatim
3030 #: ../edit/virt-edit.pod:143
3031 #, fuzzy, no-wrap
3032 #| msgid ""
3033 #| " guestfish --format=raw -a disk.img\n"
3034 #| "\n"
3035 msgid ""
3036 " virt-edit --format=raw -a disk.img file\n"
3037 "\n"
3038 msgstr ""
3039 " guestfish --format=raw -a disk.img\n"
3040 "\n"
3041
3042 #. type: verbatim
3043 #: ../edit/virt-edit.pod:147
3044 #, fuzzy, no-wrap
3045 #| msgid ""
3046 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3047 #| "\n"
3048 msgid ""
3049 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3050 "\n"
3051 msgstr ""
3052 " guestfish --format=raw -a disk.img --format -a another.img\n"
3053 "\n"
3054
3055 #. type: textblock
3056 #: ../edit/virt-edit.pod:181
3057 msgid "Previous versions of virt-edit allowed you to write either:"
3058 msgstr ""
3059
3060 #. type: verbatim
3061 #: ../edit/virt-edit.pod:187
3062 #, fuzzy, no-wrap
3063 #| msgid ""
3064 #| " edit filename\n"
3065 #| "\n"
3066 msgid ""
3067 " virt-edit guestname file\n"
3068 "\n"
3069 msgstr ""
3070 " edit назва_файла\n"
3071 "\n"
3072
3073 #. type: =head1
3074 #: ../edit/virt-edit.pod:195
3075 msgid "NON-INTERACTIVE EDITING"
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../edit/virt-edit.pod:197
3080 msgid ""
3081 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3082 "administrator can interactively edit the file."
3083 msgstr ""
3084
3085 #. type: textblock
3086 #: ../edit/virt-edit.pod:200
3087 msgid ""
3088 "There are two ways also to use C<virt-edit> from scripts in order to make "
3089 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3090 "like this, it's less error-prone to write scripts directly using the "
3091 "libguestfs API and Augeas for configuration file editing.)"
3092 msgstr ""
3093
3094 #. type: textblock
3095 #: ../edit/virt-edit.pod:206
3096 msgid ""
3097 "The first method is to temporarily set C<$EDITOR> to any script or program "
3098 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3099 "update C<tmpfile> in place however it likes."
3100 msgstr ""
3101
3102 #. type: textblock
3103 #: ../edit/virt-edit.pod:210
3104 msgid ""
3105 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3106 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3107 "instances of C<foo> with C<bar> in a file:"
3108 msgstr ""
3109
3110 #. type: verbatim
3111 #: ../edit/virt-edit.pod:214
3112 #, no-wrap
3113 msgid ""
3114 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3115 "\n"
3116 msgstr ""
3117
3118 #. type: textblock
3119 #: ../edit/virt-edit.pod:216
3120 msgid ""
3121 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3122 "For example to delete root's password you could do:"
3123 msgstr ""
3124
3125 #. type: verbatim
3126 #: ../edit/virt-edit.pod:219
3127 #, no-wrap
3128 msgid ""
3129 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3130 "\n"
3131 msgstr ""
3132
3133 #. type: textblock
3134 #: ../edit/virt-edit.pod:221
3135 msgid ""
3136 "What really happens is that the snippet is evaluated as a Perl expression "
3137 "for each line of the file.  The line, including the final C<\\n>, is passed "
3138 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3139 msgstr ""
3140
3141 #. type: textblock
3142 #: ../edit/virt-edit.pod:226
3143 msgid ""
3144 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3145 "C<apache> user account from the password file you can do:"
3146 msgstr ""
3147
3148 #. type: verbatim
3149 #: ../edit/virt-edit.pod:229
3150 #, no-wrap
3151 msgid ""
3152 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3153 "\n"
3154 msgstr ""
3155
3156 #. type: textblock
3157 #: ../edit/virt-edit.pod:231
3158 msgid ""
3159 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3160 "the end of the file is rather difficult this way since there is no concept "
3161 "of \"last line of the file\" - your expression just doesn't get called "
3162 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3163 "want to do this."
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../edit/virt-edit.pod:237
3168 msgid ""
3169 "The variable C<$lineno> contains the current line number.  As is "
3170 "traditional, the first line in the file is number C<1>."
3171 msgstr ""
3172
3173 #. type: textblock
3174 #: ../edit/virt-edit.pod:240
3175 msgid ""
3176 "The return value from the expression is ignored, but the expression may call "
3177 "C<die> in order to abort the whole program, leaving the original file "
3178 "untouched."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../edit/virt-edit.pod:244
3183 msgid ""
3184 "Remember when matching the end of a line that C<$_> may contain the final C<"
3185 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3186 "newline then neither of these.  Thus to match or substitute some text at the "
3187 "end of a line, use this regular expression:"
3188 msgstr ""
3189
3190 #. type: verbatim
3191 #: ../edit/virt-edit.pod:249
3192 #, no-wrap
3193 msgid ""
3194 " /some text(\\r?\\n)?$/\n"
3195 "\n"
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../edit/virt-edit.pod:251
3200 msgid ""
3201 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3202 "$_> itself (since that would remove all newlines from the file):"
3203 msgstr ""
3204
3205 #. type: verbatim
3206 #: ../edit/virt-edit.pod:255
3207 #, no-wrap
3208 msgid ""
3209 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3210 "\n"
3211 msgstr ""
3212
3213 #. type: =head1
3214 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3215 msgid "WINDOWS PATHS"
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../edit/virt-edit.pod:259
3220 msgid ""
3221 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3222 "paths (eg. C<E:\\foo\\bar.txt>)."
3223 msgstr ""
3224
3225 #. type: textblock
3226 #: ../edit/virt-edit.pod:262
3227 msgid "If and only if the guest is running Windows then:"
3228 msgstr ""
3229
3230 #. type: textblock
3231 #: ../edit/virt-edit.pod:268
3232 msgid ""
3233 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3234 "to the correct filesystem."
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../edit/virt-edit.pod:273
3239 msgid ""
3240 "Any backslash (C<\\>) characters in the path are replaced with forward "
3241 "slashes so that libguestfs can process it."
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../edit/virt-edit.pod:278
3246 msgid ""
3247 "The path is resolved case insensitively to locate the file that should be "
3248 "edited."
3249 msgstr ""
3250
3251 #. type: textblock
3252 #: ../edit/virt-edit.pod:283
3253 msgid "There are some known shortcomings:"
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../edit/virt-edit.pod:289
3258 msgid "Some NTFS symbolic links may not be followed correctly."
3259 msgstr ""
3260
3261 #. type: textblock
3262 #: ../edit/virt-edit.pod:293
3263 msgid "NTFS junction points that cross filesystems are not followed."
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../edit/virt-edit.pod:299
3268 msgid ""
3269 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3270 "C<virt-edit> doesn't work."
3271 msgstr ""
3272
3273 #. type: textblock
3274 #: ../edit/virt-edit.pod:302
3275 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3276 msgstr ""
3277
3278 #. type: verbatim
3279 #: ../edit/virt-edit.pod:304
3280 #, fuzzy, no-wrap
3281 #| msgid ""
3282 #| " guestfish --ro -d myguest -i\n"
3283 #| "\n"
3284 msgid ""
3285 " guestfish --rw -i -d domname edit /file\n"
3286 "\n"
3287 msgstr ""
3288 " guestfish --ro -d myguest -i\n"
3289 "\n"
3290
3291 #. type: textblock
3292 #: ../edit/virt-edit.pod:306
3293 msgid ""
3294 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3295 "path to the file."
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../edit/virt-edit.pod:309
3300 msgid ""
3301 "The command above uses libguestfs's guest inspection feature and so does not "
3302 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3303 "disk images that don't contain guests.  To edit a file on a disk image "
3304 "directly, use:"
3305 msgstr ""
3306
3307 #. type: verbatim
3308 #: ../edit/virt-edit.pod:314
3309 #, fuzzy, no-wrap
3310 #| msgid ""
3311 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3312 #| "\n"
3313 msgid ""
3314 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3315 "\n"
3316 msgstr ""
3317 " guestfish --format=raw -a disk.img --format -a another.img\n"
3318 "\n"
3319
3320 #. type: textblock
3321 #: ../edit/virt-edit.pod:316
3322 msgid ""
3323 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3324 "the disk image to edit, and C</file> is the full path to the file."
3325 msgstr ""
3326
3327 #. type: textblock
3328 #: ../edit/virt-edit.pod:320
3329 msgid ""
3330 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3331 "C<write> or C<upload> instead:"
3332 msgstr ""
3333
3334 #. type: verbatim
3335 #: ../edit/virt-edit.pod:323
3336 #, fuzzy, no-wrap
3337 #| msgid ""
3338 #| " guestfish --ro -d myguest -i\n"
3339 #| "\n"
3340 msgid ""
3341 " guestfish --rw -i -d domname touch /newfile\n"
3342 "\n"
3343 msgstr ""
3344 " guestfish --ro -d myguest -i\n"
3345 "\n"
3346
3347 #. type: verbatim
3348 #: ../edit/virt-edit.pod:325
3349 #, no-wrap
3350 msgid ""
3351 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3352 "\n"
3353 msgstr ""
3354
3355 #. type: verbatim
3356 #: ../edit/virt-edit.pod:327
3357 #, no-wrap
3358 msgid ""
3359 " guestfish --rw -i -d domname upload localfile /newfile\n"
3360 "\n"
3361 msgstr ""
3362
3363 #. type: =head1
3364 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
3365 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3085
3366 #: ../test-tool/libguestfs-test-tool.pod:95
3367 msgid "ENVIRONMENT VARIABLES"
3368 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3369
3370 #. type: =item
3371 #: ../edit/virt-edit.pod:333
3372 #, fuzzy
3373 #| msgid "EDITOR"
3374 msgid "C<EDITOR>"
3375 msgstr "РЕДАКТОР"
3376
3377 #. type: textblock
3378 #: ../edit/virt-edit.pod:335
3379 msgid ""
3380 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3381 "\"emacs -nw\">"
3382 msgstr ""
3383
3384 #. type: textblock
3385 #: ../edit/virt-edit.pod:338
3386 msgid "If not set, C<vi> is used."
3387 msgstr ""
3388
3389 #. type: textblock
3390 #: ../edit/virt-edit.pod:356
3391 #, fuzzy
3392 #| msgid ""
3393 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3394 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3395 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3396 msgid ""
3397 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3398 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3399 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3400 msgstr ""
3401 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3402 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3403 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3404
3405 #. type: textblock
3406 #: ../examples/guestfs-examples.pod:5
3407 msgid "guestfs-examples - Examples of using libguestfs from C"
3408 msgstr ""
3409
3410 #. type: verbatim
3411 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3412 #, no-wrap
3413 msgid ""
3414 " #include <guestfs.h>\n"
3415 " \n"
3416 msgstr ""
3417 " #include <guestfs.h>\n"
3418 " \n"
3419
3420 #. type: verbatim
3421 #: ../examples/guestfs-examples.pod:11
3422 #, no-wrap
3423 msgid ""
3424 " guestfs_h *g = guestfs_create ();\n"
3425 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3426 " guestfs_launch (g);\n"
3427 "\n"
3428 msgstr ""
3429
3430 #. type: verbatim
3431 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3432 #, no-wrap
3433 msgid ""
3434 " cc prog.c -o prog -lguestfs\n"
3435 "or:\n"
3436 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3437 "\n"
3438 msgstr ""
3439 " cc prog.c -o prog -lguestfs\n"
3440 "або:\n"
3441 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3442 "\n"
3443
3444 #. type: textblock
3445 #: ../examples/guestfs-examples.pod:21
3446 msgid ""
3447 "This manual page contains examples of calling libguestfs from the C "
3448 "programming language.  If you are not familiar with using libguestfs, you "
3449 "also need to read L<guestfs(3)>."
3450 msgstr ""
3451
3452 #. type: =head1
3453 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3454 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3455 #: ../python/examples/guestfs-python.pod:34
3456 #: ../ruby/examples/guestfs-ruby.pod:28
3457 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3458 msgstr ""
3459
3460 #. type: textblock
3461 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3462 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3463 #: ../python/examples/guestfs-python.pod:36
3464 #: ../ruby/examples/guestfs-ruby.pod:30
3465 #, fuzzy
3466 #| msgid "EXAMPLE"
3467 msgid "@EXAMPLE1@"
3468 msgstr "ПРИКЛАД"
3469
3470 #. type: =head1
3471 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3472 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3473 #: ../python/examples/guestfs-python.pod:38
3474 #: ../ruby/examples/guestfs-ruby.pod:32
3475 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3476 msgstr ""
3477
3478 #. type: textblock
3479 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3480 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3481 #: ../python/examples/guestfs-python.pod:40
3482 #: ../ruby/examples/guestfs-ruby.pod:34
3483 #, fuzzy
3484 #| msgid "EXAMPLE"
3485 msgid "@EXAMPLE2@"
3486 msgstr "ПРИКЛАД"
3487
3488 #. type: textblock
3489 #: ../examples/guestfs-examples.pod:35
3490 #, fuzzy
3491 #| msgid ""
3492 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3493 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3494 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3495 msgid ""
3496 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3497 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3498 "libguestfs.org/>."
3499 msgstr ""
3500 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3501 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3502 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3503
3504 #. type: =head1
3505 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3506 #: ../fish/guestfish.pod:1293 ../fish/virt-copy-in.pod:60
3507 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3508 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
3509 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3510 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3511 #: ../python/examples/guestfs-python.pod:53
3512 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3219
3513 #: ../test-tool/libguestfs-test-tool.pod:106
3514 msgid "AUTHORS"
3515 msgstr "АВТОРИ"
3516
3517 #. type: textblock
3518 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3519 #: ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:62
3520 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3521 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
3522 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3523 #: ../perl/examples/guestfs-perl.pod:53
3524 #: ../python/examples/guestfs-python.pod:55
3525 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3221
3526 #: ../test-tool/libguestfs-test-tool.pod:108
3527 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3528 msgstr ""
3529
3530 #. type: textblock
3531 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3532 #: ../python/examples/guestfs-python.pod:59
3533 #: ../ruby/examples/guestfs-ruby.pod:53
3534 #, fuzzy
3535 #| msgid "Copyright (C) 2009 Red Hat Inc."
3536 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3537 msgstr "© Red Hat Inc., 2009"
3538
3539 #. type: textblock
3540 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3541 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3542 #: ../perl/examples/guestfs-perl.pod:59
3543 #: ../python/examples/guestfs-python.pod:61
3544 #: ../ruby/examples/guestfs-ruby.pod:55
3545 msgid ""
3546 "The examples in this manual page may be freely copied, modified and "
3547 "distributed without any restrictions."
3548 msgstr ""
3549
3550 #. type: textblock
3551 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3552 #: ../java/examples/guestfs-java.pod:68
3553 #: ../ocaml/examples/guestfs-ocaml.pod:101
3554 #: ../perl/examples/guestfs-perl.pod:62
3555 #: ../python/examples/guestfs-python.pod:64
3556 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3228
3557 msgid ""
3558 "This library is free software; you can redistribute it and/or modify it "
3559 "under the terms of the GNU Lesser General Public License as published by the "
3560 "Free Software Foundation; either version 2 of the License, or (at your "
3561 "option) any later version."
3562 msgstr ""
3563
3564 #. type: textblock
3565 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3566 #: ../java/examples/guestfs-java.pod:73
3567 #: ../ocaml/examples/guestfs-ocaml.pod:106
3568 #: ../perl/examples/guestfs-perl.pod:67
3569 #: ../python/examples/guestfs-python.pod:69
3570 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3233
3571 msgid ""
3572 "This library is distributed in the hope that it will be useful, but WITHOUT "
3573 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3574 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3575 "for more details."
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3580 #: ../java/examples/guestfs-java.pod:78
3581 #: ../ocaml/examples/guestfs-ocaml.pod:111
3582 #: ../perl/examples/guestfs-perl.pod:72
3583 #: ../python/examples/guestfs-python.pod:74
3584 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3238
3585 msgid ""
3586 "You should have received a copy of the GNU Lesser General Public License "
3587 "along with this library; if not, write to the Free Software Foundation, "
3588 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3589 msgstr ""
3590
3591 #. type: =end
3592 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3593 msgid "comment"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../examples/guestfs-recipes.pod:5
3598 msgid ""
3599 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3600 "here.  The only way which works for both sorts of output is to just write "
3601 "the URL directly.  Do NOT use L<...> for URLs."
3602 msgstr ""
3603
3604 #. type: textblock
3605 #: ../examples/guestfs-recipes.pod:9
3606 msgid ""
3607 "We break with tradition here and don't use ALL CAPS for the section "
3608 "headings, as this makes them much easier to read."
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../examples/guestfs-recipes.pod:16
3613 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../examples/guestfs-recipes.pod:20
3618 msgid ""
3619 "This page contains recipes for and links to things you can do using "
3620 "libguestfs, L<guestfish(1)> and the virt tools."
3621 msgstr ""
3622
3623 #. type: =head1
3624 #: ../examples/guestfs-recipes.pod:23
3625 msgid "Audit a virtual machine for setuid files"
3626 msgstr ""
3627
3628 #. type: textblock
3629 #: ../examples/guestfs-recipes.pod:25
3630 msgid ""
3631 "The link below contains a small program which can be used to audit a Linux "
3632 "virtual machine to see what setuid and setgid files it contains."
3633 msgstr ""
3634
3635 #. type: textblock
3636 #: ../examples/guestfs-recipes.pod:28
3637 msgid ""
3638 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3639 "files/#content"
3640 msgstr ""
3641
3642 #. type: =head1
3643 #: ../examples/guestfs-recipes.pod:30
3644 msgid "Change the background image in a Windows XP VM"
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../examples/guestfs-recipes.pod:32
3649 msgid ""
3650 "The links below explain how to use L<guestfish(1)> to change the background "
3651 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3652 "be substantially different for each version of Windows."
3653 msgstr ""
3654
3655 #. type: textblock
3656 #: ../examples/guestfs-recipes.pod:37
3657 msgid ""
3658 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3659 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3660 msgstr ""
3661
3662 #. type: =head1
3663 #: ../examples/guestfs-recipes.pod:40
3664 msgid "Cloning a virtual machine (Linux)"
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../examples/guestfs-recipes.pod:42
3669 msgid ""
3670 "The guestfish technique described in the link below works well for most "
3671 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3672 "slightly."
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../examples/guestfs-recipes.pod:46
3677 msgid ""
3678 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3679 "vm/#content"
3680 msgstr ""
3681
3682 #. type: textblock
3683 #: ../examples/guestfs-recipes.pod:48
3684 msgid ""
3685 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3686 "discussion."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../examples/guestfs-recipes.pod:51
3691 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3692 msgstr ""
3693
3694 #. type: =head1
3695 #: ../examples/guestfs-recipes.pod:53
3696 msgid "Cloning a virtual machine (Windows)"
3697 msgstr ""
3698
3699 #. type: textblock
3700 #: ../examples/guestfs-recipes.pod:55
3701 msgid ""
3702 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3703 "straightforward.  Currently there is code in the Aeolus Oz project which "
3704 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3705 "we may add sysprepping ability."
3706 msgstr ""
3707
3708 #. type: textblock
3709 #: ../examples/guestfs-recipes.pod:60
3710 msgid ""
3711 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3712 "list/2011-May/msg00019.html"
3713 msgstr ""
3714
3715 #. type: =head1
3716 #: ../examples/guestfs-recipes.pod:63
3717 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../examples/guestfs-recipes.pod:65
3722 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3723 msgstr ""
3724
3725 #. type: verbatim
3726 #: ../examples/guestfs-recipes.pod:67
3727 #, no-wrap
3728 msgid ""
3729 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3730 "\n"
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../examples/guestfs-recipes.pod:69
3735 msgid "To export just a subdirectory, eg. C</files>, do:"
3736 msgstr ""
3737
3738 #. type: verbatim
3739 #: ../examples/guestfs-recipes.pod:71
3740 #, no-wrap
3741 msgid ""
3742 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3743 "\n"
3744 msgstr ""
3745
3746 #. type: =head1
3747 #: ../examples/guestfs-recipes.pod:73
3748 msgid "Create empty disk images"
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../examples/guestfs-recipes.pod:75
3753 msgid ""
3754 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3755 "The useful guide below explains the options available."
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../examples/guestfs-recipes.pod:78
3760 msgid ""
3761 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3762 "#content"
3763 msgstr ""
3764
3765 #. type: =head1
3766 #: ../examples/guestfs-recipes.pod:80
3767 msgid "Dump raw filesystem content from inside a disk image or VM"
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../examples/guestfs-recipes.pod:82
3772 msgid ""
3773 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3774 "filesystem content from any filesystem in a disk image or a VM (even one "
3775 "which is encrypted or buried inside an LV):"
3776 msgstr ""
3777
3778 #. type: verbatim
3779 #: ../examples/guestfs-recipes.pod:86
3780 #, fuzzy, no-wrap
3781 #| msgid ""
3782 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3783 #| "\n"
3784 msgid ""
3785 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3786 "\n"
3787 msgstr ""
3788 " guestfish --format=raw -a disk.img --format -a another.img\n"
3789 "\n"
3790
3791 #. type: verbatim
3792 #: ../examples/guestfs-recipes.pod:88
3793 #, no-wrap
3794 msgid ""
3795 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3796 "\n"
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../examples/guestfs-recipes.pod:90
3801 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3802 msgstr ""
3803
3804 #. type: =head1
3805 #: ../examples/guestfs-recipes.pod:92
3806 msgid "Edit grub configuration in a VM"
3807 msgstr ""
3808
3809 #. type: textblock
3810 #: ../examples/guestfs-recipes.pod:94
3811 msgid "You can use this to:"
3812 msgstr ""
3813
3814 #. type: textblock
3815 #: ../examples/guestfs-recipes.pod:100
3816 msgid "Fix a virtual machine that does not boot."
3817 msgstr ""
3818
3819 #. type: textblock
3820 #: ../examples/guestfs-recipes.pod:104
3821 msgid "Change which kernel is used to boot the VM."
3822 msgstr ""
3823
3824 #. type: textblock
3825 #: ../examples/guestfs-recipes.pod:108
3826 msgid "Change kernel command line options."
3827 msgstr ""
3828
3829 #. type: textblock
3830 #: ../examples/guestfs-recipes.pod:112
3831 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3832 msgstr ""
3833
3834 #. type: verbatim
3835 #: ../examples/guestfs-recipes.pod:114
3836 #, no-wrap
3837 msgid ""
3838 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3839 "\n"
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../examples/guestfs-recipes.pod:116
3844 msgid ""
3845 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3846 "this:"
3847 msgstr ""
3848
3849 #. type: verbatim
3850 #: ../examples/guestfs-recipes.pod:119
3851 #, no-wrap
3852 msgid ""
3853 " virt-rescue -d BrokenGuest\n"
3854 "\n"
3855 msgstr ""
3856
3857 #. type: =head1
3858 #: ../examples/guestfs-recipes.pod:121
3859 msgid "Export any directory from a VM"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../examples/guestfs-recipes.pod:123
3864 msgid ""
3865 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3866 msgstr ""
3867
3868 #. type: verbatim
3869 #: ../examples/guestfs-recipes.pod:126
3870 #, fuzzy, no-wrap
3871 #| msgid ""
3872 #| " copy-out /home .\n"
3873 #| "\n"
3874 msgid ""
3875 " virt-copy-out -d Guest /home .\n"
3876 "\n"
3877 msgstr ""
3878 " copy-out /home .\n"
3879 "\n"
3880
3881 #. type: textblock
3882 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3883 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1551
3884 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:11
3885 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
3886 #: ../src/guestfs-actions.pod:2882 ../src/guestfs.pod:1662
3887 #: ../tools/virt-win-reg.pl:706
3888 msgid "Notes:"
3889 msgstr "Нотатки:"
3890
3891 #. type: textblock
3892 #: ../examples/guestfs-recipes.pod:134
3893 msgid ""
3894 "The final dot of the command is not a printing error.  It means we want to "
3895 "copy out to the current directory."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../examples/guestfs-recipes.pod:139
3900 msgid "This creates a directory called C<home> under the current directory."
3901 msgstr ""
3902
3903 #. type: textblock
3904 #: ../examples/guestfs-recipes.pod:143
3905 msgid ""
3906 "If the guest is a Windows guest then you can use drive letters and "
3907 "backslashes, but you must prefix the path with C<win:> and quote it to "
3908 "protect it from the shell, like this:"
3909 msgstr ""
3910
3911 #. type: verbatim
3912 #: ../examples/guestfs-recipes.pod:147
3913 #, no-wrap
3914 msgid ""
3915 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: textblock
3920 #: ../examples/guestfs-recipes.pod:149
3921 msgid "To get the output as a compressed tarball, do:"
3922 msgstr ""
3923
3924 #. type: verbatim
3925 #: ../examples/guestfs-recipes.pod:151
3926 #, no-wrap
3927 msgid ""
3928 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3929 "\n"
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../examples/guestfs-recipes.pod:153
3934 msgid ""
3935 "Although it sounds tempting, this is usually not a reliable way to get a "
3936 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3937 "org/FAQ.html#backup"
3938 msgstr ""
3939
3940 #. type: =head1
3941 #: ../examples/guestfs-recipes.pod:157
3942 msgid "Find out which user is using the most space"
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../examples/guestfs-recipes.pod:159
3947 msgid ""
3948 "This simple script examines a Linux guest to find out which user is using "
3949 "the most space in their home directory:"
3950 msgstr ""
3951
3952 #. type: verbatim
3953 #: ../examples/guestfs-recipes.pod:162
3954 #, fuzzy, no-wrap
3955 #| msgid ""
3956 #| " #!/usr/bin/guestfish -f\n"
3957 #| "\n"
3958 msgid ""
3959 " #!/bin/sh -\n"
3960 " \n"
3961 msgstr ""
3962 " #!/usr/bin/guestfish -f\n"
3963 "\n"
3964
3965 #. type: verbatim
3966 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
3967 #, fuzzy, no-wrap
3968 #| msgid ""
3969 #| " set-qemu qemu\n"
3970 #| "\n"
3971 msgid ""
3972 " set -e\n"
3973 " \n"
3974 msgstr ""
3975 " set-qemu qemu\n"
3976 "\n"
3977
3978 #. type: verbatim
3979 #: ../examples/guestfs-recipes.pod:166
3980 #, no-wrap
3981 msgid ""
3982 " vm=\"$1\"\n"
3983 " dir=/home\n"
3984 " \n"
3985 msgstr ""
3986
3987 #. type: verbatim
3988 #: ../examples/guestfs-recipes.pod:169
3989 #, fuzzy, no-wrap
3990 #| msgid ""
3991 #| " guestfish --ro -d myguest -i\n"
3992 #| "\n"
3993 msgid ""
3994 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3995 " \n"
3996 msgstr ""
3997 " guestfish --ro -d myguest -i\n"
3998 "\n"
3999
4000 #. type: verbatim
4001 #: ../examples/guestfs-recipes.pod:171
4002 #, no-wrap
4003 msgid ""
4004 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4005 "     echo -n \"$dir/$d\"\n"
4006 "     echo -ne '\\t'\n"
4007 "     guestfish --remote du \"$dir/$d\";\n"
4008 " done | sort -nr -k 2\n"
4009 " \n"
4010 msgstr ""
4011
4012 #. type: verbatim
4013 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4014 #, no-wrap
4015 msgid ""
4016 " guestfish --remote exit\n"
4017 "\n"
4018 msgstr ""
4019
4020 #. type: =head1
4021 #: ../examples/guestfs-recipes.pod:179
4022 msgid "Get DHCP address from a VM"
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../examples/guestfs-recipes.pod:181
4027 msgid ""
4028 "The link below explains the many different possible techniques for getting "
4029 "the last assigned DHCP address of a virtual machine."
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../examples/guestfs-recipes.pod:184
4034 msgid ""
4035 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4036 "a-virtual-machine-disk-image/#content"
4037 msgstr ""
4038
4039 #. type: textblock
4040 #: ../examples/guestfs-recipes.pod:186
4041 msgid ""
4042 "In the libguestfs source examples directory you will find the latest version "
4043 "of the C<virt-dhcp-address.c> program."
4044 msgstr ""
4045
4046 #. type: =head1
4047 #: ../examples/guestfs-recipes.pod:189
4048 msgid "Get the operating system product name string"
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../examples/guestfs-recipes.pod:191
4053 msgid "Save the following script into a file called C<product-name.sh>:"
4054 msgstr ""
4055
4056 #. type: verbatim
4057 #: ../examples/guestfs-recipes.pod:193
4058 #, fuzzy, no-wrap
4059 #| msgid ""
4060 #| " eval \"`guestfish --listen`\"\n"
4061 #| " guestfish --remote add-ro disk.img\n"
4062 #| " guestfish --remote run\n"
4063 #| " guestfish --remote lvs\n"
4064 #| "\n"
4065 msgid ""
4066 " #!/bin/sh -\n"
4067 " set -e\n"
4068 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4069 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4070 " guestfish --remote inspect-get-product-name \"$root\"\n"
4071 " guestfish --remote exit\n"
4072 "\n"
4073 msgstr ""
4074 " eval \"`guestfish --listen`\"\n"
4075 " guestfish --remote add-ro disk.img\n"
4076 " guestfish --remote run\n"
4077 " guestfish --remote lvs\n"
4078 "\n"
4079
4080 #. type: textblock
4081 #: ../examples/guestfs-recipes.pod:200
4082 msgid "Make the script executable and run it on a named guest:"
4083 msgstr ""
4084
4085 #. type: verbatim
4086 #: ../examples/guestfs-recipes.pod:202
4087 #, no-wrap
4088 msgid ""
4089 " # product-name.sh RHEL60x64\n"
4090 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4091 "\n"
4092 msgstr ""
4093
4094 #. type: textblock
4095 #: ../examples/guestfs-recipes.pod:205
4096 msgid ""
4097 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4098 "C<xpath> command line tool or from your favourite programming language:"
4099 msgstr ""
4100
4101 #. type: verbatim
4102 #: ../examples/guestfs-recipes.pod:209
4103 #, no-wrap
4104 msgid ""
4105 " # virt-inspector RHEL60x64 > xml\n"
4106 " # xpath '//product_name' < xml\n"
4107 " Found 1 nodes:\n"
4108 " -- NODE --\n"
4109 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4110 "\n"
4111 msgstr ""
4112
4113 #. type: =head1
4114 #: ../examples/guestfs-recipes.pod:215
4115 msgid "Get the default boot kernel for a Linux VM"
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../examples/guestfs-recipes.pod:217
4120 msgid ""
4121 "The link below contains a program to print the default boot kernel for a "
4122 "Linux VM."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../examples/guestfs-recipes.pod:220
4127 msgid ""
4128 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4129 "kernel-for-a-vm/#content"
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../examples/guestfs-recipes.pod:222
4134 msgid ""
4135 "It uses Augeas, and the technique is generally applicable for many different "
4136 "tasks, such as:"
4137 msgstr ""
4138
4139 #. type: textblock
4140 #: ../examples/guestfs-recipes.pod:229
4141 msgid "listing the user accounts in the guest"
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../examples/guestfs-recipes.pod:233
4146 msgid "what repositories is it configured to use"
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../examples/guestfs-recipes.pod:237
4151 msgid "what NTP servers does it connect to"
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../examples/guestfs-recipes.pod:241
4156 msgid "what were the boot messages last time it booted"
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../examples/guestfs-recipes.pod:245
4161 msgid "listing who was logged in recently"
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../examples/guestfs-recipes.pod:249
4166 msgid "http://augeas.net/"
4167 msgstr ""
4168
4169 #. type: =head1
4170 #: ../examples/guestfs-recipes.pod:251
4171 msgid "Install RPMs in a guest"
4172 msgstr ""
4173
4174 #. type: textblock
4175 #: ../examples/guestfs-recipes.pod:253
4176 msgid ""
4177 "The link below contains a method to install RPMs in a guest.  In fact the "
4178 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4179 "installs them next time the guest is booted.  You could use this technique "
4180 "to install vital security updates in an offline guest."
4181 msgstr ""
4182
4183 #. type: textblock
4184 #: ../examples/guestfs-recipes.pod:259
4185 msgid ""
4186 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4187 msgstr ""
4188
4189 #. type: =head1
4190 #: ../examples/guestfs-recipes.pod:261
4191 msgid "List applications installed in a VM"
4192 msgstr ""
4193
4194 #. type: textblock
4195 #: ../examples/guestfs-recipes.pod:263
4196 msgid "Save the following to a file C<list-apps.sh>:"
4197 msgstr ""
4198
4199 #. type: verbatim
4200 #: ../examples/guestfs-recipes.pod:265
4201 #, fuzzy, no-wrap
4202 #| msgid ""
4203 #| " eval \"`guestfish --listen`\"\n"
4204 #| " guestfish --remote add-ro disk.img\n"
4205 #| " guestfish --remote run\n"
4206 #| " guestfish --remote lvs\n"
4207 #| "\n"
4208 msgid ""
4209 " #!/bin/sh -\n"
4210 " set -e\n"
4211 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4212 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4213 " guestfish --remote inspect-list-applications \"$root\"\n"
4214 " guestfish --remote exit\n"
4215 "\n"
4216 msgstr ""
4217 " eval \"`guestfish --listen`\"\n"
4218 " guestfish --remote add-ro disk.img\n"
4219 " guestfish --remote run\n"
4220 " guestfish --remote lvs\n"
4221 "\n"
4222
4223 #. type: textblock
4224 #: ../examples/guestfs-recipes.pod:272
4225 msgid ""
4226 "Make the file executable and then you can run it on any named virtual "
4227 "machine:"
4228 msgstr ""
4229
4230 #. type: verbatim
4231 #: ../examples/guestfs-recipes.pod:275
4232 #, no-wrap
4233 msgid ""
4234 " # list-apps.sh WinGuest\n"
4235 " [0] = {\n"
4236 "   app_name: Mozilla Firefox (3.6.12)\n"
4237 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4238 "   app_epoch: 0\n"
4239 "   app_version: 3.6.12 (en-GB)\n"
4240 "   app_release:\n"
4241 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4242 "   app_trans_path:\n"
4243 "   app_publisher: Mozilla\n"
4244 "   app_url: http://www.mozilla.com/en-GB/\n"
4245 "   app_source_package:\n"
4246 "   app_summary:\n"
4247 "   app_description: Mozilla Firefox\n"
4248 " }\n"
4249 " [1] = {\n"
4250 "   app_name: VLC media player\n"
4251 "   app_display_name: VLC media player 1.1.5\n"
4252 "   app_epoch: 0\n"
4253 "   app_version: 1.1.5\n"
4254 "   app_release:\n"
4255 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4256 "   app_trans_path:\n"
4257 "   app_publisher: VideoLAN\n"
4258 "   app_url: http://www.videolan.org/\n"
4259 "   app_source_package:\n"
4260 "   app_summary:\n"
4261 "   app_description:\n"
4262 " }\n"
4263 "\n"
4264 msgstr ""
4265
4266 #. type: textblock
4267 #: ../examples/guestfs-recipes.pod:305
4268 msgid ""
4269 "If you want to run the script on disk images (instead of libvirt virtual "
4270 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4271 ">."
4272 msgstr ""
4273
4274 #. type: =head1
4275 #: ../examples/guestfs-recipes.pod:309
4276 msgid "List files and directories in a VM"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../examples/guestfs-recipes.pod:311
4281 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4282 msgstr ""
4283
4284 #. type: verbatim
4285 #: ../examples/guestfs-recipes.pod:313
4286 #, fuzzy, no-wrap
4287 #| msgid ""
4288 #| " guestfish --ro -d myguest -i\n"
4289 #| "\n"
4290 msgid ""
4291 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4292 "\n"
4293 msgstr ""
4294 " guestfish --ro -d myguest -i\n"
4295 "\n"
4296
4297 #. type: =head1
4298 #: ../examples/guestfs-recipes.pod:315
4299 msgid "List services in a Windows VM"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../examples/guestfs-recipes.pod:317
4304 msgid ""
4305 "The link below contains a script that can be used to list out the services "
4306 "from a Windows VM, and whether those services run at boot time or are loaded "
4307 "on demand."
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../examples/guestfs-recipes.pod:321
4312 msgid ""
4313 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4314 "#content"
4315 msgstr ""
4316
4317 #. type: =head1
4318 #: ../examples/guestfs-recipes.pod:323
4319 msgid "Make a disk image sparse"
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../examples/guestfs-recipes.pod:325
4324 msgid ""
4325 "The link below contains some guides for making a disk image sparse (or "
4326 "reintroducing sparseness)."
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../examples/guestfs-recipes.pod:328
4331 msgid ""
4332 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../examples/guestfs-recipes.pod:330
4337 msgid "Monitor disk usage over time"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../examples/guestfs-recipes.pod:332
4342 msgid ""
4343 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4344 "The link below contains a guide."
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../examples/guestfs-recipes.pod:335
4349 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4350 msgstr ""
4351
4352 #. type: =head1
4353 #: ../examples/guestfs-recipes.pod:337
4354 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../examples/guestfs-recipes.pod:339
4359 msgid ""
4360 "L<guestfish(1)> plus the tools described in the link below can be used to "
4361 "read out the Windows Event Log from any virtual machine running Windows "
4362 "Vista or a later version."
4363 msgstr ""
4364
4365 #. type: textblock
4366 #: ../examples/guestfs-recipes.pod:343
4367 msgid ""
4368 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4369 "guestfish/#content"
4370 msgstr ""
4371
4372 #. type: =head1
4373 #: ../examples/guestfs-recipes.pod:345
4374 msgid "Remove root password (Linux)"
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../examples/guestfs-recipes.pod:347
4379 msgid ""
4380 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4381 "files.  One use is to remove the root password from a Linux guest:"
4382 msgstr ""
4383
4384 #. type: verbatim
4385 #: ../examples/guestfs-recipes.pod:350
4386 #, no-wrap
4387 msgid ""
4388 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4389 "\n"
4390 msgstr ""
4391
4392 #. type: =head1
4393 #: ../examples/guestfs-recipes.pod:352
4394 msgid "Remove Administrator password (Windows)"
4395 msgstr ""
4396
4397 #. type: textblock
4398 #: ../examples/guestfs-recipes.pod:354
4399 msgid ""
4400 "The link below contains one technique for removing the Administrator "
4401 "password from a Windows VM, or to be more precise, it gives you a command "
4402 "prompt the next time you log in which you can use to bypass any security:"
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../examples/guestfs-recipes.pod:359
4407 msgid ""
4408 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4409 "administrator-password-with-guestfish/"
4410 msgstr ""
4411
4412 #. type: =head1
4413 #: ../examples/guestfs-recipes.pod:361
4414 msgid "Unpack a live CD"
4415 msgstr ""
4416
4417 #. type: textblock
4418 #: ../examples/guestfs-recipes.pod:363
4419 msgid ""
4420 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4421 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4422 "layers, as outlined in the guide below."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../examples/guestfs-recipes.pod:367
4427 msgid ""
4428 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4429 "cd/#content"
4430 msgstr ""
4431
4432 #. type: =head1
4433 #: ../examples/guestfs-recipes.pod:369
4434 msgid "Uploading and downloading files"
4435 msgstr ""
4436
4437 #. type: textblock
4438 #: ../examples/guestfs-recipes.pod:371
4439 msgid ""
4440 "The link below contains general tips on uploading (copying in)  and "
4441 "downloading (copying out) files from VMs."
4442 msgstr ""
4443
4444 #. type: textblock
4445 #: ../examples/guestfs-recipes.pod:374
4446 msgid ""
4447 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4448 msgstr ""
4449
4450 #. type: =head1
4451 #: ../examples/guestfs-recipes.pod:376
4452 msgid "Use libguestfs tools on VMware ESX guests"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../examples/guestfs-recipes.pod:378
4457 msgid ""
4458 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4459 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../examples/guestfs-recipes.pod:382
4464 msgid ""
4465 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4466 "guests/#content"
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../examples/guestfs-recipes.pod:386
4471 #, fuzzy
4472 #| msgid ""
4473 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4474 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4475 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4476 msgid ""
4477 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4478 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4479 "(3)>, L<http://libguestfs.org/>."
4480 msgstr ""
4481 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4482 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4483 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4484
4485 #. type: textblock
4486 #: ../examples/guestfs-recipes.pod:402
4487 #, fuzzy
4488 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4489 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4490 msgstr "© Red Hat Inc., 2009–2010"
4491
4492 #. type: =head2
4493 #: ../fish/guestfish-actions.pod:1
4494 msgid "add-cdrom"
4495 msgstr ""
4496
4497 #. type: verbatim
4498 #: ../fish/guestfish-actions.pod:3
4499 #, no-wrap
4500 msgid ""
4501 " add-cdrom filename\n"
4502 "\n"
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4507 msgid "This function adds a virtual CD-ROM disk image to the guest."
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4512 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4513 msgstr ""
4514
4515 #. type: textblock
4516 #: ../fish/guestfish-actions.pod:15
4517 msgid ""
4518 "This call checks for the existence of C<filename>.  This stops you from "
4519 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4520 "and C<http:> URLs.  To specify those, use the general L</config> call "
4521 "instead."
4522 msgstr ""
4523
4524 #. type: textblock
4525 #: ../fish/guestfish-actions.pod:22
4526 msgid ""
4527 "If you just want to add an ISO file (often you use this as an efficient way "
4528 "to transfer large files into the guest), then you should probably use L</add-"
4529 "drive-ro> instead."
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4534 #: ../fish/guestfish-actions.pod:177
4535 msgid ""
4536 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
4537 "instead."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4542 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4543 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4544 #: ../fish/guestfish-actions.pod:3112 ../fish/guestfish-actions.pod:3319
4545 #: ../fish/guestfish-actions.pod:3433 ../fish/guestfish-actions.pod:3481
4546 #: ../fish/guestfish-actions.pod:4382 ../fish/guestfish-actions.pod:4405
4547 #: ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4465
4548 #: ../fish/guestfish-actions.pod:5114 ../fish/guestfish-actions.pod:5220
4549 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4550 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4551 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4552 #: ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4974
4553 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5282
4554 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6601
4555 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6693
4556 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7741
4557 #: ../src/guestfs-actions.pod:7919
4558 msgid ""
4559 "Deprecated functions will not be removed from the API, but the fact that "
4560 "they are deprecated indicates that there are problems with correct use of "
4561 "these functions."
4562 msgstr ""
4563
4564 #. type: =head2
4565 #: ../fish/guestfish-actions.pod:35
4566 msgid "add-domain"
4567 msgstr "add-domain"
4568
4569 #. type: =head2
4570 #: ../fish/guestfish-actions.pod:37
4571 msgid "domain"
4572 msgstr ""
4573
4574 #. type: verbatim
4575 #: ../fish/guestfish-actions.pod:39
4576 #, no-wrap
4577 msgid ""
4578 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4579 "\n"
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:41
4584 msgid ""
4585 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4586 "It works by connecting to libvirt, requesting the domain and domain XML from "
4587 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4592 msgid ""
4593 "The number of disks added is returned.  This operation is atomic: if an "
4594 "error is returned, then no disks are added."
4595 msgstr ""
4596
4597 #. type: textblock
4598 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4599 msgid ""
4600 "This function does some minimal checks to make sure the libvirt domain is "
4601 "not running (unless C<readonly> is true).  In a future version we will try "
4602 "to acquire the libvirt lock on each disk."
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4607 msgid ""
4608 "Disks must be accessible locally.  This often means that adding disks from a "
4609 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4610 "unless those disks are accessible via the same device path locally too."
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4615 msgid ""
4616 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4617 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4618 "libvirt URI (or one set through an environment variable, see the libvirt "
4619 "documentation for full details)."
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4624 msgid ""
4625 "The optional C<live> flag controls whether this call will try to connect to "
4626 "a running virtual machine C<guestfsd> process if it sees a suitable "
4627 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4628 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4629 "DAEMONS> for more information."
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4634 msgid ""
4635 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4636 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4637 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4638 "as usual."
4639 msgstr ""
4640
4641 #. type: textblock
4642 #: ../fish/guestfish-actions.pod:76
4643 msgid ""
4644 "The other optional parameters are passed directly through to L</add-drive-"
4645 "opts>."
4646 msgstr ""
4647
4648 #. type: textblock
4649 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4650 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1995
4651 #: ../fish/guestfish-actions.pod:3161 ../fish/guestfish-actions.pod:3334
4652 #: ../fish/guestfish-actions.pod:3469
4653 msgid ""
4654 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4655 msgstr ""
4656
4657 #. type: =head2
4658 #: ../fish/guestfish-actions.pod:81
4659 msgid "add-drive"
4660 msgstr "add-drive"
4661
4662 #. type: verbatim
4663 #: ../fish/guestfish-actions.pod:83
4664 #, no-wrap
4665 msgid ""
4666 " add-drive filename\n"
4667 "\n"
4668 msgstr ""
4669 " add-drive назва_файла\n"
4670 "\n"
4671
4672 #. type: textblock
4673 #: ../fish/guestfish-actions.pod:85
4674 msgid ""
4675 "This function is the equivalent of calling L</add-drive-opts> with no "
4676 "optional parameters, so the disk is added writable, with the format being "
4677 "detected automatically."
4678 msgstr ""
4679
4680 #. type: textblock
4681 #: ../fish/guestfish-actions.pod:89
4682 msgid ""
4683 "Automatic detection of the format opens you up to a potential security hole "
4684 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4685 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4686 "you should think about replacing calls to this function with calls to L</add-"
4687 "drive-opts>, and specifying the format."
4688 msgstr ""
4689
4690 #. type: =head2
4691 #: ../fish/guestfish-actions.pod:96
4692 msgid "add-drive-opts"
4693 msgstr "add-drive-opts"
4694
4695 #. type: =head2
4696 #: ../fish/guestfish-actions.pod:98
4697 msgid "add"
4698 msgstr "add"
4699
4700 #. type: verbatim
4701 #: ../fish/guestfish-actions.pod:100
4702 #, no-wrap
4703 msgid ""
4704 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4705 "\n"
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4710 msgid ""
4711 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4712 "The first time you call this function, the disk appears as C</dev/sda>, the "
4713 "second time as C</dev/sdb>, and so on."
4714 msgstr ""
4715
4716 #. type: textblock
4717 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4718 msgid ""
4719 "You don't necessarily need to be root when using libguestfs.  However you "
4720 "obviously do need sufficient permissions to access the filename for whatever "
4721 "operations you want to perform (ie. read access if you just want to read the "
4722 "image or write access if you want to modify the image)."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4727 msgid "This call checks that C<filename> exists."
4728 msgstr ""
4729
4730 #. type: textblock
4731 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3123
4732 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4682
4733 msgid "The optional arguments are:"
4734 msgstr ""
4735
4736 #. type: =item
4737 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4738 msgid "C<readonly>"
4739 msgstr "C<readonly>"
4740
4741 #. type: textblock
4742 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4743 msgid ""
4744 "If true then the image is treated as read-only.  Writes are still allowed, "
4745 "but they are stored in a temporary snapshot overlay which is discarded at "
4746 "the end.  The disk that you add is not modified."
4747 msgstr ""
4748
4749 #. type: =item
4750 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4751 msgid "C<format>"
4752 msgstr "C<format>"
4753
4754 #. type: textblock
4755 #: ../fish/guestfish-actions.pod:127
4756 msgid ""
4757 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4758 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4759 "include C<raw> and C<qcow2>."
4760 msgstr ""
4761
4762 #. type: textblock
4763 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4764 msgid ""
4765 "Automatic detection of the format opens you up to a potential security hole "
4766 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4767 "RHBZ#642934.  Specifying the format closes this security hole."
4768 msgstr ""
4769
4770 #. type: =item
4771 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4772 msgid "C<iface>"
4773 msgstr "C<iface>"
4774
4775 #. type: textblock
4776 #: ../fish/guestfish-actions.pod:138
4777 msgid ""
4778 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4779 "add-drive-with-if> call (q.v.)"
4780 msgstr ""
4781
4782 #. type: =head2
4783 #: ../fish/guestfish-actions.pod:145
4784 msgid "add-drive-ro"
4785 msgstr "add-drive-ro"
4786
4787 #. type: =head2
4788 #: ../fish/guestfish-actions.pod:147
4789 msgid "add-ro"
4790 msgstr "add-ro"
4791
4792 #. type: verbatim
4793 #: ../fish/guestfish-actions.pod:149
4794 #, no-wrap
4795 msgid ""
4796 " add-drive-ro filename\n"
4797 "\n"
4798 msgstr ""
4799
4800 #. type: textblock
4801 #: ../fish/guestfish-actions.pod:151
4802 msgid ""
4803 "This function is the equivalent of calling L</add-drive-opts> with the "
4804 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4805 "is added read-only, with the format being detected automatically."
4806 msgstr ""
4807
4808 #. type: =head2
4809 #: ../fish/guestfish-actions.pod:156
4810 msgid "add-drive-ro-with-if"
4811 msgstr ""
4812
4813 #. type: verbatim
4814 #: ../fish/guestfish-actions.pod:158
4815 #, no-wrap
4816 msgid ""
4817 " add-drive-ro-with-if filename iface\n"
4818 "\n"
4819 msgstr ""
4820
4821 #. type: textblock
4822 #: ../fish/guestfish-actions.pod:160
4823 msgid ""
4824 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4825 "interface emulation to use at run time."
4826 msgstr ""
4827
4828 #. type: =head2
4829 #: ../fish/guestfish-actions.pod:170
4830 msgid "add-drive-with-if"
4831 msgstr ""
4832
4833 #. type: verbatim
4834 #: ../fish/guestfish-actions.pod:172
4835 #, no-wrap
4836 msgid ""
4837 " add-drive-with-if filename iface\n"
4838 "\n"
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../fish/guestfish-actions.pod:174
4843 msgid ""
4844 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4845 "interface emulation to use at run time."
4846 msgstr ""
4847
4848 #. type: =head2
4849 #: ../fish/guestfish-actions.pod:184
4850 msgid "aug-clear"
4851 msgstr ""
4852
4853 #. type: verbatim
4854 #: ../fish/guestfish-actions.pod:186
4855 #, no-wrap
4856 msgid ""
4857 " aug-clear augpath\n"
4858 "\n"
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4863 msgid ""
4864 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4865 "L<augtool(1)> C<clear> command."
4866 msgstr ""
4867
4868 #. type: =head2
4869 #: ../fish/guestfish-actions.pod:191
4870 msgid "aug-close"
4871 msgstr ""
4872
4873 #. type: verbatim
4874 #: ../fish/guestfish-actions.pod:193
4875 #, no-wrap
4876 msgid ""
4877 " aug-close\n"
4878 "\n"
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../fish/guestfish-actions.pod:195
4883 msgid ""
4884 "Close the current Augeas handle and free up any resources used by it.  After "
4885 "calling this, you have to call L</aug-init> again before you can use any "
4886 "other Augeas functions."
4887 msgstr ""
4888
4889 #. type: =head2
4890 #: ../fish/guestfish-actions.pod:200
4891 msgid "aug-defnode"
4892 msgstr ""
4893
4894 #. type: verbatim
4895 #: ../fish/guestfish-actions.pod:202
4896 #, no-wrap
4897 msgid ""
4898 " aug-defnode name expr val\n"
4899 "\n"
4900 msgstr ""
4901
4902 #. type: textblock
4903 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4904 msgid ""
4905 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../fish/guestfish-actions.pod:207
4910 msgid ""
4911 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4912 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4913 "containing that single node."
4914 msgstr ""
4915
4916 #. type: textblock
4917 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4918 msgid ""
4919 "On success this returns a pair containing the number of nodes in the "
4920 "nodeset, and a boolean flag if a node was created."
4921 msgstr ""
4922
4923 #. type: =head2
4924 #: ../fish/guestfish-actions.pod:215
4925 msgid "aug-defvar"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../fish/guestfish-actions.pod:217
4930 #, no-wrap
4931 msgid ""
4932 " aug-defvar name expr\n"
4933 "\n"
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4938 msgid ""
4939 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4940 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4941 msgstr ""
4942
4943 #. type: textblock
4944 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4945 msgid ""
4946 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4947 "evaluates to something which is not a nodeset."
4948 msgstr ""
4949
4950 #. type: =head2
4951 #: ../fish/guestfish-actions.pod:226
4952 msgid "aug-get"
4953 msgstr ""
4954
4955 #. type: verbatim
4956 #: ../fish/guestfish-actions.pod:228
4957 #, no-wrap
4958 msgid ""
4959 " aug-get augpath\n"
4960 "\n"
4961 msgstr ""
4962
4963 #. type: textblock
4964 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4965 msgid ""
4966 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4967 "node, the C<value> is returned."
4968 msgstr ""
4969
4970 #. type: =head2
4971 #: ../fish/guestfish-actions.pod:233
4972 msgid "aug-init"
4973 msgstr ""
4974
4975 #. type: verbatim
4976 #: ../fish/guestfish-actions.pod:235
4977 #, no-wrap
4978 msgid ""
4979 " aug-init root flags\n"
4980 "\n"
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4985 msgid ""
4986 "Create a new Augeas handle for editing configuration files.  If there was "
4987 "any previous Augeas handle associated with this guestfs session, then it is "
4988 "closed."
4989 msgstr ""
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:241
4993 msgid "You must call this before using any other L</aug-*> commands."
4994 msgstr ""
4995
4996 #. type: textblock
4997 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4998 msgid ""
4999 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5000 msgstr ""
5001
5002 #. type: textblock
5003 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5004 msgid ""
5005 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5006 "logical I<or> of the following integers:"
5007 msgstr ""
5008
5009 #. type: =item
5010 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5011 msgid "C<AUG_SAVE_BACKUP> = 1"
5012 msgstr "C<AUG_SAVE_BACKUP> = 1"
5013
5014 #. type: textblock
5015 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5016 msgid "Keep the original file with a C<.augsave> extension."
5017 msgstr ""
5018
5019 #. type: =item
5020 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5021 msgid "C<AUG_SAVE_NEWFILE> = 2"
5022 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5023
5024 #. type: textblock
5025 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5026 msgid ""
5027 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5028 "original.  Overrides C<AUG_SAVE_BACKUP>."
5029 msgstr ""
5030
5031 #. type: =item
5032 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5033 msgid "C<AUG_TYPE_CHECK> = 4"
5034 msgstr "C<AUG_TYPE_CHECK> = 4"
5035
5036 #. type: textblock
5037 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5038 msgid "Typecheck lenses."
5039 msgstr ""
5040
5041 #. type: textblock
5042 #: ../fish/guestfish-actions.pod:266
5043 msgid ""
5044 "This option is only useful when debugging Augeas lenses.  Use of this option "
5045 "may require additional memory for the libguestfs appliance.  You may need to "
5046 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5047 msgstr ""
5048
5049 #. type: =item
5050 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5051 msgid "C<AUG_NO_STDINC> = 8"
5052 msgstr "C<AUG_NO_STDINC> = 8"
5053
5054 #. type: textblock
5055 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5056 msgid "Do not use standard load path for modules."
5057 msgstr ""
5058
5059 #. type: =item
5060 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5061 msgid "C<AUG_SAVE_NOOP> = 16"
5062 msgstr "C<AUG_SAVE_NOOP> = 16"
5063
5064 #. type: textblock
5065 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5066 msgid "Make save a no-op, just record what would have been changed."
5067 msgstr ""
5068
5069 #. type: =item
5070 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5071 msgid "C<AUG_NO_LOAD> = 32"
5072 msgstr "C<AUG_NO_LOAD> = 32"
5073
5074 #. type: textblock
5075 #: ../fish/guestfish-actions.pod:281
5076 msgid "Do not load the tree in L</aug-init>."
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../fish/guestfish-actions.pod:285
5081 msgid "To close the handle, you can call L</aug-close>."
5082 msgstr ""
5083
5084 #. type: textblock
5085 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5086 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5087 msgstr ""
5088
5089 #. type: =head2
5090 #: ../fish/guestfish-actions.pod:289
5091 msgid "aug-insert"
5092 msgstr ""
5093
5094 #. type: verbatim
5095 #: ../fish/guestfish-actions.pod:291
5096 #, no-wrap
5097 msgid ""
5098 " aug-insert augpath label true|false\n"
5099 "\n"
5100 msgstr ""
5101
5102 #. type: textblock
5103 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5104 msgid ""
5105 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5106 "or after C<path> (depending on the boolean flag C<before>)."
5107 msgstr ""
5108
5109 #. type: textblock
5110 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5111 msgid ""
5112 "C<path> must match exactly one existing node in the tree, and C<label> must "
5113 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5114 msgstr ""
5115
5116 #. type: =head2
5117 #: ../fish/guestfish-actions.pod:301
5118 msgid "aug-load"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../fish/guestfish-actions.pod:303
5123 #, no-wrap
5124 msgid ""
5125 " aug-load\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5131 msgid "Load files into the tree."
5132 msgstr "Завантажити файли до ієрархії."
5133
5134 #. type: textblock
5135 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5136 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5137 msgstr ""
5138
5139 #. type: =head2
5140 #: ../fish/guestfish-actions.pod:310
5141 msgid "aug-ls"
5142 msgstr ""
5143
5144 #. type: verbatim
5145 #: ../fish/guestfish-actions.pod:312
5146 #, no-wrap
5147 msgid ""
5148 " aug-ls augpath\n"
5149 "\n"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../fish/guestfish-actions.pod:314
5154 msgid ""
5155 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5156 "resulting nodes into alphabetical order."
5157 msgstr ""
5158
5159 #. type: =head2
5160 #: ../fish/guestfish-actions.pod:317
5161 msgid "aug-match"
5162 msgstr ""
5163
5164 #. type: verbatim
5165 #: ../fish/guestfish-actions.pod:319
5166 #, no-wrap
5167 msgid ""
5168 " aug-match augpath\n"
5169 "\n"
5170 msgstr ""
5171
5172 #. type: textblock
5173 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5174 msgid ""
5175 "Returns a list of paths which match the path expression C<path>.  The "
5176 "returned paths are sufficiently qualified so that they match exactly one "
5177 "node in the current tree."
5178 msgstr ""
5179
5180 #. type: =head2
5181 #: ../fish/guestfish-actions.pod:325
5182 msgid "aug-mv"
5183 msgstr ""
5184
5185 #. type: verbatim
5186 #: ../fish/guestfish-actions.pod:327
5187 #, no-wrap
5188 msgid ""
5189 " aug-mv src dest\n"
5190 "\n"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5195 msgid ""
5196 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5197 "C<dest> is overwritten if it exists."
5198 msgstr ""
5199
5200 #. type: =head2
5201 #: ../fish/guestfish-actions.pod:332
5202 msgid "aug-rm"
5203 msgstr ""
5204
5205 #. type: verbatim
5206 #: ../fish/guestfish-actions.pod:334
5207 #, no-wrap
5208 msgid ""
5209 " aug-rm augpath\n"
5210 "\n"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5215 msgid "Remove C<path> and all of its children."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5220 msgid "On success this returns the number of entries which were removed."
5221 msgstr ""
5222
5223 #. type: =head2
5224 #: ../fish/guestfish-actions.pod:340
5225 msgid "aug-save"
5226 msgstr ""
5227
5228 #. type: verbatim
5229 #: ../fish/guestfish-actions.pod:342
5230 #, no-wrap
5231 msgid ""
5232 " aug-save\n"
5233 "\n"
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5238 msgid "This writes all pending changes to disk."
5239 msgstr ""
5240
5241 #. type: textblock
5242 #: ../fish/guestfish-actions.pod:346
5243 msgid ""
5244 "The flags which were passed to L</aug-init> affect exactly how files are "
5245 "saved."
5246 msgstr ""
5247
5248 #. type: =head2
5249 #: ../fish/guestfish-actions.pod:349
5250 msgid "aug-set"
5251 msgstr ""
5252
5253 #. type: verbatim
5254 #: ../fish/guestfish-actions.pod:351
5255 #, no-wrap
5256 msgid ""
5257 " aug-set augpath val\n"
5258 "\n"
5259 msgstr ""
5260
5261 #. type: textblock
5262 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5263 msgid "Set the value associated with C<path> to C<val>."
5264 msgstr ""
5265
5266 #. type: textblock
5267 #: ../fish/guestfish-actions.pod:355
5268 msgid ""
5269 "In the Augeas API, it is possible to clear a node by setting the value to "
5270 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5271 "this call.  Instead you must use the L</aug-clear> call."
5272 msgstr ""
5273
5274 #. type: =head2
5275 #: ../fish/guestfish-actions.pod:360
5276 msgid "available"
5277 msgstr ""
5278
5279 #. type: verbatim
5280 #: ../fish/guestfish-actions.pod:362
5281 #, no-wrap
5282 msgid ""
5283 " available 'groups ...'\n"
5284 "\n"
5285 msgstr ""
5286
5287 #. type: textblock
5288 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5289 msgid ""
5290 "This command is used to check the availability of some groups of "
5291 "functionality in the appliance, which not all builds of the libguestfs "
5292 "appliance will be able to provide."
5293 msgstr ""
5294
5295 #. type: textblock
5296 #: ../fish/guestfish-actions.pod:368
5297 msgid ""
5298 "The libguestfs groups, and the functions that those groups correspond to, "
5299 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5300 "runtime by calling L</available-all-groups>."
5301 msgstr ""
5302
5303 #. type: textblock
5304 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5305 msgid ""
5306 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5307 "\"]> would check for the availability of the Linux inotify functions and "
5308 "Augeas (configuration file editing) functions."
5309 msgstr ""
5310
5311 #. type: textblock
5312 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5313 msgid "The command returns no error if I<all> requested groups are available."
5314 msgstr ""
5315
5316 #. type: textblock
5317 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5318 msgid ""
5319 "It fails with an error if one or more of the requested groups is unavailable "
5320 "in the appliance."
5321 msgstr ""
5322
5323 #. type: textblock
5324 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5325 msgid ""
5326 "If an unknown group name is included in the list of groups then an error is "
5327 "always returned."
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5332 msgid "I<Notes:>"
5333 msgstr "I<Нотатки:>"
5334
5335 #. type: textblock
5336 #: ../fish/guestfish-actions.pod:392
5337 msgid "You must call L</launch> before calling this function."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5342 msgid ""
5343 "The reason is because we don't know what groups are supported by the "
5344 "appliance/daemon until it is running and can be queried."
5345 msgstr ""
5346
5347 #. type: textblock
5348 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5349 msgid ""
5350 "If a group of functions is available, this does not necessarily mean that "
5351 "they will work.  You still have to check for errors when calling individual "
5352 "API functions even if they are available."
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5357 msgid ""
5358 "It is usually the job of distro packagers to build complete functionality "
5359 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5360 "with all requirements satisfied, will support everything."
5361 msgstr ""
5362
5363 #. type: textblock
5364 #: ../fish/guestfish-actions.pod:414
5365 msgid ""
5366 "This call was added in version C<1.0.80>.  In previous versions of "
5367 "libguestfs all you could do would be to speculatively execute a command to "
5368 "find out if the daemon implemented it.  See also L</version>."
5369 msgstr ""
5370
5371 #. type: =head2
5372 #: ../fish/guestfish-actions.pod:421
5373 msgid "available-all-groups"
5374 msgstr ""
5375
5376 #. type: verbatim
5377 #: ../fish/guestfish-actions.pod:423
5378 #, no-wrap
5379 msgid ""
5380 " available-all-groups\n"
5381 "\n"
5382 msgstr ""
5383
5384 #. type: textblock
5385 #: ../fish/guestfish-actions.pod:425
5386 msgid ""
5387 "This command returns a list of all optional groups that this daemon knows "
5388 "about.  Note this returns both supported and unsupported groups.  To find "
5389 "out which ones the daemon can actually support you have to call L</"
5390 "available> on each member of the returned list."
5391 msgstr ""
5392
5393 #. type: textblock
5394 #: ../fish/guestfish-actions.pod:431
5395 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5396 msgstr ""
5397
5398 #. type: =head2
5399 #: ../fish/guestfish-actions.pod:433
5400 msgid "base64-in"
5401 msgstr ""
5402
5403 #. type: verbatim
5404 #: ../fish/guestfish-actions.pod:435
5405 #, no-wrap
5406 msgid ""
5407 " base64-in (base64file|-) filename\n"
5408 "\n"
5409 msgstr ""
5410
5411 #. type: textblock
5412 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5413 msgid ""
5414 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5419 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5420 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5421 #: ../fish/guestfish-actions.pod:4685 ../fish/guestfish-actions.pod:4697
5422 #: ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4719
5423 #: ../fish/guestfish-actions.pod:4771 ../fish/guestfish-actions.pod:4780
5424 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4857
5425 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5426 msgstr ""
5427
5428 #. type: =head2
5429 #: ../fish/guestfish-actions.pod:442
5430 msgid "base64-out"
5431 msgstr ""
5432
5433 #. type: verbatim
5434 #: ../fish/guestfish-actions.pod:444
5435 #, no-wrap
5436 msgid ""
5437 " base64-out filename (base64file|-)\n"
5438 "\n"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5443 msgid ""
5444 "This command downloads the contents of C<filename>, writing it out to local "
5445 "file C<base64file> encoded as base64."
5446 msgstr ""
5447
5448 #. type: =head2
5449 #: ../fish/guestfish-actions.pod:451
5450 msgid "blockdev-flushbufs"
5451 msgstr ""
5452
5453 #. type: verbatim
5454 #: ../fish/guestfish-actions.pod:453
5455 #, no-wrap
5456 msgid ""
5457 " blockdev-flushbufs device\n"
5458 "\n"
5459 msgstr ""
5460
5461 #. type: textblock
5462 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5463 msgid ""
5464 "This tells the kernel to flush internal buffers associated with C<device>."
5465 msgstr ""
5466
5467 #. type: textblock
5468 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5469 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5470 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5471 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5472 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5473 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5474 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5475 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5476 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5477 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5478 msgid "This uses the L<blockdev(8)> command."
5479 msgstr ""
5480
5481 #. type: =head2
5482 #: ../fish/guestfish-actions.pod:460
5483 msgid "blockdev-getbsz"
5484 msgstr ""
5485
5486 #. type: verbatim
5487 #: ../fish/guestfish-actions.pod:462
5488 #, no-wrap
5489 msgid ""
5490 " blockdev-getbsz device\n"
5491 "\n"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5496 msgid "This returns the block size of a device."
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5501 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5502 msgid ""
5503 "(Note this is different from both I<size in blocks> and I<filesystem block "
5504 "size>)."
5505 msgstr ""
5506
5507 #. type: =head2
5508 #: ../fish/guestfish-actions.pod:471
5509 msgid "blockdev-getro"
5510 msgstr ""
5511
5512 #. type: verbatim
5513 #: ../fish/guestfish-actions.pod:473
5514 #, no-wrap
5515 msgid ""
5516 " blockdev-getro device\n"
5517 "\n"
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5522 msgid ""
5523 "Returns a boolean indicating if the block device is read-only (true if read-"
5524 "only, false if not)."
5525 msgstr ""
5526
5527 #. type: =head2
5528 #: ../fish/guestfish-actions.pod:480
5529 msgid "blockdev-getsize64"
5530 msgstr ""
5531
5532 #. type: verbatim
5533 #: ../fish/guestfish-actions.pod:482
5534 #, no-wrap
5535 msgid ""
5536 " blockdev-getsize64 device\n"
5537 "\n"
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5542 msgid "This returns the size of the device in bytes."
5543 msgstr ""
5544
5545 #. type: textblock
5546 #: ../fish/guestfish-actions.pod:486
5547 msgid "See also L</blockdev-getsz>."
5548 msgstr ""
5549
5550 #. type: =head2
5551 #: ../fish/guestfish-actions.pod:490
5552 msgid "blockdev-getss"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../fish/guestfish-actions.pod:492
5557 #, no-wrap
5558 msgid ""
5559 " blockdev-getss device\n"
5560 "\n"
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5565 msgid ""
5566 "This returns the size of sectors on a block device.  Usually 512, but can be "
5567 "larger for modern devices."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../fish/guestfish-actions.pod:497
5572 msgid ""
5573 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5574 msgstr ""
5575
5576 #. type: =head2
5577 #: ../fish/guestfish-actions.pod:502
5578 msgid "blockdev-getsz"
5579 msgstr ""
5580
5581 #. type: verbatim
5582 #: ../fish/guestfish-actions.pod:504
5583 #, no-wrap
5584 msgid ""
5585 " blockdev-getsz device\n"
5586 "\n"
5587 msgstr ""
5588
5589 #. type: textblock
5590 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5591 msgid ""
5592 "This returns the size of the device in units of 512-byte sectors (even if "
5593 "the sectorsize isn't 512 bytes ... weird)."
5594 msgstr ""
5595
5596 #. type: textblock
5597 #: ../fish/guestfish-actions.pod:509
5598 msgid ""
5599 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5600 "blockdev-getsize64> for the more useful I<size in bytes>."
5601 msgstr ""
5602
5603 #. type: =head2
5604 #: ../fish/guestfish-actions.pod:515
5605 msgid "blockdev-rereadpt"
5606 msgstr ""
5607
5608 #. type: verbatim
5609 #: ../fish/guestfish-actions.pod:517
5610 #, no-wrap
5611 msgid ""
5612 " blockdev-rereadpt device\n"
5613 "\n"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5618 msgid "Reread the partition table on C<device>."
5619 msgstr ""
5620
5621 #. type: =head2
5622 #: ../fish/guestfish-actions.pod:523
5623 msgid "blockdev-setbsz"
5624 msgstr ""
5625
5626 #. type: verbatim
5627 #: ../fish/guestfish-actions.pod:525
5628 #, no-wrap
5629 msgid ""
5630 " blockdev-setbsz device blocksize\n"
5631 "\n"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5636 msgid "This sets the block size of a device."
5637 msgstr ""
5638
5639 #. type: =head2
5640 #: ../fish/guestfish-actions.pod:534
5641 msgid "blockdev-setro"
5642 msgstr ""
5643
5644 #. type: verbatim
5645 #: ../fish/guestfish-actions.pod:536
5646 #, no-wrap
5647 msgid ""
5648 " blockdev-setro device\n"
5649 "\n"
5650 msgstr ""
5651
5652 #. type: textblock
5653 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5654 msgid "Sets the block device named C<device> to read-only."
5655 msgstr ""
5656
5657 #. type: =head2
5658 #: ../fish/guestfish-actions.pod:542
5659 msgid "blockdev-setrw"
5660 msgstr ""
5661
5662 #. type: verbatim
5663 #: ../fish/guestfish-actions.pod:544
5664 #, no-wrap
5665 msgid ""
5666 " blockdev-setrw device\n"
5667 "\n"
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5672 msgid "Sets the block device named C<device> to read-write."
5673 msgstr ""
5674
5675 #. type: =head2
5676 #: ../fish/guestfish-actions.pod:550
5677 msgid "btrfs-filesystem-resize"
5678 msgstr ""
5679
5680 #. type: verbatim
5681 #: ../fish/guestfish-actions.pod:552
5682 #, no-wrap
5683 msgid ""
5684 " btrfs-filesystem-resize mountpoint [size:..]\n"
5685 "\n"
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5690 msgid "This command resizes a btrfs filesystem."
5691 msgstr ""
5692
5693 #. type: textblock
5694 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5695 msgid ""
5696 "Note that unlike other resize calls, the filesystem has to be mounted and "
5697 "the parameter is the mountpoint not the device (this is a requirement of "
5698 "btrfs itself)."
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3444
5703 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5216
5704 msgid "The optional parameters are:"
5705 msgstr ""
5706
5707 #. type: =item
5708 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3448
5709 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5220
5710 msgid "C<size>"
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5715 msgid ""
5716 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5717 "resized to the maximum size."
5718 msgstr ""
5719
5720 #. type: textblock
5721 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5722 msgid "See also L<btrfs(8)>."
5723 msgstr ""
5724
5725 #. type: =head2
5726 #: ../fish/guestfish-actions.pod:575
5727 msgid "case-sensitive-path"
5728 msgstr ""
5729
5730 #. type: verbatim
5731 #: ../fish/guestfish-actions.pod:577
5732 #, no-wrap
5733 msgid ""
5734 " case-sensitive-path path\n"
5735 "\n"
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5740 msgid ""
5741 "This can be used to resolve case insensitive paths on a filesystem which is "
5742 "case sensitive.  The use case is to resolve paths which you have read from "
5743 "Windows configuration files or the Windows Registry, to the true path."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5748 msgid ""
5749 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5750 "(and probably others), which is that although the underlying filesystem is "
5751 "case-insensitive, the driver exports the filesystem to Linux as case-"
5752 "sensitive."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5757 msgid ""
5758 "One consequence of this is that special directories such as C<c:\\windows> "
5759 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5760 "precise details of how they were created.  In Windows itself this would not "
5761 "be a problem."
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5766 msgid ""
5767 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5768 "#posixfilenames1>"
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5773 msgid ""
5774 "This function resolves the true case of each element in the path and returns "
5775 "the case-sensitive path."
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../fish/guestfish-actions.pod:601
5780 msgid ""
5781 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5782 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5783 "the directories were originally created under Windows)."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5788 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../fish/guestfish-actions.pod:609
5793 msgid "See also L</realpath>."
5794 msgstr ""
5795
5796 #. type: =head2
5797 #: ../fish/guestfish-actions.pod:611
5798 msgid "cat"
5799 msgstr "cat"
5800
5801 #. type: verbatim
5802 #: ../fish/guestfish-actions.pod:613
5803 #, no-wrap
5804 msgid ""
5805 " cat path\n"
5806 "\n"
5807 msgstr ""
5808 " cat шлях\n"
5809 "\n"
5810
5811 #. type: textblock
5812 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3864
5813 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5859
5814 msgid "Return the contents of the file named C<path>."
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../fish/guestfish-actions.pod:617
5819 msgid ""
5820 "Note that this function cannot correctly handle binary files (specifically, "
5821 "files containing C<\\0> character which is treated as end of string).  For "
5822 "those you need to use the L</read-file> or L</download> functions which have "
5823 "a more complex interface."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5828 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5829 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5830 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5831 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5832 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
5833 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
5834 #: ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3749
5835 #: ../fish/guestfish-actions.pod:3825 ../fish/guestfish-actions.pod:3842
5836 #: ../fish/guestfish-actions.pod:3857 ../fish/guestfish-actions.pod:4526
5837 #: ../fish/guestfish-actions.pod:4572 ../fish/guestfish-actions.pod:4657
5838 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:5078
5839 #: ../fish/guestfish-actions.pod:5090 ../fish/guestfish-actions.pod:5108
5840 #: ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5135
5841 #: ../fish/guestfish-actions.pod:5192 ../fish/guestfish-actions.pod:5202
5842 #: ../fish/guestfish-actions.pod:5231 ../fish/guestfish-actions.pod:5241
5843 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5844 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5845 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5846 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5847 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5848 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
5849 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
5850 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
5851 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5824
5852 #: ../src/guestfs-actions.pod:5848 ../src/guestfs-actions.pod:6799
5853 #: ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000
5854 #: ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7689
5855 #: ../src/guestfs-actions.pod:7709 ../src/guestfs-actions.pod:7735
5856 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780
5857 #: ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893
5858 #: ../src/guestfs-actions.pod:7939 ../src/guestfs-actions.pod:7958
5859 msgid ""
5860 "Because of the message protocol, there is a transfer limit of somewhere "
5861 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5862 msgstr ""
5863
5864 #. type: =head2
5865 #: ../fish/guestfish-actions.pod:625
5866 msgid "checksum"
5867 msgstr "checksum"
5868
5869 #. type: verbatim
5870 #: ../fish/guestfish-actions.pod:627
5871 #, no-wrap
5872 msgid ""
5873 " checksum csumtype path\n"
5874 "\n"
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5879 msgid ""
5880 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5885 msgid ""
5886 "The type of checksum to compute is given by the C<csumtype> parameter which "
5887 "must have one of the following values:"
5888 msgstr ""
5889
5890 #. type: =item
5891 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5892 msgid "C<crc>"
5893 msgstr "C<crc>"
5894
5895 #. type: textblock
5896 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5897 msgid ""
5898 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5899 "C<cksum> command."
5900 msgstr ""
5901
5902 #. type: =item
5903 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5904 msgid "C<md5>"
5905 msgstr "C<md5>"
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5909 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5910 msgstr ""
5911
5912 #. type: =item
5913 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5914 msgid "C<sha1>"
5915 msgstr "C<sha1>"
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5919 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5920 msgstr ""
5921
5922 #. type: =item
5923 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5924 msgid "C<sha224>"
5925 msgstr "C<sha224>"
5926
5927 #. type: textblock
5928 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5929 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5930 msgstr ""
5931
5932 #. type: =item
5933 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5934 msgid "C<sha256>"
5935 msgstr "C<sha256>"
5936
5937 #. type: textblock
5938 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5939 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5940 msgstr ""
5941
5942 #. type: =item
5943 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5944 msgid "C<sha384>"
5945 msgstr "C<sha384>"
5946
5947 #. type: textblock
5948 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5949 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5950 msgstr ""
5951
5952 #. type: =item
5953 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5954 msgid "C<sha512>"
5955 msgstr "C<sha512>"
5956
5957 #. type: textblock
5958 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5959 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5964 msgid "The checksum is returned as a printable string."
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:670
5969 msgid "To get the checksum for a device, use L</checksum-device>."
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:672
5974 msgid "To get the checksums for many files, use L</checksums-out>."
5975 msgstr ""
5976
5977 #. type: =head2
5978 #: ../fish/guestfish-actions.pod:674
5979 msgid "checksum-device"
5980 msgstr "checksum-device"
5981
5982 #. type: verbatim
5983 #: ../fish/guestfish-actions.pod:676
5984 #, no-wrap
5985 msgid ""
5986 " checksum-device csumtype device\n"
5987 "\n"
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:678
5992 msgid ""
5993 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5994 "device named C<device>.  For the types of checksums supported see the L</"
5995 "checksum> command."
5996 msgstr ""
5997
5998 #. type: =head2
5999 #: ../fish/guestfish-actions.pod:682
6000 msgid "checksums-out"
6001 msgstr ""
6002
6003 #. type: verbatim
6004 #: ../fish/guestfish-actions.pod:684
6005 #, no-wrap
6006 msgid ""
6007 " checksums-out csumtype directory (sumsfile|-)\n"
6008 "\n"
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6013 msgid ""
6014 "This command computes the checksums of all regular files in C<directory> and "
6015 "then emits a list of those checksums to the local output file C<sumsfile>."
6016 msgstr ""
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6020 msgid ""
6021 "This can be used for verifying the integrity of a virtual machine.  However "
6022 "to be properly secure you should pay attention to the output of the checksum "
6023 "command (it uses the ones from GNU coreutils).  In particular when the "
6024 "filename is not printable, coreutils uses a special backslash syntax.  For "
6025 "more information, see the GNU coreutils info file."
6026 msgstr ""
6027
6028 #. type: =head2
6029 #: ../fish/guestfish-actions.pod:700
6030 msgid "chmod"
6031 msgstr "chmod"
6032
6033 #. type: verbatim
6034 #: ../fish/guestfish-actions.pod:702
6035 #, no-wrap
6036 msgid ""
6037 " chmod mode path\n"
6038 "\n"
6039 msgstr ""
6040
6041 #. type: textblock
6042 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6043 msgid ""
6044 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6045 "supported."
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6050 msgid ""
6051 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6052 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6053 "C<700>."
6054 msgstr ""
6055
6056 #. type: textblock
6057 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3087
6058 #: ../fish/guestfish-actions.pod:3226 ../fish/guestfish-actions.pod:3236
6059 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:1064
6060 #: ../src/guestfs-actions.pod:4613 ../src/guestfs-actions.pod:4822
6061 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4860
6062 msgid "The mode actually set is affected by the umask."
6063 msgstr ""
6064
6065 #. type: =head2
6066 #: ../fish/guestfish-actions.pod:713
6067 msgid "chown"
6068 msgstr "chown"
6069
6070 #. type: verbatim
6071 #: ../fish/guestfish-actions.pod:715
6072 #, no-wrap
6073 msgid ""
6074 " chown owner group path\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6080 msgid "Change the file owner to C<owner> and group to C<group>."
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2522
6085 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3684
6086 msgid ""
6087 "Only numeric uid and gid are supported.  If you want to use names, you will "
6088 "need to locate and parse the password file yourself (Augeas support makes "
6089 "this relatively easy)."
6090 msgstr ""
6091
6092 #. type: =head2
6093 #: ../fish/guestfish-actions.pod:723
6094 msgid "command"
6095 msgstr ""
6096
6097 #. type: verbatim
6098 #: ../fish/guestfish-actions.pod:725
6099 #, no-wrap
6100 msgid ""
6101 " command 'arguments ...'\n"
6102 "\n"
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6107 msgid ""
6108 "This call runs a command from the guest filesystem.  The filesystem must be "
6109 "mounted, and must contain a compatible operating system (ie. something "
6110 "Linux, with the same or compatible processor architecture)."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:732
6115 msgid ""
6116 "The single parameter is an argv-style list of arguments.  The first element "
6117 "is the name of the program to run.  Subsequent elements are parameters.  The "
6118 "list must be non-empty (ie. must contain a program name).  Note that the "
6119 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6124 msgid "The return value is anything printed to I<stdout> by the command."
6125 msgstr ""
6126
6127 #. type: textblock
6128 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6129 msgid ""
6130 "If the command returns a non-zero exit status, then this function returns an "
6131 "error message.  The error message string is the content of I<stderr> from "
6132 "the command."
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6137 msgid ""
6138 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6139 "bin>.  If you require a program from another location, you should provide "
6140 "the full path in the first parameter."
6141 msgstr ""
6142
6143 #. type: textblock
6144 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6145 msgid ""
6146 "Shared libraries and data files required by the program must be available on "
6147 "filesystems which are mounted in the correct places.  It is the caller's "
6148 "responsibility to ensure all filesystems that are needed are mounted at the "
6149 "right locations."
6150 msgstr ""
6151
6152 #. type: =head2
6153 #: ../fish/guestfish-actions.pod:760
6154 msgid "command-lines"
6155 msgstr ""
6156
6157 #. type: verbatim
6158 #: ../fish/guestfish-actions.pod:762
6159 #, no-wrap
6160 msgid ""
6161 " command-lines 'arguments ...'\n"
6162 "\n"
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:764
6167 msgid ""
6168 "This is the same as L</command>, but splits the result into a list of lines."
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:767
6173 msgid "See also: L</sh-lines>"
6174 msgstr ""
6175
6176 #. type: =head2
6177 #: ../fish/guestfish-actions.pod:772
6178 msgid "config"
6179 msgstr ""
6180
6181 #. type: verbatim
6182 #: ../fish/guestfish-actions.pod:774
6183 #, no-wrap
6184 msgid ""
6185 " config qemuparam qemuvalue\n"
6186 "\n"
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6191 msgid ""
6192 "This can be used to add arbitrary qemu command line parameters of the form "
6193 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6194 "setting some parameters which would interfere with parameters that we use."
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6199 msgid "The first character of C<param> string must be a C<-> (dash)."
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6204 msgid "C<value> can be NULL."
6205 msgstr ""
6206
6207 #. type: =head2
6208 #: ../fish/guestfish-actions.pod:785
6209 msgid "copy-size"
6210 msgstr ""
6211
6212 #. type: verbatim
6213 #: ../fish/guestfish-actions.pod:787
6214 #, no-wrap
6215 msgid ""
6216 " copy-size src dest size\n"
6217 "\n"
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6222 msgid ""
6223 "This command copies exactly C<size> bytes from one source device or file "
6224 "C<src> to another destination device or file C<dest>."
6225 msgstr ""
6226
6227 #. type: textblock
6228 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6229 msgid ""
6230 "Note this will fail if the source is too short or if the destination is not "
6231 "large enough."
6232 msgstr ""
6233
6234 #. type: =head2
6235 #: ../fish/guestfish-actions.pod:795
6236 msgid "cp"
6237 msgstr "cp"
6238
6239 #. type: verbatim
6240 #: ../fish/guestfish-actions.pod:797
6241 #, no-wrap
6242 msgid ""
6243 " cp src dest\n"
6244 "\n"
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6249 msgid ""
6250 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6251 "destination filename or destination directory."
6252 msgstr ""
6253
6254 #. type: =head2
6255 #: ../fish/guestfish-actions.pod:802
6256 msgid "cp-a"
6257 msgstr "cp-a"
6258
6259 #. type: verbatim
6260 #: ../fish/guestfish-actions.pod:804
6261 #, no-wrap
6262 msgid ""
6263 " cp-a src dest\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6269 msgid ""
6270 "This copies a file or directory from C<src> to C<dest> recursively using the "
6271 "C<cp -a> command."
6272 msgstr ""
6273
6274 #. type: =head2
6275 #: ../fish/guestfish-actions.pod:809
6276 msgid "dd"
6277 msgstr "dd"
6278
6279 #. type: verbatim
6280 #: ../fish/guestfish-actions.pod:811
6281 #, no-wrap
6282 msgid ""
6283 " dd src dest\n"
6284 "\n"
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6289 msgid ""
6290 "This command copies from one source device or file C<src> to another "
6291 "destination device or file C<dest>.  Normally you would use this to copy to "
6292 "or from a device or partition, for example to duplicate a filesystem."
6293 msgstr ""
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:818
6297 msgid ""
6298 "If the destination is a device, it must be as large or larger than the "
6299 "source file or device, otherwise the copy will fail.  This command cannot do "
6300 "partial copies (see L</copy-size>)."
6301 msgstr ""
6302
6303 #. type: =head2
6304 #: ../fish/guestfish-actions.pod:822
6305 msgid "df"
6306 msgstr "df"
6307
6308 #. type: verbatim
6309 #: ../fish/guestfish-actions.pod:824
6310 #, no-wrap
6311 msgid ""
6312 " df\n"
6313 "\n"
6314 msgstr ""
6315 " df\n"
6316 "\n"
6317
6318 #. type: textblock
6319 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6320 msgid "This command runs the C<df> command to report disk space used."
6321 msgstr ""
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6325 msgid ""
6326 "This command is mostly useful for interactive sessions.  It is I<not> "
6327 "intended that you try to parse the output string.  Use L</statvfs> from "
6328 "programs."
6329 msgstr ""
6330
6331 #. type: =head2
6332 #: ../fish/guestfish-actions.pod:832
6333 msgid "df-h"
6334 msgstr "df-h"
6335
6336 #. type: verbatim
6337 #: ../fish/guestfish-actions.pod:834
6338 #, no-wrap
6339 msgid ""
6340 " df-h\n"
6341 "\n"
6342 msgstr ""
6343 " df-h\n"
6344 "\n"
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6348 msgid ""
6349 "This command runs the C<df -h> command to report disk space used in human-"
6350 "readable format."
6351 msgstr ""
6352
6353 #. type: =head2
6354 #: ../fish/guestfish-actions.pod:843
6355 msgid "dmesg"
6356 msgstr "dmesg"
6357
6358 #. type: verbatim
6359 #: ../fish/guestfish-actions.pod:845
6360 #, no-wrap
6361 msgid ""
6362 " dmesg\n"
6363 "\n"
6364 msgstr ""
6365 " dmesg\n"
6366 "\n"
6367
6368 #. type: textblock
6369 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6370 msgid ""
6371 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6372 "This is sometimes useful for extended debugging of problems."
6373 msgstr ""
6374
6375 #. type: textblock
6376 #: ../fish/guestfish-actions.pod:851
6377 msgid ""
6378 "Another way to get the same information is to enable verbose messages with "
6379 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6380 "before running the program."
6381 msgstr ""
6382
6383 #. type: =head2
6384 #: ../fish/guestfish-actions.pod:856
6385 msgid "download"
6386 msgstr "download"
6387
6388 #. type: verbatim
6389 #: ../fish/guestfish-actions.pod:858
6390 #, no-wrap
6391 msgid ""
6392 " download remotefilename (filename|-)\n"
6393 "\n"
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6398 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6399 msgid ""
6400 "Download file C<remotefilename> and save it as C<filename> on the local "
6401 "machine."
6402 msgstr ""
6403
6404 #. type: textblock
6405 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4830
6406 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7259
6407 msgid "C<filename> can also be a named pipe."
6408 msgstr ""
6409
6410 #. type: textblock
6411 #: ../fish/guestfish-actions.pod:865
6412 msgid "See also L</upload>, L</cat>."
6413 msgstr ""
6414
6415 #. type: =head2
6416 #: ../fish/guestfish-actions.pod:869
6417 msgid "download-offset"
6418 msgstr "download-offset"
6419
6420 #. type: verbatim
6421 #: ../fish/guestfish-actions.pod:871
6422 #, no-wrap
6423 msgid ""
6424 " download-offset remotefilename (filename|-) offset size\n"
6425 "\n"
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6430 msgid ""
6431 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6432 "region must be within the file or device)."
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../fish/guestfish-actions.pod:879
6437 msgid ""
6438 "Note that there is no limit on the amount of data that can be downloaded "
6439 "with this call, unlike with L</pread>, and this call always reads the full "
6440 "amount unless an error occurs."
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:884
6445 msgid "See also L</download>, L</pread>."
6446 msgstr ""
6447
6448 #. type: =head2
6449 #: ../fish/guestfish-actions.pod:888
6450 msgid "drop-caches"
6451 msgstr ""
6452
6453 #. type: verbatim
6454 #: ../fish/guestfish-actions.pod:890
6455 #, no-wrap
6456 msgid ""
6457 " drop-caches whattodrop\n"
6458 "\n"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6463 msgid ""
6464 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6465 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6466 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6467 msgstr ""
6468
6469 #. type: textblock
6470 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6471 msgid "Setting C<whattodrop> to 3 should drop everything."
6472 msgstr ""
6473
6474 #. type: textblock
6475 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6476 msgid ""
6477 "This automatically calls L<sync(2)> before the operation, so that the "
6478 "maximum guest memory is freed."
6479 msgstr ""
6480
6481 #. type: =head2
6482 #: ../fish/guestfish-actions.pod:902
6483 msgid "du"
6484 msgstr "du"
6485
6486 #. type: verbatim
6487 #: ../fish/guestfish-actions.pod:904
6488 #, no-wrap
6489 msgid ""
6490 " du path\n"
6491 "\n"
6492 msgstr ""
6493 " du шлях\n"
6494 "\n"
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6498 msgid ""
6499 "This command runs the C<du -s> command to estimate file space usage for "
6500 "C<path>."
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6505 msgid ""
6506 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6507 "estimate includes the contents of the directory and all subdirectories "
6508 "(recursively)."
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6513 msgid ""
6514 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6515 msgstr ""
6516
6517 #. type: =head2
6518 #: ../fish/guestfish-actions.pod:916
6519 msgid "e2fsck-f"
6520 msgstr "e2fsck-f"
6521
6522 #. type: verbatim
6523 #: ../fish/guestfish-actions.pod:918
6524 #, no-wrap
6525 msgid ""
6526 " e2fsck-f device\n"
6527 "\n"
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6532 msgid ""
6533 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6534 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6535 "clean (I<-f>)."
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:924
6540 msgid ""
6541 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6542 "should use L</fsck>."
6543 msgstr ""
6544
6545 #. type: =head2
6546 #: ../fish/guestfish-actions.pod:927
6547 msgid "echo-daemon"
6548 msgstr ""
6549
6550 #. type: verbatim
6551 #: ../fish/guestfish-actions.pod:929
6552 #, no-wrap
6553 msgid ""
6554 " echo-daemon 'words ...'\n"
6555 "\n"
6556 msgstr ""
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6560 msgid ""
6561 "This command concatenates the list of C<words> passed with single spaces "
6562 "between them and returns the resulting string."
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6567 msgid "You can use this command to test the connection through to the daemon."
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../fish/guestfish-actions.pod:936
6572 msgid "See also L</ping-daemon>."
6573 msgstr ""
6574
6575 #. type: =head2
6576 #: ../fish/guestfish-actions.pod:938
6577 msgid "egrep"
6578 msgstr "egrep"
6579
6580 #. type: verbatim
6581 #: ../fish/guestfish-actions.pod:940
6582 #, no-wrap
6583 msgid ""
6584 " egrep regex path\n"
6585 "\n"
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6590 msgid ""
6591 "This calls the external C<egrep> program and returns the matching lines."
6592 msgstr ""
6593
6594 #. type: =head2
6595 #: ../fish/guestfish-actions.pod:948
6596 msgid "egrepi"
6597 msgstr "egrepi"
6598
6599 #. type: verbatim
6600 #: ../fish/guestfish-actions.pod:950
6601 #, no-wrap
6602 msgid ""
6603 " egrepi regex path\n"
6604 "\n"
6605 msgstr ""
6606
6607 #. type: textblock
6608 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6609 msgid ""
6610 "This calls the external C<egrep -i> program and returns the matching lines."
6611 msgstr ""
6612
6613 #. type: =head2
6614 #: ../fish/guestfish-actions.pod:958
6615 msgid "equal"
6616 msgstr "equal"
6617
6618 #. type: verbatim
6619 #: ../fish/guestfish-actions.pod:960
6620 #, no-wrap
6621 msgid ""
6622 " equal file1 file2\n"
6623 "\n"
6624 msgstr ""
6625 " equal файл1 файл2\n"
6626 "\n"
6627
6628 #. type: textblock
6629 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6630 msgid ""
6631 "This compares the two files C<file1> and C<file2> and returns true if their "
6632 "content is exactly equal, or false otherwise."
6633 msgstr ""
6634
6635 #. type: textblock
6636 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6637 msgid "The external L<cmp(1)> program is used for the comparison."
6638 msgstr ""
6639
6640 #. type: =head2
6641 #: ../fish/guestfish-actions.pod:967
6642 msgid "exists"
6643 msgstr "exists"
6644
6645 #. type: verbatim
6646 #: ../fish/guestfish-actions.pod:969
6647 #, no-wrap
6648 msgid ""
6649 " exists path\n"
6650 "\n"
6651 msgstr ""
6652 " exists шлях\n"
6653 "\n"
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6657 msgid ""
6658 "This returns C<true> if and only if there is a file, directory (or anything) "
6659 "with the given C<path> name."
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:974
6664 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6665 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6666
6667 #. type: =head2
6668 #: ../fish/guestfish-actions.pod:976
6669 msgid "fallocate"
6670 msgstr "fallocate"
6671
6672 #. type: verbatim
6673 #: ../fish/guestfish-actions.pod:978
6674 #, no-wrap
6675 msgid ""
6676 " fallocate path len\n"
6677 "\n"
6678 msgstr ""
6679 " fallocate шлях довжина\n"
6680 "\n"
6681
6682 #. type: textblock
6683 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6684 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6685 msgid ""
6686 "This command preallocates a file (containing zero bytes) named C<path> of "
6687 "size C<len> bytes.  If the file exists already, it is overwritten."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6692 msgid ""
6693 "Do not confuse this with the guestfish-specific C<alloc> command which "
6694 "allocates a file in the host and attaches it as a device."
6695 msgstr ""
6696
6697 #. type: textblock
6698 #: ../fish/guestfish-actions.pod:988
6699 msgid ""
6700 "This function is deprecated.  In new code, use the L</fallocate64> call "
6701 "instead."
6702 msgstr ""
6703
6704 #. type: =head2
6705 #: ../fish/guestfish-actions.pod:995
6706 msgid "fallocate64"
6707 msgstr "fallocate64"
6708
6709 #. type: verbatim
6710 #: ../fish/guestfish-actions.pod:997
6711 #, no-wrap
6712 msgid ""
6713 " fallocate64 path len\n"
6714 "\n"
6715 msgstr ""
6716 " fallocate64 шлях довжина\n"
6717 "\n"
6718
6719 #. type: textblock
6720 #: ../fish/guestfish-actions.pod:1003
6721 msgid ""
6722 "Note that this call allocates disk blocks for the file.  To create a sparse "
6723 "file use L</truncate-size> instead."
6724 msgstr ""
6725
6726 #. type: textblock
6727 #: ../fish/guestfish-actions.pod:1006
6728 msgid ""
6729 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6730 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6731 "maximum size of files created through that call to 1GB."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6736 msgid ""
6737 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6738 "commands which create a file in the host and attach it as a device."
6739 msgstr ""
6740
6741 #. type: =head2
6742 #: ../fish/guestfish-actions.pod:1015
6743 msgid "fgrep"
6744 msgstr "fgrep"
6745
6746 #. type: verbatim
6747 #: ../fish/guestfish-actions.pod:1017
6748 #, no-wrap
6749 msgid ""
6750 " fgrep pattern path\n"
6751 "\n"
6752 msgstr ""
6753 " fgrep шаблон шлях\n"
6754 "\n"
6755
6756 #. type: textblock
6757 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6758 msgid ""
6759 "This calls the external C<fgrep> program and returns the matching lines."
6760 msgstr ""
6761
6762 #. type: =head2
6763 #: ../fish/guestfish-actions.pod:1025
6764 msgid "fgrepi"
6765 msgstr "fgrepi"
6766
6767 #. type: verbatim
6768 #: ../fish/guestfish-actions.pod:1027
6769 #, no-wrap
6770 msgid ""
6771 " fgrepi pattern path\n"
6772 "\n"
6773 msgstr ""
6774 " fgrepi шаблон шлях\n"
6775 "\n"
6776
6777 #. type: textblock
6778 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6779 msgid ""
6780 "This calls the external C<fgrep -i> program and returns the matching lines."
6781 msgstr ""
6782
6783 #. type: =head2
6784 #: ../fish/guestfish-actions.pod:1035
6785 msgid "file"
6786 msgstr "file"
6787
6788 #. type: verbatim
6789 #: ../fish/guestfish-actions.pod:1037
6790 #, no-wrap
6791 msgid ""
6792 " file path\n"
6793 "\n"
6794 msgstr ""
6795 " file шлях\n"
6796 "\n"
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6800 msgid ""
6801 "This call uses the standard L<file(1)> command to determine the type or "
6802 "contents of the file."
6803 msgstr ""
6804
6805 #. type: textblock
6806 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6807 msgid ""
6808 "This call will also transparently look inside various types of compressed "
6809 "file."
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6814 msgid ""
6815 "The exact command which runs is C<file -zb path>.  Note in particular that "
6816 "the filename is not prepended to the output (the I<-b> option)."
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6821 msgid ""
6822 "The output depends on the output of the underlying L<file(1)> command and it "
6823 "can change in future in ways beyond our control.  In other words, the output "
6824 "is not guaranteed by the ABI."
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:1053
6829 msgid ""
6830 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6831 "(etc), L</is-zero>."
6832 msgstr ""
6833
6834 #. type: =head2
6835 #: ../fish/guestfish-actions.pod:1056
6836 msgid "file-architecture"
6837 msgstr "file-architecture"
6838
6839 #. type: verbatim
6840 #: ../fish/guestfish-actions.pod:1058
6841 #, no-wrap
6842 msgid ""
6843 " file-architecture filename\n"
6844 "\n"
6845 msgstr ""
6846 " file-architecture назва_файла\n"
6847 "\n"
6848
6849 #. type: textblock
6850 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6851 msgid ""
6852 "This detects the architecture of the binary C<filename>, and returns it if "
6853 "known."
6854 msgstr ""
6855
6856 #. type: textblock
6857 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6858 msgid "Currently defined architectures are:"
6859 msgstr ""
6860
6861 #. type: =item
6862 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6863 msgid "\"i386\""
6864 msgstr "\"i386\""
6865
6866 #. type: textblock
6867 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6868 msgid ""
6869 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6870 "irrespective of the precise processor requirements of the binary."
6871 msgstr ""
6872
6873 #. type: =item
6874 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6875 msgid "\"x86_64\""
6876 msgstr "\"x86_64\""
6877
6878 #. type: textblock
6879 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6880 msgid "64 bit x86-64."
6881 msgstr ""
6882
6883 #. type: =item
6884 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6885 msgid "\"sparc\""
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6890 msgid "32 bit SPARC."
6891 msgstr ""
6892
6893 #. type: =item
6894 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6895 msgid "\"sparc64\""
6896 msgstr ""
6897
6898 #. type: textblock
6899 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6900 msgid "64 bit SPARC V9 and above."
6901 msgstr ""
6902
6903 #. type: =item
6904 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6905 msgid "\"ia64\""
6906 msgstr "\"ia64\""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6910 msgid "Intel Itanium."
6911 msgstr "Intel Itanium."
6912
6913 #. type: =item
6914 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6915 msgid "\"ppc\""
6916 msgstr ""
6917
6918 #. type: textblock
6919 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6920 msgid "32 bit Power PC."
6921 msgstr ""
6922
6923 #. type: =item
6924 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6925 msgid "\"ppc64\""
6926 msgstr ""
6927
6928 #. type: textblock
6929 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6930 msgid "64 bit Power PC."
6931 msgstr ""
6932
6933 #. type: textblock
6934 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6935 msgid "Libguestfs may return other architecture strings in future."
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6940 msgid "The function works on at least the following types of files:"
6941 msgstr ""
6942
6943 #. type: textblock
6944 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6945 msgid "many types of Un*x and Linux binary"
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6950 msgid "many types of Un*x and Linux shared library"
6951 msgstr ""
6952
6953 #. type: textblock
6954 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6955 msgid "Windows Win32 and Win64 binaries"
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6960 msgid "Windows Win32 and Win64 DLLs"
6961 msgstr ""
6962
6963 #. type: textblock
6964 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6965 msgid "Win32 binaries and DLLs return C<i386>."
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6970 msgid "Win64 binaries and DLLs return C<x86_64>."
6971 msgstr ""
6972
6973 #. type: textblock
6974 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6975 msgid "Linux kernel modules"
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6980 msgid "Linux new-style initrd images"
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6985 msgid "some non-x86 Linux vmlinuz kernels"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6990 msgid "What it can't do currently:"
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6995 msgid "static libraries (libfoo.a)"
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
7000 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7001 msgstr ""
7002
7003 #. type: textblock
7004 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7005 msgid "x86 Linux vmlinuz kernels"
7006 msgstr ""
7007
7008 #. type: textblock
7009 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7010 msgid ""
7011 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7012 "compressed code, and are horribly hard to unpack.  If you want to find the "
7013 "architecture of a kernel, use the architecture of the associated initrd or "
7014 "kernel module(s) instead."
7015 msgstr ""
7016
7017 #. type: =head2
7018 #: ../fish/guestfish-actions.pod:1161
7019 msgid "filesize"
7020 msgstr "filesize"
7021
7022 #. type: verbatim
7023 #: ../fish/guestfish-actions.pod:1163
7024 #, no-wrap
7025 msgid ""
7026 " filesize file\n"
7027 "\n"
7028 msgstr ""
7029 " filesize файл\n"
7030 "\n"
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7034 msgid "This command returns the size of C<file> in bytes."
7035 msgstr ""
7036
7037 #. type: textblock
7038 #: ../fish/guestfish-actions.pod:1167
7039 msgid ""
7040 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7041 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7042 msgstr ""
7043
7044 #. type: =head2
7045 #: ../fish/guestfish-actions.pod:1171
7046 msgid "fill"
7047 msgstr "fill"
7048
7049 #. type: verbatim
7050 #: ../fish/guestfish-actions.pod:1173
7051 #, no-wrap
7052 msgid ""
7053 " fill c len path\n"
7054 "\n"
7055 msgstr ""
7056
7057 #. type: textblock
7058 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7059 msgid ""
7060 "This command creates a new file called C<path>.  The initial content of the "
7061 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7062 "[0..255]>."
7063 msgstr ""
7064
7065 #. type: textblock
7066 #: ../fish/guestfish-actions.pod:1179
7067 msgid ""
7068 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7069 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7070 "L</fill-pattern>."
7071 msgstr ""
7072
7073 #. type: =head2
7074 #: ../fish/guestfish-actions.pod:1184
7075 msgid "fill-pattern"
7076 msgstr "fill-pattern"
7077
7078 #. type: verbatim
7079 #: ../fish/guestfish-actions.pod:1186
7080 #, no-wrap
7081 msgid ""
7082 " fill-pattern pattern len path\n"
7083 "\n"
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:1188
7088 msgid ""
7089 "This function is like L</fill> except that it creates a new file of length "
7090 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7091 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7092 "bytes."
7093 msgstr ""
7094
7095 #. type: =head2
7096 #: ../fish/guestfish-actions.pod:1193
7097 msgid "find"
7098 msgstr "find"
7099
7100 #. type: verbatim
7101 #: ../fish/guestfish-actions.pod:1195
7102 #, no-wrap
7103 msgid ""
7104 " find directory\n"
7105 "\n"
7106 msgstr ""
7107 " find каталог\n"
7108 "\n"
7109
7110 #. type: textblock
7111 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7112 msgid ""
7113 "This command lists out all files and directories, recursively, starting at "
7114 "C<directory>.  It is essentially equivalent to running the shell command "
7115 "C<find directory -print> but some post-processing happens on the output, "
7116 "described below."
7117 msgstr ""
7118
7119 #. type: textblock
7120 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7121 msgid ""
7122 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7123 "structure was:"
7124 msgstr ""
7125
7126 #. type: verbatim
7127 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7128 #, no-wrap
7129 msgid ""
7130 " /tmp/a\n"
7131 " /tmp/b\n"
7132 " /tmp/c/d\n"
7133 "\n"
7134 msgstr ""
7135
7136 #. type: textblock
7137 #: ../fish/guestfish-actions.pod:1209
7138 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7139 msgstr ""
7140
7141 #. type: verbatim
7142 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7143 #, no-wrap
7144 msgid ""
7145 " a\n"
7146 " b\n"
7147 " c\n"
7148 " c/d\n"
7149 "\n"
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7154 msgid "If C<directory> is not a directory, then this command returns an error."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7159 msgid "The returned list is sorted."
7160 msgstr ""
7161
7162 #. type: textblock
7163 #: ../fish/guestfish-actions.pod:1222
7164 msgid "See also L</find0>."
7165 msgstr "Див. також L</find0>."
7166
7167 #. type: =head2
7168 #: ../fish/guestfish-actions.pod:1227
7169 msgid "find0"
7170 msgstr "find0"
7171
7172 #. type: verbatim
7173 #: ../fish/guestfish-actions.pod:1229
7174 #, no-wrap
7175 msgid ""
7176 " find0 directory (files|-)\n"
7177 "\n"
7178 msgstr ""
7179 " find0 каталог (файли|-)\n"
7180 "\n"
7181
7182 #. type: textblock
7183 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7184 msgid ""
7185 "This command lists out all files and directories, recursively, starting at "
7186 "C<directory>, placing the resulting list in the external file called "
7187 "C<files>."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:1235
7192 msgid ""
7193 "This command works the same way as L</find> with the following exceptions:"
7194 msgstr ""
7195
7196 #. type: textblock
7197 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7198 msgid "The resulting list is written to an external file."
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7203 msgid ""
7204 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7205 "L<find(1)> option I<-print0>."
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7210 msgid "This command is not limited in the number of names that it can return."
7211 msgstr ""
7212
7213 #. type: textblock
7214 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7215 msgid "The result list is not sorted."
7216 msgstr ""
7217
7218 #. type: =head2
7219 #: ../fish/guestfish-actions.pod:1262
7220 msgid "findfs-label"
7221 msgstr "findfs-label"
7222
7223 #. type: verbatim
7224 #: ../fish/guestfish-actions.pod:1264
7225 #, no-wrap
7226 msgid ""
7227 " findfs-label label\n"
7228 "\n"
7229 msgstr ""
7230 " findfs-label мітка\n"
7231 "\n"
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7235 msgid ""
7236 "This command searches the filesystems and returns the one which has the "
7237 "given label.  An error is returned if no such filesystem can be found."
7238 msgstr ""
7239
7240 #. type: textblock
7241 #: ../fish/guestfish-actions.pod:1270
7242 msgid "To find the label of a filesystem, use L</vfs-label>."
7243 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7244
7245 #. type: =head2
7246 #: ../fish/guestfish-actions.pod:1272
7247 msgid "findfs-uuid"
7248 msgstr "findfs-uuid"
7249
7250 #. type: verbatim
7251 #: ../fish/guestfish-actions.pod:1274
7252 #, no-wrap
7253 msgid ""
7254 " findfs-uuid uuid\n"
7255 "\n"
7256 msgstr ""
7257 " findfs-uuid uuid\n"
7258 "\n"
7259
7260 #. type: textblock
7261 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7262 msgid ""
7263 "This command searches the filesystems and returns the one which has the "
7264 "given UUID.  An error is returned if no such filesystem can be found."
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:1280
7269 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7270 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7271
7272 #. type: =head2
7273 #: ../fish/guestfish-actions.pod:1282
7274 msgid "fsck"
7275 msgstr "fsck"
7276
7277 #. type: verbatim
7278 #: ../fish/guestfish-actions.pod:1284
7279 #, no-wrap
7280 msgid ""
7281 " fsck fstype device\n"
7282 "\n"
7283 msgstr ""
7284 " fsck тип_файлової_системи пристрій\n"
7285 "\n"
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7289 msgid ""
7290 "This runs the filesystem checker (fsck) on C<device> which should have "
7291 "filesystem type C<fstype>."
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7296 msgid ""
7297 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7298 "codes from C<fsck>."
7299 msgstr ""
7300
7301 #. type: textblock
7302 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7303 msgid "Multiple status codes can be summed together."
7304 msgstr ""
7305
7306 #. type: textblock
7307 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7308 msgid ""
7309 "A non-zero return code can mean \"success\", for example if errors have been "
7310 "corrected on the filesystem."
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7315 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7316 msgstr ""
7317
7318 #. type: textblock
7319 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7320 msgid ""
7321 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7322 msgstr ""
7323
7324 #. type: =head2
7325 #: ../fish/guestfish-actions.pod:1314
7326 msgid "get-append"
7327 msgstr "get-append"
7328
7329 #. type: verbatim
7330 #: ../fish/guestfish-actions.pod:1316
7331 #, no-wrap
7332 msgid ""
7333 " get-append\n"
7334 "\n"
7335 msgstr ""
7336 " get-append\n"
7337 "\n"
7338
7339 #. type: textblock
7340 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7341 msgid ""
7342 "Return the additional kernel options which are added to the guest kernel "
7343 "command line."
7344 msgstr ""
7345
7346 #. type: textblock
7347 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7348 msgid "If C<NULL> then no options are added."
7349 msgstr ""
7350
7351 #. type: =head2
7352 #: ../fish/guestfish-actions.pod:1323
7353 msgid "get-attach-method"
7354 msgstr "get-attach-method"
7355
7356 #. type: verbatim
7357 #: ../fish/guestfish-actions.pod:1325
7358 #, no-wrap
7359 msgid ""
7360 " get-attach-method\n"
7361 "\n"
7362 msgstr ""
7363 " get-attach-method\n"
7364 "\n"
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:1327
7368 msgid "Return the current attach method.  See L</set-attach-method>."
7369 msgstr ""
7370
7371 #. type: =head2
7372 #: ../fish/guestfish-actions.pod:1329
7373 msgid "get-autosync"
7374 msgstr "get-autosync"
7375
7376 #. type: verbatim
7377 #: ../fish/guestfish-actions.pod:1331
7378 #, no-wrap
7379 msgid ""
7380 " get-autosync\n"
7381 "\n"
7382 msgstr ""
7383 " get-autosync\n"
7384 "\n"
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7388 msgid "Get the autosync flag."
7389 msgstr ""
7390
7391 #. type: =head2
7392 #: ../fish/guestfish-actions.pod:1335
7393 msgid "get-direct"
7394 msgstr "get-direct"
7395
7396 #. type: verbatim
7397 #: ../fish/guestfish-actions.pod:1337
7398 #, no-wrap
7399 msgid ""
7400 " get-direct\n"
7401 "\n"
7402 msgstr ""
7403 " get-direct\n"
7404 "\n"
7405
7406 #. type: textblock
7407 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7408 msgid "Return the direct appliance mode flag."
7409 msgstr ""
7410
7411 #. type: =head2
7412 #: ../fish/guestfish-actions.pod:1341
7413 msgid "get-e2label"
7414 msgstr "get-e2label"
7415
7416 #. type: verbatim
7417 #: ../fish/guestfish-actions.pod:1343
7418 #, no-wrap
7419 msgid ""
7420 " get-e2label device\n"
7421 "\n"
7422 msgstr ""
7423 " get-e2label пристрій\n"
7424 "\n"
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
7428 msgid ""
7429 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7430 msgstr ""
7431
7432 #. type: textblock
7433 #: ../fish/guestfish-actions.pod:1348
7434 msgid ""
7435 "This function is deprecated.  In new code, use the L</vfs_label> call "
7436 "instead."
7437 msgstr ""
7438
7439 #. type: =head2
7440 #: ../fish/guestfish-actions.pod:1355
7441 msgid "get-e2uuid"
7442 msgstr "get-e2uuid"
7443
7444 #. type: verbatim
7445 #: ../fish/guestfish-actions.pod:1357
7446 #, no-wrap
7447 msgid ""
7448 " get-e2uuid device\n"
7449 "\n"
7450 msgstr ""
7451 " get-e2uuid пристрій\n"
7452 "\n"
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
7456 msgid ""
7457 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7458 msgstr ""
7459
7460 #. type: textblock
7461 #: ../fish/guestfish-actions.pod:1362
7462 msgid ""
7463 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
7464 msgstr ""
7465
7466 #. type: =head2
7467 #: ../fish/guestfish-actions.pod:1369
7468 msgid "get-memsize"
7469 msgstr "get-memsize"
7470
7471 #. type: verbatim
7472 #: ../fish/guestfish-actions.pod:1371
7473 #, no-wrap
7474 msgid ""
7475 " get-memsize\n"
7476 "\n"
7477 msgstr ""
7478 " get-memsize\n"
7479 "\n"
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7483 msgid ""
7484 "This gets the memory size in megabytes allocated to the qemu subprocess."
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:1376
7489 msgid ""
7490 "If L</set-memsize> was not called on this handle, and if "
7491 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7492 "value for memsize."
7493 msgstr ""
7494
7495 #. type: textblock
7496 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7497 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4292
7498 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7499 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6446
7500 msgid ""
7501 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7502 msgstr ""
7503
7504 #. type: =head2
7505 #: ../fish/guestfish-actions.pod:1383
7506 msgid "get-network"
7507 msgstr "get-network"
7508
7509 #. type: verbatim
7510 #: ../fish/guestfish-actions.pod:1385
7511 #, no-wrap
7512 msgid ""
7513 " get-network\n"
7514 "\n"
7515 msgstr ""
7516 " get-network\n"
7517 "\n"
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7521 msgid "This returns the enable network flag."
7522 msgstr ""
7523
7524 #. type: =head2
7525 #: ../fish/guestfish-actions.pod:1389
7526 msgid "get-path"
7527 msgstr "get-path"
7528
7529 #. type: verbatim
7530 #: ../fish/guestfish-actions.pod:1391
7531 #, no-wrap
7532 msgid ""
7533 " get-path\n"
7534 "\n"
7535 msgstr ""
7536 " get-path\n"
7537 "\n"
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7541 msgid "Return the current search path."
7542 msgstr ""
7543
7544 #. type: textblock
7545 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7546 msgid ""
7547 "This is always non-NULL.  If it wasn't set already, then this will return "
7548 "the default path."
7549 msgstr ""
7550
7551 #. type: =head2
7552 #: ../fish/guestfish-actions.pod:1398
7553 msgid "get-pgroup"
7554 msgstr ""
7555
7556 #. type: verbatim
7557 #: ../fish/guestfish-actions.pod:1400
7558 #, no-wrap
7559 msgid ""
7560 " get-pgroup\n"
7561 "\n"
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7566 msgid "This returns the process group flag."
7567 msgstr ""
7568
7569 #. type: =head2
7570 #: ../fish/guestfish-actions.pod:1404
7571 msgid "get-pid"
7572 msgstr "get-pid"
7573
7574 #. type: =head2
7575 #: ../fish/guestfish-actions.pod:1406
7576 msgid "pid"
7577 msgstr ""
7578
7579 #. type: verbatim
7580 #: ../fish/guestfish-actions.pod:1408
7581 #, no-wrap
7582 msgid ""
7583 " get-pid\n"
7584 "\n"
7585 msgstr ""
7586 " get-pid\n"
7587 "\n"
7588
7589 #. type: textblock
7590 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7591 msgid ""
7592 "Return the process ID of the qemu subprocess.  If there is no qemu "
7593 "subprocess, then this will return an error."
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7598 msgid "This is an internal call used for debugging and testing."
7599 msgstr ""
7600
7601 #. type: =head2
7602 #: ../fish/guestfish-actions.pod:1415
7603 msgid "get-qemu"
7604 msgstr "get-qemu"
7605
7606 #. type: verbatim
7607 #: ../fish/guestfish-actions.pod:1417
7608 #, no-wrap
7609 msgid ""
7610 " get-qemu\n"
7611 "\n"
7612 msgstr ""
7613 " get-qemu\n"
7614 "\n"
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7618 msgid "Return the current qemu binary."
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7623 msgid ""
7624 "This is always non-NULL.  If it wasn't set already, then this will return "
7625 "the default qemu binary name."
7626 msgstr ""
7627
7628 #. type: =head2
7629 #: ../fish/guestfish-actions.pod:1424
7630 msgid "get-recovery-proc"
7631 msgstr "get-recovery-proc"
7632
7633 #. type: verbatim
7634 #: ../fish/guestfish-actions.pod:1426
7635 #, no-wrap
7636 msgid ""
7637 " get-recovery-proc\n"
7638 "\n"
7639 msgstr ""
7640 " get-recovery-proc\n"
7641 "\n"
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7645 msgid "Return the recovery process enabled flag."
7646 msgstr ""
7647
7648 #. type: =head2
7649 #: ../fish/guestfish-actions.pod:1430
7650 msgid "get-selinux"
7651 msgstr "get-selinux"
7652
7653 #. type: verbatim
7654 #: ../fish/guestfish-actions.pod:1432
7655 #, no-wrap
7656 msgid ""
7657 " get-selinux\n"
7658 "\n"
7659 msgstr ""
7660 " get-selinux\n"
7661 "\n"
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1434
7665 msgid ""
7666 "This returns the current setting of the selinux flag which is passed to the "
7667 "appliance at boot time.  See L</set-selinux>."
7668 msgstr ""
7669
7670 #. type: =head2
7671 #: ../fish/guestfish-actions.pod:1440
7672 msgid "get-state"
7673 msgstr "get-state"
7674
7675 #. type: verbatim
7676 #: ../fish/guestfish-actions.pod:1442
7677 #, no-wrap
7678 msgid ""
7679 " get-state\n"
7680 "\n"
7681 msgstr ""
7682 " get-state\n"
7683 "\n"
7684
7685 #. type: textblock
7686 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7687 msgid ""
7688 "This returns the current state as an opaque integer.  This is only useful "
7689 "for printing debug and internal error messages."
7690 msgstr ""
7691
7692 #. type: textblock
7693 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2389
7694 #: ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2445
7695 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:2159
7696 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3490
7697 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3578
7698 msgid "For more information on states, see L<guestfs(3)>."
7699 msgstr ""
7700
7701 #. type: =head2
7702 #: ../fish/guestfish-actions.pod:1449
7703 msgid "get-trace"
7704 msgstr "get-trace"
7705
7706 #. type: verbatim
7707 #: ../fish/guestfish-actions.pod:1451
7708 #, no-wrap
7709 msgid ""
7710 " get-trace\n"
7711 "\n"
7712 msgstr ""
7713 " get-trace\n"
7714 "\n"
7715
7716 #. type: textblock
7717 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7718 msgid "Return the command trace flag."
7719 msgstr ""
7720
7721 #. type: =head2
7722 #: ../fish/guestfish-actions.pod:1455
7723 msgid "get-umask"
7724 msgstr "get-umask"
7725
7726 #. type: verbatim
7727 #: ../fish/guestfish-actions.pod:1457
7728 #, no-wrap
7729 msgid ""
7730 " get-umask\n"
7731 "\n"
7732 msgstr ""
7733 " get-umask\n"
7734 "\n"
7735
7736 #. type: textblock
7737 #: ../fish/guestfish-actions.pod:1459
7738 msgid ""
7739 "Return the current umask.  By default the umask is C<022> unless it has been "
7740 "set by calling L</umask>."
7741 msgstr ""
7742
7743 #. type: =head2
7744 #: ../fish/guestfish-actions.pod:1462
7745 msgid "get-verbose"
7746 msgstr "get-verbose"
7747
7748 #. type: verbatim
7749 #: ../fish/guestfish-actions.pod:1464
7750 #, no-wrap
7751 msgid ""
7752 " get-verbose\n"
7753 "\n"
7754 msgstr ""
7755 " get-verbose\n"
7756 "\n"
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7760 msgid "This returns the verbose messages flag."
7761 msgstr ""
7762
7763 #. type: =head2
7764 #: ../fish/guestfish-actions.pod:1468
7765 msgid "getcon"
7766 msgstr "getcon"
7767
7768 #. type: verbatim
7769 #: ../fish/guestfish-actions.pod:1470
7770 #, no-wrap
7771 msgid ""
7772 " getcon\n"
7773 "\n"
7774 msgstr ""
7775 " getcon\n"
7776 "\n"
7777
7778 #. type: textblock
7779 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7780 msgid "This gets the SELinux security context of the daemon."
7781 msgstr ""
7782
7783 #. type: textblock
7784 #: ../fish/guestfish-actions.pod:1474
7785 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7786 msgstr ""
7787
7788 #. type: =head2
7789 #: ../fish/guestfish-actions.pod:1477
7790 msgid "getxattr"
7791 msgstr "getxattr"
7792
7793 #. type: verbatim
7794 #: ../fish/guestfish-actions.pod:1479
7795 #, no-wrap
7796 msgid ""
7797 " getxattr path name\n"
7798 "\n"
7799 msgstr ""
7800 " getxattr шлях назва\n"
7801 "\n"
7802
7803 #. type: textblock
7804 #: ../fish/guestfish-actions.pod:1481
7805 msgid ""
7806 "Get a single extended attribute from file C<path> named C<name>.  This call "
7807 "follows symlinks.  If you want to lookup an extended attribute for the "
7808 "symlink itself, use L</lgetxattr>."
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2534
7813 msgid ""
7814 "Normally it is better to get all extended attributes from a file in one go "
7815 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7816 "buggy and do not provide a way to list out attributes.  For these "
7817 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7818 "attributes you want in advance and call this function."
7819 msgstr ""
7820
7821 #. type: textblock
7822 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2541
7823 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3711
7824 msgid ""
7825 "Extended attribute values are blobs of binary data.  If there is no extended "
7826 "attribute named C<name>, this returns an error."
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1495
7831 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7832 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7833
7834 #. type: =head2
7835 #: ../fish/guestfish-actions.pod:1497
7836 msgid "getxattrs"
7837 msgstr "getxattrs"
7838
7839 #. type: verbatim
7840 #: ../fish/guestfish-actions.pod:1499
7841 #, no-wrap
7842 msgid ""
7843 " getxattrs path\n"
7844 "\n"
7845 msgstr ""
7846 " getxattrs шлях\n"
7847 "\n"
7848
7849 #. type: textblock
7850 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7851 msgid ""
7852 "This call lists the extended attributes of the file or directory C<path>."
7853 msgstr ""
7854
7855 #. type: textblock
7856 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7857 msgid ""
7858 "At the system call level, this is a combination of the L<listxattr(2)> and "
7859 "L<getxattr(2)> calls."
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../fish/guestfish-actions.pod:1507
7864 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7865 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7866
7867 #. type: =head2
7868 #: ../fish/guestfish-actions.pod:1509
7869 msgid "glob-expand"
7870 msgstr "glob-expand"
7871
7872 #. type: verbatim
7873 #: ../fish/guestfish-actions.pod:1511
7874 #, no-wrap
7875 msgid ""
7876 " glob-expand pattern\n"
7877 "\n"
7878 msgstr ""
7879 " glob-expand шаблон\n"
7880 "\n"
7881
7882 #. type: textblock
7883 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7884 msgid ""
7885 "This command searches for all the pathnames matching C<pattern> according to "
7886 "the wildcard expansion rules used by the shell."
7887 msgstr ""
7888
7889 #. type: textblock
7890 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7891 msgid ""
7892 "If no paths match, then this returns an empty list (note: not an error)."
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7897 msgid ""
7898 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7899 "GLOB_BRACE>.  See that manual page for more details."
7900 msgstr ""
7901
7902 #. type: =head2
7903 #: ../fish/guestfish-actions.pod:1524
7904 msgid "grep"
7905 msgstr "grep"
7906
7907 #. type: verbatim
7908 #: ../fish/guestfish-actions.pod:1526
7909 #, no-wrap
7910 msgid ""
7911 " grep regex path\n"
7912 "\n"
7913 msgstr ""
7914 " grepi формальний_вираз шлях\n"
7915 "\n"
7916
7917 #. type: textblock
7918 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7919 msgid "This calls the external C<grep> program and returns the matching lines."
7920 msgstr ""
7921
7922 #. type: =head2
7923 #: ../fish/guestfish-actions.pod:1534
7924 msgid "grepi"
7925 msgstr "grepi"
7926
7927 #. type: verbatim
7928 #: ../fish/guestfish-actions.pod:1536
7929 #, no-wrap
7930 msgid ""
7931 " grepi regex path\n"
7932 "\n"
7933 msgstr ""
7934 " grepi формальний_вираз шлях\n"
7935 "\n"
7936
7937 #. type: textblock
7938 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7939 msgid ""
7940 "This calls the external C<grep -i> program and returns the matching lines."
7941 msgstr ""
7942
7943 #. type: =head2
7944 #: ../fish/guestfish-actions.pod:1544
7945 msgid "grub-install"
7946 msgstr "grub-install"
7947
7948 #. type: verbatim
7949 #: ../fish/guestfish-actions.pod:1546
7950 #, no-wrap
7951 msgid ""
7952 " grub-install root device\n"
7953 "\n"
7954 msgstr ""
7955 " grub-install кореневий пристрій\n"
7956 "\n"
7957
7958 #. type: textblock
7959 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7960 msgid ""
7961 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7962 "with the root directory being C<root>."
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
7967 msgid ""
7968 "There is currently no way in the API to install grub2, which is used by most "
7969 "modern Linux guests.  It is possible to run the grub2 command from the "
7970 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
7975 msgid ""
7976 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7977 "compatible with itself, so this only works in rather narrow circumstances.  "
7978 "Careful testing with each guest version is advisable."
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
7983 msgid ""
7984 "If grub-install reports the error \"No suitable drive was found in the "
7985 "generated device map.\" it may be that you need to create a C</boot/grub/"
7986 "device.map> file first that contains the mapping between grub device names "
7987 "and Linux device names.  It is usually sufficient to create a file "
7988 "containing:"
7989 msgstr ""
7990
7991 #. type: verbatim
7992 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
7993 #, no-wrap
7994 msgid ""
7995 " (hd0) /dev/vda\n"
7996 "\n"
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
8001 msgid "replacing C</dev/vda> with the name of the installation device."
8002 msgstr ""
8003
8004 #. type: =head2
8005 #: ../fish/guestfish-actions.pod:1584
8006 msgid "head"
8007 msgstr "head"
8008
8009 #. type: verbatim
8010 #: ../fish/guestfish-actions.pod:1586
8011 #, no-wrap
8012 msgid ""
8013 " head path\n"
8014 "\n"
8015 msgstr ""
8016 " head шлях\n"
8017 "\n"
8018
8019 #. type: textblock
8020 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
8021 msgid ""
8022 "This command returns up to the first 10 lines of a file as a list of strings."
8023 msgstr ""
8024
8025 #. type: =head2
8026 #: ../fish/guestfish-actions.pod:1594
8027 msgid "head-n"
8028 msgstr "head-n"
8029
8030 #. type: verbatim
8031 #: ../fish/guestfish-actions.pod:1596
8032 #, no-wrap
8033 msgid ""
8034 " head-n nrlines path\n"
8035 "\n"
8036 msgstr ""
8037
8038 #. type: textblock
8039 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
8040 msgid ""
8041 "If the parameter C<nrlines> is a positive number, this returns the first "
8042 "C<nrlines> lines of the file C<path>."
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
8047 msgid ""
8048 "If the parameter C<nrlines> is a negative number, this returns lines from "
8049 "the file C<path>, excluding the last C<nrlines> lines."
8050 msgstr ""
8051
8052 #. type: textblock
8053 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4670
8054 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7018
8055 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8056 msgstr ""
8057
8058 #. type: =head2
8059 #: ../fish/guestfish-actions.pod:1609
8060 msgid "hexdump"
8061 msgstr "hexdump"
8062
8063 #. type: verbatim
8064 #: ../fish/guestfish-actions.pod:1611
8065 #, no-wrap
8066 msgid ""
8067 " hexdump path\n"
8068 "\n"
8069 msgstr ""
8070 " hexdump шлях\n"
8071 "\n"
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
8075 msgid ""
8076 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8077 "readable, canonical hex dump of the file."
8078 msgstr ""
8079
8080 #. type: =head2
8081 #: ../fish/guestfish-actions.pod:1619
8082 msgid "initrd-cat"
8083 msgstr "initrd-cat"
8084
8085 #. type: verbatim
8086 #: ../fish/guestfish-actions.pod:1621
8087 #, no-wrap
8088 msgid ""
8089 " initrd-cat initrdpath filename\n"
8090 "\n"
8091 msgstr ""
8092 " initrd-cat шлях_initrd назва_файла\n"
8093 "\n"
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
8097 msgid ""
8098 "This command unpacks the file C<filename> from the initrd file called "
8099 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8100 "character."
8101 msgstr ""
8102
8103 #. type: textblock
8104 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
8105 msgid ""
8106 "For example, in guestfish you could use the following command to examine the "
8107 "boot script (usually called C</init>)  contained in a Linux initrd or "
8108 "initramfs image:"
8109 msgstr ""
8110
8111 #. type: verbatim
8112 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
8113 #, no-wrap
8114 msgid ""
8115 " initrd-cat /boot/initrd-<version>.img init\n"
8116 "\n"
8117 msgstr ""
8118
8119 #. type: textblock
8120 #: ../fish/guestfish-actions.pod:1633
8121 msgid "See also L</initrd-list>."
8122 msgstr "Див. також L</initrd-list>."
8123
8124 #. type: =head2
8125 #: ../fish/guestfish-actions.pod:1638
8126 msgid "initrd-list"
8127 msgstr "initrd-list"
8128
8129 #. type: verbatim
8130 #: ../fish/guestfish-actions.pod:1640
8131 #, no-wrap
8132 msgid ""
8133 " initrd-list path\n"
8134 "\n"
8135 msgstr ""
8136 " initrd-list шлях\n"
8137 "\n"
8138
8139 #. type: textblock
8140 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
8141 msgid "This command lists out files contained in an initrd."
8142 msgstr ""
8143
8144 #. type: textblock
8145 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
8146 msgid ""
8147 "The files are listed without any initial C</> character.  The files are "
8148 "listed in the order they appear (not necessarily alphabetical).  Directory "
8149 "names are listed as separate items."
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
8154 msgid ""
8155 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8156 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8157 "files)."
8158 msgstr ""
8159
8160 #. type: =head2
8161 #: ../fish/guestfish-actions.pod:1652
8162 msgid "inotify-add-watch"
8163 msgstr "inotify-add-watch"
8164
8165 #. type: verbatim
8166 #: ../fish/guestfish-actions.pod:1654
8167 #, no-wrap
8168 msgid ""
8169 " inotify-add-watch path mask\n"
8170 "\n"
8171 msgstr ""
8172 " inotify-add-watch шлях маска\n"
8173 "\n"
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
8177 msgid "Watch C<path> for the events listed in C<mask>."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
8182 msgid ""
8183 "Note that if C<path> is a directory then events within that directory are "
8184 "watched, but this does I<not> happen recursively (in subdirectories)."
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
8189 msgid ""
8190 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8191 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8192 msgstr ""
8193
8194 #. type: =head2
8195 #: ../fish/guestfish-actions.pod:1666
8196 msgid "inotify-close"
8197 msgstr "inotify-close"
8198
8199 #. type: verbatim
8200 #: ../fish/guestfish-actions.pod:1668
8201 #, no-wrap
8202 msgid ""
8203 " inotify-close\n"
8204 "\n"
8205 msgstr ""
8206 " inotify-close\n"
8207 "\n"
8208
8209 #. type: textblock
8210 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
8211 msgid ""
8212 "This closes the inotify handle which was previously opened by inotify_init.  "
8213 "It removes all watches, throws away any pending events, and deallocates all "
8214 "resources."
8215 msgstr ""
8216
8217 #. type: =head2
8218 #: ../fish/guestfish-actions.pod:1674
8219 msgid "inotify-files"
8220 msgstr "inotify-files"
8221
8222 #. type: verbatim
8223 #: ../fish/guestfish-actions.pod:1676
8224 #, no-wrap
8225 msgid ""
8226 " inotify-files\n"
8227 "\n"
8228 msgstr ""
8229 " inotify-files\n"
8230 "\n"
8231
8232 #. type: textblock
8233 #: ../fish/guestfish-actions.pod:1678
8234 msgid ""
8235 "This function is a helpful wrapper around L</inotify-read> which just "
8236 "returns a list of pathnames of objects that were touched.  The returned "
8237 "pathnames are sorted and deduplicated."
8238 msgstr ""
8239
8240 #. type: =head2
8241 #: ../fish/guestfish-actions.pod:1682
8242 msgid "inotify-init"
8243 msgstr "inotify-init"
8244
8245 #. type: verbatim
8246 #: ../fish/guestfish-actions.pod:1684
8247 #, no-wrap
8248 msgid ""
8249 " inotify-init maxevents\n"
8250 "\n"
8251 msgstr ""
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
8255 msgid ""
8256 "This command creates a new inotify handle.  The inotify subsystem can be "
8257 "used to notify events which happen to objects in the guest filesystem."
8258 msgstr ""
8259
8260 #. type: textblock
8261 #: ../fish/guestfish-actions.pod:1690
8262 msgid ""
8263 "C<maxevents> is the maximum number of events which will be queued up between "
8264 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8265 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8266 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8267 "but records the fact that it threw them away by setting a flag "
8268 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8269 msgstr ""
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:1700
8273 msgid ""
8274 "Before any events are generated, you have to add some watches to the "
8275 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8276 "L</inotify-watch-all>."
8277 msgstr ""
8278
8279 #. type: textblock
8280 #: ../fish/guestfish-actions.pod:1706
8281 msgid ""
8282 "Queued up events should be read periodically by calling L</inotify-read> (or "
8283 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8284 "If you don't read the events out often enough then you risk the internal "
8285 "queue overflowing."
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1713
8290 msgid ""
8291 "The handle should be closed after use by calling L</inotify-close>.  This "
8292 "also removes any watches automatically."
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
8297 msgid ""
8298 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8299 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8300 "that there is one global inotify handle per libguestfs instance."
8301 msgstr ""
8302
8303 #. type: =head2
8304 #: ../fish/guestfish-actions.pod:1722
8305 msgid "inotify-read"
8306 msgstr "inotify-read"
8307
8308 #. type: verbatim
8309 #: ../fish/guestfish-actions.pod:1724
8310 #, no-wrap
8311 msgid ""
8312 " inotify-read\n"
8313 "\n"
8314 msgstr ""
8315 " inotify-read\n"
8316 "\n"
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
8320 msgid ""
8321 "Return the complete queue of events that have happened since the previous "
8322 "read call."
8323 msgstr ""
8324
8325 #. type: textblock
8326 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
8327 msgid "If no events have happened, this returns an empty list."
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
8332 msgid ""
8333 "I<Note>: In order to make sure that all events have been read, you must call "
8334 "this function repeatedly until it returns an empty list.  The reason is that "
8335 "the call will read events up to the maximum appliance-to-host message size "
8336 "and leave remaining events in the queue."
8337 msgstr ""
8338
8339 #. type: =head2
8340 #: ../fish/guestfish-actions.pod:1737
8341 msgid "inotify-rm-watch"
8342 msgstr "inotify-rm-watch"
8343
8344 #. type: verbatim
8345 #: ../fish/guestfish-actions.pod:1739
8346 #, no-wrap
8347 msgid ""
8348 " inotify-rm-watch wd\n"
8349 "\n"
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1741
8354 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8355 msgstr ""
8356
8357 #. type: =head2
8358 #: ../fish/guestfish-actions.pod:1744
8359 msgid "inspect-get-arch"
8360 msgstr "inspect-get-arch"
8361
8362 #. type: verbatim
8363 #: ../fish/guestfish-actions.pod:1746
8364 #, no-wrap
8365 msgid ""
8366 " inspect-get-arch root\n"
8367 "\n"
8368 msgstr ""
8369 " inspect-get-arch корінь\n"
8370 "\n"
8371
8372 #. type: textblock
8373 #: ../fish/guestfish-actions.pod:1748
8374 msgid ""
8375 "This returns the architecture of the inspected operating system.  The "
8376 "possible return values are listed under L</file-architecture>."
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
8381 msgid ""
8382 "If the architecture could not be determined, then the string C<unknown> is "
8383 "returned."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1838
8388 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1929
8389 #: ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2074
8390 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2109
8391 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2181
8392 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2207
8393 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2227
8394 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2335
8395 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:2625
8396 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2819
8397 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2969
8398 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3080
8399 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3154
8400 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
8401 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3251
8402 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3285
8403 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3428
8404 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8405 msgstr ""
8406
8407 #. type: =head2
8408 #: ../fish/guestfish-actions.pod:1757
8409 msgid "inspect-get-distro"
8410 msgstr "inspect-get-distro"
8411
8412 #. type: verbatim
8413 #: ../fish/guestfish-actions.pod:1759
8414 #, no-wrap
8415 msgid ""
8416 " inspect-get-distro root\n"
8417 "\n"
8418 msgstr ""
8419 " inspect-get-distro корінь\n"
8420 "\n"
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8424 msgid ""
8425 "This returns the distro (distribution) of the inspected operating system."
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8430 msgid "Currently defined distros are:"
8431 msgstr ""
8432
8433 #. type: =item
8434 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8435 msgid "\"archlinux\""
8436 msgstr "\"archlinux\""
8437
8438 #. type: textblock
8439 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8440 msgid "Arch Linux."
8441 msgstr "Arch Linux."
8442
8443 #. type: =item
8444 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8445 msgid "\"centos\""
8446 msgstr ""
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8450 msgid "CentOS."
8451 msgstr ""
8452
8453 #. type: =item
8454 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8455 msgid "\"debian\""
8456 msgstr "\"debian\""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8460 msgid "Debian."
8461 msgstr "Debian."
8462
8463 #. type: =item
8464 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8465 msgid "\"fedora\""
8466 msgstr "\"fedora\""
8467
8468 #. type: textblock
8469 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8470 msgid "Fedora."
8471 msgstr "Fedora."
8472
8473 #. type: =item
8474 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8475 msgid "\"gentoo\""
8476 msgstr "\"gentoo\""
8477
8478 #. type: textblock
8479 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8480 msgid "Gentoo."
8481 msgstr "Gentoo."
8482
8483 #. type: =item
8484 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8485 msgid "\"linuxmint\""
8486 msgstr "\"linuxmint\""
8487
8488 #. type: textblock
8489 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8490 msgid "Linux Mint."
8491 msgstr "Linux Mint."
8492
8493 #. type: =item
8494 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8495 msgid "\"mandriva\""
8496 msgstr "\"mandriva\""
8497
8498 #. type: textblock
8499 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8500 msgid "Mandriva."
8501 msgstr "Mandriva."
8502
8503 #. type: =item
8504 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8505 msgid "\"meego\""
8506 msgstr "\"meego\""
8507
8508 #. type: textblock
8509 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8510 msgid "MeeGo."
8511 msgstr "MeeGo."
8512
8513 #. type: =item
8514 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8515 msgid "\"pardus\""
8516 msgstr "\"pardus\""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8520 msgid "Pardus."
8521 msgstr "Pardus."
8522
8523 #. type: =item
8524 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8525 msgid "\"redhat-based\""
8526 msgstr "\"redhat-based\""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8530 msgid "Some Red Hat-derived distro."
8531 msgstr "Дистрибутив, що походить від Red Hat."
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8535 msgid "\"rhel\""
8536 msgstr "\"rhel\""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8540 msgid "Red Hat Enterprise Linux."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8545 msgid "\"scientificlinux\""
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8550 msgid "Scientific Linux."
8551 msgstr ""
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8555 msgid "\"slackware\""
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8560 msgid "Slackware."
8561 msgstr ""
8562
8563 #. type: =item
8564 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8565 msgid "\"ubuntu\""
8566 msgstr "\"ubuntu\""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8570 msgid "Ubuntu."
8571 msgstr "Ubuntu."
8572
8573 #. type: =item
8574 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1908
8575 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:2701
8576 #: ../src/guestfs-actions.pod:2810 ../src/guestfs-actions.pod:3185
8577 msgid "\"unknown\""
8578 msgstr "\"unknown\""
8579
8580 #. type: textblock
8581 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8582 msgid "The distro could not be determined."
8583 msgstr "Дистрибутив, тип якого не вдалося визначити."
8584
8585 #. type: =item
8586 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:2164
8587 #: ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:3177
8588 msgid "\"windows\""
8589 msgstr "\"windows\""
8590
8591 #. type: textblock
8592 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8593 msgid ""
8594 "Windows does not have distributions.  This string is returned if the OS type "
8595 "is Windows."
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1914
8600 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:2712
8601 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:3191
8602 msgid ""
8603 "Future versions of libguestfs may return other strings here.  The caller "
8604 "should be prepared to handle any string."
8605 msgstr ""
8606
8607 #. type: =head2
8608 #: ../fish/guestfish-actions.pod:1840
8609 msgid "inspect-get-drive-mappings"
8610 msgstr ""
8611
8612 #. type: verbatim
8613 #: ../fish/guestfish-actions.pod:1842
8614 #, no-wrap
8615 msgid ""
8616 " inspect-get-drive-mappings root\n"
8617 "\n"
8618 msgstr ""
8619
8620 #. type: textblock
8621 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8622 msgid ""
8623 "This call is useful for Windows which uses a primitive system of assigning "
8624 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8625 "Windows Registry to find out how disks/partitions are mapped to drive "
8626 "letters, and returns a hash table as in the example below:"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2734
8631 #, no-wrap
8632 msgid ""
8633 " C      =>     /dev/vda2\n"
8634 " E      =>     /dev/vdb1\n"
8635 " F      =>     /dev/vdc1\n"
8636 "\n"
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8641 msgid ""
8642 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8643 "and just contains the drive letter, without the customary colon separator "
8644 "character."
8645 msgstr ""
8646
8647 #. type: textblock
8648 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8649 msgid ""
8650 "In future we may support other operating systems that also used drive "
8651 "letters, but the keys for those might not be case insensitive and might be "
8652 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8653 "C<h1> etc."
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2747
8658 msgid ""
8659 "For Windows guests, currently only hard drive mappings are returned.  "
8660 "Removable disks (eg. DVD-ROMs) are ignored."
8661 msgstr ""
8662
8663 #. type: textblock
8664 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2750
8665 msgid ""
8666 "For guests that do not use drive mappings, or if the drive mappings could "
8667 "not be determined, this returns an empty hash table."
8668 msgstr ""
8669
8670 #. type: textblock
8671 #: ../fish/guestfish-actions.pod:1869
8672 msgid ""
8673 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8674 "get-mountpoints>, L</inspect-get-filesystems>."
8675 msgstr ""
8676
8677 #. type: =head2
8678 #: ../fish/guestfish-actions.pod:1873
8679 msgid "inspect-get-filesystems"
8680 msgstr "inspect-get-filesystems"
8681
8682 #. type: verbatim
8683 #: ../fish/guestfish-actions.pod:1875
8684 #, no-wrap
8685 msgid ""
8686 " inspect-get-filesystems root\n"
8687 "\n"
8688 msgstr ""
8689 " inspect-get-filesystems корінь\n"
8690 "\n"
8691
8692 #. type: textblock
8693 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2771
8694 msgid ""
8695 "This returns a list of all the filesystems that we think are associated with "
8696 "this operating system.  This includes the root filesystem, other ordinary "
8697 "filesystems, and non-mounted devices like swap partitions."
8698 msgstr ""
8699
8700 #. type: textblock
8701 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:2776
8702 msgid ""
8703 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8704 "to be shared between operating systems."
8705 msgstr ""
8706
8707 #. type: textblock
8708 #: ../fish/guestfish-actions.pod:1885
8709 msgid ""
8710 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8711 "get-mountpoints>."
8712 msgstr ""
8713
8714 #. type: =head2
8715 #: ../fish/guestfish-actions.pod:1888
8716 msgid "inspect-get-format"
8717 msgstr "inspect-get-format"
8718
8719 #. type: verbatim
8720 #: ../fish/guestfish-actions.pod:1890
8721 #, no-wrap
8722 msgid ""
8723 " inspect-get-format root\n"
8724 "\n"
8725 msgstr ""
8726 " inspect-get-format корінь\n"
8727 "\n"
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:2794
8731 msgid ""
8732 "This returns the format of the inspected operating system.  You can use it "
8733 "to detect install images, live CDs and similar."
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2797
8738 msgid "Currently defined formats are:"
8739 msgstr ""
8740
8741 #. type: =item
8742 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8743 msgid "\"installed\""
8744 msgstr "\"installed\""
8745
8746 #. type: textblock
8747 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2803
8748 msgid "This is an installed operating system."
8749 msgstr "Це встановлена операційна система."
8750
8751 #. type: =item
8752 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
8753 msgid "\"installer\""
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
8758 msgid ""
8759 "The disk image being inspected is not an installed operating system, but a "
8760 "I<bootable> install disk, live CD, or similar."
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:2812
8765 msgid "The format of this disk image is not known."
8766 msgstr ""
8767
8768 #. type: =head2
8769 #: ../fish/guestfish-actions.pod:1919
8770 msgid "inspect-get-hostname"
8771 msgstr "inspect-get-hostname"
8772
8773 #. type: verbatim
8774 #: ../fish/guestfish-actions.pod:1921
8775 #, no-wrap
8776 msgid ""
8777 " inspect-get-hostname root\n"
8778 "\n"
8779 msgstr ""
8780 " inspect-get-hostname корінь\n"
8781 "\n"
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:2832
8785 msgid ""
8786 "This function returns the hostname of the operating system as found by "
8787 "inspection of the guest's configuration files."
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2835
8792 msgid ""
8793 "If the hostname could not be determined, then the string C<unknown> is "
8794 "returned."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:1931
8799 msgid "inspect-get-icon"
8800 msgstr ""
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:1933
8804 #, no-wrap
8805 msgid ""
8806 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8807 "\n"
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8812 msgid ""
8813 "This function returns an icon corresponding to the inspected operating "
8814 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8815 "to PNG if necessary)."
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
8820 msgid ""
8821 "If it was not possible to get an icon this function returns a zero-length "
8822 "(non-NULL) buffer.  I<Callers must check for this case>."
8823 msgstr ""
8824
8825 #. type: textblock
8826 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:2868
8827 msgid ""
8828 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8829 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8830 "this file will be returned.  You can disable favicons by passing the "
8831 "optional C<favicon> boolean as false (default is true)."
8832 msgstr ""
8833
8834 #. type: textblock
8835 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2874
8836 msgid ""
8837 "If finding the favicon fails, then we look in other places in the guest for "
8838 "a suitable icon."
8839 msgstr ""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:2877
8843 msgid ""
8844 "If the optional C<highquality> boolean is true then only high quality icons "
8845 "are returned, which means only icons of high resolution with an alpha "
8846 "channel.  The default (false) is to return any icon we can, even if it is of "
8847 "substandard quality."
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:2888
8852 msgid ""
8853 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8854 "before you call this, since it needs to read information from the guest "
8855 "filesystem during the call."
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8860 msgid ""
8861 "B<Security:> The icon data comes from the untrusted guest, and should be "
8862 "treated with caution.  PNG files have been known to contain exploits.  "
8863 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8864 "trying to process or display the icon."
8865 msgstr ""
8866
8867 #. type: textblock
8868 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2902
8869 msgid ""
8870 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8871 "tries to return the largest, highest quality icon available.  The "
8872 "application must scale the icon to the required size."
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:2909
8877 msgid ""
8878 "Extracting icons from Windows guests requires the external C<wrestool> "
8879 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8880 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8881 "installed separately."
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:2916
8886 msgid ""
8887 "Operating system icons are usually trademarks.  Seek legal advice before "
8888 "using trademarks in applications."
8889 msgstr ""
8890
8891 #. type: =head2
8892 #: ../fish/guestfish-actions.pod:1997
8893 msgid "inspect-get-major-version"
8894 msgstr "inspect-get-major-version"
8895
8896 #. type: verbatim
8897 #: ../fish/guestfish-actions.pod:1999
8898 #, no-wrap
8899 msgid ""
8900 " inspect-get-major-version root\n"
8901 "\n"
8902 msgstr ""
8903 " inspect-get-major-version корінь\n"
8904 "\n"
8905
8906 #. type: textblock
8907 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:2957
8908 msgid ""
8909 "This returns the major version number of the inspected operating system."
8910 msgstr ""
8911
8912 #. type: textblock
8913 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2960
8914 msgid ""
8915 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8916 "popular public names used by the operating system.  Notably the operating "
8917 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8918 "1).  You can find out the real versions corresponding to releases of Windows "
8919 "by consulting Wikipedia or MSDN."
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2022
8924 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2984
8925 msgid "If the version could not be determined, then C<0> is returned."
8926 msgstr ""
8927
8928 #. type: =head2
8929 #: ../fish/guestfish-actions.pod:2015
8930 msgid "inspect-get-minor-version"
8931 msgstr "inspect-get-minor-version"
8932
8933 #. type: verbatim
8934 #: ../fish/guestfish-actions.pod:2017
8935 #, no-wrap
8936 msgid ""
8937 " inspect-get-minor-version root\n"
8938 "\n"
8939 msgstr ""
8940 " inspect-get-minor-version корінь\n"
8941 "\n"
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:2981
8945 msgid ""
8946 "This returns the minor version number of the inspected operating system."
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:2024
8951 msgid ""
8952 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8953 "get-major-version>."
8954 msgstr ""
8955
8956 #. type: =head2
8957 #: ../fish/guestfish-actions.pod:2027
8958 msgid "inspect-get-mountpoints"
8959 msgstr "inspect-get-mountpoints"
8960
8961 #. type: verbatim
8962 #: ../fish/guestfish-actions.pod:2029
8963 #, no-wrap
8964 msgid ""
8965 " inspect-get-mountpoints root\n"
8966 "\n"
8967 msgstr ""
8968 " inspect-get-mountpoints корінь\n"
8969 "\n"
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:2999
8973 msgid ""
8974 "This returns a hash of where we think the filesystems associated with this "
8975 "operating system should be mounted.  Callers should note that this is at "
8976 "best an educated guess made by reading configuration files such as C</etc/"
8977 "fstab>.  I<In particular note> that this may return filesystems which are "
8978 "non-existent or not mountable and callers should be prepared to handle or "
8979 "ignore failures if they try to mount them."
8980 msgstr ""
8981
8982 #. type: textblock
8983 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3008
8984 msgid ""
8985 "Each element in the returned hashtable has a key which is the path of the "
8986 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8987 "mounted there (eg. C</dev/sda1>)."
8988 msgstr ""
8989
8990 #. type: textblock
8991 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3013
8992 msgid ""
8993 "Non-mounted devices such as swap devices are I<not> returned in this list."
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../fish/guestfish-actions.pod:2048
8998 msgid ""
8999 "For operating systems like Windows which still use drive letters, this call "
9000 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9001 "information about the mapping of drive letters to partitions, see L</inspect-"
9002 "get-drive-mappings>."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:2054
9007 msgid ""
9008 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9009 "get-filesystems>."
9010 msgstr ""
9011
9012 #. type: =head2
9013 #: ../fish/guestfish-actions.pod:2057
9014 msgid "inspect-get-package-format"
9015 msgstr "inspect-get-package-format"
9016
9017 #. type: verbatim
9018 #: ../fish/guestfish-actions.pod:2059
9019 #, no-wrap
9020 msgid ""
9021 " inspect-get-package-format root\n"
9022 "\n"
9023 msgstr ""
9024 " inspect-get-package-format корінь\n"
9025 "\n"
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:2061
9029 msgid ""
9030 "This function and L</inspect-get-package-management> return the package "
9031 "format and package management tool used by the inspected operating system.  "
9032 "For example for Fedora these functions would return C<rpm> (package format) "
9033 "and C<yum> (package management)."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3045
9038 msgid ""
9039 "This returns the string C<unknown> if we could not determine the package "
9040 "format I<or> if the operating system does not have a real packaging system "
9041 "(eg. Windows)."
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
9046 msgid ""
9047 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9048 "Future versions of libguestfs may return other strings."
9049 msgstr ""
9050
9051 #. type: =head2
9052 #: ../fish/guestfish-actions.pod:2076
9053 msgid "inspect-get-package-management"
9054 msgstr "inspect-get-package-management"
9055
9056 #. type: verbatim
9057 #: ../fish/guestfish-actions.pod:2078
9058 #, no-wrap
9059 msgid ""
9060 " inspect-get-package-management root\n"
9061 "\n"
9062 msgstr ""
9063 " inspect-get-package-management корінь\n"
9064 "\n"
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:2080
9068 msgid ""
9069 "L</inspect-get-package-format> and this function return the package format "
9070 "and package management tool used by the inspected operating system.  For "
9071 "example for Fedora these functions would return C<rpm> (package format) and "
9072 "C<yum> (package management)."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3071
9077 msgid ""
9078 "This returns the string C<unknown> if we could not determine the package "
9079 "management tool I<or> if the operating system does not have a real packaging "
9080 "system (eg. Windows)."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
9085 msgid ""
9086 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9087 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9088 "libguestfs may return other strings."
9089 msgstr ""
9090
9091 #. type: =head2
9092 #: ../fish/guestfish-actions.pod:2097
9093 msgid "inspect-get-product-name"
9094 msgstr "inspect-get-product-name"
9095
9096 #. type: verbatim
9097 #: ../fish/guestfish-actions.pod:2099
9098 #, no-wrap
9099 msgid ""
9100 " inspect-get-product-name root\n"
9101 "\n"
9102 msgstr ""
9103 " inspect-get-product-name корінь\n"
9104 "\n"
9105
9106 #. type: textblock
9107 #: ../fish/guestfish-actions.pod:2101 ../src/guestfs-actions.pod:3093
9108 msgid ""
9109 "This returns the product name of the inspected operating system.  The "
9110 "product name is generally some freeform string which can be displayed to the "
9111 "user, but should not be parsed by programs."
9112 msgstr ""
9113
9114 #. type: textblock
9115 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3098
9116 msgid ""
9117 "If the product name could not be determined, then the string C<unknown> is "
9118 "returned."
9119 msgstr ""
9120
9121 #. type: =head2
9122 #: ../fish/guestfish-actions.pod:2111
9123 msgid "inspect-get-product-variant"
9124 msgstr ""
9125
9126 #. type: verbatim
9127 #: ../fish/guestfish-actions.pod:2113
9128 #, no-wrap
9129 msgid ""
9130 " inspect-get-product-variant root\n"
9131 "\n"
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3114
9136 msgid "This returns the product variant of the inspected operating system."
9137 msgstr ""
9138
9139 #. type: textblock
9140 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3117
9141 msgid ""
9142 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9143 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9144 "is usually a string such as C<Client> or C<Server> (other values are "
9145 "possible).  This can be used to distinguish consumer and enterprise versions "
9146 "of Windows that have the same version number (for example, Windows 7 and "
9147 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9148 "the latter is C<Server>)."
9149 msgstr ""
9150
9151 #. type: textblock
9152 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3126
9153 msgid ""
9154 "For enterprise Linux guests, in future we intend this to return the product "
9155 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9156 "implemented at present."
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
9161 msgid ""
9162 "If the product variant could not be determined, then the string C<unknown> "
9163 "is returned."
9164 msgstr ""
9165
9166 #. type: textblock
9167 #: ../fish/guestfish-actions.pod:2134
9168 msgid ""
9169 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9170 "get-product-name>, L</inspect-get-major-version>."
9171 msgstr ""
9172
9173 #. type: =head2
9174 #: ../fish/guestfish-actions.pod:2138
9175 msgid "inspect-get-roots"
9176 msgstr "inspect-get-roots"
9177
9178 #. type: verbatim
9179 #: ../fish/guestfish-actions.pod:2140
9180 #, no-wrap
9181 msgid ""
9182 " inspect-get-roots\n"
9183 "\n"
9184 msgstr ""
9185 " inspect-get-roots\n"
9186 "\n"
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:2142
9190 msgid ""
9191 "This function is a convenient way to get the list of root devices, as "
9192 "returned from a previous call to L</inspect-os>, but without redoing the "
9193 "whole inspection process."
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:2146
9198 msgid ""
9199 "This returns an empty list if either no root devices were found or the "
9200 "caller has not called L</inspect-os>."
9201 msgstr ""
9202
9203 #. type: =head2
9204 #: ../fish/guestfish-actions.pod:2151
9205 msgid "inspect-get-type"
9206 msgstr "inspect-get-type"
9207
9208 #. type: verbatim
9209 #: ../fish/guestfish-actions.pod:2153
9210 #, no-wrap
9211 msgid ""
9212 " inspect-get-type root\n"
9213 "\n"
9214 msgstr ""
9215 " inspect-get-type корінь\n"
9216 "\n"
9217
9218 #. type: textblock
9219 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3168
9220 msgid ""
9221 "This returns the type of the inspected operating system.  Currently defined "
9222 "types are:"
9223 msgstr ""
9224
9225 #. type: =item
9226 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3173
9227 msgid "\"linux\""
9228 msgstr "\"linux\""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:2162 ../src/guestfs-actions.pod:3175
9232 msgid "Any Linux-based operating system."
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
9237 msgid "Any Microsoft Windows operating system."
9238 msgstr ""
9239
9240 #. type: =item
9241 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3181
9242 msgid "\"freebsd\""
9243 msgstr "\"freebsd\""
9244
9245 #. type: textblock
9246 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
9247 msgid "FreeBSD."
9248 msgstr "FreeBSD."
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
9252 msgid "The operating system type could not be determined."
9253 msgstr ""
9254
9255 #. type: =head2
9256 #: ../fish/guestfish-actions.pod:2183
9257 msgid "inspect-get-windows-current-control-set"
9258 msgstr ""
9259
9260 #. type: verbatim
9261 #: ../fish/guestfish-actions.pod:2185
9262 #, no-wrap
9263 msgid ""
9264 " inspect-get-windows-current-control-set root\n"
9265 "\n"
9266 msgstr ""
9267
9268 #. type: textblock
9269 #: ../fish/guestfish-actions.pod:2187 ../src/guestfs-actions.pod:3207
9270 msgid ""
9271 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9272 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3210
9277 msgid ""
9278 "This call assumes that the guest is Windows and that the Registry could be "
9279 "examined by inspection.  If this is not the case then an error is returned."
9280 msgstr ""
9281
9282 #. type: =head2
9283 #: ../fish/guestfish-actions.pod:2196
9284 msgid "inspect-get-windows-systemroot"
9285 msgstr "inspect-get-windows-systemroot"
9286
9287 #. type: verbatim
9288 #: ../fish/guestfish-actions.pod:2198
9289 #, no-wrap
9290 msgid ""
9291 " inspect-get-windows-systemroot root\n"
9292 "\n"
9293 msgstr ""
9294 " inspect-get-windows-systemroot корінь\n"
9295 "\n"
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3227
9299 msgid ""
9300 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9301 "is a directory path such as C</WINDOWS>."
9302 msgstr ""
9303
9304 #. type: textblock
9305 #: ../fish/guestfish-actions.pod:2203 ../src/guestfs-actions.pod:3230
9306 msgid ""
9307 "This call assumes that the guest is Windows and that the systemroot could be "
9308 "determined by inspection.  If this is not the case then an error is returned."
9309 msgstr ""
9310
9311 #. type: =head2
9312 #: ../fish/guestfish-actions.pod:2209
9313 msgid "inspect-is-live"
9314 msgstr "inspect-is-live"
9315
9316 #. type: verbatim
9317 #: ../fish/guestfish-actions.pod:2211
9318 #, no-wrap
9319 msgid ""
9320 " inspect-is-live root\n"
9321 "\n"
9322 msgstr ""
9323 " inspect-is-live корінь\n"
9324 "\n"
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:2213
9328 msgid ""
9329 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9330 "then this returns true if a live image was detected on the disk."
9331 msgstr ""
9332
9333 #. type: =head2
9334 #: ../fish/guestfish-actions.pod:2219
9335 msgid "inspect-is-multipart"
9336 msgstr "inspect-is-multipart"
9337
9338 #. type: verbatim
9339 #: ../fish/guestfish-actions.pod:2221
9340 #, no-wrap
9341 msgid ""
9342 " inspect-is-multipart root\n"
9343 "\n"
9344 msgstr ""
9345 " inspect-is-multipart корінь\n"
9346 "\n"
9347
9348 #. type: textblock
9349 #: ../fish/guestfish-actions.pod:2223
9350 msgid ""
9351 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9352 "then this returns true if the disk is part of a set."
9353 msgstr ""
9354
9355 #. type: =head2
9356 #: ../fish/guestfish-actions.pod:2229
9357 msgid "inspect-is-netinst"
9358 msgstr "inspect-is-netinst"
9359
9360 #. type: verbatim
9361 #: ../fish/guestfish-actions.pod:2231
9362 #, no-wrap
9363 msgid ""
9364 " inspect-is-netinst root\n"
9365 "\n"
9366 msgstr ""
9367 " inspect-is-netinst корінь\n"
9368 "\n"
9369
9370 #. type: textblock
9371 #: ../fish/guestfish-actions.pod:2233
9372 msgid ""
9373 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9374 "then this returns true if the disk is a network installer, ie. not a self-"
9375 "contained install CD but one which is likely to require network access to "
9376 "complete the install."
9377 msgstr ""
9378
9379 #. type: =head2
9380 #: ../fish/guestfish-actions.pod:2241
9381 msgid "inspect-list-applications"
9382 msgstr "inspect-list-applications"
9383
9384 #. type: verbatim
9385 #: ../fish/guestfish-actions.pod:2243
9386 #, no-wrap
9387 msgid ""
9388 " inspect-list-applications root\n"
9389 "\n"
9390 msgstr ""
9391 " inspect-list-applications кореневий_каталог\n"
9392 "\n"
9393
9394 #. type: textblock
9395 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3297
9396 msgid "Return the list of applications installed in the operating system."
9397 msgstr ""
9398
9399 #. type: textblock
9400 #: ../fish/guestfish-actions.pod:2247
9401 msgid ""
9402 "I<Note:> This call works differently from other parts of the inspection "
9403 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9404 "then mount up the disks, before calling this.  Listing applications is a "
9405 "significantly more difficult operation which requires access to the full "
9406 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9407 "are just returning data cached in the libguestfs handle, this call actually "
9408 "reads parts of the mounted filesystems during the call."
9409 msgstr ""
9410
9411 #. type: textblock
9412 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9413 msgid ""
9414 "This returns an empty list if the inspection code was not able to determine "
9415 "the list of applications."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9420 msgid "The application structure contains the following fields:"
9421 msgstr ""
9422
9423 #. type: =item
9424 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
9425 msgid "C<app_name>"
9426 msgstr "C<app_name>"
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
9430 msgid ""
9431 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9432 "guests, this is the package name."
9433 msgstr ""
9434
9435 #. type: =item
9436 #: ../fish/guestfish-actions.pod:2269 ../src/guestfs-actions.pod:3321
9437 msgid "C<app_display_name>"
9438 msgstr "C<app_display_name>"
9439
9440 #. type: textblock
9441 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9442 msgid ""
9443 "The display name of the application, sometimes localized to the install "
9444 "language of the guest operating system."
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3326
9449 msgid ""
9450 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9451 "to display something can use C<app_name> instead."
9452 msgstr ""
9453
9454 #. type: =item
9455 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
9456 msgid "C<app_epoch>"
9457 msgstr "C<app_epoch>"
9458
9459 #. type: textblock
9460 #: ../fish/guestfish-actions.pod:2279 ../src/guestfs-actions.pod:3331
9461 msgid ""
9462 "For package managers which use epochs, this contains the epoch of the "
9463 "package (an integer).  If unavailable, this is returned as C<0>."
9464 msgstr ""
9465
9466 #. type: =item
9467 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9468 msgid "C<app_version>"
9469 msgstr "C<app_version>"
9470
9471 #. type: textblock
9472 #: ../fish/guestfish-actions.pod:2284 ../src/guestfs-actions.pod:3336
9473 msgid ""
9474 "The version string of the application or package.  If unavailable this is "
9475 "returned as an empty string C<\"\">."
9476 msgstr ""
9477
9478 #. type: =item
9479 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9480 msgid "C<app_release>"
9481 msgstr "C<app_release>"
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:2289 ../src/guestfs-actions.pod:3341
9485 msgid ""
9486 "The release string of the application or package, for package managers that "
9487 "use this.  If unavailable this is returned as an empty string C<\"\">."
9488 msgstr ""
9489
9490 #. type: =item
9491 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9492 msgid "C<app_install_path>"
9493 msgstr "C<app_install_path>"
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3347
9497 msgid ""
9498 "The installation path of the application (on operating systems such as "
9499 "Windows which use installation paths).  This path is in the format used by "
9500 "the guest operating system, it is not a libguestfs path."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3352
9505 msgid "If unavailable this is returned as an empty string C<\"\">."
9506 msgstr ""
9507
9508 #. type: =item
9509 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3354
9510 msgid "C<app_trans_path>"
9511 msgstr "C<app_trans_path>"
9512
9513 #. type: textblock
9514 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
9515 msgid ""
9516 "The install path translated into a libguestfs path.  If unavailable this is "
9517 "returned as an empty string C<\"\">."
9518 msgstr ""
9519
9520 #. type: =item
9521 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3359
9522 msgid "C<app_publisher>"
9523 msgstr "C<app_publisher>"
9524
9525 #. type: textblock
9526 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3361
9527 msgid ""
9528 "The name of the publisher of the application, for package managers that use "
9529 "this.  If unavailable this is returned as an empty string C<\"\">."
9530 msgstr ""
9531
9532 #. type: =item
9533 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
9534 msgid "C<app_url>"
9535 msgstr "C<app_url>"
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3367
9539 msgid ""
9540 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9541 "returned as an empty string C<\"\">."
9542 msgstr ""
9543
9544 #. type: =item
9545 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3370
9546 msgid "C<app_source_package>"
9547 msgstr "C<app_source_package>"
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3372
9551 msgid ""
9552 "For packaging systems which support this, the name of the source package.  "
9553 "If unavailable this is returned as an empty string C<\"\">."
9554 msgstr ""
9555
9556 #. type: =item
9557 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3375
9558 msgid "C<app_summary>"
9559 msgstr "C<app_summary>"
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3377
9563 msgid ""
9564 "A short (usually one line) description of the application or package.  If "
9565 "unavailable this is returned as an empty string C<\"\">."
9566 msgstr ""
9567
9568 #. type: =item
9569 #: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3380
9570 msgid "C<app_description>"
9571 msgstr "C<app_description>"
9572
9573 #. type: textblock
9574 #: ../fish/guestfish-actions.pod:2330 ../src/guestfs-actions.pod:3382
9575 msgid ""
9576 "A longer description of the application or package.  If unavailable this is "
9577 "returned as an empty string C<\"\">."
9578 msgstr ""
9579
9580 #. type: =head2
9581 #: ../fish/guestfish-actions.pod:2337
9582 msgid "inspect-os"
9583 msgstr "inspect-os"
9584
9585 #. type: verbatim
9586 #: ../fish/guestfish-actions.pod:2339
9587 #, no-wrap
9588 msgid ""
9589 " inspect-os\n"
9590 "\n"
9591 msgstr ""
9592 " inspect-os\n"
9593 "\n"
9594
9595 #. type: textblock
9596 #: ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3400
9597 msgid ""
9598 "This function uses other libguestfs functions and certain heuristics to "
9599 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9600 "for operating systems."
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9605 msgid "The list returned is empty if no operating systems were found."
9606 msgstr ""
9607
9608 #. type: textblock
9609 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3406
9610 msgid ""
9611 "If one operating system was found, then this returns a list with a single "
9612 "element, which is the name of the root filesystem of this operating system.  "
9613 "It is also possible for this function to return a list containing more than "
9614 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9615 "element being the root filesystem of one of the operating systems."
9616 msgstr ""
9617
9618 #. type: textblock
9619 #: ../fish/guestfish-actions.pod:2354
9620 msgid ""
9621 "You can pass the root string(s) returned to other L</inspect-get-*> "
9622 "functions in order to query further information about each operating system, "
9623 "such as the name and version."
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../fish/guestfish-actions.pod:2359
9628 msgid ""
9629 "This function uses other libguestfs features such as L</mount-ro> and L</"
9630 "umount-all> in order to mount and unmount filesystems and look at the "
9631 "contents.  This should be called with no disks currently mounted.  The "
9632 "function may also use Augeas, so any existing Augeas handle will be closed."
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3424
9637 msgid ""
9638 "This function cannot decrypt encrypted disks.  The caller must do that first "
9639 "(supplying the necessary keys) if the disk is encrypted."
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2569
9644 #: ../fish/guestfish-actions.pod:2628
9645 msgid "See also L</list-filesystems>."
9646 msgstr "Див. також L</list-filesystems>."
9647
9648 #. type: =head2
9649 #: ../fish/guestfish-actions.pod:2373
9650 msgid "is-blockdev"
9651 msgstr "is-blockdev"
9652
9653 #. type: verbatim
9654 #: ../fish/guestfish-actions.pod:2375
9655 #, no-wrap
9656 msgid ""
9657 " is-blockdev path\n"
9658 "\n"
9659 msgstr ""
9660 " is-blockdev шлях\n"
9661 "\n"
9662
9663 #. type: textblock
9664 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3444
9665 msgid ""
9666 "This returns C<true> if and only if there is a block device with the given "
9667 "C<path> name."
9668 msgstr ""
9669
9670 #. type: textblock
9671 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2398
9672 #: ../fish/guestfish-actions.pod:2417 ../fish/guestfish-actions.pod:2426
9673 #: ../fish/guestfish-actions.pod:2436 ../fish/guestfish-actions.pod:2470
9674 #: ../fish/guestfish-actions.pod:2479
9675 msgid "See also L</stat>."
9676 msgstr "Див. також L</stat>."
9677
9678 #. type: =head2
9679 #: ../fish/guestfish-actions.pod:2382
9680 msgid "is-busy"
9681 msgstr "is-busy"
9682
9683 #. type: verbatim
9684 #: ../fish/guestfish-actions.pod:2384
9685 #, no-wrap
9686 msgid ""
9687 " is-busy\n"
9688 "\n"
9689 msgstr ""
9690 " is-busy\n"
9691 "\n"
9692
9693 #. type: textblock
9694 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3458
9695 msgid ""
9696 "This returns true iff this handle is busy processing a command (in the "
9697 "C<BUSY> state)."
9698 msgstr ""
9699
9700 #. type: =head2
9701 #: ../fish/guestfish-actions.pod:2391
9702 msgid "is-chardev"
9703 msgstr "is-chardev"
9704
9705 #. type: verbatim
9706 #: ../fish/guestfish-actions.pod:2393
9707 #, no-wrap
9708 msgid ""
9709 " is-chardev path\n"
9710 "\n"
9711 msgstr ""
9712 " is-chardev шлях\n"
9713 "\n"
9714
9715 #. type: textblock
9716 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3473
9717 msgid ""
9718 "This returns C<true> if and only if there is a character device with the "
9719 "given C<path> name."
9720 msgstr ""
9721
9722 #. type: =head2
9723 #: ../fish/guestfish-actions.pod:2400
9724 msgid "is-config"
9725 msgstr "is-config"
9726
9727 #. type: verbatim
9728 #: ../fish/guestfish-actions.pod:2402
9729 #, no-wrap
9730 msgid ""
9731 " is-config\n"
9732 "\n"
9733 msgstr ""
9734 " is-config\n"
9735 "\n"
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3487
9739 msgid ""
9740 "This returns true iff this handle is being configured (in the C<CONFIG> "
9741 "state)."
9742 msgstr ""
9743
9744 #. type: =head2
9745 #: ../fish/guestfish-actions.pod:2409
9746 msgid "is-dir"
9747 msgstr "is-dir"
9748
9749 #. type: verbatim
9750 #: ../fish/guestfish-actions.pod:2411
9751 #, no-wrap
9752 msgid ""
9753 " is-dir path\n"
9754 "\n"
9755 msgstr ""
9756 " is-dir шлях\n"
9757 "\n"
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:2413 ../src/guestfs-actions.pod:3502
9761 msgid ""
9762 "This returns C<true> if and only if there is a directory with the given "
9763 "C<path> name.  Note that it returns false for other objects like files."
9764 msgstr ""
9765
9766 #. type: =head2
9767 #: ../fish/guestfish-actions.pod:2419
9768 msgid "is-fifo"
9769 msgstr "is-fifo"
9770
9771 #. type: verbatim
9772 #: ../fish/guestfish-actions.pod:2421
9773 #, no-wrap
9774 msgid ""
9775 " is-fifo path\n"
9776 "\n"
9777 msgstr ""
9778 " is-fifo шлях\n"
9779 "\n"
9780
9781 #. type: textblock
9782 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3518
9783 msgid ""
9784 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9785 "given C<path> name."
9786 msgstr ""
9787
9788 #. type: =head2
9789 #: ../fish/guestfish-actions.pod:2428
9790 msgid "is-file"
9791 msgstr "is-file"
9792
9793 #. type: verbatim
9794 #: ../fish/guestfish-actions.pod:2430
9795 #, no-wrap
9796 msgid ""
9797 " is-file path\n"
9798 "\n"
9799 msgstr ""
9800 " is-file шлях\n"
9801 "\n"
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:3533
9805 msgid ""
9806 "This returns C<true> if and only if there is a regular file with the given "
9807 "C<path> name.  Note that it returns false for other objects like directories."
9808 msgstr ""
9809
9810 #. type: =head2
9811 #: ../fish/guestfish-actions.pod:2438
9812 msgid "is-launching"
9813 msgstr "is-launching"
9814
9815 #. type: verbatim
9816 #: ../fish/guestfish-actions.pod:2440
9817 #, no-wrap
9818 msgid ""
9819 " is-launching\n"
9820 "\n"
9821 msgstr ""
9822 " is-launching\n"
9823 "\n"
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3548
9827 msgid ""
9828 "This returns true iff this handle is launching the subprocess (in the "
9829 "C<LAUNCHING> state)."
9830 msgstr ""
9831
9832 #. type: =head2
9833 #: ../fish/guestfish-actions.pod:2447
9834 msgid "is-lv"
9835 msgstr "is-lv"
9836
9837 #. type: verbatim
9838 #: ../fish/guestfish-actions.pod:2449
9839 #, no-wrap
9840 msgid ""
9841 " is-lv device\n"
9842 "\n"
9843 msgstr ""
9844 " is-lv пристрій\n"
9845 "\n"
9846
9847 #. type: textblock
9848 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3563
9849 msgid ""
9850 "This command tests whether C<device> is a logical volume, and returns true "
9851 "iff this is the case."
9852 msgstr ""
9853
9854 #. type: =head2
9855 #: ../fish/guestfish-actions.pod:2454
9856 msgid "is-ready"
9857 msgstr "is-ready"
9858
9859 #. type: verbatim
9860 #: ../fish/guestfish-actions.pod:2456
9861 #, no-wrap
9862 msgid ""
9863 " is-ready\n"
9864 "\n"
9865 msgstr ""
9866 " is-ready\n"
9867 "\n"
9868
9869 #. type: textblock
9870 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3575
9871 msgid ""
9872 "This returns true iff this handle is ready to accept commands (in the "
9873 "C<READY> state)."
9874 msgstr ""
9875
9876 #. type: =head2
9877 #: ../fish/guestfish-actions.pod:2463
9878 msgid "is-socket"
9879 msgstr "is-socket"
9880
9881 #. type: verbatim
9882 #: ../fish/guestfish-actions.pod:2465
9883 #, no-wrap
9884 msgid ""
9885 " is-socket path\n"
9886 "\n"
9887 msgstr ""
9888 " is-socket шлях\n"
9889 "\n"
9890
9891 #. type: textblock
9892 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3590
9893 msgid ""
9894 "This returns C<true> if and only if there is a Unix domain socket with the "
9895 "given C<path> name."
9896 msgstr ""
9897
9898 #. type: =head2
9899 #: ../fish/guestfish-actions.pod:2472
9900 msgid "is-symlink"
9901 msgstr "is-symlink"
9902
9903 #. type: verbatim
9904 #: ../fish/guestfish-actions.pod:2474
9905 #, no-wrap
9906 msgid ""
9907 " is-symlink path\n"
9908 "\n"
9909 msgstr ""
9910 " is-symlink шлях\n"
9911 "\n"
9912
9913 #. type: textblock
9914 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3605
9915 msgid ""
9916 "This returns C<true> if and only if there is a symbolic link with the given "
9917 "C<path> name."
9918 msgstr ""
9919
9920 #. type: =head2
9921 #: ../fish/guestfish-actions.pod:2481
9922 msgid "is-zero"
9923 msgstr ""
9924
9925 #. type: verbatim
9926 #: ../fish/guestfish-actions.pod:2483
9927 #, no-wrap
9928 msgid ""
9929 " is-zero path\n"
9930 "\n"
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3620
9935 msgid ""
9936 "This returns true iff the file exists and the file is empty or it contains "
9937 "all zero bytes."
9938 msgstr ""
9939
9940 #. type: =head2
9941 #: ../fish/guestfish-actions.pod:2488
9942 msgid "is-zero-device"
9943 msgstr ""
9944
9945 #. type: verbatim
9946 #: ../fish/guestfish-actions.pod:2490
9947 #, no-wrap
9948 msgid ""
9949 " is-zero-device device\n"
9950 "\n"
9951 msgstr ""
9952
9953 #. type: textblock
9954 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3633
9955 msgid "This returns true iff the device exists and contains all zero bytes."
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3635
9960 msgid "Note that for large devices this can take a long time to run."
9961 msgstr ""
9962
9963 #. type: =head2
9964 #: ../fish/guestfish-actions.pod:2496
9965 msgid "kill-subprocess"
9966 msgstr "kill-subprocess"
9967
9968 #. type: verbatim
9969 #: ../fish/guestfish-actions.pod:2498
9970 #, no-wrap
9971 msgid ""
9972 " kill-subprocess\n"
9973 "\n"
9974 msgstr ""
9975 " kill-subprocess\n"
9976 "\n"
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3646
9980 msgid "This kills the qemu subprocess.  You should never need to call this."
9981 msgstr ""
9982
9983 #. type: =head2
9984 #: ../fish/guestfish-actions.pod:2502
9985 msgid "launch"
9986 msgstr "launch"
9987
9988 #. type: =head2
9989 #: ../fish/guestfish-actions.pod:2504
9990 msgid "run"
9991 msgstr ""
9992
9993 #. type: verbatim
9994 #: ../fish/guestfish-actions.pod:2506
9995 #, no-wrap
9996 msgid ""
9997 " launch\n"
9998 "\n"
9999 msgstr ""
10000 " launch\n"
10001 "\n"
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3657
10005 msgid ""
10006 "Internally libguestfs is implemented by running a virtual machine using "
10007 "L<qemu(1)>."
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3660
10012 msgid ""
10013 "You should call this after configuring the handle (eg. adding drives) but "
10014 "before performing any actions."
10015 msgstr ""
10016
10017 #. type: =head2
10018 #: ../fish/guestfish-actions.pod:2514
10019 msgid "lchown"
10020 msgstr "lchown"
10021
10022 #. type: verbatim
10023 #: ../fish/guestfish-actions.pod:2516
10024 #, no-wrap
10025 msgid ""
10026 " lchown owner group path\n"
10027 "\n"
10028 msgstr ""
10029 " lchown власник група шлях\n"
10030 "\n"
10031
10032 #. type: textblock
10033 #: ../fish/guestfish-actions.pod:2518
10034 msgid ""
10035 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10036 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10037 "target."
10038 msgstr ""
10039
10040 #. type: =head2
10041 #: ../fish/guestfish-actions.pod:2526
10042 msgid "lgetxattr"
10043 msgstr "lgetxattr"
10044
10045 #. type: verbatim
10046 #: ../fish/guestfish-actions.pod:2528
10047 #, no-wrap
10048 msgid ""
10049 " lgetxattr path name\n"
10050 "\n"
10051 msgstr ""
10052 " lgetxattr шлях назва\n"
10053 "\n"
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3700
10057 msgid ""
10058 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10059 "is a symlink, then this call returns an extended attribute from the symlink."
10060 msgstr ""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:2544
10064 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10065 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10066
10067 #. type: =head2
10068 #: ../fish/guestfish-actions.pod:2546
10069 msgid "lgetxattrs"
10070 msgstr "lgetxattrs"
10071
10072 #. type: verbatim
10073 #: ../fish/guestfish-actions.pod:2548
10074 #, no-wrap
10075 msgid ""
10076 " lgetxattrs path\n"
10077 "\n"
10078 msgstr ""
10079 " lgetxattrs шлях\n"
10080 "\n"
10081
10082 #. type: textblock
10083 #: ../fish/guestfish-actions.pod:2550
10084 msgid ""
10085 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10086 "it returns the extended attributes of the link itself."
10087 msgstr ""
10088
10089 #. type: =head2
10090 #: ../fish/guestfish-actions.pod:2554
10091 msgid "list-9p"
10092 msgstr ""
10093
10094 #. type: verbatim
10095 #: ../fish/guestfish-actions.pod:2556
10096 #, no-wrap
10097 msgid ""
10098 " list-9p\n"
10099 "\n"
10100 msgstr ""
10101
10102 #. type: textblock
10103 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3743
10104 msgid ""
10105 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10106 "returned."
10107 msgstr ""
10108
10109 #. type: =head2
10110 #: ../fish/guestfish-actions.pod:2561
10111 msgid "list-devices"
10112 msgstr "list-devices"
10113
10114 #. type: verbatim
10115 #: ../fish/guestfish-actions.pod:2563
10116 #, no-wrap
10117 msgid ""
10118 " list-devices\n"
10119 "\n"
10120 msgstr ""
10121 " list-devices\n"
10122 "\n"
10123
10124 #. type: textblock
10125 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3757
10126 msgid "List all the block devices."
10127 msgstr ""
10128
10129 #. type: textblock
10130 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3759
10131 msgid "The full block device names are returned, eg. C</dev/sda>."
10132 msgstr ""
10133
10134 #. type: =head2
10135 #: ../fish/guestfish-actions.pod:2571
10136 msgid "list-dm-devices"
10137 msgstr ""
10138
10139 #. type: verbatim
10140 #: ../fish/guestfish-actions.pod:2573
10141 #, no-wrap
10142 msgid ""
10143 " list-dm-devices\n"
10144 "\n"
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3774
10149 msgid "List all device mapper devices."
10150 msgstr ""
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:2577
10154 msgid ""
10155 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10156 "previous call to L</luks-open>."
10157 msgstr ""
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:2580
10161 msgid ""
10162 "Device mapper devices which correspond to logical volumes are I<not> "
10163 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10164 msgstr ""
10165
10166 #. type: =head2
10167 #: ../fish/guestfish-actions.pod:2584
10168 msgid "list-filesystems"
10169 msgstr "list-filesystems"
10170
10171 #. type: verbatim
10172 #: ../fish/guestfish-actions.pod:2586
10173 #, no-wrap
10174 msgid ""
10175 " list-filesystems\n"
10176 "\n"
10177 msgstr ""
10178 " list-filesystems\n"
10179 "\n"
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3794
10183 msgid ""
10184 "This inspection command looks for filesystems on partitions, block devices "
10185 "and logical volumes, returning a list of devices containing filesystems and "
10186 "their type."
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
10191 msgid ""
10192 "The return value is a hash, where the keys are the devices containing "
10193 "filesystems, and the values are the filesystem types.  For example:"
10194 msgstr ""
10195
10196 #. type: verbatim
10197 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
10198 #, no-wrap
10199 msgid ""
10200 " \"/dev/sda1\" => \"ntfs\"\n"
10201 " \"/dev/sda2\" => \"ext2\"\n"
10202 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10203 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10204 "\n"
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3807
10209 msgid ""
10210 "The value can have the special value \"unknown\", meaning the content of the "
10211 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2605
10216 msgid ""
10217 "This command runs other libguestfs commands, which might include L</mount> "
10218 "and L</umount>, and therefore you should use this soon after launch and only "
10219 "when nothing is mounted."
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:2609
10224 msgid ""
10225 "Not all of the filesystems returned will be mountable.  In particular, swap "
10226 "partitions are returned in the list.  Also this command does not check that "
10227 "each filesystem found is valid and mountable, and some filesystems might be "
10228 "mountable but require special options.  Filesystems may not all belong to a "
10229 "single logical operating system (use L</inspect-os> to look for OSes)."
10230 msgstr ""
10231
10232 #. type: =head2
10233 #: ../fish/guestfish-actions.pod:2617
10234 msgid "list-partitions"
10235 msgstr "list-partitions"
10236
10237 #. type: verbatim
10238 #: ../fish/guestfish-actions.pod:2619
10239 #, no-wrap
10240 msgid ""
10241 " list-partitions\n"
10242 "\n"
10243 msgstr ""
10244 " list-partitions\n"
10245 "\n"
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3836
10249 msgid "List all the partitions detected on all block devices."
10250 msgstr ""
10251
10252 #. type: textblock
10253 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3838
10254 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2625
10259 msgid ""
10260 "This does not return logical volumes.  For that you will need to call L</"
10261 "lvs>."
10262 msgstr ""
10263
10264 #. type: =head2
10265 #: ../fish/guestfish-actions.pod:2630
10266 msgid "ll"
10267 msgstr "ll"
10268
10269 #. type: verbatim
10270 #: ../fish/guestfish-actions.pod:2632
10271 #, no-wrap
10272 msgid ""
10273 " ll directory\n"
10274 "\n"
10275 msgstr ""
10276 " ll каталог\n"
10277 "\n"
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2634 ../src/guestfs-actions.pod:3857
10281 msgid ""
10282 "List the files in C<directory> (relative to the root directory, there is no "
10283 "cwd) in the format of 'ls -la'."
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3860
10288 msgid ""
10289 "This command is mostly useful for interactive sessions.  It is I<not> "
10290 "intended that you try to parse the output string."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2640
10295 msgid "ln"
10296 msgstr "ln"
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2642
10300 #, no-wrap
10301 msgid ""
10302 " ln target linkname\n"
10303 "\n"
10304 msgstr ""
10305 " ln призначення назва_посилання\n"
10306 "\n"
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:3875
10310 msgid "This command creates a hard link using the C<ln> command."
10311 msgstr ""
10312
10313 #. type: =head2
10314 #: ../fish/guestfish-actions.pod:2646
10315 msgid "ln-f"
10316 msgstr "ln-f"
10317
10318 #. type: verbatim
10319 #: ../fish/guestfish-actions.pod:2648
10320 #, no-wrap
10321 msgid ""
10322 " ln-f target linkname\n"
10323 "\n"
10324 msgstr ""
10325 " ln-f призначення назва_посилання\n"
10326 "\n"
10327
10328 #. type: textblock
10329 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3888
10330 msgid ""
10331 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10332 "option removes the link (C<linkname>) if it exists already."
10333 msgstr ""
10334
10335 #. type: =head2
10336 #: ../fish/guestfish-actions.pod:2653
10337 msgid "ln-s"
10338 msgstr "ln-s"
10339
10340 #. type: verbatim
10341 #: ../fish/guestfish-actions.pod:2655
10342 #, no-wrap
10343 msgid ""
10344 " ln-s target linkname\n"
10345 "\n"
10346 msgstr ""
10347 " ln-s призначення назва_посилання\n"
10348 "\n"
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:3902
10352 msgid "This command creates a symbolic link using the C<ln -s> command."
10353 msgstr ""
10354
10355 #. type: =head2
10356 #: ../fish/guestfish-actions.pod:2659
10357 msgid "ln-sf"
10358 msgstr "ln-sf"
10359
10360 #. type: verbatim
10361 #: ../fish/guestfish-actions.pod:2661
10362 #, no-wrap
10363 msgid ""
10364 " ln-sf target linkname\n"
10365 "\n"
10366 msgstr ""
10367 " ln-sf призначення назва_посилання\n"
10368 "\n"
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:2663 ../src/guestfs-actions.pod:3915
10372 msgid ""
10373 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10374 "option removes the link (C<linkname>) if it exists already."
10375 msgstr ""
10376
10377 #. type: =head2
10378 #: ../fish/guestfish-actions.pod:2666
10379 msgid "lremovexattr"
10380 msgstr "lremovexattr"
10381
10382 #. type: verbatim
10383 #: ../fish/guestfish-actions.pod:2668
10384 #, no-wrap
10385 msgid ""
10386 " lremovexattr xattr path\n"
10387 "\n"
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:2670
10392 msgid ""
10393 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10394 "it removes an extended attribute of the link itself."
10395 msgstr ""
10396
10397 #. type: =head2
10398 #: ../fish/guestfish-actions.pod:2674
10399 msgid "ls"
10400 msgstr "ls"
10401
10402 #. type: verbatim
10403 #: ../fish/guestfish-actions.pod:2676
10404 #, no-wrap
10405 msgid ""
10406 " ls directory\n"
10407 "\n"
10408 msgstr ""
10409 " ls каталог\n"
10410 "\n"
10411
10412 #. type: textblock
10413 #: ../fish/guestfish-actions.pod:2678 ../src/guestfs-actions.pod:3943
10414 msgid ""
10415 "List the files in C<directory> (relative to the root directory, there is no "
10416 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10417 msgstr ""
10418
10419 #. type: textblock
10420 #: ../fish/guestfish-actions.pod:2682
10421 msgid ""
10422 "This command is mostly useful for interactive sessions.  Programs should "
10423 "probably use L</readdir> instead."
10424 msgstr ""
10425
10426 #. type: =head2
10427 #: ../fish/guestfish-actions.pod:2685
10428 msgid "lsetxattr"
10429 msgstr "lsetxattr"
10430
10431 #. type: verbatim
10432 #: ../fish/guestfish-actions.pod:2687
10433 #, no-wrap
10434 msgid ""
10435 " lsetxattr xattr val vallen path\n"
10436 "\n"
10437 msgstr ""
10438
10439 #. type: textblock
10440 #: ../fish/guestfish-actions.pod:2689
10441 msgid ""
10442 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10443 "sets an extended attribute of the link itself."
10444 msgstr ""
10445
10446 #. type: =head2
10447 #: ../fish/guestfish-actions.pod:2693
10448 msgid "lstat"
10449 msgstr "lstat"
10450
10451 #. type: verbatim
10452 #: ../fish/guestfish-actions.pod:2695
10453 #, no-wrap
10454 msgid ""
10455 " lstat path\n"
10456 "\n"
10457 msgstr ""
10458 " lstat шлях\n"
10459 "\n"
10460
10461 #. type: textblock
10462 #: ../fish/guestfish-actions.pod:2697 ../fish/guestfish-actions.pod:4505
10463 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:6758
10464 msgid "Returns file information for the given C<path>."
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:2699
10469 msgid ""
10470 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10471 "the link is stat-ed, not the file it refers to."
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:3985
10476 msgid "This is the same as the C<lstat(2)> system call."
10477 msgstr ""
10478
10479 #. type: =head2
10480 #: ../fish/guestfish-actions.pod:2705
10481 msgid "lstatlist"
10482 msgstr "lstatlist"
10483
10484 #. type: verbatim
10485 #: ../fish/guestfish-actions.pod:2707
10486 #, no-wrap
10487 msgid ""
10488 " lstatlist path 'names ...'\n"
10489 "\n"
10490 msgstr ""
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:2709
10494 msgid ""
10495 "This call allows you to perform the L</lstat> operation on multiple files, "
10496 "where all files are in the directory C<path>.  C<names> is the list of files "
10497 "from this directory."
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4004
10502 msgid ""
10503 "On return you get a list of stat structs, with a one-to-one correspondence "
10504 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10505 "then the C<ino> field of that structure is set to C<-1>."
10506 msgstr ""
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:2718
10510 msgid ""
10511 "This call is intended for programs that want to efficiently list a directory "
10512 "contents without making many round-trips.  See also L</lxattrlist> for a "
10513 "similarly efficient call for getting extended attributes.  Very long "
10514 "directory listings might cause the protocol message size to be exceeded, "
10515 "causing this call to fail.  The caller must split up such requests into "
10516 "smaller groups of names."
10517 msgstr ""
10518
10519 #. type: =head2
10520 #: ../fish/guestfish-actions.pod:2726
10521 msgid "luks-add-key"
10522 msgstr "luks-add-key"
10523
10524 #. type: verbatim
10525 #: ../fish/guestfish-actions.pod:2728
10526 #, no-wrap
10527 msgid ""
10528 " luks-add-key device keyslot\n"
10529 "\n"
10530 msgstr ""
10531
10532 #. type: textblock
10533 #: ../fish/guestfish-actions.pod:2730 ../src/guestfs-actions.pod:4032
10534 msgid ""
10535 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10536 "existing key, and is used to access the device.  C<newkey> is the new key to "
10537 "add.  C<keyslot> is the key slot that will be replaced."
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:2735
10542 msgid ""
10543 "Note that if C<keyslot> already contains a key, then this command will "
10544 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2761
10549 #: ../fish/guestfish-actions.pod:2774 ../fish/guestfish-actions.pod:2788
10550 #: ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824
10551 msgid ""
10552 "This command has one or more key or passphrase parameters.  Guestfish will "
10553 "prompt for these separately."
10554 msgstr ""
10555
10556 #. type: =head2
10557 #: ../fish/guestfish-actions.pod:2742
10558 msgid "luks-close"
10559 msgstr "luks-close"
10560
10561 #. type: verbatim
10562 #: ../fish/guestfish-actions.pod:2744
10563 #, no-wrap
10564 msgid ""
10565 " luks-close device\n"
10566 "\n"
10567 msgstr ""
10568 " luks-close пристрій\n"
10569 "\n"
10570
10571 #. type: textblock
10572 #: ../fish/guestfish-actions.pod:2746
10573 msgid ""
10574 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10575 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10576 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10577 "block device."
10578 msgstr ""
10579
10580 #. type: =head2
10581 #: ../fish/guestfish-actions.pod:2752
10582 msgid "luks-format"
10583 msgstr "luks-format"
10584
10585 #. type: verbatim
10586 #: ../fish/guestfish-actions.pod:2754
10587 #, no-wrap
10588 msgid ""
10589 " luks-format device keyslot\n"
10590 "\n"
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4073
10595 msgid ""
10596 "This command erases existing data on C<device> and formats the device as a "
10597 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10598 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10599 msgstr ""
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:2764 ../fish/guestfish-actions.pod:2777
10603 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3525
10604 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4376
10605 #: ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4421
10606 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:4080
10607 #: ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4246
10608 #: ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:6137
10609 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6595
10610 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:7834
10611 msgid ""
10612 "B<This command is dangerous.  Without careful use you can easily destroy all "
10613 "your data>."
10614 msgstr ""
10615
10616 #. type: =head2
10617 #: ../fish/guestfish-actions.pod:2767
10618 msgid "luks-format-cipher"
10619 msgstr "luks-format-cipher"
10620
10621 #. type: verbatim
10622 #: ../fish/guestfish-actions.pod:2769
10623 #, no-wrap
10624 msgid ""
10625 " luks-format-cipher device keyslot cipher\n"
10626 "\n"
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:2771
10631 msgid ""
10632 "This command is the same as L</luks-format> but it also allows you to set "
10633 "the C<cipher> used."
10634 msgstr ""
10635
10636 #. type: =head2
10637 #: ../fish/guestfish-actions.pod:2780
10638 msgid "luks-kill-slot"
10639 msgstr "luks-kill-slot"
10640
10641 #. type: verbatim
10642 #: ../fish/guestfish-actions.pod:2782
10643 #, no-wrap
10644 msgid ""
10645 " luks-kill-slot device keyslot\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2784 ../src/guestfs-actions.pod:4120
10651 msgid ""
10652 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10653 "device C<device>.  C<key> must be one of the I<other> keys."
10654 msgstr ""
10655
10656 #. type: =head2
10657 #: ../fish/guestfish-actions.pod:2791
10658 msgid "luks-open"
10659 msgstr "luks-open"
10660
10661 #. type: verbatim
10662 #: ../fish/guestfish-actions.pod:2793
10663 #, no-wrap
10664 msgid ""
10665 " luks-open device mapname\n"
10666 "\n"
10667 msgstr ""
10668
10669 #. type: textblock
10670 #: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4140
10671 msgid ""
10672 "This command opens a block device which has been encrypted according to the "
10673 "Linux Unified Key Setup (LUKS) standard."
10674 msgstr ""
10675
10676 #. type: textblock
10677 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4143
10678 msgid "C<device> is the encrypted block device or partition."
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../fish/guestfish-actions.pod:2800 ../src/guestfs-actions.pod:4145
10683 msgid ""
10684 "The caller must supply one of the keys associated with the LUKS block "
10685 "device, in the C<key> parameter."
10686 msgstr ""
10687
10688 #. type: textblock
10689 #: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4148
10690 msgid ""
10691 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10692 "writes to this block device are decrypted from and encrypted to the "
10693 "underlying C<device> respectively."
10694 msgstr ""
10695
10696 #. type: textblock
10697 #: ../fish/guestfish-actions.pod:2807
10698 msgid ""
10699 "If this block device contains LVM volume groups, then calling L</vgscan> "
10700 "followed by L</vg-activate-all> will make them visible."
10701 msgstr ""
10702
10703 #. type: textblock
10704 #: ../fish/guestfish-actions.pod:2811
10705 msgid "Use L</list-dm-devices> to list all device mapper devices."
10706 msgstr ""
10707
10708 #. type: =head2
10709 #: ../fish/guestfish-actions.pod:2817
10710 msgid "luks-open-ro"
10711 msgstr "luks-open-ro"
10712
10713 #. type: verbatim
10714 #: ../fish/guestfish-actions.pod:2819
10715 #, no-wrap
10716 msgid ""
10717 " luks-open-ro device mapname\n"
10718 "\n"
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:2821
10723 msgid ""
10724 "This is the same as L</luks-open> except that a read-only mapping is created."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../fish/guestfish-actions.pod:2827
10729 msgid "lvcreate"
10730 msgstr "lvcreate"
10731
10732 #. type: verbatim
10733 #: ../fish/guestfish-actions.pod:2829
10734 #, no-wrap
10735 msgid ""
10736 " lvcreate logvol volgroup mbytes\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4194
10742 msgid ""
10743 "This creates an LVM logical volume called C<logvol> on the volume group "
10744 "C<volgroup>, with C<size> megabytes."
10745 msgstr ""
10746
10747 #. type: =head2
10748 #: ../fish/guestfish-actions.pod:2834
10749 msgid "lvm-canonical-lv-name"
10750 msgstr "lvm-canonical-lv-name"
10751
10752 #. type: verbatim
10753 #: ../fish/guestfish-actions.pod:2836
10754 #, no-wrap
10755 msgid ""
10756 " lvm-canonical-lv-name lvname\n"
10757 "\n"
10758 msgstr ""
10759
10760 #. type: textblock
10761 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4207
10762 msgid ""
10763 "This converts alternative naming schemes for LVs that you might find to the "
10764 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10765 "LV>."
10766 msgstr ""
10767
10768 #. type: textblock
10769 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
10770 msgid ""
10771 "This command returns an error if the C<lvname> parameter does not refer to a "
10772 "logical volume."
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:2845
10777 msgid "See also L</is-lv>."
10778 msgstr "Див. також L</is-lv>."
10779
10780 #. type: =head2
10781 #: ../fish/guestfish-actions.pod:2847
10782 msgid "lvm-clear-filter"
10783 msgstr "lvm-clear-filter"
10784
10785 #. type: verbatim
10786 #: ../fish/guestfish-actions.pod:2849
10787 #, no-wrap
10788 msgid ""
10789 " lvm-clear-filter\n"
10790 "\n"
10791 msgstr ""
10792 " lvm-clear-filter\n"
10793 "\n"
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:2851
10797 msgid ""
10798 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10799 "block device."
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:2854 ../fish/guestfish-actions.pod:2885
10804 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4271
10805 msgid ""
10806 "This command also clears the LVM cache and performs a volume group scan."
10807 msgstr ""
10808
10809 #. type: =head2
10810 #: ../fish/guestfish-actions.pod:2857
10811 msgid "lvm-remove-all"
10812 msgstr "lvm-remove-all"
10813
10814 #. type: verbatim
10815 #: ../fish/guestfish-actions.pod:2859
10816 #, no-wrap
10817 msgid ""
10818 " lvm-remove-all\n"
10819 "\n"
10820 msgstr ""
10821 " lvm-remove-all\n"
10822 "\n"
10823
10824 #. type: textblock
10825 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4241
10826 msgid ""
10827 "This command removes all LVM logical volumes, volume groups and physical "
10828 "volumes."
10829 msgstr ""
10830
10831 #. type: =head2
10832 #: ../fish/guestfish-actions.pod:2867
10833 msgid "lvm-set-filter"
10834 msgstr "lvm-set-filter"
10835
10836 #. type: verbatim
10837 #: ../fish/guestfish-actions.pod:2869
10838 #, no-wrap
10839 msgid ""
10840 " lvm-set-filter 'devices ...'\n"
10841 "\n"
10842 msgstr ""
10843 " lvm-set-filter 'пристрої...'\n"
10844 "\n"
10845
10846 #. type: textblock
10847 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4257
10848 msgid ""
10849 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10850 "block devices in the list C<devices>, and will ignore all other attached "
10851 "block devices."
10852 msgstr ""
10853
10854 #. type: textblock
10855 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
10856 msgid ""
10857 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10858 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10859 "there are two types of duplication possible: either cloned PVs/VGs which "
10860 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10861 "same name.  In normal operation you cannot create this situation, but you "
10862 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10863 "inside the LVM metadata."
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../fish/guestfish-actions.pod:2888 ../src/guestfs-actions.pod:4274
10868 msgid "You can filter whole block devices or individual partitions."
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4276
10873 msgid ""
10874 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10875 "filesystem), even if you are not filtering out that VG."
10876 msgstr ""
10877
10878 #. type: =head2
10879 #: ../fish/guestfish-actions.pod:2894
10880 msgid "lvremove"
10881 msgstr "lvremove"
10882
10883 #. type: verbatim
10884 #: ../fish/guestfish-actions.pod:2896
10885 #, no-wrap
10886 msgid ""
10887 " lvremove device\n"
10888 "\n"
10889 msgstr ""
10890 " lvremove пристрій\n"
10891 "\n"
10892
10893 #. type: textblock
10894 #: ../fish/guestfish-actions.pod:2898 ../src/guestfs-actions.pod:4290
10895 msgid ""
10896 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10897 "LV, such as C</dev/VG/LV>."
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4293
10902 msgid ""
10903 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10904 "dev/VG>."
10905 msgstr ""
10906
10907 #. type: =head2
10908 #: ../fish/guestfish-actions.pod:2904
10909 msgid "lvrename"
10910 msgstr "lvrename"
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:2906
10914 #, no-wrap
10915 msgid ""
10916 " lvrename logvol newlogvol\n"
10917 "\n"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4307
10922 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10923 msgstr ""
10924
10925 #. type: =head2
10926 #: ../fish/guestfish-actions.pod:2910
10927 msgid "lvresize"
10928 msgstr "lvresize"
10929
10930 #. type: verbatim
10931 #: ../fish/guestfish-actions.pod:2912
10932 #, no-wrap
10933 msgid ""
10934 " lvresize device mbytes\n"
10935 "\n"
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2914 ../src/guestfs-actions.pod:4320
10940 msgid ""
10941 "This resizes (expands or shrinks) an existing LVM logical volume to "
10942 "C<mbytes>.  When reducing, data in the reduced part is lost."
10943 msgstr ""
10944
10945 #. type: =head2
10946 #: ../fish/guestfish-actions.pod:2918
10947 msgid "lvresize-free"
10948 msgstr "lvresize-free"
10949
10950 #. type: verbatim
10951 #: ../fish/guestfish-actions.pod:2920
10952 #, no-wrap
10953 msgid ""
10954 " lvresize-free lv percent\n"
10955 "\n"
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4335
10960 msgid ""
10961 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10962 "remaining free space in the volume group.  Commonly you would call this with "
10963 "pc = 100 which expands the logical volume as much as possible, using all "
10964 "remaining free space in the volume group."
10965 msgstr ""
10966
10967 #. type: =head2
10968 #: ../fish/guestfish-actions.pod:2928
10969 msgid "lvs"
10970 msgstr "lvs"
10971
10972 #. type: verbatim
10973 #: ../fish/guestfish-actions.pod:2930
10974 #, no-wrap
10975 msgid ""
10976 " lvs\n"
10977 "\n"
10978 msgstr ""
10979 " lvs\n"
10980 "\n"
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2932 ../src/guestfs-actions.pod:4350
10984 msgid ""
10985 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10986 "(8)> command."
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4353
10991 msgid ""
10992 "This returns a list of the logical volume device names (eg. C</dev/"
10993 "VolGroup00/LogVol00>)."
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2938
10998 msgid "See also L</lvs-full>, L</list-filesystems>."
10999 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11000
11001 #. type: =head2
11002 #: ../fish/guestfish-actions.pod:2940
11003 msgid "lvs-full"
11004 msgstr "lvs-full"
11005
11006 #. type: verbatim
11007 #: ../fish/guestfish-actions.pod:2942
11008 #, no-wrap
11009 msgid ""
11010 " lvs-full\n"
11011 "\n"
11012 msgstr ""
11013 " lvs-full\n"
11014 "\n"
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4369
11018 msgid ""
11019 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11020 "(8)> command.  The \"full\" version includes all fields."
11021 msgstr ""
11022
11023 #. type: =head2
11024 #: ../fish/guestfish-actions.pod:2947
11025 msgid "lvuuid"
11026 msgstr "lvuuid"
11027
11028 #. type: verbatim
11029 #: ../fish/guestfish-actions.pod:2949
11030 #, no-wrap
11031 msgid ""
11032 " lvuuid device\n"
11033 "\n"
11034 msgstr ""
11035 " lvuuid пристрій\n"
11036 "\n"
11037
11038 #. type: textblock
11039 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4384
11040 msgid "This command returns the UUID of the LVM LV C<device>."
11041 msgstr ""
11042
11043 #. type: =head2
11044 #: ../fish/guestfish-actions.pod:2953
11045 msgid "lxattrlist"
11046 msgstr "lxattrlist"
11047
11048 #. type: verbatim
11049 #: ../fish/guestfish-actions.pod:2955
11050 #, no-wrap
11051 msgid ""
11052 " lxattrlist path 'names ...'\n"
11053 "\n"
11054 msgstr ""
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2957 ../src/guestfs-actions.pod:4398
11058 msgid ""
11059 "This call allows you to get the extended attributes of multiple files, where "
11060 "all files are in the directory C<path>.  C<names> is the list of files from "
11061 "this directory."
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
11066 msgid ""
11067 "On return you get a flat list of xattr structs which must be interpreted "
11068 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11069 "C<attrval> in this struct is zero-length to indicate there was an error "
11070 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11071 "number (the number of following attributes for this file, which could be C<"
11072 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11073 "for the first named file.  This repeats for the second and subsequent files."
11074 msgstr ""
11075
11076 #. type: textblock
11077 #: ../fish/guestfish-actions.pod:2971
11078 msgid ""
11079 "This call is intended for programs that want to efficiently list a directory "
11080 "contents without making many round-trips.  See also L</lstatlist> for a "
11081 "similarly efficient call for getting standard stats.  Very long directory "
11082 "listings might cause the protocol message size to be exceeded, causing this "
11083 "call to fail.  The caller must split up such requests into smaller groups of "
11084 "names."
11085 msgstr ""
11086
11087 #. type: =head2
11088 #: ../fish/guestfish-actions.pod:2979
11089 msgid "mkdir"
11090 msgstr "mkdir"
11091
11092 #. type: verbatim
11093 #: ../fish/guestfish-actions.pod:2981
11094 #, no-wrap
11095 msgid ""
11096 " mkdir path\n"
11097 "\n"
11098 msgstr ""
11099 " mkdir шлях\n"
11100 "\n"
11101
11102 #. type: textblock
11103 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4432
11104 msgid "Create a directory named C<path>."
11105 msgstr ""
11106
11107 #. type: =head2
11108 #: ../fish/guestfish-actions.pod:2985
11109 msgid "mkdir-mode"
11110 msgstr "mkdir-mode"
11111
11112 #. type: verbatim
11113 #: ../fish/guestfish-actions.pod:2987
11114 #, no-wrap
11115 msgid ""
11116 " mkdir-mode path mode\n"
11117 "\n"
11118 msgstr ""
11119 " mkdir-mode шлях режим\n"
11120 "\n"
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4445
11124 msgid ""
11125 "This command creates a directory, setting the initial permissions of the "
11126 "directory to C<mode>."
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4448
11131 msgid ""
11132 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11133 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11134 "other ways."
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:2996
11139 msgid "See also L</mkdir>, L</umask>"
11140 msgstr "Див. також L</mkdir>, L</umask>"
11141
11142 #. type: =head2
11143 #: ../fish/guestfish-actions.pod:2998
11144 msgid "mkdir-p"
11145 msgstr "mkdir-p"
11146
11147 #. type: verbatim
11148 #: ../fish/guestfish-actions.pod:3000
11149 #, no-wrap
11150 msgid ""
11151 " mkdir-p path\n"
11152 "\n"
11153 msgstr ""
11154 " mkdir-p шлях\n"
11155 "\n"
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4464
11159 msgid ""
11160 "Create a directory named C<path>, creating any parent directories as "
11161 "necessary.  This is like the C<mkdir -p> shell command."
11162 msgstr ""
11163
11164 #. type: =head2
11165 #: ../fish/guestfish-actions.pod:3005
11166 msgid "mkdtemp"
11167 msgstr "mkdtemp"
11168
11169 #. type: verbatim
11170 #: ../fish/guestfish-actions.pod:3007
11171 #, no-wrap
11172 msgid ""
11173 " mkdtemp template\n"
11174 "\n"
11175 msgstr ""
11176 " mkdtemp шаблон\n"
11177 "\n"
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4477
11181 msgid ""
11182 "This command creates a temporary directory.  The C<template> parameter "
11183 "should be a full pathname for the temporary directory name with the final "
11184 "six characters being \"XXXXXX\"."
11185 msgstr ""
11186
11187 #. type: textblock
11188 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4482
11189 msgid ""
11190 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11191 "being suitable for Windows filesystems."
11192 msgstr ""
11193
11194 #. type: textblock
11195 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4485
11196 msgid "The name of the temporary directory that was created is returned."
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4488
11201 msgid "The temporary directory is created with mode 0700 and is owned by root."
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4491
11206 msgid ""
11207 "The caller is responsible for deleting the temporary directory and its "
11208 "contents after use."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4494
11213 msgid "See also: L<mkdtemp(3)>"
11214 msgstr ""
11215
11216 #. type: =head2
11217 #: ../fish/guestfish-actions.pod:3028
11218 msgid "mke2fs-J"
11219 msgstr "mke2fs-J"
11220
11221 #. type: verbatim
11222 #: ../fish/guestfish-actions.pod:3030
11223 #, no-wrap
11224 msgid ""
11225 " mke2fs-J fstype blocksize device journal\n"
11226 "\n"
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:3032 ../src/guestfs-actions.pod:4510
11231 msgid ""
11232 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11233 "C<journal>.  It is equivalent to the command:"
11234 msgstr ""
11235
11236 #. type: verbatim
11237 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
11238 #, no-wrap
11239 msgid ""
11240 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11241 "\n"
11242 msgstr ""
11243 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11244 "\n"
11245
11246 #. type: textblock
11247 #: ../fish/guestfish-actions.pod:3038
11248 msgid "See also L</mke2journal>."
11249 msgstr "Див. також L</mke2journal>."
11250
11251 #. type: =head2
11252 #: ../fish/guestfish-actions.pod:3040
11253 msgid "mke2fs-JL"
11254 msgstr "mke2fs-JL"
11255
11256 #. type: verbatim
11257 #: ../fish/guestfish-actions.pod:3042
11258 #, no-wrap
11259 msgid ""
11260 " mke2fs-JL fstype blocksize device label\n"
11261 "\n"
11262 msgstr ""
11263
11264 #. type: textblock
11265 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4531
11266 msgid ""
11267 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11268 "the journal labeled C<label>."
11269 msgstr ""
11270
11271 #. type: textblock
11272 #: ../fish/guestfish-actions.pod:3047
11273 msgid "See also L</mke2journal-L>."
11274 msgstr "Див. також L</mke2journal-L>."
11275
11276 #. type: =head2
11277 #: ../fish/guestfish-actions.pod:3049
11278 msgid "mke2fs-JU"
11279 msgstr "mke2fs-JU"
11280
11281 #. type: verbatim
11282 #: ../fish/guestfish-actions.pod:3051
11283 #, no-wrap
11284 msgid ""
11285 " mke2fs-JU fstype blocksize device uuid\n"
11286 "\n"
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4549
11291 msgid ""
11292 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11293 "the journal with UUID C<uuid>."
11294 msgstr ""
11295
11296 #. type: textblock
11297 #: ../fish/guestfish-actions.pod:3056
11298 msgid "See also L</mke2journal-U>."
11299 msgstr "Див. також L</mke2journal-U>."
11300
11301 #. type: =head2
11302 #: ../fish/guestfish-actions.pod:3058
11303 msgid "mke2journal"
11304 msgstr "mke2journal"
11305
11306 #. type: verbatim
11307 #: ../fish/guestfish-actions.pod:3060
11308 #, no-wrap
11309 msgid ""
11310 " mke2journal blocksize device\n"
11311 "\n"
11312 msgstr ""
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4565
11316 msgid ""
11317 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11318 "command:"
11319 msgstr ""
11320
11321 #. type: verbatim
11322 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4568
11323 #, no-wrap
11324 msgid ""
11325 " mke2fs -O journal_dev -b blocksize device\n"
11326 "\n"
11327 msgstr ""
11328
11329 #. type: =head2
11330 #: ../fish/guestfish-actions.pod:3067
11331 msgid "mke2journal-L"
11332 msgstr "mke2journal-L"
11333
11334 #. type: verbatim
11335 #: ../fish/guestfish-actions.pod:3069
11336 #, no-wrap
11337 msgid ""
11338 " mke2journal-L blocksize label device\n"
11339 "\n"
11340 msgstr ""
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4582
11344 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:3073
11349 msgid "mke2journal-U"
11350 msgstr "mke2journal-U"
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:3075
11354 #, no-wrap
11355 msgid ""
11356 " mke2journal-U blocksize uuid device\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4596
11362 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11363 msgstr ""
11364
11365 #. type: =head2
11366 #: ../fish/guestfish-actions.pod:3079
11367 msgid "mkfifo"
11368 msgstr "mkfifo"
11369
11370 #. type: verbatim
11371 #: ../fish/guestfish-actions.pod:3081
11372 #, no-wrap
11373 msgid ""
11374 " mkfifo mode path\n"
11375 "\n"
11376 msgstr ""
11377 " mkfifo режим шлях\n"
11378 "\n"
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:3083
11382 msgid ""
11383 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11384 "is just a convenient wrapper around L</mknod>."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:3089
11389 msgid "mkfs"
11390 msgstr "mkfs"
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:3091
11394 #, no-wrap
11395 msgid ""
11396 " mkfs fstype device\n"
11397 "\n"
11398 msgstr ""
11399 " mkfs тип_файлової_системи пристрій\n"
11400 "\n"
11401
11402 #. type: textblock
11403 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4626
11404 msgid ""
11405 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11406 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11407 msgstr ""
11408
11409 #. type: =head2
11410 #: ../fish/guestfish-actions.pod:3097
11411 msgid "mkfs-b"
11412 msgstr "mkfs-b"
11413
11414 #. type: verbatim
11415 #: ../fish/guestfish-actions.pod:3099
11416 #, no-wrap
11417 msgid ""
11418 " mkfs-b fstype blocksize device\n"
11419 "\n"
11420 msgstr ""
11421
11422 #. type: textblock
11423 #: ../fish/guestfish-actions.pod:3101
11424 msgid ""
11425 "This call is similar to L</mkfs>, but it allows you to control the block "
11426 "size of the resulting filesystem.  Supported block sizes depend on the "
11427 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3133
11432 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4692
11433 msgid ""
11434 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11435 "cluster size."
11436 msgstr ""
11437
11438 #. type: textblock
11439 #: ../fish/guestfish-actions.pod:3109
11440 msgid ""
11441 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
11442 "instead."
11443 msgstr ""
11444
11445 #. type: =head2
11446 #: ../fish/guestfish-actions.pod:3116
11447 msgid "mkfs-opts"
11448 msgstr "mkfs-opts"
11449
11450 #. type: verbatim
11451 #: ../fish/guestfish-actions.pod:3118
11452 #, no-wrap
11453 msgid ""
11454 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11455 "\n"
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11460 msgid ""
11461 "This function creates a filesystem on C<device>.  The filesystem type is "
11462 "C<fstype>, for example C<ext3>."
11463 msgstr ""
11464
11465 #. type: =item
11466 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11467 msgid "C<blocksize>"
11468 msgstr "C<blocksize>"
11469
11470 #. type: textblock
11471 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11472 msgid ""
11473 "The filesystem block size.  Supported block sizes depend on the filesystem "
11474 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11475 "filesystems."
11476 msgstr ""
11477
11478 #. type: textblock
11479 #: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4695
11480 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11481 msgstr ""
11482
11483 #. type: =item
11484 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4697
11485 msgid "C<features>"
11486 msgstr "C<features>"
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
11490 msgid "This passes the I<-O> parameter to the external mkfs program."
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
11495 msgid ""
11496 "For certain filesystem types, this allows extra filesystem features to be "
11497 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
11502 msgid ""
11503 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11504 "type."
11505 msgstr ""
11506
11507 #. type: =item
11508 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4708
11509 msgid "C<inode>"
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4710
11514 msgid ""
11515 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11516 "sets the inode size (only for ext2/3/4 filesystems at present)."
11517 msgstr ""
11518
11519 #. type: =item
11520 #: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4713
11521 msgid "C<sectorsize>"
11522 msgstr ""
11523
11524 #. type: textblock
11525 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4715
11526 msgid ""
11527 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11528 "sets sector size for ufs filesystem."
11529 msgstr ""
11530
11531 #. type: =head2
11532 #: ../fish/guestfish-actions.pod:3163
11533 msgid "mkmountpoint"
11534 msgstr "mkmountpoint"
11535
11536 #. type: verbatim
11537 #: ../fish/guestfish-actions.pod:3165
11538 #, no-wrap
11539 msgid ""
11540 " mkmountpoint exemptpath\n"
11541 "\n"
11542 msgstr ""
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:3167
11546 msgid ""
11547 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11548 "to create extra mountpoints before mounting the first filesystem."
11549 msgstr ""
11550
11551 #. type: textblock
11552 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4758
11553 msgid ""
11554 "These calls are I<only> necessary in some very limited circumstances, mainly "
11555 "the case where you want to mount a mix of unrelated and/or read-only "
11556 "filesystems together."
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
11561 msgid ""
11562 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11563 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11564 "inside that.  You can unpack this as follows in guestfish:"
11565 msgstr ""
11566
11567 #. type: verbatim
11568 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4767
11569 #, no-wrap
11570 msgid ""
11571 " add-ro Fedora-11-i686-Live.iso\n"
11572 " run\n"
11573 " mkmountpoint /cd\n"
11574 " mkmountpoint /sqsh\n"
11575 " mkmountpoint /ext3fs\n"
11576 " mount /dev/sda /cd\n"
11577 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11578 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11579 "\n"
11580 msgstr ""
11581 " add-ro Fedora-11-i686-Live.iso\n"
11582 " run\n"
11583 " mkmountpoint /cd\n"
11584 " mkmountpoint /sqsh\n"
11585 " mkmountpoint /ext3fs\n"
11586 " mount /dev/sda /cd\n"
11587 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11588 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11589 "\n"
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4776
11593 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11594 msgstr ""
11595
11596 #. type: textblock
11597 #: ../fish/guestfish-actions.pod:3191
11598 msgid ""
11599 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11600 "unexpected errors if you try to mix these calls.  It is safest to manually "
11601 "unmount filesystems and remove mountpoints after use."
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:3195
11606 msgid ""
11607 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11608 "for this to work for manual mountpoints, you must ensure that the innermost "
11609 "mountpoints have the longest pathnames, as in the example code above."
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4787
11614 msgid ""
11615 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11616 msgstr ""
11617
11618 #. type: textblock
11619 #: ../fish/guestfish-actions.pod:3202
11620 msgid ""
11621 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11622 "L</umount-all> to be called when the handle is closed which can also trigger "
11623 "these issues."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3206
11628 msgid "mknod"
11629 msgstr "mknod"
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3208
11633 #, no-wrap
11634 msgid ""
11635 " mknod mode devmajor devminor path\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4806
11641 msgid ""
11642 "This call creates block or character special devices, or named pipes (FIFOs)."
11643 msgstr ""
11644
11645 #. type: textblock
11646 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4809
11647 msgid ""
11648 "The C<mode> parameter should be the mode, using the standard constants.  "
11649 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11650 "used when creating block and character special devices."
11651 msgstr ""
11652
11653 #. type: textblock
11654 #: ../fish/guestfish-actions.pod:3218
11655 msgid ""
11656 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11657 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11658 "regular file).  These constants are available in the standard Linux header "
11659 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11660 "wrappers around this command which bitwise OR in the appropriate constant "
11661 "for you."
11662 msgstr ""
11663
11664 #. type: =head2
11665 #: ../fish/guestfish-actions.pod:3228
11666 msgid "mknod-b"
11667 msgstr "mknod-b"
11668
11669 #. type: verbatim
11670 #: ../fish/guestfish-actions.pod:3230
11671 #, no-wrap
11672 msgid ""
11673 " mknod-b mode devmajor devminor path\n"
11674 "\n"
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:3232
11679 msgid ""
11680 "This call creates a block device node called C<path> with mode C<mode> and "
11681 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11682 "wrapper around L</mknod>."
11683 msgstr ""
11684
11685 #. type: =head2
11686 #: ../fish/guestfish-actions.pod:3238
11687 msgid "mknod-c"
11688 msgstr "mknod-c"
11689
11690 #. type: verbatim
11691 #: ../fish/guestfish-actions.pod:3240
11692 #, no-wrap
11693 msgid ""
11694 " mknod-c mode devmajor devminor path\n"
11695 "\n"
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../fish/guestfish-actions.pod:3242
11700 msgid ""
11701 "This call creates a char device node called C<path> with mode C<mode> and "
11702 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11703 "wrapper around L</mknod>."
11704 msgstr ""
11705
11706 #. type: =head2
11707 #: ../fish/guestfish-actions.pod:3248
11708 msgid "mkswap"
11709 msgstr "mkswap"
11710
11711 #. type: verbatim
11712 #: ../fish/guestfish-actions.pod:3250
11713 #, no-wrap
11714 msgid ""
11715 " mkswap device\n"
11716 "\n"
11717 msgstr ""
11718 " mkswap пристрій\n"
11719 "\n"
11720
11721 #. type: textblock
11722 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4872
11723 msgid "Create a swap partition on C<device>."
11724 msgstr ""
11725
11726 #. type: =head2
11727 #: ../fish/guestfish-actions.pod:3254
11728 msgid "mkswap-L"
11729 msgstr "mkswap-L"
11730
11731 #. type: verbatim
11732 #: ../fish/guestfish-actions.pod:3256
11733 #, no-wrap
11734 msgid ""
11735 " mkswap-L label device\n"
11736 "\n"
11737 msgstr ""
11738 " mkswap-L мітка пристрій\n"
11739 "\n"
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4885
11743 msgid "Create a swap partition on C<device> with label C<label>."
11744 msgstr ""
11745
11746 #. type: textblock
11747 #: ../fish/guestfish-actions.pod:3260 ../src/guestfs-actions.pod:4887
11748 msgid ""
11749 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11750 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11751 "or swap tools."
11752 msgstr ""
11753
11754 #. type: =head2
11755 #: ../fish/guestfish-actions.pod:3264
11756 msgid "mkswap-U"
11757 msgstr "mkswap-U"
11758
11759 #. type: verbatim
11760 #: ../fish/guestfish-actions.pod:3266
11761 #, no-wrap
11762 msgid ""
11763 " mkswap-U uuid device\n"
11764 "\n"
11765 msgstr ""
11766 " mkswap-U uuid пристрій\n"
11767 "\n"
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4902
11771 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11772 msgstr ""
11773
11774 #. type: =head2
11775 #: ../fish/guestfish-actions.pod:3270
11776 msgid "mkswap-file"
11777 msgstr "mkswap-file"
11778
11779 #. type: verbatim
11780 #: ../fish/guestfish-actions.pod:3272
11781 #, no-wrap
11782 msgid ""
11783 " mkswap-file path\n"
11784 "\n"
11785 msgstr ""
11786 " mkswap-file шлях\n"
11787 "\n"
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:4914
11791 msgid "Create a swap file."
11792 msgstr "Створити файл резервної пам’яті."
11793
11794 #. type: textblock
11795 #: ../fish/guestfish-actions.pod:3276
11796 msgid ""
11797 "This command just writes a swap file signature to an existing file.  To "
11798 "create the file itself, use something like L</fallocate>."
11799 msgstr ""
11800
11801 #. type: =head2
11802 #: ../fish/guestfish-actions.pod:3279
11803 msgid "modprobe"
11804 msgstr "modprobe"
11805
11806 #. type: verbatim
11807 #: ../fish/guestfish-actions.pod:3281
11808 #, no-wrap
11809 msgid ""
11810 " modprobe modulename\n"
11811 "\n"
11812 msgstr ""
11813 " modprobe назва_модуля\n"
11814 "\n"
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:4929
11818 msgid "This loads a kernel module in the appliance."
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:3285 ../src/guestfs-actions.pod:4931
11823 msgid ""
11824 "The kernel module must have been whitelisted when libguestfs was built (see "
11825 "C<appliance/kmod.whitelist.in> in the source)."
11826 msgstr ""
11827
11828 #. type: =head2
11829 #: ../fish/guestfish-actions.pod:3288
11830 msgid "mount"
11831 msgstr "mount"
11832
11833 #. type: verbatim
11834 #: ../fish/guestfish-actions.pod:3290
11835 #, no-wrap
11836 msgid ""
11837 " mount device mountpoint\n"
11838 "\n"
11839 msgstr ""
11840 " mount пристрій точка_монтування\n"
11841 "\n"
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:4945
11845 msgid ""
11846 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11847 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11848 "those block devices contain partitions, they will have the usual names (eg. "
11849 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11850 msgstr ""
11851
11852 #. type: textblock
11853 #: ../fish/guestfish-actions.pod:3298 ../src/guestfs-actions.pod:4951
11854 msgid ""
11855 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11856 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11857 "mounted on directories which already exist."
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4956
11862 msgid ""
11863 "The mounted filesystem is writable, if we have sufficient permissions on the "
11864 "underlying device."
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:3306
11869 msgid ""
11870 "B<Important note:> When you use this call, the filesystem options C<sync> "
11871 "and C<noatime> are set implicitly.  This was originally done because we "
11872 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11873 "very large negative performance impact and negligible effect on "
11874 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11875 "code that needs performance, and instead use L</mount-options> (use an empty "
11876 "string for the first parameter if you don't want any options)."
11877 msgstr ""
11878
11879 #. type: textblock
11880 #: ../fish/guestfish-actions.pod:3316
11881 msgid ""
11882 "This function is deprecated.  In new code, use the L</mount_options> call "
11883 "instead."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:3323
11888 msgid "mount-9p"
11889 msgstr ""
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:3325
11893 #, no-wrap
11894 msgid ""
11895 " mount-9p mounttag mountpoint [options:..]\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:4995
11901 msgid ""
11902 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11903 "C<mountpoint>."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:4998
11908 msgid ""
11909 "If required, C<trans=virtio> will be automatically added to the options.  "
11910 "Any other options required can be passed in the optional C<options> "
11911 "parameter."
11912 msgstr ""
11913
11914 #. type: =head2
11915 #: ../fish/guestfish-actions.pod:3336
11916 msgid "mount-loop"
11917 msgstr "mount-loop"
11918
11919 #. type: verbatim
11920 #: ../fish/guestfish-actions.pod:3338
11921 #, no-wrap
11922 msgid ""
11923 " mount-loop file mountpoint\n"
11924 "\n"
11925 msgstr ""
11926
11927 #. type: textblock
11928 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5037
11929 msgid ""
11930 "This command lets you mount C<file> (a filesystem image in a file) on a "
11931 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11932 "mountpoint>."
11933 msgstr ""
11934
11935 #. type: =head2
11936 #: ../fish/guestfish-actions.pod:3344
11937 msgid "mount-options"
11938 msgstr "mount-options"
11939
11940 #. type: verbatim
11941 #: ../fish/guestfish-actions.pod:3346
11942 #, no-wrap
11943 msgid ""
11944 " mount-options options device mountpoint\n"
11945 "\n"
11946 msgstr ""
11947
11948 #. type: textblock
11949 #: ../fish/guestfish-actions.pod:3348
11950 msgid ""
11951 "This is the same as the L</mount> command, but it allows you to set the "
11952 "mount options as for the L<mount(8)> I<-o> flag."
11953 msgstr ""
11954
11955 #. type: textblock
11956 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5057
11957 msgid ""
11958 "If the C<options> parameter is an empty string, then no options are passed "
11959 "(all options default to whatever the filesystem uses)."
11960 msgstr ""
11961
11962 #. type: =head2
11963 #: ../fish/guestfish-actions.pod:3356
11964 msgid "mount-ro"
11965 msgstr "mount-ro"
11966
11967 #. type: verbatim
11968 #: ../fish/guestfish-actions.pod:3358
11969 #, no-wrap
11970 msgid ""
11971 " mount-ro device mountpoint\n"
11972 "\n"
11973 msgstr ""
11974 " mount-ro пристрій точка_монтування\n"
11975 "\n"
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:3360
11979 msgid ""
11980 "This is the same as the L</mount> command, but it mounts the filesystem with "
11981 "the read-only (I<-o ro>) flag."
11982 msgstr ""
11983
11984 #. type: =head2
11985 #: ../fish/guestfish-actions.pod:3363
11986 msgid "mount-vfs"
11987 msgstr "mount-vfs"
11988
11989 #. type: verbatim
11990 #: ../fish/guestfish-actions.pod:3365
11991 #, no-wrap
11992 msgid ""
11993 " mount-vfs options vfstype device mountpoint\n"
11994 "\n"
11995 msgstr ""
11996
11997 #. type: textblock
11998 #: ../fish/guestfish-actions.pod:3367
11999 msgid ""
12000 "This is the same as the L</mount> command, but it allows you to set both the "
12001 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12002 msgstr ""
12003
12004 #. type: =head2
12005 #: ../fish/guestfish-actions.pod:3371
12006 msgid "mountpoints"
12007 msgstr "mountpoints"
12008
12009 #. type: verbatim
12010 #: ../fish/guestfish-actions.pod:3373
12011 #, no-wrap
12012 msgid ""
12013 " mountpoints\n"
12014 "\n"
12015 msgstr ""
12016 " mountpoints\n"
12017 "\n"
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3375
12021 msgid ""
12022 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12023 "This one returns a hash table (map) of device name to directory where the "
12024 "device is mounted."
12025 msgstr ""
12026
12027 #. type: =head2
12028 #: ../fish/guestfish-actions.pod:3379
12029 msgid "mounts"
12030 msgstr "mounts"
12031
12032 #. type: verbatim
12033 #: ../fish/guestfish-actions.pod:3381
12034 #, no-wrap
12035 msgid ""
12036 " mounts\n"
12037 "\n"
12038 msgstr ""
12039 " mounts\n"
12040 "\n"
12041
12042 #. type: textblock
12043 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5118
12044 msgid ""
12045 "This returns the list of currently mounted filesystems.  It returns the list "
12046 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12047 msgstr ""
12048
12049 #. type: textblock
12050 #: ../fish/guestfish-actions.pod:3386 ../src/guestfs-actions.pod:5121
12051 msgid "Some internal mounts are not shown."
12052 msgstr ""
12053
12054 #. type: textblock
12055 #: ../fish/guestfish-actions.pod:3388
12056 msgid "See also: L</mountpoints>"
12057 msgstr "Див. також L</mountpoints>"
12058
12059 #. type: =head2
12060 #: ../fish/guestfish-actions.pod:3390
12061 msgid "mv"
12062 msgstr "mv"
12063
12064 #. type: verbatim
12065 #: ../fish/guestfish-actions.pod:3392
12066 #, no-wrap
12067 msgid ""
12068 " mv src dest\n"
12069 "\n"
12070 msgstr ""
12071 " mv джерело призначення\n"
12072 "\n"
12073
12074 #. type: textblock
12075 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5138
12076 msgid ""
12077 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12078 "destination filename or destination directory."
12079 msgstr ""
12080
12081 #. type: =head2
12082 #: ../fish/guestfish-actions.pod:3397
12083 msgid "ntfs-3g-probe"
12084 msgstr "ntfs-3g-probe"
12085
12086 #. type: verbatim
12087 #: ../fish/guestfish-actions.pod:3399
12088 #, no-wrap
12089 msgid ""
12090 " ntfs-3g-probe true|false device\n"
12091 "\n"
12092 msgstr ""
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5152
12096 msgid ""
12097 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12098 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12099 "write, and some cannot be mounted at all)."
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
12104 msgid ""
12105 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12106 "can be mounted read-write.  Set it to false if you want to test if the "
12107 "volume can be mounted read-only."
12108 msgstr ""
12109
12110 #. type: textblock
12111 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
12112 msgid ""
12113 "The return value is an integer which C<0> if the operation would succeed, or "
12114 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12115 msgstr ""
12116
12117 #. type: =head2
12118 #: ../fish/guestfish-actions.pod:3413
12119 msgid "ntfsresize"
12120 msgstr "ntfsresize"
12121
12122 #. type: verbatim
12123 #: ../fish/guestfish-actions.pod:3415
12124 #, no-wrap
12125 msgid ""
12126 " ntfsresize device\n"
12127 "\n"
12128 msgstr ""
12129 " ntfsresize пристрій\n"
12130 "\n"
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3441
12134 #: ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5213
12135 msgid ""
12136 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12137 "size of the underlying device."
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5177
12142 msgid ""
12143 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12144 "consistency check (for safety).  You have to boot into Windows to perform "
12145 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12146 "resize filesystems which have been marked in this way.  So in effect it is "
12147 "not possible to call ntfsresize multiple times on a single filesystem "
12148 "without booting into Windows between each resize."
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:3428 ../fish/guestfish-actions.pod:3467
12153 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5239
12154 msgid "See also L<ntfsresize(8)>."
12155 msgstr ""
12156
12157 #. type: textblock
12158 #: ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3478
12159 msgid ""
12160 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
12161 "instead."
12162 msgstr ""
12163
12164 #. type: =head2
12165 #: ../fish/guestfish-actions.pod:3437
12166 msgid "ntfsresize-opts"
12167 msgstr ""
12168
12169 #. type: verbatim
12170 #: ../fish/guestfish-actions.pod:3439
12171 #, no-wrap
12172 msgid ""
12173 " ntfsresize-opts device [size:..] [force:..]\n"
12174 "\n"
12175 msgstr ""
12176
12177 #. type: textblock
12178 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5222
12179 msgid ""
12180 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12181 "resized to fit the container (eg. partition)."
12182 msgstr ""
12183
12184 #. type: =item
12185 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5225
12186 msgid "C<force>"
12187 msgstr ""
12188
12189 #. type: textblock
12190 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5227
12191 msgid ""
12192 "If this option is true, then force the resize of the filesystem even if the "
12193 "filesystem is marked as requiring a consistency check."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:3458
12198 msgid ""
12199 "After the resize operation, the filesystem is always marked as requiring a "
12200 "consistency check (for safety).  You have to boot into Windows to perform "
12201 "this check and clear this condition.  If you I<don't> set the C<force> "
12202 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12203 "a single filesystem without booting into Windows between each resize."
12204 msgstr ""
12205
12206 #. type: =head2
12207 #: ../fish/guestfish-actions.pod:3471
12208 msgid "ntfsresize-size"
12209 msgstr "ntfsresize-size"
12210
12211 #. type: verbatim
12212 #: ../fish/guestfish-actions.pod:3473
12213 #, no-wrap
12214 msgid ""
12215 " ntfsresize-size device size\n"
12216 "\n"
12217 msgstr ""
12218
12219 #. type: textblock
12220 #: ../fish/guestfish-actions.pod:3475
12221 msgid ""
12222 "This command is the same as L</ntfsresize> except that it allows you to "
12223 "specify the new size (in bytes) explicitly."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:3485
12228 msgid "part-add"
12229 msgstr "part-add"
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:3487
12233 #, no-wrap
12234 msgid ""
12235 " part-add device prlogex startsect endsect\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3489
12241 msgid ""
12242 "This command adds a partition to C<device>.  If there is no partition table "
12243 "on the device, call L</part-init> first."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5300
12248 msgid ""
12249 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12250 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12251 "C<logical>) and C<e> (or C<extended>) partition types."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5305
12256 msgid ""
12257 "C<startsect> and C<endsect> are the start and end of the partition in "
12258 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12259 "from the end of the disk (C<-1> is the last sector)."
12260 msgstr ""
12261
12262 #. type: textblock
12263 #: ../fish/guestfish-actions.pod:3501
12264 msgid ""
12265 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12266 "part-disk> to do that."
12267 msgstr ""
12268
12269 #. type: =head2
12270 #: ../fish/guestfish-actions.pod:3504
12271 msgid "part-del"
12272 msgstr "part-del"
12273
12274 #. type: verbatim
12275 #: ../fish/guestfish-actions.pod:3506
12276 #, no-wrap
12277 msgid ""
12278 " part-del device partnum\n"
12279 "\n"
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5323
12284 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5325
12289 msgid ""
12290 "Note that in the case of MBR partitioning, deleting an extended partition "
12291 "also deletes any logical partitions it contains."
12292 msgstr ""
12293
12294 #. type: =head2
12295 #: ../fish/guestfish-actions.pod:3514
12296 msgid "part-disk"
12297 msgstr "part-disk"
12298
12299 #. type: verbatim
12300 #: ../fish/guestfish-actions.pod:3516
12301 #, no-wrap
12302 msgid ""
12303 " part-disk device parttype\n"
12304 "\n"
12305 msgstr ""
12306 " part-disk пристрій тип_розділу\n"
12307 "\n"
12308
12309 #. type: textblock
12310 #: ../fish/guestfish-actions.pod:3518
12311 msgid ""
12312 "This command is simply a combination of L</part-init> followed by L</part-"
12313 "add> to create a single primary partition covering the whole disk."
12314 msgstr ""
12315
12316 #. type: textblock
12317 #: ../fish/guestfish-actions.pod:3522
12318 msgid ""
12319 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12320 "possible values are described in L</part-init>."
12321 msgstr ""
12322
12323 #. type: =head2
12324 #: ../fish/guestfish-actions.pod:3528
12325 msgid "part-get-bootable"
12326 msgstr "part-get-bootable"
12327
12328 #. type: verbatim
12329 #: ../fish/guestfish-actions.pod:3530
12330 #, no-wrap
12331 msgid ""
12332 " part-get-bootable device partnum\n"
12333 "\n"
12334 msgstr ""
12335
12336 #. type: textblock
12337 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5361
12338 msgid ""
12339 "This command returns true if the partition C<partnum> on C<device> has the "
12340 "bootable flag set."
12341 msgstr ""
12342
12343 #. type: textblock
12344 #: ../fish/guestfish-actions.pod:3535
12345 msgid "See also L</part-set-bootable>."
12346 msgstr "Див. також L</part-set-bootable>."
12347
12348 #. type: =head2
12349 #: ../fish/guestfish-actions.pod:3537
12350 msgid "part-get-mbr-id"
12351 msgstr "part-get-mbr-id"
12352
12353 #. type: verbatim
12354 #: ../fish/guestfish-actions.pod:3539
12355 #, no-wrap
12356 msgid ""
12357 " part-get-mbr-id device partnum\n"
12358 "\n"
12359 msgstr ""
12360
12361 #. type: textblock
12362 #: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5377
12363 msgid ""
12364 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12365 "partition C<partnum>."
12366 msgstr ""
12367
12368 #. type: textblock
12369 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3688
12370 msgid ""
12371 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12372 "undefined results for other partition table types (see L</part-get-"
12373 "parttype>)."
12374 msgstr ""
12375
12376 #. type: =head2
12377 #: ../fish/guestfish-actions.pod:3548
12378 msgid "part-get-parttype"
12379 msgstr "part-get-parttype"
12380
12381 #. type: verbatim
12382 #: ../fish/guestfish-actions.pod:3550
12383 #, no-wrap
12384 msgid ""
12385 " part-get-parttype device\n"
12386 "\n"
12387 msgstr ""
12388 " part-get-parttype пристрій\n"
12389 "\n"
12390
12391 #. type: textblock
12392 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5394
12393 msgid ""
12394 "This command examines the partition table on C<device> and returns the "
12395 "partition table type (format) being used."
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../fish/guestfish-actions.pod:3555
12400 msgid ""
12401 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12402 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12403 "possible, although unusual.  See L</part-init> for a full list."
12404 msgstr ""
12405
12406 #. type: =head2
12407 #: ../fish/guestfish-actions.pod:3560
12408 msgid "part-init"
12409 msgstr "part-init"
12410
12411 #. type: verbatim
12412 #: ../fish/guestfish-actions.pod:3562
12413 #, no-wrap
12414 msgid ""
12415 " part-init device parttype\n"
12416 "\n"
12417 msgstr ""
12418
12419 #. type: textblock
12420 #: ../fish/guestfish-actions.pod:3564 ../src/guestfs-actions.pod:5414
12421 msgid ""
12422 "This creates an empty partition table on C<device> of one of the partition "
12423 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12424 "(for large disks)."
12425 msgstr ""
12426
12427 #. type: textblock
12428 #: ../fish/guestfish-actions.pod:3568
12429 msgid ""
12430 "Initially there are no partitions.  Following this, you should call L</part-"
12431 "add> for each partition required."
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5421
12436 msgid "Possible values for C<parttype> are:"
12437 msgstr ""
12438
12439 #. type: =item
12440 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
12441 msgid "B<efi>"
12442 msgstr ""
12443
12444 #. type: =item
12445 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5427
12446 msgid "B<gpt>"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12451 msgid "Intel EFI / GPT partition table."
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12456 msgid ""
12457 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12458 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12459 "the C<mbr> format."
12460 msgstr ""
12461
12462 #. type: =item
12463 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12464 msgid "B<mbr>"
12465 msgstr ""
12466
12467 #. type: =item
12468 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12469 msgid "B<msdos>"
12470 msgstr ""
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12474 msgid ""
12475 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12476 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12477 "TB.  For large disks we recommend using C<gpt>."
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
12482 msgid ""
12483 "Other partition table types that may work but are not supported include:"
12484 msgstr ""
12485
12486 #. type: =item
12487 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12488 msgid "B<aix>"
12489 msgstr "B<aix>"
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12493 msgid "AIX disk labels."
12494 msgstr "Мітки дисків AIX."
12495
12496 #. type: =item
12497 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12498 #, fuzzy
12499 #| msgid "B<amiga> | B<rdb>"
12500 msgid "B<amiga>"
12501 msgstr "B<amiga> | B<rdb>"
12502
12503 #. type: =item
12504 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12505 msgid "B<rdb>"
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12510 msgid "Amiga \"Rigid Disk Block\" format."
12511 msgstr "Формат \"Rigid Disk Block\" Amiga."
12512
12513 #. type: =item
12514 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12515 msgid "B<bsd>"
12516 msgstr "B<bsd>"
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
12520 msgid "BSD disk labels."
12521 msgstr "Мітки дисків BSD."
12522
12523 #. type: =item
12524 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
12525 msgid "B<dasd>"
12526 msgstr "B<dasd>"
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
12530 msgid "DASD, used on IBM mainframes."
12531 msgstr "DASD, використовувалися у мейнфреймах IBM."
12532
12533 #. type: =item
12534 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
12535 msgid "B<dvh>"
12536 msgstr "B<dvh>"
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
12540 msgid "MIPS/SGI volumes."
12541 msgstr "Томи MIPS/SGI."
12542
12543 #. type: =item
12544 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
12545 msgid "B<mac>"
12546 msgstr "B<mac>"
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
12550 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12551 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12552
12553 #. type: =item
12554 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
12555 msgid "B<pc98>"
12556 msgstr "B<pc98>"
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
12560 msgid "NEC PC-98 format, common in Japan apparently."
12561 msgstr "Формат NEC PC-98, поширений у Японії."
12562
12563 #. type: =item
12564 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
12565 msgid "B<sun>"
12566 msgstr "B<sun>"
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
12570 msgid "Sun disk labels."
12571 msgstr "Мітки дисків Sun."
12572
12573 #. type: =head2
12574 #: ../fish/guestfish-actions.pod:3637
12575 msgid "part-list"
12576 msgstr "part-list"
12577
12578 #. type: verbatim
12579 #: ../fish/guestfish-actions.pod:3639
12580 #, no-wrap
12581 msgid ""
12582 " part-list device\n"
12583 "\n"
12584 msgstr ""
12585 " part-list device\n"
12586 "\n"
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12590 msgid ""
12591 "This command parses the partition table on C<device> and returns the list of "
12592 "partitions found."
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5500
12597 msgid "The fields in the returned structure are:"
12598 msgstr ""
12599
12600 #. type: =item
12601 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
12602 msgid "B<part_num>"
12603 msgstr "B<part_num>"
12604
12605 #. type: textblock
12606 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5506
12607 msgid "Partition number, counting from 1."
12608 msgstr ""
12609
12610 #. type: =item
12611 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
12612 msgid "B<part_start>"
12613 msgstr "B<part_start>"
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3654
12617 msgid ""
12618 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12619 "the device's sector size, see L</blockdev-getss>."
12620 msgstr ""
12621
12622 #. type: =item
12623 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5513
12624 msgid "B<part_end>"
12625 msgstr "B<part_end>"
12626
12627 #. type: textblock
12628 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5515
12629 msgid "End of the partition in bytes."
12630 msgstr ""
12631
12632 #. type: =item
12633 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
12634 msgid "B<part_size>"
12635 msgstr "B<part_size>"
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
12639 msgid "Size of the partition in bytes."
12640 msgstr ""
12641
12642 #. type: =head2
12643 #: ../fish/guestfish-actions.pod:3667
12644 msgid "part-set-bootable"
12645 msgstr "part-set-bootable"
12646
12647 #. type: verbatim
12648 #: ../fish/guestfish-actions.pod:3669
12649 #, no-wrap
12650 msgid ""
12651 " part-set-bootable device partnum true|false\n"
12652 "\n"
12653 msgstr ""
12654
12655 #. type: textblock
12656 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5537
12657 msgid ""
12658 "This sets the bootable flag on partition numbered C<partnum> on device "
12659 "C<device>.  Note that partitions are numbered from 1."
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5540
12664 msgid ""
12665 "The bootable flag is used by some operating systems (notably Windows) to "
12666 "determine which partition to boot from.  It is by no means universally "
12667 "recognized."
12668 msgstr ""
12669
12670 #. type: =head2
12671 #: ../fish/guestfish-actions.pod:3678
12672 msgid "part-set-mbr-id"
12673 msgstr "part-set-mbr-id"
12674
12675 #. type: verbatim
12676 #: ../fish/guestfish-actions.pod:3680
12677 #, no-wrap
12678 msgid ""
12679 " part-set-mbr-id device partnum idbyte\n"
12680 "\n"
12681 msgstr ""
12682
12683 #. type: textblock
12684 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5556
12685 msgid ""
12686 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12687 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12688 "documentation are in fact hexadecimal numbers, but usually documented "
12689 "without any leading \"0x\" which might be confusing."
12690 msgstr ""
12691
12692 #. type: =head2
12693 #: ../fish/guestfish-actions.pod:3692
12694 msgid "part-set-name"
12695 msgstr "part-set-name"
12696
12697 #. type: verbatim
12698 #: ../fish/guestfish-actions.pod:3694
12699 #, no-wrap
12700 msgid ""
12701 " part-set-name device partnum name\n"
12702 "\n"
12703 msgstr ""
12704
12705 #. type: textblock
12706 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5578
12707 msgid ""
12708 "This sets the partition name on partition numbered C<partnum> on device "
12709 "C<device>.  Note that partitions are numbered from 1."
12710 msgstr ""
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5581
12714 msgid ""
12715 "The partition name can only be set on certain types of partition table.  "
12716 "This works on C<gpt> but not on C<mbr> partitions."
12717 msgstr ""
12718
12719 #. type: =head2
12720 #: ../fish/guestfish-actions.pod:3702
12721 msgid "part-to-dev"
12722 msgstr "part-to-dev"
12723
12724 #. type: verbatim
12725 #: ../fish/guestfish-actions.pod:3704
12726 #, no-wrap
12727 msgid ""
12728 " part-to-dev partition\n"
12729 "\n"
12730 msgstr ""
12731 " part-to-dev розділ\n"
12732 "\n"
12733
12734 #. type: textblock
12735 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5594
12736 msgid ""
12737 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12738 "partition number, returning the device name (eg. \"/dev/sdb\")."
12739 msgstr ""
12740
12741 #. type: textblock
12742 #: ../fish/guestfish-actions.pod:3710
12743 msgid ""
12744 "The named partition must exist, for example as a string returned from L</"
12745 "list-partitions>."
12746 msgstr ""
12747
12748 #. type: =head2
12749 #: ../fish/guestfish-actions.pod:3713
12750 msgid "ping-daemon"
12751 msgstr "ping-daemon"
12752
12753 #. type: verbatim
12754 #: ../fish/guestfish-actions.pod:3715
12755 #, no-wrap
12756 msgid ""
12757 " ping-daemon\n"
12758 "\n"
12759 msgstr ""
12760 " ping-daemon\n"
12761 "\n"
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5611
12765 msgid ""
12766 "This is a test probe into the guestfs daemon running inside the qemu "
12767 "subprocess.  Calling this function checks that the daemon responds to the "
12768 "ping message, without affecting the daemon or attached block device(s) in "
12769 "any other way."
12770 msgstr ""
12771
12772 #. type: =head2
12773 #: ../fish/guestfish-actions.pod:3722
12774 msgid "pread"
12775 msgstr "pread"
12776
12777 #. type: verbatim
12778 #: ../fish/guestfish-actions.pod:3724
12779 #, no-wrap
12780 msgid ""
12781 " pread path count offset\n"
12782 "\n"
12783 msgstr ""
12784
12785 #. type: textblock
12786 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5629
12787 msgid ""
12788 "This command lets you read part of a file.  It reads C<count> bytes of the "
12789 "file, starting at C<offset>, from file C<path>."
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3744
12794 #: ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5658
12795 msgid ""
12796 "This may read fewer bytes than requested.  For further details see the "
12797 "L<pread(2)> system call."
12798 msgstr ""
12799
12800 #. type: textblock
12801 #: ../fish/guestfish-actions.pod:3732
12802 msgid "See also L</pwrite>, L</pread-device>."
12803 msgstr "Див. також L</pwrite>, L</pread-device>."
12804
12805 #. type: =head2
12806 #: ../fish/guestfish-actions.pod:3737
12807 msgid "pread-device"
12808 msgstr "pread-device"
12809
12810 #. type: verbatim
12811 #: ../fish/guestfish-actions.pod:3739
12812 #, no-wrap
12813 msgid ""
12814 " pread-device device count offset\n"
12815 "\n"
12816 msgstr ""
12817
12818 #. type: textblock
12819 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5655
12820 msgid ""
12821 "This command lets you read part of a file.  It reads C<count> bytes of "
12822 "C<device>, starting at C<offset>."
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3747
12827 msgid "See also L</pread>."
12828 msgstr "Див. також L</pread>."
12829
12830 #. type: =head2
12831 #: ../fish/guestfish-actions.pod:3752
12832 msgid "pvcreate"
12833 msgstr "pvcreate"
12834
12835 #. type: verbatim
12836 #: ../fish/guestfish-actions.pod:3754
12837 #, no-wrap
12838 msgid ""
12839 " pvcreate device\n"
12840 "\n"
12841 msgstr ""
12842 " pvcreate пристрій\n"
12843 "\n"
12844
12845 #. type: textblock
12846 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5678
12847 msgid ""
12848 "This creates an LVM physical volume on the named C<device>, where C<device> "
12849 "should usually be a partition name such as C</dev/sda1>."
12850 msgstr ""
12851
12852 #. type: =head2
12853 #: ../fish/guestfish-actions.pod:3760
12854 msgid "pvremove"
12855 msgstr "pvremove"
12856
12857 #. type: verbatim
12858 #: ../fish/guestfish-actions.pod:3762
12859 #, no-wrap
12860 msgid ""
12861 " pvremove device\n"
12862 "\n"
12863 msgstr ""
12864 " pvremove пристрій\n"
12865 "\n"
12866
12867 #. type: textblock
12868 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5692
12869 msgid ""
12870 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12871 "it."
12872 msgstr ""
12873
12874 #. type: textblock
12875 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5695
12876 msgid ""
12877 "The implementation uses the C<pvremove> command which refuses to wipe "
12878 "physical volumes that contain any volume groups, so you have to remove those "
12879 "first."
12880 msgstr ""
12881
12882 #. type: =head2
12883 #: ../fish/guestfish-actions.pod:3771
12884 msgid "pvresize"
12885 msgstr "pvresize"
12886
12887 #. type: verbatim
12888 #: ../fish/guestfish-actions.pod:3773
12889 #, no-wrap
12890 msgid ""
12891 " pvresize device\n"
12892 "\n"
12893 msgstr ""
12894 " pvresize пристрій\n"
12895 "\n"
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5709
12899 msgid ""
12900 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12901 "the new size of the underlying device."
12902 msgstr ""
12903
12904 #. type: =head2
12905 #: ../fish/guestfish-actions.pod:3778
12906 msgid "pvresize-size"
12907 msgstr "pvresize-size"
12908
12909 #. type: verbatim
12910 #: ../fish/guestfish-actions.pod:3780
12911 #, no-wrap
12912 msgid ""
12913 " pvresize-size device size\n"
12914 "\n"
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:3782
12919 msgid ""
12920 "This command is the same as L</pvresize> except that it allows you to "
12921 "specify the new size (in bytes) explicitly."
12922 msgstr ""
12923
12924 #. type: =head2
12925 #: ../fish/guestfish-actions.pod:3785
12926 msgid "pvs"
12927 msgstr "pvs"
12928
12929 #. type: verbatim
12930 #: ../fish/guestfish-actions.pod:3787
12931 #, no-wrap
12932 msgid ""
12933 " pvs\n"
12934 "\n"
12935 msgstr ""
12936 " pvs\n"
12937 "\n"
12938
12939 #. type: textblock
12940 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5735
12941 msgid ""
12942 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12943 "(8)> command."
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5738
12948 msgid ""
12949 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12950 "sda2>)."
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:3795
12955 msgid "See also L</pvs-full>."
12956 msgstr "Див. також L</pvs-full>."
12957
12958 #. type: =head2
12959 #: ../fish/guestfish-actions.pod:3797
12960 msgid "pvs-full"
12961 msgstr "pvs-full"
12962
12963 #. type: verbatim
12964 #: ../fish/guestfish-actions.pod:3799
12965 #, no-wrap
12966 msgid ""
12967 " pvs-full\n"
12968 "\n"
12969 msgstr ""
12970 " pvs-full\n"
12971 "\n"
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5754
12975 msgid ""
12976 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12977 "(8)> command.  The \"full\" version includes all fields."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:3804
12982 msgid "pvuuid"
12983 msgstr "pvuuid"
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:3806
12987 #, no-wrap
12988 msgid ""
12989 " pvuuid device\n"
12990 "\n"
12991 msgstr ""
12992 " pvuuid пристрій\n"
12993 "\n"
12994
12995 #. type: textblock
12996 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5769
12997 msgid "This command returns the UUID of the LVM PV C<device>."
12998 msgstr ""
12999
13000 #. type: =head2
13001 #: ../fish/guestfish-actions.pod:3810
13002 msgid "pwrite"
13003 msgstr "pwrite"
13004
13005 #. type: verbatim
13006 #: ../fish/guestfish-actions.pod:3812
13007 #, no-wrap
13008 msgid ""
13009 " pwrite path content offset\n"
13010 "\n"
13011 msgstr ""
13012
13013 #. type: textblock
13014 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5785
13015 msgid ""
13016 "This command writes to part of a file.  It writes the data buffer C<content> "
13017 "to the file C<path> starting at offset C<offset>."
13018 msgstr ""
13019
13020 #. type: textblock
13021 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5788
13022 msgid ""
13023 "This command implements the L<pwrite(2)> system call, and like that system "
13024 "call it may not write the full data requested.  The return value is the "
13025 "number of bytes that were actually written to the file.  This could even be "
13026 "0, although short writes are unlikely for regular files in ordinary "
13027 "circumstances."
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:3823
13032 msgid "See also L</pread>, L</pwrite-device>."
13033 msgstr "Див. також L</pread>, L</pwrite-device>."
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3828
13037 msgid "pwrite-device"
13038 msgstr "pwrite-device"
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3830
13042 #, no-wrap
13043 msgid ""
13044 " pwrite-device device content offset\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5812
13050 msgid ""
13051 "This command writes to part of a device.  It writes the data buffer "
13052 "C<content> to C<device> starting at offset C<offset>."
13053 msgstr ""
13054
13055 #. type: textblock
13056 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5815
13057 msgid ""
13058 "This command implements the L<pwrite(2)> system call, and like that system "
13059 "call it may not write the full data requested (although short writes to disk "
13060 "devices and partitions are probably impossible with standard Linux kernels)."
13061 msgstr ""
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:3840
13065 msgid "See also L</pwrite>."
13066 msgstr "Див. також L</pwrite>."
13067
13068 #. type: =head2
13069 #: ../fish/guestfish-actions.pod:3845
13070 msgid "read-file"
13071 msgstr "read-file"
13072
13073 #. type: verbatim
13074 #: ../fish/guestfish-actions.pod:3847
13075 #, no-wrap
13076 msgid ""
13077 " read-file path\n"
13078 "\n"
13079 msgstr ""
13080 " read-file шлях\n"
13081 "\n"
13082
13083 #. type: textblock
13084 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5836
13085 msgid "This calls returns the contents of the file C<path> as a buffer."
13086 msgstr ""
13087
13088 #. type: textblock
13089 #: ../fish/guestfish-actions.pod:3852
13090 msgid ""
13091 "Unlike L</cat>, this function can correctly handle files that contain "
13092 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13093 "is limited in the total size of file that can be handled."
13094 msgstr ""
13095
13096 #. type: =head2
13097 #: ../fish/guestfish-actions.pod:3860
13098 msgid "read-lines"
13099 msgstr "read-lines"
13100
13101 #. type: verbatim
13102 #: ../fish/guestfish-actions.pod:3862
13103 #, no-wrap
13104 msgid ""
13105 " read-lines path\n"
13106 "\n"
13107 msgstr ""
13108 " read-lines шлях\n"
13109 "\n"
13110
13111 #. type: textblock
13112 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5861
13113 msgid ""
13114 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13115 "C<CRLF> character sequences are I<not> returned."
13116 msgstr ""
13117
13118 #. type: textblock
13119 #: ../fish/guestfish-actions.pod:3869
13120 msgid ""
13121 "Note that this function cannot correctly handle binary files (specifically, "
13122 "files containing C<\\0> character which is treated as end of line).  For "
13123 "those you need to use the L</read-file> function which has a more complex "
13124 "interface."
13125 msgstr ""
13126
13127 #. type: =head2
13128 #: ../fish/guestfish-actions.pod:3874
13129 msgid "readdir"
13130 msgstr "readdir"
13131
13132 #. type: verbatim
13133 #: ../fish/guestfish-actions.pod:3876
13134 #, no-wrap
13135 msgid ""
13136 " readdir dir\n"
13137 "\n"
13138 msgstr ""
13139 " readdir каталог\n"
13140 "\n"
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
13144 msgid "This returns the list of directory entries in directory C<dir>."
13145 msgstr ""
13146
13147 #. type: textblock
13148 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
13149 msgid ""
13150 "All entries in the directory are returned, including C<.> and C<..>.  The "
13151 "entries are I<not> sorted, but returned in the same order as the underlying "
13152 "filesystem."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13157 msgid ""
13158 "Also this call returns basic file type information about each file.  The "
13159 "C<ftyp> field will contain one of the following characters:"
13160 msgstr ""
13161
13162 #. type: =item
13163 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13164 msgid "'b'"
13165 msgstr "'b'"
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13169 msgid "Block special"
13170 msgstr "Блоковий особливий"
13171
13172 #. type: =item
13173 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13174 msgid "'c'"
13175 msgstr "'c'"
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13179 msgid "Char special"
13180 msgstr "Символьний особливий"
13181
13182 #. type: =item
13183 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13184 msgid "'d'"
13185 msgstr "'d'"
13186
13187 #. type: textblock
13188 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13189 msgid "Directory"
13190 msgstr "Каталог"
13191
13192 #. type: =item
13193 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13194 msgid "'f'"
13195 msgstr "'f'"
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
13199 msgid "FIFO (named pipe)"
13200 msgstr "FIFO (іменований канал)"
13201
13202 #. type: =item
13203 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
13204 msgid "'l'"
13205 msgstr "'l'"
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
13209 msgid "Symbolic link"
13210 msgstr "Символічне посилання"
13211
13212 #. type: =item
13213 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
13214 msgid "'r'"
13215 msgstr "'r'"
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
13219 msgid "Regular file"
13220 msgstr "Звичайний файл"
13221
13222 #. type: =item
13223 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
13224 msgid "'s'"
13225 msgstr "'s'"
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
13229 msgid "Socket"
13230 msgstr "Сокет"
13231
13232 #. type: =item
13233 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
13234 msgid "'u'"
13235 msgstr "'u'"
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
13239 msgid "Unknown file type"
13240 msgstr "Невідомий тип файла"
13241
13242 #. type: =item
13243 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
13244 msgid "'?'"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
13249 msgid ""
13250 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13251 msgstr ""
13252
13253 #. type: textblock
13254 #: ../fish/guestfish-actions.pod:3928
13255 msgid ""
13256 "This function is primarily intended for use by programs.  To get a simple "
13257 "list of names, use L</ls>.  To get a printable directory for human "
13258 "consumption, use L</ll>."
13259 msgstr ""
13260
13261 #. type: =head2
13262 #: ../fish/guestfish-actions.pod:3932
13263 msgid "readlink"
13264 msgstr "readlink"
13265
13266 #. type: verbatim
13267 #: ../fish/guestfish-actions.pod:3934
13268 #, no-wrap
13269 msgid ""
13270 " readlink path\n"
13271 "\n"
13272 msgstr ""
13273 " readlink шлях\n"
13274 "\n"
13275
13276 #. type: textblock
13277 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:5947
13278 msgid "This command reads the target of a symbolic link."
13279 msgstr ""
13280
13281 #. type: =head2
13282 #: ../fish/guestfish-actions.pod:3938
13283 msgid "readlinklist"
13284 msgstr "readlinklist"
13285
13286 #. type: verbatim
13287 #: ../fish/guestfish-actions.pod:3940
13288 #, no-wrap
13289 msgid ""
13290 " readlinklist path 'names ...'\n"
13291 "\n"
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:5961
13296 msgid ""
13297 "This call allows you to do a C<readlink> operation on multiple files, where "
13298 "all files are in the directory C<path>.  C<names> is the list of files from "
13299 "this directory."
13300 msgstr ""
13301
13302 #. type: textblock
13303 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
13304 msgid ""
13305 "On return you get a list of strings, with a one-to-one correspondence to the "
13306 "C<names> list.  Each string is the value of the symbolic link."
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
13311 msgid ""
13312 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13313 "result string is the empty string C<\"\">.  However the whole operation is "
13314 "completed even if there were C<readlink(2)> errors, and so you can call this "
13315 "function with names where you don't know if they are symbolic links already "
13316 "(albeit slightly less efficient)."
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5976
13321 msgid ""
13322 "This call is intended for programs that want to efficiently list a directory "
13323 "contents without making many round-trips.  Very long directory listings "
13324 "might cause the protocol message size to be exceeded, causing this call to "
13325 "fail.  The caller must split up such requests into smaller groups of names."
13326 msgstr ""
13327
13328 #. type: =head2
13329 #: ../fish/guestfish-actions.pod:3964
13330 msgid "realpath"
13331 msgstr "realpath"
13332
13333 #. type: verbatim
13334 #: ../fish/guestfish-actions.pod:3966
13335 #, no-wrap
13336 msgid ""
13337 " realpath path\n"
13338 "\n"
13339 msgstr ""
13340 " realpath шлях\n"
13341 "\n"
13342
13343 #. type: textblock
13344 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:5995
13345 msgid ""
13346 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13347 "has no C<.>, C<..> or symbolic link path elements."
13348 msgstr ""
13349
13350 #. type: =head2
13351 #: ../fish/guestfish-actions.pod:3971
13352 msgid "removexattr"
13353 msgstr "removexattr"
13354
13355 #. type: verbatim
13356 #: ../fish/guestfish-actions.pod:3973
13357 #, no-wrap
13358 msgid ""
13359 " removexattr xattr path\n"
13360 "\n"
13361 msgstr ""
13362
13363 #. type: textblock
13364 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6010
13365 msgid ""
13366 "This call removes the extended attribute named C<xattr> of the file C<path>."
13367 msgstr ""
13368
13369 #. type: textblock
13370 #: ../fish/guestfish-actions.pod:3978
13371 msgid "See also: L</lremovexattr>, L<attr(5)>."
13372 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13373
13374 #. type: =head2
13375 #: ../fish/guestfish-actions.pod:3980
13376 msgid "resize2fs"
13377 msgstr "resize2fs"
13378
13379 #. type: verbatim
13380 #: ../fish/guestfish-actions.pod:3982
13381 #, no-wrap
13382 msgid ""
13383 " resize2fs device\n"
13384 "\n"
13385 msgstr ""
13386 " resize2fs пристрій\n"
13387 "\n"
13388
13389 #. type: textblock
13390 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6025
13391 msgid ""
13392 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13393 "underlying device."
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:3987
13398 msgid ""
13399 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13400 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13401 "gives an error about this and sometimes not.  In any case, it is always safe "
13402 "to call L</e2fsck-f> before calling this function."
13403 msgstr ""
13404
13405 #. type: =head2
13406 #: ../fish/guestfish-actions.pod:3993
13407 msgid "resize2fs-M"
13408 msgstr "resize2fs-M"
13409
13410 #. type: verbatim
13411 #: ../fish/guestfish-actions.pod:3995
13412 #, no-wrap
13413 msgid ""
13414 " resize2fs-M device\n"
13415 "\n"
13416 msgstr ""
13417 " resize2fs-M пристрій\n"
13418 "\n"
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:3997
13422 msgid ""
13423 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13424 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13425 "command."
13426 msgstr ""
13427
13428 #. type: textblock
13429 #: ../fish/guestfish-actions.pod:4001
13430 msgid ""
13431 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13432 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13433 "multiplied together, give the resulting size of the minimal filesystem in "
13434 "bytes."
13435 msgstr ""
13436
13437 #. type: =head2
13438 #: ../fish/guestfish-actions.pod:4006
13439 msgid "resize2fs-size"
13440 msgstr "resize2fs-size"
13441
13442 #. type: verbatim
13443 #: ../fish/guestfish-actions.pod:4008
13444 #, no-wrap
13445 msgid ""
13446 " resize2fs-size device size\n"
13447 "\n"
13448 msgstr ""
13449
13450 #. type: textblock
13451 #: ../fish/guestfish-actions.pod:4010
13452 msgid ""
13453 "This command is the same as L</resize2fs> except that it allows you to "
13454 "specify the new size (in bytes) explicitly."
13455 msgstr ""
13456
13457 #. type: =head2
13458 #: ../fish/guestfish-actions.pod:4013
13459 msgid "rm"
13460 msgstr "rm"
13461
13462 #. type: verbatim
13463 #: ../fish/guestfish-actions.pod:4015
13464 #, no-wrap
13465 msgid ""
13466 " rm path\n"
13467 "\n"
13468 msgstr ""
13469 " rm шлях\n"
13470 "\n"
13471
13472 #. type: textblock
13473 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6077
13474 msgid "Remove the single file C<path>."
13475 msgstr ""
13476
13477 #. type: =head2
13478 #: ../fish/guestfish-actions.pod:4019
13479 msgid "rm-rf"
13480 msgstr "rm-rf"
13481
13482 #. type: verbatim
13483 #: ../fish/guestfish-actions.pod:4021
13484 #, no-wrap
13485 msgid ""
13486 " rm-rf path\n"
13487 "\n"
13488 msgstr ""
13489 " rm-rf шлях\n"
13490 "\n"
13491
13492 #. type: textblock
13493 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6089
13494 msgid ""
13495 "Remove the file or directory C<path>, recursively removing the contents if "
13496 "its a directory.  This is like the C<rm -rf> shell command."
13497 msgstr ""
13498
13499 #. type: =head2
13500 #: ../fish/guestfish-actions.pod:4027
13501 msgid "rmdir"
13502 msgstr "rmdir"
13503
13504 #. type: verbatim
13505 #: ../fish/guestfish-actions.pod:4029
13506 #, no-wrap
13507 msgid ""
13508 " rmdir path\n"
13509 "\n"
13510 msgstr ""
13511 " rmdir шлях\n"
13512 "\n"
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6103
13516 msgid "Remove the single directory C<path>."
13517 msgstr ""
13518
13519 #. type: =head2
13520 #: ../fish/guestfish-actions.pod:4033
13521 msgid "rmmountpoint"
13522 msgstr "rmmountpoint"
13523
13524 #. type: verbatim
13525 #: ../fish/guestfish-actions.pod:4035
13526 #, no-wrap
13527 msgid ""
13528 " rmmountpoint exemptpath\n"
13529 "\n"
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:4037
13534 msgid ""
13535 "This calls removes a mountpoint that was previously created with L</"
13536 "mkmountpoint>.  See L</mkmountpoint> for full details."
13537 msgstr ""
13538
13539 #. type: =head2
13540 #: ../fish/guestfish-actions.pod:4041
13541 msgid "scrub-device"
13542 msgstr "scrub-device"
13543
13544 #. type: verbatim
13545 #: ../fish/guestfish-actions.pod:4043
13546 #, no-wrap
13547 msgid ""
13548 " scrub-device device\n"
13549 "\n"
13550 msgstr ""
13551 " scrub-device пристрій\n"
13552 "\n"
13553
13554 #. type: textblock
13555 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6129
13556 msgid ""
13557 "This command writes patterns over C<device> to make data retrieval more "
13558 "difficult."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:4048 ../fish/guestfish-actions.pod:4063
13563 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6132
13564 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
13565 msgid ""
13566 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13567 "more details."
13568 msgstr ""
13569
13570 #. type: =head2
13571 #: ../fish/guestfish-actions.pod:4054
13572 msgid "scrub-file"
13573 msgstr "scrub-file"
13574
13575 #. type: verbatim
13576 #: ../fish/guestfish-actions.pod:4056
13577 #, no-wrap
13578 msgid ""
13579 " scrub-file file\n"
13580 "\n"
13581 msgstr ""
13582 " scrub-file файл\n"
13583 "\n"
13584
13585 #. type: textblock
13586 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6148
13587 msgid ""
13588 "This command writes patterns over a file to make data retrieval more "
13589 "difficult."
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6151
13594 msgid "The file is I<removed> after scrubbing."
13595 msgstr ""
13596
13597 #. type: =head2
13598 #: ../fish/guestfish-actions.pod:4066
13599 msgid "scrub-freespace"
13600 msgstr "scrub-freespace"
13601
13602 #. type: verbatim
13603 #: ../fish/guestfish-actions.pod:4068
13604 #, no-wrap
13605 msgid ""
13606 " scrub-freespace dir\n"
13607 "\n"
13608 msgstr ""
13609 " scrub-freespace каталог\n"
13610 "\n"
13611
13612 #. type: textblock
13613 #: ../fish/guestfish-actions.pod:4070
13614 msgid ""
13615 "This command creates the directory C<dir> and then fills it with files until "
13616 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13617 "deletes them.  The intention is to scrub any free space on the partition "
13618 "containing C<dir>."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:4079
13623 msgid "set-append"
13624 msgstr "set-append"
13625
13626 #. type: =head2
13627 #: ../fish/guestfish-actions.pod:4081
13628 msgid "append"
13629 msgstr ""
13630
13631 #. type: verbatim
13632 #: ../fish/guestfish-actions.pod:4083
13633 #, no-wrap
13634 msgid ""
13635 " set-append append\n"
13636 "\n"
13637 msgstr ""
13638
13639 #. type: textblock
13640 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6185
13641 msgid ""
13642 "This function is used to add additional options to the guest kernel command "
13643 "line."
13644 msgstr ""
13645
13646 #. type: textblock
13647 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6188
13648 msgid ""
13649 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13650 "environment variable."
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:4091 ../src/guestfs-actions.pod:6191
13655 msgid ""
13656 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13657 "(libguestfs always adds a few of its own)."
13658 msgstr ""
13659
13660 #. type: =head2
13661 #: ../fish/guestfish-actions.pod:4094
13662 msgid "set-attach-method"
13663 msgstr "set-attach-method"
13664
13665 #. type: =head2
13666 #: ../fish/guestfish-actions.pod:4096
13667 msgid "attach-method"
13668 msgstr ""
13669
13670 #. type: verbatim
13671 #: ../fish/guestfish-actions.pod:4098
13672 #, no-wrap
13673 msgid ""
13674 " set-attach-method attachmethod\n"
13675 "\n"
13676 msgstr ""
13677
13678 #. type: textblock
13679 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6204
13680 msgid ""
13681 "Set the method that libguestfs uses to connect to the back end guestfsd "
13682 "daemon.  Possible methods are:"
13683 msgstr ""
13684
13685 #. type: =item
13686 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6209
13687 #: ../src/guestfs.pod:2803
13688 msgid "C<appliance>"
13689 msgstr "C<appliance>"
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6211
13693 msgid ""
13694 "Launch an appliance and connect to it.  This is the ordinary method and the "
13695 "default."
13696 msgstr ""
13697
13698 #. type: =item
13699 #: ../fish/guestfish-actions.pod:4110 ../src/guestfs-actions.pod:6214
13700 msgid "C<unix:I<path>>"
13701 msgstr "C<unix:I<шлях>>"
13702
13703 #. type: textblock
13704 #: ../fish/guestfish-actions.pod:4112 ../src/guestfs-actions.pod:6216
13705 msgid "Connect to the Unix domain socket I<path>."
13706 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13707
13708 #. type: textblock
13709 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
13710 msgid ""
13711 "This method lets you connect to an existing daemon or (using virtio-serial) "
13712 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13713 "RUNNING DAEMONS>."
13714 msgstr ""
13715
13716 #. type: =head2
13717 #: ../fish/guestfish-actions.pod:4120
13718 msgid "set-autosync"
13719 msgstr "set-autosync"
13720
13721 #. type: =head2
13722 #: ../fish/guestfish-actions.pod:4122
13723 msgid "autosync"
13724 msgstr "autosync"
13725
13726 #. type: verbatim
13727 #: ../fish/guestfish-actions.pod:4124
13728 #, no-wrap
13729 msgid ""
13730 " set-autosync true|false\n"
13731 "\n"
13732 msgstr ""
13733 " set-autosync true|false\n"
13734 "\n"
13735
13736 #. type: textblock
13737 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6234
13738 msgid ""
13739 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13740 "effort attempt to make filesystems consistent and synchronized when the "
13741 "handle is closed (also if the program exits without closing handles)."
13742 msgstr ""
13743
13744 #. type: textblock
13745 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6239
13746 msgid ""
13747 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13748 "disabled by default)."
13749 msgstr ""
13750
13751 #. type: =head2
13752 #: ../fish/guestfish-actions.pod:4134
13753 msgid "set-direct"
13754 msgstr "set-direct"
13755
13756 #. type: =head2
13757 #: ../fish/guestfish-actions.pod:4136
13758 msgid "direct"
13759 msgstr "direct"
13760
13761 #. type: verbatim
13762 #: ../fish/guestfish-actions.pod:4138
13763 #, no-wrap
13764 msgid ""
13765 " set-direct true|false\n"
13766 "\n"
13767 msgstr ""
13768 " set-direct true|false\n"
13769 "\n"
13770
13771 #. type: textblock
13772 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6252
13773 msgid ""
13774 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13775 "passed directly through to the appliance once it is launched."
13776 msgstr ""
13777
13778 #. type: textblock
13779 #: ../fish/guestfish-actions.pod:4144
13780 msgid ""
13781 "One consequence of this is that log messages aren't caught by the library "
13782 "and handled by L</set-log-message-callback>, but go straight to stdout."
13783 msgstr ""
13784
13785 #. type: textblock
13786 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6260
13787 msgid "You probably don't want to use this unless you know what you are doing."
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:4151 ../src/guestfs-actions.pod:6263
13792 msgid "The default is disabled."
13793 msgstr ""
13794
13795 #. type: =head2
13796 #: ../fish/guestfish-actions.pod:4153
13797 msgid "set-e2label"
13798 msgstr "set-e2label"
13799
13800 #. type: verbatim
13801 #: ../fish/guestfish-actions.pod:4155
13802 #, no-wrap
13803 msgid ""
13804 " set-e2label device label\n"
13805 "\n"
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6276
13810 msgid ""
13811 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13812 "C<label>.  Filesystem labels are limited to 16 characters."
13813 msgstr ""
13814
13815 #. type: textblock
13816 #: ../fish/guestfish-actions.pod:4161
13817 msgid ""
13818 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13819 "label on a filesystem."
13820 msgstr ""
13821
13822 #. type: =head2
13823 #: ../fish/guestfish-actions.pod:4164
13824 msgid "set-e2uuid"
13825 msgstr "set-e2uuid"
13826
13827 #. type: verbatim
13828 #: ../fish/guestfish-actions.pod:4166
13829 #, no-wrap
13830 msgid ""
13831 " set-e2uuid device uuid\n"
13832 "\n"
13833 msgstr ""
13834
13835 #. type: textblock
13836 #: ../fish/guestfish-actions.pod:4168 ../src/guestfs-actions.pod:6294
13837 msgid ""
13838 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13839 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13840 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13841 msgstr ""
13842
13843 #. type: textblock
13844 #: ../fish/guestfish-actions.pod:4173
13845 msgid ""
13846 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13847 "UUID of a filesystem."
13848 msgstr ""
13849
13850 #. type: =head2
13851 #: ../fish/guestfish-actions.pod:4176
13852 msgid "set-memsize"
13853 msgstr "set-memsize"
13854
13855 #. type: =head2
13856 #: ../fish/guestfish-actions.pod:4178
13857 msgid "memsize"
13858 msgstr ""
13859
13860 #. type: verbatim
13861 #: ../fish/guestfish-actions.pod:4180
13862 #, no-wrap
13863 msgid ""
13864 " set-memsize memsize\n"
13865 "\n"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../fish/guestfish-actions.pod:4182
13870 msgid ""
13871 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13872 "This only has any effect if called before L</launch>."
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6316
13877 msgid ""
13878 "You can also change this by setting the environment variable "
13879 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13880 msgstr ""
13881
13882 #. type: =head2
13883 #: ../fish/guestfish-actions.pod:4193
13884 msgid "set-network"
13885 msgstr "set-network"
13886
13887 #. type: =head2
13888 #: ../fish/guestfish-actions.pod:4195
13889 msgid "network"
13890 msgstr "network"
13891
13892 #. type: verbatim
13893 #: ../fish/guestfish-actions.pod:4197
13894 #, no-wrap
13895 msgid ""
13896 " set-network true|false\n"
13897 "\n"
13898 msgstr ""
13899 " set-network true|false\n"
13900 "\n"
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6333
13904 msgid ""
13905 "If C<network> is true, then the network is enabled in the libguestfs "
13906 "appliance.  The default is false."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6336
13911 msgid ""
13912 "This affects whether commands are able to access the network (see L<guestfs"
13913 "(3)/RUNNING COMMANDS>)."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:4205
13918 msgid ""
13919 "You must call this before calling L</launch>, otherwise it has no effect."
13920 msgstr ""
13921
13922 #. type: =head2
13923 #: ../fish/guestfish-actions.pod:4208
13924 msgid "set-path"
13925 msgstr "set-path"
13926
13927 #. type: verbatim
13928 #: ../fish/guestfish-actions.pod:4212
13929 #, no-wrap
13930 msgid ""
13931 " set-path searchpath\n"
13932 "\n"
13933 msgstr ""
13934
13935 #. type: textblock
13936 #: ../fish/guestfish-actions.pod:4214 ../src/guestfs-actions.pod:6352
13937 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13938 msgstr ""
13939
13940 #. type: textblock
13941 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6354
13942 msgid ""
13943 "The default is C<$libdir/guestfs> unless overridden by setting "
13944 "C<LIBGUESTFS_PATH> environment variable."
13945 msgstr ""
13946
13947 #. type: textblock
13948 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6357
13949 msgid "Setting C<path> to C<NULL> restores the default path."
13950 msgstr ""
13951
13952 #. type: =head2
13953 #: ../fish/guestfish-actions.pod:4221
13954 msgid "set-pgroup"
13955 msgstr ""
13956
13957 #. type: =head2
13958 #: ../fish/guestfish-actions.pod:4223
13959 msgid "pgroup"
13960 msgstr ""
13961
13962 #. type: verbatim
13963 #: ../fish/guestfish-actions.pod:4225
13964 #, no-wrap
13965 msgid ""
13966 " set-pgroup true|false\n"
13967 "\n"
13968 msgstr ""
13969
13970 #. type: textblock
13971 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6369
13972 msgid ""
13973 "If C<pgroup> is true, child processes are placed into their own process "
13974 "group."
13975 msgstr ""
13976
13977 #. type: textblock
13978 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6372
13979 msgid ""
13980 "The practical upshot of this is that signals like C<SIGINT> (from users "
13981 "pressing C<^C>) won't be received by the child process."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6375
13986 msgid ""
13987 "The default for this flag is false, because usually you want C<^C> to kill "
13988 "the subprocess."
13989 msgstr ""
13990
13991 #. type: =head2
13992 #: ../fish/guestfish-actions.pod:4236
13993 msgid "set-qemu"
13994 msgstr "set-qemu"
13995
13996 #. type: =head2
13997 #: ../fish/guestfish-actions.pod:4238
13998 msgid "qemu"
13999 msgstr "qemu"
14000
14001 #. type: verbatim
14002 #: ../fish/guestfish-actions.pod:4240
14003 #, no-wrap
14004 msgid ""
14005 " set-qemu qemu\n"
14006 "\n"
14007 msgstr ""
14008 " set-qemu qemu\n"
14009 "\n"
14010
14011 #. type: textblock
14012 #: ../fish/guestfish-actions.pod:4242 ../src/guestfs-actions.pod:6388
14013 msgid "Set the qemu binary that we will use."
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6390
14018 msgid ""
14019 "The default is chosen when the library was compiled by the configure script."
14020 msgstr ""
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6393
14024 msgid ""
14025 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14026 "variable."
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6396
14031 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6398
14036 msgid ""
14037 "Note that you should call this function as early as possible after creating "
14038 "the handle.  This is because some pre-launch operations depend on testing "
14039 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14040 "don't retest features, and so you might see inconsistent results.  Using the "
14041 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14042 "the qemu binary at the same time as the handle is created."
14043 msgstr ""
14044
14045 #. type: =head2
14046 #: ../fish/guestfish-actions.pod:4260
14047 msgid "set-recovery-proc"
14048 msgstr "set-recovery-proc"
14049
14050 #. type: =head2
14051 #: ../fish/guestfish-actions.pod:4262
14052 msgid "recovery-proc"
14053 msgstr "recovery-proc"
14054
14055 #. type: verbatim
14056 #: ../fish/guestfish-actions.pod:4264
14057 #, no-wrap
14058 msgid ""
14059 " set-recovery-proc true|false\n"
14060 "\n"
14061 msgstr ""
14062 " set-recovery-proc true|false\n"
14063 "\n"
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:4266
14067 msgid ""
14068 "If this is called with the parameter C<false> then L</launch> does not "
14069 "create a recovery process.  The purpose of the recovery process is to stop "
14070 "runaway qemu processes in the case where the main program aborts abruptly."
14071 msgstr ""
14072
14073 #. type: textblock
14074 #: ../fish/guestfish-actions.pod:4271
14075 msgid ""
14076 "This only has any effect if called before L</launch>, and the default is "
14077 "true."
14078 msgstr ""
14079
14080 #. type: textblock
14081 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6424
14082 msgid ""
14083 "About the only time when you would want to disable this is if the main "
14084 "process will fork itself into the background (\"daemonize\" itself).  In "
14085 "this case the recovery process thinks that the main program has disappeared "
14086 "and so kills qemu, which is not very helpful."
14087 msgstr ""
14088
14089 #. type: =head2
14090 #: ../fish/guestfish-actions.pod:4280
14091 msgid "set-selinux"
14092 msgstr "set-selinux"
14093
14094 #. type: =head2
14095 #: ../fish/guestfish-actions.pod:4282
14096 msgid "selinux"
14097 msgstr "selinux"
14098
14099 #. type: verbatim
14100 #: ../fish/guestfish-actions.pod:4284
14101 #, no-wrap
14102 msgid ""
14103 " set-selinux true|false\n"
14104 "\n"
14105 msgstr ""
14106 " set-selinux true|false\n"
14107 "\n"
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6440
14111 msgid ""
14112 "This sets the selinux flag that is passed to the appliance at boot time.  "
14113 "The default is C<selinux=0> (disabled)."
14114 msgstr ""
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6443
14118 msgid ""
14119 "Note that if SELinux is enabled, it is always in Permissive mode "
14120 "(C<enforcing=0>)."
14121 msgstr ""
14122
14123 #. type: =head2
14124 #: ../fish/guestfish-actions.pod:4295
14125 msgid "set-trace"
14126 msgstr "set-trace"
14127
14128 #. type: =head2
14129 #: ../fish/guestfish-actions.pod:4297
14130 msgid "trace"
14131 msgstr "trace"
14132
14133 #. type: verbatim
14134 #: ../fish/guestfish-actions.pod:4299
14135 #, no-wrap
14136 msgid ""
14137 " set-trace true|false\n"
14138 "\n"
14139 msgstr ""
14140 " set-trace true|false\n"
14141 "\n"
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6459
14145 msgid ""
14146 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14147 "return values are traced."
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6462
14152 msgid ""
14153 "If you want to trace C API calls into libguestfs (and other libraries) then "
14154 "possibly a better way is to use the external ltrace(1) command."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
14159 msgid ""
14160 "Command traces are disabled unless the environment variable "
14161 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14162 msgstr ""
14163
14164 #. type: textblock
14165 #: ../fish/guestfish-actions.pod:4311
14166 msgid ""
14167 "Trace messages are normally sent to C<stderr>, unless you register a "
14168 "callback to send them somewhere else (see L</set-event-callback>)."
14169 msgstr ""
14170
14171 #. type: =head2
14172 #: ../fish/guestfish-actions.pod:4315
14173 msgid "set-verbose"
14174 msgstr "set-verbose"
14175
14176 #. type: =head2
14177 #: ../fish/guestfish-actions.pod:4317
14178 msgid "verbose"
14179 msgstr ""
14180
14181 #. type: verbatim
14182 #: ../fish/guestfish-actions.pod:4319
14183 #, no-wrap
14184 msgid ""
14185 " set-verbose true|false\n"
14186 "\n"
14187 msgstr ""
14188 " set-verbose true|false\n"
14189 "\n"
14190
14191 #. type: textblock
14192 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6483
14193 msgid "If C<verbose> is true, this turns on verbose messages."
14194 msgstr ""
14195
14196 #. type: textblock
14197 #: ../fish/guestfish-actions.pod:4323 ../src/guestfs-actions.pod:6485
14198 msgid ""
14199 "Verbose messages are disabled unless the environment variable "
14200 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14201 msgstr ""
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:4326
14205 msgid ""
14206 "Verbose messages are normally sent to C<stderr>, unless you register a "
14207 "callback to send them somewhere else (see L</set-event-callback>)."
14208 msgstr ""
14209
14210 #. type: =head2
14211 #: ../fish/guestfish-actions.pod:4330
14212 msgid "setcon"
14213 msgstr "setcon"
14214
14215 #. type: verbatim
14216 #: ../fish/guestfish-actions.pod:4332
14217 #, no-wrap
14218 msgid ""
14219 " setcon context\n"
14220 "\n"
14221 msgstr ""
14222 " setcon контекст\n"
14223 "\n"
14224
14225 #. type: textblock
14226 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6502
14227 msgid ""
14228 "This sets the SELinux security context of the daemon to the string "
14229 "C<context>."
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6505
14234 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14235 msgstr ""
14236
14237 #. type: =head2
14238 #: ../fish/guestfish-actions.pod:4339
14239 msgid "setxattr"
14240 msgstr "setxattr"
14241
14242 #. type: verbatim
14243 #: ../fish/guestfish-actions.pod:4341
14244 #, no-wrap
14245 msgid ""
14246 " setxattr xattr val vallen path\n"
14247 "\n"
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6520
14252 msgid ""
14253 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14254 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14255 msgstr ""
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:4347
14259 msgid "See also: L</lsetxattr>, L<attr(5)>."
14260 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14261
14262 #. type: =head2
14263 #: ../fish/guestfish-actions.pod:4349
14264 msgid "sfdisk"
14265 msgstr "sfdisk"
14266
14267 #. type: verbatim
14268 #: ../fish/guestfish-actions.pod:4351
14269 #, no-wrap
14270 msgid ""
14271 " sfdisk device cyls heads sectors 'lines ...'\n"
14272 "\n"
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6540
14277 msgid ""
14278 "This is a direct interface to the L<sfdisk(8)> program for creating "
14279 "partitions on block devices."
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6543
14284 msgid "C<device> should be a block device, for example C</dev/sda>."
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6545
14289 msgid ""
14290 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14291 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14292 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14293 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14294 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14295 "the kernel) cannot work out the right geometry and you will need to tell it."
14296 msgstr ""
14297
14298 #. type: textblock
14299 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6553
14300 msgid ""
14301 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14302 "refer to the L<sfdisk(8)> manpage."
14303 msgstr ""
14304
14305 #. type: textblock
14306 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6556
14307 msgid ""
14308 "To create a single partition occupying the whole disk, you would pass "
14309 "C<lines> as a single element list, when the single element being the string "
14310 "C<,> (comma)."
14311 msgstr ""
14312
14313 #. type: textblock
14314 #: ../fish/guestfish-actions.pod:4373
14315 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14316 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14317
14318 #. type: textblock
14319 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4402
14320 #: ../fish/guestfish-actions.pod:4424
14321 msgid ""
14322 "This function is deprecated.  In new code, use the L</part_add> call instead."
14323 msgstr ""
14324
14325 #. type: =head2
14326 #: ../fish/guestfish-actions.pod:4386
14327 msgid "sfdiskM"
14328 msgstr "sfdiskM"
14329
14330 #. type: verbatim
14331 #: ../fish/guestfish-actions.pod:4388
14332 #, no-wrap
14333 msgid ""
14334 " sfdiskM device 'lines ...'\n"
14335 "\n"
14336 msgstr ""
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:4390
14340 msgid ""
14341 "This is a simplified interface to the L</sfdisk> command, where partition "
14342 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14343 "you don't need to specify the cyls, heads and sectors parameters which were "
14344 "rarely if ever used anyway."
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../fish/guestfish-actions.pod:4396
14349 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14350 msgstr ""
14351 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14352
14353 #. type: =head2
14354 #: ../fish/guestfish-actions.pod:4409
14355 msgid "sfdisk-N"
14356 msgstr "sfdisk-N"
14357
14358 #. type: verbatim
14359 #: ../fish/guestfish-actions.pod:4411
14360 #, no-wrap
14361 msgid ""
14362 " sfdisk-N device partnum cyls heads sectors line\n"
14363 "\n"
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6618
14368 msgid ""
14369 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14370 "(note: C<n> counts from 1)."
14371 msgstr ""
14372
14373 #. type: textblock
14374 #: ../fish/guestfish-actions.pod:4416
14375 msgid ""
14376 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14377 "cyls/heads/sectors parameters."
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:4419
14382 msgid "See also: L</part-add>"
14383 msgstr "Див. також L</part-add>"
14384
14385 #. type: =head2
14386 #: ../fish/guestfish-actions.pod:4431
14387 msgid "sfdisk-disk-geometry"
14388 msgstr "sfdisk-disk-geometry"
14389
14390 #. type: verbatim
14391 #: ../fish/guestfish-actions.pod:4433
14392 #, no-wrap
14393 msgid ""
14394 " sfdisk-disk-geometry device\n"
14395 "\n"
14396 msgstr ""
14397 " sfdisk-disk-geometry пристрій\n"
14398 "\n"
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4435
14402 msgid ""
14403 "This displays the disk geometry of C<device> read from the partition table.  "
14404 "Especially in the case where the underlying block device has been resized, "
14405 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14406 "kernel-geometry>)."
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:4440 ../fish/guestfish-actions.pod:4449
14411 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6667
14412 msgid "The result is in human-readable format, and not designed to be parsed."
14413 msgstr ""
14414
14415 #. type: =head2
14416 #: ../fish/guestfish-actions.pod:4443
14417 msgid "sfdisk-kernel-geometry"
14418 msgstr "sfdisk-kernel-geometry"
14419
14420 #. type: verbatim
14421 #: ../fish/guestfish-actions.pod:4445
14422 #, no-wrap
14423 msgid ""
14424 " sfdisk-kernel-geometry device\n"
14425 "\n"
14426 msgstr ""
14427 " sfdisk-kernel-geometry пристрій\n"
14428 "\n"
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:6665
14432 msgid "This displays the kernel's idea of the geometry of C<device>."
14433 msgstr ""
14434
14435 #. type: =head2
14436 #: ../fish/guestfish-actions.pod:4452
14437 msgid "sfdisk-l"
14438 msgstr "sfdisk-l"
14439
14440 #. type: verbatim
14441 #: ../fish/guestfish-actions.pod:4454
14442 #, no-wrap
14443 msgid ""
14444 " sfdisk-l device\n"
14445 "\n"
14446 msgstr ""
14447 " sfdisk-l пристрій\n"
14448 "\n"
14449
14450 #. type: textblock
14451 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6681
14452 msgid ""
14453 "This displays the partition table on C<device>, in the human-readable output "
14454 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14455 msgstr ""
14456
14457 #. type: textblock
14458 #: ../fish/guestfish-actions.pod:4460
14459 msgid "See also: L</part-list>"
14460 msgstr "Див. також L</part-list>"
14461
14462 #. type: textblock
14463 #: ../fish/guestfish-actions.pod:4462
14464 msgid ""
14465 "This function is deprecated.  In new code, use the L</part_list> call "
14466 "instead."
14467 msgstr ""
14468
14469 #. type: =head2
14470 #: ../fish/guestfish-actions.pod:4469
14471 msgid "sh"
14472 msgstr "sh"
14473
14474 #. type: verbatim
14475 #: ../fish/guestfish-actions.pod:4471
14476 #, no-wrap
14477 msgid ""
14478 " sh command\n"
14479 "\n"
14480 msgstr ""
14481 " sh команда\n"
14482 "\n"
14483
14484 #. type: textblock
14485 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6705
14486 msgid ""
14487 "This call runs a command from the guest filesystem via the guest's C</bin/"
14488 "sh>."
14489 msgstr ""
14490
14491 #. type: textblock
14492 #: ../fish/guestfish-actions.pod:4476
14493 msgid "This is like L</command>, but passes the command to:"
14494 msgstr ""
14495
14496 #. type: verbatim
14497 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6710
14498 #, no-wrap
14499 msgid ""
14500 " /bin/sh -c \"command\"\n"
14501 "\n"
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6712
14506 msgid ""
14507 "Depending on the guest's shell, this usually results in wildcards being "
14508 "expanded, shell expressions being interpolated and so on."
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4484
14513 msgid "All the provisos about L</command> apply to this call."
14514 msgstr ""
14515
14516 #. type: =head2
14517 #: ../fish/guestfish-actions.pod:4486
14518 msgid "sh-lines"
14519 msgstr "sh-lines"
14520
14521 #. type: verbatim
14522 #: ../fish/guestfish-actions.pod:4488
14523 #, no-wrap
14524 msgid ""
14525 " sh-lines command\n"
14526 "\n"
14527 msgstr ""
14528 " sh-lines команда\n"
14529 "\n"
14530
14531 #. type: textblock
14532 #: ../fish/guestfish-actions.pod:4490
14533 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4493
14538 msgid "See also: L</command-lines>"
14539 msgstr "Див. також L</command-lines>"
14540
14541 #. type: =head2
14542 #: ../fish/guestfish-actions.pod:4495
14543 msgid "sleep"
14544 msgstr "sleep"
14545
14546 #. type: verbatim
14547 #: ../fish/guestfish-actions.pod:4497
14548 #, no-wrap
14549 msgid ""
14550 " sleep secs\n"
14551 "\n"
14552 msgstr ""
14553 " sleep час_у_секундах\n"
14554 "\n"
14555
14556 #. type: textblock
14557 #: ../fish/guestfish-actions.pod:4499 ../src/guestfs-actions.pod:6746
14558 msgid "Sleep for C<secs> seconds."
14559 msgstr ""
14560
14561 #. type: =head2
14562 #: ../fish/guestfish-actions.pod:4501
14563 msgid "stat"
14564 msgstr "stat"
14565
14566 #. type: verbatim
14567 #: ../fish/guestfish-actions.pod:4503
14568 #, no-wrap
14569 msgid ""
14570 " stat path\n"
14571 "\n"
14572 msgstr ""
14573 " stat шлях\n"
14574 "\n"
14575
14576 #. type: textblock
14577 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6760
14578 msgid "This is the same as the C<stat(2)> system call."
14579 msgstr ""
14580
14581 #. type: =head2
14582 #: ../fish/guestfish-actions.pod:4509
14583 msgid "statvfs"
14584 msgstr "statvfs"
14585
14586 #. type: verbatim
14587 #: ../fish/guestfish-actions.pod:4511
14588 #, no-wrap
14589 msgid ""
14590 " statvfs path\n"
14591 "\n"
14592 msgstr ""
14593 " statvfs шлях\n"
14594 "\n"
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6774
14598 msgid ""
14599 "Returns file system statistics for any mounted file system.  C<path> should "
14600 "be a file or directory in the mounted file system (typically it is the mount "
14601 "point itself, but it doesn't need to be)."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
14606 msgid "This is the same as the C<statvfs(2)> system call."
14607 msgstr ""
14608
14609 #. type: =head2
14610 #: ../fish/guestfish-actions.pod:4519
14611 msgid "strings"
14612 msgstr "strings"
14613
14614 #. type: verbatim
14615 #: ../fish/guestfish-actions.pod:4521
14616 #, no-wrap
14617 msgid ""
14618 " strings path\n"
14619 "\n"
14620 msgstr ""
14621 " strings шлях\n"
14622 "\n"
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6792
14626 msgid ""
14627 "This runs the L<strings(1)> command on a file and returns the list of "
14628 "printable strings found."
14629 msgstr ""
14630
14631 #. type: =head2
14632 #: ../fish/guestfish-actions.pod:4529
14633 msgid "strings-e"
14634 msgstr "strings-e"
14635
14636 #. type: verbatim
14637 #: ../fish/guestfish-actions.pod:4531
14638 #, no-wrap
14639 msgid ""
14640 " strings-e encoding path\n"
14641 "\n"
14642 msgstr ""
14643 " strings-e кодування шлях\n"
14644 "\n"
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:4533
14648 msgid ""
14649 "This is like the L</strings> command, but allows you to specify the encoding "
14650 "of strings that are looked for in the source file C<path>."
14651 msgstr ""
14652
14653 #. type: textblock
14654 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
14655 msgid "Allowed encodings are:"
14656 msgstr "Можливими кодуваннями є:"
14657
14658 #. type: =item
14659 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
14660 msgid "s"
14661 msgstr "s"
14662
14663 #. type: textblock
14664 #: ../fish/guestfish-actions.pod:4543
14665 msgid ""
14666 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14667 "ISO-8859-X (this is what L</strings> uses)."
14668 msgstr ""
14669
14670 #. type: =item
14671 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6824
14672 msgid "S"
14673 msgstr "S"
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14677 msgid "Single 8-bit-byte characters."
14678 msgstr "Окремі 8-бітові-байтові символи."
14679
14680 #. type: =item
14681 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
14682 msgid "b"
14683 msgstr "b"
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
14687 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14688 msgstr ""
14689
14690 #. type: =item
14691 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:6833
14692 msgid "l (lower case letter L)"
14693 msgstr ""
14694
14695 #. type: textblock
14696 #: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:6835
14697 msgid ""
14698 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14699 "examining binaries in Windows guests."
14700 msgstr ""
14701
14702 #. type: =item
14703 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6838
14704 msgid "B"
14705 msgstr "B"
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:4562 ../src/guestfs-actions.pod:6840
14709 msgid "32-bit big endian such as UCS-4BE."
14710 msgstr ""
14711
14712 #. type: =item
14713 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
14714 msgid "L"
14715 msgstr "L"
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
14719 msgid "32-bit little endian such as UCS-4LE."
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
14724 msgid "The returned strings are transcoded to UTF-8."
14725 msgstr ""
14726
14727 #. type: =head2
14728 #: ../fish/guestfish-actions.pod:4575
14729 msgid "swapoff-device"
14730 msgstr "swapoff-device"
14731
14732 #. type: verbatim
14733 #: ../fish/guestfish-actions.pod:4577
14734 #, no-wrap
14735 msgid ""
14736 " swapoff-device device\n"
14737 "\n"
14738 msgstr ""
14739 " swapoff-device пристрій\n"
14740 "\n"
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:4579
14744 msgid ""
14745 "This command disables the libguestfs appliance swap device or partition "
14746 "named C<device>.  See L</swapon-device>."
14747 msgstr ""
14748
14749 #. type: =head2
14750 #: ../fish/guestfish-actions.pod:4583
14751 msgid "swapoff-file"
14752 msgstr "swapoff-file"
14753
14754 #. type: verbatim
14755 #: ../fish/guestfish-actions.pod:4585
14756 #, no-wrap
14757 msgid ""
14758 " swapoff-file file\n"
14759 "\n"
14760 msgstr ""
14761 " swapoff-file файл\n"
14762 "\n"
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:6879
14766 msgid "This command disables the libguestfs appliance swap on file."
14767 msgstr ""
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4589
14771 msgid "swapoff-label"
14772 msgstr "swapoff-label"
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4591
14776 #, no-wrap
14777 msgid ""
14778 " swapoff-label label\n"
14779 "\n"
14780 msgstr ""
14781 " swapoff-label мітка\n"
14782 "\n"
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6891
14786 msgid ""
14787 "This command disables the libguestfs appliance swap on labeled swap "
14788 "partition."
14789 msgstr ""
14790
14791 #. type: =head2
14792 #: ../fish/guestfish-actions.pod:4596
14793 msgid "swapoff-uuid"
14794 msgstr "swapoff-uuid"
14795
14796 #. type: verbatim
14797 #: ../fish/guestfish-actions.pod:4598
14798 #, no-wrap
14799 msgid ""
14800 " swapoff-uuid uuid\n"
14801 "\n"
14802 msgstr ""
14803 " swapoff-uuid uuid\n"
14804 "\n"
14805
14806 #. type: textblock
14807 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:6904
14808 msgid ""
14809 "This command disables the libguestfs appliance swap partition with the given "
14810 "UUID."
14811 msgstr ""
14812
14813 #. type: =head2
14814 #: ../fish/guestfish-actions.pod:4603
14815 msgid "swapon-device"
14816 msgstr "swapon-device"
14817
14818 #. type: verbatim
14819 #: ../fish/guestfish-actions.pod:4605
14820 #, no-wrap
14821 msgid ""
14822 " swapon-device device\n"
14823 "\n"
14824 msgstr ""
14825 " swapon-device пристрій\n"
14826 "\n"
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:4607
14830 msgid ""
14831 "This command enables the libguestfs appliance to use the swap device or "
14832 "partition named C<device>.  The increased memory is made available for all "
14833 "commands, for example those run using L</command> or L</sh>."
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6922
14838 msgid ""
14839 "Note that you should not swap to existing guest swap partitions unless you "
14840 "know what you are doing.  They may contain hibernation information, or other "
14841 "information that the guest doesn't want you to trash.  You also risk leaking "
14842 "information about the host to the guest this way.  Instead, attach a new "
14843 "host device to the guest and swap on that."
14844 msgstr ""
14845
14846 #. type: =head2
14847 #: ../fish/guestfish-actions.pod:4619
14848 msgid "swapon-file"
14849 msgstr "swapon-file"
14850
14851 #. type: verbatim
14852 #: ../fish/guestfish-actions.pod:4621
14853 #, no-wrap
14854 msgid ""
14855 " swapon-file file\n"
14856 "\n"
14857 msgstr ""
14858 " swapon-file файл\n"
14859 "\n"
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4623
14863 msgid ""
14864 "This command enables swap to a file.  See L</swapon-device> for other notes."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-actions.pod:4626
14869 msgid "swapon-label"
14870 msgstr "swapon-label"
14871
14872 #. type: verbatim
14873 #: ../fish/guestfish-actions.pod:4628
14874 #, no-wrap
14875 msgid ""
14876 " swapon-label label\n"
14877 "\n"
14878 msgstr ""
14879 " swapon-label мітка\n"
14880 "\n"
14881
14882 #. type: textblock
14883 #: ../fish/guestfish-actions.pod:4630
14884 msgid ""
14885 "This command enables swap to a labeled swap partition.  See L</swapon-"
14886 "device> for other notes."
14887 msgstr ""
14888
14889 #. type: =head2
14890 #: ../fish/guestfish-actions.pod:4633
14891 msgid "swapon-uuid"
14892 msgstr "swapon-uuid"
14893
14894 #. type: verbatim
14895 #: ../fish/guestfish-actions.pod:4635
14896 #, no-wrap
14897 msgid ""
14898 " swapon-uuid uuid\n"
14899 "\n"
14900 msgstr ""
14901 " swapon-uuid uuid\n"
14902 "\n"
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:4637
14906 msgid ""
14907 "This command enables swap to a swap partition with the given UUID.  See L</"
14908 "swapon-device> for other notes."
14909 msgstr ""
14910
14911 #. type: =head2
14912 #: ../fish/guestfish-actions.pod:4640
14913 msgid "sync"
14914 msgstr "sync"
14915
14916 #. type: verbatim
14917 #: ../fish/guestfish-actions.pod:4642
14918 #, no-wrap
14919 msgid ""
14920 " sync\n"
14921 "\n"
14922 msgstr ""
14923 " sync\n"
14924 "\n"
14925
14926 #. type: textblock
14927 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:6977
14928 msgid ""
14929 "This syncs the disk, so that any writes are flushed through to the "
14930 "underlying disk image."
14931 msgstr ""
14932
14933 #. type: textblock
14934 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:6980
14935 msgid ""
14936 "You should always call this if you have modified a disk image, before "
14937 "closing the handle."
14938 msgstr ""
14939
14940 #. type: =head2
14941 #: ../fish/guestfish-actions.pod:4650
14942 msgid "tail"
14943 msgstr "tail"
14944
14945 #. type: verbatim
14946 #: ../fish/guestfish-actions.pod:4652
14947 #, no-wrap
14948 msgid ""
14949 " tail path\n"
14950 "\n"
14951 msgstr ""
14952 " tail шлях\n"
14953 "\n"
14954
14955 #. type: textblock
14956 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:6993
14957 msgid ""
14958 "This command returns up to the last 10 lines of a file as a list of strings."
14959 msgstr ""
14960
14961 #. type: =head2
14962 #: ../fish/guestfish-actions.pod:4660
14963 msgid "tail-n"
14964 msgstr "tail-n"
14965
14966 #. type: verbatim
14967 #: ../fish/guestfish-actions.pod:4662
14968 #, no-wrap
14969 msgid ""
14970 " tail-n nrlines path\n"
14971 "\n"
14972 msgstr ""
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7012
14976 msgid ""
14977 "If the parameter C<nrlines> is a positive number, this returns the last "
14978 "C<nrlines> lines of the file C<path>."
14979 msgstr ""
14980
14981 #. type: textblock
14982 #: ../fish/guestfish-actions.pod:4667 ../src/guestfs-actions.pod:7015
14983 msgid ""
14984 "If the parameter C<nrlines> is a negative number, this returns lines from "
14985 "the file C<path>, starting with the C<-nrlines>th line."
14986 msgstr ""
14987
14988 #. type: =head2
14989 #: ../fish/guestfish-actions.pod:4675
14990 msgid "tar-in"
14991 msgstr "tar-in"
14992
14993 #. type: verbatim
14994 #: ../fish/guestfish-actions.pod:4677
14995 #, no-wrap
14996 msgid ""
14997 " tar-in (tarfile|-) directory\n"
14998 "\n"
14999 msgstr ""
15000 " tar-in (файл_tar|-) каталог\n"
15001 "\n"
15002
15003 #. type: textblock
15004 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7036
15005 msgid ""
15006 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15007 "tar file) into C<directory>."
15008 msgstr ""
15009
15010 #. type: textblock
15011 #: ../fish/guestfish-actions.pod:4682
15012 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15013 msgstr ""
15014
15015 #. type: =head2
15016 #: ../fish/guestfish-actions.pod:4687
15017 msgid "tar-out"
15018 msgstr "tar-out"
15019
15020 #. type: verbatim
15021 #: ../fish/guestfish-actions.pod:4689
15022 #, no-wrap
15023 msgid ""
15024 " tar-out directory (tarfile|-)\n"
15025 "\n"
15026 msgstr ""
15027 " tar-out каталог (файл tar|-)\n"
15028 "\n"
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7053
15032 msgid ""
15033 "This command packs the contents of C<directory> and downloads it to local "
15034 "file C<tarfile>."
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-actions.pod:4694
15039 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:4699
15044 msgid "tgz-in"
15045 msgstr "tgz-in"
15046
15047 #. type: verbatim
15048 #: ../fish/guestfish-actions.pod:4701
15049 #, no-wrap
15050 msgid ""
15051 " tgz-in (tarball|-) directory\n"
15052 "\n"
15053 msgstr ""
15054 " tgz-in (архів tar|-) каталог\n"
15055 "\n"
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7070
15059 msgid ""
15060 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15061 "tar file) into C<directory>."
15062 msgstr ""
15063
15064 #. type: textblock
15065 #: ../fish/guestfish-actions.pod:4706
15066 msgid "To upload an uncompressed tarball, use L</tar-in>."
15067 msgstr ""
15068
15069 #. type: =head2
15070 #: ../fish/guestfish-actions.pod:4710
15071 msgid "tgz-out"
15072 msgstr "tgz-out"
15073
15074 #. type: verbatim
15075 #: ../fish/guestfish-actions.pod:4712
15076 #, no-wrap
15077 msgid ""
15078 " tgz-out directory (tarball|-)\n"
15079 "\n"
15080 msgstr ""
15081 " tgz-out каталог (архів tar|-)\n"
15082 "\n"
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7086
15086 msgid ""
15087 "This command packs the contents of C<directory> and downloads it to local "
15088 "file C<tarball>."
15089 msgstr ""
15090
15091 #. type: textblock
15092 #: ../fish/guestfish-actions.pod:4717
15093 msgid "To download an uncompressed tarball, use L</tar-out>."
15094 msgstr ""
15095
15096 #. type: =head2
15097 #: ../fish/guestfish-actions.pod:4721
15098 msgid "touch"
15099 msgstr "touch"
15100
15101 #. type: verbatim
15102 #: ../fish/guestfish-actions.pod:4723
15103 #, no-wrap
15104 msgid ""
15105 " touch path\n"
15106 "\n"
15107 msgstr ""
15108 " touch шлях\n"
15109 "\n"
15110
15111 #. type: textblock
15112 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7101
15113 msgid ""
15114 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15115 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15116 "length file."
15117 msgstr ""
15118
15119 #. type: textblock
15120 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
15121 msgid ""
15122 "This command only works on regular files, and will fail on other file types "
15123 "such as directories, symbolic links, block special etc."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../fish/guestfish-actions.pod:4732
15128 msgid "truncate"
15129 msgstr "truncate"
15130
15131 #. type: verbatim
15132 #: ../fish/guestfish-actions.pod:4734
15133 #, no-wrap
15134 msgid ""
15135 " truncate path\n"
15136 "\n"
15137 msgstr ""
15138 " truncate шлях\n"
15139 "\n"
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7118
15143 msgid ""
15144 "This command truncates C<path> to a zero-length file.  The file must exist "
15145 "already."
15146 msgstr ""
15147
15148 #. type: =head2
15149 #: ../fish/guestfish-actions.pod:4739
15150 msgid "truncate-size"
15151 msgstr "truncate-size"
15152
15153 #. type: verbatim
15154 #: ../fish/guestfish-actions.pod:4741
15155 #, no-wrap
15156 msgid ""
15157 " truncate-size path size\n"
15158 "\n"
15159 msgstr ""
15160 " truncate-size шлях розмір\n"
15161 "\n"
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7132
15165 msgid ""
15166 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15167 "already."
15168 msgstr ""
15169
15170 #. type: textblock
15171 #: ../fish/guestfish-actions.pod:4746
15172 msgid ""
15173 "If the current file size is less than C<size> then the file is extended to "
15174 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15175 "blocks are not allocated for the file until you write to it).  To create a "
15176 "non-sparse file of zeroes, use L</fallocate64> instead."
15177 msgstr ""
15178
15179 #. type: =head2
15180 #: ../fish/guestfish-actions.pod:4752
15181 msgid "tune2fs-l"
15182 msgstr "tune2fs-l"
15183
15184 #. type: verbatim
15185 #: ../fish/guestfish-actions.pod:4754
15186 #, no-wrap
15187 msgid ""
15188 " tune2fs-l device\n"
15189 "\n"
15190 msgstr ""
15191 " tune2fs-l пристрій\n"
15192 "\n"
15193
15194 #. type: textblock
15195 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7151
15196 msgid ""
15197 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15198 "C<device>."
15199 msgstr ""
15200
15201 #. type: textblock
15202 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7154
15203 msgid ""
15204 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15205 "for more details.  The list of fields returned isn't clearly defined, and "
15206 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15207 "and the filesystem itself."
15208 msgstr ""
15209
15210 #. type: =head2
15211 #: ../fish/guestfish-actions.pod:4764
15212 msgid "txz-in"
15213 msgstr "txz-in"
15214
15215 #. type: verbatim
15216 #: ../fish/guestfish-actions.pod:4766
15217 #, no-wrap
15218 msgid ""
15219 " txz-in (tarball|-) directory\n"
15220 "\n"
15221 msgstr ""
15222 " txz-in (архів tar|-) каталог\n"
15223 "\n"
15224
15225 #. type: textblock
15226 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7174
15227 msgid ""
15228 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15229 "tar file) into C<directory>."
15230 msgstr ""
15231
15232 #. type: =head2
15233 #: ../fish/guestfish-actions.pod:4773
15234 msgid "txz-out"
15235 msgstr "txz-out"
15236
15237 #. type: verbatim
15238 #: ../fish/guestfish-actions.pod:4775
15239 #, no-wrap
15240 msgid ""
15241 " txz-out directory (tarball|-)\n"
15242 "\n"
15243 msgstr ""
15244 " txz-out каталог (архів tar|-)\n"
15245 "\n"
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7188
15249 msgid ""
15250 "This command packs the contents of C<directory> and downloads it to local "
15251 "file C<tarball> (as an xz compressed tar archive)."
15252 msgstr ""
15253
15254 #. type: =head2
15255 #: ../fish/guestfish-actions.pod:4782
15256 msgid "umask"
15257 msgstr "umask"
15258
15259 #. type: verbatim
15260 #: ../fish/guestfish-actions.pod:4784
15261 #, no-wrap
15262 msgid ""
15263 " umask mask\n"
15264 "\n"
15265 msgstr ""
15266 " umask маска\n"
15267 "\n"
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7201
15271 msgid ""
15272 "This function sets the mask used for creating new files and device nodes to "
15273 "C<mask & 0777>."
15274 msgstr ""
15275
15276 #. type: textblock
15277 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7204
15278 msgid ""
15279 "Typical umask values would be C<022> which creates new files with "
15280 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15281 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15282 msgstr ""
15283
15284 #. type: textblock
15285 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7209
15286 msgid ""
15287 "The default umask is C<022>.  This is important because it means that "
15288 "directories and device nodes will be created with C<0644> or C<0755> mode "
15289 "even if you specify C<0777>."
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:4798
15294 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15295 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15296
15297 #. type: textblock
15298 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7216
15299 msgid "This call returns the previous umask."
15300 msgstr ""
15301
15302 #. type: =head2
15303 #: ../fish/guestfish-actions.pod:4803
15304 msgid "umount"
15305 msgstr "umount"
15306
15307 #. type: =head2
15308 #: ../fish/guestfish-actions.pod:4805
15309 msgid "unmount"
15310 msgstr "unmount"
15311
15312 #. type: verbatim
15313 #: ../fish/guestfish-actions.pod:4807
15314 #, no-wrap
15315 msgid ""
15316 " umount pathordevice\n"
15317 "\n"
15318 msgstr ""
15319 " umount шлях_або_пристрій\n"
15320 "\n"
15321
15322 #. type: textblock
15323 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7228
15324 msgid ""
15325 "This unmounts the given filesystem.  The filesystem may be specified either "
15326 "by its mountpoint (path) or the device which contains the filesystem."
15327 msgstr ""
15328
15329 #. type: =head2
15330 #: ../fish/guestfish-actions.pod:4813
15331 msgid "umount-all"
15332 msgstr "umount-all"
15333
15334 #. type: =head2
15335 #: ../fish/guestfish-actions.pod:4815
15336 msgid "unmount-all"
15337 msgstr "unmount-all"
15338
15339 #. type: verbatim
15340 #: ../fish/guestfish-actions.pod:4817
15341 #, no-wrap
15342 msgid ""
15343 " umount-all\n"
15344 "\n"
15345 msgstr ""
15346 " umount-all\n"
15347 "\n"
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7241
15351 msgid "This unmounts all mounted filesystems."
15352 msgstr ""
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7243
15356 msgid "Some internal mounts are not unmounted by this call."
15357 msgstr ""
15358
15359 #. type: =head2
15360 #: ../fish/guestfish-actions.pod:4823
15361 msgid "upload"
15362 msgstr "upload"
15363
15364 #. type: verbatim
15365 #: ../fish/guestfish-actions.pod:4825
15366 #, no-wrap
15367 msgid ""
15368 " upload (filename|-) remotefilename\n"
15369 "\n"
15370 msgstr ""
15371 " upload (назва_файла|-) назва_віддаленого_файла\n"
15372 "\n"
15373
15374 #. type: textblock
15375 #: ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4840
15376 #: ../src/guestfs-actions.pod:7256 ../src/guestfs-actions.pod:7280
15377 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:4832
15382 msgid "See also L</download>."
15383 msgstr "Див. також L</download>."
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-actions.pod:4836
15387 msgid "upload-offset"
15388 msgstr "upload-offset"
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-actions.pod:4838
15392 #, no-wrap
15393 msgid ""
15394 " upload-offset (filename|-) remotefilename offset\n"
15395 "\n"
15396 msgstr ""
15397 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15398 "\n"
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7283
15402 msgid ""
15403 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15404 "The intention is to overwrite parts of existing files or devices, although "
15405 "if a non-existant file is specified then it is created with a \"hole\" "
15406 "before C<offset>.  The size of the data written is implicit in the size of "
15407 "the source C<filename>."
15408 msgstr ""
15409
15410 #. type: textblock
15411 #: ../fish/guestfish-actions.pod:4850
15412 msgid ""
15413 "Note that there is no limit on the amount of data that can be uploaded with "
15414 "this call, unlike with L</pwrite>, and this call always writes the full "
15415 "amount unless an error occurs."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:4855
15420 msgid "See also L</upload>, L</pwrite>."
15421 msgstr "Див. також L</upload>, L</pwrite>."
15422
15423 #. type: =head2
15424 #: ../fish/guestfish-actions.pod:4859
15425 msgid "utimens"
15426 msgstr "utimens"
15427
15428 #. type: verbatim
15429 #: ../fish/guestfish-actions.pod:4861
15430 #, no-wrap
15431 msgid ""
15432 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15433 "\n"
15434 msgstr ""
15435
15436 #. type: textblock
15437 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7316
15438 msgid "This command sets the timestamps of a file with nanosecond precision."
15439 msgstr ""
15440
15441 #. type: textblock
15442 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7319
15443 msgid ""
15444 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15445 "from the epoch."
15446 msgstr ""
15447
15448 #. type: textblock
15449 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7322
15450 msgid ""
15451 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15452 "nanoseconds from the epoch."
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7325
15457 msgid ""
15458 "If the C<*nsecs> field contains the special value C<-1> then the "
15459 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15460 "ignored in this case)."
15461 msgstr ""
15462
15463 #. type: textblock
15464 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
15465 msgid ""
15466 "If the C<*nsecs> field contains the special value C<-2> then the "
15467 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15468 "in this case)."
15469 msgstr ""
15470
15471 #. type: =head2
15472 #: ../fish/guestfish-actions.pod:4880
15473 msgid "version"
15474 msgstr "version"
15475
15476 #. type: verbatim
15477 #: ../fish/guestfish-actions.pod:4882
15478 #, no-wrap
15479 msgid ""
15480 " version\n"
15481 "\n"
15482 msgstr ""
15483 " version\n"
15484 "\n"
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7342
15488 msgid ""
15489 "Return the libguestfs version number that the program is linked against."
15490 msgstr ""
15491
15492 #. type: textblock
15493 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7345
15494 msgid ""
15495 "Note that because of dynamic linking this is not necessarily the version of "
15496 "libguestfs that you compiled against.  You can compile the program, and then "
15497 "at runtime dynamically link against a completely different C<libguestfs.so> "
15498 "library."
15499 msgstr ""
15500
15501 #. type: textblock
15502 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7350
15503 msgid ""
15504 "This call was added in version C<1.0.58>.  In previous versions of "
15505 "libguestfs there was no way to get the version number.  From C code you can "
15506 "use dynamic linker functions to find out if this symbol exists (if it "
15507 "doesn't, then it's an earlier version)."
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7356
15512 msgid ""
15513 "The call returns a structure with four elements.  The first three (C<major>, "
15514 "C<minor> and C<release>) are numbers and correspond to the usual version "
15515 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15516 "but may be used for distro-specific information."
15517 msgstr ""
15518
15519 #. type: textblock
15520 #: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7362
15521 msgid ""
15522 "To construct the original version string: C<$major.$minor.$release$extra>"
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7365
15527 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../fish/guestfish-actions.pod:4909
15532 msgid ""
15533 "I<Note:> Don't use this call to test for availability of features.  In "
15534 "enterprise distributions we backport features from later versions into "
15535 "earlier versions, making this an unreliable way to test for features.  Use "
15536 "L</available> instead."
15537 msgstr ""
15538
15539 #. type: =head2
15540 #: ../fish/guestfish-actions.pod:4915
15541 msgid "vfs-label"
15542 msgstr "vfs-label"
15543
15544 #. type: verbatim
15545 #: ../fish/guestfish-actions.pod:4917
15546 #, no-wrap
15547 msgid ""
15548 " vfs-label device\n"
15549 "\n"
15550 msgstr ""
15551 " vfs-label пристрій\n"
15552 "\n"
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7385
15556 msgid "This returns the filesystem label of the filesystem on C<device>."
15557 msgstr ""
15558
15559 #. type: textblock
15560 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7388
15561 msgid "If the filesystem is unlabeled, this returns the empty string."
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:4924
15566 msgid "To find a filesystem from the label, use L</findfs-label>."
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4926
15571 msgid "vfs-type"
15572 msgstr "vfs-type"
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:4928
15576 #, no-wrap
15577 msgid ""
15578 " vfs-type device\n"
15579 "\n"
15580 msgstr ""
15581 " vfs-type пристрій\n"
15582 "\n"
15583
15584 #. type: textblock
15585 #: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7403
15586 msgid ""
15587 "This command gets the filesystem type corresponding to the filesystem on "
15588 "C<device>."
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7406
15593 msgid ""
15594 "For most filesystems, the result is the name of the Linux VFS module which "
15595 "would be used to mount this filesystem if you mounted it without specifying "
15596 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15597 msgstr ""
15598
15599 #. type: =head2
15600 #: ../fish/guestfish-actions.pod:4938
15601 msgid "vfs-uuid"
15602 msgstr "vfs-uuid"
15603
15604 #. type: verbatim
15605 #: ../fish/guestfish-actions.pod:4940
15606 #, no-wrap
15607 msgid ""
15608 " vfs-uuid device\n"
15609 "\n"
15610 msgstr ""
15611 " vfs-uuid пристрій\n"
15612 "\n"
15613
15614 #. type: textblock
15615 #: ../fish/guestfish-actions.pod:4942 ../src/guestfs-actions.pod:7422
15616 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7425
15621 msgid "If the filesystem does not have a UUID, this returns the empty string."
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-actions.pod:4947
15626 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15627 msgstr ""
15628
15629 #. type: =head2
15630 #: ../fish/guestfish-actions.pod:4949
15631 msgid "vg-activate"
15632 msgstr "vg-activate"
15633
15634 #. type: verbatim
15635 #: ../fish/guestfish-actions.pod:4951
15636 #, no-wrap
15637 msgid ""
15638 " vg-activate true|false 'volgroups ...'\n"
15639 "\n"
15640 msgstr ""
15641
15642 #. type: textblock
15643 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7441
15644 msgid ""
15645 "This command activates or (if C<activate> is false) deactivates all logical "
15646 "volumes in the listed volume groups C<volgroups>."
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7444
15651 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7446
15656 msgid ""
15657 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15658 "activated or deactivated."
15659 msgstr ""
15660
15661 #. type: =head2
15662 #: ../fish/guestfish-actions.pod:4961
15663 msgid "vg-activate-all"
15664 msgstr "vg-activate-all"
15665
15666 #. type: verbatim
15667 #: ../fish/guestfish-actions.pod:4963
15668 #, no-wrap
15669 msgid ""
15670 " vg-activate-all true|false\n"
15671 "\n"
15672 msgstr ""
15673 " vg-activate-all true|false\n"
15674 "\n"
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7459
15678 msgid ""
15679 "This command activates or (if C<activate> is false) deactivates all logical "
15680 "volumes in all volume groups."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4968 ../src/guestfs-actions.pod:7462
15685 msgid "This command is the same as running C<vgchange -a y|n>"
15686 msgstr ""
15687
15688 #. type: =head2
15689 #: ../fish/guestfish-actions.pod:4970
15690 msgid "vgcreate"
15691 msgstr "vgcreate"
15692
15693 #. type: verbatim
15694 #: ../fish/guestfish-actions.pod:4972
15695 #, no-wrap
15696 msgid ""
15697 " vgcreate volgroup 'physvols ...'\n"
15698 "\n"
15699 msgstr ""
15700
15701 #. type: textblock
15702 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7475
15703 msgid ""
15704 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15705 "of physical volumes C<physvols>."
15706 msgstr ""
15707
15708 #. type: =head2
15709 #: ../fish/guestfish-actions.pod:4977
15710 msgid "vglvuuids"
15711 msgstr "vglvuuids"
15712
15713 #. type: verbatim
15714 #: ../fish/guestfish-actions.pod:4979
15715 #, no-wrap
15716 msgid ""
15717 " vglvuuids vgname\n"
15718 "\n"
15719 msgstr ""
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-actions.pod:4981 ../src/guestfs-actions.pod:7488
15723 msgid ""
15724 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15725 "volumes created in this volume group."
15726 msgstr ""
15727
15728 #. type: textblock
15729 #: ../fish/guestfish-actions.pod:4984
15730 msgid ""
15731 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15732 "logical volumes and volume groups."
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish-actions.pod:4987
15737 msgid "See also L</vgpvuuids>."
15738 msgstr "Див. також L</vgpvuuids>."
15739
15740 #. type: =head2
15741 #: ../fish/guestfish-actions.pod:4989
15742 msgid "vgpvuuids"
15743 msgstr "vgpvuuids"
15744
15745 #. type: verbatim
15746 #: ../fish/guestfish-actions.pod:4991
15747 #, no-wrap
15748 msgid ""
15749 " vgpvuuids vgname\n"
15750 "\n"
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7508
15755 msgid ""
15756 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15757 "volumes that this volume group resides on."
15758 msgstr ""
15759
15760 #. type: textblock
15761 #: ../fish/guestfish-actions.pod:4996
15762 msgid ""
15763 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15764 "physical volumes and volume groups."
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-actions.pod:4999
15769 msgid "See also L</vglvuuids>."
15770 msgstr "Див. також L</vglvuuids>."
15771
15772 #. type: =head2
15773 #: ../fish/guestfish-actions.pod:5001
15774 msgid "vgremove"
15775 msgstr "vgremove"
15776
15777 #. type: verbatim
15778 #: ../fish/guestfish-actions.pod:5003
15779 #, no-wrap
15780 msgid ""
15781 " vgremove vgname\n"
15782 "\n"
15783 msgstr ""
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7528
15787 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7530
15792 msgid ""
15793 "This also forcibly removes all logical volumes in the volume group (if any)."
15794 msgstr ""
15795
15796 #. type: =head2
15797 #: ../fish/guestfish-actions.pod:5010
15798 msgid "vgrename"
15799 msgstr "vgrename"
15800
15801 #. type: verbatim
15802 #: ../fish/guestfish-actions.pod:5012
15803 #, no-wrap
15804 msgid ""
15805 " vgrename volgroup newvolgroup\n"
15806 "\n"
15807 msgstr ""
15808
15809 #. type: textblock
15810 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7544
15811 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15812 msgstr ""
15813
15814 #. type: =head2
15815 #: ../fish/guestfish-actions.pod:5016
15816 msgid "vgs"
15817 msgstr "vgs"
15818
15819 #. type: verbatim
15820 #: ../fish/guestfish-actions.pod:5018
15821 #, no-wrap
15822 msgid ""
15823 " vgs\n"
15824 "\n"
15825 msgstr ""
15826 " vgs\n"
15827 "\n"
15828
15829 #. type: textblock
15830 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7555
15831 msgid ""
15832 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15833 "> command."
15834 msgstr ""
15835
15836 #. type: textblock
15837 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7558
15838 msgid ""
15839 "This returns a list of just the volume group names that were detected (eg. "
15840 "C<VolGroup00>)."
15841 msgstr ""
15842
15843 #. type: textblock
15844 #: ../fish/guestfish-actions.pod:5026
15845 msgid "See also L</vgs-full>."
15846 msgstr "Див. також L</vgs-full>."
15847
15848 #. type: =head2
15849 #: ../fish/guestfish-actions.pod:5028
15850 msgid "vgs-full"
15851 msgstr "vgs-full"
15852
15853 #. type: verbatim
15854 #: ../fish/guestfish-actions.pod:5030
15855 #, no-wrap
15856 msgid ""
15857 " vgs-full\n"
15858 "\n"
15859 msgstr ""
15860 " vgs-full\n"
15861 "\n"
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7574
15865 msgid ""
15866 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15867 "> command.  The \"full\" version includes all fields."
15868 msgstr ""
15869
15870 #. type: =head2
15871 #: ../fish/guestfish-actions.pod:5035
15872 msgid "vgscan"
15873 msgstr "vgscan"
15874
15875 #. type: verbatim
15876 #: ../fish/guestfish-actions.pod:5037
15877 #, no-wrap
15878 msgid ""
15879 " vgscan\n"
15880 "\n"
15881 msgstr ""
15882 " vgscan\n"
15883 "\n"
15884
15885 #. type: textblock
15886 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7588
15887 msgid ""
15888 "This rescans all block devices and rebuilds the list of LVM physical "
15889 "volumes, volume groups and logical volumes."
15890 msgstr ""
15891
15892 #. type: =head2
15893 #: ../fish/guestfish-actions.pod:5042
15894 msgid "vguuid"
15895 msgstr "vguuid"
15896
15897 #. type: verbatim
15898 #: ../fish/guestfish-actions.pod:5044
15899 #, no-wrap
15900 msgid ""
15901 " vguuid vgname\n"
15902 "\n"
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7601
15907 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15908 msgstr ""
15909
15910 #. type: =head2
15911 #: ../fish/guestfish-actions.pod:5048
15912 msgid "wc-c"
15913 msgstr "wc-c"
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish-actions.pod:5050
15917 #, no-wrap
15918 msgid ""
15919 " wc-c path\n"
15920 "\n"
15921 msgstr ""
15922 " wc-c шлях\n"
15923 "\n"
15924
15925 #. type: textblock
15926 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7641
15927 msgid ""
15928 "This command counts the characters in a file, using the C<wc -c> external "
15929 "command."
15930 msgstr ""
15931
15932 #. type: =head2
15933 #: ../fish/guestfish-actions.pod:5055
15934 msgid "wc-l"
15935 msgstr "wc-l"
15936
15937 #. type: verbatim
15938 #: ../fish/guestfish-actions.pod:5057
15939 #, no-wrap
15940 msgid ""
15941 " wc-l path\n"
15942 "\n"
15943 msgstr ""
15944 " wc-l шлях\n"
15945 "\n"
15946
15947 #. type: textblock
15948 #: ../fish/guestfish-actions.pod:5059 ../src/guestfs-actions.pod:7654
15949 msgid ""
15950 "This command counts the lines in a file, using the C<wc -l> external command."
15951 msgstr ""
15952
15953 #. type: =head2
15954 #: ../fish/guestfish-actions.pod:5062
15955 msgid "wc-w"
15956 msgstr "wc-w"
15957
15958 #. type: verbatim
15959 #: ../fish/guestfish-actions.pod:5064
15960 #, no-wrap
15961 msgid ""
15962 " wc-w path\n"
15963 "\n"
15964 msgstr ""
15965 " wc-w шлях\n"
15966 "\n"
15967
15968 #. type: textblock
15969 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7667
15970 msgid ""
15971 "This command counts the words in a file, using the C<wc -w> external command."
15972 msgstr ""
15973
15974 #. type: =head2
15975 #: ../fish/guestfish-actions.pod:5069
15976 msgid "write"
15977 msgstr "write"
15978
15979 #. type: verbatim
15980 #: ../fish/guestfish-actions.pod:5071
15981 #, no-wrap
15982 msgid ""
15983 " write path content\n"
15984 "\n"
15985 msgstr ""
15986 " write шлях дані\n"
15987 "\n"
15988
15989 #. type: textblock
15990 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7682
15991 msgid ""
15992 "This call creates a file called C<path>.  The content of the file is the "
15993 "string C<content> (which can contain any 8 bit data)."
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../fish/guestfish-actions.pod:5076
15998 msgid "See also L</write-append>."
15999 msgstr ""
16000
16001 #. type: =head2
16002 #: ../fish/guestfish-actions.pod:5081
16003 msgid "write-append"
16004 msgstr ""
16005
16006 #. type: verbatim
16007 #: ../fish/guestfish-actions.pod:5083
16008 #, no-wrap
16009 msgid ""
16010 " write-append path content\n"
16011 "\n"
16012 msgstr ""
16013
16014 #. type: textblock
16015 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7702
16016 msgid ""
16017 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16018 "not exist, then a new file is created."
16019 msgstr ""
16020
16021 #. type: textblock
16022 #: ../fish/guestfish-actions.pod:5088
16023 msgid "See also L</write>."
16024 msgstr ""
16025
16026 #. type: =head2
16027 #: ../fish/guestfish-actions.pod:5093
16028 msgid "write-file"
16029 msgstr "write-file"
16030
16031 #. type: verbatim
16032 #: ../fish/guestfish-actions.pod:5095
16033 #, no-wrap
16034 msgid ""
16035 " write-file path content size\n"
16036 "\n"
16037 msgstr ""
16038
16039 #. type: textblock
16040 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7722
16041 msgid ""
16042 "This call creates a file called C<path>.  The contents of the file is the "
16043 "string C<content> (which can contain any 8 bit data), with length C<size>."
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7726
16048 msgid ""
16049 "As a special case, if C<size> is C<0> then the length is calculated using "
16050 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16051 msgstr ""
16052
16053 #. type: textblock
16054 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7730
16055 msgid ""
16056 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16057 "I<not> work, even if the length is specified."
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../fish/guestfish-actions.pod:5111
16062 msgid ""
16063 "This function is deprecated.  In new code, use the L</write> call instead."
16064 msgstr ""
16065
16066 #. type: =head2
16067 #: ../fish/guestfish-actions.pod:5118
16068 msgid "zegrep"
16069 msgstr "zegrep"
16070
16071 #. type: verbatim
16072 #: ../fish/guestfish-actions.pod:5120
16073 #, no-wrap
16074 msgid ""
16075 " zegrep regex path\n"
16076 "\n"
16077 msgstr ""
16078 " zegrep формальний_вираз шлях\n"
16079 "\n"
16080
16081 #. type: textblock
16082 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7754
16083 msgid ""
16084 "This calls the external C<zegrep> program and returns the matching lines."
16085 msgstr ""
16086
16087 #. type: =head2
16088 #: ../fish/guestfish-actions.pod:5128
16089 msgid "zegrepi"
16090 msgstr "zegrepi"
16091
16092 #. type: verbatim
16093 #: ../fish/guestfish-actions.pod:5130
16094 #, no-wrap
16095 msgid ""
16096 " zegrepi regex path\n"
16097 "\n"
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7773
16102 msgid ""
16103 "This calls the external C<zegrep -i> program and returns the matching lines."
16104 msgstr ""
16105
16106 #. type: =head2
16107 #: ../fish/guestfish-actions.pod:5138
16108 msgid "zero"
16109 msgstr "zero"
16110
16111 #. type: verbatim
16112 #: ../fish/guestfish-actions.pod:5140
16113 #, no-wrap
16114 msgid ""
16115 " zero device\n"
16116 "\n"
16117 msgstr ""
16118 " zero пристрій\n"
16119 "\n"
16120
16121 #. type: textblock
16122 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7791
16123 msgid "This command writes zeroes over the first few blocks of C<device>."
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7793
16128 msgid ""
16129 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16130 "securely wipe the device).  It should be sufficient to remove any partition "
16131 "tables, filesystem superblocks and so on."
16132 msgstr ""
16133
16134 #. type: textblock
16135 #: ../fish/guestfish-actions.pod:5148 ../fish/guestfish-actions.pod:5163
16136 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7823
16137 msgid ""
16138 "If blocks are already zero, then this command avoids writing zeroes.  This "
16139 "prevents the underlying device from becoming non-sparse or growing "
16140 "unnecessarily."
16141 msgstr ""
16142
16143 #. type: textblock
16144 #: ../fish/guestfish-actions.pod:5152
16145 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16146 msgstr ""
16147
16148 #. type: =head2
16149 #: ../fish/guestfish-actions.pod:5155
16150 msgid "zero-device"
16151 msgstr "zero-device"
16152
16153 #. type: verbatim
16154 #: ../fish/guestfish-actions.pod:5157
16155 #, no-wrap
16156 msgid ""
16157 " zero-device device\n"
16158 "\n"
16159 msgstr ""
16160 " zero-device пристрій\n"
16161 "\n"
16162
16163 #. type: textblock
16164 #: ../fish/guestfish-actions.pod:5159
16165 msgid ""
16166 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16167 "which just zeroes the first few blocks of a device."
16168 msgstr ""
16169
16170 #. type: =head2
16171 #: ../fish/guestfish-actions.pod:5170
16172 msgid "zerofree"
16173 msgstr "zerofree"
16174
16175 #. type: verbatim
16176 #: ../fish/guestfish-actions.pod:5172
16177 #, no-wrap
16178 msgid ""
16179 " zerofree device\n"
16180 "\n"
16181 msgstr ""
16182 " zerofree пристрій\n"
16183 "\n"
16184
16185 #. type: textblock
16186 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7845
16187 msgid ""
16188 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16189 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16190 "possible to compress the filesystem more effectively."
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7850
16195 msgid "You should B<not> run this program if the filesystem is mounted."
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7853
16200 msgid ""
16201 "It is possible that using this program can damage the filesystem or data on "
16202 "the filesystem."
16203 msgstr ""
16204
16205 #. type: =head2
16206 #: ../fish/guestfish-actions.pod:5185
16207 msgid "zfgrep"
16208 msgstr "zfgrep"
16209
16210 #. type: verbatim
16211 #: ../fish/guestfish-actions.pod:5187
16212 #, no-wrap
16213 msgid ""
16214 " zfgrep pattern path\n"
16215 "\n"
16216 msgstr ""
16217 " zfgrep шаблон шлях\n"
16218 "\n"
16219
16220 #. type: textblock
16221 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7867
16222 msgid ""
16223 "This calls the external C<zfgrep> program and returns the matching lines."
16224 msgstr ""
16225
16226 #. type: =head2
16227 #: ../fish/guestfish-actions.pod:5195
16228 msgid "zfgrepi"
16229 msgstr "zfgrepi"
16230
16231 #. type: verbatim
16232 #: ../fish/guestfish-actions.pod:5197
16233 #, no-wrap
16234 msgid ""
16235 " zfgrepi pattern path\n"
16236 "\n"
16237 msgstr ""
16238 " zfgrepi шаблон шлях\n"
16239 "\n"
16240
16241 #. type: textblock
16242 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7886
16243 msgid ""
16244 "This calls the external C<zfgrep -i> program and returns the matching lines."
16245 msgstr ""
16246
16247 #. type: =head2
16248 #: ../fish/guestfish-actions.pod:5205
16249 msgid "zfile"
16250 msgstr "zfile"
16251
16252 #. type: verbatim
16253 #: ../fish/guestfish-actions.pod:5207
16254 #, no-wrap
16255 msgid ""
16256 " zfile meth path\n"
16257 "\n"
16258 msgstr ""
16259 " zfile метод шлях\n"
16260 "\n"
16261
16262 #. type: textblock
16263 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7905
16264 msgid ""
16265 "This command runs C<file> after first decompressing C<path> using C<method>."
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:7908
16270 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:5214
16275 msgid ""
16276 "Since 1.0.63, use L</file> instead which can now process compressed files."
16277 msgstr ""
16278
16279 #. type: textblock
16280 #: ../fish/guestfish-actions.pod:5217
16281 msgid ""
16282 "This function is deprecated.  In new code, use the L</file> call instead."
16283 msgstr ""
16284
16285 #. type: =head2
16286 #: ../fish/guestfish-actions.pod:5224
16287 msgid "zgrep"
16288 msgstr "zgrep"
16289
16290 #. type: verbatim
16291 #: ../fish/guestfish-actions.pod:5226
16292 #, no-wrap
16293 msgid ""
16294 " zgrep regex path\n"
16295 "\n"
16296 msgstr ""
16297 " zgrep формальний_вираз шлях\n"
16298 "\n"
16299
16300 #. type: textblock
16301 #: ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7932
16302 msgid ""
16303 "This calls the external C<zgrep> program and returns the matching lines."
16304 msgstr ""
16305
16306 #. type: =head2
16307 #: ../fish/guestfish-actions.pod:5234
16308 msgid "zgrepi"
16309 msgstr "zgrepi"
16310
16311 #. type: verbatim
16312 #: ../fish/guestfish-actions.pod:5236
16313 #, no-wrap
16314 msgid ""
16315 " zgrepi regex path\n"
16316 "\n"
16317 msgstr ""
16318 " zgrepi формальний_вираз шлях\n"
16319 "\n"
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:7951
16323 msgid ""
16324 "This calls the external C<zgrep -i> program and returns the matching lines."
16325 msgstr ""
16326
16327 #. type: =head2
16328 #: ../fish/guestfish-commands.pod:1
16329 msgid "alloc"
16330 msgstr "alloc"
16331
16332 #. type: =head2
16333 #: ../fish/guestfish-commands.pod:3
16334 msgid "allocate"
16335 msgstr ""
16336
16337 #. type: verbatim
16338 #: ../fish/guestfish-commands.pod:5
16339 #, no-wrap
16340 msgid ""
16341 " alloc filename size\n"
16342 "\n"
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-commands.pod:7
16347 msgid ""
16348 "This creates an empty (zeroed) file of the given size, and then adds so it "
16349 "can be further examined."
16350 msgstr ""
16351
16352 #. type: textblock
16353 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16354 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16355 msgstr ""
16356
16357 #. type: textblock
16358 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16359 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16360 msgstr ""
16361
16362 #. type: textblock
16363 #: ../fish/guestfish-commands.pod:14
16364 msgid ""
16365 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16366 "image, see L</PREPARED DISK IMAGES>."
16367 msgstr ""
16368
16369 #. type: =head2
16370 #: ../fish/guestfish-commands.pod:17
16371 msgid "copy-in"
16372 msgstr "copy-in"
16373
16374 #. type: verbatim
16375 #: ../fish/guestfish-commands.pod:19
16376 #, no-wrap
16377 msgid ""
16378 " copy-in local [local ...] /remotedir\n"
16379 "\n"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-commands.pod:21
16384 msgid ""
16385 "C<copy-in> copies local files or directories recursively into the disk "
16386 "image, placing them in the directory called C</remotedir> (which must "
16387 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16388 "other commands as necessary."
16389 msgstr ""
16390
16391 #. type: textblock
16392 #: ../fish/guestfish-commands.pod:26
16393 msgid ""
16394 "Multiple local files and directories can be specified, but the last "
16395 "parameter must always be a remote directory.  Wildcards cannot be used."
16396 msgstr ""
16397
16398 #. type: =head2
16399 #: ../fish/guestfish-commands.pod:30
16400 msgid "copy-out"
16401 msgstr "copy-out"
16402
16403 #. type: verbatim
16404 #: ../fish/guestfish-commands.pod:32
16405 #, no-wrap
16406 msgid ""
16407 " copy-out remote [remote ...] localdir\n"
16408 "\n"
16409 msgstr ""
16410
16411 #. type: textblock
16412 #: ../fish/guestfish-commands.pod:34
16413 msgid ""
16414 "C<copy-out> copies remote files or directories recursively out of the disk "
16415 "image, placing them on the host disk in a local directory called C<localdir> "
16416 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16417 "download>, L</tar-out> and other commands as necessary."
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../fish/guestfish-commands.pod:40
16422 msgid ""
16423 "Multiple remote files and directories can be specified, but the last "
16424 "parameter must always be a local directory.  To download to the current "
16425 "directory, use C<.> as in:"
16426 msgstr ""
16427
16428 #. type: verbatim
16429 #: ../fish/guestfish-commands.pod:44
16430 #, no-wrap
16431 msgid ""
16432 " copy-out /home .\n"
16433 "\n"
16434 msgstr ""
16435 " copy-out /home .\n"
16436 "\n"
16437
16438 #. type: textblock
16439 #: ../fish/guestfish-commands.pod:46
16440 msgid ""
16441 "Wildcards cannot be used in the ordinary command, but you can use them with "
16442 "the help of L</glob> like this:"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-commands.pod:49
16447 #, no-wrap
16448 msgid ""
16449 " glob copy-out /home/* .\n"
16450 "\n"
16451 msgstr ""
16452 " glob copy-out /home/* .\n"
16453 "\n"
16454
16455 #. type: =head2
16456 #: ../fish/guestfish-commands.pod:51
16457 msgid "display"
16458 msgstr ""
16459
16460 #. type: verbatim
16461 #: ../fish/guestfish-commands.pod:53
16462 #, no-wrap
16463 msgid ""
16464 " display filename\n"
16465 "\n"
16466 msgstr ""
16467
16468 #. type: textblock
16469 #: ../fish/guestfish-commands.pod:55
16470 msgid ""
16471 "Use C<display> (a graphical display program) to display an image file.  It "
16472 "downloads the file, and runs C<display> on it."
16473 msgstr ""
16474
16475 #. type: textblock
16476 #: ../fish/guestfish-commands.pod:58
16477 msgid ""
16478 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16479 "environment variable.  For example to use the GNOME display program:"
16480 msgstr ""
16481
16482 #. type: verbatim
16483 #: ../fish/guestfish-commands.pod:61
16484 #, no-wrap
16485 msgid ""
16486 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16487 "\n"
16488 msgstr ""
16489
16490 #. type: textblock
16491 #: ../fish/guestfish-commands.pod:63
16492 msgid "See also L<display(1)>."
16493 msgstr ""
16494
16495 #. type: =head2
16496 #: ../fish/guestfish-commands.pod:65
16497 msgid "echo"
16498 msgstr "echo"
16499
16500 #. type: verbatim
16501 #: ../fish/guestfish-commands.pod:67
16502 #, no-wrap
16503 msgid ""
16504 " echo [params ...]\n"
16505 "\n"
16506 msgstr ""
16507 " echo [параметри...]\n"
16508 "\n"
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-commands.pod:69
16512 msgid "This echos the parameters to the terminal."
16513 msgstr ""
16514
16515 #. type: =head2
16516 #: ../fish/guestfish-commands.pod:71
16517 msgid "edit"
16518 msgstr "edit"
16519
16520 #. type: =head2
16521 #: ../fish/guestfish-commands.pod:73
16522 msgid "vi"
16523 msgstr "vi"
16524
16525 #. type: =head2
16526 #: ../fish/guestfish-commands.pod:75
16527 msgid "emacs"
16528 msgstr "emacs"
16529
16530 #. type: verbatim
16531 #: ../fish/guestfish-commands.pod:77
16532 #, no-wrap
16533 msgid ""
16534 " edit filename\n"
16535 "\n"
16536 msgstr ""
16537 " edit назва_файла\n"
16538 "\n"
16539
16540 #. type: textblock
16541 #: ../fish/guestfish-commands.pod:79
16542 msgid ""
16543 "This is used to edit a file.  It downloads the file, edits it locally using "
16544 "your editor, then uploads the result."
16545 msgstr ""
16546
16547 #. type: textblock
16548 #: ../fish/guestfish-commands.pod:82
16549 msgid ""
16550 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16551 "or C<emacs> you will get those corresponding editors."
16552 msgstr ""
16553
16554 #. type: =head2
16555 #: ../fish/guestfish-commands.pod:86
16556 msgid "glob"
16557 msgstr "glob"
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish-commands.pod:88
16561 #, no-wrap
16562 msgid ""
16563 " glob command args...\n"
16564 "\n"
16565 msgstr ""
16566 " glob команда параметри...\n"
16567 "\n"
16568
16569 #. type: textblock
16570 #: ../fish/guestfish-commands.pod:90
16571 msgid ""
16572 "Expand wildcards in any paths in the args list, and run C<command> "
16573 "repeatedly on each matching path."
16574 msgstr ""
16575
16576 #. type: textblock
16577 #: ../fish/guestfish-commands.pod:93
16578 msgid "See L</WILDCARDS AND GLOBBING>."
16579 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16580
16581 #. type: =head2
16582 #: ../fish/guestfish-commands.pod:95
16583 msgid "hexedit"
16584 msgstr "hexedit"
16585
16586 #. type: verbatim
16587 #: ../fish/guestfish-commands.pod:97
16588 #, no-wrap
16589 msgid ""
16590 " hexedit <filename|device>\n"
16591 " hexedit <filename|device> <max>\n"
16592 " hexedit <filename|device> <start> <max>\n"
16593 "\n"
16594 msgstr ""
16595
16596 #. type: textblock
16597 #: ../fish/guestfish-commands.pod:101
16598 msgid ""
16599 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16600 "device."
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish-commands.pod:104
16605 msgid ""
16606 "This command works by downloading potentially the whole file or device, "
16607 "editing it locally, then uploading it.  If the file or device is large, you "
16608 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16609 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16610 "usual modifiers allowed such as C<1M> (1 megabyte)."
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-commands.pod:111
16615 msgid "For example to edit the first few sectors of a disk you might do:"
16616 msgstr ""
16617
16618 #. type: verbatim
16619 #: ../fish/guestfish-commands.pod:114
16620 #, no-wrap
16621 msgid ""
16622 " hexedit /dev/sda 1M\n"
16623 "\n"
16624 msgstr ""
16625 " hexedit /dev/sda 1M\n"
16626 "\n"
16627
16628 #. type: textblock
16629 #: ../fish/guestfish-commands.pod:116
16630 msgid ""
16631 "which would allow you to edit anywhere within the first megabyte of the disk."
16632 msgstr ""
16633
16634 #. type: textblock
16635 #: ../fish/guestfish-commands.pod:119
16636 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16637 msgstr ""
16638
16639 #. type: verbatim
16640 #: ../fish/guestfish-commands.pod:121
16641 #, no-wrap
16642 msgid ""
16643 " hexedit /dev/sda1 0x400 0x400\n"
16644 "\n"
16645 msgstr ""
16646 " hexedit /dev/sda1 0x400 0x400\n"
16647 "\n"
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-commands.pod:123
16651 msgid "(assuming the superblock is in the standard location)."
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-commands.pod:125
16656 msgid ""
16657 "This command requires the external L<hexedit(1)> program.  You can specify "
16658 "another program to use by setting the C<HEXEDITOR> environment variable."
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish-commands.pod:129
16663 msgid "See also L</hexdump>."
16664 msgstr "Див. також L</hexdump>."
16665
16666 #. type: =head2
16667 #: ../fish/guestfish-commands.pod:131
16668 msgid "lcd"
16669 msgstr "lcd"
16670
16671 #. type: verbatim
16672 #: ../fish/guestfish-commands.pod:133
16673 #, no-wrap
16674 msgid ""
16675 " lcd directory\n"
16676 "\n"
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../fish/guestfish-commands.pod:135
16681 msgid ""
16682 "Change the local directory, ie. the current directory of guestfish itself."
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../fish/guestfish-commands.pod:138
16687 msgid "Note that C<!cd> won't do what you might expect."
16688 msgstr ""
16689
16690 #. type: =head2
16691 #: ../fish/guestfish-commands.pod:140
16692 msgid "man"
16693 msgstr "man"
16694
16695 #. type: =head2
16696 #: ../fish/guestfish-commands.pod:142
16697 msgid "manual"
16698 msgstr ""
16699
16700 #. type: verbatim
16701 #: ../fish/guestfish-commands.pod:144
16702 #, no-wrap
16703 msgid ""
16704 "  man\n"
16705 "\n"
16706 msgstr ""
16707 "  man\n"
16708 "\n"
16709
16710 #. type: textblock
16711 #: ../fish/guestfish-commands.pod:146
16712 msgid "Opens the manual page for guestfish."
16713 msgstr ""
16714
16715 #. type: =head2
16716 #: ../fish/guestfish-commands.pod:148
16717 msgid "more"
16718 msgstr "more"
16719
16720 #. type: =head2
16721 #: ../fish/guestfish-commands.pod:150
16722 msgid "less"
16723 msgstr "less"
16724
16725 #. type: verbatim
16726 #: ../fish/guestfish-commands.pod:152
16727 #, no-wrap
16728 msgid ""
16729 " more filename\n"
16730 "\n"
16731 msgstr ""
16732
16733 #. type: verbatim
16734 #: ../fish/guestfish-commands.pod:154
16735 #, no-wrap
16736 msgid ""
16737 " less filename\n"
16738 "\n"
16739 msgstr ""
16740
16741 #. type: textblock
16742 #: ../fish/guestfish-commands.pod:156
16743 msgid "This is used to view a file."
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish-commands.pod:158
16748 msgid ""
16749 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16750 "C<less> you will get the C<less> command specifically."
16751 msgstr ""
16752
16753 #. type: =head2
16754 #: ../fish/guestfish-commands.pod:161
16755 msgid "reopen"
16756 msgstr "reopen"
16757
16758 #. type: verbatim
16759 #: ../fish/guestfish-commands.pod:163
16760 #, no-wrap
16761 msgid ""
16762 "  reopen\n"
16763 "\n"
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../fish/guestfish-commands.pod:165
16768 msgid ""
16769 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16770 "normally, because the handle is closed properly when guestfish exits.  "
16771 "However this is occasionally useful for testing."
16772 msgstr ""
16773
16774 #. type: =head2
16775 #: ../fish/guestfish-commands.pod:169
16776 msgid "sparse"
16777 msgstr "sparse"
16778
16779 #. type: verbatim
16780 #: ../fish/guestfish-commands.pod:171
16781 #, no-wrap
16782 msgid ""
16783 " sparse filename size\n"
16784 "\n"
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish-commands.pod:173
16789 msgid ""
16790 "This creates an empty sparse file of the given size, and then adds so it can "
16791 "be further examined."
16792 msgstr ""
16793
16794 #. type: textblock
16795 #: ../fish/guestfish-commands.pod:176
16796 msgid ""
16797 "In all respects it works the same as the L</alloc> command, except that the "
16798 "image file is allocated sparsely, which means that disk blocks are not "
16799 "assigned to the file until they are needed.  Sparse disk files only use "
16800 "space when written to, but they are slower and there is a danger you could "
16801 "run out of real disk space during a write operation."
16802 msgstr ""
16803
16804 #. type: =head2
16805 #: ../fish/guestfish-commands.pod:186
16806 msgid "supported"
16807 msgstr "supported"
16808
16809 #. type: verbatim
16810 #: ../fish/guestfish-commands.pod:188
16811 #, no-wrap
16812 msgid ""
16813 " supported\n"
16814 "\n"
16815 msgstr ""
16816 " supported\n"
16817 "\n"
16818
16819 #. type: textblock
16820 #: ../fish/guestfish-commands.pod:190
16821 msgid ""
16822 "This command returns a list of the optional groups known to the daemon, and "
16823 "indicates which ones are supported by this build of the libguestfs appliance."
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish-commands.pod:194
16828 msgid "See also L<guestfs(3)/AVAILABILITY>."
16829 msgstr ""
16830
16831 #. type: =head2
16832 #: ../fish/guestfish-commands.pod:196
16833 msgid "time"
16834 msgstr "time"
16835
16836 #. type: verbatim
16837 #: ../fish/guestfish-commands.pod:198
16838 #, no-wrap
16839 msgid ""
16840 " time command args...\n"
16841 "\n"
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish-commands.pod:200
16846 msgid ""
16847 "Run the command as usual, but print the elapsed time afterwards.  This can "
16848 "be useful for benchmarking operations."
16849 msgstr ""
16850
16851 #. type: textblock
16852 #: ../fish/guestfish.pod:5
16853 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16854 msgstr ""
16855
16856 #. type: verbatim
16857 #: ../fish/guestfish.pod:9
16858 #, no-wrap
16859 msgid ""
16860 " guestfish [--options] [commands]\n"
16861 "\n"
16862 msgstr ""
16863
16864 #. type: verbatim
16865 #: ../fish/guestfish.pod:11
16866 #, no-wrap
16867 msgid ""
16868 " guestfish\n"
16869 "\n"
16870 msgstr ""
16871
16872 #. type: verbatim
16873 #: ../fish/guestfish.pod:13
16874 #, no-wrap
16875 msgid ""
16876 " guestfish [--ro|--rw] -a disk.img\n"
16877 "\n"
16878 msgstr ""
16879
16880 #. type: verbatim
16881 #: ../fish/guestfish.pod:15
16882 #, no-wrap
16883 msgid ""
16884 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16885 "\n"
16886 msgstr ""
16887
16888 #. type: verbatim
16889 #: ../fish/guestfish.pod:17
16890 #, no-wrap
16891 msgid ""
16892 " guestfish -d libvirt-domain\n"
16893 "\n"
16894 msgstr ""
16895
16896 #. type: verbatim
16897 #: ../fish/guestfish.pod:19
16898 #, no-wrap
16899 msgid ""
16900 " guestfish [--ro|--rw] -a disk.img -i\n"
16901 "\n"
16902 msgstr ""
16903
16904 #. type: verbatim
16905 #: ../fish/guestfish.pod:21
16906 #, no-wrap
16907 msgid ""
16908 " guestfish -d libvirt-domain -i\n"
16909 "\n"
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../fish/guestfish.pod:25
16914 msgid ""
16915 "Using guestfish in read/write mode on live virtual machines can be "
16916 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16917 "option to use guestfish safely if the disk image or virtual machine might be "
16918 "live."
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish.pod:32
16923 msgid ""
16924 "Guestfish is a shell and command-line tool for examining and modifying "
16925 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16926 "functionality of the guestfs API, see L<guestfs(3)>."
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish.pod:36
16931 msgid ""
16932 "Guestfish gives you structured access to the libguestfs API, from shell "
16933 "scripts or the command line or interactively.  If you want to rescue a "
16934 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16935 "command."
16936 msgstr ""
16937
16938 #. type: =head2
16939 #: ../fish/guestfish.pod:43
16940 msgid "As an interactive shell"
16941 msgstr ""
16942
16943 #. type: verbatim
16944 #: ../fish/guestfish.pod:45
16945 #, no-wrap
16946 msgid ""
16947 " $ guestfish\n"
16948 " \n"
16949 msgstr ""
16950
16951 #. type: verbatim
16952 #: ../fish/guestfish.pod:47
16953 #, no-wrap
16954 msgid ""
16955 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16956 " editing virtual machine filesystems.\n"
16957 " \n"
16958 msgstr ""
16959
16960 #. type: verbatim
16961 #: ../fish/guestfish.pod:50
16962 #, no-wrap
16963 msgid ""
16964 " Type: 'help' for a list of commands\n"
16965 "       'man' to read the manual\n"
16966 "       'quit' to quit the shell\n"
16967 " \n"
16968 msgstr ""
16969
16970 #. type: verbatim
16971 #: ../fish/guestfish.pod:54
16972 #, no-wrap
16973 msgid ""
16974 " ><fs> add-ro disk.img\n"
16975 " ><fs> run\n"
16976 " ><fs> list-filesystems\n"
16977 " /dev/sda1: ext4\n"
16978 " /dev/vg_guest/lv_root: ext4\n"
16979 " /dev/vg_guest/lv_swap: swap\n"
16980 " ><fs> mount /dev/vg_guest/lv_root /\n"
16981 " ><fs> cat /etc/fstab\n"
16982 " # /etc/fstab\n"
16983 " # Created by anaconda\n"
16984 " [...]\n"
16985 " ><fs> exit\n"
16986 "\n"
16987 msgstr ""
16988
16989 #. type: =head2
16990 #: ../fish/guestfish.pod:67
16991 msgid "From shell scripts"
16992 msgstr ""
16993
16994 #. type: textblock
16995 #: ../fish/guestfish.pod:69
16996 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16997 msgstr ""
16998
16999 #. type: verbatim
17000 #: ../fish/guestfish.pod:71
17001 #, no-wrap
17002 msgid ""
17003 " guestfish <<_EOF_\n"
17004 " add disk.img\n"
17005 " run\n"
17006 " mount /dev/vg_guest/lv_root /\n"
17007 " write /etc/motd \"Welcome, new users\"\n"
17008 " _EOF_\n"
17009 "\n"
17010 msgstr ""
17011
17012 #. type: textblock
17013 #: ../fish/guestfish.pod:78
17014 msgid "List the LVM logical volumes in a disk image:"
17015 msgstr ""
17016
17017 #. type: verbatim
17018 #: ../fish/guestfish.pod:80
17019 #, no-wrap
17020 msgid ""
17021 " guestfish -a disk.img --ro <<_EOF_\n"
17022 " run\n"
17023 " lvs\n"
17024 " _EOF_\n"
17025 "\n"
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish.pod:85
17030 msgid "List all the filesystems in a disk image:"
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../fish/guestfish.pod:87
17035 #, no-wrap
17036 msgid ""
17037 " guestfish -a disk.img --ro <<_EOF_\n"
17038 " run\n"
17039 " list-filesystems\n"
17040 " _EOF_\n"
17041 "\n"
17042 msgstr ""
17043
17044 #. type: =head2
17045 #: ../fish/guestfish.pod:92
17046 msgid "On one command line"
17047 msgstr ""
17048
17049 #. type: textblock
17050 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17051 msgid "Update C</etc/resolv.conf> in a guest:"
17052 msgstr ""
17053
17054 #. type: verbatim
17055 #: ../fish/guestfish.pod:96
17056 #, no-wrap
17057 msgid ""
17058 " guestfish \\\n"
17059 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17060 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17061 "\n"
17062 msgstr ""
17063
17064 #. type: textblock
17065 #: ../fish/guestfish.pod:100
17066 msgid "Edit C</boot/grub/grub.conf> interactively:"
17067 msgstr ""
17068
17069 #. type: verbatim
17070 #: ../fish/guestfish.pod:102
17071 #, no-wrap
17072 msgid ""
17073 " guestfish --rw --add disk.img \\\n"
17074 "   --mount /dev/vg_guest/lv_root \\\n"
17075 "   --mount /dev/sda1:/boot \\\n"
17076 "   edit /boot/grub/grub.conf\n"
17077 "\n"
17078 msgstr ""
17079
17080 #. type: =head2
17081 #: ../fish/guestfish.pod:107
17082 msgid "Mount disks automatically"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish.pod:109
17087 msgid ""
17088 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17089 msgstr ""
17090
17091 #. type: verbatim
17092 #: ../fish/guestfish.pod:112
17093 #, no-wrap
17094 msgid ""
17095 " guestfish --ro -a disk.img -i cat /etc/group\n"
17096 "\n"
17097 msgstr ""
17098
17099 #. type: verbatim
17100 #: ../fish/guestfish.pod:114
17101 #, no-wrap
17102 msgid ""
17103 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17104 "\n"
17105 msgstr ""
17106
17107 #. type: textblock
17108 #: ../fish/guestfish.pod:116
17109 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17110 msgstr ""
17111
17112 #. type: verbatim
17113 #: ../fish/guestfish.pod:118
17114 #, no-wrap
17115 msgid ""
17116 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17117 "\n"
17118 msgstr ""
17119
17120 #. type: =head2
17121 #: ../fish/guestfish.pod:120
17122 msgid "As a script interpreter"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish.pod:122
17127 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17128 msgstr ""
17129
17130 #. type: verbatim
17131 #: ../fish/guestfish.pod:124
17132 #, no-wrap
17133 msgid ""
17134 " #!/usr/bin/guestfish -f\n"
17135 " sparse test1.img 100M\n"
17136 " run\n"
17137 " part-disk /dev/sda mbr\n"
17138 " mkfs ext2 /dev/sda1\n"
17139 "\n"
17140 msgstr ""
17141
17142 #. type: =head2
17143 #: ../fish/guestfish.pod:130
17144 msgid "Start with a prepared disk"
17145 msgstr ""
17146
17147 #. type: textblock
17148 #: ../fish/guestfish.pod:132
17149 msgid ""
17150 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17151 "single ext2-formatted partition:"
17152 msgstr ""
17153
17154 #. type: verbatim
17155 #: ../fish/guestfish.pod:135
17156 #, no-wrap
17157 msgid ""
17158 " guestfish -N fs\n"
17159 "\n"
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../fish/guestfish.pod:137
17164 msgid "To list what is available do:"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
17169 #, no-wrap
17170 msgid ""
17171 " guestfish -N help | less\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: =head2
17176 #: ../fish/guestfish.pod:141
17177 msgid "Remote control"
17178 msgstr "Дистанційне керування"
17179
17180 #. type: verbatim
17181 #: ../fish/guestfish.pod:143
17182 #, no-wrap
17183 msgid ""
17184 " eval \"`guestfish --listen`\"\n"
17185 " guestfish --remote add-ro disk.img\n"
17186 " guestfish --remote run\n"
17187 " guestfish --remote lvs\n"
17188 "\n"
17189 msgstr ""
17190 " eval \"`guestfish --listen`\"\n"
17191 " guestfish --remote add-ro disk.img\n"
17192 " guestfish --remote run\n"
17193 " guestfish --remote lvs\n"
17194 "\n"
17195
17196 #. type: textblock
17197 #: ../fish/guestfish.pod:154
17198 msgid "Displays general help on options."
17199 msgstr ""
17200
17201 #. type: =item
17202 #: ../fish/guestfish.pod:158
17203 msgid "B<--cmd-help>"
17204 msgstr "B<--cmd-help>"
17205
17206 #. type: textblock
17207 #: ../fish/guestfish.pod:160
17208 msgid "Lists all available guestfish commands."
17209 msgstr ""
17210
17211 #. type: =item
17212 #: ../fish/guestfish.pod:162
17213 msgid "B<-h cmd>"
17214 msgstr "B<-h команда>"
17215
17216 #. type: =item
17217 #: ../fish/guestfish.pod:164
17218 msgid "B<--cmd-help cmd>"
17219 msgstr "B<--cmd-help команда>"
17220
17221 #. type: textblock
17222 #: ../fish/guestfish.pod:166
17223 msgid "Displays detailed help on a single command C<cmd>."
17224 msgstr ""
17225
17226 #. type: =item
17227 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
17228 msgid "B<-a image>"
17229 msgstr "B<-a образ>"
17230
17231 #. type: =item
17232 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
17233 msgid "B<--add image>"
17234 msgstr "B<--add образ>"
17235
17236 #. type: textblock
17237 #: ../fish/guestfish.pod:172
17238 msgid "Add a block device or virtual machine image to the shell."
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish.pod:177
17243 msgid ""
17244 "Using this flag is mostly equivalent to using the C<add> command, with "
17245 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17246 "the I<--format=...> flag was given."
17247 msgstr ""
17248
17249 #. type: textblock
17250 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
17251 msgid ""
17252 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17253 "URI to use.  The default is to use the default libvirt connection."
17254 msgstr ""
17255
17256 #. type: =item
17257 #: ../fish/guestfish.pod:189
17258 msgid "B<--csh>"
17259 msgstr "B<--csh>"
17260
17261 #. type: textblock
17262 #: ../fish/guestfish.pod:191
17263 msgid ""
17264 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17265 "section L</REMOTE CONTROL AND CSH> below."
17266 msgstr ""
17267
17268 #. type: =item
17269 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
17270 msgid "B<-d libvirt-domain>"
17271 msgstr "B<-d домен-libvirt>"
17272
17273 #. type: =item
17274 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
17275 msgid "B<--domain libvirt-domain>"
17276 msgstr "B<--domain домен-libvirt>"
17277
17278 #. type: textblock
17279 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
17280 msgid ""
17281 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17282 "used, then any libvirt domain can be used.  However in write mode, only "
17283 "libvirt domains which are shut down can be named here."
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
17288 msgid "Domain UUIDs can be used instead of names."
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish.pod:204
17293 msgid ""
17294 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17295 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17296 "if the I<--format:...> flag was given."
17297 msgstr ""
17298
17299 #. type: =item
17300 #: ../fish/guestfish.pod:208
17301 msgid "B<-D>"
17302 msgstr "B<-D>"
17303
17304 #. type: =item
17305 #: ../fish/guestfish.pod:210
17306 msgid "B<--no-dest-paths>"
17307 msgstr "B<--no-dest-paths>"
17308
17309 #. type: textblock
17310 #: ../fish/guestfish.pod:212
17311 msgid ""
17312 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17313 "to hit the tab key to complete paths on the guest filesystem, but this "
17314 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17315 "allow this feature to be disabled."
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
17320 msgid ""
17321 "When prompting for keys and passphrases, guestfish normally turns echoing "
17322 "off so you cannot see what you are typing.  If you are not worried about "
17323 "Tempest attacks and there is no one else in the room you can specify this "
17324 "flag to see what you are typing."
17325 msgstr ""
17326
17327 #. type: =item
17328 #: ../fish/guestfish.pod:224
17329 msgid "B<-f file>"
17330 msgstr "B<-f файл>"
17331
17332 #. type: =item
17333 #: ../fish/guestfish.pod:226
17334 msgid "B<--file file>"
17335 msgstr "B<--file файл>"
17336
17337 #. type: textblock
17338 #: ../fish/guestfish.pod:228
17339 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17340 msgstr ""
17341
17342 #. type: verbatim
17343 #: ../fish/guestfish.pod:231
17344 #, no-wrap
17345 msgid ""
17346 " #!/usr/bin/guestfish -f\n"
17347 "\n"
17348 msgstr ""
17349 " #!/usr/bin/guestfish -f\n"
17350 "\n"
17351
17352 #. type: verbatim
17353 #: ../fish/guestfish.pod:244
17354 #, no-wrap
17355 msgid ""
17356 " guestfish --format=raw -a disk.img\n"
17357 "\n"
17358 msgstr ""
17359 " guestfish --format=raw -a disk.img\n"
17360 "\n"
17361
17362 #. type: verbatim
17363 #: ../fish/guestfish.pod:248
17364 #, no-wrap
17365 msgid ""
17366 " guestfish --format=raw -a disk.img --format -a another.img\n"
17367 "\n"
17368 msgstr ""
17369 " guestfish --format=raw -a disk.img --format -a another.img\n"
17370 "\n"
17371
17372 #. type: textblock
17373 #: ../fish/guestfish.pod:253
17374 msgid ""
17375 "If you have untrusted raw-format guest disk images, you should use this "
17376 "option to specify the disk format.  This avoids a possible security problem "
17377 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17378 msgstr ""
17379
17380 #. type: =item
17381 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
17382 msgid "B<--inspector>"
17383 msgstr "B<--inspector>"
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
17387 msgid ""
17388 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17389 "system and mount filesystems as they would be mounted on the real virtual "
17390 "machine."
17391 msgstr ""
17392
17393 #. type: textblock
17394 #: ../fish/guestfish.pod:266
17395 msgid "Typical usage is either:"
17396 msgstr ""
17397
17398 #. type: verbatim
17399 #: ../fish/guestfish.pod:268
17400 #, no-wrap
17401 msgid ""
17402 " guestfish -d myguest -i\n"
17403 "\n"
17404 msgstr ""
17405 " guestfish -d myguest -i\n"
17406 "\n"
17407
17408 #. type: textblock
17409 #: ../fish/guestfish.pod:270
17410 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17411 msgstr ""
17412
17413 #. type: verbatim
17414 #: ../fish/guestfish.pod:272
17415 #, no-wrap
17416 msgid ""
17417 " guestfish --ro -d myguest -i\n"
17418 "\n"
17419 msgstr ""
17420 " guestfish --ro -d myguest -i\n"
17421 "\n"
17422
17423 #. type: textblock
17424 #: ../fish/guestfish.pod:274
17425 msgid "(for active domains, readonly), or specify the block device directly:"
17426 msgstr ""
17427
17428 #. type: verbatim
17429 #: ../fish/guestfish.pod:276
17430 #, no-wrap
17431 msgid ""
17432 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17433 "\n"
17434 msgstr ""
17435 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17436 "\n"
17437
17438 #. type: textblock
17439 #: ../fish/guestfish.pod:278
17440 msgid ""
17441 "Note that the command line syntax changed slightly over older versions of "
17442 "guestfish.  You can still use the old syntax:"
17443 msgstr ""
17444
17445 #. type: verbatim
17446 #: ../fish/guestfish.pod:281
17447 #, no-wrap
17448 msgid ""
17449 " guestfish [--ro] -i disk.img\n"
17450 "\n"
17451 msgstr ""
17452 " guestfish [--ro] -i disk.img\n"
17453 "\n"
17454
17455 #. type: verbatim
17456 #: ../fish/guestfish.pod:283
17457 #, no-wrap
17458 msgid ""
17459 " guestfish [--ro] -i libvirt-domain\n"
17460 "\n"
17461 msgstr ""
17462
17463 #. type: textblock
17464 #: ../fish/guestfish.pod:285
17465 msgid ""
17466 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17467 "then using other commands to mount the filesystems that were found."
17468 msgstr ""
17469
17470 #. type: =item
17471 #: ../fish/guestfish.pod:294
17472 msgid "B<--listen>"
17473 msgstr "B<--listen>"
17474
17475 #. type: textblock
17476 #: ../fish/guestfish.pod:296
17477 msgid ""
17478 "Fork into the background and listen for remote commands.  See section L</"
17479 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17480 msgstr ""
17481
17482 #. type: =item
17483 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
17484 msgid "B<--live>"
17485 msgstr "B<--live>"
17486
17487 #. type: textblock
17488 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
17489 msgid ""
17490 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17491 "ATTACHING TO RUNNING DAEMONS>)."
17492 msgstr ""
17493
17494 #. type: =item
17495 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
17496 msgid "B<-m dev[:mountpoint[:options]]>"
17497 msgstr ""
17498
17499 #. type: =item
17500 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
17501 msgid "B<--mount dev[:mountpoint[:options]]>"
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish.pod:308
17506 msgid "Mount the named partition or logical volume on the given mountpoint."
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish.pod:310
17511 msgid "If the mountpoint is omitted, it defaults to C</>."
17512 msgstr ""
17513
17514 #. type: textblock
17515 #: ../fish/guestfish.pod:312
17516 msgid "You have to mount something on C</> before most commands will work."
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:314
17521 msgid ""
17522 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17523 "launched."
17524 msgstr ""
17525
17526 #. type: textblock
17527 #: ../fish/guestfish.pod:317
17528 msgid ""
17529 "If you don't know what filesystems a disk image contains, you can either run "
17530 "guestfish without this option, then list the partitions, filesystems and LVs "
17531 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17532 "commands), or you can use the L<virt-filesystems(1)> program."
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
17537 msgid ""
17538 "The third (and rarely used) part of the mount parameter is the list of mount "
17539 "options used to mount the underlying filesystem.  If this is not given, then "
17540 "the mount options are either the empty string or C<ro> (the latter if the "
17541 "I<--ro> flag is used).  By specifying the mount options, you override this "
17542 "default choice.  Probably the only time you would use this is to enable ACLs "
17543 "and/or extended attributes if the filesystem can support them:"
17544 msgstr ""
17545
17546 #. type: verbatim
17547 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
17548 #, no-wrap
17549 msgid ""
17550 " -m /dev/sda1:/:acl,user_xattr\n"
17551 "\n"
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish.pod:333
17556 msgid "Using this flag is equivalent to using the C<mount-options> command."
17557 msgstr ""
17558
17559 #. type: =item
17560 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
17561 #: ../resize/virt-resize.pod:358
17562 msgid "B<-n>"
17563 msgstr "B<-n>"
17564
17565 #. type: =item
17566 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
17567 msgid "B<--no-sync>"
17568 msgstr "B<--no-sync>"
17569
17570 #. type: textblock
17571 #: ../fish/guestfish.pod:339
17572 msgid ""
17573 "Disable autosync.  This is enabled by default.  See the discussion of "
17574 "autosync in the L<guestfs(3)> manpage."
17575 msgstr ""
17576
17577 #. type: =item
17578 #: ../fish/guestfish.pod:342
17579 msgid "B<-N type>"
17580 msgstr "B<-N тип>"
17581
17582 #. type: =item
17583 #: ../fish/guestfish.pod:344
17584 msgid "B<--new type>"
17585 msgstr "B<--new тип>"
17586
17587 #. type: =item
17588 #: ../fish/guestfish.pod:346
17589 msgid "B<-N help>"
17590 msgstr "B<-N help>"
17591
17592 #. type: textblock
17593 #: ../fish/guestfish.pod:348
17594 msgid ""
17595 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17596 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17597 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17598 "IMAGES> below."
17599 msgstr ""
17600
17601 #. type: =item
17602 #: ../fish/guestfish.pod:353
17603 msgid "B<--progress-bars>"
17604 msgstr "B<--progress-bars>"
17605
17606 #. type: textblock
17607 #: ../fish/guestfish.pod:355
17608 msgid "Enable progress bars, even when guestfish is used non-interactively."
17609 msgstr ""
17610
17611 #. type: textblock
17612 #: ../fish/guestfish.pod:357
17613 msgid ""
17614 "Progress bars are enabled by default when guestfish is used as an "
17615 "interactive shell."
17616 msgstr ""
17617
17618 #. type: =item
17619 #: ../fish/guestfish.pod:360
17620 msgid "B<--no-progress-bars>"
17621 msgstr "B<--no-progress-bars>"
17622
17623 #. type: textblock
17624 #: ../fish/guestfish.pod:362
17625 msgid "Disable progress bars."
17626 msgstr ""
17627
17628 #. type: =item
17629 #: ../fish/guestfish.pod:364
17630 msgid "B<--remote[=pid]>"
17631 msgstr "B<--remote[=pid]>"
17632
17633 #. type: textblock
17634 #: ../fish/guestfish.pod:366
17635 msgid ""
17636 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17637 "CONTROL GUESTFISH OVER A SOCKET> below."
17638 msgstr ""
17639
17640 #. type: =item
17641 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
17642 #: ../rescue/virt-rescue.pod:161
17643 msgid "B<-r>"
17644 msgstr "B<-r>"
17645
17646 #. type: =item
17647 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
17648 #: ../rescue/virt-rescue.pod:163
17649 msgid "B<--ro>"
17650 msgstr "B<--ro>"
17651
17652 #. type: textblock
17653 #: ../fish/guestfish.pod:373
17654 msgid ""
17655 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17656 "mounts are done read-only."
17657 msgstr ""
17658
17659 #. type: textblock
17660 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17661 msgid ""
17662 "The option must always be used if the disk image or virtual machine might be "
17663 "running, and is generally recommended in cases where you don't need write "
17664 "access to the disk."
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish.pod:380
17669 msgid ""
17670 "Note that prepared disk images created with I<-N> are not affected by this "
17671 "option.  Also commands like C<add> are not affected - you have to specify "
17672 "the C<readonly:true> option explicitly if you need it."
17673 msgstr ""
17674
17675 #. type: textblock
17676 #: ../fish/guestfish.pod:384
17677 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17678 msgstr ""
17679
17680 #. type: =item
17681 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
17682 #: ../rescue/virt-rescue.pod:173
17683 msgid "B<--selinux>"
17684 msgstr "B<--selinux>"
17685
17686 #. type: textblock
17687 #: ../fish/guestfish.pod:388
17688 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17689 msgstr ""
17690
17691 #. type: textblock
17692 #: ../fish/guestfish.pod:394
17693 msgid ""
17694 "Enable very verbose messages.  This is particularly useful if you find a bug."
17695 msgstr ""
17696
17697 #. type: textblock
17698 #: ../fish/guestfish.pod:401
17699 msgid "Display the guestfish / libguestfs version number and exit."
17700 msgstr ""
17701
17702 #. type: =item
17703 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
17704 #: ../rescue/virt-rescue.pod:190
17705 msgid "B<-w>"
17706 msgstr "B<-w>"
17707
17708 #. type: =item
17709 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
17710 #: ../rescue/virt-rescue.pod:192
17711 msgid "B<--rw>"
17712 msgstr "B<--rw>"
17713
17714 #. type: textblock
17715 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
17716 msgid ""
17717 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17718 "mounts are done read-write."
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish.pod:410
17723 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish.pod:414
17728 msgid "Echo each command before executing it."
17729 msgstr ""
17730
17731 #. type: =head1
17732 #: ../fish/guestfish.pod:418
17733 msgid "COMMANDS ON COMMAND LINE"
17734 msgstr ""
17735
17736 #. type: textblock
17737 #: ../fish/guestfish.pod:420
17738 msgid ""
17739 "Any additional (non-option) arguments are treated as commands to execute."
17740 msgstr ""
17741
17742 #. type: textblock
17743 #: ../fish/guestfish.pod:423
17744 msgid ""
17745 "Commands to execute should be separated by a colon (C<:>), where the colon "
17746 "is a separate parameter.  Thus:"
17747 msgstr ""
17748
17749 #. type: verbatim
17750 #: ../fish/guestfish.pod:426
17751 #, no-wrap
17752 msgid ""
17753 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17754 "\n"
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish.pod:428
17759 msgid ""
17760 "If there are no additional arguments, then we enter a shell, either an "
17761 "interactive shell with a prompt (if the input is a terminal) or a non-"
17762 "interactive shell."
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish.pod:432
17767 msgid ""
17768 "In either command line mode or non-interactive shell, the first command that "
17769 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17770 "prompt) if a command fails, you can continue to enter commands."
17771 msgstr ""
17772
17773 #. type: =head1
17774 #: ../fish/guestfish.pod:437
17775 msgid "USING launch (OR run)"
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:439
17780 msgid ""
17781 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17782 "then launch it, then mount any disks you need, and finally issue actions/"
17783 "commands.  So the general order of the day is:"
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:447
17788 msgid "add or -a/--add"
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:451
17793 msgid "launch (aka run)"
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish.pod:455
17798 msgid "mount or -m/--mount"
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../fish/guestfish.pod:459
17803 msgid "any other commands"
17804 msgstr ""
17805
17806 #. type: textblock
17807 #: ../fish/guestfish.pod:463
17808 msgid ""
17809 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17810 "guest before mounting or performing any other commands."
17811 msgstr ""
17812
17813 #. type: textblock
17814 #: ../fish/guestfish.pod:466
17815 msgid ""
17816 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17817 "I<--new> options were given then C<run> is done automatically, simply "
17818 "because guestfish can't perform the action you asked for without doing this."
17819 msgstr ""
17820
17821 #. type: =head1
17822 #: ../fish/guestfish.pod:471
17823 msgid "OPENING DISKS FOR READ AND WRITE"
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish.pod:473
17828 msgid ""
17829 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17830 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17831 "I<-i> and I<-m> open disk images read-only or for writing."
17832 msgstr ""
17833
17834 #. type: textblock
17835 #: ../fish/guestfish.pod:478
17836 msgid ""
17837 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17838 "opening disk images supplied on the command line for write.  To open a disk "
17839 "image read-only you have to do I<-a image --ro>."
17840 msgstr ""
17841
17842 #. type: textblock
17843 #: ../fish/guestfish.pod:482
17844 msgid ""
17845 "This matters: If you accidentally open a live VM disk image writable then "
17846 "you will cause irreversible disk corruption."
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../fish/guestfish.pod:485
17851 msgid ""
17852 "In a future libguestfs we intend to change the default the other way.  Disk "
17853 "images will be opened read-only.  You will have to either specify "
17854 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17855 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17856 "access for disk images specified by those other command line options."
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish.pod:492
17861 msgid ""
17862 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17863 "which does nothing (it is already the default).  However it is highly "
17864 "recommended that you use this option to indicate that you need write access, "
17865 "and prepare your scripts for the day when this option will be required for "
17866 "write access."
17867 msgstr ""
17868
17869 #. type: textblock
17870 #: ../fish/guestfish.pod:498
17871 msgid ""
17872 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17873 "other libguestfs program apart from guestfish and guestmount."
17874 msgstr ""
17875
17876 #. type: =head1
17877 #: ../fish/guestfish.pod:501
17878 msgid "QUOTING"
17879 msgstr ""
17880
17881 #. type: textblock
17882 #: ../fish/guestfish.pod:503
17883 msgid ""
17884 "You can quote ordinary parameters using either single or double quotes.  For "
17885 "example:"
17886 msgstr ""
17887
17888 #. type: verbatim
17889 #: ../fish/guestfish.pod:506
17890 #, no-wrap
17891 msgid ""
17892 " add \"file with a space.img\"\n"
17893 "\n"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../fish/guestfish.pod:508
17898 #, no-wrap
17899 msgid ""
17900 " rm '/file name'\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: verbatim
17905 #: ../fish/guestfish.pod:510
17906 #, no-wrap
17907 msgid ""
17908 " rm '/\"'\n"
17909 "\n"
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish.pod:512
17914 msgid ""
17915 "A few commands require a list of strings to be passed.  For these, use a "
17916 "whitespace-separated list, enclosed in quotes.  Strings containing "
17917 "whitespace to be passed through must be enclosed in single quotes.  A "
17918 "literal single quote must be escaped with a backslash."
17919 msgstr ""
17920
17921 #. type: verbatim
17922 #: ../fish/guestfish.pod:517
17923 #, no-wrap
17924 msgid ""
17925 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17926 " command \"/bin/echo 'foo      bar'\"\n"
17927 " command \"/bin/echo \\'foo\\'\"\n"
17928 "\n"
17929 msgstr ""
17930
17931 #. type: =head2
17932 #: ../fish/guestfish.pod:521
17933 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../fish/guestfish.pod:523
17938 msgid ""
17939 "In double-quoted arguments (only) use backslash to insert special characters:"
17940 msgstr ""
17941
17942 #. type: =item
17943 #: ../fish/guestfish.pod:528
17944 msgid "C<\\a>"
17945 msgstr ""
17946
17947 #. type: textblock
17948 #: ../fish/guestfish.pod:530
17949 msgid "Alert (bell) character."
17950 msgstr ""
17951
17952 #. type: =item
17953 #: ../fish/guestfish.pod:532
17954 msgid "C<\\b>"
17955 msgstr ""
17956
17957 #. type: textblock
17958 #: ../fish/guestfish.pod:534
17959 msgid "Backspace character."
17960 msgstr ""
17961
17962 #. type: =item
17963 #: ../fish/guestfish.pod:536
17964 msgid "C<\\f>"
17965 msgstr ""
17966
17967 #. type: textblock
17968 #: ../fish/guestfish.pod:538
17969 msgid "Form feed character."
17970 msgstr ""
17971
17972 #. type: =item
17973 #: ../fish/guestfish.pod:540
17974 msgid "C<\\n>"
17975 msgstr ""
17976
17977 #. type: textblock
17978 #: ../fish/guestfish.pod:542
17979 msgid "Newline character."
17980 msgstr ""
17981
17982 #. type: =item
17983 #: ../fish/guestfish.pod:544
17984 msgid "C<\\r>"
17985 msgstr ""
17986
17987 #. type: textblock
17988 #: ../fish/guestfish.pod:546
17989 msgid "Carriage return character."
17990 msgstr ""
17991
17992 #. type: =item
17993 #: ../fish/guestfish.pod:548
17994 msgid "C<\\t>"
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish.pod:550
17999 msgid "Horizontal tab character."
18000 msgstr ""
18001
18002 #. type: =item
18003 #: ../fish/guestfish.pod:552
18004 msgid "C<\\v>"
18005 msgstr ""
18006
18007 #. type: textblock
18008 #: ../fish/guestfish.pod:554
18009 msgid "Vertical tab character."
18010 msgstr ""
18011
18012 #. type: =item
18013 #: ../fish/guestfish.pod:556
18014 msgid "C<\\\">"
18015 msgstr ""
18016
18017 #. type: textblock
18018 #: ../fish/guestfish.pod:558
18019 msgid "A literal double quote character."
18020 msgstr ""
18021
18022 #. type: =item
18023 #: ../fish/guestfish.pod:560
18024 msgid "C<\\ooo>"
18025 msgstr ""
18026
18027 #. type: textblock
18028 #: ../fish/guestfish.pod:562
18029 msgid ""
18030 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18031 "(unlike C)."
18032 msgstr ""
18033
18034 #. type: =item
18035 #: ../fish/guestfish.pod:565
18036 msgid "C<\\xhh>"
18037 msgstr ""
18038
18039 #. type: textblock
18040 #: ../fish/guestfish.pod:567
18041 msgid ""
18042 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18043 msgstr ""
18044
18045 #. type: textblock
18046 #: ../fish/guestfish.pod:570
18047 msgid ""
18048 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18049 "strings."
18050 msgstr ""
18051
18052 #. type: =item
18053 #: ../fish/guestfish.pod:573
18054 msgid "C<\\\\>"
18055 msgstr ""
18056
18057 #. type: textblock
18058 #: ../fish/guestfish.pod:575
18059 msgid "A literal backslash character."
18060 msgstr ""
18061
18062 #. type: =head1
18063 #: ../fish/guestfish.pod:579
18064 msgid "OPTIONAL ARGUMENTS"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish.pod:581
18069 msgid ""
18070 "Some commands take optional arguments.  These arguments appear in this "
18071 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18072 msgstr ""
18073
18074 #. type: verbatim
18075 #: ../fish/guestfish.pod:585
18076 #, no-wrap
18077 msgid ""
18078 " add-drive-opts filename\n"
18079 "\n"
18080 msgstr ""
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish.pod:587
18084 #, no-wrap
18085 msgid ""
18086 " add-drive-opts filename readonly:true\n"
18087 "\n"
18088 msgstr ""
18089
18090 #. type: verbatim
18091 #: ../fish/guestfish.pod:589
18092 #, no-wrap
18093 msgid ""
18094 " add-drive-opts filename format:qcow2 readonly:false\n"
18095 "\n"
18096 msgstr ""
18097
18098 #. type: textblock
18099 #: ../fish/guestfish.pod:591
18100 msgid ""
18101 "Each optional argument can appear at most once.  All optional arguments must "
18102 "appear after the required ones."
18103 msgstr ""
18104
18105 #. type: =head1
18106 #: ../fish/guestfish.pod:594
18107 msgid "NUMBERS"
18108 msgstr "ЧИСЛА"
18109
18110 #. type: textblock
18111 #: ../fish/guestfish.pod:596
18112 msgid ""
18113 "This section applies to all commands which can take integers as parameters."
18114 msgstr ""
18115
18116 #. type: =head2
18117 #: ../fish/guestfish.pod:599
18118 msgid "SIZE SUFFIX"
18119 msgstr ""
18120
18121 #. type: textblock
18122 #: ../fish/guestfish.pod:601
18123 msgid ""
18124 "When the command takes a parameter measured in bytes, you can use one of the "
18125 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18126 msgstr ""
18127
18128 #. type: =item
18129 #: ../fish/guestfish.pod:607
18130 msgid "B<k> or B<K> or B<KiB>"
18131 msgstr "B<k>, B<K> або B<KiB>"
18132
18133 #. type: textblock
18134 #: ../fish/guestfish.pod:609
18135 msgid "The size in kilobytes (multiplied by 1024)."
18136 msgstr ""
18137
18138 #. type: =item
18139 #: ../fish/guestfish.pod:611
18140 msgid "B<KB>"
18141 msgstr "B<KB>"
18142
18143 #. type: textblock
18144 #: ../fish/guestfish.pod:613
18145 msgid "The size in SI 1000 byte units."
18146 msgstr ""
18147
18148 #. type: =item
18149 #: ../fish/guestfish.pod:615
18150 msgid "B<M> or B<MiB>"
18151 msgstr "B<M> або B<MiB>"
18152
18153 #. type: textblock
18154 #: ../fish/guestfish.pod:617
18155 msgid "The size in megabytes (multiplied by 1048576)."
18156 msgstr ""
18157
18158 #. type: =item
18159 #: ../fish/guestfish.pod:619
18160 msgid "B<MB>"
18161 msgstr "B<MB>"
18162
18163 #. type: textblock
18164 #: ../fish/guestfish.pod:621
18165 msgid "The size in SI 1000000 byte units."
18166 msgstr ""
18167
18168 #. type: =item
18169 #: ../fish/guestfish.pod:623
18170 msgid "B<G> or B<GiB>"
18171 msgstr "B<G> або B<GiB>"
18172
18173 #. type: textblock
18174 #: ../fish/guestfish.pod:625
18175 msgid "The size in gigabytes (multiplied by 2**30)."
18176 msgstr "Розмір у гігабайтах (з множником 2**30)."
18177
18178 #. type: =item
18179 #: ../fish/guestfish.pod:627
18180 msgid "B<GB>"
18181 msgstr "B<GB>"
18182
18183 #. type: textblock
18184 #: ../fish/guestfish.pod:629
18185 msgid "The size in SI 10**9 byte units."
18186 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18187
18188 #. type: =item
18189 #: ../fish/guestfish.pod:631
18190 msgid "B<T> or B<TiB>"
18191 msgstr "B<T> або B<TiB>"
18192
18193 #. type: textblock
18194 #: ../fish/guestfish.pod:633
18195 msgid "The size in terabytes (multiplied by 2**40)."
18196 msgstr "Розмір у терабайтах (з множником 2**40)."
18197
18198 #. type: =item
18199 #: ../fish/guestfish.pod:635
18200 msgid "B<TB>"
18201 msgstr "B<TB>"
18202
18203 #. type: textblock
18204 #: ../fish/guestfish.pod:637
18205 msgid "The size in SI 10**12 byte units."
18206 msgstr ""
18207
18208 #. type: =item
18209 #: ../fish/guestfish.pod:639
18210 msgid "B<P> or B<PiB>"
18211 msgstr "B<P> або B<PiB>"
18212
18213 #. type: textblock
18214 #: ../fish/guestfish.pod:641
18215 msgid "The size in petabytes (multiplied by 2**50)."
18216 msgstr ""
18217
18218 #. type: =item
18219 #: ../fish/guestfish.pod:643
18220 msgid "B<PB>"
18221 msgstr "B<PB>"
18222
18223 #. type: textblock
18224 #: ../fish/guestfish.pod:645
18225 msgid "The size in SI 10**15 byte units."
18226 msgstr ""
18227
18228 #. type: =item
18229 #: ../fish/guestfish.pod:647
18230 msgid "B<E> or B<EiB>"
18231 msgstr "B<E> або B<EiB>"
18232
18233 #. type: textblock
18234 #: ../fish/guestfish.pod:649
18235 msgid "The size in exabytes (multiplied by 2**60)."
18236 msgstr ""
18237
18238 #. type: =item
18239 #: ../fish/guestfish.pod:651
18240 msgid "B<EB>"
18241 msgstr "B<EB>"
18242
18243 #. type: textblock
18244 #: ../fish/guestfish.pod:653
18245 msgid "The size in SI 10**18 byte units."
18246 msgstr ""
18247
18248 #. type: =item
18249 #: ../fish/guestfish.pod:655
18250 msgid "B<Z> or B<ZiB>"
18251 msgstr "B<Z> або B<ZiB>"
18252
18253 #. type: textblock
18254 #: ../fish/guestfish.pod:657
18255 msgid "The size in zettabytes (multiplied by 2**70)."
18256 msgstr ""
18257
18258 #. type: =item
18259 #: ../fish/guestfish.pod:659
18260 msgid "B<ZB>"
18261 msgstr "B<ZB>"
18262
18263 #. type: textblock
18264 #: ../fish/guestfish.pod:661
18265 msgid "The size in SI 10**21 byte units."
18266 msgstr ""
18267
18268 #. type: =item
18269 #: ../fish/guestfish.pod:663
18270 msgid "B<Y> or B<YiB>"
18271 msgstr "B<Y> або B<YiB>"
18272
18273 #. type: textblock
18274 #: ../fish/guestfish.pod:665
18275 msgid "The size in yottabytes (multiplied by 2**80)."
18276 msgstr ""
18277
18278 #. type: =item
18279 #: ../fish/guestfish.pod:667
18280 msgid "B<YB>"
18281 msgstr "B<YB>"
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:669
18285 msgid "The size in SI 10**24 byte units."
18286 msgstr ""
18287
18288 #. type: verbatim
18289 #: ../fish/guestfish.pod:675
18290 #, no-wrap
18291 msgid ""
18292 " truncate-size /file 1G\n"
18293 "\n"
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:677
18298 msgid "would truncate the file to 1 gigabyte."
18299 msgstr ""
18300
18301 #. type: textblock
18302 #: ../fish/guestfish.pod:679
18303 msgid ""
18304 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18305 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18306 "suffix will probably not do what you expect."
18307 msgstr ""
18308
18309 #. type: =head2
18310 #: ../fish/guestfish.pod:683
18311 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:685
18316 msgid ""
18317 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18318 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18319 msgstr ""
18320
18321 #. type: verbatim
18322 #: ../fish/guestfish.pod:688
18323 #, no-wrap
18324 msgid ""
18325 " 1234      decimal number 1234\n"
18326 " 02322     octal number, equivalent to decimal 1234\n"
18327 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18328 "\n"
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish.pod:692
18333 msgid ""
18334 "When using the C<chmod> command, you almost always want to specify an octal "
18335 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18336 "L<chmod(1)> program):"
18337 msgstr ""
18338
18339 #. type: verbatim
18340 #: ../fish/guestfish.pod:696
18341 #, no-wrap
18342 msgid ""
18343 " chmod 0777 /public  # OK\n"
18344 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18345 "\n"
18346 msgstr ""
18347
18348 #. type: textblock
18349 #: ../fish/guestfish.pod:699
18350 msgid ""
18351 "Commands that return numbers usually print them in decimal, but some "
18352 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18353 "octal, preceeded by C<0>)."
18354 msgstr ""
18355
18356 #. type: =head1
18357 #: ../fish/guestfish.pod:703
18358 msgid "WILDCARDS AND GLOBBING"
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:705
18363 msgid ""
18364 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18365 "(globbing) by default.  So for example the following will not do what you "
18366 "expect:"
18367 msgstr ""
18368
18369 #. type: verbatim
18370 #: ../fish/guestfish.pod:709
18371 #, no-wrap
18372 msgid ""
18373 " rm-rf /home/*\n"
18374 "\n"
18375 msgstr ""
18376
18377 #. type: textblock
18378 #: ../fish/guestfish.pod:711
18379 msgid ""
18380 "Assuming you don't have a directory called literally C</home/*> then the "
18381 "above command will return an error."
18382 msgstr ""
18383
18384 #. type: textblock
18385 #: ../fish/guestfish.pod:714
18386 msgid "To perform wildcard expansion, use the C<glob> command."
18387 msgstr ""
18388
18389 #. type: verbatim
18390 #: ../fish/guestfish.pod:716
18391 #, no-wrap
18392 msgid ""
18393 " glob rm-rf /home/*\n"
18394 "\n"
18395 msgstr ""
18396
18397 #. type: textblock
18398 #: ../fish/guestfish.pod:718
18399 msgid ""
18400 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18401 "many times), equivalent to:"
18402 msgstr ""
18403
18404 #. type: verbatim
18405 #: ../fish/guestfish.pod:721
18406 #, no-wrap
18407 msgid ""
18408 " rm-rf /home/jim\n"
18409 " rm-rf /home/joe\n"
18410 " rm-rf /home/mary\n"
18411 "\n"
18412 msgstr ""
18413
18414 #. type: textblock
18415 #: ../fish/guestfish.pod:725
18416 msgid "C<glob> only works on simple guest paths and not on device names."
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish.pod:727
18421 msgid ""
18422 "If you have several parameters, each containing a wildcard, then glob will "
18423 "perform a Cartesian product."
18424 msgstr ""
18425
18426 #. type: =head1
18427 #: ../fish/guestfish.pod:730
18428 msgid "COMMENTS"
18429 msgstr "КОМЕНТАРІ"
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:732
18433 msgid ""
18434 "Any line which starts with a I<#> character is treated as a comment and "
18435 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18436 "a command.  For example:"
18437 msgstr ""
18438
18439 #. type: verbatim
18440 #: ../fish/guestfish.pod:736
18441 #, no-wrap
18442 msgid ""
18443 " # this is a comment\n"
18444 "         # this is a comment\n"
18445 " foo # NOT a comment\n"
18446 "\n"
18447 msgstr ""
18448
18449 #. type: textblock
18450 #: ../fish/guestfish.pod:740
18451 msgid "Blank lines are also ignored."
18452 msgstr ""
18453
18454 #. type: =head1
18455 #: ../fish/guestfish.pod:742
18456 msgid "RUNNING COMMANDS LOCALLY"
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish.pod:744
18461 msgid ""
18462 "Any line which starts with a I<!> character is treated as a command sent to "
18463 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18464 msgstr ""
18465
18466 #. type: verbatim
18467 #: ../fish/guestfish.pod:748
18468 #, no-wrap
18469 msgid ""
18470 " !mkdir local\n"
18471 " tgz-out /remote local/remote-data.tar.gz\n"
18472 "\n"
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:751
18477 msgid ""
18478 "will create a directory C<local> on the host, and then export the contents "
18479 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18480 "(See C<tgz-out>)."
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish.pod:755
18485 msgid ""
18486 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18487 "effect, due to the way that subprocesses work in Unix."
18488 msgstr ""
18489
18490 #. type: =head2
18491 #: ../fish/guestfish.pod:758
18492 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18493 msgstr ""
18494
18495 #. type: textblock
18496 #: ../fish/guestfish.pod:760
18497 msgid ""
18498 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18499 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18500 "and executed as guestfish commands."
18501 msgstr ""
18502
18503 #. type: textblock
18504 #: ../fish/guestfish.pod:764
18505 msgid ""
18506 "Thus you can use shell script to construct arbitrary guestfish commands "
18507 "which are then parsed by guestfish."
18508 msgstr ""
18509
18510 #. type: textblock
18511 #: ../fish/guestfish.pod:767
18512 msgid ""
18513 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18514 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18515 "if we use a shell script to create the guestfish commands for us:"
18516 msgstr ""
18517
18518 #. type: verbatim
18519 #: ../fish/guestfish.pod:772
18520 #, no-wrap
18521 msgid ""
18522 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18523 "\n"
18524 msgstr ""
18525
18526 #. type: textblock
18527 #: ../fish/guestfish.pod:774
18528 msgid "or with names like C</foo.001>:"
18529 msgstr ""
18530
18531 #. type: verbatim
18532 #: ../fish/guestfish.pod:776
18533 #, no-wrap
18534 msgid ""
18535 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18536 "\n"
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:778
18541 msgid ""
18542 "When using guestfish interactively it can be helpful to just run the shell "
18543 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18544 "ordinary I<!> local command), see what guestfish commands it would run, and "
18545 "when you are happy with those prepend the C<E<lt>> character to run the "
18546 "guestfish commands for real."
18547 msgstr ""
18548
18549 #. type: =head1
18550 #: ../fish/guestfish.pod:784
18551 msgid "PIPES"
18552 msgstr "КАНАЛИ"
18553
18554 #. type: textblock
18555 #: ../fish/guestfish.pod:786
18556 msgid ""
18557 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18558 "command (a guestfish command) to the second command (any host command).  For "
18559 "example:"
18560 msgstr ""
18561
18562 #. type: verbatim
18563 #: ../fish/guestfish.pod:790
18564 #, no-wrap
18565 msgid ""
18566 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18567 "\n"
18568 msgstr ""
18569
18570 #. type: textblock
18571 #: ../fish/guestfish.pod:792
18572 msgid ""
18573 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18574 "program).  The above command would list all accounts in the guest filesystem "
18575 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18576 msgstr ""
18577
18578 #. type: verbatim
18579 #: ../fish/guestfish.pod:797
18580 #, no-wrap
18581 msgid ""
18582 " hexdump /bin/ls | head\n"
18583 " list-devices | tail -1\n"
18584 " tgz-out / - | tar ztf -\n"
18585 "\n"
18586 msgstr ""
18587
18588 #. type: textblock
18589 #: ../fish/guestfish.pod:801
18590 msgid ""
18591 "The space before the pipe symbol is required, any space after the pipe "
18592 "symbol is optional.  Everything after the pipe symbol is just passed "
18593 "straight to the host shell, so it can contain redirections, globs and "
18594 "anything else that makes sense on the host side."
18595 msgstr ""
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:806
18599 msgid ""
18600 "To use a literal argument which begins with a pipe symbol, you have to quote "
18601 "it, eg:"
18602 msgstr ""
18603
18604 #. type: verbatim
18605 #: ../fish/guestfish.pod:809
18606 #, no-wrap
18607 msgid ""
18608 " echo \"|\"\n"
18609 "\n"
18610 msgstr ""
18611
18612 #. type: =head1
18613 #: ../fish/guestfish.pod:811
18614 msgid "HOME DIRECTORIES"
18615 msgstr ""
18616
18617 #. type: textblock
18618 #: ../fish/guestfish.pod:813
18619 msgid ""
18620 "If a parameter starts with the character C<~> then the tilde may be expanded "
18621 "as a home directory path (either C<~> for the current user's home directory, "
18622 "or C<~user> for another user)."
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish.pod:817
18627 msgid ""
18628 "Note that home directory expansion happens for users known I<on the host>, "
18629 "not in the guest filesystem."
18630 msgstr ""
18631
18632 #. type: textblock
18633 #: ../fish/guestfish.pod:820
18634 msgid ""
18635 "To use a literal argument which begins with a tilde, you have to quote it, "
18636 "eg:"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish.pod:823
18641 #, no-wrap
18642 msgid ""
18643 " echo \"~\"\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: =head2
18648 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18649 msgid "ENCRYPTED DISKS"
18650 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18651
18652 #. type: textblock
18653 #: ../fish/guestfish.pod:827
18654 msgid ""
18655 "Libguestfs has some support for Linux guests encrypted according to the "
18656 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18657 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18658 "LUKS is supported."
18659 msgstr ""
18660
18661 #. type: textblock
18662 #: ../fish/guestfish.pod:832
18663 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18664 msgstr ""
18665
18666 #. type: verbatim
18667 #: ../fish/guestfish.pod:834
18668 #, no-wrap
18669 msgid ""
18670 " ><fs> vfs-type /dev/sda2\n"
18671 " crypto_LUKS\n"
18672 "\n"
18673 msgstr ""
18674
18675 #. type: textblock
18676 #: ../fish/guestfish.pod:837
18677 msgid ""
18678 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18679 "device called C</dev/mapper/luksdev>."
18680 msgstr ""
18681
18682 #. type: verbatim
18683 #: ../fish/guestfish.pod:840
18684 #, no-wrap
18685 msgid ""
18686 " ><fs> luks-open /dev/sda2 luksdev\n"
18687 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish.pod:843
18693 msgid ""
18694 "Finally you have to tell LVM to scan for volume groups on the newly created "
18695 "mapper device:"
18696 msgstr ""
18697
18698 #. type: verbatim
18699 #: ../fish/guestfish.pod:846
18700 #, no-wrap
18701 msgid ""
18702 " vgscan\n"
18703 " vg-activate-all true\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fish/guestfish.pod:849
18709 msgid "The logical volume(s) can now be mounted in the usual way."
18710 msgstr ""
18711
18712 #. type: textblock
18713 #: ../fish/guestfish.pod:851
18714 msgid ""
18715 "Before closing a LUKS device you must unmount any logical volumes on it and "
18716 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18717 "one.  Then you can close the mapper device:"
18718 msgstr ""
18719
18720 #. type: verbatim
18721 #: ../fish/guestfish.pod:855
18722 #, no-wrap
18723 msgid ""
18724 " vg-activate false /dev/VG\n"
18725 " luks-close /dev/mapper/luksdev\n"
18726 "\n"
18727 msgstr ""
18728
18729 #. type: textblock
18730 #: ../fish/guestfish.pod:860
18731 msgid ""
18732 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18733 "letters and paths (with some limitations).  The following commands are "
18734 "equivalent:"
18735 msgstr ""
18736
18737 #. type: verbatim
18738 #: ../fish/guestfish.pod:864
18739 #, no-wrap
18740 msgid ""
18741 " file /WINDOWS/system32/config/system.LOG\n"
18742 "\n"
18743 msgstr ""
18744
18745 #. type: verbatim
18746 #: ../fish/guestfish.pod:866
18747 #, no-wrap
18748 msgid ""
18749 " file win:\\windows\\system32\\config\\system.log\n"
18750 "\n"
18751 msgstr ""
18752
18753 #. type: verbatim
18754 #: ../fish/guestfish.pod:868
18755 #, no-wrap
18756 msgid ""
18757 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18758 "\n"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:870
18763 msgid ""
18764 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18765 "where the drive is mounted, prepending that to the path, changing all "
18766 "backslash characters to forward slash, then resolving the result using L</"
18767 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18768 "the parameter might be rewritten like this:"
18769 msgstr ""
18770
18771 #. type: verbatim
18772 #: ../fish/guestfish.pod:876
18773 #, no-wrap
18774 msgid ""
18775 " win:e:\\foo\\bar => /e/FOO/bar\n"
18776 "\n"
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fish/guestfish.pod:878
18781 msgid "This only works in argument positions that expect a path."
18782 msgstr ""
18783
18784 #. type: =head1
18785 #: ../fish/guestfish.pod:880
18786 msgid "UPLOADING AND DOWNLOADING FILES"
18787 msgstr ""
18788
18789 #. type: textblock
18790 #: ../fish/guestfish.pod:882
18791 msgid ""
18792 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18793 "others which upload from or download to a local file, you can use the "
18794 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18795 msgstr ""
18796
18797 #. type: verbatim
18798 #: ../fish/guestfish.pod:886
18799 #, no-wrap
18800 msgid ""
18801 " upload - /foo\n"
18802 "\n"
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fish/guestfish.pod:888
18807 msgid ""
18808 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18809 msgstr ""
18810
18811 #. type: verbatim
18812 #: ../fish/guestfish.pod:891
18813 #, no-wrap
18814 msgid ""
18815 " tar-out /etc - | tar tf -\n"
18816 "\n"
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fish/guestfish.pod:893
18821 msgid ""
18822 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18823 "command (see L</PIPES>)."
18824 msgstr ""
18825
18826 #. type: textblock
18827 #: ../fish/guestfish.pod:896
18828 msgid ""
18829 "When using C<-> to read from stdin, the input is read up to the end of "
18830 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18831 "some arbitrary end marker:"
18832 msgstr ""
18833
18834 #. type: verbatim
18835 #: ../fish/guestfish.pod:900
18836 #, no-wrap
18837 msgid ""
18838 " upload -<<END /foo\n"
18839 " input line 1\n"
18840 " input line 2\n"
18841 " input line 3\n"
18842 " END\n"
18843 "\n"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:906
18848 msgid ""
18849 "Any string of characters can be used instead of C<END>.  The end marker must "
18850 "appear on a line of its own, without any preceeding or following characters "
18851 "(not even spaces)."
18852 msgstr ""
18853
18854 #. type: textblock
18855 #: ../fish/guestfish.pod:910
18856 msgid ""
18857 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18858 "upload local files (so-called \"FileIn\" parameters in the generator)."
18859 msgstr ""
18860
18861 #. type: =head1
18862 #: ../fish/guestfish.pod:913
18863 msgid "EXIT ON ERROR BEHAVIOUR"
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:915
18868 msgid ""
18869 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18870 "taking commands from a human over a tty), and will exit on the first error "
18871 "in non-interactive mode (scripts, commands given on the command line)."
18872 msgstr ""
18873
18874 #. type: textblock
18875 #: ../fish/guestfish.pod:920
18876 msgid ""
18877 "If you prefix a command with a I<-> character, then that command will not "
18878 "cause guestfish to exit, even if that (one) command returns an error."
18879 msgstr ""
18880
18881 #. type: =head1
18882 #: ../fish/guestfish.pod:924
18883 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:926
18888 msgid ""
18889 "Guestfish can be remote-controlled over a socket.  This is useful "
18890 "particularly in shell scripts where you want to make several different "
18891 "changes to a filesystem, but you don't want the overhead of starting up a "
18892 "guestfish process each time."
18893 msgstr ""
18894
18895 #. type: textblock
18896 #: ../fish/guestfish.pod:931
18897 msgid "Start a guestfish server process using:"
18898 msgstr ""
18899
18900 #. type: verbatim
18901 #: ../fish/guestfish.pod:933
18902 #, no-wrap
18903 msgid ""
18904 " eval \"`guestfish --listen`\"\n"
18905 "\n"
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/guestfish.pod:935
18910 msgid "and then send it commands by doing:"
18911 msgstr ""
18912
18913 #. type: verbatim
18914 #: ../fish/guestfish.pod:937
18915 #, no-wrap
18916 msgid ""
18917 " guestfish --remote cmd [...]\n"
18918 "\n"
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fish/guestfish.pod:939
18923 msgid "To cause the server to exit, send it the exit command:"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:943
18928 msgid ""
18929 "Note that the server will normally exit if there is an error in a command.  "
18930 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18931 "BEHAVIOUR>."
18932 msgstr ""
18933
18934 #. type: =head2
18935 #: ../fish/guestfish.pod:947
18936 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:949
18941 msgid ""
18942 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18943 "is how the I<--remote> option knows where to send the commands.  You can "
18944 "have several guestfish listener processes running using:"
18945 msgstr ""
18946
18947 #. type: verbatim
18948 #: ../fish/guestfish.pod:953
18949 #, no-wrap
18950 msgid ""
18951 " eval \"`guestfish --listen`\"\n"
18952 " pid1=$GUESTFISH_PID\n"
18953 " eval \"`guestfish --listen`\"\n"
18954 " pid2=$GUESTFISH_PID\n"
18955 " ...\n"
18956 " guestfish --remote=$pid1 cmd\n"
18957 " guestfish --remote=$pid2 cmd\n"
18958 "\n"
18959 msgstr ""
18960
18961 #. type: =head2
18962 #: ../fish/guestfish.pod:961
18963 msgid "REMOTE CONTROL AND CSH"
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/guestfish.pod:963
18968 msgid ""
18969 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18970 "option:"
18971 msgstr ""
18972
18973 #. type: verbatim
18974 #: ../fish/guestfish.pod:966
18975 #, no-wrap
18976 msgid ""
18977 " eval \"`guestfish --listen --csh`\"\n"
18978 "\n"
18979 msgstr ""
18980
18981 #. type: =head2
18982 #: ../fish/guestfish.pod:968
18983 msgid "REMOTE CONTROL DETAILS"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:970
18988 msgid ""
18989 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18990 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18991 "and C<$PID> is the process ID of the server."
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:974
18996 msgid "Guestfish client and server versions must match exactly."
18997 msgstr ""
18998
18999 #. type: =head2
19000 #: ../fish/guestfish.pod:976
19001 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19002 msgstr ""
19003
19004 #. type: textblock
19005 #: ../fish/guestfish.pod:978
19006 msgid ""
19007 "From Bash, you can use the following code which creates a guestfish "
19008 "instance, correctly quotes the command line, handles failure to start, and "
19009 "cleans up guestfish when the script exits:"
19010 msgstr ""
19011
19012 #. type: verbatim
19013 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:958
19014 #, fuzzy, no-wrap
19015 #| msgid ""
19016 #| " #!/usr/bin/guestfish -f\n"
19017 #| "\n"
19018 msgid ""
19019 " #!/bin/bash -\n"
19020 " \n"
19021 msgstr ""
19022 " #!/usr/bin/guestfish -f\n"
19023 "\n"
19024
19025 #. type: verbatim
19026 #: ../fish/guestfish.pod:986
19027 #, no-wrap
19028 msgid ""
19029 " guestfish[0]=\"guestfish\"\n"
19030 " guestfish[1]=\"--listen\"\n"
19031 " guestfish[2]=\"--ro\"\n"
19032 " guestfish[3]=\"-a\"\n"
19033 " guestfish[4]=\"disk.img\"\n"
19034 " \n"
19035 msgstr ""
19036
19037 #. type: verbatim
19038 #: ../fish/guestfish.pod:992
19039 #, no-wrap
19040 msgid ""
19041 " GUESTFISH_PID=\n"
19042 " eval $(\"${guestfish[@]}\")\n"
19043 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19044 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19045 "     exit 1\n"
19046 " fi\n"
19047 " \n"
19048 msgstr ""
19049
19050 #. type: verbatim
19051 #: ../fish/guestfish.pod:999
19052 #, no-wrap
19053 msgid ""
19054 " cleanup_guestfish ()\n"
19055 " {\n"
19056 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19057 " }\n"
19058 " trap cleanup_guestfish EXIT ERR\n"
19059 " \n"
19060 msgstr ""
19061
19062 #. type: verbatim
19063 #: ../fish/guestfish.pod:1005
19064 #, fuzzy, no-wrap
19065 #| msgid ""
19066 #| " guestfish --ro -d myguest -i\n"
19067 #| "\n"
19068 msgid ""
19069 " guestfish --remote -- run\n"
19070 " \n"
19071 msgstr ""
19072 " guestfish --ro -d myguest -i\n"
19073 "\n"
19074
19075 #. type: verbatim
19076 #: ../fish/guestfish.pod:1007
19077 #, no-wrap
19078 msgid ""
19079 " # ...\n"
19080 "\n"
19081 msgstr ""
19082
19083 #. type: =head2
19084 #: ../fish/guestfish.pod:1009
19085 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:1011
19090 msgid ""
19091 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19092 "context hangs, ie. don't do (note the backquotes):"
19093 msgstr ""
19094
19095 #. type: verbatim
19096 #: ../fish/guestfish.pod:1014
19097 #, fuzzy, no-wrap
19098 #| msgid ""
19099 #| " guestfish --ro -d myguest -i\n"
19100 #| "\n"
19101 msgid ""
19102 " a=`guestfish --remote run`\n"
19103 "\n"
19104 msgstr ""
19105 " guestfish --ro -d myguest -i\n"
19106 "\n"
19107
19108 #. type: textblock
19109 #: ../fish/guestfish.pod:1016
19110 msgid ""
19111 "Since the C<run> command produces no output on stdout, this is not useful "
19112 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19113 "cgi?id=592910>."
19114 msgstr ""
19115
19116 #. type: =head1
19117 #: ../fish/guestfish.pod:1020
19118 msgid "PREPARED DISK IMAGES"
19119 msgstr ""
19120
19121 #. type: textblock
19122 #: ../fish/guestfish.pod:1022
19123 msgid ""
19124 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19125 "preformatted disk images that guestfish can make for you to save typing.  "
19126 "This is particularly useful for testing purposes.  This option is used "
19127 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19128 "can be mixed with I<-a>)."
19129 msgstr ""
19130
19131 #. type: textblock
19132 #: ../fish/guestfish.pod:1028
19133 msgid ""
19134 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19135 "the second and so on.  Existing files in the current directory are "
19136 "I<overwritten>."
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fish/guestfish.pod:1032
19141 msgid ""
19142 "The type briefly describes how the disk should be sized, partitioned, how "
19143 "filesystem(s) should be created, and how content should be added.  "
19144 "Optionally the type can be followed by extra parameters, separated by C<:> "
19145 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19146 "allocated disk, containing a single partition, with the partition formatted "
19147 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19148 "disk instead."
19149 msgstr ""
19150
19151 #. type: textblock
19152 #: ../fish/guestfish.pod:1040
19153 msgid "To list the available types and any extra parameters they take, run:"
19154 msgstr ""
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:1044
19158 msgid ""
19159 "Note that the prepared filesystem is not mounted.  You would usually have to "
19160 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:1048
19165 msgid ""
19166 "If any I<-N> or I<--new> options are given, the guest is automatically "
19167 "launched."
19168 msgstr ""
19169
19170 #. type: textblock
19171 #: ../fish/guestfish.pod:1053
19172 msgid "Create a 100MB disk with an ext4-formatted partition:"
19173 msgstr ""
19174
19175 #. type: verbatim
19176 #: ../fish/guestfish.pod:1055
19177 #, no-wrap
19178 msgid ""
19179 " guestfish -N fs:ext4\n"
19180 "\n"
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../fish/guestfish.pod:1057
19185 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19186 msgstr ""
19187
19188 #. type: verbatim
19189 #: ../fish/guestfish.pod:1059
19190 #, no-wrap
19191 msgid ""
19192 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19193 "\n"
19194 msgstr ""
19195
19196 #. type: textblock
19197 #: ../fish/guestfish.pod:1061
19198 msgid "Create a blank 200MB disk:"
19199 msgstr ""
19200
19201 #. type: verbatim
19202 #: ../fish/guestfish.pod:1063
19203 #, no-wrap
19204 msgid ""
19205 " guestfish -N disk:200M\n"
19206 "\n"
19207 msgstr ""
19208
19209 #. type: =head1
19210 #: ../fish/guestfish.pod:1065
19211 msgid "PROGRESS BARS"
19212 msgstr ""
19213
19214 #. type: textblock
19215 #: ../fish/guestfish.pod:1067
19216 msgid ""
19217 "Some (not all) long-running commands send progress notification messages as "
19218 "they are running.  Guestfish turns these messages into progress bars."
19219 msgstr ""
19220
19221 #. type: textblock
19222 #: ../fish/guestfish.pod:1071
19223 msgid ""
19224 "When a command that supports progress bars takes longer than two seconds to "
19225 "run, and if progress bars are enabled, then you will see one appearing below "
19226 "the command:"
19227 msgstr ""
19228
19229 #. type: verbatim
19230 #: ../fish/guestfish.pod:1075
19231 #, no-wrap
19232 msgid ""
19233 " ><fs> copy-size /large-file /another-file 2048M\n"
19234 " / 10% [#####-----------------------------------------] 00:30\n"
19235 "\n"
19236 msgstr ""
19237
19238 #. type: textblock
19239 #: ../fish/guestfish.pod:1078
19240 msgid ""
19241 "The spinner on the left hand side moves round once for every progress "
19242 "notification received from the backend.  This is a (reasonably) golden "
19243 "assurance that the command is \"doing something\" even if the progress bar "
19244 "is not moving, because the command is able to send the progress "
19245 "notifications.  When the bar reaches 100% and the command finishes, the "
19246 "spinner disappears."
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../fish/guestfish.pod:1085
19251 msgid ""
19252 "Progress bars are enabled by default when guestfish is used interactively.  "
19253 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19254 "and you can disable them completely using I<--no-progress-bars>."
19255 msgstr ""
19256
19257 #. type: =head1
19258 #: ../fish/guestfish.pod:1090
19259 msgid "GUESTFISH COMMANDS"
19260 msgstr ""
19261
19262 #. type: textblock
19263 #: ../fish/guestfish.pod:1092
19264 msgid ""
19265 "The commands in this section are guestfish convenience commands, in other "
19266 "words, they are not part of the L<guestfs(3)> API."
19267 msgstr ""
19268
19269 #. type: =head2
19270 #: ../fish/guestfish.pod:1095
19271 msgid "help"
19272 msgstr "help"
19273
19274 #. type: verbatim
19275 #: ../fish/guestfish.pod:1097
19276 #, no-wrap
19277 msgid ""
19278 " help\n"
19279 " help cmd\n"
19280 "\n"
19281 msgstr ""
19282 " help\n"
19283 " help команда\n"
19284 "\n"
19285
19286 #. type: textblock
19287 #: ../fish/guestfish.pod:1100
19288 msgid "Without any parameter, this provides general help."
19289 msgstr "Без параметра показує загальну довідкову інформацію."
19290
19291 #. type: textblock
19292 #: ../fish/guestfish.pod:1102
19293 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19294 msgstr ""
19295
19296 #. type: =head2
19297 #: ../fish/guestfish.pod:1104
19298 msgid "quit | exit"
19299 msgstr ""
19300
19301 #. type: textblock
19302 #: ../fish/guestfish.pod:1106
19303 msgid "This exits guestfish.  You can also use C<^D> key."
19304 msgstr ""
19305
19306 #. type: textblock
19307 #: ../fish/guestfish.pod:1108
19308 msgid "@FISH_COMMANDS@"
19309 msgstr ""
19310
19311 #. type: =head1
19312 #: ../fish/guestfish.pod:1110
19313 msgid "COMMANDS"
19314 msgstr "КОМАНДИ"
19315
19316 #. type: textblock
19317 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1497
19318 msgid "@ACTIONS@"
19319 msgstr "@ACTIONS@"
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:1116
19323 msgid ""
19324 "guestfish returns 0 if the commands completed without error, or 1 if there "
19325 "was an error."
19326 msgstr ""
19327
19328 #. type: =item
19329 #: ../fish/guestfish.pod:1123
19330 msgid "EDITOR"
19331 msgstr "РЕДАКТОР"
19332
19333 #. type: textblock
19334 #: ../fish/guestfish.pod:1125
19335 msgid ""
19336 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19337 "C<vi>."
19338 msgstr ""
19339
19340 #. type: =item
19341 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3089
19342 msgid "FEBOOTSTRAP_KERNEL"
19343 msgstr ""
19344
19345 #. type: =item
19346 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3091
19347 msgid "FEBOOTSTRAP_MODULES"
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3093
19352 msgid ""
19353 "These two environment variables allow the kernel that libguestfs uses in the "
19354 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19355 "most recent host kernel is chosen.  For more information about kernel "
19356 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19357 "available in febootstrap E<ge> 3.8."
19358 msgstr ""
19359
19360 #. type: =item
19361 #: ../fish/guestfish.pod:1138
19362 msgid "GUESTFISH_DISPLAY_IMAGE"
19363 msgstr ""
19364
19365 #. type: textblock
19366 #: ../fish/guestfish.pod:1140
19367 msgid ""
19368 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19369 "If not set, it uses L<display(1)>."
19370 msgstr ""
19371
19372 #. type: =item
19373 #: ../fish/guestfish.pod:1143
19374 msgid "GUESTFISH_PID"
19375 msgstr ""
19376
19377 #. type: textblock
19378 #: ../fish/guestfish.pod:1145
19379 msgid ""
19380 "Used with the I<--remote> option to specify the remote guestfish process to "
19381 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19382 msgstr ""
19383
19384 #. type: =item
19385 #: ../fish/guestfish.pod:1149
19386 msgid "HEXEDITOR"
19387 msgstr ""
19388
19389 #. type: textblock
19390 #: ../fish/guestfish.pod:1151
19391 msgid ""
19392 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19393 "not specified, the external L<hexedit(1)> program is used."
19394 msgstr ""
19395
19396 #. type: =item
19397 #: ../fish/guestfish.pod:1155
19398 msgid "HOME"
19399 msgstr "ДОМІВКА"
19400
19401 #. type: textblock
19402 #: ../fish/guestfish.pod:1157
19403 msgid ""
19404 "If compiled with GNU readline support, various files in the home directory "
19405 "can be used.  See L</FILES>."
19406 msgstr ""
19407
19408 #. type: =item
19409 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3099
19410 msgid "LIBGUESTFS_APPEND"
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3101
19415 msgid "Pass additional options to the guest kernel."
19416 msgstr ""
19417
19418 #. type: =item
19419 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3103
19420 msgid "LIBGUESTFS_DEBUG"
19421 msgstr "LIBGUESTFS_DEBUG"
19422
19423 #. type: textblock
19424 #: ../fish/guestfish.pod:1166
19425 msgid ""
19426 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19427 "effect as using the B<-v> option."
19428 msgstr ""
19429
19430 #. type: =item
19431 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3108
19432 msgid "LIBGUESTFS_MEMSIZE"
19433 msgstr "LIBGUESTFS_MEMSIZE"
19434
19435 #. type: textblock
19436 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3110
19437 msgid ""
19438 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3113
19443 #, no-wrap
19444 msgid ""
19445 " LIBGUESTFS_MEMSIZE=700\n"
19446 "\n"
19447 msgstr ""
19448 " LIBGUESTFS_MEMSIZE=700\n"
19449 "\n"
19450
19451 #. type: =item
19452 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3115
19453 msgid "LIBGUESTFS_PATH"
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../fish/guestfish.pod:1178
19458 msgid ""
19459 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19460 "the discussion of paths in L<guestfs(3)>."
19461 msgstr ""
19462
19463 #. type: =item
19464 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3120
19465 msgid "LIBGUESTFS_QEMU"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3122
19470 msgid ""
19471 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19472 "which was found at compile time by the configure script is used."
19473 msgstr ""
19474
19475 #. type: =item
19476 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3128
19477 msgid "LIBGUESTFS_TRACE"
19478 msgstr ""
19479
19480 #. type: textblock
19481 #: ../fish/guestfish.pod:1189
19482 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19483 msgstr ""
19484
19485 #. type: =item
19486 #: ../fish/guestfish.pod:1191
19487 msgid "PAGER"
19488 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:1193
19492 msgid ""
19493 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19494 "C<more>."
19495 msgstr ""
19496
19497 #. type: =item
19498 #: ../fish/guestfish.pod:1196 ../src/guestfs.pod:3133
19499 msgid "TMPDIR"
19500 msgstr ""
19501
19502 #. type: textblock
19503 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3135
19504 msgid ""
19505 "Location of temporary directory, defaults to C</tmp> except for the cached "
19506 "supermin appliance which defaults to C</var/tmp>."
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3138
19511 msgid ""
19512 "If libguestfs was compiled to use the supermin appliance then the real "
19513 "appliance is cached in this directory, shared between all handles belonging "
19514 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19515 "use in case C</var/tmp> is not large enough."
19516 msgstr ""
19517
19518 #. type: =head1
19519 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
19520 #: ../rescue/virt-rescue.pod:269
19521 msgid "FILES"
19522 msgstr "ФАЙЛИ"
19523
19524 #. type: =item
19525 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
19526 #: ../rescue/virt-rescue.pod:273
19527 msgid "$HOME/.libguestfs-tools.rc"
19528 msgstr ""
19529
19530 #. type: =item
19531 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
19532 #: ../rescue/virt-rescue.pod:275
19533 msgid "/etc/libguestfs-tools.conf"
19534 msgstr ""
19535
19536 #. type: textblock
19537 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
19538 #: ../rescue/virt-rescue.pod:277
19539 msgid ""
19540 "This configuration file controls the default read-only or read-write mode "
19541 "(I<--ro> or I<--rw>)."
19542 msgstr ""
19543
19544 #. type: textblock
19545 #: ../fish/guestfish.pod:1220
19546 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19547 msgstr ""
19548
19549 #. type: =item
19550 #: ../fish/guestfish.pod:1222
19551 msgid "$HOME/.guestfish"
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../fish/guestfish.pod:1224
19556 msgid ""
19557 "If compiled with GNU readline support, then the command history is saved in "
19558 "this file."
19559 msgstr ""
19560
19561 #. type: =item
19562 #: ../fish/guestfish.pod:1227
19563 msgid "$HOME/.inputrc"
19564 msgstr ""
19565
19566 #. type: =item
19567 #: ../fish/guestfish.pod:1229
19568 msgid "/etc/inputrc"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:1231
19573 msgid ""
19574 "If compiled with GNU readline support, then these files can be used to "
19575 "configure readline.  For further information, please see L<readline(3)/"
19576 "INITIALIZATION FILE>."
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:1235
19581 msgid "To write rules which only apply to guestfish, use:"
19582 msgstr ""
19583
19584 #. type: verbatim
19585 #: ../fish/guestfish.pod:1237
19586 #, no-wrap
19587 msgid ""
19588 " $if guestfish\n"
19589 " ...\n"
19590 " $endif\n"
19591 "\n"
19592 msgstr ""
19593
19594 #. type: textblock
19595 #: ../fish/guestfish.pod:1241
19596 msgid ""
19597 "Variables that you can set in inputrc that change the behaviour of guestfish "
19598 "in useful ways include:"
19599 msgstr ""
19600
19601 #. type: =item
19602 #: ../fish/guestfish.pod:1246
19603 msgid "completion-ignore-case (default: on)"
19604 msgstr ""
19605
19606 #. type: textblock
19607 #: ../fish/guestfish.pod:1248
19608 msgid ""
19609 "By default, guestfish will ignore case when tab-completing paths on the "
19610 "disk.  Use:"
19611 msgstr ""
19612
19613 #. type: verbatim
19614 #: ../fish/guestfish.pod:1251
19615 #, no-wrap
19616 msgid ""
19617 " set completion-ignore-case off\n"
19618 "\n"
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../fish/guestfish.pod:1253
19623 msgid "to make guestfish case sensitive."
19624 msgstr ""
19625
19626 #. type: =item
19627 #: ../fish/guestfish.pod:1257
19628 msgid "test1.img"
19629 msgstr ""
19630
19631 #. type: =item
19632 #: ../fish/guestfish.pod:1259
19633 msgid "test2.img (etc)"
19634 msgstr ""
19635
19636 #. type: textblock
19637 #: ../fish/guestfish.pod:1261
19638 msgid ""
19639 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19640 "will be created in the file C<test1.img> in the current directory.  The "
19641 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19642 "the same name will be overwritten."
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fish/guestfish.pod:1270
19647 msgid ""
19648 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19649 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19650 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19651 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19652 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19653 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:1299 ../src/guestfs.pod:3225
19658 #: ../test-tool/libguestfs-test-tool.pod:112
19659 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../fish/virt-copy-in.pod:5
19664 msgid ""
19665 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19666 msgstr ""
19667
19668 #. type: verbatim
19669 #: ../fish/virt-copy-in.pod:9
19670 #, no-wrap
19671 msgid ""
19672 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19673 "\n"
19674 msgstr ""
19675
19676 #. type: verbatim
19677 #: ../fish/virt-copy-in.pod:11
19678 #, no-wrap
19679 msgid ""
19680 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19681 "\n"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/virt-copy-in.pod:15
19686 msgid ""
19687 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19688 "causing disk corruption.  The virtual machine must be shut down before you "
19689 "use this command."
19690 msgstr ""
19691
19692 #. type: textblock
19693 #: ../fish/virt-copy-in.pod:21
19694 msgid ""
19695 "C<virt-copy-in> copies files and directories from the local disk into a "
19696 "virtual machine disk image or named libvirt domain."
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/virt-copy-in.pod:24
19701 msgid ""
19702 "You can give one of more filenames and directories on the command line.  "
19703 "Directories are copied in recursively.  The final parameter must be the "
19704 "destination directory in the disk image which must be an absolute path "
19705 "starting with a C</> character."
19706 msgstr ""
19707
19708 #. type: verbatim
19709 #: ../fish/virt-copy-in.pod:33
19710 #, no-wrap
19711 msgid ""
19712 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19713 "\n"
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19718 msgid "Upload a home directory to a guest:"
19719 msgstr ""
19720
19721 #. type: verbatim
19722 #: ../fish/virt-copy-in.pod:37
19723 #, no-wrap
19724 msgid ""
19725 " virt-copy-in -d MyGuest skel /home\n"
19726 "\n"
19727 msgstr ""
19728
19729 #. type: =head1
19730 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19731 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19732 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/virt-copy-in.pod:41
19737 msgid ""
19738 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19739 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19740 "are probably better off using guestfish directly."
19741 msgstr ""
19742
19743 #. type: textblock
19744 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19745 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19746 msgid ""
19747 "Since the shell script just passes options straight to guestfish, read "
19748 "L<guestfish(1)> to see the full list of options."
19749 msgstr ""
19750
19751 #. type: textblock
19752 #: ../fish/virt-copy-in.pod:52
19753 #, fuzzy
19754 #| msgid ""
19755 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19756 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19757 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19758 #| "libguestfs.org/>."
19759 msgid ""
19760 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19761 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19762 msgstr ""
19763 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19764 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19765 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19766 "org/>."
19767
19768 #. type: textblock
19769 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19770 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19771 #, fuzzy
19772 #| msgid "Copyright (C) 2009 Red Hat Inc."
19773 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19774 msgstr "© Red Hat Inc., 2009"
19775
19776 #. type: textblock
19777 #: ../fish/virt-copy-out.pod:5
19778 msgid ""
19779 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19780 "image."
19781 msgstr ""
19782
19783 #. type: verbatim
19784 #: ../fish/virt-copy-out.pod:9
19785 #, no-wrap
19786 msgid ""
19787 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19788 "\n"
19789 msgstr ""
19790
19791 #. type: verbatim
19792 #: ../fish/virt-copy-out.pod:11
19793 #, no-wrap
19794 msgid ""
19795 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19796 "\n"
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fish/virt-copy-out.pod:15
19801 msgid ""
19802 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19803 "image or named libvirt domain."
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/virt-copy-out.pod:18
19808 msgid ""
19809 "You can give one of more filenames and directories on the command line.  "
19810 "Directories are copied out recursively."
19811 msgstr ""
19812
19813 #. type: textblock
19814 #: ../fish/virt-copy-out.pod:23
19815 msgid "Download the home directories from a virtual machine:"
19816 msgstr ""
19817
19818 #. type: verbatim
19819 #: ../fish/virt-copy-out.pod:25
19820 #, no-wrap
19821 msgid ""
19822 " mkdir homes\n"
19823 " virt-copy-out -d MyGuest /home homes\n"
19824 "\n"
19825 msgstr ""
19826
19827 #. type: textblock
19828 #: ../fish/virt-copy-out.pod:30
19829 msgid ""
19830 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19831 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19832 "are probably better off using guestfish directly."
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../fish/virt-copy-out.pod:41
19837 #, fuzzy
19838 #| msgid ""
19839 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19840 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19841 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19842 #| "libguestfs.org/>."
19843 msgid ""
19844 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19845 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19846 msgstr ""
19847 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19848 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19849 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19850 "org/>."
19851
19852 #. type: textblock
19853 #: ../fish/virt-tar-in.pod:5
19854 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19855 msgstr ""
19856
19857 #. type: verbatim
19858 #: ../fish/virt-tar-in.pod:9
19859 #, no-wrap
19860 msgid ""
19861 " virt-tar-in -a disk.img data.tar /destination\n"
19862 "\n"
19863 msgstr ""
19864
19865 #. type: verbatim
19866 #: ../fish/virt-tar-in.pod:11
19867 #, no-wrap
19868 msgid ""
19869 " virt-tar-in -d domain data.tar /destination\n"
19870 "\n"
19871 msgstr ""
19872
19873 #. type: verbatim
19874 #: ../fish/virt-tar-in.pod:13
19875 #, no-wrap
19876 msgid ""
19877 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19878 "\n"
19879 msgstr ""
19880
19881 #. type: textblock
19882 #: ../fish/virt-tar-in.pod:17
19883 msgid ""
19884 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19885 "causing disk corruption.  The virtual machine must be shut down before you "
19886 "use this command."
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fish/virt-tar-in.pod:23
19891 msgid ""
19892 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19893 "image or named libvirt domain."
19894 msgstr ""
19895
19896 #. type: textblock
19897 #: ../fish/virt-tar-in.pod:26
19898 msgid ""
19899 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19900 "standard input.  The second parameter is the absolute target directory to "
19901 "unpack into."
19902 msgstr ""
19903
19904 #. type: verbatim
19905 #: ../fish/virt-tar-in.pod:34
19906 #, no-wrap
19907 msgid ""
19908 " virt-tar-in -d MyGuest homes.tar /home\n"
19909 "\n"
19910 msgstr ""
19911
19912 #. type: textblock
19913 #: ../fish/virt-tar-in.pod:38
19914 msgid ""
19915 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19916 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19917 "probably better off using guestfish directly."
19918 msgstr ""
19919
19920 #. type: textblock
19921 #: ../fish/virt-tar-in.pod:49
19922 #, fuzzy
19923 #| msgid ""
19924 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19925 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19926 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19927 #| "libguestfs.org/>."
19928 msgid ""
19929 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19930 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19931 "org/>."
19932 msgstr ""
19933 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19934 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19935 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19936 "org/>."
19937
19938 #. type: textblock
19939 #: ../fish/virt-tar-out.pod:5
19940 msgid ""
19941 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19942 msgstr ""
19943
19944 #. type: verbatim
19945 #: ../fish/virt-tar-out.pod:9
19946 #, no-wrap
19947 msgid ""
19948 " virt-tar-out -a disk.img /dir files.tar\n"
19949 "\n"
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../fish/virt-tar-out.pod:11
19954 #, no-wrap
19955 msgid ""
19956 " virt-tar-out -d domain /dir files.tar\n"
19957 "\n"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fish/virt-tar-out.pod:13
19962 #, no-wrap
19963 msgid ""
19964 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: textblock
19969 #: ../fish/virt-tar-out.pod:17
19970 msgid ""
19971 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19972 msgstr ""
19973
19974 #. type: textblock
19975 #: ../fish/virt-tar-out.pod:20
19976 msgid ""
19977 "The first parameter is the absolute path of the virtual machine directory.  "
19978 "The second parameter is the tar file to write.  Use C<-> to write to "
19979 "standard output."
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../fish/virt-tar-out.pod:26
19984 msgid "Download the home directories from a guest:"
19985 msgstr ""
19986
19987 #. type: verbatim
19988 #: ../fish/virt-tar-out.pod:28
19989 #, no-wrap
19990 msgid ""
19991 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19992 "\n"
19993 msgstr ""
19994
19995 #. type: textblock
19996 #: ../fish/virt-tar-out.pod:32
19997 msgid ""
19998 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19999 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20000 "are probably better off using guestfish directly."
20001 msgstr ""
20002
20003 #. type: textblock
20004 #: ../fish/virt-tar-out.pod:43
20005 #, fuzzy
20006 #| msgid ""
20007 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20008 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20009 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20010 #| "libguestfs.org/>."
20011 msgid ""
20012 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20013 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20014 msgstr ""
20015 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20016 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20017 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20018 "org/>."
20019
20020 #. type: textblock
20021 #: ../fuse/guestmount.pod:5
20022 msgid ""
20023 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20024 msgstr ""
20025
20026 #. type: verbatim
20027 #: ../fuse/guestmount.pod:9
20028 #, no-wrap
20029 msgid ""
20030 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: verbatim
20035 #: ../fuse/guestmount.pod:11
20036 #, no-wrap
20037 msgid ""
20038 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20039 "\n"
20040 msgstr ""
20041
20042 #. type: verbatim
20043 #: ../fuse/guestmount.pod:13
20044 #, no-wrap
20045 msgid ""
20046 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20047 "\n"
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../fuse/guestmount.pod:17
20052 msgid ""
20053 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20054 "machines.  If you do this, you risk disk corruption in the VM."
20055 msgstr ""
20056
20057 #. type: textblock
20058 #: ../fuse/guestmount.pod:22
20059 msgid ""
20060 "The guestmount program can be used to mount virtual machine filesystems and "
20061 "other disk images on the host.  It uses libguestfs for access to the guest "
20062 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20063 "a mountable device."
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fuse/guestmount.pod:27
20068 msgid ""
20069 "Along with other options, you have to give at least one device (I<-a> "
20070 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20071 "option) or use the I<-i> inspection option.  How this works is better "
20072 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20073 "below."
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../fuse/guestmount.pod:33
20078 msgid ""
20079 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20080 "by you, and the filesystem will not be visible to any other users unless you "
20081 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20082 "the filesystem, use the C<fusermount -u> command."
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../fuse/guestmount.pod:41
20087 msgid ""
20088 "For a typical Windows guest which has its main filesystem on the first "
20089 "partition:"
20090 msgstr ""
20091
20092 #. type: verbatim
20093 #: ../fuse/guestmount.pod:44
20094 #, no-wrap
20095 msgid ""
20096 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20097 "\n"
20098 msgstr ""
20099
20100 #. type: textblock
20101 #: ../fuse/guestmount.pod:46
20102 msgid ""
20103 "For a typical Linux guest which has a /boot filesystem on the first "
20104 "partition, and the root filesystem on a logical volume:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../fuse/guestmount.pod:49
20109 #, no-wrap
20110 msgid ""
20111 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fuse/guestmount.pod:51
20117 msgid "To get libguestfs to detect guest mountpoints for you:"
20118 msgstr ""
20119
20120 #. type: verbatim
20121 #: ../fuse/guestmount.pod:53
20122 #, no-wrap
20123 msgid ""
20124 " guestmount -a guest.img -i --ro /mnt\n"
20125 "\n"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fuse/guestmount.pod:55
20130 msgid "For a libvirt guest called \"Guest\" you could do:"
20131 msgstr ""
20132
20133 #. type: verbatim
20134 #: ../fuse/guestmount.pod:57
20135 #, no-wrap
20136 msgid ""
20137 " guestmount -d Guest -i --ro /mnt\n"
20138 "\n"
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fuse/guestmount.pod:59
20143 msgid ""
20144 "If you don't know what filesystems are contained in a guest or disk image, "
20145 "use L<virt-filesystems(1)> first:"
20146 msgstr ""
20147
20148 #. type: verbatim
20149 #: ../fuse/guestmount.pod:62
20150 #, no-wrap
20151 msgid ""
20152 " virt-filesystems MyGuest\n"
20153 "\n"
20154 msgstr ""
20155
20156 #. type: textblock
20157 #: ../fuse/guestmount.pod:64
20158 msgid ""
20159 "If you want to trace the libguestfs calls but without excessive debugging "
20160 "information, we recommend:"
20161 msgstr ""
20162
20163 #. type: verbatim
20164 #: ../fuse/guestmount.pod:67
20165 #, no-wrap
20166 msgid ""
20167 " guestmount [...] --trace /mnt\n"
20168 "\n"
20169 msgstr ""
20170
20171 #. type: textblock
20172 #: ../fuse/guestmount.pod:69
20173 msgid "If you want to debug the program, we recommend:"
20174 msgstr ""
20175
20176 #. type: verbatim
20177 #: ../fuse/guestmount.pod:71
20178 #, no-wrap
20179 msgid ""
20180 " guestmount [...] --trace --verbose /mnt\n"
20181 "\n"
20182 msgstr ""
20183
20184 #. type: =head1
20185 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20186 #: ../resize/virt-resize.pod:511
20187 msgid "NOTES"
20188 msgstr "ПРИМІТКИ"
20189
20190 #. type: =head2
20191 #: ../fuse/guestmount.pod:75
20192 msgid "Other users cannot see the filesystem by default"
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fuse/guestmount.pod:77
20197 msgid ""
20198 "If you mount a filesystem as one user (eg. root), then other users will not "
20199 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20200 "option when mounting:"
20201 msgstr ""
20202
20203 #. type: verbatim
20204 #: ../fuse/guestmount.pod:81
20205 #, no-wrap
20206 msgid ""
20207 " sudo guestmount [...] -o allow_other /mnt\n"
20208 "\n"
20209 msgstr ""
20210
20211 #. type: =head2
20212 #: ../fuse/guestmount.pod:83
20213 msgid "Enabling FUSE"
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../fuse/guestmount.pod:85
20218 msgid ""
20219 "On some distros, you may need to add yourself to a special group (eg. "
20220 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
20221 "Debian and derivatives."
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../fuse/guestmount.pod:89
20226 msgid ""
20227 "On other distros, no special group is required.  It is not necessary on "
20228 "Fedora or Red Hat Enterprise Linux."
20229 msgstr ""
20230
20231 #. type: textblock
20232 #: ../fuse/guestmount.pod:100
20233 msgid "Add a block device or virtual machine image."
20234 msgstr ""
20235
20236 #. type: =item
20237 #: ../fuse/guestmount.pod:123
20238 msgid "B<--dir-cache-timeout N>"
20239 msgstr "B<--dir-cache-timeout N>"
20240
20241 #. type: textblock
20242 #: ../fuse/guestmount.pod:125
20243 msgid ""
20244 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20245 "seconds.  The readdir cache [actually, there are several semi-independent "
20246 "caches] is populated after a readdir(2) call with the stat and extended "
20247 "attributes of the files in the directory, in anticipation that they will be "
20248 "requested soon after."
20249 msgstr ""
20250
20251 #. type: textblock
20252 #: ../fuse/guestmount.pod:131
20253 msgid ""
20254 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20255 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20256 "requests, only cache existing ones."
20257 msgstr ""
20258
20259 #. type: textblock
20260 #: ../fuse/guestmount.pod:151
20261 msgid ""
20262 "If you have untrusted raw-format guest disk images, you should use this "
20263 "option to specify the disk format.  This avoids a possible security problem "
20264 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20265 "guestfs_add_drive_opts>."
20266 msgstr ""
20267
20268 #. type: =item
20269 #: ../fuse/guestmount.pod:156
20270 msgid "B<--fuse-help>"
20271 msgstr "B<--fuse-help>"
20272
20273 #. type: textblock
20274 #: ../fuse/guestmount.pod:158
20275 msgid "Display help on special FUSE options (see I<-o> below)."
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fuse/guestmount.pod:162
20280 msgid "Display brief help and exit."
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../fuse/guestmount.pod:186
20285 msgid ""
20286 "Mount the named partition or logical volume on the given mountpoint B<in the "
20287 "guest> (this has nothing to do with mountpoints in the host)."
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../fuse/guestmount.pod:189
20292 msgid ""
20293 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20294 "something on C</>."
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fuse/guestmount.pod:206
20299 msgid ""
20300 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20301 "unmounted.  If you specify this option, then we don't attempt to sync the "
20302 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20303 msgstr ""
20304
20305 #. type: =item
20306 #: ../fuse/guestmount.pod:211
20307 #, fuzzy
20308 #| msgid "B<--partition>"
20309 msgid "B<-o option>"
20310 msgstr "B<--partition>"
20311
20312 #. type: =item
20313 #: ../fuse/guestmount.pod:213
20314 #, fuzzy
20315 #| msgid "B<--partition>"
20316 msgid "B<--option option>"
20317 msgstr "B<--partition>"
20318
20319 #. type: textblock
20320 #: ../fuse/guestmount.pod:215
20321 msgid "Pass extra options to FUSE."
20322 msgstr ""
20323
20324 #. type: textblock
20325 #: ../fuse/guestmount.pod:217
20326 msgid ""
20327 "To get a list of all the extra options supported by FUSE, use the command "
20328 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20329 "of them are a good idea."
20330 msgstr ""
20331
20332 #. type: verbatim
20333 #: ../fuse/guestmount.pod:221
20334 #, no-wrap
20335 msgid ""
20336 " guestmount --fuse-help\n"
20337 "\n"
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../fuse/guestmount.pod:223
20342 msgid "Some potentially useful FUSE options:"
20343 msgstr ""
20344
20345 #. type: =item
20346 #: ../fuse/guestmount.pod:227
20347 msgid "B<-o allow_other>"
20348 msgstr ""
20349
20350 #. type: textblock
20351 #: ../fuse/guestmount.pod:229
20352 msgid "Allow other users to see the filesystem."
20353 msgstr ""
20354
20355 #. type: =item
20356 #: ../fuse/guestmount.pod:231
20357 msgid "B<-o attr_timeout=N>"
20358 msgstr "B<-o attr_timeout=N>"
20359
20360 #. type: textblock
20361 #: ../fuse/guestmount.pod:233
20362 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20363 msgstr ""
20364
20365 #. type: =item
20366 #: ../fuse/guestmount.pod:235
20367 msgid "B<-o kernel_cache>"
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fuse/guestmount.pod:237
20372 msgid ""
20373 "Allow the kernel to cache files (reduces the number of reads that have to go "
20374 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20375 "afford the extra memory usage."
20376 msgstr ""
20377
20378 #. type: =item
20379 #: ../fuse/guestmount.pod:241
20380 msgid "B<-o uid=N> B<-o gid=N>"
20381 msgstr ""
20382
20383 #. type: textblock
20384 #: ../fuse/guestmount.pod:243
20385 msgid ""
20386 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20387 "the chosen values."
20388 msgstr ""
20389
20390 #. type: textblock
20391 #: ../fuse/guestmount.pod:252
20392 msgid ""
20393 "Add devices and mount everything read-only.  Also disallow writes and make "
20394 "the disk appear read-only to FUSE."
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fuse/guestmount.pod:255
20399 msgid ""
20400 "This is highly recommended if you are not going to edit the guest disk.  If "
20401 "the guest is running and this option is I<not> supplied, then there is a "
20402 "strong risk of disk corruption in the guest.  We try to prevent this from "
20403 "happening, but it is not always possible."
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
20408 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../fuse/guestmount.pod:264
20413 msgid "Enable SELinux support for the guest."
20414 msgstr ""
20415
20416 #. type: textblock
20417 #: ../fuse/guestmount.pod:270
20418 msgid "Enable verbose messages from underlying libguestfs."
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../fuse/guestmount.pod:276
20423 msgid "Display the program version and exit."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
20428 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20429 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20430 msgstr ""
20431
20432 #. type: =item
20433 #: ../fuse/guestmount.pod:289
20434 #, fuzzy
20435 #| msgid "B<--ro>"
20436 msgid "B<--trace>"
20437 msgstr "B<--ro>"
20438
20439 #. type: textblock
20440 #: ../fuse/guestmount.pod:291
20441 msgid "Trace libguestfs calls and entry into each FUSE function."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../fuse/guestmount.pod:293
20446 msgid "This also stops the daemon from forking into the background."
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../fuse/guestmount.pod:319
20451 msgid ""
20452 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20453 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20454 "net/>."
20455 msgstr ""
20456
20457 #. type: textblock
20458 #: ../fuse/guestmount.pod:334
20459 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20460 msgstr ""
20461
20462 #. type: textblock
20463 #: ../inspector/virt-inspector.pod:5
20464 msgid ""
20465 "virt-inspector - Display operating system version and other information "
20466 "about a virtual machine"
20467 msgstr ""
20468
20469 #. type: verbatim
20470 #: ../inspector/virt-inspector.pod:9
20471 #, fuzzy, no-wrap
20472 #| msgid ""
20473 #| " virt-list-partitions [--options] domname\n"
20474 #| "\n"
20475 msgid ""
20476 " virt-inspector [--options] -d domname\n"
20477 "\n"
20478 msgstr ""
20479 " virt-list-partitions [--параметри] назва_домену\n"
20480 "\n"
20481
20482 #. type: verbatim
20483 #: ../inspector/virt-inspector.pod:11
20484 #, fuzzy, no-wrap
20485 #| msgid ""
20486 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20487 #| "\n"
20488 msgid ""
20489 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20490 "\n"
20491 msgstr ""
20492 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20493 "\n"
20494
20495 #. type: verbatim
20496 #: ../inspector/virt-inspector.pod:15
20497 #, fuzzy, no-wrap
20498 #| msgid ""
20499 #| " virt-list-partitions [--options] domname\n"
20500 #| "\n"
20501 msgid ""
20502 " virt-inspector domname\n"
20503 "\n"
20504 msgstr ""
20505 " virt-list-partitions [--параметри] назва_домену\n"
20506 "\n"
20507
20508 #. type: verbatim
20509 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20510 #, fuzzy, no-wrap
20511 #| msgid ""
20512 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20513 #| "\n"
20514 msgid ""
20515 " virt-inspector disk.img [disk.img ...]\n"
20516 "\n"
20517 msgstr ""
20518 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20519 "\n"
20520
20521 #. type: textblock
20522 #: ../inspector/virt-inspector.pod:21
20523 msgid ""
20524 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20525 "determine the version of the operating system and other information about "
20526 "the virtual machine."
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../inspector/virt-inspector.pod:25
20531 msgid "Virt-inspector produces XML output for feeding into other programs."
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../inspector/virt-inspector.pod:27
20536 msgid ""
20537 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20538 "the libvirt domain (see: C<virsh list --all>)."
20539 msgstr ""
20540
20541 #. type: textblock
20542 #: ../inspector/virt-inspector.pod:30
20543 msgid ""
20544 "You can also run virt-inspector directly on disk images from a single "
20545 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20546 "has several block devices, in which case you should list several I<-a> "
20547 "options one after another, with the first corresponding to the guest's C</"
20548 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20549 msgstr ""
20550
20551 #. type: textblock
20552 #: ../inspector/virt-inspector.pod:37
20553 msgid ""
20554 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20555 "keys and similar."
20556 msgstr ""
20557
20558 #. type: textblock
20559 #: ../inspector/virt-inspector.pod:40
20560 msgid ""
20561 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20562 "inspect several virtual machines, you have to run virt-inspector several "
20563 "times (for example, from a shell script for-loop)."
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../inspector/virt-inspector.pod:45
20568 msgid ""
20569 "Because virt-inspector needs direct access to guest images, it won't "
20570 "normally work over remote libvirt connections."
20571 msgstr ""
20572
20573 #. type: textblock
20574 #: ../inspector/virt-inspector.pod:48
20575 msgid ""
20576 "All of the information available from virt-inspector is also available "
20577 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20578 "The same information can also be fetched using guestfish or via libguestfs "
20579 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20580 "WITH OTHER PROGRAMMING LANGUAGES>)."
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../inspector/virt-inspector.pod:81
20585 msgid ""
20586 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20587 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20588 "at all."
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../inspector/virt-inspector.pod:94
20593 msgid ""
20594 "When prompting for keys and passphrases, virt-inspector normally turns "
20595 "echoing off so you cannot see what you are typing.  If you are not worried "
20596 "about Tempest attacks and there is no one else in the room you can specify "
20597 "this flag to see what you are typing."
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20602 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20603 #: ../tools/virt-win-reg.pl:144
20604 msgid ""
20605 "Specify the format of disk images given on the command line.  If this is "
20606 "omitted then the format is autodetected from the content of the disk image."
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20611 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20612 #: ../tools/virt-win-reg.pl:148
20613 msgid ""
20614 "If disk images are requested from libvirt, then this program asks libvirt "
20615 "for this information.  In this case, the value of the format parameter is "
20616 "ignored."
20617 msgstr ""
20618
20619 #. type: textblock
20620 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20621 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20622 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20623 #: ../tools/virt-win-reg.pl:152
20624 msgid ""
20625 "If working with untrusted raw-format guest disk images, you should ensure "
20626 "the format is always specified."
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../inspector/virt-inspector.pod:139
20631 msgid "Previous versions of virt-inspector allowed you to write either:"
20632 msgstr ""
20633
20634 #. type: verbatim
20635 #: ../inspector/virt-inspector.pod:145
20636 #, fuzzy, no-wrap
20637 #| msgid ""
20638 #| " inspect-get-hostname root\n"
20639 #| "\n"
20640 msgid ""
20641 " virt-inspector guestname\n"
20642 "\n"
20643 msgstr ""
20644 " inspect-get-hostname корінь\n"
20645 "\n"
20646
20647 #. type: =head1
20648 #: ../inspector/virt-inspector.pod:153
20649 msgid "XML FORMAT"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../inspector/virt-inspector.pod:155
20654 msgid ""
20655 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20656 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20657 "just an overview."
20658 msgstr ""
20659
20660 #. type: textblock
20661 #: ../inspector/virt-inspector.pod:159
20662 msgid ""
20663 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20664 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20665 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20666 "which is vanishingly rare in real world VMs."
20667 msgstr ""
20668
20669 #. type: =head2
20670 #: ../inspector/virt-inspector.pod:164
20671 msgid "E<lt>operatingsystemE<gt>"
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../inspector/virt-inspector.pod:166
20676 msgid ""
20677 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20678 "describe the operating system, its architecture, the descriptive \"product "
20679 "name\" string, the type of OS and so on, as in this example:"
20680 msgstr ""
20681
20682 #. type: verbatim
20683 #: ../inspector/virt-inspector.pod:170
20684 #, no-wrap
20685 msgid ""
20686 " <operatingsystems>\n"
20687 "   <operatingsystem>\n"
20688 "     <root>/dev/sda2</root>\n"
20689 "     <name>windows</name>\n"
20690 "     <arch>i386</arch>\n"
20691 "     <distro>windows</distro>\n"
20692 "     <product_name>Windows 7 Enterprise</product_name>\n"
20693 "     <product_variant>Client</product_variant>\n"
20694 "     <major_version>6</major_version>\n"
20695 "     <minor_version>1</minor_version>\n"
20696 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20697 "     <format>installed</format>\n"
20698 "\n"
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../inspector/virt-inspector.pod:183
20703 msgid ""
20704 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20705 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20706 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20707 "architecture.  The other fields are fairly self-explanatory, but because "
20708 "these fields are taken directly from the libguestfs inspection API you can "
20709 "find precise information from L<guestfs(3)/INSPECTION>."
20710 msgstr ""
20711
20712 #. type: textblock
20713 #: ../inspector/virt-inspector.pod:191
20714 msgid ""
20715 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20716 "of view of libguestfs (block devices may have completely different names "
20717 "inside the VM itself)."
20718 msgstr ""
20719
20720 #. type: =head2
20721 #: ../inspector/virt-inspector.pod:195
20722 #, fuzzy
20723 #| msgid "mountpoints"
20724 msgid "E<lt>mountpointsE<gt>"
20725 msgstr "mountpoints"
20726
20727 #. type: textblock
20728 #: ../inspector/virt-inspector.pod:197
20729 msgid ""
20730 "Un*x-like guests typically have multiple filesystems which are mounted at "
20731 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20732 "element which looks like this:"
20733 msgstr ""
20734
20735 #. type: verbatim
20736 #: ../inspector/virt-inspector.pod:201
20737 #, no-wrap
20738 msgid ""
20739 " <operatingsystems>\n"
20740 "   <operatingsystem>\n"
20741 "     ...\n"
20742 "     <mountpoints>\n"
20743 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20744 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20745 "     </mountpoints>\n"
20746 "\n"
20747 msgstr ""
20748
20749 #. type: textblock
20750 #: ../inspector/virt-inspector.pod:209
20751 msgid ""
20752 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20753 "and may have completely different names inside the guest.  Only mountable "
20754 "filesystems appear in this list, not things like swap devices."
20755 msgstr ""
20756
20757 #. type: =head2
20758 #: ../inspector/virt-inspector.pod:214
20759 #, fuzzy
20760 #| msgid "list-filesystems"
20761 msgid "E<lt>filesystemsE<gt>"
20762 msgstr "list-filesystems"
20763
20764 #. type: textblock
20765 #: ../inspector/virt-inspector.pod:216
20766 msgid ""
20767 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20768 "filesystems belonging to the guest, including swap and empty partitions.  "
20769 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20770 "this OS or shared with this OS and other OSes)."
20771 msgstr ""
20772
20773 #. type: textblock
20774 #: ../inspector/virt-inspector.pod:222
20775 msgid "You might see something like this:"
20776 msgstr ""
20777
20778 #. type: verbatim
20779 #: ../inspector/virt-inspector.pod:224
20780 #, no-wrap
20781 msgid ""
20782 " <operatingsystems>\n"
20783 "   <operatingsystem>\n"
20784 "     ...\n"
20785 "     <filesystems>\n"
20786 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20787 "         <type>ext4</type>\n"
20788 "         <label>Fedora-13-x86_64</label>\n"
20789 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20790 "       </filesystem>\n"
20791 "\n"
20792 msgstr ""
20793
20794 #. type: textblock
20795 #: ../inspector/virt-inspector.pod:234
20796 msgid ""
20797 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20798 "the label, and the UUID."
20799 msgstr ""
20800
20801 #. type: =head2
20802 #: ../inspector/virt-inspector.pod:237
20803 msgid "E<lt>applicationsE<gt>"
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../inspector/virt-inspector.pod:239
20808 msgid ""
20809 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20810 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20811 "machine."
20812 msgstr ""
20813
20814 #. type: textblock
20815 #: ../inspector/virt-inspector.pod:243
20816 msgid ""
20817 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20818 "Typical values would be C<rpm> and C<deb>."
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../inspector/virt-inspector.pod:246
20823 msgid ""
20824 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20825 "Typical values include C<yum>, C<up2date> and C<apt>"
20826 msgstr ""
20827
20828 #. type: textblock
20829 #: ../inspector/virt-inspector.pod:249
20830 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20831 msgstr ""
20832
20833 #. type: verbatim
20834 #: ../inspector/virt-inspector.pod:252
20835 #, no-wrap
20836 msgid ""
20837 " <operatingsystems>\n"
20838 "   <operatingsystem>\n"
20839 "     ...\n"
20840 "     <applications>\n"
20841 "       <application>\n"
20842 "         <name>coreutils</name>\n"
20843 "         <version>8.5</version>\n"
20844 "         <release>1</release>\n"
20845 "       </application>\n"
20846 "\n"
20847 msgstr ""
20848
20849 #. type: textblock
20850 #: ../inspector/virt-inspector.pod:262
20851 msgid ""
20852 "The version and release fields may not be available for some types guests.  "
20853 "Other fields are possible, see L<guestfs(3)/"
20854 "guestfs_inspect_list_applications>."
20855 msgstr ""
20856
20857 #. type: =head2
20858 #: ../inspector/virt-inspector.pod:266
20859 msgid "E<lt>drive_mappingsE<gt>"
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../inspector/virt-inspector.pod:268
20864 msgid ""
20865 "For operating systems like Windows which use drive letters, virt-inspector "
20866 "is able to find out how drive letters map to filesystems."
20867 msgstr ""
20868
20869 #. type: verbatim
20870 #: ../inspector/virt-inspector.pod:272
20871 #, no-wrap
20872 msgid ""
20873 " <operatingsystems>\n"
20874 "   <operatingsystem>\n"
20875 "     ...\n"
20876 "     <drive_mappings>\n"
20877 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20878 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20879 "     </drive_mappings>\n"
20880 "\n"
20881 msgstr ""
20882
20883 #. type: textblock
20884 #: ../inspector/virt-inspector.pod:280
20885 msgid ""
20886 "In the example above, drive C maps to the filesystem on the second partition "
20887 "on the first disk, and drive E maps to the filesystem on the first partition "
20888 "on the second disk."
20889 msgstr ""
20890
20891 #. type: textblock
20892 #: ../inspector/virt-inspector.pod:284
20893 msgid ""
20894 "Note that this only covers permanent local filesystem mappings, not things "
20895 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20896 "here."
20897 msgstr ""
20898
20899 #. type: =head2
20900 #: ../inspector/virt-inspector.pod:288
20901 #, fuzzy
20902 #| msgid "B<-s E<lt>NE<gt>>"
20903 msgid "E<lt>iconE<gt>"
20904 msgstr "B<-s E<lt>NE<gt>>"
20905
20906 #. type: textblock
20907 #: ../inspector/virt-inspector.pod:290
20908 msgid ""
20909 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20910 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20911 "very large and high quality."
20912 msgstr ""
20913
20914 #. type: verbatim
20915 #: ../inspector/virt-inspector.pod:294
20916 #, no-wrap
20917 msgid ""
20918 " <operatingsystems>\n"
20919 "   <operatingsystem>\n"
20920 "     ...\n"
20921 "     <icon>\n"
20922 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20923 "       [... many lines of base64 data ...]\n"
20924 "     </icon>\n"
20925 "\n"
20926 msgstr ""
20927
20928 #. type: textblock
20929 #: ../inspector/virt-inspector.pod:302
20930 msgid ""
20931 "To display the icon, you have to extract it and convert the base64 data back "
20932 "to a binary file.  Use an XPath query or simply an editor to extract the "
20933 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20934 "to a PNG file:"
20935 msgstr ""
20936
20937 #. type: verbatim
20938 #: ../inspector/virt-inspector.pod:307
20939 #, no-wrap
20940 msgid ""
20941 " base64 -i -d < icon.data > icon.png\n"
20942 "\n"
20943 msgstr ""
20944
20945 #. type: =head2
20946 #: ../inspector/virt-inspector.pod:309
20947 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../inspector/virt-inspector.pod:311
20952 msgid ""
20953 "Virt-inspector can detect some operating system installers on install disks, "
20954 "live CDs, bootable USB keys and more."
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../inspector/virt-inspector.pod:314
20959 msgid ""
20960 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20961 "fields may be present to indicate a live CD, network installer, or one part "
20962 "of a multipart CD.  For example:"
20963 msgstr ""
20964
20965 #. type: verbatim
20966 #: ../inspector/virt-inspector.pod:318
20967 #, no-wrap
20968 msgid ""
20969 " <operatingsystems>\n"
20970 "   <operatingsystem>\n"
20971 "     <root>/dev/sda</root>\n"
20972 "     <name>linux</name>\n"
20973 "     <arch>i386</arch>\n"
20974 "     <distro>ubuntu</distro>\n"
20975 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20976 "     <major_version>10</major_version>\n"
20977 "     <minor_version>10</minor_version>\n"
20978 "     <format>installer</format>\n"
20979 "     <live/>\n"
20980 "\n"
20981 msgstr ""
20982
20983 #. type: =head1
20984 #: ../inspector/virt-inspector.pod:330
20985 msgid "USING XPATH"
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../inspector/virt-inspector.pod:332
20990 msgid ""
20991 "You can use the XPath query language to select parts of the XML.  We "
20992 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20993 msgstr ""
20994
20995 #. type: verbatim
20996 #: ../inspector/virt-inspector.pod:338
20997 #, no-wrap
20998 msgid ""
20999 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21000 " <filesystems>\n"
21001 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21002 "        <type>ext4</type>\n"
21003 " [...]\n"
21004 "\n"
21005 msgstr ""
21006
21007 #. type: verbatim
21008 #: ../inspector/virt-inspector.pod:344
21009 #, no-wrap
21010 msgid ""
21011 " $ virt-inspector -d Guest | \\\n"
21012 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21013 " ext4\n"
21014 "\n"
21015 msgstr ""
21016
21017 #. type: verbatim
21018 #: ../inspector/virt-inspector.pod:348
21019 #, no-wrap
21020 msgid ""
21021 " $ virt-inspector -d Guest | \\\n"
21022 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21023 " [displays the guest icon, if there is one]\n"
21024 "\n"
21025 msgstr ""
21026
21027 #. type: =head1
21028 #: ../inspector/virt-inspector.pod:359
21029 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21030 msgstr ""
21031
21032 #. type: textblock
21033 #: ../inspector/virt-inspector.pod:361
21034 msgid ""
21035 "Early versions of libguestfs shipped with a different virt-inspector program "
21036 "written in Perl (the current version is written in C).  The XML output of "
21037 "the Perl virt-inspector was different and it could also output in other "
21038 "formats like text."
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../inspector/virt-inspector.pod:366
21043 msgid ""
21044 "The old virt-inspector is no longer supported or shipped with libguestfs."
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../inspector/virt-inspector.pod:369
21049 msgid ""
21050 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21051 "versions of virt-inspector with different names:"
21052 msgstr ""
21053
21054 #. type: verbatim
21055 #: ../inspector/virt-inspector.pod:372
21056 #, no-wrap
21057 msgid ""
21058 " virt-inspector     Old Perl version.\n"
21059 " virt-inspector2    New C version.\n"
21060 "\n"
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../inspector/virt-inspector.pod:382
21065 #, fuzzy
21066 #| msgid ""
21067 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21068 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21069 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21070 msgid ""
21071 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21072 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21073 msgstr ""
21074 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21075 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21076 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21077
21078 #. type: textblock
21079 #: ../inspector/virt-inspector.pod:399
21080 msgid "Matthew Booth L<mbooth@redhat.com>"
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../java/examples/guestfs-java.pod:5
21085 msgid "guestfs-java - How to use libguestfs from Java"
21086 msgstr ""
21087
21088 #. type: verbatim
21089 #: ../java/examples/guestfs-java.pod:9
21090 #, no-wrap
21091 msgid ""
21092 " import com.redhat.et.libguestfs.*;\n"
21093 " \n"
21094 msgstr ""
21095
21096 #. type: verbatim
21097 #: ../java/examples/guestfs-java.pod:11
21098 #, no-wrap
21099 msgid ""
21100 " GuestFS g = new GuestFS ();\n"
21101 " g.add_drive_opts (\"disk.img\", null);\n"
21102 " g.launch ();\n"
21103 "\n"
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../java/examples/guestfs-java.pod:17
21108 msgid ""
21109 "This manual page documents how to call libguestfs from the Java programming "
21110 "language.  This page just documents the differences from the C API and gives "
21111 "some examples.  If you are not familiar with using libguestfs, you also need "
21112 "to read L<guestfs(3)>."
21113 msgstr ""
21114
21115 #. type: =head2
21116 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21117 msgid "CLOSING THE HANDLE"
21118 msgstr ""
21119
21120 #. type: textblock
21121 #: ../java/examples/guestfs-java.pod:24
21122 msgid ""
21123 "The handle is closed when it is reaped by the garbage collector.  Because "
21124 "libguestfs handles include a lot of state, it is also possible to close (and "
21125 "hence free) them explicitly by calling the C<close> method."
21126 msgstr ""
21127
21128 #. type: =head2
21129 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21130 #: ../python/examples/guestfs-python.pod:21
21131 #: ../ruby/examples/guestfs-ruby.pod:22
21132 #, fuzzy
21133 #| msgid "OPTIONS"
21134 msgid "EXCEPTIONS"
21135 msgstr "ПАРАМЕТРИ"
21136
21137 #. type: textblock
21138 #: ../java/examples/guestfs-java.pod:31
21139 msgid ""
21140 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21141 "exception.  This has a single parameter which is the error message (a "
21142 "C<String>)."
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../java/examples/guestfs-java.pod:35
21147 msgid "Calling any method on a closed handle raises the same exception."
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../java/examples/guestfs-java.pod:47
21152 #, fuzzy
21153 #| msgid ""
21154 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21155 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21156 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21157 msgid ""
21158 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21159 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21160 "libguestfs.org/>, L<http://caml.inria.fr/>."
21161 msgstr ""
21162 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21163 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21164 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21165
21166 #. type: textblock
21167 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21168 #, fuzzy
21169 #| msgid "Copyright (C) 2009 Red Hat Inc."
21170 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21171 msgstr "© Red Hat Inc., 2009"
21172
21173 #. type: textblock
21174 #: ../ocaml/examples/guestfs-ocaml.pod:5
21175 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../ocaml/examples/guestfs-ocaml.pod:9
21180 msgid "Module style:"
21181 msgstr ""
21182
21183 #. type: verbatim
21184 #: ../ocaml/examples/guestfs-ocaml.pod:11
21185 #, no-wrap
21186 msgid ""
21187 " let g = Guestfs.create () in\n"
21188 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21189 " Guestfs.launch g;\n"
21190 "\n"
21191 msgstr ""
21192
21193 #. type: textblock
21194 #: ../ocaml/examples/guestfs-ocaml.pod:15
21195 msgid "Object-oriented style:"
21196 msgstr ""
21197
21198 #. type: verbatim
21199 #: ../ocaml/examples/guestfs-ocaml.pod:17
21200 #, no-wrap
21201 msgid ""
21202 " let g = new Guestfs.guestfs () in\n"
21203 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21204 " g#launch ();\n"
21205 "\n"
21206 msgstr ""
21207
21208 #. type: verbatim
21209 #: ../ocaml/examples/guestfs-ocaml.pod:21
21210 #, no-wrap
21211 msgid ""
21212 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21213 "or:\n"
21214 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21215 "\n"
21216 msgstr ""
21217
21218 #. type: textblock
21219 #: ../ocaml/examples/guestfs-ocaml.pod:27
21220 msgid ""
21221 "This manual page documents how to call libguestfs from the OCaml programming "
21222 "language.  This page just documents the differences from the C API and gives "
21223 "some examples.  If you are not familiar with using libguestfs, you also need "
21224 "to read L<guestfs(3)>."
21225 msgstr ""
21226
21227 #. type: =head2
21228 #: ../ocaml/examples/guestfs-ocaml.pod:32
21229 msgid "PROGRAMMING STYLES"
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../ocaml/examples/guestfs-ocaml.pod:34
21234 msgid ""
21235 "There are two different programming styles supported by the OCaml bindings.  "
21236 "You can use a module style, with each C function mapped to an OCaml function:"
21237 msgstr ""
21238
21239 #. type: verbatim
21240 #: ../ocaml/examples/guestfs-ocaml.pod:38
21241 #, fuzzy, no-wrap
21242 #| msgid ""
21243 #| " int guestfs_last_errno (guestfs_h *g);\n"
21244 #| "\n"
21245 msgid ""
21246 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21247 "\n"
21248 msgstr ""
21249 " int guestfs_last_errno (guestfs_h *g);\n"
21250 "\n"
21251
21252 #. type: textblock
21253 #: ../ocaml/examples/guestfs-ocaml.pod:40
21254 msgid "becomes:"
21255 msgstr ""
21256
21257 #. type: verbatim
21258 #: ../ocaml/examples/guestfs-ocaml.pod:42
21259 #, no-wrap
21260 msgid ""
21261 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21262 "\n"
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../ocaml/examples/guestfs-ocaml.pod:44
21267 msgid ""
21268 "Alternately you can use an object-oriented style, calling methods on the "
21269 "class C<Guestfs.guestfs>:"
21270 msgstr ""
21271
21272 #. type: verbatim
21273 #: ../ocaml/examples/guestfs-ocaml.pod:47
21274 #, no-wrap
21275 msgid ""
21276 " method set_verbose : bool -> unit\n"
21277 "\n"
21278 msgstr ""
21279
21280 #. type: textblock
21281 #: ../ocaml/examples/guestfs-ocaml.pod:49
21282 msgid ""
21283 "The object-oriented style is usually briefer, and the minor performance "
21284 "penalty isn't noticable in the general overhead of performing libguestfs "
21285 "functions."
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../ocaml/examples/guestfs-ocaml.pod:55
21290 msgid ""
21291 "The handle is closed when it is reaped by the garbage collector.  Because "
21292 "libguestfs handles include a lot of state, it is also possible to close (and "
21293 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21294 "method."
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../ocaml/examples/guestfs-ocaml.pod:62
21299 msgid ""
21300 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21301 "exception.  This has a single parameter which is the error message (a "
21302 "string)."
21303 msgstr ""
21304
21305 #. type: textblock
21306 #: ../ocaml/examples/guestfs-ocaml.pod:66
21307 msgid ""
21308 "Calling any function/method on a closed handle raises C<Guestfs."
21309 "Handle_closed>.  The single parameter is the name of the function that you "
21310 "called."
21311 msgstr ""
21312
21313 #. type: textblock
21314 #: ../ocaml/examples/guestfs-ocaml.pod:80
21315 #, fuzzy
21316 #| msgid ""
21317 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21318 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21319 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21320 msgid ""
21321 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21322 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21323 "libguestfs.org/>, L<http://caml.inria.fr/>."
21324 msgstr ""
21325 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21326 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21327 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21328
21329 #. type: textblock
21330 #: ../perl/examples/guestfs-perl.pod:5
21331 msgid "guestfs-perl - How to use libguestfs from Perl"
21332 msgstr ""
21333
21334 #. type: verbatim
21335 #: ../perl/examples/guestfs-perl.pod:9
21336 #, no-wrap
21337 msgid ""
21338 " use Sys::Guestfs;\n"
21339 " \n"
21340 msgstr ""
21341
21342 #. type: verbatim
21343 #: ../perl/examples/guestfs-perl.pod:11
21344 #, no-wrap
21345 msgid ""
21346 " my $h = Sys::Guestfs->new ();\n"
21347 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21348 " $h->launch ();\n"
21349 " $h->mount_options ('', '/dev/sda1', '/');\n"
21350 " $h->touch ('/hello');\n"
21351 " $h->sync ();\n"
21352 "\n"
21353 msgstr ""
21354
21355 #. type: textblock
21356 #: ../perl/examples/guestfs-perl.pod:20
21357 msgid ""
21358 "This manual page documents how to call libguestfs from the Perl programming "
21359 "language.  This page just documents the differences from the C API and gives "
21360 "some examples.  If you are not familiar with using libguestfs, you also need "
21361 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21362 msgstr ""
21363
21364 #. type: =head2
21365 #: ../perl/examples/guestfs-perl.pod:26
21366 msgid "ERRORS"
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../perl/examples/guestfs-perl.pod:28
21371 msgid ""
21372 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21373 ">)."
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../perl/examples/guestfs-perl.pod:41
21378 #, fuzzy
21379 #| msgid ""
21380 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21381 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21382 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21383 msgid ""
21384 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21385 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21386 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21387 msgstr ""
21388 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21389 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21390 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21391
21392 #. type: textblock
21393 #: ../python/examples/guestfs-python.pod:5
21394 msgid "guestfs-python - How to use libguestfs from Python"
21395 msgstr ""
21396
21397 #. type: verbatim
21398 #: ../python/examples/guestfs-python.pod:9
21399 #, no-wrap
21400 msgid ""
21401 " import guestfs\n"
21402 " g = guestfs.GuestFS ()\n"
21403 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21404 " g.launch\n"
21405 "\n"
21406 msgstr ""
21407
21408 #. type: textblock
21409 #: ../python/examples/guestfs-python.pod:16
21410 msgid ""
21411 "This manual page documents how to call libguestfs from the Python "
21412 "programming language.  This page just documents the differences from the C "
21413 "API and gives some examples.  If you are not familiar with using libguestfs, "
21414 "you also need to read L<guestfs(3)>."
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../python/examples/guestfs-python.pod:23
21419 msgid ""
21420 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21421 "single string argument which is the error message."
21422 msgstr ""
21423
21424 #. type: =head2
21425 #: ../python/examples/guestfs-python.pod:26
21426 msgid "MORE DOCUMENTATION"
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../python/examples/guestfs-python.pod:28
21431 msgid "Type:"
21432 msgstr ""
21433
21434 #. type: verbatim
21435 #: ../python/examples/guestfs-python.pod:30
21436 #, no-wrap
21437 msgid ""
21438 " $ python\n"
21439 " >>> import guestfs\n"
21440 " >>> help (guestfs)\n"
21441 "\n"
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../python/examples/guestfs-python.pod:44
21446 #, fuzzy
21447 #| msgid ""
21448 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21449 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21450 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21451 msgid ""
21452 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21453 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21454 "libguestfs.org/>."
21455 msgstr ""
21456 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21457 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21458 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21459
21460 #. type: textblock
21461 #: ../rescue/virt-rescue.pod:5
21462 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21463 msgstr ""
21464
21465 #. type: verbatim
21466 #: ../rescue/virt-rescue.pod:9
21467 #, fuzzy, no-wrap
21468 #| msgid ""
21469 #| " virt-list-partitions [--options] domname\n"
21470 #| "\n"
21471 msgid ""
21472 " virt-rescue [--options] -d domname\n"
21473 "\n"
21474 msgstr ""
21475 " virt-list-partitions [--параметри] назва_домену\n"
21476 "\n"
21477
21478 #. type: verbatim
21479 #: ../rescue/virt-rescue.pod:11
21480 #, fuzzy, no-wrap
21481 #| msgid ""
21482 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21483 #| "\n"
21484 msgid ""
21485 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21486 "\n"
21487 msgstr ""
21488 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21489 "\n"
21490
21491 #. type: verbatim
21492 #: ../rescue/virt-rescue.pod:15
21493 #, fuzzy, no-wrap
21494 #| msgid ""
21495 #| " virt-list-partitions [--options] domname\n"
21496 #| "\n"
21497 msgid ""
21498 " virt-rescue [--options] domname\n"
21499 "\n"
21500 msgstr ""
21501 " virt-list-partitions [--параметри] назва_домену\n"
21502 "\n"
21503
21504 #. type: verbatim
21505 #: ../rescue/virt-rescue.pod:17
21506 #, fuzzy, no-wrap
21507 #| msgid ""
21508 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21509 #| "\n"
21510 msgid ""
21511 " virt-rescue [--options] disk.img [disk.img ...]\n"
21512 "\n"
21513 msgstr ""
21514 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21515 "\n"
21516
21517 #. type: textblock
21518 #: ../rescue/virt-rescue.pod:21
21519 msgid ""
21520 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21521 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21522 "you from doing this, but doesn't catch all cases."
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../rescue/virt-rescue.pod:25
21527 msgid ""
21528 "However if you use the I<--ro> (read only) option, then you can attach a "
21529 "shell to a live virtual machine.  The results might be strange or "
21530 "inconsistent at times but you won't get disk corruption."
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../rescue/virt-rescue.pod:31
21535 msgid ""
21536 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21537 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21538 "recovery tools which you can use to examine or rescue a virtual machine or "
21539 "disk image."
21540 msgstr ""
21541
21542 #. type: textblock
21543 #: ../rescue/virt-rescue.pod:36
21544 msgid ""
21545 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21546 "on disk image(s):"
21547 msgstr ""
21548
21549 #. type: verbatim
21550 #: ../rescue/virt-rescue.pod:39
21551 #, no-wrap
21552 msgid ""
21553 " virt-rescue -d GuestName\n"
21554 "\n"
21555 msgstr ""
21556
21557 #. type: verbatim
21558 #: ../rescue/virt-rescue.pod:41
21559 #, no-wrap
21560 msgid ""
21561 " virt-rescue --ro -a /path/to/disk.img\n"
21562 "\n"
21563 msgstr ""
21564
21565 #. type: verbatim
21566 #: ../rescue/virt-rescue.pod:43
21567 #, no-wrap
21568 msgid ""
21569 " virt-rescue -a /dev/sdc\n"
21570 "\n"
21571 msgstr ""
21572
21573 #. type: textblock
21574 #: ../rescue/virt-rescue.pod:45
21575 msgid "For live VMs you I<must> use the --ro option."
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../rescue/virt-rescue.pod:47
21580 msgid ""
21581 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21582 "in an interactive bash shell where you can use many ordinary Linux "
21583 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21584 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21585 "is an empty directory called C</sysroot> where you can mount filesystems."
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../rescue/virt-rescue.pod:54
21590 msgid ""
21591 "In the example below, we list logical volumes, then choose one to mount "
21592 "under C</sysroot>:"
21593 msgstr ""
21594
21595 #. type: verbatim
21596 #: ../rescue/virt-rescue.pod:57
21597 #, no-wrap
21598 msgid ""
21599 " ><rescue> lvs\n"
21600 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21601 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21602 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21603 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21604 " ><rescue> ls /sysroot\n"
21605 "\n"
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../rescue/virt-rescue.pod:64
21610 msgid ""
21611 "If you don't know what filesystems are available on the virtual machine then "
21612 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21613 msgstr ""
21614
21615 #. type: textblock
21616 #: ../rescue/virt-rescue.pod:70
21617 msgid ""
21618 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21619 "virtual machine.  For example you can use it on a blank file if you want to "
21620 "partition that file (although we would recommend using L<guestfish(1)> "
21621 "instead as it is more suitable for this purpose).  You can even use virt-"
21622 "rescue on things like SD cards."
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../rescue/virt-rescue.pod:76
21627 msgid ""
21628 "Virt-rescue does not require root.  You only need to run it as root if you "
21629 "need root to open the disk image."
21630 msgstr ""
21631
21632 #. type: textblock
21633 #: ../rescue/virt-rescue.pod:79
21634 msgid ""
21635 "This tool is just designed for quick interactive hacking on a virtual "
21636 "machine.  For more structured access to a virtual machine disk image, you "
21637 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21638 "make scripted changes to guests, use L<guestfish(1)>."
21639 msgstr ""
21640
21641 #. type: =item
21642 #: ../rescue/virt-rescue.pod:103
21643 msgid "B<--append kernelopts>"
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../rescue/virt-rescue.pod:105
21648 msgid "Pass additional options to the rescue kernel."
21649 msgstr ""
21650
21651 #. type: verbatim
21652 #: ../rescue/virt-rescue.pod:135
21653 #, fuzzy, no-wrap
21654 #| msgid ""
21655 #| " guestfish --format=raw -a disk.img\n"
21656 #| "\n"
21657 msgid ""
21658 " virt-rescue --format=raw -a disk.img\n"
21659 "\n"
21660 msgstr ""
21661 " guestfish --format=raw -a disk.img\n"
21662 "\n"
21663
21664 #. type: verbatim
21665 #: ../rescue/virt-rescue.pod:139
21666 #, fuzzy, no-wrap
21667 #| msgid ""
21668 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21669 #| "\n"
21670 msgid ""
21671 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21672 "\n"
21673 msgstr ""
21674 " guestfish --format=raw -a disk.img --format -a another.img\n"
21675 "\n"
21676
21677 #. type: =item
21678 #: ../rescue/virt-rescue.pod:148
21679 msgid "B<-m MB>"
21680 msgstr ""
21681
21682 #. type: =item
21683 #: ../rescue/virt-rescue.pod:150
21684 #, fuzzy
21685 #| msgid "B<--merge>"
21686 msgid "B<--memsize MB>"
21687 msgstr "B<--merge>"
21688
21689 #. type: textblock
21690 #: ../rescue/virt-rescue.pod:152
21691 msgid ""
21692 "Change the amount of memory allocated to the rescue system.  The default is "
21693 "set by libguestfs and is small but adequate for running system tools.  The "
21694 "occasional program might need more memory.  The parameter is specified in "
21695 "megabytes."
21696 msgstr ""
21697
21698 #. type: =item
21699 #: ../rescue/virt-rescue.pod:157
21700 #, fuzzy
21701 #| msgid "B<--inspector>"
21702 msgid "B<--network>"
21703 msgstr "B<--inspector>"
21704
21705 #. type: textblock
21706 #: ../rescue/virt-rescue.pod:159
21707 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../rescue/virt-rescue.pod:165
21712 msgid "Open the image read-only."
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../rescue/virt-rescue.pod:175
21717 msgid ""
21718 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21719 "SELINUX> before using this option."
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../rescue/virt-rescue.pod:194
21724 msgid ""
21725 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21726 "are done read-write."
21727 msgstr ""
21728
21729 #. type: textblock
21730 #: ../rescue/virt-rescue.pod:207
21731 msgid "Previous versions of virt-rescue allowed you to write either:"
21732 msgstr ""
21733
21734 #. type: verbatim
21735 #: ../rescue/virt-rescue.pod:209
21736 #, fuzzy, no-wrap
21737 #| msgid ""
21738 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21739 #| "\n"
21740 msgid ""
21741 " virt-rescue disk.img [disk.img ...]\n"
21742 "\n"
21743 msgstr ""
21744 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21745 "\n"
21746
21747 #. type: verbatim
21748 #: ../rescue/virt-rescue.pod:213
21749 #, fuzzy, no-wrap
21750 #| msgid ""
21751 #| " file-architecture filename\n"
21752 #| "\n"
21753 msgid ""
21754 " virt-rescue guestname\n"
21755 "\n"
21756 msgstr ""
21757 " file-architecture назва_файла\n"
21758 "\n"
21759
21760 #. type: =head1
21761 #: ../rescue/virt-rescue.pod:221
21762 msgid "NETWORK"
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../rescue/virt-rescue.pod:223
21767 msgid ""
21768 "Adding the I<--network> option enables QEMU user networking in the rescue "
21769 "appliance.  There are some differences between user networking and ordinary "
21770 "networking:"
21771 msgstr ""
21772
21773 #. type: =item
21774 #: ../rescue/virt-rescue.pod:229
21775 msgid "ping does not work"
21776 msgstr ""
21777
21778 #. type: textblock
21779 #: ../rescue/virt-rescue.pod:231
21780 msgid ""
21781 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21782 "send the ping packets, and because virt-rescue must be able to run as non-"
21783 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21784 "The ping command will appear to resolve addresses but will not be able to "
21785 "send or receive any packets.  This does not mean that the network is not "
21786 "working."
21787 msgstr ""
21788
21789 #. type: =item
21790 #: ../rescue/virt-rescue.pod:238
21791 msgid "cannot receive connections"
21792 msgstr ""
21793
21794 #. type: textblock
21795 #: ../rescue/virt-rescue.pod:240
21796 msgid "QEMU user networking cannot receive incoming connections."
21797 msgstr ""
21798
21799 #. type: =item
21800 #: ../rescue/virt-rescue.pod:242
21801 msgid "making TCP connections"
21802 msgstr ""
21803
21804 #. type: textblock
21805 #: ../rescue/virt-rescue.pod:244
21806 msgid ""
21807 "The virt-rescue appliance needs to be small and so does not include many "
21808 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21809 "make TCP connections from the shell using the magical C</dev/tcp/"
21810 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21811 msgstr ""
21812
21813 #. type: verbatim
21814 #: ../rescue/virt-rescue.pod:249
21815 #, no-wrap
21816 msgid ""
21817 " exec 3<>/dev/tcp/redhat.com/80\n"
21818 " echo \"GET /\" >&3\n"
21819 " cat <&3\n"
21820 "\n"
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../rescue/virt-rescue.pod:253
21825 msgid "See L<bash(1)> for more details."
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../rescue/virt-rescue.pod:259
21830 msgid ""
21831 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21832 "ENVIRONMENT VARIABLES> for the complete list."
21833 msgstr ""
21834
21835 #. type: textblock
21836 #: ../rescue/virt-rescue.pod:286
21837 #, fuzzy
21838 #| msgid ""
21839 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21840 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21841 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21842 msgid ""
21843 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21844 "libguestfs.org/>."
21845 msgstr ""
21846 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21847 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21848 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21849
21850 #. type: textblock
21851 #: ../resize/virt-resize.pod:5
21852 msgid "virt-resize - Resize a virtual machine disk"
21853 msgstr ""
21854
21855 #. type: verbatim
21856 #: ../resize/virt-resize.pod:9
21857 #, no-wrap
21858 msgid ""
21859 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21860 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21861 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21862 "\n"
21863 msgstr ""
21864
21865 #. type: textblock
21866 #: ../resize/virt-resize.pod:15
21867 msgid ""
21868 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21869 "larger or smaller overall, and resizing or deleting any partitions contained "
21870 "within."
21871 msgstr ""
21872
21873 #. type: textblock
21874 #: ../resize/virt-resize.pod:19
21875 msgid ""
21876 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21877 "not> be used on live virtual machines - for consistent results, shut the "
21878 "virtual machine down before resizing it."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../resize/virt-resize.pod:23
21883 msgid ""
21884 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21885 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21886 msgstr ""
21887
21888 #. type: =item
21889 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1280
21890 #: ../src/guestfs.pod:1418 ../src/guestfs.pod:2581
21891 msgid "1."
21892 msgstr "1."
21893
21894 #. type: textblock
21895 #: ../resize/virt-resize.pod:33
21896 msgid ""
21897 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21898 "fill the extra 5GB of space."
21899 msgstr ""
21900
21901 #. type: verbatim
21902 #: ../resize/virt-resize.pod:36
21903 #, no-wrap
21904 msgid ""
21905 " virt-filesystems --long -h --all -a olddisk\n"
21906 " \n"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../resize/virt-resize.pod:38
21911 #, no-wrap
21912 msgid ""
21913 " truncate -r olddisk newdisk\n"
21914 " truncate -s +5G newdisk\n"
21915 " \n"
21916 msgstr ""
21917
21918 #. type: verbatim
21919 #: ../resize/virt-resize.pod:41
21920 #, no-wrap
21921 msgid ""
21922 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21923 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21924 "\n"
21925 msgstr ""
21926
21927 #. type: =item
21928 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1284
21929 #: ../src/guestfs.pod:1422 ../src/guestfs.pod:2606
21930 msgid "2."
21931 msgstr "2."
21932
21933 #. type: textblock
21934 #: ../resize/virt-resize.pod:46
21935 msgid ""
21936 "As above, but make the /boot partition 200MB bigger, while giving the "
21937 "remaining space to /dev/sda2:"
21938 msgstr ""
21939
21940 #. type: verbatim
21941 #: ../resize/virt-resize.pod:49
21942 #, no-wrap
21943 msgid ""
21944 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21945 "   olddisk newdisk\n"
21946 "\n"
21947 msgstr ""
21948
21949 #. type: =item
21950 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1428
21951 msgid "3."
21952 msgstr "3."
21953
21954 #. type: textblock
21955 #: ../resize/virt-resize.pod:54
21956 msgid ""
21957 "As in the first example, but expand a logical volume as the final step.  "
21958 "This is what you would typically use for Linux guests that use LVM:"
21959 msgstr ""
21960
21961 #. type: verbatim
21962 #: ../resize/virt-resize.pod:58
21963 #, no-wrap
21964 msgid ""
21965 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21966 "   olddisk newdisk\n"
21967 "\n"
21968 msgstr ""
21969
21970 #. type: =item
21971 #: ../resize/virt-resize.pod:61
21972 msgid "4."
21973 msgstr ""
21974
21975 #. type: textblock
21976 #: ../resize/virt-resize.pod:63
21977 msgid ""
21978 "As in the first example, but the output format will be qcow2 instead of a "
21979 "raw disk:"
21980 msgstr ""
21981
21982 #. type: verbatim
21983 #: ../resize/virt-resize.pod:66
21984 #, no-wrap
21985 msgid ""
21986 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21987 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21988 "\n"
21989 msgstr ""
21990
21991 #. type: =head1
21992 #: ../resize/virt-resize.pod:71
21993 msgid "DETAILED USAGE"
21994 msgstr ""
21995
21996 #. type: =head2
21997 #: ../resize/virt-resize.pod:73
21998 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21999 msgstr ""
22000
22001 #. type: =item
22002 #: ../resize/virt-resize.pod:77
22003 msgid "1. Shut down the virtual machine"
22004 msgstr ""
22005
22006 #. type: =item
22007 #: ../resize/virt-resize.pod:79
22008 msgid "2. Locate input disk image"
22009 msgstr ""
22010
22011 #. type: textblock
22012 #: ../resize/virt-resize.pod:81
22013 msgid ""
22014 "Locate the input disk image (ie. the file or device on the host containing "
22015 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22016 "dumpxml> like this to find the disk image name:"
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../resize/virt-resize.pod:85
22021 #, no-wrap
22022 msgid ""
22023 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22024 " Found 1 nodes:\n"
22025 " -- NODE --\n"
22026 " <source dev=\"/dev/vg/lv_guest\" />\n"
22027 "\n"
22028 msgstr ""
22029
22030 #. type: =item
22031 #: ../resize/virt-resize.pod:90
22032 msgid "3. Look at current sizing"
22033 msgstr ""
22034
22035 #. type: textblock
22036 #: ../resize/virt-resize.pod:92
22037 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22038 msgstr ""
22039
22040 #. type: verbatim
22041 #: ../resize/virt-resize.pod:95
22042 #, no-wrap
22043 msgid ""
22044 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22045 " Name       Type       Size  Parent\n"
22046 " /dev/sda1  partition  101M  /dev/sda\n"
22047 " /dev/sda2  partition  7.9G  /dev/sda\n"
22048 " /dev/sda   device     8.0G  -\n"
22049 "\n"
22050 msgstr ""
22051
22052 #. type: textblock
22053 #: ../resize/virt-resize.pod:101
22054 msgid ""
22055 "(This example is a virtual machine with an 8 GB disk which we would like to "
22056 "expand up to 10 GB)."
22057 msgstr ""
22058
22059 #. type: =item
22060 #: ../resize/virt-resize.pod:104
22061 msgid "4. Create output disk"
22062 msgstr ""
22063
22064 #. type: textblock
22065 #: ../resize/virt-resize.pod:106
22066 msgid ""
22067 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22068 "to store the resized output disk."
22069 msgstr ""
22070
22071 #. type: textblock
22072 #: ../resize/virt-resize.pod:109
22073 msgid ""
22074 "To store the resized disk image in a file, create a file of a suitable size:"
22075 msgstr ""
22076
22077 #. type: verbatim
22078 #: ../resize/virt-resize.pod:112
22079 #, no-wrap
22080 msgid ""
22081 " # rm -f outdisk\n"
22082 " # truncate -s 10G outdisk\n"
22083 "\n"
22084 msgstr ""
22085
22086 #. type: textblock
22087 #: ../resize/virt-resize.pod:115
22088 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22089 msgstr ""
22090
22091 #. type: verbatim
22092 #: ../resize/virt-resize.pod:117
22093 #, no-wrap
22094 msgid ""
22095 " # lvcreate -L 10G -n lv_name vg_name\n"
22096 "\n"
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../resize/virt-resize.pod:119
22101 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22102 msgstr ""
22103
22104 #. type: verbatim
22105 #: ../resize/virt-resize.pod:121
22106 #, no-wrap
22107 msgid ""
22108 " # virsh pool-list\n"
22109 " # virsh vol-create-as poolname newvol 10G\n"
22110 "\n"
22111 msgstr ""
22112
22113 #. type: =item
22114 #: ../resize/virt-resize.pod:124
22115 msgid "5. Resize"
22116 msgstr ""
22117
22118 #. type: textblock
22119 #: ../resize/virt-resize.pod:126
22120 msgid ""
22121 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22122 "file) and the output disk.  The output disk is the one created in the "
22123 "previous step."
22124 msgstr ""
22125
22126 #. type: verbatim
22127 #: ../resize/virt-resize.pod:130
22128 #, no-wrap
22129 msgid ""
22130 " # virt-resize indisk outdisk\n"
22131 "\n"
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../resize/virt-resize.pod:132
22136 msgid ""
22137 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22138 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22139 "larger, then an extra, empty partition is created at the end of the disk "
22140 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22141 "error."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../resize/virt-resize.pod:138
22146 msgid ""
22147 "More realistically you'd want to expand existing partitions in the disk "
22148 "image by passing extra options (for the full list see the L</OPTIONS> "
22149 "section below)."
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../resize/virt-resize.pod:142
22154 msgid ""
22155 "L</--expand> is the most useful option.  It expands the named partition "
22156 "within the disk to fill any extra space:"
22157 msgstr ""
22158
22159 #. type: verbatim
22160 #: ../resize/virt-resize.pod:145
22161 #, no-wrap
22162 msgid ""
22163 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22164 "\n"
22165 msgstr ""
22166
22167 #. type: textblock
22168 #: ../resize/virt-resize.pod:147
22169 msgid ""
22170 "(In this case, an extra partition is I<not> created at the end of the disk, "
22171 "because there will be no unused space)."
22172 msgstr ""
22173
22174 #. type: textblock
22175 #: ../resize/virt-resize.pod:150
22176 msgid ""
22177 "L</--resize> is the other commonly used option.  The following would "
22178 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22179 "rest of the available space:"
22180 msgstr ""
22181
22182 #. type: verbatim
22183 #: ../resize/virt-resize.pod:154
22184 #, no-wrap
22185 msgid ""
22186 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22187 "     indisk outdisk\n"
22188 "\n"
22189 msgstr ""
22190
22191 #. type: textblock
22192 #: ../resize/virt-resize.pod:157
22193 msgid ""
22194 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22195 "if virt-resize knows how, it will resize the contents, the equivalent of "
22196 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22197 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22198 "filesystems, so you would have to online resize them after booting the guest."
22199 msgstr ""
22200
22201 #. type: textblock
22202 #: ../resize/virt-resize.pod:164
22203 msgid "Other options are covered below."
22204 msgstr ""
22205
22206 #. type: =item
22207 #: ../resize/virt-resize.pod:166
22208 msgid "6. Test"
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../resize/virt-resize.pod:168
22213 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../resize/virt-resize.pod:170
22218 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22219 msgstr ""
22220
22221 #. type: verbatim
22222 #: ../resize/virt-resize.pod:172
22223 #, fuzzy, no-wrap
22224 #| msgid ""
22225 #| " edit filename\n"
22226 #| "\n"
22227 msgid ""
22228 " # virsh edit guestname\n"
22229 "\n"
22230 msgstr ""
22231 " edit назва_файла\n"
22232 "\n"
22233
22234 #. type: textblock
22235 #: ../resize/virt-resize.pod:174
22236 msgid ""
22237 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22238 "html#elementsDisks>"
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../resize/virt-resize.pod:177
22243 msgid "Then start up the domain with the new, resized disk:"
22244 msgstr ""
22245
22246 #. type: verbatim
22247 #: ../resize/virt-resize.pod:179
22248 #, fuzzy, no-wrap
22249 #| msgid ""
22250 #| " ln-s target linkname\n"
22251 #| "\n"
22252 msgid ""
22253 " # virsh start guestname\n"
22254 "\n"
22255 msgstr ""
22256 " ln-s призначення назва_посилання\n"
22257 "\n"
22258
22259 #. type: textblock
22260 #: ../resize/virt-resize.pod:181
22261 msgid ""
22262 "and check that it still works.  See also the L</NOTES> section below for "
22263 "additional information."
22264 msgstr ""
22265
22266 #. type: =item
22267 #: ../resize/virt-resize.pod:184
22268 msgid "7. Resize LVs etc inside the guest"
22269 msgstr ""
22270
22271 #. type: textblock
22272 #: ../resize/virt-resize.pod:186
22273 msgid "(This can also be done offline using L<guestfish(1)>)"
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../resize/virt-resize.pod:188
22278 msgid ""
22279 "Once the guest has booted you should see the new space available, at least "
22280 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22281 "may need to resize LVs inside PVs, and also resize filesystem types that "
22282 "virt-resize does not know how to expand."
22283 msgstr ""
22284
22285 #. type: =head2
22286 #: ../resize/virt-resize.pod:195
22287 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../resize/virt-resize.pod:197
22292 msgid ""
22293 "Shrinking is somewhat more complex than expanding, and only an overview is "
22294 "given here."
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../resize/virt-resize.pod:200
22299 msgid ""
22300 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22301 "filesystems).  The user has to shrink content before passing the disk image "
22302 "to virt-resize, and virt-resize will check that the content has been shrunk "
22303 "properly."
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../resize/virt-resize.pod:205
22308 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../resize/virt-resize.pod:207
22313 msgid ""
22314 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22315 "steps 3 and 4 above to allocate a new disk image."
22316 msgstr ""
22317
22318 #. type: textblock
22319 #: ../resize/virt-resize.pod:210
22320 msgid ""
22321 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22322 msgstr ""
22323
22324 #. type: =head2
22325 #: ../resize/virt-resize.pod:213
22326 msgid "IGNORING OR DELETING PARTITIONS"
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../resize/virt-resize.pod:215
22331 msgid ""
22332 "virt-resize also gives a convenient way to ignore or delete partitions when "
22333 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22334 "up the copy where you don't care about the existing contents of a "
22335 "partition.  Deleting a partition removes it completely, but note that it "
22336 "also renumbers any partitions after the one which is deleted, which can "
22337 "leave some guests unbootable."
22338 msgstr ""
22339
22340 #. type: =head2
22341 #: ../resize/virt-resize.pod:222
22342 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../resize/virt-resize.pod:224
22347 msgid ""
22348 "If the input disk is in qcow2 format, then you may prefer that the output is "
22349 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22350 "the fly.  The output format is simply determined by the format of the empty "
22351 "output container that you provide.  Thus to create qcow2 output, use:"
22352 msgstr ""
22353
22354 #. type: verbatim
22355 #: ../resize/virt-resize.pod:230
22356 #, no-wrap
22357 msgid ""
22358 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22359 "\n"
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../resize/virt-resize.pod:232
22364 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../resize/virt-resize.pod:234
22369 msgid "Similarly, to get non-sparse raw output use:"
22370 msgstr ""
22371
22372 #. type: verbatim
22373 #: ../resize/virt-resize.pod:236
22374 #, fuzzy, no-wrap
22375 #| msgid ""
22376 #| " fallocate path len\n"
22377 #| "\n"
22378 msgid ""
22379 " fallocate -l size outdisk\n"
22380 "\n"
22381 msgstr ""
22382 " fallocate шлях довжина\n"
22383 "\n"
22384
22385 #. type: textblock
22386 #: ../resize/virt-resize.pod:238
22387 msgid ""
22388 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22389 "dev/zero of=outdisk bs=1M count=..>)"
22390 msgstr ""
22391
22392 #. type: textblock
22393 #: ../resize/virt-resize.pod:247
22394 msgid "Display help."
22395 msgstr ""
22396
22397 #. type: =item
22398 #: ../resize/virt-resize.pod:249
22399 msgid "B<-d>"
22400 msgstr ""
22401
22402 #. type: =item
22403 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22404 #: ../tools/virt-win-reg.pl:120
22405 msgid "B<--debug>"
22406 msgstr "B<--debug>"
22407
22408 #. type: textblock
22409 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22410 msgid "Enable debugging messages."
22411 msgstr ""
22412
22413 #. type: =item
22414 #: ../resize/virt-resize.pod:255
22415 #, fuzzy
22416 #| msgid "B<--no-dest-paths>"
22417 msgid "B<--delete part>"
22418 msgstr "B<--no-dest-paths>"
22419
22420 #. type: textblock
22421 #: ../resize/virt-resize.pod:257
22422 msgid ""
22423 "Delete the named partition.  It would be more accurate to describe this as "
22424 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22425 "the original disk image is left intact."
22426 msgstr ""
22427
22428 #. type: textblock
22429 #: ../resize/virt-resize.pod:261
22430 msgid ""
22431 "Note that when you delete a partition, then anything contained in the "
22432 "partition is also deleted.  Furthermore, this causes any partitions that "
22433 "come after to be I<renumbered>, which can easily make your guest unbootable."
22434 msgstr ""
22435
22436 #. type: textblock
22437 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22438 #: ../resize/virt-resize.pod:454
22439 msgid "You can give this option multiple times."
22440 msgstr ""
22441
22442 #. type: =item
22443 #: ../resize/virt-resize.pod:268
22444 #, fuzzy
22445 #| msgid "B<--partition>"
22446 msgid "B<--expand part>"
22447 msgstr "B<--partition>"
22448
22449 #. type: textblock
22450 #: ../resize/virt-resize.pod:270
22451 msgid ""
22452 "Expand the named partition so it uses up all extra space (space left over "
22453 "after any other resize changes that you request have been done)."
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../resize/virt-resize.pod:273
22458 msgid ""
22459 "If virt-resize knows how, it will expand the direct content of the "
22460 "partition.  For example, if the partition is an LVM PV, it will expand the "
22461 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22462 "content it doesn't know about alone."
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../resize/virt-resize.pod:278
22467 msgid "Currently virt-resize can resize:"
22468 msgstr ""
22469
22470 #. type: textblock
22471 #: ../resize/virt-resize.pod:284
22472 msgid "ext2, ext3 and ext4 filesystems."
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../resize/virt-resize.pod:288
22477 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../resize/virt-resize.pod:290
22482 msgid ""
22483 "The filesystem must have been shut down consistently last time it was used.  "
22484 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22485 "consistency check, so at the first boot after resizing Windows will check "
22486 "the disk."
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../resize/virt-resize.pod:297
22491 msgid ""
22492 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22493 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22494 "resize LVs as desired after boot."
22495 msgstr ""
22496
22497 #. type: textblock
22498 #: ../resize/virt-resize.pod:303
22499 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22500 msgstr ""
22501
22502 #. type: textblock
22503 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22504 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22505 msgstr ""
22506
22507 #. type: =item
22508 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22509 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22510 #: ../tools/virt-win-reg.pl:142
22511 msgid "B<--format> raw"
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../resize/virt-resize.pod:311
22516 msgid ""
22517 "Specify the format of the input disk image.  If this flag is not given then "
22518 "it is auto-detected from the image itself."
22519 msgstr ""
22520
22521 #. type: textblock
22522 #: ../resize/virt-resize.pod:317
22523 msgid ""
22524 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22525 "AND NON-SPARSE RAW FORMATS>."
22526 msgstr ""
22527
22528 #. type: =item
22529 #: ../resize/virt-resize.pod:320
22530 #, fuzzy
22531 #| msgid "B<--format>"
22532 msgid "B<--ignore part>"
22533 msgstr "B<--format>"
22534
22535 #. type: textblock
22536 #: ../resize/virt-resize.pod:322
22537 msgid ""
22538 "Ignore the named partition.  Effectively this means the partition is "
22539 "allocated on the destination disk, but the content is not copied across from "
22540 "the source disk.  The content of the partition will be blank (all zero "
22541 "bytes)."
22542 msgstr ""
22543
22544 #. type: =item
22545 #: ../resize/virt-resize.pod:329
22546 msgid "B<--LV-expand logvol>"
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../resize/virt-resize.pod:331
22551 msgid ""
22552 "This takes the logical volume and, as a final step, expands it to fill all "
22553 "the space available in its volume group.  A typical usage, assuming a Linux "
22554 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22555 "lv_root> would be:"
22556 msgstr ""
22557
22558 #. type: verbatim
22559 #: ../resize/virt-resize.pod:336
22560 #, no-wrap
22561 msgid ""
22562 " virt-resize indisk outdisk \\\n"
22563 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22564 "\n"
22565 msgstr ""
22566
22567 #. type: textblock
22568 #: ../resize/virt-resize.pod:339
22569 msgid ""
22570 "This would first expand the partition (and PV), and then expand the root "
22571 "device to fill the extra space in the PV."
22572 msgstr ""
22573
22574 #. type: textblock
22575 #: ../resize/virt-resize.pod:342
22576 msgid ""
22577 "The contents of the LV are also resized if virt-resize knows how to do "
22578 "that.  You can stop virt-resize from trying to expand the content by using "
22579 "the option I<--no-expand-content>."
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../resize/virt-resize.pod:346
22584 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../resize/virt-resize.pod:348
22589 msgid ""
22590 "You can give this option multiple times, I<but> it doesn't make sense to do "
22591 "this unless the logical volumes you specify are all in different volume "
22592 "groups."
22593 msgstr ""
22594
22595 #. type: =item
22596 #: ../resize/virt-resize.pod:352
22597 #, fuzzy
22598 #| msgid "B<-h> | B<--human-readable>"
22599 msgid "B<--machine-readable>"
22600 msgstr "B<-h> | B<--human-readable>"
22601
22602 #. type: textblock
22603 #: ../resize/virt-resize.pod:354
22604 msgid ""
22605 "This option is used to make the output more machine friendly when being "
22606 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22607 msgstr ""
22608
22609 #. type: =item
22610 #: ../resize/virt-resize.pod:360
22611 #, fuzzy
22612 #| msgid "B<--debug>"
22613 msgid "B<--dryrun>"
22614 msgstr "B<--debug>"
22615
22616 #. type: textblock
22617 #: ../resize/virt-resize.pod:362
22618 msgid "Print a summary of what would be done, but don't do anything."
22619 msgstr ""
22620
22621 #. type: =item
22622 #: ../resize/virt-resize.pod:364
22623 msgid "B<--no-copy-boot-loader>"
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../resize/virt-resize.pod:366
22628 msgid ""
22629 "By default, virt-resize copies over some sectors at the start of the disk "
22630 "(up to the beginning of the first partition).  Commonly these sectors "
22631 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22632 "in order for the guest to boot correctly."
22633 msgstr ""
22634
22635 #. type: textblock
22636 #: ../resize/virt-resize.pod:371
22637 msgid ""
22638 "If you specify this flag, then this initial copy is not done.  You may need "
22639 "to reinstall the boot loader in this case."
22640 msgstr ""
22641
22642 #. type: =item
22643 #: ../resize/virt-resize.pod:374
22644 #, fuzzy
22645 #| msgid "B<--partition>"
22646 msgid "B<--no-extra-partition>"
22647 msgstr "B<--partition>"
22648
22649 #. type: textblock
22650 #: ../resize/virt-resize.pod:376
22651 msgid ""
22652 "By default, virt-resize creates an extra partition if there is any extra, "
22653 "unused space after all resizing has happened.  Use this option to prevent "
22654 "the extra partition from being created.  If you do this then the extra space "
22655 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22656 "tool in the guest."
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../resize/virt-resize.pod:382
22661 msgid ""
22662 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22663 "will be created."
22664 msgstr ""
22665
22666 #. type: =item
22667 #: ../resize/virt-resize.pod:385
22668 #, fuzzy
22669 #| msgid "B<--no-dest-paths>"
22670 msgid "B<--no-expand-content>"
22671 msgstr "B<--no-dest-paths>"
22672
22673 #. type: textblock
22674 #: ../resize/virt-resize.pod:387
22675 msgid ""
22676 "By default, virt-resize will try to expand the direct contents of "
22677 "partitions, if it knows how (see I<--expand> option above)."
22678 msgstr ""
22679
22680 #. type: textblock
22681 #: ../resize/virt-resize.pod:390
22682 msgid ""
22683 "If you give the I<--no-expand-content> option then virt-resize will not "
22684 "attempt this."
22685 msgstr ""
22686
22687 #. type: =item
22688 #: ../resize/virt-resize.pod:393
22689 #, fuzzy
22690 #| msgid "ntfsresize-size"
22691 msgid "B<--ntfsresize-force>"
22692 msgstr "ntfsresize-size"
22693
22694 #. type: textblock
22695 #: ../resize/virt-resize.pod:395
22696 msgid ""
22697 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22698 "the NTFS disk is marked as needing a consistency check.  You have to use "
22699 "this option if you want to resize a Windows guest multiple times without "
22700 "booting into Windows between each resize."
22701 msgstr ""
22702
22703 #. type: =item
22704 #: ../resize/virt-resize.pod:401
22705 #, fuzzy
22706 #| msgid "B<--format>"
22707 msgid "B<--output-format> raw"
22708 msgstr "B<--format>"
22709
22710 #. type: textblock
22711 #: ../resize/virt-resize.pod:403
22712 msgid ""
22713 "Specify the format of the output disk image.  If this flag is not given then "
22714 "it is auto-detected from the image itself."
22715 msgstr ""
22716
22717 #. type: textblock
22718 #: ../resize/virt-resize.pod:409
22719 msgid ""
22720 "Note that this option I<does not create> the output format.  This option "
22721 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22722 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22723 "SPARSE RAW FORMATS>."
22724 msgstr ""
22725
22726 #. type: =item
22727 #: ../resize/virt-resize.pod:414
22728 msgid "B<-q>"
22729 msgstr ""
22730
22731 #. type: =item
22732 #: ../resize/virt-resize.pod:416
22733 #, fuzzy
22734 #| msgid "B<--live>"
22735 msgid "B<--quiet>"
22736 msgstr "B<--live>"
22737
22738 #. type: textblock
22739 #: ../resize/virt-resize.pod:418
22740 msgid "Don't print the summary."
22741 msgstr ""
22742
22743 #. type: =item
22744 #: ../resize/virt-resize.pod:420
22745 #, fuzzy
22746 #| msgid "B<part_size>"
22747 msgid "B<--resize part=size>"
22748 msgstr "B<part_size>"
22749
22750 #. type: textblock
22751 #: ../resize/virt-resize.pod:422
22752 msgid ""
22753 "Resize the named partition (expanding or shrinking it) so that it has the "
22754 "given size."
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../resize/virt-resize.pod:425
22759 msgid ""
22760 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22761 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22762 "size; or as a relative number or percentage.  For example:"
22763 msgstr ""
22764
22765 #. type: verbatim
22766 #: ../resize/virt-resize.pod:431
22767 #, fuzzy, no-wrap
22768 #| msgid ""
22769 #| " hexedit /dev/sda 1M\n"
22770 #| "\n"
22771 msgid ""
22772 " --resize /dev/sda2=10G\n"
22773 "\n"
22774 msgstr ""
22775 " hexedit /dev/sda 1M\n"
22776 "\n"
22777
22778 #. type: verbatim
22779 #: ../resize/virt-resize.pod:433
22780 #, fuzzy, no-wrap
22781 #| msgid ""
22782 #| " pvresize device\n"
22783 #| "\n"
22784 msgid ""
22785 " --resize /dev/sda4=90%\n"
22786 "\n"
22787 msgstr ""
22788 " pvresize пристрій\n"
22789 "\n"
22790
22791 #. type: verbatim
22792 #: ../resize/virt-resize.pod:435
22793 #, fuzzy, no-wrap
22794 #| msgid ""
22795 #| " hexedit /dev/sda 1M\n"
22796 #| "\n"
22797 msgid ""
22798 " --resize /dev/sda2=+1G\n"
22799 "\n"
22800 msgstr ""
22801 " hexedit /dev/sda 1M\n"
22802 "\n"
22803
22804 #. type: verbatim
22805 #: ../resize/virt-resize.pod:437
22806 #, fuzzy, no-wrap
22807 #| msgid ""
22808 #| " hexedit /dev/sda 1M\n"
22809 #| "\n"
22810 msgid ""
22811 " --resize /dev/sda2=-200M\n"
22812 "\n"
22813 msgstr ""
22814 " hexedit /dev/sda 1M\n"
22815 "\n"
22816
22817 #. type: verbatim
22818 #: ../resize/virt-resize.pod:439
22819 #, fuzzy, no-wrap
22820 #| msgid ""
22821 #| " hexedit /dev/sda 1M\n"
22822 #| "\n"
22823 msgid ""
22824 " --resize /dev/sda1=+128K\n"
22825 "\n"
22826 msgstr ""
22827 " hexedit /dev/sda 1M\n"
22828 "\n"
22829
22830 #. type: verbatim
22831 #: ../resize/virt-resize.pod:441
22832 #, fuzzy, no-wrap
22833 #| msgid ""
22834 #| " hexedit /dev/sda 1M\n"
22835 #| "\n"
22836 msgid ""
22837 " --resize /dev/sda1=+10%\n"
22838 "\n"
22839 msgstr ""
22840 " hexedit /dev/sda 1M\n"
22841 "\n"
22842
22843 #. type: verbatim
22844 #: ../resize/virt-resize.pod:443
22845 #, fuzzy, no-wrap
22846 #| msgid ""
22847 #| " hexedit /dev/sda 1M\n"
22848 #| "\n"
22849 msgid ""
22850 " --resize /dev/sda1=-10%\n"
22851 "\n"
22852 msgstr ""
22853 " hexedit /dev/sda 1M\n"
22854 "\n"
22855
22856 #. type: textblock
22857 #: ../resize/virt-resize.pod:445
22858 msgid ""
22859 "You can increase the size of any partition.  Virt-resize will expand the "
22860 "direct content of the partition if it knows how (see I<--expand> below)."
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../resize/virt-resize.pod:449
22865 msgid ""
22866 "You can only I<decrease> the size of partitions that contain filesystems or "
22867 "PVs which have already been shrunk.  Virt-resize will check this has been "
22868 "done before proceeding, or else will print an error (see also I<--resize-"
22869 "force>)."
22870 msgstr ""
22871
22872 #. type: =item
22873 #: ../resize/virt-resize.pod:456
22874 msgid "B<--resize-force part=size>"
22875 msgstr ""
22876
22877 #. type: textblock
22878 #: ../resize/virt-resize.pod:458
22879 msgid ""
22880 "This is the same as I<--resize> except that it will let you decrease the "
22881 "size of any partition.  Generally this means you will lose any data which "
22882 "was at the end of the partition you shrink, but you may not care about that "
22883 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22884 "as a swap partition)."
22885 msgstr ""
22886
22887 #. type: textblock
22888 #: ../resize/virt-resize.pod:464
22889 msgid "See also the I<--ignore> option."
22890 msgstr ""
22891
22892 #. type: =item
22893 #: ../resize/virt-resize.pod:466
22894 #, fuzzy
22895 #| msgid "B<--partition>"
22896 msgid "B<--shrink part>"
22897 msgstr "B<--partition>"
22898
22899 #. type: textblock
22900 #: ../resize/virt-resize.pod:468
22901 msgid ""
22902 "Shrink the named partition until the overall disk image fits in the "
22903 "destination.  The named partition B<must> contain a filesystem or PV which "
22904 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22905 "online tools).  Virt-resize will check this and give an error if it has not "
22906 "been done."
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../resize/virt-resize.pod:474
22911 msgid ""
22912 "The amount by which the overall disk must be shrunk (after carrying out all "
22913 "other operations requested by the user) is called the \"deficit\".  For "
22914 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22915 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22916 "would give an error unless the user specified a partition to shrink and that "
22917 "partition had more than a gigabyte of free space."
22918 msgstr ""
22919
22920 #. type: =head1
22921 #: ../resize/virt-resize.pod:492
22922 msgid "MACHINE READABLE OUTPUT"
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../resize/virt-resize.pod:494
22927 msgid ""
22928 "The I<--machine-readable> option can be used to make the output more machine "
22929 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22930 "etc."
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../resize/virt-resize.pod:498
22935 msgid ""
22936 "Use the option on its own to query the capabilities of the virt-resize "
22937 "binary.  Typical output looks like this:"
22938 msgstr ""
22939
22940 #. type: verbatim
22941 #: ../resize/virt-resize.pod:501
22942 #, no-wrap
22943 msgid ""
22944 " $ virt-resize --machine-readable\n"
22945 " virt-resize\n"
22946 " ntfsresize-force\n"
22947 " 32bitok\n"
22948 " ntfs\n"
22949 " btrfs\n"
22950 "\n"
22951 msgstr ""
22952
22953 #. type: textblock
22954 #: ../resize/virt-resize.pod:508
22955 msgid ""
22956 "A list of features is printed, one per line, and the program exits with "
22957 "status 0."
22958 msgstr ""
22959
22960 #. type: =head2
22961 #: ../resize/virt-resize.pod:513
22962 msgid "\"Partition 1 does not end on cylinder boundary.\""
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../resize/virt-resize.pod:515
22967 msgid ""
22968 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22969 "means the partitions will not be aligned to the ancient CHS geometry.  "
22970 "However CHS geometry is meaningless for disks manufactured since the early "
22971 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22972 "cylinders is not required by any modern operating system."
22973 msgstr ""
22974
22975 #. type: =head2
22976 #: ../resize/virt-resize.pod:522
22977 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../resize/virt-resize.pod:524
22982 msgid ""
22983 "In Windows Vista and later versions, Microsoft switched to using a separate "
22984 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22985 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22986 "the boot partition.  Doing so seems to break the guest completely.  However "
22987 "expanding the second partition (ie. C: drive) should work."
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../resize/virt-resize.pod:531
22992 msgid ""
22993 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22994 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22995 "it find errors) is nothing to worry about."
22996 msgstr ""
22997
22998 #. type: =head2
22999 #: ../resize/virt-resize.pod:535
23000 msgid "GUEST BOOT STUCK AT \"GRUB\""
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../resize/virt-resize.pod:537
23005 msgid ""
23006 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23007 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23008 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23009 "although we think is to do with partition alignment."
23010 msgstr ""
23011
23012 #. type: verbatim
23013 #: ../resize/virt-resize.pod:542
23014 #, no-wrap
23015 msgid ""
23016 " guestfish -i -a newdisk\n"
23017 " ><fs> cat /boot/grub/device.map\n"
23018 " # check the contents of this file are sensible or\n"
23019 " # edit the file if necessary\n"
23020 " ><fs> grub-install / /dev/vda\n"
23021 " ><fs> exit\n"
23022 "\n"
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../resize/virt-resize.pod:549
23027 msgid ""
23028 "For more flexible guest reconfiguration, including if you need to specify "
23029 "other parameters to grub-install, use L<virt-rescue(1)>."
23030 msgstr ""
23031
23032 #. type: =head1
23033 #: ../resize/virt-resize.pod:552
23034 msgid "ALTERNATIVE TOOLS"
23035 msgstr ""
23036
23037 #. type: textblock
23038 #: ../resize/virt-resize.pod:554
23039 msgid ""
23040 "There are several proprietary tools for resizing partitions.  We won't "
23041 "mention any here."
23042 msgstr ""
23043
23044 #. type: textblock
23045 #: ../resize/virt-resize.pod:557
23046 msgid ""
23047 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23048 "operations on disk images.  They can resize and move partitions, but I don't "
23049 "think they can do anything with the contents, and they certainly don't "
23050 "understand LVM."
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../resize/virt-resize.pod:562
23055 msgid ""
23056 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23057 "but at a much lower level.  You will probably end up hand-calculating sector "
23058 "offsets, which is something that virt-resize was designed to avoid.  If you "
23059 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23060 "I<--debug> flag."
23061 msgstr ""
23062
23063 #. type: textblock
23064 #: ../resize/virt-resize.pod:582
23065 msgid ""
23066 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23067 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23068 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23069 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../ruby/examples/guestfs-ruby.pod:5
23074 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23075 msgstr ""
23076
23077 #. type: verbatim
23078 #: ../ruby/examples/guestfs-ruby.pod:9
23079 #, no-wrap
23080 msgid ""
23081 " require 'guestfs'\n"
23082 " g = Guestfs::Guestfs.new()\n"
23083 " g.add_drive_opts(\"disk.img\",\n"
23084 "                  :readonly => 1, :format => \"raw\")\n"
23085 " g.launch()\n"
23086 "\n"
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../ruby/examples/guestfs-ruby.pod:17
23091 msgid ""
23092 "This manual page documents how to call libguestfs from the Ruby programming "
23093 "language.  This page just documents the differences from the C API and gives "
23094 "some examples.  If you are not familiar with using libguestfs, you also need "
23095 "to read L<guestfs(3)>."
23096 msgstr ""
23097
23098 #. type: textblock
23099 #: ../ruby/examples/guestfs-ruby.pod:24
23100 msgid ""
23101 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23102 "This has a single parameter which is the error message (a string)."
23103 msgstr ""
23104
23105 #. type: textblock
23106 #: ../ruby/examples/guestfs-ruby.pod:38
23107 #, fuzzy
23108 #| msgid ""
23109 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23110 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23111 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23112 msgid ""
23113 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23114 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23115 "libguestfs.org/>."
23116 msgstr ""
23117 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23118 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23119 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23120
23121 #. type: =head2
23122 #: ../src/guestfs-actions.pod:1
23123 msgid "guestfs_add_cdrom"
23124 msgstr ""
23125
23126 #. type: verbatim
23127 #: ../src/guestfs-actions.pod:3
23128 #, no-wrap
23129 msgid ""
23130 " int\n"
23131 " guestfs_add_cdrom (guestfs_h *g,\n"
23132 "                    const char *filename);\n"
23133 "\n"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../src/guestfs-actions.pod:17
23138 msgid ""
23139 "This call checks for the existence of C<filename>.  This stops you from "
23140 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23141 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23142 "instead."
23143 msgstr ""
23144
23145 #. type: textblock
23146 #: ../src/guestfs-actions.pod:24
23147 msgid ""
23148 "If you just want to add an ISO file (often you use this as an efficient way "
23149 "to transfer large files into the guest), then you should probably use "
23150 "C<guestfs_add_drive_ro> instead."
23151 msgstr ""
23152
23153 #. type: textblock
23154 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
23155 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23156 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
23157 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23158 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23159 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23160 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23161 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23162 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23163 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23164 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23165 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23166 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23167 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23168 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23169 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23170 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23171 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
23172 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23173 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23174 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
23175 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
23176 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3663
23177 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3877
23178 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3904
23179 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3933
23180 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
23181 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4078
23182 #: ../src/guestfs-actions.pod:4101 ../src/guestfs-actions.pod:4124
23183 #: ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4178
23184 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4232
23185 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4280
23186 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4309
23187 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4341
23188 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4454
23189 #: ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4518
23190 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4554
23191 #: ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:4584
23192 #: ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4615
23193 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4650
23194 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4793
23195 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4843
23196 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4874
23197 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4904
23198 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4934
23199 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5002
23200 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5061
23201 #: ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5092
23202 #: ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5187
23203 #: ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5277
23204 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5329
23205 #: ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5487
23206 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5566
23207 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5616
23208 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5699
23209 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726
23210 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-actions.pod:6034
23211 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6067
23212 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093
23213 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
23214 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6156
23215 #: ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6194
23216 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6242
23217 #: ../src/guestfs-actions.pod:6265 ../src/guestfs-actions.pod:6283
23218 #: ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6323
23219 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359
23220 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6406
23221 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6449
23222 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6492
23223 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526
23224 #: ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6593
23225 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6748
23226 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6881
23227 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
23228 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6942
23229 #: ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6968
23230 #: ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7042
23231 #: ../src/guestfs-actions.pod:7059 ../src/guestfs-actions.pod:7075
23232 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7108
23233 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7141
23234 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7191
23235 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
23236 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7297
23237 #: ../src/guestfs-actions.pod:7333 ../src/guestfs-actions.pod:7449
23238 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7478
23239 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546
23240 #: ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7624
23241 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7707
23242 #: ../src/guestfs-actions.pod:7733 ../src/guestfs-actions.pod:7804
23243 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7856
23244 msgid "This function returns 0 on success or -1 on error."
23245 msgstr ""
23246
23247 #. type: textblock
23248 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
23249 #: ../src/guestfs-actions.pod:275
23250 msgid ""
23251 "This function is deprecated.  In new code, use the L</"
23252 "guestfs_add_drive_opts> call instead."
23253 msgstr ""
23254
23255 #. type: textblock
23256 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23257 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23258 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23259 #: ../src/guestfs-actions.pod:3650 ../src/guestfs-actions.pod:3670
23260 #: ../src/guestfs-actions.pod:4978 ../src/guestfs-actions.pod:6244
23261 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6494
23262 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7110
23263 #: ../src/guestfs-actions.pod:7633
23264 msgid "(Added in 0.3)"
23265 msgstr ""
23266
23267 #. type: =head2
23268 #: ../src/guestfs-actions.pod:41
23269 msgid "guestfs_add_domain"
23270 msgstr ""
23271
23272 #. type: verbatim
23273 #: ../src/guestfs-actions.pod:43
23274 #, no-wrap
23275 msgid ""
23276 " int\n"
23277 " guestfs_add_domain (guestfs_h *g,\n"
23278 "                     const char *dom,\n"
23279 "                     ...);\n"
23280 "\n"
23281 msgstr ""
23282
23283 #. type: textblock
23284 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23285 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2853
23286 #: ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4988
23287 #: ../src/guestfs-actions.pod:5205
23288 msgid ""
23289 "You may supply a list of optional arguments to this call.  Use zero or more "
23290 "of the following pairs of parameters, and terminate the list with C<-1> on "
23291 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23292 msgstr ""
23293
23294 #. type: verbatim
23295 #: ../src/guestfs-actions.pod:53
23296 #, no-wrap
23297 msgid ""
23298 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23299 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23300 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23301 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23302 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23303 "\n"
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../src/guestfs-actions.pod:59
23308 msgid ""
23309 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23310 "It works by connecting to libvirt, requesting the domain and domain XML from "
23311 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23312 "one."
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../src/guestfs-actions.pod:94
23317 msgid ""
23318 "The other optional parameters are passed directly through to "
23319 "C<guestfs_add_drive_opts>."
23320 msgstr ""
23321
23322 #. type: textblock
23323 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23324 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23325 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23326 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23327 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23328 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23329 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23330 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2971
23331 #: ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:5164
23332 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5796
23333 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:7218
23334 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7657
23335 #: ../src/guestfs-actions.pod:7670
23336 msgid "On error this function returns -1."
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../src/guestfs-actions.pod:99
23341 msgid "(Added in 1.7.4)"
23342 msgstr ""
23343
23344 #. type: =head2
23345 #: ../src/guestfs-actions.pod:101
23346 msgid "guestfs_add_domain_va"
23347 msgstr ""
23348
23349 #. type: verbatim
23350 #: ../src/guestfs-actions.pod:103
23351 #, no-wrap
23352 msgid ""
23353 " int\n"
23354 " guestfs_add_domain_va (guestfs_h *g,\n"
23355 "                        const char *dom,\n"
23356 "                        va_list args);\n"
23357 "\n"
23358 msgstr ""
23359
23360 #. type: textblock
23361 #: ../src/guestfs-actions.pod:108
23362 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23363 msgstr ""
23364
23365 #. type: textblock
23366 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23367 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23368 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23369 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2949
23370 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4746
23371 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5028
23372 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5265
23373 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23374 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23375
23376 #. type: =head2
23377 #: ../src/guestfs-actions.pod:112
23378 msgid "guestfs_add_domain_argv"
23379 msgstr "guestfs_add_domain_argv"
23380
23381 #. type: verbatim
23382 #: ../src/guestfs-actions.pod:114
23383 #, no-wrap
23384 msgid ""
23385 " int\n"
23386 " guestfs_add_domain_argv (guestfs_h *g,\n"
23387 "                          const char *dom,\n"
23388 "                          const struct guestfs_add_domain_argv *optargs);\n"
23389 "\n"
23390 msgstr ""
23391
23392 #. type: textblock
23393 #: ../src/guestfs-actions.pod:119
23394 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23395 msgstr ""
23396
23397 #. type: =head2
23398 #: ../src/guestfs-actions.pod:123
23399 msgid "guestfs_add_drive"
23400 msgstr ""
23401
23402 #. type: verbatim
23403 #: ../src/guestfs-actions.pod:125
23404 #, no-wrap
23405 msgid ""
23406 " int\n"
23407 " guestfs_add_drive (guestfs_h *g,\n"
23408 "                    const char *filename);\n"
23409 "\n"
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../src/guestfs-actions.pod:129
23414 msgid ""
23415 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23416 "optional parameters, so the disk is added writable, with the format being "
23417 "detected automatically."
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../src/guestfs-actions.pod:133
23422 msgid ""
23423 "Automatic detection of the format opens you up to a potential security hole "
23424 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23425 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23426 "you should think about replacing calls to this function with calls to "
23427 "C<guestfs_add_drive_opts>, and specifying the format."
23428 msgstr ""
23429
23430 #. type: =head2
23431 #: ../src/guestfs-actions.pod:144
23432 msgid "guestfs_add_drive_opts"
23433 msgstr ""
23434
23435 #. type: verbatim
23436 #: ../src/guestfs-actions.pod:146
23437 #, no-wrap
23438 msgid ""
23439 " int\n"
23440 " guestfs_add_drive_opts (guestfs_h *g,\n"
23441 "                         const char *filename,\n"
23442 "                         ...);\n"
23443 "\n"
23444 msgstr ""
23445
23446 #. type: verbatim
23447 #: ../src/guestfs-actions.pod:156
23448 #, no-wrap
23449 msgid ""
23450 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23451 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23452 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23453 "\n"
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../src/guestfs-actions.pod:185
23458 msgid ""
23459 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23460 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23461 "Possible formats include C<raw> and C<qcow2>."
23462 msgstr ""
23463
23464 #. type: textblock
23465 #: ../src/guestfs-actions.pod:196
23466 msgid ""
23467 "This rarely-used option lets you emulate the behaviour of the deprecated "
23468 "C<guestfs_add_drive_with_if> call (q.v.)"
23469 msgstr ""
23470
23471 #. type: textblock
23472 #: ../src/guestfs-actions.pod:203
23473 msgid "(Added in 1.5.23)"
23474 msgstr ""
23475
23476 #. type: =head2
23477 #: ../src/guestfs-actions.pod:205
23478 msgid "guestfs_add_drive_opts_va"
23479 msgstr ""
23480
23481 #. type: verbatim
23482 #: ../src/guestfs-actions.pod:207
23483 #, no-wrap
23484 msgid ""
23485 " int\n"
23486 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23487 "                            const char *filename,\n"
23488 "                            va_list args);\n"
23489 "\n"
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../src/guestfs-actions.pod:212
23494 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23495 msgstr ""
23496
23497 #. type: =head2
23498 #: ../src/guestfs-actions.pod:216
23499 msgid "guestfs_add_drive_opts_argv"
23500 msgstr ""
23501
23502 #. type: verbatim
23503 #: ../src/guestfs-actions.pod:218
23504 #, no-wrap
23505 msgid ""
23506 " int\n"
23507 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23508 "                              const char *filename,\n"
23509 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23510 "\n"
23511 msgstr ""
23512
23513 #. type: textblock
23514 #: ../src/guestfs-actions.pod:223
23515 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23516 msgstr ""
23517
23518 #. type: =head2
23519 #: ../src/guestfs-actions.pod:227
23520 msgid "guestfs_add_drive_ro"
23521 msgstr ""
23522
23523 #. type: verbatim
23524 #: ../src/guestfs-actions.pod:229
23525 #, no-wrap
23526 msgid ""
23527 " int\n"
23528 " guestfs_add_drive_ro (guestfs_h *g,\n"
23529 "                       const char *filename);\n"
23530 "\n"
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../src/guestfs-actions.pod:233
23535 msgid ""
23536 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23537 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23538 "disk is added read-only, with the format being detected automatically."
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../src/guestfs-actions.pod:240
23543 msgid "(Added in 1.0.38)"
23544 msgstr ""
23545
23546 #. type: =head2
23547 #: ../src/guestfs-actions.pod:242
23548 msgid "guestfs_add_drive_ro_with_if"
23549 msgstr ""
23550
23551 #. type: verbatim
23552 #: ../src/guestfs-actions.pod:244
23553 #, no-wrap
23554 msgid ""
23555 " int\n"
23556 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23557 "                               const char *filename,\n"
23558 "                               const char *iface);\n"
23559 "\n"
23560 msgstr ""
23561
23562 #. type: textblock
23563 #: ../src/guestfs-actions.pod:249
23564 msgid ""
23565 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23566 "QEMU interface emulation to use at run time."
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23571 #: ../src/guestfs-actions.pod:2458
23572 msgid "(Added in 1.0.84)"
23573 msgstr ""
23574
23575 #. type: =head2
23576 #: ../src/guestfs-actions.pod:263
23577 msgid "guestfs_add_drive_with_if"
23578 msgstr ""
23579
23580 #. type: verbatim
23581 #: ../src/guestfs-actions.pod:265
23582 #, no-wrap
23583 msgid ""
23584 " int\n"
23585 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23586 "                            const char *filename,\n"
23587 "                            const char *iface);\n"
23588 "\n"
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../src/guestfs-actions.pod:270
23593 msgid ""
23594 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23595 "QEMU interface emulation to use at run time."
23596 msgstr ""
23597
23598 #. type: =head2
23599 #: ../src/guestfs-actions.pod:284
23600 msgid "guestfs_aug_clear"
23601 msgstr ""
23602
23603 #. type: verbatim
23604 #: ../src/guestfs-actions.pod:286
23605 #, no-wrap
23606 msgid ""
23607 " int\n"
23608 " guestfs_aug_clear (guestfs_h *g,\n"
23609 "                    const char *augpath);\n"
23610 "\n"
23611 msgstr ""
23612
23613 #. type: textblock
23614 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23615 msgid "(Added in 1.3.4)"
23616 msgstr ""
23617
23618 #. type: =head2
23619 #: ../src/guestfs-actions.pod:297
23620 msgid "guestfs_aug_close"
23621 msgstr ""
23622
23623 #. type: verbatim
23624 #: ../src/guestfs-actions.pod:299
23625 #, no-wrap
23626 msgid ""
23627 " int\n"
23628 " guestfs_aug_close (guestfs_h *g);\n"
23629 "\n"
23630 msgstr ""
23631
23632 #. type: textblock
23633 #: ../src/guestfs-actions.pod:302
23634 msgid ""
23635 "Close the current Augeas handle and free up any resources used by it.  After "
23636 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23637 "any other Augeas functions."
23638 msgstr ""
23639
23640 #. type: textblock
23641 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23642 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23643 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23644 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23645 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23646 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23647 #: ../src/guestfs-actions.pod:5873
23648 msgid "(Added in 0.7)"
23649 msgstr ""
23650
23651 #. type: =head2
23652 #: ../src/guestfs-actions.pod:311
23653 msgid "guestfs_aug_defnode"
23654 msgstr ""
23655
23656 #. type: verbatim
23657 #: ../src/guestfs-actions.pod:313
23658 #, no-wrap
23659 msgid ""
23660 " struct guestfs_int_bool *\n"
23661 " guestfs_aug_defnode (guestfs_h *g,\n"
23662 "                      const char *name,\n"
23663 "                      const char *expr,\n"
23664 "                      const char *val);\n"
23665 "\n"
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../src/guestfs-actions.pod:322
23670 msgid ""
23671 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23672 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23673 "containing that single node."
23674 msgstr ""
23675
23676 #. type: textblock
23677 #: ../src/guestfs-actions.pod:330
23678 msgid ""
23679 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23680 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23681 msgstr ""
23682
23683 #. type: =head2
23684 #: ../src/guestfs-actions.pod:336
23685 msgid "guestfs_aug_defvar"
23686 msgstr ""
23687
23688 #. type: verbatim
23689 #: ../src/guestfs-actions.pod:338
23690 #, no-wrap
23691 msgid ""
23692 " int\n"
23693 " guestfs_aug_defvar (guestfs_h *g,\n"
23694 "                     const char *name,\n"
23695 "                     const char *expr);\n"
23696 "\n"
23697 msgstr ""
23698
23699 #. type: =head2
23700 #: ../src/guestfs-actions.pod:354
23701 msgid "guestfs_aug_get"
23702 msgstr ""
23703
23704 #. type: verbatim
23705 #: ../src/guestfs-actions.pod:356
23706 #, no-wrap
23707 msgid ""
23708 " char *\n"
23709 " guestfs_aug_get (guestfs_h *g,\n"
23710 "                  const char *augpath);\n"
23711 "\n"
23712 msgstr ""
23713
23714 #. type: textblock
23715 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23716 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23717 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23718 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23719 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23720 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23721 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23722 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
23723 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
23724 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
23725 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2821
23726 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3054
23727 #: ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3103
23728 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3196
23729 #: ../src/guestfs-actions.pod:3216 ../src/guestfs-actions.pod:3236
23730 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4216
23731 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4496
23732 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5601
23733 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5949
23734 #: ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6654
23735 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6687
23736 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:7392
23737 #: ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7429
23738 #: ../src/guestfs-actions.pod:7603 ../src/guestfs-actions.pod:7913
23739 msgid ""
23740 "This function returns a string, or NULL on error.  I<The caller must free "
23741 "the returned string after use>."
23742 msgstr ""
23743
23744 #. type: =head2
23745 #: ../src/guestfs-actions.pod:368
23746 msgid "guestfs_aug_init"
23747 msgstr ""
23748
23749 #. type: verbatim
23750 #: ../src/guestfs-actions.pod:370
23751 #, no-wrap
23752 msgid ""
23753 " int\n"
23754 " guestfs_aug_init (guestfs_h *g,\n"
23755 "                   const char *root,\n"
23756 "                   int flags);\n"
23757 "\n"
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../src/guestfs-actions.pod:379
23762 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../src/guestfs-actions.pod:404
23767 msgid ""
23768 "This option is only useful when debugging Augeas lenses.  Use of this option "
23769 "may require additional memory for the libguestfs appliance.  You may need to "
23770 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23771 "C<guestfs_set_memsize>."
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../src/guestfs-actions.pod:419
23776 msgid "Do not load the tree in C<guestfs_aug_init>."
23777 msgstr ""
23778
23779 #. type: textblock
23780 #: ../src/guestfs-actions.pod:423
23781 msgid "To close the handle, you can call C<guestfs_aug_close>."
23782 msgstr ""
23783
23784 #. type: =head2
23785 #: ../src/guestfs-actions.pod:431
23786 msgid "guestfs_aug_insert"
23787 msgstr ""
23788
23789 #. type: verbatim
23790 #: ../src/guestfs-actions.pod:433
23791 #, no-wrap
23792 msgid ""
23793 " int\n"
23794 " guestfs_aug_insert (guestfs_h *g,\n"
23795 "                     const char *augpath,\n"
23796 "                     const char *label,\n"
23797 "                     int before);\n"
23798 "\n"
23799 msgstr ""
23800
23801 #. type: =head2
23802 #: ../src/guestfs-actions.pod:451
23803 msgid "guestfs_aug_load"
23804 msgstr ""
23805
23806 #. type: verbatim
23807 #: ../src/guestfs-actions.pod:453
23808 #, no-wrap
23809 msgid ""
23810 " int\n"
23811 " guestfs_aug_load (guestfs_h *g);\n"
23812 "\n"
23813 msgstr ""
23814
23815 #. type: =head2
23816 #: ../src/guestfs-actions.pod:465
23817 msgid "guestfs_aug_ls"
23818 msgstr ""
23819
23820 #. type: verbatim
23821 #: ../src/guestfs-actions.pod:467
23822 #, no-wrap
23823 msgid ""
23824 " char **\n"
23825 " guestfs_aug_ls (guestfs_h *g,\n"
23826 "                 const char *augpath);\n"
23827 "\n"
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../src/guestfs-actions.pod:471
23832 msgid ""
23833 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23834 "sorting the resulting nodes into alphabetical order."
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23839 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23840 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23841 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23842 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23843 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23844 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
23845 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
23846 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:3156
23847 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3746
23848 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783
23849 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3950
23850 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:5125
23851 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5869
23852 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6734
23853 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6850
23854 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7020
23855 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7516
23856 #: ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7757
23857 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7870
23858 #: ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7935
23859 #: ../src/guestfs-actions.pod:7954
23860 msgid ""
23861 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23862 ">), or NULL if there was an error.  I<The caller must free the strings and "
23863 "the array after use>."
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23868 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23869 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3541
23870 #: ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4249
23871 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4469
23872 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:5129
23873 #: ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6081
23874 #: ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6107
23875 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7234
23876 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7480
23877 #: ../src/guestfs-actions.pod:7745
23878 msgid "(Added in 0.8)"
23879 msgstr ""
23880
23881 #. type: =head2
23882 #: ../src/guestfs-actions.pod:480
23883 msgid "guestfs_aug_match"
23884 msgstr ""
23885
23886 #. type: verbatim
23887 #: ../src/guestfs-actions.pod:482
23888 #, no-wrap
23889 msgid ""
23890 " char **\n"
23891 " guestfs_aug_match (guestfs_h *g,\n"
23892 "                    const char *augpath);\n"
23893 "\n"
23894 msgstr ""
23895
23896 #. type: =head2
23897 #: ../src/guestfs-actions.pod:496
23898 msgid "guestfs_aug_mv"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../src/guestfs-actions.pod:498
23903 #, no-wrap
23904 msgid ""
23905 " int\n"
23906 " guestfs_aug_mv (guestfs_h *g,\n"
23907 "                 const char *src,\n"
23908 "                 const char *dest);\n"
23909 "\n"
23910 msgstr ""
23911
23912 #. type: =head2
23913 #: ../src/guestfs-actions.pod:510
23914 msgid "guestfs_aug_rm"
23915 msgstr ""
23916
23917 #. type: verbatim
23918 #: ../src/guestfs-actions.pod:512
23919 #, no-wrap
23920 msgid ""
23921 " int\n"
23922 " guestfs_aug_rm (guestfs_h *g,\n"
23923 "                 const char *augpath);\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: =head2
23928 #: ../src/guestfs-actions.pod:524
23929 msgid "guestfs_aug_save"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../src/guestfs-actions.pod:526
23934 #, no-wrap
23935 msgid ""
23936 " int\n"
23937 " guestfs_aug_save (guestfs_h *g);\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../src/guestfs-actions.pod:531
23943 msgid ""
23944 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23945 "are saved."
23946 msgstr ""
23947
23948 #. type: =head2
23949 #: ../src/guestfs-actions.pod:538
23950 msgid "guestfs_aug_set"
23951 msgstr ""
23952
23953 #. type: verbatim
23954 #: ../src/guestfs-actions.pod:540
23955 #, no-wrap
23956 msgid ""
23957 " int\n"
23958 " guestfs_aug_set (guestfs_h *g,\n"
23959 "                  const char *augpath,\n"
23960 "                  const char *val);\n"
23961 "\n"
23962 msgstr ""
23963
23964 #. type: textblock
23965 #: ../src/guestfs-actions.pod:547
23966 msgid ""
23967 "In the Augeas API, it is possible to clear a node by setting the value to "
23968 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23969 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23970 msgstr ""
23971
23972 #. type: =head2
23973 #: ../src/guestfs-actions.pod:556
23974 msgid "guestfs_available"
23975 msgstr ""
23976
23977 #. type: verbatim
23978 #: ../src/guestfs-actions.pod:558
23979 #, no-wrap
23980 msgid ""
23981 " int\n"
23982 " guestfs_available (guestfs_h *g,\n"
23983 "                    char *const *groups);\n"
23984 "\n"
23985 msgstr ""
23986
23987 #. type: textblock
23988 #: ../src/guestfs-actions.pod:566
23989 msgid ""
23990 "The libguestfs groups, and the functions that those groups correspond to, "
23991 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23992 "runtime by calling C<guestfs_available_all_groups>."
23993 msgstr ""
23994
23995 #. type: textblock
23996 #: ../src/guestfs-actions.pod:590
23997 msgid "You must call C<guestfs_launch> before calling this function."
23998 msgstr ""
23999
24000 #. type: textblock
24001 #: ../src/guestfs-actions.pod:612
24002 msgid ""
24003 "This call was added in version C<1.0.80>.  In previous versions of "
24004 "libguestfs all you could do would be to speculatively execute a command to "
24005 "find out if the daemon implemented it.  See also C<guestfs_version>."
24006 msgstr ""
24007
24008 #. type: textblock
24009 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
24010 msgid "(Added in 1.0.80)"
24011 msgstr ""
24012
24013 #. type: =head2
24014 #: ../src/guestfs-actions.pod:623
24015 msgid "guestfs_available_all_groups"
24016 msgstr ""
24017
24018 #. type: verbatim
24019 #: ../src/guestfs-actions.pod:625
24020 #, no-wrap
24021 msgid ""
24022 " char **\n"
24023 " guestfs_available_all_groups (guestfs_h *g);\n"
24024 "\n"
24025 msgstr ""
24026
24027 #. type: textblock
24028 #: ../src/guestfs-actions.pod:628
24029 msgid ""
24030 "This command returns a list of all optional groups that this daemon knows "
24031 "about.  Note this returns both supported and unsupported groups.  To find "
24032 "out which ones the daemon can actually support you have to call "
24033 "C<guestfs_available> on each member of the returned list."
24034 msgstr ""
24035
24036 #. type: textblock
24037 #: ../src/guestfs-actions.pod:634
24038 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24039 msgstr ""
24040
24041 #. type: textblock
24042 #: ../src/guestfs-actions.pod:640
24043 msgid "(Added in 1.3.15)"
24044 msgstr ""
24045
24046 #. type: =head2
24047 #: ../src/guestfs-actions.pod:642
24048 msgid "guestfs_base64_in"
24049 msgstr ""
24050
24051 #. type: verbatim
24052 #: ../src/guestfs-actions.pod:644
24053 #, no-wrap
24054 msgid ""
24055 " int\n"
24056 " guestfs_base64_in (guestfs_h *g,\n"
24057 "                    const char *base64file,\n"
24058 "                    const char *filename);\n"
24059 "\n"
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24064 msgid "(Added in 1.3.5)"
24065 msgstr ""
24066
24067 #. type: =head2
24068 #: ../src/guestfs-actions.pod:656
24069 msgid "guestfs_base64_out"
24070 msgstr ""
24071
24072 #. type: verbatim
24073 #: ../src/guestfs-actions.pod:658
24074 #, no-wrap
24075 msgid ""
24076 " int\n"
24077 " guestfs_base64_out (guestfs_h *g,\n"
24078 "                     const char *filename,\n"
24079 "                     const char *base64file);\n"
24080 "\n"
24081 msgstr ""
24082
24083 #. type: =head2
24084 #: ../src/guestfs-actions.pod:670
24085 msgid "guestfs_blockdev_flushbufs"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../src/guestfs-actions.pod:672
24090 #, no-wrap
24091 msgid ""
24092 " int\n"
24093 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24094 "                             const char *device);\n"
24095 "\n"
24096 msgstr ""
24097
24098 #. type: textblock
24099 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24100 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24101 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24102 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24103 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24104 msgid "(Added in 0.9.3)"
24105 msgstr ""
24106
24107 #. type: =head2
24108 #: ../src/guestfs-actions.pod:685
24109 msgid "guestfs_blockdev_getbsz"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../src/guestfs-actions.pod:687
24114 #, no-wrap
24115 msgid ""
24116 " int\n"
24117 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24118 "                          const char *device);\n"
24119 "\n"
24120 msgstr ""
24121
24122 #. type: =head2
24123 #: ../src/guestfs-actions.pod:702
24124 msgid "guestfs_blockdev_getro"
24125 msgstr ""
24126
24127 #. type: verbatim
24128 #: ../src/guestfs-actions.pod:704
24129 #, no-wrap
24130 msgid ""
24131 " int\n"
24132 " guestfs_blockdev_getro (guestfs_h *g,\n"
24133 "                         const char *device);\n"
24134 "\n"
24135 msgstr ""
24136
24137 #. type: textblock
24138 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24139 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24140 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24141 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24142 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24143 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3253
24144 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3287
24145 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
24146 #: ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3492
24147 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3523
24148 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
24149 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3580
24150 #: ../src/guestfs-actions.pod:3595 ../src/guestfs-actions.pod:3610
24151 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
24152 #: ../src/guestfs-actions.pod:5366
24153 msgid "This function returns a C truth value on success or -1 on error."
24154 msgstr ""
24155
24156 #. type: =head2
24157 #: ../src/guestfs-actions.pod:717
24158 msgid "guestfs_blockdev_getsize64"
24159 msgstr ""
24160
24161 #. type: verbatim
24162 #: ../src/guestfs-actions.pod:719
24163 #, no-wrap
24164 msgid ""
24165 " int64_t\n"
24166 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24167 "                             const char *device);\n"
24168 "\n"
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../src/guestfs-actions.pod:725
24173 msgid "See also C<guestfs_blockdev_getsz>."
24174 msgstr ""
24175
24176 #. type: =head2
24177 #: ../src/guestfs-actions.pod:733
24178 msgid "guestfs_blockdev_getss"
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../src/guestfs-actions.pod:735
24183 #, no-wrap
24184 msgid ""
24185 " int\n"
24186 " guestfs_blockdev_getss (guestfs_h *g,\n"
24187 "                         const char *device);\n"
24188 "\n"
24189 msgstr ""
24190
24191 #. type: textblock
24192 #: ../src/guestfs-actions.pod:742
24193 msgid ""
24194 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24195 "that)."
24196 msgstr ""
24197
24198 #. type: =head2
24199 #: ../src/guestfs-actions.pod:751
24200 msgid "guestfs_blockdev_getsz"
24201 msgstr ""
24202
24203 #. type: verbatim
24204 #: ../src/guestfs-actions.pod:753
24205 #, no-wrap
24206 msgid ""
24207 " int64_t\n"
24208 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24209 "                         const char *device);\n"
24210 "\n"
24211 msgstr ""
24212
24213 #. type: textblock
24214 #: ../src/guestfs-actions.pod:760
24215 msgid ""
24216 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24217 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24218 msgstr ""
24219
24220 #. type: =head2
24221 #: ../src/guestfs-actions.pod:770
24222 msgid "guestfs_blockdev_rereadpt"
24223 msgstr ""
24224
24225 #. type: verbatim
24226 #: ../src/guestfs-actions.pod:772
24227 #, no-wrap
24228 msgid ""
24229 " int\n"
24230 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24231 "                            const char *device);\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: =head2
24236 #: ../src/guestfs-actions.pod:784
24237 msgid "guestfs_blockdev_setbsz"
24238 msgstr ""
24239
24240 #. type: verbatim
24241 #: ../src/guestfs-actions.pod:786
24242 #, no-wrap
24243 msgid ""
24244 " int\n"
24245 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24246 "                          const char *device,\n"
24247 "                          int blocksize);\n"
24248 "\n"
24249 msgstr ""
24250
24251 #. type: =head2
24252 #: ../src/guestfs-actions.pod:802
24253 msgid "guestfs_blockdev_setro"
24254 msgstr ""
24255
24256 #. type: verbatim
24257 #: ../src/guestfs-actions.pod:804
24258 #, no-wrap
24259 msgid ""
24260 " int\n"
24261 " guestfs_blockdev_setro (guestfs_h *g,\n"
24262 "                         const char *device);\n"
24263 "\n"
24264 msgstr ""
24265
24266 #. type: =head2
24267 #: ../src/guestfs-actions.pod:816
24268 msgid "guestfs_blockdev_setrw"
24269 msgstr ""
24270
24271 #. type: verbatim
24272 #: ../src/guestfs-actions.pod:818
24273 #, no-wrap
24274 msgid ""
24275 " int\n"
24276 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24277 "                         const char *device);\n"
24278 "\n"
24279 msgstr ""
24280
24281 #. type: =head2
24282 #: ../src/guestfs-actions.pod:830
24283 msgid "guestfs_btrfs_filesystem_resize"
24284 msgstr ""
24285
24286 #. type: verbatim
24287 #: ../src/guestfs-actions.pod:832
24288 #, no-wrap
24289 msgid ""
24290 " int\n"
24291 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24292 "                                  const char *mountpoint,\n"
24293 "                                  ...);\n"
24294 "\n"
24295 msgstr ""
24296
24297 #. type: verbatim
24298 #: ../src/guestfs-actions.pod:842
24299 #, no-wrap
24300 msgid ""
24301 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24302 "\n"
24303 msgstr ""
24304
24305 #. type: textblock
24306 #: ../src/guestfs-actions.pod:865
24307 msgid "(Added in 1.11.17)"
24308 msgstr ""
24309
24310 #. type: =head2
24311 #: ../src/guestfs-actions.pod:867
24312 msgid "guestfs_btrfs_filesystem_resize_va"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../src/guestfs-actions.pod:869
24317 #, no-wrap
24318 msgid ""
24319 " int\n"
24320 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24321 "                                     const char *mountpoint,\n"
24322 "                                     va_list args);\n"
24323 "\n"
24324 msgstr ""
24325
24326 #. type: textblock
24327 #: ../src/guestfs-actions.pod:874
24328 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24329 msgstr ""
24330
24331 #. type: =head2
24332 #: ../src/guestfs-actions.pod:878
24333 msgid "guestfs_btrfs_filesystem_resize_argv"
24334 msgstr ""
24335
24336 #. type: verbatim
24337 #: ../src/guestfs-actions.pod:880
24338 #, no-wrap
24339 msgid ""
24340 " int\n"
24341 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24342 "                                       const char *mountpoint,\n"
24343 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24344 "\n"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../src/guestfs-actions.pod:885
24349 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24350 msgstr ""
24351
24352 #. type: =head2
24353 #: ../src/guestfs-actions.pod:889
24354 msgid "guestfs_case_sensitive_path"
24355 msgstr ""
24356
24357 #. type: verbatim
24358 #: ../src/guestfs-actions.pod:891
24359 #, no-wrap
24360 msgid ""
24361 " char *\n"
24362 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24363 "                              const char *path);\n"
24364 "\n"
24365 msgstr ""
24366
24367 #. type: textblock
24368 #: ../src/guestfs-actions.pod:917
24369 msgid ""
24370 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24371 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24372 "how the directories were originally created under Windows)."
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../src/guestfs-actions.pod:925
24377 msgid "See also C<guestfs_realpath>."
24378 msgstr ""
24379
24380 #. type: textblock
24381 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7414
24382 msgid "(Added in 1.0.75)"
24383 msgstr ""
24384
24385 #. type: =head2
24386 #: ../src/guestfs-actions.pod:932
24387 msgid "guestfs_cat"
24388 msgstr ""
24389
24390 #. type: verbatim
24391 #: ../src/guestfs-actions.pod:934
24392 #, no-wrap
24393 msgid ""
24394 " char *\n"
24395 " guestfs_cat (guestfs_h *g,\n"
24396 "              const char *path);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../src/guestfs-actions.pod:940
24402 msgid ""
24403 "Note that this function cannot correctly handle binary files (specifically, "
24404 "files containing C<\\0> character which is treated as end of string).  For "
24405 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24406 "functions which have a more complex interface."
24407 msgstr ""
24408
24409 #. type: textblock
24410 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3767
24411 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3866
24412 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362
24413 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:5747
24414 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:7567
24415 #: ../src/guestfs-actions.pod:7581
24416 msgid "(Added in 0.4)"
24417 msgstr ""
24418
24419 #. type: =head2
24420 #: ../src/guestfs-actions.pod:953
24421 msgid "guestfs_checksum"
24422 msgstr ""
24423
24424 #. type: verbatim
24425 #: ../src/guestfs-actions.pod:955
24426 #, no-wrap
24427 msgid ""
24428 " char *\n"
24429 " guestfs_checksum (guestfs_h *g,\n"
24430 "                   const char *csumtype,\n"
24431 "                   const char *path);\n"
24432 "\n"
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../src/guestfs-actions.pod:1001
24437 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24438 msgstr ""
24439
24440 #. type: textblock
24441 #: ../src/guestfs-actions.pod:1003
24442 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24447 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3465
24448 #: ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555
24449 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:7270
24450 msgid "(Added in 1.0.2)"
24451 msgstr ""
24452
24453 #. type: =head2
24454 #: ../src/guestfs-actions.pod:1010
24455 msgid "guestfs_checksum_device"
24456 msgstr ""
24457
24458 #. type: verbatim
24459 #: ../src/guestfs-actions.pod:1012
24460 #, no-wrap
24461 msgid ""
24462 " char *\n"
24463 " guestfs_checksum_device (guestfs_h *g,\n"
24464 "                          const char *csumtype,\n"
24465 "                          const char *device);\n"
24466 "\n"
24467 msgstr ""
24468
24469 #. type: textblock
24470 #: ../src/guestfs-actions.pod:1017
24471 msgid ""
24472 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24473 "device named C<device>.  For the types of checksums supported see the "
24474 "C<guestfs_checksum> command."
24475 msgstr ""
24476
24477 #. type: textblock
24478 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5196
24479 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5368
24480 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5568
24481 #: ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7193
24482 #: ../src/guestfs-actions.pod:7593
24483 msgid "(Added in 1.3.2)"
24484 msgstr ""
24485
24486 #. type: =head2
24487 #: ../src/guestfs-actions.pod:1026
24488 msgid "guestfs_checksums_out"
24489 msgstr ""
24490
24491 #. type: verbatim
24492 #: ../src/guestfs-actions.pod:1028
24493 #, no-wrap
24494 msgid ""
24495 " int\n"
24496 " guestfs_checksums_out (guestfs_h *g,\n"
24497 "                        const char *csumtype,\n"
24498 "                        const char *directory,\n"
24499 "                        const char *sumsfile);\n"
24500 "\n"
24501 msgstr ""
24502
24503 #. type: textblock
24504 #: ../src/guestfs-actions.pod:1048
24505 msgid "(Added in 1.3.7)"
24506 msgstr ""
24507
24508 #. type: =head2
24509 #: ../src/guestfs-actions.pod:1050
24510 msgid "guestfs_chmod"
24511 msgstr ""
24512
24513 #. type: verbatim
24514 #: ../src/guestfs-actions.pod:1052
24515 #, no-wrap
24516 msgid ""
24517 " int\n"
24518 " guestfs_chmod (guestfs_h *g,\n"
24519 "                int mode,\n"
24520 "                const char *path);\n"
24521 "\n"
24522 msgstr ""
24523
24524 #. type: =head2
24525 #: ../src/guestfs-actions.pod:1070
24526 msgid "guestfs_chown"
24527 msgstr ""
24528
24529 #. type: verbatim
24530 #: ../src/guestfs-actions.pod:1072
24531 #, no-wrap
24532 msgid ""
24533 " int\n"
24534 " guestfs_chown (guestfs_h *g,\n"
24535 "                int owner,\n"
24536 "                int group,\n"
24537 "                const char *path);\n"
24538 "\n"
24539 msgstr ""
24540
24541 #. type: =head2
24542 #: ../src/guestfs-actions.pod:1088
24543 msgid "guestfs_command"
24544 msgstr ""
24545
24546 #. type: verbatim
24547 #: ../src/guestfs-actions.pod:1090
24548 #, no-wrap
24549 msgid ""
24550 " char *\n"
24551 " guestfs_command (guestfs_h *g,\n"
24552 "                  char *const *arguments);\n"
24553 "\n"
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../src/guestfs-actions.pod:1099
24558 msgid ""
24559 "The single parameter is an argv-style list of arguments.  The first element "
24560 "is the name of the program to run.  Subsequent elements are parameters.  The "
24561 "list must be non-empty (ie. must contain a program name).  Note that the "
24562 "command runs directly, and is I<not> invoked via the shell (see "
24563 "C<guestfs_sh>)."
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24568 #: ../src/guestfs-actions.pod:1615
24569 msgid "(Added in 0.9.1)"
24570 msgstr ""
24571
24572 #. type: =head2
24573 #: ../src/guestfs-actions.pod:1132
24574 msgid "guestfs_command_lines"
24575 msgstr ""
24576
24577 #. type: verbatim
24578 #: ../src/guestfs-actions.pod:1134
24579 #, no-wrap
24580 msgid ""
24581 " char **\n"
24582 " guestfs_command_lines (guestfs_h *g,\n"
24583 "                        char *const *arguments);\n"
24584 "\n"
24585 msgstr ""
24586
24587 #. type: textblock
24588 #: ../src/guestfs-actions.pod:1138
24589 msgid ""
24590 "This is the same as C<guestfs_command>, but splits the result into a list of "
24591 "lines."
24592 msgstr ""
24593
24594 #. type: textblock
24595 #: ../src/guestfs-actions.pod:1141
24596 msgid "See also: C<guestfs_sh_lines>"
24597 msgstr ""
24598
24599 #. type: =head2
24600 #: ../src/guestfs-actions.pod:1152
24601 msgid "guestfs_config"
24602 msgstr ""
24603
24604 #. type: verbatim
24605 #: ../src/guestfs-actions.pod:1154
24606 #, no-wrap
24607 msgid ""
24608 " int\n"
24609 " guestfs_config (guestfs_h *g,\n"
24610 "                 const char *qemuparam,\n"
24611 "                 const char *qemuvalue);\n"
24612 "\n"
24613 msgstr ""
24614
24615 #. type: =head2
24616 #: ../src/guestfs-actions.pod:1172
24617 msgid "guestfs_copy_size"
24618 msgstr ""
24619
24620 #. type: verbatim
24621 #: ../src/guestfs-actions.pod:1174
24622 #, no-wrap
24623 msgid ""
24624 " int\n"
24625 " guestfs_copy_size (guestfs_h *g,\n"
24626 "                    const char *src,\n"
24627 "                    const char *dest,\n"
24628 "                    int64_t size);\n"
24629 "\n"
24630 msgstr ""
24631
24632 #. type: textblock
24633 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24634 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24635 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24636 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:7265
24637 #: ../src/guestfs-actions.pod:7299 ../src/guestfs-actions.pod:7806
24638 #: ../src/guestfs-actions.pod:7829
24639 msgid ""
24640 "This long-running command can generate progress notification messages so "
24641 "that the caller can display a progress bar or indicator.  To receive these "
24642 "messages, the caller must register a progress event callback.  See L<guestfs"
24643 "(3)/GUESTFS_EVENT_PROGRESS>."
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4389
24648 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:7500
24649 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7606
24650 msgid "(Added in 1.0.87)"
24651 msgstr ""
24652
24653 #. type: =head2
24654 #: ../src/guestfs-actions.pod:1195
24655 msgid "guestfs_cp"
24656 msgstr ""
24657
24658 #. type: verbatim
24659 #: ../src/guestfs-actions.pod:1197
24660 #, no-wrap
24661 msgid ""
24662 " int\n"
24663 " guestfs_cp (guestfs_h *g,\n"
24664 "             const char *src,\n"
24665 "             const char *dest);\n"
24666 "\n"
24667 msgstr ""
24668
24669 #. type: textblock
24670 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24671 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24672 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5143
24673 #: ../src/guestfs-actions.pod:5618
24674 msgid "(Added in 1.0.18)"
24675 msgstr ""
24676
24677 #. type: =head2
24678 #: ../src/guestfs-actions.pod:1209
24679 msgid "guestfs_cp_a"
24680 msgstr ""
24681
24682 #. type: verbatim
24683 #: ../src/guestfs-actions.pod:1211
24684 #, no-wrap
24685 msgid ""
24686 " int\n"
24687 " guestfs_cp_a (guestfs_h *g,\n"
24688 "               const char *src,\n"
24689 "               const char *dest);\n"
24690 "\n"
24691 msgstr ""
24692
24693 #. type: =head2
24694 #: ../src/guestfs-actions.pod:1223
24695 msgid "guestfs_dd"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../src/guestfs-actions.pod:1225
24700 #, no-wrap
24701 msgid ""
24702 " int\n"
24703 " guestfs_dd (guestfs_h *g,\n"
24704 "             const char *src,\n"
24705 "             const char *dest);\n"
24706 "\n"
24707 msgstr ""
24708
24709 #. type: textblock
24710 #: ../src/guestfs-actions.pod:1235
24711 msgid ""
24712 "If the destination is a device, it must be as large or larger than the "
24713 "source file or device, otherwise the copy will fail.  This command cannot do "
24714 "partial copies (see C<guestfs_copy_size>)."
24715 msgstr ""
24716
24717 #. type: =head2
24718 #: ../src/guestfs-actions.pod:1243
24719 msgid "guestfs_df"
24720 msgstr ""
24721
24722 #. type: verbatim
24723 #: ../src/guestfs-actions.pod:1245
24724 #, no-wrap
24725 msgid ""
24726 " char *\n"
24727 " guestfs_df (guestfs_h *g);\n"
24728 "\n"
24729 msgstr ""
24730
24731 #. type: textblock
24732 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24733 msgid ""
24734 "This command is mostly useful for interactive sessions.  It is I<not> "
24735 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24736 "from programs."
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24741 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
24742 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
24743 #: ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:5043
24744 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7027
24745 #: ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7659
24746 #: ../src/guestfs-actions.pod:7672
24747 msgid "(Added in 1.0.54)"
24748 msgstr ""
24749
24750 #. type: =head2
24751 #: ../src/guestfs-actions.pod:1259
24752 msgid "guestfs_df_h"
24753 msgstr ""
24754
24755 #. type: verbatim
24756 #: ../src/guestfs-actions.pod:1261
24757 #, no-wrap
24758 msgid ""
24759 " char *\n"
24760 " guestfs_df_h (guestfs_h *g);\n"
24761 "\n"
24762 msgstr ""
24763
24764 #. type: =head2
24765 #: ../src/guestfs-actions.pod:1276
24766 msgid "guestfs_dmesg"
24767 msgstr ""
24768
24769 #. type: verbatim
24770 #: ../src/guestfs-actions.pod:1278
24771 #, no-wrap
24772 msgid ""
24773 " char *\n"
24774 " guestfs_dmesg (guestfs_h *g);\n"
24775 "\n"
24776 msgstr ""
24777
24778 #. type: textblock
24779 #: ../src/guestfs-actions.pod:1285
24780 msgid ""
24781 "Another way to get the same information is to enable verbose messages with "
24782 "C<guestfs_set_verbose> or by setting the environment variable "
24783 "C<LIBGUESTFS_DEBUG=1> before running the program."
24784 msgstr ""
24785
24786 #. type: =head2
24787 #: ../src/guestfs-actions.pod:1295
24788 msgid "guestfs_download"
24789 msgstr ""
24790
24791 #. type: verbatim
24792 #: ../src/guestfs-actions.pod:1297
24793 #, no-wrap
24794 msgid ""
24795 " int\n"
24796 " guestfs_download (guestfs_h *g,\n"
24797 "                   const char *remotefilename,\n"
24798 "                   const char *filename);\n"
24799 "\n"
24800 msgstr ""
24801
24802 #. type: textblock
24803 #: ../src/guestfs-actions.pod:1307
24804 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24805 msgstr ""
24806
24807 #. type: =head2
24808 #: ../src/guestfs-actions.pod:1318
24809 msgid "guestfs_download_offset"
24810 msgstr ""
24811
24812 #. type: verbatim
24813 #: ../src/guestfs-actions.pod:1320
24814 #, no-wrap
24815 msgid ""
24816 " int\n"
24817 " guestfs_download_offset (guestfs_h *g,\n"
24818 "                          const char *remotefilename,\n"
24819 "                          const char *filename,\n"
24820 "                          int64_t offset,\n"
24821 "                          int64_t size);\n"
24822 "\n"
24823 msgstr ""
24824
24825 #. type: textblock
24826 #: ../src/guestfs-actions.pod:1333
24827 msgid ""
24828 "Note that there is no limit on the amount of data that can be downloaded "
24829 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24830 "full amount unless an error occurs."
24831 msgstr ""
24832
24833 #. type: textblock
24834 #: ../src/guestfs-actions.pod:1338
24835 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24836 msgstr ""
24837
24838 #. type: textblock
24839 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7304
24840 msgid "(Added in 1.5.17)"
24841 msgstr ""
24842
24843 #. type: =head2
24844 #: ../src/guestfs-actions.pod:1349
24845 msgid "guestfs_drop_caches"
24846 msgstr ""
24847
24848 #. type: verbatim
24849 #: ../src/guestfs-actions.pod:1351
24850 #, no-wrap
24851 msgid ""
24852 " int\n"
24853 " guestfs_drop_caches (guestfs_h *g,\n"
24854 "                      int whattodrop);\n"
24855 "\n"
24856 msgstr ""
24857
24858 #. type: =head2
24859 #: ../src/guestfs-actions.pod:1369
24860 msgid "guestfs_du"
24861 msgstr ""
24862
24863 #. type: verbatim
24864 #: ../src/guestfs-actions.pod:1371
24865 #, no-wrap
24866 msgid ""
24867 " int64_t\n"
24868 " guestfs_du (guestfs_h *g,\n"
24869 "             const char *path);\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: =head2
24874 #: ../src/guestfs-actions.pod:1394
24875 msgid "guestfs_e2fsck_f"
24876 msgstr ""
24877
24878 #. type: verbatim
24879 #: ../src/guestfs-actions.pod:1396
24880 #, no-wrap
24881 msgid ""
24882 " int\n"
24883 " guestfs_e2fsck_f (guestfs_h *g,\n"
24884 "                   const char *device);\n"
24885 "\n"
24886 msgstr ""
24887
24888 #. type: textblock
24889 #: ../src/guestfs-actions.pod:1404
24890 msgid ""
24891 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24892 "Normally you should use C<guestfs_fsck>."
24893 msgstr ""
24894
24895 #. type: textblock
24896 #: ../src/guestfs-actions.pod:1409
24897 msgid "(Added in 1.0.29)"
24898 msgstr ""
24899
24900 #. type: =head2
24901 #: ../src/guestfs-actions.pod:1411
24902 msgid "guestfs_echo_daemon"
24903 msgstr ""
24904
24905 #. type: verbatim
24906 #: ../src/guestfs-actions.pod:1413
24907 #, no-wrap
24908 msgid ""
24909 " char *\n"
24910 " guestfs_echo_daemon (guestfs_h *g,\n"
24911 "                      char *const *words);\n"
24912 "\n"
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../src/guestfs-actions.pod:1422
24917 msgid "See also C<guestfs_ping_daemon>."
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24922 #: ../src/guestfs-actions.pod:6475
24923 msgid "(Added in 1.0.69)"
24924 msgstr ""
24925
24926 #. type: =head2
24927 #: ../src/guestfs-actions.pod:1429
24928 msgid "guestfs_egrep"
24929 msgstr ""
24930
24931 #. type: verbatim
24932 #: ../src/guestfs-actions.pod:1431
24933 #, no-wrap
24934 msgid ""
24935 " char **\n"
24936 " guestfs_egrep (guestfs_h *g,\n"
24937 "                const char *regex,\n"
24938 "                const char *path);\n"
24939 "\n"
24940 msgstr ""
24941
24942 #. type: textblock
24943 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24944 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24945 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24946 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
24947 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
24948 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
24949 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3879
24950 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3906
24951 #: ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4921
24952 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6001
24953 #: ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6883
24954 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909
24955 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6944
24956 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6970
24957 #: ../src/guestfs-actions.pod:7764 ../src/guestfs-actions.pod:7783
24958 #: ../src/guestfs-actions.pod:7877 ../src/guestfs-actions.pod:7896
24959 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7961
24960 msgid "(Added in 1.0.66)"
24961 msgstr ""
24962
24963 #. type: =head2
24964 #: ../src/guestfs-actions.pod:1448
24965 msgid "guestfs_egrepi"
24966 msgstr ""
24967
24968 #. type: verbatim
24969 #: ../src/guestfs-actions.pod:1450
24970 #, no-wrap
24971 msgid ""
24972 " char **\n"
24973 " guestfs_egrepi (guestfs_h *g,\n"
24974 "                 const char *regex,\n"
24975 "                 const char *path);\n"
24976 "\n"
24977 msgstr ""
24978
24979 #. type: =head2
24980 #: ../src/guestfs-actions.pod:1467
24981 msgid "guestfs_equal"
24982 msgstr ""
24983
24984 #. type: verbatim
24985 #: ../src/guestfs-actions.pod:1469
24986 #, no-wrap
24987 msgid ""
24988 " int\n"
24989 " guestfs_equal (guestfs_h *g,\n"
24990 "                const char *file1,\n"
24991 "                const char *file2);\n"
24992 "\n"
24993 msgstr ""
24994
24995 #. type: =head2
24996 #: ../src/guestfs-actions.pod:1483
24997 msgid "guestfs_exists"
24998 msgstr ""
24999
25000 #. type: verbatim
25001 #: ../src/guestfs-actions.pod:1485
25002 #, no-wrap
25003 msgid ""
25004 " int\n"
25005 " guestfs_exists (guestfs_h *g,\n"
25006 "                 const char *path);\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: textblock
25011 #: ../src/guestfs-actions.pod:1492
25012 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25013 msgstr ""
25014
25015 #. type: =head2
25016 #: ../src/guestfs-actions.pod:1498
25017 msgid "guestfs_fallocate"
25018 msgstr ""
25019
25020 #. type: verbatim
25021 #: ../src/guestfs-actions.pod:1500
25022 #, no-wrap
25023 msgid ""
25024 " int\n"
25025 " guestfs_fallocate (guestfs_h *g,\n"
25026 "                    const char *path,\n"
25027 "                    int len);\n"
25028 "\n"
25029 msgstr ""
25030
25031 #. type: textblock
25032 #: ../src/guestfs-actions.pod:1515
25033 msgid ""
25034 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
25035 "call instead."
25036 msgstr ""
25037
25038 #. type: =head2
25039 #: ../src/guestfs-actions.pod:1524
25040 msgid "guestfs_fallocate64"
25041 msgstr ""
25042
25043 #. type: verbatim
25044 #: ../src/guestfs-actions.pod:1526
25045 #, no-wrap
25046 msgid ""
25047 " int\n"
25048 " guestfs_fallocate64 (guestfs_h *g,\n"
25049 "                      const char *path,\n"
25050 "                      int64_t len);\n"
25051 "\n"
25052 msgstr ""
25053
25054 #. type: textblock
25055 #: ../src/guestfs-actions.pod:1535
25056 msgid ""
25057 "Note that this call allocates disk blocks for the file.  To create a sparse "
25058 "file use C<guestfs_truncate_size> instead."
25059 msgstr ""
25060
25061 #. type: textblock
25062 #: ../src/guestfs-actions.pod:1538
25063 msgid ""
25064 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25065 "oversight it only allowed 30 bit lengths to be specified, effectively "
25066 "limiting the maximum size of files created through that call to 1GB."
25067 msgstr ""
25068
25069 #. type: textblock
25070 #: ../src/guestfs-actions.pod:1549
25071 msgid "(Added in 1.3.17)"
25072 msgstr ""
25073
25074 #. type: =head2
25075 #: ../src/guestfs-actions.pod:1551
25076 msgid "guestfs_fgrep"
25077 msgstr ""
25078
25079 #. type: verbatim
25080 #: ../src/guestfs-actions.pod:1553
25081 #, no-wrap
25082 msgid ""
25083 " char **\n"
25084 " guestfs_fgrep (guestfs_h *g,\n"
25085 "                const char *pattern,\n"
25086 "                const char *path);\n"
25087 "\n"
25088 msgstr ""
25089
25090 #. type: =head2
25091 #: ../src/guestfs-actions.pod:1570
25092 msgid "guestfs_fgrepi"
25093 msgstr ""
25094
25095 #. type: verbatim
25096 #: ../src/guestfs-actions.pod:1572
25097 #, no-wrap
25098 msgid ""
25099 " char **\n"
25100 " guestfs_fgrepi (guestfs_h *g,\n"
25101 "                 const char *pattern,\n"
25102 "                 const char *path);\n"
25103 "\n"
25104 msgstr ""
25105
25106 #. type: =head2
25107 #: ../src/guestfs-actions.pod:1589
25108 msgid "guestfs_file"
25109 msgstr ""
25110
25111 #. type: verbatim
25112 #: ../src/guestfs-actions.pod:1591
25113 #, no-wrap
25114 msgid ""
25115 " char *\n"
25116 " guestfs_file (guestfs_h *g,\n"
25117 "               const char *path);\n"
25118 "\n"
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../src/guestfs-actions.pod:1609
25123 msgid ""
25124 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25125 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25126 msgstr ""
25127
25128 #. type: =head2
25129 #: ../src/guestfs-actions.pod:1617
25130 msgid "guestfs_file_architecture"
25131 msgstr ""
25132
25133 #. type: verbatim
25134 #: ../src/guestfs-actions.pod:1619
25135 #, no-wrap
25136 msgid ""
25137 " char *\n"
25138 " guestfs_file_architecture (guestfs_h *g,\n"
25139 "                            const char *filename);\n"
25140 "\n"
25141 msgstr ""
25142
25143 #. type: textblock
25144 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25145 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
25146 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2786
25147 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2991
25148 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3106
25149 #: ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3436
25150 #: ../src/guestfs-actions.pod:3568
25151 msgid "(Added in 1.5.3)"
25152 msgstr ""
25153
25154 #. type: =head2
25155 #: ../src/guestfs-actions.pod:1729
25156 msgid "guestfs_filesize"
25157 msgstr ""
25158
25159 #. type: verbatim
25160 #: ../src/guestfs-actions.pod:1731
25161 #, no-wrap
25162 msgid ""
25163 " int64_t\n"
25164 " guestfs_filesize (guestfs_h *g,\n"
25165 "                   const char *file);\n"
25166 "\n"
25167 msgstr ""
25168
25169 #. type: textblock
25170 #: ../src/guestfs-actions.pod:1737
25171 msgid ""
25172 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25173 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25174 "devices, use C<guestfs_blockdev_getsize64>."
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../src/guestfs-actions.pod:1743
25179 msgid "(Added in 1.0.82)"
25180 msgstr ""
25181
25182 #. type: =head2
25183 #: ../src/guestfs-actions.pod:1745
25184 msgid "guestfs_fill"
25185 msgstr ""
25186
25187 #. type: verbatim
25188 #: ../src/guestfs-actions.pod:1747
25189 #, no-wrap
25190 msgid ""
25191 " int\n"
25192 " guestfs_fill (guestfs_h *g,\n"
25193 "               int c,\n"
25194 "               int len,\n"
25195 "               const char *path);\n"
25196 "\n"
25197 msgstr ""
25198
25199 #. type: textblock
25200 #: ../src/guestfs-actions.pod:1757
25201 msgid ""
25202 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25203 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25204 "bytes use C<guestfs_fill_pattern>."
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../src/guestfs-actions.pod:1769
25209 msgid "(Added in 1.0.79)"
25210 msgstr ""
25211
25212 #. type: =head2
25213 #: ../src/guestfs-actions.pod:1771
25214 msgid "guestfs_fill_pattern"
25215 msgstr ""
25216
25217 #. type: verbatim
25218 #: ../src/guestfs-actions.pod:1773
25219 #, no-wrap
25220 msgid ""
25221 " int\n"
25222 " guestfs_fill_pattern (guestfs_h *g,\n"
25223 "                       const char *pattern,\n"
25224 "                       int len,\n"
25225 "                       const char *path);\n"
25226 "\n"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../src/guestfs-actions.pod:1779
25231 msgid ""
25232 "This function is like C<guestfs_fill> except that it creates a new file of "
25233 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25234 "pattern is truncated if necessary to ensure the length of the file is "
25235 "exactly C<len> bytes."
25236 msgstr ""
25237
25238 #. type: textblock
25239 #: ../src/guestfs-actions.pod:1791
25240 msgid "(Added in 1.3.12)"
25241 msgstr ""
25242
25243 #. type: =head2
25244 #: ../src/guestfs-actions.pod:1793
25245 msgid "guestfs_find"
25246 msgstr ""
25247
25248 #. type: verbatim
25249 #: ../src/guestfs-actions.pod:1795
25250 #, no-wrap
25251 msgid ""
25252 " char **\n"
25253 " guestfs_find (guestfs_h *g,\n"
25254 "               const char *directory);\n"
25255 "\n"
25256 msgstr ""
25257
25258 #. type: textblock
25259 #: ../src/guestfs-actions.pod:1811
25260 msgid ""
25261 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25262 msgstr ""
25263
25264 #. type: textblock
25265 #: ../src/guestfs-actions.pod:1824
25266 msgid "See also C<guestfs_find0>."
25267 msgstr ""
25268
25269 #. type: textblock
25270 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4326
25271 #: ../src/guestfs-actions.pod:6036
25272 msgid "(Added in 1.0.27)"
25273 msgstr ""
25274
25275 #. type: =head2
25276 #: ../src/guestfs-actions.pod:1835
25277 msgid "guestfs_find0"
25278 msgstr ""
25279
25280 #. type: verbatim
25281 #: ../src/guestfs-actions.pod:1837
25282 #, no-wrap
25283 msgid ""
25284 " int\n"
25285 " guestfs_find0 (guestfs_h *g,\n"
25286 "                const char *directory,\n"
25287 "                const char *files);\n"
25288 "\n"
25289 msgstr ""
25290
25291 #. type: textblock
25292 #: ../src/guestfs-actions.pod:1846
25293 msgid ""
25294 "This command works the same way as C<guestfs_find> with the following "
25295 "exceptions:"
25296 msgstr ""
25297
25298 #. type: textblock
25299 #: ../src/guestfs-actions.pod:1873
25300 msgid "(Added in 1.0.74)"
25301 msgstr ""
25302
25303 #. type: =head2
25304 #: ../src/guestfs-actions.pod:1875
25305 msgid "guestfs_findfs_label"
25306 msgstr ""
25307
25308 #. type: verbatim
25309 #: ../src/guestfs-actions.pod:1877
25310 #, no-wrap
25311 msgid ""
25312 " char *\n"
25313 " guestfs_findfs_label (guestfs_h *g,\n"
25314 "                       const char *label);\n"
25315 "\n"
25316 msgstr ""
25317
25318 #. type: textblock
25319 #: ../src/guestfs-actions.pod:1885
25320 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25321 msgstr ""
25322
25323 #. type: =head2
25324 #: ../src/guestfs-actions.pod:1892
25325 msgid "guestfs_findfs_uuid"
25326 msgstr ""
25327
25328 #. type: verbatim
25329 #: ../src/guestfs-actions.pod:1894
25330 #, no-wrap
25331 msgid ""
25332 " char *\n"
25333 " guestfs_findfs_uuid (guestfs_h *g,\n"
25334 "                      const char *uuid);\n"
25335 "\n"
25336 msgstr ""
25337
25338 #. type: textblock
25339 #: ../src/guestfs-actions.pod:1902
25340 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25341 msgstr ""
25342
25343 #. type: =head2
25344 #: ../src/guestfs-actions.pod:1909
25345 msgid "guestfs_fsck"
25346 msgstr ""
25347
25348 #. type: verbatim
25349 #: ../src/guestfs-actions.pod:1911
25350 #, no-wrap
25351 msgid ""
25352 " int\n"
25353 " guestfs_fsck (guestfs_h *g,\n"
25354 "               const char *fstype,\n"
25355 "               const char *device);\n"
25356 "\n"
25357 msgstr ""
25358
25359 #. type: textblock
25360 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7811
25361 msgid "(Added in 1.0.16)"
25362 msgstr ""
25363
25364 #. type: =head2
25365 #: ../src/guestfs-actions.pod:1948
25366 msgid "guestfs_get_append"
25367 msgstr ""
25368
25369 #. type: verbatim
25370 #: ../src/guestfs-actions.pod:1950
25371 #, no-wrap
25372 msgid ""
25373 " const char *\n"
25374 " guestfs_get_append (guestfs_h *g);\n"
25375 "\n"
25376 msgstr ""
25377
25378 #. type: textblock
25379 #: ../src/guestfs-actions.pod:1958
25380 msgid ""
25381 "This function returns a string which may be NULL.  There is no way to return "
25382 "an error from this function.  The string is owned by the guest handle and "
25383 "must I<not> be freed."
25384 msgstr ""
25385
25386 #. type: textblock
25387 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5714
25388 #: ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6638
25389 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6673
25390 #: ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:7451
25391 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7858
25392 msgid "(Added in 1.0.26)"
25393 msgstr ""
25394
25395 #. type: =head2
25396 #: ../src/guestfs-actions.pod:1964
25397 msgid "guestfs_get_attach_method"
25398 msgstr ""
25399
25400 #. type: verbatim
25401 #: ../src/guestfs-actions.pod:1966
25402 #, no-wrap
25403 msgid ""
25404 " char *\n"
25405 " guestfs_get_attach_method (guestfs_h *g);\n"
25406 "\n"
25407 msgstr ""
25408
25409 #. type: textblock
25410 #: ../src/guestfs-actions.pod:1969
25411 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25412 msgstr ""
25413
25414 #. type: textblock
25415 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6226
25416 msgid "(Added in 1.9.8)"
25417 msgstr ""
25418
25419 #. type: =head2
25420 #: ../src/guestfs-actions.pod:1976
25421 msgid "guestfs_get_autosync"
25422 msgstr ""
25423
25424 #. type: verbatim
25425 #: ../src/guestfs-actions.pod:1978
25426 #, no-wrap
25427 msgid ""
25428 " int\n"
25429 " guestfs_get_autosync (guestfs_h *g);\n"
25430 "\n"
25431 msgstr ""
25432
25433 #. type: =head2
25434 #: ../src/guestfs-actions.pod:1987
25435 msgid "guestfs_get_direct"
25436 msgstr ""
25437
25438 #. type: verbatim
25439 #: ../src/guestfs-actions.pod:1989
25440 #, no-wrap
25441 msgid ""
25442 " int\n"
25443 " guestfs_get_direct (guestfs_h *g);\n"
25444 "\n"
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6267
25449 msgid "(Added in 1.0.72)"
25450 msgstr ""
25451
25452 #. type: =head2
25453 #: ../src/guestfs-actions.pod:1998
25454 msgid "guestfs_get_e2label"
25455 msgstr ""
25456
25457 #. type: verbatim
25458 #: ../src/guestfs-actions.pod:2000
25459 #, no-wrap
25460 msgid ""
25461 " char *\n"
25462 " guestfs_get_e2label (guestfs_h *g,\n"
25463 "                      const char *device);\n"
25464 "\n"
25465 msgstr ""
25466
25467 #. type: textblock
25468 #: ../src/guestfs-actions.pod:2010
25469 msgid ""
25470 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
25471 "call instead."
25472 msgstr ""
25473
25474 #. type: textblock
25475 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25476 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
25477 msgid "(Added in 1.0.15)"
25478 msgstr ""
25479
25480 #. type: =head2
25481 #: ../src/guestfs-actions.pod:2019
25482 msgid "guestfs_get_e2uuid"
25483 msgstr ""
25484
25485 #. type: verbatim
25486 #: ../src/guestfs-actions.pod:2021
25487 #, no-wrap
25488 msgid ""
25489 " char *\n"
25490 " guestfs_get_e2uuid (guestfs_h *g,\n"
25491 "                     const char *device);\n"
25492 "\n"
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:2031
25497 msgid ""
25498 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
25499 "instead."
25500 msgstr ""
25501
25502 #. type: =head2
25503 #: ../src/guestfs-actions.pod:2040
25504 msgid "guestfs_get_memsize"
25505 msgstr ""
25506
25507 #. type: verbatim
25508 #: ../src/guestfs-actions.pod:2042
25509 #, no-wrap
25510 msgid ""
25511 " int\n"
25512 " guestfs_get_memsize (guestfs_h *g);\n"
25513 "\n"
25514 msgstr ""
25515
25516 #. type: textblock
25517 #: ../src/guestfs-actions.pod:2048
25518 msgid ""
25519 "If C<guestfs_set_memsize> was not called on this handle, and if "
25520 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25521 "value for memsize."
25522 msgstr ""
25523
25524 #. type: textblock
25525 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4617
25526 #: ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845
25527 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4876
25528 #: ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906
25529 #: ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6325
25530 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7220
25531 msgid "(Added in 1.0.55)"
25532 msgstr ""
25533
25534 #. type: =head2
25535 #: ../src/guestfs-actions.pod:2059
25536 msgid "guestfs_get_network"
25537 msgstr ""
25538
25539 #. type: verbatim
25540 #: ../src/guestfs-actions.pod:2061
25541 #, no-wrap
25542 msgid ""
25543 " int\n"
25544 " guestfs_get_network (guestfs_h *g);\n"
25545 "\n"
25546 msgstr ""
25547
25548 #. type: textblock
25549 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6344
25550 msgid "(Added in 1.5.4)"
25551 msgstr ""
25552
25553 #. type: =head2
25554 #: ../src/guestfs-actions.pod:2070
25555 msgid "guestfs_get_path"
25556 msgstr ""
25557
25558 #. type: verbatim
25559 #: ../src/guestfs-actions.pod:2072
25560 #, no-wrap
25561 msgid ""
25562 " const char *\n"
25563 " guestfs_get_path (guestfs_h *g);\n"
25564 "\n"
25565 msgstr ""
25566
25567 #. type: textblock
25568 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25569 msgid ""
25570 "This function returns a string, or NULL on error.  The string is owned by "
25571 "the guest handle and must I<not> be freed."
25572 msgstr ""
25573
25574 #. type: =head2
25575 #: ../src/guestfs-actions.pod:2085
25576 msgid "guestfs_get_pgroup"
25577 msgstr ""
25578
25579 #. type: verbatim
25580 #: ../src/guestfs-actions.pod:2087
25581 #, no-wrap
25582 msgid ""
25583 " int\n"
25584 " guestfs_get_pgroup (guestfs_h *g);\n"
25585 "\n"
25586 msgstr ""
25587
25588 #. type: textblock
25589 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6380
25590 #: ../src/guestfs-actions.pod:7712
25591 #, fuzzy
25592 #| msgid "(Added in 1.5.1)"
25593 msgid "(Added in 1.11.18)"
25594 msgstr "(Додано у 1.5.1)"
25595
25596 #. type: =head2
25597 #: ../src/guestfs-actions.pod:2096
25598 msgid "guestfs_get_pid"
25599 msgstr ""
25600
25601 #. type: verbatim
25602 #: ../src/guestfs-actions.pod:2098
25603 #, no-wrap
25604 msgid ""
25605 " int\n"
25606 " guestfs_get_pid (guestfs_h *g);\n"
25607 "\n"
25608 msgstr ""
25609
25610 #. type: textblock
25611 #: ../src/guestfs-actions.pod:2108
25612 msgid "(Added in 1.0.56)"
25613 msgstr ""
25614
25615 #. type: =head2
25616 #: ../src/guestfs-actions.pod:2110
25617 msgid "guestfs_get_qemu"
25618 msgstr ""
25619
25620 #. type: verbatim
25621 #: ../src/guestfs-actions.pod:2112
25622 #, no-wrap
25623 msgid ""
25624 " const char *\n"
25625 " guestfs_get_qemu (guestfs_h *g);\n"
25626 "\n"
25627 msgstr ""
25628
25629 #. type: textblock
25630 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6408
25631 msgid "(Added in 1.0.6)"
25632 msgstr ""
25633
25634 #. type: =head2
25635 #: ../src/guestfs-actions.pod:2125
25636 msgid "guestfs_get_recovery_proc"
25637 msgstr ""
25638
25639 #. type: verbatim
25640 #: ../src/guestfs-actions.pod:2127
25641 #, no-wrap
25642 msgid ""
25643 " int\n"
25644 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25645 "\n"
25646 msgstr ""
25647
25648 #. type: textblock
25649 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3690
25650 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4424
25651 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:5644
25652 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6432
25653 #: ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7143
25654 #: ../src/guestfs-actions.pod:7335
25655 msgid "(Added in 1.0.77)"
25656 msgstr ""
25657
25658 #. type: =head2
25659 #: ../src/guestfs-actions.pod:2136
25660 msgid "guestfs_get_selinux"
25661 msgstr ""
25662
25663 #. type: verbatim
25664 #: ../src/guestfs-actions.pod:2138
25665 #, no-wrap
25666 msgid ""
25667 " int\n"
25668 " guestfs_get_selinux (guestfs_h *g);\n"
25669 "\n"
25670 msgstr ""
25671
25672 #. type: textblock
25673 #: ../src/guestfs-actions.pod:2141
25674 msgid ""
25675 "This returns the current setting of the selinux flag which is passed to the "
25676 "appliance at boot time.  See C<guestfs_set_selinux>."
25677 msgstr ""
25678
25679 #. type: textblock
25680 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25681 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6509
25682 msgid "(Added in 1.0.67)"
25683 msgstr ""
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:2151
25687 msgid "guestfs_get_state"
25688 msgstr ""
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:2153
25692 #, no-wrap
25693 msgid ""
25694 " int\n"
25695 " guestfs_get_state (guestfs_h *g);\n"
25696 "\n"
25697 msgstr ""
25698
25699 #. type: =head2
25700 #: ../src/guestfs-actions.pod:2165
25701 msgid "guestfs_get_trace"
25702 msgstr ""
25703
25704 #. type: verbatim
25705 #: ../src/guestfs-actions.pod:2167
25706 #, no-wrap
25707 msgid ""
25708 " int\n"
25709 " guestfs_get_trace (guestfs_h *g);\n"
25710 "\n"
25711 msgstr ""
25712
25713 #. type: =head2
25714 #: ../src/guestfs-actions.pod:2176
25715 msgid "guestfs_get_umask"
25716 msgstr ""
25717
25718 #. type: verbatim
25719 #: ../src/guestfs-actions.pod:2178
25720 #, no-wrap
25721 msgid ""
25722 " int\n"
25723 " guestfs_get_umask (guestfs_h *g);\n"
25724 "\n"
25725 msgstr ""
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:2181
25729 msgid ""
25730 "Return the current umask.  By default the umask is C<022> unless it has been "
25731 "set by calling C<guestfs_umask>."
25732 msgstr ""
25733
25734 #. type: =head2
25735 #: ../src/guestfs-actions.pod:2188
25736 msgid "guestfs_get_verbose"
25737 msgstr ""
25738
25739 #. type: verbatim
25740 #: ../src/guestfs-actions.pod:2190
25741 #, no-wrap
25742 msgid ""
25743 " int\n"
25744 " guestfs_get_verbose (guestfs_h *g);\n"
25745 "\n"
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../src/guestfs-actions.pod:2199
25750 msgid "guestfs_getcon"
25751 msgstr ""
25752
25753 #. type: verbatim
25754 #: ../src/guestfs-actions.pod:2201
25755 #, no-wrap
25756 msgid ""
25757 " char *\n"
25758 " guestfs_getcon (guestfs_h *g);\n"
25759 "\n"
25760 msgstr ""
25761
25762 #. type: textblock
25763 #: ../src/guestfs-actions.pod:2206
25764 msgid ""
25765 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25766 msgstr ""
25767
25768 #. type: =head2
25769 #: ../src/guestfs-actions.pod:2214
25770 msgid "guestfs_getxattr"
25771 msgstr ""
25772
25773 #. type: verbatim
25774 #: ../src/guestfs-actions.pod:2216
25775 #, no-wrap
25776 msgid ""
25777 " char *\n"
25778 " guestfs_getxattr (guestfs_h *g,\n"
25779 "                   const char *path,\n"
25780 "                   const char *name,\n"
25781 "                   size_t *size_r);\n"
25782 "\n"
25783 msgstr ""
25784
25785 #. type: textblock
25786 #: ../src/guestfs-actions.pod:2222
25787 msgid ""
25788 "Get a single extended attribute from file C<path> named C<name>.  This call "
25789 "follows symlinks.  If you want to lookup an extended attribute for the "
25790 "symlink itself, use C<guestfs_lgetxattr>."
25791 msgstr ""
25792
25793 #. type: textblock
25794 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3704
25795 msgid ""
25796 "Normally it is better to get all extended attributes from a file in one go "
25797 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25798 "implementations are buggy and do not provide a way to list out attributes.  "
25799 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25800 "extended attributes you want in advance and call this function."
25801 msgstr ""
25802
25803 #. type: textblock
25804 #: ../src/guestfs-actions.pod:2236
25805 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
25810 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3716
25811 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5663
25812 #: ../src/guestfs-actions.pod:5844
25813 msgid ""
25814 "This function returns a buffer, or NULL on error.  The size of the returned "
25815 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25816 "after use>."
25817 msgstr ""
25818
25819 #. type: textblock
25820 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3720
25821 msgid "(Added in 1.7.24)"
25822 msgstr ""
25823
25824 #. type: =head2
25825 #: ../src/guestfs-actions.pod:2244
25826 msgid "guestfs_getxattrs"
25827 msgstr ""
25828
25829 #. type: verbatim
25830 #: ../src/guestfs-actions.pod:2246
25831 #, no-wrap
25832 msgid ""
25833 " struct guestfs_xattr_list *\n"
25834 " guestfs_getxattrs (guestfs_h *g,\n"
25835 "                    const char *path);\n"
25836 "\n"
25837 msgstr ""
25838
25839 #. type: textblock
25840 #: ../src/guestfs-actions.pod:2256
25841 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25842 msgstr ""
25843
25844 #. type: textblock
25845 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3732
25846 #: ../src/guestfs-actions.pod:4420
25847 msgid ""
25848 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25849 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25850 msgstr ""
25851
25852 #. type: textblock
25853 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3736
25854 #: ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3971
25855 #: ../src/guestfs-actions.pod:6017 ../src/guestfs-actions.pod:6528
25856 #: ../src/guestfs-actions.pod:7923
25857 msgid "(Added in 1.0.59)"
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../src/guestfs-actions.pod:2264
25862 msgid "guestfs_glob_expand"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../src/guestfs-actions.pod:2266
25867 #, no-wrap
25868 msgid ""
25869 " char **\n"
25870 " guestfs_glob_expand (guestfs_h *g,\n"
25871 "                      const char *pattern);\n"
25872 "\n"
25873 msgstr ""
25874
25875 #. type: textblock
25876 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6721
25877 #: ../src/guestfs-actions.pod:6738
25878 msgid "(Added in 1.0.50)"
25879 msgstr ""
25880
25881 #. type: =head2
25882 #: ../src/guestfs-actions.pod:2287
25883 msgid "guestfs_grep"
25884 msgstr ""
25885
25886 #. type: verbatim
25887 #: ../src/guestfs-actions.pod:2289
25888 #, no-wrap
25889 msgid ""
25890 " char **\n"
25891 " guestfs_grep (guestfs_h *g,\n"
25892 "               const char *regex,\n"
25893 "               const char *path);\n"
25894 "\n"
25895 msgstr ""
25896
25897 #. type: =head2
25898 #: ../src/guestfs-actions.pod:2306
25899 msgid "guestfs_grepi"
25900 msgstr ""
25901
25902 #. type: verbatim
25903 #: ../src/guestfs-actions.pod:2308
25904 #, no-wrap
25905 msgid ""
25906 " char **\n"
25907 " guestfs_grepi (guestfs_h *g,\n"
25908 "                const char *regex,\n"
25909 "                const char *path);\n"
25910 "\n"
25911 msgstr ""
25912
25913 #. type: =head2
25914 #: ../src/guestfs-actions.pod:2325
25915 msgid "guestfs_grub_install"
25916 msgstr ""
25917
25918 #. type: verbatim
25919 #: ../src/guestfs-actions.pod:2327
25920 #, no-wrap
25921 msgid ""
25922 " int\n"
25923 " guestfs_grub_install (guestfs_h *g,\n"
25924 "                       const char *root,\n"
25925 "                       const char *device);\n"
25926 "\n"
25927 msgstr ""
25928
25929 #. type: textblock
25930 #: ../src/guestfs-actions.pod:2370
25931 msgid "(Added in 1.0.17)"
25932 msgstr ""
25933
25934 #. type: =head2
25935 #: ../src/guestfs-actions.pod:2372
25936 msgid "guestfs_head"
25937 msgstr ""
25938
25939 #. type: verbatim
25940 #: ../src/guestfs-actions.pod:2374
25941 #, no-wrap
25942 msgid ""
25943 " char **\n"
25944 " guestfs_head (guestfs_h *g,\n"
25945 "               const char *path);\n"
25946 "\n"
25947 msgstr ""
25948
25949 #. type: =head2
25950 #: ../src/guestfs-actions.pod:2390
25951 msgid "guestfs_head_n"
25952 msgstr ""
25953
25954 #. type: verbatim
25955 #: ../src/guestfs-actions.pod:2392
25956 #, no-wrap
25957 msgid ""
25958 " char **\n"
25959 " guestfs_head_n (guestfs_h *g,\n"
25960 "                 int nrlines,\n"
25961 "                 const char *path);\n"
25962 "\n"
25963 msgstr ""
25964
25965 #. type: =head2
25966 #: ../src/guestfs-actions.pod:2414
25967 msgid "guestfs_hexdump"
25968 msgstr ""
25969
25970 #. type: verbatim
25971 #: ../src/guestfs-actions.pod:2416
25972 #, no-wrap
25973 msgid ""
25974 " char *\n"
25975 " guestfs_hexdump (guestfs_h *g,\n"
25976 "                  const char *path);\n"
25977 "\n"
25978 msgstr ""
25979
25980 #. type: textblock
25981 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6802
25982 #: ../src/guestfs-actions.pod:6857
25983 msgid "(Added in 1.0.22)"
25984 msgstr ""
25985
25986 #. type: =head2
25987 #: ../src/guestfs-actions.pod:2431
25988 msgid "guestfs_initrd_cat"
25989 msgstr ""
25990
25991 #. type: verbatim
25992 #: ../src/guestfs-actions.pod:2433
25993 #, no-wrap
25994 msgid ""
25995 " char *\n"
25996 " guestfs_initrd_cat (guestfs_h *g,\n"
25997 "                     const char *initrdpath,\n"
25998 "                     const char *filename,\n"
25999 "                     size_t *size_r);\n"
26000 "\n"
26001 msgstr ""
26002
26003 #. type: textblock
26004 #: ../src/guestfs-actions.pod:2449
26005 msgid "See also C<guestfs_initrd_list>."
26006 msgstr ""
26007
26008 #. type: =head2
26009 #: ../src/guestfs-actions.pod:2460
26010 msgid "guestfs_initrd_list"
26011 msgstr ""
26012
26013 #. type: verbatim
26014 #: ../src/guestfs-actions.pod:2462
26015 #, no-wrap
26016 msgid ""
26017 " char **\n"
26018 " guestfs_initrd_list (guestfs_h *g,\n"
26019 "                      const char *path);\n"
26020 "\n"
26021 msgstr ""
26022
26023 #. type: =head2
26024 #: ../src/guestfs-actions.pod:2482
26025 msgid "guestfs_inotify_add_watch"
26026 msgstr ""
26027
26028 #. type: verbatim
26029 #: ../src/guestfs-actions.pod:2484
26030 #, no-wrap
26031 msgid ""
26032 " int64_t\n"
26033 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26034 "                            const char *path,\n"
26035 "                            int mask);\n"
26036 "\n"
26037 msgstr ""
26038
26039 #. type: =head2
26040 #: ../src/guestfs-actions.pod:2503
26041 msgid "guestfs_inotify_close"
26042 msgstr ""
26043
26044 #. type: verbatim
26045 #: ../src/guestfs-actions.pod:2505
26046 #, no-wrap
26047 msgid ""
26048 " int\n"
26049 " guestfs_inotify_close (guestfs_h *g);\n"
26050 "\n"
26051 msgstr ""
26052
26053 #. type: =head2
26054 #: ../src/guestfs-actions.pod:2516
26055 msgid "guestfs_inotify_files"
26056 msgstr ""
26057
26058 #. type: verbatim
26059 #: ../src/guestfs-actions.pod:2518
26060 #, no-wrap
26061 msgid ""
26062 " char **\n"
26063 " guestfs_inotify_files (guestfs_h *g);\n"
26064 "\n"
26065 msgstr ""
26066
26067 #. type: textblock
26068 #: ../src/guestfs-actions.pod:2521
26069 msgid ""
26070 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26071 "returns a list of pathnames of objects that were touched.  The returned "
26072 "pathnames are sorted and deduplicated."
26073 msgstr ""
26074
26075 #. type: =head2
26076 #: ../src/guestfs-actions.pod:2531
26077 msgid "guestfs_inotify_init"
26078 msgstr ""
26079
26080 #. type: verbatim
26081 #: ../src/guestfs-actions.pod:2533
26082 #, no-wrap
26083 msgid ""
26084 " int\n"
26085 " guestfs_inotify_init (guestfs_h *g,\n"
26086 "                       int maxevents);\n"
26087 "\n"
26088 msgstr ""
26089
26090 #. type: textblock
26091 #: ../src/guestfs-actions.pod:2541
26092 msgid ""
26093 "C<maxevents> is the maximum number of events which will be queued up between "
26094 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26095 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26096 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26097 "throws away events, but records the fact that it threw them away by setting "
26098 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26099 "C<guestfs_inotify_read>)."
26100 msgstr ""
26101
26102 #. type: textblock
26103 #: ../src/guestfs-actions.pod:2551
26104 msgid ""
26105 "Before any events are generated, you have to add some watches to the "
26106 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26107 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26108 msgstr ""
26109
26110 #. type: textblock
26111 #: ../src/guestfs-actions.pod:2557
26112 msgid ""
26113 "Queued up events should be read periodically by calling "
26114 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26115 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26116 "often enough then you risk the internal queue overflowing."
26117 msgstr ""
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:2564
26121 msgid ""
26122 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26123 "This also removes any watches automatically."
26124 msgstr ""
26125
26126 #. type: =head2
26127 #: ../src/guestfs-actions.pod:2577
26128 msgid "guestfs_inotify_read"
26129 msgstr ""
26130
26131 #. type: verbatim
26132 #: ../src/guestfs-actions.pod:2579
26133 #, no-wrap
26134 msgid ""
26135 " struct guestfs_inotify_event_list *\n"
26136 " guestfs_inotify_read (guestfs_h *g);\n"
26137 "\n"
26138 msgstr ""
26139
26140 #. type: textblock
26141 #: ../src/guestfs-actions.pod:2593
26142 msgid ""
26143 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26144 "there was an error.  I<The caller must call "
26145 "C<guestfs_free_inotify_event_list> after use>."
26146 msgstr ""
26147
26148 #. type: =head2
26149 #: ../src/guestfs-actions.pod:2599
26150 msgid "guestfs_inotify_rm_watch"
26151 msgstr ""
26152
26153 #. type: verbatim
26154 #: ../src/guestfs-actions.pod:2601
26155 #, no-wrap
26156 msgid ""
26157 " int\n"
26158 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26159 "                           int wd);\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../src/guestfs-actions.pod:2605
26165 msgid ""
26166 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26167 msgstr ""
26168
26169 #. type: =head2
26170 #: ../src/guestfs-actions.pod:2612
26171 msgid "guestfs_inspect_get_arch"
26172 msgstr ""
26173
26174 #. type: verbatim
26175 #: ../src/guestfs-actions.pod:2614
26176 #, no-wrap
26177 msgid ""
26178 " char *\n"
26179 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26180 "                           const char *root);\n"
26181 "\n"
26182 msgstr ""
26183
26184 #. type: textblock
26185 #: ../src/guestfs-actions.pod:2618
26186 msgid ""
26187 "This returns the architecture of the inspected operating system.  The "
26188 "possible return values are listed under C<guestfs_file_architecture>."
26189 msgstr ""
26190
26191 #. type: =head2
26192 #: ../src/guestfs-actions.pod:2632
26193 msgid "guestfs_inspect_get_distro"
26194 msgstr ""
26195
26196 #. type: verbatim
26197 #: ../src/guestfs-actions.pod:2634
26198 #, no-wrap
26199 msgid ""
26200 " char *\n"
26201 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26202 "                             const char *root);\n"
26203 "\n"
26204 msgstr ""
26205
26206 #. type: =head2
26207 #: ../src/guestfs-actions.pod:2722
26208 msgid "guestfs_inspect_get_drive_mappings"
26209 msgstr ""
26210
26211 #. type: verbatim
26212 #: ../src/guestfs-actions.pod:2724
26213 #, no-wrap
26214 msgid ""
26215 " char **\n"
26216 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26217 "                                     const char *root);\n"
26218 "\n"
26219 msgstr ""
26220
26221 #. type: textblock
26222 #: ../src/guestfs-actions.pod:2753
26223 msgid ""
26224 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26225 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26226 msgstr ""
26227
26228 #. type: textblock
26229 #: ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:3025
26230 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:5105
26231 #: ../src/guestfs-actions.pod:7159
26232 msgid ""
26233 "This function returns a NULL-terminated array of strings, or NULL if there "
26234 "was an error.  The array of strings will always have length C<2n+1>, where "
26235 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26236 "caller must free the strings and the array after use>."
26237 msgstr ""
26238
26239 #. type: textblock
26240 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:3219
26241 msgid "(Added in 1.9.17)"
26242 msgstr ""
26243
26244 #. type: =head2
26245 #: ../src/guestfs-actions.pod:2765
26246 msgid "guestfs_inspect_get_filesystems"
26247 msgstr ""
26248
26249 #. type: verbatim
26250 #: ../src/guestfs-actions.pod:2767
26251 #, no-wrap
26252 msgid ""
26253 " char **\n"
26254 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26255 "                                  const char *root);\n"
26256 "\n"
26257 msgstr ""
26258
26259 #. type: textblock
26260 #: ../src/guestfs-actions.pod:2779
26261 msgid ""
26262 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26263 "C<guestfs_inspect_get_mountpoints>."
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:2788
26268 msgid "guestfs_inspect_get_format"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:2790
26273 #, no-wrap
26274 msgid ""
26275 " char *\n"
26276 " guestfs_inspect_get_format (guestfs_h *g,\n"
26277 "                             const char *root);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3255
26283 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
26284 #: ../src/guestfs-actions.pod:6055
26285 msgid "(Added in 1.9.4)"
26286 msgstr ""
26287
26288 #. type: =head2
26289 #: ../src/guestfs-actions.pod:2826
26290 msgid "guestfs_inspect_get_hostname"
26291 msgstr ""
26292
26293 #. type: verbatim
26294 #: ../src/guestfs-actions.pod:2828
26295 #, no-wrap
26296 msgid ""
26297 " char *\n"
26298 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26299 "                               const char *root);\n"
26300 "\n"
26301 msgstr ""
26302
26303 #. type: textblock
26304 #: ../src/guestfs-actions.pod:2843
26305 msgid "(Added in 1.7.9)"
26306 msgstr ""
26307
26308 #. type: =head2
26309 #: ../src/guestfs-actions.pod:2845
26310 msgid "guestfs_inspect_get_icon"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../src/guestfs-actions.pod:2847
26315 #, no-wrap
26316 msgid ""
26317 " char *\n"
26318 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26319 "                           const char *root,\n"
26320 "                           size_t *size_r,\n"
26321 "                           ...);\n"
26322 "\n"
26323 msgstr ""
26324
26325 #. type: verbatim
26326 #: ../src/guestfs-actions.pod:2858
26327 #, no-wrap
26328 msgid ""
26329 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26330 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26331 "\n"
26332 msgstr ""
26333
26334 #. type: textblock
26335 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3750
26336 #: ../src/guestfs-actions.pod:5004
26337 msgid "(Added in 1.11.12)"
26338 msgstr ""
26339
26340 #. type: =head2
26341 #: ../src/guestfs-actions.pod:2927
26342 msgid "guestfs_inspect_get_icon_va"
26343 msgstr ""
26344
26345 #. type: verbatim
26346 #: ../src/guestfs-actions.pod:2929
26347 #, no-wrap
26348 msgid ""
26349 " char *\n"
26350 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26351 "                              const char *root,\n"
26352 "                              size_t *size_r,\n"
26353 "                              va_list args);\n"
26354 "\n"
26355 msgstr ""
26356
26357 #. type: textblock
26358 #: ../src/guestfs-actions.pod:2935
26359 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26360 msgstr ""
26361
26362 #. type: =head2
26363 #: ../src/guestfs-actions.pod:2939
26364 msgid "guestfs_inspect_get_icon_argv"
26365 msgstr ""
26366
26367 #. type: verbatim
26368 #: ../src/guestfs-actions.pod:2941
26369 #, no-wrap
26370 msgid ""
26371 " char *\n"
26372 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26373 "                                const char *root,\n"
26374 "                                size_t *size_r,\n"
26375 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26376 "\n"
26377 msgstr ""
26378
26379 #. type: textblock
26380 #: ../src/guestfs-actions.pod:2947
26381 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26382 msgstr ""
26383
26384 #. type: =head2
26385 #: ../src/guestfs-actions.pod:2951
26386 msgid "guestfs_inspect_get_major_version"
26387 msgstr ""
26388
26389 #. type: verbatim
26390 #: ../src/guestfs-actions.pod:2953
26391 #, no-wrap
26392 msgid ""
26393 " int\n"
26394 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26395 "                                    const char *root);\n"
26396 "\n"
26397 msgstr ""
26398
26399 #. type: =head2
26400 #: ../src/guestfs-actions.pod:2975
26401 msgid "guestfs_inspect_get_minor_version"
26402 msgstr ""
26403
26404 #. type: verbatim
26405 #: ../src/guestfs-actions.pod:2977
26406 #, no-wrap
26407 msgid ""
26408 " int\n"
26409 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26410 "                                    const char *root);\n"
26411 "\n"
26412 msgstr ""
26413
26414 #. type: textblock
26415 #: ../src/guestfs-actions.pod:2986
26416 msgid ""
26417 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26418 "C<guestfs_inspect_get_major_version>."
26419 msgstr ""
26420
26421 #. type: =head2
26422 #: ../src/guestfs-actions.pod:2993
26423 msgid "guestfs_inspect_get_mountpoints"
26424 msgstr ""
26425
26426 #. type: verbatim
26427 #: ../src/guestfs-actions.pod:2995
26428 #, no-wrap
26429 msgid ""
26430 " char **\n"
26431 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26432 "                                  const char *root);\n"
26433 "\n"
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../src/guestfs-actions.pod:3016
26438 msgid ""
26439 "For operating systems like Windows which still use drive letters, this call "
26440 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26441 "information about the mapping of drive letters to partitions, see "
26442 "C<guestfs_inspect_get_drive_mappings>."
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:3022
26447 msgid ""
26448 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26449 "C<guestfs_inspect_get_filesystems>."
26450 msgstr ""
26451
26452 #. type: =head2
26453 #: ../src/guestfs-actions.pod:3033
26454 msgid "guestfs_inspect_get_package_format"
26455 msgstr ""
26456
26457 #. type: verbatim
26458 #: ../src/guestfs-actions.pod:3035
26459 #, no-wrap
26460 msgid ""
26461 " char *\n"
26462 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26463 "                                     const char *root);\n"
26464 "\n"
26465 msgstr ""
26466
26467 #. type: textblock
26468 #: ../src/guestfs-actions.pod:3039
26469 msgid ""
26470 "This function and C<guestfs_inspect_get_package_management> return the "
26471 "package format and package management tool used by the inspected operating "
26472 "system.  For example for Fedora these functions would return C<rpm> (package "
26473 "format) and C<yum> (package management)."
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3085
26478 msgid "(Added in 1.7.5)"
26479 msgstr ""
26480
26481 #. type: =head2
26482 #: ../src/guestfs-actions.pod:3059
26483 msgid "guestfs_inspect_get_package_management"
26484 msgstr ""
26485
26486 #. type: verbatim
26487 #: ../src/guestfs-actions.pod:3061
26488 #, no-wrap
26489 msgid ""
26490 " char *\n"
26491 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26492 "                                         const char *root);\n"
26493 "\n"
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../src/guestfs-actions.pod:3065
26498 msgid ""
26499 "C<guestfs_inspect_get_package_format> and this function return the package "
26500 "format and package management tool used by the inspected operating system.  "
26501 "For example for Fedora these functions would return C<rpm> (package format) "
26502 "and C<yum> (package management)."
26503 msgstr ""
26504
26505 #. type: =head2
26506 #: ../src/guestfs-actions.pod:3087
26507 msgid "guestfs_inspect_get_product_name"
26508 msgstr ""
26509
26510 #. type: verbatim
26511 #: ../src/guestfs-actions.pod:3089
26512 #, no-wrap
26513 msgid ""
26514 " char *\n"
26515 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26516 "                                   const char *root);\n"
26517 "\n"
26518 msgstr ""
26519
26520 #. type: =head2
26521 #: ../src/guestfs-actions.pod:3108
26522 msgid "guestfs_inspect_get_product_variant"
26523 msgstr ""
26524
26525 #. type: verbatim
26526 #: ../src/guestfs-actions.pod:3110
26527 #, no-wrap
26528 msgid ""
26529 " char *\n"
26530 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26531 "                                      const char *root);\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: textblock
26536 #: ../src/guestfs-actions.pod:3133
26537 msgid ""
26538 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26539 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26540 msgstr ""
26541
26542 #. type: textblock
26543 #: ../src/guestfs-actions.pod:3140
26544 msgid "(Added in 1.9.13)"
26545 msgstr ""
26546
26547 #. type: =head2
26548 #: ../src/guestfs-actions.pod:3142
26549 msgid "guestfs_inspect_get_roots"
26550 msgstr ""
26551
26552 #. type: verbatim
26553 #: ../src/guestfs-actions.pod:3144
26554 #, no-wrap
26555 msgid ""
26556 " char **\n"
26557 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26558 "\n"
26559 msgstr ""
26560
26561 #. type: textblock
26562 #: ../src/guestfs-actions.pod:3147
26563 msgid ""
26564 "This function is a convenient way to get the list of root devices, as "
26565 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26566 "the whole inspection process."
26567 msgstr ""
26568
26569 #. type: textblock
26570 #: ../src/guestfs-actions.pod:3151
26571 msgid ""
26572 "This returns an empty list if either no root devices were found or the "
26573 "caller has not called C<guestfs_inspect_os>."
26574 msgstr ""
26575
26576 #. type: textblock
26577 #: ../src/guestfs-actions.pod:3160
26578 msgid "(Added in 1.7.3)"
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:3162
26583 msgid "guestfs_inspect_get_type"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:3164
26588 #, no-wrap
26589 msgid ""
26590 " char *\n"
26591 " guestfs_inspect_get_type (guestfs_h *g,\n"
26592 "                           const char *root);\n"
26593 "\n"
26594 msgstr ""
26595
26596 #. type: =head2
26597 #: ../src/guestfs-actions.pod:3201
26598 msgid "guestfs_inspect_get_windows_current_control_set"
26599 msgstr ""
26600
26601 #. type: verbatim
26602 #: ../src/guestfs-actions.pod:3203
26603 #, no-wrap
26604 msgid ""
26605 " char *\n"
26606 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26607 "                                                  const char *root);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: =head2
26612 #: ../src/guestfs-actions.pod:3221
26613 msgid "guestfs_inspect_get_windows_systemroot"
26614 msgstr ""
26615
26616 #. type: verbatim
26617 #: ../src/guestfs-actions.pod:3223
26618 #, no-wrap
26619 msgid ""
26620 " char *\n"
26621 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26622 "                                         const char *root);\n"
26623 "\n"
26624 msgstr ""
26625
26626 #. type: textblock
26627 #: ../src/guestfs-actions.pod:3239
26628 msgid "(Added in 1.5.25)"
26629 msgstr ""
26630
26631 #. type: =head2
26632 #: ../src/guestfs-actions.pod:3241
26633 msgid "guestfs_inspect_is_live"
26634 msgstr ""
26635
26636 #. type: verbatim
26637 #: ../src/guestfs-actions.pod:3243
26638 #, no-wrap
26639 msgid ""
26640 " int\n"
26641 " guestfs_inspect_is_live (guestfs_h *g,\n"
26642 "                          const char *root);\n"
26643 "\n"
26644 msgstr ""
26645
26646 #. type: textblock
26647 #: ../src/guestfs-actions.pod:3247
26648 msgid ""
26649 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26650 "disk), then this returns true if a live image was detected on the disk."
26651 msgstr ""
26652
26653 #. type: =head2
26654 #: ../src/guestfs-actions.pod:3257
26655 msgid "guestfs_inspect_is_multipart"
26656 msgstr ""
26657
26658 #. type: verbatim
26659 #: ../src/guestfs-actions.pod:3259
26660 #, no-wrap
26661 msgid ""
26662 " int\n"
26663 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26664 "                               const char *root);\n"
26665 "\n"
26666 msgstr ""
26667
26668 #. type: textblock
26669 #: ../src/guestfs-actions.pod:3263
26670 msgid ""
26671 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26672 "disk), then this returns true if the disk is part of a set."
26673 msgstr ""
26674
26675 #. type: =head2
26676 #: ../src/guestfs-actions.pod:3273
26677 msgid "guestfs_inspect_is_netinst"
26678 msgstr ""
26679
26680 #. type: verbatim
26681 #: ../src/guestfs-actions.pod:3275
26682 #, no-wrap
26683 msgid ""
26684 " int\n"
26685 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26686 "                             const char *root);\n"
26687 "\n"
26688 msgstr ""
26689
26690 #. type: textblock
26691 #: ../src/guestfs-actions.pod:3279
26692 msgid ""
26693 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26694 "disk), then this returns true if the disk is a network installer, ie. not a "
26695 "self-contained install CD but one which is likely to require network access "
26696 "to complete the install."
26697 msgstr ""
26698
26699 #. type: =head2
26700 #: ../src/guestfs-actions.pod:3291
26701 msgid "guestfs_inspect_list_applications"
26702 msgstr ""
26703
26704 #. type: verbatim
26705 #: ../src/guestfs-actions.pod:3293
26706 #, no-wrap
26707 msgid ""
26708 " struct guestfs_application_list *\n"
26709 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26710 "                                    const char *root);\n"
26711 "\n"
26712 msgstr ""
26713
26714 #. type: textblock
26715 #: ../src/guestfs-actions.pod:3299
26716 msgid ""
26717 "I<Note:> This call works differently from other parts of the inspection "
26718 "API.  You have to call C<guestfs_inspect_os>, then "
26719 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26720 "this.  Listing applications is a significantly more difficult operation "
26721 "which requires access to the full filesystem.  Also note that unlike the "
26722 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26723 "the libguestfs handle, this call actually reads parts of the mounted "
26724 "filesystems during the call."
26725 msgstr ""
26726
26727 #. type: textblock
26728 #: ../src/guestfs-actions.pod:3389
26729 msgid ""
26730 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26731 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26732 "after use>."
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:3393
26737 msgid "(Added in 1.7.8)"
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../src/guestfs-actions.pod:3395
26742 msgid "guestfs_inspect_os"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../src/guestfs-actions.pod:3397
26747 #, no-wrap
26748 msgid ""
26749 " char **\n"
26750 " guestfs_inspect_os (guestfs_h *g);\n"
26751 "\n"
26752 msgstr ""
26753
26754 #. type: textblock
26755 #: ../src/guestfs-actions.pod:3413
26756 msgid ""
26757 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26758 "functions in order to query further information about each operating system, "
26759 "such as the name and version."
26760 msgstr ""
26761
26762 #. type: textblock
26763 #: ../src/guestfs-actions.pod:3418
26764 msgid ""
26765 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26766 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26767 "the contents.  This should be called with no disks currently mounted.  The "
26768 "function may also use Augeas, so any existing Augeas handle will be closed."
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3761
26773 #: ../src/guestfs-actions.pod:3843
26774 msgid "See also C<guestfs_list_filesystems>."
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:3438
26779 msgid "guestfs_is_blockdev"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:3440
26784 #, no-wrap
26785 msgid ""
26786 " int\n"
26787 " guestfs_is_blockdev (guestfs_h *g,\n"
26788 "                      const char *path);\n"
26789 "\n"
26790 msgstr ""
26791
26792 #. type: textblock
26793 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3476
26794 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3521
26795 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3593
26796 #: ../src/guestfs-actions.pod:3608
26797 msgid "See also C<guestfs_stat>."
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
26802 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3597
26803 #: ../src/guestfs-actions.pod:3612
26804 msgid "(Added in 1.5.10)"
26805 msgstr ""
26806
26807 #. type: =head2
26808 #: ../src/guestfs-actions.pod:3453
26809 msgid "guestfs_is_busy"
26810 msgstr ""
26811
26812 #. type: verbatim
26813 #: ../src/guestfs-actions.pod:3455
26814 #, no-wrap
26815 msgid ""
26816 " int\n"
26817 " guestfs_is_busy (guestfs_h *g);\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../src/guestfs-actions.pod:3467
26823 msgid "guestfs_is_chardev"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:3469
26828 #, no-wrap
26829 msgid ""
26830 " int\n"
26831 " guestfs_is_chardev (guestfs_h *g,\n"
26832 "                     const char *path);\n"
26833 "\n"
26834 msgstr ""
26835
26836 #. type: =head2
26837 #: ../src/guestfs-actions.pod:3482
26838 msgid "guestfs_is_config"
26839 msgstr ""
26840
26841 #. type: verbatim
26842 #: ../src/guestfs-actions.pod:3484
26843 #, no-wrap
26844 msgid ""
26845 " int\n"
26846 " guestfs_is_config (guestfs_h *g);\n"
26847 "\n"
26848 msgstr ""
26849
26850 #. type: =head2
26851 #: ../src/guestfs-actions.pod:3496
26852 msgid "guestfs_is_dir"
26853 msgstr ""
26854
26855 #. type: verbatim
26856 #: ../src/guestfs-actions.pod:3498
26857 #, no-wrap
26858 msgid ""
26859 " int\n"
26860 " guestfs_is_dir (guestfs_h *g,\n"
26861 "                 const char *path);\n"
26862 "\n"
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:3512
26867 msgid "guestfs_is_fifo"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:3514
26872 #, no-wrap
26873 msgid ""
26874 " int\n"
26875 " guestfs_is_fifo (guestfs_h *g,\n"
26876 "                  const char *path);\n"
26877 "\n"
26878 msgstr ""
26879
26880 #. type: =head2
26881 #: ../src/guestfs-actions.pod:3527
26882 msgid "guestfs_is_file"
26883 msgstr ""
26884
26885 #. type: verbatim
26886 #: ../src/guestfs-actions.pod:3529
26887 #, no-wrap
26888 msgid ""
26889 " int\n"
26890 " guestfs_is_file (guestfs_h *g,\n"
26891 "                  const char *path);\n"
26892 "\n"
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:3543
26897 msgid "guestfs_is_launching"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:3545
26902 #, no-wrap
26903 msgid ""
26904 " int\n"
26905 " guestfs_is_launching (guestfs_h *g);\n"
26906 "\n"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:3557
26911 msgid "guestfs_is_lv"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:3559
26916 #, no-wrap
26917 msgid ""
26918 " int\n"
26919 " guestfs_is_lv (guestfs_h *g,\n"
26920 "                const char *device);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: =head2
26925 #: ../src/guestfs-actions.pod:3570
26926 msgid "guestfs_is_ready"
26927 msgstr ""
26928
26929 #. type: verbatim
26930 #: ../src/guestfs-actions.pod:3572
26931 #, no-wrap
26932 msgid ""
26933 " int\n"
26934 " guestfs_is_ready (guestfs_h *g);\n"
26935 "\n"
26936 msgstr ""
26937
26938 #. type: =head2
26939 #: ../src/guestfs-actions.pod:3584
26940 msgid "guestfs_is_socket"
26941 msgstr ""
26942
26943 #. type: verbatim
26944 #: ../src/guestfs-actions.pod:3586
26945 #, no-wrap
26946 msgid ""
26947 " int\n"
26948 " guestfs_is_socket (guestfs_h *g,\n"
26949 "                    const char *path);\n"
26950 "\n"
26951 msgstr ""
26952
26953 #. type: =head2
26954 #: ../src/guestfs-actions.pod:3599
26955 msgid "guestfs_is_symlink"
26956 msgstr ""
26957
26958 #. type: verbatim
26959 #: ../src/guestfs-actions.pod:3601
26960 #, no-wrap
26961 msgid ""
26962 " int\n"
26963 " guestfs_is_symlink (guestfs_h *g,\n"
26964 "                     const char *path);\n"
26965 "\n"
26966 msgstr ""
26967
26968 #. type: =head2
26969 #: ../src/guestfs-actions.pod:3614
26970 msgid "guestfs_is_zero"
26971 msgstr ""
26972
26973 #. type: verbatim
26974 #: ../src/guestfs-actions.pod:3616
26975 #, no-wrap
26976 msgid ""
26977 " int\n"
26978 " guestfs_is_zero (guestfs_h *g,\n"
26979 "                  const char *path);\n"
26980 "\n"
26981 msgstr ""
26982
26983 #. type: textblock
26984 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3639
26985 msgid "(Added in 1.11.8)"
26986 msgstr ""
26987
26988 #. type: =head2
26989 #: ../src/guestfs-actions.pod:3627
26990 msgid "guestfs_is_zero_device"
26991 msgstr ""
26992
26993 #. type: verbatim
26994 #: ../src/guestfs-actions.pod:3629
26995 #, no-wrap
26996 msgid ""
26997 " int\n"
26998 " guestfs_is_zero_device (guestfs_h *g,\n"
26999 "                         const char *device);\n"
27000 "\n"
27001 msgstr ""
27002
27003 #. type: =head2
27004 #: ../src/guestfs-actions.pod:3641
27005 msgid "guestfs_kill_subprocess"
27006 msgstr ""
27007
27008 #. type: verbatim
27009 #: ../src/guestfs-actions.pod:3643
27010 #, no-wrap
27011 msgid ""
27012 " int\n"
27013 " guestfs_kill_subprocess (guestfs_h *g);\n"
27014 "\n"
27015 msgstr ""
27016
27017 #. type: =head2
27018 #: ../src/guestfs-actions.pod:3652
27019 msgid "guestfs_launch"
27020 msgstr ""
27021
27022 #. type: verbatim
27023 #: ../src/guestfs-actions.pod:3654
27024 #, no-wrap
27025 msgid ""
27026 " int\n"
27027 " guestfs_launch (guestfs_h *g);\n"
27028 "\n"
27029 msgstr ""
27030
27031 #. type: =head2
27032 #: ../src/guestfs-actions.pod:3672
27033 msgid "guestfs_lchown"
27034 msgstr ""
27035
27036 #. type: verbatim
27037 #: ../src/guestfs-actions.pod:3674
27038 #, no-wrap
27039 msgid ""
27040 " int\n"
27041 " guestfs_lchown (guestfs_h *g,\n"
27042 "                 int owner,\n"
27043 "                 int group,\n"
27044 "                 const char *path);\n"
27045 "\n"
27046 msgstr ""
27047
27048 #. type: textblock
27049 #: ../src/guestfs-actions.pod:3680
27050 msgid ""
27051 "Change the file owner to C<owner> and group to C<group>.  This is like "
27052 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27053 "changed, not the target."
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../src/guestfs-actions.pod:3692
27058 msgid "guestfs_lgetxattr"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../src/guestfs-actions.pod:3694
27063 #, no-wrap
27064 msgid ""
27065 " char *\n"
27066 " guestfs_lgetxattr (guestfs_h *g,\n"
27067 "                    const char *path,\n"
27068 "                    const char *name,\n"
27069 "                    size_t *size_r);\n"
27070 "\n"
27071 msgstr ""
27072
27073 #. type: textblock
27074 #: ../src/guestfs-actions.pod:3714
27075 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27076 msgstr ""
27077
27078 #. type: =head2
27079 #: ../src/guestfs-actions.pod:3722
27080 msgid "guestfs_lgetxattrs"
27081 msgstr ""
27082
27083 #. type: verbatim
27084 #: ../src/guestfs-actions.pod:3724
27085 #, no-wrap
27086 msgid ""
27087 " struct guestfs_xattr_list *\n"
27088 " guestfs_lgetxattrs (guestfs_h *g,\n"
27089 "                     const char *path);\n"
27090 "\n"
27091 msgstr ""
27092
27093 #. type: textblock
27094 #: ../src/guestfs-actions.pod:3728
27095 msgid ""
27096 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27097 "then it returns the extended attributes of the link itself."
27098 msgstr ""
27099
27100 #. type: =head2
27101 #: ../src/guestfs-actions.pod:3738
27102 msgid "guestfs_list_9p"
27103 msgstr ""
27104
27105 #. type: verbatim
27106 #: ../src/guestfs-actions.pod:3740
27107 #, no-wrap
27108 msgid ""
27109 " char **\n"
27110 " guestfs_list_9p (guestfs_h *g);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: =head2
27115 #: ../src/guestfs-actions.pod:3752
27116 msgid "guestfs_list_devices"
27117 msgstr ""
27118
27119 #. type: verbatim
27120 #: ../src/guestfs-actions.pod:3754
27121 #, no-wrap
27122 msgid ""
27123 " char **\n"
27124 " guestfs_list_devices (guestfs_h *g);\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: =head2
27129 #: ../src/guestfs-actions.pod:3769
27130 msgid "guestfs_list_dm_devices"
27131 msgstr ""
27132
27133 #. type: verbatim
27134 #: ../src/guestfs-actions.pod:3771
27135 #, no-wrap
27136 msgid ""
27137 " char **\n"
27138 " guestfs_list_dm_devices (guestfs_h *g);\n"
27139 "\n"
27140 msgstr ""
27141
27142 #. type: textblock
27143 #: ../src/guestfs-actions.pod:3776
27144 msgid ""
27145 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27146 "previous call to C<guestfs_luks_open>."
27147 msgstr ""
27148
27149 #. type: textblock
27150 #: ../src/guestfs-actions.pod:3779
27151 msgid ""
27152 "Device mapper devices which correspond to logical volumes are I<not> "
27153 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27154 "volumes."
27155 msgstr ""
27156
27157 #. type: textblock
27158 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:5243
27159 msgid "(Added in 1.11.15)"
27160 msgstr ""
27161
27162 #. type: =head2
27163 #: ../src/guestfs-actions.pod:3789
27164 msgid "guestfs_list_filesystems"
27165 msgstr ""
27166
27167 #. type: verbatim
27168 #: ../src/guestfs-actions.pod:3791
27169 #, no-wrap
27170 msgid ""
27171 " char **\n"
27172 " guestfs_list_filesystems (guestfs_h *g);\n"
27173 "\n"
27174 msgstr ""
27175
27176 #. type: textblock
27177 #: ../src/guestfs-actions.pod:3811
27178 msgid ""
27179 "This command runs other libguestfs commands, which might include "
27180 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27181 "soon after launch and only when nothing is mounted."
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:3815
27186 msgid ""
27187 "Not all of the filesystems returned will be mountable.  In particular, swap "
27188 "partitions are returned in the list.  Also this command does not check that "
27189 "each filesystem found is valid and mountable, and some filesystems might be "
27190 "mountable but require special options.  Filesystems may not all belong to a "
27191 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27192 msgstr ""
27193
27194 #. type: textblock
27195 #: ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:5604
27196 msgid "(Added in 1.5.15)"
27197 msgstr ""
27198
27199 #. type: =head2
27200 #: ../src/guestfs-actions.pod:3831
27201 msgid "guestfs_list_partitions"
27202 msgstr "guestfs_list_partitions"
27203
27204 #. type: verbatim
27205 #: ../src/guestfs-actions.pod:3833
27206 #, no-wrap
27207 msgid ""
27208 " char **\n"
27209 " guestfs_list_partitions (guestfs_h *g);\n"
27210 "\n"
27211 msgstr ""
27212 " char **\n"
27213 " guestfs_list_partitions (guestfs_h *g);\n"
27214 "\n"
27215
27216 #. type: textblock
27217 #: ../src/guestfs-actions.pod:3840
27218 msgid ""
27219 "This does not return logical volumes.  For that you will need to call "
27220 "C<guestfs_lvs>."
27221 msgstr ""
27222
27223 #. type: =head2
27224 #: ../src/guestfs-actions.pod:3851
27225 msgid "guestfs_ll"
27226 msgstr "guestfs_ll"
27227
27228 #. type: verbatim
27229 #: ../src/guestfs-actions.pod:3853
27230 #, no-wrap
27231 msgid ""
27232 " char *\n"
27233 " guestfs_ll (guestfs_h *g,\n"
27234 "             const char *directory);\n"
27235 "\n"
27236 msgstr ""
27237 " char *\n"
27238 " guestfs_ll (guestfs_h *g,\n"
27239 "             const char *directory);\n"
27240 "\n"
27241
27242 #. type: =head2
27243 #: ../src/guestfs-actions.pod:3868
27244 msgid "guestfs_ln"
27245 msgstr "guestfs_ln"
27246
27247 #. type: verbatim
27248 #: ../src/guestfs-actions.pod:3870
27249 #, no-wrap
27250 msgid ""
27251 " int\n"
27252 " guestfs_ln (guestfs_h *g,\n"
27253 "             const char *target,\n"
27254 "             const char *linkname);\n"
27255 "\n"
27256 msgstr ""
27257 " int\n"
27258 " guestfs_ln (guestfs_h *g,\n"
27259 "             const char *target,\n"
27260 "             const char *linkname);\n"
27261 "\n"
27262
27263 #. type: =head2
27264 #: ../src/guestfs-actions.pod:3881
27265 msgid "guestfs_ln_f"
27266 msgstr "guestfs_ln_f"
27267
27268 #. type: verbatim
27269 #: ../src/guestfs-actions.pod:3883
27270 #, no-wrap
27271 msgid ""
27272 " int\n"
27273 " guestfs_ln_f (guestfs_h *g,\n"
27274 "               const char *target,\n"
27275 "               const char *linkname);\n"
27276 "\n"
27277 msgstr ""
27278 " int\n"
27279 " guestfs_ln_f (guestfs_h *g,\n"
27280 "               const char *target,\n"
27281 "               const char *linkname);\n"
27282 "\n"
27283
27284 #. type: =head2
27285 #: ../src/guestfs-actions.pod:3895
27286 msgid "guestfs_ln_s"
27287 msgstr "guestfs_ln_s"
27288
27289 #. type: verbatim
27290 #: ../src/guestfs-actions.pod:3897
27291 #, no-wrap
27292 msgid ""
27293 " int\n"
27294 " guestfs_ln_s (guestfs_h *g,\n"
27295 "               const char *target,\n"
27296 "               const char *linkname);\n"
27297 "\n"
27298 msgstr ""
27299 " int\n"
27300 " guestfs_ln_s (guestfs_h *g,\n"
27301 "               const char *target,\n"
27302 "               const char *linkname);\n"
27303 "\n"
27304
27305 #. type: =head2
27306 #: ../src/guestfs-actions.pod:3908
27307 msgid "guestfs_ln_sf"
27308 msgstr "guestfs_ln_sf"
27309
27310 #. type: verbatim
27311 #: ../src/guestfs-actions.pod:3910
27312 #, no-wrap
27313 msgid ""
27314 " int\n"
27315 " guestfs_ln_sf (guestfs_h *g,\n"
27316 "                const char *target,\n"
27317 "                const char *linkname);\n"
27318 "\n"
27319 msgstr ""
27320 " int\n"
27321 " guestfs_ln_sf (guestfs_h *g,\n"
27322 "                const char *target,\n"
27323 "                const char *linkname);\n"
27324 "\n"
27325
27326 #. type: =head2
27327 #: ../src/guestfs-actions.pod:3922
27328 msgid "guestfs_lremovexattr"
27329 msgstr "guestfs_lremovexattr"
27330
27331 #. type: verbatim
27332 #: ../src/guestfs-actions.pod:3924
27333 #, no-wrap
27334 msgid ""
27335 " int\n"
27336 " guestfs_lremovexattr (guestfs_h *g,\n"
27337 "                       const char *xattr,\n"
27338 "                       const char *path);\n"
27339 "\n"
27340 msgstr ""
27341 " int\n"
27342 " guestfs_lremovexattr (guestfs_h *g,\n"
27343 "                       const char *xattr,\n"
27344 "                       const char *path);\n"
27345 "\n"
27346
27347 #. type: textblock
27348 #: ../src/guestfs-actions.pod:3929
27349 msgid ""
27350 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27351 "link, then it removes an extended attribute of the link itself."
27352 msgstr ""
27353
27354 #. type: =head2
27355 #: ../src/guestfs-actions.pod:3937
27356 msgid "guestfs_ls"
27357 msgstr "guestfs_ls"
27358
27359 #. type: verbatim
27360 #: ../src/guestfs-actions.pod:3939
27361 #, no-wrap
27362 msgid ""
27363 " char **\n"
27364 " guestfs_ls (guestfs_h *g,\n"
27365 "             const char *directory);\n"
27366 "\n"
27367 msgstr ""
27368 " char **\n"
27369 " guestfs_ls (guestfs_h *g,\n"
27370 "             const char *directory);\n"
27371 "\n"
27372
27373 #. type: textblock
27374 #: ../src/guestfs-actions.pod:3947
27375 msgid ""
27376 "This command is mostly useful for interactive sessions.  Programs should "
27377 "probably use C<guestfs_readdir> instead."
27378 msgstr ""
27379
27380 #. type: =head2
27381 #: ../src/guestfs-actions.pod:3956
27382 msgid "guestfs_lsetxattr"
27383 msgstr "guestfs_lsetxattr"
27384
27385 #. type: verbatim
27386 #: ../src/guestfs-actions.pod:3958
27387 #, no-wrap
27388 msgid ""
27389 " int\n"
27390 " guestfs_lsetxattr (guestfs_h *g,\n"
27391 "                    const char *xattr,\n"
27392 "                    const char *val,\n"
27393 "                    int vallen,\n"
27394 "                    const char *path);\n"
27395 "\n"
27396 msgstr ""
27397 " int\n"
27398 " guestfs_lsetxattr (guestfs_h *g,\n"
27399 "                    const char *xattr,\n"
27400 "                    const char *val,\n"
27401 "                    int vallen,\n"
27402 "                    const char *path);\n"
27403 "\n"
27404
27405 #. type: textblock
27406 #: ../src/guestfs-actions.pod:3965
27407 msgid ""
27408 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27409 "then it sets an extended attribute of the link itself."
27410 msgstr ""
27411
27412 #. type: =head2
27413 #: ../src/guestfs-actions.pod:3973
27414 msgid "guestfs_lstat"
27415 msgstr "guestfs_lstat"
27416
27417 #. type: verbatim
27418 #: ../src/guestfs-actions.pod:3975
27419 #, no-wrap
27420 msgid ""
27421 " struct guestfs_stat *\n"
27422 " guestfs_lstat (guestfs_h *g,\n"
27423 "                const char *path);\n"
27424 "\n"
27425 msgstr ""
27426 " struct guestfs_stat *\n"
27427 " guestfs_lstat (guestfs_h *g,\n"
27428 "                const char *path);\n"
27429 "\n"
27430
27431 #. type: textblock
27432 #: ../src/guestfs-actions.pod:3981
27433 msgid ""
27434 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27435 "link, then the link is stat-ed, not the file it refers to."
27436 msgstr ""
27437
27438 #. type: textblock
27439 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:6762
27440 msgid ""
27441 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27442 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27443 msgstr ""
27444
27445 #. type: textblock
27446 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
27447 #: ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:7165
27448 msgid "(Added in 0.9.2)"
27449 msgstr "(Додано у 0.9.2)"
27450
27451 #. type: =head2
27452 #: ../src/guestfs-actions.pod:3993
27453 msgid "guestfs_lstatlist"
27454 msgstr "guestfs_lstatlist"
27455
27456 #. type: verbatim
27457 #: ../src/guestfs-actions.pod:3995
27458 #, no-wrap
27459 msgid ""
27460 " struct guestfs_stat_list *\n"
27461 " guestfs_lstatlist (guestfs_h *g,\n"
27462 "                    const char *path,\n"
27463 "                    char *const *names);\n"
27464 "\n"
27465 msgstr ""
27466 " struct guestfs_stat_list *\n"
27467 " guestfs_lstatlist (guestfs_h *g,\n"
27468 "                    const char *path,\n"
27469 "                    char *const *names);\n"
27470 "\n"
27471
27472 #. type: textblock
27473 #: ../src/guestfs-actions.pod:4000
27474 msgid ""
27475 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27476 "files, where all files are in the directory C<path>.  C<names> is the list "
27477 "of files from this directory."
27478 msgstr ""
27479
27480 #. type: textblock
27481 #: ../src/guestfs-actions.pod:4009
27482 msgid ""
27483 "This call is intended for programs that want to efficiently list a directory "
27484 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27485 "for a similarly efficient call for getting extended attributes.  Very long "
27486 "directory listings might cause the protocol message size to be exceeded, "
27487 "causing this call to fail.  The caller must split up such requests into "
27488 "smaller groups of names."
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../src/guestfs-actions.pod:4017
27493 msgid ""
27494 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27495 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27496 msgstr ""
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:4023
27500 msgid "guestfs_luks_add_key"
27501 msgstr "guestfs_luks_add_key"
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:4025
27505 #, no-wrap
27506 msgid ""
27507 " int\n"
27508 " guestfs_luks_add_key (guestfs_h *g,\n"
27509 "                       const char *device,\n"
27510 "                       const char *key,\n"
27511 "                       const char *newkey,\n"
27512 "                       int keyslot);\n"
27513 "\n"
27514 msgstr ""
27515 " int\n"
27516 " guestfs_luks_add_key (guestfs_h *g,\n"
27517 "                       const char *device,\n"
27518 "                       const char *key,\n"
27519 "                       const char *newkey,\n"
27520 "                       int keyslot);\n"
27521 "\n"
27522
27523 #. type: textblock
27524 #: ../src/guestfs-actions.pod:4037
27525 msgid ""
27526 "Note that if C<keyslot> already contains a key, then this command will "
27527 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27528 msgstr ""
27529
27530 #. type: textblock
27531 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4083
27532 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4126
27533 #: ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4180
27534 msgid ""
27535 "This function takes a key or passphrase parameter which could contain "
27536 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27537 "information."
27538 msgstr ""
27539
27540 #. type: textblock
27541 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
27542 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
27543 msgid "(Added in 1.5.2)"
27544 msgstr "(Додано у 1.5.2)"
27545
27546 #. type: =head2
27547 #: ../src/guestfs-actions.pod:4049
27548 msgid "guestfs_luks_close"
27549 msgstr "guestfs_luks_close"
27550
27551 #. type: verbatim
27552 #: ../src/guestfs-actions.pod:4051
27553 #, no-wrap
27554 msgid ""
27555 " int\n"
27556 " guestfs_luks_close (guestfs_h *g,\n"
27557 "                     const char *device);\n"
27558 "\n"
27559 msgstr ""
27560 " int\n"
27561 " guestfs_luks_close (guestfs_h *g,\n"
27562 "                     const char *device);\n"
27563 "\n"
27564
27565 #. type: textblock
27566 #: ../src/guestfs-actions.pod:4055
27567 msgid ""
27568 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27569 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27570 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27571 "underlying block device."
27572 msgstr ""
27573
27574 #. type: textblock
27575 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4165
27576 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4234
27577 #: ../src/guestfs-actions.pod:4282
27578 msgid "(Added in 1.5.1)"
27579 msgstr "(Додано у 1.5.1)"
27580
27581 #. type: =head2
27582 #: ../src/guestfs-actions.pod:4065
27583 msgid "guestfs_luks_format"
27584 msgstr "guestfs_luks_format"
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:4067
27588 #, no-wrap
27589 msgid ""
27590 " int\n"
27591 " guestfs_luks_format (guestfs_h *g,\n"
27592 "                      const char *device,\n"
27593 "                      const char *key,\n"
27594 "                      int keyslot);\n"
27595 "\n"
27596 msgstr ""
27597 " int\n"
27598 " guestfs_luks_format (guestfs_h *g,\n"
27599 "                      const char *device,\n"
27600 "                      const char *key,\n"
27601 "                      int keyslot);\n"
27602 "\n"
27603
27604 #. type: =head2
27605 #: ../src/guestfs-actions.pod:4089
27606 msgid "guestfs_luks_format_cipher"
27607 msgstr "guestfs_luks_format_cipher"
27608
27609 #. type: verbatim
27610 #: ../src/guestfs-actions.pod:4091
27611 #, no-wrap
27612 msgid ""
27613 " int\n"
27614 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27615 "                             const char *device,\n"
27616 "                             const char *key,\n"
27617 "                             int keyslot,\n"
27618 "                             const char *cipher);\n"
27619 "\n"
27620 msgstr ""
27621 " int\n"
27622 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27623 "                             const char *device,\n"
27624 "                             const char *key,\n"
27625 "                             int keyslot,\n"
27626 "                             const char *cipher);\n"
27627 "\n"
27628
27629 #. type: textblock
27630 #: ../src/guestfs-actions.pod:4098
27631 msgid ""
27632 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27633 "set the C<cipher> used."
27634 msgstr ""
27635
27636 #. type: =head2
27637 #: ../src/guestfs-actions.pod:4112
27638 msgid "guestfs_luks_kill_slot"
27639 msgstr "guestfs_luks_kill_slot"
27640
27641 #. type: verbatim
27642 #: ../src/guestfs-actions.pod:4114
27643 #, no-wrap
27644 msgid ""
27645 " int\n"
27646 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27647 "                         const char *device,\n"
27648 "                         const char *key,\n"
27649 "                         int keyslot);\n"
27650 "\n"
27651 msgstr ""
27652 " int\n"
27653 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27654 "                         const char *device,\n"
27655 "                         const char *key,\n"
27656 "                         int keyslot);\n"
27657 "\n"
27658
27659 #. type: =head2
27660 #: ../src/guestfs-actions.pod:4132
27661 msgid "guestfs_luks_open"
27662 msgstr "guestfs_luks_open"
27663
27664 #. type: verbatim
27665 #: ../src/guestfs-actions.pod:4134
27666 #, no-wrap
27667 msgid ""
27668 " int\n"
27669 " guestfs_luks_open (guestfs_h *g,\n"
27670 "                    const char *device,\n"
27671 "                    const char *key,\n"
27672 "                    const char *mapname);\n"
27673 "\n"
27674 msgstr ""
27675 " int\n"
27676 " guestfs_luks_open (guestfs_h *g,\n"
27677 "                    const char *device,\n"
27678 "                    const char *key,\n"
27679 "                    const char *mapname);\n"
27680 "\n"
27681
27682 #. type: textblock
27683 #: ../src/guestfs-actions.pod:4152
27684 msgid ""
27685 "If this block device contains LVM volume groups, then calling "
27686 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27687 "visible."
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:4156
27692 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../src/guestfs-actions.pod:4167
27697 msgid "guestfs_luks_open_ro"
27698 msgstr "guestfs_luks_open_ro"
27699
27700 #. type: verbatim
27701 #: ../src/guestfs-actions.pod:4169
27702 #, no-wrap
27703 msgid ""
27704 " int\n"
27705 " guestfs_luks_open_ro (guestfs_h *g,\n"
27706 "                       const char *device,\n"
27707 "                       const char *key,\n"
27708 "                       const char *mapname);\n"
27709 "\n"
27710 msgstr ""
27711 " int\n"
27712 " guestfs_luks_open_ro (guestfs_h *g,\n"
27713 "                       const char *device,\n"
27714 "                       const char *key,\n"
27715 "                       const char *mapname);\n"
27716 "\n"
27717
27718 #. type: textblock
27719 #: ../src/guestfs-actions.pod:4175
27720 msgid ""
27721 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27722 "created."
27723 msgstr ""
27724
27725 #. type: =head2
27726 #: ../src/guestfs-actions.pod:4186
27727 msgid "guestfs_lvcreate"
27728 msgstr "guestfs_lvcreate"
27729
27730 #. type: verbatim
27731 #: ../src/guestfs-actions.pod:4188
27732 #, no-wrap
27733 msgid ""
27734 " int\n"
27735 " guestfs_lvcreate (guestfs_h *g,\n"
27736 "                   const char *logvol,\n"
27737 "                   const char *volgroup,\n"
27738 "                   int mbytes);\n"
27739 "\n"
27740 msgstr ""
27741 " int\n"
27742 " guestfs_lvcreate (guestfs_h *g,\n"
27743 "                   const char *logvol,\n"
27744 "                   const char *volgroup,\n"
27745 "                   int mbytes);\n"
27746 "\n"
27747
27748 #. type: =head2
27749 #: ../src/guestfs-actions.pod:4201
27750 msgid "guestfs_lvm_canonical_lv_name"
27751 msgstr "guestfs_lvm_canonical_lv_name"
27752
27753 #. type: verbatim
27754 #: ../src/guestfs-actions.pod:4203
27755 #, no-wrap
27756 msgid ""
27757 " char *\n"
27758 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27759 "                                const char *lvname);\n"
27760 "\n"
27761 msgstr ""
27762 " char *\n"
27763 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27764 "                                const char *lvname);\n"
27765 "\n"
27766
27767 #. type: textblock
27768 #: ../src/guestfs-actions.pod:4214
27769 msgid "See also C<guestfs_is_lv>."
27770 msgstr ""
27771
27772 #. type: textblock
27773 #: ../src/guestfs-actions.pod:4219
27774 msgid "(Added in 1.5.24)"
27775 msgstr "(Додано у 1.5.24)"
27776
27777 #. type: =head2
27778 #: ../src/guestfs-actions.pod:4221
27779 msgid "guestfs_lvm_clear_filter"
27780 msgstr "guestfs_lvm_clear_filter"
27781
27782 #. type: verbatim
27783 #: ../src/guestfs-actions.pod:4223
27784 #, no-wrap
27785 msgid ""
27786 " int\n"
27787 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27788 "\n"
27789 msgstr ""
27790 " int\n"
27791 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27792 "\n"
27793
27794 #. type: textblock
27795 #: ../src/guestfs-actions.pod:4226
27796 msgid ""
27797 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27798 "see every block device."
27799 msgstr ""
27800
27801 #. type: =head2
27802 #: ../src/guestfs-actions.pod:4236
27803 msgid "guestfs_lvm_remove_all"
27804 msgstr "guestfs_lvm_remove_all"
27805
27806 #. type: verbatim
27807 #: ../src/guestfs-actions.pod:4238
27808 #, no-wrap
27809 msgid ""
27810 " int\n"
27811 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27812 "\n"
27813 msgstr ""
27814 " int\n"
27815 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27816 "\n"
27817
27818 #. type: =head2
27819 #: ../src/guestfs-actions.pod:4251
27820 msgid "guestfs_lvm_set_filter"
27821 msgstr "guestfs_lvm_set_filter"
27822
27823 #. type: verbatim
27824 #: ../src/guestfs-actions.pod:4253
27825 #, no-wrap
27826 msgid ""
27827 " int\n"
27828 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27829 "                         char *const *devices);\n"
27830 "\n"
27831 msgstr ""
27832 " int\n"
27833 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27834 "                         char *const *devices);\n"
27835 "\n"
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:4284
27839 msgid "guestfs_lvremove"
27840 msgstr "guestfs_lvremove"
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:4286
27844 #, no-wrap
27845 msgid ""
27846 " int\n"
27847 " guestfs_lvremove (guestfs_h *g,\n"
27848 "                   const char *device);\n"
27849 "\n"
27850 msgstr ""
27851 " int\n"
27852 " guestfs_lvremove (guestfs_h *g,\n"
27853 "                   const char *device);\n"
27854 "\n"
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:5701
27858 #: ../src/guestfs-actions.pod:7535
27859 msgid "(Added in 1.0.13)"
27860 msgstr "(Додано у 1.0.13)"
27861
27862 #. type: =head2
27863 #: ../src/guestfs-actions.pod:4300
27864 msgid "guestfs_lvrename"
27865 msgstr "guestfs_lvrename"
27866
27867 #. type: verbatim
27868 #: ../src/guestfs-actions.pod:4302
27869 #, no-wrap
27870 msgid ""
27871 " int\n"
27872 " guestfs_lvrename (guestfs_h *g,\n"
27873 "                   const char *logvol,\n"
27874 "                   const char *newlogvol);\n"
27875 "\n"
27876 msgstr ""
27877 " int\n"
27878 " guestfs_lvrename (guestfs_h *g,\n"
27879 "                   const char *logvol,\n"
27880 "                   const char *newlogvol);\n"
27881 "\n"
27882
27883 #. type: textblock
27884 #: ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:7548
27885 msgid "(Added in 1.0.83)"
27886 msgstr "(Додано у 1.0.83)"
27887
27888 #. type: =head2
27889 #: ../src/guestfs-actions.pod:4313
27890 msgid "guestfs_lvresize"
27891 msgstr "guestfs_lvresize"
27892
27893 #. type: verbatim
27894 #: ../src/guestfs-actions.pod:4315
27895 #, no-wrap
27896 msgid ""
27897 " int\n"
27898 " guestfs_lvresize (guestfs_h *g,\n"
27899 "                   const char *device,\n"
27900 "                   int mbytes);\n"
27901 "\n"
27902 msgstr ""
27903 " int\n"
27904 " guestfs_lvresize (guestfs_h *g,\n"
27905 "                   const char *device,\n"
27906 "                   int mbytes);\n"
27907 "\n"
27908
27909 #. type: =head2
27910 #: ../src/guestfs-actions.pod:4328
27911 msgid "guestfs_lvresize_free"
27912 msgstr "guestfs_lvresize_free"
27913
27914 #. type: verbatim
27915 #: ../src/guestfs-actions.pod:4330
27916 #, no-wrap
27917 msgid ""
27918 " int\n"
27919 " guestfs_lvresize_free (guestfs_h *g,\n"
27920 "                        const char *lv,\n"
27921 "                        int percent);\n"
27922 "\n"
27923 msgstr ""
27924 " int\n"
27925 " guestfs_lvresize_free (guestfs_h *g,\n"
27926 "                        const char *lv,\n"
27927 "                        int percent);\n"
27928 "\n"
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:4343
27932 msgid "(Added in 1.3.3)"
27933 msgstr "(Додано у 1.3.3)"
27934
27935 #. type: =head2
27936 #: ../src/guestfs-actions.pod:4345
27937 msgid "guestfs_lvs"
27938 msgstr "guestfs_lvs"
27939
27940 #. type: verbatim
27941 #: ../src/guestfs-actions.pod:4347
27942 #, no-wrap
27943 msgid ""
27944 " char **\n"
27945 " guestfs_lvs (guestfs_h *g);\n"
27946 "\n"
27947 msgstr ""
27948 " char **\n"
27949 " guestfs_lvs (guestfs_h *g);\n"
27950 "\n"
27951
27952 #. type: textblock
27953 #: ../src/guestfs-actions.pod:4356
27954 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27955 msgstr ""
27956
27957 #. type: =head2
27958 #: ../src/guestfs-actions.pod:4364
27959 msgid "guestfs_lvs_full"
27960 msgstr "guestfs_lvs_full"
27961
27962 #. type: verbatim
27963 #: ../src/guestfs-actions.pod:4366
27964 #, no-wrap
27965 msgid ""
27966 " struct guestfs_lvm_lv_list *\n"
27967 " guestfs_lvs_full (guestfs_h *g);\n"
27968 "\n"
27969 msgstr ""
27970 " struct guestfs_lvm_lv_list *\n"
27971 " guestfs_lvs_full (guestfs_h *g);\n"
27972 "\n"
27973
27974 #. type: textblock
27975 #: ../src/guestfs-actions.pod:4372
27976 msgid ""
27977 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27978 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27979 msgstr ""
27980
27981 #. type: =head2
27982 #: ../src/guestfs-actions.pod:4378
27983 msgid "guestfs_lvuuid"
27984 msgstr "guestfs_lvuuid"
27985
27986 #. type: verbatim
27987 #: ../src/guestfs-actions.pod:4380
27988 #, no-wrap
27989 msgid ""
27990 " char *\n"
27991 " guestfs_lvuuid (guestfs_h *g,\n"
27992 "                 const char *device);\n"
27993 "\n"
27994 msgstr ""
27995 " char *\n"
27996 " guestfs_lvuuid (guestfs_h *g,\n"
27997 "                 const char *device);\n"
27998 "\n"
27999
28000 #. type: =head2
28001 #: ../src/guestfs-actions.pod:4391
28002 msgid "guestfs_lxattrlist"
28003 msgstr "guestfs_lxattrlist"
28004
28005 #. type: verbatim
28006 #: ../src/guestfs-actions.pod:4393
28007 #, no-wrap
28008 msgid ""
28009 " struct guestfs_xattr_list *\n"
28010 " guestfs_lxattrlist (guestfs_h *g,\n"
28011 "                     const char *path,\n"
28012 "                     char *const *names);\n"
28013 "\n"
28014 msgstr ""
28015 " struct guestfs_xattr_list *\n"
28016 " guestfs_lxattrlist (guestfs_h *g,\n"
28017 "                     const char *path,\n"
28018 "                     char *const *names);\n"
28019 "\n"
28020
28021 #. type: textblock
28022 #: ../src/guestfs-actions.pod:4412
28023 msgid ""
28024 "This call is intended for programs that want to efficiently list a directory "
28025 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28026 "a similarly efficient call for getting standard stats.  Very long directory "
28027 "listings might cause the protocol message size to be exceeded, causing this "
28028 "call to fail.  The caller must split up such requests into smaller groups of "
28029 "names."
28030 msgstr ""
28031
28032 #. type: =head2
28033 #: ../src/guestfs-actions.pod:4426
28034 msgid "guestfs_mkdir"
28035 msgstr "guestfs_mkdir"
28036
28037 #. type: verbatim
28038 #: ../src/guestfs-actions.pod:4428
28039 #, no-wrap
28040 msgid ""
28041 " int\n"
28042 " guestfs_mkdir (guestfs_h *g,\n"
28043 "                const char *path);\n"
28044 "\n"
28045 msgstr ""
28046 " int\n"
28047 " guestfs_mkdir (guestfs_h *g,\n"
28048 "                const char *path);\n"
28049 "\n"
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:4438
28053 msgid "guestfs_mkdir_mode"
28054 msgstr "guestfs_mkdir_mode"
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:4440
28058 #, no-wrap
28059 msgid ""
28060 " int\n"
28061 " guestfs_mkdir_mode (guestfs_h *g,\n"
28062 "                     const char *path,\n"
28063 "                     int mode);\n"
28064 "\n"
28065 msgstr ""
28066 " int\n"
28067 " guestfs_mkdir_mode (guestfs_h *g,\n"
28068 "                     const char *path,\n"
28069 "                     int mode);\n"
28070 "\n"
28071
28072 #. type: textblock
28073 #: ../src/guestfs-actions.pod:4452
28074 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28075 msgstr ""
28076
28077 #. type: =head2
28078 #: ../src/guestfs-actions.pod:4458
28079 msgid "guestfs_mkdir_p"
28080 msgstr "guestfs_mkdir_p"
28081
28082 #. type: verbatim
28083 #: ../src/guestfs-actions.pod:4460
28084 #, no-wrap
28085 msgid ""
28086 " int\n"
28087 " guestfs_mkdir_p (guestfs_h *g,\n"
28088 "                  const char *path);\n"
28089 "\n"
28090 msgstr ""
28091 " int\n"
28092 " guestfs_mkdir_p (guestfs_h *g,\n"
28093 "                  const char *path);\n"
28094 "\n"
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:4471
28098 msgid "guestfs_mkdtemp"
28099 msgstr "guestfs_mkdtemp"
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:4473
28103 #, no-wrap
28104 msgid ""
28105 " char *\n"
28106 " guestfs_mkdtemp (guestfs_h *g,\n"
28107 "                  const char *template);\n"
28108 "\n"
28109 msgstr ""
28110 " char *\n"
28111 " guestfs_mkdtemp (guestfs_h *g,\n"
28112 "                  const char *template);\n"
28113 "\n"
28114
28115 #. type: =head2
28116 #: ../src/guestfs-actions.pod:4501
28117 msgid "guestfs_mke2fs_J"
28118 msgstr "guestfs_mke2fs_J"
28119
28120 #. type: verbatim
28121 #: ../src/guestfs-actions.pod:4503
28122 #, no-wrap
28123 msgid ""
28124 " int\n"
28125 " guestfs_mke2fs_J (guestfs_h *g,\n"
28126 "                   const char *fstype,\n"
28127 "                   int blocksize,\n"
28128 "                   const char *device,\n"
28129 "                   const char *journal);\n"
28130 "\n"
28131 msgstr ""
28132 " int\n"
28133 " guestfs_mke2fs_J (guestfs_h *g,\n"
28134 "                   const char *fstype,\n"
28135 "                   int blocksize,\n"
28136 "                   const char *device,\n"
28137 "                   const char *journal);\n"
28138 "\n"
28139
28140 #. type: textblock
28141 #: ../src/guestfs-actions.pod:4516
28142 msgid "See also C<guestfs_mke2journal>."
28143 msgstr ""
28144
28145 #. type: textblock
28146 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4538
28147 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4572
28148 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4600
28149 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4936
28150 msgid "(Added in 1.0.68)"
28151 msgstr "(Додано у 1.0.68)"
28152
28153 #. type: =head2
28154 #: ../src/guestfs-actions.pod:4522
28155 msgid "guestfs_mke2fs_JL"
28156 msgstr "guestfs_mke2fs_JL"
28157
28158 #. type: verbatim
28159 #: ../src/guestfs-actions.pod:4524
28160 #, no-wrap
28161 msgid ""
28162 " int\n"
28163 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28164 "                    const char *fstype,\n"
28165 "                    int blocksize,\n"
28166 "                    const char *device,\n"
28167 "                    const char *label);\n"
28168 "\n"
28169 msgstr ""
28170 " int\n"
28171 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28172 "                    const char *fstype,\n"
28173 "                    int blocksize,\n"
28174 "                    const char *device,\n"
28175 "                    const char *label);\n"
28176 "\n"
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:4534
28180 msgid "See also C<guestfs_mke2journal_L>."
28181 msgstr ""
28182
28183 #. type: =head2
28184 #: ../src/guestfs-actions.pod:4540
28185 msgid "guestfs_mke2fs_JU"
28186 msgstr "guestfs_mke2fs_JU"
28187
28188 #. type: verbatim
28189 #: ../src/guestfs-actions.pod:4542
28190 #, no-wrap
28191 msgid ""
28192 " int\n"
28193 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28194 "                    const char *fstype,\n"
28195 "                    int blocksize,\n"
28196 "                    const char *device,\n"
28197 "                    const char *uuid);\n"
28198 "\n"
28199 msgstr ""
28200 " int\n"
28201 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28202 "                    const char *fstype,\n"
28203 "                    int blocksize,\n"
28204 "                    const char *device,\n"
28205 "                    const char *uuid);\n"
28206 "\n"
28207
28208 #. type: textblock
28209 #: ../src/guestfs-actions.pod:4552
28210 msgid "See also C<guestfs_mke2journal_U>."
28211 msgstr ""
28212
28213 #. type: =head2
28214 #: ../src/guestfs-actions.pod:4558
28215 msgid "guestfs_mke2journal"
28216 msgstr "guestfs_mke2journal"
28217
28218 #. type: verbatim
28219 #: ../src/guestfs-actions.pod:4560
28220 #, no-wrap
28221 msgid ""
28222 " int\n"
28223 " guestfs_mke2journal (guestfs_h *g,\n"
28224 "                      int blocksize,\n"
28225 "                      const char *device);\n"
28226 "\n"
28227 msgstr ""
28228 " int\n"
28229 " guestfs_mke2journal (guestfs_h *g,\n"
28230 "                      int blocksize,\n"
28231 "                      const char *device);\n"
28232 "\n"
28233
28234 #. type: =head2
28235 #: ../src/guestfs-actions.pod:4574
28236 msgid "guestfs_mke2journal_L"
28237 msgstr "guestfs_mke2journal_L"
28238
28239 #. type: verbatim
28240 #: ../src/guestfs-actions.pod:4576
28241 #, no-wrap
28242 msgid ""
28243 " int\n"
28244 " guestfs_mke2journal_L (guestfs_h *g,\n"
28245 "                        int blocksize,\n"
28246 "                        const char *label,\n"
28247 "                        const char *device);\n"
28248 "\n"
28249 msgstr ""
28250 " int\n"
28251 " guestfs_mke2journal_L (guestfs_h *g,\n"
28252 "                        int blocksize,\n"
28253 "                        const char *label,\n"
28254 "                        const char *device);\n"
28255 "\n"
28256
28257 #. type: =head2
28258 #: ../src/guestfs-actions.pod:4588
28259 msgid "guestfs_mke2journal_U"
28260 msgstr "guestfs_mke2journal_U"
28261
28262 #. type: verbatim
28263 #: ../src/guestfs-actions.pod:4590
28264 #, no-wrap
28265 msgid ""
28266 " int\n"
28267 " guestfs_mke2journal_U (guestfs_h *g,\n"
28268 "                        int blocksize,\n"
28269 "                        const char *uuid,\n"
28270 "                        const char *device);\n"
28271 "\n"
28272 msgstr ""
28273 " int\n"
28274 " guestfs_mke2journal_U (guestfs_h *g,\n"
28275 "                        int blocksize,\n"
28276 "                        const char *uuid,\n"
28277 "                        const char *device);\n"
28278 "\n"
28279
28280 #. type: =head2
28281 #: ../src/guestfs-actions.pod:4602
28282 msgid "guestfs_mkfifo"
28283 msgstr "guestfs_mkfifo"
28284
28285 #. type: verbatim
28286 #: ../src/guestfs-actions.pod:4604
28287 #, no-wrap
28288 msgid ""
28289 " int\n"
28290 " guestfs_mkfifo (guestfs_h *g,\n"
28291 "                 int mode,\n"
28292 "                 const char *path);\n"
28293 "\n"
28294 msgstr ""
28295 " int\n"
28296 " guestfs_mkfifo (guestfs_h *g,\n"
28297 "                 int mode,\n"
28298 "                 const char *path);\n"
28299 "\n"
28300
28301 #. type: textblock
28302 #: ../src/guestfs-actions.pod:4609
28303 msgid ""
28304 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28305 "is just a convenient wrapper around C<guestfs_mknod>."
28306 msgstr ""
28307
28308 #. type: =head2
28309 #: ../src/guestfs-actions.pod:4619
28310 msgid "guestfs_mkfs"
28311 msgstr "guestfs_mkfs"
28312
28313 #. type: verbatim
28314 #: ../src/guestfs-actions.pod:4621
28315 #, no-wrap
28316 msgid ""
28317 " int\n"
28318 " guestfs_mkfs (guestfs_h *g,\n"
28319 "               const char *fstype,\n"
28320 "               const char *device);\n"
28321 "\n"
28322 msgstr ""
28323 " int\n"
28324 " guestfs_mkfs (guestfs_h *g,\n"
28325 "               const char *fstype,\n"
28326 "               const char *device);\n"
28327 "\n"
28328
28329 #. type: =head2
28330 #: ../src/guestfs-actions.pod:4634
28331 msgid "guestfs_mkfs_b"
28332 msgstr "guestfs_mkfs_b"
28333
28334 #. type: verbatim
28335 #: ../src/guestfs-actions.pod:4636
28336 #, no-wrap
28337 msgid ""
28338 " int\n"
28339 " guestfs_mkfs_b (guestfs_h *g,\n"
28340 "                 const char *fstype,\n"
28341 "                 int blocksize,\n"
28342 "                 const char *device);\n"
28343 "\n"
28344 msgstr ""
28345 " int\n"
28346 " guestfs_mkfs_b (guestfs_h *g,\n"
28347 "                 const char *fstype,\n"
28348 "                 int blocksize,\n"
28349 "                 const char *device);\n"
28350 "\n"
28351
28352 #. type: textblock
28353 #: ../src/guestfs-actions.pod:4642
28354 msgid ""
28355 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28356 "block size of the resulting filesystem.  Supported block sizes depend on the "
28357 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28358 msgstr ""
28359
28360 #. type: textblock
28361 #: ../src/guestfs-actions.pod:4652
28362 msgid ""
28363 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
28364 "call instead."
28365 msgstr ""
28366
28367 #. type: =head2
28368 #: ../src/guestfs-actions.pod:4661
28369 msgid "guestfs_mkfs_opts"
28370 msgstr "guestfs_mkfs_opts"
28371
28372 #. type: verbatim
28373 #: ../src/guestfs-actions.pod:4663
28374 #, no-wrap
28375 msgid ""
28376 " int\n"
28377 " guestfs_mkfs_opts (guestfs_h *g,\n"
28378 "                    const char *fstype,\n"
28379 "                    const char *device,\n"
28380 "                    ...);\n"
28381 "\n"
28382 msgstr ""
28383 " int\n"
28384 " guestfs_mkfs_opts (guestfs_h *g,\n"
28385 "                    const char *fstype,\n"
28386 "                    const char *device,\n"
28387 "                    ...);\n"
28388 "\n"
28389
28390 #. type: verbatim
28391 #: ../src/guestfs-actions.pod:4674
28392 #, no-wrap
28393 msgid ""
28394 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28395 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28396 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28397 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28398 "\n"
28399 msgstr ""
28400
28401 #. type: textblock
28402 #: ../src/guestfs-actions.pod:4722
28403 msgid "(Added in 1.7.19)"
28404 msgstr "(Додано у 1.7.19)"
28405
28406 #. type: =head2
28407 #: ../src/guestfs-actions.pod:4724
28408 msgid "guestfs_mkfs_opts_va"
28409 msgstr "guestfs_mkfs_opts_va"
28410
28411 #. type: verbatim
28412 #: ../src/guestfs-actions.pod:4726
28413 #, no-wrap
28414 msgid ""
28415 " int\n"
28416 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28417 "                       const char *fstype,\n"
28418 "                       const char *device,\n"
28419 "                       va_list args);\n"
28420 "\n"
28421 msgstr ""
28422 " int\n"
28423 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28424 "                       const char *fstype,\n"
28425 "                       const char *device,\n"
28426 "                       va_list args);\n"
28427 "\n"
28428
28429 #. type: textblock
28430 #: ../src/guestfs-actions.pod:4732
28431 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28432 msgstr ""
28433
28434 #. type: =head2
28435 #: ../src/guestfs-actions.pod:4736
28436 msgid "guestfs_mkfs_opts_argv"
28437 msgstr "guestfs_mkfs_opts_argv"
28438
28439 #. type: verbatim
28440 #: ../src/guestfs-actions.pod:4738
28441 #, no-wrap
28442 msgid ""
28443 " int\n"
28444 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28445 "                         const char *fstype,\n"
28446 "                         const char *device,\n"
28447 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28448 "\n"
28449 msgstr ""
28450 " int\n"
28451 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28452 "                         const char *fstype,\n"
28453 "                         const char *device,\n"
28454 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28455 "\n"
28456
28457 #. type: textblock
28458 #: ../src/guestfs-actions.pod:4744
28459 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28460 msgstr ""
28461
28462 #. type: =head2
28463 #: ../src/guestfs-actions.pod:4748
28464 msgid "guestfs_mkmountpoint"
28465 msgstr "guestfs_mkmountpoint"
28466
28467 #. type: verbatim
28468 #: ../src/guestfs-actions.pod:4750
28469 #, no-wrap
28470 msgid ""
28471 " int\n"
28472 " guestfs_mkmountpoint (guestfs_h *g,\n"
28473 "                       const char *exemptpath);\n"
28474 "\n"
28475 msgstr ""
28476 " int\n"
28477 " guestfs_mkmountpoint (guestfs_h *g,\n"
28478 "                       const char *exemptpath);\n"
28479 "\n"
28480
28481 #. type: textblock
28482 #: ../src/guestfs-actions.pod:4754
28483 msgid ""
28484 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28485 "that can be used to create extra mountpoints before mounting the first "
28486 "filesystem."
28487 msgstr ""
28488
28489 #. type: textblock
28490 #: ../src/guestfs-actions.pod:4778
28491 msgid ""
28492 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28493 "may get unexpected errors if you try to mix these calls.  It is safest to "
28494 "manually unmount filesystems and remove mountpoints after use."
28495 msgstr ""
28496
28497 #. type: textblock
28498 #: ../src/guestfs-actions.pod:4782
28499 msgid ""
28500 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28501 "first, so for this to work for manual mountpoints, you must ensure that the "
28502 "innermost mountpoints have the longest pathnames, as in the example code "
28503 "above."
28504 msgstr ""
28505
28506 #. type: textblock
28507 #: ../src/guestfs-actions.pod:4789
28508 msgid ""
28509 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28510 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28511 "can also trigger these issues."
28512 msgstr ""
28513
28514 #. type: textblock
28515 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5111
28516 #: ../src/guestfs-actions.pod:6121
28517 msgid "(Added in 1.0.62)"
28518 msgstr "(Додано у 1.0.62)"
28519
28520 #. type: =head2
28521 #: ../src/guestfs-actions.pod:4797
28522 msgid "guestfs_mknod"
28523 msgstr ""
28524
28525 #. type: verbatim
28526 #: ../src/guestfs-actions.pod:4799
28527 #, no-wrap
28528 msgid ""
28529 " int\n"
28530 " guestfs_mknod (guestfs_h *g,\n"
28531 "                int mode,\n"
28532 "                int devmajor,\n"
28533 "                int devminor,\n"
28534 "                const char *path);\n"
28535 "\n"
28536 msgstr ""
28537
28538 #. type: textblock
28539 #: ../src/guestfs-actions.pod:4814
28540 msgid ""
28541 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28542 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28543 "regular file).  These constants are available in the standard Linux header "
28544 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28545 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28546 "the appropriate constant for you."
28547 msgstr ""
28548
28549 #. type: =head2
28550 #: ../src/guestfs-actions.pod:4828
28551 msgid "guestfs_mknod_b"
28552 msgstr ""
28553
28554 #. type: verbatim
28555 #: ../src/guestfs-actions.pod:4830
28556 #, no-wrap
28557 msgid ""
28558 " int\n"
28559 " guestfs_mknod_b (guestfs_h *g,\n"
28560 "                  int mode,\n"
28561 "                  int devmajor,\n"
28562 "                  int devminor,\n"
28563 "                  const char *path);\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: textblock
28568 #: ../src/guestfs-actions.pod:4837
28569 msgid ""
28570 "This call creates a block device node called C<path> with mode C<mode> and "
28571 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28572 "wrapper around C<guestfs_mknod>."
28573 msgstr ""
28574
28575 #. type: =head2
28576 #: ../src/guestfs-actions.pod:4847
28577 msgid "guestfs_mknod_c"
28578 msgstr ""
28579
28580 #. type: verbatim
28581 #: ../src/guestfs-actions.pod:4849
28582 #, no-wrap
28583 msgid ""
28584 " int\n"
28585 " guestfs_mknod_c (guestfs_h *g,\n"
28586 "                  int mode,\n"
28587 "                  int devmajor,\n"
28588 "                  int devminor,\n"
28589 "                  const char *path);\n"
28590 "\n"
28591 msgstr ""
28592
28593 #. type: textblock
28594 #: ../src/guestfs-actions.pod:4856
28595 msgid ""
28596 "This call creates a char device node called C<path> with mode C<mode> and "
28597 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28598 "wrapper around C<guestfs_mknod>."
28599 msgstr ""
28600
28601 #. type: =head2
28602 #: ../src/guestfs-actions.pod:4866
28603 msgid "guestfs_mkswap"
28604 msgstr ""
28605
28606 #. type: verbatim
28607 #: ../src/guestfs-actions.pod:4868
28608 #, no-wrap
28609 msgid ""
28610 " int\n"
28611 " guestfs_mkswap (guestfs_h *g,\n"
28612 "                 const char *device);\n"
28613 "\n"
28614 msgstr ""
28615
28616 #. type: =head2
28617 #: ../src/guestfs-actions.pod:4878
28618 msgid "guestfs_mkswap_L"
28619 msgstr ""
28620
28621 #. type: verbatim
28622 #: ../src/guestfs-actions.pod:4880
28623 #, no-wrap
28624 msgid ""
28625 " int\n"
28626 " guestfs_mkswap_L (guestfs_h *g,\n"
28627 "                   const char *label,\n"
28628 "                   const char *device);\n"
28629 "\n"
28630 msgstr ""
28631
28632 #. type: =head2
28633 #: ../src/guestfs-actions.pod:4895
28634 msgid "guestfs_mkswap_U"
28635 msgstr ""
28636
28637 #. type: verbatim
28638 #: ../src/guestfs-actions.pod:4897
28639 #, no-wrap
28640 msgid ""
28641 " int\n"
28642 " guestfs_mkswap_U (guestfs_h *g,\n"
28643 "                   const char *uuid,\n"
28644 "                   const char *device);\n"
28645 "\n"
28646 msgstr ""
28647
28648 #. type: =head2
28649 #: ../src/guestfs-actions.pod:4908
28650 msgid "guestfs_mkswap_file"
28651 msgstr ""
28652
28653 #. type: verbatim
28654 #: ../src/guestfs-actions.pod:4910
28655 #, no-wrap
28656 msgid ""
28657 " int\n"
28658 " guestfs_mkswap_file (guestfs_h *g,\n"
28659 "                      const char *path);\n"
28660 "\n"
28661 msgstr ""
28662
28663 #. type: textblock
28664 #: ../src/guestfs-actions.pod:4916
28665 msgid ""
28666 "This command just writes a swap file signature to an existing file.  To "
28667 "create the file itself, use something like C<guestfs_fallocate>."
28668 msgstr ""
28669
28670 #. type: =head2
28671 #: ../src/guestfs-actions.pod:4923
28672 msgid "guestfs_modprobe"
28673 msgstr ""
28674
28675 #. type: verbatim
28676 #: ../src/guestfs-actions.pod:4925
28677 #, no-wrap
28678 msgid ""
28679 " int\n"
28680 " guestfs_modprobe (guestfs_h *g,\n"
28681 "                   const char *modulename);\n"
28682 "\n"
28683 msgstr ""
28684
28685 #. type: =head2
28686 #: ../src/guestfs-actions.pod:4938
28687 msgid "guestfs_mount"
28688 msgstr ""
28689
28690 #. type: verbatim
28691 #: ../src/guestfs-actions.pod:4940
28692 #, no-wrap
28693 msgid ""
28694 " int\n"
28695 " guestfs_mount (guestfs_h *g,\n"
28696 "                const char *device,\n"
28697 "                const char *mountpoint);\n"
28698 "\n"
28699 msgstr ""
28700
28701 #. type: textblock
28702 #: ../src/guestfs-actions.pod:4959
28703 msgid ""
28704 "B<Important note:> When you use this call, the filesystem options C<sync> "
28705 "and C<noatime> are set implicitly.  This was originally done because we "
28706 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28707 "very large negative performance impact and negligible effect on "
28708 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28709 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28710 "(use an empty string for the first parameter if you don't want any options)."
28711 msgstr ""
28712
28713 #. type: textblock
28714 #: ../src/guestfs-actions.pod:4971
28715 msgid ""
28716 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
28717 "call instead."
28718 msgstr ""
28719
28720 #. type: =head2
28721 #: ../src/guestfs-actions.pod:4980
28722 msgid "guestfs_mount_9p"
28723 msgstr ""
28724
28725 #. type: verbatim
28726 #: ../src/guestfs-actions.pod:4982
28727 #, no-wrap
28728 msgid ""
28729 " int\n"
28730 " guestfs_mount_9p (guestfs_h *g,\n"
28731 "                   const char *mounttag,\n"
28732 "                   const char *mountpoint,\n"
28733 "                   ...);\n"
28734 "\n"
28735 msgstr ""
28736
28737 #. type: verbatim
28738 #: ../src/guestfs-actions.pod:4993
28739 #, no-wrap
28740 msgid ""
28741 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28742 "\n"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:5006
28747 msgid "guestfs_mount_9p_va"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:5008
28752 #, no-wrap
28753 msgid ""
28754 " int\n"
28755 " guestfs_mount_9p_va (guestfs_h *g,\n"
28756 "                      const char *mounttag,\n"
28757 "                      const char *mountpoint,\n"
28758 "                      va_list args);\n"
28759 "\n"
28760 msgstr ""
28761
28762 #. type: textblock
28763 #: ../src/guestfs-actions.pod:5014
28764 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:5018
28769 msgid "guestfs_mount_9p_argv"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:5020
28774 #, no-wrap
28775 msgid ""
28776 " int\n"
28777 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28778 "                        const char *mounttag,\n"
28779 "                        const char *mountpoint,\n"
28780 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28781 "\n"
28782 msgstr ""
28783
28784 #. type: textblock
28785 #: ../src/guestfs-actions.pod:5026
28786 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28787 msgstr ""
28788
28789 #. type: =head2
28790 #: ../src/guestfs-actions.pod:5030
28791 msgid "guestfs_mount_loop"
28792 msgstr ""
28793
28794 #. type: verbatim
28795 #: ../src/guestfs-actions.pod:5032
28796 #, no-wrap
28797 msgid ""
28798 " int\n"
28799 " guestfs_mount_loop (guestfs_h *g,\n"
28800 "                     const char *file,\n"
28801 "                     const char *mountpoint);\n"
28802 "\n"
28803 msgstr ""
28804
28805 #. type: =head2
28806 #: ../src/guestfs-actions.pod:5045
28807 msgid "guestfs_mount_options"
28808 msgstr ""
28809
28810 #. type: verbatim
28811 #: ../src/guestfs-actions.pod:5047
28812 #, no-wrap
28813 msgid ""
28814 " int\n"
28815 " guestfs_mount_options (guestfs_h *g,\n"
28816 "                        const char *options,\n"
28817 "                        const char *device,\n"
28818 "                        const char *mountpoint);\n"
28819 "\n"
28820 msgstr ""
28821
28822 #. type: textblock
28823 #: ../src/guestfs-actions.pod:5053
28824 msgid ""
28825 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28826 "the mount options as for the L<mount(8)> I<-o> flag."
28827 msgstr ""
28828
28829 #. type: textblock
28830 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5077
28831 #: ../src/guestfs-actions.pod:5094
28832 msgid "(Added in 1.0.10)"
28833 msgstr ""
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:5065
28837 msgid "guestfs_mount_ro"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:5067
28842 #, no-wrap
28843 msgid ""
28844 " int\n"
28845 " guestfs_mount_ro (guestfs_h *g,\n"
28846 "                   const char *device,\n"
28847 "                   const char *mountpoint);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:5072
28853 msgid ""
28854 "This is the same as the C<guestfs_mount> command, but it mounts the "
28855 "filesystem with the read-only (I<-o ro>) flag."
28856 msgstr ""
28857
28858 #. type: =head2
28859 #: ../src/guestfs-actions.pod:5079
28860 msgid "guestfs_mount_vfs"
28861 msgstr ""
28862
28863 #. type: verbatim
28864 #: ../src/guestfs-actions.pod:5081
28865 #, no-wrap
28866 msgid ""
28867 " int\n"
28868 " guestfs_mount_vfs (guestfs_h *g,\n"
28869 "                    const char *options,\n"
28870 "                    const char *vfstype,\n"
28871 "                    const char *device,\n"
28872 "                    const char *mountpoint);\n"
28873 "\n"
28874 msgstr ""
28875
28876 #. type: textblock
28877 #: ../src/guestfs-actions.pod:5088
28878 msgid ""
28879 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28880 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28881 "t> flags."
28882 msgstr ""
28883
28884 #. type: =head2
28885 #: ../src/guestfs-actions.pod:5096
28886 msgid "guestfs_mountpoints"
28887 msgstr ""
28888
28889 #. type: verbatim
28890 #: ../src/guestfs-actions.pod:5098
28891 #, no-wrap
28892 msgid ""
28893 " char **\n"
28894 " guestfs_mountpoints (guestfs_h *g);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: textblock
28899 #: ../src/guestfs-actions.pod:5101
28900 msgid ""
28901 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28902 "devices.  This one returns a hash table (map) of device name to directory "
28903 "where the device is mounted."
28904 msgstr ""
28905
28906 #. type: =head2
28907 #: ../src/guestfs-actions.pod:5113
28908 msgid "guestfs_mounts"
28909 msgstr ""
28910
28911 #. type: verbatim
28912 #: ../src/guestfs-actions.pod:5115
28913 #, no-wrap
28914 msgid ""
28915 " char **\n"
28916 " guestfs_mounts (guestfs_h *g);\n"
28917 "\n"
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../src/guestfs-actions.pod:5123
28922 msgid "See also: C<guestfs_mountpoints>"
28923 msgstr ""
28924
28925 #. type: =head2
28926 #: ../src/guestfs-actions.pod:5131
28927 msgid "guestfs_mv"
28928 msgstr ""
28929
28930 #. type: verbatim
28931 #: ../src/guestfs-actions.pod:5133
28932 #, no-wrap
28933 msgid ""
28934 " int\n"
28935 " guestfs_mv (guestfs_h *g,\n"
28936 "             const char *src,\n"
28937 "             const char *dest);\n"
28938 "\n"
28939 msgstr ""
28940
28941 #. type: =head2
28942 #: ../src/guestfs-actions.pod:5145
28943 msgid "guestfs_ntfs_3g_probe"
28944 msgstr ""
28945
28946 #. type: verbatim
28947 #: ../src/guestfs-actions.pod:5147
28948 #, no-wrap
28949 msgid ""
28950 " int\n"
28951 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28952 "                        int rw,\n"
28953 "                        const char *device);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../src/guestfs-actions.pod:5166
28959 msgid "(Added in 1.0.43)"
28960 msgstr ""
28961
28962 #. type: =head2
28963 #: ../src/guestfs-actions.pod:5168
28964 msgid "guestfs_ntfsresize"
28965 msgstr ""
28966
28967 #. type: verbatim
28968 #: ../src/guestfs-actions.pod:5170
28969 #, no-wrap
28970 msgid ""
28971 " int\n"
28972 " guestfs_ntfsresize (guestfs_h *g,\n"
28973 "                     const char *device);\n"
28974 "\n"
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5279
28979 msgid ""
28980 "This function is deprecated.  In new code, use the L</"
28981 "guestfs_ntfsresize_opts> call instead."
28982 msgstr ""
28983
28984 #. type: =head2
28985 #: ../src/guestfs-actions.pod:5198
28986 msgid "guestfs_ntfsresize_opts"
28987 msgstr ""
28988
28989 #. type: verbatim
28990 #: ../src/guestfs-actions.pod:5200
28991 #, no-wrap
28992 msgid ""
28993 " int\n"
28994 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28995 "                          const char *device,\n"
28996 "                          ...);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: verbatim
29001 #: ../src/guestfs-actions.pod:5210
29002 #, no-wrap
29003 msgid ""
29004 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29005 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29006 "\n"
29007 msgstr ""
29008
29009 #. type: textblock
29010 #: ../src/guestfs-actions.pod:5230
29011 msgid ""
29012 "After the resize operation, the filesystem is always marked as requiring a "
29013 "consistency check (for safety).  You have to boot into Windows to perform "
29014 "this check and clear this condition.  If you I<don't> set the C<force> "
29015 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29016 "times on a single filesystem without booting into Windows between each "
29017 "resize."
29018 msgstr ""
29019
29020 #. type: =head2
29021 #: ../src/guestfs-actions.pod:5245
29022 msgid "guestfs_ntfsresize_opts_va"
29023 msgstr ""
29024
29025 #. type: verbatim
29026 #: ../src/guestfs-actions.pod:5247
29027 #, no-wrap
29028 msgid ""
29029 " int\n"
29030 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29031 "                             const char *device,\n"
29032 "                             va_list args);\n"
29033 "\n"
29034 msgstr ""
29035
29036 #. type: textblock
29037 #: ../src/guestfs-actions.pod:5252
29038 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29039 msgstr ""
29040
29041 #. type: =head2
29042 #: ../src/guestfs-actions.pod:5256
29043 msgid "guestfs_ntfsresize_opts_argv"
29044 msgstr ""
29045
29046 #. type: verbatim
29047 #: ../src/guestfs-actions.pod:5258
29048 #, no-wrap
29049 msgid ""
29050 " int\n"
29051 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29052 "                               const char *device,\n"
29053 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29054 "\n"
29055 msgstr ""
29056
29057 #. type: textblock
29058 #: ../src/guestfs-actions.pod:5263
29059 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:5267
29064 msgid "guestfs_ntfsresize_size"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:5269
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29073 "                          const char *device,\n"
29074 "                          int64_t size);\n"
29075 "\n"
29076 msgstr ""
29077
29078 #. type: textblock
29079 #: ../src/guestfs-actions.pod:5274
29080 msgid ""
29081 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29082 "to specify the new size (in bytes) explicitly."
29083 msgstr ""
29084
29085 #. type: textblock
29086 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5728
29087 #: ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6069
29088 #: ../src/guestfs-actions.pod:7692
29089 msgid "(Added in 1.3.14)"
29090 msgstr ""
29091
29092 #. type: =head2
29093 #: ../src/guestfs-actions.pod:5288
29094 msgid "guestfs_part_add"
29095 msgstr ""
29096
29097 #. type: verbatim
29098 #: ../src/guestfs-actions.pod:5290
29099 #, no-wrap
29100 msgid ""
29101 " int\n"
29102 " guestfs_part_add (guestfs_h *g,\n"
29103 "                   const char *device,\n"
29104 "                   const char *prlogex,\n"
29105 "                   int64_t startsect,\n"
29106 "                   int64_t endsect);\n"
29107 "\n"
29108 msgstr ""
29109
29110 #. type: textblock
29111 #: ../src/guestfs-actions.pod:5297
29112 msgid ""
29113 "This command adds a partition to C<device>.  If there is no partition table "
29114 "on the device, call C<guestfs_part_init> first."
29115 msgstr ""
29116
29117 #. type: textblock
29118 #: ../src/guestfs-actions.pod:5309
29119 msgid ""
29120 "Creating a partition which covers the whole disk is not so easy.  Use "
29121 "C<guestfs_part_disk> to do that."
29122 msgstr ""
29123
29124 #. type: textblock
29125 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5352
29126 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5489
29127 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
29128 #: ../src/guestfs-actions.pod:5586
29129 msgid "(Added in 1.0.78)"
29130 msgstr ""
29131
29132 #. type: =head2
29133 #: ../src/guestfs-actions.pod:5316
29134 msgid "guestfs_part_del"
29135 msgstr ""
29136
29137 #. type: verbatim
29138 #: ../src/guestfs-actions.pod:5318
29139 #, no-wrap
29140 msgid ""
29141 " int\n"
29142 " guestfs_part_del (guestfs_h *g,\n"
29143 "                   const char *device,\n"
29144 "                   int partnum);\n"
29145 "\n"
29146 msgstr ""
29147
29148 #. type: =head2
29149 #: ../src/guestfs-actions.pod:5333
29150 msgid "guestfs_part_disk"
29151 msgstr ""
29152
29153 #. type: verbatim
29154 #: ../src/guestfs-actions.pod:5335
29155 #, no-wrap
29156 msgid ""
29157 " int\n"
29158 " guestfs_part_disk (guestfs_h *g,\n"
29159 "                    const char *device,\n"
29160 "                    const char *parttype);\n"
29161 "\n"
29162 msgstr ""
29163
29164 #. type: textblock
29165 #: ../src/guestfs-actions.pod:5340
29166 msgid ""
29167 "This command is simply a combination of C<guestfs_part_init> followed by "
29168 "C<guestfs_part_add> to create a single primary partition covering the whole "
29169 "disk."
29170 msgstr ""
29171
29172 #. type: textblock
29173 #: ../src/guestfs-actions.pod:5344
29174 msgid ""
29175 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29176 "possible values are described in C<guestfs_part_init>."
29177 msgstr ""
29178
29179 #. type: =head2
29180 #: ../src/guestfs-actions.pod:5354
29181 msgid "guestfs_part_get_bootable"
29182 msgstr ""
29183
29184 #. type: verbatim
29185 #: ../src/guestfs-actions.pod:5356
29186 #, no-wrap
29187 msgid ""
29188 " int\n"
29189 " guestfs_part_get_bootable (guestfs_h *g,\n"
29190 "                            const char *device,\n"
29191 "                            int partnum);\n"
29192 "\n"
29193 msgstr ""
29194
29195 #. type: textblock
29196 #: ../src/guestfs-actions.pod:5364
29197 msgid "See also C<guestfs_part_set_bootable>."
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:5370
29202 msgid "guestfs_part_get_mbr_id"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:5372
29207 #, no-wrap
29208 msgid ""
29209 " int\n"
29210 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29211 "                          const char *device,\n"
29212 "                          int partnum);\n"
29213 "\n"
29214 msgstr ""
29215
29216 #. type: textblock
29217 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5562
29218 msgid ""
29219 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29220 "undefined results for other partition table types (see "
29221 "C<guestfs_part_get_parttype>)."
29222 msgstr ""
29223
29224 #. type: =head2
29225 #: ../src/guestfs-actions.pod:5388
29226 msgid "guestfs_part_get_parttype"
29227 msgstr ""
29228
29229 #. type: verbatim
29230 #: ../src/guestfs-actions.pod:5390
29231 #, no-wrap
29232 msgid ""
29233 " char *\n"
29234 " guestfs_part_get_parttype (guestfs_h *g,\n"
29235 "                            const char *device);\n"
29236 "\n"
29237 msgstr ""
29238
29239 #. type: textblock
29240 #: ../src/guestfs-actions.pod:5397
29241 msgid ""
29242 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29243 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29244 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29245 msgstr ""
29246
29247 #. type: =head2
29248 #: ../src/guestfs-actions.pod:5407
29249 msgid "guestfs_part_init"
29250 msgstr ""
29251
29252 #. type: verbatim
29253 #: ../src/guestfs-actions.pod:5409
29254 #, no-wrap
29255 msgid ""
29256 " int\n"
29257 " guestfs_part_init (guestfs_h *g,\n"
29258 "                    const char *device,\n"
29259 "                    const char *parttype);\n"
29260 "\n"
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../src/guestfs-actions.pod:5418
29265 msgid ""
29266 "Initially there are no partitions.  Following this, you should call "
29267 "C<guestfs_part_add> for each partition required."
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:5491
29272 msgid "guestfs_part_list"
29273 msgstr "guestfs_part_list"
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:5493
29277 #, no-wrap
29278 msgid ""
29279 " struct guestfs_partition_list *\n"
29280 " guestfs_part_list (guestfs_h *g,\n"
29281 "                    const char *device);\n"
29282 "\n"
29283 msgstr ""
29284 " struct guestfs_partition_list *\n"
29285 " guestfs_part_list (guestfs_h *g,\n"
29286 "                    const char *device);\n"
29287 "\n"
29288
29289 #. type: textblock
29290 #: ../src/guestfs-actions.pod:5510
29291 msgid ""
29292 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29293 "the device's sector size, see C<guestfs_blockdev_getss>."
29294 msgstr ""
29295
29296 #. type: textblock
29297 #: ../src/guestfs-actions.pod:5523
29298 msgid ""
29299 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29300 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29301 "use>."
29302 msgstr ""
29303
29304 #. type: =head2
29305 #: ../src/guestfs-actions.pod:5529
29306 msgid "guestfs_part_set_bootable"
29307 msgstr ""
29308
29309 #. type: verbatim
29310 #: ../src/guestfs-actions.pod:5531
29311 #, no-wrap
29312 msgid ""
29313 " int\n"
29314 " guestfs_part_set_bootable (guestfs_h *g,\n"
29315 "                            const char *device,\n"
29316 "                            int partnum,\n"
29317 "                            int bootable);\n"
29318 "\n"
29319 msgstr ""
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:5548
29323 msgid "guestfs_part_set_mbr_id"
29324 msgstr ""
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:5550
29328 #, no-wrap
29329 msgid ""
29330 " int\n"
29331 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29332 "                          const char *device,\n"
29333 "                          int partnum,\n"
29334 "                          int idbyte);\n"
29335 "\n"
29336 msgstr ""
29337
29338 #. type: =head2
29339 #: ../src/guestfs-actions.pod:5570
29340 msgid "guestfs_part_set_name"
29341 msgstr ""
29342
29343 #. type: verbatim
29344 #: ../src/guestfs-actions.pod:5572
29345 #, no-wrap
29346 msgid ""
29347 " int\n"
29348 " guestfs_part_set_name (guestfs_h *g,\n"
29349 "                        const char *device,\n"
29350 "                        int partnum,\n"
29351 "                        const char *name);\n"
29352 "\n"
29353 msgstr ""
29354
29355 #. type: =head2
29356 #: ../src/guestfs-actions.pod:5588
29357 msgid "guestfs_part_to_dev"
29358 msgstr ""
29359
29360 #. type: verbatim
29361 #: ../src/guestfs-actions.pod:5590
29362 #, no-wrap
29363 msgid ""
29364 " char *\n"
29365 " guestfs_part_to_dev (guestfs_h *g,\n"
29366 "                      const char *partition);\n"
29367 "\n"
29368 msgstr ""
29369
29370 #. type: textblock
29371 #: ../src/guestfs-actions.pod:5598
29372 msgid ""
29373 "The named partition must exist, for example as a string returned from "
29374 "C<guestfs_list_partitions>."
29375 msgstr ""
29376
29377 #. type: =head2
29378 #: ../src/guestfs-actions.pod:5606
29379 msgid "guestfs_ping_daemon"
29380 msgstr ""
29381
29382 #. type: verbatim
29383 #: ../src/guestfs-actions.pod:5608
29384 #, no-wrap
29385 msgid ""
29386 " int\n"
29387 " guestfs_ping_daemon (guestfs_h *g);\n"
29388 "\n"
29389 msgstr ""
29390
29391 #. type: =head2
29392 #: ../src/guestfs-actions.pod:5620
29393 msgid "guestfs_pread"
29394 msgstr ""
29395
29396 #. type: verbatim
29397 #: ../src/guestfs-actions.pod:5622
29398 #, no-wrap
29399 msgid ""
29400 " char *\n"
29401 " guestfs_pread (guestfs_h *g,\n"
29402 "                const char *path,\n"
29403 "                int count,\n"
29404 "                int64_t offset,\n"
29405 "                size_t *size_r);\n"
29406 "\n"
29407 msgstr ""
29408
29409 #. type: textblock
29410 #: ../src/guestfs-actions.pod:5635
29411 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29412 msgstr ""
29413
29414 #. type: =head2
29415 #: ../src/guestfs-actions.pod:5646
29416 msgid "guestfs_pread_device"
29417 msgstr ""
29418
29419 #. type: verbatim
29420 #: ../src/guestfs-actions.pod:5648
29421 #, no-wrap
29422 msgid ""
29423 " char *\n"
29424 " guestfs_pread_device (guestfs_h *g,\n"
29425 "                       const char *device,\n"
29426 "                       int count,\n"
29427 "                       int64_t offset,\n"
29428 "                       size_t *size_r);\n"
29429 "\n"
29430 msgstr ""
29431
29432 #. type: textblock
29433 #: ../src/guestfs-actions.pod:5661
29434 msgid "See also C<guestfs_pread>."
29435 msgstr ""
29436
29437 #. type: textblock
29438 #: ../src/guestfs-actions.pod:5670
29439 msgid "(Added in 1.5.21)"
29440 msgstr ""
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:5672
29444 msgid "guestfs_pvcreate"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:5674
29449 #, no-wrap
29450 msgid ""
29451 " int\n"
29452 " guestfs_pvcreate (guestfs_h *g,\n"
29453 "                   const char *device);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: =head2
29458 #: ../src/guestfs-actions.pod:5686
29459 msgid "guestfs_pvremove"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../src/guestfs-actions.pod:5688
29464 #, no-wrap
29465 msgid ""
29466 " int\n"
29467 " guestfs_pvremove (guestfs_h *g,\n"
29468 "                   const char *device);\n"
29469 "\n"
29470 msgstr ""
29471
29472 #. type: =head2
29473 #: ../src/guestfs-actions.pod:5703
29474 msgid "guestfs_pvresize"
29475 msgstr ""
29476
29477 #. type: verbatim
29478 #: ../src/guestfs-actions.pod:5705
29479 #, no-wrap
29480 msgid ""
29481 " int\n"
29482 " guestfs_pvresize (guestfs_h *g,\n"
29483 "                   const char *device);\n"
29484 "\n"
29485 msgstr ""
29486
29487 #. type: =head2
29488 #: ../src/guestfs-actions.pod:5716
29489 msgid "guestfs_pvresize_size"
29490 msgstr ""
29491
29492 #. type: verbatim
29493 #: ../src/guestfs-actions.pod:5718
29494 #, no-wrap
29495 msgid ""
29496 " int\n"
29497 " guestfs_pvresize_size (guestfs_h *g,\n"
29498 "                        const char *device,\n"
29499 "                        int64_t size);\n"
29500 "\n"
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../src/guestfs-actions.pod:5723
29505 msgid ""
29506 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29507 "specify the new size (in bytes) explicitly."
29508 msgstr ""
29509
29510 #. type: =head2
29511 #: ../src/guestfs-actions.pod:5730
29512 msgid "guestfs_pvs"
29513 msgstr ""
29514
29515 #. type: verbatim
29516 #: ../src/guestfs-actions.pod:5732
29517 #, no-wrap
29518 msgid ""
29519 " char **\n"
29520 " guestfs_pvs (guestfs_h *g);\n"
29521 "\n"
29522 msgstr ""
29523
29524 #. type: textblock
29525 #: ../src/guestfs-actions.pod:5741
29526 msgid "See also C<guestfs_pvs_full>."
29527 msgstr ""
29528
29529 #. type: =head2
29530 #: ../src/guestfs-actions.pod:5749
29531 msgid "guestfs_pvs_full"
29532 msgstr ""
29533
29534 #. type: verbatim
29535 #: ../src/guestfs-actions.pod:5751
29536 #, no-wrap
29537 msgid ""
29538 " struct guestfs_lvm_pv_list *\n"
29539 " guestfs_pvs_full (guestfs_h *g);\n"
29540 "\n"
29541 msgstr ""
29542
29543 #. type: textblock
29544 #: ../src/guestfs-actions.pod:5757
29545 msgid ""
29546 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29547 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29548 msgstr ""
29549
29550 #. type: =head2
29551 #: ../src/guestfs-actions.pod:5763
29552 msgid "guestfs_pvuuid"
29553 msgstr ""
29554
29555 #. type: verbatim
29556 #: ../src/guestfs-actions.pod:5765
29557 #, no-wrap
29558 msgid ""
29559 " char *\n"
29560 " guestfs_pvuuid (guestfs_h *g,\n"
29561 "                 const char *device);\n"
29562 "\n"
29563 msgstr ""
29564
29565 #. type: =head2
29566 #: ../src/guestfs-actions.pod:5776
29567 msgid "guestfs_pwrite"
29568 msgstr ""
29569
29570 #. type: verbatim
29571 #: ../src/guestfs-actions.pod:5778
29572 #, no-wrap
29573 msgid ""
29574 " int\n"
29575 " guestfs_pwrite (guestfs_h *g,\n"
29576 "                 const char *path,\n"
29577 "                 const char *content,\n"
29578 "                 size_t content_size,\n"
29579 "                 int64_t offset);\n"
29580 "\n"
29581 msgstr ""
29582
29583 #. type: textblock
29584 #: ../src/guestfs-actions.pod:5794
29585 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29586 msgstr ""
29587
29588 #. type: =head2
29589 #: ../src/guestfs-actions.pod:5803
29590 msgid "guestfs_pwrite_device"
29591 msgstr ""
29592
29593 #. type: verbatim
29594 #: ../src/guestfs-actions.pod:5805
29595 #, no-wrap
29596 msgid ""
29597 " int\n"
29598 " guestfs_pwrite_device (guestfs_h *g,\n"
29599 "                        const char *device,\n"
29600 "                        const char *content,\n"
29601 "                        size_t content_size,\n"
29602 "                        int64_t offset);\n"
29603 "\n"
29604 msgstr ""
29605
29606 #. type: textblock
29607 #: ../src/guestfs-actions.pod:5820
29608 msgid "See also C<guestfs_pwrite>."
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:5827
29613 msgid "(Added in 1.5.20)"
29614 msgstr ""
29615
29616 #. type: =head2
29617 #: ../src/guestfs-actions.pod:5829
29618 msgid "guestfs_read_file"
29619 msgstr ""
29620
29621 #. type: verbatim
29622 #: ../src/guestfs-actions.pod:5831
29623 #, no-wrap
29624 msgid ""
29625 " char *\n"
29626 " guestfs_read_file (guestfs_h *g,\n"
29627 "                    const char *path,\n"
29628 "                    size_t *size_r);\n"
29629 "\n"
29630 msgstr ""
29631
29632 #. type: textblock
29633 #: ../src/guestfs-actions.pod:5839
29634 msgid ""
29635 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29636 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29637 "function is limited in the total size of file that can be handled."
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../src/guestfs-actions.pod:5851
29642 msgid "(Added in 1.0.63)"
29643 msgstr ""
29644
29645 #. type: =head2
29646 #: ../src/guestfs-actions.pod:5853
29647 msgid "guestfs_read_lines"
29648 msgstr ""
29649
29650 #. type: verbatim
29651 #: ../src/guestfs-actions.pod:5855
29652 #, no-wrap
29653 msgid ""
29654 " char **\n"
29655 " guestfs_read_lines (guestfs_h *g,\n"
29656 "                     const char *path);\n"
29657 "\n"
29658 msgstr ""
29659
29660 #. type: textblock
29661 #: ../src/guestfs-actions.pod:5864
29662 msgid ""
29663 "Note that this function cannot correctly handle binary files (specifically, "
29664 "files containing C<\\0> character which is treated as end of line).  For "
29665 "those you need to use the C<guestfs_read_file> function which has a more "
29666 "complex interface."
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:5875
29671 msgid "guestfs_readdir"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:5877
29676 #, no-wrap
29677 msgid ""
29678 " struct guestfs_dirent_list *\n"
29679 " guestfs_readdir (guestfs_h *g,\n"
29680 "                  const char *dir);\n"
29681 "\n"
29682 msgstr ""
29683
29684 #. type: textblock
29685 #: ../src/guestfs-actions.pod:5931
29686 msgid ""
29687 "This function is primarily intended for use by programs.  To get a simple "
29688 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29689 "consumption, use C<guestfs_ll>."
29690 msgstr ""
29691
29692 #. type: textblock
29693 #: ../src/guestfs-actions.pod:5935
29694 msgid ""
29695 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29696 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29697 msgstr ""
29698
29699 #. type: =head2
29700 #: ../src/guestfs-actions.pod:5941
29701 msgid "guestfs_readlink"
29702 msgstr ""
29703
29704 #. type: verbatim
29705 #: ../src/guestfs-actions.pod:5943
29706 #, no-wrap
29707 msgid ""
29708 " char *\n"
29709 " guestfs_readlink (guestfs_h *g,\n"
29710 "                   const char *path);\n"
29711 "\n"
29712 msgstr ""
29713
29714 #. type: =head2
29715 #: ../src/guestfs-actions.pod:5954
29716 msgid "guestfs_readlinklist"
29717 msgstr ""
29718
29719 #. type: verbatim
29720 #: ../src/guestfs-actions.pod:5956
29721 #, no-wrap
29722 msgid ""
29723 " char **\n"
29724 " guestfs_readlinklist (guestfs_h *g,\n"
29725 "                       const char *path,\n"
29726 "                       char *const *names);\n"
29727 "\n"
29728 msgstr ""
29729
29730 #. type: =head2
29731 #: ../src/guestfs-actions.pod:5989
29732 msgid "guestfs_realpath"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-actions.pod:5991
29737 #, no-wrap
29738 msgid ""
29739 " char *\n"
29740 " guestfs_realpath (guestfs_h *g,\n"
29741 "                   const char *path);\n"
29742 "\n"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:6003
29747 msgid "guestfs_removexattr"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:6005
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_removexattr (guestfs_h *g,\n"
29756 "                      const char *xattr,\n"
29757 "                      const char *path);\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../src/guestfs-actions.pod:6013
29763 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29764 msgstr ""
29765
29766 #. type: =head2
29767 #: ../src/guestfs-actions.pod:6019
29768 msgid "guestfs_resize2fs"
29769 msgstr ""
29770
29771 #. type: verbatim
29772 #: ../src/guestfs-actions.pod:6021
29773 #, no-wrap
29774 msgid ""
29775 " int\n"
29776 " guestfs_resize2fs (guestfs_h *g,\n"
29777 "                    const char *device);\n"
29778 "\n"
29779 msgstr ""
29780
29781 #. type: textblock
29782 #: ../src/guestfs-actions.pod:6028
29783 msgid ""
29784 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29785 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29786 "sometimes gives an error about this and sometimes not.  In any case, it is "
29787 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29788 msgstr ""
29789
29790 #. type: =head2
29791 #: ../src/guestfs-actions.pod:6038
29792 msgid "guestfs_resize2fs_M"
29793 msgstr ""
29794
29795 #. type: verbatim
29796 #: ../src/guestfs-actions.pod:6040
29797 #, no-wrap
29798 msgid ""
29799 " int\n"
29800 " guestfs_resize2fs_M (guestfs_h *g,\n"
29801 "                      const char *device);\n"
29802 "\n"
29803 msgstr ""
29804
29805 #. type: textblock
29806 #: ../src/guestfs-actions.pod:6044
29807 msgid ""
29808 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29809 "resized to its minimum size.  This works like the I<-M> option to the "
29810 "C<resize2fs> command."
29811 msgstr ""
29812
29813 #. type: textblock
29814 #: ../src/guestfs-actions.pod:6048
29815 msgid ""
29816 "To get the resulting size of the filesystem you should call "
29817 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29818 "These two numbers, multiplied together, give the resulting size of the "
29819 "minimal filesystem in bytes."
29820 msgstr ""
29821
29822 #. type: =head2
29823 #: ../src/guestfs-actions.pod:6057
29824 msgid "guestfs_resize2fs_size"
29825 msgstr ""
29826
29827 #. type: verbatim
29828 #: ../src/guestfs-actions.pod:6059
29829 #, no-wrap
29830 msgid ""
29831 " int\n"
29832 " guestfs_resize2fs_size (guestfs_h *g,\n"
29833 "                         const char *device,\n"
29834 "                         int64_t size);\n"
29835 "\n"
29836 msgstr ""
29837
29838 #. type: textblock
29839 #: ../src/guestfs-actions.pod:6064
29840 msgid ""
29841 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29842 "to specify the new size (in bytes) explicitly."
29843 msgstr ""
29844
29845 #. type: =head2
29846 #: ../src/guestfs-actions.pod:6071
29847 msgid "guestfs_rm"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../src/guestfs-actions.pod:6073
29852 #, no-wrap
29853 msgid ""
29854 " int\n"
29855 " guestfs_rm (guestfs_h *g,\n"
29856 "             const char *path);\n"
29857 "\n"
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:6083
29862 msgid "guestfs_rm_rf"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:6085
29867 #, no-wrap
29868 msgid ""
29869 " int\n"
29870 " guestfs_rm_rf (guestfs_h *g,\n"
29871 "                const char *path);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:6097
29877 msgid "guestfs_rmdir"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:6099
29882 #, no-wrap
29883 msgid ""
29884 " int\n"
29885 " guestfs_rmdir (guestfs_h *g,\n"
29886 "                const char *path);\n"
29887 "\n"
29888 msgstr ""
29889
29890 #. type: =head2
29891 #: ../src/guestfs-actions.pod:6109
29892 msgid "guestfs_rmmountpoint"
29893 msgstr ""
29894
29895 #. type: verbatim
29896 #: ../src/guestfs-actions.pod:6111
29897 #, no-wrap
29898 msgid ""
29899 " int\n"
29900 " guestfs_rmmountpoint (guestfs_h *g,\n"
29901 "                       const char *exemptpath);\n"
29902 "\n"
29903 msgstr ""
29904
29905 #. type: textblock
29906 #: ../src/guestfs-actions.pod:6115
29907 msgid ""
29908 "This calls removes a mountpoint that was previously created with "
29909 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29910 msgstr ""
29911
29912 #. type: =head2
29913 #: ../src/guestfs-actions.pod:6123
29914 msgid "guestfs_scrub_device"
29915 msgstr ""
29916
29917 #. type: verbatim
29918 #: ../src/guestfs-actions.pod:6125
29919 #, no-wrap
29920 msgid ""
29921 " int\n"
29922 " guestfs_scrub_device (guestfs_h *g,\n"
29923 "                       const char *device);\n"
29924 "\n"
29925 msgstr ""
29926
29927 #. type: textblock
29928 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6158
29929 #: ../src/guestfs-actions.pod:6177
29930 msgid "(Added in 1.0.52)"
29931 msgstr ""
29932
29933 #. type: =head2
29934 #: ../src/guestfs-actions.pod:6142
29935 msgid "guestfs_scrub_file"
29936 msgstr ""
29937
29938 #. type: verbatim
29939 #: ../src/guestfs-actions.pod:6144
29940 #, no-wrap
29941 msgid ""
29942 " int\n"
29943 " guestfs_scrub_file (guestfs_h *g,\n"
29944 "                     const char *file);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: =head2
29949 #: ../src/guestfs-actions.pod:6160
29950 msgid "guestfs_scrub_freespace"
29951 msgstr ""
29952
29953 #. type: verbatim
29954 #: ../src/guestfs-actions.pod:6162
29955 #, no-wrap
29956 msgid ""
29957 " int\n"
29958 " guestfs_scrub_freespace (guestfs_h *g,\n"
29959 "                          const char *dir);\n"
29960 "\n"
29961 msgstr ""
29962
29963 #. type: textblock
29964 #: ../src/guestfs-actions.pod:6166
29965 msgid ""
29966 "This command creates the directory C<dir> and then fills it with files until "
29967 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29968 "and deletes them.  The intention is to scrub any free space on the partition "
29969 "containing C<dir>."
29970 msgstr ""
29971
29972 #. type: =head2
29973 #: ../src/guestfs-actions.pod:6179
29974 msgid "guestfs_set_append"
29975 msgstr ""
29976
29977 #. type: verbatim
29978 #: ../src/guestfs-actions.pod:6181
29979 #, no-wrap
29980 msgid ""
29981 " int\n"
29982 " guestfs_set_append (guestfs_h *g,\n"
29983 "                     const char *append);\n"
29984 "\n"
29985 msgstr ""
29986
29987 #. type: =head2
29988 #: ../src/guestfs-actions.pod:6198
29989 msgid "guestfs_set_attach_method"
29990 msgstr ""
29991
29992 #. type: verbatim
29993 #: ../src/guestfs-actions.pod:6200
29994 #, no-wrap
29995 msgid ""
29996 " int\n"
29997 " guestfs_set_attach_method (guestfs_h *g,\n"
29998 "                            const char *attachmethod);\n"
29999 "\n"
30000 msgstr ""
30001
30002 #. type: =head2
30003 #: ../src/guestfs-actions.pod:6228
30004 msgid "guestfs_set_autosync"
30005 msgstr ""
30006
30007 #. type: verbatim
30008 #: ../src/guestfs-actions.pod:6230
30009 #, no-wrap
30010 msgid ""
30011 " int\n"
30012 " guestfs_set_autosync (guestfs_h *g,\n"
30013 "                       int autosync);\n"
30014 "\n"
30015 msgstr ""
30016
30017 #. type: =head2
30018 #: ../src/guestfs-actions.pod:6246
30019 msgid "guestfs_set_direct"
30020 msgstr ""
30021
30022 #. type: verbatim
30023 #: ../src/guestfs-actions.pod:6248
30024 #, no-wrap
30025 msgid ""
30026 " int\n"
30027 " guestfs_set_direct (guestfs_h *g,\n"
30028 "                     int direct);\n"
30029 "\n"
30030 msgstr ""
30031
30032 #. type: textblock
30033 #: ../src/guestfs-actions.pod:6256
30034 msgid ""
30035 "One consequence of this is that log messages aren't caught by the library "
30036 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30037 "stdout."
30038 msgstr ""
30039
30040 #. type: =head2
30041 #: ../src/guestfs-actions.pod:6269
30042 msgid "guestfs_set_e2label"
30043 msgstr ""
30044
30045 #. type: verbatim
30046 #: ../src/guestfs-actions.pod:6271
30047 #, no-wrap
30048 msgid ""
30049 " int\n"
30050 " guestfs_set_e2label (guestfs_h *g,\n"
30051 "                      const char *device,\n"
30052 "                      const char *label);\n"
30053 "\n"
30054 msgstr ""
30055
30056 #. type: textblock
30057 #: ../src/guestfs-actions.pod:6280
30058 msgid ""
30059 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30060 "the existing label on a filesystem."
30061 msgstr ""
30062
30063 #. type: =head2
30064 #: ../src/guestfs-actions.pod:6287
30065 msgid "guestfs_set_e2uuid"
30066 msgstr ""
30067
30068 #. type: verbatim
30069 #: ../src/guestfs-actions.pod:6289
30070 #, no-wrap
30071 msgid ""
30072 " int\n"
30073 " guestfs_set_e2uuid (guestfs_h *g,\n"
30074 "                     const char *device,\n"
30075 "                     const char *uuid);\n"
30076 "\n"
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../src/guestfs-actions.pod:6299
30081 msgid ""
30082 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30083 "the existing UUID of a filesystem."
30084 msgstr ""
30085
30086 #. type: =head2
30087 #: ../src/guestfs-actions.pod:6306
30088 msgid "guestfs_set_memsize"
30089 msgstr ""
30090
30091 #. type: verbatim
30092 #: ../src/guestfs-actions.pod:6308
30093 #, no-wrap
30094 msgid ""
30095 " int\n"
30096 " guestfs_set_memsize (guestfs_h *g,\n"
30097 "                      int memsize);\n"
30098 "\n"
30099 msgstr ""
30100
30101 #. type: textblock
30102 #: ../src/guestfs-actions.pod:6312
30103 msgid ""
30104 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30105 "This only has any effect if called before C<guestfs_launch>."
30106 msgstr ""
30107
30108 #. type: =head2
30109 #: ../src/guestfs-actions.pod:6327
30110 msgid "guestfs_set_network"
30111 msgstr ""
30112
30113 #. type: verbatim
30114 #: ../src/guestfs-actions.pod:6329
30115 #, no-wrap
30116 msgid ""
30117 " int\n"
30118 " guestfs_set_network (guestfs_h *g,\n"
30119 "                      int network);\n"
30120 "\n"
30121 msgstr ""
30122
30123 #. type: textblock
30124 #: ../src/guestfs-actions.pod:6339
30125 msgid ""
30126 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30127 "effect."
30128 msgstr ""
30129
30130 #. type: =head2
30131 #: ../src/guestfs-actions.pod:6346
30132 msgid "guestfs_set_path"
30133 msgstr ""
30134
30135 #. type: verbatim
30136 #: ../src/guestfs-actions.pod:6348
30137 #, no-wrap
30138 msgid ""
30139 " int\n"
30140 " guestfs_set_path (guestfs_h *g,\n"
30141 "                   const char *searchpath);\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: =head2
30146 #: ../src/guestfs-actions.pod:6363
30147 msgid "guestfs_set_pgroup"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs-actions.pod:6365
30152 #, no-wrap
30153 msgid ""
30154 " int\n"
30155 " guestfs_set_pgroup (guestfs_h *g,\n"
30156 "                     int pgroup);\n"
30157 "\n"
30158 msgstr ""
30159
30160 #. type: =head2
30161 #: ../src/guestfs-actions.pod:6382
30162 msgid "guestfs_set_qemu"
30163 msgstr ""
30164
30165 #. type: verbatim
30166 #: ../src/guestfs-actions.pod:6384
30167 #, no-wrap
30168 msgid ""
30169 " int\n"
30170 " guestfs_set_qemu (guestfs_h *g,\n"
30171 "                   const char *qemu);\n"
30172 "\n"
30173 msgstr ""
30174
30175 #. type: =head2
30176 #: ../src/guestfs-actions.pod:6410
30177 msgid "guestfs_set_recovery_proc"
30178 msgstr ""
30179
30180 #. type: verbatim
30181 #: ../src/guestfs-actions.pod:6412
30182 #, no-wrap
30183 msgid ""
30184 " int\n"
30185 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30186 "                            int recoveryproc);\n"
30187 "\n"
30188 msgstr ""
30189
30190 #. type: textblock
30191 #: ../src/guestfs-actions.pod:6416
30192 msgid ""
30193 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30194 "not create a recovery process.  The purpose of the recovery process is to "
30195 "stop runaway qemu processes in the case where the main program aborts "
30196 "abruptly."
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../src/guestfs-actions.pod:6421
30201 msgid ""
30202 "This only has any effect if called before C<guestfs_launch>, and the default "
30203 "is true."
30204 msgstr ""
30205
30206 #. type: =head2
30207 #: ../src/guestfs-actions.pod:6434
30208 msgid "guestfs_set_selinux"
30209 msgstr ""
30210
30211 #. type: verbatim
30212 #: ../src/guestfs-actions.pod:6436
30213 #, no-wrap
30214 msgid ""
30215 " int\n"
30216 " guestfs_set_selinux (guestfs_h *g,\n"
30217 "                      int selinux);\n"
30218 "\n"
30219 msgstr ""
30220
30221 #. type: =head2
30222 #: ../src/guestfs-actions.pod:6453
30223 msgid "guestfs_set_trace"
30224 msgstr ""
30225
30226 #. type: verbatim
30227 #: ../src/guestfs-actions.pod:6455
30228 #, no-wrap
30229 msgid ""
30230 " int\n"
30231 " guestfs_set_trace (guestfs_h *g,\n"
30232 "                    int trace);\n"
30233 "\n"
30234 msgstr ""
30235
30236 #. type: textblock
30237 #: ../src/guestfs-actions.pod:6469
30238 msgid ""
30239 "Trace messages are normally sent to C<stderr>, unless you register a "
30240 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30241 msgstr ""
30242
30243 #. type: =head2
30244 #: ../src/guestfs-actions.pod:6477
30245 msgid "guestfs_set_verbose"
30246 msgstr ""
30247
30248 #. type: verbatim
30249 #: ../src/guestfs-actions.pod:6479
30250 #, no-wrap
30251 msgid ""
30252 " int\n"
30253 " guestfs_set_verbose (guestfs_h *g,\n"
30254 "                      int verbose);\n"
30255 "\n"
30256 msgstr ""
30257
30258 #. type: textblock
30259 #: ../src/guestfs-actions.pod:6488
30260 msgid ""
30261 "Verbose messages are normally sent to C<stderr>, unless you register a "
30262 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30263 msgstr ""
30264
30265 #. type: =head2
30266 #: ../src/guestfs-actions.pod:6496
30267 msgid "guestfs_setcon"
30268 msgstr ""
30269
30270 #. type: verbatim
30271 #: ../src/guestfs-actions.pod:6498
30272 #, no-wrap
30273 msgid ""
30274 " int\n"
30275 " guestfs_setcon (guestfs_h *g,\n"
30276 "                 const char *context);\n"
30277 "\n"
30278 msgstr ""
30279
30280 #. type: =head2
30281 #: ../src/guestfs-actions.pod:6511
30282 msgid "guestfs_setxattr"
30283 msgstr ""
30284
30285 #. type: verbatim
30286 #: ../src/guestfs-actions.pod:6513
30287 #, no-wrap
30288 msgid ""
30289 " int\n"
30290 " guestfs_setxattr (guestfs_h *g,\n"
30291 "                   const char *xattr,\n"
30292 "                   const char *val,\n"
30293 "                   int vallen,\n"
30294 "                   const char *path);\n"
30295 "\n"
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-actions.pod:6524
30300 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30301 msgstr ""
30302
30303 #. type: =head2
30304 #: ../src/guestfs-actions.pod:6530
30305 msgid "guestfs_sfdisk"
30306 msgstr ""
30307
30308 #. type: verbatim
30309 #: ../src/guestfs-actions.pod:6532
30310 #, no-wrap
30311 msgid ""
30312 " int\n"
30313 " guestfs_sfdisk (guestfs_h *g,\n"
30314 "                 const char *device,\n"
30315 "                 int cyls,\n"
30316 "                 int heads,\n"
30317 "                 int sectors,\n"
30318 "                 char *const *lines);\n"
30319 "\n"
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../src/guestfs-actions.pod:6560
30324 msgid ""
30325 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30326 msgstr ""
30327
30328 #. type: textblock
30329 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6598
30330 #: ../src/guestfs-actions.pod:6631
30331 msgid ""
30332 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
30333 "instead."
30334 msgstr ""
30335
30336 #. type: =head2
30337 #: ../src/guestfs-actions.pod:6577
30338 msgid "guestfs_sfdiskM"
30339 msgstr ""
30340
30341 #. type: verbatim
30342 #: ../src/guestfs-actions.pod:6579
30343 #, no-wrap
30344 msgid ""
30345 " int\n"
30346 " guestfs_sfdiskM (guestfs_h *g,\n"
30347 "                  const char *device,\n"
30348 "                  char *const *lines);\n"
30349 "\n"
30350 msgstr ""
30351
30352 #. type: textblock
30353 #: ../src/guestfs-actions.pod:6584
30354 msgid ""
30355 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30356 "partition sizes are specified in megabytes only (rounded to the nearest "
30357 "cylinder) and you don't need to specify the cyls, heads and sectors "
30358 "parameters which were rarely if ever used anyway."
30359 msgstr ""
30360
30361 #. type: textblock
30362 #: ../src/guestfs-actions.pod:6590
30363 msgid ""
30364 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30365 "C<guestfs_part_disk>"
30366 msgstr ""
30367
30368 #. type: =head2
30369 #: ../src/guestfs-actions.pod:6607
30370 msgid "guestfs_sfdisk_N"
30371 msgstr ""
30372
30373 #. type: verbatim
30374 #: ../src/guestfs-actions.pod:6609
30375 #, no-wrap
30376 msgid ""
30377 " int\n"
30378 " guestfs_sfdisk_N (guestfs_h *g,\n"
30379 "                   const char *device,\n"
30380 "                   int partnum,\n"
30381 "                   int cyls,\n"
30382 "                   int heads,\n"
30383 "                   int sectors,\n"
30384 "                   const char *line);\n"
30385 "\n"
30386 msgstr ""
30387
30388 #. type: textblock
30389 #: ../src/guestfs-actions.pod:6621
30390 msgid ""
30391 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30392 "for the cyls/heads/sectors parameters."
30393 msgstr ""
30394
30395 #. type: textblock
30396 #: ../src/guestfs-actions.pod:6624
30397 msgid "See also: C<guestfs_part_add>"
30398 msgstr ""
30399
30400 #. type: =head2
30401 #: ../src/guestfs-actions.pod:6640
30402 msgid "guestfs_sfdisk_disk_geometry"
30403 msgstr ""
30404
30405 #. type: verbatim
30406 #: ../src/guestfs-actions.pod:6642
30407 #, no-wrap
30408 msgid ""
30409 " char *\n"
30410 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30411 "                               const char *device);\n"
30412 "\n"
30413 msgstr ""
30414
30415 #. type: textblock
30416 #: ../src/guestfs-actions.pod:6646
30417 msgid ""
30418 "This displays the disk geometry of C<device> read from the partition table.  "
30419 "Especially in the case where the underlying block device has been resized, "
30420 "this can be different from the kernel's idea of the geometry (see "
30421 "C<guestfs_sfdisk_kernel_geometry>)."
30422 msgstr ""
30423
30424 #. type: =head2
30425 #: ../src/guestfs-actions.pod:6659
30426 msgid "guestfs_sfdisk_kernel_geometry"
30427 msgstr ""
30428
30429 #. type: verbatim
30430 #: ../src/guestfs-actions.pod:6661
30431 #, no-wrap
30432 msgid ""
30433 " char *\n"
30434 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30435 "                                 const char *device);\n"
30436 "\n"
30437 msgstr ""
30438
30439 #. type: =head2
30440 #: ../src/guestfs-actions.pod:6675
30441 msgid "guestfs_sfdisk_l"
30442 msgstr ""
30443
30444 #. type: verbatim
30445 #: ../src/guestfs-actions.pod:6677
30446 #, no-wrap
30447 msgid ""
30448 " char *\n"
30449 " guestfs_sfdisk_l (guestfs_h *g,\n"
30450 "                   const char *device);\n"
30451 "\n"
30452 msgstr ""
30453
30454 #. type: textblock
30455 #: ../src/guestfs-actions.pod:6685
30456 msgid "See also: C<guestfs_part_list>"
30457 msgstr ""
30458
30459 #. type: textblock
30460 #: ../src/guestfs-actions.pod:6690
30461 msgid ""
30462 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
30463 "call instead."
30464 msgstr ""
30465
30466 #. type: =head2
30467 #: ../src/guestfs-actions.pod:6699
30468 msgid "guestfs_sh"
30469 msgstr ""
30470
30471 #. type: verbatim
30472 #: ../src/guestfs-actions.pod:6701
30473 #, no-wrap
30474 msgid ""
30475 " char *\n"
30476 " guestfs_sh (guestfs_h *g,\n"
30477 "             const char *command);\n"
30478 "\n"
30479 msgstr ""
30480
30481 #. type: textblock
30482 #: ../src/guestfs-actions.pod:6708
30483 msgid "This is like C<guestfs_command>, but passes the command to:"
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs-actions.pod:6716
30488 msgid "All the provisos about C<guestfs_command> apply to this call."
30489 msgstr ""
30490
30491 #. type: =head2
30492 #: ../src/guestfs-actions.pod:6723
30493 msgid "guestfs_sh_lines"
30494 msgstr ""
30495
30496 #. type: verbatim
30497 #: ../src/guestfs-actions.pod:6725
30498 #, no-wrap
30499 msgid ""
30500 " char **\n"
30501 " guestfs_sh_lines (guestfs_h *g,\n"
30502 "                   const char *command);\n"
30503 "\n"
30504 msgstr ""
30505
30506 #. type: textblock
30507 #: ../src/guestfs-actions.pod:6729
30508 msgid ""
30509 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30510 "lines."
30511 msgstr ""
30512
30513 #. type: textblock
30514 #: ../src/guestfs-actions.pod:6732
30515 msgid "See also: C<guestfs_command_lines>"
30516 msgstr ""
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:6740
30520 msgid "guestfs_sleep"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:6742
30525 #, no-wrap
30526 msgid ""
30527 " int\n"
30528 " guestfs_sleep (guestfs_h *g,\n"
30529 "                int secs);\n"
30530 "\n"
30531 msgstr ""
30532
30533 #. type: textblock
30534 #: ../src/guestfs-actions.pod:6750
30535 msgid "(Added in 1.0.41)"
30536 msgstr ""
30537
30538 #. type: =head2
30539 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-structs.pod:109
30540 msgid "guestfs_stat"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs-actions.pod:6754
30545 #, no-wrap
30546 msgid ""
30547 " struct guestfs_stat *\n"
30548 " guestfs_stat (guestfs_h *g,\n"
30549 "               const char *path);\n"
30550 "\n"
30551 msgstr ""
30552
30553 #. type: =head2
30554 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-structs.pod:135
30555 msgid "guestfs_statvfs"
30556 msgstr ""
30557
30558 #. type: verbatim
30559 #: ../src/guestfs-actions.pod:6770
30560 #, no-wrap
30561 msgid ""
30562 " struct guestfs_statvfs *\n"
30563 " guestfs_statvfs (guestfs_h *g,\n"
30564 "                  const char *path);\n"
30565 "\n"
30566 msgstr ""
30567
30568 #. type: textblock
30569 #: ../src/guestfs-actions.pod:6780
30570 msgid ""
30571 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30572 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30573 msgstr ""
30574
30575 #. type: =head2
30576 #: ../src/guestfs-actions.pod:6786
30577 msgid "guestfs_strings"
30578 msgstr ""
30579
30580 #. type: verbatim
30581 #: ../src/guestfs-actions.pod:6788
30582 #, no-wrap
30583 msgid ""
30584 " char **\n"
30585 " guestfs_strings (guestfs_h *g,\n"
30586 "                  const char *path);\n"
30587 "\n"
30588 msgstr ""
30589
30590 #. type: =head2
30591 #: ../src/guestfs-actions.pod:6804
30592 msgid "guestfs_strings_e"
30593 msgstr ""
30594
30595 #. type: verbatim
30596 #: ../src/guestfs-actions.pod:6806
30597 #, no-wrap
30598 msgid ""
30599 " char **\n"
30600 " guestfs_strings_e (guestfs_h *g,\n"
30601 "                    const char *encoding,\n"
30602 "                    const char *path);\n"
30603 "\n"
30604 msgstr ""
30605
30606 #. type: textblock
30607 #: ../src/guestfs-actions.pod:6811
30608 msgid ""
30609 "This is like the C<guestfs_strings> command, but allows you to specify the "
30610 "encoding of strings that are looked for in the source file C<path>."
30611 msgstr ""
30612
30613 #. type: textblock
30614 #: ../src/guestfs-actions.pod:6821
30615 msgid ""
30616 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30617 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30618 msgstr ""
30619
30620 #. type: =head2
30621 #: ../src/guestfs-actions.pod:6859
30622 msgid "guestfs_swapoff_device"
30623 msgstr ""
30624
30625 #. type: verbatim
30626 #: ../src/guestfs-actions.pod:6861
30627 #, no-wrap
30628 msgid ""
30629 " int\n"
30630 " guestfs_swapoff_device (guestfs_h *g,\n"
30631 "                         const char *device);\n"
30632 "\n"
30633 msgstr ""
30634
30635 #. type: textblock
30636 #: ../src/guestfs-actions.pod:6865
30637 msgid ""
30638 "This command disables the libguestfs appliance swap device or partition "
30639 "named C<device>.  See C<guestfs_swapon_device>."
30640 msgstr ""
30641
30642 #. type: =head2
30643 #: ../src/guestfs-actions.pod:6873
30644 msgid "guestfs_swapoff_file"
30645 msgstr ""
30646
30647 #. type: verbatim
30648 #: ../src/guestfs-actions.pod:6875
30649 #, no-wrap
30650 msgid ""
30651 " int\n"
30652 " guestfs_swapoff_file (guestfs_h *g,\n"
30653 "                       const char *file);\n"
30654 "\n"
30655 msgstr ""
30656
30657 #. type: =head2
30658 #: ../src/guestfs-actions.pod:6885
30659 msgid "guestfs_swapoff_label"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-actions.pod:6887
30664 #, no-wrap
30665 msgid ""
30666 " int\n"
30667 " guestfs_swapoff_label (guestfs_h *g,\n"
30668 "                        const char *label);\n"
30669 "\n"
30670 msgstr ""
30671
30672 #. type: =head2
30673 #: ../src/guestfs-actions.pod:6898
30674 msgid "guestfs_swapoff_uuid"
30675 msgstr ""
30676
30677 #. type: verbatim
30678 #: ../src/guestfs-actions.pod:6900
30679 #, no-wrap
30680 msgid ""
30681 " int\n"
30682 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30683 "                       const char *uuid);\n"
30684 "\n"
30685 msgstr ""
30686
30687 #. type: =head2
30688 #: ../src/guestfs-actions.pod:6911
30689 msgid "guestfs_swapon_device"
30690 msgstr ""
30691
30692 #. type: verbatim
30693 #: ../src/guestfs-actions.pod:6913
30694 #, no-wrap
30695 msgid ""
30696 " int\n"
30697 " guestfs_swapon_device (guestfs_h *g,\n"
30698 "                        const char *device);\n"
30699 "\n"
30700 msgstr ""
30701
30702 #. type: textblock
30703 #: ../src/guestfs-actions.pod:6917
30704 msgid ""
30705 "This command enables the libguestfs appliance to use the swap device or "
30706 "partition named C<device>.  The increased memory is made available for all "
30707 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30708 msgstr ""
30709
30710 #. type: =head2
30711 #: ../src/guestfs-actions.pod:6933
30712 msgid "guestfs_swapon_file"
30713 msgstr ""
30714
30715 #. type: verbatim
30716 #: ../src/guestfs-actions.pod:6935
30717 #, no-wrap
30718 msgid ""
30719 " int\n"
30720 " guestfs_swapon_file (guestfs_h *g,\n"
30721 "                      const char *file);\n"
30722 "\n"
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs-actions.pod:6939
30727 msgid ""
30728 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30729 "notes."
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-actions.pod:6946
30734 msgid "guestfs_swapon_label"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-actions.pod:6948
30739 #, no-wrap
30740 msgid ""
30741 " int\n"
30742 " guestfs_swapon_label (guestfs_h *g,\n"
30743 "                       const char *label);\n"
30744 "\n"
30745 msgstr ""
30746
30747 #. type: textblock
30748 #: ../src/guestfs-actions.pod:6952
30749 msgid ""
30750 "This command enables swap to a labeled swap partition.  See "
30751 "C<guestfs_swapon_device> for other notes."
30752 msgstr ""
30753
30754 #. type: =head2
30755 #: ../src/guestfs-actions.pod:6959
30756 msgid "guestfs_swapon_uuid"
30757 msgstr ""
30758
30759 #. type: verbatim
30760 #: ../src/guestfs-actions.pod:6961
30761 #, no-wrap
30762 msgid ""
30763 " int\n"
30764 " guestfs_swapon_uuid (guestfs_h *g,\n"
30765 "                      const char *uuid);\n"
30766 "\n"
30767 msgstr ""
30768
30769 #. type: textblock
30770 #: ../src/guestfs-actions.pod:6965
30771 msgid ""
30772 "This command enables swap to a swap partition with the given UUID.  See "
30773 "C<guestfs_swapon_device> for other notes."
30774 msgstr ""
30775
30776 #. type: =head2
30777 #: ../src/guestfs-actions.pod:6972
30778 msgid "guestfs_sync"
30779 msgstr ""
30780
30781 #. type: verbatim
30782 #: ../src/guestfs-actions.pod:6974
30783 #, no-wrap
30784 msgid ""
30785 " int\n"
30786 " guestfs_sync (guestfs_h *g);\n"
30787 "\n"
30788 msgstr ""
30789
30790 #. type: =head2
30791 #: ../src/guestfs-actions.pod:6987
30792 msgid "guestfs_tail"
30793 msgstr ""
30794
30795 #. type: verbatim
30796 #: ../src/guestfs-actions.pod:6989
30797 #, no-wrap
30798 msgid ""
30799 " char **\n"
30800 " guestfs_tail (guestfs_h *g,\n"
30801 "               const char *path);\n"
30802 "\n"
30803 msgstr ""
30804
30805 #. type: =head2
30806 #: ../src/guestfs-actions.pod:7005
30807 msgid "guestfs_tail_n"
30808 msgstr ""
30809
30810 #. type: verbatim
30811 #: ../src/guestfs-actions.pod:7007
30812 #, no-wrap
30813 msgid ""
30814 " char **\n"
30815 " guestfs_tail_n (guestfs_h *g,\n"
30816 "                 int nrlines,\n"
30817 "                 const char *path);\n"
30818 "\n"
30819 msgstr ""
30820
30821 #. type: =head2
30822 #: ../src/guestfs-actions.pod:7029
30823 msgid "guestfs_tar_in"
30824 msgstr ""
30825
30826 #. type: verbatim
30827 #: ../src/guestfs-actions.pod:7031
30828 #, no-wrap
30829 msgid ""
30830 " int\n"
30831 " guestfs_tar_in (guestfs_h *g,\n"
30832 "                 const char *tarfile,\n"
30833 "                 const char *directory);\n"
30834 "\n"
30835 msgstr ""
30836
30837 #. type: textblock
30838 #: ../src/guestfs-actions.pod:7039
30839 msgid ""
30840 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30841 msgstr ""
30842
30843 #. type: textblock
30844 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:7061
30845 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7093
30846 msgid "(Added in 1.0.3)"
30847 msgstr ""
30848
30849 #. type: =head2
30850 #: ../src/guestfs-actions.pod:7046
30851 msgid "guestfs_tar_out"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-actions.pod:7048
30856 #, no-wrap
30857 msgid ""
30858 " int\n"
30859 " guestfs_tar_out (guestfs_h *g,\n"
30860 "                  const char *directory,\n"
30861 "                  const char *tarfile);\n"
30862 "\n"
30863 msgstr ""
30864
30865 #. type: textblock
30866 #: ../src/guestfs-actions.pod:7056
30867 msgid ""
30868 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30869 "C<guestfs_txz_out>."
30870 msgstr ""
30871
30872 #. type: =head2
30873 #: ../src/guestfs-actions.pod:7063
30874 msgid "guestfs_tgz_in"
30875 msgstr ""
30876
30877 #. type: verbatim
30878 #: ../src/guestfs-actions.pod:7065
30879 #, no-wrap
30880 msgid ""
30881 " int\n"
30882 " guestfs_tgz_in (guestfs_h *g,\n"
30883 "                 const char *tarball,\n"
30884 "                 const char *directory);\n"
30885 "\n"
30886 msgstr ""
30887
30888 #. type: textblock
30889 #: ../src/guestfs-actions.pod:7073
30890 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30891 msgstr ""
30892
30893 #. type: =head2
30894 #: ../src/guestfs-actions.pod:7079
30895 msgid "guestfs_tgz_out"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-actions.pod:7081
30900 #, no-wrap
30901 msgid ""
30902 " int\n"
30903 " guestfs_tgz_out (guestfs_h *g,\n"
30904 "                  const char *directory,\n"
30905 "                  const char *tarball);\n"
30906 "\n"
30907 msgstr ""
30908
30909 #. type: textblock
30910 #: ../src/guestfs-actions.pod:7089
30911 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:7095
30916 msgid "guestfs_touch"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:7097
30921 #, no-wrap
30922 msgid ""
30923 " int\n"
30924 " guestfs_touch (guestfs_h *g,\n"
30925 "                const char *path);\n"
30926 "\n"
30927 msgstr ""
30928
30929 #. type: =head2
30930 #: ../src/guestfs-actions.pod:7112
30931 msgid "guestfs_truncate"
30932 msgstr ""
30933
30934 #. type: verbatim
30935 #: ../src/guestfs-actions.pod:7114
30936 #, no-wrap
30937 msgid ""
30938 " int\n"
30939 " guestfs_truncate (guestfs_h *g,\n"
30940 "                   const char *path);\n"
30941 "\n"
30942 msgstr ""
30943
30944 #. type: =head2
30945 #: ../src/guestfs-actions.pod:7125
30946 msgid "guestfs_truncate_size"
30947 msgstr ""
30948
30949 #. type: verbatim
30950 #: ../src/guestfs-actions.pod:7127
30951 #, no-wrap
30952 msgid ""
30953 " int\n"
30954 " guestfs_truncate_size (guestfs_h *g,\n"
30955 "                        const char *path,\n"
30956 "                        int64_t size);\n"
30957 "\n"
30958 msgstr ""
30959
30960 #. type: textblock
30961 #: ../src/guestfs-actions.pod:7135
30962 msgid ""
30963 "If the current file size is less than C<size> then the file is extended to "
30964 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30965 "blocks are not allocated for the file until you write to it).  To create a "
30966 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30967 msgstr ""
30968
30969 #. type: =head2
30970 #: ../src/guestfs-actions.pod:7145
30971 msgid "guestfs_tune2fs_l"
30972 msgstr ""
30973
30974 #. type: verbatim
30975 #: ../src/guestfs-actions.pod:7147
30976 #, no-wrap
30977 msgid ""
30978 " char **\n"
30979 " guestfs_tune2fs_l (guestfs_h *g,\n"
30980 "                    const char *device);\n"
30981 "\n"
30982 msgstr ""
30983
30984 #. type: =head2
30985 #: ../src/guestfs-actions.pod:7167
30986 msgid "guestfs_txz_in"
30987 msgstr ""
30988
30989 #. type: verbatim
30990 #: ../src/guestfs-actions.pod:7169
30991 #, no-wrap
30992 msgid ""
30993 " int\n"
30994 " guestfs_txz_in (guestfs_h *g,\n"
30995 "                 const char *tarball,\n"
30996 "                 const char *directory);\n"
30997 "\n"
30998 msgstr ""
30999
31000 #. type: =head2
31001 #: ../src/guestfs-actions.pod:7181
31002 msgid "guestfs_txz_out"
31003 msgstr ""
31004
31005 #. type: verbatim
31006 #: ../src/guestfs-actions.pod:7183
31007 #, no-wrap
31008 msgid ""
31009 " int\n"
31010 " guestfs_txz_out (guestfs_h *g,\n"
31011 "                  const char *directory,\n"
31012 "                  const char *tarball);\n"
31013 "\n"
31014 msgstr ""
31015
31016 #. type: =head2
31017 #: ../src/guestfs-actions.pod:7195
31018 msgid "guestfs_umask"
31019 msgstr ""
31020
31021 #. type: verbatim
31022 #: ../src/guestfs-actions.pod:7197
31023 #, no-wrap
31024 msgid ""
31025 " int\n"
31026 " guestfs_umask (guestfs_h *g,\n"
31027 "                int mask);\n"
31028 "\n"
31029 msgstr ""
31030
31031 #. type: textblock
31032 #: ../src/guestfs-actions.pod:7213
31033 msgid ""
31034 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31035 "C<guestfs_mkdir>."
31036 msgstr ""
31037
31038 #. type: =head2
31039 #: ../src/guestfs-actions.pod:7222
31040 msgid "guestfs_umount"
31041 msgstr ""
31042
31043 #. type: verbatim
31044 #: ../src/guestfs-actions.pod:7224
31045 #, no-wrap
31046 msgid ""
31047 " int\n"
31048 " guestfs_umount (guestfs_h *g,\n"
31049 "                 const char *pathordevice);\n"
31050 "\n"
31051 msgstr ""
31052
31053 #. type: =head2
31054 #: ../src/guestfs-actions.pod:7236
31055 msgid "guestfs_umount_all"
31056 msgstr ""
31057
31058 #. type: verbatim
31059 #: ../src/guestfs-actions.pod:7238
31060 #, no-wrap
31061 msgid ""
31062 " int\n"
31063 " guestfs_umount_all (guestfs_h *g);\n"
31064 "\n"
31065 msgstr ""
31066
31067 #. type: =head2
31068 #: ../src/guestfs-actions.pod:7249
31069 msgid "guestfs_upload"
31070 msgstr ""
31071
31072 #. type: verbatim
31073 #: ../src/guestfs-actions.pod:7251
31074 #, no-wrap
31075 msgid ""
31076 " int\n"
31077 " guestfs_upload (guestfs_h *g,\n"
31078 "                 const char *filename,\n"
31079 "                 const char *remotefilename);\n"
31080 "\n"
31081 msgstr ""
31082
31083 #. type: textblock
31084 #: ../src/guestfs-actions.pod:7261
31085 msgid "See also C<guestfs_download>."
31086 msgstr ""
31087
31088 #. type: =head2
31089 #: ../src/guestfs-actions.pod:7272
31090 msgid "guestfs_upload_offset"
31091 msgstr ""
31092
31093 #. type: verbatim
31094 #: ../src/guestfs-actions.pod:7274
31095 #, no-wrap
31096 msgid ""
31097 " int\n"
31098 " guestfs_upload_offset (guestfs_h *g,\n"
31099 "                        const char *filename,\n"
31100 "                        const char *remotefilename,\n"
31101 "                        int64_t offset);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: textblock
31106 #: ../src/guestfs-actions.pod:7290
31107 msgid ""
31108 "Note that there is no limit on the amount of data that can be uploaded with "
31109 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31110 "full amount unless an error occurs."
31111 msgstr ""
31112
31113 #. type: textblock
31114 #: ../src/guestfs-actions.pod:7295
31115 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31116 msgstr ""
31117
31118 #. type: =head2
31119 #: ../src/guestfs-actions.pod:7306
31120 msgid "guestfs_utimens"
31121 msgstr ""
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-actions.pod:7308
31125 #, no-wrap
31126 msgid ""
31127 " int\n"
31128 " guestfs_utimens (guestfs_h *g,\n"
31129 "                  const char *path,\n"
31130 "                  int64_t atsecs,\n"
31131 "                  int64_t atnsecs,\n"
31132 "                  int64_t mtsecs,\n"
31133 "                  int64_t mtnsecs);\n"
31134 "\n"
31135 msgstr ""
31136
31137 #. type: =head2
31138 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-structs.pod:175
31139 msgid "guestfs_version"
31140 msgstr ""
31141
31142 #. type: verbatim
31143 #: ../src/guestfs-actions.pod:7339
31144 #, no-wrap
31145 msgid ""
31146 " struct guestfs_version *\n"
31147 " guestfs_version (guestfs_h *g);\n"
31148 "\n"
31149 msgstr ""
31150
31151 #. type: textblock
31152 #: ../src/guestfs-actions.pod:7367
31153 msgid ""
31154 "I<Note:> Don't use this call to test for availability of features.  In "
31155 "enterprise distributions we backport features from later versions into "
31156 "earlier versions, making this an unreliable way to test for features.  Use "
31157 "C<guestfs_available> instead."
31158 msgstr ""
31159
31160 #. type: textblock
31161 #: ../src/guestfs-actions.pod:7373
31162 msgid ""
31163 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31164 "error.  I<The caller must call C<guestfs_free_version> after use>."
31165 msgstr ""
31166
31167 #. type: textblock
31168 #: ../src/guestfs-actions.pod:7377
31169 msgid "(Added in 1.0.58)"
31170 msgstr ""
31171
31172 #. type: =head2
31173 #: ../src/guestfs-actions.pod:7379
31174 msgid "guestfs_vfs_label"
31175 msgstr ""
31176
31177 #. type: verbatim
31178 #: ../src/guestfs-actions.pod:7381
31179 #, no-wrap
31180 msgid ""
31181 " char *\n"
31182 " guestfs_vfs_label (guestfs_h *g,\n"
31183 "                    const char *device);\n"
31184 "\n"
31185 msgstr ""
31186
31187 #. type: textblock
31188 #: ../src/guestfs-actions.pod:7390
31189 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31190 msgstr ""
31191
31192 #. type: textblock
31193 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7432
31194 msgid "(Added in 1.3.18)"
31195 msgstr ""
31196
31197 #. type: =head2
31198 #: ../src/guestfs-actions.pod:7397
31199 msgid "guestfs_vfs_type"
31200 msgstr ""
31201
31202 #. type: verbatim
31203 #: ../src/guestfs-actions.pod:7399
31204 #, no-wrap
31205 msgid ""
31206 " char *\n"
31207 " guestfs_vfs_type (guestfs_h *g,\n"
31208 "                   const char *device);\n"
31209 "\n"
31210 msgstr ""
31211
31212 #. type: =head2
31213 #: ../src/guestfs-actions.pod:7416
31214 msgid "guestfs_vfs_uuid"
31215 msgstr ""
31216
31217 #. type: verbatim
31218 #: ../src/guestfs-actions.pod:7418
31219 #, no-wrap
31220 msgid ""
31221 " char *\n"
31222 " guestfs_vfs_uuid (guestfs_h *g,\n"
31223 "                   const char *device);\n"
31224 "\n"
31225 msgstr ""
31226
31227 #. type: textblock
31228 #: ../src/guestfs-actions.pod:7427
31229 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31230 msgstr ""
31231
31232 #. type: =head2
31233 #: ../src/guestfs-actions.pod:7434
31234 msgid "guestfs_vg_activate"
31235 msgstr ""
31236
31237 #. type: verbatim
31238 #: ../src/guestfs-actions.pod:7436
31239 #, no-wrap
31240 msgid ""
31241 " int\n"
31242 " guestfs_vg_activate (guestfs_h *g,\n"
31243 "                      int activate,\n"
31244 "                      char *const *volgroups);\n"
31245 "\n"
31246 msgstr ""
31247
31248 #. type: =head2
31249 #: ../src/guestfs-actions.pod:7453
31250 msgid "guestfs_vg_activate_all"
31251 msgstr ""
31252
31253 #. type: verbatim
31254 #: ../src/guestfs-actions.pod:7455
31255 #, no-wrap
31256 msgid ""
31257 " int\n"
31258 " guestfs_vg_activate_all (guestfs_h *g,\n"
31259 "                          int activate);\n"
31260 "\n"
31261 msgstr ""
31262
31263 #. type: =head2
31264 #: ../src/guestfs-actions.pod:7468
31265 msgid "guestfs_vgcreate"
31266 msgstr ""
31267
31268 #. type: verbatim
31269 #: ../src/guestfs-actions.pod:7470
31270 #, no-wrap
31271 msgid ""
31272 " int\n"
31273 " guestfs_vgcreate (guestfs_h *g,\n"
31274 "                   const char *volgroup,\n"
31275 "                   char *const *physvols);\n"
31276 "\n"
31277 msgstr ""
31278
31279 #. type: =head2
31280 #: ../src/guestfs-actions.pod:7482
31281 msgid "guestfs_vglvuuids"
31282 msgstr ""
31283
31284 #. type: verbatim
31285 #: ../src/guestfs-actions.pod:7484
31286 #, no-wrap
31287 msgid ""
31288 " char **\n"
31289 " guestfs_vglvuuids (guestfs_h *g,\n"
31290 "                    const char *vgname);\n"
31291 "\n"
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs-actions.pod:7491
31296 msgid ""
31297 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31298 "associate logical volumes and volume groups."
31299 msgstr ""
31300
31301 #. type: textblock
31302 #: ../src/guestfs-actions.pod:7494
31303 msgid "See also C<guestfs_vgpvuuids>."
31304 msgstr ""
31305
31306 #. type: =head2
31307 #: ../src/guestfs-actions.pod:7502
31308 msgid "guestfs_vgpvuuids"
31309 msgstr ""
31310
31311 #. type: verbatim
31312 #: ../src/guestfs-actions.pod:7504
31313 #, no-wrap
31314 msgid ""
31315 " char **\n"
31316 " guestfs_vgpvuuids (guestfs_h *g,\n"
31317 "                    const char *vgname);\n"
31318 "\n"
31319 msgstr ""
31320
31321 #. type: textblock
31322 #: ../src/guestfs-actions.pod:7511
31323 msgid ""
31324 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31325 "associate physical volumes and volume groups."
31326 msgstr ""
31327
31328 #. type: textblock
31329 #: ../src/guestfs-actions.pod:7514
31330 msgid "See also C<guestfs_vglvuuids>."
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:7522
31335 msgid "guestfs_vgremove"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:7524
31340 #, no-wrap
31341 msgid ""
31342 " int\n"
31343 " guestfs_vgremove (guestfs_h *g,\n"
31344 "                   const char *vgname);\n"
31345 "\n"
31346 msgstr ""
31347
31348 #. type: =head2
31349 #: ../src/guestfs-actions.pod:7537
31350 msgid "guestfs_vgrename"
31351 msgstr ""
31352
31353 #. type: verbatim
31354 #: ../src/guestfs-actions.pod:7539
31355 #, no-wrap
31356 msgid ""
31357 " int\n"
31358 " guestfs_vgrename (guestfs_h *g,\n"
31359 "                   const char *volgroup,\n"
31360 "                   const char *newvolgroup);\n"
31361 "\n"
31362 msgstr ""
31363
31364 #. type: =head2
31365 #: ../src/guestfs-actions.pod:7550
31366 msgid "guestfs_vgs"
31367 msgstr ""
31368
31369 #. type: verbatim
31370 #: ../src/guestfs-actions.pod:7552
31371 #, no-wrap
31372 msgid ""
31373 " char **\n"
31374 " guestfs_vgs (guestfs_h *g);\n"
31375 "\n"
31376 msgstr ""
31377
31378 #. type: textblock
31379 #: ../src/guestfs-actions.pod:7561
31380 msgid "See also C<guestfs_vgs_full>."
31381 msgstr ""
31382
31383 #. type: =head2
31384 #: ../src/guestfs-actions.pod:7569
31385 msgid "guestfs_vgs_full"
31386 msgstr ""
31387
31388 #. type: verbatim
31389 #: ../src/guestfs-actions.pod:7571
31390 #, no-wrap
31391 msgid ""
31392 " struct guestfs_lvm_vg_list *\n"
31393 " guestfs_vgs_full (guestfs_h *g);\n"
31394 "\n"
31395 msgstr ""
31396
31397 #. type: textblock
31398 #: ../src/guestfs-actions.pod:7577
31399 msgid ""
31400 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31401 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31402 msgstr ""
31403
31404 #. type: =head2
31405 #: ../src/guestfs-actions.pod:7583
31406 msgid "guestfs_vgscan"
31407 msgstr ""
31408
31409 #. type: verbatim
31410 #: ../src/guestfs-actions.pod:7585
31411 #, no-wrap
31412 msgid ""
31413 " int\n"
31414 " guestfs_vgscan (guestfs_h *g);\n"
31415 "\n"
31416 msgstr ""
31417
31418 #. type: =head2
31419 #: ../src/guestfs-actions.pod:7595
31420 msgid "guestfs_vguuid"
31421 msgstr ""
31422
31423 #. type: verbatim
31424 #: ../src/guestfs-actions.pod:7597
31425 #, no-wrap
31426 msgid ""
31427 " char *\n"
31428 " guestfs_vguuid (guestfs_h *g,\n"
31429 "                 const char *vgname);\n"
31430 "\n"
31431 msgstr ""
31432
31433 #. type: =head2
31434 #: ../src/guestfs-actions.pod:7608
31435 msgid "guestfs_wait_ready"
31436 msgstr ""
31437
31438 #. type: verbatim
31439 #: ../src/guestfs-actions.pod:7610
31440 #, no-wrap
31441 msgid ""
31442 " int\n"
31443 " guestfs_wait_ready (guestfs_h *g);\n"
31444 "\n"
31445 msgstr ""
31446
31447 #. type: textblock
31448 #: ../src/guestfs-actions.pod:7613
31449 msgid "This function is a no op."
31450 msgstr ""
31451
31452 #. type: textblock
31453 #: ../src/guestfs-actions.pod:7615
31454 msgid ""
31455 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31456 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31457 "is no longer necessary because C<guestfs_launch> now does the waiting."
31458 msgstr ""
31459
31460 #. type: textblock
31461 #: ../src/guestfs-actions.pod:7620
31462 msgid ""
31463 "If you see any calls to this function in code then you can just remove them, "
31464 "unless you want to retain compatibility with older versions of the API."
31465 msgstr ""
31466
31467 #. type: textblock
31468 #: ../src/guestfs-actions.pod:7626
31469 msgid ""
31470 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
31471 "instead."
31472 msgstr ""
31473
31474 #. type: =head2
31475 #: ../src/guestfs-actions.pod:7635
31476 msgid "guestfs_wc_c"
31477 msgstr ""
31478
31479 #. type: verbatim
31480 #: ../src/guestfs-actions.pod:7637
31481 #, no-wrap
31482 msgid ""
31483 " int\n"
31484 " guestfs_wc_c (guestfs_h *g,\n"
31485 "               const char *path);\n"
31486 "\n"
31487 msgstr ""
31488
31489 #. type: =head2
31490 #: ../src/guestfs-actions.pod:7648
31491 msgid "guestfs_wc_l"
31492 msgstr ""
31493
31494 #. type: verbatim
31495 #: ../src/guestfs-actions.pod:7650
31496 #, no-wrap
31497 msgid ""
31498 " int\n"
31499 " guestfs_wc_l (guestfs_h *g,\n"
31500 "               const char *path);\n"
31501 "\n"
31502 msgstr ""
31503
31504 #. type: =head2
31505 #: ../src/guestfs-actions.pod:7661
31506 msgid "guestfs_wc_w"
31507 msgstr ""
31508
31509 #. type: verbatim
31510 #: ../src/guestfs-actions.pod:7663
31511 #, no-wrap
31512 msgid ""
31513 " int\n"
31514 " guestfs_wc_w (guestfs_h *g,\n"
31515 "               const char *path);\n"
31516 "\n"
31517 msgstr ""
31518
31519 #. type: =head2
31520 #: ../src/guestfs-actions.pod:7674
31521 msgid "guestfs_write"
31522 msgstr ""
31523
31524 #. type: verbatim
31525 #: ../src/guestfs-actions.pod:7676
31526 #, no-wrap
31527 msgid ""
31528 " int\n"
31529 " guestfs_write (guestfs_h *g,\n"
31530 "                const char *path,\n"
31531 "                const char *content,\n"
31532 "                size_t content_size);\n"
31533 "\n"
31534 msgstr ""
31535
31536 #. type: textblock
31537 #: ../src/guestfs-actions.pod:7685
31538 msgid "See also C<guestfs_write_append>."
31539 msgstr ""
31540
31541 #. type: =head2
31542 #: ../src/guestfs-actions.pod:7694
31543 msgid "guestfs_write_append"
31544 msgstr ""
31545
31546 #. type: verbatim
31547 #: ../src/guestfs-actions.pod:7696
31548 #, no-wrap
31549 msgid ""
31550 " int\n"
31551 " guestfs_write_append (guestfs_h *g,\n"
31552 "                       const char *path,\n"
31553 "                       const char *content,\n"
31554 "                       size_t content_size);\n"
31555 "\n"
31556 msgstr ""
31557
31558 #. type: textblock
31559 #: ../src/guestfs-actions.pod:7705
31560 msgid "See also C<guestfs_write>."
31561 msgstr ""
31562
31563 #. type: =head2
31564 #: ../src/guestfs-actions.pod:7714
31565 msgid "guestfs_write_file"
31566 msgstr "guestfs_write_file"
31567
31568 #. type: verbatim
31569 #: ../src/guestfs-actions.pod:7716
31570 #, no-wrap
31571 msgid ""
31572 " int\n"
31573 " guestfs_write_file (guestfs_h *g,\n"
31574 "                     const char *path,\n"
31575 "                     const char *content,\n"
31576 "                     int size);\n"
31577 "\n"
31578 msgstr ""
31579 " int\n"
31580 " guestfs_write_file (guestfs_h *g,\n"
31581 "                     const char *path,\n"
31582 "                     const char *content,\n"
31583 "                     int size);\n"
31584 "\n"
31585
31586 #. type: textblock
31587 #: ../src/guestfs-actions.pod:7738
31588 msgid ""
31589 "This function is deprecated.  In new code, use the L</guestfs_write> call "
31590 "instead."
31591 msgstr ""
31592
31593 #. type: =head2
31594 #: ../src/guestfs-actions.pod:7747
31595 msgid "guestfs_zegrep"
31596 msgstr "guestfs_zegrep"
31597
31598 #. type: verbatim
31599 #: ../src/guestfs-actions.pod:7749
31600 #, no-wrap
31601 msgid ""
31602 " char **\n"
31603 " guestfs_zegrep (guestfs_h *g,\n"
31604 "                 const char *regex,\n"
31605 "                 const char *path);\n"
31606 "\n"
31607 msgstr ""
31608 " char **\n"
31609 " guestfs_zegrep (guestfs_h *g,\n"
31610 "                 const char *regex,\n"
31611 "                 const char *path);\n"
31612 "\n"
31613
31614 #. type: =head2
31615 #: ../src/guestfs-actions.pod:7766
31616 msgid "guestfs_zegrepi"
31617 msgstr "guestfs_zegrepi"
31618
31619 #. type: verbatim
31620 #: ../src/guestfs-actions.pod:7768
31621 #, no-wrap
31622 msgid ""
31623 " char **\n"
31624 " guestfs_zegrepi (guestfs_h *g,\n"
31625 "                  const char *regex,\n"
31626 "                  const char *path);\n"
31627 "\n"
31628 msgstr ""
31629 " char **\n"
31630 " guestfs_zegrepi (guestfs_h *g,\n"
31631 "                  const char *regex,\n"
31632 "                  const char *path);\n"
31633 "\n"
31634
31635 #. type: =head2
31636 #: ../src/guestfs-actions.pod:7785
31637 msgid "guestfs_zero"
31638 msgstr "guestfs_zero"
31639
31640 #. type: verbatim
31641 #: ../src/guestfs-actions.pod:7787
31642 #, no-wrap
31643 msgid ""
31644 " int\n"
31645 " guestfs_zero (guestfs_h *g,\n"
31646 "               const char *device);\n"
31647 "\n"
31648 msgstr ""
31649 " int\n"
31650 " guestfs_zero (guestfs_h *g,\n"
31651 "               const char *device);\n"
31652 "\n"
31653
31654 #. type: textblock
31655 #: ../src/guestfs-actions.pod:7801
31656 msgid ""
31657 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31658 "C<guestfs_is_zero_device>"
31659 msgstr ""
31660
31661 #. type: =head2
31662 #: ../src/guestfs-actions.pod:7813
31663 msgid "guestfs_zero_device"
31664 msgstr "guestfs_zero_device"
31665
31666 #. type: verbatim
31667 #: ../src/guestfs-actions.pod:7815
31668 #, no-wrap
31669 msgid ""
31670 " int\n"
31671 " guestfs_zero_device (guestfs_h *g,\n"
31672 "                      const char *device);\n"
31673 "\n"
31674 msgstr ""
31675 " int\n"
31676 " guestfs_zero_device (guestfs_h *g,\n"
31677 "                      const char *device);\n"
31678 "\n"
31679
31680 #. type: textblock
31681 #: ../src/guestfs-actions.pod:7819
31682 msgid ""
31683 "This command writes zeroes over the entire C<device>.  Compare with "
31684 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31685 msgstr ""
31686
31687 #. type: textblock
31688 #: ../src/guestfs-actions.pod:7837
31689 msgid "(Added in 1.3.1)"
31690 msgstr "(Додано у 1.3.1)"
31691
31692 #. type: =head2
31693 #: ../src/guestfs-actions.pod:7839
31694 msgid "guestfs_zerofree"
31695 msgstr "guestfs_zerofree"
31696
31697 #. type: verbatim
31698 #: ../src/guestfs-actions.pod:7841
31699 #, no-wrap
31700 msgid ""
31701 " int\n"
31702 " guestfs_zerofree (guestfs_h *g,\n"
31703 "                   const char *device);\n"
31704 "\n"
31705 msgstr ""
31706 " int\n"
31707 " guestfs_zerofree (guestfs_h *g,\n"
31708 "                   const char *device);\n"
31709 "\n"
31710
31711 #. type: =head2
31712 #: ../src/guestfs-actions.pod:7860
31713 msgid "guestfs_zfgrep"
31714 msgstr "guestfs_zfgrep"
31715
31716 #. type: verbatim
31717 #: ../src/guestfs-actions.pod:7862
31718 #, no-wrap
31719 msgid ""
31720 " char **\n"
31721 " guestfs_zfgrep (guestfs_h *g,\n"
31722 "                 const char *pattern,\n"
31723 "                 const char *path);\n"
31724 "\n"
31725 msgstr ""
31726 " char **\n"
31727 " guestfs_zfgrep (guestfs_h *g,\n"
31728 "                 const char *pattern,\n"
31729 "                 const char *path);\n"
31730 "\n"
31731
31732 #. type: =head2
31733 #: ../src/guestfs-actions.pod:7879
31734 msgid "guestfs_zfgrepi"
31735 msgstr "guestfs_zfgrepi"
31736
31737 #. type: verbatim
31738 #: ../src/guestfs-actions.pod:7881
31739 #, no-wrap
31740 msgid ""
31741 " char **\n"
31742 " guestfs_zfgrepi (guestfs_h *g,\n"
31743 "                  const char *pattern,\n"
31744 "                  const char *path);\n"
31745 "\n"
31746 msgstr ""
31747 " char **\n"
31748 " guestfs_zfgrepi (guestfs_h *g,\n"
31749 "                  const char *pattern,\n"
31750 "                  const char *path);\n"
31751 "\n"
31752
31753 #. type: =head2
31754 #: ../src/guestfs-actions.pod:7898
31755 msgid "guestfs_zfile"
31756 msgstr "guestfs_zfile"
31757
31758 #. type: verbatim
31759 #: ../src/guestfs-actions.pod:7900
31760 #, no-wrap
31761 msgid ""
31762 " char *\n"
31763 " guestfs_zfile (guestfs_h *g,\n"
31764 "                const char *meth,\n"
31765 "                const char *path);\n"
31766 "\n"
31767 msgstr ""
31768 " char *\n"
31769 " guestfs_zfile (guestfs_h *g,\n"
31770 "                const char *meth,\n"
31771 "                const char *path);\n"
31772 "\n"
31773
31774 #. type: textblock
31775 #: ../src/guestfs-actions.pod:7910
31776 msgid ""
31777 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31778 "files."
31779 msgstr ""
31780
31781 #. type: textblock
31782 #: ../src/guestfs-actions.pod:7916
31783 msgid ""
31784 "This function is deprecated.  In new code, use the L</guestfs_file> call "
31785 "instead."
31786 msgstr ""
31787
31788 #. type: =head2
31789 #: ../src/guestfs-actions.pod:7925
31790 msgid "guestfs_zgrep"
31791 msgstr "guestfs_zgrep"
31792
31793 #. type: verbatim
31794 #: ../src/guestfs-actions.pod:7927
31795 #, no-wrap
31796 msgid ""
31797 " char **\n"
31798 " guestfs_zgrep (guestfs_h *g,\n"
31799 "                const char *regex,\n"
31800 "                const char *path);\n"
31801 "\n"
31802 msgstr ""
31803 " char **\n"
31804 " guestfs_zgrep (guestfs_h *g,\n"
31805 "                const char *regex,\n"
31806 "                const char *path);\n"
31807 "\n"
31808
31809 #. type: =head2
31810 #: ../src/guestfs-actions.pod:7944
31811 msgid "guestfs_zgrepi"
31812 msgstr "guestfs_zgrepi"
31813
31814 #. type: verbatim
31815 #: ../src/guestfs-actions.pod:7946
31816 #, no-wrap
31817 msgid ""
31818 " char **\n"
31819 " guestfs_zgrepi (guestfs_h *g,\n"
31820 "                 const char *regex,\n"
31821 "                 const char *path);\n"
31822 "\n"
31823 msgstr ""
31824 " char **\n"
31825 " guestfs_zgrepi (guestfs_h *g,\n"
31826 "                 const char *regex,\n"
31827 "                 const char *path);\n"
31828 "\n"
31829
31830 #. type: =item
31831 #: ../src/guestfs-availability.pod:3
31832 msgid "B<augeas>"
31833 msgstr "B<augeas>"
31834
31835 #. type: textblock
31836 #: ../src/guestfs-availability.pod:5
31837 msgid ""
31838 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31839 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31840 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31841 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31842 "L</guestfs_aug_save> L</guestfs_aug_set>"
31843 msgstr ""
31844
31845 #. type: =item
31846 #: ../src/guestfs-availability.pod:21
31847 msgid "B<btrfs>"
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs-availability.pod:23
31852 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31853 msgstr ""
31854
31855 #. type: =item
31856 #: ../src/guestfs-availability.pod:26
31857 #, fuzzy
31858 #| msgid "B<scrub>"
31859 msgid "B<grub>"
31860 msgstr "B<scrub>"
31861
31862 #. type: textblock
31863 #: ../src/guestfs-availability.pod:28
31864 msgid "The following functions: L</guestfs_grub_install>"
31865 msgstr ""
31866
31867 #. type: =item
31868 #: ../src/guestfs-availability.pod:31
31869 msgid "B<inotify>"
31870 msgstr "B<inotify>"
31871
31872 #. type: textblock
31873 #: ../src/guestfs-availability.pod:33
31874 msgid ""
31875 "The following functions: L</guestfs_inotify_add_watch> L</"
31876 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31877 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31878 msgstr ""
31879
31880 #. type: =item
31881 #: ../src/guestfs-availability.pod:41
31882 msgid "B<linuxfsuuid>"
31883 msgstr "B<linuxfsuuid>"
31884
31885 #. type: textblock
31886 #: ../src/guestfs-availability.pod:43
31887 msgid ""
31888 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31889 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31890 msgstr ""
31891
31892 #. type: =item
31893 #: ../src/guestfs-availability.pod:50
31894 msgid "B<linuxmodules>"
31895 msgstr "B<linuxmodules>"
31896
31897 #. type: textblock
31898 #: ../src/guestfs-availability.pod:52
31899 msgid "The following functions: L</guestfs_modprobe>"
31900 msgstr ""
31901
31902 #. type: =item
31903 #: ../src/guestfs-availability.pod:55
31904 msgid "B<linuxxattrs>"
31905 msgstr "B<linuxxattrs>"
31906
31907 #. type: textblock
31908 #: ../src/guestfs-availability.pod:57
31909 msgid ""
31910 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31911 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31912 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31913 "guestfs_setxattr>"
31914 msgstr ""
31915
31916 #. type: =item
31917 #: ../src/guestfs-availability.pod:68
31918 msgid "B<luks>"
31919 msgstr "B<luks>"
31920
31921 #. type: textblock
31922 #: ../src/guestfs-availability.pod:70
31923 msgid ""
31924 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31925 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31926 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31927 msgstr ""
31928
31929 #. type: =item
31930 #: ../src/guestfs-availability.pod:79
31931 msgid "B<lvm2>"
31932 msgstr "B<lvm2>"
31933
31934 #. type: textblock
31935 #: ../src/guestfs-availability.pod:81
31936 msgid ""
31937 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31938 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31939 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31940 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31941 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31942 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31943 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31944 msgstr ""
31945
31946 #. type: =item
31947 #: ../src/guestfs-availability.pod:104
31948 msgid "B<mknod>"
31949 msgstr "B<mknod>"
31950
31951 #. type: textblock
31952 #: ../src/guestfs-availability.pod:106
31953 msgid ""
31954 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31955 "guestfs_mknod_b> L</guestfs_mknod_c>"
31956 msgstr ""
31957
31958 #. type: =item
31959 #: ../src/guestfs-availability.pod:112
31960 msgid "B<ntfs3g>"
31961 msgstr "B<ntfs3g>"
31962
31963 #. type: textblock
31964 #: ../src/guestfs-availability.pod:114
31965 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31966 msgstr ""
31967
31968 #. type: =item
31969 #: ../src/guestfs-availability.pod:117
31970 msgid "B<ntfsprogs>"
31971 msgstr "B<ntfsprogs>"
31972
31973 #. type: textblock
31974 #: ../src/guestfs-availability.pod:119
31975 msgid ""
31976 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31977 "L</guestfs_ntfsresize_size>"
31978 msgstr ""
31979
31980 #. type: =item
31981 #: ../src/guestfs-availability.pod:124
31982 msgid "B<realpath>"
31983 msgstr "B<realpath>"
31984
31985 #. type: textblock
31986 #: ../src/guestfs-availability.pod:126
31987 msgid "The following functions: L</guestfs_realpath>"
31988 msgstr ""
31989
31990 #. type: =item
31991 #: ../src/guestfs-availability.pod:129
31992 msgid "B<scrub>"
31993 msgstr "B<scrub>"
31994
31995 #. type: textblock
31996 #: ../src/guestfs-availability.pod:131
31997 msgid ""
31998 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31999 "guestfs_scrub_freespace>"
32000 msgstr ""
32001
32002 #. type: =item
32003 #: ../src/guestfs-availability.pod:136
32004 msgid "B<selinux>"
32005 msgstr "B<selinux>"
32006
32007 #. type: textblock
32008 #: ../src/guestfs-availability.pod:138
32009 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32010 msgstr ""
32011
32012 #. type: =item
32013 #: ../src/guestfs-availability.pod:142
32014 msgid "B<xz>"
32015 msgstr "B<xz>"
32016
32017 #. type: textblock
32018 #: ../src/guestfs-availability.pod:144
32019 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32020 msgstr ""
32021
32022 #. type: =item
32023 #: ../src/guestfs-availability.pod:148
32024 msgid "B<zerofree>"
32025 msgstr "B<zerofree>"
32026
32027 #. type: textblock
32028 #: ../src/guestfs-availability.pod:150
32029 msgid "The following functions: L</guestfs_zerofree>"
32030 msgstr ""
32031
32032 #. type: =head2
32033 #: ../src/guestfs-structs.pod:1
32034 msgid "guestfs_int_bool"
32035 msgstr ""
32036
32037 #. type: verbatim
32038 #: ../src/guestfs-structs.pod:3
32039 #, no-wrap
32040 msgid ""
32041 " struct guestfs_int_bool {\n"
32042 "   int32_t i;\n"
32043 "   int32_t b;\n"
32044 " };\n"
32045 " \n"
32046 msgstr ""
32047
32048 #. type: verbatim
32049 #: ../src/guestfs-structs.pod:8
32050 #, no-wrap
32051 msgid ""
32052 " struct guestfs_int_bool_list {\n"
32053 "   uint32_t len; /* Number of elements in list. */\n"
32054 "   struct guestfs_int_bool *val; /* Elements. */\n"
32055 " };\n"
32056 " \n"
32057 msgstr ""
32058
32059 #. type: verbatim
32060 #: ../src/guestfs-structs.pod:13
32061 #, no-wrap
32062 msgid ""
32063 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32064 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: =head2
32069 #: ../src/guestfs-structs.pod:16
32070 msgid "guestfs_lvm_pv"
32071 msgstr ""
32072
32073 #. type: verbatim
32074 #: ../src/guestfs-structs.pod:18
32075 #, no-wrap
32076 msgid ""
32077 " struct guestfs_lvm_pv {\n"
32078 "   char *pv_name;\n"
32079 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32080 "   char pv_uuid[32];\n"
32081 "   char *pv_fmt;\n"
32082 "   uint64_t pv_size;\n"
32083 "   uint64_t dev_size;\n"
32084 "   uint64_t pv_free;\n"
32085 "   uint64_t pv_used;\n"
32086 "   char *pv_attr;\n"
32087 "   int64_t pv_pe_count;\n"
32088 "   int64_t pv_pe_alloc_count;\n"
32089 "   char *pv_tags;\n"
32090 "   uint64_t pe_start;\n"
32091 "   int64_t pv_mda_count;\n"
32092 "   uint64_t pv_mda_free;\n"
32093 " };\n"
32094 " \n"
32095 msgstr ""
32096
32097 #. type: verbatim
32098 #: ../src/guestfs-structs.pod:36
32099 #, no-wrap
32100 msgid ""
32101 " struct guestfs_lvm_pv_list {\n"
32102 "   uint32_t len; /* Number of elements in list. */\n"
32103 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32104 " };\n"
32105 " \n"
32106 msgstr ""
32107
32108 #. type: verbatim
32109 #: ../src/guestfs-structs.pod:41
32110 #, no-wrap
32111 msgid ""
32112 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32113 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32114 "\n"
32115 msgstr ""
32116
32117 #. type: =head2
32118 #: ../src/guestfs-structs.pod:44
32119 msgid "guestfs_lvm_vg"
32120 msgstr ""
32121
32122 #. type: verbatim
32123 #: ../src/guestfs-structs.pod:46
32124 #, no-wrap
32125 msgid ""
32126 " struct guestfs_lvm_vg {\n"
32127 "   char *vg_name;\n"
32128 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32129 "   char vg_uuid[32];\n"
32130 "   char *vg_fmt;\n"
32131 "   char *vg_attr;\n"
32132 "   uint64_t vg_size;\n"
32133 "   uint64_t vg_free;\n"
32134 "   char *vg_sysid;\n"
32135 "   uint64_t vg_extent_size;\n"
32136 "   int64_t vg_extent_count;\n"
32137 "   int64_t vg_free_count;\n"
32138 "   int64_t max_lv;\n"
32139 "   int64_t max_pv;\n"
32140 "   int64_t pv_count;\n"
32141 "   int64_t lv_count;\n"
32142 "   int64_t snap_count;\n"
32143 "   int64_t vg_seqno;\n"
32144 "   char *vg_tags;\n"
32145 "   int64_t vg_mda_count;\n"
32146 "   uint64_t vg_mda_free;\n"
32147 " };\n"
32148 " \n"
32149 msgstr ""
32150
32151 #. type: verbatim
32152 #: ../src/guestfs-structs.pod:69
32153 #, no-wrap
32154 msgid ""
32155 " struct guestfs_lvm_vg_list {\n"
32156 "   uint32_t len; /* Number of elements in list. */\n"
32157 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32158 " };\n"
32159 " \n"
32160 msgstr ""
32161
32162 #. type: verbatim
32163 #: ../src/guestfs-structs.pod:74
32164 #, no-wrap
32165 msgid ""
32166 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32167 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32168 "\n"
32169 msgstr ""
32170
32171 #. type: =head2
32172 #: ../src/guestfs-structs.pod:77
32173 msgid "guestfs_lvm_lv"
32174 msgstr ""
32175
32176 #. type: verbatim
32177 #: ../src/guestfs-structs.pod:79
32178 #, no-wrap
32179 msgid ""
32180 " struct guestfs_lvm_lv {\n"
32181 "   char *lv_name;\n"
32182 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32183 "   char lv_uuid[32];\n"
32184 "   char *lv_attr;\n"
32185 "   int64_t lv_major;\n"
32186 "   int64_t lv_minor;\n"
32187 "   int64_t lv_kernel_major;\n"
32188 "   int64_t lv_kernel_minor;\n"
32189 "   uint64_t lv_size;\n"
32190 "   int64_t seg_count;\n"
32191 "   char *origin;\n"
32192 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32193 "   float snap_percent;\n"
32194 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32195 "   float copy_percent;\n"
32196 "   char *move_pv;\n"
32197 "   char *lv_tags;\n"
32198 "   char *mirror_log;\n"
32199 "   char *modules;\n"
32200 " };\n"
32201 " \n"
32202 msgstr ""
32203
32204 #. type: verbatim
32205 #: ../src/guestfs-structs.pod:101
32206 #, no-wrap
32207 msgid ""
32208 " struct guestfs_lvm_lv_list {\n"
32209 "   uint32_t len; /* Number of elements in list. */\n"
32210 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32211 " };\n"
32212 " \n"
32213 msgstr ""
32214
32215 #. type: verbatim
32216 #: ../src/guestfs-structs.pod:106
32217 #, no-wrap
32218 msgid ""
32219 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32220 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32221 "\n"
32222 msgstr ""
32223
32224 #. type: verbatim
32225 #: ../src/guestfs-structs.pod:111
32226 #, no-wrap
32227 msgid ""
32228 " struct guestfs_stat {\n"
32229 "   int64_t dev;\n"
32230 "   int64_t ino;\n"
32231 "   int64_t mode;\n"
32232 "   int64_t nlink;\n"
32233 "   int64_t uid;\n"
32234 "   int64_t gid;\n"
32235 "   int64_t rdev;\n"
32236 "   int64_t size;\n"
32237 "   int64_t blksize;\n"
32238 "   int64_t blocks;\n"
32239 "   int64_t atime;\n"
32240 "   int64_t mtime;\n"
32241 "   int64_t ctime;\n"
32242 " };\n"
32243 " \n"
32244 msgstr ""
32245
32246 #. type: verbatim
32247 #: ../src/guestfs-structs.pod:127
32248 #, no-wrap
32249 msgid ""
32250 " struct guestfs_stat_list {\n"
32251 "   uint32_t len; /* Number of elements in list. */\n"
32252 "   struct guestfs_stat *val; /* Elements. */\n"
32253 " };\n"
32254 " \n"
32255 msgstr ""
32256
32257 #. type: verbatim
32258 #: ../src/guestfs-structs.pod:132
32259 #, no-wrap
32260 msgid ""
32261 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32262 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32263 "\n"
32264 msgstr ""
32265
32266 #. type: verbatim
32267 #: ../src/guestfs-structs.pod:137
32268 #, no-wrap
32269 msgid ""
32270 " struct guestfs_statvfs {\n"
32271 "   int64_t bsize;\n"
32272 "   int64_t frsize;\n"
32273 "   int64_t blocks;\n"
32274 "   int64_t bfree;\n"
32275 "   int64_t bavail;\n"
32276 "   int64_t files;\n"
32277 "   int64_t ffree;\n"
32278 "   int64_t favail;\n"
32279 "   int64_t fsid;\n"
32280 "   int64_t flag;\n"
32281 "   int64_t namemax;\n"
32282 " };\n"
32283 " \n"
32284 msgstr ""
32285
32286 #. type: verbatim
32287 #: ../src/guestfs-structs.pod:151
32288 #, no-wrap
32289 msgid ""
32290 " struct guestfs_statvfs_list {\n"
32291 "   uint32_t len; /* Number of elements in list. */\n"
32292 "   struct guestfs_statvfs *val; /* Elements. */\n"
32293 " };\n"
32294 " \n"
32295 msgstr ""
32296
32297 #. type: verbatim
32298 #: ../src/guestfs-structs.pod:156
32299 #, no-wrap
32300 msgid ""
32301 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32302 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32303 "\n"
32304 msgstr ""
32305
32306 #. type: =head2
32307 #: ../src/guestfs-structs.pod:159
32308 msgid "guestfs_dirent"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-structs.pod:161
32313 #, no-wrap
32314 msgid ""
32315 " struct guestfs_dirent {\n"
32316 "   int64_t ino;\n"
32317 "   char ftyp;\n"
32318 "   char *name;\n"
32319 " };\n"
32320 " \n"
32321 msgstr ""
32322
32323 #. type: verbatim
32324 #: ../src/guestfs-structs.pod:167
32325 #, no-wrap
32326 msgid ""
32327 " struct guestfs_dirent_list {\n"
32328 "   uint32_t len; /* Number of elements in list. */\n"
32329 "   struct guestfs_dirent *val; /* Elements. */\n"
32330 " };\n"
32331 " \n"
32332 msgstr ""
32333
32334 #. type: verbatim
32335 #: ../src/guestfs-structs.pod:172
32336 #, no-wrap
32337 msgid ""
32338 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32339 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32340 "\n"
32341 msgstr ""
32342
32343 #. type: verbatim
32344 #: ../src/guestfs-structs.pod:177
32345 #, no-wrap
32346 msgid ""
32347 " struct guestfs_version {\n"
32348 "   int64_t major;\n"
32349 "   int64_t minor;\n"
32350 "   int64_t release;\n"
32351 "   char *extra;\n"
32352 " };\n"
32353 " \n"
32354 msgstr ""
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-structs.pod:184
32358 #, no-wrap
32359 msgid ""
32360 " struct guestfs_version_list {\n"
32361 "   uint32_t len; /* Number of elements in list. */\n"
32362 "   struct guestfs_version *val; /* Elements. */\n"
32363 " };\n"
32364 " \n"
32365 msgstr ""
32366
32367 #. type: verbatim
32368 #: ../src/guestfs-structs.pod:189
32369 #, no-wrap
32370 msgid ""
32371 " void guestfs_free_version (struct guestfs_free_version *);\n"
32372 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32373 "\n"
32374 msgstr ""
32375
32376 #. type: =head2
32377 #: ../src/guestfs-structs.pod:192
32378 msgid "guestfs_xattr"
32379 msgstr ""
32380
32381 #. type: verbatim
32382 #: ../src/guestfs-structs.pod:194
32383 #, no-wrap
32384 msgid ""
32385 " struct guestfs_xattr {\n"
32386 "   char *attrname;\n"
32387 "   /* The next two fields describe a byte array. */\n"
32388 "   uint32_t attrval_len;\n"
32389 "   char *attrval;\n"
32390 " };\n"
32391 " \n"
32392 msgstr ""
32393
32394 #. type: verbatim
32395 #: ../src/guestfs-structs.pod:201
32396 #, no-wrap
32397 msgid ""
32398 " struct guestfs_xattr_list {\n"
32399 "   uint32_t len; /* Number of elements in list. */\n"
32400 "   struct guestfs_xattr *val; /* Elements. */\n"
32401 " };\n"
32402 " \n"
32403 msgstr ""
32404
32405 #. type: verbatim
32406 #: ../src/guestfs-structs.pod:206
32407 #, no-wrap
32408 msgid ""
32409 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32410 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32411 "\n"
32412 msgstr ""
32413
32414 #. type: =head2
32415 #: ../src/guestfs-structs.pod:209
32416 msgid "guestfs_inotify_event"
32417 msgstr ""
32418
32419 #. type: verbatim
32420 #: ../src/guestfs-structs.pod:211
32421 #, no-wrap
32422 msgid ""
32423 " struct guestfs_inotify_event {\n"
32424 "   int64_t in_wd;\n"
32425 "   uint32_t in_mask;\n"
32426 "   uint32_t in_cookie;\n"
32427 "   char *in_name;\n"
32428 " };\n"
32429 " \n"
32430 msgstr ""
32431
32432 #. type: verbatim
32433 #: ../src/guestfs-structs.pod:218
32434 #, no-wrap
32435 msgid ""
32436 " struct guestfs_inotify_event_list {\n"
32437 "   uint32_t len; /* Number of elements in list. */\n"
32438 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32439 " };\n"
32440 " \n"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-structs.pod:223
32445 #, no-wrap
32446 msgid ""
32447 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32448 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32449 "\n"
32450 msgstr ""
32451
32452 #. type: =head2
32453 #: ../src/guestfs-structs.pod:226
32454 msgid "guestfs_partition"
32455 msgstr ""
32456
32457 #. type: verbatim
32458 #: ../src/guestfs-structs.pod:228
32459 #, no-wrap
32460 msgid ""
32461 " struct guestfs_partition {\n"
32462 "   int32_t part_num;\n"
32463 "   uint64_t part_start;\n"
32464 "   uint64_t part_end;\n"
32465 "   uint64_t part_size;\n"
32466 " };\n"
32467 " \n"
32468 msgstr ""
32469
32470 #. type: verbatim
32471 #: ../src/guestfs-structs.pod:235
32472 #, no-wrap
32473 msgid ""
32474 " struct guestfs_partition_list {\n"
32475 "   uint32_t len; /* Number of elements in list. */\n"
32476 "   struct guestfs_partition *val; /* Elements. */\n"
32477 " };\n"
32478 " \n"
32479 msgstr ""
32480
32481 #. type: verbatim
32482 #: ../src/guestfs-structs.pod:240
32483 #, no-wrap
32484 msgid ""
32485 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32486 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32487 "\n"
32488 msgstr ""
32489
32490 #. type: =head2
32491 #: ../src/guestfs-structs.pod:243
32492 msgid "guestfs_application"
32493 msgstr ""
32494
32495 #. type: verbatim
32496 #: ../src/guestfs-structs.pod:245
32497 #, no-wrap
32498 msgid ""
32499 " struct guestfs_application {\n"
32500 "   char *app_name;\n"
32501 "   char *app_display_name;\n"
32502 "   int32_t app_epoch;\n"
32503 "   char *app_version;\n"
32504 "   char *app_release;\n"
32505 "   char *app_install_path;\n"
32506 "   char *app_trans_path;\n"
32507 "   char *app_publisher;\n"
32508 "   char *app_url;\n"
32509 "   char *app_source_package;\n"
32510 "   char *app_summary;\n"
32511 "   char *app_description;\n"
32512 " };\n"
32513 " \n"
32514 msgstr ""
32515
32516 #. type: verbatim
32517 #: ../src/guestfs-structs.pod:260
32518 #, no-wrap
32519 msgid ""
32520 " struct guestfs_application_list {\n"
32521 "   uint32_t len; /* Number of elements in list. */\n"
32522 "   struct guestfs_application *val; /* Elements. */\n"
32523 " };\n"
32524 " \n"
32525 msgstr ""
32526
32527 #. type: verbatim
32528 #: ../src/guestfs-structs.pod:265
32529 #, no-wrap
32530 msgid ""
32531 " void guestfs_free_application (struct guestfs_free_application *);\n"
32532 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32533 "\n"
32534 msgstr ""
32535
32536 #. type: textblock
32537 #: ../src/guestfs.pod:5
32538 msgid "guestfs - Library for accessing and modifying virtual machine images"
32539 msgstr ""
32540 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32541 "машин"
32542
32543 #. type: verbatim
32544 #: ../src/guestfs.pod:11
32545 #, no-wrap
32546 msgid ""
32547 " guestfs_h *g = guestfs_create ();\n"
32548 " guestfs_add_drive (g, \"guest.img\");\n"
32549 " guestfs_launch (g);\n"
32550 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32551 " guestfs_touch (g, \"/hello\");\n"
32552 " guestfs_umount (g, \"/\");\n"
32553 " guestfs_close (g);\n"
32554 "\n"
32555 msgstr ""
32556 " guestfs_h *g = guestfs_create ();\n"
32557 " guestfs_add_drive (g, \"guest.img\");\n"
32558 " guestfs_launch (g);\n"
32559 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32560 " guestfs_touch (g, \"/hello\");\n"
32561 " guestfs_umount (g, \"/\");\n"
32562 " guestfs_close (g);\n"
32563 "\n"
32564
32565 #. type: textblock
32566 #: ../src/guestfs.pod:25
32567 msgid ""
32568 "Libguestfs is a library for accessing and modifying guest disk images.  "
32569 "Amongst the things this is good for: making batch configuration changes to "
32570 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32571 "between virtualization systems (see also: virt-p2v), performing partial "
32572 "backups, performing partial guest clones, cloning guests and changing "
32573 "registry/UUID/hostname info, and much else besides."
32574 msgstr ""
32575
32576 #. type: textblock
32577 #: ../src/guestfs.pod:33
32578 msgid ""
32579 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32580 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32581 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32582 "qcow2, vmdk."
32583 msgstr ""
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:38
32587 msgid ""
32588 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32589 "what filesystem is in each LV, etc.).  It can also run commands in the "
32590 "context of the guest.  Also you can access filesystems over FUSE."
32591 msgstr ""
32592
32593 #. type: textblock
32594 #: ../src/guestfs.pod:43
32595 msgid ""
32596 "Libguestfs is a library that can be linked with C and C++ management "
32597 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32598 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32599 "line."
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs.pod:48
32604 msgid ""
32605 "You don't need to be root to use libguestfs, although obviously you do need "
32606 "enough permissions to access the disk images."
32607 msgstr ""
32608
32609 #. type: textblock
32610 #: ../src/guestfs.pod:51
32611 msgid ""
32612 "Libguestfs is a large API because it can do many things.  For a gentle "
32613 "introduction, please read the L</API OVERVIEW> section next."
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../src/guestfs.pod:54
32618 msgid ""
32619 "There are also some example programs in the L<guestfs-examples(3)> manual "
32620 "page."
32621 msgstr ""
32622
32623 #. type: =head1
32624 #: ../src/guestfs.pod:57
32625 msgid "API OVERVIEW"
32626 msgstr "ОГЛЯД API"
32627
32628 #. type: textblock
32629 #: ../src/guestfs.pod:59
32630 msgid ""
32631 "This section provides a gentler overview of the libguestfs API.  We also try "
32632 "to group API calls together, where that may not be obvious from reading "
32633 "about the individual calls in the main section of this manual."
32634 msgstr ""
32635
32636 #. type: =head2
32637 #: ../src/guestfs.pod:64
32638 msgid "HANDLES"
32639 msgstr "ОБРОБНИКИ"
32640
32641 #. type: textblock
32642 #: ../src/guestfs.pod:66
32643 msgid ""
32644 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32645 "must add at least one disk image to the handle, followed by launching the "
32646 "handle, then performing whatever operations you want, and finally closing "
32647 "the handle.  By convention we use the single letter C<g> for the name of the "
32648 "handle variable, although of course you can use any name you want."
32649 msgstr ""
32650
32651 #. type: textblock
32652 #: ../src/guestfs.pod:73
32653 msgid "The general structure of all libguestfs-using programs looks like this:"
32654 msgstr ""
32655
32656 #. type: verbatim
32657 #: ../src/guestfs.pod:76
32658 #, no-wrap
32659 msgid ""
32660 " guestfs_h *g = guestfs_create ();\n"
32661 " \n"
32662 msgstr ""
32663 " guestfs_h *g = guestfs_create ();\n"
32664 " \n"
32665
32666 #. type: verbatim
32667 #: ../src/guestfs.pod:78
32668 #, no-wrap
32669 msgid ""
32670 " /* Call guestfs_add_drive additional times if there are\n"
32671 "  * multiple disk images.\n"
32672 "  */\n"
32673 " guestfs_add_drive (g, \"guest.img\");\n"
32674 " \n"
32675 msgstr ""
32676
32677 #. type: verbatim
32678 #: ../src/guestfs.pod:83
32679 #, no-wrap
32680 msgid ""
32681 " /* Most manipulation calls won't work until you've launched\n"
32682 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32683 "  * and _before_ other commands.\n"
32684 "  */\n"
32685 " guestfs_launch (g);\n"
32686 " \n"
32687 msgstr ""
32688
32689 #. type: verbatim
32690 #: ../src/guestfs.pod:89
32691 #, no-wrap
32692 msgid ""
32693 " /* Now you can examine what partitions, LVs etc are available.\n"
32694 "  */\n"
32695 " char **partitions = guestfs_list_partitions (g);\n"
32696 " char **logvols = guestfs_lvs (g);\n"
32697 " \n"
32698 msgstr ""
32699 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32700 "  */\n"
32701 " char **partitions = guestfs_list_partitions (g);\n"
32702 " char **logvols = guestfs_lvs (g);\n"
32703 " \n"
32704
32705 #. type: verbatim
32706 #: ../src/guestfs.pod:94
32707 #, no-wrap
32708 msgid ""
32709 " /* To access a filesystem in the image, you must mount it.\n"
32710 "  */\n"
32711 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32712 " \n"
32713 msgstr ""
32714 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32715 "  */\n"
32716 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32717 " \n"
32718
32719 #. type: verbatim
32720 #: ../src/guestfs.pod:98
32721 #, no-wrap
32722 msgid ""
32723 " /* Now you can perform filesystem actions on the guest\n"
32724 "  * disk image.\n"
32725 "  */\n"
32726 " guestfs_touch (g, \"/hello\");\n"
32727 " \n"
32728 msgstr ""
32729
32730 #. type: verbatim
32731 #: ../src/guestfs.pod:103
32732 #, no-wrap
32733 msgid ""
32734 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32735 "  * it is done automatically when you close the handle.  See\n"
32736 "  * discussion of autosync in this page.\n"
32737 "  */\n"
32738 " guestfs_sync (g);\n"
32739 " \n"
32740 msgstr ""
32741
32742 #. type: verbatim
32743 #: ../src/guestfs.pod:109
32744 #, no-wrap
32745 msgid ""
32746 " /* Close the handle 'g'. */\n"
32747 " guestfs_close (g);\n"
32748 "\n"
32749 msgstr ""
32750 " /* Закрити дескриптор 'g'. */\n"
32751 " guestfs_close (g);\n"
32752 "\n"
32753
32754 #. type: textblock
32755 #: ../src/guestfs.pod:112
32756 msgid ""
32757 "The code above doesn't include any error checking.  In real code you should "
32758 "check return values carefully for errors.  In general all functions that "
32759 "return integers return C<-1> on error, and all functions that return "
32760 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32761 "how to handle errors, and consult the documentation for each function call "
32762 "below to see precisely how they return error indications.  See L<guestfs-"
32763 "examples(3)> for fully worked examples."
32764 msgstr ""
32765
32766 #. type: =head2
32767 #: ../src/guestfs.pod:121
32768 msgid "DISK IMAGES"
32769 msgstr "ОБРАЗИ ДИСКІВ"
32770
32771 #. type: textblock
32772 #: ../src/guestfs.pod:123
32773 msgid ""
32774 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32775 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32776 "actual block device, or simply an empty file of zeroes that you have created "
32777 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32778 "of these."
32779 msgstr ""
32780
32781 #. type: textblock
32782 #: ../src/guestfs.pod:129
32783 msgid ""
32784 "The call you should use in modern code for adding drives is L</"
32785 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32786 "specifying that the format is raw, do:"
32787 msgstr ""
32788
32789 #. type: verbatim
32790 #: ../src/guestfs.pod:133
32791 #, no-wrap
32792 msgid ""
32793 " guestfs_add_drive_opts (g, filename,\n"
32794 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32795 "                         -1);\n"
32796 "\n"
32797 msgstr ""
32798 " guestfs_add_drive_opts (g, filename,\n"
32799 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32800 "                         -1);\n"
32801 "\n"
32802
32803 #. type: textblock
32804 #: ../src/guestfs.pod:137
32805 msgid "You can add a disk read-only using:"
32806 msgstr "Ви можете додати диск у режимі лише читання:"
32807
32808 #. type: verbatim
32809 #: ../src/guestfs.pod:139
32810 #, no-wrap
32811 msgid ""
32812 " guestfs_add_drive_opts (g, filename,\n"
32813 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32814 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32815 "                         -1);\n"
32816 "\n"
32817 msgstr ""
32818 " guestfs_add_drive_opts (g, filename,\n"
32819 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32820 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32821 "                         -1);\n"
32822 "\n"
32823
32824 #. type: textblock
32825 #: ../src/guestfs.pod:144
32826 msgid ""
32827 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32828 "libguestfs won't modify the file."
32829 msgstr ""
32830
32831 #. type: textblock
32832 #: ../src/guestfs.pod:147
32833 msgid ""
32834 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32835 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32836 "corruption, but adding it read-only is safe."
32837 msgstr ""
32838
32839 #. type: textblock
32840 #: ../src/guestfs.pod:151
32841 msgid ""
32842 "You must add at least one disk image, and you may add multiple disk images.  "
32843 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32844 "first one you added), C</dev/sdb> (for the second one you added), etc."
32845 msgstr ""
32846
32847 #. type: textblock
32848 #: ../src/guestfs.pod:156
32849 msgid ""
32850 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32851 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32852 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32853 msgstr ""
32854
32855 #. type: =head2
32856 #: ../src/guestfs.pod:161
32857 msgid "MOUNTING"
32858 msgstr "МОНТУВАННЯ"
32859
32860 #. type: textblock
32861 #: ../src/guestfs.pod:163
32862 msgid ""
32863 "Before you can read or write files, create directories and so on in a disk "
32864 "image that contains filesystems, you have to mount those filesystems using "
32865 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32866 "a disk image contains (for example) one partition with a filesystem on that "
32867 "partition, then you can mount it directly:"
32868 msgstr ""
32869
32870 #. type: verbatim
32871 #: ../src/guestfs.pod:170
32872 #, no-wrap
32873 msgid ""
32874 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32875 "\n"
32876 msgstr ""
32877 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32878 "\n"
32879
32880 #. type: textblock
32881 #: ../src/guestfs.pod:172
32882 msgid ""
32883 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32884 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32885 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32886 "that these are libguestfs virtual devices, and are nothing to do with host "
32887 "devices."
32888 msgstr ""
32889
32890 #. type: textblock
32891 #: ../src/guestfs.pod:178
32892 msgid ""
32893 "If you are given a disk image and you don't know what it contains then you "
32894 "have to find out.  Libguestfs can do that too: use L</"
32895 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32896 "LVs, and either try mounting each to see what is mountable, or else examine "
32897 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32898 "filesystems, use L</guestfs_list_filesystems>."
32899 msgstr ""
32900
32901 #. type: textblock
32902 #: ../src/guestfs.pod:186
32903 msgid ""
32904 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32905 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32906 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32907 msgstr ""
32908
32909 #. type: textblock
32910 #: ../src/guestfs.pod:191
32911 msgid ""
32912 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32913 "several other variations of the C<guestfs_mount_*> call."
32914 msgstr ""
32915
32916 #. type: =head2
32917 #: ../src/guestfs.pod:194
32918 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32919 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32920
32921 #. type: textblock
32922 #: ../src/guestfs.pod:196
32923 msgid ""
32924 "The majority of the libguestfs API consists of fairly low-level calls for "
32925 "accessing and modifying the files, directories, symlinks etc on mounted "
32926 "filesystems.  There are over a hundred such calls which you can find listed "
32927 "in detail below in this man page, and we don't even pretend to cover them "
32928 "all in this overview."
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs.pod:202
32933 msgid ""
32934 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32935 "mount point."
32936 msgstr ""
32937 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32938 "точкою монтування."
32939
32940 #. type: textblock
32941 #: ../src/guestfs.pod:205
32942 msgid ""
32943 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32944 "the file called C<\"etc/passwd\"> then you could do:"
32945 msgstr ""
32946 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32947 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32948 "таким кодом:"
32949
32950 #. type: verbatim
32951 #: ../src/guestfs.pod:208
32952 #, no-wrap
32953 msgid ""
32954 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32955 "\n"
32956 msgstr ""
32957 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32958 "\n"
32959
32960 #. type: textblock
32961 #: ../src/guestfs.pod:210
32962 msgid ""
32963 "This would return C<data> as a newly allocated buffer containing the full "
32964 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32965 "or C<NULL> if there was an error."
32966 msgstr ""
32967
32968 #. type: textblock
32969 #: ../src/guestfs.pod:214
32970 msgid ""
32971 "As another example, to create a top-level directory on that filesystem "
32972 "called C<\"var\"> you would do:"
32973 msgstr ""
32974
32975 #. type: verbatim
32976 #: ../src/guestfs.pod:217
32977 #, no-wrap
32978 msgid ""
32979 " guestfs_mkdir (g, \"/var\");\n"
32980 "\n"
32981 msgstr ""
32982 " guestfs_mkdir (g, \"/var\");\n"
32983 "\n"
32984
32985 #. type: textblock
32986 #: ../src/guestfs.pod:219
32987 msgid "To create a symlink you could do:"
32988 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32989
32990 #. type: verbatim
32991 #: ../src/guestfs.pod:221
32992 #, no-wrap
32993 msgid ""
32994 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32995 "               \"/etc/rc3.d/S30portmap\");\n"
32996 "\n"
32997 msgstr ""
32998 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32999 "               \"/etc/rc3.d/S30portmap\");\n"
33000 "\n"
33001
33002 #. type: textblock
33003 #: ../src/guestfs.pod:224
33004 msgid ""
33005 "Libguestfs will reject attempts to use relative paths and there is no "
33006 "concept of a current working directory."
33007 msgstr ""
33008
33009 #. type: textblock
33010 #: ../src/guestfs.pod:227
33011 msgid ""
33012 "Libguestfs can return errors in many situations: for example if the "
33013 "filesystem isn't writable, or if a file or directory that you requested "
33014 "doesn't exist.  If you are using the C API (documented here)  you have to "
33015 "check for those error conditions after each call.  (Other language bindings "
33016 "turn these errors into exceptions)."
33017 msgstr ""
33018
33019 #. type: textblock
33020 #: ../src/guestfs.pod:233
33021 msgid ""
33022 "File writes are affected by the per-handle umask, set by calling L</"
33023 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33024 msgstr ""
33025
33026 #. type: =head2
33027 #: ../src/guestfs.pod:236
33028 msgid "PARTITIONING"
33029 msgstr "ПОДІЛ НА РОЗДІЛИ"
33030
33031 #. type: textblock
33032 #: ../src/guestfs.pod:238
33033 msgid ""
33034 "Libguestfs contains API calls to read, create and modify partition tables on "
33035 "disk images."
33036 msgstr ""
33037
33038 #. type: textblock
33039 #: ../src/guestfs.pod:241
33040 msgid ""
33041 "In the common case where you want to create a single partition covering the "
33042 "whole disk, you should use the L</guestfs_part_disk> call:"
33043 msgstr ""
33044
33045 #. type: verbatim
33046 #: ../src/guestfs.pod:245
33047 #, no-wrap
33048 msgid ""
33049 " const char *parttype = \"mbr\";\n"
33050 " if (disk_is_larger_than_2TB)\n"
33051 "   parttype = \"gpt\";\n"
33052 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33053 "\n"
33054 msgstr ""
33055 " const char *parttype = \"mbr\";\n"
33056 " if (disk_is_larger_than_2TB)\n"
33057 "   parttype = \"gpt\";\n"
33058 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33059 "\n"
33060
33061 #. type: textblock
33062 #: ../src/guestfs.pod:250
33063 msgid ""
33064 "Obviously this effectively wipes anything that was on that disk image before."
33065 msgstr ""
33066
33067 #. type: =head2
33068 #: ../src/guestfs.pod:253
33069 msgid "LVM2"
33070 msgstr "LVM2"
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:255
33074 msgid ""
33075 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33076 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33077 "you familiarize yourself with the concepts of physical volumes, volume "
33078 "groups and logical volumes."
33079 msgstr ""
33080
33081 #. type: textblock
33082 #: ../src/guestfs.pod:260
33083 msgid ""
33084 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33085 "tldp.org/HOWTO/LVM-HOWTO/>."
33086 msgstr ""
33087
33088 #. type: =head2
33089 #: ../src/guestfs.pod:263
33090 msgid "DOWNLOADING"
33091 msgstr "ОТРИМАННЯ ДАНИХ"
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:265
33095 msgid ""
33096 "Use L</guestfs_cat> to download small, text only files.  This call is "
33097 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33098 "NUL (C<\\0>) characters.  However the API is very simple to use."
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs.pod:269
33103 msgid ""
33104 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33105 "bit data, since it returns a (pointer, size) pair.  However it is still "
33106 "limited to \"small\" files, less than 2 MB."
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:273
33111 msgid ""
33112 "L</guestfs_download> can be used to download any file, with no limits on "
33113 "content or size (even files larger than 4 GB)."
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs.pod:276
33118 msgid ""
33119 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33120 msgstr ""
33121
33122 #. type: =head2
33123 #: ../src/guestfs.pod:279
33124 msgid "UPLOADING"
33125 msgstr "ВИВАНТАЖЕННЯ"
33126
33127 #. type: textblock
33128 #: ../src/guestfs.pod:281
33129 msgid ""
33130 "It's often the case that you want to write a file or files to the disk image."
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs.pod:284
33135 msgid ""
33136 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33137 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33138 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33139 "of other functions for creating test files, for example L</guestfs_fill> and "
33140 "L</guestfs_fill_pattern>."
33141 msgstr ""
33142
33143 #. type: textblock
33144 #: ../src/guestfs.pod:290
33145 msgid ""
33146 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33147 "file content or size (even files larger than 4 GB)."
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:293
33152 msgid ""
33153 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33154 msgstr ""
33155
33156 #. type: textblock
33157 #: ../src/guestfs.pod:295
33158 msgid ""
33159 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33160 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33161 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33162 "in a predictable way (eg. adding it last after all other drives) then you "
33163 "can get the device name from L</guestfs_list_devices> and mount it directly "
33164 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33165 "portable between kernel versions, and they don't support labels or UUIDs.  "
33166 "If you want to pre-build an image or you need to mount it using a label or "
33167 "UUID, use an ISO image instead."
33168 msgstr ""
33169
33170 #. type: =head2
33171 #: ../src/guestfs.pod:306
33172 msgid "COPYING"
33173 msgstr "КОПІЮВАННЯ"
33174
33175 #. type: textblock
33176 #: ../src/guestfs.pod:308
33177 msgid ""
33178 "There are various different commands for copying between files and devices "
33179 "and in and out of the guest filesystem.  These are summarised in the table "
33180 "below."
33181 msgstr ""
33182
33183 #. type: =item
33184 #: ../src/guestfs.pod:314
33185 msgid "B<file> to B<file>"
33186 msgstr "B<файл> у B<файл>"
33187
33188 #. type: textblock
33189 #: ../src/guestfs.pod:316
33190 msgid ""
33191 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33192 "directories recursively."
33193 msgstr ""
33194
33195 #. type: =item
33196 #: ../src/guestfs.pod:319
33197 msgid "B<file or device> to B<file or device>"
33198 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33199
33200 #. type: textblock
33201 #: ../src/guestfs.pod:321
33202 msgid ""
33203 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33204 "devices in the guest."
33205 msgstr ""
33206
33207 #. type: textblock
33208 #: ../src/guestfs.pod:324
33209 msgid "Example: duplicate the contents of an LV:"
33210 msgstr ""
33211
33212 #. type: verbatim
33213 #: ../src/guestfs.pod:326
33214 #, no-wrap
33215 msgid ""
33216 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33217 "\n"
33218 msgstr ""
33219 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33220 "\n"
33221
33222 #. type: textblock
33223 #: ../src/guestfs.pod:328
33224 msgid ""
33225 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33226 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33227 "guestfs_copy_size>."
33228 msgstr ""
33229
33230 #. type: =item
33231 #: ../src/guestfs.pod:332
33232 msgid "B<file on the host> to B<file or device>"
33233 msgstr ""
33234
33235 #. type: textblock
33236 #: ../src/guestfs.pod:334
33237 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33238 msgstr ""
33239
33240 #. type: =item
33241 #: ../src/guestfs.pod:336
33242 msgid "B<file or device> to B<file on the host>"
33243 msgstr ""
33244
33245 #. type: textblock
33246 #: ../src/guestfs.pod:338
33247 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33248 msgstr ""
33249
33250 #. type: =head2
33251 #: ../src/guestfs.pod:342
33252 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:344
33257 msgid ""
33258 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33259 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33260 "appears you can only upload and download to files.  However many Un*x-like "
33261 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33262 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33263 "and arbitrary file descriptor N."
33264 msgstr ""
33265
33266 #. type: textblock
33267 #: ../src/guestfs.pod:352
33268 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33269 msgstr ""
33270
33271 #. type: verbatim
33272 #: ../src/guestfs.pod:355
33273 #, no-wrap
33274 msgid ""
33275 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33276 "\n"
33277 msgstr ""
33278 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33279 "\n"
33280
33281 #. type: textblock
33282 #: ../src/guestfs.pod:357
33283 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs.pod:359
33288 #, no-wrap
33289 msgid ""
33290 " char devfd[64];\n"
33291 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33292 " guestfs_tar_out (g, \"/\", devfd);\n"
33293 "\n"
33294 msgstr ""
33295 " char devfd[64];\n"
33296 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33297 " guestfs_tar_out (g, \"/\", devfd);\n"
33298 "\n"
33299
33300 #. type: =head2
33301 #: ../src/guestfs.pod:363
33302 msgid "LISTING FILES"
33303 msgstr "СПИСКИ ФАЙЛІВ"
33304
33305 #. type: textblock
33306 #: ../src/guestfs.pod:365
33307 msgid ""
33308 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33309 "L<guestfish(1)>-equivalent command C<ll>)."
33310 msgstr ""
33311
33312 #. type: textblock
33313 #: ../src/guestfs.pod:368
33314 msgid ""
33315 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33316 "programs, as a flat list of strings."
33317 msgstr ""
33318
33319 #. type: textblock
33320 #: ../src/guestfs.pod:371
33321 msgid ""
33322 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33323 "directory, plus additional information about each one.  It is more "
33324 "equivalent to using the L<readdir(3)> call on a local filesystem."
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs.pod:375
33329 msgid ""
33330 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33331 msgstr ""
33332
33333 #. type: =head2
33334 #: ../src/guestfs.pod:378
33335 msgid "RUNNING COMMANDS"
33336 msgstr "ВИКОНАННЯ КОМАНД"
33337
33338 #. type: textblock
33339 #: ../src/guestfs.pod:380
33340 msgid ""
33341 "Although libguestfs is primarily an API for manipulating files inside guest "
33342 "images, we also provide some limited facilities for running commands inside "
33343 "guests."
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs.pod:384
33348 msgid "There are many limitations to this:"
33349 msgstr ""
33350
33351 #. type: textblock
33352 #: ../src/guestfs.pod:390
33353 msgid ""
33354 "The kernel version that the command runs under will be different from what "
33355 "it expects."
33356 msgstr ""
33357
33358 #. type: textblock
33359 #: ../src/guestfs.pod:395
33360 msgid ""
33361 "If the command needs to communicate with daemons, then most likely they "
33362 "won't be running."
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs.pod:400
33367 msgid "The command will be running in limited memory."
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs.pod:404
33372 msgid ""
33373 "The network may not be available unless you enable it (see L</"
33374 "guestfs_set_network>)."
33375 msgstr ""
33376
33377 #. type: textblock
33378 #: ../src/guestfs.pod:409
33379 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs.pod:413
33384 msgid ""
33385 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33386 msgstr ""
33387
33388 #. type: textblock
33389 #: ../src/guestfs.pod:418
33390 msgid ""
33391 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33392 "See L</SELINUX> in this manpage."
33393 msgstr ""
33394
33395 #. type: textblock
33396 #: ../src/guestfs.pod:423
33397 msgid ""
33398 "I<Security:> It is not safe to run commands from untrusted, possibly "
33399 "malicious guests.  These commands may attempt to exploit your program by "
33400 "sending unexpected output.  They could also try to exploit the Linux kernel "
33401 "or qemu provided by the libguestfs appliance.  They could use the network "
33402 "provided by the libguestfs appliance to bypass ordinary network partitions "
33403 "and firewalls.  They could use the elevated privileges or different SELinux "
33404 "context of your program to their advantage."
33405 msgstr ""
33406
33407 #. type: textblock
33408 #: ../src/guestfs.pod:432
33409 msgid ""
33410 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33411 "(a script which runs when the guest next boots normally), and to have this "
33412 "script run the commands you want in the normal context of the running guest, "
33413 "network security and so on.  For information about other security issues, "
33414 "see L</SECURITY>."
33415 msgstr ""
33416
33417 #. type: textblock
33418 #: ../src/guestfs.pod:440
33419 msgid ""
33420 "The two main API calls to run commands are L</guestfs_command> and L</"
33421 "guestfs_sh> (there are also variations)."
33422 msgstr ""
33423
33424 #. type: textblock
33425 #: ../src/guestfs.pod:443
33426 msgid ""
33427 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33428 "shell globs, redirections, etc will work."
33429 msgstr ""
33430
33431 #. type: =head2
33432 #: ../src/guestfs.pod:446
33433 msgid "CONFIGURATION FILES"
33434 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33435
33436 #. type: textblock
33437 #: ../src/guestfs.pod:448
33438 msgid ""
33439 "To read and write configuration files in Linux guest filesystems, we "
33440 "strongly recommend using Augeas.  For example, Augeas understands how to "
33441 "read and write, say, a Linux shadow password file or X.org configuration "
33442 "file, and so avoids you having to write that code."
33443 msgstr ""
33444
33445 #. type: textblock
33446 #: ../src/guestfs.pod:453
33447 msgid ""
33448 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33449 "document Augeas itself here because there is excellent documentation on the "
33450 "L<http://augeas.net/> website."
33451 msgstr ""
33452
33453 #. type: textblock
33454 #: ../src/guestfs.pod:457
33455 msgid ""
33456 "If you don't want to use Augeas (you fool!) then try calling L</"
33457 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33458 "over."
33459 msgstr ""
33460
33461 #. type: =head2
33462 #: ../src/guestfs.pod:461
33463 msgid "SELINUX"
33464 msgstr "SELINUX"
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:463
33468 msgid ""
33469 "We support SELinux guests.  To ensure that labeling happens correctly in "
33470 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33471 msgstr ""
33472
33473 #. type: textblock
33474 #: ../src/guestfs.pod:471
33475 msgid "Before launching, do:"
33476 msgstr ""
33477
33478 #. type: verbatim
33479 #: ../src/guestfs.pod:473
33480 #, no-wrap
33481 msgid ""
33482 " guestfs_set_selinux (g, 1);\n"
33483 "\n"
33484 msgstr ""
33485 " guestfs_set_selinux (g, 1);\n"
33486 "\n"
33487
33488 #. type: textblock
33489 #: ../src/guestfs.pod:477
33490 msgid ""
33491 "After mounting the guest's filesystem(s), load the policy.  This is best "
33492 "done by running the L<load_policy(8)> command in the guest itself:"
33493 msgstr ""
33494
33495 #. type: verbatim
33496 #: ../src/guestfs.pod:481
33497 #, no-wrap
33498 msgid ""
33499 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33500 "\n"
33501 msgstr ""
33502 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33503 "\n"
33504
33505 #. type: textblock
33506 #: ../src/guestfs.pod:483
33507 msgid ""
33508 "(Older versions of C<load_policy> require you to specify the name of the "
33509 "policy file)."
33510 msgstr ""
33511
33512 #. type: textblock
33513 #: ../src/guestfs.pod:488
33514 msgid ""
33515 "Optionally, set the security context for the API.  The correct security "
33516 "context to use can only be known by inspecting the guest.  As an example:"
33517 msgstr ""
33518
33519 #. type: verbatim
33520 #: ../src/guestfs.pod:492
33521 #, no-wrap
33522 msgid ""
33523 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33524 "\n"
33525 msgstr ""
33526 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33527 "\n"
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:496
33531 msgid "This will work for running commands and editing existing files."
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs.pod:498
33536 msgid ""
33537 "When new files are created, you may need to label them explicitly, for "
33538 "example by running the external command C<restorecon pathname>."
33539 msgstr ""
33540
33541 #. type: =head2
33542 #: ../src/guestfs.pod:502
33543 msgid "UMASK"
33544 msgstr "UMASK"
33545
33546 #. type: textblock
33547 #: ../src/guestfs.pod:504
33548 msgid ""
33549 "Certain calls are affected by the current file mode creation mask (the "
33550 "\"umask\").  In particular ones which create files or directories, such as "
33551 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33552 "either the default mode that the file is created with or modifies the mode "
33553 "that you supply."
33554 msgstr ""
33555
33556 #. type: textblock
33557 #: ../src/guestfs.pod:510
33558 msgid ""
33559 "The default umask is C<022>, so files are created with modes such as C<0644> "
33560 "and directories with C<0755>."
33561 msgstr ""
33562
33563 #. type: textblock
33564 #: ../src/guestfs.pod:513
33565 msgid ""
33566 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33567 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33568 "guestfs_chmod> after creating each file or directory."
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs.pod:517
33573 msgid "For more information about umask, see L<umask(2)>."
33574 msgstr ""
33575
33576 #. type: textblock
33577 #: ../src/guestfs.pod:521
33578 msgid ""
33579 "Libguestfs allows you to access Linux guests which have been encrypted using "
33580 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33581 "standard.  This includes nearly all whole disk encryption systems used by "
33582 "modern Linux guests."
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs.pod:527
33587 msgid ""
33588 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33589 "returns the string C<crypto_LUKS>)."
33590 msgstr ""
33591
33592 #. type: textblock
33593 #: ../src/guestfs.pod:530
33594 msgid ""
33595 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33596 "will require the passphrase!"
33597 msgstr ""
33598
33599 #. type: textblock
33600 #: ../src/guestfs.pod:533
33601 msgid ""
33602 "Opening a LUKS device creates a new device mapper device called C</dev/"
33603 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33604 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33605 "from and encrypted to the underlying block device respectively."
33606 msgstr ""
33607
33608 #. type: textblock
33609 #: ../src/guestfs.pod:539
33610 msgid ""
33611 "LVM volume groups on the device can be made visible by calling L</"
33612 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33613 "(s) can now be mounted in the usual way."
33614 msgstr ""
33615
33616 #. type: textblock
33617 #: ../src/guestfs.pod:543
33618 msgid ""
33619 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33620 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33621 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33622 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33623 "underlying encrypted block device)."
33624 msgstr ""
33625
33626 #. type: =head2
33627 #: ../src/guestfs.pod:550
33628 msgid "INSPECTION"
33629 msgstr "ПЕРЕВІРКА"
33630
33631 #. type: textblock
33632 #: ../src/guestfs.pod:552
33633 msgid ""
33634 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33635 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33636 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33637 "version 1.5.3 the most frequently used part of this library has been "
33638 "rewritten in C and moved into the core code)."
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:559
33643 msgid ""
33644 "Add all disks belonging to the unknown virtual machine and call L</"
33645 "guestfs_launch> in the usual way."
33646 msgstr ""
33647
33648 #. type: textblock
33649 #: ../src/guestfs.pod:562
33650 msgid ""
33651 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33652 "and certain heuristics, and returns a list of operating systems that were "
33653 "found.  An empty list means none were found.  A single element is the root "
33654 "filesystem of the operating system.  For dual- or multi-boot guests, "
33655 "multiple roots can be returned, each one corresponding to a separate "
33656 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33657 "world of virtualization, but since this scenario can happen, we have built "
33658 "libguestfs to deal with it.)"
33659 msgstr ""
33660
33661 #. type: textblock
33662 #: ../src/guestfs.pod:571
33663 msgid ""
33664 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33665 "to get additional details about that operating system.  For example, call L</"
33666 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33667 "Windows and Linux-based operating systems respectively."
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:577
33672 msgid ""
33673 "Un*x-like and Linux-based operating systems usually consist of several "
33674 "filesystems which are mounted at boot time (for example, a separate boot "
33675 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33676 "filesystems correspond to mount points.  Call "
33677 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33678 "hash table like this example:"
33679 msgstr ""
33680
33681 #. type: verbatim
33682 #: ../src/guestfs.pod:584
33683 #, no-wrap
33684 msgid ""
33685 " /boot => /dev/sda1\n"
33686 " /     => /dev/vg_guest/lv_root\n"
33687 " /usr  => /dev/vg_guest/lv_usr\n"
33688 "\n"
33689 msgstr ""
33690 " /boot => /dev/sda1\n"
33691 " /     => /dev/vg_guest/lv_root\n"
33692 " /usr  => /dev/vg_guest/lv_usr\n"
33693 "\n"
33694
33695 #. type: textblock
33696 #: ../src/guestfs.pod:588
33697 msgid ""
33698 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33699 "filesystems as suggested."
33700 msgstr ""
33701
33702 #. type: textblock
33703 #: ../src/guestfs.pod:591
33704 msgid ""
33705 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33706 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs.pod:595
33711 msgid ""
33712 "Inspection currently only works for some common operating systems.  "
33713 "Contributors are welcome to send patches for other operating systems that we "
33714 "currently cannot detect."
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs.pod:599
33719 msgid ""
33720 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33721 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33722 "encrypted devices."
33723 msgstr ""
33724
33725 #. type: textblock
33726 #: ../src/guestfs.pod:603
33727 msgid ""
33728 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33729 "inspection and caches the results in the guest handle.  Subsequent calls to "
33730 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33731 "read the disks.  If you change the content of the guest disks, you can redo "
33732 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33733 "guestfs_inspect_list_applications> works a little differently from the other "
33734 "calls and does read the disks.  See documentation for that function for "
33735 "details)."
33736 msgstr ""
33737
33738 #. type: =head3
33739 #: ../src/guestfs.pod:612
33740 msgid "INSPECTING INSTALL DISKS"
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs.pod:614
33745 msgid ""
33746 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33747 "CDs and more."
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../src/guestfs.pod:617
33752 msgid ""
33753 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33754 "system, which currently can be C<installed> (a regular operating system) or "
33755 "C<installer> (some sort of install disk)."
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs.pod:621
33760 msgid ""
33761 "Further information is available about the operating system that can be "
33762 "installed using the regular inspection APIs like L</"
33763 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33764 msgstr ""
33765
33766 #. type: textblock
33767 #: ../src/guestfs.pod:626
33768 msgid ""
33769 "Some additional information specific to installer disks is also available "
33770 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33771 "guestfs_inspect_is_multipart> calls."
33772 msgstr ""
33773
33774 #. type: =head2
33775 #: ../src/guestfs.pod:631
33776 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33777 msgstr ""
33778
33779 #. type: textblock
33780 #: ../src/guestfs.pod:633
33781 msgid ""
33782 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33783 "ntfs-3g.org/> driver."
33784 msgstr ""
33785
33786 #. type: =head3
33787 #: ../src/guestfs.pod:636
33788 msgid "DRIVE LETTERS AND PATHS"
33789 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33790
33791 #. type: textblock
33792 #: ../src/guestfs.pod:638
33793 msgid ""
33794 "DOS and Windows still use drive letters, and the filesystems are always "
33795 "treated as case insensitive by Windows itself, and therefore you might find "
33796 "a Windows configuration file referring to a path like C<c:\\windows"
33797 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33798 "might be referred to as C</WINDOWS/System32>."
33799 msgstr ""
33800
33801 #. type: textblock
33802 #: ../src/guestfs.pod:644
33803 msgid ""
33804 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33805 "L</guestfs_inspect_get_drive_mappings>)"
33806 msgstr ""
33807
33808 #. type: textblock
33809 #: ../src/guestfs.pod:647
33810 msgid ""
33811 "Dealing with separator characters (backslash vs forward slash) is outside "
33812 "the scope of libguestfs, but usually a simple character replacement will "
33813 "work."
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:651
33818 msgid ""
33819 "To resolve the case insensitivity of paths, call L</"
33820 "guestfs_case_sensitive_path>."
33821 msgstr ""
33822
33823 #. type: =head3
33824 #: ../src/guestfs.pod:654
33825 msgid "ACCESSING THE WINDOWS REGISTRY"
33826 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33827
33828 #. type: textblock
33829 #: ../src/guestfs.pod:656
33830 msgid ""
33831 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33832 "files, through the library C<hivex> which is part of the libguestfs project "
33833 "although ships as a separate tarball.  You have to locate and download the "
33834 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33835 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33836 "reg(1)> for more help on this issue."
33837 msgstr ""
33838
33839 #. type: =head3
33840 #: ../src/guestfs.pod:664
33841 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33842 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33843
33844 #. type: textblock
33845 #: ../src/guestfs.pod:666
33846 msgid ""
33847 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33848 "provide something which looks like a Linux symlink.  The way it tries to do "
33849 "the rewriting is described here:"
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs.pod:670
33854 msgid ""
33855 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33856 "symbolic-links/>"
33857 msgstr ""
33858 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33859 "symbolic-links/>"
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:672
33863 msgid ""
33864 "The essential problem is that ntfs-3g simply does not have enough "
33865 "information to do a correct job.  NTFS links can contain drive letters and "
33866 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33867 "It is almost certainly the case that libguestfs callers should ignore what "
33868 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33869 msgstr ""
33870
33871 #. type: textblock
33872 #: ../src/guestfs.pod:679
33873 msgid ""
33874 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33875 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33876 "attribute, and read the raw reparse data from that (you can find the format "
33877 "documented in various places around the web)."
33878 msgstr ""
33879
33880 #. type: =head3
33881 #: ../src/guestfs.pod:684
33882 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:686
33887 msgid ""
33888 "There are other useful extended attributes that can be read from ntfs-3g "
33889 "filesystems (using L</guestfs_getxattr>).  See:"
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs.pod:689
33894 msgid ""
33895 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33896 msgstr ""
33897 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33898
33899 #. type: =head2
33900 #: ../src/guestfs.pod:691
33901 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33902 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33903
33904 #. type: textblock
33905 #: ../src/guestfs.pod:693
33906 msgid ""
33907 "Although we don't want to discourage you from using the C API, we will "
33908 "mention here that the same API is also available in other languages."
33909 msgstr ""
33910
33911 #. type: textblock
33912 #: ../src/guestfs.pod:696
33913 msgid ""
33914 "The API is broadly identical in all supported languages.  This means that "
33915 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33916 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33917 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33918 "each language."
33919 msgstr ""
33920
33921 #. type: textblock
33922 #: ../src/guestfs.pod:702
33923 msgid ""
33924 "Error messages are automatically transformed into exceptions if the language "
33925 "supports it."
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../src/guestfs.pod:705
33930 msgid ""
33931 "We don't try to \"object orientify\" parts of the API in OO languages, "
33932 "although contributors are welcome to write higher level APIs above what we "
33933 "provide in their favourite languages if they wish."
33934 msgstr ""
33935
33936 #. type: =item
33937 #: ../src/guestfs.pod:711
33938 msgid "B<C++>"
33939 msgstr "B<C++>"
33940
33941 #. type: textblock
33942 #: ../src/guestfs.pod:713
33943 msgid ""
33944 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33945 "identical to the C API.  C++ classes and exceptions are not used."
33946 msgstr ""
33947
33948 #. type: =item
33949 #: ../src/guestfs.pod:717
33950 msgid "B<C#>"
33951 msgstr "B<C#>"
33952
33953 #. type: textblock
33954 #: ../src/guestfs.pod:719
33955 msgid ""
33956 "The C# bindings are highly experimental.  Please read the warnings at the "
33957 "top of C<csharp/Libguestfs.cs>."
33958 msgstr ""
33959
33960 #. type: =item
33961 #: ../src/guestfs.pod:722
33962 msgid "B<Haskell>"
33963 msgstr "B<Haskell>"
33964
33965 #. type: textblock
33966 #: ../src/guestfs.pod:724
33967 msgid ""
33968 "This is the only language binding that is working but incomplete.  Only "
33969 "calls which return simple integers have been bound in Haskell, and we are "
33970 "looking for help to complete this binding."
33971 msgstr ""
33972
33973 #. type: =item
33974 #: ../src/guestfs.pod:728
33975 msgid "B<Java>"
33976 msgstr "B<Java>"
33977
33978 #. type: textblock
33979 #: ../src/guestfs.pod:730
33980 msgid ""
33981 "Full documentation is contained in the Javadoc which is distributed with "
33982 "libguestfs.  For examples, see L<guestfs-java(3)>."
33983 msgstr ""
33984
33985 #. type: =item
33986 #: ../src/guestfs.pod:733
33987 msgid "B<OCaml>"
33988 msgstr "B<OCaml>"
33989
33990 #. type: textblock
33991 #: ../src/guestfs.pod:735
33992 msgid "See L<guestfs-ocaml(3)>."
33993 msgstr "Див. L<guestfs-ocaml(3)>."
33994
33995 #. type: =item
33996 #: ../src/guestfs.pod:737
33997 msgid "B<Perl>"
33998 msgstr "B<Perl>"
33999
34000 #. type: textblock
34001 #: ../src/guestfs.pod:739
34002 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34003 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34004
34005 #. type: =item
34006 #: ../src/guestfs.pod:741
34007 msgid "B<PHP>"
34008 msgstr "B<PHP>"
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:743
34012 msgid ""
34013 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34014 "the php-libguestfs package for your distribution."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:746
34019 msgid "The PHP binding only works correctly on 64 bit machines."
34020 msgstr ""
34021
34022 #. type: =item
34023 #: ../src/guestfs.pod:748
34024 msgid "B<Python>"
34025 msgstr "B<Python>"
34026
34027 #. type: textblock
34028 #: ../src/guestfs.pod:750
34029 msgid "See L<guestfs-python(3)>."
34030 msgstr "Див. L<guestfs-python(3)>."
34031
34032 #. type: =item
34033 #: ../src/guestfs.pod:752
34034 msgid "B<Ruby>"
34035 msgstr "B<Ruby>"
34036
34037 #. type: textblock
34038 #: ../src/guestfs.pod:754
34039 msgid "See L<guestfs-ruby(3)>."
34040 msgstr "Див. L<guestfs-ruby(3)>."
34041
34042 #. type: =item
34043 #: ../src/guestfs.pod:756
34044 msgid "B<shell scripts>"
34045 msgstr "B<скрипти оболонки>"
34046
34047 #. type: textblock
34048 #: ../src/guestfs.pod:758
34049 msgid "See L<guestfish(1)>."
34050 msgstr "Див. L<guestfish(1)>."
34051
34052 #. type: =head2
34053 #: ../src/guestfs.pod:762
34054 msgid "LIBGUESTFS GOTCHAS"
34055 msgstr ""
34056
34057 #. type: textblock
34058 #: ../src/guestfs.pod:764
34059 msgid ""
34060 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34061 "system [...] that works in the way it is documented but is counterintuitive "
34062 "and almost invites mistakes.\""
34063 msgstr ""
34064
34065 #. type: textblock
34066 #: ../src/guestfs.pod:768
34067 msgid ""
34068 "Since we developed libguestfs and the associated tools, there are several "
34069 "things we would have designed differently, but are now stuck with for "
34070 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34071 "release, you can expect these to change.  Beware of them."
34072 msgstr ""
34073
34074 #. type: =item
34075 #: ../src/guestfs.pod:776
34076 msgid "Autosync / forgetting to sync."
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:778
34081 msgid ""
34082 "I<Update:> Autosync is enabled by default for all API users starting from "
34083 "libguestfs 1.5.24.  This section only applies to older versions."
34084 msgstr ""
34085
34086 #. type: textblock
34087 #: ../src/guestfs.pod:781
34088 msgid ""
34089 "When modifying a filesystem from C or another language, you B<must> unmount "
34090 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34091 "libguestfs handle.  You can also call:"
34092 msgstr ""
34093
34094 #. type: verbatim
34095 #: ../src/guestfs.pod:785
34096 #, no-wrap
34097 msgid ""
34098 " guestfs_set_autosync (g, 1);\n"
34099 "\n"
34100 msgstr ""
34101 " guestfs_set_autosync (g, 1);\n"
34102 "\n"
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:787
34106 msgid ""
34107 "to have the unmount/sync done automatically for you when the handle 'g' is "
34108 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34109 msgstr ""
34110
34111 #. type: textblock
34112 #: ../src/guestfs.pod:791
34113 msgid ""
34114 "If you forget to do this, then it is entirely possible that your changes "
34115 "won't be written out, or will be partially written, or (very rarely) that "
34116 "you'll get disk corruption."
34117 msgstr ""
34118
34119 #. type: textblock
34120 #: ../src/guestfs.pod:795
34121 msgid ""
34122 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34123 "guestfish scripts that forget to sync will work just fine, which can make "
34124 "this very puzzling if you are trying to debug a problem."
34125 msgstr ""
34126
34127 #. type: =item
34128 #: ../src/guestfs.pod:799
34129 msgid "Mount option C<-o sync> should not be the default."
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:801
34134 msgid ""
34135 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34136 "However C<-o sync> does not add any reliability benefit, but does have a "
34137 "very large performance impact."
34138 msgstr ""
34139
34140 #. type: textblock
34141 #: ../src/guestfs.pod:805
34142 msgid ""
34143 "The work around is to use L</guestfs_mount_options> and set the mount "
34144 "options that you actually want to use."
34145 msgstr ""
34146
34147 #. type: =item
34148 #: ../src/guestfs.pod:808
34149 msgid "Read-only should be the default."
34150 msgstr ""
34151
34152 #. type: textblock
34153 #: ../src/guestfs.pod:810
34154 msgid ""
34155 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34156 "specify I<--rw> if you want to make changes to the image."
34157 msgstr ""
34158
34159 #. type: textblock
34160 #: ../src/guestfs.pod:813
34161 msgid "This would reduce the potential to corrupt live VM images."
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:815
34166 msgid ""
34167 "Note that many filesystems change the disk when you just mount and unmount, "
34168 "even if you didn't perform any writes.  You need to use L</"
34169 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34170 msgstr ""
34171
34172 #. type: =item
34173 #: ../src/guestfs.pod:819
34174 msgid "guestfish command line is hard to use."
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:821
34179 msgid ""
34180 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34181 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34182 "exist, so it fails.  In earlier versions of guestfish the error message was "
34183 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34184 "we should have used C<guestfish -c command> to run commands."
34185 msgstr ""
34186
34187 #. type: =item
34188 #: ../src/guestfs.pod:828
34189 msgid "guestfish megabyte modifiers don't work right on all commands"
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../src/guestfs.pod:830
34194 msgid ""
34195 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34196 "other modifiers).  What guestfish actually does is to multiply the number "
34197 "part by the modifier part and pass the result to the C API.  However this "
34198 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34199 "expecting some other unit (eg. megabytes)."
34200 msgstr ""
34201
34202 #. type: textblock
34203 #: ../src/guestfs.pod:837
34204 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34205 msgstr ""
34206
34207 #. type: verbatim
34208 #: ../src/guestfs.pod:839
34209 #, no-wrap
34210 msgid ""
34211 " lvcreate LV VG 100M\n"
34212 "\n"
34213 msgstr ""
34214 " lvcreate LV VG 100M\n"
34215 "\n"
34216
34217 #. type: textblock
34218 #: ../src/guestfs.pod:841
34219 msgid ""
34220 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34221 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34222 "megabytes * megabytes) logical volume.  The error message you get from this "
34223 "is also a little obscure."
34224 msgstr ""
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:846
34228 msgid ""
34229 "This could be fixed in the generator by specially marking parameters and "
34230 "return values which take bytes or other units."
34231 msgstr ""
34232
34233 #. type: =item
34234 #: ../src/guestfs.pod:849
34235 msgid "Ambiguity between devices and paths"
34236 msgstr ""
34237
34238 #. type: textblock
34239 #: ../src/guestfs.pod:851
34240 msgid ""
34241 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34242 "sdb2>) and a similar pathname.  A file might just happen to be called "
34243 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:856
34248 msgid ""
34249 "In the current API we usually resolve this ambiguity by having two separate "
34250 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34251 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34252 "detecting if the path supplied begins with C</dev/>."
34253 msgstr ""
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:862
34257 msgid ""
34258 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34259 "make paths/devices into structured names.  One way to do this would be to "
34260 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34261 "aspect of grub.  Another way would be to use a structured type, equivalent "
34262 "to this OCaml type:"
34263 msgstr ""
34264
34265 #. type: verbatim
34266 #: ../src/guestfs.pod:868
34267 #, no-wrap
34268 msgid ""
34269 " type path = Path of string | Device of int | Partition of int * int\n"
34270 "\n"
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:870
34275 msgid "which would allow you to pass arguments like:"
34276 msgstr ""
34277
34278 #. type: verbatim
34279 #: ../src/guestfs.pod:872
34280 #, no-wrap
34281 msgid ""
34282 " Path \"/foo/bar\"\n"
34283 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34284 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34285 " Path \"/dev/sdb2\"    (* not a device *)\n"
34286 "\n"
34287 msgstr ""
34288
34289 #. type: textblock
34290 #: ../src/guestfs.pod:877
34291 msgid ""
34292 "As you can see there are still problems to resolve even with this "
34293 "representation.  Also consider how it might work in guestfish."
34294 msgstr ""
34295
34296 #. type: =head2
34297 #: ../src/guestfs.pod:882
34298 msgid "KEYS AND PASSPHRASES"
34299 msgstr "КЛЮЧІ І ПАРОЛІ"
34300
34301 #. type: textblock
34302 #: ../src/guestfs.pod:884
34303 msgid ""
34304 "Certain libguestfs calls take a parameter that contains sensitive key "
34305 "material, passed in as a C string."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:887
34310 msgid ""
34311 "In the future we would hope to change the libguestfs implementation so that "
34312 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34313 "swap.  However this is I<not> done at the moment, because of the complexity "
34314 "of such an implementation."
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:892
34319 msgid ""
34320 "Therefore you should be aware that any key parameter you pass to libguestfs "
34321 "might end up being written out to the swap partition.  If this is a concern, "
34322 "scrub the swap partition or don't use libguestfs on encrypted devices."
34323 msgstr ""
34324
34325 #. type: =head2
34326 #: ../src/guestfs.pod:897
34327 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:899
34332 msgid ""
34333 "All high-level libguestfs actions are synchronous.  If you want to use "
34334 "libguestfs asynchronously then you must create a thread."
34335 msgstr ""
34336
34337 #. type: textblock
34338 #: ../src/guestfs.pod:902
34339 msgid ""
34340 "Only use the handle from a single thread.  Either use the handle exclusively "
34341 "from one thread, or provide your own mutex so that two threads cannot issue "
34342 "calls on the same handle at the same time."
34343 msgstr ""
34344
34345 #. type: textblock
34346 #: ../src/guestfs.pod:906
34347 msgid ""
34348 "See the graphical program guestfs-browser for one possible architecture for "
34349 "multithreaded programs using libvirt and libguestfs."
34350 msgstr ""
34351
34352 #. type: =head2
34353 #: ../src/guestfs.pod:909
34354 msgid "PATH"
34355 msgstr "ШЛЯХ"
34356
34357 #. type: textblock
34358 #: ../src/guestfs.pod:911
34359 msgid ""
34360 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34361 "internal path."
34362 msgstr ""
34363
34364 #. type: textblock
34365 #: ../src/guestfs.pod:914
34366 msgid ""
34367 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34368 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34369 msgstr ""
34370
34371 #. type: textblock
34372 #: ../src/guestfs.pod:917
34373 msgid ""
34374 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34375 "to change the directories that libguestfs will search in.  The value is a "
34376 "colon-separated list of paths.  The current directory is I<not> searched "
34377 "unless the path contains an empty element or C<.>.  For example "
34378 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34379 "then C</usr/lib/guestfs>."
34380 msgstr ""
34381
34382 #. type: =head2
34383 #: ../src/guestfs.pod:924
34384 msgid "QEMU WRAPPERS"
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs.pod:926
34389 msgid ""
34390 "If you want to compile your own qemu, run qemu from a non-standard location, "
34391 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34392 "around qemu."
34393 msgstr ""
34394
34395 #. type: textblock
34396 #: ../src/guestfs.pod:930
34397 msgid ""
34398 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34399 "last command in the shell script (so that qemu replaces the shell and "
34400 "becomes the direct child of the libguestfs-using program).  If you don't do "
34401 "this, then the qemu process won't be cleaned up correctly."
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:935
34406 msgid ""
34407 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34408 "source:"
34409 msgstr ""
34410
34411 #. type: verbatim
34412 #: ../src/guestfs.pod:938
34413 #, no-wrap
34414 msgid ""
34415 " #!/bin/sh -\n"
34416 " qemudir=/home/rjones/d/qemu\n"
34417 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34418 "\n"
34419 msgstr ""
34420 " #!/bin/sh -\n"
34421 " qemudir=/home/rjones/d/qemu\n"
34422 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34423 "\n"
34424
34425 #. type: textblock
34426 #: ../src/guestfs.pod:942
34427 msgid ""
34428 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34429 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34430 "example:"
34431 msgstr ""
34432
34433 #. type: verbatim
34434 #: ../src/guestfs.pod:946
34435 #, no-wrap
34436 msgid ""
34437 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34438 "\n"
34439 msgstr ""
34440 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34441 "\n"
34442
34443 #. type: textblock
34444 #: ../src/guestfs.pod:948
34445 msgid ""
34446 "Note that libguestfs also calls qemu with the -help and -version options in "
34447 "order to determine features."
34448 msgstr ""
34449
34450 #. type: textblock
34451 #: ../src/guestfs.pod:951
34452 msgid ""
34453 "Wrappers can also be used to edit the options passed to qemu.  In the "
34454 "following example, the C<-machine ...> option (C<-machine> and the following "
34455 "argument) are removed from the command line and replaced with C<-machine pc,"
34456 "accel=tcg>.  The while loop iterates over the options until it finds the "
34457 "right one to remove, putting the remaining options into the C<args> array."
34458 msgstr ""
34459
34460 #. type: verbatim
34461 #: ../src/guestfs.pod:960
34462 #, no-wrap
34463 msgid ""
34464 " i=0\n"
34465 " while [ $# -gt 0 ]; do\n"
34466 "     case \"$1\" in\n"
34467 "     -machine)\n"
34468 "         shift 2;;\n"
34469 "     *)\n"
34470 "         args[i]=\"$1\"\n"
34471 "         (( i++ ))\n"
34472 "         shift ;;\n"
34473 "     esac\n"
34474 " done\n"
34475 " \n"
34476 msgstr ""
34477
34478 #. type: verbatim
34479 #: ../src/guestfs.pod:972
34480 #, no-wrap
34481 msgid ""
34482 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34483 "\n"
34484 msgstr ""
34485
34486 #. type: =head2
34487 #: ../src/guestfs.pod:974
34488 msgid "ATTACHING TO RUNNING DAEMONS"
34489 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34490
34491 #. type: textblock
34492 #: ../src/guestfs.pod:976
34493 msgid ""
34494 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34495 "babies.  Use with caution."
34496 msgstr ""
34497
34498 #. type: textblock
34499 #: ../src/guestfs.pod:979
34500 msgid ""
34501 "I<Note (2):> This section explains how to attach to a running daemon from a "
34502 "low level perspective.  For most users, simply using virt tools such as "
34503 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34504 msgstr ""
34505
34506 #. type: =head3
34507 #: ../src/guestfs.pod:983
34508 msgid "Using guestfs_set_attach_method"
34509 msgstr "За допомогою guestfs_set_attach_method"
34510
34511 #. type: textblock
34512 #: ../src/guestfs.pod:985
34513 msgid ""
34514 "By calling L</guestfs_set_attach_method> you can change how the library "
34515 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34516 "ARCHITECTURE> for some background)."
34517 msgstr ""
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:989
34521 msgid ""
34522 "The normal attach method is C<appliance>, where a small appliance is created "
34523 "containing the daemon, and then the library connects to this."
34524 msgstr ""
34525
34526 #. type: textblock
34527 #: ../src/guestfs.pod:992
34528 msgid ""
34529 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34530 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34531 "daemon over the Unix domain socket."
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:996
34536 msgid ""
34537 "The normal use for this is to connect to a running virtual machine that "
34538 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34539 "files inside the live virtual machine."
34540 msgstr ""
34541
34542 #. type: =head3
34543 #: ../src/guestfs.pod:1000
34544 msgid "Using guestfs_add_domain with live flag"
34545 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34546
34547 #. type: textblock
34548 #: ../src/guestfs.pod:1002
34549 msgid ""
34550 "L</guestfs_add_domain> provides some help for getting the correct attach "
34551 "method.  If you pass the C<live> option to this function, then (if the "
34552 "virtual machine is running) it will examine the libvirt XML looking for a "
34553 "virtio-serial channel to connect to:"
34554 msgstr ""
34555
34556 #. type: verbatim
34557 #: ../src/guestfs.pod:1008
34558 #, no-wrap
34559 msgid ""
34560 " <domain>\n"
34561 "   ...\n"
34562 "   <devices>\n"
34563 "     ...\n"
34564 "     <channel type='unix'>\n"
34565 "       <source mode='bind' path='/path/to/socket'/>\n"
34566 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34567 "     </channel>\n"
34568 "     ...\n"
34569 "   </devices>\n"
34570 " </domain>\n"
34571 "\n"
34572 msgstr ""
34573 " <domain>\n"
34574 "   ...\n"
34575 "   <devices>\n"
34576 "     ...\n"
34577 "     <channel type='unix'>\n"
34578 "       <source mode='bind' path='/path/to/socket'/>\n"
34579 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34580 "     </channel>\n"
34581 "     ...\n"
34582 "   </devices>\n"
34583 " </domain>\n"
34584 "\n"
34585
34586 #. type: textblock
34587 #: ../src/guestfs.pod:1020
34588 msgid ""
34589 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34590 "method to C<unix:/path/to/socket>."
34591 msgstr ""
34592
34593 #. type: textblock
34594 #: ../src/guestfs.pod:1023
34595 msgid ""
34596 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34597 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34598 "to attach to and modify live virtual machines."
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:1027
34603 msgid ""
34604 "The virtual machine needs to have been set up beforehand so that it has the "
34605 "virtio-serial channel and so that guestfsd is running inside it."
34606 msgstr ""
34607
34608 #. type: =head2
34609 #: ../src/guestfs.pod:1031
34610 msgid "ABI GUARANTEE"
34611 msgstr "ГАРАНТІЯ ЩОДО ABI"
34612
34613 #. type: textblock
34614 #: ../src/guestfs.pod:1033
34615 msgid ""
34616 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34617 "actions as outlined in this section.  Although we will deprecate some "
34618 "actions, for example if they get replaced by newer calls, we will keep the "
34619 "old actions forever.  This allows you the developer to program in confidence "
34620 "against the libguestfs API."
34621 msgstr ""
34622
34623 #. type: =head2
34624 #: ../src/guestfs.pod:1039
34625 msgid "BLOCK DEVICE NAMING"
34626 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34627
34628 #. type: textblock
34629 #: ../src/guestfs.pod:1041
34630 msgid ""
34631 "In the kernel there is now quite a profusion of schemata for naming block "
34632 "devices (in this context, by I<block device> I mean a physical or virtual "
34633 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34634 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34635 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34636 "for the old IDE driver (particularly for SATA devices) those devices also "
34637 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34638 "paravirtualized drivers.  This has created several different naming systems, "
34639 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1053
34644 msgid ""
34645 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34646 "Linux kernel to access block devices.  We can run a variety of appliances "
34647 "based on a variety of Linux kernels."
34648 msgstr ""
34649
34650 #. type: textblock
34651 #: ../src/guestfs.pod:1057
34652 msgid ""
34653 "This causes a problem for libguestfs because many API calls use device or "
34654 "partition names.  Working scripts and the recipe (example) scripts that we "
34655 "make available over the internet could fail if the naming scheme changes."
34656 msgstr ""
34657
34658 #. type: textblock
34659 #: ../src/guestfs.pod:1062
34660 msgid ""
34661 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34662 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34663 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34664 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:1068
34669 msgid ""
34670 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34671 "L</guestfs_list_partitions> and similar calls return the true names of the "
34672 "devices and partitions as known to the appliance."
34673 msgstr ""
34674
34675 #. type: =head3
34676 #: ../src/guestfs.pod:1073
34677 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34678 msgstr ""
34679
34680 #. type: textblock
34681 #: ../src/guestfs.pod:1075
34682 msgid ""
34683 "Usually this translation is transparent.  However in some (very rare)  cases "
34684 "you may need to know the exact algorithm.  Such cases include where you use "
34685 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34686 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:1081
34691 msgid ""
34692 "The algorithm is applied only to I<parameters> which are known to be either "
34693 "device or partition names.  Return values from functions such as L</"
34694 "guestfs_list_devices> are never changed."
34695 msgstr ""
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:1089
34699 msgid "Is the string a parameter which is a device or partition name?"
34700 msgstr ""
34701
34702 #. type: textblock
34703 #: ../src/guestfs.pod:1093
34704 msgid "Does the string begin with C</dev/sd>?"
34705 msgstr "Чи починається рядок з C</dev/sd>?"
34706
34707 #. type: textblock
34708 #: ../src/guestfs.pod:1097
34709 msgid ""
34710 "Does the named device exist? If so, we use that device.  However if I<not> "
34711 "then we continue with this algorithm."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:1102
34716 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:1104
34721 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34722 msgstr ""
34723
34724 #. type: textblock
34725 #: ../src/guestfs.pod:1106
34726 msgid "If that named device exists, use it.  If not, continue."
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:1110
34731 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:1112
34736 msgid "If that named device exists, use it.  If not, return an error."
34737 msgstr ""
34738
34739 #. type: =head3
34740 #: ../src/guestfs.pod:1116
34741 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:1118
34746 msgid ""
34747 "Although the standard naming scheme and automatic translation is useful for "
34748 "simple programs and guestfish scripts, for larger programs it is best not to "
34749 "rely on this mechanism."
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:1122
34754 msgid ""
34755 "Where possible for maximum future portability programs using libguestfs "
34756 "should use these future-proof techniques:"
34757 msgstr ""
34758
34759 #. type: textblock
34760 #: ../src/guestfs.pod:1129
34761 msgid ""
34762 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34763 "device names, and then use those names directly."
34764 msgstr ""
34765
34766 #. type: textblock
34767 #: ../src/guestfs.pod:1132
34768 msgid ""
34769 "Since those device names exist by definition, they will never be translated."
34770 msgstr ""
34771
34772 #. type: textblock
34773 #: ../src/guestfs.pod:1137
34774 msgid ""
34775 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34776 "filesystem labels."
34777 msgstr ""
34778
34779 #. type: =head1
34780 #: ../src/guestfs.pod:1142
34781 msgid "SECURITY"
34782 msgstr "БЕЗПЕКА"
34783
34784 #. type: textblock
34785 #: ../src/guestfs.pod:1144
34786 msgid ""
34787 "This section discusses security implications of using libguestfs, "
34788 "particularly with untrusted or malicious guests or disk images."
34789 msgstr ""
34790
34791 #. type: =head2
34792 #: ../src/guestfs.pod:1147
34793 msgid "GENERAL SECURITY CONSIDERATIONS"
34794 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:1149
34798 msgid ""
34799 "Be careful with any files or data that you download from a guest (by "
34800 "\"download\" we mean not just the L</guestfs_download> command but any "
34801 "command that reads files, filenames, directories or anything else from a "
34802 "disk image).  An attacker could manipulate the data to fool your program "
34803 "into doing the wrong thing.  Consider cases such as:"
34804 msgstr ""
34805
34806 #. type: textblock
34807 #: ../src/guestfs.pod:1159
34808 msgid "the data (file etc) not being present"
34809 msgstr ""
34810
34811 #. type: textblock
34812 #: ../src/guestfs.pod:1163
34813 msgid "being present but empty"
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs.pod:1167
34818 msgid "being much larger than normal"
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:1171
34823 msgid "containing arbitrary 8 bit data"
34824 msgstr ""
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:1175
34828 msgid "being in an unexpected character encoding"
34829 msgstr ""
34830
34831 #. type: textblock
34832 #: ../src/guestfs.pod:1179
34833 msgid "containing homoglyphs."
34834 msgstr ""
34835
34836 #. type: =head2
34837 #: ../src/guestfs.pod:1183
34838 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34839 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:1185
34843 msgid ""
34844 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34845 "(VFS) module can sometimes be escalated into exploits by deliberately "
34846 "creating a malicious, malformed filesystem.  These exploits are very severe "
34847 "for two reasons.  Firstly there are very many filesystem drivers in the "
34848 "kernel, and many of them are infrequently used and not much developer "
34849 "attention has been paid to the code.  Linux userspace helps potential "
34850 "crackers by detecting the filesystem type and automatically choosing the "
34851 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34852 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34853 "exploit (worse in some ways), giving immediate and total access to the "
34854 "system right down to the hardware level."
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:1198
34859 msgid ""
34860 "That explains why you should never mount a filesystem from an untrusted "
34861 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34862 "inside a qemu virtual machine, usually running as a non-root user.  The "
34863 "attacker would need to write a filesystem which first exploited the kernel, "
34864 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34865 "the libguestfs protocol, and finally to be as serious as the host kernel "
34866 "exploit it would need to escalate its privileges to root.  This multi-step "
34867 "escalation, performed by a static piece of data, is thought to be extremely "
34868 "hard to do, although we never say 'never' about security issues."
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:1209
34873 msgid ""
34874 "In any case callers can reduce the attack surface by forcing the filesystem "
34875 "type when mounting (use L</guestfs_mount_vfs>)."
34876 msgstr ""
34877
34878 #. type: =head2
34879 #: ../src/guestfs.pod:1212
34880 msgid "PROTOCOL SECURITY"
34881 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34882
34883 #. type: textblock
34884 #: ../src/guestfs.pod:1214
34885 msgid ""
34886 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34887 "defined upper message size.  However a program that uses libguestfs must "
34888 "also take care - for example you can write a program that downloads a binary "
34889 "from a disk image and executes it locally, and no amount of protocol "
34890 "security will save you from the consequences."
34891 msgstr ""
34892
34893 #. type: =head2
34894 #: ../src/guestfs.pod:1220
34895 msgid "INSPECTION SECURITY"
34896 msgstr ""
34897
34898 #. type: textblock
34899 #: ../src/guestfs.pod:1222
34900 msgid ""
34901 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34902 "directly from the guest, and these could contain any 8 bit data.  Callers "
34903 "should be careful to escape these before printing them to a structured file "
34904 "(for example, use HTML escaping if creating a web page)."
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs.pod:1228
34909 msgid ""
34910 "Guest configuration may be altered in unusual ways by the administrator of "
34911 "the virtual machine, and may not reflect reality (particularly for untrusted "
34912 "or actively malicious guests).  For example we parse the hostname from "
34913 "configuration files like C</etc/sysconfig/network> that we find in the "
34914 "guest, but the guest administrator can easily manipulate these files to "
34915 "provide the wrong hostname."
34916 msgstr ""
34917
34918 #. type: textblock
34919 #: ../src/guestfs.pod:1236
34920 msgid ""
34921 "The inspection API parses guest configuration using two external libraries: "
34922 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34923 "designed to be robust in the face of malicious data, although denial of "
34924 "service attacks are still possible, for example with oversized configuration "
34925 "files."
34926 msgstr ""
34927
34928 #. type: =head2
34929 #: ../src/guestfs.pod:1242
34930 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34931 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:1244
34935 msgid ""
34936 "Be very cautious about running commands from the guest.  By running a "
34937 "command in the guest, you are giving CPU time to a binary that you do not "
34938 "control, under the same user account as the library, albeit wrapped in qemu "
34939 "virtualization.  More information and alternatives can be found in the "
34940 "section L</RUNNING COMMANDS>."
34941 msgstr ""
34942
34943 #. type: =head2
34944 #: ../src/guestfs.pod:1250
34945 msgid "CVE-2010-3851"
34946 msgstr "CVE-2010-3851"
34947
34948 #. type: textblock
34949 #: ../src/guestfs.pod:1252
34950 msgid "https://bugzilla.redhat.com/642934"
34951 msgstr "https://bugzilla.redhat.com/642934"
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:1254
34955 msgid ""
34956 "This security bug concerns the automatic disk format detection that qemu "
34957 "does on disk images."
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:1257
34962 msgid ""
34963 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34964 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34965 "for one of the known headers, and if none is found then assuming the disk "
34966 "image must be raw."
34967 msgstr ""
34968
34969 #. type: textblock
34970 #: ../src/guestfs.pod:1262
34971 msgid ""
34972 "This allows a guest which has been given a raw disk image to write some "
34973 "other header.  At next boot (or when the disk image is accessed by "
34974 "libguestfs) qemu would do autodetection and think the disk image format was, "
34975 "say, qcow2 based on the header written by the guest."
34976 msgstr ""
34977
34978 #. type: textblock
34979 #: ../src/guestfs.pod:1267
34980 msgid ""
34981 "This in itself would not be a problem, but qcow2 offers many features, one "
34982 "of which is to allow a disk image to refer to another image (called the "
34983 "\"backing disk\").  It does this by placing the path to the backing disk "
34984 "into the qcow2 header.  This path is not validated and could point to any "
34985 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34986 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34987 "control of the attacker."
34988 msgstr ""
34989
34990 #. type: textblock
34991 #: ../src/guestfs.pod:1275
34992 msgid ""
34993 "In libguestfs this is rather hard to exploit except under two circumstances:"
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:1282
34998 msgid "You have enabled the network or have opened the disk in write mode."
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:1286
35003 msgid ""
35004 "You are also running untrusted code from the guest (see L</RUNNING "
35005 "COMMANDS>)."
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:1291
35010 msgid ""
35011 "The way to avoid this is to specify the expected disk format when adding "
35012 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35013 "should always do this if the disk is raw format, and it's a good idea for "
35014 "other cases too."
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:1296
35019 msgid ""
35020 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35021 "format is fetched from libvirt and passed through."
35022 msgstr ""
35023
35024 #. type: textblock
35025 #: ../src/guestfs.pod:1299
35026 msgid ""
35027 "For libguestfs tools, use the I<--format> command line parameter as "
35028 "appropriate."
35029 msgstr ""
35030
35031 #. type: =head1
35032 #: ../src/guestfs.pod:1302
35033 msgid "CONNECTION MANAGEMENT"
35034 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35035
35036 #. type: =head2
35037 #: ../src/guestfs.pod:1304
35038 msgid "guestfs_h *"
35039 msgstr "guestfs_h *"
35040
35041 #. type: textblock
35042 #: ../src/guestfs.pod:1306
35043 msgid ""
35044 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35045 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35046 "handle and release all resources used."
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:1310
35051 msgid ""
35052 "For information on using multiple handles and threads, see the section L</"
35053 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35054 msgstr ""
35055
35056 #. type: =head2
35057 #: ../src/guestfs.pod:1313
35058 msgid "guestfs_create"
35059 msgstr "guestfs_create"
35060
35061 #. type: verbatim
35062 #: ../src/guestfs.pod:1315
35063 #, no-wrap
35064 msgid ""
35065 " guestfs_h *guestfs_create (void);\n"
35066 "\n"
35067 msgstr ""
35068 " guestfs_h *guestfs_create (void);\n"
35069 "\n"
35070
35071 #. type: textblock
35072 #: ../src/guestfs.pod:1317
35073 msgid "Create a connection handle."
35074 msgstr "Створити дескриптор з’єднання."
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:1319
35078 msgid ""
35079 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35080 "NULL."
35081 msgstr ""
35082
35083 #. type: textblock
35084 #: ../src/guestfs.pod:1322
35085 msgid ""
35086 "You have to \"configure\" the handle after creating it.  This includes "
35087 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35088 "handle at least once."
35089 msgstr ""
35090
35091 #. type: textblock
35092 #: ../src/guestfs.pod:1326
35093 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:1328
35098 msgid ""
35099 "You may also want to configure error handling for the handle.  See the L</"
35100 "ERROR HANDLING> section below."
35101 msgstr ""
35102
35103 #. type: =head2
35104 #: ../src/guestfs.pod:1331
35105 msgid "guestfs_close"
35106 msgstr "guestfs_close"
35107
35108 #. type: verbatim
35109 #: ../src/guestfs.pod:1333
35110 #, no-wrap
35111 msgid ""
35112 " void guestfs_close (guestfs_h *g);\n"
35113 "\n"
35114 msgstr ""
35115 " void guestfs_close (guestfs_h *g);\n"
35116 "\n"
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:1335
35120 msgid "This closes the connection handle and frees up all resources used."
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:1337
35125 msgid ""
35126 "If autosync was set on the handle and the handle was launched, then this "
35127 "implicitly calls various functions to unmount filesystems and sync the "
35128 "disk.  See L</guestfs_set_autosync> for more details."
35129 msgstr ""
35130
35131 #. type: textblock
35132 #: ../src/guestfs.pod:1341
35133 msgid "If a close callback was set on the handle, then it is called."
35134 msgstr ""
35135
35136 #. type: =head1
35137 #: ../src/guestfs.pod:1343
35138 msgid "ERROR HANDLING"
35139 msgstr "ОБРОБКА ПОМИЛОК"
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:1345
35143 msgid ""
35144 "API functions can return errors.  For example, almost all functions that "
35145 "return C<int> will return C<-1> to indicate an error."
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs.pod:1348
35150 msgid ""
35151 "Additional information is available for errors: an error message string and "
35152 "optionally an error number (errno) if the thing that failed was a system "
35153 "call."
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs.pod:1352
35158 msgid ""
35159 "You can get at the additional information about the last error on the handle "
35160 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35161 "up an error handler with L</guestfs_set_error_handler>."
35162 msgstr ""
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:1357
35166 msgid ""
35167 "When the handle is created, a default error handler is installed which "
35168 "prints the error message string to C<stderr>.  For small short-running "
35169 "command line programs it is sufficient to do:"
35170 msgstr ""
35171
35172 #. type: verbatim
35173 #: ../src/guestfs.pod:1361
35174 #, no-wrap
35175 msgid ""
35176 " if (guestfs_launch (g) == -1)\n"
35177 "   exit (EXIT_FAILURE);\n"
35178 "\n"
35179 msgstr ""
35180 " if (guestfs_launch (g) == -1)\n"
35181 "   exit (EXIT_FAILURE);\n"
35182 "\n"
35183
35184 #. type: textblock
35185 #: ../src/guestfs.pod:1364
35186 msgid ""
35187 "since the default error handler will ensure that an error message has been "
35188 "printed to C<stderr> before the program exits."
35189 msgstr ""
35190
35191 #. type: textblock
35192 #: ../src/guestfs.pod:1367
35193 msgid ""
35194 "For other programs the caller will almost certainly want to install an "
35195 "alternate error handler or do error handling in-line like this:"
35196 msgstr ""
35197
35198 #. type: verbatim
35199 #: ../src/guestfs.pod:1370
35200 #, no-wrap
35201 msgid ""
35202 " g = guestfs_create ();\n"
35203 " \n"
35204 msgstr ""
35205 " g = guestfs_create ();\n"
35206 " \n"
35207
35208 #. type: verbatim
35209 #: ../src/guestfs.pod:1372
35210 #, no-wrap
35211 msgid ""
35212 " /* This disables the default behaviour of printing errors\n"
35213 "    on stderr. */\n"
35214 " guestfs_set_error_handler (g, NULL, NULL);\n"
35215 " \n"
35216 msgstr ""
35217
35218 #. type: verbatim
35219 #: ../src/guestfs.pod:1376
35220 #, no-wrap
35221 msgid ""
35222 " if (guestfs_launch (g) == -1) {\n"
35223 "   /* Examine the error message and print it etc. */\n"
35224 "   char *msg = guestfs_last_error (g);\n"
35225 "   int errnum = guestfs_last_errno (g);\n"
35226 "   fprintf (stderr, \"%s\\n\", msg);\n"
35227 "   /* ... */\n"
35228 "  }\n"
35229 "\n"
35230 msgstr ""
35231 " if (guestfs_launch (g) == -1) {\n"
35232 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35233 "   char *msg = guestfs_last_error (g);\n"
35234 "   int errnum = guestfs_last_errno (g);\n"
35235 "   fprintf (stderr, \"%s\\n\", msg);\n"
35236 "   /* ... */\n"
35237 "  }\n"
35238 "\n"
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:1384
35242 msgid ""
35243 "Out of memory errors are handled differently.  The default action is to call "
35244 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35245 "guestfs_set_out_of_memory_handler>."
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:1388
35250 msgid ""
35251 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35252 "because there is no handle if this happens there is no way to get additional "
35253 "error information.  However L</guestfs_create> is supposed to be a "
35254 "lightweight operation which can only fail because of insufficient memory (it "
35255 "returns NULL in this case)."
35256 msgstr ""
35257
35258 #. type: =head2
35259 #: ../src/guestfs.pod:1394
35260 msgid "guestfs_last_error"
35261 msgstr "guestfs_last_error"
35262
35263 #. type: verbatim
35264 #: ../src/guestfs.pod:1396
35265 #, no-wrap
35266 msgid ""
35267 " const char *guestfs_last_error (guestfs_h *g);\n"
35268 "\n"
35269 msgstr ""
35270 " const char *guestfs_last_error (guestfs_h *g);\n"
35271 "\n"
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:1398
35275 msgid ""
35276 "This returns the last error message that happened on C<g>.  If there has not "
35277 "been an error since the handle was created, then this returns C<NULL>."
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:1402
35282 msgid ""
35283 "The lifetime of the returned string is until the next error occurs, or L</"
35284 "guestfs_close> is called."
35285 msgstr ""
35286
35287 #. type: =head2
35288 #: ../src/guestfs.pod:1405
35289 msgid "guestfs_last_errno"
35290 msgstr "guestfs_last_errno"
35291
35292 #. type: verbatim
35293 #: ../src/guestfs.pod:1407
35294 #, no-wrap
35295 msgid ""
35296 " int guestfs_last_errno (guestfs_h *g);\n"
35297 "\n"
35298 msgstr ""
35299 " int guestfs_last_errno (guestfs_h *g);\n"
35300 "\n"
35301
35302 #. type: textblock
35303 #: ../src/guestfs.pod:1409
35304 msgid "This returns the last error number (errno) that happened on C<g>."
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:1411
35309 msgid "If successful, an errno integer not equal to zero is returned."
35310 msgstr ""
35311
35312 #. type: textblock
35313 #: ../src/guestfs.pod:1413
35314 msgid ""
35315 "If no error, this returns 0.  This call can return 0 in three situations:"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1420
35320 msgid "There has not been any error on the handle."
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:1424
35325 msgid ""
35326 "There has been an error but the errno was meaningless.  This corresponds to "
35327 "the case where the error did not come from a failed system call, but for "
35328 "some other reason."
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs.pod:1430
35333 msgid ""
35334 "There was an error from a failed system call, but for some reason the errno "
35335 "was not captured and returned.  This usually indicates a bug in libguestfs."
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:1436
35340 msgid ""
35341 "Libguestfs tries to convert the errno from inside the applicance into a "
35342 "corresponding errno for the caller (not entirely trivial: the appliance "
35343 "might be running a completely different operating system from the library "
35344 "and error numbers are not standardized across Un*xen).  If this could not be "
35345 "done, then the error is translated to C<EINVAL>.  In practice this should "
35346 "only happen in very rare circumstances."
35347 msgstr ""
35348
35349 #. type: =head2
35350 #: ../src/guestfs.pod:1444
35351 msgid "guestfs_set_error_handler"
35352 msgstr "guestfs_set_error_handler"
35353
35354 #. type: verbatim
35355 #: ../src/guestfs.pod:1446
35356 #, no-wrap
35357 msgid ""
35358 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35359 "                                           void *opaque,\n"
35360 "                                           const char *msg);\n"
35361 " void guestfs_set_error_handler (guestfs_h *g,\n"
35362 "                                 guestfs_error_handler_cb cb,\n"
35363 "                                 void *opaque);\n"
35364 "\n"
35365 msgstr ""
35366 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35367 "                                           void *opaque,\n"
35368 "                                           const char *msg);\n"
35369 " void guestfs_set_error_handler (guestfs_h *g,\n"
35370 "                                 guestfs_error_handler_cb cb,\n"
35371 "                                 void *opaque);\n"
35372 "\n"
35373
35374 #. type: textblock
35375 #: ../src/guestfs.pod:1453
35376 msgid ""
35377 "The callback C<cb> will be called if there is an error.  The parameters "
35378 "passed to the callback are an opaque data pointer and the error message "
35379 "string."
35380 msgstr ""
35381
35382 #. type: textblock
35383 #: ../src/guestfs.pod:1457
35384 msgid ""
35385 "C<errno> is not passed to the callback.  To get that the callback must call "
35386 "L</guestfs_last_errno>."
35387 msgstr ""
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:1460
35391 msgid ""
35392 "Note that the message string C<msg> is freed as soon as the callback "
35393 "function returns, so if you want to stash it somewhere you must make your "
35394 "own copy."
35395 msgstr ""
35396
35397 #. type: textblock
35398 #: ../src/guestfs.pod:1464
35399 msgid "The default handler prints messages on C<stderr>."
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:1466
35404 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35405 msgstr ""
35406
35407 #. type: =head2
35408 #: ../src/guestfs.pod:1468
35409 msgid "guestfs_get_error_handler"
35410 msgstr "guestfs_get_error_handler"
35411
35412 #. type: verbatim
35413 #: ../src/guestfs.pod:1470
35414 #, no-wrap
35415 msgid ""
35416 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35417 "                                                     void **opaque_rtn);\n"
35418 "\n"
35419 msgstr ""
35420 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35421 "                                                     void **opaque_rtn);\n"
35422 "\n"
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:1473
35426 msgid "Returns the current error handler callback."
35427 msgstr ""
35428
35429 #. type: =head2
35430 #: ../src/guestfs.pod:1475
35431 msgid "guestfs_set_out_of_memory_handler"
35432 msgstr "guestfs_set_out_of_memory_handler"
35433
35434 #. type: verbatim
35435 #: ../src/guestfs.pod:1477
35436 #, fuzzy, no-wrap
35437 #| msgid ""
35438 #| " typedef void (*guestfs_abort_cb) (void);\n"
35439 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35440 #| "                                        guestfs_abort_cb);\n"
35441 #| "\n"
35442 msgid ""
35443 " typedef void (*guestfs_abort_cb) (void);\n"
35444 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35445 "                                         guestfs_abort_cb);\n"
35446 "\n"
35447 msgstr ""
35448 " typedef void (*guestfs_abort_cb) (void);\n"
35449 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35450 "                                        guestfs_abort_cb);\n"
35451 "\n"
35452
35453 #. type: textblock
35454 #: ../src/guestfs.pod:1481
35455 msgid ""
35456 "The callback C<cb> will be called if there is an out of memory situation.  "
35457 "I<Note this callback must not return>."
35458 msgstr ""
35459
35460 #. type: textblock
35461 #: ../src/guestfs.pod:1484
35462 msgid "The default is to call L<abort(3)>."
35463 msgstr ""
35464
35465 #. type: textblock
35466 #: ../src/guestfs.pod:1486
35467 msgid ""
35468 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35469 msgstr ""
35470
35471 #. type: =head2
35472 #: ../src/guestfs.pod:1489
35473 msgid "guestfs_get_out_of_memory_handler"
35474 msgstr "guestfs_get_out_of_memory_handler"
35475
35476 #. type: verbatim
35477 #: ../src/guestfs.pod:1491
35478 #, no-wrap
35479 msgid ""
35480 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35481 "\n"
35482 msgstr ""
35483 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35484 "\n"
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:1493
35488 msgid "This returns the current out of memory handler."
35489 msgstr ""
35490
35491 #. type: =head1
35492 #: ../src/guestfs.pod:1495
35493 msgid "API CALLS"
35494 msgstr "ВИКЛИКИ API"
35495
35496 #. type: =head1
35497 #: ../src/guestfs.pod:1499
35498 msgid "STRUCTURES"
35499 msgstr "СТРУКТУРИ"
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:1501
35503 msgid "@STRUCTS@"
35504 msgstr "@STRUCTS@"
35505
35506 #. type: =head1
35507 #: ../src/guestfs.pod:1503
35508 msgid "AVAILABILITY"
35509 msgstr "ДОСТУПНІСТЬ"
35510
35511 #. type: =head2
35512 #: ../src/guestfs.pod:1505
35513 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35514 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:1507
35518 msgid ""
35519 "Using L</guestfs_available> you can test availability of the following "
35520 "groups of functions.  This test queries the appliance to see if the "
35521 "appliance you are currently using supports the functionality."
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:1512
35526 msgid "@AVAILABILITY@"
35527 msgstr "@AVAILABILITY@"
35528
35529 #. type: =head2
35530 #: ../src/guestfs.pod:1514
35531 msgid "GUESTFISH supported COMMAND"
35532 msgstr ""
35533
35534 #. type: textblock
35535 #: ../src/guestfs.pod:1516
35536 msgid ""
35537 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35538 "prints out the available groups and whether they are supported by this build "
35539 "of libguestfs.  Note however that you have to do C<run> first."
35540 msgstr ""
35541
35542 #. type: =head2
35543 #: ../src/guestfs.pod:1521
35544 msgid "SINGLE CALLS AT COMPILE TIME"
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:1523
35549 msgid ""
35550 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35551 "function, such as:"
35552 msgstr ""
35553
35554 #. type: verbatim
35555 #: ../src/guestfs.pod:1526
35556 #, no-wrap
35557 msgid ""
35558 " #define LIBGUESTFS_HAVE_DD 1\n"
35559 "\n"
35560 msgstr ""
35561 " #define LIBGUESTFS_HAVE_DD 1\n"
35562 "\n"
35563
35564 #. type: textblock
35565 #: ../src/guestfs.pod:1528
35566 msgid "if L</guestfs_dd> is available."
35567 msgstr ""
35568
35569 #. type: textblock
35570 #: ../src/guestfs.pod:1530
35571 msgid ""
35572 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35573 "function is available at compile time, we recommended using build tools such "
35574 "as autoconf or cmake.  For example in autotools you could use:"
35575 msgstr ""
35576
35577 #. type: verbatim
35578 #: ../src/guestfs.pod:1535
35579 #, no-wrap
35580 msgid ""
35581 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35582 " AC_CHECK_FUNCS([guestfs_dd])\n"
35583 "\n"
35584 msgstr ""
35585 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35586 " AC_CHECK_FUNCS([guestfs_dd])\n"
35587 "\n"
35588
35589 #. type: textblock
35590 #: ../src/guestfs.pod:1538
35591 msgid ""
35592 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35593 "in your program."
35594 msgstr ""
35595
35596 #. type: =head2
35597 #: ../src/guestfs.pod:1541
35598 msgid "SINGLE CALLS AT RUN TIME"
35599 msgstr ""
35600
35601 #. type: textblock
35602 #: ../src/guestfs.pod:1543
35603 msgid ""
35604 "Testing at compile time doesn't guarantee that a function really exists in "
35605 "the library.  The reason is that you might be dynamically linked against a "
35606 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35607 "This situation unfortunately results in a segmentation fault, which is a "
35608 "shortcoming of the C dynamic linking system itself."
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:1550
35613 msgid ""
35614 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35615 "in this example program (note that you still need the compile time check as "
35616 "well):"
35617 msgstr ""
35618
35619 #. type: verbatim
35620 #: ../src/guestfs.pod:1554
35621 #, no-wrap
35622 msgid ""
35623 " #include <stdio.h>\n"
35624 " #include <stdlib.h>\n"
35625 " #include <unistd.h>\n"
35626 " #include <dlfcn.h>\n"
35627 " #include <guestfs.h>\n"
35628 " \n"
35629 msgstr ""
35630 " #include <stdio.h>\n"
35631 " #include <stdlib.h>\n"
35632 " #include <unistd.h>\n"
35633 " #include <dlfcn.h>\n"
35634 " #include <guestfs.h>\n"
35635 " \n"
35636
35637 #. type: verbatim
35638 #: ../src/guestfs.pod:1560
35639 #, no-wrap
35640 msgid ""
35641 " main ()\n"
35642 " {\n"
35643 " #ifdef LIBGUESTFS_HAVE_DD\n"
35644 "   void *dl;\n"
35645 "   int has_function;\n"
35646 " \n"
35647 msgstr ""
35648 " main ()\n"
35649 " {\n"
35650 " #ifdef LIBGUESTFS_HAVE_DD\n"
35651 "   void *dl;\n"
35652 "   int has_function;\n"
35653 " \n"
35654
35655 #. type: verbatim
35656 #: ../src/guestfs.pod:1566
35657 #, no-wrap
35658 msgid ""
35659 "   /* Test if the function guestfs_dd is really available. */\n"
35660 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35661 "   if (!dl) {\n"
35662 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35663 "     exit (EXIT_FAILURE);\n"
35664 "   }\n"
35665 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35666 "   dlclose (dl);\n"
35667 " \n"
35668 msgstr ""
35669
35670 #. type: verbatim
35671 #: ../src/guestfs.pod:1575
35672 #, no-wrap
35673 msgid ""
35674 "   if (!has_function)\n"
35675 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35676 "   else {\n"
35677 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35678 "     /* Now it's safe to call\n"
35679 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35680 "     */\n"
35681 "   }\n"
35682 " #else\n"
35683 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35684 " #endif\n"
35685 "  }\n"
35686 "\n"
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:1588
35691 msgid ""
35692 "You may think the above is an awful lot of hassle, and it is.  There are "
35693 "other ways outside of the C linking system to ensure that this kind of "
35694 "incompatibility never arises, such as using package versioning:"
35695 msgstr ""
35696
35697 #. type: verbatim
35698 #: ../src/guestfs.pod:1593
35699 #, no-wrap
35700 msgid ""
35701 " Requires: libguestfs >= 1.0.80\n"
35702 "\n"
35703 msgstr ""
35704
35705 #. type: =head1
35706 #: ../src/guestfs.pod:1595
35707 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35708 msgstr ""
35709
35710 #. type: textblock
35711 #: ../src/guestfs.pod:1597
35712 msgid ""
35713 "A recent feature of the API is the introduction of calls which take optional "
35714 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35715 "takes variable arguments (ie. C<...>), as in this example:"
35716 msgstr ""
35717
35718 #. type: verbatim
35719 #: ../src/guestfs.pod:1602
35720 #, no-wrap
35721 msgid ""
35722 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35723 "\n"
35724 msgstr ""
35725 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35726 "\n"
35727
35728 #. type: textblock
35729 #: ../src/guestfs.pod:1604
35730 msgid ""
35731 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35732 "call with no optional arguments specified:"
35733 msgstr ""
35734
35735 #. type: verbatim
35736 #: ../src/guestfs.pod:1607
35737 #, no-wrap
35738 msgid ""
35739 " guestfs_add_drive_opts (g, filename, -1);\n"
35740 "\n"
35741 msgstr ""
35742 " guestfs_add_drive_opts (g, filename, -1);\n"
35743 "\n"
35744
35745 #. type: textblock
35746 #: ../src/guestfs.pod:1609
35747 msgid "With a single optional argument:"
35748 msgstr ""
35749
35750 #. type: verbatim
35751 #: ../src/guestfs.pod:1611
35752 #, no-wrap
35753 msgid ""
35754 " guestfs_add_drive_opts (g, filename,\n"
35755 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35756 "                         -1);\n"
35757 "\n"
35758 msgstr ""
35759 " guestfs_add_drive_opts (g, filename,\n"
35760 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35761 "                         -1);\n"
35762 "\n"
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:1615
35766 msgid "With two:"
35767 msgstr ""
35768
35769 #. type: verbatim
35770 #: ../src/guestfs.pod:1617
35771 #, no-wrap
35772 msgid ""
35773 " guestfs_add_drive_opts (g, filename,\n"
35774 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35775 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35776 "                         -1);\n"
35777 "\n"
35778 msgstr ""
35779 " guestfs_add_drive_opts (g, filename,\n"
35780 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35781 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35782 "                         -1);\n"
35783 "\n"
35784
35785 #. type: textblock
35786 #: ../src/guestfs.pod:1622
35787 msgid ""
35788 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35789 "happen!"
35790 msgstr ""
35791
35792 #. type: =head2
35793 #: ../src/guestfs.pod:1625
35794 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35795 msgstr ""
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:1627
35799 msgid ""
35800 "The second variant has the same name with the suffix C<_va>, which works the "
35801 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35802 "example function, this is declared:"
35803 msgstr ""
35804
35805 #. type: verbatim
35806 #: ../src/guestfs.pod:1631
35807 #, no-wrap
35808 msgid ""
35809 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35810 "                                va_list args);\n"
35811 "\n"
35812 msgstr ""
35813 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35814 "                                va_list args);\n"
35815 "\n"
35816
35817 #. type: =head2
35818 #: ../src/guestfs.pod:1634
35819 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:1636
35824 msgid ""
35825 "The third variant is useful where you need to construct these calls.  You "
35826 "pass in a structure where you fill in the optional fields.  The structure "
35827 "has a bitmask as the first element which you must set to indicate which "
35828 "fields you have filled in.  For our example function the structure and call "
35829 "are declared:"
35830 msgstr ""
35831
35832 #. type: verbatim
35833 #: ../src/guestfs.pod:1642
35834 #, no-wrap
35835 msgid ""
35836 " struct guestfs_add_drive_opts_argv {\n"
35837 "   uint64_t bitmask;\n"
35838 "   int readonly;\n"
35839 "   const char *format;\n"
35840 "   /* ... */\n"
35841 " };\n"
35842 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35843 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35844 "\n"
35845 msgstr ""
35846 " struct guestfs_add_drive_opts_argv {\n"
35847 "   uint64_t bitmask;\n"
35848 "   int readonly;\n"
35849 "   const char *format;\n"
35850 "   /* ... */\n"
35851 " };\n"
35852 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35853 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35854 "\n"
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:1651
35858 msgid "You could call it like this:"
35859 msgstr ""
35860
35861 #. type: verbatim
35862 #: ../src/guestfs.pod:1653
35863 #, no-wrap
35864 msgid ""
35865 " struct guestfs_add_drive_opts_argv optargs = {\n"
35866 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35867 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35868 "   .readonly = 1,\n"
35869 "   .format = \"qcow2\"\n"
35870 " };\n"
35871 " \n"
35872 msgstr ""
35873 " struct guestfs_add_drive_opts_argv optargs = {\n"
35874 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35875 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35876 "   .readonly = 1,\n"
35877 "   .format = \"qcow2\"\n"
35878 " };\n"
35879 " \n"
35880
35881 #. type: verbatim
35882 #: ../src/guestfs.pod:1660
35883 #, no-wrap
35884 msgid ""
35885 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35886 "\n"
35887 msgstr ""
35888 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35889 "\n"
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:1668
35893 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:1673
35898 msgid "You do not need to fill in all fields of the structure."
35899 msgstr ""
35900
35901 #. type: textblock
35902 #: ../src/guestfs.pod:1677
35903 msgid ""
35904 "There must be a one-to-one correspondence between fields of the structure "
35905 "that are filled in, and bits set in the bitmask."
35906 msgstr ""
35907
35908 #. type: =head2
35909 #: ../src/guestfs.pod:1682
35910 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:1684
35915 msgid ""
35916 "In other languages, optional arguments are expressed in the way that is "
35917 "natural for that language.  We refer you to the language-specific "
35918 "documentation for more details on that."
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:1688
35923 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35924 msgstr ""
35925
35926 #. type: =head2
35927 #: ../src/guestfs.pod:1690
35928 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:1692
35933 msgid ""
35934 "B<Note:> This section documents the generic event mechanism introduced in "
35935 "libguestfs 1.10, which you should use in new code if possible.  The old "
35936 "functions C<guestfs_set_log_message_callback>, "
35937 "C<guestfs_set_subprocess_quit_callback>, "
35938 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35939 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35940 "page.  Because of the ABI guarantee, the old functions continue to work."
35941 msgstr ""
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:1701
35945 msgid ""
35946 "Handles generate events when certain things happen, such as log messages "
35947 "being generated, progress messages during long-running operations, or the "
35948 "handle being closed.  The API calls described below let you register a "
35949 "callback to be called when events happen.  You can register multiple "
35950 "callbacks (for the same, different or overlapping sets of events), and "
35951 "individually remove callbacks.  If callbacks are not removed, then they "
35952 "remain in force until the handle is closed."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:1709
35957 msgid ""
35958 "In the current implementation, events are only generated synchronously: that "
35959 "means that events (and hence callbacks) can only happen while you are in the "
35960 "middle of making another libguestfs call.  The callback is called in the "
35961 "same thread."
35962 msgstr ""
35963
35964 #. type: textblock
35965 #: ../src/guestfs.pod:1714
35966 msgid ""
35967 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35968 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35969 msgstr ""
35970
35971 #. type: =head3
35972 #: ../src/guestfs.pod:1718
35973 msgid "CLASSES OF EVENTS"
35974 msgstr ""
35975
35976 #. type: =item
35977 #: ../src/guestfs.pod:1722
35978 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:1725
35983 msgid ""
35984 "The callback function will be called while the handle is being closed "
35985 "(synchronously from L</guestfs_close>)."
35986 msgstr ""
35987
35988 #. type: textblock
35989 #: ../src/guestfs.pod:1728
35990 msgid ""
35991 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35992 "handles that are open when the program exits.  This means that this callback "
35993 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35994 "problems in higher-level languages (eg. if your HLL interpreter has already "
35995 "been cleaned up by the time this is called, and if your callback then jumps "
35996 "into some HLL function)."
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:1735
36001 msgid ""
36002 "If no callback is registered: the handle is closed without any callback "
36003 "being invoked."
36004 msgstr ""
36005
36006 #. type: =item
36007 #: ../src/guestfs.pod:1738
36008 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:1741
36013 msgid ""
36014 "The callback function will be called when the child process quits, either "
36015 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36016 "corresponds to a transition from any state to the CONFIG state)."
36017 msgstr ""
36018
36019 #. type: textblock
36020 #: ../src/guestfs.pod:1745 ../src/guestfs.pod:1754
36021 msgid "If no callback is registered: the event is ignored."
36022 msgstr ""
36023
36024 #. type: =item
36025 #: ../src/guestfs.pod:1747
36026 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36027 msgstr ""
36028
36029 #. type: textblock
36030 #: ../src/guestfs.pod:1750
36031 msgid ""
36032 "The callback function will be called when the child process becomes ready "
36033 "first time after it has been launched.  (This corresponds to a transition "
36034 "from LAUNCHING to the READY state)."
36035 msgstr ""
36036
36037 #. type: =item
36038 #: ../src/guestfs.pod:1756
36039 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36040 msgstr ""
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:1759
36044 msgid ""
36045 "Some long-running operations can generate progress messages.  If this "
36046 "callback is registered, then it will be called each time a progress message "
36047 "is generated (usually two seconds after the operation started, and three "
36048 "times per second thereafter until it completes, although the frequency may "
36049 "change in future versions)."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:1765
36054 msgid ""
36055 "The callback receives in the payload four unsigned 64 bit numbers which are "
36056 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:1768
36061 msgid ""
36062 "The units of C<total> are not defined, although for some operations C<total> "
36063 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36064 "or megabytes), and C<position> may be the portion which has been transferred."
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:1773
36069 msgid "The only defined and stable parts of the API are:"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:1779
36074 msgid ""
36075 "The callback can display to the user some type of progress bar or indicator "
36076 "which shows the ratio of C<position>:C<total>."
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:1784
36081 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36082 msgstr ""
36083
36084 #. type: textblock
36085 #: ../src/guestfs.pod:1788
36086 msgid ""
36087 "If any progress notification is sent during a call, then a final progress "
36088 "notification is always sent when C<position> = C<total> (I<unless> the call "
36089 "fails with an error)."
36090 msgstr ""
36091
36092 #. type: textblock
36093 #: ../src/guestfs.pod:1792
36094 msgid ""
36095 "This is to simplify caller code, so callers can easily set the progress "
36096 "indicator to \"100%\" at the end of the operation, without requiring special "
36097 "code to detect this case."
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs.pod:1798
36102 msgid ""
36103 "For some calls we are unable to estimate the progress of the call, but we "
36104 "can still generate progress messages to indicate activity.  This is known as "
36105 "\"pulse mode\", and is directly supported by certain progress bar "
36106 "implementations (eg. GtkProgressBar)."
36107 msgstr ""
36108
36109 #. type: textblock
36110 #: ../src/guestfs.pod:1803
36111 msgid ""
36112 "For these calls, zero or more progress messages are generated with "
36113 "C<position = 0> and C<total = 1>, followed by a final message with "
36114 "C<position = total = 1>."
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:1807
36119 msgid ""
36120 "As noted above, if the call fails with an error then the final message may "
36121 "not be generated."
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:1812
36126 msgid ""
36127 "The callback also receives the procedure number (C<proc_nr>) and serial "
36128 "number (C<serial>) of the call.  These are only useful for debugging "
36129 "protocol issues, and the callback can normally ignore them.  The callback "
36130 "may want to print these numbers in error messages or debugging messages."
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:1818
36135 msgid "If no callback is registered: progress messages are discarded."
36136 msgstr ""
36137
36138 #. type: =item
36139 #: ../src/guestfs.pod:1820
36140 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:1823
36145 msgid ""
36146 "The callback function is called whenever a log message is generated by qemu, "
36147 "the appliance kernel, guestfsd (daemon), or utility programs."
36148 msgstr ""
36149
36150 #. type: textblock
36151 #: ../src/guestfs.pod:1826
36152 msgid ""
36153 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36154 "guestfs_launch>) then additional debug messages are generated."
36155 msgstr ""
36156
36157 #. type: textblock
36158 #: ../src/guestfs.pod:1829 ../src/guestfs.pod:1843
36159 msgid ""
36160 "If no callback is registered: the messages are discarded unless the verbose "
36161 "flag is set in which case they are sent to stderr.  You can override the "
36162 "printing of verbose messages to stderr by setting up a callback."
36163 msgstr ""
36164
36165 #. type: =item
36166 #: ../src/guestfs.pod:1834
36167 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36168 msgstr ""
36169
36170 #. type: textblock
36171 #: ../src/guestfs.pod:1837
36172 msgid ""
36173 "The callback function is called whenever a log message is generated by the "
36174 "library part of libguestfs."
36175 msgstr ""
36176
36177 #. type: textblock
36178 #: ../src/guestfs.pod:1840
36179 msgid ""
36180 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36181 "messages are generated."
36182 msgstr ""
36183
36184 #. type: =item
36185 #: ../src/guestfs.pod:1848
36186 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36187 msgstr ""
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:1851
36191 msgid ""
36192 "The callback function is called whenever a trace message is generated.  This "
36193 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36194 msgstr ""
36195
36196 #. type: textblock
36197 #: ../src/guestfs.pod:1854
36198 msgid ""
36199 "If no callback is registered: the messages are sent to stderr.  You can "
36200 "override the printing of trace messages to stderr by setting up a callback."
36201 msgstr ""
36202
36203 #. type: =head3
36204 #: ../src/guestfs.pod:1860
36205 msgid "guestfs_set_event_callback"
36206 msgstr ""
36207
36208 #. type: verbatim
36209 #: ../src/guestfs.pod:1862
36210 #, no-wrap
36211 msgid ""
36212 " int guestfs_set_event_callback (guestfs_h *g,\n"
36213 "                                 guestfs_event_callback cb,\n"
36214 "                                 uint64_t event_bitmask,\n"
36215 "                                 int flags,\n"
36216 "                                 void *opaque);\n"
36217 "\n"
36218 msgstr ""
36219
36220 #. type: textblock
36221 #: ../src/guestfs.pod:1868
36222 msgid ""
36223 "This function registers a callback (C<cb>) for all event classes in the "
36224 "C<event_bitmask>."
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:1871
36229 msgid ""
36230 "For example, to register for all log message events, you could call this "
36231 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36232 "To register a single callback for all possible classes of events, use "
36233 "C<GUESTFS_EVENT_ALL>."
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:1877
36238 msgid "C<flags> should always be passed as 0."
36239 msgstr ""
36240
36241 #. type: textblock
36242 #: ../src/guestfs.pod:1879
36243 msgid ""
36244 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36245 "it for any purpose."
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:1882
36250 msgid ""
36251 "The return value is the event handle (an integer) which you can use to "
36252 "delete the callback (see below)."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:1885
36257 msgid ""
36258 "If there is an error, this function returns C<-1>, and sets the error in the "
36259 "handle in the usual way (see L</guestfs_last_error> etc.)"
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:1888
36264 msgid ""
36265 "Callbacks remain in effect until they are deleted, or until the handle is "
36266 "closed."
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:1891
36271 msgid ""
36272 "In the case where multiple callbacks are registered for a particular event "
36273 "class, all of the callbacks are called.  The order in which multiple "
36274 "callbacks are called is not defined."
36275 msgstr ""
36276
36277 #. type: =head3
36278 #: ../src/guestfs.pod:1895
36279 msgid "guestfs_delete_event_callback"
36280 msgstr ""
36281
36282 #. type: verbatim
36283 #: ../src/guestfs.pod:1897
36284 #, no-wrap
36285 msgid ""
36286 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36287 "\n"
36288 msgstr ""
36289
36290 #. type: textblock
36291 #: ../src/guestfs.pod:1899
36292 msgid ""
36293 "Delete a callback that was previously registered.  C<event_handle> should be "
36294 "the integer that was returned by a previous call to "
36295 "C<guestfs_set_event_callback> on the same handle."
36296 msgstr ""
36297
36298 #. type: =head3
36299 #: ../src/guestfs.pod:1903
36300 msgid "guestfs_event_callback"
36301 msgstr ""
36302
36303 #. type: verbatim
36304 #: ../src/guestfs.pod:1905
36305 #, no-wrap
36306 msgid ""
36307 " typedef void (*guestfs_event_callback) (\n"
36308 "                  guestfs_h *g,\n"
36309 "                  void *opaque,\n"
36310 "                  uint64_t event,\n"
36311 "                  int event_handle,\n"
36312 "                  int flags,\n"
36313 "                  const char *buf, size_t buf_len,\n"
36314 "                  const uint64_t *array, size_t array_len);\n"
36315 "\n"
36316 msgstr ""
36317
36318 #. type: textblock
36319 #: ../src/guestfs.pod:1914
36320 msgid ""
36321 "This is the type of the event callback function that you have to provide."
36322 msgstr ""
36323
36324 #. type: textblock
36325 #: ../src/guestfs.pod:1917
36326 msgid ""
36327 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36328 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36329 "handle, and C<flags> which in the current API you should ignore."
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:1921
36334 msgid ""
36335 "The remaining parameters contain the event payload (if any).  Each event may "
36336 "contain a payload, which usually relates to the event class, but for future "
36337 "proofing your code should be written to handle any payload for any event "
36338 "class."
36339 msgstr ""
36340
36341 #. type: textblock
36342 #: ../src/guestfs.pod:1926
36343 msgid ""
36344 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36345 "there is no message buffer).  Note that this message buffer can contain "
36346 "arbitrary 8 bit data, including NUL bytes."
36347 msgstr ""
36348
36349 #. type: textblock
36350 #: ../src/guestfs.pod:1930
36351 msgid ""
36352 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36353 "moment this is only used for progress messages."
36354 msgstr ""
36355
36356 #. type: =head3
36357 #: ../src/guestfs.pod:1933
36358 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:1935
36363 msgid ""
36364 "One motivation for the generic event API was to allow GUI programs to "
36365 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36366 "unconditionally to C<stderr>."
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:1939
36371 msgid ""
36372 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36373 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36374 "messages are not events; you must capture error messages separately)."
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../src/guestfs.pod:1944
36379 msgid ""
36380 "Programs have to set up a callback to capture the classes of events of "
36381 "interest:"
36382 msgstr ""
36383
36384 #. type: verbatim
36385 #: ../src/guestfs.pod:1947
36386 #, no-wrap
36387 msgid ""
36388 " int eh =\n"
36389 "   guestfs_set_event_callback\n"
36390 "     (g, message_callback,\n"
36391 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36392 "      GUESTFS_EVENT_TRACE,\n"
36393 "      0, NULL) == -1)\n"
36394 " if (eh == -1) {\n"
36395 "   // handle error in the usual way\n"
36396 " }\n"
36397 "\n"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:1957
36402 msgid ""
36403 "The callback can then direct messages to the appropriate place.  In this "
36404 "example, messages are directed to syslog:"
36405 msgstr ""
36406
36407 #. type: verbatim
36408 #: ../src/guestfs.pod:1960
36409 #, no-wrap
36410 msgid ""
36411 " static void\n"
36412 " message_callback (\n"
36413 "         guestfs_h *g,\n"
36414 "         void *opaque,\n"
36415 "         uint64_t event,\n"
36416 "         int event_handle,\n"
36417 "         int flags,\n"
36418 "         const char *buf, size_t buf_len,\n"
36419 "         const uint64_t *array, size_t array_len)\n"
36420 " {\n"
36421 "   const int priority = LOG_USER|LOG_INFO;\n"
36422 "   if (buf_len > 0)\n"
36423 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36424 " }\n"
36425 "\n"
36426 msgstr ""
36427
36428 #. type: =head1
36429 #: ../src/guestfs.pod:1975
36430 msgid "CANCELLING LONG TRANSFERS"
36431 msgstr ""
36432
36433 #. type: textblock
36434 #: ../src/guestfs.pod:1977
36435 msgid ""
36436 "Some operations can be cancelled by the caller while they are in progress.  "
36437 "Currently only operations that involve uploading or downloading data can be "
36438 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36439 "parameters in the generator)."
36440 msgstr ""
36441
36442 #. type: =head2
36443 #: ../src/guestfs.pod:1982
36444 msgid "guestfs_user_cancel"
36445 msgstr ""
36446
36447 #. type: verbatim
36448 #: ../src/guestfs.pod:1984
36449 #, no-wrap
36450 msgid ""
36451 " void guestfs_user_cancel (guestfs_h *g);\n"
36452 "\n"
36453 msgstr ""
36454
36455 #. type: textblock
36456 #: ../src/guestfs.pod:1986
36457 msgid ""
36458 "C<guestfs_user_cancel> cancels the current upload or download operation."
36459 msgstr ""
36460
36461 #. type: textblock
36462 #: ../src/guestfs.pod:1989
36463 msgid ""
36464 "Unlike most other libguestfs calls, this function is signal safe and thread "
36465 "safe.  You can call it from a signal handler or from another thread, without "
36466 "needing to do any locking."
36467 msgstr ""
36468
36469 #. type: textblock
36470 #: ../src/guestfs.pod:1993
36471 msgid ""
36472 "The transfer that was in progress (if there is one) will stop shortly "
36473 "afterwards, and will return an error.  The errno (see L</"
36474 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36475 "out if the operation was cancelled or failed because of another error."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:1999
36480 msgid ""
36481 "No cleanup is performed: for example, if a file was being uploaded then "
36482 "after cancellation there may be a partially uploaded file.  It is the "
36483 "caller's responsibility to clean up if necessary."
36484 msgstr ""
36485
36486 #. type: textblock
36487 #: ../src/guestfs.pod:2003
36488 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36489 msgstr ""
36490
36491 #. type: textblock
36492 #: ../src/guestfs.pod:2005
36493 msgid ""
36494 "In an interactive text-based program, you might call it from a C<SIGINT> "
36495 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36496 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36497 "receive the C<^C> signal)."
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:2010
36502 msgid ""
36503 "In a graphical program, when the main thread is displaying a progress bar "
36504 "with a cancel button, wire up the cancel button to call this function."
36505 msgstr ""
36506
36507 #. type: =head1
36508 #: ../src/guestfs.pod:2014
36509 msgid "PRIVATE DATA AREA"
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:2016
36514 msgid ""
36515 "You can attach named pieces of private data to the libguestfs handle, fetch "
36516 "them by name, and walk over them, for the lifetime of the handle.  This is "
36517 "called the private data area and is only available from the C API."
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:2021
36522 msgid "To attach a named piece of data, use the following call:"
36523 msgstr ""
36524
36525 #. type: verbatim
36526 #: ../src/guestfs.pod:2023
36527 #, no-wrap
36528 msgid ""
36529 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36530 "\n"
36531 msgstr ""
36532 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36533 "\n"
36534
36535 #. type: textblock
36536 #: ../src/guestfs.pod:2025
36537 msgid ""
36538 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36539 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36540 "overwritten."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:2029
36545 msgid ""
36546 "You can use any C<key> you want, but your key should I<not> start with an "
36547 "underscore character.  Keys beginning with an underscore character are "
36548 "reserved for internal libguestfs purposes (eg. for implementing language "
36549 "bindings).  It is recommended that you prefix the key with some unique "
36550 "string to avoid collisions with other users."
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../src/guestfs.pod:2035
36555 msgid "To retrieve the pointer, use:"
36556 msgstr ""
36557
36558 #. type: verbatim
36559 #: ../src/guestfs.pod:2037
36560 #, no-wrap
36561 msgid ""
36562 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36563 "\n"
36564 msgstr ""
36565 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36566 "\n"
36567
36568 #. type: textblock
36569 #: ../src/guestfs.pod:2039
36570 msgid ""
36571 "This function returns C<NULL> if either no data is found associated with "
36572 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36573 "C<NULL>."
36574 msgstr ""
36575
36576 #. type: textblock
36577 #: ../src/guestfs.pod:2043
36578 msgid ""
36579 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36580 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36581 "all.  In particular, libguestfs does I<not> try to free the data when the "
36582 "handle is closed.  If the data must be freed, then the caller must either "
36583 "free it before calling L</guestfs_close> or must set up a close callback to "
36584 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:2050
36589 msgid "To walk over all entries, use these two functions:"
36590 msgstr ""
36591
36592 #. type: verbatim
36593 #: ../src/guestfs.pod:2052
36594 #, no-wrap
36595 msgid ""
36596 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36597 "\n"
36598 msgstr ""
36599
36600 #. type: verbatim
36601 #: ../src/guestfs.pod:2054
36602 #, no-wrap
36603 msgid ""
36604 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36605 "\n"
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:2056
36610 msgid ""
36611 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36612 "not have any particular meaning -- keys are not returned in any defined "
36613 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36614 "corresponding data pointer is returned from the function.  C<NULL> is "
36615 "returned if there are no keys stored in the handle."
36616 msgstr ""
36617
36618 #. type: textblock
36619 #: ../src/guestfs.pod:2062
36620 msgid ""
36621 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36622 "value of this function is also C<NULL> is there are no further entries to "
36623 "return."
36624 msgstr ""
36625
36626 #. type: textblock
36627 #: ../src/guestfs.pod:2066
36628 msgid "Notes about walking over entries:"
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:2072
36633 msgid ""
36634 "You must not call C<guestfs_set_private> while walking over the entries."
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:2077
36639 msgid ""
36640 "The handle maintains an internal iterator which is reset when you call "
36641 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36642 "call C<guestfs_set_private>."
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:2083
36647 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36648 msgstr ""
36649
36650 #. type: verbatim
36651 #: ../src/guestfs.pod:2085
36652 #, no-wrap
36653 msgid ""
36654 " guestfs_set_private (g, key, NULL);\n"
36655 "\n"
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:2087
36660 msgid "then that C<key> is not returned when walking."
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../src/guestfs.pod:2091
36665 msgid ""
36666 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36667 "C<guestfs_next_private> or C<guestfs_set_private>."
36668 msgstr ""
36669
36670 #. type: textblock
36671 #: ../src/guestfs.pod:2097
36672 msgid ""
36673 "The following example code shows how to print all keys and data pointers "
36674 "that are associated with the handle C<g>:"
36675 msgstr ""
36676
36677 #. type: verbatim
36678 #: ../src/guestfs.pod:2100
36679 #, no-wrap
36680 msgid ""
36681 " const char *key;\n"
36682 " void *data = guestfs_first_private (g, &key);\n"
36683 " while (data != NULL)\n"
36684 "   {\n"
36685 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36686 "     data = guestfs_next_private (g, &key);\n"
36687 "   }\n"
36688 "\n"
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:2108
36693 msgid ""
36694 "More commonly you are only interested in keys that begin with an application-"
36695 "specific prefix C<foo_>.  Modify the loop like so:"
36696 msgstr ""
36697
36698 #. type: verbatim
36699 #: ../src/guestfs.pod:2111
36700 #, no-wrap
36701 msgid ""
36702 " const char *key;\n"
36703 " void *data = guestfs_first_private (g, &key);\n"
36704 " while (data != NULL)\n"
36705 "   {\n"
36706 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36707 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36708 "     data = guestfs_next_private (g, &key);\n"
36709 "   }\n"
36710 "\n"
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:2120
36715 msgid ""
36716 "If you need to modify keys while walking, then you have to jump back to the "
36717 "beginning of the loop.  For example, to delete all keys prefixed with "
36718 "C<foo_>:"
36719 msgstr ""
36720
36721 #. type: verbatim
36722 #: ../src/guestfs.pod:2124
36723 #, no-wrap
36724 msgid ""
36725 "  const char *key;\n"
36726 "  void *data;\n"
36727 " again:\n"
36728 "  data = guestfs_first_private (g, &key);\n"
36729 "  while (data != NULL)\n"
36730 "    {\n"
36731 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36732 "        {\n"
36733 "          guestfs_set_private (g, key, NULL);\n"
36734 "          /* note that 'key' pointer is now invalid, and so is\n"
36735 "             the internal iterator */\n"
36736 "          goto again;\n"
36737 "        }\n"
36738 "      data = guestfs_next_private (g, &key);\n"
36739 "    }\n"
36740 "\n"
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:2140
36745 msgid ""
36746 "Note that the above loop is guaranteed to terminate because the keys are "
36747 "being deleted, but other manipulations of keys within the loop might not "
36748 "terminate unless you also maintain an indication of which keys have been "
36749 "visited."
36750 msgstr ""
36751
36752 #. type: =end
36753 #: ../src/guestfs.pod:2145 ../src/guestfs.pod:2150
36754 msgid "html"
36755 msgstr "html"
36756
36757 #. type: textblock
36758 #: ../src/guestfs.pod:2147
36759 msgid ""
36760 "<!-- old anchor for the next section --> <a name="
36761 "\"state_machine_and_low_level_event_api\"/>"
36762 msgstr ""
36763 "<!-- old anchor for the next section --> <a name="
36764 "\"state_machine_and_low_level_event_api\"/>"
36765
36766 #. type: =head1
36767 #: ../src/guestfs.pod:2152
36768 msgid "ARCHITECTURE"
36769 msgstr "АРХІТЕКТУРА"
36770
36771 #. type: textblock
36772 #: ../src/guestfs.pod:2154
36773 msgid ""
36774 "Internally, libguestfs is implemented by running an appliance (a special "
36775 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36776 "process of the main program."
36777 msgstr ""
36778
36779 #. type: verbatim
36780 #: ../src/guestfs.pod:2158
36781 #, no-wrap
36782 msgid ""
36783 "  ___________________\n"
36784 " /                   \\\n"
36785 " | main program      |\n"
36786 " |                   |\n"
36787 " |                   |           child process / appliance\n"
36788 " |                   |           __________________________\n"
36789 " |                   |          / qemu                     \\\n"
36790 " +-------------------+   RPC    |      +-----------------+ |\n"
36791 " | libguestfs     <--------------------> guestfsd        | |\n"
36792 " |                   |          |      +-----------------+ |\n"
36793 " \\___________________/          |      | Linux kernel    | |\n"
36794 "                                |      +--^--------------+ |\n"
36795 "                                \\_________|________________/\n"
36796 "                                          |\n"
36797 "                                   _______v______\n"
36798 "                                  /              \\\n"
36799 "                                  | Device or    |\n"
36800 "                                  | disk image   |\n"
36801 "                                  \\______________/\n"
36802 "\n"
36803 msgstr ""
36804
36805 #. type: textblock
36806 #: ../src/guestfs.pod:2178
36807 msgid ""
36808 "The library, linked to the main program, creates the child process and hence "
36809 "the appliance in the L</guestfs_launch> function."
36810 msgstr ""
36811
36812 #. type: textblock
36813 #: ../src/guestfs.pod:2181
36814 msgid ""
36815 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36816 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36817 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36818 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36819 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36820 "attached to the qemu process which translates device access by the "
36821 "appliance's Linux kernel into accesses to the image."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:2190
36826 msgid ""
36827 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36828 "Although the disk image you are attached to might also be used by some "
36829 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36830 "care if both libguestfs's qemu process and your virtual machine are trying "
36831 "to update the disk image at the same time, since these usually results in "
36832 "massive disk corruption)."
36833 msgstr ""
36834
36835 #. type: =head1
36836 #: ../src/guestfs.pod:2197
36837 msgid "STATE MACHINE"
36838 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36839
36840 #. type: textblock
36841 #: ../src/guestfs.pod:2199
36842 msgid "libguestfs uses a state machine to model the child process:"
36843 msgstr ""
36844
36845 #. type: verbatim
36846 #: ../src/guestfs.pod:2201
36847 #, no-wrap
36848 msgid ""
36849 "                         |\n"
36850 "                    guestfs_create\n"
36851 "                         |\n"
36852 "                         |\n"
36853 "                     ____V_____\n"
36854 "                    /          \\\n"
36855 "                    |  CONFIG  |\n"
36856 "                    \\__________/\n"
36857 "                     ^ ^   ^  \\\n"
36858 "                    /  |    \\  \\ guestfs_launch\n"
36859 "                   /   |    _\\__V______\n"
36860 "                  /    |   /           \\\n"
36861 "                 /     |   | LAUNCHING |\n"
36862 "                /      |   \\___________/\n"
36863 "               /       |       /\n"
36864 "              /        |  guestfs_launch\n"
36865 "             /         |     /\n"
36866 "    ______  /        __|____V\n"
36867 "   /      \\ ------> /        \\\n"
36868 "   | BUSY |         | READY  |\n"
36869 "   \\______/ <------ \\________/\n"
36870 "\n"
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:2223
36875 msgid ""
36876 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36877 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36878 "(3) alternating between READY and BUSY as commands are issued to, and "
36879 "carried out by, the child process."
36880 msgstr ""
36881
36882 #. type: textblock
36883 #: ../src/guestfs.pod:2228
36884 msgid ""
36885 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36886 "asynchronously at any time (eg. due to some internal error), and that causes "
36887 "the state to transition back to CONFIG."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:2232
36892 msgid ""
36893 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36894 "issued when in the CONFIG state."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:2235
36899 msgid ""
36900 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36901 "L</guestfs_launch> blocks until the child process is READY to accept "
36902 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36903 "moves the state from CONFIG to LAUNCHING while it is running."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:2241
36908 msgid ""
36909 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36910 "state.  These API calls block waiting for the command to be carried out (ie. "
36911 "the state to transition to BUSY and then back to READY).  There are no non-"
36912 "blocking versions, and no way to issue more than one command per handle at "
36913 "the same time."
36914 msgstr ""
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:2247
36918 msgid ""
36919 "Finally, the child process sends asynchronous messages back to the main "
36920 "program, such as kernel log messages.  You can register a callback to "
36921 "receive these messages."
36922 msgstr ""
36923
36924 #. type: =head1
36925 #: ../src/guestfs.pod:2251
36926 msgid "INTERNALS"
36927 msgstr ""
36928
36929 #. type: =head2
36930 #: ../src/guestfs.pod:2253
36931 msgid "APPLIANCE BOOT PROCESS"
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../src/guestfs.pod:2255
36936 msgid ""
36937 "This process has evolved and continues to evolve.  The description here "
36938 "corresponds only to the current version of libguestfs and is provided for "
36939 "information only."
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:2259
36944 msgid ""
36945 "In order to follow the stages involved below, enable libguestfs debugging "
36946 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36947 msgstr ""
36948
36949 #. type: =item
36950 #: ../src/guestfs.pod:2264
36951 #, fuzzy
36952 #| msgid "C<appliance>"
36953 msgid "Create the appliance"
36954 msgstr "C<appliance>"
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:2266
36958 msgid ""
36959 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36960 "initrd and the appliance."
36961 msgstr ""
36962
36963 #. type: textblock
36964 #: ../src/guestfs.pod:2269
36965 msgid ""
36966 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36967 "directory if C<TMPDIR> is set)."
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../src/guestfs.pod:2272
36972 msgid ""
36973 "For a complete description of how the appliance is created and cached, read "
36974 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36975 msgstr ""
36976
36977 #. type: =item
36978 #: ../src/guestfs.pod:2276
36979 msgid "Start qemu and boot the kernel"
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../src/guestfs.pod:2278
36984 msgid "qemu is invoked to boot the kernel."
36985 msgstr ""
36986
36987 #. type: =item
36988 #: ../src/guestfs.pod:2280
36989 msgid "Run the initrd"
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:2282
36994 msgid ""
36995 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36996 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36997 "order that the appliance itself can be mounted and started."
36998 msgstr ""
36999
37000 #. type: textblock
37001 #: ../src/guestfs.pod:2286
37002 msgid ""
37003 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37004 "initrd>."
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:2289
37009 msgid ""
37010 "When the initrd has started you will see messages showing that kernel "
37011 "modules are being loaded, similar to this:"
37012 msgstr ""
37013
37014 #. type: verbatim
37015 #: ../src/guestfs.pod:2292
37016 #, no-wrap
37017 msgid ""
37018 " febootstrap: ext2 mini initrd starting up\n"
37019 " febootstrap: mounting /sys\n"
37020 " febootstrap: internal insmod libcrc32c.ko\n"
37021 " febootstrap: internal insmod crc32c-intel.ko\n"
37022 "\n"
37023 msgstr ""
37024
37025 #. type: =item
37026 #: ../src/guestfs.pod:2297
37027 msgid "Find and mount the appliance device"
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:2299
37032 msgid ""
37033 "The appliance is a sparse file containing an ext2 filesystem which contains "
37034 "a familiar (although reduced in size) Linux operating system.  It would "
37035 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:2303
37040 msgid ""
37041 "The regular disks being inspected by libguestfs are the first devices "
37042 "exposed by qemu (eg. as C</dev/vda>)."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:2306
37047 msgid ""
37048 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37049 "there was only one regular disk)."
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:2309
37054 msgid ""
37055 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37056 "and switch root into the appliance, and run C</init> from the appliance."
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:2313
37061 msgid "If this works successfully you will see messages such as:"
37062 msgstr ""
37063
37064 #. type: verbatim
37065 #: ../src/guestfs.pod:2315
37066 #, no-wrap
37067 msgid ""
37068 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37069 " febootstrap: creating /dev/root as block special 252:16\n"
37070 " febootstrap: mounting new root on /root\n"
37071 " febootstrap: chroot\n"
37072 " Starting /init script ...\n"
37073 "\n"
37074 msgstr ""
37075
37076 #. type: textblock
37077 #: ../src/guestfs.pod:2321
37078 msgid ""
37079 "Note that C<Starting /init script ...> indicates that the appliance's init "
37080 "script is now running."
37081 msgstr ""
37082
37083 #. type: =item
37084 #: ../src/guestfs.pod:2324
37085 msgid "Initialize the appliance"
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../src/guestfs.pod:2326
37090 msgid ""
37091 "The appliance itself now initializes itself.  This involves starting certain "
37092 "processes like C<udev>, possibly printing some debug information, and "
37093 "finally running the daemon (C<guestfsd>)."
37094 msgstr ""
37095
37096 #. type: =item
37097 #: ../src/guestfs.pod:2330
37098 #, fuzzy
37099 #| msgid "C<daemon>"
37100 msgid "The daemon"
37101 msgstr "C<daemon>"
37102
37103 #. type: textblock
37104 #: ../src/guestfs.pod:2332
37105 msgid ""
37106 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37107 "should see:"
37108 msgstr ""
37109
37110 #. type: verbatim
37111 #: ../src/guestfs.pod:2335
37112 #, fuzzy, no-wrap
37113 #| msgid ""
37114 #| " set-verbose true|false\n"
37115 #| "\n"
37116 msgid ""
37117 " verbose daemon enabled\n"
37118 "\n"
37119 msgstr ""
37120 " set-verbose true|false\n"
37121 "\n"
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:2337
37125 msgid ""
37126 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37127 "connected on the other end to the library."
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../src/guestfs.pod:2340
37132 msgid ""
37133 "The daemon connects to this port (and hence to the library) and sends a four "
37134 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37135 "protocol (see below)."
37136 msgstr ""
37137
37138 #. type: =head2
37139 #: ../src/guestfs.pod:2346
37140 msgid "COMMUNICATION PROTOCOL"
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:2348
37145 msgid ""
37146 "Don't rely on using this protocol directly.  This section documents how it "
37147 "currently works, but it may change at any time."
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:2351
37152 msgid ""
37153 "The protocol used to talk between the library and the daemon running inside "
37154 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37155 "1014, RFC 1832, RFC 4506)."
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:2355
37160 msgid ""
37161 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37162 "this file is automatically generated)."
37163 msgstr ""
37164
37165 #. type: textblock
37166 #: ../src/guestfs.pod:2358
37167 msgid ""
37168 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37169 "and C<FileOut> parameters, which are handled with very simple request/reply "
37170 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37171 "parameters, which use the same request and reply messages, but they may also "
37172 "be followed by files sent using a chunked encoding."
37173 msgstr ""
37174
37175 #. type: =head3
37176 #: ../src/guestfs.pod:2365
37177 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../src/guestfs.pod:2367
37182 msgid "For ordinary functions, the request message is:"
37183 msgstr ""
37184
37185 #. type: verbatim
37186 #: ../src/guestfs.pod:2369
37187 #, no-wrap
37188 msgid ""
37189 " total length (header + arguments,\n"
37190 "      but not including the length word itself)\n"
37191 " struct guestfs_message_header (encoded as XDR)\n"
37192 " struct guestfs_<foo>_args (encoded as XDR)\n"
37193 "\n"
37194 msgstr ""
37195
37196 #. type: textblock
37197 #: ../src/guestfs.pod:2374
37198 msgid ""
37199 "The total length field allows the daemon to allocate a fixed size buffer "
37200 "into which it slurps the rest of the message.  As a result, the total length "
37201 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37202 "effective size of any request is limited to somewhere under this size."
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:2380
37207 msgid ""
37208 "Note also that many functions don't take any arguments, in which case the "
37209 "C<guestfs_I<foo>_args> is completely omitted."
37210 msgstr ""
37211
37212 #. type: textblock
37213 #: ../src/guestfs.pod:2383
37214 msgid ""
37215 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37216 "receiver knows what type of args structure to expect, or none at all."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:2387
37221 msgid ""
37222 "For functions that take optional arguments, the optional arguments are "
37223 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37224 "arguments.  A bitmask in the header indicates which optional arguments are "
37225 "meaningful.  The bitmask is also checked to see if it contains bits set "
37226 "which the daemon does not know about (eg. if more optional arguments were "
37227 "added in a later version of the library), and this causes the call to be "
37228 "rejected."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:2395
37233 msgid "The reply message for ordinary functions is:"
37234 msgstr ""
37235
37236 #. type: verbatim
37237 #: ../src/guestfs.pod:2397
37238 #, no-wrap
37239 msgid ""
37240 " total length (header + ret,\n"
37241 "      but not including the length word itself)\n"
37242 " struct guestfs_message_header (encoded as XDR)\n"
37243 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37244 "\n"
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:2402
37249 msgid ""
37250 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37251 "functions that return no formal return values."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../src/guestfs.pod:2405
37256 msgid ""
37257 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../src/guestfs.pod:2408
37262 msgid ""
37263 "In the case of an error, a flag is set in the header, and the reply message "
37264 "is slightly changed:"
37265 msgstr ""
37266
37267 #. type: verbatim
37268 #: ../src/guestfs.pod:2411
37269 #, no-wrap
37270 msgid ""
37271 " total length (header + error,\n"
37272 "      but not including the length word itself)\n"
37273 " struct guestfs_message_header (encoded as XDR)\n"
37274 " struct guestfs_message_error (encoded as XDR)\n"
37275 "\n"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../src/guestfs.pod:2416
37280 msgid ""
37281 "The C<guestfs_message_error> structure contains the error message as a "
37282 "string."
37283 msgstr ""
37284
37285 #. type: =head3
37286 #: ../src/guestfs.pod:2419
37287 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37288 msgstr ""
37289
37290 #. type: textblock
37291 #: ../src/guestfs.pod:2421
37292 msgid ""
37293 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37294 "The normal request message is sent (see above).  However this is followed by "
37295 "a sequence of file chunks."
37296 msgstr ""
37297
37298 #. type: verbatim
37299 #: ../src/guestfs.pod:2425
37300 #, no-wrap
37301 msgid ""
37302 " total length (header + arguments,\n"
37303 "      but not including the length word itself,\n"
37304 "      and not including the chunks)\n"
37305 " struct guestfs_message_header (encoded as XDR)\n"
37306 " struct guestfs_<foo>_args (encoded as XDR)\n"
37307 " sequence of chunks for FileIn param #0\n"
37308 " sequence of chunks for FileIn param #1 etc.\n"
37309 "\n"
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:2433
37314 msgid "The \"sequence of chunks\" is:"
37315 msgstr ""
37316
37317 #. type: verbatim
37318 #: ../src/guestfs.pod:2435
37319 #, no-wrap
37320 msgid ""
37321 " length of chunk (not including length word itself)\n"
37322 " struct guestfs_chunk (encoded as XDR)\n"
37323 " length of chunk\n"
37324 " struct guestfs_chunk (encoded as XDR)\n"
37325 "   ...\n"
37326 " length of chunk\n"
37327 " struct guestfs_chunk (with data.data_len == 0)\n"
37328 "\n"
37329 msgstr ""
37330
37331 #. type: textblock
37332 #: ../src/guestfs.pod:2443
37333 msgid ""
37334 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37335 "is set in the final chunk to indicate either successful completion or early "
37336 "cancellation."
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:2447
37341 msgid ""
37342 "At time of writing there are no functions that have more than one FileIn "
37343 "parameter.  However this is (theoretically) supported, by sending the "
37344 "sequence of chunks for each FileIn parameter one after another (from left to "
37345 "right)."
37346 msgstr ""
37347
37348 #. type: textblock
37349 #: ../src/guestfs.pod:2452
37350 msgid ""
37351 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37352 "transfer.  The library does this by sending a chunk with a special flag set "
37353 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37354 "RPC, does I<not> send any reply, and goes back to reading the next request."
37355 msgstr ""
37356
37357 #. type: textblock
37358 #: ../src/guestfs.pod:2458
37359 msgid ""
37360 "The daemon may also cancel.  It does this by writing a special word "
37361 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37362 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37363 "cancel chunk).  The special word is chosen so that even if cancellation "
37364 "happens right at the end of the transfer (after the library has finished "
37365 "writing and has started listening for the reply), the \"spurious\" cancel "
37366 "flag will not be confused with the reply message."
37367 msgstr ""
37368
37369 #. type: textblock
37370 #: ../src/guestfs.pod:2467
37371 msgid ""
37372 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37373 "limit), and also files where the size is not known in advance (eg. from "
37374 "pipes or sockets).  However the chunks are rather small "
37375 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37376 "to keep much in memory."
37377 msgstr ""
37378
37379 #. type: =head3
37380 #: ../src/guestfs.pod:2473
37381 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../src/guestfs.pod:2475
37386 msgid ""
37387 "The protocol for FileOut parameters is exactly the same as for FileIn "
37388 "parameters, but with the roles of daemon and library reversed."
37389 msgstr ""
37390
37391 #. type: verbatim
37392 #: ../src/guestfs.pod:2478
37393 #, no-wrap
37394 msgid ""
37395 " total length (header + ret,\n"
37396 "      but not including the length word itself,\n"
37397 "      and not including the chunks)\n"
37398 " struct guestfs_message_header (encoded as XDR)\n"
37399 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37400 " sequence of chunks for FileOut param #0\n"
37401 " sequence of chunks for FileOut param #1 etc.\n"
37402 "\n"
37403 msgstr ""
37404
37405 #. type: =head3
37406 #: ../src/guestfs.pod:2486
37407 msgid "INITIAL MESSAGE"
37408 msgstr ""
37409
37410 #. type: textblock
37411 #: ../src/guestfs.pod:2488
37412 msgid ""
37413 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37414 "which indicates that the guest and daemon is alive.  This is what L</"
37415 "guestfs_launch> waits for."
37416 msgstr ""
37417
37418 #. type: =head3
37419 #: ../src/guestfs.pod:2492
37420 msgid "PROGRESS NOTIFICATION MESSAGES"
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../src/guestfs.pod:2494
37425 msgid ""
37426 "The daemon may send progress notification messages at any time.  These are "
37427 "distinguished by the normal length word being replaced by "
37428 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37429 msgstr ""
37430
37431 #. type: textblock
37432 #: ../src/guestfs.pod:2498
37433 msgid ""
37434 "The library turns them into progress callbacks (see L</"
37435 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37436 "if not."
37437 msgstr ""
37438
37439 #. type: textblock
37440 #: ../src/guestfs.pod:2502
37441 msgid ""
37442 "The daemon self-limits the frequency of progress messages it sends (see "
37443 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37444 "messages."
37445 msgstr ""
37446
37447 #. type: =head1
37448 #: ../src/guestfs.pod:2506
37449 msgid "LIBGUESTFS VERSION NUMBERS"
37450 msgstr ""
37451
37452 #. type: textblock
37453 #: ../src/guestfs.pod:2508
37454 msgid ""
37455 "Since April 2010, libguestfs has started to make separate development and "
37456 "stable releases, along with corresponding branches in our git repository.  "
37457 "These separate releases can be identified by version number:"
37458 msgstr ""
37459
37460 #. type: verbatim
37461 #: ../src/guestfs.pod:2513
37462 #, no-wrap
37463 msgid ""
37464 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37465 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37466 "       |\n"
37467 "       v\n"
37468 " 1  .  3  .  5\n"
37469 " ^           ^\n"
37470 " |           |\n"
37471 " |           `-------- sub-version\n"
37472 " |\n"
37473 " `------ always '1' because we don't change the ABI\n"
37474 "\n"
37475 msgstr ""
37476
37477 #. type: textblock
37478 #: ../src/guestfs.pod:2524
37479 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37480 msgstr ""
37481
37482 #. type: textblock
37483 #: ../src/guestfs.pod:2526
37484 msgid ""
37485 "As time passes we cherry pick fixes from the development branch and backport "
37486 "those into the stable branch, the effect being that the stable branch should "
37487 "get more stable and less buggy over time.  So the stable releases are ideal "
37488 "for people who don't need new features but would just like the software to "
37489 "work."
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:2532
37494 msgid "Our criteria for backporting changes are:"
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:2538
37499 msgid ""
37500 "Documentation changes which don't affect any code are backported unless the "
37501 "documentation refers to a future feature which is not in stable."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:2544
37506 msgid ""
37507 "Bug fixes which are not controversial, fix obvious problems, and have been "
37508 "well tested are backported."
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:2549
37513 msgid ""
37514 "Simple rearrangements of code which shouldn't affect how it works get "
37515 "backported.  This is so that the code in the two branches doesn't get too "
37516 "far out of step, allowing us to backport future fixes more easily."
37517 msgstr ""
37518
37519 #. type: textblock
37520 #: ../src/guestfs.pod:2555
37521 msgid ""
37522 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37523 "exceptional case: the new feature is required in order to implement an "
37524 "important bug fix."
37525 msgstr ""
37526
37527 #. type: textblock
37528 #: ../src/guestfs.pod:2561
37529 msgid ""
37530 "A new stable branch starts when we think the new features in development are "
37531 "substantial and compelling enough over the current stable branch to warrant "
37532 "it.  When that happens we create new stable and development versions 1.N.0 "
37533 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37534 "stable at this point, but by backporting fixes from development, that branch "
37535 "will stabilize over time."
37536 msgstr ""
37537
37538 #. type: =head1
37539 #: ../src/guestfs.pod:2569
37540 msgid "EXTENDING LIBGUESTFS"
37541 msgstr ""
37542
37543 #. type: =head2
37544 #: ../src/guestfs.pod:2571
37545 msgid "ADDING A NEW API ACTION"
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:2573
37550 msgid ""
37551 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37552 "documentation) are generated, and this makes it easy to extend the "
37553 "libguestfs API."
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:2577
37558 msgid "To add a new API action there are two changes:"
37559 msgstr ""
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:2583
37563 msgid ""
37564 "You need to add a description of the call (name, parameters, return type, "
37565 "tests, documentation) to C<generator/generator_actions.ml>."
37566 msgstr ""
37567
37568 #. type: textblock
37569 #: ../src/guestfs.pod:2586
37570 msgid ""
37571 "There are two sorts of API action, depending on whether the call goes "
37572 "through to the daemon in the appliance, or is serviced entirely by the "
37573 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37574 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37575 "an example of the latter, since a trace flag is maintained in the handle and "
37576 "all tracing is done on the library side."
37577 msgstr ""
37578
37579 #. type: textblock
37580 #: ../src/guestfs.pod:2594
37581 msgid ""
37582 "Most new actions are of the first type, and get added to the "
37583 "C<daemon_functions> list.  Each function has a unique procedure number used "
37584 "in the RPC protocol which is assigned to that action when we publish "
37585 "libguestfs and cannot be reused.  Take the latest procedure number and "
37586 "increment it."
37587 msgstr ""
37588
37589 #. type: textblock
37590 #: ../src/guestfs.pod:2600
37591 msgid ""
37592 "For library-only actions of the second type, add to the "
37593 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37594 "library and do not travel over the RPC mechanism to the daemon, these "
37595 "functions do not need a procedure number, and so the procedure number is set "
37596 "to C<-1>."
37597 msgstr ""
37598
37599 #. type: textblock
37600 #: ../src/guestfs.pod:2608
37601 msgid "Implement the action (in C):"
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../src/guestfs.pod:2610
37606 msgid ""
37607 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37608 "C<daemon/> directory."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:2613
37613 msgid ""
37614 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37615 "(note: double underscore) in the C<src/> directory."
37616 msgstr ""
37617
37618 #. type: textblock
37619 #: ../src/guestfs.pod:2616
37620 msgid "In either case, use another function as an example of what to do."
37621 msgstr ""
37622
37623 #. type: textblock
37624 #: ../src/guestfs.pod:2620
37625 msgid "After making these changes, use C<make> to compile."
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:2622
37630 msgid ""
37631 "Note that you don't need to implement the RPC, language bindings, manual "
37632 "pages or anything else.  It's all automatically generated from the OCaml "
37633 "description."
37634 msgstr ""
37635
37636 #. type: =head2
37637 #: ../src/guestfs.pod:2626
37638 msgid "ADDING TESTS FOR AN API ACTION"
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:2628
37643 msgid ""
37644 "You can supply zero or as many tests as you want per API call.  The tests "
37645 "can either be added as part of the API description (C<generator/"
37646 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37647 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37648 "slower, so if possible use the first method."
37649 msgstr ""
37650
37651 #. type: textblock
37652 #: ../src/guestfs.pod:2634
37653 msgid ""
37654 "The following describes the test environment used when you add an API test "
37655 "in C<generator_actions.ml>."
37656 msgstr ""
37657
37658 #. type: textblock
37659 #: ../src/guestfs.pod:2637
37660 msgid "The test environment has 4 block devices:"
37661 msgstr ""
37662
37663 #. type: =item
37664 #: ../src/guestfs.pod:2641
37665 msgid "C</dev/sda> 500MB"
37666 msgstr "C</dev/sda> 500 МБ"
37667
37668 #. type: textblock
37669 #: ../src/guestfs.pod:2643
37670 msgid "General block device for testing."
37671 msgstr ""
37672
37673 #. type: =item
37674 #: ../src/guestfs.pod:2645
37675 msgid "C</dev/sdb> 50MB"
37676 msgstr "C</dev/sdb> 50 МБ"
37677
37678 #. type: textblock
37679 #: ../src/guestfs.pod:2647
37680 msgid ""
37681 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37682 "operations."
37683 msgstr ""
37684
37685 #. type: =item
37686 #: ../src/guestfs.pod:2650
37687 msgid "C</dev/sdc> 10MB"
37688 msgstr "C</dev/sdc> 10 МБ"
37689
37690 #. type: textblock
37691 #: ../src/guestfs.pod:2652
37692 msgid "Used in a few tests where two block devices are needed."
37693 msgstr ""
37694
37695 #. type: =item
37696 #: ../src/guestfs.pod:2654
37697 msgid "C</dev/sdd>"
37698 msgstr "C</dev/sdd>"
37699
37700 #. type: textblock
37701 #: ../src/guestfs.pod:2656
37702 msgid "ISO with fixed content (see C<images/test.iso>)."
37703 msgstr ""
37704
37705 #. type: textblock
37706 #: ../src/guestfs.pod:2660
37707 msgid ""
37708 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37709 "appliance and block devices are reused between tests.  So don't try testing "
37710 "L</guestfs_kill_subprocess> :-x"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:2664
37715 msgid ""
37716 "Each test starts with an initial scenario, selected using one of the "
37717 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37718 "initialize the disks mentioned above in a particular way as documented in "
37719 "C<generator_types.ml>.  You should not assume anything about the previous "
37720 "contents of other disks that are not initialized."
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../src/guestfs.pod:2670
37725 msgid ""
37726 "You can add a prerequisite clause to any individual test.  This is a run-"
37727 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37728 "testing a command which might not work on all variations of libguestfs "
37729 "builds.  A test that has prerequisite of C<Always> means to run "
37730 "unconditionally."
37731 msgstr ""
37732
37733 #. type: textblock
37734 #: ../src/guestfs.pod:2676
37735 msgid ""
37736 "In addition, packagers can skip individual tests by setting environment "
37737 "variables before running C<make check>."
37738 msgstr ""
37739
37740 #. type: verbatim
37741 #: ../src/guestfs.pod:2679
37742 #, no-wrap
37743 msgid ""
37744 " SKIP_TEST_<CMD>_<NUM>=1\n"
37745 "\n"
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../src/guestfs.pod:2681
37750 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../src/guestfs.pod:2683
37755 msgid "or:"
37756 msgstr "або:"
37757
37758 #. type: verbatim
37759 #: ../src/guestfs.pod:2685
37760 #, no-wrap
37761 msgid ""
37762 " SKIP_TEST_<CMD>=1\n"
37763 "\n"
37764 msgstr ""
37765
37766 #. type: textblock
37767 #: ../src/guestfs.pod:2687
37768 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37769 msgstr ""
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:2689
37773 msgid "Packagers can run only certain tests by setting for example:"
37774 msgstr ""
37775
37776 #. type: verbatim
37777 #: ../src/guestfs.pod:2691
37778 #, no-wrap
37779 msgid ""
37780 " TEST_ONLY=\"vfs_type zerofree\"\n"
37781 "\n"
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../src/guestfs.pod:2693
37786 msgid ""
37787 "See C<capitests/tests.c> for more details of how these environment variables "
37788 "work."
37789 msgstr ""
37790
37791 #. type: =head2
37792 #: ../src/guestfs.pod:2696
37793 msgid "DEBUGGING NEW API ACTIONS"
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:2698
37798 msgid "Test new actions work before submitting them."
37799 msgstr ""
37800
37801 #. type: textblock
37802 #: ../src/guestfs.pod:2700
37803 msgid "You can use guestfish to try out new commands."
37804 msgstr ""
37805
37806 #. type: textblock
37807 #: ../src/guestfs.pod:2702
37808 msgid ""
37809 "Debugging the daemon is a problem because it runs inside a minimal "
37810 "environment.  However you can fprintf messages in the daemon to stderr, and "
37811 "they will show up if you use C<guestfish -v>."
37812 msgstr ""
37813
37814 #. type: =head2
37815 #: ../src/guestfs.pod:2706
37816 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:2708
37821 msgid ""
37822 "Our C source code generally adheres to some basic code-formatting "
37823 "conventions.  The existing code base is not totally consistent on this "
37824 "front, but we do prefer that contributed code be formatted similarly.  In "
37825 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37826 "indentation level, and other than that, follow the K&R style."
37827 msgstr ""
37828
37829 #. type: textblock
37830 #: ../src/guestfs.pod:2714
37831 msgid ""
37832 "If you use Emacs, add the following to one of one of your start-up files (e."
37833 "g., ~/.emacs), to help ensure that you get indentation right:"
37834 msgstr ""
37835
37836 #. type: verbatim
37837 #: ../src/guestfs.pod:2717
37838 #, no-wrap
37839 msgid ""
37840 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37841 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37842 " (add-hook 'find-file-hook\n"
37843 "     '(lambda () (if (and buffer-file-name\n"
37844 "                          (string-match \"/libguestfs\\\\>\"\n"
37845 "                              (buffer-file-name))\n"
37846 "                          (not (string-equal mode-name \"Change Log\"))\n"
37847 "                          (not (string-equal mode-name \"Makefile\")))\n"
37848 "                     (setq indent-tabs-mode nil))))\n"
37849 " \n"
37850 msgstr ""
37851
37852 #. type: verbatim
37853 #: ../src/guestfs.pod:2727
37854 #, no-wrap
37855 msgid ""
37856 " ;;; When editing C sources in libguestfs, use this style.\n"
37857 " (defun libguestfs-c-mode ()\n"
37858 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37859 "   (interactive)\n"
37860 "   (c-set-style \"K&R\")\n"
37861 "   (setq c-indent-level 2)\n"
37862 "   (setq c-basic-offset 2))\n"
37863 " (add-hook 'c-mode-hook\n"
37864 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37865 "                               (buffer-file-name))\n"
37866 "                           (libguestfs-c-mode))))\n"
37867 "\n"
37868 msgstr ""
37869
37870 #. type: textblock
37871 #: ../src/guestfs.pod:2739
37872 msgid "Enable warnings when compiling (and fix any problems this finds):"
37873 msgstr ""
37874
37875 #. type: verbatim
37876 #: ../src/guestfs.pod:2742
37877 #, no-wrap
37878 msgid ""
37879 " ./configure --enable-gcc-warnings\n"
37880 "\n"
37881 msgstr ""
37882 " ./configure --enable-gcc-warnings\n"
37883 "\n"
37884
37885 #. type: textblock
37886 #: ../src/guestfs.pod:2744
37887 msgid "Useful targets are:"
37888 msgstr ""
37889
37890 #. type: verbatim
37891 #: ../src/guestfs.pod:2746
37892 #, no-wrap
37893 msgid ""
37894 " make syntax-check  # checks the syntax of the C code\n"
37895 " make check         # runs the test suite\n"
37896 "\n"
37897 msgstr ""
37898
37899 #. type: =head2
37900 #: ../src/guestfs.pod:2749
37901 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:2751
37906 msgid ""
37907 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37908 "which are used to do shell quoting."
37909 msgstr ""
37910
37911 #. type: =item
37912 #: ../src/guestfs.pod:2756
37913 msgid "%Q"
37914 msgstr "%Q"
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:2758
37918 msgid ""
37919 "Simple shell quoted string.  Any spaces or other shell characters are "
37920 "escaped for you."
37921 msgstr ""
37922
37923 #. type: =item
37924 #: ../src/guestfs.pod:2761
37925 msgid "%R"
37926 msgstr "%R"
37927
37928 #. type: textblock
37929 #: ../src/guestfs.pod:2763
37930 msgid ""
37931 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37932 "the sysroot."
37933 msgstr ""
37934
37935 #. type: verbatim
37936 #: ../src/guestfs.pod:2770
37937 #, no-wrap
37938 msgid ""
37939 " asprintf (&cmd, \"cat %R\", path);\n"
37940 "\n"
37941 msgstr ""
37942
37943 #. type: textblock
37944 #: ../src/guestfs.pod:2772
37945 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:2774
37950 msgid ""
37951 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37952 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37953 "they are not passed via the shell (instead, straight to exec).  You probably "
37954 "want to use the C<sysroot_path()> function however."
37955 msgstr ""
37956
37957 #. type: =head2
37958 #: ../src/guestfs.pod:2780
37959 msgid "SUBMITTING YOUR NEW API ACTIONS"
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../src/guestfs.pod:2782
37964 msgid ""
37965 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37966 "libguestfs> and CC to L<rjones@redhat.com>."
37967 msgstr ""
37968
37969 #. type: =head2
37970 #: ../src/guestfs.pod:2786
37971 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:2788
37976 msgid "We support i18n (gettext anyhow) in the library."
37977 msgstr ""
37978
37979 #. type: textblock
37980 #: ../src/guestfs.pod:2790
37981 msgid ""
37982 "However many messages come from the daemon, and we don't translate those at "
37983 "the moment.  One reason is that the appliance generally has all locale files "
37984 "removed from it, because they take up a lot of space.  So we'd have to readd "
37985 "some of those, as well as copying our PO files into the appliance."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:2796
37990 msgid ""
37991 "Debugging messages are never translated, since they are intended for the "
37992 "programmers."
37993 msgstr ""
37994
37995 #. type: =head2
37996 #: ../src/guestfs.pod:2799
37997 msgid "SOURCE CODE SUBDIRECTORIES"
37998 msgstr ""
37999
38000 #. type: textblock
38001 #: ../src/guestfs.pod:2805
38002 msgid "The libguestfs appliance, build scripts and so on."
38003 msgstr ""
38004
38005 #. type: =item
38006 #: ../src/guestfs.pod:2807
38007 msgid "C<capitests>"
38008 msgstr "C<capitests>"
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:2809
38012 msgid "Automated tests of the C API."
38013 msgstr ""
38014
38015 #. type: =item
38016 #: ../src/guestfs.pod:2811
38017 msgid "C<cat>"
38018 msgstr "C<cat>"
38019
38020 #. type: textblock
38021 #: ../src/guestfs.pod:2813
38022 msgid ""
38023 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38024 "documentation."
38025 msgstr ""
38026
38027 #. type: =item
38028 #: ../src/guestfs.pod:2816
38029 msgid "C<caution>"
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:2818
38034 msgid ""
38035 "Safety and liveness tests of components that libguestfs depends upon (not of "
38036 "libguestfs itself).  Mainly this is for qemu and the kernel."
38037 msgstr ""
38038
38039 #. type: =item
38040 #: ../src/guestfs.pod:2821
38041 msgid "C<contrib>"
38042 msgstr "C<contrib>"
38043
38044 #. type: textblock
38045 #: ../src/guestfs.pod:2823
38046 msgid "Outside contributions, experimental parts."
38047 msgstr ""
38048
38049 #. type: =item
38050 #: ../src/guestfs.pod:2825
38051 msgid "C<daemon>"
38052 msgstr "C<daemon>"
38053
38054 #. type: textblock
38055 #: ../src/guestfs.pod:2827
38056 msgid ""
38057 "The daemon that runs inside the libguestfs appliance and carries out actions."
38058 msgstr ""
38059
38060 #. type: =item
38061 #: ../src/guestfs.pod:2830
38062 msgid "C<df>"
38063 msgstr "C<df>"
38064
38065 #. type: textblock
38066 #: ../src/guestfs.pod:2832
38067 msgid "L<virt-df(1)> command and documentation."
38068 msgstr ""
38069
38070 #. type: =item
38071 #: ../src/guestfs.pod:2834
38072 msgid "C<edit>"
38073 msgstr ""
38074
38075 #. type: textblock
38076 #: ../src/guestfs.pod:2836
38077 msgid "L<virt-edit(1)> command and documentation."
38078 msgstr ""
38079
38080 #. type: =item
38081 #: ../src/guestfs.pod:2838
38082 msgid "C<examples>"
38083 msgstr "C<examples>"
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:2840
38087 msgid "C API example code."
38088 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38089
38090 #. type: =item
38091 #: ../src/guestfs.pod:2842
38092 msgid "C<fish>"
38093 msgstr "C<fish>"
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:2844
38097 msgid ""
38098 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38099 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38100 "L<virt-tar-out(1)>."
38101 msgstr ""
38102
38103 #. type: =item
38104 #: ../src/guestfs.pod:2848
38105 msgid "C<fuse>"
38106 msgstr "C<fuse>"
38107
38108 #. type: textblock
38109 #: ../src/guestfs.pod:2850
38110 msgid ""
38111 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38112 msgstr ""
38113
38114 #. type: =item
38115 #: ../src/guestfs.pod:2852
38116 msgid "C<generator>"
38117 msgstr "C<generator>"
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:2854
38121 msgid ""
38122 "The crucially important generator, used to automatically generate large "
38123 "amounts of boilerplate C code for things like RPC and bindings."
38124 msgstr ""
38125
38126 #. type: =item
38127 #: ../src/guestfs.pod:2857
38128 msgid "C<images>"
38129 msgstr "C<images>"
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:2859
38133 msgid "Files used by the test suite."
38134 msgstr ""
38135
38136 #. type: textblock
38137 #: ../src/guestfs.pod:2861
38138 msgid "Some \"phony\" guest images which we test against."
38139 msgstr ""
38140
38141 #. type: =item
38142 #: ../src/guestfs.pod:2863
38143 msgid "C<inspector>"
38144 msgstr "C<inspector>"
38145
38146 #. type: textblock
38147 #: ../src/guestfs.pod:2865
38148 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38149 msgstr ""
38150
38151 #. type: =item
38152 #: ../src/guestfs.pod:2867
38153 msgid "C<logo>"
38154 msgstr "C<logo>"
38155
38156 #. type: textblock
38157 #: ../src/guestfs.pod:2869
38158 msgid "Logo used on the website.  The fish is called Arthur by the way."
38159 msgstr ""
38160
38161 #. type: =item
38162 #: ../src/guestfs.pod:2871
38163 msgid "C<m4>"
38164 msgstr "C<m4>"
38165
38166 #. type: textblock
38167 #: ../src/guestfs.pod:2873
38168 msgid "M4 macros used by autoconf."
38169 msgstr ""
38170
38171 #. type: =item
38172 #: ../src/guestfs.pod:2875
38173 msgid "C<po>"
38174 msgstr "C<po>"
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:2877
38178 msgid "Translations of simple gettext strings."
38179 msgstr "Переклади простих рядків gettext."
38180
38181 #. type: =item
38182 #: ../src/guestfs.pod:2879
38183 msgid "C<po-docs>"
38184 msgstr "C<po-docs>"
38185
38186 #. type: textblock
38187 #: ../src/guestfs.pod:2881
38188 msgid ""
38189 "The build infrastructure and PO files for translations of manpages and POD "
38190 "files.  Eventually this will be combined with the C<po> directory, but that "
38191 "is rather complicated."
38192 msgstr ""
38193
38194 #. type: =item
38195 #: ../src/guestfs.pod:2885
38196 msgid "C<regressions>"
38197 msgstr "C<regressions>"
38198
38199 #. type: textblock
38200 #: ../src/guestfs.pod:2887
38201 msgid "Regression tests."
38202 msgstr "Тести на регресії."
38203
38204 #. type: =item
38205 #: ../src/guestfs.pod:2889
38206 msgid "C<rescue>"
38207 msgstr "C<rescue>"
38208
38209 #. type: textblock
38210 #: ../src/guestfs.pod:2891
38211 msgid "L<virt-rescue(1)> command and documentation."
38212 msgstr ""
38213
38214 #. type: =item
38215 #: ../src/guestfs.pod:2893
38216 #, fuzzy
38217 #| msgid "C<rescue>"
38218 msgid "C<resize>"
38219 msgstr "C<rescue>"
38220
38221 #. type: textblock
38222 #: ../src/guestfs.pod:2895
38223 msgid "L<virt-resize(1)> command and documentation."
38224 msgstr ""
38225
38226 #. type: =item
38227 #: ../src/guestfs.pod:2897
38228 msgid "C<src>"
38229 msgstr "C<src>"
38230
38231 #. type: textblock
38232 #: ../src/guestfs.pod:2899
38233 msgid "Source code to the C library."
38234 msgstr ""
38235
38236 #. type: =item
38237 #: ../src/guestfs.pod:2901
38238 msgid "C<tools>"
38239 msgstr "C<tools>"
38240
38241 #. type: textblock
38242 #: ../src/guestfs.pod:2903
38243 msgid ""
38244 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38245 msgstr ""
38246
38247 #. type: =item
38248 #: ../src/guestfs.pod:2905
38249 msgid "C<test-tool>"
38250 msgstr "C<test-tool>"
38251
38252 #. type: textblock
38253 #: ../src/guestfs.pod:2907
38254 msgid ""
38255 "Test tool for end users to test if their qemu/kernel combination will work "
38256 "with libguestfs."
38257 msgstr ""
38258
38259 #. type: =item
38260 #: ../src/guestfs.pod:2910
38261 msgid "C<csharp>"
38262 msgstr "C<csharp>"
38263
38264 #. type: =item
38265 #: ../src/guestfs.pod:2912
38266 msgid "C<haskell>"
38267 msgstr "C<haskell>"
38268
38269 #. type: =item
38270 #: ../src/guestfs.pod:2914
38271 msgid "C<java>"
38272 msgstr "C<java>"
38273
38274 #. type: =item
38275 #: ../src/guestfs.pod:2916
38276 msgid "C<ocaml>"
38277 msgstr "C<ocaml>"
38278
38279 #. type: =item
38280 #: ../src/guestfs.pod:2918
38281 msgid "C<php>"
38282 msgstr "C<php>"
38283
38284 #. type: =item
38285 #: ../src/guestfs.pod:2920
38286 msgid "C<perl>"
38287 msgstr "C<perl>"
38288
38289 #. type: =item
38290 #: ../src/guestfs.pod:2922
38291 msgid "C<python>"
38292 msgstr "C<python>"
38293
38294 #. type: =item
38295 #: ../src/guestfs.pod:2924
38296 msgid "C<ruby>"
38297 msgstr "C<ruby>"
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:2926
38301 msgid "Language bindings."
38302 msgstr "Прив’язки до мов програмування."
38303
38304 #. type: =head2
38305 #: ../src/guestfs.pod:2930
38306 msgid "MAKING A STABLE RELEASE"
38307 msgstr ""
38308
38309 #. type: textblock
38310 #: ../src/guestfs.pod:2932
38311 msgid ""
38312 "When we make a stable release, there are several steps documented here.  See "
38313 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38314 "branch policy."
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:2940
38319 msgid ""
38320 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38321 msgstr ""
38322
38323 #. type: textblock
38324 #: ../src/guestfs.pod:2945
38325 msgid "Finalize RELEASE-NOTES."
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../src/guestfs.pod:2949
38330 msgid "Update ROADMAP."
38331 msgstr ""
38332
38333 #. type: textblock
38334 #: ../src/guestfs.pod:2953
38335 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../src/guestfs.pod:2957
38340 msgid "Push and pull from Transifex."
38341 msgstr ""
38342
38343 #. type: textblock
38344 #: ../src/guestfs.pod:2959
38345 msgid "Run:"
38346 msgstr ""
38347
38348 #. type: verbatim
38349 #: ../src/guestfs.pod:2961
38350 #, no-wrap
38351 msgid ""
38352 " tx push -s\n"
38353 "\n"
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:2963
38358 msgid "to push the latest POT files to Transifex.  Then run:"
38359 msgstr ""
38360
38361 #. type: verbatim
38362 #: ../src/guestfs.pod:2965
38363 #, no-wrap
38364 msgid ""
38365 " ./tx-pull.sh\n"
38366 "\n"
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:2967
38371 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:2971
38376 msgid ""
38377 "Create new stable and development directories under L<http://libguestfs.org/"
38378 "download>."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:2976
38383 msgid "Create the branch in git:"
38384 msgstr ""
38385
38386 #. type: verbatim
38387 #: ../src/guestfs.pod:2978
38388 #, no-wrap
38389 msgid ""
38390 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38391 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38392 " git branch stable-1.XX\n"
38393 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38394 "\n"
38395 msgstr ""
38396
38397 #. type: =head1
38398 #: ../src/guestfs.pod:2985
38399 msgid "LIMITS"
38400 msgstr ""
38401
38402 #. type: =head2
38403 #: ../src/guestfs.pod:2987
38404 msgid "PROTOCOL LIMITS"
38405 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:2989
38409 msgid ""
38410 "Internally libguestfs uses a message-based protocol to pass API calls and "
38411 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38412 "plenty more detail about this).  The maximum message size used by the "
38413 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38414 "aware of this limit.  The API calls which may be affected are individually "
38415 "documented, with a link back to this section of the documentation."
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:2997
38420 msgid ""
38421 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38422 "a simple string.  Because this string is at some point internally encoded as "
38423 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38424 "the requested file is larger than this then you will get an error."
38425 msgstr ""
38426
38427 #. type: textblock
38428 #: ../src/guestfs.pod:3003
38429 msgid ""
38430 "In order to transfer large files into and out of the guest filesystem, you "
38431 "need to use particular calls that support this.  The sections L</UPLOADING> "
38432 "and L</DOWNLOADING> document how to do this."
38433 msgstr ""
38434
38435 #. type: textblock
38436 #: ../src/guestfs.pod:3007
38437 msgid ""
38438 "You might also consider mounting the disk image using our FUSE filesystem "
38439 "support (L<guestmount(1)>)."
38440 msgstr ""
38441
38442 #. type: =head2
38443 #: ../src/guestfs.pod:3010
38444 msgid "MAXIMUM NUMBER OF DISKS"
38445 msgstr ""
38446
38447 #. type: textblock
38448 #: ../src/guestfs.pod:3012
38449 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38450 msgstr ""
38451
38452 #. type: textblock
38453 #: ../src/guestfs.pod:3015
38454 msgid ""
38455 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38456 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38457 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38458 "purposes."
38459 msgstr ""
38460
38461 #. type: textblock
38462 #: ../src/guestfs.pod:3020
38463 msgid ""
38464 "We are working to substantially raise this limit in future versions but it "
38465 "requires complex changes to qemu."
38466 msgstr ""
38467
38468 #. type: textblock
38469 #: ../src/guestfs.pod:3023
38470 msgid ""
38471 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38472 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38473 "requires changes to qemu."
38474 msgstr ""
38475
38476 #. type: =head2
38477 #: ../src/guestfs.pod:3027
38478 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38479 msgstr ""
38480
38481 #. type: textblock
38482 #: ../src/guestfs.pod:3029
38483 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../src/guestfs.pod:3031
38488 msgid ""
38489 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38490 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38491 msgstr ""
38492
38493 #. type: textblock
38494 #: ../src/guestfs.pod:3034
38495 msgid ""
38496 "If you attach a disk with more than 15 partitions, the extra partitions are "
38497 "ignored by libguestfs."
38498 msgstr ""
38499
38500 #. type: =head2
38501 #: ../src/guestfs.pod:3037
38502 msgid "MAXIMUM SIZE OF A DISK"
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:3039
38507 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:3041
38512 msgid ""
38513 "We have tested block devices up to 1 exabyte (2**60 or "
38514 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38515 "filesystem."
38516 msgstr ""
38517
38518 #. type: textblock
38519 #: ../src/guestfs.pod:3045
38520 msgid ""
38521 "Although libguestfs probably does not impose any limit, the underlying host "
38522 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38523 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38524 "TB).  If you store disk images as host logical volumes then you are limited "
38525 "by the maximum size of an LV."
38526 msgstr ""
38527
38528 #. type: textblock
38529 #: ../src/guestfs.pod:3051
38530 msgid ""
38531 "For the hugest disk image files, we recommend using XFS on the host for "
38532 "storage."
38533 msgstr ""
38534
38535 #. type: =head2
38536 #: ../src/guestfs.pod:3054
38537 msgid "MAXIMUM SIZE OF A PARTITION"
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:3056
38542 msgid ""
38543 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38544 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38545 "address a partition located beyond 2 TB on the disk."
38546 msgstr ""
38547
38548 #. type: textblock
38549 #: ../src/guestfs.pod:3060
38550 msgid ""
38551 "It is recommended that you use GPT partitions on disks which are larger than "
38552 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38553 "which are theoretically larger than the largest disk we could support."
38554 msgstr ""
38555
38556 #. type: =head2
38557 #: ../src/guestfs.pod:3065
38558 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../src/guestfs.pod:3067
38563 msgid ""
38564 "This depends on the filesystem type.  libguestfs itself does not impose any "
38565 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38566 "what these limits are."
38567 msgstr ""
38568
38569 #. type: =head2
38570 #: ../src/guestfs.pod:3071
38571 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38572 msgstr ""
38573
38574 #. type: textblock
38575 #: ../src/guestfs.pod:3073
38576 msgid ""
38577 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38578 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38579 "uploads and downloads."
38580 msgstr ""
38581
38582 #. type: =head2
38583 #: ../src/guestfs.pod:3077
38584 msgid "INSPECTION LIMITS"
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:3079
38589 msgid ""
38590 "The inspection code has several arbitrary limits on things like the size of "
38591 "Windows Registry hive it will read, and the length of product name.  These "
38592 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38593 "memory and disk space on the host, and should not be reached in practice.  "
38594 "See the source code for more information."
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../src/guestfs.pod:3105
38599 msgid ""
38600 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38601 "effect as calling C<guestfs_set_verbose (g, 1)>."
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:3117
38606 msgid ""
38607 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38608 "the discussion of paths in section L</PATH> above."
38609 msgstr ""
38610
38611 #. type: textblock
38612 #: ../src/guestfs.pod:3126
38613 msgid "See also L</QEMU WRAPPERS> above."
38614 msgstr ""
38615
38616 #. type: textblock
38617 #: ../src/guestfs.pod:3130
38618 msgid ""
38619 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38620 "effect as calling C<guestfs_set_trace (g, 1)>."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:3148
38625 msgid ""
38626 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38627 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38628 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38629 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38630 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38631 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
38632 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
38633 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
38634 "libguestfs.org/>."
38635 msgstr ""
38636
38637 #. type: textblock
38638 #: ../src/guestfs.pod:3179
38639 msgid ""
38640 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38641 "(8)>, L<disktype(1)>."
38642 msgstr ""
38643
38644 #. type: =head1
38645 #: ../src/guestfs.pod:3186 ../tools/virt-make-fs.pl:553
38646 #: ../tools/virt-win-reg.pl:761
38647 msgid "BUGS"
38648 msgstr "ВАДИ"
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:3188
38652 msgid "To get a list of bugs against libguestfs use this link:"
38653 msgstr ""
38654 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38655 "посиланням:"
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:3190
38659 msgid ""
38660 "L<https://bugzilla.redhat.com/buglist.cgi?"
38661 "component=libguestfs&product=Virtualization+Tools>"
38662 msgstr ""
38663 "L<https://bugzilla.redhat.com/buglist.cgi?"
38664 "component=libguestfs&product=Virtualization+Tools>"
38665
38666 #. type: textblock
38667 #: ../src/guestfs.pod:3192
38668 msgid "To report a new bug against libguestfs use this link:"
38669 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38670
38671 #. type: textblock
38672 #: ../src/guestfs.pod:3194
38673 msgid ""
38674 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38675 "component=libguestfs&product=Virtualization+Tools>"
38676 msgstr ""
38677 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38678 "component=libguestfs&product=Virtualization+Tools>"
38679
38680 #. type: textblock
38681 #: ../src/guestfs.pod:3196
38682 msgid "When reporting a bug, please check:"
38683 msgstr ""
38684
38685 #. type: textblock
38686 #: ../src/guestfs.pod:3202
38687 msgid "That the bug hasn't been reported already."
38688 msgstr ""
38689
38690 #. type: textblock
38691 #: ../src/guestfs.pod:3206
38692 msgid "That you are testing a recent version."
38693 msgstr ""
38694
38695 #. type: textblock
38696 #: ../src/guestfs.pod:3210
38697 msgid "Describe the bug accurately, and give a way to reproduce it."
38698 msgstr ""
38699
38700 #. type: textblock
38701 #: ../src/guestfs.pod:3214
38702 msgid ""
38703 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38704 "bug report."
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../test-tool/libguestfs-test-tool.pod:5
38709 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38710 msgstr ""
38711
38712 #. type: verbatim
38713 #: ../test-tool/libguestfs-test-tool.pod:9
38714 #, no-wrap
38715 msgid ""
38716 " libguestfs-test-tool [--options]\n"
38717 "\n"
38718 msgstr ""
38719
38720 #. type: textblock
38721 #: ../test-tool/libguestfs-test-tool.pod:13
38722 msgid ""
38723 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38724 "to check basic libguestfs functionality is working.  This is needed because "
38725 "libguestfs occasionally breaks for reasons beyond our control: usually "
38726 "because of changes in the underlying qemu or kernel packages, or the host "
38727 "environment."
38728 msgstr ""
38729
38730 #. type: textblock
38731 #: ../test-tool/libguestfs-test-tool.pod:19
38732 msgid "If you suspect a problem in libguestfs, then just run:"
38733 msgstr ""
38734
38735 #. type: verbatim
38736 #: ../test-tool/libguestfs-test-tool.pod:21
38737 #, no-wrap
38738 msgid ""
38739 " libguestfs-test-tool\n"
38740 "\n"
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../test-tool/libguestfs-test-tool.pod:23
38745 msgid "It will print lots of diagnostic messages."
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../test-tool/libguestfs-test-tool.pod:25
38750 msgid "If it runs to completion successfully, you will see this near the end:"
38751 msgstr ""
38752
38753 #. type: verbatim
38754 #: ../test-tool/libguestfs-test-tool.pod:27
38755 #, no-wrap
38756 msgid ""
38757 " ===== TEST FINISHED OK =====\n"
38758 "\n"
38759 msgstr ""
38760
38761 #. type: textblock
38762 #: ../test-tool/libguestfs-test-tool.pod:29
38763 msgid "and the test tool will exit with code 0."
38764 msgstr ""
38765
38766 #. type: textblock
38767 #: ../test-tool/libguestfs-test-tool.pod:31
38768 msgid ""
38769 "If it fails (and/or exits with non-zero error code), please paste the "
38770 "I<complete, unedited> output of the test tool into a bug report.  More "
38771 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38772 "> website."
38773 msgstr ""
38774
38775 #. type: textblock
38776 #: ../test-tool/libguestfs-test-tool.pod:42
38777 msgid "Display short usage information and exit."
38778 msgstr ""
38779
38780 #. type: =item
38781 #: ../test-tool/libguestfs-test-tool.pod:44
38782 #, fuzzy
38783 #| msgid "I<--qemu qemu_binary>"
38784 msgid "B<--qemu qemu_binary>"
38785 msgstr "I<--qemu виконуваний_файл_qemu>"
38786
38787 #. type: textblock
38788 #: ../test-tool/libguestfs-test-tool.pod:46
38789 msgid ""
38790 "If you have downloaded another qemu binary, point this option at the full "
38791 "path of the binary to try it."
38792 msgstr ""
38793
38794 #. type: =item
38795 #: ../test-tool/libguestfs-test-tool.pod:49
38796 #, fuzzy
38797 #| msgid "I<--qemu qemu_binary>"
38798 msgid "B<--qemudir qemu_source_dir>"
38799 msgstr "I<--qemu виконуваний_файл_qemu>"
38800
38801 #. type: textblock
38802 #: ../test-tool/libguestfs-test-tool.pod:51
38803 msgid ""
38804 "If you have compiled qemu from source, point this option at the source "
38805 "directory to try it."
38806 msgstr ""
38807
38808 #. type: =item
38809 #: ../test-tool/libguestfs-test-tool.pod:54
38810 msgid "B<-t N>"
38811 msgstr ""
38812
38813 #. type: =item
38814 #: ../test-tool/libguestfs-test-tool.pod:56
38815 #, fuzzy
38816 #| msgid "I<--timeout N>"
38817 msgid "B<--timeout N>"
38818 msgstr "I<--timeout N>"
38819
38820 #. type: textblock
38821 #: ../test-tool/libguestfs-test-tool.pod:58
38822 msgid ""
38823 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38824 "minutes) which does not usually need to be adjusted."
38825 msgstr ""
38826
38827 #. type: =head1
38828 #: ../test-tool/libguestfs-test-tool.pod:63
38829 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38830 msgstr ""
38831
38832 #. type: textblock
38833 #: ../test-tool/libguestfs-test-tool.pod:65
38834 msgid ""
38835 "If you have compiled another version of qemu from source and would like to "
38836 "try that, then you can use the I<--qemudir> option to point to the qemu "
38837 "source directory."
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../test-tool/libguestfs-test-tool.pod:69
38842 msgid ""
38843 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38844 "option to point to the binary."
38845 msgstr ""
38846
38847 #. type: textblock
38848 #: ../test-tool/libguestfs-test-tool.pod:72
38849 msgid ""
38850 "Note when using these options, you can ignore the business of qemu wrapper "
38851 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38852 "wrapper script for you if one is needed."
38853 msgstr ""
38854
38855 #. type: =head1
38856 #: ../test-tool/libguestfs-test-tool.pod:76
38857 msgid "TRYING OUT A DIFFERENT KERNEL"
38858 msgstr ""
38859
38860 #. type: textblock
38861 #: ../test-tool/libguestfs-test-tool.pod:78
38862 msgid ""
38863 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38864 "libguestfs tries.  You do this by setting the environment variables "
38865 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../test-tool/libguestfs-test-tool.pod:82
38870 msgid ""
38871 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38872 "information."
38873 msgstr ""
38874
38875 #. type: =head1
38876 #: ../test-tool/libguestfs-test-tool.pod:85
38877 msgid "SELF-DIAGNOSIS"
38878 msgstr ""
38879
38880 #. type: textblock
38881 #: ../test-tool/libguestfs-test-tool.pod:87
38882 msgid ""
38883 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38884 "produced by libguestfs-test-tool and/or possible errors."
38885 msgstr ""
38886
38887 #. type: textblock
38888 #: ../test-tool/libguestfs-test-tool.pod:92
38889 msgid ""
38890 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38891 "I<1> if there was an error."
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../test-tool/libguestfs-test-tool.pod:97
38896 msgid ""
38897 "For the full list of environment variables which may affect libguestfs, "
38898 "please see the L<guestfs(3)> manual page."
38899 msgstr ""
38900
38901 #. type: textblock
38902 #: ../test-tool/libguestfs-test-tool.pod:102
38903 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../tools/virt-list-filesystems.pl:32
38908 msgid ""
38909 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38910 msgstr ""
38911
38912 #. type: verbatim
38913 #: ../tools/virt-list-filesystems.pl:36
38914 #, no-wrap
38915 msgid ""
38916 " virt-list-filesystems [--options] domname\n"
38917 "\n"
38918 msgstr ""
38919
38920 #. type: verbatim
38921 #: ../tools/virt-list-filesystems.pl:38
38922 #, no-wrap
38923 msgid ""
38924 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38925 "\n"
38926 msgstr ""
38927
38928 #. type: textblock
38929 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38930 msgid ""
38931 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38932 "replacement."
38933 msgstr ""
38934
38935 #. type: textblock
38936 #: ../tools/virt-list-filesystems.pl:45
38937 msgid ""
38938 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38939 "are contained in a virtual machine or disk image."
38940 msgstr ""
38941
38942 #. type: textblock
38943 #: ../tools/virt-list-filesystems.pl:49
38944 msgid ""
38945 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38946 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38947 "> tool."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../tools/virt-list-filesystems.pl:112
38952 msgid ""
38953 "With this option, C<virt-list-filesystems> displays the type of each "
38954 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38955 msgstr ""
38956
38957 #. type: =item
38958 #: ../tools/virt-list-filesystems.pl:119
38959 #, fuzzy
38960 #| msgid "B<-a image>"
38961 msgid "B<-a>"
38962 msgstr "B<-a образ>"
38963
38964 #. type: textblock
38965 #: ../tools/virt-list-filesystems.pl:123
38966 msgid ""
38967 "Normally we only show mountable filesystems.  If this option is given then "
38968 "swap devices are shown too."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../tools/virt-list-filesystems.pl:197
38973 msgid ""
38974 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38975 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38976 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38977 msgstr ""
38978 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38979 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38980 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38981
38982 #. type: textblock
38983 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38984 msgid "Copyright (C) 2009 Red Hat Inc."
38985 msgstr "© Red Hat Inc., 2009"
38986
38987 #. type: textblock
38988 #: ../tools/virt-list-partitions.pl:32
38989 msgid ""
38990 "virt-list-partitions - List partitions in a virtual machine or disk image"
38991 msgstr ""
38992
38993 #. type: verbatim
38994 #: ../tools/virt-list-partitions.pl:36
38995 #, no-wrap
38996 msgid ""
38997 " virt-list-partitions [--options] domname\n"
38998 "\n"
38999 msgstr ""
39000 " virt-list-partitions [--параметри] назва_домену\n"
39001 "\n"
39002
39003 #. type: verbatim
39004 #: ../tools/virt-list-partitions.pl:38
39005 #, no-wrap
39006 msgid ""
39007 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39008 "\n"
39009 msgstr ""
39010 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39011 "\n"
39012
39013 #. type: textblock
39014 #: ../tools/virt-list-partitions.pl:45
39015 msgid ""
39016 "C<virt-list-partitions> is a command line tool to list the partitions that "
39017 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39018 "first step to using L<virt-resize(1)>."
39019 msgstr ""
39020
39021 #. type: textblock
39022 #: ../tools/virt-list-partitions.pl:50
39023 msgid ""
39024 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39025 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39026 "> tool."
39027 msgstr ""
39028
39029 #. type: textblock
39030 #: ../tools/virt-list-partitions.pl:113
39031 msgid "Show sizes in human-readable form (eg. \"1G\")."
39032 msgstr ""
39033
39034 #. type: textblock
39035 #: ../tools/virt-list-partitions.pl:123
39036 msgid ""
39037 "With this option, C<virt-list-partitions> displays the type and size of each "
39038 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39039 msgstr ""
39040
39041 #. type: =item
39042 #: ../tools/virt-list-partitions.pl:130
39043 msgid "B<-t>"
39044 msgstr ""
39045
39046 #. type: =item
39047 #: ../tools/virt-list-partitions.pl:132
39048 #, fuzzy
39049 #| msgid "B<-t> | B<--total>"
39050 msgid "B<--total>"
39051 msgstr "B<-t> | B<--total>"
39052
39053 #. type: textblock
39054 #: ../tools/virt-list-partitions.pl:134
39055 msgid ""
39056 "Display the total size of each block device (as a separate row or rows)."
39057 msgstr ""
39058
39059 #. type: textblock
39060 #: ../tools/virt-list-partitions.pl:267
39061 msgid ""
39062 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39063 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39064 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39065 msgstr ""
39066 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39067 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39068 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39069
39070 #. type: textblock
39071 #: ../tools/virt-list-partitions.pl:283
39072 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39073 msgstr "© Red Hat Inc., 2009–2010"
39074
39075 #. type: textblock
39076 #: ../tools/virt-make-fs.pl:37
39077 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39078 msgstr ""
39079
39080 #. type: verbatim
39081 #: ../tools/virt-make-fs.pl:41
39082 #, no-wrap
39083 msgid ""
39084 " virt-make-fs [--options] input.tar output.img\n"
39085 "\n"
39086 msgstr ""
39087
39088 #. type: verbatim
39089 #: ../tools/virt-make-fs.pl:43
39090 #, no-wrap
39091 msgid ""
39092 " virt-make-fs [--options] input.tar.gz output.img\n"
39093 "\n"
39094 msgstr ""
39095
39096 #. type: verbatim
39097 #: ../tools/virt-make-fs.pl:45
39098 #, no-wrap
39099 msgid ""
39100 " virt-make-fs [--options] directory output.img\n"
39101 "\n"
39102 msgstr ""
39103
39104 #. type: textblock
39105 #: ../tools/virt-make-fs.pl:49
39106 msgid ""
39107 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39108 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
39109 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
39110 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39111 "you want to attach these filesystems to existing virtual machines (eg. to "
39112 "import large amounts of read-only data to a VM)."
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../tools/virt-make-fs.pl:57
39117 msgid "Basic usage is:"
39118 msgstr ""
39119
39120 #. type: verbatim
39121 #: ../tools/virt-make-fs.pl:59
39122 #, no-wrap
39123 msgid ""
39124 " virt-make-fs input output\n"
39125 "\n"
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../tools/virt-make-fs.pl:61
39130 msgid ""
39131 "where C<input> is either a directory containing files that you want to add, "
39132 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39133 "C<output> is a disk image.  The input type is detected automatically.  The "
39134 "output disk image defaults to a raw ext2 image unless you specify extra "
39135 "flags (see L</OPTIONS> below)."
39136 msgstr ""
39137
39138 #. type: =head2
39139 #: ../tools/virt-make-fs.pl:67
39140 msgid "EXTRA SPACE"
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../tools/virt-make-fs.pl:69
39145 msgid ""
39146 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39147 "the files that it contains, but might have extra space.  Depending on how "
39148 "you are going to use the output, you might think this extra space is wasted "
39149 "and want to minimize it, or you might want to leave space so that more files "
39150 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39151 "but you can use the I<--size> flag to leave space in the filesystem if you "
39152 "want it."
39153 msgstr ""
39154
39155 #. type: textblock
39156 #: ../tools/virt-make-fs.pl:77
39157 msgid ""
39158 "An alternative way to leave extra space but not make the output image any "
39159 "bigger is to use an alternative disk image format (instead of the default "
39160 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39161 "image format (check your hypervisor supports this before using it).  This "
39162 "allows you to choose a large I<--size> but the extra space won't actually be "
39163 "allocated in the image until you try to store something in it."
39164 msgstr ""
39165
39166 #. type: textblock
39167 #: ../tools/virt-make-fs.pl:85
39168 msgid ""
39169 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39170 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39171 "to build another image from scratch."
39172 msgstr ""
39173
39174 #. type: =head3
39175 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39176 #: ../tools/virt-make-fs.pl:142
39177 msgid "EXAMPLE"
39178 msgstr "ПРИКЛАД"
39179
39180 #. type: verbatim
39181 #: ../tools/virt-make-fs.pl:91
39182 #, no-wrap
39183 msgid ""
39184 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39185 "\n"
39186 msgstr ""
39187 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39188 "\n"
39189
39190 #. type: =head2
39191 #: ../tools/virt-make-fs.pl:93
39192 msgid "FILESYSTEM TYPE"
39193 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39194
39195 #. type: textblock
39196 #: ../tools/virt-make-fs.pl:95
39197 msgid ""
39198 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39199 "libguestfs supports can be used (but I<not> read-only formats like "
39200 "ISO9660).  Here are some of the more common choices:"
39201 msgstr ""
39202
39203 #. type: =item
39204 #: ../tools/virt-make-fs.pl:101
39205 msgid "I<ext3>"
39206 msgstr "I<ext3>"
39207
39208 #. type: textblock
39209 #: ../tools/virt-make-fs.pl:103
39210 msgid ""
39211 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39212 "you are not going to use the filesystem in a way that requires the journal, "
39213 "then this is just wasted overhead."
39214 msgstr ""
39215
39216 #. type: =item
39217 #: ../tools/virt-make-fs.pl:107
39218 msgid "I<ntfs> or I<vfat>"
39219 msgstr "I<ntfs> або I<vfat>"
39220
39221 #. type: textblock
39222 #: ../tools/virt-make-fs.pl:109
39223 msgid "Useful if exporting data to a Windows guest."
39224 msgstr ""
39225
39226 #. type: textblock
39227 #: ../tools/virt-make-fs.pl:111
39228 msgid ""
39229 "I<Note for vfat>: The tar archive or local directory must only contain files "
39230 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39231 "program running within libguestfs is unable to change the ownership of non-"
39232 "root files, since vfat itself does not support this."
39233 msgstr ""
39234
39235 #. type: =item
39236 #: ../tools/virt-make-fs.pl:116
39237 msgid "I<minix>"
39238 msgstr "I<minix>"
39239
39240 #. type: textblock
39241 #: ../tools/virt-make-fs.pl:118
39242 msgid ""
39243 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39244 "total filesystem size."
39245 msgstr ""
39246
39247 #. type: verbatim
39248 #: ../tools/virt-make-fs.pl:125
39249 #, no-wrap
39250 msgid ""
39251 " virt-make-fs --type=minix input minixfs.img\n"
39252 "\n"
39253 msgstr ""
39254
39255 #. type: =head2
39256 #: ../tools/virt-make-fs.pl:127
39257 msgid "TO PARTITION OR NOT TO PARTITION"
39258 msgstr ""
39259
39260 #. type: textblock
39261 #: ../tools/virt-make-fs.pl:129
39262 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39263 msgstr ""
39264
39265 #. type: textblock
39266 #: ../tools/virt-make-fs.pl:131
39267 msgid ""
39268 "Adding a partition can make the disk image more compatible with certain "
39269 "virtualized operating systems which don't expect to see a filesystem "
39270 "directly located on a block device (Linux doesn't care and will happily "
39271 "handle both types)."
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../tools/virt-make-fs.pl:136
39276 msgid ""
39277 "On the other hand, if you have a partition table then the output image is no "
39278 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39279 "directly on a partitioned disk image.  (However libguestfs tools such as "
39280 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../tools/virt-make-fs.pl:144
39285 msgid "Add an MBR partition:"
39286 msgstr ""
39287
39288 #. type: verbatim
39289 #: ../tools/virt-make-fs.pl:146
39290 #, no-wrap
39291 msgid ""
39292 " virt-make-fs --partition -- input disk.img\n"
39293 "\n"
39294 msgstr ""
39295
39296 #. type: textblock
39297 #: ../tools/virt-make-fs.pl:148
39298 msgid ""
39299 "If the output disk image could be terabyte-sized or larger, it's better to "
39300 "use an EFI/GPT-compatible partition table:"
39301 msgstr ""
39302
39303 #. type: verbatim
39304 #: ../tools/virt-make-fs.pl:151
39305 #, no-wrap
39306 msgid ""
39307 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39308 "\n"
39309 msgstr ""
39310
39311 #. type: textblock
39312 #: ../tools/virt-make-fs.pl:179
39313 msgid "Enable debugging information."
39314 msgstr "Увімкнути виведення діагностичних даних."
39315
39316 #. type: =item
39317 #: ../tools/virt-make-fs.pl:185
39318 msgid "B<--size=E<lt>NE<gt>>"
39319 msgstr "B<--size=E<lt>NE<gt>>"
39320
39321 #. type: =item
39322 #: ../tools/virt-make-fs.pl:187
39323 msgid "B<--size=+E<lt>NE<gt>>"
39324 msgstr "B<--size=+E<lt>NE<gt>>"
39325
39326 #. type: =item
39327 #: ../tools/virt-make-fs.pl:189
39328 msgid "B<-s E<lt>NE<gt>>"
39329 msgstr "B<-s E<lt>NE<gt>>"
39330
39331 #. type: =item
39332 #: ../tools/virt-make-fs.pl:191
39333 msgid "B<-s +E<lt>NE<gt>>"
39334 msgstr "B<-s +E<lt>NE<gt>>"
39335
39336 #. type: textblock
39337 #: ../tools/virt-make-fs.pl:193
39338 msgid ""
39339 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../tools/virt-make-fs.pl:196
39344 msgid ""
39345 "If this option is I<not> given, then the output image will be just large "
39346 "enough to contain all the files, with not much wasted space."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../tools/virt-make-fs.pl:199
39351 msgid ""
39352 "To choose a fixed size output disk, specify an absolute number followed by b/"
39353 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39354 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39355 "files, else you will get an error."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../tools/virt-make-fs.pl:204
39360 msgid ""
39361 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39362 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39363 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39364 "the input files, and (approximately) an extra 200 MB free space."
39365 msgstr ""
39366
39367 #. type: textblock
39368 #: ../tools/virt-make-fs.pl:210
39369 msgid ""
39370 "Note that virt-make-fs estimates free space, and therefore will not produce "
39371 "filesystems containing precisely the free space requested.  (It is much more "
39372 "expensive and time-consuming to produce a filesystem which has precisely the "
39373 "desired free space)."
39374 msgstr ""
39375
39376 #. type: =item
39377 #: ../tools/virt-make-fs.pl:219
39378 msgid "B<--format=E<lt>fmtE<gt>>"
39379 msgstr ""
39380
39381 #. type: =item
39382 #: ../tools/virt-make-fs.pl:221
39383 msgid "B<-F E<lt>fmtE<gt>>"
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../tools/virt-make-fs.pl:223
39388 msgid "Choose the output disk image format."
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../tools/virt-make-fs.pl:225
39393 msgid "The default is C<raw> (raw disk image)."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../tools/virt-make-fs.pl:227
39398 msgid ""
39399 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39400 "that would really make sense here is C<qcow2>."
39401 msgstr ""
39402
39403 #. type: =item
39404 #: ../tools/virt-make-fs.pl:234
39405 msgid "B<--type=E<lt>fsE<gt>>"
39406 msgstr ""
39407
39408 #. type: =item
39409 #: ../tools/virt-make-fs.pl:236
39410 msgid "B<-t E<lt>fsE<gt>>"
39411 msgstr ""
39412
39413 #. type: textblock
39414 #: ../tools/virt-make-fs.pl:238
39415 msgid "Choose the output filesystem type."
39416 msgstr ""
39417
39418 #. type: textblock
39419 #: ../tools/virt-make-fs.pl:240
39420 msgid "The default is C<ext2>."
39421 msgstr "Типовим значенням є C<ext2>."
39422
39423 #. type: textblock
39424 #: ../tools/virt-make-fs.pl:242
39425 msgid ""
39426 "Any filesystem which is supported read-write by libguestfs can be used here."
39427 msgstr ""
39428
39429 #. type: =item
39430 #: ../tools/virt-make-fs.pl:249
39431 msgid "B<--partition>"
39432 msgstr "B<--partition>"
39433
39434 #. type: =item
39435 #: ../tools/virt-make-fs.pl:251
39436 msgid "B<--partition=E<lt>parttypeE<gt>>"
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../tools/virt-make-fs.pl:253
39441 msgid ""
39442 "If specified, this flag adds an MBR partition table to the output disk image."
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../tools/virt-make-fs.pl:256
39447 msgid ""
39448 "You can change the partition table type, eg. I<--partition=gpt> for large "
39449 "disks."
39450 msgstr ""
39451
39452 #. type: textblock
39453 #: ../tools/virt-make-fs.pl:259
39454 msgid ""
39455 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39456 "might consider the next parameter to be the partition type.  For example:"
39457 msgstr ""
39458
39459 #. type: verbatim
39460 #: ../tools/virt-make-fs.pl:263
39461 #, no-wrap
39462 msgid ""
39463 " virt-make-fs --partition input.tar ...\n"
39464 "\n"
39465 msgstr ""
39466
39467 #. type: textblock
39468 #: ../tools/virt-make-fs.pl:265
39469 msgid ""
39470 "would cause virt-make-fs to think you wanted to use a partition type of "
39471 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39472 "dash) between options and the input file argument:"
39473 msgstr ""
39474
39475 #. type: verbatim
39476 #: ../tools/virt-make-fs.pl:269
39477 #, no-wrap
39478 msgid ""
39479 " virt-make-fs --partition -- input.tar ...\n"
39480 "\n"
39481 msgstr ""
39482 " virt-make-fs --partition -- input.tar ...\n"
39483 "\n"
39484
39485 #. type: textblock
39486 #: ../tools/virt-make-fs.pl:541
39487 msgid ""
39488 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39489 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39490 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39491 msgstr ""
39492 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39493 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39494 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39495
39496 #. type: textblock
39497 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39498 msgid ""
39499 "When reporting bugs, please enable debugging and capture the I<complete> "
39500 "output:"
39501 msgstr ""
39502
39503 #. type: verbatim
39504 #: ../tools/virt-make-fs.pl:558
39505 #, no-wrap
39506 msgid ""
39507 " export LIBGUESTFS_DEBUG=1\n"
39508 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39509 "\n"
39510 msgstr ""
39511 " export LIBGUESTFS_DEBUG=1\n"
39512 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39513 "\n"
39514
39515 #. type: textblock
39516 #: ../tools/virt-make-fs.pl:561
39517 msgid ""
39518 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39519 "redhat.com/>"
39520 msgstr ""
39521
39522 #. type: textblock
39523 #: ../tools/virt-tar.pl:33
39524 msgid "virt-tar - Extract or upload files to a virtual machine"
39525 msgstr ""
39526
39527 #. type: verbatim
39528 #: ../tools/virt-tar.pl:37
39529 #, no-wrap
39530 msgid ""
39531 " virt-tar [--options] -x domname directory tarball\n"
39532 "\n"
39533 msgstr ""
39534
39535 #. type: verbatim
39536 #: ../tools/virt-tar.pl:39
39537 #, no-wrap
39538 msgid ""
39539 " virt-tar [--options] -u domname tarball directory\n"
39540 "\n"
39541 msgstr ""
39542
39543 #. type: verbatim
39544 #: ../tools/virt-tar.pl:41
39545 #, no-wrap
39546 msgid ""
39547 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39548 "\n"
39549 msgstr ""
39550
39551 #. type: verbatim
39552 #: ../tools/virt-tar.pl:43
39553 #, no-wrap
39554 msgid ""
39555 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39556 "\n"
39557 msgstr ""
39558
39559 #. type: =head2
39560 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39561 msgid "NOTE"
39562 msgstr "ПРИМІТКА"
39563
39564 #. type: textblock
39565 #: ../tools/virt-tar.pl:47
39566 msgid ""
39567 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39568 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../tools/virt-tar.pl:52
39573 msgid "Download C</home> from the VM into a local tarball:"
39574 msgstr ""
39575
39576 #. type: verbatim
39577 #: ../tools/virt-tar.pl:54
39578 #, no-wrap
39579 msgid ""
39580 " virt-tar -x domname /home home.tar\n"
39581 "\n"
39582 msgstr ""
39583
39584 #. type: verbatim
39585 #: ../tools/virt-tar.pl:56
39586 #, no-wrap
39587 msgid ""
39588 " virt-tar -zx domname /home home.tar.gz\n"
39589 "\n"
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../tools/virt-tar.pl:58
39594 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39595 msgstr ""
39596
39597 #. type: verbatim
39598 #: ../tools/virt-tar.pl:60
39599 #, no-wrap
39600 msgid ""
39601 " virt-tar -u domname uploadstuff.tar /tmp\n"
39602 "\n"
39603 msgstr ""
39604
39605 #. type: verbatim
39606 #: ../tools/virt-tar.pl:62
39607 #, no-wrap
39608 msgid ""
39609 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39610 "\n"
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../tools/virt-tar.pl:66
39615 msgid ""
39616 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39617 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39618 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39619 msgstr ""
39620
39621 #. type: textblock
39622 #: ../tools/virt-tar.pl:71
39623 msgid ""
39624 "You can use I<-x> (extract) on live virtual machines, but you might get "
39625 "inconsistent results or errors if there is filesystem activity inside the "
39626 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39627 "work, but the only way to guarantee consistent results is if the virtual "
39628 "machine is shut down."
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../tools/virt-tar.pl:79
39633 msgid ""
39634 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39635 "parts of a guest filesystem.  There are many possibilities: making backups, "
39636 "uploading data files, snooping on guest activity, fixing or customizing "
39637 "guests, etc."
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../tools/virt-tar.pl:84
39642 msgid ""
39643 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39644 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39645 "should look at the L<guestfish(1)> tool."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../tools/virt-tar.pl:88
39650 msgid ""
39651 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39652 "its contents (recursively) from the virtual machine into a local tarball.  "
39653 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39654 "virtual machine.  You cannot use these two options together."
39655 msgstr ""
39656
39657 #. type: textblock
39658 #: ../tools/virt-tar.pl:94
39659 msgid ""
39660 "In addition, you may need to use the I<-z> (gZip) option to enable "
39661 "compression.  When uploading, you have to specify I<-z> if the upload file "
39662 "is compressed because virt-tar won't detect this on its own."
39663 msgstr ""
39664
39665 #. type: textblock
39666 #: ../tools/virt-tar.pl:98
39667 msgid ""
39668 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39669 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39670 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39671 "the L<libguestfs(3)> API)."
39672 msgstr ""
39673
39674 #. type: =item
39675 #: ../tools/virt-tar.pl:160
39676 #, fuzzy
39677 #| msgid "B<--format>"
39678 msgid "B<--extract>"
39679 msgstr "B<--format>"
39680
39681 #. type: =item
39682 #: ../tools/virt-tar.pl:162
39683 #, fuzzy
39684 #| msgid "download"
39685 msgid "B<--download>"
39686 msgstr "download"
39687
39688 #. type: =item
39689 #: ../tools/virt-tar.pl:164
39690 msgid "B<-u>"
39691 msgstr ""
39692
39693 #. type: =item
39694 #: ../tools/virt-tar.pl:166
39695 #, fuzzy
39696 #| msgid "B<-u> | B<--upload>"
39697 msgid "B<--upload>"
39698 msgstr "B<-u> | B<--upload>"
39699
39700 #. type: textblock
39701 #: ../tools/virt-tar.pl:168
39702 msgid ""
39703 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39704 "local tarball."
39705 msgstr ""
39706
39707 #. type: textblock
39708 #: ../tools/virt-tar.pl:171
39709 msgid ""
39710 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39711 "Please read the L</WARNING> section above before using this option."
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../tools/virt-tar.pl:175
39716 msgid "You must specify exactly one of these options."
39717 msgstr ""
39718
39719 #. type: =item
39720 #: ../tools/virt-tar.pl:181
39721 msgid "B<-z>"
39722 msgstr ""
39723
39724 #. type: =item
39725 #: ../tools/virt-tar.pl:183
39726 #, fuzzy
39727 #| msgid "B<-z> | B<--gzip>"
39728 msgid "B<--gzip>"
39729 msgstr "B<-z> | B<--gzip>"
39730
39731 #. type: textblock
39732 #: ../tools/virt-tar.pl:185
39733 msgid "Specify that the input or output tarball is gzip-compressed."
39734 msgstr ""
39735
39736 #. type: textblock
39737 #: ../tools/virt-tar.pl:298
39738 msgid ""
39739 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39740 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39741 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39742 "org/>."
39743 msgstr ""
39744 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39745 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39746 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39747 "org/>."
39748
39749 #. type: textblock
39750 #: ../tools/virt-win-reg.pl:37
39751 msgid ""
39752 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39753 msgstr ""
39754
39755 #. type: verbatim
39756 #: ../tools/virt-win-reg.pl:41
39757 #, no-wrap
39758 msgid ""
39759 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39760 "\n"
39761 msgstr ""
39762
39763 #. type: verbatim
39764 #: ../tools/virt-win-reg.pl:43
39765 #, no-wrap
39766 msgid ""
39767 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39768 "\n"
39769 msgstr ""
39770
39771 #. type: verbatim
39772 #: ../tools/virt-win-reg.pl:45
39773 #, no-wrap
39774 msgid ""
39775 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39776 "\n"
39777 msgstr ""
39778
39779 #. type: verbatim
39780 #: ../tools/virt-win-reg.pl:47
39781 #, no-wrap
39782 msgid ""
39783 " virt-win-reg --merge domname [input.reg ...]\n"
39784 "\n"
39785 msgstr ""
39786
39787 #. type: verbatim
39788 #: ../tools/virt-win-reg.pl:49
39789 #, no-wrap
39790 msgid ""
39791 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39792 "\n"
39793 msgstr ""
39794
39795 #. type: textblock
39796 #: ../tools/virt-win-reg.pl:53
39797 msgid ""
39798 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39799 "virtual machines.  If you do this, you I<will> get irreversible disk "
39800 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39801 "but doesn't catch all cases."
39802 msgstr ""
39803
39804 #. type: textblock
39805 #: ../tools/virt-win-reg.pl:58
39806 msgid ""
39807 "Modifying the Windows Registry is an inherently risky operation.  The format "
39808 "is deliberately obscure and undocumented, and Registry changes can leave the "
39809 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39810 "you have a reliable backup first."
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../tools/virt-win-reg.pl:65
39815 msgid ""
39816 "This program can export and merge Windows Registry entries from a Windows "
39817 "guest."
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../tools/virt-win-reg.pl:68
39822 msgid ""
39823 "The first parameter is the libvirt guest name or the raw disk image of a "
39824 "Windows guest."
39825 msgstr ""
39826
39827 #. type: textblock
39828 #: ../tools/virt-win-reg.pl:71
39829 msgid ""
39830 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39831 "exported (recursively).  For example:"
39832 msgstr ""
39833
39834 #. type: verbatim
39835 #: ../tools/virt-win-reg.pl:74
39836 #, no-wrap
39837 msgid ""
39838 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39839 "\n"
39840 msgstr ""
39841
39842 #. type: textblock
39843 #: ../tools/virt-win-reg.pl:76
39844 msgid ""
39845 "You can also display single values from within registry keys, for example:"
39846 msgstr ""
39847
39848 #. type: verbatim
39849 #: ../tools/virt-win-reg.pl:79
39850 #, no-wrap
39851 msgid ""
39852 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39853 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39854 " Windows 7 Enterprise\n"
39855 "\n"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../tools/virt-win-reg.pl:83
39860 msgid ""
39861 "With I<--merge>, you can merge a textual regedit file into the Windows "
39862 "Registry:"
39863 msgstr ""
39864
39865 #. type: verbatim
39866 #: ../tools/virt-win-reg.pl:86
39867 #, no-wrap
39868 msgid ""
39869 " $ virt-win-reg --merge Windows7 changes.reg\n"
39870 "\n"
39871 msgstr ""
39872
39873 #. type: textblock
39874 #: ../tools/virt-win-reg.pl:90
39875 msgid ""
39876 "This program is only meant for simple access to the registry.  If you want "
39877 "to do complicated things with the registry, we suggest you download the "
39878 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39879 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39880 "L<hivexregedit(1)>."
39881 msgstr ""
39882
39883 #. type: =item
39884 #: ../tools/virt-win-reg.pl:159
39885 msgid "B<--merge>"
39886 msgstr "B<--merge>"
39887
39888 #. type: textblock
39889 #: ../tools/virt-win-reg.pl:161
39890 msgid ""
39891 "In merge mode, this merges a textual regedit file into the Windows Registry "
39892 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39893 "displays or exports Registry entries instead."
39894 msgstr ""
39895
39896 #. type: textblock
39897 #: ../tools/virt-win-reg.pl:165
39898 msgid ""
39899 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39900 "result in disk corruption.  However exporting (without this flag)  is always "
39901 "safe."
39902 msgstr ""
39903
39904 #. type: =item
39905 #: ../tools/virt-win-reg.pl:173
39906 msgid "B<--encoding> UTF-16LE|ASCII"
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../tools/virt-win-reg.pl:175
39911 msgid ""
39912 "When merging (only), you may need to specify the encoding for strings to be "
39913 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39914 "(3)/ENCODING STRINGS>."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../tools/virt-win-reg.pl:179
39919 msgid ""
39920 "The default is to use UTF-16LE, which should work with recent versions of "
39921 "Windows."
39922 msgstr ""
39923
39924 #. type: =item
39925 #: ../tools/virt-win-reg.pl:186
39926 msgid "B<--unsafe-printable-strings>"
39927 msgstr ""
39928
39929 #. type: textblock
39930 #: ../tools/virt-win-reg.pl:188
39931 msgid ""
39932 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39933 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39934 "present."
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../tools/virt-win-reg.pl:192
39939 msgid ""
39940 "This is unsafe and does not preserve the fidelity of strings in the original "
39941 "Registry for various reasons:"
39942 msgstr ""
39943
39944 #. type: textblock
39945 #: ../tools/virt-win-reg.pl:199
39946 msgid ""
39947 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39948 "other encodings will be corrupted by this transformation."
39949 msgstr ""
39950
39951 #. type: textblock
39952 #: ../tools/virt-win-reg.pl:204
39953 msgid ""
39954 "Assumes that everything which has type 1 or 2 is really a string and that "
39955 "everything else is not a string, but the type field in real Registries is "
39956 "not reliable."
39957 msgstr ""
39958
39959 #. type: textblock
39960 #: ../tools/virt-win-reg.pl:210
39961 msgid ""
39962 "Loses information about whether a zero codepoint followed the string in the "
39963 "Registry or not."
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../tools/virt-win-reg.pl:215
39968 msgid ""
39969 "This all happens because the Registry itself contains no information about "
39970 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39971 msgstr ""
39972
39973 #. type: textblock
39974 #: ../tools/virt-win-reg.pl:219
39975 msgid ""
39976 "You should only use this option for quick hacking and debugging of the "
39977 "Registry contents, and I<never> use it if the output is going to be passed "
39978 "into another program or stored in another Registry."
39979 msgstr ""
39980
39981 #. type: =head1
39982 #: ../tools/virt-win-reg.pl:556
39983 msgid "SUPPORTED SYSTEMS"
39984 msgstr ""
39985
39986 #. type: textblock
39987 #: ../tools/virt-win-reg.pl:558
39988 msgid ""
39989 "The program currently supports Windows NT-derived guests starting with "
39990 "Windows XP through to at least Windows 7."
39991 msgstr ""
39992
39993 #. type: textblock
39994 #: ../tools/virt-win-reg.pl:561
39995 msgid "The following Registry keys are supported:"
39996 msgstr ""
39997
39998 #. type: =item
39999 #: ../tools/virt-win-reg.pl:565
40000 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40001 msgstr ""
40002
40003 #. type: =item
40004 #: ../tools/virt-win-reg.pl:567
40005 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40006 msgstr ""
40007
40008 #. type: =item
40009 #: ../tools/virt-win-reg.pl:569
40010 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40011 msgstr ""
40012
40013 #. type: =item
40014 #: ../tools/virt-win-reg.pl:571
40015 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40016 msgstr ""
40017
40018 #. type: =item
40019 #: ../tools/virt-win-reg.pl:573
40020 msgid "C<HKEY_USERS\\.DEFAULT>"
40021 msgstr ""
40022
40023 #. type: =item
40024 #: ../tools/virt-win-reg.pl:575
40025 msgid "C<HKEY_USERS\\I<SID>>"
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../tools/virt-win-reg.pl:577
40030 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40031 msgstr ""
40032
40033 #. type: =item
40034 #: ../tools/virt-win-reg.pl:579
40035 msgid "C<HKEY_USERS\\I<username>>"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../tools/virt-win-reg.pl:581
40040 msgid ""
40041 "where I<username> is a local user name (this is a libguestfs extension)."
40042 msgstr ""
40043
40044 #. type: textblock
40045 #: ../tools/virt-win-reg.pl:585
40046 msgid ""
40047 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40048 "C<HKEY_USERS>."
40049 msgstr ""
40050
40051 #. type: textblock
40052 #: ../tools/virt-win-reg.pl:588
40053 msgid ""
40054 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40055 "supported (there is no \"current user\")."
40056 msgstr ""
40057
40058 #. type: =head1
40059 #: ../tools/virt-win-reg.pl:591
40060 msgid "ENCODING"
40061 msgstr "КОДУВАННЯ"
40062
40063 #. type: textblock
40064 #: ../tools/virt-win-reg.pl:593
40065 msgid ""
40066 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40067 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40068 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40069 "Windows-style line endings, you may need to reencode the whole file before "
40070 "or after processing."
40071 msgstr ""
40072
40073 #. type: textblock
40074 #: ../tools/virt-win-reg.pl:599
40075 msgid ""
40076 "To reencode a file from Windows format to Linux (before processing it with "
40077 "the I<--merge> option), you would do something like this:"
40078 msgstr ""
40079
40080 #. type: verbatim
40081 #: ../tools/virt-win-reg.pl:602
40082 #, no-wrap
40083 msgid ""
40084 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40085 "\n"
40086 msgstr ""
40087
40088 #. type: textblock
40089 #: ../tools/virt-win-reg.pl:604
40090 msgid ""
40091 "To go in the opposite direction, after exporting and before sending the file "
40092 "to a Windows user, do something like this:"
40093 msgstr ""
40094
40095 #. type: verbatim
40096 #: ../tools/virt-win-reg.pl:607
40097 #, no-wrap
40098 msgid ""
40099 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40100 "\n"
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../tools/virt-win-reg.pl:609
40105 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../tools/virt-win-reg.pl:611
40110 msgid ""
40111 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40112 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40113 "style (CRLF) line endings, like this:"
40114 msgstr ""
40115
40116 #. type: verbatim
40117 #: ../tools/virt-win-reg.pl:615
40118 #, no-wrap
40119 msgid ""
40120 " $ file software.reg\n"
40121 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40122 " with CRLF line terminators\n"
40123 "\n"
40124 msgstr ""
40125
40126 #. type: textblock
40127 #: ../tools/virt-win-reg.pl:619
40128 msgid "This file would need conversion before you could I<--merge> it."
40129 msgstr ""
40130
40131 #. type: =head1
40132 #: ../tools/virt-win-reg.pl:621
40133 msgid "CurrentControlSet etc."
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../tools/virt-win-reg.pl:623
40138 msgid ""
40139 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40140 "Registry at the level of the hive file, and therefore you cannot modify "
40141 "these."
40142 msgstr ""
40143
40144 #. type: textblock
40145 #: ../tools/virt-win-reg.pl:627
40146 msgid ""
40147 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40148 "circumstances it might refer to another control set.  The way to find out is "
40149 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40150 msgstr ""
40151
40152 #. type: verbatim
40153 #: ../tools/virt-win-reg.pl:631
40154 #, no-wrap
40155 msgid ""
40156 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40157 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40158 " \"Current\"=dword:00000001\n"
40159 " \"Default\"=dword:00000001\n"
40160 " \"Failed\"=dword:00000000\n"
40161 " \"LastKnownGood\"=dword:00000002\n"
40162 "\n"
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../tools/virt-win-reg.pl:638
40167 msgid "\"Current\" is the one which Windows will choose when it boots."
40168 msgstr ""
40169
40170 #. type: textblock
40171 #: ../tools/virt-win-reg.pl:640
40172 msgid ""
40173 "Similarly, other C<Current...> keys in the path may need to be replaced."
40174 msgstr ""
40175
40176 #. type: =head1
40177 #: ../tools/virt-win-reg.pl:643
40178 msgid "WINDOWS TIPS"
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../tools/virt-win-reg.pl:645
40183 msgid ""
40184 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40185 "be shut off, else you will get disk corruption."
40186 msgstr ""
40187
40188 #. type: =head2
40189 #: ../tools/virt-win-reg.pl:648
40190 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40191 msgstr ""
40192
40193 #. type: textblock
40194 #: ../tools/virt-win-reg.pl:650
40195 msgid ""
40196 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40197 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40198 "is uploaded into C<C:\\>:"
40199 msgstr ""
40200
40201 #. type: verbatim
40202 #: ../tools/virt-win-reg.pl:654
40203 #, no-wrap
40204 msgid ""
40205 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40206 "\n"
40207 msgstr ""
40208
40209 #. type: textblock
40210 #: ../tools/virt-win-reg.pl:656
40211 msgid "Prepare a regedit file containing the registry change:"
40212 msgstr ""
40213
40214 #. type: verbatim
40215 #: ../tools/virt-win-reg.pl:658
40216 #, no-wrap
40217 msgid ""
40218 " cat > test.reg <<'EOF'\n"
40219 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40220 " \"Test\"=\"c:\\\\test.bat\"\n"
40221 " EOF\n"
40222 "\n"
40223 msgstr ""
40224
40225 #. type: textblock
40226 #: ../tools/virt-win-reg.pl:663
40227 msgid ""
40228 "In this example we use the key C<RunOnce> which means that the script will "
40229 "run precisely once when the first user logs in.  If you want it to run every "
40230 "time a user logs in, replace C<RunOnce> with C<Run>."
40231 msgstr ""
40232
40233 #. type: textblock
40234 #: ../tools/virt-win-reg.pl:667
40235 msgid "Now update the registry:"
40236 msgstr ""
40237
40238 #. type: verbatim
40239 #: ../tools/virt-win-reg.pl:669
40240 #, no-wrap
40241 msgid ""
40242 " virt-win-reg --merge WindowsGuest test.reg\n"
40243 "\n"
40244 msgstr ""
40245
40246 #. type: =head2
40247 #: ../tools/virt-win-reg.pl:671
40248 msgid "INSTALLING A SERVICE"
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../tools/virt-win-reg.pl:673
40253 msgid ""
40254 "This section assumes you are familiar with Windows services, and you either "
40255 "have a program which handles the Windows Service Control Protocol directly "
40256 "or you want to run any program using a service wrapper like SrvAny or the "
40257 "free RHSrvAny."
40258 msgstr ""
40259
40260 #. type: textblock
40261 #: ../tools/virt-win-reg.pl:678
40262 msgid ""
40263 "First upload the program and optionally the service wrapper.  In this case "
40264 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40265 msgstr ""
40266
40267 #. type: verbatim
40268 #: ../tools/virt-win-reg.pl:682
40269 #, no-wrap
40270 msgid ""
40271 " guestfish -i -d WindowsGuest <<EOF\n"
40272 "   upload rhsrvany.exe /rhsrvany.exe\n"
40273 "   upload test.exe /test.exe\n"
40274 " EOF\n"
40275 "\n"
40276 msgstr ""
40277
40278 #. type: textblock
40279 #: ../tools/virt-win-reg.pl:687
40280 msgid ""
40281 "Prepare a regedit file containing the registry changes.  In this example, "
40282 "the first registry change is needed for the service itself or the service "
40283 "wrapper (if used).  The second registry change is only needed because I am "
40284 "using the RHSrvAny service wrapper."
40285 msgstr ""
40286
40287 #. type: verbatim
40288 #: ../tools/virt-win-reg.pl:692
40289 #, no-wrap
40290 msgid ""
40291 " cat > service.reg <<'EOF'\n"
40292 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40293 " \"Type\"=dword:00000010\n"
40294 " \"Start\"=dword:00000002\n"
40295 " \"ErrorControl\"=dword:00000001\n"
40296 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40297 " \"DisplayName\"=\"RHSrvAny\"\n"
40298 " \"ObjectName\"=\"NetworkService\"\n"
40299 " \n"
40300 msgstr ""
40301
40302 #. type: verbatim
40303 #: ../tools/virt-win-reg.pl:701
40304 #, no-wrap
40305 msgid ""
40306 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40307 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40308 " \"PWD\"=\"c:\\\\Temp\"\n"
40309 " EOF\n"
40310 "\n"
40311 msgstr ""
40312
40313 #. type: textblock
40314 #: ../tools/virt-win-reg.pl:712
40315 msgid ""
40316 "For use of C<ControlSet001> see the section above in this manual page.  You "
40317 "may need to adjust this according to the control set that is in use by the "
40318 "guest."
40319 msgstr ""
40320
40321 #. type: textblock
40322 #: ../tools/virt-win-reg.pl:718
40323 msgid ""
40324 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40325 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40326 "privileged account."
40327 msgstr ""
40328
40329 #. type: textblock
40330 #: ../tools/virt-win-reg.pl:724
40331 msgid ""
40332 "For the meaning of the magic numbers, see this Microsoft KB article: "
40333 "L<http://support.microsoft.com/kb/103000>."
40334 msgstr ""
40335
40336 #. type: textblock
40337 #: ../tools/virt-win-reg.pl:729
40338 msgid "Update the registry:"
40339 msgstr ""
40340
40341 #. type: verbatim
40342 #: ../tools/virt-win-reg.pl:731
40343 #, no-wrap
40344 msgid ""
40345 " virt-win-reg --merge WindowsGuest service.reg\n"
40346 "\n"
40347 msgstr ""
40348
40349 #. type: textblock
40350 #: ../tools/virt-win-reg.pl:735
40351 msgid ""
40352 "Be careful when passing parameters containing C<\\> (backslash) in the "
40353 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40354 "(but not both) to protect them from the shell."
40355 msgstr ""
40356
40357 #. type: textblock
40358 #: ../tools/virt-win-reg.pl:739
40359 msgid "Paths and value names are case-insensitive."
40360 msgstr ""
40361
40362 #. type: textblock
40363 #: ../tools/virt-win-reg.pl:748
40364 msgid ""
40365 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40366 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40367 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40368 msgstr ""
40369
40370 #. type: verbatim
40371 #: ../tools/virt-win-reg.pl:766
40372 #, no-wrap
40373 msgid ""
40374 " export LIBGUESTFS_DEBUG=1\n"
40375 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40376 "\n"
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../tools/virt-win-reg.pl:769
40381 msgid ""
40382 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40383 "redhat.com/>"
40384 msgstr ""
40385
40386 #~ msgid "I<--help>"
40387 #~ msgstr "I<--help>"
40388
40389 #~ msgid "EXIT CODE"
40390 #~ msgstr "КОД ВИХОДУ"
40391
40392 #~ msgid "B<-a> | B<--all>"
40393 #~ msgstr "B<-a> | B<--all>"
40394
40395 #~ msgid "B<-x> | B<--extract> | B<--download>"
40396 #~ msgstr "B<-x> | B<--extract> | B<--download>"