Version 1.12.10
[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-11-09 22:42+0000\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:550
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:552
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:557 ../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:582 ../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:584
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:586 ../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 ../tools/virt-make-fs.pl:588
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:590 ../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:595 ../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:600 ../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-win-reg.pl:778
1595 msgid "Copyright (C) 2010 Red Hat Inc."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-ls.pod:5
1600 msgid "virt-ls - List files in a virtual machine"
1601 msgstr ""
1602
1603 #. type: verbatim
1604 #: ../cat/virt-ls.pod:9
1605 #, no-wrap
1606 msgid ""
1607 " virt-ls [--options] -d domname directory [directory ...]\n"
1608 "\n"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:11
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1622 "\n"
1623
1624 #. type: textblock
1625 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1626 msgid "Old style:"
1627 msgstr ""
1628
1629 #. type: verbatim
1630 #: ../cat/virt-ls.pod:15
1631 #, fuzzy, no-wrap
1632 #| msgid ""
1633 #| " virt-list-partitions [--options] domname\n"
1634 #| "\n"
1635 msgid ""
1636 " virt-ls [--options] domname directory\n"
1637 "\n"
1638 msgstr ""
1639 " virt-list-partitions [--параметри] назва_домену\n"
1640 "\n"
1641
1642 #. type: verbatim
1643 #: ../cat/virt-ls.pod:17
1644 #, fuzzy, no-wrap
1645 #| msgid ""
1646 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1647 #| "\n"
1648 msgid ""
1649 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1650 "\n"
1651 msgstr ""
1652 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1653 "\n"
1654
1655 #. type: textblock
1656 #: ../cat/virt-ls.pod:21
1657 msgid ""
1658 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1659 "more from a virtual machine or disk image."
1660 msgstr ""
1661
1662 #. type: textblock
1663 #: ../cat/virt-ls.pod:24
1664 msgid ""
1665 "Multiple directory names can be given, in which case the output from each is "
1666 "concatenated."
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-ls.pod:27
1671 msgid ""
1672 "To list directories from a libvirt guest use the I<-d> option to specify the "
1673 "name of the guest.  For a disk image, use the I<-a> option."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-ls.pod:31
1678 msgid ""
1679 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1680 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1681 "(3)> API."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:37
1686 msgid "Get a list of all files and directories in a virtual machine:"
1687 msgstr ""
1688
1689 #. type: verbatim
1690 #: ../cat/virt-ls.pod:39
1691 #, fuzzy, no-wrap
1692 #| msgid ""
1693 #| " guestfish --ro -d myguest -i\n"
1694 #| "\n"
1695 msgid ""
1696 " virt-ls -R -d guest /\n"
1697 "\n"
1698 msgstr ""
1699 " guestfish --ro -d myguest -i\n"
1700 "\n"
1701
1702 #. type: textblock
1703 #: ../cat/virt-ls.pod:41
1704 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1705 msgstr ""
1706
1707 #. type: verbatim
1708 #: ../cat/virt-ls.pod:43
1709 #, no-wrap
1710 msgid ""
1711 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1712 "\n"
1713 msgstr ""
1714
1715 #. type: textblock
1716 #: ../cat/virt-ls.pod:45
1717 msgid "List all public-writable directories in a Linux virtual machine:"
1718 msgstr ""
1719
1720 #. type: verbatim
1721 #: ../cat/virt-ls.pod:47
1722 #, no-wrap
1723 msgid ""
1724 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1725 "\n"
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../cat/virt-ls.pod:49
1730 msgid "List all Unix domain sockets in a Linux virtual machine:"
1731 msgstr ""
1732
1733 #. type: verbatim
1734 #: ../cat/virt-ls.pod:51
1735 #, no-wrap
1736 msgid ""
1737 " virt-ls -lR -d guest / | grep '^s'\n"
1738 "\n"
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../cat/virt-ls.pod:53
1743 msgid "List all regular files with filenames ending in '.png':"
1744 msgstr ""
1745
1746 #. type: verbatim
1747 #: ../cat/virt-ls.pod:55
1748 #, no-wrap
1749 msgid ""
1750 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1751 "\n"
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-ls.pod:57
1756 msgid "To display files larger than 10MB in home directories:"
1757 msgstr ""
1758
1759 #. type: verbatim
1760 #: ../cat/virt-ls.pod:59
1761 #, no-wrap
1762 msgid ""
1763 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1764 "\n"
1765 msgstr ""
1766
1767 #. type: textblock
1768 #: ../cat/virt-ls.pod:61
1769 msgid "Find everything modified in the last 7 days:"
1770 msgstr ""
1771
1772 #. type: verbatim
1773 #: ../cat/virt-ls.pod:63
1774 #, no-wrap
1775 msgid ""
1776 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1777 "\n"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:65
1782 msgid "Find regular files modified in the last 24 hours:"
1783 msgstr ""
1784
1785 #. type: verbatim
1786 #: ../cat/virt-ls.pod:67
1787 #, no-wrap
1788 msgid ""
1789 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1790 "\n"
1791 msgstr ""
1792
1793 #. type: =head2
1794 #: ../cat/virt-ls.pod:69
1795 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1796 msgstr ""
1797
1798 #. type: textblock
1799 #: ../cat/virt-ls.pod:71
1800 msgid ""
1801 "Find the differences between files in a guest and an earlier snapshot of the "
1802 "same guest."
1803 msgstr ""
1804
1805 #. type: verbatim
1806 #: ../cat/virt-ls.pod:74
1807 #, no-wrap
1808 msgid ""
1809 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1810 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1811 " diff -u old new | less\n"
1812 "\n"
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-ls.pod:78
1817 msgid ""
1818 "The commands above won't find files where the content has changed but the "
1819 "metadata (eg. file size and modification date) is the same.  To do that, you "
1820 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1821 "checksum> can be quite slow since it has to read and compute a checksum of "
1822 "every regular file in the virtual machine."
1823 msgstr ""
1824
1825 #. type: =head1
1826 #: ../cat/virt-ls.pod:84
1827 msgid "OUTPUT MODES"
1828 msgstr ""
1829
1830 #. type: textblock
1831 #: ../cat/virt-ls.pod:86
1832 msgid ""
1833 "C<virt-ls> has four output modes, controlled by different combinations of "
1834 "the I<-l> and I<-R> options."
1835 msgstr ""
1836
1837 #. type: =head2
1838 #: ../cat/virt-ls.pod:89
1839 msgid "SIMPLE LISTING"
1840 msgstr ""
1841
1842 #. type: textblock
1843 #: ../cat/virt-ls.pod:91
1844 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:93
1849 #, no-wrap
1850 msgid ""
1851 " $ virt-ls -d guest /\n"
1852 " bin\n"
1853 " boot\n"
1854 " [etc.]\n"
1855 "\n"
1856 msgstr ""
1857
1858 #. type: =head2
1859 #: ../cat/virt-ls.pod:98
1860 #, fuzzy
1861 #| msgid "MOUNTING"
1862 msgid "LONG LISTING"
1863 msgstr "МОНТУВАННЯ"
1864
1865 #. type: textblock
1866 #: ../cat/virt-ls.pod:100
1867 msgid ""
1868 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1869 "(more specifically, like the C<guestfs_ll> function)."
1870 msgstr ""
1871
1872 #. type: verbatim
1873 #: ../cat/virt-ls.pod:103
1874 #, no-wrap
1875 msgid ""
1876 " $ virt-ls -l -d guest /\n"
1877 " total 204\n"
1878 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1879 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1880 " [etc.]\n"
1881 "\n"
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:109
1886 msgid ""
1887 "Note that while this is useful for displaying a directory, do not try "
1888 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1889 "instead."
1890 msgstr ""
1891
1892 #. type: =head2
1893 #: ../cat/virt-ls.pod:113
1894 msgid "RECURSIVE LISTING"
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-ls.pod:115
1899 msgid ""
1900 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1901 "and directories recursively:"
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-ls.pod:118
1906 #, no-wrap
1907 msgid ""
1908 " $ virt-ls -R -d guest /tmp\n"
1909 " foo\n"
1910 " foo/bar\n"
1911 " [etc.]\n"
1912 "\n"
1913 msgstr ""
1914
1915 #. type: textblock
1916 #: ../cat/virt-ls.pod:123
1917 msgid ""
1918 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1919 "converts C<\\0> characters to C<\\n>."
1920 msgstr ""
1921
1922 #. type: =head2
1923 #: ../cat/virt-ls.pod:126
1924 msgid "RECURSIVE LONG LISTING"
1925 msgstr ""
1926
1927 #. type: textblock
1928 #: ../cat/virt-ls.pod:128
1929 msgid ""
1930 "Using I<-lR> options together changes the output to display directories "
1931 "recursively, with file stats, and optionally other features such as "
1932 "checksums and extended attributes."
1933 msgstr ""
1934
1935 #. type: textblock
1936 #: ../cat/virt-ls.pod:132
1937 msgid ""
1938 "Most of the interesting features of C<virt-ls> are only available when using "
1939 "I<-lR> mode."
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../cat/virt-ls.pod:135
1944 msgid ""
1945 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1946 "you cannot use the output in another program (because filenames can contain "
1947 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1948 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1949 "on you by creating filenames with embedded newline characters.  To B<safely> "
1950 "parse the output in another program, use the I<--csv> (Comma-Separated "
1951 "Values) option."
1952 msgstr ""
1953
1954 #. type: textblock
1955 #: ../cat/virt-ls.pod:143
1956 msgid ""
1957 "Note that this output format is completely unrelated to the C<ls -lR> "
1958 "command."
1959 msgstr ""
1960
1961 #. type: verbatim
1962 #: ../cat/virt-ls.pod:146
1963 #, no-wrap
1964 msgid ""
1965 " $ virt-ls -lR -d guest /bin\n"
1966 " d 0555       4096 /bin\n"
1967 " - 0755        123 /bin/alsaunmute\n"
1968 " - 0755      28328 /bin/arch\n"
1969 " l 0777          4 /bin/awk -> gawk\n"
1970 " - 0755      27216 /bin/basename\n"
1971 " - 0755     943360 /bin/bash\n"
1972 " [etc.]\n"
1973 "\n"
1974 msgstr ""
1975
1976 #. type: textblock
1977 #: ../cat/virt-ls.pod:155
1978 msgid "These basic fields are always shown:"
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-ls.pod:159
1983 #, fuzzy
1984 #| msgid "vfs-type"
1985 msgid "type"
1986 msgstr "vfs-type"
1987
1988 #. type: textblock
1989 #: ../cat/virt-ls.pod:161
1990 msgid ""
1991 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1992 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1993 "link), C<s> (socket) or C<u> (unknown)."
1994 msgstr ""
1995
1996 #. type: =item
1997 #: ../cat/virt-ls.pod:171
1998 #, fuzzy
1999 #| msgid "version"
2000 msgid "permissions"
2001 msgstr "version"
2002
2003 #. type: textblock
2004 #: ../cat/virt-ls.pod:173
2005 msgid "The Unix permissions, displayed as a 4 digit octal number."
2006 msgstr ""
2007
2008 #. type: =item
2009 #: ../cat/virt-ls.pod:175
2010 #, fuzzy
2011 #| msgid "filesize"
2012 msgid "size"
2013 msgstr "filesize"
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:177
2017 msgid ""
2018 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2019 "readable> option is given, in which case this is shown as a human-readable "
2020 "number."
2021 msgstr ""
2022
2023 #. type: =head2
2024 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4210
2025 msgid "path"
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-ls.pod:183
2030 msgid "The full path of the file or directory."
2031 msgstr ""
2032
2033 #. type: =item
2034 #: ../cat/virt-ls.pod:185
2035 #, fuzzy
2036 #| msgid "readlink"
2037 msgid "link"
2038 msgstr "readlink"
2039
2040 #. type: textblock
2041 #: ../cat/virt-ls.pod:187
2042 msgid "For symbolic links only, the link target."
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../cat/virt-ls.pod:191
2047 msgid ""
2048 "In I<-lR> mode, additional command line options enable the display of more "
2049 "fields."
2050 msgstr ""
2051
2052 #. type: textblock
2053 #: ../cat/virt-ls.pod:194
2054 msgid ""
2055 "With the I<--uids> flag, these additional fields are displayed before the "
2056 "path:"
2057 msgstr ""
2058
2059 #. type: =item
2060 #: ../cat/virt-ls.pod:199
2061 #, fuzzy
2062 #| msgid "lvuuid"
2063 msgid "uid"
2064 msgstr "lvuuid"
2065
2066 #. type: =item
2067 #: ../cat/virt-ls.pod:201
2068 #, fuzzy
2069 #| msgid "vguuid"
2070 msgid "gid"
2071 msgstr "vguuid"
2072
2073 #. type: textblock
2074 #: ../cat/virt-ls.pod:203
2075 msgid ""
2076 "The UID and GID of the owner of the file (displayed numerically).  Note "
2077 "these only make sense in the context of a Unix-like guest."
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:208
2082 msgid "With the I<--times> flag, these additional fields are displayed:"
2083 msgstr ""
2084
2085 #. type: =item
2086 #: ../cat/virt-ls.pod:212
2087 #, fuzzy
2088 #| msgid "time"
2089 msgid "atime"
2090 msgstr "time"
2091
2092 #. type: textblock
2093 #: ../cat/virt-ls.pod:214
2094 msgid "The time of last access."
2095 msgstr ""
2096
2097 #. type: =item
2098 #: ../cat/virt-ls.pod:216
2099 #, fuzzy
2100 #| msgid "time"
2101 msgid "mtime"
2102 msgstr "time"
2103
2104 #. type: textblock
2105 #: ../cat/virt-ls.pod:218
2106 msgid "The time of last modification."
2107 msgstr ""
2108
2109 #. type: =item
2110 #: ../cat/virt-ls.pod:220
2111 #, fuzzy
2112 #| msgid "time"
2113 msgid "ctime"
2114 msgstr "time"
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:222
2118 msgid "The time of last status change."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-ls.pod:226
2123 msgid ""
2124 "The time fields are displayed as string dates and times, unless one of the "
2125 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2126 msgstr ""
2127
2128 #. type: textblock
2129 #: ../cat/virt-ls.pod:229
2130 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2131 msgstr ""
2132
2133 #. type: =item
2134 #: ../cat/virt-ls.pod:233
2135 #, fuzzy
2136 #| msgid "zero-device"
2137 msgid "device"
2138 msgstr "zero-device"
2139
2140 #. type: textblock
2141 #: ../cat/virt-ls.pod:235
2142 msgid ""
2143 "The device containing the file (displayed as major:minor).  This may not "
2144 "match devices as known to the guest."
2145 msgstr ""
2146
2147 #. type: =item
2148 #: ../cat/virt-ls.pod:238
2149 msgid "inode"
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-ls.pod:240
2154 msgid "The inode number."
2155 msgstr ""
2156
2157 #. type: =item
2158 #: ../cat/virt-ls.pod:242
2159 #, fuzzy
2160 #| msgid "readlink"
2161 msgid "nlink"
2162 msgstr "readlink"
2163
2164 #. type: textblock
2165 #: ../cat/virt-ls.pod:244
2166 msgid "The number of hard links."
2167 msgstr ""
2168
2169 #. type: =item
2170 #: ../cat/virt-ls.pod:246
2171 msgid "rdev"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:248
2176 msgid ""
2177 "For block and char special files, the device (displayed as major:minor)."
2178 msgstr ""
2179
2180 #. type: =item
2181 #: ../cat/virt-ls.pod:251
2182 #, fuzzy
2183 #| msgid "C<blocksize>"
2184 msgid "blocks"
2185 msgstr "C<blocksize>"
2186
2187 #. type: textblock
2188 #: ../cat/virt-ls.pod:253
2189 msgid "The number of 512 byte blocks allocated to the file."
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../cat/virt-ls.pod:257
2194 msgid ""
2195 "With the I<--checksum> flag, the checksum of the file contents is shown "
2196 "(only for regular files).  Computing file checksums can take a considerable "
2197 "amount of time."
2198 msgstr ""
2199
2200 #. type: =item
2201 #: ../cat/virt-ls.pod:280
2202 #, fuzzy
2203 #| msgid "checksum"
2204 msgid "B<--checksum>"
2205 msgstr "checksum"
2206
2207 #. type: =item
2208 #: ../cat/virt-ls.pod:282
2209 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2210 msgstr ""
2211
2212 #. type: textblock
2213 #: ../cat/virt-ls.pod:284
2214 msgid ""
2215 "Display checksum over file contents for regular files.  With no argument, "
2216 "this defaults to using I<md5>.  Using an argument, you can select the "
2217 "checksum type to use."
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2222 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2223 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2224 msgid ""
2225 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2226 "LISTING> above."
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../cat/virt-ls.pod:316
2231 msgid ""
2232 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2233 "so you cannot see what you are typing.  If you are not worried about Tempest "
2234 "attacks and there is no one else in the room you can specify this flag to "
2235 "see what you are typing."
2236 msgstr ""
2237
2238 #. type: =item
2239 #: ../cat/virt-ls.pod:321
2240 #, fuzzy
2241 #| msgid "B<--no-dest-paths>"
2242 msgid "B<--extra-stats>"
2243 msgstr "B<--no-dest-paths>"
2244
2245 #. type: textblock
2246 #: ../cat/virt-ls.pod:323
2247 msgid "Display extra stats."
2248 msgstr ""
2249
2250 #. type: verbatim
2251 #: ../cat/virt-ls.pod:339
2252 #, fuzzy, no-wrap
2253 #| msgid ""
2254 #| " guestfish --format=raw -a disk.img\n"
2255 #| "\n"
2256 msgid ""
2257 " virt-ls --format=raw -a disk.img /dir\n"
2258 "\n"
2259 msgstr ""
2260 " guestfish --format=raw -a disk.img\n"
2261 "\n"
2262
2263 #. type: verbatim
2264 #: ../cat/virt-ls.pod:343
2265 #, fuzzy, no-wrap
2266 #| msgid ""
2267 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2268 #| "\n"
2269 msgid ""
2270 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2271 "\n"
2272 msgstr ""
2273 " guestfish --format=raw -a disk.img --format -a another.img\n"
2274 "\n"
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:356
2278 msgid "Display file sizes in human-readable format."
2279 msgstr ""
2280
2281 #. type: =item
2282 #: ../cat/virt-ls.pod:370
2283 msgid "B<-R>"
2284 msgstr ""
2285
2286 #. type: =item
2287 #: ../cat/virt-ls.pod:372
2288 #, fuzzy
2289 #| msgid "B<--live>"
2290 msgid "B<--recursive>"
2291 msgstr "B<--live>"
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:374
2295 msgid ""
2296 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2297 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2298 "LISTING>."
2299 msgstr ""
2300
2301 #. type: textblock
2302 #: ../cat/virt-ls.pod:378
2303 msgid ""
2304 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2305 "LONG LISTING>."
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../cat/virt-ls.pod:381
2310 msgid ""
2311 "C<virt-ls -R> produces a recursive list of files starting at the named "
2312 "directory.  See L</RECURSIVE LISTING>."
2313 msgstr ""
2314
2315 #. type: textblock
2316 #: ../cat/virt-ls.pod:384
2317 msgid ""
2318 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2319 "parsed.  See L</RECURSIVE LONG LISTING>."
2320 msgstr ""
2321
2322 #. type: =item
2323 #: ../cat/virt-ls.pod:387
2324 #, fuzzy
2325 #| msgid "B<--live>"
2326 msgid "B<--times>"
2327 msgstr "B<--live>"
2328
2329 #. type: textblock
2330 #: ../cat/virt-ls.pod:389
2331 msgid "Display time fields."
2332 msgstr ""
2333
2334 #. type: =item
2335 #: ../cat/virt-ls.pod:394
2336 #, fuzzy
2337 #| msgid "B<--echo-keys>"
2338 msgid "B<--time-days>"
2339 msgstr "B<--echo-keys>"
2340
2341 #. type: textblock
2342 #: ../cat/virt-ls.pod:396
2343 msgid "Display time fields as days before now (negative if in the future)."
2344 msgstr ""
2345
2346 #. type: textblock
2347 #: ../cat/virt-ls.pod:398
2348 msgid ""
2349 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2350 "of the file is between 0 and 86399 seconds."
2351 msgstr ""
2352
2353 #. type: =item
2354 #: ../cat/virt-ls.pod:404
2355 #, fuzzy
2356 #| msgid "B<--live>"
2357 msgid "B<--time-relative>"
2358 msgstr "B<--live>"
2359
2360 #. type: textblock
2361 #: ../cat/virt-ls.pod:406
2362 msgid "Display time fields as seconds before now (negative if in the future)."
2363 msgstr ""
2364
2365 #. type: =item
2366 #: ../cat/virt-ls.pod:411
2367 #, fuzzy
2368 #| msgid "I<--timeout N>"
2369 msgid "B<--time-t>"
2370 msgstr "I<--timeout N>"
2371
2372 #. type: textblock
2373 #: ../cat/virt-ls.pod:413
2374 msgid "Display time fields as seconds since the Unix epoch."
2375 msgstr ""
2376
2377 #. type: =item
2378 #: ../cat/virt-ls.pod:418
2379 #, fuzzy
2380 #| msgid "B<--csh>"
2381 msgid "B<--uids>"
2382 msgstr "B<--csh>"
2383
2384 #. type: textblock
2385 #: ../cat/virt-ls.pod:420
2386 msgid "Display UID and GID fields."
2387 msgstr ""
2388
2389 #. type: textblock
2390 #: ../cat/virt-ls.pod:445
2391 msgid "Previous versions of virt-ls allowed you to write either:"
2392 msgstr ""
2393
2394 #. type: verbatim
2395 #: ../cat/virt-ls.pod:447
2396 #, fuzzy, no-wrap
2397 #| msgid ""
2398 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2399 #| "\n"
2400 msgid ""
2401 " virt-ls disk.img [disk.img ...] /dir\n"
2402 "\n"
2403 msgstr ""
2404 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2405 "\n"
2406
2407 #. type: verbatim
2408 #: ../cat/virt-ls.pod:451
2409 #, fuzzy, no-wrap
2410 #| msgid ""
2411 #| " inspect-get-hostname root\n"
2412 #| "\n"
2413 msgid ""
2414 " virt-ls guestname /dir\n"
2415 "\n"
2416 msgstr ""
2417 " inspect-get-hostname корінь\n"
2418 "\n"
2419
2420 #. type: textblock
2421 #: ../cat/virt-ls.pod:497
2422 #, fuzzy
2423 #| msgid ""
2424 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2425 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2426 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2427 msgid ""
2428 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2429 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2430 "L<http://libguestfs.org/>."
2431 msgstr ""
2432 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2433 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2434 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2435
2436 #. type: textblock
2437 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2438 #: ../rescue/virt-rescue.pod:298
2439 #, fuzzy
2440 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2441 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2442 msgstr "© Red Hat Inc., 2009–2010"
2443
2444 #. type: textblock
2445 #: ../df/virt-df.pod:5
2446 msgid "virt-df - Display free space on virtual filesystems"
2447 msgstr ""
2448
2449 #. type: verbatim
2450 #: ../df/virt-df.pod:9
2451 #, fuzzy, no-wrap
2452 #| msgid ""
2453 #| " virt-list-partitions [--options] domname\n"
2454 #| "\n"
2455 msgid ""
2456 " virt-df [--options]\n"
2457 "\n"
2458 msgstr ""
2459 " virt-list-partitions [--параметри] назва_домену\n"
2460 "\n"
2461
2462 #. type: verbatim
2463 #: ../df/virt-df.pod:11
2464 #, fuzzy, no-wrap
2465 #| msgid ""
2466 #| " virt-list-partitions [--options] domname\n"
2467 #| "\n"
2468 msgid ""
2469 " virt-df [--options] -d domname\n"
2470 "\n"
2471 msgstr ""
2472 " virt-list-partitions [--параметри] назва_домену\n"
2473 "\n"
2474
2475 #. type: verbatim
2476 #: ../df/virt-df.pod:13
2477 #, fuzzy, no-wrap
2478 #| msgid ""
2479 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2480 #| "\n"
2481 msgid ""
2482 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2483 "\n"
2484 msgstr ""
2485 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2486 "\n"
2487
2488 #. type: verbatim
2489 #: ../df/virt-df.pod:17
2490 #, fuzzy, no-wrap
2491 #| msgid ""
2492 #| " virt-list-partitions [--options] domname\n"
2493 #| "\n"
2494 msgid ""
2495 " virt-df [--options] domname\n"
2496 "\n"
2497 msgstr ""
2498 " virt-list-partitions [--параметри] назва_домену\n"
2499 "\n"
2500
2501 #. type: verbatim
2502 #: ../df/virt-df.pod:19
2503 #, fuzzy, no-wrap
2504 #| msgid ""
2505 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2506 #| "\n"
2507 msgid ""
2508 " virt-df [--options] disk.img [disk.img ...]\n"
2509 "\n"
2510 msgstr ""
2511 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2512 "\n"
2513
2514 #. type: textblock
2515 #: ../df/virt-df.pod:23
2516 msgid ""
2517 "C<virt-df> is a command line tool to display free space on virtual machine "
2518 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2519 "allocated to a virtual machine, but can look inside disk images to see how "
2520 "much space is really being used."
2521 msgstr ""
2522
2523 #. type: textblock
2524 #: ../df/virt-df.pod:28
2525 msgid ""
2526 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2527 "to get a list of all active and inactive guests, and performs a C<df>-type "
2528 "operation on each one in turn, printing out the results."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../df/virt-df.pod:32
2533 msgid ""
2534 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2535 "type operation on either the single named libvirt domain, or on the disk "
2536 "image(s) listed on the command line (which must all belong to a single VM).  "
2537 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2538 "guest>.  If you want to run on multiple guests, then you have to invoke "
2539 "C<virt-df> multiple times."
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../df/virt-df.pod:39
2544 msgid ""
2545 "Use the I<--csv> option to get a format which can be easily parsed by other "
2546 "programs.  Other options are similar to the standard L<df(1)> command."
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../df/virt-df.pod:45
2551 msgid ""
2552 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2553 "output human-readable:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../df/virt-df.pod:48
2558 #, no-wrap
2559 msgid ""
2560 " # virt-df -d F14x64 -h\n"
2561 " Filesystem                       Size     Used  Available  Use%\n"
2562 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2563 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2564 "\n"
2565 msgstr ""
2566
2567 #. type: textblock
2568 #: ../df/virt-df.pod:53
2569 msgid "Show disk usage for a disk image file called C<test.img>:"
2570 msgstr ""
2571
2572 #. type: verbatim
2573 #: ../df/virt-df.pod:55
2574 #, no-wrap
2575 msgid ""
2576 " $ virt-df -a test1.img\n"
2577 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2578 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2579 "\n"
2580 msgstr ""
2581
2582 #. type: verbatim
2583 #: ../df/virt-df.pod:112
2584 #, fuzzy, no-wrap
2585 #| msgid ""
2586 #| " guestfish --format=raw -a disk.img\n"
2587 #| "\n"
2588 msgid ""
2589 " virt-df --format=raw -a disk.img\n"
2590 "\n"
2591 msgstr ""
2592 " guestfish --format=raw -a disk.img\n"
2593 "\n"
2594
2595 #. type: verbatim
2596 #: ../df/virt-df.pod:116
2597 #, fuzzy, no-wrap
2598 #| msgid ""
2599 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2600 #| "\n"
2601 msgid ""
2602 " virt-df --format=raw -a disk.img --format -a another.img\n"
2603 "\n"
2604 msgstr ""
2605 " guestfish --format=raw -a disk.img --format -a another.img\n"
2606 "\n"
2607
2608 #. type: textblock
2609 #: ../df/virt-df.pod:129
2610 msgid "Print sizes in human-readable format."
2611 msgstr ""
2612
2613 #. type: textblock
2614 #: ../df/virt-df.pod:131
2615 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2616 msgstr ""
2617
2618 #. type: =item
2619 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
2620 msgid "B<-i>"
2621 msgstr "B<-i>"
2622
2623 #. type: =item
2624 #: ../df/virt-df.pod:135
2625 #, fuzzy
2626 #| msgid "B<--live>"
2627 msgid "B<--inodes>"
2628 msgstr "B<--live>"
2629
2630 #. type: textblock
2631 #: ../df/virt-df.pod:137
2632 msgid "Print inodes instead of blocks."
2633 msgstr ""
2634
2635 #. type: =item
2636 #: ../df/virt-df.pod:139
2637 #, fuzzy
2638 #| msgid "B<--merge>"
2639 msgid "B<--one-per-guest>"
2640 msgstr "B<--merge>"
2641
2642 #. type: textblock
2643 #: ../df/virt-df.pod:141
2644 msgid ""
2645 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2646 "disks from several guests to a single libguestfs appliance."
2647 msgstr ""
2648
2649 #. type: textblock
2650 #: ../df/virt-df.pod:144
2651 msgid "You might use this option in the following circumstances:"
2652 msgstr ""
2653
2654 #. type: =item
2655 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2656 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2657 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2658 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2659 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2660 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2661 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2662 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2663 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2664 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2665 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2666 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2667 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2668 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2669 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2670 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2671 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2672 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2673 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2674 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555
2675 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2676 #: ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1966
2677 #: ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:1981
2678 #: ../fish/guestfish-actions.pod:1988 ../fish/guestfish.pod:445
2679 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2680 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2681 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2682 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2683 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15
2684 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:588
2685 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2686 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667
2687 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2688 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2689 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2690 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2691 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2692 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2693 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2694 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2695 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2696 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2886
2697 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2900
2698 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2914
2699 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2700 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2701 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1087
2702 #: ../src/guestfs.pod:1091 ../src/guestfs.pod:1095 ../src/guestfs.pod:1100
2703 #: ../src/guestfs.pod:1108 ../src/guestfs.pod:1127 ../src/guestfs.pod:1135
2704 #: ../src/guestfs.pod:1157 ../src/guestfs.pod:1161 ../src/guestfs.pod:1165
2705 #: ../src/guestfs.pod:1169 ../src/guestfs.pod:1173 ../src/guestfs.pod:1177
2706 #: ../src/guestfs.pod:1666 ../src/guestfs.pod:1671 ../src/guestfs.pod:1675
2707 #: ../src/guestfs.pod:1777 ../src/guestfs.pod:1782 ../src/guestfs.pod:1786
2708 #: ../src/guestfs.pod:1796 ../src/guestfs.pod:2070 ../src/guestfs.pod:2075
2709 #: ../src/guestfs.pod:2081 ../src/guestfs.pod:2089 ../src/guestfs.pod:2536
2710 #: ../src/guestfs.pod:2542 ../src/guestfs.pod:2547 ../src/guestfs.pod:2553
2711 #: ../src/guestfs.pod:2938 ../src/guestfs.pod:2943 ../src/guestfs.pod:2947
2712 #: ../src/guestfs.pod:2951 ../src/guestfs.pod:2955 ../src/guestfs.pod:2969
2713 #: ../src/guestfs.pod:2974 ../src/guestfs.pod:3200 ../src/guestfs.pod:3204
2714 #: ../src/guestfs.pod:3208 ../src/guestfs.pod:3212
2715 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2716 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2717 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2718 msgid "*"
2719 msgstr "*"
2720
2721 #. type: textblock
2722 #: ../df/virt-df.pod:150
2723 msgid ""
2724 "If you think an untrusted guest might actively try to exploit the libguestfs "
2725 "appliance kernel, then this prevents one guest from interfering with the "
2726 "stats printed for another guest."
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../df/virt-df.pod:156
2731 msgid ""
2732 "If the kernel has a bug which stops it from accessing a filesystem in one "
2733 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2734 "and report stats for further guests."
2735 msgstr ""
2736
2737 #. type: textblock
2738 #: ../df/virt-df.pod:165
2739 msgid ""
2740 "Print UUIDs instead of names.  This is useful for following a guest even "
2741 "when the guest is migrated or renamed, or when two guests happen to have the "
2742 "same name."
2743 msgstr ""
2744
2745 #. type: textblock
2746 #: ../df/virt-df.pod:169
2747 msgid ""
2748 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2749 "images, we still print the disk image name even when this option is "
2750 "specified."
2751 msgstr ""
2752
2753 #. type: textblock
2754 #: ../df/virt-df.pod:229
2755 msgid ""
2756 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2757 "libguestfs.org/>."
2758 msgstr ""
2759
2760 #. type: textblock
2761 #: ../edit/virt-edit.pod:5
2762 msgid "virt-edit - Edit a file in a virtual machine"
2763 msgstr ""
2764
2765 #. type: verbatim
2766 #: ../edit/virt-edit.pod:9
2767 #, fuzzy, no-wrap
2768 #| msgid ""
2769 #| " virt-list-partitions [--options] domname\n"
2770 #| "\n"
2771 msgid ""
2772 " virt-edit [--options] -d domname file [file ...]\n"
2773 "\n"
2774 msgstr ""
2775 " virt-list-partitions [--параметри] назва_домену\n"
2776 "\n"
2777
2778 #. type: verbatim
2779 #: ../edit/virt-edit.pod:11
2780 #, fuzzy, no-wrap
2781 #| msgid ""
2782 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2783 #| "\n"
2784 msgid ""
2785 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2786 "\n"
2787 msgstr ""
2788 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2789 "\n"
2790
2791 #. type: verbatim
2792 #: ../edit/virt-edit.pod:13
2793 #, no-wrap
2794 msgid ""
2795 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2796 "\n"
2797 msgstr ""
2798
2799 #. type: verbatim
2800 #: ../edit/virt-edit.pod:17
2801 #, no-wrap
2802 msgid ""
2803 " virt-edit domname file\n"
2804 "\n"
2805 msgstr ""
2806
2807 #. type: verbatim
2808 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2809 #, fuzzy, no-wrap
2810 #| msgid ""
2811 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2812 #| "\n"
2813 msgid ""
2814 " virt-edit disk.img [disk.img ...] file\n"
2815 "\n"
2816 msgstr ""
2817 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2818 "\n"
2819
2820 #. type: =head1
2821 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2822 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2823 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2824 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2825 msgid "WARNING"
2826 msgstr "ПОПЕРЕДЖЕННЯ"
2827
2828 #. type: textblock
2829 #: ../edit/virt-edit.pod:23
2830 msgid ""
2831 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2832 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2833 "doing this, but doesn't catch all cases."
2834 msgstr ""
2835
2836 #. type: textblock
2837 #: ../edit/virt-edit.pod:29
2838 msgid ""
2839 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2840 "exists in the named virtual machine (or disk image)."
2841 msgstr ""
2842
2843 #. type: textblock
2844 #: ../edit/virt-edit.pod:32
2845 msgid ""
2846 "Multiple filenames can be given, in which case they are each edited in "
2847 "turn.  Each filename must be a full path, starting at the root directory "
2848 "(starting with '/')."
2849 msgstr ""
2850
2851 #. type: textblock
2852 #: ../edit/virt-edit.pod:36
2853 msgid "If you want to just view a file, use L<virt-cat(1)>."
2854 msgstr ""
2855
2856 #. type: textblock
2857 #: ../edit/virt-edit.pod:38
2858 msgid ""
2859 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2860 "USING GUESTFISH> below)."
2861 msgstr ""
2862
2863 #. type: textblock
2864 #: ../edit/virt-edit.pod:41
2865 msgid ""
2866 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2867 "that and much more."
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../edit/virt-edit.pod:46
2872 msgid "Edit the named files interactively:"
2873 msgstr ""
2874
2875 #. type: verbatim
2876 #: ../edit/virt-edit.pod:48
2877 #, no-wrap
2878 msgid ""
2879 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2880 "\n"
2881 msgstr ""
2882
2883 #. type: verbatim
2884 #: ../edit/virt-edit.pod:50
2885 #, no-wrap
2886 msgid ""
2887 " virt-edit -d mydomain /etc/passwd\n"
2888 "\n"
2889 msgstr ""
2890
2891 #. type: textblock
2892 #: ../edit/virt-edit.pod:52
2893 msgid "For Windows guests, some Windows paths are understood:"
2894 msgstr ""
2895
2896 #. type: verbatim
2897 #: ../edit/virt-edit.pod:54
2898 #, no-wrap
2899 msgid ""
2900 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2901 "\n"
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../edit/virt-edit.pod:56
2906 msgid ""
2907 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2908 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2909 msgstr ""
2910
2911 #. type: verbatim
2912 #: ../edit/virt-edit.pod:60
2913 #, no-wrap
2914 msgid ""
2915 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2916 "\n"
2917 msgstr ""
2918
2919 #. type: =item
2920 #: ../edit/virt-edit.pod:81
2921 msgid "B<-b> extension"
2922 msgstr ""
2923
2924 #. type: =item
2925 #: ../edit/virt-edit.pod:83
2926 msgid "B<--backup> extension"
2927 msgstr ""
2928
2929 #. type: textblock
2930 #: ../edit/virt-edit.pod:85
2931 msgid ""
2932 "Create a backup of the original file I<in the guest disk image>.  The backup "
2933 "has the original filename with C<extension> added."
2934 msgstr ""
2935
2936 #. type: textblock
2937 #: ../edit/virt-edit.pod:88
2938 msgid ""
2939 "Usually the first character of C<extension> would be a dot C<.> so you would "
2940 "write:"
2941 msgstr ""
2942
2943 #. type: verbatim
2944 #: ../edit/virt-edit.pod:91
2945 #, no-wrap
2946 msgid ""
2947 " virt-edit -b .orig [etc]\n"
2948 "\n"
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../edit/virt-edit.pod:93
2953 msgid "By default, no backup file is made."
2954 msgstr ""
2955
2956 #. type: =item
2957 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2958 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
2959 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2960 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2961 msgid "B<-c URI>"
2962 msgstr "B<-c адреса>"
2963
2964 #. type: =item
2965 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2966 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
2967 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2968 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2969 msgid "B<--connect URI>"
2970 msgstr "B<--connect адреса>"
2971
2972 #. type: textblock
2973 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2974 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2975 #: ../tools/virt-win-reg.pl:135
2976 msgid ""
2977 "If you specify guest block devices directly, then libvirt is not used at all."
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../edit/virt-edit.pod:114
2982 msgid ""
2983 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2984 "off so you cannot see what you are typing.  If you are not worried about "
2985 "Tempest attacks and there is no one else in the room you can specify this "
2986 "flag to see what you are typing."
2987 msgstr ""
2988
2989 #. type: =item
2990 #: ../edit/virt-edit.pod:119
2991 msgid "B<-e> EXPR"
2992 msgstr ""
2993
2994 #. type: =item
2995 #: ../edit/virt-edit.pod:121
2996 #, fuzzy
2997 #| msgid "B<--help>"
2998 msgid "B<--expr> EXPR"
2999 msgstr "B<--help>"
3000
3001 #. type: textblock
3002 #: ../edit/virt-edit.pod:123
3003 msgid ""
3004 "Instead of launching the external editor, non-interactively apply the Perl "
3005 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3006 "EDITING> below."
3007 msgstr ""
3008
3009 #. type: textblock
3010 #: ../edit/virt-edit.pod:127
3011 msgid ""
3012 "Be careful to properly quote the expression to prevent it from being altered "
3013 "by the shell."
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../edit/virt-edit.pod:130
3018 msgid "Note that this option is only available when Perl 5 is installed."
3019 msgstr ""
3020
3021 #. type: =item
3022 #: ../edit/virt-edit.pod:132
3023 #, fuzzy
3024 #| msgid "B<--format=raw|qcow2|..>"
3025 msgid "B<--format> raw|qcow2|..."
3026 msgstr "B<--format=raw|qcow2|..>"
3027
3028 #. type: verbatim
3029 #: ../edit/virt-edit.pod:143
3030 #, fuzzy, no-wrap
3031 #| msgid ""
3032 #| " guestfish --format=raw -a disk.img\n"
3033 #| "\n"
3034 msgid ""
3035 " virt-edit --format=raw -a disk.img file\n"
3036 "\n"
3037 msgstr ""
3038 " guestfish --format=raw -a disk.img\n"
3039 "\n"
3040
3041 #. type: verbatim
3042 #: ../edit/virt-edit.pod:147
3043 #, fuzzy, no-wrap
3044 #| msgid ""
3045 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3046 #| "\n"
3047 msgid ""
3048 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3049 "\n"
3050 msgstr ""
3051 " guestfish --format=raw -a disk.img --format -a another.img\n"
3052 "\n"
3053
3054 #. type: textblock
3055 #: ../edit/virt-edit.pod:181
3056 msgid "Previous versions of virt-edit allowed you to write either:"
3057 msgstr ""
3058
3059 #. type: verbatim
3060 #: ../edit/virt-edit.pod:187
3061 #, fuzzy, no-wrap
3062 #| msgid ""
3063 #| " edit filename\n"
3064 #| "\n"
3065 msgid ""
3066 " virt-edit guestname file\n"
3067 "\n"
3068 msgstr ""
3069 " edit назва_файла\n"
3070 "\n"
3071
3072 #. type: =head1
3073 #: ../edit/virt-edit.pod:195
3074 msgid "NON-INTERACTIVE EDITING"
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../edit/virt-edit.pod:197
3079 msgid ""
3080 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3081 "administrator can interactively edit the file."
3082 msgstr ""
3083
3084 #. type: textblock
3085 #: ../edit/virt-edit.pod:200
3086 msgid ""
3087 "There are two ways also to use C<virt-edit> from scripts in order to make "
3088 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3089 "like this, it's less error-prone to write scripts directly using the "
3090 "libguestfs API and Augeas for configuration file editing.)"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../edit/virt-edit.pod:206
3095 msgid ""
3096 "The first method is to temporarily set C<$EDITOR> to any script or program "
3097 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3098 "update C<tmpfile> in place however it likes."
3099 msgstr ""
3100
3101 #. type: textblock
3102 #: ../edit/virt-edit.pod:210
3103 msgid ""
3104 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3105 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3106 "instances of C<foo> with C<bar> in a file:"
3107 msgstr ""
3108
3109 #. type: verbatim
3110 #: ../edit/virt-edit.pod:214
3111 #, no-wrap
3112 msgid ""
3113 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3114 "\n"
3115 msgstr ""
3116
3117 #. type: textblock
3118 #: ../edit/virt-edit.pod:216
3119 msgid ""
3120 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3121 "For example to delete root's password you could do:"
3122 msgstr ""
3123
3124 #. type: verbatim
3125 #: ../edit/virt-edit.pod:219
3126 #, no-wrap
3127 msgid ""
3128 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3129 "\n"
3130 msgstr ""
3131
3132 #. type: textblock
3133 #: ../edit/virt-edit.pod:221
3134 msgid ""
3135 "What really happens is that the snippet is evaluated as a Perl expression "
3136 "for each line of the file.  The line, including the final C<\\n>, is passed "
3137 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3138 msgstr ""
3139
3140 #. type: textblock
3141 #: ../edit/virt-edit.pod:226
3142 msgid ""
3143 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3144 "C<apache> user account from the password file you can do:"
3145 msgstr ""
3146
3147 #. type: verbatim
3148 #: ../edit/virt-edit.pod:229
3149 #, no-wrap
3150 msgid ""
3151 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3152 "\n"
3153 msgstr ""
3154
3155 #. type: textblock
3156 #: ../edit/virt-edit.pod:231
3157 msgid ""
3158 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3159 "the end of the file is rather difficult this way since there is no concept "
3160 "of \"last line of the file\" - your expression just doesn't get called "
3161 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3162 "want to do this."
3163 msgstr ""
3164
3165 #. type: textblock
3166 #: ../edit/virt-edit.pod:237
3167 msgid ""
3168 "The variable C<$lineno> contains the current line number.  As is "
3169 "traditional, the first line in the file is number C<1>."
3170 msgstr ""
3171
3172 #. type: textblock
3173 #: ../edit/virt-edit.pod:240
3174 msgid ""
3175 "The return value from the expression is ignored, but the expression may call "
3176 "C<die> in order to abort the whole program, leaving the original file "
3177 "untouched."
3178 msgstr ""
3179
3180 #. type: textblock
3181 #: ../edit/virt-edit.pod:244
3182 msgid ""
3183 "Remember when matching the end of a line that C<$_> may contain the final C<"
3184 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3185 "newline then neither of these.  Thus to match or substitute some text at the "
3186 "end of a line, use this regular expression:"
3187 msgstr ""
3188
3189 #. type: verbatim
3190 #: ../edit/virt-edit.pod:249
3191 #, no-wrap
3192 msgid ""
3193 " /some text(\\r?\\n)?$/\n"
3194 "\n"
3195 msgstr ""
3196
3197 #. type: textblock
3198 #: ../edit/virt-edit.pod:251
3199 msgid ""
3200 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3201 "$_> itself (since that would remove all newlines from the file):"
3202 msgstr ""
3203
3204 #. type: verbatim
3205 #: ../edit/virt-edit.pod:255
3206 #, no-wrap
3207 msgid ""
3208 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3209 "\n"
3210 msgstr ""
3211
3212 #. type: =head1
3213 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3214 msgid "WINDOWS PATHS"
3215 msgstr ""
3216
3217 #. type: textblock
3218 #: ../edit/virt-edit.pod:259
3219 msgid ""
3220 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3221 "paths (eg. C<E:\\foo\\bar.txt>)."
3222 msgstr ""
3223
3224 #. type: textblock
3225 #: ../edit/virt-edit.pod:262
3226 msgid "If and only if the guest is running Windows then:"
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../edit/virt-edit.pod:268
3231 msgid ""
3232 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3233 "to the correct filesystem."
3234 msgstr ""
3235
3236 #. type: textblock
3237 #: ../edit/virt-edit.pod:273
3238 msgid ""
3239 "Any backslash (C<\\>) characters in the path are replaced with forward "
3240 "slashes so that libguestfs can process it."
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../edit/virt-edit.pod:278
3245 msgid ""
3246 "The path is resolved case insensitively to locate the file that should be "
3247 "edited."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../edit/virt-edit.pod:283
3252 msgid "There are some known shortcomings:"
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../edit/virt-edit.pod:289
3257 msgid "Some NTFS symbolic links may not be followed correctly."
3258 msgstr ""
3259
3260 #. type: textblock
3261 #: ../edit/virt-edit.pod:293
3262 msgid "NTFS junction points that cross filesystems are not followed."
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../edit/virt-edit.pod:299
3267 msgid ""
3268 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3269 "C<virt-edit> doesn't work."
3270 msgstr ""
3271
3272 #. type: textblock
3273 #: ../edit/virt-edit.pod:302
3274 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3275 msgstr ""
3276
3277 #. type: verbatim
3278 #: ../edit/virt-edit.pod:304
3279 #, fuzzy, no-wrap
3280 #| msgid ""
3281 #| " guestfish --ro -d myguest -i\n"
3282 #| "\n"
3283 msgid ""
3284 " guestfish --rw -i -d domname edit /file\n"
3285 "\n"
3286 msgstr ""
3287 " guestfish --ro -d myguest -i\n"
3288 "\n"
3289
3290 #. type: textblock
3291 #: ../edit/virt-edit.pod:306
3292 msgid ""
3293 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3294 "path to the file."
3295 msgstr ""
3296
3297 #. type: textblock
3298 #: ../edit/virt-edit.pod:309
3299 msgid ""
3300 "The command above uses libguestfs's guest inspection feature and so does not "
3301 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3302 "disk images that don't contain guests.  To edit a file on a disk image "
3303 "directly, use:"
3304 msgstr ""
3305
3306 #. type: verbatim
3307 #: ../edit/virt-edit.pod:314
3308 #, fuzzy, no-wrap
3309 #| msgid ""
3310 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3311 #| "\n"
3312 msgid ""
3313 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3314 "\n"
3315 msgstr ""
3316 " guestfish --format=raw -a disk.img --format -a another.img\n"
3317 "\n"
3318
3319 #. type: textblock
3320 #: ../edit/virt-edit.pod:316
3321 msgid ""
3322 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3323 "the disk image to edit, and C</file> is the full path to the file."
3324 msgstr ""
3325
3326 #. type: textblock
3327 #: ../edit/virt-edit.pod:320
3328 msgid ""
3329 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3330 "C<write> or C<upload> instead:"
3331 msgstr ""
3332
3333 #. type: verbatim
3334 #: ../edit/virt-edit.pod:323
3335 #, fuzzy, no-wrap
3336 #| msgid ""
3337 #| " guestfish --ro -d myguest -i\n"
3338 #| "\n"
3339 msgid ""
3340 " guestfish --rw -i -d domname touch /newfile\n"
3341 "\n"
3342 msgstr ""
3343 " guestfish --ro -d myguest -i\n"
3344 "\n"
3345
3346 #. type: verbatim
3347 #: ../edit/virt-edit.pod:325
3348 #, no-wrap
3349 msgid ""
3350 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3351 "\n"
3352 msgstr ""
3353
3354 #. type: verbatim
3355 #: ../edit/virt-edit.pod:327
3356 #, no-wrap
3357 msgid ""
3358 " guestfish --rw -i -d domname upload localfile /newfile\n"
3359 "\n"
3360 msgstr ""
3361
3362 #. type: =head1
3363 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
3364 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3085
3365 #: ../test-tool/libguestfs-test-tool.pod:95
3366 msgid "ENVIRONMENT VARIABLES"
3367 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3368
3369 #. type: =item
3370 #: ../edit/virt-edit.pod:333
3371 #, fuzzy
3372 #| msgid "EDITOR"
3373 msgid "C<EDITOR>"
3374 msgstr "РЕДАКТОР"
3375
3376 #. type: textblock
3377 #: ../edit/virt-edit.pod:335
3378 msgid ""
3379 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3380 "\"emacs -nw\">"
3381 msgstr ""
3382
3383 #. type: textblock
3384 #: ../edit/virt-edit.pod:338
3385 msgid "If not set, C<vi> is used."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../edit/virt-edit.pod:356
3390 #, fuzzy
3391 #| msgid ""
3392 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3393 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3394 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3395 msgid ""
3396 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3397 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3398 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3399 msgstr ""
3400 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3401 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3402 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3403
3404 #. type: textblock
3405 #: ../examples/guestfs-examples.pod:5
3406 msgid "guestfs-examples - Examples of using libguestfs from C"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3411 #, no-wrap
3412 msgid ""
3413 " #include <guestfs.h>\n"
3414 " \n"
3415 msgstr ""
3416 " #include <guestfs.h>\n"
3417 " \n"
3418
3419 #. type: verbatim
3420 #: ../examples/guestfs-examples.pod:11
3421 #, no-wrap
3422 msgid ""
3423 " guestfs_h *g = guestfs_create ();\n"
3424 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3425 " guestfs_launch (g);\n"
3426 "\n"
3427 msgstr ""
3428
3429 #. type: verbatim
3430 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3431 #, no-wrap
3432 msgid ""
3433 " cc prog.c -o prog -lguestfs\n"
3434 "or:\n"
3435 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3436 "\n"
3437 msgstr ""
3438 " cc prog.c -o prog -lguestfs\n"
3439 "або:\n"
3440 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3441 "\n"
3442
3443 #. type: textblock
3444 #: ../examples/guestfs-examples.pod:21
3445 msgid ""
3446 "This manual page contains examples of calling libguestfs from the C "
3447 "programming language.  If you are not familiar with using libguestfs, you "
3448 "also need to read L<guestfs(3)>."
3449 msgstr ""
3450
3451 #. type: =head1
3452 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3453 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3454 #: ../python/examples/guestfs-python.pod:34
3455 #: ../ruby/examples/guestfs-ruby.pod:28
3456 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3457 msgstr ""
3458
3459 #. type: textblock
3460 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3461 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3462 #: ../python/examples/guestfs-python.pod:36
3463 #: ../ruby/examples/guestfs-ruby.pod:30
3464 #, fuzzy
3465 #| msgid "EXAMPLE"
3466 msgid "@EXAMPLE1@"
3467 msgstr "ПРИКЛАД"
3468
3469 #. type: =head1
3470 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3471 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3472 #: ../python/examples/guestfs-python.pod:38
3473 #: ../ruby/examples/guestfs-ruby.pod:32
3474 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3479 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3480 #: ../python/examples/guestfs-python.pod:40
3481 #: ../ruby/examples/guestfs-ruby.pod:34
3482 #, fuzzy
3483 #| msgid "EXAMPLE"
3484 msgid "@EXAMPLE2@"
3485 msgstr "ПРИКЛАД"
3486
3487 #. type: textblock
3488 #: ../examples/guestfs-examples.pod:35
3489 #, fuzzy
3490 #| msgid ""
3491 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3492 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3493 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3494 msgid ""
3495 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3496 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3497 "libguestfs.org/>."
3498 msgstr ""
3499 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3500 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3501 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3502
3503 #. type: =head1
3504 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3505 #: ../fish/guestfish.pod:1293 ../fish/virt-copy-in.pod:60
3506 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3507 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
3508 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3509 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3510 #: ../python/examples/guestfs-python.pod:53
3511 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3219
3512 #: ../test-tool/libguestfs-test-tool.pod:106
3513 msgid "AUTHORS"
3514 msgstr "АВТОРИ"
3515
3516 #. type: textblock
3517 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3518 #: ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:62
3519 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3520 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
3521 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3522 #: ../perl/examples/guestfs-perl.pod:53
3523 #: ../python/examples/guestfs-python.pod:55
3524 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3221
3525 #: ../test-tool/libguestfs-test-tool.pod:108
3526 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3527 msgstr ""
3528
3529 #. type: textblock
3530 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3531 #: ../python/examples/guestfs-python.pod:59
3532 #: ../ruby/examples/guestfs-ruby.pod:53
3533 #, fuzzy
3534 #| msgid "Copyright (C) 2009 Red Hat Inc."
3535 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3536 msgstr "© Red Hat Inc., 2009"
3537
3538 #. type: textblock
3539 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3540 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3541 #: ../perl/examples/guestfs-perl.pod:59
3542 #: ../python/examples/guestfs-python.pod:61
3543 #: ../ruby/examples/guestfs-ruby.pod:55
3544 msgid ""
3545 "The examples in this manual page may be freely copied, modified and "
3546 "distributed without any restrictions."
3547 msgstr ""
3548
3549 #. type: textblock
3550 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3551 #: ../java/examples/guestfs-java.pod:68
3552 #: ../ocaml/examples/guestfs-ocaml.pod:101
3553 #: ../perl/examples/guestfs-perl.pod:62
3554 #: ../python/examples/guestfs-python.pod:64
3555 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3228
3556 msgid ""
3557 "This library is free software; you can redistribute it and/or modify it "
3558 "under the terms of the GNU Lesser General Public License as published by the "
3559 "Free Software Foundation; either version 2 of the License, or (at your "
3560 "option) any later version."
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3565 #: ../java/examples/guestfs-java.pod:73
3566 #: ../ocaml/examples/guestfs-ocaml.pod:106
3567 #: ../perl/examples/guestfs-perl.pod:67
3568 #: ../python/examples/guestfs-python.pod:69
3569 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3233
3570 msgid ""
3571 "This library is distributed in the hope that it will be useful, but WITHOUT "
3572 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3573 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3574 "for more details."
3575 msgstr ""
3576
3577 #. type: textblock
3578 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3579 #: ../java/examples/guestfs-java.pod:78
3580 #: ../ocaml/examples/guestfs-ocaml.pod:111
3581 #: ../perl/examples/guestfs-perl.pod:72
3582 #: ../python/examples/guestfs-python.pod:74
3583 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3238
3584 msgid ""
3585 "You should have received a copy of the GNU Lesser General Public License "
3586 "along with this library; if not, write to the Free Software Foundation, "
3587 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3588 msgstr ""
3589
3590 #. type: =end
3591 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3592 msgid "comment"
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../examples/guestfs-recipes.pod:5
3597 msgid ""
3598 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3599 "here.  The only way which works for both sorts of output is to just write "
3600 "the URL directly.  Do NOT use L<...> for URLs."
3601 msgstr ""
3602
3603 #. type: textblock
3604 #: ../examples/guestfs-recipes.pod:9
3605 msgid ""
3606 "We break with tradition here and don't use ALL CAPS for the section "
3607 "headings, as this makes them much easier to read."
3608 msgstr ""
3609
3610 #. type: textblock
3611 #: ../examples/guestfs-recipes.pod:16
3612 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3613 msgstr ""
3614
3615 #. type: textblock
3616 #: ../examples/guestfs-recipes.pod:20
3617 msgid ""
3618 "This page contains recipes for and links to things you can do using "
3619 "libguestfs, L<guestfish(1)> and the virt tools."
3620 msgstr ""
3621
3622 #. type: =head1
3623 #: ../examples/guestfs-recipes.pod:23
3624 msgid "Audit a virtual machine for setuid files"
3625 msgstr ""
3626
3627 #. type: textblock
3628 #: ../examples/guestfs-recipes.pod:25
3629 msgid ""
3630 "The link below contains a small program which can be used to audit a Linux "
3631 "virtual machine to see what setuid and setgid files it contains."
3632 msgstr ""
3633
3634 #. type: textblock
3635 #: ../examples/guestfs-recipes.pod:28
3636 msgid ""
3637 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3638 "files/#content"
3639 msgstr ""
3640
3641 #. type: =head1
3642 #: ../examples/guestfs-recipes.pod:30
3643 msgid "Change the background image in a Windows XP VM"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../examples/guestfs-recipes.pod:32
3648 msgid ""
3649 "The links below explain how to use L<guestfish(1)> to change the background "
3650 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3651 "be substantially different for each version of Windows."
3652 msgstr ""
3653
3654 #. type: textblock
3655 #: ../examples/guestfs-recipes.pod:37
3656 msgid ""
3657 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3658 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3659 msgstr ""
3660
3661 #. type: =head1
3662 #: ../examples/guestfs-recipes.pod:40
3663 msgid "Cloning a virtual machine (Linux)"
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../examples/guestfs-recipes.pod:42
3668 msgid ""
3669 "The guestfish technique described in the link below works well for most "
3670 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3671 "slightly."
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:46
3676 msgid ""
3677 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3678 "vm/#content"
3679 msgstr ""
3680
3681 #. type: textblock
3682 #: ../examples/guestfs-recipes.pod:48
3683 msgid ""
3684 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3685 "discussion."
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../examples/guestfs-recipes.pod:51
3690 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3691 msgstr ""
3692
3693 #. type: =head1
3694 #: ../examples/guestfs-recipes.pod:53
3695 msgid "Cloning a virtual machine (Windows)"
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../examples/guestfs-recipes.pod:55
3700 msgid ""
3701 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3702 "straightforward.  Currently there is code in the Aeolus Oz project which "
3703 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3704 "we may add sysprepping ability."
3705 msgstr ""
3706
3707 #. type: textblock
3708 #: ../examples/guestfs-recipes.pod:60
3709 msgid ""
3710 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3711 "list/2011-May/msg00019.html"
3712 msgstr ""
3713
3714 #. type: =head1
3715 #: ../examples/guestfs-recipes.pod:63
3716 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../examples/guestfs-recipes.pod:65
3721 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3722 msgstr ""
3723
3724 #. type: verbatim
3725 #: ../examples/guestfs-recipes.pod:67
3726 #, no-wrap
3727 msgid ""
3728 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3729 "\n"
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../examples/guestfs-recipes.pod:69
3734 msgid "To export just a subdirectory, eg. C</files>, do:"
3735 msgstr ""
3736
3737 #. type: verbatim
3738 #: ../examples/guestfs-recipes.pod:71
3739 #, no-wrap
3740 msgid ""
3741 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3742 "\n"
3743 msgstr ""
3744
3745 #. type: =head1
3746 #: ../examples/guestfs-recipes.pod:73
3747 msgid "Create empty disk images"
3748 msgstr ""
3749
3750 #. type: textblock
3751 #: ../examples/guestfs-recipes.pod:75
3752 msgid ""
3753 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3754 "The useful guide below explains the options available."
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../examples/guestfs-recipes.pod:78
3759 msgid ""
3760 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3761 "#content"
3762 msgstr ""
3763
3764 #. type: =head1
3765 #: ../examples/guestfs-recipes.pod:80
3766 msgid "Dump raw filesystem content from inside a disk image or VM"
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../examples/guestfs-recipes.pod:82
3771 msgid ""
3772 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3773 "filesystem content from any filesystem in a disk image or a VM (even one "
3774 "which is encrypted or buried inside an LV):"
3775 msgstr ""
3776
3777 #. type: verbatim
3778 #: ../examples/guestfs-recipes.pod:86
3779 #, fuzzy, no-wrap
3780 #| msgid ""
3781 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3782 #| "\n"
3783 msgid ""
3784 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3785 "\n"
3786 msgstr ""
3787 " guestfish --format=raw -a disk.img --format -a another.img\n"
3788 "\n"
3789
3790 #. type: verbatim
3791 #: ../examples/guestfs-recipes.pod:88
3792 #, no-wrap
3793 msgid ""
3794 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3795 "\n"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../examples/guestfs-recipes.pod:90
3800 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3801 msgstr ""
3802
3803 #. type: =head1
3804 #: ../examples/guestfs-recipes.pod:92
3805 msgid "Edit grub configuration in a VM"
3806 msgstr ""
3807
3808 #. type: textblock
3809 #: ../examples/guestfs-recipes.pod:94
3810 msgid "You can use this to:"
3811 msgstr ""
3812
3813 #. type: textblock
3814 #: ../examples/guestfs-recipes.pod:100
3815 msgid "Fix a virtual machine that does not boot."
3816 msgstr ""
3817
3818 #. type: textblock
3819 #: ../examples/guestfs-recipes.pod:104
3820 msgid "Change which kernel is used to boot the VM."
3821 msgstr ""
3822
3823 #. type: textblock
3824 #: ../examples/guestfs-recipes.pod:108
3825 msgid "Change kernel command line options."
3826 msgstr ""
3827
3828 #. type: textblock
3829 #: ../examples/guestfs-recipes.pod:112
3830 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3831 msgstr ""
3832
3833 #. type: verbatim
3834 #: ../examples/guestfs-recipes.pod:114
3835 #, no-wrap
3836 msgid ""
3837 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3838 "\n"
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../examples/guestfs-recipes.pod:116
3843 msgid ""
3844 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3845 "this:"
3846 msgstr ""
3847
3848 #. type: verbatim
3849 #: ../examples/guestfs-recipes.pod:119
3850 #, no-wrap
3851 msgid ""
3852 " virt-rescue -d BrokenGuest\n"
3853 "\n"
3854 msgstr ""
3855
3856 #. type: =head1
3857 #: ../examples/guestfs-recipes.pod:121
3858 msgid "Export any directory from a VM"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../examples/guestfs-recipes.pod:123
3863 msgid ""
3864 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3865 msgstr ""
3866
3867 #. type: verbatim
3868 #: ../examples/guestfs-recipes.pod:126
3869 #, fuzzy, no-wrap
3870 #| msgid ""
3871 #| " copy-out /home .\n"
3872 #| "\n"
3873 msgid ""
3874 " virt-copy-out -d Guest /home .\n"
3875 "\n"
3876 msgstr ""
3877 " copy-out /home .\n"
3878 "\n"
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3882 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1551
3883 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:11
3884 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
3885 #: ../src/guestfs-actions.pod:2882 ../src/guestfs.pod:1662
3886 #: ../tools/virt-win-reg.pl:706
3887 msgid "Notes:"
3888 msgstr "Нотатки:"
3889
3890 #. type: textblock
3891 #: ../examples/guestfs-recipes.pod:134
3892 msgid ""
3893 "The final dot of the command is not a printing error.  It means we want to "
3894 "copy out to the current directory."
3895 msgstr ""
3896
3897 #. type: textblock
3898 #: ../examples/guestfs-recipes.pod:139
3899 msgid "This creates a directory called C<home> under the current directory."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../examples/guestfs-recipes.pod:143
3904 msgid ""
3905 "If the guest is a Windows guest then you can use drive letters and "
3906 "backslashes, but you must prefix the path with C<win:> and quote it to "
3907 "protect it from the shell, like this:"
3908 msgstr ""
3909
3910 #. type: verbatim
3911 #: ../examples/guestfs-recipes.pod:147
3912 #, no-wrap
3913 msgid ""
3914 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3915 "\n"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../examples/guestfs-recipes.pod:149
3920 msgid "To get the output as a compressed tarball, do:"
3921 msgstr ""
3922
3923 #. type: verbatim
3924 #: ../examples/guestfs-recipes.pod:151
3925 #, no-wrap
3926 msgid ""
3927 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3928 "\n"
3929 msgstr ""
3930
3931 #. type: textblock
3932 #: ../examples/guestfs-recipes.pod:153
3933 msgid ""
3934 "Although it sounds tempting, this is usually not a reliable way to get a "
3935 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3936 "org/FAQ.html#backup"
3937 msgstr ""
3938
3939 #. type: =head1
3940 #: ../examples/guestfs-recipes.pod:157
3941 msgid "Find out which user is using the most space"
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../examples/guestfs-recipes.pod:159
3946 msgid ""
3947 "This simple script examines a Linux guest to find out which user is using "
3948 "the most space in their home directory:"
3949 msgstr ""
3950
3951 #. type: verbatim
3952 #: ../examples/guestfs-recipes.pod:162
3953 #, fuzzy, no-wrap
3954 #| msgid ""
3955 #| " #!/usr/bin/guestfish -f\n"
3956 #| "\n"
3957 msgid ""
3958 " #!/bin/sh -\n"
3959 " \n"
3960 msgstr ""
3961 " #!/usr/bin/guestfish -f\n"
3962 "\n"
3963
3964 #. type: verbatim
3965 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
3966 #, fuzzy, no-wrap
3967 #| msgid ""
3968 #| " set-qemu qemu\n"
3969 #| "\n"
3970 msgid ""
3971 " set -e\n"
3972 " \n"
3973 msgstr ""
3974 " set-qemu qemu\n"
3975 "\n"
3976
3977 #. type: verbatim
3978 #: ../examples/guestfs-recipes.pod:166
3979 #, no-wrap
3980 msgid ""
3981 " vm=\"$1\"\n"
3982 " dir=/home\n"
3983 " \n"
3984 msgstr ""
3985
3986 #. type: verbatim
3987 #: ../examples/guestfs-recipes.pod:169
3988 #, fuzzy, no-wrap
3989 #| msgid ""
3990 #| " guestfish --ro -d myguest -i\n"
3991 #| "\n"
3992 msgid ""
3993 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3994 " \n"
3995 msgstr ""
3996 " guestfish --ro -d myguest -i\n"
3997 "\n"
3998
3999 #. type: verbatim
4000 #: ../examples/guestfs-recipes.pod:171
4001 #, no-wrap
4002 msgid ""
4003 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4004 "     echo -n \"$dir/$d\"\n"
4005 "     echo -ne '\\t'\n"
4006 "     guestfish --remote du \"$dir/$d\";\n"
4007 " done | sort -nr -k 2\n"
4008 " \n"
4009 msgstr ""
4010
4011 #. type: verbatim
4012 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4013 #, no-wrap
4014 msgid ""
4015 " guestfish --remote exit\n"
4016 "\n"
4017 msgstr ""
4018
4019 #. type: =head1
4020 #: ../examples/guestfs-recipes.pod:179
4021 msgid "Get DHCP address from a VM"
4022 msgstr ""
4023
4024 #. type: textblock
4025 #: ../examples/guestfs-recipes.pod:181
4026 msgid ""
4027 "The link below explains the many different possible techniques for getting "
4028 "the last assigned DHCP address of a virtual machine."
4029 msgstr ""
4030
4031 #. type: textblock
4032 #: ../examples/guestfs-recipes.pod:184
4033 msgid ""
4034 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4035 "a-virtual-machine-disk-image/#content"
4036 msgstr ""
4037
4038 #. type: textblock
4039 #: ../examples/guestfs-recipes.pod:186
4040 msgid ""
4041 "In the libguestfs source examples directory you will find the latest version "
4042 "of the C<virt-dhcp-address.c> program."
4043 msgstr ""
4044
4045 #. type: =head1
4046 #: ../examples/guestfs-recipes.pod:189
4047 msgid "Get the operating system product name string"
4048 msgstr ""
4049
4050 #. type: textblock
4051 #: ../examples/guestfs-recipes.pod:191
4052 msgid "Save the following script into a file called C<product-name.sh>:"
4053 msgstr ""
4054
4055 #. type: verbatim
4056 #: ../examples/guestfs-recipes.pod:193
4057 #, fuzzy, no-wrap
4058 #| msgid ""
4059 #| " eval \"`guestfish --listen`\"\n"
4060 #| " guestfish --remote add-ro disk.img\n"
4061 #| " guestfish --remote run\n"
4062 #| " guestfish --remote lvs\n"
4063 #| "\n"
4064 msgid ""
4065 " #!/bin/sh -\n"
4066 " set -e\n"
4067 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4068 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4069 " guestfish --remote inspect-get-product-name \"$root\"\n"
4070 " guestfish --remote exit\n"
4071 "\n"
4072 msgstr ""
4073 " eval \"`guestfish --listen`\"\n"
4074 " guestfish --remote add-ro disk.img\n"
4075 " guestfish --remote run\n"
4076 " guestfish --remote lvs\n"
4077 "\n"
4078
4079 #. type: textblock
4080 #: ../examples/guestfs-recipes.pod:200
4081 msgid "Make the script executable and run it on a named guest:"
4082 msgstr ""
4083
4084 #. type: verbatim
4085 #: ../examples/guestfs-recipes.pod:202
4086 #, no-wrap
4087 msgid ""
4088 " # product-name.sh RHEL60x64\n"
4089 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4090 "\n"
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../examples/guestfs-recipes.pod:205
4095 msgid ""
4096 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4097 "C<xpath> command line tool or from your favourite programming language:"
4098 msgstr ""
4099
4100 #. type: verbatim
4101 #: ../examples/guestfs-recipes.pod:209
4102 #, no-wrap
4103 msgid ""
4104 " # virt-inspector RHEL60x64 > xml\n"
4105 " # xpath '//product_name' < xml\n"
4106 " Found 1 nodes:\n"
4107 " -- NODE --\n"
4108 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4109 "\n"
4110 msgstr ""
4111
4112 #. type: =head1
4113 #: ../examples/guestfs-recipes.pod:215
4114 msgid "Get the default boot kernel for a Linux VM"
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../examples/guestfs-recipes.pod:217
4119 msgid ""
4120 "The link below contains a program to print the default boot kernel for a "
4121 "Linux VM."
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../examples/guestfs-recipes.pod:220
4126 msgid ""
4127 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4128 "kernel-for-a-vm/#content"
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../examples/guestfs-recipes.pod:222
4133 msgid ""
4134 "It uses Augeas, and the technique is generally applicable for many different "
4135 "tasks, such as:"
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../examples/guestfs-recipes.pod:229
4140 msgid "listing the user accounts in the guest"
4141 msgstr ""
4142
4143 #. type: textblock
4144 #: ../examples/guestfs-recipes.pod:233
4145 msgid "what repositories is it configured to use"
4146 msgstr ""
4147
4148 #. type: textblock
4149 #: ../examples/guestfs-recipes.pod:237
4150 msgid "what NTP servers does it connect to"
4151 msgstr ""
4152
4153 #. type: textblock
4154 #: ../examples/guestfs-recipes.pod:241
4155 msgid "what were the boot messages last time it booted"
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../examples/guestfs-recipes.pod:245
4160 msgid "listing who was logged in recently"
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../examples/guestfs-recipes.pod:249
4165 msgid "http://augeas.net/"
4166 msgstr ""
4167
4168 #. type: =head1
4169 #: ../examples/guestfs-recipes.pod:251
4170 msgid "Install RPMs in a guest"
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../examples/guestfs-recipes.pod:253
4175 msgid ""
4176 "The link below contains a method to install RPMs in a guest.  In fact the "
4177 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4178 "installs them next time the guest is booted.  You could use this technique "
4179 "to install vital security updates in an offline guest."
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../examples/guestfs-recipes.pod:259
4184 msgid ""
4185 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4186 msgstr ""
4187
4188 #. type: =head1
4189 #: ../examples/guestfs-recipes.pod:261
4190 msgid "List applications installed in a VM"
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../examples/guestfs-recipes.pod:263
4195 msgid "Save the following to a file C<list-apps.sh>:"
4196 msgstr ""
4197
4198 #. type: verbatim
4199 #: ../examples/guestfs-recipes.pod:265
4200 #, fuzzy, no-wrap
4201 #| msgid ""
4202 #| " eval \"`guestfish --listen`\"\n"
4203 #| " guestfish --remote add-ro disk.img\n"
4204 #| " guestfish --remote run\n"
4205 #| " guestfish --remote lvs\n"
4206 #| "\n"
4207 msgid ""
4208 " #!/bin/sh -\n"
4209 " set -e\n"
4210 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4211 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4212 " guestfish --remote inspect-list-applications \"$root\"\n"
4213 " guestfish --remote exit\n"
4214 "\n"
4215 msgstr ""
4216 " eval \"`guestfish --listen`\"\n"
4217 " guestfish --remote add-ro disk.img\n"
4218 " guestfish --remote run\n"
4219 " guestfish --remote lvs\n"
4220 "\n"
4221
4222 #. type: textblock
4223 #: ../examples/guestfs-recipes.pod:272
4224 msgid ""
4225 "Make the file executable and then you can run it on any named virtual "
4226 "machine:"
4227 msgstr ""
4228
4229 #. type: verbatim
4230 #: ../examples/guestfs-recipes.pod:275
4231 #, no-wrap
4232 msgid ""
4233 " # list-apps.sh WinGuest\n"
4234 " [0] = {\n"
4235 "   app_name: Mozilla Firefox (3.6.12)\n"
4236 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4237 "   app_epoch: 0\n"
4238 "   app_version: 3.6.12 (en-GB)\n"
4239 "   app_release:\n"
4240 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4241 "   app_trans_path:\n"
4242 "   app_publisher: Mozilla\n"
4243 "   app_url: http://www.mozilla.com/en-GB/\n"
4244 "   app_source_package:\n"
4245 "   app_summary:\n"
4246 "   app_description: Mozilla Firefox\n"
4247 " }\n"
4248 " [1] = {\n"
4249 "   app_name: VLC media player\n"
4250 "   app_display_name: VLC media player 1.1.5\n"
4251 "   app_epoch: 0\n"
4252 "   app_version: 1.1.5\n"
4253 "   app_release:\n"
4254 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4255 "   app_trans_path:\n"
4256 "   app_publisher: VideoLAN\n"
4257 "   app_url: http://www.videolan.org/\n"
4258 "   app_source_package:\n"
4259 "   app_summary:\n"
4260 "   app_description:\n"
4261 " }\n"
4262 "\n"
4263 msgstr ""
4264
4265 #. type: textblock
4266 #: ../examples/guestfs-recipes.pod:305
4267 msgid ""
4268 "If you want to run the script on disk images (instead of libvirt virtual "
4269 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4270 ">."
4271 msgstr ""
4272
4273 #. type: =head1
4274 #: ../examples/guestfs-recipes.pod:309
4275 msgid "List files and directories in a VM"
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../examples/guestfs-recipes.pod:311
4280 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4281 msgstr ""
4282
4283 #. type: verbatim
4284 #: ../examples/guestfs-recipes.pod:313
4285 #, fuzzy, no-wrap
4286 #| msgid ""
4287 #| " guestfish --ro -d myguest -i\n"
4288 #| "\n"
4289 msgid ""
4290 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4291 "\n"
4292 msgstr ""
4293 " guestfish --ro -d myguest -i\n"
4294 "\n"
4295
4296 #. type: =head1
4297 #: ../examples/guestfs-recipes.pod:315
4298 msgid "List services in a Windows VM"
4299 msgstr ""
4300
4301 #. type: textblock
4302 #: ../examples/guestfs-recipes.pod:317
4303 msgid ""
4304 "The link below contains a script that can be used to list out the services "
4305 "from a Windows VM, and whether those services run at boot time or are loaded "
4306 "on demand."
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../examples/guestfs-recipes.pod:321
4311 msgid ""
4312 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4313 "#content"
4314 msgstr ""
4315
4316 #. type: =head1
4317 #: ../examples/guestfs-recipes.pod:323
4318 msgid "Make a disk image sparse"
4319 msgstr ""
4320
4321 #. type: textblock
4322 #: ../examples/guestfs-recipes.pod:325
4323 msgid ""
4324 "The link below contains some guides for making a disk image sparse (or "
4325 "reintroducing sparseness)."
4326 msgstr ""
4327
4328 #. type: textblock
4329 #: ../examples/guestfs-recipes.pod:328
4330 msgid ""
4331 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4332 msgstr ""
4333
4334 #. type: =head1
4335 #: ../examples/guestfs-recipes.pod:330
4336 msgid "Monitor disk usage over time"
4337 msgstr ""
4338
4339 #. type: textblock
4340 #: ../examples/guestfs-recipes.pod:332
4341 msgid ""
4342 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4343 "The link below contains a guide."
4344 msgstr ""
4345
4346 #. type: textblock
4347 #: ../examples/guestfs-recipes.pod:335
4348 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4349 msgstr ""
4350
4351 #. type: =head1
4352 #: ../examples/guestfs-recipes.pod:337
4353 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../examples/guestfs-recipes.pod:339
4358 msgid ""
4359 "L<guestfish(1)> plus the tools described in the link below can be used to "
4360 "read out the Windows Event Log from any virtual machine running Windows "
4361 "Vista or a later version."
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../examples/guestfs-recipes.pod:343
4366 msgid ""
4367 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4368 "guestfish/#content"
4369 msgstr ""
4370
4371 #. type: =head1
4372 #: ../examples/guestfs-recipes.pod:345
4373 msgid "Remove root password (Linux)"
4374 msgstr ""
4375
4376 #. type: textblock
4377 #: ../examples/guestfs-recipes.pod:347
4378 msgid ""
4379 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4380 "files.  One use is to remove the root password from a Linux guest:"
4381 msgstr ""
4382
4383 #. type: verbatim
4384 #: ../examples/guestfs-recipes.pod:350
4385 #, no-wrap
4386 msgid ""
4387 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4388 "\n"
4389 msgstr ""
4390
4391 #. type: =head1
4392 #: ../examples/guestfs-recipes.pod:352
4393 msgid "Remove Administrator password (Windows)"
4394 msgstr ""
4395
4396 #. type: textblock
4397 #: ../examples/guestfs-recipes.pod:354
4398 msgid ""
4399 "The link below contains one technique for removing the Administrator "
4400 "password from a Windows VM, or to be more precise, it gives you a command "
4401 "prompt the next time you log in which you can use to bypass any security:"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../examples/guestfs-recipes.pod:359
4406 msgid ""
4407 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4408 "administrator-password-with-guestfish/"
4409 msgstr ""
4410
4411 #. type: =head1
4412 #: ../examples/guestfs-recipes.pod:361
4413 msgid "Unpack a live CD"
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../examples/guestfs-recipes.pod:363
4418 msgid ""
4419 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4420 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4421 "layers, as outlined in the guide below."
4422 msgstr ""
4423
4424 #. type: textblock
4425 #: ../examples/guestfs-recipes.pod:367
4426 msgid ""
4427 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4428 "cd/#content"
4429 msgstr ""
4430
4431 #. type: =head1
4432 #: ../examples/guestfs-recipes.pod:369
4433 msgid "Uploading and downloading files"
4434 msgstr ""
4435
4436 #. type: textblock
4437 #: ../examples/guestfs-recipes.pod:371
4438 msgid ""
4439 "The link below contains general tips on uploading (copying in)  and "
4440 "downloading (copying out) files from VMs."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../examples/guestfs-recipes.pod:374
4445 msgid ""
4446 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4447 msgstr ""
4448
4449 #. type: =head1
4450 #: ../examples/guestfs-recipes.pod:376
4451 msgid "Use libguestfs tools on VMware ESX guests"
4452 msgstr ""
4453
4454 #. type: textblock
4455 #: ../examples/guestfs-recipes.pod:378
4456 msgid ""
4457 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4458 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../examples/guestfs-recipes.pod:382
4463 msgid ""
4464 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4465 "guests/#content"
4466 msgstr ""
4467
4468 #. type: textblock
4469 #: ../examples/guestfs-recipes.pod:386
4470 #, fuzzy
4471 #| msgid ""
4472 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4473 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4474 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4475 msgid ""
4476 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4477 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4478 "(3)>, L<http://libguestfs.org/>."
4479 msgstr ""
4480 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4481 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4482 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4483
4484 #. type: textblock
4485 #: ../examples/guestfs-recipes.pod:402
4486 #, fuzzy
4487 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4488 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4489 msgstr "© Red Hat Inc., 2009–2010"
4490
4491 #. type: =head2
4492 #: ../fish/guestfish-actions.pod:1
4493 msgid "add-cdrom"
4494 msgstr ""
4495
4496 #. type: verbatim
4497 #: ../fish/guestfish-actions.pod:3
4498 #, no-wrap
4499 msgid ""
4500 " add-cdrom filename\n"
4501 "\n"
4502 msgstr ""
4503
4504 #. type: textblock
4505 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4506 msgid "This function adds a virtual CD-ROM disk image to the guest."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4511 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../fish/guestfish-actions.pod:15
4516 msgid ""
4517 "This call checks for the existence of C<filename>.  This stops you from "
4518 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4519 "and C<http:> URLs.  To specify those, use the general L</config> call "
4520 "instead."
4521 msgstr ""
4522
4523 #. type: textblock
4524 #: ../fish/guestfish-actions.pod:22
4525 msgid ""
4526 "If you just want to add an ISO file (often you use this as an efficient way "
4527 "to transfer large files into the guest), then you should probably use L</add-"
4528 "drive-ro> instead."
4529 msgstr ""
4530
4531 #. type: textblock
4532 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4533 #: ../fish/guestfish-actions.pod:177
4534 msgid ""
4535 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
4536 "instead."
4537 msgstr ""
4538
4539 #. type: textblock
4540 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4541 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4542 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4543 #: ../fish/guestfish-actions.pod:3112 ../fish/guestfish-actions.pod:3319
4544 #: ../fish/guestfish-actions.pod:3433 ../fish/guestfish-actions.pod:3481
4545 #: ../fish/guestfish-actions.pod:4382 ../fish/guestfish-actions.pod:4405
4546 #: ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4465
4547 #: ../fish/guestfish-actions.pod:5114 ../fish/guestfish-actions.pod:5220
4548 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4549 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4550 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4551 #: ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4974
4552 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5282
4553 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6601
4554 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6693
4555 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7741
4556 #: ../src/guestfs-actions.pod:7919
4557 msgid ""
4558 "Deprecated functions will not be removed from the API, but the fact that "
4559 "they are deprecated indicates that there are problems with correct use of "
4560 "these functions."
4561 msgstr ""
4562
4563 #. type: =head2
4564 #: ../fish/guestfish-actions.pod:35
4565 msgid "add-domain"
4566 msgstr "add-domain"
4567
4568 #. type: =head2
4569 #: ../fish/guestfish-actions.pod:37
4570 msgid "domain"
4571 msgstr ""
4572
4573 #. type: verbatim
4574 #: ../fish/guestfish-actions.pod:39
4575 #, no-wrap
4576 msgid ""
4577 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false]\n"
4578 "\n"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../fish/guestfish-actions.pod:41
4583 msgid ""
4584 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4585 "It works by connecting to libvirt, requesting the domain and domain XML from "
4586 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4591 msgid ""
4592 "The number of disks added is returned.  This operation is atomic: if an "
4593 "error is returned, then no disks are added."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4598 msgid ""
4599 "This function does some minimal checks to make sure the libvirt domain is "
4600 "not running (unless C<readonly> is true).  In a future version we will try "
4601 "to acquire the libvirt lock on each disk."
4602 msgstr ""
4603
4604 #. type: textblock
4605 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4606 msgid ""
4607 "Disks must be accessible locally.  This often means that adding disks from a "
4608 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4609 "unless those disks are accessible via the same device path locally too."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4614 msgid ""
4615 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4616 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4617 "libvirt URI (or one set through an environment variable, see the libvirt "
4618 "documentation for full details)."
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4623 msgid ""
4624 "The optional C<live> flag controls whether this call will try to connect to "
4625 "a running virtual machine C<guestfsd> process if it sees a suitable "
4626 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4627 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4628 "DAEMONS> for more information."
4629 msgstr ""
4630
4631 #. type: textblock
4632 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4633 msgid ""
4634 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4635 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4636 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4637 "as usual."
4638 msgstr ""
4639
4640 #. type: textblock
4641 #: ../fish/guestfish-actions.pod:76
4642 msgid ""
4643 "The other optional parameters are passed directly through to L</add-drive-"
4644 "opts>."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4649 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1995
4650 #: ../fish/guestfish-actions.pod:3161 ../fish/guestfish-actions.pod:3334
4651 #: ../fish/guestfish-actions.pod:3469
4652 msgid ""
4653 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4654 msgstr ""
4655
4656 #. type: =head2
4657 #: ../fish/guestfish-actions.pod:81
4658 msgid "add-drive"
4659 msgstr "add-drive"
4660
4661 #. type: verbatim
4662 #: ../fish/guestfish-actions.pod:83
4663 #, no-wrap
4664 msgid ""
4665 " add-drive filename\n"
4666 "\n"
4667 msgstr ""
4668 " add-drive назва_файла\n"
4669 "\n"
4670
4671 #. type: textblock
4672 #: ../fish/guestfish-actions.pod:85
4673 msgid ""
4674 "This function is the equivalent of calling L</add-drive-opts> with no "
4675 "optional parameters, so the disk is added writable, with the format being "
4676 "detected automatically."
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../fish/guestfish-actions.pod:89
4681 msgid ""
4682 "Automatic detection of the format opens you up to a potential security hole "
4683 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4684 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4685 "you should think about replacing calls to this function with calls to L</add-"
4686 "drive-opts>, and specifying the format."
4687 msgstr ""
4688
4689 #. type: =head2
4690 #: ../fish/guestfish-actions.pod:96
4691 msgid "add-drive-opts"
4692 msgstr "add-drive-opts"
4693
4694 #. type: =head2
4695 #: ../fish/guestfish-actions.pod:98
4696 msgid "add"
4697 msgstr "add"
4698
4699 #. type: verbatim
4700 #: ../fish/guestfish-actions.pod:100
4701 #, no-wrap
4702 msgid ""
4703 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..]\n"
4704 "\n"
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4709 msgid ""
4710 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4711 "The first time you call this function, the disk appears as C</dev/sda>, the "
4712 "second time as C</dev/sdb>, and so on."
4713 msgstr ""
4714
4715 #. type: textblock
4716 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4717 msgid ""
4718 "You don't necessarily need to be root when using libguestfs.  However you "
4719 "obviously do need sufficient permissions to access the filename for whatever "
4720 "operations you want to perform (ie. read access if you just want to read the "
4721 "image or write access if you want to modify the image)."
4722 msgstr ""
4723
4724 #. type: textblock
4725 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4726 msgid "This call checks that C<filename> exists."
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3123
4731 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4682
4732 msgid "The optional arguments are:"
4733 msgstr ""
4734
4735 #. type: =item
4736 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4737 msgid "C<readonly>"
4738 msgstr "C<readonly>"
4739
4740 #. type: textblock
4741 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4742 msgid ""
4743 "If true then the image is treated as read-only.  Writes are still allowed, "
4744 "but they are stored in a temporary snapshot overlay which is discarded at "
4745 "the end.  The disk that you add is not modified."
4746 msgstr ""
4747
4748 #. type: =item
4749 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4750 msgid "C<format>"
4751 msgstr "C<format>"
4752
4753 #. type: textblock
4754 #: ../fish/guestfish-actions.pod:127
4755 msgid ""
4756 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4757 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4758 "include C<raw> and C<qcow2>."
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4763 msgid ""
4764 "Automatic detection of the format opens you up to a potential security hole "
4765 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4766 "RHBZ#642934.  Specifying the format closes this security hole."
4767 msgstr ""
4768
4769 #. type: =item
4770 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4771 msgid "C<iface>"
4772 msgstr "C<iface>"
4773
4774 #. type: textblock
4775 #: ../fish/guestfish-actions.pod:138
4776 msgid ""
4777 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4778 "add-drive-with-if> call (q.v.)"
4779 msgstr ""
4780
4781 #. type: =head2
4782 #: ../fish/guestfish-actions.pod:145
4783 msgid "add-drive-ro"
4784 msgstr "add-drive-ro"
4785
4786 #. type: =head2
4787 #: ../fish/guestfish-actions.pod:147
4788 msgid "add-ro"
4789 msgstr "add-ro"
4790
4791 #. type: verbatim
4792 #: ../fish/guestfish-actions.pod:149
4793 #, no-wrap
4794 msgid ""
4795 " add-drive-ro filename\n"
4796 "\n"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:151
4801 msgid ""
4802 "This function is the equivalent of calling L</add-drive-opts> with the "
4803 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4804 "is added read-only, with the format being detected automatically."
4805 msgstr ""
4806
4807 #. type: =head2
4808 #: ../fish/guestfish-actions.pod:156
4809 msgid "add-drive-ro-with-if"
4810 msgstr ""
4811
4812 #. type: verbatim
4813 #: ../fish/guestfish-actions.pod:158
4814 #, no-wrap
4815 msgid ""
4816 " add-drive-ro-with-if filename iface\n"
4817 "\n"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../fish/guestfish-actions.pod:160
4822 msgid ""
4823 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4824 "interface emulation to use at run time."
4825 msgstr ""
4826
4827 #. type: =head2
4828 #: ../fish/guestfish-actions.pod:170
4829 msgid "add-drive-with-if"
4830 msgstr ""
4831
4832 #. type: verbatim
4833 #: ../fish/guestfish-actions.pod:172
4834 #, no-wrap
4835 msgid ""
4836 " add-drive-with-if filename iface\n"
4837 "\n"
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../fish/guestfish-actions.pod:174
4842 msgid ""
4843 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4844 "interface emulation to use at run time."
4845 msgstr ""
4846
4847 #. type: =head2
4848 #: ../fish/guestfish-actions.pod:184
4849 msgid "aug-clear"
4850 msgstr ""
4851
4852 #. type: verbatim
4853 #: ../fish/guestfish-actions.pod:186
4854 #, no-wrap
4855 msgid ""
4856 " aug-clear augpath\n"
4857 "\n"
4858 msgstr ""
4859
4860 #. type: textblock
4861 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4862 msgid ""
4863 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4864 "L<augtool(1)> C<clear> command."
4865 msgstr ""
4866
4867 #. type: =head2
4868 #: ../fish/guestfish-actions.pod:191
4869 msgid "aug-close"
4870 msgstr ""
4871
4872 #. type: verbatim
4873 #: ../fish/guestfish-actions.pod:193
4874 #, no-wrap
4875 msgid ""
4876 " aug-close\n"
4877 "\n"
4878 msgstr ""
4879
4880 #. type: textblock
4881 #: ../fish/guestfish-actions.pod:195
4882 msgid ""
4883 "Close the current Augeas handle and free up any resources used by it.  After "
4884 "calling this, you have to call L</aug-init> again before you can use any "
4885 "other Augeas functions."
4886 msgstr ""
4887
4888 #. type: =head2
4889 #: ../fish/guestfish-actions.pod:200
4890 msgid "aug-defnode"
4891 msgstr ""
4892
4893 #. type: verbatim
4894 #: ../fish/guestfish-actions.pod:202
4895 #, no-wrap
4896 msgid ""
4897 " aug-defnode name expr val\n"
4898 "\n"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4903 msgid ""
4904 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../fish/guestfish-actions.pod:207
4909 msgid ""
4910 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4911 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4912 "containing that single node."
4913 msgstr ""
4914
4915 #. type: textblock
4916 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4917 msgid ""
4918 "On success this returns a pair containing the number of nodes in the "
4919 "nodeset, and a boolean flag if a node was created."
4920 msgstr ""
4921
4922 #. type: =head2
4923 #: ../fish/guestfish-actions.pod:215
4924 msgid "aug-defvar"
4925 msgstr ""
4926
4927 #. type: verbatim
4928 #: ../fish/guestfish-actions.pod:217
4929 #, no-wrap
4930 msgid ""
4931 " aug-defvar name expr\n"
4932 "\n"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4937 msgid ""
4938 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4939 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4944 msgid ""
4945 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4946 "evaluates to something which is not a nodeset."
4947 msgstr ""
4948
4949 #. type: =head2
4950 #: ../fish/guestfish-actions.pod:226
4951 msgid "aug-get"
4952 msgstr ""
4953
4954 #. type: verbatim
4955 #: ../fish/guestfish-actions.pod:228
4956 #, no-wrap
4957 msgid ""
4958 " aug-get augpath\n"
4959 "\n"
4960 msgstr ""
4961
4962 #. type: textblock
4963 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4964 msgid ""
4965 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4966 "node, the C<value> is returned."
4967 msgstr ""
4968
4969 #. type: =head2
4970 #: ../fish/guestfish-actions.pod:233
4971 msgid "aug-init"
4972 msgstr ""
4973
4974 #. type: verbatim
4975 #: ../fish/guestfish-actions.pod:235
4976 #, no-wrap
4977 msgid ""
4978 " aug-init root flags\n"
4979 "\n"
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4984 msgid ""
4985 "Create a new Augeas handle for editing configuration files.  If there was "
4986 "any previous Augeas handle associated with this guestfs session, then it is "
4987 "closed."
4988 msgstr ""
4989
4990 #. type: textblock
4991 #: ../fish/guestfish-actions.pod:241
4992 msgid "You must call this before using any other L</aug-*> commands."
4993 msgstr ""
4994
4995 #. type: textblock
4996 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4997 msgid ""
4998 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4999 msgstr ""
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5003 msgid ""
5004 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5005 "logical I<or> of the following integers:"
5006 msgstr ""
5007
5008 #. type: =item
5009 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5010 msgid "C<AUG_SAVE_BACKUP> = 1"
5011 msgstr "C<AUG_SAVE_BACKUP> = 1"
5012
5013 #. type: textblock
5014 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5015 msgid "Keep the original file with a C<.augsave> extension."
5016 msgstr ""
5017
5018 #. type: =item
5019 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5020 msgid "C<AUG_SAVE_NEWFILE> = 2"
5021 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5022
5023 #. type: textblock
5024 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5025 msgid ""
5026 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5027 "original.  Overrides C<AUG_SAVE_BACKUP>."
5028 msgstr ""
5029
5030 #. type: =item
5031 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5032 msgid "C<AUG_TYPE_CHECK> = 4"
5033 msgstr "C<AUG_TYPE_CHECK> = 4"
5034
5035 #. type: textblock
5036 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5037 msgid "Typecheck lenses."
5038 msgstr ""
5039
5040 #. type: textblock
5041 #: ../fish/guestfish-actions.pod:266
5042 msgid ""
5043 "This option is only useful when debugging Augeas lenses.  Use of this option "
5044 "may require additional memory for the libguestfs appliance.  You may need to "
5045 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5046 msgstr ""
5047
5048 #. type: =item
5049 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5050 msgid "C<AUG_NO_STDINC> = 8"
5051 msgstr "C<AUG_NO_STDINC> = 8"
5052
5053 #. type: textblock
5054 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5055 msgid "Do not use standard load path for modules."
5056 msgstr ""
5057
5058 #. type: =item
5059 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5060 msgid "C<AUG_SAVE_NOOP> = 16"
5061 msgstr "C<AUG_SAVE_NOOP> = 16"
5062
5063 #. type: textblock
5064 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5065 msgid "Make save a no-op, just record what would have been changed."
5066 msgstr ""
5067
5068 #. type: =item
5069 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5070 msgid "C<AUG_NO_LOAD> = 32"
5071 msgstr "C<AUG_NO_LOAD> = 32"
5072
5073 #. type: textblock
5074 #: ../fish/guestfish-actions.pod:281
5075 msgid "Do not load the tree in L</aug-init>."
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:285
5080 msgid "To close the handle, you can call L</aug-close>."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5085 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5086 msgstr ""
5087
5088 #. type: =head2
5089 #: ../fish/guestfish-actions.pod:289
5090 msgid "aug-insert"
5091 msgstr ""
5092
5093 #. type: verbatim
5094 #: ../fish/guestfish-actions.pod:291
5095 #, no-wrap
5096 msgid ""
5097 " aug-insert augpath label true|false\n"
5098 "\n"
5099 msgstr ""
5100
5101 #. type: textblock
5102 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5103 msgid ""
5104 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5105 "or after C<path> (depending on the boolean flag C<before>)."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5110 msgid ""
5111 "C<path> must match exactly one existing node in the tree, and C<label> must "
5112 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5113 msgstr ""
5114
5115 #. type: =head2
5116 #: ../fish/guestfish-actions.pod:301
5117 msgid "aug-load"
5118 msgstr ""
5119
5120 #. type: verbatim
5121 #: ../fish/guestfish-actions.pod:303
5122 #, no-wrap
5123 msgid ""
5124 " aug-load\n"
5125 "\n"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5130 msgid "Load files into the tree."
5131 msgstr "Завантажити файли до ієрархії."
5132
5133 #. type: textblock
5134 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5135 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5136 msgstr ""
5137
5138 #. type: =head2
5139 #: ../fish/guestfish-actions.pod:310
5140 msgid "aug-ls"
5141 msgstr ""
5142
5143 #. type: verbatim
5144 #: ../fish/guestfish-actions.pod:312
5145 #, no-wrap
5146 msgid ""
5147 " aug-ls augpath\n"
5148 "\n"
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../fish/guestfish-actions.pod:314
5153 msgid ""
5154 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5155 "resulting nodes into alphabetical order."
5156 msgstr ""
5157
5158 #. type: =head2
5159 #: ../fish/guestfish-actions.pod:317
5160 msgid "aug-match"
5161 msgstr ""
5162
5163 #. type: verbatim
5164 #: ../fish/guestfish-actions.pod:319
5165 #, no-wrap
5166 msgid ""
5167 " aug-match augpath\n"
5168 "\n"
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5173 msgid ""
5174 "Returns a list of paths which match the path expression C<path>.  The "
5175 "returned paths are sufficiently qualified so that they match exactly one "
5176 "node in the current tree."
5177 msgstr ""
5178
5179 #. type: =head2
5180 #: ../fish/guestfish-actions.pod:325
5181 msgid "aug-mv"
5182 msgstr ""
5183
5184 #. type: verbatim
5185 #: ../fish/guestfish-actions.pod:327
5186 #, no-wrap
5187 msgid ""
5188 " aug-mv src dest\n"
5189 "\n"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5194 msgid ""
5195 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5196 "C<dest> is overwritten if it exists."
5197 msgstr ""
5198
5199 #. type: =head2
5200 #: ../fish/guestfish-actions.pod:332
5201 msgid "aug-rm"
5202 msgstr ""
5203
5204 #. type: verbatim
5205 #: ../fish/guestfish-actions.pod:334
5206 #, no-wrap
5207 msgid ""
5208 " aug-rm augpath\n"
5209 "\n"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5214 msgid "Remove C<path> and all of its children."
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5219 msgid "On success this returns the number of entries which were removed."
5220 msgstr ""
5221
5222 #. type: =head2
5223 #: ../fish/guestfish-actions.pod:340
5224 msgid "aug-save"
5225 msgstr ""
5226
5227 #. type: verbatim
5228 #: ../fish/guestfish-actions.pod:342
5229 #, no-wrap
5230 msgid ""
5231 " aug-save\n"
5232 "\n"
5233 msgstr ""
5234
5235 #. type: textblock
5236 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5237 msgid "This writes all pending changes to disk."
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../fish/guestfish-actions.pod:346
5242 msgid ""
5243 "The flags which were passed to L</aug-init> affect exactly how files are "
5244 "saved."
5245 msgstr ""
5246
5247 #. type: =head2
5248 #: ../fish/guestfish-actions.pod:349
5249 msgid "aug-set"
5250 msgstr ""
5251
5252 #. type: verbatim
5253 #: ../fish/guestfish-actions.pod:351
5254 #, no-wrap
5255 msgid ""
5256 " aug-set augpath val\n"
5257 "\n"
5258 msgstr ""
5259
5260 #. type: textblock
5261 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5262 msgid "Set the value associated with C<path> to C<val>."
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../fish/guestfish-actions.pod:355
5267 msgid ""
5268 "In the Augeas API, it is possible to clear a node by setting the value to "
5269 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5270 "this call.  Instead you must use the L</aug-clear> call."
5271 msgstr ""
5272
5273 #. type: =head2
5274 #: ../fish/guestfish-actions.pod:360
5275 msgid "available"
5276 msgstr ""
5277
5278 #. type: verbatim
5279 #: ../fish/guestfish-actions.pod:362
5280 #, no-wrap
5281 msgid ""
5282 " available 'groups ...'\n"
5283 "\n"
5284 msgstr ""
5285
5286 #. type: textblock
5287 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5288 msgid ""
5289 "This command is used to check the availability of some groups of "
5290 "functionality in the appliance, which not all builds of the libguestfs "
5291 "appliance will be able to provide."
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../fish/guestfish-actions.pod:368
5296 msgid ""
5297 "The libguestfs groups, and the functions that those groups correspond to, "
5298 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5299 "runtime by calling L</available-all-groups>."
5300 msgstr ""
5301
5302 #. type: textblock
5303 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5304 msgid ""
5305 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5306 "\"]> would check for the availability of the Linux inotify functions and "
5307 "Augeas (configuration file editing) functions."
5308 msgstr ""
5309
5310 #. type: textblock
5311 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5312 msgid "The command returns no error if I<all> requested groups are available."
5313 msgstr ""
5314
5315 #. type: textblock
5316 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5317 msgid ""
5318 "It fails with an error if one or more of the requested groups is unavailable "
5319 "in the appliance."
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5324 msgid ""
5325 "If an unknown group name is included in the list of groups then an error is "
5326 "always returned."
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5331 msgid "I<Notes:>"
5332 msgstr "I<Нотатки:>"
5333
5334 #. type: textblock
5335 #: ../fish/guestfish-actions.pod:392
5336 msgid "You must call L</launch> before calling this function."
5337 msgstr ""
5338
5339 #. type: textblock
5340 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5341 msgid ""
5342 "The reason is because we don't know what groups are supported by the "
5343 "appliance/daemon until it is running and can be queried."
5344 msgstr ""
5345
5346 #. type: textblock
5347 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5348 msgid ""
5349 "If a group of functions is available, this does not necessarily mean that "
5350 "they will work.  You still have to check for errors when calling individual "
5351 "API functions even if they are available."
5352 msgstr ""
5353
5354 #. type: textblock
5355 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5356 msgid ""
5357 "It is usually the job of distro packagers to build complete functionality "
5358 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5359 "with all requirements satisfied, will support everything."
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../fish/guestfish-actions.pod:414
5364 msgid ""
5365 "This call was added in version C<1.0.80>.  In previous versions of "
5366 "libguestfs all you could do would be to speculatively execute a command to "
5367 "find out if the daemon implemented it.  See also L</version>."
5368 msgstr ""
5369
5370 #. type: =head2
5371 #: ../fish/guestfish-actions.pod:421
5372 msgid "available-all-groups"
5373 msgstr ""
5374
5375 #. type: verbatim
5376 #: ../fish/guestfish-actions.pod:423
5377 #, no-wrap
5378 msgid ""
5379 " available-all-groups\n"
5380 "\n"
5381 msgstr ""
5382
5383 #. type: textblock
5384 #: ../fish/guestfish-actions.pod:425
5385 msgid ""
5386 "This command returns a list of all optional groups that this daemon knows "
5387 "about.  Note this returns both supported and unsupported groups.  To find "
5388 "out which ones the daemon can actually support you have to call L</"
5389 "available> on each member of the returned list."
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../fish/guestfish-actions.pod:431
5394 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5395 msgstr ""
5396
5397 #. type: =head2
5398 #: ../fish/guestfish-actions.pod:433
5399 msgid "base64-in"
5400 msgstr ""
5401
5402 #. type: verbatim
5403 #: ../fish/guestfish-actions.pod:435
5404 #, no-wrap
5405 msgid ""
5406 " base64-in (base64file|-) filename\n"
5407 "\n"
5408 msgstr ""
5409
5410 #. type: textblock
5411 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5412 msgid ""
5413 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5418 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5419 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5420 #: ../fish/guestfish-actions.pod:4685 ../fish/guestfish-actions.pod:4697
5421 #: ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4719
5422 #: ../fish/guestfish-actions.pod:4771 ../fish/guestfish-actions.pod:4780
5423 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4857
5424 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5425 msgstr ""
5426
5427 #. type: =head2
5428 #: ../fish/guestfish-actions.pod:442
5429 msgid "base64-out"
5430 msgstr ""
5431
5432 #. type: verbatim
5433 #: ../fish/guestfish-actions.pod:444
5434 #, no-wrap
5435 msgid ""
5436 " base64-out filename (base64file|-)\n"
5437 "\n"
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5442 msgid ""
5443 "This command downloads the contents of C<filename>, writing it out to local "
5444 "file C<base64file> encoded as base64."
5445 msgstr ""
5446
5447 #. type: =head2
5448 #: ../fish/guestfish-actions.pod:451
5449 msgid "blockdev-flushbufs"
5450 msgstr ""
5451
5452 #. type: verbatim
5453 #: ../fish/guestfish-actions.pod:453
5454 #, no-wrap
5455 msgid ""
5456 " blockdev-flushbufs device\n"
5457 "\n"
5458 msgstr ""
5459
5460 #. type: textblock
5461 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5462 msgid ""
5463 "This tells the kernel to flush internal buffers associated with C<device>."
5464 msgstr ""
5465
5466 #. type: textblock
5467 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5468 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5469 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5470 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5471 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5472 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5473 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5474 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5475 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5476 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5477 msgid "This uses the L<blockdev(8)> command."
5478 msgstr ""
5479
5480 #. type: =head2
5481 #: ../fish/guestfish-actions.pod:460
5482 msgid "blockdev-getbsz"
5483 msgstr ""
5484
5485 #. type: verbatim
5486 #: ../fish/guestfish-actions.pod:462
5487 #, no-wrap
5488 msgid ""
5489 " blockdev-getbsz device\n"
5490 "\n"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5495 msgid "This returns the block size of a device."
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5500 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5501 msgid ""
5502 "(Note this is different from both I<size in blocks> and I<filesystem block "
5503 "size>)."
5504 msgstr ""
5505
5506 #. type: =head2
5507 #: ../fish/guestfish-actions.pod:471
5508 msgid "blockdev-getro"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../fish/guestfish-actions.pod:473
5513 #, no-wrap
5514 msgid ""
5515 " blockdev-getro device\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5521 msgid ""
5522 "Returns a boolean indicating if the block device is read-only (true if read-"
5523 "only, false if not)."
5524 msgstr ""
5525
5526 #. type: =head2
5527 #: ../fish/guestfish-actions.pod:480
5528 msgid "blockdev-getsize64"
5529 msgstr ""
5530
5531 #. type: verbatim
5532 #: ../fish/guestfish-actions.pod:482
5533 #, no-wrap
5534 msgid ""
5535 " blockdev-getsize64 device\n"
5536 "\n"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5541 msgid "This returns the size of the device in bytes."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../fish/guestfish-actions.pod:486
5546 msgid "See also L</blockdev-getsz>."
5547 msgstr ""
5548
5549 #. type: =head2
5550 #: ../fish/guestfish-actions.pod:490
5551 msgid "blockdev-getss"
5552 msgstr ""
5553
5554 #. type: verbatim
5555 #: ../fish/guestfish-actions.pod:492
5556 #, no-wrap
5557 msgid ""
5558 " blockdev-getss device\n"
5559 "\n"
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5564 msgid ""
5565 "This returns the size of sectors on a block device.  Usually 512, but can be "
5566 "larger for modern devices."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../fish/guestfish-actions.pod:497
5571 msgid ""
5572 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5573 msgstr ""
5574
5575 #. type: =head2
5576 #: ../fish/guestfish-actions.pod:502
5577 msgid "blockdev-getsz"
5578 msgstr ""
5579
5580 #. type: verbatim
5581 #: ../fish/guestfish-actions.pod:504
5582 #, no-wrap
5583 msgid ""
5584 " blockdev-getsz device\n"
5585 "\n"
5586 msgstr ""
5587
5588 #. type: textblock
5589 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5590 msgid ""
5591 "This returns the size of the device in units of 512-byte sectors (even if "
5592 "the sectorsize isn't 512 bytes ... weird)."
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../fish/guestfish-actions.pod:509
5597 msgid ""
5598 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5599 "blockdev-getsize64> for the more useful I<size in bytes>."
5600 msgstr ""
5601
5602 #. type: =head2
5603 #: ../fish/guestfish-actions.pod:515
5604 msgid "blockdev-rereadpt"
5605 msgstr ""
5606
5607 #. type: verbatim
5608 #: ../fish/guestfish-actions.pod:517
5609 #, no-wrap
5610 msgid ""
5611 " blockdev-rereadpt device\n"
5612 "\n"
5613 msgstr ""
5614
5615 #. type: textblock
5616 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5617 msgid "Reread the partition table on C<device>."
5618 msgstr ""
5619
5620 #. type: =head2
5621 #: ../fish/guestfish-actions.pod:523
5622 msgid "blockdev-setbsz"
5623 msgstr ""
5624
5625 #. type: verbatim
5626 #: ../fish/guestfish-actions.pod:525
5627 #, no-wrap
5628 msgid ""
5629 " blockdev-setbsz device blocksize\n"
5630 "\n"
5631 msgstr ""
5632
5633 #. type: textblock
5634 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5635 msgid "This sets the block size of a device."
5636 msgstr ""
5637
5638 #. type: =head2
5639 #: ../fish/guestfish-actions.pod:534
5640 msgid "blockdev-setro"
5641 msgstr ""
5642
5643 #. type: verbatim
5644 #: ../fish/guestfish-actions.pod:536
5645 #, no-wrap
5646 msgid ""
5647 " blockdev-setro device\n"
5648 "\n"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5653 msgid "Sets the block device named C<device> to read-only."
5654 msgstr ""
5655
5656 #. type: =head2
5657 #: ../fish/guestfish-actions.pod:542
5658 msgid "blockdev-setrw"
5659 msgstr ""
5660
5661 #. type: verbatim
5662 #: ../fish/guestfish-actions.pod:544
5663 #, no-wrap
5664 msgid ""
5665 " blockdev-setrw device\n"
5666 "\n"
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5671 msgid "Sets the block device named C<device> to read-write."
5672 msgstr ""
5673
5674 #. type: =head2
5675 #: ../fish/guestfish-actions.pod:550
5676 msgid "btrfs-filesystem-resize"
5677 msgstr ""
5678
5679 #. type: verbatim
5680 #: ../fish/guestfish-actions.pod:552
5681 #, no-wrap
5682 msgid ""
5683 " btrfs-filesystem-resize mountpoint [size:N]\n"
5684 "\n"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5689 msgid "This command resizes a btrfs filesystem."
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5694 msgid ""
5695 "Note that unlike other resize calls, the filesystem has to be mounted and "
5696 "the parameter is the mountpoint not the device (this is a requirement of "
5697 "btrfs itself)."
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3444
5702 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5216
5703 msgid "The optional parameters are:"
5704 msgstr ""
5705
5706 #. type: =item
5707 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3448
5708 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5220
5709 msgid "C<size>"
5710 msgstr ""
5711
5712 #. type: textblock
5713 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5714 msgid ""
5715 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5716 "resized to the maximum size."
5717 msgstr ""
5718
5719 #. type: textblock
5720 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5721 msgid "See also L<btrfs(8)>."
5722 msgstr ""
5723
5724 #. type: =head2
5725 #: ../fish/guestfish-actions.pod:575
5726 msgid "case-sensitive-path"
5727 msgstr ""
5728
5729 #. type: verbatim
5730 #: ../fish/guestfish-actions.pod:577
5731 #, no-wrap
5732 msgid ""
5733 " case-sensitive-path path\n"
5734 "\n"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5739 msgid ""
5740 "This can be used to resolve case insensitive paths on a filesystem which is "
5741 "case sensitive.  The use case is to resolve paths which you have read from "
5742 "Windows configuration files or the Windows Registry, to the true path."
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5747 msgid ""
5748 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5749 "(and probably others), which is that although the underlying filesystem is "
5750 "case-insensitive, the driver exports the filesystem to Linux as case-"
5751 "sensitive."
5752 msgstr ""
5753
5754 #. type: textblock
5755 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5756 msgid ""
5757 "One consequence of this is that special directories such as C<c:\\windows> "
5758 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5759 "precise details of how they were created.  In Windows itself this would not "
5760 "be a problem."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5765 msgid ""
5766 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5767 "#posixfilenames1>"
5768 msgstr ""
5769
5770 #. type: textblock
5771 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5772 msgid ""
5773 "This function resolves the true case of each element in the path and returns "
5774 "the case-sensitive path."
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../fish/guestfish-actions.pod:601
5779 msgid ""
5780 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5781 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5782 "the directories were originally created under Windows)."
5783 msgstr ""
5784
5785 #. type: textblock
5786 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5787 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:609
5792 msgid "See also L</realpath>."
5793 msgstr ""
5794
5795 #. type: =head2
5796 #: ../fish/guestfish-actions.pod:611
5797 msgid "cat"
5798 msgstr "cat"
5799
5800 #. type: verbatim
5801 #: ../fish/guestfish-actions.pod:613
5802 #, no-wrap
5803 msgid ""
5804 " cat path\n"
5805 "\n"
5806 msgstr ""
5807 " cat шлях\n"
5808 "\n"
5809
5810 #. type: textblock
5811 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3864
5812 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5859
5813 msgid "Return the contents of the file named C<path>."
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../fish/guestfish-actions.pod:617
5818 msgid ""
5819 "Note that this function cannot correctly handle binary files (specifically, "
5820 "files containing C<\\0> character which is treated as end of string).  For "
5821 "those you need to use the L</read-file> or L</download> functions which have "
5822 "a more complex interface."
5823 msgstr ""
5824
5825 #. type: textblock
5826 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5827 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5828 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5829 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5830 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5831 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
5832 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
5833 #: ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3749
5834 #: ../fish/guestfish-actions.pod:3825 ../fish/guestfish-actions.pod:3842
5835 #: ../fish/guestfish-actions.pod:3857 ../fish/guestfish-actions.pod:4526
5836 #: ../fish/guestfish-actions.pod:4572 ../fish/guestfish-actions.pod:4657
5837 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:5078
5838 #: ../fish/guestfish-actions.pod:5090 ../fish/guestfish-actions.pod:5108
5839 #: ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5135
5840 #: ../fish/guestfish-actions.pod:5192 ../fish/guestfish-actions.pod:5202
5841 #: ../fish/guestfish-actions.pod:5231 ../fish/guestfish-actions.pod:5241
5842 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5843 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5844 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5845 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5846 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5847 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
5848 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
5849 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
5850 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5824
5851 #: ../src/guestfs-actions.pod:5848 ../src/guestfs-actions.pod:6799
5852 #: ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000
5853 #: ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7689
5854 #: ../src/guestfs-actions.pod:7709 ../src/guestfs-actions.pod:7735
5855 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780
5856 #: ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893
5857 #: ../src/guestfs-actions.pod:7939 ../src/guestfs-actions.pod:7958
5858 msgid ""
5859 "Because of the message protocol, there is a transfer limit of somewhere "
5860 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5861 msgstr ""
5862
5863 #. type: =head2
5864 #: ../fish/guestfish-actions.pod:625
5865 msgid "checksum"
5866 msgstr "checksum"
5867
5868 #. type: verbatim
5869 #: ../fish/guestfish-actions.pod:627
5870 #, no-wrap
5871 msgid ""
5872 " checksum csumtype path\n"
5873 "\n"
5874 msgstr ""
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5878 msgid ""
5879 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5884 msgid ""
5885 "The type of checksum to compute is given by the C<csumtype> parameter which "
5886 "must have one of the following values:"
5887 msgstr ""
5888
5889 #. type: =item
5890 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5891 msgid "C<crc>"
5892 msgstr "C<crc>"
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5896 msgid ""
5897 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5898 "C<cksum> command."
5899 msgstr ""
5900
5901 #. type: =item
5902 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5903 msgid "C<md5>"
5904 msgstr "C<md5>"
5905
5906 #. type: textblock
5907 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5908 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5909 msgstr ""
5910
5911 #. type: =item
5912 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5913 msgid "C<sha1>"
5914 msgstr "C<sha1>"
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5918 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5919 msgstr ""
5920
5921 #. type: =item
5922 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5923 msgid "C<sha224>"
5924 msgstr "C<sha224>"
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5928 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5929 msgstr ""
5930
5931 #. type: =item
5932 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5933 msgid "C<sha256>"
5934 msgstr "C<sha256>"
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5938 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5939 msgstr ""
5940
5941 #. type: =item
5942 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5943 msgid "C<sha384>"
5944 msgstr "C<sha384>"
5945
5946 #. type: textblock
5947 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5948 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5949 msgstr ""
5950
5951 #. type: =item
5952 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5953 msgid "C<sha512>"
5954 msgstr "C<sha512>"
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5958 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5963 msgid "The checksum is returned as a printable string."
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:670
5968 msgid "To get the checksum for a device, use L</checksum-device>."
5969 msgstr ""
5970
5971 #. type: textblock
5972 #: ../fish/guestfish-actions.pod:672
5973 msgid "To get the checksums for many files, use L</checksums-out>."
5974 msgstr ""
5975
5976 #. type: =head2
5977 #: ../fish/guestfish-actions.pod:674
5978 msgid "checksum-device"
5979 msgstr "checksum-device"
5980
5981 #. type: verbatim
5982 #: ../fish/guestfish-actions.pod:676
5983 #, no-wrap
5984 msgid ""
5985 " checksum-device csumtype device\n"
5986 "\n"
5987 msgstr ""
5988
5989 #. type: textblock
5990 #: ../fish/guestfish-actions.pod:678
5991 msgid ""
5992 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5993 "device named C<device>.  For the types of checksums supported see the L</"
5994 "checksum> command."
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../fish/guestfish-actions.pod:682
5999 msgid "checksums-out"
6000 msgstr ""
6001
6002 #. type: verbatim
6003 #: ../fish/guestfish-actions.pod:684
6004 #, no-wrap
6005 msgid ""
6006 " checksums-out csumtype directory (sumsfile|-)\n"
6007 "\n"
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6012 msgid ""
6013 "This command computes the checksums of all regular files in C<directory> and "
6014 "then emits a list of those checksums to the local output file C<sumsfile>."
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6019 msgid ""
6020 "This can be used for verifying the integrity of a virtual machine.  However "
6021 "to be properly secure you should pay attention to the output of the checksum "
6022 "command (it uses the ones from GNU coreutils).  In particular when the "
6023 "filename is not printable, coreutils uses a special backslash syntax.  For "
6024 "more information, see the GNU coreutils info file."
6025 msgstr ""
6026
6027 #. type: =head2
6028 #: ../fish/guestfish-actions.pod:700
6029 msgid "chmod"
6030 msgstr "chmod"
6031
6032 #. type: verbatim
6033 #: ../fish/guestfish-actions.pod:702
6034 #, no-wrap
6035 msgid ""
6036 " chmod mode path\n"
6037 "\n"
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6042 msgid ""
6043 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6044 "supported."
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6049 msgid ""
6050 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6051 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6052 "C<700>."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3087
6057 #: ../fish/guestfish-actions.pod:3226 ../fish/guestfish-actions.pod:3236
6058 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:1064
6059 #: ../src/guestfs-actions.pod:4613 ../src/guestfs-actions.pod:4822
6060 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4860
6061 msgid "The mode actually set is affected by the umask."
6062 msgstr ""
6063
6064 #. type: =head2
6065 #: ../fish/guestfish-actions.pod:713
6066 msgid "chown"
6067 msgstr "chown"
6068
6069 #. type: verbatim
6070 #: ../fish/guestfish-actions.pod:715
6071 #, no-wrap
6072 msgid ""
6073 " chown owner group path\n"
6074 "\n"
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6079 msgid "Change the file owner to C<owner> and group to C<group>."
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2522
6084 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3684
6085 msgid ""
6086 "Only numeric uid and gid are supported.  If you want to use names, you will "
6087 "need to locate and parse the password file yourself (Augeas support makes "
6088 "this relatively easy)."
6089 msgstr ""
6090
6091 #. type: =head2
6092 #: ../fish/guestfish-actions.pod:723
6093 msgid "command"
6094 msgstr ""
6095
6096 #. type: verbatim
6097 #: ../fish/guestfish-actions.pod:725
6098 #, no-wrap
6099 msgid ""
6100 " command 'arguments ...'\n"
6101 "\n"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6106 msgid ""
6107 "This call runs a command from the guest filesystem.  The filesystem must be "
6108 "mounted, and must contain a compatible operating system (ie. something "
6109 "Linux, with the same or compatible processor architecture)."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:732
6114 msgid ""
6115 "The single parameter is an argv-style list of arguments.  The first element "
6116 "is the name of the program to run.  Subsequent elements are parameters.  The "
6117 "list must be non-empty (ie. must contain a program name).  Note that the "
6118 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6119 msgstr ""
6120
6121 #. type: textblock
6122 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6123 msgid "The return value is anything printed to I<stdout> by the command."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6128 msgid ""
6129 "If the command returns a non-zero exit status, then this function returns an "
6130 "error message.  The error message string is the content of I<stderr> from "
6131 "the command."
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6136 msgid ""
6137 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6138 "bin>.  If you require a program from another location, you should provide "
6139 "the full path in the first parameter."
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6144 msgid ""
6145 "Shared libraries and data files required by the program must be available on "
6146 "filesystems which are mounted in the correct places.  It is the caller's "
6147 "responsibility to ensure all filesystems that are needed are mounted at the "
6148 "right locations."
6149 msgstr ""
6150
6151 #. type: =head2
6152 #: ../fish/guestfish-actions.pod:760
6153 msgid "command-lines"
6154 msgstr ""
6155
6156 #. type: verbatim
6157 #: ../fish/guestfish-actions.pod:762
6158 #, no-wrap
6159 msgid ""
6160 " command-lines 'arguments ...'\n"
6161 "\n"
6162 msgstr ""
6163
6164 #. type: textblock
6165 #: ../fish/guestfish-actions.pod:764
6166 msgid ""
6167 "This is the same as L</command>, but splits the result into a list of lines."
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:767
6172 msgid "See also: L</sh-lines>"
6173 msgstr ""
6174
6175 #. type: =head2
6176 #: ../fish/guestfish-actions.pod:772
6177 msgid "config"
6178 msgstr ""
6179
6180 #. type: verbatim
6181 #: ../fish/guestfish-actions.pod:774
6182 #, no-wrap
6183 msgid ""
6184 " config qemuparam qemuvalue\n"
6185 "\n"
6186 msgstr ""
6187
6188 #. type: textblock
6189 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6190 msgid ""
6191 "This can be used to add arbitrary qemu command line parameters of the form "
6192 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6193 "setting some parameters which would interfere with parameters that we use."
6194 msgstr ""
6195
6196 #. type: textblock
6197 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6198 msgid "The first character of C<param> string must be a C<-> (dash)."
6199 msgstr ""
6200
6201 #. type: textblock
6202 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6203 msgid "C<value> can be NULL."
6204 msgstr ""
6205
6206 #. type: =head2
6207 #: ../fish/guestfish-actions.pod:785
6208 msgid "copy-size"
6209 msgstr ""
6210
6211 #. type: verbatim
6212 #: ../fish/guestfish-actions.pod:787
6213 #, no-wrap
6214 msgid ""
6215 " copy-size src dest size\n"
6216 "\n"
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6221 msgid ""
6222 "This command copies exactly C<size> bytes from one source device or file "
6223 "C<src> to another destination device or file C<dest>."
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6228 msgid ""
6229 "Note this will fail if the source is too short or if the destination is not "
6230 "large enough."
6231 msgstr ""
6232
6233 #. type: =head2
6234 #: ../fish/guestfish-actions.pod:795
6235 msgid "cp"
6236 msgstr "cp"
6237
6238 #. type: verbatim
6239 #: ../fish/guestfish-actions.pod:797
6240 #, no-wrap
6241 msgid ""
6242 " cp src dest\n"
6243 "\n"
6244 msgstr ""
6245
6246 #. type: textblock
6247 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6248 msgid ""
6249 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6250 "destination filename or destination directory."
6251 msgstr ""
6252
6253 #. type: =head2
6254 #: ../fish/guestfish-actions.pod:802
6255 msgid "cp-a"
6256 msgstr "cp-a"
6257
6258 #. type: verbatim
6259 #: ../fish/guestfish-actions.pod:804
6260 #, no-wrap
6261 msgid ""
6262 " cp-a src dest\n"
6263 "\n"
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6268 msgid ""
6269 "This copies a file or directory from C<src> to C<dest> recursively using the "
6270 "C<cp -a> command."
6271 msgstr ""
6272
6273 #. type: =head2
6274 #: ../fish/guestfish-actions.pod:809
6275 msgid "dd"
6276 msgstr "dd"
6277
6278 #. type: verbatim
6279 #: ../fish/guestfish-actions.pod:811
6280 #, no-wrap
6281 msgid ""
6282 " dd src dest\n"
6283 "\n"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6288 msgid ""
6289 "This command copies from one source device or file C<src> to another "
6290 "destination device or file C<dest>.  Normally you would use this to copy to "
6291 "or from a device or partition, for example to duplicate a filesystem."
6292 msgstr ""
6293
6294 #. type: textblock
6295 #: ../fish/guestfish-actions.pod:818
6296 msgid ""
6297 "If the destination is a device, it must be as large or larger than the "
6298 "source file or device, otherwise the copy will fail.  This command cannot do "
6299 "partial copies (see L</copy-size>)."
6300 msgstr ""
6301
6302 #. type: =head2
6303 #: ../fish/guestfish-actions.pod:822
6304 msgid "df"
6305 msgstr "df"
6306
6307 #. type: verbatim
6308 #: ../fish/guestfish-actions.pod:824
6309 #, no-wrap
6310 msgid ""
6311 " df\n"
6312 "\n"
6313 msgstr ""
6314 " df\n"
6315 "\n"
6316
6317 #. type: textblock
6318 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6319 msgid "This command runs the C<df> command to report disk space used."
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6324 msgid ""
6325 "This command is mostly useful for interactive sessions.  It is I<not> "
6326 "intended that you try to parse the output string.  Use L</statvfs> from "
6327 "programs."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:832
6332 msgid "df-h"
6333 msgstr "df-h"
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:834
6337 #, no-wrap
6338 msgid ""
6339 " df-h\n"
6340 "\n"
6341 msgstr ""
6342 " df-h\n"
6343 "\n"
6344
6345 #. type: textblock
6346 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6347 msgid ""
6348 "This command runs the C<df -h> command to report disk space used in human-"
6349 "readable format."
6350 msgstr ""
6351
6352 #. type: =head2
6353 #: ../fish/guestfish-actions.pod:843
6354 msgid "dmesg"
6355 msgstr "dmesg"
6356
6357 #. type: verbatim
6358 #: ../fish/guestfish-actions.pod:845
6359 #, no-wrap
6360 msgid ""
6361 " dmesg\n"
6362 "\n"
6363 msgstr ""
6364 " dmesg\n"
6365 "\n"
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6369 msgid ""
6370 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6371 "This is sometimes useful for extended debugging of problems."
6372 msgstr ""
6373
6374 #. type: textblock
6375 #: ../fish/guestfish-actions.pod:851
6376 msgid ""
6377 "Another way to get the same information is to enable verbose messages with "
6378 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6379 "before running the program."
6380 msgstr ""
6381
6382 #. type: =head2
6383 #: ../fish/guestfish-actions.pod:856
6384 msgid "download"
6385 msgstr "download"
6386
6387 #. type: verbatim
6388 #: ../fish/guestfish-actions.pod:858
6389 #, no-wrap
6390 msgid ""
6391 " download remotefilename (filename|-)\n"
6392 "\n"
6393 msgstr ""
6394
6395 #. type: textblock
6396 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6397 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6398 msgid ""
6399 "Download file C<remotefilename> and save it as C<filename> on the local "
6400 "machine."
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4830
6405 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7259
6406 msgid "C<filename> can also be a named pipe."
6407 msgstr ""
6408
6409 #. type: textblock
6410 #: ../fish/guestfish-actions.pod:865
6411 msgid "See also L</upload>, L</cat>."
6412 msgstr ""
6413
6414 #. type: =head2
6415 #: ../fish/guestfish-actions.pod:869
6416 msgid "download-offset"
6417 msgstr "download-offset"
6418
6419 #. type: verbatim
6420 #: ../fish/guestfish-actions.pod:871
6421 #, no-wrap
6422 msgid ""
6423 " download-offset remotefilename (filename|-) offset size\n"
6424 "\n"
6425 msgstr ""
6426
6427 #. type: textblock
6428 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6429 msgid ""
6430 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6431 "region must be within the file or device)."
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../fish/guestfish-actions.pod:879
6436 msgid ""
6437 "Note that there is no limit on the amount of data that can be downloaded "
6438 "with this call, unlike with L</pread>, and this call always reads the full "
6439 "amount unless an error occurs."
6440 msgstr ""
6441
6442 #. type: textblock
6443 #: ../fish/guestfish-actions.pod:884
6444 msgid "See also L</download>, L</pread>."
6445 msgstr ""
6446
6447 #. type: =head2
6448 #: ../fish/guestfish-actions.pod:888
6449 msgid "drop-caches"
6450 msgstr ""
6451
6452 #. type: verbatim
6453 #: ../fish/guestfish-actions.pod:890
6454 #, no-wrap
6455 msgid ""
6456 " drop-caches whattodrop\n"
6457 "\n"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6462 msgid ""
6463 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6464 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6465 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6470 msgid "Setting C<whattodrop> to 3 should drop everything."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6475 msgid ""
6476 "This automatically calls L<sync(2)> before the operation, so that the "
6477 "maximum guest memory is freed."
6478 msgstr ""
6479
6480 #. type: =head2
6481 #: ../fish/guestfish-actions.pod:902
6482 msgid "du"
6483 msgstr "du"
6484
6485 #. type: verbatim
6486 #: ../fish/guestfish-actions.pod:904
6487 #, no-wrap
6488 msgid ""
6489 " du path\n"
6490 "\n"
6491 msgstr ""
6492 " du шлях\n"
6493 "\n"
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6497 msgid ""
6498 "This command runs the C<du -s> command to estimate file space usage for "
6499 "C<path>."
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6504 msgid ""
6505 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6506 "estimate includes the contents of the directory and all subdirectories "
6507 "(recursively)."
6508 msgstr ""
6509
6510 #. type: textblock
6511 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6512 msgid ""
6513 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6514 msgstr ""
6515
6516 #. type: =head2
6517 #: ../fish/guestfish-actions.pod:916
6518 msgid "e2fsck-f"
6519 msgstr "e2fsck-f"
6520
6521 #. type: verbatim
6522 #: ../fish/guestfish-actions.pod:918
6523 #, no-wrap
6524 msgid ""
6525 " e2fsck-f device\n"
6526 "\n"
6527 msgstr ""
6528
6529 #. type: textblock
6530 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6531 msgid ""
6532 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6533 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6534 "clean (I<-f>)."
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:924
6539 msgid ""
6540 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6541 "should use L</fsck>."
6542 msgstr ""
6543
6544 #. type: =head2
6545 #: ../fish/guestfish-actions.pod:927
6546 msgid "echo-daemon"
6547 msgstr ""
6548
6549 #. type: verbatim
6550 #: ../fish/guestfish-actions.pod:929
6551 #, no-wrap
6552 msgid ""
6553 " echo-daemon 'words ...'\n"
6554 "\n"
6555 msgstr ""
6556
6557 #. type: textblock
6558 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6559 msgid ""
6560 "This command concatenates the list of C<words> passed with single spaces "
6561 "between them and returns the resulting string."
6562 msgstr ""
6563
6564 #. type: textblock
6565 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6566 msgid "You can use this command to test the connection through to the daemon."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:936
6571 msgid "See also L</ping-daemon>."
6572 msgstr ""
6573
6574 #. type: =head2
6575 #: ../fish/guestfish-actions.pod:938
6576 msgid "egrep"
6577 msgstr "egrep"
6578
6579 #. type: verbatim
6580 #: ../fish/guestfish-actions.pod:940
6581 #, no-wrap
6582 msgid ""
6583 " egrep regex path\n"
6584 "\n"
6585 msgstr ""
6586
6587 #. type: textblock
6588 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6589 msgid ""
6590 "This calls the external C<egrep> program and returns the matching lines."
6591 msgstr ""
6592
6593 #. type: =head2
6594 #: ../fish/guestfish-actions.pod:948
6595 msgid "egrepi"
6596 msgstr "egrepi"
6597
6598 #. type: verbatim
6599 #: ../fish/guestfish-actions.pod:950
6600 #, no-wrap
6601 msgid ""
6602 " egrepi regex path\n"
6603 "\n"
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6608 msgid ""
6609 "This calls the external C<egrep -i> program and returns the matching lines."
6610 msgstr ""
6611
6612 #. type: =head2
6613 #: ../fish/guestfish-actions.pod:958
6614 msgid "equal"
6615 msgstr "equal"
6616
6617 #. type: verbatim
6618 #: ../fish/guestfish-actions.pod:960
6619 #, no-wrap
6620 msgid ""
6621 " equal file1 file2\n"
6622 "\n"
6623 msgstr ""
6624 " equal файл1 файл2\n"
6625 "\n"
6626
6627 #. type: textblock
6628 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6629 msgid ""
6630 "This compares the two files C<file1> and C<file2> and returns true if their "
6631 "content is exactly equal, or false otherwise."
6632 msgstr ""
6633
6634 #. type: textblock
6635 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6636 msgid "The external L<cmp(1)> program is used for the comparison."
6637 msgstr ""
6638
6639 #. type: =head2
6640 #: ../fish/guestfish-actions.pod:967
6641 msgid "exists"
6642 msgstr "exists"
6643
6644 #. type: verbatim
6645 #: ../fish/guestfish-actions.pod:969
6646 #, no-wrap
6647 msgid ""
6648 " exists path\n"
6649 "\n"
6650 msgstr ""
6651 " exists шлях\n"
6652 "\n"
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6656 msgid ""
6657 "This returns C<true> if and only if there is a file, directory (or anything) "
6658 "with the given C<path> name."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:974
6663 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6664 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:976
6668 msgid "fallocate"
6669 msgstr "fallocate"
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:978
6673 #, no-wrap
6674 msgid ""
6675 " fallocate path len\n"
6676 "\n"
6677 msgstr ""
6678 " fallocate шлях довжина\n"
6679 "\n"
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6683 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6684 msgid ""
6685 "This command preallocates a file (containing zero bytes) named C<path> of "
6686 "size C<len> bytes.  If the file exists already, it is overwritten."
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6691 msgid ""
6692 "Do not confuse this with the guestfish-specific C<alloc> command which "
6693 "allocates a file in the host and attaches it as a device."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:988
6698 msgid ""
6699 "This function is deprecated.  In new code, use the L</fallocate64> call "
6700 "instead."
6701 msgstr ""
6702
6703 #. type: =head2
6704 #: ../fish/guestfish-actions.pod:995
6705 msgid "fallocate64"
6706 msgstr "fallocate64"
6707
6708 #. type: verbatim
6709 #: ../fish/guestfish-actions.pod:997
6710 #, no-wrap
6711 msgid ""
6712 " fallocate64 path len\n"
6713 "\n"
6714 msgstr ""
6715 " fallocate64 шлях довжина\n"
6716 "\n"
6717
6718 #. type: textblock
6719 #: ../fish/guestfish-actions.pod:1003
6720 msgid ""
6721 "Note that this call allocates disk blocks for the file.  To create a sparse "
6722 "file use L</truncate-size> instead."
6723 msgstr ""
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:1006
6727 msgid ""
6728 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6729 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6730 "maximum size of files created through that call to 1GB."
6731 msgstr ""
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6735 msgid ""
6736 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6737 "commands which create a file in the host and attach it as a device."
6738 msgstr ""
6739
6740 #. type: =head2
6741 #: ../fish/guestfish-actions.pod:1015
6742 msgid "fgrep"
6743 msgstr "fgrep"
6744
6745 #. type: verbatim
6746 #: ../fish/guestfish-actions.pod:1017
6747 #, no-wrap
6748 msgid ""
6749 " fgrep pattern path\n"
6750 "\n"
6751 msgstr ""
6752 " fgrep шаблон шлях\n"
6753 "\n"
6754
6755 #. type: textblock
6756 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6757 msgid ""
6758 "This calls the external C<fgrep> program and returns the matching lines."
6759 msgstr ""
6760
6761 #. type: =head2
6762 #: ../fish/guestfish-actions.pod:1025
6763 msgid "fgrepi"
6764 msgstr "fgrepi"
6765
6766 #. type: verbatim
6767 #: ../fish/guestfish-actions.pod:1027
6768 #, no-wrap
6769 msgid ""
6770 " fgrepi pattern path\n"
6771 "\n"
6772 msgstr ""
6773 " fgrepi шаблон шлях\n"
6774 "\n"
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6778 msgid ""
6779 "This calls the external C<fgrep -i> program and returns the matching lines."
6780 msgstr ""
6781
6782 #. type: =head2
6783 #: ../fish/guestfish-actions.pod:1035
6784 msgid "file"
6785 msgstr "file"
6786
6787 #. type: verbatim
6788 #: ../fish/guestfish-actions.pod:1037
6789 #, no-wrap
6790 msgid ""
6791 " file path\n"
6792 "\n"
6793 msgstr ""
6794 " file шлях\n"
6795 "\n"
6796
6797 #. type: textblock
6798 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6799 msgid ""
6800 "This call uses the standard L<file(1)> command to determine the type or "
6801 "contents of the file."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6806 msgid ""
6807 "This call will also transparently look inside various types of compressed "
6808 "file."
6809 msgstr ""
6810
6811 #. type: textblock
6812 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6813 msgid ""
6814 "The exact command which runs is C<file -zb path>.  Note in particular that "
6815 "the filename is not prepended to the output (the I<-b> option)."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6820 msgid ""
6821 "The output depends on the output of the underlying L<file(1)> command and it "
6822 "can change in future in ways beyond our control.  In other words, the output "
6823 "is not guaranteed by the ABI."
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:1053
6828 msgid ""
6829 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6830 "(etc), L</is-zero>."
6831 msgstr ""
6832
6833 #. type: =head2
6834 #: ../fish/guestfish-actions.pod:1056
6835 msgid "file-architecture"
6836 msgstr "file-architecture"
6837
6838 #. type: verbatim
6839 #: ../fish/guestfish-actions.pod:1058
6840 #, no-wrap
6841 msgid ""
6842 " file-architecture filename\n"
6843 "\n"
6844 msgstr ""
6845 " file-architecture назва_файла\n"
6846 "\n"
6847
6848 #. type: textblock
6849 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6850 msgid ""
6851 "This detects the architecture of the binary C<filename>, and returns it if "
6852 "known."
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6857 msgid "Currently defined architectures are:"
6858 msgstr ""
6859
6860 #. type: =item
6861 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6862 msgid "\"i386\""
6863 msgstr "\"i386\""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6867 msgid ""
6868 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6869 "irrespective of the precise processor requirements of the binary."
6870 msgstr ""
6871
6872 #. type: =item
6873 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6874 msgid "\"x86_64\""
6875 msgstr "\"x86_64\""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6879 msgid "64 bit x86-64."
6880 msgstr ""
6881
6882 #. type: =item
6883 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6884 msgid "\"sparc\""
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6889 msgid "32 bit SPARC."
6890 msgstr ""
6891
6892 #. type: =item
6893 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6894 msgid "\"sparc64\""
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6899 msgid "64 bit SPARC V9 and above."
6900 msgstr ""
6901
6902 #. type: =item
6903 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6904 msgid "\"ia64\""
6905 msgstr "\"ia64\""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6909 msgid "Intel Itanium."
6910 msgstr "Intel Itanium."
6911
6912 #. type: =item
6913 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6914 msgid "\"ppc\""
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6919 msgid "32 bit Power PC."
6920 msgstr ""
6921
6922 #. type: =item
6923 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6924 msgid "\"ppc64\""
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6929 msgid "64 bit Power PC."
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6934 msgid "Libguestfs may return other architecture strings in future."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6939 msgid "The function works on at least the following types of files:"
6940 msgstr ""
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6944 msgid "many types of Un*x and Linux binary"
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6949 msgid "many types of Un*x and Linux shared library"
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6954 msgid "Windows Win32 and Win64 binaries"
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6959 msgid "Windows Win32 and Win64 DLLs"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6964 msgid "Win32 binaries and DLLs return C<i386>."
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6969 msgid "Win64 binaries and DLLs return C<x86_64>."
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6974 msgid "Linux kernel modules"
6975 msgstr ""
6976
6977 #. type: textblock
6978 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6979 msgid "Linux new-style initrd images"
6980 msgstr ""
6981
6982 #. type: textblock
6983 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6984 msgid "some non-x86 Linux vmlinuz kernels"
6985 msgstr ""
6986
6987 #. type: textblock
6988 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6989 msgid "What it can't do currently:"
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6994 msgid "static libraries (libfoo.a)"
6995 msgstr ""
6996
6997 #. type: textblock
6998 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6999 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7004 msgid "x86 Linux vmlinuz kernels"
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7009 msgid ""
7010 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7011 "compressed code, and are horribly hard to unpack.  If you want to find the "
7012 "architecture of a kernel, use the architecture of the associated initrd or "
7013 "kernel module(s) instead."
7014 msgstr ""
7015
7016 #. type: =head2
7017 #: ../fish/guestfish-actions.pod:1161
7018 msgid "filesize"
7019 msgstr "filesize"
7020
7021 #. type: verbatim
7022 #: ../fish/guestfish-actions.pod:1163
7023 #, no-wrap
7024 msgid ""
7025 " filesize file\n"
7026 "\n"
7027 msgstr ""
7028 " filesize файл\n"
7029 "\n"
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7033 msgid "This command returns the size of C<file> in bytes."
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:1167
7038 msgid ""
7039 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7040 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7041 msgstr ""
7042
7043 #. type: =head2
7044 #: ../fish/guestfish-actions.pod:1171
7045 msgid "fill"
7046 msgstr "fill"
7047
7048 #. type: verbatim
7049 #: ../fish/guestfish-actions.pod:1173
7050 #, no-wrap
7051 msgid ""
7052 " fill c len path\n"
7053 "\n"
7054 msgstr ""
7055
7056 #. type: textblock
7057 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7058 msgid ""
7059 "This command creates a new file called C<path>.  The initial content of the "
7060 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7061 "[0..255]>."
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:1179
7066 msgid ""
7067 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7068 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7069 "L</fill-pattern>."
7070 msgstr ""
7071
7072 #. type: =head2
7073 #: ../fish/guestfish-actions.pod:1184
7074 msgid "fill-pattern"
7075 msgstr "fill-pattern"
7076
7077 #. type: verbatim
7078 #: ../fish/guestfish-actions.pod:1186
7079 #, no-wrap
7080 msgid ""
7081 " fill-pattern pattern len path\n"
7082 "\n"
7083 msgstr ""
7084
7085 #. type: textblock
7086 #: ../fish/guestfish-actions.pod:1188
7087 msgid ""
7088 "This function is like L</fill> except that it creates a new file of length "
7089 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7090 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7091 "bytes."
7092 msgstr ""
7093
7094 #. type: =head2
7095 #: ../fish/guestfish-actions.pod:1193
7096 msgid "find"
7097 msgstr "find"
7098
7099 #. type: verbatim
7100 #: ../fish/guestfish-actions.pod:1195
7101 #, no-wrap
7102 msgid ""
7103 " find directory\n"
7104 "\n"
7105 msgstr ""
7106 " find каталог\n"
7107 "\n"
7108
7109 #. type: textblock
7110 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7111 msgid ""
7112 "This command lists out all files and directories, recursively, starting at "
7113 "C<directory>.  It is essentially equivalent to running the shell command "
7114 "C<find directory -print> but some post-processing happens on the output, "
7115 "described below."
7116 msgstr ""
7117
7118 #. type: textblock
7119 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7120 msgid ""
7121 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7122 "structure was:"
7123 msgstr ""
7124
7125 #. type: verbatim
7126 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7127 #, no-wrap
7128 msgid ""
7129 " /tmp/a\n"
7130 " /tmp/b\n"
7131 " /tmp/c/d\n"
7132 "\n"
7133 msgstr ""
7134
7135 #. type: textblock
7136 #: ../fish/guestfish-actions.pod:1209
7137 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7138 msgstr ""
7139
7140 #. type: verbatim
7141 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7142 #, no-wrap
7143 msgid ""
7144 " a\n"
7145 " b\n"
7146 " c\n"
7147 " c/d\n"
7148 "\n"
7149 msgstr ""
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7153 msgid "If C<directory> is not a directory, then this command returns an error."
7154 msgstr ""
7155
7156 #. type: textblock
7157 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7158 msgid "The returned list is sorted."
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:1222
7163 msgid "See also L</find0>."
7164 msgstr "Див. також L</find0>."
7165
7166 #. type: =head2
7167 #: ../fish/guestfish-actions.pod:1227
7168 msgid "find0"
7169 msgstr "find0"
7170
7171 #. type: verbatim
7172 #: ../fish/guestfish-actions.pod:1229
7173 #, no-wrap
7174 msgid ""
7175 " find0 directory (files|-)\n"
7176 "\n"
7177 msgstr ""
7178 " find0 каталог (файли|-)\n"
7179 "\n"
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7183 msgid ""
7184 "This command lists out all files and directories, recursively, starting at "
7185 "C<directory>, placing the resulting list in the external file called "
7186 "C<files>."
7187 msgstr ""
7188
7189 #. type: textblock
7190 #: ../fish/guestfish-actions.pod:1235
7191 msgid ""
7192 "This command works the same way as L</find> with the following exceptions:"
7193 msgstr ""
7194
7195 #. type: textblock
7196 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7197 msgid "The resulting list is written to an external file."
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7202 msgid ""
7203 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7204 "L<find(1)> option I<-print0>."
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7209 msgid "This command is not limited in the number of names that it can return."
7210 msgstr ""
7211
7212 #. type: textblock
7213 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7214 msgid "The result list is not sorted."
7215 msgstr ""
7216
7217 #. type: =head2
7218 #: ../fish/guestfish-actions.pod:1262
7219 msgid "findfs-label"
7220 msgstr "findfs-label"
7221
7222 #. type: verbatim
7223 #: ../fish/guestfish-actions.pod:1264
7224 #, no-wrap
7225 msgid ""
7226 " findfs-label label\n"
7227 "\n"
7228 msgstr ""
7229 " findfs-label мітка\n"
7230 "\n"
7231
7232 #. type: textblock
7233 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7234 msgid ""
7235 "This command searches the filesystems and returns the one which has the "
7236 "given label.  An error is returned if no such filesystem can be found."
7237 msgstr ""
7238
7239 #. type: textblock
7240 #: ../fish/guestfish-actions.pod:1270
7241 msgid "To find the label of a filesystem, use L</vfs-label>."
7242 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7243
7244 #. type: =head2
7245 #: ../fish/guestfish-actions.pod:1272
7246 msgid "findfs-uuid"
7247 msgstr "findfs-uuid"
7248
7249 #. type: verbatim
7250 #: ../fish/guestfish-actions.pod:1274
7251 #, no-wrap
7252 msgid ""
7253 " findfs-uuid uuid\n"
7254 "\n"
7255 msgstr ""
7256 " findfs-uuid uuid\n"
7257 "\n"
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7261 msgid ""
7262 "This command searches the filesystems and returns the one which has the "
7263 "given UUID.  An error is returned if no such filesystem can be found."
7264 msgstr ""
7265
7266 #. type: textblock
7267 #: ../fish/guestfish-actions.pod:1280
7268 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7269 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7270
7271 #. type: =head2
7272 #: ../fish/guestfish-actions.pod:1282
7273 msgid "fsck"
7274 msgstr "fsck"
7275
7276 #. type: verbatim
7277 #: ../fish/guestfish-actions.pod:1284
7278 #, no-wrap
7279 msgid ""
7280 " fsck fstype device\n"
7281 "\n"
7282 msgstr ""
7283 " fsck тип_файлової_системи пристрій\n"
7284 "\n"
7285
7286 #. type: textblock
7287 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7288 msgid ""
7289 "This runs the filesystem checker (fsck) on C<device> which should have "
7290 "filesystem type C<fstype>."
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7295 msgid ""
7296 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7297 "codes from C<fsck>."
7298 msgstr ""
7299
7300 #. type: textblock
7301 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7302 msgid "Multiple status codes can be summed together."
7303 msgstr ""
7304
7305 #. type: textblock
7306 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7307 msgid ""
7308 "A non-zero return code can mean \"success\", for example if errors have been "
7309 "corrected on the filesystem."
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7314 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7319 msgid ""
7320 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7321 msgstr ""
7322
7323 #. type: =head2
7324 #: ../fish/guestfish-actions.pod:1314
7325 msgid "get-append"
7326 msgstr "get-append"
7327
7328 #. type: verbatim
7329 #: ../fish/guestfish-actions.pod:1316
7330 #, no-wrap
7331 msgid ""
7332 " get-append\n"
7333 "\n"
7334 msgstr ""
7335 " get-append\n"
7336 "\n"
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7340 msgid ""
7341 "Return the additional kernel options which are added to the guest kernel "
7342 "command line."
7343 msgstr ""
7344
7345 #. type: textblock
7346 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7347 msgid "If C<NULL> then no options are added."
7348 msgstr ""
7349
7350 #. type: =head2
7351 #: ../fish/guestfish-actions.pod:1323
7352 msgid "get-attach-method"
7353 msgstr "get-attach-method"
7354
7355 #. type: verbatim
7356 #: ../fish/guestfish-actions.pod:1325
7357 #, no-wrap
7358 msgid ""
7359 " get-attach-method\n"
7360 "\n"
7361 msgstr ""
7362 " get-attach-method\n"
7363 "\n"
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:1327
7367 msgid "Return the current attach method.  See L</set-attach-method>."
7368 msgstr ""
7369
7370 #. type: =head2
7371 #: ../fish/guestfish-actions.pod:1329
7372 msgid "get-autosync"
7373 msgstr "get-autosync"
7374
7375 #. type: verbatim
7376 #: ../fish/guestfish-actions.pod:1331
7377 #, no-wrap
7378 msgid ""
7379 " get-autosync\n"
7380 "\n"
7381 msgstr ""
7382 " get-autosync\n"
7383 "\n"
7384
7385 #. type: textblock
7386 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7387 msgid "Get the autosync flag."
7388 msgstr ""
7389
7390 #. type: =head2
7391 #: ../fish/guestfish-actions.pod:1335
7392 msgid "get-direct"
7393 msgstr "get-direct"
7394
7395 #. type: verbatim
7396 #: ../fish/guestfish-actions.pod:1337
7397 #, no-wrap
7398 msgid ""
7399 " get-direct\n"
7400 "\n"
7401 msgstr ""
7402 " get-direct\n"
7403 "\n"
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7407 msgid "Return the direct appliance mode flag."
7408 msgstr ""
7409
7410 #. type: =head2
7411 #: ../fish/guestfish-actions.pod:1341
7412 msgid "get-e2label"
7413 msgstr "get-e2label"
7414
7415 #. type: verbatim
7416 #: ../fish/guestfish-actions.pod:1343
7417 #, no-wrap
7418 msgid ""
7419 " get-e2label device\n"
7420 "\n"
7421 msgstr ""
7422 " get-e2label пристрій\n"
7423 "\n"
7424
7425 #. type: textblock
7426 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
7427 msgid ""
7428 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7429 msgstr ""
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:1348
7433 msgid ""
7434 "This function is deprecated.  In new code, use the L</vfs_label> call "
7435 "instead."
7436 msgstr ""
7437
7438 #. type: =head2
7439 #: ../fish/guestfish-actions.pod:1355
7440 msgid "get-e2uuid"
7441 msgstr "get-e2uuid"
7442
7443 #. type: verbatim
7444 #: ../fish/guestfish-actions.pod:1357
7445 #, no-wrap
7446 msgid ""
7447 " get-e2uuid device\n"
7448 "\n"
7449 msgstr ""
7450 " get-e2uuid пристрій\n"
7451 "\n"
7452
7453 #. type: textblock
7454 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
7455 msgid ""
7456 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:1362
7461 msgid ""
7462 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
7463 msgstr ""
7464
7465 #. type: =head2
7466 #: ../fish/guestfish-actions.pod:1369
7467 msgid "get-memsize"
7468 msgstr "get-memsize"
7469
7470 #. type: verbatim
7471 #: ../fish/guestfish-actions.pod:1371
7472 #, no-wrap
7473 msgid ""
7474 " get-memsize\n"
7475 "\n"
7476 msgstr ""
7477 " get-memsize\n"
7478 "\n"
7479
7480 #. type: textblock
7481 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7482 msgid ""
7483 "This gets the memory size in megabytes allocated to the qemu subprocess."
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:1376
7488 msgid ""
7489 "If L</set-memsize> was not called on this handle, and if "
7490 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7491 "value for memsize."
7492 msgstr ""
7493
7494 #. type: textblock
7495 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7496 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4292
7497 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7498 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6446
7499 msgid ""
7500 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7501 msgstr ""
7502
7503 #. type: =head2
7504 #: ../fish/guestfish-actions.pod:1383
7505 msgid "get-network"
7506 msgstr "get-network"
7507
7508 #. type: verbatim
7509 #: ../fish/guestfish-actions.pod:1385
7510 #, no-wrap
7511 msgid ""
7512 " get-network\n"
7513 "\n"
7514 msgstr ""
7515 " get-network\n"
7516 "\n"
7517
7518 #. type: textblock
7519 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7520 msgid "This returns the enable network flag."
7521 msgstr ""
7522
7523 #. type: =head2
7524 #: ../fish/guestfish-actions.pod:1389
7525 msgid "get-path"
7526 msgstr "get-path"
7527
7528 #. type: verbatim
7529 #: ../fish/guestfish-actions.pod:1391
7530 #, no-wrap
7531 msgid ""
7532 " get-path\n"
7533 "\n"
7534 msgstr ""
7535 " get-path\n"
7536 "\n"
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7540 msgid "Return the current search path."
7541 msgstr ""
7542
7543 #. type: textblock
7544 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7545 msgid ""
7546 "This is always non-NULL.  If it wasn't set already, then this will return "
7547 "the default path."
7548 msgstr ""
7549
7550 #. type: =head2
7551 #: ../fish/guestfish-actions.pod:1398
7552 msgid "get-pgroup"
7553 msgstr ""
7554
7555 #. type: verbatim
7556 #: ../fish/guestfish-actions.pod:1400
7557 #, no-wrap
7558 msgid ""
7559 " get-pgroup\n"
7560 "\n"
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7565 msgid "This returns the process group flag."
7566 msgstr ""
7567
7568 #. type: =head2
7569 #: ../fish/guestfish-actions.pod:1404
7570 msgid "get-pid"
7571 msgstr "get-pid"
7572
7573 #. type: =head2
7574 #: ../fish/guestfish-actions.pod:1406
7575 msgid "pid"
7576 msgstr ""
7577
7578 #. type: verbatim
7579 #: ../fish/guestfish-actions.pod:1408
7580 #, no-wrap
7581 msgid ""
7582 " get-pid\n"
7583 "\n"
7584 msgstr ""
7585 " get-pid\n"
7586 "\n"
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7590 msgid ""
7591 "Return the process ID of the qemu subprocess.  If there is no qemu "
7592 "subprocess, then this will return an error."
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7597 msgid "This is an internal call used for debugging and testing."
7598 msgstr ""
7599
7600 #. type: =head2
7601 #: ../fish/guestfish-actions.pod:1415
7602 msgid "get-qemu"
7603 msgstr "get-qemu"
7604
7605 #. type: verbatim
7606 #: ../fish/guestfish-actions.pod:1417
7607 #, no-wrap
7608 msgid ""
7609 " get-qemu\n"
7610 "\n"
7611 msgstr ""
7612 " get-qemu\n"
7613 "\n"
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7617 msgid "Return the current qemu binary."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7622 msgid ""
7623 "This is always non-NULL.  If it wasn't set already, then this will return "
7624 "the default qemu binary name."
7625 msgstr ""
7626
7627 #. type: =head2
7628 #: ../fish/guestfish-actions.pod:1424
7629 msgid "get-recovery-proc"
7630 msgstr "get-recovery-proc"
7631
7632 #. type: verbatim
7633 #: ../fish/guestfish-actions.pod:1426
7634 #, no-wrap
7635 msgid ""
7636 " get-recovery-proc\n"
7637 "\n"
7638 msgstr ""
7639 " get-recovery-proc\n"
7640 "\n"
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7644 msgid "Return the recovery process enabled flag."
7645 msgstr ""
7646
7647 #. type: =head2
7648 #: ../fish/guestfish-actions.pod:1430
7649 msgid "get-selinux"
7650 msgstr "get-selinux"
7651
7652 #. type: verbatim
7653 #: ../fish/guestfish-actions.pod:1432
7654 #, no-wrap
7655 msgid ""
7656 " get-selinux\n"
7657 "\n"
7658 msgstr ""
7659 " get-selinux\n"
7660 "\n"
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:1434
7664 msgid ""
7665 "This returns the current setting of the selinux flag which is passed to the "
7666 "appliance at boot time.  See L</set-selinux>."
7667 msgstr ""
7668
7669 #. type: =head2
7670 #: ../fish/guestfish-actions.pod:1440
7671 msgid "get-state"
7672 msgstr "get-state"
7673
7674 #. type: verbatim
7675 #: ../fish/guestfish-actions.pod:1442
7676 #, no-wrap
7677 msgid ""
7678 " get-state\n"
7679 "\n"
7680 msgstr ""
7681 " get-state\n"
7682 "\n"
7683
7684 #. type: textblock
7685 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7686 msgid ""
7687 "This returns the current state as an opaque integer.  This is only useful "
7688 "for printing debug and internal error messages."
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2389
7693 #: ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2445
7694 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:2159
7695 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3490
7696 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3578
7697 msgid "For more information on states, see L<guestfs(3)>."
7698 msgstr ""
7699
7700 #. type: =head2
7701 #: ../fish/guestfish-actions.pod:1449
7702 msgid "get-trace"
7703 msgstr "get-trace"
7704
7705 #. type: verbatim
7706 #: ../fish/guestfish-actions.pod:1451
7707 #, no-wrap
7708 msgid ""
7709 " get-trace\n"
7710 "\n"
7711 msgstr ""
7712 " get-trace\n"
7713 "\n"
7714
7715 #. type: textblock
7716 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7717 msgid "Return the command trace flag."
7718 msgstr ""
7719
7720 #. type: =head2
7721 #: ../fish/guestfish-actions.pod:1455
7722 msgid "get-umask"
7723 msgstr "get-umask"
7724
7725 #. type: verbatim
7726 #: ../fish/guestfish-actions.pod:1457
7727 #, no-wrap
7728 msgid ""
7729 " get-umask\n"
7730 "\n"
7731 msgstr ""
7732 " get-umask\n"
7733 "\n"
7734
7735 #. type: textblock
7736 #: ../fish/guestfish-actions.pod:1459
7737 msgid ""
7738 "Return the current umask.  By default the umask is C<022> unless it has been "
7739 "set by calling L</umask>."
7740 msgstr ""
7741
7742 #. type: =head2
7743 #: ../fish/guestfish-actions.pod:1462
7744 msgid "get-verbose"
7745 msgstr "get-verbose"
7746
7747 #. type: verbatim
7748 #: ../fish/guestfish-actions.pod:1464
7749 #, no-wrap
7750 msgid ""
7751 " get-verbose\n"
7752 "\n"
7753 msgstr ""
7754 " get-verbose\n"
7755 "\n"
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7759 msgid "This returns the verbose messages flag."
7760 msgstr ""
7761
7762 #. type: =head2
7763 #: ../fish/guestfish-actions.pod:1468
7764 msgid "getcon"
7765 msgstr "getcon"
7766
7767 #. type: verbatim
7768 #: ../fish/guestfish-actions.pod:1470
7769 #, no-wrap
7770 msgid ""
7771 " getcon\n"
7772 "\n"
7773 msgstr ""
7774 " getcon\n"
7775 "\n"
7776
7777 #. type: textblock
7778 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7779 msgid "This gets the SELinux security context of the daemon."
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:1474
7784 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7785 msgstr ""
7786
7787 #. type: =head2
7788 #: ../fish/guestfish-actions.pod:1477
7789 msgid "getxattr"
7790 msgstr "getxattr"
7791
7792 #. type: verbatim
7793 #: ../fish/guestfish-actions.pod:1479
7794 #, no-wrap
7795 msgid ""
7796 " getxattr path name\n"
7797 "\n"
7798 msgstr ""
7799 " getxattr шлях назва\n"
7800 "\n"
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:1481
7804 msgid ""
7805 "Get a single extended attribute from file C<path> named C<name>.  This call "
7806 "follows symlinks.  If you want to lookup an extended attribute for the "
7807 "symlink itself, use L</lgetxattr>."
7808 msgstr ""
7809
7810 #. type: textblock
7811 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2534
7812 msgid ""
7813 "Normally it is better to get all extended attributes from a file in one go "
7814 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7815 "buggy and do not provide a way to list out attributes.  For these "
7816 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7817 "attributes you want in advance and call this function."
7818 msgstr ""
7819
7820 #. type: textblock
7821 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2541
7822 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3711
7823 msgid ""
7824 "Extended attribute values are blobs of binary data.  If there is no extended "
7825 "attribute named C<name>, this returns an error."
7826 msgstr ""
7827
7828 #. type: textblock
7829 #: ../fish/guestfish-actions.pod:1495
7830 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7831 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7832
7833 #. type: =head2
7834 #: ../fish/guestfish-actions.pod:1497
7835 msgid "getxattrs"
7836 msgstr "getxattrs"
7837
7838 #. type: verbatim
7839 #: ../fish/guestfish-actions.pod:1499
7840 #, no-wrap
7841 msgid ""
7842 " getxattrs path\n"
7843 "\n"
7844 msgstr ""
7845 " getxattrs шлях\n"
7846 "\n"
7847
7848 #. type: textblock
7849 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7850 msgid ""
7851 "This call lists the extended attributes of the file or directory C<path>."
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7856 msgid ""
7857 "At the system call level, this is a combination of the L<listxattr(2)> and "
7858 "L<getxattr(2)> calls."
7859 msgstr ""
7860
7861 #. type: textblock
7862 #: ../fish/guestfish-actions.pod:1507
7863 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7864 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7865
7866 #. type: =head2
7867 #: ../fish/guestfish-actions.pod:1509
7868 msgid "glob-expand"
7869 msgstr "glob-expand"
7870
7871 #. type: verbatim
7872 #: ../fish/guestfish-actions.pod:1511
7873 #, no-wrap
7874 msgid ""
7875 " glob-expand pattern\n"
7876 "\n"
7877 msgstr ""
7878 " glob-expand шаблон\n"
7879 "\n"
7880
7881 #. type: textblock
7882 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7883 msgid ""
7884 "This command searches for all the pathnames matching C<pattern> according to "
7885 "the wildcard expansion rules used by the shell."
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7890 msgid ""
7891 "If no paths match, then this returns an empty list (note: not an error)."
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7896 msgid ""
7897 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7898 "GLOB_BRACE>.  See that manual page for more details."
7899 msgstr ""
7900
7901 #. type: =head2
7902 #: ../fish/guestfish-actions.pod:1524
7903 msgid "grep"
7904 msgstr "grep"
7905
7906 #. type: verbatim
7907 #: ../fish/guestfish-actions.pod:1526
7908 #, no-wrap
7909 msgid ""
7910 " grep regex path\n"
7911 "\n"
7912 msgstr ""
7913 " grepi формальний_вираз шлях\n"
7914 "\n"
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7918 msgid "This calls the external C<grep> program and returns the matching lines."
7919 msgstr ""
7920
7921 #. type: =head2
7922 #: ../fish/guestfish-actions.pod:1534
7923 msgid "grepi"
7924 msgstr "grepi"
7925
7926 #. type: verbatim
7927 #: ../fish/guestfish-actions.pod:1536
7928 #, no-wrap
7929 msgid ""
7930 " grepi regex path\n"
7931 "\n"
7932 msgstr ""
7933 " grepi формальний_вираз шлях\n"
7934 "\n"
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7938 msgid ""
7939 "This calls the external C<grep -i> program and returns the matching lines."
7940 msgstr ""
7941
7942 #. type: =head2
7943 #: ../fish/guestfish-actions.pod:1544
7944 msgid "grub-install"
7945 msgstr "grub-install"
7946
7947 #. type: verbatim
7948 #: ../fish/guestfish-actions.pod:1546
7949 #, no-wrap
7950 msgid ""
7951 " grub-install root device\n"
7952 "\n"
7953 msgstr ""
7954 " grub-install кореневий пристрій\n"
7955 "\n"
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7959 msgid ""
7960 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7961 "with the root directory being C<root>."
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
7966 msgid ""
7967 "There is currently no way in the API to install grub2, which is used by most "
7968 "modern Linux guests.  It is possible to run the grub2 command from the "
7969 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
7974 msgid ""
7975 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7976 "compatible with itself, so this only works in rather narrow circumstances.  "
7977 "Careful testing with each guest version is advisable."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
7982 msgid ""
7983 "If grub-install reports the error \"No suitable drive was found in the "
7984 "generated device map.\" it may be that you need to create a C</boot/grub/"
7985 "device.map> file first that contains the mapping between grub device names "
7986 "and Linux device names.  It is usually sufficient to create a file "
7987 "containing:"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
7992 #, no-wrap
7993 msgid ""
7994 " (hd0) /dev/vda\n"
7995 "\n"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
8000 msgid "replacing C</dev/vda> with the name of the installation device."
8001 msgstr ""
8002
8003 #. type: =head2
8004 #: ../fish/guestfish-actions.pod:1584
8005 msgid "head"
8006 msgstr "head"
8007
8008 #. type: verbatim
8009 #: ../fish/guestfish-actions.pod:1586
8010 #, no-wrap
8011 msgid ""
8012 " head path\n"
8013 "\n"
8014 msgstr ""
8015 " head шлях\n"
8016 "\n"
8017
8018 #. type: textblock
8019 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
8020 msgid ""
8021 "This command returns up to the first 10 lines of a file as a list of strings."
8022 msgstr ""
8023
8024 #. type: =head2
8025 #: ../fish/guestfish-actions.pod:1594
8026 msgid "head-n"
8027 msgstr "head-n"
8028
8029 #. type: verbatim
8030 #: ../fish/guestfish-actions.pod:1596
8031 #, no-wrap
8032 msgid ""
8033 " head-n nrlines path\n"
8034 "\n"
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
8039 msgid ""
8040 "If the parameter C<nrlines> is a positive number, this returns the first "
8041 "C<nrlines> lines of the file C<path>."
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
8046 msgid ""
8047 "If the parameter C<nrlines> is a negative number, this returns lines from "
8048 "the file C<path>, excluding the last C<nrlines> lines."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4670
8053 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7018
8054 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8055 msgstr ""
8056
8057 #. type: =head2
8058 #: ../fish/guestfish-actions.pod:1609
8059 msgid "hexdump"
8060 msgstr "hexdump"
8061
8062 #. type: verbatim
8063 #: ../fish/guestfish-actions.pod:1611
8064 #, no-wrap
8065 msgid ""
8066 " hexdump path\n"
8067 "\n"
8068 msgstr ""
8069 " hexdump шлях\n"
8070 "\n"
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
8074 msgid ""
8075 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8076 "readable, canonical hex dump of the file."
8077 msgstr ""
8078
8079 #. type: =head2
8080 #: ../fish/guestfish-actions.pod:1619
8081 msgid "initrd-cat"
8082 msgstr "initrd-cat"
8083
8084 #. type: verbatim
8085 #: ../fish/guestfish-actions.pod:1621
8086 #, no-wrap
8087 msgid ""
8088 " initrd-cat initrdpath filename\n"
8089 "\n"
8090 msgstr ""
8091 " initrd-cat шлях_initrd назва_файла\n"
8092 "\n"
8093
8094 #. type: textblock
8095 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
8096 msgid ""
8097 "This command unpacks the file C<filename> from the initrd file called "
8098 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8099 "character."
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
8104 msgid ""
8105 "For example, in guestfish you could use the following command to examine the "
8106 "boot script (usually called C</init>)  contained in a Linux initrd or "
8107 "initramfs image:"
8108 msgstr ""
8109
8110 #. type: verbatim
8111 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
8112 #, no-wrap
8113 msgid ""
8114 " initrd-cat /boot/initrd-<version>.img init\n"
8115 "\n"
8116 msgstr ""
8117
8118 #. type: textblock
8119 #: ../fish/guestfish-actions.pod:1633
8120 msgid "See also L</initrd-list>."
8121 msgstr "Див. також L</initrd-list>."
8122
8123 #. type: =head2
8124 #: ../fish/guestfish-actions.pod:1638
8125 msgid "initrd-list"
8126 msgstr "initrd-list"
8127
8128 #. type: verbatim
8129 #: ../fish/guestfish-actions.pod:1640
8130 #, no-wrap
8131 msgid ""
8132 " initrd-list path\n"
8133 "\n"
8134 msgstr ""
8135 " initrd-list шлях\n"
8136 "\n"
8137
8138 #. type: textblock
8139 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
8140 msgid "This command lists out files contained in an initrd."
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
8145 msgid ""
8146 "The files are listed without any initial C</> character.  The files are "
8147 "listed in the order they appear (not necessarily alphabetical).  Directory "
8148 "names are listed as separate items."
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
8153 msgid ""
8154 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8155 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8156 "files)."
8157 msgstr ""
8158
8159 #. type: =head2
8160 #: ../fish/guestfish-actions.pod:1652
8161 msgid "inotify-add-watch"
8162 msgstr "inotify-add-watch"
8163
8164 #. type: verbatim
8165 #: ../fish/guestfish-actions.pod:1654
8166 #, no-wrap
8167 msgid ""
8168 " inotify-add-watch path mask\n"
8169 "\n"
8170 msgstr ""
8171 " inotify-add-watch шлях маска\n"
8172 "\n"
8173
8174 #. type: textblock
8175 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
8176 msgid "Watch C<path> for the events listed in C<mask>."
8177 msgstr ""
8178
8179 #. type: textblock
8180 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
8181 msgid ""
8182 "Note that if C<path> is a directory then events within that directory are "
8183 "watched, but this does I<not> happen recursively (in subdirectories)."
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
8188 msgid ""
8189 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8190 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1666
8195 msgid "inotify-close"
8196 msgstr "inotify-close"
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1668
8200 #, no-wrap
8201 msgid ""
8202 " inotify-close\n"
8203 "\n"
8204 msgstr ""
8205 " inotify-close\n"
8206 "\n"
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
8210 msgid ""
8211 "This closes the inotify handle which was previously opened by inotify_init.  "
8212 "It removes all watches, throws away any pending events, and deallocates all "
8213 "resources."
8214 msgstr ""
8215
8216 #. type: =head2
8217 #: ../fish/guestfish-actions.pod:1674
8218 msgid "inotify-files"
8219 msgstr "inotify-files"
8220
8221 #. type: verbatim
8222 #: ../fish/guestfish-actions.pod:1676
8223 #, no-wrap
8224 msgid ""
8225 " inotify-files\n"
8226 "\n"
8227 msgstr ""
8228 " inotify-files\n"
8229 "\n"
8230
8231 #. type: textblock
8232 #: ../fish/guestfish-actions.pod:1678
8233 msgid ""
8234 "This function is a helpful wrapper around L</inotify-read> which just "
8235 "returns a list of pathnames of objects that were touched.  The returned "
8236 "pathnames are sorted and deduplicated."
8237 msgstr ""
8238
8239 #. type: =head2
8240 #: ../fish/guestfish-actions.pod:1682
8241 msgid "inotify-init"
8242 msgstr "inotify-init"
8243
8244 #. type: verbatim
8245 #: ../fish/guestfish-actions.pod:1684
8246 #, no-wrap
8247 msgid ""
8248 " inotify-init maxevents\n"
8249 "\n"
8250 msgstr ""
8251
8252 #. type: textblock
8253 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
8254 msgid ""
8255 "This command creates a new inotify handle.  The inotify subsystem can be "
8256 "used to notify events which happen to objects in the guest filesystem."
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1690
8261 msgid ""
8262 "C<maxevents> is the maximum number of events which will be queued up between "
8263 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8264 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8265 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8266 "but records the fact that it threw them away by setting a flag "
8267 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8268 msgstr ""
8269
8270 #. type: textblock
8271 #: ../fish/guestfish-actions.pod:1700
8272 msgid ""
8273 "Before any events are generated, you have to add some watches to the "
8274 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8275 "L</inotify-watch-all>."
8276 msgstr ""
8277
8278 #. type: textblock
8279 #: ../fish/guestfish-actions.pod:1706
8280 msgid ""
8281 "Queued up events should be read periodically by calling L</inotify-read> (or "
8282 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8283 "If you don't read the events out often enough then you risk the internal "
8284 "queue overflowing."
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1713
8289 msgid ""
8290 "The handle should be closed after use by calling L</inotify-close>.  This "
8291 "also removes any watches automatically."
8292 msgstr ""
8293
8294 #. type: textblock
8295 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
8296 msgid ""
8297 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8298 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8299 "that there is one global inotify handle per libguestfs instance."
8300 msgstr ""
8301
8302 #. type: =head2
8303 #: ../fish/guestfish-actions.pod:1722
8304 msgid "inotify-read"
8305 msgstr "inotify-read"
8306
8307 #. type: verbatim
8308 #: ../fish/guestfish-actions.pod:1724
8309 #, no-wrap
8310 msgid ""
8311 " inotify-read\n"
8312 "\n"
8313 msgstr ""
8314 " inotify-read\n"
8315 "\n"
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
8319 msgid ""
8320 "Return the complete queue of events that have happened since the previous "
8321 "read call."
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
8326 msgid "If no events have happened, this returns an empty list."
8327 msgstr ""
8328
8329 #. type: textblock
8330 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
8331 msgid ""
8332 "I<Note>: In order to make sure that all events have been read, you must call "
8333 "this function repeatedly until it returns an empty list.  The reason is that "
8334 "the call will read events up to the maximum appliance-to-host message size "
8335 "and leave remaining events in the queue."
8336 msgstr ""
8337
8338 #. type: =head2
8339 #: ../fish/guestfish-actions.pod:1737
8340 msgid "inotify-rm-watch"
8341 msgstr "inotify-rm-watch"
8342
8343 #. type: verbatim
8344 #: ../fish/guestfish-actions.pod:1739
8345 #, no-wrap
8346 msgid ""
8347 " inotify-rm-watch wd\n"
8348 "\n"
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:1741
8353 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8354 msgstr ""
8355
8356 #. type: =head2
8357 #: ../fish/guestfish-actions.pod:1744
8358 msgid "inspect-get-arch"
8359 msgstr "inspect-get-arch"
8360
8361 #. type: verbatim
8362 #: ../fish/guestfish-actions.pod:1746
8363 #, no-wrap
8364 msgid ""
8365 " inspect-get-arch root\n"
8366 "\n"
8367 msgstr ""
8368 " inspect-get-arch корінь\n"
8369 "\n"
8370
8371 #. type: textblock
8372 #: ../fish/guestfish-actions.pod:1748
8373 msgid ""
8374 "This returns the architecture of the inspected operating system.  The "
8375 "possible return values are listed under L</file-architecture>."
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
8380 msgid ""
8381 "If the architecture could not be determined, then the string C<unknown> is "
8382 "returned."
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1838
8387 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1929
8388 #: ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2074
8389 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2109
8390 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2181
8391 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2207
8392 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2227
8393 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2335
8394 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:2625
8395 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2819
8396 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2969
8397 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3080
8398 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3154
8399 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
8400 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3251
8401 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3285
8402 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3428
8403 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8404 msgstr ""
8405
8406 #. type: =head2
8407 #: ../fish/guestfish-actions.pod:1757
8408 msgid "inspect-get-distro"
8409 msgstr "inspect-get-distro"
8410
8411 #. type: verbatim
8412 #: ../fish/guestfish-actions.pod:1759
8413 #, no-wrap
8414 msgid ""
8415 " inspect-get-distro root\n"
8416 "\n"
8417 msgstr ""
8418 " inspect-get-distro корінь\n"
8419 "\n"
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8423 msgid ""
8424 "This returns the distro (distribution) of the inspected operating system."
8425 msgstr ""
8426
8427 #. type: textblock
8428 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8429 msgid "Currently defined distros are:"
8430 msgstr ""
8431
8432 #. type: =item
8433 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8434 msgid "\"archlinux\""
8435 msgstr "\"archlinux\""
8436
8437 #. type: textblock
8438 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8439 msgid "Arch Linux."
8440 msgstr "Arch Linux."
8441
8442 #. type: =item
8443 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8444 msgid "\"centos\""
8445 msgstr ""
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8449 msgid "CentOS."
8450 msgstr ""
8451
8452 #. type: =item
8453 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8454 msgid "\"debian\""
8455 msgstr "\"debian\""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8459 msgid "Debian."
8460 msgstr "Debian."
8461
8462 #. type: =item
8463 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8464 msgid "\"fedora\""
8465 msgstr "\"fedora\""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8469 msgid "Fedora."
8470 msgstr "Fedora."
8471
8472 #. type: =item
8473 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8474 msgid "\"gentoo\""
8475 msgstr "\"gentoo\""
8476
8477 #. type: textblock
8478 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8479 msgid "Gentoo."
8480 msgstr "Gentoo."
8481
8482 #. type: =item
8483 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8484 msgid "\"linuxmint\""
8485 msgstr "\"linuxmint\""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8489 msgid "Linux Mint."
8490 msgstr "Linux Mint."
8491
8492 #. type: =item
8493 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8494 msgid "\"mandriva\""
8495 msgstr "\"mandriva\""
8496
8497 #. type: textblock
8498 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8499 msgid "Mandriva."
8500 msgstr "Mandriva."
8501
8502 #. type: =item
8503 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8504 msgid "\"meego\""
8505 msgstr "\"meego\""
8506
8507 #. type: textblock
8508 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8509 msgid "MeeGo."
8510 msgstr "MeeGo."
8511
8512 #. type: =item
8513 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8514 msgid "\"pardus\""
8515 msgstr "\"pardus\""
8516
8517 #. type: textblock
8518 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8519 msgid "Pardus."
8520 msgstr "Pardus."
8521
8522 #. type: =item
8523 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8524 msgid "\"redhat-based\""
8525 msgstr "\"redhat-based\""
8526
8527 #. type: textblock
8528 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8529 msgid "Some Red Hat-derived distro."
8530 msgstr "Дистрибутив, що походить від Red Hat."
8531
8532 #. type: =item
8533 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8534 msgid "\"rhel\""
8535 msgstr "\"rhel\""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8539 msgid "Red Hat Enterprise Linux."
8540 msgstr ""
8541
8542 #. type: =item
8543 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8544 msgid "\"scientificlinux\""
8545 msgstr ""
8546
8547 #. type: textblock
8548 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8549 msgid "Scientific Linux."
8550 msgstr ""
8551
8552 #. type: =item
8553 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8554 msgid "\"slackware\""
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8559 msgid "Slackware."
8560 msgstr ""
8561
8562 #. type: =item
8563 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8564 msgid "\"ubuntu\""
8565 msgstr "\"ubuntu\""
8566
8567 #. type: textblock
8568 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8569 msgid "Ubuntu."
8570 msgstr "Ubuntu."
8571
8572 #. type: =item
8573 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1908
8574 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:2701
8575 #: ../src/guestfs-actions.pod:2810 ../src/guestfs-actions.pod:3185
8576 msgid "\"unknown\""
8577 msgstr "\"unknown\""
8578
8579 #. type: textblock
8580 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8581 msgid "The distro could not be determined."
8582 msgstr "Дистрибутив, тип якого не вдалося визначити."
8583
8584 #. type: =item
8585 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:2164
8586 #: ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:3177
8587 msgid "\"windows\""
8588 msgstr "\"windows\""
8589
8590 #. type: textblock
8591 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8592 msgid ""
8593 "Windows does not have distributions.  This string is returned if the OS type "
8594 "is Windows."
8595 msgstr ""
8596
8597 #. type: textblock
8598 #: ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1914
8599 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:2712
8600 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:3191
8601 msgid ""
8602 "Future versions of libguestfs may return other strings here.  The caller "
8603 "should be prepared to handle any string."
8604 msgstr ""
8605
8606 #. type: =head2
8607 #: ../fish/guestfish-actions.pod:1840
8608 msgid "inspect-get-drive-mappings"
8609 msgstr ""
8610
8611 #. type: verbatim
8612 #: ../fish/guestfish-actions.pod:1842
8613 #, no-wrap
8614 msgid ""
8615 " inspect-get-drive-mappings root\n"
8616 "\n"
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8621 msgid ""
8622 "This call is useful for Windows which uses a primitive system of assigning "
8623 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8624 "Windows Registry to find out how disks/partitions are mapped to drive "
8625 "letters, and returns a hash table as in the example below:"
8626 msgstr ""
8627
8628 #. type: verbatim
8629 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2734
8630 #, no-wrap
8631 msgid ""
8632 " C      =>     /dev/vda2\n"
8633 " E      =>     /dev/vdb1\n"
8634 " F      =>     /dev/vdc1\n"
8635 "\n"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8640 msgid ""
8641 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8642 "and just contains the drive letter, without the customary colon separator "
8643 "character."
8644 msgstr ""
8645
8646 #. type: textblock
8647 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8648 msgid ""
8649 "In future we may support other operating systems that also used drive "
8650 "letters, but the keys for those might not be case insensitive and might be "
8651 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8652 "C<h1> etc."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2747
8657 msgid ""
8658 "For Windows guests, currently only hard drive mappings are returned.  "
8659 "Removable disks (eg. DVD-ROMs) are ignored."
8660 msgstr ""
8661
8662 #. type: textblock
8663 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2750
8664 msgid ""
8665 "For guests that do not use drive mappings, or if the drive mappings could "
8666 "not be determined, this returns an empty hash table."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1869
8671 msgid ""
8672 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8673 "get-mountpoints>, L</inspect-get-filesystems>."
8674 msgstr ""
8675
8676 #. type: =head2
8677 #: ../fish/guestfish-actions.pod:1873
8678 msgid "inspect-get-filesystems"
8679 msgstr "inspect-get-filesystems"
8680
8681 #. type: verbatim
8682 #: ../fish/guestfish-actions.pod:1875
8683 #, no-wrap
8684 msgid ""
8685 " inspect-get-filesystems root\n"
8686 "\n"
8687 msgstr ""
8688 " inspect-get-filesystems корінь\n"
8689 "\n"
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2771
8693 msgid ""
8694 "This returns a list of all the filesystems that we think are associated with "
8695 "this operating system.  This includes the root filesystem, other ordinary "
8696 "filesystems, and non-mounted devices like swap partitions."
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:2776
8701 msgid ""
8702 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8703 "to be shared between operating systems."
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1885
8708 msgid ""
8709 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8710 "get-mountpoints>."
8711 msgstr ""
8712
8713 #. type: =head2
8714 #: ../fish/guestfish-actions.pod:1888
8715 msgid "inspect-get-format"
8716 msgstr "inspect-get-format"
8717
8718 #. type: verbatim
8719 #: ../fish/guestfish-actions.pod:1890
8720 #, no-wrap
8721 msgid ""
8722 " inspect-get-format root\n"
8723 "\n"
8724 msgstr ""
8725 " inspect-get-format корінь\n"
8726 "\n"
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:2794
8730 msgid ""
8731 "This returns the format of the inspected operating system.  You can use it "
8732 "to detect install images, live CDs and similar."
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2797
8737 msgid "Currently defined formats are:"
8738 msgstr ""
8739
8740 #. type: =item
8741 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8742 msgid "\"installed\""
8743 msgstr "\"installed\""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2803
8747 msgid "This is an installed operating system."
8748 msgstr "Це встановлена операційна система."
8749
8750 #. type: =item
8751 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
8752 msgid "\"installer\""
8753 msgstr ""
8754
8755 #. type: textblock
8756 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
8757 msgid ""
8758 "The disk image being inspected is not an installed operating system, but a "
8759 "I<bootable> install disk, live CD, or similar."
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:2812
8764 msgid "The format of this disk image is not known."
8765 msgstr ""
8766
8767 #. type: =head2
8768 #: ../fish/guestfish-actions.pod:1919
8769 msgid "inspect-get-hostname"
8770 msgstr "inspect-get-hostname"
8771
8772 #. type: verbatim
8773 #: ../fish/guestfish-actions.pod:1921
8774 #, no-wrap
8775 msgid ""
8776 " inspect-get-hostname root\n"
8777 "\n"
8778 msgstr ""
8779 " inspect-get-hostname корінь\n"
8780 "\n"
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:2832
8784 msgid ""
8785 "This function returns the hostname of the operating system as found by "
8786 "inspection of the guest's configuration files."
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2835
8791 msgid ""
8792 "If the hostname could not be determined, then the string C<unknown> is "
8793 "returned."
8794 msgstr ""
8795
8796 #. type: =head2
8797 #: ../fish/guestfish-actions.pod:1931
8798 msgid "inspect-get-icon"
8799 msgstr ""
8800
8801 #. type: verbatim
8802 #: ../fish/guestfish-actions.pod:1933
8803 #, no-wrap
8804 msgid ""
8805 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
8806 "\n"
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8811 msgid ""
8812 "This function returns an icon corresponding to the inspected operating "
8813 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8814 "to PNG if necessary)."
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
8819 msgid ""
8820 "If it was not possible to get an icon this function returns a zero-length "
8821 "(non-NULL) buffer.  I<Callers must check for this case>."
8822 msgstr ""
8823
8824 #. type: textblock
8825 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:2868
8826 msgid ""
8827 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8828 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8829 "this file will be returned.  You can disable favicons by passing the "
8830 "optional C<favicon> boolean as false (default is true)."
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2874
8835 msgid ""
8836 "If finding the favicon fails, then we look in other places in the guest for "
8837 "a suitable icon."
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:2877
8842 msgid ""
8843 "If the optional C<highquality> boolean is true then only high quality icons "
8844 "are returned, which means only icons of high resolution with an alpha "
8845 "channel.  The default (false) is to return any icon we can, even if it is of "
8846 "substandard quality."
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:2888
8851 msgid ""
8852 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8853 "before you call this, since it needs to read information from the guest "
8854 "filesystem during the call."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8859 msgid ""
8860 "B<Security:> The icon data comes from the untrusted guest, and should be "
8861 "treated with caution.  PNG files have been known to contain exploits.  "
8862 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8863 "trying to process or display the icon."
8864 msgstr ""
8865
8866 #. type: textblock
8867 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2902
8868 msgid ""
8869 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8870 "tries to return the largest, highest quality icon available.  The "
8871 "application must scale the icon to the required size."
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:2909
8876 msgid ""
8877 "Extracting icons from Windows guests requires the external C<wrestool> "
8878 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8879 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8880 "installed separately."
8881 msgstr ""
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:2916
8885 msgid ""
8886 "Operating system icons are usually trademarks.  Seek legal advice before "
8887 "using trademarks in applications."
8888 msgstr ""
8889
8890 #. type: =head2
8891 #: ../fish/guestfish-actions.pod:1997
8892 msgid "inspect-get-major-version"
8893 msgstr "inspect-get-major-version"
8894
8895 #. type: verbatim
8896 #: ../fish/guestfish-actions.pod:1999
8897 #, no-wrap
8898 msgid ""
8899 " inspect-get-major-version root\n"
8900 "\n"
8901 msgstr ""
8902 " inspect-get-major-version корінь\n"
8903 "\n"
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:2957
8907 msgid ""
8908 "This returns the major version number of the inspected operating system."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2960
8913 msgid ""
8914 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8915 "popular public names used by the operating system.  Notably the operating "
8916 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8917 "1).  You can find out the real versions corresponding to releases of Windows "
8918 "by consulting Wikipedia or MSDN."
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2022
8923 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2984
8924 msgid "If the version could not be determined, then C<0> is returned."
8925 msgstr ""
8926
8927 #. type: =head2
8928 #: ../fish/guestfish-actions.pod:2015
8929 msgid "inspect-get-minor-version"
8930 msgstr "inspect-get-minor-version"
8931
8932 #. type: verbatim
8933 #: ../fish/guestfish-actions.pod:2017
8934 #, no-wrap
8935 msgid ""
8936 " inspect-get-minor-version root\n"
8937 "\n"
8938 msgstr ""
8939 " inspect-get-minor-version корінь\n"
8940 "\n"
8941
8942 #. type: textblock
8943 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:2981
8944 msgid ""
8945 "This returns the minor version number of the inspected operating system."
8946 msgstr ""
8947
8948 #. type: textblock
8949 #: ../fish/guestfish-actions.pod:2024
8950 msgid ""
8951 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8952 "get-major-version>."
8953 msgstr ""
8954
8955 #. type: =head2
8956 #: ../fish/guestfish-actions.pod:2027
8957 msgid "inspect-get-mountpoints"
8958 msgstr "inspect-get-mountpoints"
8959
8960 #. type: verbatim
8961 #: ../fish/guestfish-actions.pod:2029
8962 #, no-wrap
8963 msgid ""
8964 " inspect-get-mountpoints root\n"
8965 "\n"
8966 msgstr ""
8967 " inspect-get-mountpoints корінь\n"
8968 "\n"
8969
8970 #. type: textblock
8971 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:2999
8972 msgid ""
8973 "This returns a hash of where we think the filesystems associated with this "
8974 "operating system should be mounted.  Callers should note that this is at "
8975 "best an educated guess made by reading configuration files such as C</etc/"
8976 "fstab>.  I<In particular note> that this may return filesystems which are "
8977 "non-existent or not mountable and callers should be prepared to handle or "
8978 "ignore failures if they try to mount them."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3008
8983 msgid ""
8984 "Each element in the returned hashtable has a key which is the path of the "
8985 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8986 "mounted there (eg. C</dev/sda1>)."
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3013
8991 msgid ""
8992 "Non-mounted devices such as swap devices are I<not> returned in this list."
8993 msgstr ""
8994
8995 #. type: textblock
8996 #: ../fish/guestfish-actions.pod:2048
8997 msgid ""
8998 "For operating systems like Windows which still use drive letters, this call "
8999 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9000 "information about the mapping of drive letters to partitions, see L</inspect-"
9001 "get-drive-mappings>."
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../fish/guestfish-actions.pod:2054
9006 msgid ""
9007 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9008 "get-filesystems>."
9009 msgstr ""
9010
9011 #. type: =head2
9012 #: ../fish/guestfish-actions.pod:2057
9013 msgid "inspect-get-package-format"
9014 msgstr "inspect-get-package-format"
9015
9016 #. type: verbatim
9017 #: ../fish/guestfish-actions.pod:2059
9018 #, no-wrap
9019 msgid ""
9020 " inspect-get-package-format root\n"
9021 "\n"
9022 msgstr ""
9023 " inspect-get-package-format корінь\n"
9024 "\n"
9025
9026 #. type: textblock
9027 #: ../fish/guestfish-actions.pod:2061
9028 msgid ""
9029 "This function and L</inspect-get-package-management> return the package "
9030 "format and package management tool used by the inspected operating system.  "
9031 "For example for Fedora these functions would return C<rpm> (package format) "
9032 "and C<yum> (package management)."
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3045
9037 msgid ""
9038 "This returns the string C<unknown> if we could not determine the package "
9039 "format I<or> if the operating system does not have a real packaging system "
9040 "(eg. Windows)."
9041 msgstr ""
9042
9043 #. type: textblock
9044 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
9045 msgid ""
9046 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9047 "Future versions of libguestfs may return other strings."
9048 msgstr ""
9049
9050 #. type: =head2
9051 #: ../fish/guestfish-actions.pod:2076
9052 msgid "inspect-get-package-management"
9053 msgstr "inspect-get-package-management"
9054
9055 #. type: verbatim
9056 #: ../fish/guestfish-actions.pod:2078
9057 #, no-wrap
9058 msgid ""
9059 " inspect-get-package-management root\n"
9060 "\n"
9061 msgstr ""
9062 " inspect-get-package-management корінь\n"
9063 "\n"
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:2080
9067 msgid ""
9068 "L</inspect-get-package-format> and this function return the package format "
9069 "and package management tool used by the inspected operating system.  For "
9070 "example for Fedora these functions would return C<rpm> (package format) and "
9071 "C<yum> (package management)."
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3071
9076 msgid ""
9077 "This returns the string C<unknown> if we could not determine the package "
9078 "management tool I<or> if the operating system does not have a real packaging "
9079 "system (eg. Windows)."
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
9084 msgid ""
9085 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9086 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9087 "libguestfs may return other strings."
9088 msgstr ""
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:2097
9092 msgid "inspect-get-product-name"
9093 msgstr "inspect-get-product-name"
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:2099
9097 #, no-wrap
9098 msgid ""
9099 " inspect-get-product-name root\n"
9100 "\n"
9101 msgstr ""
9102 " inspect-get-product-name корінь\n"
9103 "\n"
9104
9105 #. type: textblock
9106 #: ../fish/guestfish-actions.pod:2101 ../src/guestfs-actions.pod:3093
9107 msgid ""
9108 "This returns the product name of the inspected operating system.  The "
9109 "product name is generally some freeform string which can be displayed to the "
9110 "user, but should not be parsed by programs."
9111 msgstr ""
9112
9113 #. type: textblock
9114 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3098
9115 msgid ""
9116 "If the product name could not be determined, then the string C<unknown> is "
9117 "returned."
9118 msgstr ""
9119
9120 #. type: =head2
9121 #: ../fish/guestfish-actions.pod:2111
9122 msgid "inspect-get-product-variant"
9123 msgstr ""
9124
9125 #. type: verbatim
9126 #: ../fish/guestfish-actions.pod:2113
9127 #, no-wrap
9128 msgid ""
9129 " inspect-get-product-variant root\n"
9130 "\n"
9131 msgstr ""
9132
9133 #. type: textblock
9134 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3114
9135 msgid "This returns the product variant of the inspected operating system."
9136 msgstr ""
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3117
9140 msgid ""
9141 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9142 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9143 "is usually a string such as C<Client> or C<Server> (other values are "
9144 "possible).  This can be used to distinguish consumer and enterprise versions "
9145 "of Windows that have the same version number (for example, Windows 7 and "
9146 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9147 "the latter is C<Server>)."
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3126
9152 msgid ""
9153 "For enterprise Linux guests, in future we intend this to return the product "
9154 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9155 "implemented at present."
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
9160 msgid ""
9161 "If the product variant could not be determined, then the string C<unknown> "
9162 "is returned."
9163 msgstr ""
9164
9165 #. type: textblock
9166 #: ../fish/guestfish-actions.pod:2134
9167 msgid ""
9168 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9169 "get-product-name>, L</inspect-get-major-version>."
9170 msgstr ""
9171
9172 #. type: =head2
9173 #: ../fish/guestfish-actions.pod:2138
9174 msgid "inspect-get-roots"
9175 msgstr "inspect-get-roots"
9176
9177 #. type: verbatim
9178 #: ../fish/guestfish-actions.pod:2140
9179 #, no-wrap
9180 msgid ""
9181 " inspect-get-roots\n"
9182 "\n"
9183 msgstr ""
9184 " inspect-get-roots\n"
9185 "\n"
9186
9187 #. type: textblock
9188 #: ../fish/guestfish-actions.pod:2142
9189 msgid ""
9190 "This function is a convenient way to get the list of root devices, as "
9191 "returned from a previous call to L</inspect-os>, but without redoing the "
9192 "whole inspection process."
9193 msgstr ""
9194
9195 #. type: textblock
9196 #: ../fish/guestfish-actions.pod:2146
9197 msgid ""
9198 "This returns an empty list if either no root devices were found or the "
9199 "caller has not called L</inspect-os>."
9200 msgstr ""
9201
9202 #. type: =head2
9203 #: ../fish/guestfish-actions.pod:2151
9204 msgid "inspect-get-type"
9205 msgstr "inspect-get-type"
9206
9207 #. type: verbatim
9208 #: ../fish/guestfish-actions.pod:2153
9209 #, no-wrap
9210 msgid ""
9211 " inspect-get-type root\n"
9212 "\n"
9213 msgstr ""
9214 " inspect-get-type корінь\n"
9215 "\n"
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3168
9219 msgid ""
9220 "This returns the type of the inspected operating system.  Currently defined "
9221 "types are:"
9222 msgstr ""
9223
9224 #. type: =item
9225 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3173
9226 msgid "\"linux\""
9227 msgstr "\"linux\""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2162 ../src/guestfs-actions.pod:3175
9231 msgid "Any Linux-based operating system."
9232 msgstr ""
9233
9234 #. type: textblock
9235 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
9236 msgid "Any Microsoft Windows operating system."
9237 msgstr ""
9238
9239 #. type: =item
9240 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3181
9241 msgid "\"freebsd\""
9242 msgstr "\"freebsd\""
9243
9244 #. type: textblock
9245 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
9246 msgid "FreeBSD."
9247 msgstr "FreeBSD."
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
9251 msgid "The operating system type could not be determined."
9252 msgstr ""
9253
9254 #. type: =head2
9255 #: ../fish/guestfish-actions.pod:2183
9256 msgid "inspect-get-windows-current-control-set"
9257 msgstr ""
9258
9259 #. type: verbatim
9260 #: ../fish/guestfish-actions.pod:2185
9261 #, no-wrap
9262 msgid ""
9263 " inspect-get-windows-current-control-set root\n"
9264 "\n"
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:2187 ../src/guestfs-actions.pod:3207
9269 msgid ""
9270 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9271 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3210
9276 msgid ""
9277 "This call assumes that the guest is Windows and that the Registry could be "
9278 "examined by inspection.  If this is not the case then an error is returned."
9279 msgstr ""
9280
9281 #. type: =head2
9282 #: ../fish/guestfish-actions.pod:2196
9283 msgid "inspect-get-windows-systemroot"
9284 msgstr "inspect-get-windows-systemroot"
9285
9286 #. type: verbatim
9287 #: ../fish/guestfish-actions.pod:2198
9288 #, no-wrap
9289 msgid ""
9290 " inspect-get-windows-systemroot root\n"
9291 "\n"
9292 msgstr ""
9293 " inspect-get-windows-systemroot корінь\n"
9294 "\n"
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3227
9298 msgid ""
9299 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9300 "is a directory path such as C</WINDOWS>."
9301 msgstr ""
9302
9303 #. type: textblock
9304 #: ../fish/guestfish-actions.pod:2203 ../src/guestfs-actions.pod:3230
9305 msgid ""
9306 "This call assumes that the guest is Windows and that the systemroot could be "
9307 "determined by inspection.  If this is not the case then an error is returned."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:2209
9312 msgid "inspect-is-live"
9313 msgstr "inspect-is-live"
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:2211
9317 #, no-wrap
9318 msgid ""
9319 " inspect-is-live root\n"
9320 "\n"
9321 msgstr ""
9322 " inspect-is-live корінь\n"
9323 "\n"
9324
9325 #. type: textblock
9326 #: ../fish/guestfish-actions.pod:2213
9327 msgid ""
9328 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9329 "then this returns true if a live image was detected on the disk."
9330 msgstr ""
9331
9332 #. type: =head2
9333 #: ../fish/guestfish-actions.pod:2219
9334 msgid "inspect-is-multipart"
9335 msgstr "inspect-is-multipart"
9336
9337 #. type: verbatim
9338 #: ../fish/guestfish-actions.pod:2221
9339 #, no-wrap
9340 msgid ""
9341 " inspect-is-multipart root\n"
9342 "\n"
9343 msgstr ""
9344 " inspect-is-multipart корінь\n"
9345 "\n"
9346
9347 #. type: textblock
9348 #: ../fish/guestfish-actions.pod:2223
9349 msgid ""
9350 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9351 "then this returns true if the disk is part of a set."
9352 msgstr ""
9353
9354 #. type: =head2
9355 #: ../fish/guestfish-actions.pod:2229
9356 msgid "inspect-is-netinst"
9357 msgstr "inspect-is-netinst"
9358
9359 #. type: verbatim
9360 #: ../fish/guestfish-actions.pod:2231
9361 #, no-wrap
9362 msgid ""
9363 " inspect-is-netinst root\n"
9364 "\n"
9365 msgstr ""
9366 " inspect-is-netinst корінь\n"
9367 "\n"
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:2233
9371 msgid ""
9372 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9373 "then this returns true if the disk is a network installer, ie. not a self-"
9374 "contained install CD but one which is likely to require network access to "
9375 "complete the install."
9376 msgstr ""
9377
9378 #. type: =head2
9379 #: ../fish/guestfish-actions.pod:2241
9380 msgid "inspect-list-applications"
9381 msgstr "inspect-list-applications"
9382
9383 #. type: verbatim
9384 #: ../fish/guestfish-actions.pod:2243
9385 #, no-wrap
9386 msgid ""
9387 " inspect-list-applications root\n"
9388 "\n"
9389 msgstr ""
9390 " inspect-list-applications кореневий_каталог\n"
9391 "\n"
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3297
9395 msgid "Return the list of applications installed in the operating system."
9396 msgstr ""
9397
9398 #. type: textblock
9399 #: ../fish/guestfish-actions.pod:2247
9400 msgid ""
9401 "I<Note:> This call works differently from other parts of the inspection "
9402 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9403 "then mount up the disks, before calling this.  Listing applications is a "
9404 "significantly more difficult operation which requires access to the full "
9405 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9406 "are just returning data cached in the libguestfs handle, this call actually "
9407 "reads parts of the mounted filesystems during the call."
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9412 msgid ""
9413 "This returns an empty list if the inspection code was not able to determine "
9414 "the list of applications."
9415 msgstr ""
9416
9417 #. type: textblock
9418 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9419 msgid "The application structure contains the following fields:"
9420 msgstr ""
9421
9422 #. type: =item
9423 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
9424 msgid "C<app_name>"
9425 msgstr "C<app_name>"
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
9429 msgid ""
9430 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9431 "guests, this is the package name."
9432 msgstr ""
9433
9434 #. type: =item
9435 #: ../fish/guestfish-actions.pod:2269 ../src/guestfs-actions.pod:3321
9436 msgid "C<app_display_name>"
9437 msgstr "C<app_display_name>"
9438
9439 #. type: textblock
9440 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9441 msgid ""
9442 "The display name of the application, sometimes localized to the install "
9443 "language of the guest operating system."
9444 msgstr ""
9445
9446 #. type: textblock
9447 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3326
9448 msgid ""
9449 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9450 "to display something can use C<app_name> instead."
9451 msgstr ""
9452
9453 #. type: =item
9454 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
9455 msgid "C<app_epoch>"
9456 msgstr "C<app_epoch>"
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:2279 ../src/guestfs-actions.pod:3331
9460 msgid ""
9461 "For package managers which use epochs, this contains the epoch of the "
9462 "package (an integer).  If unavailable, this is returned as C<0>."
9463 msgstr ""
9464
9465 #. type: =item
9466 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9467 msgid "C<app_version>"
9468 msgstr "C<app_version>"
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:2284 ../src/guestfs-actions.pod:3336
9472 msgid ""
9473 "The version string of the application or package.  If unavailable this is "
9474 "returned as an empty string C<\"\">."
9475 msgstr ""
9476
9477 #. type: =item
9478 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9479 msgid "C<app_release>"
9480 msgstr "C<app_release>"
9481
9482 #. type: textblock
9483 #: ../fish/guestfish-actions.pod:2289 ../src/guestfs-actions.pod:3341
9484 msgid ""
9485 "The release string of the application or package, for package managers that "
9486 "use this.  If unavailable this is returned as an empty string C<\"\">."
9487 msgstr ""
9488
9489 #. type: =item
9490 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9491 msgid "C<app_install_path>"
9492 msgstr "C<app_install_path>"
9493
9494 #. type: textblock
9495 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3347
9496 msgid ""
9497 "The installation path of the application (on operating systems such as "
9498 "Windows which use installation paths).  This path is in the format used by "
9499 "the guest operating system, it is not a libguestfs path."
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3352
9504 msgid "If unavailable this is returned as an empty string C<\"\">."
9505 msgstr ""
9506
9507 #. type: =item
9508 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3354
9509 msgid "C<app_trans_path>"
9510 msgstr "C<app_trans_path>"
9511
9512 #. type: textblock
9513 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
9514 msgid ""
9515 "The install path translated into a libguestfs path.  If unavailable this is "
9516 "returned as an empty string C<\"\">."
9517 msgstr ""
9518
9519 #. type: =item
9520 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3359
9521 msgid "C<app_publisher>"
9522 msgstr "C<app_publisher>"
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3361
9526 msgid ""
9527 "The name of the publisher of the application, for package managers that use "
9528 "this.  If unavailable this is returned as an empty string C<\"\">."
9529 msgstr ""
9530
9531 #. type: =item
9532 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
9533 msgid "C<app_url>"
9534 msgstr "C<app_url>"
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3367
9538 msgid ""
9539 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9540 "returned as an empty string C<\"\">."
9541 msgstr ""
9542
9543 #. type: =item
9544 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3370
9545 msgid "C<app_source_package>"
9546 msgstr "C<app_source_package>"
9547
9548 #. type: textblock
9549 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3372
9550 msgid ""
9551 "For packaging systems which support this, the name of the source package.  "
9552 "If unavailable this is returned as an empty string C<\"\">."
9553 msgstr ""
9554
9555 #. type: =item
9556 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3375
9557 msgid "C<app_summary>"
9558 msgstr "C<app_summary>"
9559
9560 #. type: textblock
9561 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3377
9562 msgid ""
9563 "A short (usually one line) description of the application or package.  If "
9564 "unavailable this is returned as an empty string C<\"\">."
9565 msgstr ""
9566
9567 #. type: =item
9568 #: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3380
9569 msgid "C<app_description>"
9570 msgstr "C<app_description>"
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:2330 ../src/guestfs-actions.pod:3382
9574 msgid ""
9575 "A longer description of the application or package.  If unavailable this is "
9576 "returned as an empty string C<\"\">."
9577 msgstr ""
9578
9579 #. type: =head2
9580 #: ../fish/guestfish-actions.pod:2337
9581 msgid "inspect-os"
9582 msgstr "inspect-os"
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:2339
9586 #, no-wrap
9587 msgid ""
9588 " inspect-os\n"
9589 "\n"
9590 msgstr ""
9591 " inspect-os\n"
9592 "\n"
9593
9594 #. type: textblock
9595 #: ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3400
9596 msgid ""
9597 "This function uses other libguestfs functions and certain heuristics to "
9598 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9599 "for operating systems."
9600 msgstr ""
9601
9602 #. type: textblock
9603 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9604 msgid "The list returned is empty if no operating systems were found."
9605 msgstr ""
9606
9607 #. type: textblock
9608 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3406
9609 msgid ""
9610 "If one operating system was found, then this returns a list with a single "
9611 "element, which is the name of the root filesystem of this operating system.  "
9612 "It is also possible for this function to return a list containing more than "
9613 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9614 "element being the root filesystem of one of the operating systems."
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2354
9619 msgid ""
9620 "You can pass the root string(s) returned to other L</inspect-get-*> "
9621 "functions in order to query further information about each operating system, "
9622 "such as the name and version."
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2359
9627 msgid ""
9628 "This function uses other libguestfs features such as L</mount-ro> and L</"
9629 "umount-all> in order to mount and unmount filesystems and look at the "
9630 "contents.  This should be called with no disks currently mounted.  The "
9631 "function may also use Augeas, so any existing Augeas handle will be closed."
9632 msgstr ""
9633
9634 #. type: textblock
9635 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3424
9636 msgid ""
9637 "This function cannot decrypt encrypted disks.  The caller must do that first "
9638 "(supplying the necessary keys) if the disk is encrypted."
9639 msgstr ""
9640
9641 #. type: textblock
9642 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2569
9643 #: ../fish/guestfish-actions.pod:2628
9644 msgid "See also L</list-filesystems>."
9645 msgstr "Див. також L</list-filesystems>."
9646
9647 #. type: =head2
9648 #: ../fish/guestfish-actions.pod:2373
9649 msgid "is-blockdev"
9650 msgstr "is-blockdev"
9651
9652 #. type: verbatim
9653 #: ../fish/guestfish-actions.pod:2375
9654 #, no-wrap
9655 msgid ""
9656 " is-blockdev path\n"
9657 "\n"
9658 msgstr ""
9659 " is-blockdev шлях\n"
9660 "\n"
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3444
9664 msgid ""
9665 "This returns C<true> if and only if there is a block device with the given "
9666 "C<path> name."
9667 msgstr ""
9668
9669 #. type: textblock
9670 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2398
9671 #: ../fish/guestfish-actions.pod:2417 ../fish/guestfish-actions.pod:2426
9672 #: ../fish/guestfish-actions.pod:2436 ../fish/guestfish-actions.pod:2470
9673 #: ../fish/guestfish-actions.pod:2479
9674 msgid "See also L</stat>."
9675 msgstr "Див. також L</stat>."
9676
9677 #. type: =head2
9678 #: ../fish/guestfish-actions.pod:2382
9679 msgid "is-busy"
9680 msgstr "is-busy"
9681
9682 #. type: verbatim
9683 #: ../fish/guestfish-actions.pod:2384
9684 #, no-wrap
9685 msgid ""
9686 " is-busy\n"
9687 "\n"
9688 msgstr ""
9689 " is-busy\n"
9690 "\n"
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3458
9694 msgid ""
9695 "This returns true iff this handle is busy processing a command (in the "
9696 "C<BUSY> state)."
9697 msgstr ""
9698
9699 #. type: =head2
9700 #: ../fish/guestfish-actions.pod:2391
9701 msgid "is-chardev"
9702 msgstr "is-chardev"
9703
9704 #. type: verbatim
9705 #: ../fish/guestfish-actions.pod:2393
9706 #, no-wrap
9707 msgid ""
9708 " is-chardev path\n"
9709 "\n"
9710 msgstr ""
9711 " is-chardev шлях\n"
9712 "\n"
9713
9714 #. type: textblock
9715 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3473
9716 msgid ""
9717 "This returns C<true> if and only if there is a character device with the "
9718 "given C<path> name."
9719 msgstr ""
9720
9721 #. type: =head2
9722 #: ../fish/guestfish-actions.pod:2400
9723 msgid "is-config"
9724 msgstr "is-config"
9725
9726 #. type: verbatim
9727 #: ../fish/guestfish-actions.pod:2402
9728 #, no-wrap
9729 msgid ""
9730 " is-config\n"
9731 "\n"
9732 msgstr ""
9733 " is-config\n"
9734 "\n"
9735
9736 #. type: textblock
9737 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3487
9738 msgid ""
9739 "This returns true iff this handle is being configured (in the C<CONFIG> "
9740 "state)."
9741 msgstr ""
9742
9743 #. type: =head2
9744 #: ../fish/guestfish-actions.pod:2409
9745 msgid "is-dir"
9746 msgstr "is-dir"
9747
9748 #. type: verbatim
9749 #: ../fish/guestfish-actions.pod:2411
9750 #, no-wrap
9751 msgid ""
9752 " is-dir path\n"
9753 "\n"
9754 msgstr ""
9755 " is-dir шлях\n"
9756 "\n"
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:2413 ../src/guestfs-actions.pod:3502
9760 msgid ""
9761 "This returns C<true> if and only if there is a directory with the given "
9762 "C<path> name.  Note that it returns false for other objects like files."
9763 msgstr ""
9764
9765 #. type: =head2
9766 #: ../fish/guestfish-actions.pod:2419
9767 msgid "is-fifo"
9768 msgstr "is-fifo"
9769
9770 #. type: verbatim
9771 #: ../fish/guestfish-actions.pod:2421
9772 #, no-wrap
9773 msgid ""
9774 " is-fifo path\n"
9775 "\n"
9776 msgstr ""
9777 " is-fifo шлях\n"
9778 "\n"
9779
9780 #. type: textblock
9781 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3518
9782 msgid ""
9783 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9784 "given C<path> name."
9785 msgstr ""
9786
9787 #. type: =head2
9788 #: ../fish/guestfish-actions.pod:2428
9789 msgid "is-file"
9790 msgstr "is-file"
9791
9792 #. type: verbatim
9793 #: ../fish/guestfish-actions.pod:2430
9794 #, no-wrap
9795 msgid ""
9796 " is-file path\n"
9797 "\n"
9798 msgstr ""
9799 " is-file шлях\n"
9800 "\n"
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:3533
9804 msgid ""
9805 "This returns C<true> if and only if there is a regular file with the given "
9806 "C<path> name.  Note that it returns false for other objects like directories."
9807 msgstr ""
9808
9809 #. type: =head2
9810 #: ../fish/guestfish-actions.pod:2438
9811 msgid "is-launching"
9812 msgstr "is-launching"
9813
9814 #. type: verbatim
9815 #: ../fish/guestfish-actions.pod:2440
9816 #, no-wrap
9817 msgid ""
9818 " is-launching\n"
9819 "\n"
9820 msgstr ""
9821 " is-launching\n"
9822 "\n"
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3548
9826 msgid ""
9827 "This returns true iff this handle is launching the subprocess (in the "
9828 "C<LAUNCHING> state)."
9829 msgstr ""
9830
9831 #. type: =head2
9832 #: ../fish/guestfish-actions.pod:2447
9833 msgid "is-lv"
9834 msgstr "is-lv"
9835
9836 #. type: verbatim
9837 #: ../fish/guestfish-actions.pod:2449
9838 #, no-wrap
9839 msgid ""
9840 " is-lv device\n"
9841 "\n"
9842 msgstr ""
9843 " is-lv пристрій\n"
9844 "\n"
9845
9846 #. type: textblock
9847 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3563
9848 msgid ""
9849 "This command tests whether C<device> is a logical volume, and returns true "
9850 "iff this is the case."
9851 msgstr ""
9852
9853 #. type: =head2
9854 #: ../fish/guestfish-actions.pod:2454
9855 msgid "is-ready"
9856 msgstr "is-ready"
9857
9858 #. type: verbatim
9859 #: ../fish/guestfish-actions.pod:2456
9860 #, no-wrap
9861 msgid ""
9862 " is-ready\n"
9863 "\n"
9864 msgstr ""
9865 " is-ready\n"
9866 "\n"
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3575
9870 msgid ""
9871 "This returns true iff this handle is ready to accept commands (in the "
9872 "C<READY> state)."
9873 msgstr ""
9874
9875 #. type: =head2
9876 #: ../fish/guestfish-actions.pod:2463
9877 msgid "is-socket"
9878 msgstr "is-socket"
9879
9880 #. type: verbatim
9881 #: ../fish/guestfish-actions.pod:2465
9882 #, no-wrap
9883 msgid ""
9884 " is-socket path\n"
9885 "\n"
9886 msgstr ""
9887 " is-socket шлях\n"
9888 "\n"
9889
9890 #. type: textblock
9891 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3590
9892 msgid ""
9893 "This returns C<true> if and only if there is a Unix domain socket with the "
9894 "given C<path> name."
9895 msgstr ""
9896
9897 #. type: =head2
9898 #: ../fish/guestfish-actions.pod:2472
9899 msgid "is-symlink"
9900 msgstr "is-symlink"
9901
9902 #. type: verbatim
9903 #: ../fish/guestfish-actions.pod:2474
9904 #, no-wrap
9905 msgid ""
9906 " is-symlink path\n"
9907 "\n"
9908 msgstr ""
9909 " is-symlink шлях\n"
9910 "\n"
9911
9912 #. type: textblock
9913 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3605
9914 msgid ""
9915 "This returns C<true> if and only if there is a symbolic link with the given "
9916 "C<path> name."
9917 msgstr ""
9918
9919 #. type: =head2
9920 #: ../fish/guestfish-actions.pod:2481
9921 msgid "is-zero"
9922 msgstr ""
9923
9924 #. type: verbatim
9925 #: ../fish/guestfish-actions.pod:2483
9926 #, no-wrap
9927 msgid ""
9928 " is-zero path\n"
9929 "\n"
9930 msgstr ""
9931
9932 #. type: textblock
9933 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3620
9934 msgid ""
9935 "This returns true iff the file exists and the file is empty or it contains "
9936 "all zero bytes."
9937 msgstr ""
9938
9939 #. type: =head2
9940 #: ../fish/guestfish-actions.pod:2488
9941 msgid "is-zero-device"
9942 msgstr ""
9943
9944 #. type: verbatim
9945 #: ../fish/guestfish-actions.pod:2490
9946 #, no-wrap
9947 msgid ""
9948 " is-zero-device device\n"
9949 "\n"
9950 msgstr ""
9951
9952 #. type: textblock
9953 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3633
9954 msgid "This returns true iff the device exists and contains all zero bytes."
9955 msgstr ""
9956
9957 #. type: textblock
9958 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3635
9959 msgid "Note that for large devices this can take a long time to run."
9960 msgstr ""
9961
9962 #. type: =head2
9963 #: ../fish/guestfish-actions.pod:2496
9964 msgid "kill-subprocess"
9965 msgstr "kill-subprocess"
9966
9967 #. type: verbatim
9968 #: ../fish/guestfish-actions.pod:2498
9969 #, no-wrap
9970 msgid ""
9971 " kill-subprocess\n"
9972 "\n"
9973 msgstr ""
9974 " kill-subprocess\n"
9975 "\n"
9976
9977 #. type: textblock
9978 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3646
9979 msgid "This kills the qemu subprocess.  You should never need to call this."
9980 msgstr ""
9981
9982 #. type: =head2
9983 #: ../fish/guestfish-actions.pod:2502
9984 msgid "launch"
9985 msgstr "launch"
9986
9987 #. type: =head2
9988 #: ../fish/guestfish-actions.pod:2504
9989 msgid "run"
9990 msgstr ""
9991
9992 #. type: verbatim
9993 #: ../fish/guestfish-actions.pod:2506
9994 #, no-wrap
9995 msgid ""
9996 " launch\n"
9997 "\n"
9998 msgstr ""
9999 " launch\n"
10000 "\n"
10001
10002 #. type: textblock
10003 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3657
10004 msgid ""
10005 "Internally libguestfs is implemented by running a virtual machine using "
10006 "L<qemu(1)>."
10007 msgstr ""
10008
10009 #. type: textblock
10010 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3660
10011 msgid ""
10012 "You should call this after configuring the handle (eg. adding drives) but "
10013 "before performing any actions."
10014 msgstr ""
10015
10016 #. type: =head2
10017 #: ../fish/guestfish-actions.pod:2514
10018 msgid "lchown"
10019 msgstr "lchown"
10020
10021 #. type: verbatim
10022 #: ../fish/guestfish-actions.pod:2516
10023 #, no-wrap
10024 msgid ""
10025 " lchown owner group path\n"
10026 "\n"
10027 msgstr ""
10028 " lchown власник група шлях\n"
10029 "\n"
10030
10031 #. type: textblock
10032 #: ../fish/guestfish-actions.pod:2518
10033 msgid ""
10034 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10035 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10036 "target."
10037 msgstr ""
10038
10039 #. type: =head2
10040 #: ../fish/guestfish-actions.pod:2526
10041 msgid "lgetxattr"
10042 msgstr "lgetxattr"
10043
10044 #. type: verbatim
10045 #: ../fish/guestfish-actions.pod:2528
10046 #, no-wrap
10047 msgid ""
10048 " lgetxattr path name\n"
10049 "\n"
10050 msgstr ""
10051 " lgetxattr шлях назва\n"
10052 "\n"
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3700
10056 msgid ""
10057 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10058 "is a symlink, then this call returns an extended attribute from the symlink."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:2544
10063 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10064 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10065
10066 #. type: =head2
10067 #: ../fish/guestfish-actions.pod:2546
10068 msgid "lgetxattrs"
10069 msgstr "lgetxattrs"
10070
10071 #. type: verbatim
10072 #: ../fish/guestfish-actions.pod:2548
10073 #, no-wrap
10074 msgid ""
10075 " lgetxattrs path\n"
10076 "\n"
10077 msgstr ""
10078 " lgetxattrs шлях\n"
10079 "\n"
10080
10081 #. type: textblock
10082 #: ../fish/guestfish-actions.pod:2550
10083 msgid ""
10084 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10085 "it returns the extended attributes of the link itself."
10086 msgstr ""
10087
10088 #. type: =head2
10089 #: ../fish/guestfish-actions.pod:2554
10090 msgid "list-9p"
10091 msgstr ""
10092
10093 #. type: verbatim
10094 #: ../fish/guestfish-actions.pod:2556
10095 #, no-wrap
10096 msgid ""
10097 " list-9p\n"
10098 "\n"
10099 msgstr ""
10100
10101 #. type: textblock
10102 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3743
10103 msgid ""
10104 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10105 "returned."
10106 msgstr ""
10107
10108 #. type: =head2
10109 #: ../fish/guestfish-actions.pod:2561
10110 msgid "list-devices"
10111 msgstr "list-devices"
10112
10113 #. type: verbatim
10114 #: ../fish/guestfish-actions.pod:2563
10115 #, no-wrap
10116 msgid ""
10117 " list-devices\n"
10118 "\n"
10119 msgstr ""
10120 " list-devices\n"
10121 "\n"
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3757
10125 msgid "List all the block devices."
10126 msgstr ""
10127
10128 #. type: textblock
10129 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3759
10130 msgid "The full block device names are returned, eg. C</dev/sda>."
10131 msgstr ""
10132
10133 #. type: =head2
10134 #: ../fish/guestfish-actions.pod:2571
10135 msgid "list-dm-devices"
10136 msgstr ""
10137
10138 #. type: verbatim
10139 #: ../fish/guestfish-actions.pod:2573
10140 #, no-wrap
10141 msgid ""
10142 " list-dm-devices\n"
10143 "\n"
10144 msgstr ""
10145
10146 #. type: textblock
10147 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3774
10148 msgid "List all device mapper devices."
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:2577
10153 msgid ""
10154 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10155 "previous call to L</luks-open>."
10156 msgstr ""
10157
10158 #. type: textblock
10159 #: ../fish/guestfish-actions.pod:2580
10160 msgid ""
10161 "Device mapper devices which correspond to logical volumes are I<not> "
10162 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10163 msgstr ""
10164
10165 #. type: =head2
10166 #: ../fish/guestfish-actions.pod:2584
10167 msgid "list-filesystems"
10168 msgstr "list-filesystems"
10169
10170 #. type: verbatim
10171 #: ../fish/guestfish-actions.pod:2586
10172 #, no-wrap
10173 msgid ""
10174 " list-filesystems\n"
10175 "\n"
10176 msgstr ""
10177 " list-filesystems\n"
10178 "\n"
10179
10180 #. type: textblock
10181 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3794
10182 msgid ""
10183 "This inspection command looks for filesystems on partitions, block devices "
10184 "and logical volumes, returning a list of devices containing filesystems and "
10185 "their type."
10186 msgstr ""
10187
10188 #. type: textblock
10189 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
10190 msgid ""
10191 "The return value is a hash, where the keys are the devices containing "
10192 "filesystems, and the values are the filesystem types.  For example:"
10193 msgstr ""
10194
10195 #. type: verbatim
10196 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
10197 #, no-wrap
10198 msgid ""
10199 " \"/dev/sda1\" => \"ntfs\"\n"
10200 " \"/dev/sda2\" => \"ext2\"\n"
10201 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10202 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10203 "\n"
10204 msgstr ""
10205
10206 #. type: textblock
10207 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3807
10208 msgid ""
10209 "The value can have the special value \"unknown\", meaning the content of the "
10210 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10211 msgstr ""
10212
10213 #. type: textblock
10214 #: ../fish/guestfish-actions.pod:2605
10215 msgid ""
10216 "This command runs other libguestfs commands, which might include L</mount> "
10217 "and L</umount>, and therefore you should use this soon after launch and only "
10218 "when nothing is mounted."
10219 msgstr ""
10220
10221 #. type: textblock
10222 #: ../fish/guestfish-actions.pod:2609
10223 msgid ""
10224 "Not all of the filesystems returned will be mountable.  In particular, swap "
10225 "partitions are returned in the list.  Also this command does not check that "
10226 "each filesystem found is valid and mountable, and some filesystems might be "
10227 "mountable but require special options.  Filesystems may not all belong to a "
10228 "single logical operating system (use L</inspect-os> to look for OSes)."
10229 msgstr ""
10230
10231 #. type: =head2
10232 #: ../fish/guestfish-actions.pod:2617
10233 msgid "list-partitions"
10234 msgstr "list-partitions"
10235
10236 #. type: verbatim
10237 #: ../fish/guestfish-actions.pod:2619
10238 #, no-wrap
10239 msgid ""
10240 " list-partitions\n"
10241 "\n"
10242 msgstr ""
10243 " list-partitions\n"
10244 "\n"
10245
10246 #. type: textblock
10247 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3836
10248 msgid "List all the partitions detected on all block devices."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3838
10253 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10254 msgstr ""
10255
10256 #. type: textblock
10257 #: ../fish/guestfish-actions.pod:2625
10258 msgid ""
10259 "This does not return logical volumes.  For that you will need to call L</"
10260 "lvs>."
10261 msgstr ""
10262
10263 #. type: =head2
10264 #: ../fish/guestfish-actions.pod:2630
10265 msgid "ll"
10266 msgstr "ll"
10267
10268 #. type: verbatim
10269 #: ../fish/guestfish-actions.pod:2632
10270 #, no-wrap
10271 msgid ""
10272 " ll directory\n"
10273 "\n"
10274 msgstr ""
10275 " ll каталог\n"
10276 "\n"
10277
10278 #. type: textblock
10279 #: ../fish/guestfish-actions.pod:2634 ../src/guestfs-actions.pod:3857
10280 msgid ""
10281 "List the files in C<directory> (relative to the root directory, there is no "
10282 "cwd) in the format of 'ls -la'."
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3860
10287 msgid ""
10288 "This command is mostly useful for interactive sessions.  It is I<not> "
10289 "intended that you try to parse the output string."
10290 msgstr ""
10291
10292 #. type: =head2
10293 #: ../fish/guestfish-actions.pod:2640
10294 msgid "ln"
10295 msgstr "ln"
10296
10297 #. type: verbatim
10298 #: ../fish/guestfish-actions.pod:2642
10299 #, no-wrap
10300 msgid ""
10301 " ln target linkname\n"
10302 "\n"
10303 msgstr ""
10304 " ln призначення назва_посилання\n"
10305 "\n"
10306
10307 #. type: textblock
10308 #: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:3875
10309 msgid "This command creates a hard link using the C<ln> command."
10310 msgstr ""
10311
10312 #. type: =head2
10313 #: ../fish/guestfish-actions.pod:2646
10314 msgid "ln-f"
10315 msgstr "ln-f"
10316
10317 #. type: verbatim
10318 #: ../fish/guestfish-actions.pod:2648
10319 #, no-wrap
10320 msgid ""
10321 " ln-f target linkname\n"
10322 "\n"
10323 msgstr ""
10324 " ln-f призначення назва_посилання\n"
10325 "\n"
10326
10327 #. type: textblock
10328 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3888
10329 msgid ""
10330 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10331 "option removes the link (C<linkname>) if it exists already."
10332 msgstr ""
10333
10334 #. type: =head2
10335 #: ../fish/guestfish-actions.pod:2653
10336 msgid "ln-s"
10337 msgstr "ln-s"
10338
10339 #. type: verbatim
10340 #: ../fish/guestfish-actions.pod:2655
10341 #, no-wrap
10342 msgid ""
10343 " ln-s target linkname\n"
10344 "\n"
10345 msgstr ""
10346 " ln-s призначення назва_посилання\n"
10347 "\n"
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:3902
10351 msgid "This command creates a symbolic link using the C<ln -s> command."
10352 msgstr ""
10353
10354 #. type: =head2
10355 #: ../fish/guestfish-actions.pod:2659
10356 msgid "ln-sf"
10357 msgstr "ln-sf"
10358
10359 #. type: verbatim
10360 #: ../fish/guestfish-actions.pod:2661
10361 #, no-wrap
10362 msgid ""
10363 " ln-sf target linkname\n"
10364 "\n"
10365 msgstr ""
10366 " ln-sf призначення назва_посилання\n"
10367 "\n"
10368
10369 #. type: textblock
10370 #: ../fish/guestfish-actions.pod:2663 ../src/guestfs-actions.pod:3915
10371 msgid ""
10372 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10373 "option removes the link (C<linkname>) if it exists already."
10374 msgstr ""
10375
10376 #. type: =head2
10377 #: ../fish/guestfish-actions.pod:2666
10378 msgid "lremovexattr"
10379 msgstr "lremovexattr"
10380
10381 #. type: verbatim
10382 #: ../fish/guestfish-actions.pod:2668
10383 #, no-wrap
10384 msgid ""
10385 " lremovexattr xattr path\n"
10386 "\n"
10387 msgstr ""
10388
10389 #. type: textblock
10390 #: ../fish/guestfish-actions.pod:2670
10391 msgid ""
10392 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10393 "it removes an extended attribute of the link itself."
10394 msgstr ""
10395
10396 #. type: =head2
10397 #: ../fish/guestfish-actions.pod:2674
10398 msgid "ls"
10399 msgstr "ls"
10400
10401 #. type: verbatim
10402 #: ../fish/guestfish-actions.pod:2676
10403 #, no-wrap
10404 msgid ""
10405 " ls directory\n"
10406 "\n"
10407 msgstr ""
10408 " ls каталог\n"
10409 "\n"
10410
10411 #. type: textblock
10412 #: ../fish/guestfish-actions.pod:2678 ../src/guestfs-actions.pod:3943
10413 msgid ""
10414 "List the files in C<directory> (relative to the root directory, there is no "
10415 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10416 msgstr ""
10417
10418 #. type: textblock
10419 #: ../fish/guestfish-actions.pod:2682
10420 msgid ""
10421 "This command is mostly useful for interactive sessions.  Programs should "
10422 "probably use L</readdir> instead."
10423 msgstr ""
10424
10425 #. type: =head2
10426 #: ../fish/guestfish-actions.pod:2685
10427 msgid "lsetxattr"
10428 msgstr "lsetxattr"
10429
10430 #. type: verbatim
10431 #: ../fish/guestfish-actions.pod:2687
10432 #, no-wrap
10433 msgid ""
10434 " lsetxattr xattr val vallen path\n"
10435 "\n"
10436 msgstr ""
10437
10438 #. type: textblock
10439 #: ../fish/guestfish-actions.pod:2689
10440 msgid ""
10441 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10442 "sets an extended attribute of the link itself."
10443 msgstr ""
10444
10445 #. type: =head2
10446 #: ../fish/guestfish-actions.pod:2693
10447 msgid "lstat"
10448 msgstr "lstat"
10449
10450 #. type: verbatim
10451 #: ../fish/guestfish-actions.pod:2695
10452 #, no-wrap
10453 msgid ""
10454 " lstat path\n"
10455 "\n"
10456 msgstr ""
10457 " lstat шлях\n"
10458 "\n"
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2697 ../fish/guestfish-actions.pod:4505
10462 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:6758
10463 msgid "Returns file information for the given C<path>."
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:2699
10468 msgid ""
10469 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10470 "the link is stat-ed, not the file it refers to."
10471 msgstr ""
10472
10473 #. type: textblock
10474 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:3985
10475 msgid "This is the same as the C<lstat(2)> system call."
10476 msgstr ""
10477
10478 #. type: =head2
10479 #: ../fish/guestfish-actions.pod:2705
10480 msgid "lstatlist"
10481 msgstr "lstatlist"
10482
10483 #. type: verbatim
10484 #: ../fish/guestfish-actions.pod:2707
10485 #, no-wrap
10486 msgid ""
10487 " lstatlist path 'names ...'\n"
10488 "\n"
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2709
10493 msgid ""
10494 "This call allows you to perform the L</lstat> operation on multiple files, "
10495 "where all files are in the directory C<path>.  C<names> is the list of files "
10496 "from this directory."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4004
10501 msgid ""
10502 "On return you get a list of stat structs, with a one-to-one correspondence "
10503 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10504 "then the C<ino> field of that structure is set to C<-1>."
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:2718
10509 msgid ""
10510 "This call is intended for programs that want to efficiently list a directory "
10511 "contents without making many round-trips.  See also L</lxattrlist> for a "
10512 "similarly efficient call for getting extended attributes.  Very long "
10513 "directory listings might cause the protocol message size to be exceeded, "
10514 "causing this call to fail.  The caller must split up such requests into "
10515 "smaller groups of names."
10516 msgstr ""
10517
10518 #. type: =head2
10519 #: ../fish/guestfish-actions.pod:2726
10520 msgid "luks-add-key"
10521 msgstr "luks-add-key"
10522
10523 #. type: verbatim
10524 #: ../fish/guestfish-actions.pod:2728
10525 #, no-wrap
10526 msgid ""
10527 " luks-add-key device keyslot\n"
10528 "\n"
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2730 ../src/guestfs-actions.pod:4032
10533 msgid ""
10534 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10535 "existing key, and is used to access the device.  C<newkey> is the new key to "
10536 "add.  C<keyslot> is the key slot that will be replaced."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2735
10541 msgid ""
10542 "Note that if C<keyslot> already contains a key, then this command will "
10543 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10544 msgstr ""
10545
10546 #. type: textblock
10547 #: ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2761
10548 #: ../fish/guestfish-actions.pod:2774 ../fish/guestfish-actions.pod:2788
10549 #: ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824
10550 msgid ""
10551 "This command has one or more key or passphrase parameters.  Guestfish will "
10552 "prompt for these separately."
10553 msgstr ""
10554
10555 #. type: =head2
10556 #: ../fish/guestfish-actions.pod:2742
10557 msgid "luks-close"
10558 msgstr "luks-close"
10559
10560 #. type: verbatim
10561 #: ../fish/guestfish-actions.pod:2744
10562 #, no-wrap
10563 msgid ""
10564 " luks-close device\n"
10565 "\n"
10566 msgstr ""
10567 " luks-close пристрій\n"
10568 "\n"
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2746
10572 msgid ""
10573 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10574 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10575 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10576 "block device."
10577 msgstr ""
10578
10579 #. type: =head2
10580 #: ../fish/guestfish-actions.pod:2752
10581 msgid "luks-format"
10582 msgstr "luks-format"
10583
10584 #. type: verbatim
10585 #: ../fish/guestfish-actions.pod:2754
10586 #, no-wrap
10587 msgid ""
10588 " luks-format device keyslot\n"
10589 "\n"
10590 msgstr ""
10591
10592 #. type: textblock
10593 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4073
10594 msgid ""
10595 "This command erases existing data on C<device> and formats the device as a "
10596 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10597 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10598 msgstr ""
10599
10600 #. type: textblock
10601 #: ../fish/guestfish-actions.pod:2764 ../fish/guestfish-actions.pod:2777
10602 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3525
10603 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4376
10604 #: ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4421
10605 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:4080
10606 #: ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4246
10607 #: ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:6137
10608 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6595
10609 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:7834
10610 msgid ""
10611 "B<This command is dangerous.  Without careful use you can easily destroy all "
10612 "your data>."
10613 msgstr ""
10614
10615 #. type: =head2
10616 #: ../fish/guestfish-actions.pod:2767
10617 msgid "luks-format-cipher"
10618 msgstr "luks-format-cipher"
10619
10620 #. type: verbatim
10621 #: ../fish/guestfish-actions.pod:2769
10622 #, no-wrap
10623 msgid ""
10624 " luks-format-cipher device keyslot cipher\n"
10625 "\n"
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:2771
10630 msgid ""
10631 "This command is the same as L</luks-format> but it also allows you to set "
10632 "the C<cipher> used."
10633 msgstr ""
10634
10635 #. type: =head2
10636 #: ../fish/guestfish-actions.pod:2780
10637 msgid "luks-kill-slot"
10638 msgstr "luks-kill-slot"
10639
10640 #. type: verbatim
10641 #: ../fish/guestfish-actions.pod:2782
10642 #, no-wrap
10643 msgid ""
10644 " luks-kill-slot device keyslot\n"
10645 "\n"
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:2784 ../src/guestfs-actions.pod:4120
10650 msgid ""
10651 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10652 "device C<device>.  C<key> must be one of the I<other> keys."
10653 msgstr ""
10654
10655 #. type: =head2
10656 #: ../fish/guestfish-actions.pod:2791
10657 msgid "luks-open"
10658 msgstr "luks-open"
10659
10660 #. type: verbatim
10661 #: ../fish/guestfish-actions.pod:2793
10662 #, no-wrap
10663 msgid ""
10664 " luks-open device mapname\n"
10665 "\n"
10666 msgstr ""
10667
10668 #. type: textblock
10669 #: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4140
10670 msgid ""
10671 "This command opens a block device which has been encrypted according to the "
10672 "Linux Unified Key Setup (LUKS) standard."
10673 msgstr ""
10674
10675 #. type: textblock
10676 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4143
10677 msgid "C<device> is the encrypted block device or partition."
10678 msgstr ""
10679
10680 #. type: textblock
10681 #: ../fish/guestfish-actions.pod:2800 ../src/guestfs-actions.pod:4145
10682 msgid ""
10683 "The caller must supply one of the keys associated with the LUKS block "
10684 "device, in the C<key> parameter."
10685 msgstr ""
10686
10687 #. type: textblock
10688 #: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4148
10689 msgid ""
10690 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10691 "writes to this block device are decrypted from and encrypted to the "
10692 "underlying C<device> respectively."
10693 msgstr ""
10694
10695 #. type: textblock
10696 #: ../fish/guestfish-actions.pod:2807
10697 msgid ""
10698 "If this block device contains LVM volume groups, then calling L</vgscan> "
10699 "followed by L</vg-activate-all> will make them visible."
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../fish/guestfish-actions.pod:2811
10704 msgid "Use L</list-dm-devices> to list all device mapper devices."
10705 msgstr ""
10706
10707 #. type: =head2
10708 #: ../fish/guestfish-actions.pod:2817
10709 msgid "luks-open-ro"
10710 msgstr "luks-open-ro"
10711
10712 #. type: verbatim
10713 #: ../fish/guestfish-actions.pod:2819
10714 #, no-wrap
10715 msgid ""
10716 " luks-open-ro device mapname\n"
10717 "\n"
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:2821
10722 msgid ""
10723 "This is the same as L</luks-open> except that a read-only mapping is created."
10724 msgstr ""
10725
10726 #. type: =head2
10727 #: ../fish/guestfish-actions.pod:2827
10728 msgid "lvcreate"
10729 msgstr "lvcreate"
10730
10731 #. type: verbatim
10732 #: ../fish/guestfish-actions.pod:2829
10733 #, no-wrap
10734 msgid ""
10735 " lvcreate logvol volgroup mbytes\n"
10736 "\n"
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4194
10741 msgid ""
10742 "This creates an LVM logical volume called C<logvol> on the volume group "
10743 "C<volgroup>, with C<size> megabytes."
10744 msgstr ""
10745
10746 #. type: =head2
10747 #: ../fish/guestfish-actions.pod:2834
10748 msgid "lvm-canonical-lv-name"
10749 msgstr "lvm-canonical-lv-name"
10750
10751 #. type: verbatim
10752 #: ../fish/guestfish-actions.pod:2836
10753 #, no-wrap
10754 msgid ""
10755 " lvm-canonical-lv-name lvname\n"
10756 "\n"
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4207
10761 msgid ""
10762 "This converts alternative naming schemes for LVs that you might find to the "
10763 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10764 "LV>."
10765 msgstr ""
10766
10767 #. type: textblock
10768 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
10769 msgid ""
10770 "This command returns an error if the C<lvname> parameter does not refer to a "
10771 "logical volume."
10772 msgstr ""
10773
10774 #. type: textblock
10775 #: ../fish/guestfish-actions.pod:2845
10776 msgid "See also L</is-lv>."
10777 msgstr "Див. також L</is-lv>."
10778
10779 #. type: =head2
10780 #: ../fish/guestfish-actions.pod:2847
10781 msgid "lvm-clear-filter"
10782 msgstr "lvm-clear-filter"
10783
10784 #. type: verbatim
10785 #: ../fish/guestfish-actions.pod:2849
10786 #, no-wrap
10787 msgid ""
10788 " lvm-clear-filter\n"
10789 "\n"
10790 msgstr ""
10791 " lvm-clear-filter\n"
10792 "\n"
10793
10794 #. type: textblock
10795 #: ../fish/guestfish-actions.pod:2851
10796 msgid ""
10797 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10798 "block device."
10799 msgstr ""
10800
10801 #. type: textblock
10802 #: ../fish/guestfish-actions.pod:2854 ../fish/guestfish-actions.pod:2885
10803 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4271
10804 msgid ""
10805 "This command also clears the LVM cache and performs a volume group scan."
10806 msgstr ""
10807
10808 #. type: =head2
10809 #: ../fish/guestfish-actions.pod:2857
10810 msgid "lvm-remove-all"
10811 msgstr "lvm-remove-all"
10812
10813 #. type: verbatim
10814 #: ../fish/guestfish-actions.pod:2859
10815 #, no-wrap
10816 msgid ""
10817 " lvm-remove-all\n"
10818 "\n"
10819 msgstr ""
10820 " lvm-remove-all\n"
10821 "\n"
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4241
10825 msgid ""
10826 "This command removes all LVM logical volumes, volume groups and physical "
10827 "volumes."
10828 msgstr ""
10829
10830 #. type: =head2
10831 #: ../fish/guestfish-actions.pod:2867
10832 msgid "lvm-set-filter"
10833 msgstr "lvm-set-filter"
10834
10835 #. type: verbatim
10836 #: ../fish/guestfish-actions.pod:2869
10837 #, no-wrap
10838 msgid ""
10839 " lvm-set-filter 'devices ...'\n"
10840 "\n"
10841 msgstr ""
10842 " lvm-set-filter 'пристрої...'\n"
10843 "\n"
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4257
10847 msgid ""
10848 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10849 "block devices in the list C<devices>, and will ignore all other attached "
10850 "block devices."
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
10855 msgid ""
10856 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10857 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10858 "there are two types of duplication possible: either cloned PVs/VGs which "
10859 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10860 "same name.  In normal operation you cannot create this situation, but you "
10861 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10862 "inside the LVM metadata."
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../fish/guestfish-actions.pod:2888 ../src/guestfs-actions.pod:4274
10867 msgid "You can filter whole block devices or individual partitions."
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4276
10872 msgid ""
10873 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10874 "filesystem), even if you are not filtering out that VG."
10875 msgstr ""
10876
10877 #. type: =head2
10878 #: ../fish/guestfish-actions.pod:2894
10879 msgid "lvremove"
10880 msgstr "lvremove"
10881
10882 #. type: verbatim
10883 #: ../fish/guestfish-actions.pod:2896
10884 #, no-wrap
10885 msgid ""
10886 " lvremove device\n"
10887 "\n"
10888 msgstr ""
10889 " lvremove пристрій\n"
10890 "\n"
10891
10892 #. type: textblock
10893 #: ../fish/guestfish-actions.pod:2898 ../src/guestfs-actions.pod:4290
10894 msgid ""
10895 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10896 "LV, such as C</dev/VG/LV>."
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4293
10901 msgid ""
10902 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10903 "dev/VG>."
10904 msgstr ""
10905
10906 #. type: =head2
10907 #: ../fish/guestfish-actions.pod:2904
10908 msgid "lvrename"
10909 msgstr "lvrename"
10910
10911 #. type: verbatim
10912 #: ../fish/guestfish-actions.pod:2906
10913 #, no-wrap
10914 msgid ""
10915 " lvrename logvol newlogvol\n"
10916 "\n"
10917 msgstr ""
10918
10919 #. type: textblock
10920 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4307
10921 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10922 msgstr ""
10923
10924 #. type: =head2
10925 #: ../fish/guestfish-actions.pod:2910
10926 msgid "lvresize"
10927 msgstr "lvresize"
10928
10929 #. type: verbatim
10930 #: ../fish/guestfish-actions.pod:2912
10931 #, no-wrap
10932 msgid ""
10933 " lvresize device mbytes\n"
10934 "\n"
10935 msgstr ""
10936
10937 #. type: textblock
10938 #: ../fish/guestfish-actions.pod:2914 ../src/guestfs-actions.pod:4320
10939 msgid ""
10940 "This resizes (expands or shrinks) an existing LVM logical volume to "
10941 "C<mbytes>.  When reducing, data in the reduced part is lost."
10942 msgstr ""
10943
10944 #. type: =head2
10945 #: ../fish/guestfish-actions.pod:2918
10946 msgid "lvresize-free"
10947 msgstr "lvresize-free"
10948
10949 #. type: verbatim
10950 #: ../fish/guestfish-actions.pod:2920
10951 #, no-wrap
10952 msgid ""
10953 " lvresize-free lv percent\n"
10954 "\n"
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4335
10959 msgid ""
10960 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10961 "remaining free space in the volume group.  Commonly you would call this with "
10962 "pc = 100 which expands the logical volume as much as possible, using all "
10963 "remaining free space in the volume group."
10964 msgstr ""
10965
10966 #. type: =head2
10967 #: ../fish/guestfish-actions.pod:2928
10968 msgid "lvs"
10969 msgstr "lvs"
10970
10971 #. type: verbatim
10972 #: ../fish/guestfish-actions.pod:2930
10973 #, no-wrap
10974 msgid ""
10975 " lvs\n"
10976 "\n"
10977 msgstr ""
10978 " lvs\n"
10979 "\n"
10980
10981 #. type: textblock
10982 #: ../fish/guestfish-actions.pod:2932 ../src/guestfs-actions.pod:4350
10983 msgid ""
10984 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10985 "(8)> command."
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4353
10990 msgid ""
10991 "This returns a list of the logical volume device names (eg. C</dev/"
10992 "VolGroup00/LogVol00>)."
10993 msgstr ""
10994
10995 #. type: textblock
10996 #: ../fish/guestfish-actions.pod:2938
10997 msgid "See also L</lvs-full>, L</list-filesystems>."
10998 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10999
11000 #. type: =head2
11001 #: ../fish/guestfish-actions.pod:2940
11002 msgid "lvs-full"
11003 msgstr "lvs-full"
11004
11005 #. type: verbatim
11006 #: ../fish/guestfish-actions.pod:2942
11007 #, no-wrap
11008 msgid ""
11009 " lvs-full\n"
11010 "\n"
11011 msgstr ""
11012 " lvs-full\n"
11013 "\n"
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4369
11017 msgid ""
11018 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11019 "(8)> command.  The \"full\" version includes all fields."
11020 msgstr ""
11021
11022 #. type: =head2
11023 #: ../fish/guestfish-actions.pod:2947
11024 msgid "lvuuid"
11025 msgstr "lvuuid"
11026
11027 #. type: verbatim
11028 #: ../fish/guestfish-actions.pod:2949
11029 #, no-wrap
11030 msgid ""
11031 " lvuuid device\n"
11032 "\n"
11033 msgstr ""
11034 " lvuuid пристрій\n"
11035 "\n"
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4384
11039 msgid "This command returns the UUID of the LVM LV C<device>."
11040 msgstr ""
11041
11042 #. type: =head2
11043 #: ../fish/guestfish-actions.pod:2953
11044 msgid "lxattrlist"
11045 msgstr "lxattrlist"
11046
11047 #. type: verbatim
11048 #: ../fish/guestfish-actions.pod:2955
11049 #, no-wrap
11050 msgid ""
11051 " lxattrlist path 'names ...'\n"
11052 "\n"
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2957 ../src/guestfs-actions.pod:4398
11057 msgid ""
11058 "This call allows you to get the extended attributes of multiple files, where "
11059 "all files are in the directory C<path>.  C<names> is the list of files from "
11060 "this directory."
11061 msgstr ""
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
11065 msgid ""
11066 "On return you get a flat list of xattr structs which must be interpreted "
11067 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11068 "C<attrval> in this struct is zero-length to indicate there was an error "
11069 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11070 "number (the number of following attributes for this file, which could be C<"
11071 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11072 "for the first named file.  This repeats for the second and subsequent files."
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:2971
11077 msgid ""
11078 "This call is intended for programs that want to efficiently list a directory "
11079 "contents without making many round-trips.  See also L</lstatlist> for a "
11080 "similarly efficient call for getting standard stats.  Very long directory "
11081 "listings might cause the protocol message size to be exceeded, causing this "
11082 "call to fail.  The caller must split up such requests into smaller groups of "
11083 "names."
11084 msgstr ""
11085
11086 #. type: =head2
11087 #: ../fish/guestfish-actions.pod:2979
11088 msgid "mkdir"
11089 msgstr "mkdir"
11090
11091 #. type: verbatim
11092 #: ../fish/guestfish-actions.pod:2981
11093 #, no-wrap
11094 msgid ""
11095 " mkdir path\n"
11096 "\n"
11097 msgstr ""
11098 " mkdir шлях\n"
11099 "\n"
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4432
11103 msgid "Create a directory named C<path>."
11104 msgstr ""
11105
11106 #. type: =head2
11107 #: ../fish/guestfish-actions.pod:2985
11108 msgid "mkdir-mode"
11109 msgstr "mkdir-mode"
11110
11111 #. type: verbatim
11112 #: ../fish/guestfish-actions.pod:2987
11113 #, no-wrap
11114 msgid ""
11115 " mkdir-mode path mode\n"
11116 "\n"
11117 msgstr ""
11118 " mkdir-mode шлях режим\n"
11119 "\n"
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4445
11123 msgid ""
11124 "This command creates a directory, setting the initial permissions of the "
11125 "directory to C<mode>."
11126 msgstr ""
11127
11128 #. type: textblock
11129 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4448
11130 msgid ""
11131 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11132 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11133 "other ways."
11134 msgstr ""
11135
11136 #. type: textblock
11137 #: ../fish/guestfish-actions.pod:2996
11138 msgid "See also L</mkdir>, L</umask>"
11139 msgstr "Див. також L</mkdir>, L</umask>"
11140
11141 #. type: =head2
11142 #: ../fish/guestfish-actions.pod:2998
11143 msgid "mkdir-p"
11144 msgstr "mkdir-p"
11145
11146 #. type: verbatim
11147 #: ../fish/guestfish-actions.pod:3000
11148 #, no-wrap
11149 msgid ""
11150 " mkdir-p path\n"
11151 "\n"
11152 msgstr ""
11153 " mkdir-p шлях\n"
11154 "\n"
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4464
11158 msgid ""
11159 "Create a directory named C<path>, creating any parent directories as "
11160 "necessary.  This is like the C<mkdir -p> shell command."
11161 msgstr ""
11162
11163 #. type: =head2
11164 #: ../fish/guestfish-actions.pod:3005
11165 msgid "mkdtemp"
11166 msgstr "mkdtemp"
11167
11168 #. type: verbatim
11169 #: ../fish/guestfish-actions.pod:3007
11170 #, no-wrap
11171 msgid ""
11172 " mkdtemp template\n"
11173 "\n"
11174 msgstr ""
11175 " mkdtemp шаблон\n"
11176 "\n"
11177
11178 #. type: textblock
11179 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4477
11180 msgid ""
11181 "This command creates a temporary directory.  The C<template> parameter "
11182 "should be a full pathname for the temporary directory name with the final "
11183 "six characters being \"XXXXXX\"."
11184 msgstr ""
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4482
11188 msgid ""
11189 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11190 "being suitable for Windows filesystems."
11191 msgstr ""
11192
11193 #. type: textblock
11194 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4485
11195 msgid "The name of the temporary directory that was created is returned."
11196 msgstr ""
11197
11198 #. type: textblock
11199 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4488
11200 msgid "The temporary directory is created with mode 0700 and is owned by root."
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4491
11205 msgid ""
11206 "The caller is responsible for deleting the temporary directory and its "
11207 "contents after use."
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4494
11212 msgid "See also: L<mkdtemp(3)>"
11213 msgstr ""
11214
11215 #. type: =head2
11216 #: ../fish/guestfish-actions.pod:3028
11217 msgid "mke2fs-J"
11218 msgstr "mke2fs-J"
11219
11220 #. type: verbatim
11221 #: ../fish/guestfish-actions.pod:3030
11222 #, no-wrap
11223 msgid ""
11224 " mke2fs-J fstype blocksize device journal\n"
11225 "\n"
11226 msgstr ""
11227
11228 #. type: textblock
11229 #: ../fish/guestfish-actions.pod:3032 ../src/guestfs-actions.pod:4510
11230 msgid ""
11231 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11232 "C<journal>.  It is equivalent to the command:"
11233 msgstr ""
11234
11235 #. type: verbatim
11236 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
11237 #, no-wrap
11238 msgid ""
11239 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11240 "\n"
11241 msgstr ""
11242 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11243 "\n"
11244
11245 #. type: textblock
11246 #: ../fish/guestfish-actions.pod:3038
11247 msgid "See also L</mke2journal>."
11248 msgstr "Див. також L</mke2journal>."
11249
11250 #. type: =head2
11251 #: ../fish/guestfish-actions.pod:3040
11252 msgid "mke2fs-JL"
11253 msgstr "mke2fs-JL"
11254
11255 #. type: verbatim
11256 #: ../fish/guestfish-actions.pod:3042
11257 #, no-wrap
11258 msgid ""
11259 " mke2fs-JL fstype blocksize device label\n"
11260 "\n"
11261 msgstr ""
11262
11263 #. type: textblock
11264 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4531
11265 msgid ""
11266 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11267 "the journal labeled C<label>."
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:3047
11272 msgid "See also L</mke2journal-L>."
11273 msgstr "Див. також L</mke2journal-L>."
11274
11275 #. type: =head2
11276 #: ../fish/guestfish-actions.pod:3049
11277 msgid "mke2fs-JU"
11278 msgstr "mke2fs-JU"
11279
11280 #. type: verbatim
11281 #: ../fish/guestfish-actions.pod:3051
11282 #, no-wrap
11283 msgid ""
11284 " mke2fs-JU fstype blocksize device uuid\n"
11285 "\n"
11286 msgstr ""
11287
11288 #. type: textblock
11289 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4549
11290 msgid ""
11291 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11292 "the journal with UUID C<uuid>."
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:3056
11297 msgid "See also L</mke2journal-U>."
11298 msgstr "Див. також L</mke2journal-U>."
11299
11300 #. type: =head2
11301 #: ../fish/guestfish-actions.pod:3058
11302 msgid "mke2journal"
11303 msgstr "mke2journal"
11304
11305 #. type: verbatim
11306 #: ../fish/guestfish-actions.pod:3060
11307 #, no-wrap
11308 msgid ""
11309 " mke2journal blocksize device\n"
11310 "\n"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4565
11315 msgid ""
11316 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11317 "command:"
11318 msgstr ""
11319
11320 #. type: verbatim
11321 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4568
11322 #, no-wrap
11323 msgid ""
11324 " mke2fs -O journal_dev -b blocksize device\n"
11325 "\n"
11326 msgstr ""
11327
11328 #. type: =head2
11329 #: ../fish/guestfish-actions.pod:3067
11330 msgid "mke2journal-L"
11331 msgstr "mke2journal-L"
11332
11333 #. type: verbatim
11334 #: ../fish/guestfish-actions.pod:3069
11335 #, no-wrap
11336 msgid ""
11337 " mke2journal-L blocksize label device\n"
11338 "\n"
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4582
11343 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11344 msgstr ""
11345
11346 #. type: =head2
11347 #: ../fish/guestfish-actions.pod:3073
11348 msgid "mke2journal-U"
11349 msgstr "mke2journal-U"
11350
11351 #. type: verbatim
11352 #: ../fish/guestfish-actions.pod:3075
11353 #, no-wrap
11354 msgid ""
11355 " mke2journal-U blocksize uuid device\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4596
11361 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11362 msgstr ""
11363
11364 #. type: =head2
11365 #: ../fish/guestfish-actions.pod:3079
11366 msgid "mkfifo"
11367 msgstr "mkfifo"
11368
11369 #. type: verbatim
11370 #: ../fish/guestfish-actions.pod:3081
11371 #, no-wrap
11372 msgid ""
11373 " mkfifo mode path\n"
11374 "\n"
11375 msgstr ""
11376 " mkfifo режим шлях\n"
11377 "\n"
11378
11379 #. type: textblock
11380 #: ../fish/guestfish-actions.pod:3083
11381 msgid ""
11382 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11383 "is just a convenient wrapper around L</mknod>."
11384 msgstr ""
11385
11386 #. type: =head2
11387 #: ../fish/guestfish-actions.pod:3089
11388 msgid "mkfs"
11389 msgstr "mkfs"
11390
11391 #. type: verbatim
11392 #: ../fish/guestfish-actions.pod:3091
11393 #, no-wrap
11394 msgid ""
11395 " mkfs fstype device\n"
11396 "\n"
11397 msgstr ""
11398 " mkfs тип_файлової_системи пристрій\n"
11399 "\n"
11400
11401 #. type: textblock
11402 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4626
11403 msgid ""
11404 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11405 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11406 msgstr ""
11407
11408 #. type: =head2
11409 #: ../fish/guestfish-actions.pod:3097
11410 msgid "mkfs-b"
11411 msgstr "mkfs-b"
11412
11413 #. type: verbatim
11414 #: ../fish/guestfish-actions.pod:3099
11415 #, no-wrap
11416 msgid ""
11417 " mkfs-b fstype blocksize device\n"
11418 "\n"
11419 msgstr ""
11420
11421 #. type: textblock
11422 #: ../fish/guestfish-actions.pod:3101
11423 msgid ""
11424 "This call is similar to L</mkfs>, but it allows you to control the block "
11425 "size of the resulting filesystem.  Supported block sizes depend on the "
11426 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11427 msgstr ""
11428
11429 #. type: textblock
11430 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3133
11431 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4692
11432 msgid ""
11433 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11434 "cluster size."
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../fish/guestfish-actions.pod:3109
11439 msgid ""
11440 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
11441 "instead."
11442 msgstr ""
11443
11444 #. type: =head2
11445 #: ../fish/guestfish-actions.pod:3116
11446 msgid "mkfs-opts"
11447 msgstr "mkfs-opts"
11448
11449 #. type: verbatim
11450 #: ../fish/guestfish-actions.pod:3118
11451 #, no-wrap
11452 msgid ""
11453 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
11454 "\n"
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11459 msgid ""
11460 "This function creates a filesystem on C<device>.  The filesystem type is "
11461 "C<fstype>, for example C<ext3>."
11462 msgstr ""
11463
11464 #. type: =item
11465 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11466 msgid "C<blocksize>"
11467 msgstr "C<blocksize>"
11468
11469 #. type: textblock
11470 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11471 msgid ""
11472 "The filesystem block size.  Supported block sizes depend on the filesystem "
11473 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11474 "filesystems."
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4695
11479 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11480 msgstr ""
11481
11482 #. type: =item
11483 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4697
11484 msgid "C<features>"
11485 msgstr "C<features>"
11486
11487 #. type: textblock
11488 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
11489 msgid "This passes the I<-O> parameter to the external mkfs program."
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
11494 msgid ""
11495 "For certain filesystem types, this allows extra filesystem features to be "
11496 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11497 msgstr ""
11498
11499 #. type: textblock
11500 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
11501 msgid ""
11502 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11503 "type."
11504 msgstr ""
11505
11506 #. type: =item
11507 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4708
11508 msgid "C<inode>"
11509 msgstr ""
11510
11511 #. type: textblock
11512 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4710
11513 msgid ""
11514 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11515 "sets the inode size (only for ext2/3/4 filesystems at present)."
11516 msgstr ""
11517
11518 #. type: =item
11519 #: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4713
11520 msgid "C<sectorsize>"
11521 msgstr ""
11522
11523 #. type: textblock
11524 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4715
11525 msgid ""
11526 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11527 "sets sector size for ufs filesystem."
11528 msgstr ""
11529
11530 #. type: =head2
11531 #: ../fish/guestfish-actions.pod:3163
11532 msgid "mkmountpoint"
11533 msgstr "mkmountpoint"
11534
11535 #. type: verbatim
11536 #: ../fish/guestfish-actions.pod:3165
11537 #, no-wrap
11538 msgid ""
11539 " mkmountpoint exemptpath\n"
11540 "\n"
11541 msgstr ""
11542
11543 #. type: textblock
11544 #: ../fish/guestfish-actions.pod:3167
11545 msgid ""
11546 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11547 "to create extra mountpoints before mounting the first filesystem."
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4758
11552 msgid ""
11553 "These calls are I<only> necessary in some very limited circumstances, mainly "
11554 "the case where you want to mount a mix of unrelated and/or read-only "
11555 "filesystems together."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
11560 msgid ""
11561 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11562 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11563 "inside that.  You can unpack this as follows in guestfish:"
11564 msgstr ""
11565
11566 #. type: verbatim
11567 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4767
11568 #, no-wrap
11569 msgid ""
11570 " add-ro Fedora-11-i686-Live.iso\n"
11571 " run\n"
11572 " mkmountpoint /cd\n"
11573 " mkmountpoint /sqsh\n"
11574 " mkmountpoint /ext3fs\n"
11575 " mount /dev/sda /cd\n"
11576 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11577 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11578 "\n"
11579 msgstr ""
11580 " add-ro Fedora-11-i686-Live.iso\n"
11581 " run\n"
11582 " mkmountpoint /cd\n"
11583 " mkmountpoint /sqsh\n"
11584 " mkmountpoint /ext3fs\n"
11585 " mount /dev/sda /cd\n"
11586 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11587 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11588 "\n"
11589
11590 #. type: textblock
11591 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4776
11592 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3191
11597 msgid ""
11598 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11599 "unexpected errors if you try to mix these calls.  It is safest to manually "
11600 "unmount filesystems and remove mountpoints after use."
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:3195
11605 msgid ""
11606 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11607 "for this to work for manual mountpoints, you must ensure that the innermost "
11608 "mountpoints have the longest pathnames, as in the example code above."
11609 msgstr ""
11610
11611 #. type: textblock
11612 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4787
11613 msgid ""
11614 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../fish/guestfish-actions.pod:3202
11619 msgid ""
11620 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11621 "L</umount-all> to be called when the handle is closed which can also trigger "
11622 "these issues."
11623 msgstr ""
11624
11625 #. type: =head2
11626 #: ../fish/guestfish-actions.pod:3206
11627 msgid "mknod"
11628 msgstr "mknod"
11629
11630 #. type: verbatim
11631 #: ../fish/guestfish-actions.pod:3208
11632 #, no-wrap
11633 msgid ""
11634 " mknod mode devmajor devminor path\n"
11635 "\n"
11636 msgstr ""
11637
11638 #. type: textblock
11639 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4806
11640 msgid ""
11641 "This call creates block or character special devices, or named pipes (FIFOs)."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4809
11646 msgid ""
11647 "The C<mode> parameter should be the mode, using the standard constants.  "
11648 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11649 "used when creating block and character special devices."
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../fish/guestfish-actions.pod:3218
11654 msgid ""
11655 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11656 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11657 "regular file).  These constants are available in the standard Linux header "
11658 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11659 "wrappers around this command which bitwise OR in the appropriate constant "
11660 "for you."
11661 msgstr ""
11662
11663 #. type: =head2
11664 #: ../fish/guestfish-actions.pod:3228
11665 msgid "mknod-b"
11666 msgstr "mknod-b"
11667
11668 #. type: verbatim
11669 #: ../fish/guestfish-actions.pod:3230
11670 #, no-wrap
11671 msgid ""
11672 " mknod-b mode devmajor devminor path\n"
11673 "\n"
11674 msgstr ""
11675
11676 #. type: textblock
11677 #: ../fish/guestfish-actions.pod:3232
11678 msgid ""
11679 "This call creates a block device node called C<path> with mode C<mode> and "
11680 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11681 "wrapper around L</mknod>."
11682 msgstr ""
11683
11684 #. type: =head2
11685 #: ../fish/guestfish-actions.pod:3238
11686 msgid "mknod-c"
11687 msgstr "mknod-c"
11688
11689 #. type: verbatim
11690 #: ../fish/guestfish-actions.pod:3240
11691 #, no-wrap
11692 msgid ""
11693 " mknod-c mode devmajor devminor path\n"
11694 "\n"
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:3242
11699 msgid ""
11700 "This call creates a char device node called C<path> with mode C<mode> and "
11701 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11702 "wrapper around L</mknod>."
11703 msgstr ""
11704
11705 #. type: =head2
11706 #: ../fish/guestfish-actions.pod:3248
11707 msgid "mkswap"
11708 msgstr "mkswap"
11709
11710 #. type: verbatim
11711 #: ../fish/guestfish-actions.pod:3250
11712 #, no-wrap
11713 msgid ""
11714 " mkswap device\n"
11715 "\n"
11716 msgstr ""
11717 " mkswap пристрій\n"
11718 "\n"
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4872
11722 msgid "Create a swap partition on C<device>."
11723 msgstr ""
11724
11725 #. type: =head2
11726 #: ../fish/guestfish-actions.pod:3254
11727 msgid "mkswap-L"
11728 msgstr "mkswap-L"
11729
11730 #. type: verbatim
11731 #: ../fish/guestfish-actions.pod:3256
11732 #, no-wrap
11733 msgid ""
11734 " mkswap-L label device\n"
11735 "\n"
11736 msgstr ""
11737 " mkswap-L мітка пристрій\n"
11738 "\n"
11739
11740 #. type: textblock
11741 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4885
11742 msgid "Create a swap partition on C<device> with label C<label>."
11743 msgstr ""
11744
11745 #. type: textblock
11746 #: ../fish/guestfish-actions.pod:3260 ../src/guestfs-actions.pod:4887
11747 msgid ""
11748 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11749 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11750 "or swap tools."
11751 msgstr ""
11752
11753 #. type: =head2
11754 #: ../fish/guestfish-actions.pod:3264
11755 msgid "mkswap-U"
11756 msgstr "mkswap-U"
11757
11758 #. type: verbatim
11759 #: ../fish/guestfish-actions.pod:3266
11760 #, no-wrap
11761 msgid ""
11762 " mkswap-U uuid device\n"
11763 "\n"
11764 msgstr ""
11765 " mkswap-U uuid пристрій\n"
11766 "\n"
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4902
11770 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11771 msgstr ""
11772
11773 #. type: =head2
11774 #: ../fish/guestfish-actions.pod:3270
11775 msgid "mkswap-file"
11776 msgstr "mkswap-file"
11777
11778 #. type: verbatim
11779 #: ../fish/guestfish-actions.pod:3272
11780 #, no-wrap
11781 msgid ""
11782 " mkswap-file path\n"
11783 "\n"
11784 msgstr ""
11785 " mkswap-file шлях\n"
11786 "\n"
11787
11788 #. type: textblock
11789 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:4914
11790 msgid "Create a swap file."
11791 msgstr "Створити файл резервної пам’яті."
11792
11793 #. type: textblock
11794 #: ../fish/guestfish-actions.pod:3276
11795 msgid ""
11796 "This command just writes a swap file signature to an existing file.  To "
11797 "create the file itself, use something like L</fallocate>."
11798 msgstr ""
11799
11800 #. type: =head2
11801 #: ../fish/guestfish-actions.pod:3279
11802 msgid "modprobe"
11803 msgstr "modprobe"
11804
11805 #. type: verbatim
11806 #: ../fish/guestfish-actions.pod:3281
11807 #, no-wrap
11808 msgid ""
11809 " modprobe modulename\n"
11810 "\n"
11811 msgstr ""
11812 " modprobe назва_модуля\n"
11813 "\n"
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:4929
11817 msgid "This loads a kernel module in the appliance."
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:3285 ../src/guestfs-actions.pod:4931
11822 msgid ""
11823 "The kernel module must have been whitelisted when libguestfs was built (see "
11824 "C<appliance/kmod.whitelist.in> in the source)."
11825 msgstr ""
11826
11827 #. type: =head2
11828 #: ../fish/guestfish-actions.pod:3288
11829 msgid "mount"
11830 msgstr "mount"
11831
11832 #. type: verbatim
11833 #: ../fish/guestfish-actions.pod:3290
11834 #, no-wrap
11835 msgid ""
11836 " mount device mountpoint\n"
11837 "\n"
11838 msgstr ""
11839 " mount пристрій точка_монтування\n"
11840 "\n"
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:4945
11844 msgid ""
11845 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11846 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11847 "those block devices contain partitions, they will have the usual names (eg. "
11848 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11849 msgstr ""
11850
11851 #. type: textblock
11852 #: ../fish/guestfish-actions.pod:3298 ../src/guestfs-actions.pod:4951
11853 msgid ""
11854 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11855 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11856 "mounted on directories which already exist."
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4956
11861 msgid ""
11862 "The mounted filesystem is writable, if we have sufficient permissions on the "
11863 "underlying device."
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:3306
11868 msgid ""
11869 "B<Important note:> When you use this call, the filesystem options C<sync> "
11870 "and C<noatime> are set implicitly.  This was originally done because we "
11871 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11872 "very large negative performance impact and negligible effect on "
11873 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11874 "code that needs performance, and instead use L</mount-options> (use an empty "
11875 "string for the first parameter if you don't want any options)."
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../fish/guestfish-actions.pod:3316
11880 msgid ""
11881 "This function is deprecated.  In new code, use the L</mount_options> call "
11882 "instead."
11883 msgstr ""
11884
11885 #. type: =head2
11886 #: ../fish/guestfish-actions.pod:3323
11887 msgid "mount-9p"
11888 msgstr ""
11889
11890 #. type: verbatim
11891 #: ../fish/guestfish-actions.pod:3325
11892 #, no-wrap
11893 msgid ""
11894 " mount-9p mounttag mountpoint [options:..]\n"
11895 "\n"
11896 msgstr ""
11897
11898 #. type: textblock
11899 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:4995
11900 msgid ""
11901 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11902 "C<mountpoint>."
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:4998
11907 msgid ""
11908 "If required, C<trans=virtio> will be automatically added to the options.  "
11909 "Any other options required can be passed in the optional C<options> "
11910 "parameter."
11911 msgstr ""
11912
11913 #. type: =head2
11914 #: ../fish/guestfish-actions.pod:3336
11915 msgid "mount-loop"
11916 msgstr "mount-loop"
11917
11918 #. type: verbatim
11919 #: ../fish/guestfish-actions.pod:3338
11920 #, no-wrap
11921 msgid ""
11922 " mount-loop file mountpoint\n"
11923 "\n"
11924 msgstr ""
11925
11926 #. type: textblock
11927 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5037
11928 msgid ""
11929 "This command lets you mount C<file> (a filesystem image in a file) on a "
11930 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11931 "mountpoint>."
11932 msgstr ""
11933
11934 #. type: =head2
11935 #: ../fish/guestfish-actions.pod:3344
11936 msgid "mount-options"
11937 msgstr "mount-options"
11938
11939 #. type: verbatim
11940 #: ../fish/guestfish-actions.pod:3346
11941 #, no-wrap
11942 msgid ""
11943 " mount-options options device mountpoint\n"
11944 "\n"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:3348
11949 msgid ""
11950 "This is the same as the L</mount> command, but it allows you to set the "
11951 "mount options as for the L<mount(8)> I<-o> flag."
11952 msgstr ""
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5057
11956 msgid ""
11957 "If the C<options> parameter is an empty string, then no options are passed "
11958 "(all options default to whatever the filesystem uses)."
11959 msgstr ""
11960
11961 #. type: =head2
11962 #: ../fish/guestfish-actions.pod:3356
11963 msgid "mount-ro"
11964 msgstr "mount-ro"
11965
11966 #. type: verbatim
11967 #: ../fish/guestfish-actions.pod:3358
11968 #, no-wrap
11969 msgid ""
11970 " mount-ro device mountpoint\n"
11971 "\n"
11972 msgstr ""
11973 " mount-ro пристрій точка_монтування\n"
11974 "\n"
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:3360
11978 msgid ""
11979 "This is the same as the L</mount> command, but it mounts the filesystem with "
11980 "the read-only (I<-o ro>) flag."
11981 msgstr ""
11982
11983 #. type: =head2
11984 #: ../fish/guestfish-actions.pod:3363
11985 msgid "mount-vfs"
11986 msgstr "mount-vfs"
11987
11988 #. type: verbatim
11989 #: ../fish/guestfish-actions.pod:3365
11990 #, no-wrap
11991 msgid ""
11992 " mount-vfs options vfstype device mountpoint\n"
11993 "\n"
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:3367
11998 msgid ""
11999 "This is the same as the L</mount> command, but it allows you to set both the "
12000 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12001 msgstr ""
12002
12003 #. type: =head2
12004 #: ../fish/guestfish-actions.pod:3371
12005 msgid "mountpoints"
12006 msgstr "mountpoints"
12007
12008 #. type: verbatim
12009 #: ../fish/guestfish-actions.pod:3373
12010 #, no-wrap
12011 msgid ""
12012 " mountpoints\n"
12013 "\n"
12014 msgstr ""
12015 " mountpoints\n"
12016 "\n"
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:3375
12020 msgid ""
12021 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12022 "This one returns a hash table (map) of device name to directory where the "
12023 "device is mounted."
12024 msgstr ""
12025
12026 #. type: =head2
12027 #: ../fish/guestfish-actions.pod:3379
12028 msgid "mounts"
12029 msgstr "mounts"
12030
12031 #. type: verbatim
12032 #: ../fish/guestfish-actions.pod:3381
12033 #, no-wrap
12034 msgid ""
12035 " mounts\n"
12036 "\n"
12037 msgstr ""
12038 " mounts\n"
12039 "\n"
12040
12041 #. type: textblock
12042 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5118
12043 msgid ""
12044 "This returns the list of currently mounted filesystems.  It returns the list "
12045 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12046 msgstr ""
12047
12048 #. type: textblock
12049 #: ../fish/guestfish-actions.pod:3386 ../src/guestfs-actions.pod:5121
12050 msgid "Some internal mounts are not shown."
12051 msgstr ""
12052
12053 #. type: textblock
12054 #: ../fish/guestfish-actions.pod:3388
12055 msgid "See also: L</mountpoints>"
12056 msgstr "Див. також L</mountpoints>"
12057
12058 #. type: =head2
12059 #: ../fish/guestfish-actions.pod:3390
12060 msgid "mv"
12061 msgstr "mv"
12062
12063 #. type: verbatim
12064 #: ../fish/guestfish-actions.pod:3392
12065 #, no-wrap
12066 msgid ""
12067 " mv src dest\n"
12068 "\n"
12069 msgstr ""
12070 " mv джерело призначення\n"
12071 "\n"
12072
12073 #. type: textblock
12074 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5138
12075 msgid ""
12076 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12077 "destination filename or destination directory."
12078 msgstr ""
12079
12080 #. type: =head2
12081 #: ../fish/guestfish-actions.pod:3397
12082 msgid "ntfs-3g-probe"
12083 msgstr "ntfs-3g-probe"
12084
12085 #. type: verbatim
12086 #: ../fish/guestfish-actions.pod:3399
12087 #, no-wrap
12088 msgid ""
12089 " ntfs-3g-probe true|false device\n"
12090 "\n"
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5152
12095 msgid ""
12096 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12097 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12098 "write, and some cannot be mounted at all)."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
12103 msgid ""
12104 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12105 "can be mounted read-write.  Set it to false if you want to test if the "
12106 "volume can be mounted read-only."
12107 msgstr ""
12108
12109 #. type: textblock
12110 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
12111 msgid ""
12112 "The return value is an integer which C<0> if the operation would succeed, or "
12113 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12114 msgstr ""
12115
12116 #. type: =head2
12117 #: ../fish/guestfish-actions.pod:3413
12118 msgid "ntfsresize"
12119 msgstr "ntfsresize"
12120
12121 #. type: verbatim
12122 #: ../fish/guestfish-actions.pod:3415
12123 #, no-wrap
12124 msgid ""
12125 " ntfsresize device\n"
12126 "\n"
12127 msgstr ""
12128 " ntfsresize пристрій\n"
12129 "\n"
12130
12131 #. type: textblock
12132 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3441
12133 #: ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5213
12134 msgid ""
12135 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12136 "size of the underlying device."
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5177
12141 msgid ""
12142 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12143 "consistency check (for safety).  You have to boot into Windows to perform "
12144 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12145 "resize filesystems which have been marked in this way.  So in effect it is "
12146 "not possible to call ntfsresize multiple times on a single filesystem "
12147 "without booting into Windows between each resize."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:3428 ../fish/guestfish-actions.pod:3467
12152 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5239
12153 msgid "See also L<ntfsresize(8)>."
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3478
12158 msgid ""
12159 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
12160 "instead."
12161 msgstr ""
12162
12163 #. type: =head2
12164 #: ../fish/guestfish-actions.pod:3437
12165 msgid "ntfsresize-opts"
12166 msgstr ""
12167
12168 #. type: verbatim
12169 #: ../fish/guestfish-actions.pod:3439
12170 #, no-wrap
12171 msgid ""
12172 " ntfsresize-opts device [size:N] [force:true|false]\n"
12173 "\n"
12174 msgstr ""
12175
12176 #. type: textblock
12177 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5222
12178 msgid ""
12179 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12180 "resized to fit the container (eg. partition)."
12181 msgstr ""
12182
12183 #. type: =item
12184 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5225
12185 msgid "C<force>"
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5227
12190 msgid ""
12191 "If this option is true, then force the resize of the filesystem even if the "
12192 "filesystem is marked as requiring a consistency check."
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:3458
12197 msgid ""
12198 "After the resize operation, the filesystem is always marked as requiring a "
12199 "consistency check (for safety).  You have to boot into Windows to perform "
12200 "this check and clear this condition.  If you I<don't> set the C<force> "
12201 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12202 "a single filesystem without booting into Windows between each resize."
12203 msgstr ""
12204
12205 #. type: =head2
12206 #: ../fish/guestfish-actions.pod:3471
12207 msgid "ntfsresize-size"
12208 msgstr "ntfsresize-size"
12209
12210 #. type: verbatim
12211 #: ../fish/guestfish-actions.pod:3473
12212 #, no-wrap
12213 msgid ""
12214 " ntfsresize-size device size\n"
12215 "\n"
12216 msgstr ""
12217
12218 #. type: textblock
12219 #: ../fish/guestfish-actions.pod:3475
12220 msgid ""
12221 "This command is the same as L</ntfsresize> except that it allows you to "
12222 "specify the new size (in bytes) explicitly."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:3485
12227 msgid "part-add"
12228 msgstr "part-add"
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:3487
12232 #, no-wrap
12233 msgid ""
12234 " part-add device prlogex startsect endsect\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:3489
12240 msgid ""
12241 "This command adds a partition to C<device>.  If there is no partition table "
12242 "on the device, call L</part-init> first."
12243 msgstr ""
12244
12245 #. type: textblock
12246 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5300
12247 msgid ""
12248 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12249 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12250 "C<logical>) and C<e> (or C<extended>) partition types."
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5305
12255 msgid ""
12256 "C<startsect> and C<endsect> are the start and end of the partition in "
12257 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12258 "from the end of the disk (C<-1> is the last sector)."
12259 msgstr ""
12260
12261 #. type: textblock
12262 #: ../fish/guestfish-actions.pod:3501
12263 msgid ""
12264 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12265 "part-disk> to do that."
12266 msgstr ""
12267
12268 #. type: =head2
12269 #: ../fish/guestfish-actions.pod:3504
12270 msgid "part-del"
12271 msgstr "part-del"
12272
12273 #. type: verbatim
12274 #: ../fish/guestfish-actions.pod:3506
12275 #, no-wrap
12276 msgid ""
12277 " part-del device partnum\n"
12278 "\n"
12279 msgstr ""
12280
12281 #. type: textblock
12282 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5323
12283 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12284 msgstr ""
12285
12286 #. type: textblock
12287 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5325
12288 msgid ""
12289 "Note that in the case of MBR partitioning, deleting an extended partition "
12290 "also deletes any logical partitions it contains."
12291 msgstr ""
12292
12293 #. type: =head2
12294 #: ../fish/guestfish-actions.pod:3514
12295 msgid "part-disk"
12296 msgstr "part-disk"
12297
12298 #. type: verbatim
12299 #: ../fish/guestfish-actions.pod:3516
12300 #, no-wrap
12301 msgid ""
12302 " part-disk device parttype\n"
12303 "\n"
12304 msgstr ""
12305 " part-disk пристрій тип_розділу\n"
12306 "\n"
12307
12308 #. type: textblock
12309 #: ../fish/guestfish-actions.pod:3518
12310 msgid ""
12311 "This command is simply a combination of L</part-init> followed by L</part-"
12312 "add> to create a single primary partition covering the whole disk."
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:3522
12317 msgid ""
12318 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12319 "possible values are described in L</part-init>."
12320 msgstr ""
12321
12322 #. type: =head2
12323 #: ../fish/guestfish-actions.pod:3528
12324 msgid "part-get-bootable"
12325 msgstr "part-get-bootable"
12326
12327 #. type: verbatim
12328 #: ../fish/guestfish-actions.pod:3530
12329 #, no-wrap
12330 msgid ""
12331 " part-get-bootable device partnum\n"
12332 "\n"
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5361
12337 msgid ""
12338 "This command returns true if the partition C<partnum> on C<device> has the "
12339 "bootable flag set."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:3535
12344 msgid "See also L</part-set-bootable>."
12345 msgstr "Див. також L</part-set-bootable>."
12346
12347 #. type: =head2
12348 #: ../fish/guestfish-actions.pod:3537
12349 msgid "part-get-mbr-id"
12350 msgstr "part-get-mbr-id"
12351
12352 #. type: verbatim
12353 #: ../fish/guestfish-actions.pod:3539
12354 #, no-wrap
12355 msgid ""
12356 " part-get-mbr-id device partnum\n"
12357 "\n"
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5377
12362 msgid ""
12363 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12364 "partition C<partnum>."
12365 msgstr ""
12366
12367 #. type: textblock
12368 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3688
12369 msgid ""
12370 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12371 "undefined results for other partition table types (see L</part-get-"
12372 "parttype>)."
12373 msgstr ""
12374
12375 #. type: =head2
12376 #: ../fish/guestfish-actions.pod:3548
12377 msgid "part-get-parttype"
12378 msgstr "part-get-parttype"
12379
12380 #. type: verbatim
12381 #: ../fish/guestfish-actions.pod:3550
12382 #, no-wrap
12383 msgid ""
12384 " part-get-parttype device\n"
12385 "\n"
12386 msgstr ""
12387 " part-get-parttype пристрій\n"
12388 "\n"
12389
12390 #. type: textblock
12391 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5394
12392 msgid ""
12393 "This command examines the partition table on C<device> and returns the "
12394 "partition table type (format) being used."
12395 msgstr ""
12396
12397 #. type: textblock
12398 #: ../fish/guestfish-actions.pod:3555
12399 msgid ""
12400 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12401 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12402 "possible, although unusual.  See L</part-init> for a full list."
12403 msgstr ""
12404
12405 #. type: =head2
12406 #: ../fish/guestfish-actions.pod:3560
12407 msgid "part-init"
12408 msgstr "part-init"
12409
12410 #. type: verbatim
12411 #: ../fish/guestfish-actions.pod:3562
12412 #, no-wrap
12413 msgid ""
12414 " part-init device parttype\n"
12415 "\n"
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../fish/guestfish-actions.pod:3564 ../src/guestfs-actions.pod:5414
12420 msgid ""
12421 "This creates an empty partition table on C<device> of one of the partition "
12422 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12423 "(for large disks)."
12424 msgstr ""
12425
12426 #. type: textblock
12427 #: ../fish/guestfish-actions.pod:3568
12428 msgid ""
12429 "Initially there are no partitions.  Following this, you should call L</part-"
12430 "add> for each partition required."
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5421
12435 msgid "Possible values for C<parttype> are:"
12436 msgstr ""
12437
12438 #. type: =item
12439 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
12440 msgid "B<efi>"
12441 msgstr ""
12442
12443 #. type: =item
12444 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5427
12445 msgid "B<gpt>"
12446 msgstr ""
12447
12448 #. type: textblock
12449 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12450 msgid "Intel EFI / GPT partition table."
12451 msgstr ""
12452
12453 #. type: textblock
12454 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12455 msgid ""
12456 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12457 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12458 "the C<mbr> format."
12459 msgstr ""
12460
12461 #. type: =item
12462 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12463 msgid "B<mbr>"
12464 msgstr ""
12465
12466 #. type: =item
12467 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12468 msgid "B<msdos>"
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12473 msgid ""
12474 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12475 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12476 "TB.  For large disks we recommend using C<gpt>."
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
12481 msgid ""
12482 "Other partition table types that may work but are not supported include:"
12483 msgstr ""
12484
12485 #. type: =item
12486 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12487 msgid "B<aix>"
12488 msgstr "B<aix>"
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12492 msgid "AIX disk labels."
12493 msgstr "Мітки дисків AIX."
12494
12495 #. type: =item
12496 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12497 #, fuzzy
12498 #| msgid "B<amiga> | B<rdb>"
12499 msgid "B<amiga>"
12500 msgstr "B<amiga> | B<rdb>"
12501
12502 #. type: =item
12503 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12504 msgid "B<rdb>"
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12509 msgid "Amiga \"Rigid Disk Block\" format."
12510 msgstr "Формат \"Rigid Disk Block\" Amiga."
12511
12512 #. type: =item
12513 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12514 msgid "B<bsd>"
12515 msgstr "B<bsd>"
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
12519 msgid "BSD disk labels."
12520 msgstr "Мітки дисків BSD."
12521
12522 #. type: =item
12523 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
12524 msgid "B<dasd>"
12525 msgstr "B<dasd>"
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
12529 msgid "DASD, used on IBM mainframes."
12530 msgstr "DASD, використовувалися у мейнфреймах IBM."
12531
12532 #. type: =item
12533 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
12534 msgid "B<dvh>"
12535 msgstr "B<dvh>"
12536
12537 #. type: textblock
12538 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
12539 msgid "MIPS/SGI volumes."
12540 msgstr "Томи MIPS/SGI."
12541
12542 #. type: =item
12543 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
12544 msgid "B<mac>"
12545 msgstr "B<mac>"
12546
12547 #. type: textblock
12548 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
12549 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12550 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12551
12552 #. type: =item
12553 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
12554 msgid "B<pc98>"
12555 msgstr "B<pc98>"
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
12559 msgid "NEC PC-98 format, common in Japan apparently."
12560 msgstr "Формат NEC PC-98, поширений у Японії."
12561
12562 #. type: =item
12563 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
12564 msgid "B<sun>"
12565 msgstr "B<sun>"
12566
12567 #. type: textblock
12568 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
12569 msgid "Sun disk labels."
12570 msgstr "Мітки дисків Sun."
12571
12572 #. type: =head2
12573 #: ../fish/guestfish-actions.pod:3637
12574 msgid "part-list"
12575 msgstr "part-list"
12576
12577 #. type: verbatim
12578 #: ../fish/guestfish-actions.pod:3639
12579 #, no-wrap
12580 msgid ""
12581 " part-list device\n"
12582 "\n"
12583 msgstr ""
12584 " part-list device\n"
12585 "\n"
12586
12587 #. type: textblock
12588 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12589 msgid ""
12590 "This command parses the partition table on C<device> and returns the list of "
12591 "partitions found."
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5500
12596 msgid "The fields in the returned structure are:"
12597 msgstr ""
12598
12599 #. type: =item
12600 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
12601 msgid "B<part_num>"
12602 msgstr "B<part_num>"
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5506
12606 msgid "Partition number, counting from 1."
12607 msgstr ""
12608
12609 #. type: =item
12610 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
12611 msgid "B<part_start>"
12612 msgstr "B<part_start>"
12613
12614 #. type: textblock
12615 #: ../fish/guestfish-actions.pod:3654
12616 msgid ""
12617 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12618 "the device's sector size, see L</blockdev-getss>."
12619 msgstr ""
12620
12621 #. type: =item
12622 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5513
12623 msgid "B<part_end>"
12624 msgstr "B<part_end>"
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5515
12628 msgid "End of the partition in bytes."
12629 msgstr ""
12630
12631 #. type: =item
12632 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
12633 msgid "B<part_size>"
12634 msgstr "B<part_size>"
12635
12636 #. type: textblock
12637 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
12638 msgid "Size of the partition in bytes."
12639 msgstr ""
12640
12641 #. type: =head2
12642 #: ../fish/guestfish-actions.pod:3667
12643 msgid "part-set-bootable"
12644 msgstr "part-set-bootable"
12645
12646 #. type: verbatim
12647 #: ../fish/guestfish-actions.pod:3669
12648 #, no-wrap
12649 msgid ""
12650 " part-set-bootable device partnum true|false\n"
12651 "\n"
12652 msgstr ""
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5537
12656 msgid ""
12657 "This sets the bootable flag on partition numbered C<partnum> on device "
12658 "C<device>.  Note that partitions are numbered from 1."
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5540
12663 msgid ""
12664 "The bootable flag is used by some operating systems (notably Windows) to "
12665 "determine which partition to boot from.  It is by no means universally "
12666 "recognized."
12667 msgstr ""
12668
12669 #. type: =head2
12670 #: ../fish/guestfish-actions.pod:3678
12671 msgid "part-set-mbr-id"
12672 msgstr "part-set-mbr-id"
12673
12674 #. type: verbatim
12675 #: ../fish/guestfish-actions.pod:3680
12676 #, no-wrap
12677 msgid ""
12678 " part-set-mbr-id device partnum idbyte\n"
12679 "\n"
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5556
12684 msgid ""
12685 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12686 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12687 "documentation are in fact hexadecimal numbers, but usually documented "
12688 "without any leading \"0x\" which might be confusing."
12689 msgstr ""
12690
12691 #. type: =head2
12692 #: ../fish/guestfish-actions.pod:3692
12693 msgid "part-set-name"
12694 msgstr "part-set-name"
12695
12696 #. type: verbatim
12697 #: ../fish/guestfish-actions.pod:3694
12698 #, no-wrap
12699 msgid ""
12700 " part-set-name device partnum name\n"
12701 "\n"
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5578
12706 msgid ""
12707 "This sets the partition name on partition numbered C<partnum> on device "
12708 "C<device>.  Note that partitions are numbered from 1."
12709 msgstr ""
12710
12711 #. type: textblock
12712 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5581
12713 msgid ""
12714 "The partition name can only be set on certain types of partition table.  "
12715 "This works on C<gpt> but not on C<mbr> partitions."
12716 msgstr ""
12717
12718 #. type: =head2
12719 #: ../fish/guestfish-actions.pod:3702
12720 msgid "part-to-dev"
12721 msgstr "part-to-dev"
12722
12723 #. type: verbatim
12724 #: ../fish/guestfish-actions.pod:3704
12725 #, no-wrap
12726 msgid ""
12727 " part-to-dev partition\n"
12728 "\n"
12729 msgstr ""
12730 " part-to-dev розділ\n"
12731 "\n"
12732
12733 #. type: textblock
12734 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5594
12735 msgid ""
12736 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12737 "partition number, returning the device name (eg. \"/dev/sdb\")."
12738 msgstr ""
12739
12740 #. type: textblock
12741 #: ../fish/guestfish-actions.pod:3710
12742 msgid ""
12743 "The named partition must exist, for example as a string returned from L</"
12744 "list-partitions>."
12745 msgstr ""
12746
12747 #. type: =head2
12748 #: ../fish/guestfish-actions.pod:3713
12749 msgid "ping-daemon"
12750 msgstr "ping-daemon"
12751
12752 #. type: verbatim
12753 #: ../fish/guestfish-actions.pod:3715
12754 #, no-wrap
12755 msgid ""
12756 " ping-daemon\n"
12757 "\n"
12758 msgstr ""
12759 " ping-daemon\n"
12760 "\n"
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5611
12764 msgid ""
12765 "This is a test probe into the guestfs daemon running inside the qemu "
12766 "subprocess.  Calling this function checks that the daemon responds to the "
12767 "ping message, without affecting the daemon or attached block device(s) in "
12768 "any other way."
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../fish/guestfish-actions.pod:3722
12773 msgid "pread"
12774 msgstr "pread"
12775
12776 #. type: verbatim
12777 #: ../fish/guestfish-actions.pod:3724
12778 #, no-wrap
12779 msgid ""
12780 " pread path count offset\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5629
12786 msgid ""
12787 "This command lets you read part of a file.  It reads C<count> bytes of the "
12788 "file, starting at C<offset>, from file C<path>."
12789 msgstr ""
12790
12791 #. type: textblock
12792 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3744
12793 #: ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5658
12794 msgid ""
12795 "This may read fewer bytes than requested.  For further details see the "
12796 "L<pread(2)> system call."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:3732
12801 msgid "See also L</pwrite>, L</pread-device>."
12802 msgstr "Див. також L</pwrite>, L</pread-device>."
12803
12804 #. type: =head2
12805 #: ../fish/guestfish-actions.pod:3737
12806 msgid "pread-device"
12807 msgstr "pread-device"
12808
12809 #. type: verbatim
12810 #: ../fish/guestfish-actions.pod:3739
12811 #, no-wrap
12812 msgid ""
12813 " pread-device device count offset\n"
12814 "\n"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5655
12819 msgid ""
12820 "This command lets you read part of a file.  It reads C<count> bytes of "
12821 "C<device>, starting at C<offset>."
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../fish/guestfish-actions.pod:3747
12826 msgid "See also L</pread>."
12827 msgstr "Див. також L</pread>."
12828
12829 #. type: =head2
12830 #: ../fish/guestfish-actions.pod:3752
12831 msgid "pvcreate"
12832 msgstr "pvcreate"
12833
12834 #. type: verbatim
12835 #: ../fish/guestfish-actions.pod:3754
12836 #, no-wrap
12837 msgid ""
12838 " pvcreate device\n"
12839 "\n"
12840 msgstr ""
12841 " pvcreate пристрій\n"
12842 "\n"
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5678
12846 msgid ""
12847 "This creates an LVM physical volume on the named C<device>, where C<device> "
12848 "should usually be a partition name such as C</dev/sda1>."
12849 msgstr ""
12850
12851 #. type: =head2
12852 #: ../fish/guestfish-actions.pod:3760
12853 msgid "pvremove"
12854 msgstr "pvremove"
12855
12856 #. type: verbatim
12857 #: ../fish/guestfish-actions.pod:3762
12858 #, no-wrap
12859 msgid ""
12860 " pvremove device\n"
12861 "\n"
12862 msgstr ""
12863 " pvremove пристрій\n"
12864 "\n"
12865
12866 #. type: textblock
12867 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5692
12868 msgid ""
12869 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12870 "it."
12871 msgstr ""
12872
12873 #. type: textblock
12874 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5695
12875 msgid ""
12876 "The implementation uses the C<pvremove> command which refuses to wipe "
12877 "physical volumes that contain any volume groups, so you have to remove those "
12878 "first."
12879 msgstr ""
12880
12881 #. type: =head2
12882 #: ../fish/guestfish-actions.pod:3771
12883 msgid "pvresize"
12884 msgstr "pvresize"
12885
12886 #. type: verbatim
12887 #: ../fish/guestfish-actions.pod:3773
12888 #, no-wrap
12889 msgid ""
12890 " pvresize device\n"
12891 "\n"
12892 msgstr ""
12893 " pvresize пристрій\n"
12894 "\n"
12895
12896 #. type: textblock
12897 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5709
12898 msgid ""
12899 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12900 "the new size of the underlying device."
12901 msgstr ""
12902
12903 #. type: =head2
12904 #: ../fish/guestfish-actions.pod:3778
12905 msgid "pvresize-size"
12906 msgstr "pvresize-size"
12907
12908 #. type: verbatim
12909 #: ../fish/guestfish-actions.pod:3780
12910 #, no-wrap
12911 msgid ""
12912 " pvresize-size device size\n"
12913 "\n"
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:3782
12918 msgid ""
12919 "This command is the same as L</pvresize> except that it allows you to "
12920 "specify the new size (in bytes) explicitly."
12921 msgstr ""
12922
12923 #. type: =head2
12924 #: ../fish/guestfish-actions.pod:3785
12925 msgid "pvs"
12926 msgstr "pvs"
12927
12928 #. type: verbatim
12929 #: ../fish/guestfish-actions.pod:3787
12930 #, no-wrap
12931 msgid ""
12932 " pvs\n"
12933 "\n"
12934 msgstr ""
12935 " pvs\n"
12936 "\n"
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5735
12940 msgid ""
12941 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12942 "(8)> command."
12943 msgstr ""
12944
12945 #. type: textblock
12946 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5738
12947 msgid ""
12948 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12949 "sda2>)."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:3795
12954 msgid "See also L</pvs-full>."
12955 msgstr "Див. також L</pvs-full>."
12956
12957 #. type: =head2
12958 #: ../fish/guestfish-actions.pod:3797
12959 msgid "pvs-full"
12960 msgstr "pvs-full"
12961
12962 #. type: verbatim
12963 #: ../fish/guestfish-actions.pod:3799
12964 #, no-wrap
12965 msgid ""
12966 " pvs-full\n"
12967 "\n"
12968 msgstr ""
12969 " pvs-full\n"
12970 "\n"
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5754
12974 msgid ""
12975 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12976 "(8)> command.  The \"full\" version includes all fields."
12977 msgstr ""
12978
12979 #. type: =head2
12980 #: ../fish/guestfish-actions.pod:3804
12981 msgid "pvuuid"
12982 msgstr "pvuuid"
12983
12984 #. type: verbatim
12985 #: ../fish/guestfish-actions.pod:3806
12986 #, no-wrap
12987 msgid ""
12988 " pvuuid device\n"
12989 "\n"
12990 msgstr ""
12991 " pvuuid пристрій\n"
12992 "\n"
12993
12994 #. type: textblock
12995 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5769
12996 msgid "This command returns the UUID of the LVM PV C<device>."
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../fish/guestfish-actions.pod:3810
13001 msgid "pwrite"
13002 msgstr "pwrite"
13003
13004 #. type: verbatim
13005 #: ../fish/guestfish-actions.pod:3812
13006 #, no-wrap
13007 msgid ""
13008 " pwrite path content offset\n"
13009 "\n"
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5785
13014 msgid ""
13015 "This command writes to part of a file.  It writes the data buffer C<content> "
13016 "to the file C<path> starting at offset C<offset>."
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5788
13021 msgid ""
13022 "This command implements the L<pwrite(2)> system call, and like that system "
13023 "call it may not write the full data requested.  The return value is the "
13024 "number of bytes that were actually written to the file.  This could even be "
13025 "0, although short writes are unlikely for regular files in ordinary "
13026 "circumstances."
13027 msgstr ""
13028
13029 #. type: textblock
13030 #: ../fish/guestfish-actions.pod:3823
13031 msgid "See also L</pread>, L</pwrite-device>."
13032 msgstr "Див. також L</pread>, L</pwrite-device>."
13033
13034 #. type: =head2
13035 #: ../fish/guestfish-actions.pod:3828
13036 msgid "pwrite-device"
13037 msgstr "pwrite-device"
13038
13039 #. type: verbatim
13040 #: ../fish/guestfish-actions.pod:3830
13041 #, no-wrap
13042 msgid ""
13043 " pwrite-device device content offset\n"
13044 "\n"
13045 msgstr ""
13046
13047 #. type: textblock
13048 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5812
13049 msgid ""
13050 "This command writes to part of a device.  It writes the data buffer "
13051 "C<content> to C<device> starting at offset C<offset>."
13052 msgstr ""
13053
13054 #. type: textblock
13055 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5815
13056 msgid ""
13057 "This command implements the L<pwrite(2)> system call, and like that system "
13058 "call it may not write the full data requested (although short writes to disk "
13059 "devices and partitions are probably impossible with standard Linux kernels)."
13060 msgstr ""
13061
13062 #. type: textblock
13063 #: ../fish/guestfish-actions.pod:3840
13064 msgid "See also L</pwrite>."
13065 msgstr "Див. також L</pwrite>."
13066
13067 #. type: =head2
13068 #: ../fish/guestfish-actions.pod:3845
13069 msgid "read-file"
13070 msgstr "read-file"
13071
13072 #. type: verbatim
13073 #: ../fish/guestfish-actions.pod:3847
13074 #, no-wrap
13075 msgid ""
13076 " read-file path\n"
13077 "\n"
13078 msgstr ""
13079 " read-file шлях\n"
13080 "\n"
13081
13082 #. type: textblock
13083 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5836
13084 msgid "This calls returns the contents of the file C<path> as a buffer."
13085 msgstr ""
13086
13087 #. type: textblock
13088 #: ../fish/guestfish-actions.pod:3852
13089 msgid ""
13090 "Unlike L</cat>, this function can correctly handle files that contain "
13091 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13092 "is limited in the total size of file that can be handled."
13093 msgstr ""
13094
13095 #. type: =head2
13096 #: ../fish/guestfish-actions.pod:3860
13097 msgid "read-lines"
13098 msgstr "read-lines"
13099
13100 #. type: verbatim
13101 #: ../fish/guestfish-actions.pod:3862
13102 #, no-wrap
13103 msgid ""
13104 " read-lines path\n"
13105 "\n"
13106 msgstr ""
13107 " read-lines шлях\n"
13108 "\n"
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5861
13112 msgid ""
13113 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13114 "C<CRLF> character sequences are I<not> returned."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:3869
13119 msgid ""
13120 "Note that this function cannot correctly handle binary files (specifically, "
13121 "files containing C<\\0> character which is treated as end of line).  For "
13122 "those you need to use the L</read-file> function which has a more complex "
13123 "interface."
13124 msgstr ""
13125
13126 #. type: =head2
13127 #: ../fish/guestfish-actions.pod:3874
13128 msgid "readdir"
13129 msgstr "readdir"
13130
13131 #. type: verbatim
13132 #: ../fish/guestfish-actions.pod:3876
13133 #, no-wrap
13134 msgid ""
13135 " readdir dir\n"
13136 "\n"
13137 msgstr ""
13138 " readdir каталог\n"
13139 "\n"
13140
13141 #. type: textblock
13142 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
13143 msgid "This returns the list of directory entries in directory C<dir>."
13144 msgstr ""
13145
13146 #. type: textblock
13147 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
13148 msgid ""
13149 "All entries in the directory are returned, including C<.> and C<..>.  The "
13150 "entries are I<not> sorted, but returned in the same order as the underlying "
13151 "filesystem."
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13156 msgid ""
13157 "Also this call returns basic file type information about each file.  The "
13158 "C<ftyp> field will contain one of the following characters:"
13159 msgstr ""
13160
13161 #. type: =item
13162 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13163 msgid "'b'"
13164 msgstr "'b'"
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13168 msgid "Block special"
13169 msgstr "Блоковий особливий"
13170
13171 #. type: =item
13172 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13173 msgid "'c'"
13174 msgstr "'c'"
13175
13176 #. type: textblock
13177 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13178 msgid "Char special"
13179 msgstr "Символьний особливий"
13180
13181 #. type: =item
13182 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13183 msgid "'d'"
13184 msgstr "'d'"
13185
13186 #. type: textblock
13187 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13188 msgid "Directory"
13189 msgstr "Каталог"
13190
13191 #. type: =item
13192 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13193 msgid "'f'"
13194 msgstr "'f'"
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
13198 msgid "FIFO (named pipe)"
13199 msgstr "FIFO (іменований канал)"
13200
13201 #. type: =item
13202 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
13203 msgid "'l'"
13204 msgstr "'l'"
13205
13206 #. type: textblock
13207 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
13208 msgid "Symbolic link"
13209 msgstr "Символічне посилання"
13210
13211 #. type: =item
13212 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
13213 msgid "'r'"
13214 msgstr "'r'"
13215
13216 #. type: textblock
13217 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
13218 msgid "Regular file"
13219 msgstr "Звичайний файл"
13220
13221 #. type: =item
13222 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
13223 msgid "'s'"
13224 msgstr "'s'"
13225
13226 #. type: textblock
13227 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
13228 msgid "Socket"
13229 msgstr "Сокет"
13230
13231 #. type: =item
13232 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
13233 msgid "'u'"
13234 msgstr "'u'"
13235
13236 #. type: textblock
13237 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
13238 msgid "Unknown file type"
13239 msgstr "Невідомий тип файла"
13240
13241 #. type: =item
13242 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
13243 msgid "'?'"
13244 msgstr ""
13245
13246 #. type: textblock
13247 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
13248 msgid ""
13249 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:3928
13254 msgid ""
13255 "This function is primarily intended for use by programs.  To get a simple "
13256 "list of names, use L</ls>.  To get a printable directory for human "
13257 "consumption, use L</ll>."
13258 msgstr ""
13259
13260 #. type: =head2
13261 #: ../fish/guestfish-actions.pod:3932
13262 msgid "readlink"
13263 msgstr "readlink"
13264
13265 #. type: verbatim
13266 #: ../fish/guestfish-actions.pod:3934
13267 #, no-wrap
13268 msgid ""
13269 " readlink path\n"
13270 "\n"
13271 msgstr ""
13272 " readlink шлях\n"
13273 "\n"
13274
13275 #. type: textblock
13276 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:5947
13277 msgid "This command reads the target of a symbolic link."
13278 msgstr ""
13279
13280 #. type: =head2
13281 #: ../fish/guestfish-actions.pod:3938
13282 msgid "readlinklist"
13283 msgstr "readlinklist"
13284
13285 #. type: verbatim
13286 #: ../fish/guestfish-actions.pod:3940
13287 #, no-wrap
13288 msgid ""
13289 " readlinklist path 'names ...'\n"
13290 "\n"
13291 msgstr ""
13292
13293 #. type: textblock
13294 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:5961
13295 msgid ""
13296 "This call allows you to do a C<readlink> operation on multiple files, where "
13297 "all files are in the directory C<path>.  C<names> is the list of files from "
13298 "this directory."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
13303 msgid ""
13304 "On return you get a list of strings, with a one-to-one correspondence to the "
13305 "C<names> list.  Each string is the value of the symbolic link."
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
13310 msgid ""
13311 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13312 "result string is the empty string C<\"\">.  However the whole operation is "
13313 "completed even if there were C<readlink(2)> errors, and so you can call this "
13314 "function with names where you don't know if they are symbolic links already "
13315 "(albeit slightly less efficient)."
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5976
13320 msgid ""
13321 "This call is intended for programs that want to efficiently list a directory "
13322 "contents without making many round-trips.  Very long directory listings "
13323 "might cause the protocol message size to be exceeded, causing this call to "
13324 "fail.  The caller must split up such requests into smaller groups of names."
13325 msgstr ""
13326
13327 #. type: =head2
13328 #: ../fish/guestfish-actions.pod:3964
13329 msgid "realpath"
13330 msgstr "realpath"
13331
13332 #. type: verbatim
13333 #: ../fish/guestfish-actions.pod:3966
13334 #, no-wrap
13335 msgid ""
13336 " realpath path\n"
13337 "\n"
13338 msgstr ""
13339 " realpath шлях\n"
13340 "\n"
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:5995
13344 msgid ""
13345 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13346 "has no C<.>, C<..> or symbolic link path elements."
13347 msgstr ""
13348
13349 #. type: =head2
13350 #: ../fish/guestfish-actions.pod:3971
13351 msgid "removexattr"
13352 msgstr "removexattr"
13353
13354 #. type: verbatim
13355 #: ../fish/guestfish-actions.pod:3973
13356 #, no-wrap
13357 msgid ""
13358 " removexattr xattr path\n"
13359 "\n"
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6010
13364 msgid ""
13365 "This call removes the extended attribute named C<xattr> of the file C<path>."
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:3978
13370 msgid "See also: L</lremovexattr>, L<attr(5)>."
13371 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13372
13373 #. type: =head2
13374 #: ../fish/guestfish-actions.pod:3980
13375 msgid "resize2fs"
13376 msgstr "resize2fs"
13377
13378 #. type: verbatim
13379 #: ../fish/guestfish-actions.pod:3982
13380 #, no-wrap
13381 msgid ""
13382 " resize2fs device\n"
13383 "\n"
13384 msgstr ""
13385 " resize2fs пристрій\n"
13386 "\n"
13387
13388 #. type: textblock
13389 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6025
13390 msgid ""
13391 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13392 "underlying device."
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:3987
13397 msgid ""
13398 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13399 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13400 "gives an error about this and sometimes not.  In any case, it is always safe "
13401 "to call L</e2fsck-f> before calling this function."
13402 msgstr ""
13403
13404 #. type: =head2
13405 #: ../fish/guestfish-actions.pod:3993
13406 msgid "resize2fs-M"
13407 msgstr "resize2fs-M"
13408
13409 #. type: verbatim
13410 #: ../fish/guestfish-actions.pod:3995
13411 #, no-wrap
13412 msgid ""
13413 " resize2fs-M device\n"
13414 "\n"
13415 msgstr ""
13416 " resize2fs-M пристрій\n"
13417 "\n"
13418
13419 #. type: textblock
13420 #: ../fish/guestfish-actions.pod:3997
13421 msgid ""
13422 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13423 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13424 "command."
13425 msgstr ""
13426
13427 #. type: textblock
13428 #: ../fish/guestfish-actions.pod:4001
13429 msgid ""
13430 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13431 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13432 "multiplied together, give the resulting size of the minimal filesystem in "
13433 "bytes."
13434 msgstr ""
13435
13436 #. type: =head2
13437 #: ../fish/guestfish-actions.pod:4006
13438 msgid "resize2fs-size"
13439 msgstr "resize2fs-size"
13440
13441 #. type: verbatim
13442 #: ../fish/guestfish-actions.pod:4008
13443 #, no-wrap
13444 msgid ""
13445 " resize2fs-size device size\n"
13446 "\n"
13447 msgstr ""
13448
13449 #. type: textblock
13450 #: ../fish/guestfish-actions.pod:4010
13451 msgid ""
13452 "This command is the same as L</resize2fs> except that it allows you to "
13453 "specify the new size (in bytes) explicitly."
13454 msgstr ""
13455
13456 #. type: =head2
13457 #: ../fish/guestfish-actions.pod:4013
13458 msgid "rm"
13459 msgstr "rm"
13460
13461 #. type: verbatim
13462 #: ../fish/guestfish-actions.pod:4015
13463 #, no-wrap
13464 msgid ""
13465 " rm path\n"
13466 "\n"
13467 msgstr ""
13468 " rm шлях\n"
13469 "\n"
13470
13471 #. type: textblock
13472 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6077
13473 msgid "Remove the single file C<path>."
13474 msgstr ""
13475
13476 #. type: =head2
13477 #: ../fish/guestfish-actions.pod:4019
13478 msgid "rm-rf"
13479 msgstr "rm-rf"
13480
13481 #. type: verbatim
13482 #: ../fish/guestfish-actions.pod:4021
13483 #, no-wrap
13484 msgid ""
13485 " rm-rf path\n"
13486 "\n"
13487 msgstr ""
13488 " rm-rf шлях\n"
13489 "\n"
13490
13491 #. type: textblock
13492 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6089
13493 msgid ""
13494 "Remove the file or directory C<path>, recursively removing the contents if "
13495 "its a directory.  This is like the C<rm -rf> shell command."
13496 msgstr ""
13497
13498 #. type: =head2
13499 #: ../fish/guestfish-actions.pod:4027
13500 msgid "rmdir"
13501 msgstr "rmdir"
13502
13503 #. type: verbatim
13504 #: ../fish/guestfish-actions.pod:4029
13505 #, no-wrap
13506 msgid ""
13507 " rmdir path\n"
13508 "\n"
13509 msgstr ""
13510 " rmdir шлях\n"
13511 "\n"
13512
13513 #. type: textblock
13514 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6103
13515 msgid "Remove the single directory C<path>."
13516 msgstr ""
13517
13518 #. type: =head2
13519 #: ../fish/guestfish-actions.pod:4033
13520 msgid "rmmountpoint"
13521 msgstr "rmmountpoint"
13522
13523 #. type: verbatim
13524 #: ../fish/guestfish-actions.pod:4035
13525 #, no-wrap
13526 msgid ""
13527 " rmmountpoint exemptpath\n"
13528 "\n"
13529 msgstr ""
13530
13531 #. type: textblock
13532 #: ../fish/guestfish-actions.pod:4037
13533 msgid ""
13534 "This calls removes a mountpoint that was previously created with L</"
13535 "mkmountpoint>.  See L</mkmountpoint> for full details."
13536 msgstr ""
13537
13538 #. type: =head2
13539 #: ../fish/guestfish-actions.pod:4041
13540 msgid "scrub-device"
13541 msgstr "scrub-device"
13542
13543 #. type: verbatim
13544 #: ../fish/guestfish-actions.pod:4043
13545 #, no-wrap
13546 msgid ""
13547 " scrub-device device\n"
13548 "\n"
13549 msgstr ""
13550 " scrub-device пристрій\n"
13551 "\n"
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6129
13555 msgid ""
13556 "This command writes patterns over C<device> to make data retrieval more "
13557 "difficult."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:4048 ../fish/guestfish-actions.pod:4063
13562 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6132
13563 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
13564 msgid ""
13565 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13566 "more details."
13567 msgstr ""
13568
13569 #. type: =head2
13570 #: ../fish/guestfish-actions.pod:4054
13571 msgid "scrub-file"
13572 msgstr "scrub-file"
13573
13574 #. type: verbatim
13575 #: ../fish/guestfish-actions.pod:4056
13576 #, no-wrap
13577 msgid ""
13578 " scrub-file file\n"
13579 "\n"
13580 msgstr ""
13581 " scrub-file файл\n"
13582 "\n"
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6148
13586 msgid ""
13587 "This command writes patterns over a file to make data retrieval more "
13588 "difficult."
13589 msgstr ""
13590
13591 #. type: textblock
13592 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6151
13593 msgid "The file is I<removed> after scrubbing."
13594 msgstr ""
13595
13596 #. type: =head2
13597 #: ../fish/guestfish-actions.pod:4066
13598 msgid "scrub-freespace"
13599 msgstr "scrub-freespace"
13600
13601 #. type: verbatim
13602 #: ../fish/guestfish-actions.pod:4068
13603 #, no-wrap
13604 msgid ""
13605 " scrub-freespace dir\n"
13606 "\n"
13607 msgstr ""
13608 " scrub-freespace каталог\n"
13609 "\n"
13610
13611 #. type: textblock
13612 #: ../fish/guestfish-actions.pod:4070
13613 msgid ""
13614 "This command creates the directory C<dir> and then fills it with files until "
13615 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13616 "deletes them.  The intention is to scrub any free space on the partition "
13617 "containing C<dir>."
13618 msgstr ""
13619
13620 #. type: =head2
13621 #: ../fish/guestfish-actions.pod:4079
13622 msgid "set-append"
13623 msgstr "set-append"
13624
13625 #. type: =head2
13626 #: ../fish/guestfish-actions.pod:4081
13627 msgid "append"
13628 msgstr ""
13629
13630 #. type: verbatim
13631 #: ../fish/guestfish-actions.pod:4083
13632 #, no-wrap
13633 msgid ""
13634 " set-append append\n"
13635 "\n"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6185
13640 msgid ""
13641 "This function is used to add additional options to the guest kernel command "
13642 "line."
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6188
13647 msgid ""
13648 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13649 "environment variable."
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:4091 ../src/guestfs-actions.pod:6191
13654 msgid ""
13655 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13656 "(libguestfs always adds a few of its own)."
13657 msgstr ""
13658
13659 #. type: =head2
13660 #: ../fish/guestfish-actions.pod:4094
13661 msgid "set-attach-method"
13662 msgstr "set-attach-method"
13663
13664 #. type: =head2
13665 #: ../fish/guestfish-actions.pod:4096
13666 msgid "attach-method"
13667 msgstr ""
13668
13669 #. type: verbatim
13670 #: ../fish/guestfish-actions.pod:4098
13671 #, no-wrap
13672 msgid ""
13673 " set-attach-method attachmethod\n"
13674 "\n"
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6204
13679 msgid ""
13680 "Set the method that libguestfs uses to connect to the back end guestfsd "
13681 "daemon.  Possible methods are:"
13682 msgstr ""
13683
13684 #. type: =item
13685 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6209
13686 #: ../src/guestfs.pod:2803
13687 msgid "C<appliance>"
13688 msgstr "C<appliance>"
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6211
13692 msgid ""
13693 "Launch an appliance and connect to it.  This is the ordinary method and the "
13694 "default."
13695 msgstr ""
13696
13697 #. type: =item
13698 #: ../fish/guestfish-actions.pod:4110 ../src/guestfs-actions.pod:6214
13699 msgid "C<unix:I<path>>"
13700 msgstr "C<unix:I<шлях>>"
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:4112 ../src/guestfs-actions.pod:6216
13704 msgid "Connect to the Unix domain socket I<path>."
13705 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13706
13707 #. type: textblock
13708 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
13709 msgid ""
13710 "This method lets you connect to an existing daemon or (using virtio-serial) "
13711 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13712 "RUNNING DAEMONS>."
13713 msgstr ""
13714
13715 #. type: =head2
13716 #: ../fish/guestfish-actions.pod:4120
13717 msgid "set-autosync"
13718 msgstr "set-autosync"
13719
13720 #. type: =head2
13721 #: ../fish/guestfish-actions.pod:4122
13722 msgid "autosync"
13723 msgstr "autosync"
13724
13725 #. type: verbatim
13726 #: ../fish/guestfish-actions.pod:4124
13727 #, no-wrap
13728 msgid ""
13729 " set-autosync true|false\n"
13730 "\n"
13731 msgstr ""
13732 " set-autosync true|false\n"
13733 "\n"
13734
13735 #. type: textblock
13736 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6234
13737 msgid ""
13738 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13739 "effort attempt to make filesystems consistent and synchronized when the "
13740 "handle is closed (also if the program exits without closing handles)."
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6239
13745 msgid ""
13746 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13747 "disabled by default)."
13748 msgstr ""
13749
13750 #. type: =head2
13751 #: ../fish/guestfish-actions.pod:4134
13752 msgid "set-direct"
13753 msgstr "set-direct"
13754
13755 #. type: =head2
13756 #: ../fish/guestfish-actions.pod:4136
13757 msgid "direct"
13758 msgstr "direct"
13759
13760 #. type: verbatim
13761 #: ../fish/guestfish-actions.pod:4138
13762 #, no-wrap
13763 msgid ""
13764 " set-direct true|false\n"
13765 "\n"
13766 msgstr ""
13767 " set-direct true|false\n"
13768 "\n"
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6252
13772 msgid ""
13773 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13774 "passed directly through to the appliance once it is launched."
13775 msgstr ""
13776
13777 #. type: textblock
13778 #: ../fish/guestfish-actions.pod:4144
13779 msgid ""
13780 "One consequence of this is that log messages aren't caught by the library "
13781 "and handled by L</set-log-message-callback>, but go straight to stdout."
13782 msgstr ""
13783
13784 #. type: textblock
13785 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6260
13786 msgid "You probably don't want to use this unless you know what you are doing."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:4151 ../src/guestfs-actions.pod:6263
13791 msgid "The default is disabled."
13792 msgstr ""
13793
13794 #. type: =head2
13795 #: ../fish/guestfish-actions.pod:4153
13796 msgid "set-e2label"
13797 msgstr "set-e2label"
13798
13799 #. type: verbatim
13800 #: ../fish/guestfish-actions.pod:4155
13801 #, no-wrap
13802 msgid ""
13803 " set-e2label device label\n"
13804 "\n"
13805 msgstr ""
13806
13807 #. type: textblock
13808 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6276
13809 msgid ""
13810 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13811 "C<label>.  Filesystem labels are limited to 16 characters."
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../fish/guestfish-actions.pod:4161
13816 msgid ""
13817 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13818 "label on a filesystem."
13819 msgstr ""
13820
13821 #. type: =head2
13822 #: ../fish/guestfish-actions.pod:4164
13823 msgid "set-e2uuid"
13824 msgstr "set-e2uuid"
13825
13826 #. type: verbatim
13827 #: ../fish/guestfish-actions.pod:4166
13828 #, no-wrap
13829 msgid ""
13830 " set-e2uuid device uuid\n"
13831 "\n"
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:4168 ../src/guestfs-actions.pod:6294
13836 msgid ""
13837 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13838 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13839 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13840 msgstr ""
13841
13842 #. type: textblock
13843 #: ../fish/guestfish-actions.pod:4173
13844 msgid ""
13845 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13846 "UUID of a filesystem."
13847 msgstr ""
13848
13849 #. type: =head2
13850 #: ../fish/guestfish-actions.pod:4176
13851 msgid "set-memsize"
13852 msgstr "set-memsize"
13853
13854 #. type: =head2
13855 #: ../fish/guestfish-actions.pod:4178
13856 msgid "memsize"
13857 msgstr ""
13858
13859 #. type: verbatim
13860 #: ../fish/guestfish-actions.pod:4180
13861 #, no-wrap
13862 msgid ""
13863 " set-memsize memsize\n"
13864 "\n"
13865 msgstr ""
13866
13867 #. type: textblock
13868 #: ../fish/guestfish-actions.pod:4182
13869 msgid ""
13870 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13871 "This only has any effect if called before L</launch>."
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6316
13876 msgid ""
13877 "You can also change this by setting the environment variable "
13878 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13879 msgstr ""
13880
13881 #. type: =head2
13882 #: ../fish/guestfish-actions.pod:4193
13883 msgid "set-network"
13884 msgstr "set-network"
13885
13886 #. type: =head2
13887 #: ../fish/guestfish-actions.pod:4195
13888 msgid "network"
13889 msgstr "network"
13890
13891 #. type: verbatim
13892 #: ../fish/guestfish-actions.pod:4197
13893 #, no-wrap
13894 msgid ""
13895 " set-network true|false\n"
13896 "\n"
13897 msgstr ""
13898 " set-network true|false\n"
13899 "\n"
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6333
13903 msgid ""
13904 "If C<network> is true, then the network is enabled in the libguestfs "
13905 "appliance.  The default is false."
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6336
13910 msgid ""
13911 "This affects whether commands are able to access the network (see L<guestfs"
13912 "(3)/RUNNING COMMANDS>)."
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:4205
13917 msgid ""
13918 "You must call this before calling L</launch>, otherwise it has no effect."
13919 msgstr ""
13920
13921 #. type: =head2
13922 #: ../fish/guestfish-actions.pod:4208
13923 msgid "set-path"
13924 msgstr "set-path"
13925
13926 #. type: verbatim
13927 #: ../fish/guestfish-actions.pod:4212
13928 #, no-wrap
13929 msgid ""
13930 " set-path searchpath\n"
13931 "\n"
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../fish/guestfish-actions.pod:4214 ../src/guestfs-actions.pod:6352
13936 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6354
13941 msgid ""
13942 "The default is C<$libdir/guestfs> unless overridden by setting "
13943 "C<LIBGUESTFS_PATH> environment variable."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6357
13948 msgid "Setting C<path> to C<NULL> restores the default path."
13949 msgstr ""
13950
13951 #. type: =head2
13952 #: ../fish/guestfish-actions.pod:4221
13953 msgid "set-pgroup"
13954 msgstr ""
13955
13956 #. type: =head2
13957 #: ../fish/guestfish-actions.pod:4223
13958 msgid "pgroup"
13959 msgstr ""
13960
13961 #. type: verbatim
13962 #: ../fish/guestfish-actions.pod:4225
13963 #, no-wrap
13964 msgid ""
13965 " set-pgroup true|false\n"
13966 "\n"
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6369
13971 msgid ""
13972 "If C<pgroup> is true, child processes are placed into their own process "
13973 "group."
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6372
13978 msgid ""
13979 "The practical upshot of this is that signals like C<SIGINT> (from users "
13980 "pressing C<^C>) won't be received by the child process."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6375
13985 msgid ""
13986 "The default for this flag is false, because usually you want C<^C> to kill "
13987 "the subprocess."
13988 msgstr ""
13989
13990 #. type: =head2
13991 #: ../fish/guestfish-actions.pod:4236
13992 msgid "set-qemu"
13993 msgstr "set-qemu"
13994
13995 #. type: =head2
13996 #: ../fish/guestfish-actions.pod:4238
13997 msgid "qemu"
13998 msgstr "qemu"
13999
14000 #. type: verbatim
14001 #: ../fish/guestfish-actions.pod:4240
14002 #, no-wrap
14003 msgid ""
14004 " set-qemu qemu\n"
14005 "\n"
14006 msgstr ""
14007 " set-qemu qemu\n"
14008 "\n"
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:4242 ../src/guestfs-actions.pod:6388
14012 msgid "Set the qemu binary that we will use."
14013 msgstr ""
14014
14015 #. type: textblock
14016 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6390
14017 msgid ""
14018 "The default is chosen when the library was compiled by the configure script."
14019 msgstr ""
14020
14021 #. type: textblock
14022 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6393
14023 msgid ""
14024 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14025 "variable."
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6396
14030 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6398
14035 msgid ""
14036 "Note that you should call this function as early as possible after creating "
14037 "the handle.  This is because some pre-launch operations depend on testing "
14038 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14039 "don't retest features, and so you might see inconsistent results.  Using the "
14040 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14041 "the qemu binary at the same time as the handle is created."
14042 msgstr ""
14043
14044 #. type: =head2
14045 #: ../fish/guestfish-actions.pod:4260
14046 msgid "set-recovery-proc"
14047 msgstr "set-recovery-proc"
14048
14049 #. type: =head2
14050 #: ../fish/guestfish-actions.pod:4262
14051 msgid "recovery-proc"
14052 msgstr "recovery-proc"
14053
14054 #. type: verbatim
14055 #: ../fish/guestfish-actions.pod:4264
14056 #, no-wrap
14057 msgid ""
14058 " set-recovery-proc true|false\n"
14059 "\n"
14060 msgstr ""
14061 " set-recovery-proc true|false\n"
14062 "\n"
14063
14064 #. type: textblock
14065 #: ../fish/guestfish-actions.pod:4266
14066 msgid ""
14067 "If this is called with the parameter C<false> then L</launch> does not "
14068 "create a recovery process.  The purpose of the recovery process is to stop "
14069 "runaway qemu processes in the case where the main program aborts abruptly."
14070 msgstr ""
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:4271
14074 msgid ""
14075 "This only has any effect if called before L</launch>, and the default is "
14076 "true."
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6424
14081 msgid ""
14082 "About the only time when you would want to disable this is if the main "
14083 "process will fork itself into the background (\"daemonize\" itself).  In "
14084 "this case the recovery process thinks that the main program has disappeared "
14085 "and so kills qemu, which is not very helpful."
14086 msgstr ""
14087
14088 #. type: =head2
14089 #: ../fish/guestfish-actions.pod:4280
14090 msgid "set-selinux"
14091 msgstr "set-selinux"
14092
14093 #. type: =head2
14094 #: ../fish/guestfish-actions.pod:4282
14095 msgid "selinux"
14096 msgstr "selinux"
14097
14098 #. type: verbatim
14099 #: ../fish/guestfish-actions.pod:4284
14100 #, no-wrap
14101 msgid ""
14102 " set-selinux true|false\n"
14103 "\n"
14104 msgstr ""
14105 " set-selinux true|false\n"
14106 "\n"
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6440
14110 msgid ""
14111 "This sets the selinux flag that is passed to the appliance at boot time.  "
14112 "The default is C<selinux=0> (disabled)."
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6443
14117 msgid ""
14118 "Note that if SELinux is enabled, it is always in Permissive mode "
14119 "(C<enforcing=0>)."
14120 msgstr ""
14121
14122 #. type: =head2
14123 #: ../fish/guestfish-actions.pod:4295
14124 msgid "set-trace"
14125 msgstr "set-trace"
14126
14127 #. type: =head2
14128 #: ../fish/guestfish-actions.pod:4297
14129 msgid "trace"
14130 msgstr "trace"
14131
14132 #. type: verbatim
14133 #: ../fish/guestfish-actions.pod:4299
14134 #, no-wrap
14135 msgid ""
14136 " set-trace true|false\n"
14137 "\n"
14138 msgstr ""
14139 " set-trace true|false\n"
14140 "\n"
14141
14142 #. type: textblock
14143 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6459
14144 msgid ""
14145 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14146 "return values are traced."
14147 msgstr ""
14148
14149 #. type: textblock
14150 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6462
14151 msgid ""
14152 "If you want to trace C API calls into libguestfs (and other libraries) then "
14153 "possibly a better way is to use the external ltrace(1) command."
14154 msgstr ""
14155
14156 #. type: textblock
14157 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
14158 msgid ""
14159 "Command traces are disabled unless the environment variable "
14160 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:4311
14165 msgid ""
14166 "Trace messages are normally sent to C<stderr>, unless you register a "
14167 "callback to send them somewhere else (see L</set-event-callback>)."
14168 msgstr ""
14169
14170 #. type: =head2
14171 #: ../fish/guestfish-actions.pod:4315
14172 msgid "set-verbose"
14173 msgstr "set-verbose"
14174
14175 #. type: =head2
14176 #: ../fish/guestfish-actions.pod:4317
14177 msgid "verbose"
14178 msgstr ""
14179
14180 #. type: verbatim
14181 #: ../fish/guestfish-actions.pod:4319
14182 #, no-wrap
14183 msgid ""
14184 " set-verbose true|false\n"
14185 "\n"
14186 msgstr ""
14187 " set-verbose true|false\n"
14188 "\n"
14189
14190 #. type: textblock
14191 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6483
14192 msgid "If C<verbose> is true, this turns on verbose messages."
14193 msgstr ""
14194
14195 #. type: textblock
14196 #: ../fish/guestfish-actions.pod:4323 ../src/guestfs-actions.pod:6485
14197 msgid ""
14198 "Verbose messages are disabled unless the environment variable "
14199 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../fish/guestfish-actions.pod:4326
14204 msgid ""
14205 "Verbose messages are normally sent to C<stderr>, unless you register a "
14206 "callback to send them somewhere else (see L</set-event-callback>)."
14207 msgstr ""
14208
14209 #. type: =head2
14210 #: ../fish/guestfish-actions.pod:4330
14211 msgid "setcon"
14212 msgstr "setcon"
14213
14214 #. type: verbatim
14215 #: ../fish/guestfish-actions.pod:4332
14216 #, no-wrap
14217 msgid ""
14218 " setcon context\n"
14219 "\n"
14220 msgstr ""
14221 " setcon контекст\n"
14222 "\n"
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6502
14226 msgid ""
14227 "This sets the SELinux security context of the daemon to the string "
14228 "C<context>."
14229 msgstr ""
14230
14231 #. type: textblock
14232 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6505
14233 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14234 msgstr ""
14235
14236 #. type: =head2
14237 #: ../fish/guestfish-actions.pod:4339
14238 msgid "setxattr"
14239 msgstr "setxattr"
14240
14241 #. type: verbatim
14242 #: ../fish/guestfish-actions.pod:4341
14243 #, no-wrap
14244 msgid ""
14245 " setxattr xattr val vallen path\n"
14246 "\n"
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6520
14251 msgid ""
14252 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14253 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14254 msgstr ""
14255
14256 #. type: textblock
14257 #: ../fish/guestfish-actions.pod:4347
14258 msgid "See also: L</lsetxattr>, L<attr(5)>."
14259 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14260
14261 #. type: =head2
14262 #: ../fish/guestfish-actions.pod:4349
14263 msgid "sfdisk"
14264 msgstr "sfdisk"
14265
14266 #. type: verbatim
14267 #: ../fish/guestfish-actions.pod:4351
14268 #, no-wrap
14269 msgid ""
14270 " sfdisk device cyls heads sectors 'lines ...'\n"
14271 "\n"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6540
14276 msgid ""
14277 "This is a direct interface to the L<sfdisk(8)> program for creating "
14278 "partitions on block devices."
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6543
14283 msgid "C<device> should be a block device, for example C</dev/sda>."
14284 msgstr ""
14285
14286 #. type: textblock
14287 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6545
14288 msgid ""
14289 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14290 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14291 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14292 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14293 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14294 "the kernel) cannot work out the right geometry and you will need to tell it."
14295 msgstr ""
14296
14297 #. type: textblock
14298 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6553
14299 msgid ""
14300 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14301 "refer to the L<sfdisk(8)> manpage."
14302 msgstr ""
14303
14304 #. type: textblock
14305 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6556
14306 msgid ""
14307 "To create a single partition occupying the whole disk, you would pass "
14308 "C<lines> as a single element list, when the single element being the string "
14309 "C<,> (comma)."
14310 msgstr ""
14311
14312 #. type: textblock
14313 #: ../fish/guestfish-actions.pod:4373
14314 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14315 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14316
14317 #. type: textblock
14318 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4402
14319 #: ../fish/guestfish-actions.pod:4424
14320 msgid ""
14321 "This function is deprecated.  In new code, use the L</part_add> call instead."
14322 msgstr ""
14323
14324 #. type: =head2
14325 #: ../fish/guestfish-actions.pod:4386
14326 msgid "sfdiskM"
14327 msgstr "sfdiskM"
14328
14329 #. type: verbatim
14330 #: ../fish/guestfish-actions.pod:4388
14331 #, no-wrap
14332 msgid ""
14333 " sfdiskM device 'lines ...'\n"
14334 "\n"
14335 msgstr ""
14336
14337 #. type: textblock
14338 #: ../fish/guestfish-actions.pod:4390
14339 msgid ""
14340 "This is a simplified interface to the L</sfdisk> command, where partition "
14341 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14342 "you don't need to specify the cyls, heads and sectors parameters which were "
14343 "rarely if ever used anyway."
14344 msgstr ""
14345
14346 #. type: textblock
14347 #: ../fish/guestfish-actions.pod:4396
14348 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14349 msgstr ""
14350 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14351
14352 #. type: =head2
14353 #: ../fish/guestfish-actions.pod:4409
14354 msgid "sfdisk-N"
14355 msgstr "sfdisk-N"
14356
14357 #. type: verbatim
14358 #: ../fish/guestfish-actions.pod:4411
14359 #, no-wrap
14360 msgid ""
14361 " sfdisk-N device partnum cyls heads sectors line\n"
14362 "\n"
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6618
14367 msgid ""
14368 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14369 "(note: C<n> counts from 1)."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:4416
14374 msgid ""
14375 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14376 "cyls/heads/sectors parameters."
14377 msgstr ""
14378
14379 #. type: textblock
14380 #: ../fish/guestfish-actions.pod:4419
14381 msgid "See also: L</part-add>"
14382 msgstr "Див. також L</part-add>"
14383
14384 #. type: =head2
14385 #: ../fish/guestfish-actions.pod:4431
14386 msgid "sfdisk-disk-geometry"
14387 msgstr "sfdisk-disk-geometry"
14388
14389 #. type: verbatim
14390 #: ../fish/guestfish-actions.pod:4433
14391 #, no-wrap
14392 msgid ""
14393 " sfdisk-disk-geometry device\n"
14394 "\n"
14395 msgstr ""
14396 " sfdisk-disk-geometry пристрій\n"
14397 "\n"
14398
14399 #. type: textblock
14400 #: ../fish/guestfish-actions.pod:4435
14401 msgid ""
14402 "This displays the disk geometry of C<device> read from the partition table.  "
14403 "Especially in the case where the underlying block device has been resized, "
14404 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14405 "kernel-geometry>)."
14406 msgstr ""
14407
14408 #. type: textblock
14409 #: ../fish/guestfish-actions.pod:4440 ../fish/guestfish-actions.pod:4449
14410 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6667
14411 msgid "The result is in human-readable format, and not designed to be parsed."
14412 msgstr ""
14413
14414 #. type: =head2
14415 #: ../fish/guestfish-actions.pod:4443
14416 msgid "sfdisk-kernel-geometry"
14417 msgstr "sfdisk-kernel-geometry"
14418
14419 #. type: verbatim
14420 #: ../fish/guestfish-actions.pod:4445
14421 #, no-wrap
14422 msgid ""
14423 " sfdisk-kernel-geometry device\n"
14424 "\n"
14425 msgstr ""
14426 " sfdisk-kernel-geometry пристрій\n"
14427 "\n"
14428
14429 #. type: textblock
14430 #: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:6665
14431 msgid "This displays the kernel's idea of the geometry of C<device>."
14432 msgstr ""
14433
14434 #. type: =head2
14435 #: ../fish/guestfish-actions.pod:4452
14436 msgid "sfdisk-l"
14437 msgstr "sfdisk-l"
14438
14439 #. type: verbatim
14440 #: ../fish/guestfish-actions.pod:4454
14441 #, no-wrap
14442 msgid ""
14443 " sfdisk-l device\n"
14444 "\n"
14445 msgstr ""
14446 " sfdisk-l пристрій\n"
14447 "\n"
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6681
14451 msgid ""
14452 "This displays the partition table on C<device>, in the human-readable output "
14453 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4460
14458 msgid "See also: L</part-list>"
14459 msgstr "Див. також L</part-list>"
14460
14461 #. type: textblock
14462 #: ../fish/guestfish-actions.pod:4462
14463 msgid ""
14464 "This function is deprecated.  In new code, use the L</part_list> call "
14465 "instead."
14466 msgstr ""
14467
14468 #. type: =head2
14469 #: ../fish/guestfish-actions.pod:4469
14470 msgid "sh"
14471 msgstr "sh"
14472
14473 #. type: verbatim
14474 #: ../fish/guestfish-actions.pod:4471
14475 #, no-wrap
14476 msgid ""
14477 " sh command\n"
14478 "\n"
14479 msgstr ""
14480 " sh команда\n"
14481 "\n"
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6705
14485 msgid ""
14486 "This call runs a command from the guest filesystem via the guest's C</bin/"
14487 "sh>."
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4476
14492 msgid "This is like L</command>, but passes the command to:"
14493 msgstr ""
14494
14495 #. type: verbatim
14496 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6710
14497 #, no-wrap
14498 msgid ""
14499 " /bin/sh -c \"command\"\n"
14500 "\n"
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6712
14505 msgid ""
14506 "Depending on the guest's shell, this usually results in wildcards being "
14507 "expanded, shell expressions being interpolated and so on."
14508 msgstr ""
14509
14510 #. type: textblock
14511 #: ../fish/guestfish-actions.pod:4484
14512 msgid "All the provisos about L</command> apply to this call."
14513 msgstr ""
14514
14515 #. type: =head2
14516 #: ../fish/guestfish-actions.pod:4486
14517 msgid "sh-lines"
14518 msgstr "sh-lines"
14519
14520 #. type: verbatim
14521 #: ../fish/guestfish-actions.pod:4488
14522 #, no-wrap
14523 msgid ""
14524 " sh-lines command\n"
14525 "\n"
14526 msgstr ""
14527 " sh-lines команда\n"
14528 "\n"
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:4490
14532 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14533 msgstr ""
14534
14535 #. type: textblock
14536 #: ../fish/guestfish-actions.pod:4493
14537 msgid "See also: L</command-lines>"
14538 msgstr "Див. також L</command-lines>"
14539
14540 #. type: =head2
14541 #: ../fish/guestfish-actions.pod:4495
14542 msgid "sleep"
14543 msgstr "sleep"
14544
14545 #. type: verbatim
14546 #: ../fish/guestfish-actions.pod:4497
14547 #, no-wrap
14548 msgid ""
14549 " sleep secs\n"
14550 "\n"
14551 msgstr ""
14552 " sleep час_у_секундах\n"
14553 "\n"
14554
14555 #. type: textblock
14556 #: ../fish/guestfish-actions.pod:4499 ../src/guestfs-actions.pod:6746
14557 msgid "Sleep for C<secs> seconds."
14558 msgstr ""
14559
14560 #. type: =head2
14561 #: ../fish/guestfish-actions.pod:4501
14562 msgid "stat"
14563 msgstr "stat"
14564
14565 #. type: verbatim
14566 #: ../fish/guestfish-actions.pod:4503
14567 #, no-wrap
14568 msgid ""
14569 " stat path\n"
14570 "\n"
14571 msgstr ""
14572 " stat шлях\n"
14573 "\n"
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6760
14577 msgid "This is the same as the C<stat(2)> system call."
14578 msgstr ""
14579
14580 #. type: =head2
14581 #: ../fish/guestfish-actions.pod:4509
14582 msgid "statvfs"
14583 msgstr "statvfs"
14584
14585 #. type: verbatim
14586 #: ../fish/guestfish-actions.pod:4511
14587 #, no-wrap
14588 msgid ""
14589 " statvfs path\n"
14590 "\n"
14591 msgstr ""
14592 " statvfs шлях\n"
14593 "\n"
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6774
14597 msgid ""
14598 "Returns file system statistics for any mounted file system.  C<path> should "
14599 "be a file or directory in the mounted file system (typically it is the mount "
14600 "point itself, but it doesn't need to be)."
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
14605 msgid "This is the same as the C<statvfs(2)> system call."
14606 msgstr ""
14607
14608 #. type: =head2
14609 #: ../fish/guestfish-actions.pod:4519
14610 msgid "strings"
14611 msgstr "strings"
14612
14613 #. type: verbatim
14614 #: ../fish/guestfish-actions.pod:4521
14615 #, no-wrap
14616 msgid ""
14617 " strings path\n"
14618 "\n"
14619 msgstr ""
14620 " strings шлях\n"
14621 "\n"
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6792
14625 msgid ""
14626 "This runs the L<strings(1)> command on a file and returns the list of "
14627 "printable strings found."
14628 msgstr ""
14629
14630 #. type: =head2
14631 #: ../fish/guestfish-actions.pod:4529
14632 msgid "strings-e"
14633 msgstr "strings-e"
14634
14635 #. type: verbatim
14636 #: ../fish/guestfish-actions.pod:4531
14637 #, no-wrap
14638 msgid ""
14639 " strings-e encoding path\n"
14640 "\n"
14641 msgstr ""
14642 " strings-e кодування шлях\n"
14643 "\n"
14644
14645 #. type: textblock
14646 #: ../fish/guestfish-actions.pod:4533
14647 msgid ""
14648 "This is like the L</strings> command, but allows you to specify the encoding "
14649 "of strings that are looked for in the source file C<path>."
14650 msgstr ""
14651
14652 #. type: textblock
14653 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
14654 msgid "Allowed encodings are:"
14655 msgstr "Можливими кодуваннями є:"
14656
14657 #. type: =item
14658 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
14659 msgid "s"
14660 msgstr "s"
14661
14662 #. type: textblock
14663 #: ../fish/guestfish-actions.pod:4543
14664 msgid ""
14665 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14666 "ISO-8859-X (this is what L</strings> uses)."
14667 msgstr ""
14668
14669 #. type: =item
14670 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6824
14671 msgid "S"
14672 msgstr "S"
14673
14674 #. type: textblock
14675 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14676 msgid "Single 8-bit-byte characters."
14677 msgstr "Окремі 8-бітові-байтові символи."
14678
14679 #. type: =item
14680 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
14681 msgid "b"
14682 msgstr "b"
14683
14684 #. type: textblock
14685 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
14686 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14687 msgstr ""
14688
14689 #. type: =item
14690 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:6833
14691 msgid "l (lower case letter L)"
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:6835
14696 msgid ""
14697 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14698 "examining binaries in Windows guests."
14699 msgstr ""
14700
14701 #. type: =item
14702 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6838
14703 msgid "B"
14704 msgstr "B"
14705
14706 #. type: textblock
14707 #: ../fish/guestfish-actions.pod:4562 ../src/guestfs-actions.pod:6840
14708 msgid "32-bit big endian such as UCS-4BE."
14709 msgstr ""
14710
14711 #. type: =item
14712 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
14713 msgid "L"
14714 msgstr "L"
14715
14716 #. type: textblock
14717 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
14718 msgid "32-bit little endian such as UCS-4LE."
14719 msgstr ""
14720
14721 #. type: textblock
14722 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
14723 msgid "The returned strings are transcoded to UTF-8."
14724 msgstr ""
14725
14726 #. type: =head2
14727 #: ../fish/guestfish-actions.pod:4575
14728 msgid "swapoff-device"
14729 msgstr "swapoff-device"
14730
14731 #. type: verbatim
14732 #: ../fish/guestfish-actions.pod:4577
14733 #, no-wrap
14734 msgid ""
14735 " swapoff-device device\n"
14736 "\n"
14737 msgstr ""
14738 " swapoff-device пристрій\n"
14739 "\n"
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4579
14743 msgid ""
14744 "This command disables the libguestfs appliance swap device or partition "
14745 "named C<device>.  See L</swapon-device>."
14746 msgstr ""
14747
14748 #. type: =head2
14749 #: ../fish/guestfish-actions.pod:4583
14750 msgid "swapoff-file"
14751 msgstr "swapoff-file"
14752
14753 #. type: verbatim
14754 #: ../fish/guestfish-actions.pod:4585
14755 #, no-wrap
14756 msgid ""
14757 " swapoff-file file\n"
14758 "\n"
14759 msgstr ""
14760 " swapoff-file файл\n"
14761 "\n"
14762
14763 #. type: textblock
14764 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:6879
14765 msgid "This command disables the libguestfs appliance swap on file."
14766 msgstr ""
14767
14768 #. type: =head2
14769 #: ../fish/guestfish-actions.pod:4589
14770 msgid "swapoff-label"
14771 msgstr "swapoff-label"
14772
14773 #. type: verbatim
14774 #: ../fish/guestfish-actions.pod:4591
14775 #, no-wrap
14776 msgid ""
14777 " swapoff-label label\n"
14778 "\n"
14779 msgstr ""
14780 " swapoff-label мітка\n"
14781 "\n"
14782
14783 #. type: textblock
14784 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6891
14785 msgid ""
14786 "This command disables the libguestfs appliance swap on labeled swap "
14787 "partition."
14788 msgstr ""
14789
14790 #. type: =head2
14791 #: ../fish/guestfish-actions.pod:4596
14792 msgid "swapoff-uuid"
14793 msgstr "swapoff-uuid"
14794
14795 #. type: verbatim
14796 #: ../fish/guestfish-actions.pod:4598
14797 #, no-wrap
14798 msgid ""
14799 " swapoff-uuid uuid\n"
14800 "\n"
14801 msgstr ""
14802 " swapoff-uuid uuid\n"
14803 "\n"
14804
14805 #. type: textblock
14806 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:6904
14807 msgid ""
14808 "This command disables the libguestfs appliance swap partition with the given "
14809 "UUID."
14810 msgstr ""
14811
14812 #. type: =head2
14813 #: ../fish/guestfish-actions.pod:4603
14814 msgid "swapon-device"
14815 msgstr "swapon-device"
14816
14817 #. type: verbatim
14818 #: ../fish/guestfish-actions.pod:4605
14819 #, no-wrap
14820 msgid ""
14821 " swapon-device device\n"
14822 "\n"
14823 msgstr ""
14824 " swapon-device пристрій\n"
14825 "\n"
14826
14827 #. type: textblock
14828 #: ../fish/guestfish-actions.pod:4607
14829 msgid ""
14830 "This command enables the libguestfs appliance to use the swap device or "
14831 "partition named C<device>.  The increased memory is made available for all "
14832 "commands, for example those run using L</command> or L</sh>."
14833 msgstr ""
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6922
14837 msgid ""
14838 "Note that you should not swap to existing guest swap partitions unless you "
14839 "know what you are doing.  They may contain hibernation information, or other "
14840 "information that the guest doesn't want you to trash.  You also risk leaking "
14841 "information about the host to the guest this way.  Instead, attach a new "
14842 "host device to the guest and swap on that."
14843 msgstr ""
14844
14845 #. type: =head2
14846 #: ../fish/guestfish-actions.pod:4619
14847 msgid "swapon-file"
14848 msgstr "swapon-file"
14849
14850 #. type: verbatim
14851 #: ../fish/guestfish-actions.pod:4621
14852 #, no-wrap
14853 msgid ""
14854 " swapon-file file\n"
14855 "\n"
14856 msgstr ""
14857 " swapon-file файл\n"
14858 "\n"
14859
14860 #. type: textblock
14861 #: ../fish/guestfish-actions.pod:4623
14862 msgid ""
14863 "This command enables swap to a file.  See L</swapon-device> for other notes."
14864 msgstr ""
14865
14866 #. type: =head2
14867 #: ../fish/guestfish-actions.pod:4626
14868 msgid "swapon-label"
14869 msgstr "swapon-label"
14870
14871 #. type: verbatim
14872 #: ../fish/guestfish-actions.pod:4628
14873 #, no-wrap
14874 msgid ""
14875 " swapon-label label\n"
14876 "\n"
14877 msgstr ""
14878 " swapon-label мітка\n"
14879 "\n"
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:4630
14883 msgid ""
14884 "This command enables swap to a labeled swap partition.  See L</swapon-"
14885 "device> for other notes."
14886 msgstr ""
14887
14888 #. type: =head2
14889 #: ../fish/guestfish-actions.pod:4633
14890 msgid "swapon-uuid"
14891 msgstr "swapon-uuid"
14892
14893 #. type: verbatim
14894 #: ../fish/guestfish-actions.pod:4635
14895 #, no-wrap
14896 msgid ""
14897 " swapon-uuid uuid\n"
14898 "\n"
14899 msgstr ""
14900 " swapon-uuid uuid\n"
14901 "\n"
14902
14903 #. type: textblock
14904 #: ../fish/guestfish-actions.pod:4637
14905 msgid ""
14906 "This command enables swap to a swap partition with the given UUID.  See L</"
14907 "swapon-device> for other notes."
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../fish/guestfish-actions.pod:4640
14912 msgid "sync"
14913 msgstr "sync"
14914
14915 #. type: verbatim
14916 #: ../fish/guestfish-actions.pod:4642
14917 #, no-wrap
14918 msgid ""
14919 " sync\n"
14920 "\n"
14921 msgstr ""
14922 " sync\n"
14923 "\n"
14924
14925 #. type: textblock
14926 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:6977
14927 msgid ""
14928 "This syncs the disk, so that any writes are flushed through to the "
14929 "underlying disk image."
14930 msgstr ""
14931
14932 #. type: textblock
14933 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:6980
14934 msgid ""
14935 "You should always call this if you have modified a disk image, before "
14936 "closing the handle."
14937 msgstr ""
14938
14939 #. type: =head2
14940 #: ../fish/guestfish-actions.pod:4650
14941 msgid "tail"
14942 msgstr "tail"
14943
14944 #. type: verbatim
14945 #: ../fish/guestfish-actions.pod:4652
14946 #, no-wrap
14947 msgid ""
14948 " tail path\n"
14949 "\n"
14950 msgstr ""
14951 " tail шлях\n"
14952 "\n"
14953
14954 #. type: textblock
14955 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:6993
14956 msgid ""
14957 "This command returns up to the last 10 lines of a file as a list of strings."
14958 msgstr ""
14959
14960 #. type: =head2
14961 #: ../fish/guestfish-actions.pod:4660
14962 msgid "tail-n"
14963 msgstr "tail-n"
14964
14965 #. type: verbatim
14966 #: ../fish/guestfish-actions.pod:4662
14967 #, no-wrap
14968 msgid ""
14969 " tail-n nrlines path\n"
14970 "\n"
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7012
14975 msgid ""
14976 "If the parameter C<nrlines> is a positive number, this returns the last "
14977 "C<nrlines> lines of the file C<path>."
14978 msgstr ""
14979
14980 #. type: textblock
14981 #: ../fish/guestfish-actions.pod:4667 ../src/guestfs-actions.pod:7015
14982 msgid ""
14983 "If the parameter C<nrlines> is a negative number, this returns lines from "
14984 "the file C<path>, starting with the C<-nrlines>th line."
14985 msgstr ""
14986
14987 #. type: =head2
14988 #: ../fish/guestfish-actions.pod:4675
14989 msgid "tar-in"
14990 msgstr "tar-in"
14991
14992 #. type: verbatim
14993 #: ../fish/guestfish-actions.pod:4677
14994 #, no-wrap
14995 msgid ""
14996 " tar-in (tarfile|-) directory\n"
14997 "\n"
14998 msgstr ""
14999 " tar-in (файл_tar|-) каталог\n"
15000 "\n"
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7036
15004 msgid ""
15005 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15006 "tar file) into C<directory>."
15007 msgstr ""
15008
15009 #. type: textblock
15010 #: ../fish/guestfish-actions.pod:4682
15011 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../fish/guestfish-actions.pod:4687
15016 msgid "tar-out"
15017 msgstr "tar-out"
15018
15019 #. type: verbatim
15020 #: ../fish/guestfish-actions.pod:4689
15021 #, no-wrap
15022 msgid ""
15023 " tar-out directory (tarfile|-)\n"
15024 "\n"
15025 msgstr ""
15026 " tar-out каталог (файл tar|-)\n"
15027 "\n"
15028
15029 #. type: textblock
15030 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7053
15031 msgid ""
15032 "This command packs the contents of C<directory> and downloads it to local "
15033 "file C<tarfile>."
15034 msgstr ""
15035
15036 #. type: textblock
15037 #: ../fish/guestfish-actions.pod:4694
15038 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15039 msgstr ""
15040
15041 #. type: =head2
15042 #: ../fish/guestfish-actions.pod:4699
15043 msgid "tgz-in"
15044 msgstr "tgz-in"
15045
15046 #. type: verbatim
15047 #: ../fish/guestfish-actions.pod:4701
15048 #, no-wrap
15049 msgid ""
15050 " tgz-in (tarball|-) directory\n"
15051 "\n"
15052 msgstr ""
15053 " tgz-in (архів tar|-) каталог\n"
15054 "\n"
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7070
15058 msgid ""
15059 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15060 "tar file) into C<directory>."
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../fish/guestfish-actions.pod:4706
15065 msgid "To upload an uncompressed tarball, use L</tar-in>."
15066 msgstr ""
15067
15068 #. type: =head2
15069 #: ../fish/guestfish-actions.pod:4710
15070 msgid "tgz-out"
15071 msgstr "tgz-out"
15072
15073 #. type: verbatim
15074 #: ../fish/guestfish-actions.pod:4712
15075 #, no-wrap
15076 msgid ""
15077 " tgz-out directory (tarball|-)\n"
15078 "\n"
15079 msgstr ""
15080 " tgz-out каталог (архів tar|-)\n"
15081 "\n"
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7086
15085 msgid ""
15086 "This command packs the contents of C<directory> and downloads it to local "
15087 "file C<tarball>."
15088 msgstr ""
15089
15090 #. type: textblock
15091 #: ../fish/guestfish-actions.pod:4717
15092 msgid "To download an uncompressed tarball, use L</tar-out>."
15093 msgstr ""
15094
15095 #. type: =head2
15096 #: ../fish/guestfish-actions.pod:4721
15097 msgid "touch"
15098 msgstr "touch"
15099
15100 #. type: verbatim
15101 #: ../fish/guestfish-actions.pod:4723
15102 #, no-wrap
15103 msgid ""
15104 " touch path\n"
15105 "\n"
15106 msgstr ""
15107 " touch шлях\n"
15108 "\n"
15109
15110 #. type: textblock
15111 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7101
15112 msgid ""
15113 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15114 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15115 "length file."
15116 msgstr ""
15117
15118 #. type: textblock
15119 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
15120 msgid ""
15121 "This command only works on regular files, and will fail on other file types "
15122 "such as directories, symbolic links, block special etc."
15123 msgstr ""
15124
15125 #. type: =head2
15126 #: ../fish/guestfish-actions.pod:4732
15127 msgid "truncate"
15128 msgstr "truncate"
15129
15130 #. type: verbatim
15131 #: ../fish/guestfish-actions.pod:4734
15132 #, no-wrap
15133 msgid ""
15134 " truncate path\n"
15135 "\n"
15136 msgstr ""
15137 " truncate шлях\n"
15138 "\n"
15139
15140 #. type: textblock
15141 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7118
15142 msgid ""
15143 "This command truncates C<path> to a zero-length file.  The file must exist "
15144 "already."
15145 msgstr ""
15146
15147 #. type: =head2
15148 #: ../fish/guestfish-actions.pod:4739
15149 msgid "truncate-size"
15150 msgstr "truncate-size"
15151
15152 #. type: verbatim
15153 #: ../fish/guestfish-actions.pod:4741
15154 #, no-wrap
15155 msgid ""
15156 " truncate-size path size\n"
15157 "\n"
15158 msgstr ""
15159 " truncate-size шлях розмір\n"
15160 "\n"
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7132
15164 msgid ""
15165 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15166 "already."
15167 msgstr ""
15168
15169 #. type: textblock
15170 #: ../fish/guestfish-actions.pod:4746
15171 msgid ""
15172 "If the current file size is less than C<size> then the file is extended to "
15173 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15174 "blocks are not allocated for the file until you write to it).  To create a "
15175 "non-sparse file of zeroes, use L</fallocate64> instead."
15176 msgstr ""
15177
15178 #. type: =head2
15179 #: ../fish/guestfish-actions.pod:4752
15180 msgid "tune2fs-l"
15181 msgstr "tune2fs-l"
15182
15183 #. type: verbatim
15184 #: ../fish/guestfish-actions.pod:4754
15185 #, no-wrap
15186 msgid ""
15187 " tune2fs-l device\n"
15188 "\n"
15189 msgstr ""
15190 " tune2fs-l пристрій\n"
15191 "\n"
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7151
15195 msgid ""
15196 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15197 "C<device>."
15198 msgstr ""
15199
15200 #. type: textblock
15201 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7154
15202 msgid ""
15203 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15204 "for more details.  The list of fields returned isn't clearly defined, and "
15205 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15206 "and the filesystem itself."
15207 msgstr ""
15208
15209 #. type: =head2
15210 #: ../fish/guestfish-actions.pod:4764
15211 msgid "txz-in"
15212 msgstr "txz-in"
15213
15214 #. type: verbatim
15215 #: ../fish/guestfish-actions.pod:4766
15216 #, no-wrap
15217 msgid ""
15218 " txz-in (tarball|-) directory\n"
15219 "\n"
15220 msgstr ""
15221 " txz-in (архів tar|-) каталог\n"
15222 "\n"
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7174
15226 msgid ""
15227 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15228 "tar file) into C<directory>."
15229 msgstr ""
15230
15231 #. type: =head2
15232 #: ../fish/guestfish-actions.pod:4773
15233 msgid "txz-out"
15234 msgstr "txz-out"
15235
15236 #. type: verbatim
15237 #: ../fish/guestfish-actions.pod:4775
15238 #, no-wrap
15239 msgid ""
15240 " txz-out directory (tarball|-)\n"
15241 "\n"
15242 msgstr ""
15243 " txz-out каталог (архів tar|-)\n"
15244 "\n"
15245
15246 #. type: textblock
15247 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7188
15248 msgid ""
15249 "This command packs the contents of C<directory> and downloads it to local "
15250 "file C<tarball> (as an xz compressed tar archive)."
15251 msgstr ""
15252
15253 #. type: =head2
15254 #: ../fish/guestfish-actions.pod:4782
15255 msgid "umask"
15256 msgstr "umask"
15257
15258 #. type: verbatim
15259 #: ../fish/guestfish-actions.pod:4784
15260 #, no-wrap
15261 msgid ""
15262 " umask mask\n"
15263 "\n"
15264 msgstr ""
15265 " umask маска\n"
15266 "\n"
15267
15268 #. type: textblock
15269 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7201
15270 msgid ""
15271 "This function sets the mask used for creating new files and device nodes to "
15272 "C<mask & 0777>."
15273 msgstr ""
15274
15275 #. type: textblock
15276 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7204
15277 msgid ""
15278 "Typical umask values would be C<022> which creates new files with "
15279 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15280 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15281 msgstr ""
15282
15283 #. type: textblock
15284 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7209
15285 msgid ""
15286 "The default umask is C<022>.  This is important because it means that "
15287 "directories and device nodes will be created with C<0644> or C<0755> mode "
15288 "even if you specify C<0777>."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:4798
15293 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15294 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7216
15298 msgid "This call returns the previous umask."
15299 msgstr ""
15300
15301 #. type: =head2
15302 #: ../fish/guestfish-actions.pod:4803
15303 msgid "umount"
15304 msgstr "umount"
15305
15306 #. type: =head2
15307 #: ../fish/guestfish-actions.pod:4805
15308 msgid "unmount"
15309 msgstr "unmount"
15310
15311 #. type: verbatim
15312 #: ../fish/guestfish-actions.pod:4807
15313 #, no-wrap
15314 msgid ""
15315 " umount pathordevice\n"
15316 "\n"
15317 msgstr ""
15318 " umount шлях_або_пристрій\n"
15319 "\n"
15320
15321 #. type: textblock
15322 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7228
15323 msgid ""
15324 "This unmounts the given filesystem.  The filesystem may be specified either "
15325 "by its mountpoint (path) or the device which contains the filesystem."
15326 msgstr ""
15327
15328 #. type: =head2
15329 #: ../fish/guestfish-actions.pod:4813
15330 msgid "umount-all"
15331 msgstr "umount-all"
15332
15333 #. type: =head2
15334 #: ../fish/guestfish-actions.pod:4815
15335 msgid "unmount-all"
15336 msgstr "unmount-all"
15337
15338 #. type: verbatim
15339 #: ../fish/guestfish-actions.pod:4817
15340 #, no-wrap
15341 msgid ""
15342 " umount-all\n"
15343 "\n"
15344 msgstr ""
15345 " umount-all\n"
15346 "\n"
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7241
15350 msgid "This unmounts all mounted filesystems."
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7243
15355 msgid "Some internal mounts are not unmounted by this call."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../fish/guestfish-actions.pod:4823
15360 msgid "upload"
15361 msgstr "upload"
15362
15363 #. type: verbatim
15364 #: ../fish/guestfish-actions.pod:4825
15365 #, no-wrap
15366 msgid ""
15367 " upload (filename|-) remotefilename\n"
15368 "\n"
15369 msgstr ""
15370 " upload (назва_файла|-) назва_віддаленого_файла\n"
15371 "\n"
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4840
15375 #: ../src/guestfs-actions.pod:7256 ../src/guestfs-actions.pod:7280
15376 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15377 msgstr ""
15378
15379 #. type: textblock
15380 #: ../fish/guestfish-actions.pod:4832
15381 msgid "See also L</download>."
15382 msgstr "Див. також L</download>."
15383
15384 #. type: =head2
15385 #: ../fish/guestfish-actions.pod:4836
15386 msgid "upload-offset"
15387 msgstr "upload-offset"
15388
15389 #. type: verbatim
15390 #: ../fish/guestfish-actions.pod:4838
15391 #, no-wrap
15392 msgid ""
15393 " upload-offset (filename|-) remotefilename offset\n"
15394 "\n"
15395 msgstr ""
15396 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15397 "\n"
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7283
15401 msgid ""
15402 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15403 "The intention is to overwrite parts of existing files or devices, although "
15404 "if a non-existant file is specified then it is created with a \"hole\" "
15405 "before C<offset>.  The size of the data written is implicit in the size of "
15406 "the source C<filename>."
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-actions.pod:4850
15411 msgid ""
15412 "Note that there is no limit on the amount of data that can be uploaded with "
15413 "this call, unlike with L</pwrite>, and this call always writes the full "
15414 "amount unless an error occurs."
15415 msgstr ""
15416
15417 #. type: textblock
15418 #: ../fish/guestfish-actions.pod:4855
15419 msgid "See also L</upload>, L</pwrite>."
15420 msgstr "Див. також L</upload>, L</pwrite>."
15421
15422 #. type: =head2
15423 #: ../fish/guestfish-actions.pod:4859
15424 msgid "utimens"
15425 msgstr "utimens"
15426
15427 #. type: verbatim
15428 #: ../fish/guestfish-actions.pod:4861
15429 #, no-wrap
15430 msgid ""
15431 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15432 "\n"
15433 msgstr ""
15434
15435 #. type: textblock
15436 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7316
15437 msgid "This command sets the timestamps of a file with nanosecond precision."
15438 msgstr ""
15439
15440 #. type: textblock
15441 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7319
15442 msgid ""
15443 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15444 "from the epoch."
15445 msgstr ""
15446
15447 #. type: textblock
15448 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7322
15449 msgid ""
15450 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15451 "nanoseconds from the epoch."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7325
15456 msgid ""
15457 "If the C<*nsecs> field contains the special value C<-1> then the "
15458 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15459 "ignored in this case)."
15460 msgstr ""
15461
15462 #. type: textblock
15463 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
15464 msgid ""
15465 "If the C<*nsecs> field contains the special value C<-2> then the "
15466 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15467 "in this case)."
15468 msgstr ""
15469
15470 #. type: =head2
15471 #: ../fish/guestfish-actions.pod:4880
15472 msgid "version"
15473 msgstr "version"
15474
15475 #. type: verbatim
15476 #: ../fish/guestfish-actions.pod:4882
15477 #, no-wrap
15478 msgid ""
15479 " version\n"
15480 "\n"
15481 msgstr ""
15482 " version\n"
15483 "\n"
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7342
15487 msgid ""
15488 "Return the libguestfs version number that the program is linked against."
15489 msgstr ""
15490
15491 #. type: textblock
15492 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7345
15493 msgid ""
15494 "Note that because of dynamic linking this is not necessarily the version of "
15495 "libguestfs that you compiled against.  You can compile the program, and then "
15496 "at runtime dynamically link against a completely different C<libguestfs.so> "
15497 "library."
15498 msgstr ""
15499
15500 #. type: textblock
15501 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7350
15502 msgid ""
15503 "This call was added in version C<1.0.58>.  In previous versions of "
15504 "libguestfs there was no way to get the version number.  From C code you can "
15505 "use dynamic linker functions to find out if this symbol exists (if it "
15506 "doesn't, then it's an earlier version)."
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7356
15511 msgid ""
15512 "The call returns a structure with four elements.  The first three (C<major>, "
15513 "C<minor> and C<release>) are numbers and correspond to the usual version "
15514 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15515 "but may be used for distro-specific information."
15516 msgstr ""
15517
15518 #. type: textblock
15519 #: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7362
15520 msgid ""
15521 "To construct the original version string: C<$major.$minor.$release$extra>"
15522 msgstr ""
15523
15524 #. type: textblock
15525 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7365
15526 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15527 msgstr ""
15528
15529 #. type: textblock
15530 #: ../fish/guestfish-actions.pod:4909
15531 msgid ""
15532 "I<Note:> Don't use this call to test for availability of features.  In "
15533 "enterprise distributions we backport features from later versions into "
15534 "earlier versions, making this an unreliable way to test for features.  Use "
15535 "L</available> instead."
15536 msgstr ""
15537
15538 #. type: =head2
15539 #: ../fish/guestfish-actions.pod:4915
15540 msgid "vfs-label"
15541 msgstr "vfs-label"
15542
15543 #. type: verbatim
15544 #: ../fish/guestfish-actions.pod:4917
15545 #, no-wrap
15546 msgid ""
15547 " vfs-label device\n"
15548 "\n"
15549 msgstr ""
15550 " vfs-label пристрій\n"
15551 "\n"
15552
15553 #. type: textblock
15554 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7385
15555 msgid "This returns the filesystem label of the filesystem on C<device>."
15556 msgstr ""
15557
15558 #. type: textblock
15559 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7388
15560 msgid "If the filesystem is unlabeled, this returns the empty string."
15561 msgstr ""
15562
15563 #. type: textblock
15564 #: ../fish/guestfish-actions.pod:4924
15565 msgid "To find a filesystem from the label, use L</findfs-label>."
15566 msgstr ""
15567
15568 #. type: =head2
15569 #: ../fish/guestfish-actions.pod:4926
15570 msgid "vfs-type"
15571 msgstr "vfs-type"
15572
15573 #. type: verbatim
15574 #: ../fish/guestfish-actions.pod:4928
15575 #, no-wrap
15576 msgid ""
15577 " vfs-type device\n"
15578 "\n"
15579 msgstr ""
15580 " vfs-type пристрій\n"
15581 "\n"
15582
15583 #. type: textblock
15584 #: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7403
15585 msgid ""
15586 "This command gets the filesystem type corresponding to the filesystem on "
15587 "C<device>."
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7406
15592 msgid ""
15593 "For most filesystems, the result is the name of the Linux VFS module which "
15594 "would be used to mount this filesystem if you mounted it without specifying "
15595 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15596 msgstr ""
15597
15598 #. type: =head2
15599 #: ../fish/guestfish-actions.pod:4938
15600 msgid "vfs-uuid"
15601 msgstr "vfs-uuid"
15602
15603 #. type: verbatim
15604 #: ../fish/guestfish-actions.pod:4940
15605 #, no-wrap
15606 msgid ""
15607 " vfs-uuid device\n"
15608 "\n"
15609 msgstr ""
15610 " vfs-uuid пристрій\n"
15611 "\n"
15612
15613 #. type: textblock
15614 #: ../fish/guestfish-actions.pod:4942 ../src/guestfs-actions.pod:7422
15615 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7425
15620 msgid "If the filesystem does not have a UUID, this returns the empty string."
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-actions.pod:4947
15625 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15626 msgstr ""
15627
15628 #. type: =head2
15629 #: ../fish/guestfish-actions.pod:4949
15630 msgid "vg-activate"
15631 msgstr "vg-activate"
15632
15633 #. type: verbatim
15634 #: ../fish/guestfish-actions.pod:4951
15635 #, no-wrap
15636 msgid ""
15637 " vg-activate true|false 'volgroups ...'\n"
15638 "\n"
15639 msgstr ""
15640
15641 #. type: textblock
15642 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7441
15643 msgid ""
15644 "This command activates or (if C<activate> is false) deactivates all logical "
15645 "volumes in the listed volume groups C<volgroups>."
15646 msgstr ""
15647
15648 #. type: textblock
15649 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7444
15650 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15651 msgstr ""
15652
15653 #. type: textblock
15654 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7446
15655 msgid ""
15656 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15657 "activated or deactivated."
15658 msgstr ""
15659
15660 #. type: =head2
15661 #: ../fish/guestfish-actions.pod:4961
15662 msgid "vg-activate-all"
15663 msgstr "vg-activate-all"
15664
15665 #. type: verbatim
15666 #: ../fish/guestfish-actions.pod:4963
15667 #, no-wrap
15668 msgid ""
15669 " vg-activate-all true|false\n"
15670 "\n"
15671 msgstr ""
15672 " vg-activate-all true|false\n"
15673 "\n"
15674
15675 #. type: textblock
15676 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7459
15677 msgid ""
15678 "This command activates or (if C<activate> is false) deactivates all logical "
15679 "volumes in all volume groups."
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-actions.pod:4968 ../src/guestfs-actions.pod:7462
15684 msgid "This command is the same as running C<vgchange -a y|n>"
15685 msgstr ""
15686
15687 #. type: =head2
15688 #: ../fish/guestfish-actions.pod:4970
15689 msgid "vgcreate"
15690 msgstr "vgcreate"
15691
15692 #. type: verbatim
15693 #: ../fish/guestfish-actions.pod:4972
15694 #, no-wrap
15695 msgid ""
15696 " vgcreate volgroup 'physvols ...'\n"
15697 "\n"
15698 msgstr ""
15699
15700 #. type: textblock
15701 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7475
15702 msgid ""
15703 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15704 "of physical volumes C<physvols>."
15705 msgstr ""
15706
15707 #. type: =head2
15708 #: ../fish/guestfish-actions.pod:4977
15709 msgid "vglvuuids"
15710 msgstr "vglvuuids"
15711
15712 #. type: verbatim
15713 #: ../fish/guestfish-actions.pod:4979
15714 #, no-wrap
15715 msgid ""
15716 " vglvuuids vgname\n"
15717 "\n"
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4981 ../src/guestfs-actions.pod:7488
15722 msgid ""
15723 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15724 "volumes created in this volume group."
15725 msgstr ""
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-actions.pod:4984
15729 msgid ""
15730 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15731 "logical volumes and volume groups."
15732 msgstr ""
15733
15734 #. type: textblock
15735 #: ../fish/guestfish-actions.pod:4987
15736 msgid "See also L</vgpvuuids>."
15737 msgstr "Див. також L</vgpvuuids>."
15738
15739 #. type: =head2
15740 #: ../fish/guestfish-actions.pod:4989
15741 msgid "vgpvuuids"
15742 msgstr "vgpvuuids"
15743
15744 #. type: verbatim
15745 #: ../fish/guestfish-actions.pod:4991
15746 #, no-wrap
15747 msgid ""
15748 " vgpvuuids vgname\n"
15749 "\n"
15750 msgstr ""
15751
15752 #. type: textblock
15753 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7508
15754 msgid ""
15755 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15756 "volumes that this volume group resides on."
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../fish/guestfish-actions.pod:4996
15761 msgid ""
15762 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15763 "physical volumes and volume groups."
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../fish/guestfish-actions.pod:4999
15768 msgid "See also L</vglvuuids>."
15769 msgstr "Див. також L</vglvuuids>."
15770
15771 #. type: =head2
15772 #: ../fish/guestfish-actions.pod:5001
15773 msgid "vgremove"
15774 msgstr "vgremove"
15775
15776 #. type: verbatim
15777 #: ../fish/guestfish-actions.pod:5003
15778 #, no-wrap
15779 msgid ""
15780 " vgremove vgname\n"
15781 "\n"
15782 msgstr ""
15783
15784 #. type: textblock
15785 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7528
15786 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7530
15791 msgid ""
15792 "This also forcibly removes all logical volumes in the volume group (if any)."
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:5010
15797 msgid "vgrename"
15798 msgstr "vgrename"
15799
15800 #. type: verbatim
15801 #: ../fish/guestfish-actions.pod:5012
15802 #, no-wrap
15803 msgid ""
15804 " vgrename volgroup newvolgroup\n"
15805 "\n"
15806 msgstr ""
15807
15808 #. type: textblock
15809 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7544
15810 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15811 msgstr ""
15812
15813 #. type: =head2
15814 #: ../fish/guestfish-actions.pod:5016
15815 msgid "vgs"
15816 msgstr "vgs"
15817
15818 #. type: verbatim
15819 #: ../fish/guestfish-actions.pod:5018
15820 #, no-wrap
15821 msgid ""
15822 " vgs\n"
15823 "\n"
15824 msgstr ""
15825 " vgs\n"
15826 "\n"
15827
15828 #. type: textblock
15829 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7555
15830 msgid ""
15831 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15832 "> command."
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7558
15837 msgid ""
15838 "This returns a list of just the volume group names that were detected (eg. "
15839 "C<VolGroup00>)."
15840 msgstr ""
15841
15842 #. type: textblock
15843 #: ../fish/guestfish-actions.pod:5026
15844 msgid "See also L</vgs-full>."
15845 msgstr "Див. також L</vgs-full>."
15846
15847 #. type: =head2
15848 #: ../fish/guestfish-actions.pod:5028
15849 msgid "vgs-full"
15850 msgstr "vgs-full"
15851
15852 #. type: verbatim
15853 #: ../fish/guestfish-actions.pod:5030
15854 #, no-wrap
15855 msgid ""
15856 " vgs-full\n"
15857 "\n"
15858 msgstr ""
15859 " vgs-full\n"
15860 "\n"
15861
15862 #. type: textblock
15863 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7574
15864 msgid ""
15865 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15866 "> command.  The \"full\" version includes all fields."
15867 msgstr ""
15868
15869 #. type: =head2
15870 #: ../fish/guestfish-actions.pod:5035
15871 msgid "vgscan"
15872 msgstr "vgscan"
15873
15874 #. type: verbatim
15875 #: ../fish/guestfish-actions.pod:5037
15876 #, no-wrap
15877 msgid ""
15878 " vgscan\n"
15879 "\n"
15880 msgstr ""
15881 " vgscan\n"
15882 "\n"
15883
15884 #. type: textblock
15885 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7588
15886 msgid ""
15887 "This rescans all block devices and rebuilds the list of LVM physical "
15888 "volumes, volume groups and logical volumes."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:5042
15893 msgid "vguuid"
15894 msgstr "vguuid"
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:5044
15898 #, no-wrap
15899 msgid ""
15900 " vguuid vgname\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7601
15906 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15907 msgstr ""
15908
15909 #. type: =head2
15910 #: ../fish/guestfish-actions.pod:5048
15911 msgid "wc-c"
15912 msgstr "wc-c"
15913
15914 #. type: verbatim
15915 #: ../fish/guestfish-actions.pod:5050
15916 #, no-wrap
15917 msgid ""
15918 " wc-c path\n"
15919 "\n"
15920 msgstr ""
15921 " wc-c шлях\n"
15922 "\n"
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7641
15926 msgid ""
15927 "This command counts the characters in a file, using the C<wc -c> external "
15928 "command."
15929 msgstr ""
15930
15931 #. type: =head2
15932 #: ../fish/guestfish-actions.pod:5055
15933 msgid "wc-l"
15934 msgstr "wc-l"
15935
15936 #. type: verbatim
15937 #: ../fish/guestfish-actions.pod:5057
15938 #, no-wrap
15939 msgid ""
15940 " wc-l path\n"
15941 "\n"
15942 msgstr ""
15943 " wc-l шлях\n"
15944 "\n"
15945
15946 #. type: textblock
15947 #: ../fish/guestfish-actions.pod:5059 ../src/guestfs-actions.pod:7654
15948 msgid ""
15949 "This command counts the lines in a file, using the C<wc -l> external command."
15950 msgstr ""
15951
15952 #. type: =head2
15953 #: ../fish/guestfish-actions.pod:5062
15954 msgid "wc-w"
15955 msgstr "wc-w"
15956
15957 #. type: verbatim
15958 #: ../fish/guestfish-actions.pod:5064
15959 #, no-wrap
15960 msgid ""
15961 " wc-w path\n"
15962 "\n"
15963 msgstr ""
15964 " wc-w шлях\n"
15965 "\n"
15966
15967 #. type: textblock
15968 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7667
15969 msgid ""
15970 "This command counts the words in a file, using the C<wc -w> external command."
15971 msgstr ""
15972
15973 #. type: =head2
15974 #: ../fish/guestfish-actions.pod:5069
15975 msgid "write"
15976 msgstr "write"
15977
15978 #. type: verbatim
15979 #: ../fish/guestfish-actions.pod:5071
15980 #, no-wrap
15981 msgid ""
15982 " write path content\n"
15983 "\n"
15984 msgstr ""
15985 " write шлях дані\n"
15986 "\n"
15987
15988 #. type: textblock
15989 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7682
15990 msgid ""
15991 "This call creates a file called C<path>.  The content of the file is the "
15992 "string C<content> (which can contain any 8 bit data)."
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:5076
15997 msgid "See also L</write-append>."
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-actions.pod:5081
16002 msgid "write-append"
16003 msgstr ""
16004
16005 #. type: verbatim
16006 #: ../fish/guestfish-actions.pod:5083
16007 #, no-wrap
16008 msgid ""
16009 " write-append path content\n"
16010 "\n"
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7702
16015 msgid ""
16016 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16017 "not exist, then a new file is created."
16018 msgstr ""
16019
16020 #. type: textblock
16021 #: ../fish/guestfish-actions.pod:5088
16022 msgid "See also L</write>."
16023 msgstr ""
16024
16025 #. type: =head2
16026 #: ../fish/guestfish-actions.pod:5093
16027 msgid "write-file"
16028 msgstr "write-file"
16029
16030 #. type: verbatim
16031 #: ../fish/guestfish-actions.pod:5095
16032 #, no-wrap
16033 msgid ""
16034 " write-file path content size\n"
16035 "\n"
16036 msgstr ""
16037
16038 #. type: textblock
16039 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7722
16040 msgid ""
16041 "This call creates a file called C<path>.  The contents of the file is the "
16042 "string C<content> (which can contain any 8 bit data), with length C<size>."
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7726
16047 msgid ""
16048 "As a special case, if C<size> is C<0> then the length is calculated using "
16049 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16050 msgstr ""
16051
16052 #. type: textblock
16053 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7730
16054 msgid ""
16055 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16056 "I<not> work, even if the length is specified."
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-actions.pod:5111
16061 msgid ""
16062 "This function is deprecated.  In new code, use the L</write> call instead."
16063 msgstr ""
16064
16065 #. type: =head2
16066 #: ../fish/guestfish-actions.pod:5118
16067 msgid "zegrep"
16068 msgstr "zegrep"
16069
16070 #. type: verbatim
16071 #: ../fish/guestfish-actions.pod:5120
16072 #, no-wrap
16073 msgid ""
16074 " zegrep regex path\n"
16075 "\n"
16076 msgstr ""
16077 " zegrep формальний_вираз шлях\n"
16078 "\n"
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7754
16082 msgid ""
16083 "This calls the external C<zegrep> program and returns the matching lines."
16084 msgstr ""
16085
16086 #. type: =head2
16087 #: ../fish/guestfish-actions.pod:5128
16088 msgid "zegrepi"
16089 msgstr "zegrepi"
16090
16091 #. type: verbatim
16092 #: ../fish/guestfish-actions.pod:5130
16093 #, no-wrap
16094 msgid ""
16095 " zegrepi regex path\n"
16096 "\n"
16097 msgstr ""
16098
16099 #. type: textblock
16100 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7773
16101 msgid ""
16102 "This calls the external C<zegrep -i> program and returns the matching lines."
16103 msgstr ""
16104
16105 #. type: =head2
16106 #: ../fish/guestfish-actions.pod:5138
16107 msgid "zero"
16108 msgstr "zero"
16109
16110 #. type: verbatim
16111 #: ../fish/guestfish-actions.pod:5140
16112 #, no-wrap
16113 msgid ""
16114 " zero device\n"
16115 "\n"
16116 msgstr ""
16117 " zero пристрій\n"
16118 "\n"
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7791
16122 msgid "This command writes zeroes over the first few blocks of C<device>."
16123 msgstr ""
16124
16125 #. type: textblock
16126 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7793
16127 msgid ""
16128 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16129 "securely wipe the device).  It should be sufficient to remove any partition "
16130 "tables, filesystem superblocks and so on."
16131 msgstr ""
16132
16133 #. type: textblock
16134 #: ../fish/guestfish-actions.pod:5148 ../fish/guestfish-actions.pod:5163
16135 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7823
16136 msgid ""
16137 "If blocks are already zero, then this command avoids writing zeroes.  This "
16138 "prevents the underlying device from becoming non-sparse or growing "
16139 "unnecessarily."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-actions.pod:5152
16144 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16145 msgstr ""
16146
16147 #. type: =head2
16148 #: ../fish/guestfish-actions.pod:5155
16149 msgid "zero-device"
16150 msgstr "zero-device"
16151
16152 #. type: verbatim
16153 #: ../fish/guestfish-actions.pod:5157
16154 #, no-wrap
16155 msgid ""
16156 " zero-device device\n"
16157 "\n"
16158 msgstr ""
16159 " zero-device пристрій\n"
16160 "\n"
16161
16162 #. type: textblock
16163 #: ../fish/guestfish-actions.pod:5159
16164 msgid ""
16165 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16166 "which just zeroes the first few blocks of a device."
16167 msgstr ""
16168
16169 #. type: =head2
16170 #: ../fish/guestfish-actions.pod:5170
16171 msgid "zerofree"
16172 msgstr "zerofree"
16173
16174 #. type: verbatim
16175 #: ../fish/guestfish-actions.pod:5172
16176 #, no-wrap
16177 msgid ""
16178 " zerofree device\n"
16179 "\n"
16180 msgstr ""
16181 " zerofree пристрій\n"
16182 "\n"
16183
16184 #. type: textblock
16185 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7845
16186 msgid ""
16187 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16188 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16189 "possible to compress the filesystem more effectively."
16190 msgstr ""
16191
16192 #. type: textblock
16193 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7850
16194 msgid "You should B<not> run this program if the filesystem is mounted."
16195 msgstr ""
16196
16197 #. type: textblock
16198 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7853
16199 msgid ""
16200 "It is possible that using this program can damage the filesystem or data on "
16201 "the filesystem."
16202 msgstr ""
16203
16204 #. type: =head2
16205 #: ../fish/guestfish-actions.pod:5185
16206 msgid "zfgrep"
16207 msgstr "zfgrep"
16208
16209 #. type: verbatim
16210 #: ../fish/guestfish-actions.pod:5187
16211 #, no-wrap
16212 msgid ""
16213 " zfgrep pattern path\n"
16214 "\n"
16215 msgstr ""
16216 " zfgrep шаблон шлях\n"
16217 "\n"
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7867
16221 msgid ""
16222 "This calls the external C<zfgrep> program and returns the matching lines."
16223 msgstr ""
16224
16225 #. type: =head2
16226 #: ../fish/guestfish-actions.pod:5195
16227 msgid "zfgrepi"
16228 msgstr "zfgrepi"
16229
16230 #. type: verbatim
16231 #: ../fish/guestfish-actions.pod:5197
16232 #, no-wrap
16233 msgid ""
16234 " zfgrepi pattern path\n"
16235 "\n"
16236 msgstr ""
16237 " zfgrepi шаблон шлях\n"
16238 "\n"
16239
16240 #. type: textblock
16241 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7886
16242 msgid ""
16243 "This calls the external C<zfgrep -i> program and returns the matching lines."
16244 msgstr ""
16245
16246 #. type: =head2
16247 #: ../fish/guestfish-actions.pod:5205
16248 msgid "zfile"
16249 msgstr "zfile"
16250
16251 #. type: verbatim
16252 #: ../fish/guestfish-actions.pod:5207
16253 #, no-wrap
16254 msgid ""
16255 " zfile meth path\n"
16256 "\n"
16257 msgstr ""
16258 " zfile метод шлях\n"
16259 "\n"
16260
16261 #. type: textblock
16262 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7905
16263 msgid ""
16264 "This command runs C<file> after first decompressing C<path> using C<method>."
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:7908
16269 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16270 msgstr ""
16271
16272 #. type: textblock
16273 #: ../fish/guestfish-actions.pod:5214
16274 msgid ""
16275 "Since 1.0.63, use L</file> instead which can now process compressed files."
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish-actions.pod:5217
16280 msgid ""
16281 "This function is deprecated.  In new code, use the L</file> call instead."
16282 msgstr ""
16283
16284 #. type: =head2
16285 #: ../fish/guestfish-actions.pod:5224
16286 msgid "zgrep"
16287 msgstr "zgrep"
16288
16289 #. type: verbatim
16290 #: ../fish/guestfish-actions.pod:5226
16291 #, no-wrap
16292 msgid ""
16293 " zgrep regex path\n"
16294 "\n"
16295 msgstr ""
16296 " zgrep формальний_вираз шлях\n"
16297 "\n"
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7932
16301 msgid ""
16302 "This calls the external C<zgrep> program and returns the matching lines."
16303 msgstr ""
16304
16305 #. type: =head2
16306 #: ../fish/guestfish-actions.pod:5234
16307 msgid "zgrepi"
16308 msgstr "zgrepi"
16309
16310 #. type: verbatim
16311 #: ../fish/guestfish-actions.pod:5236
16312 #, no-wrap
16313 msgid ""
16314 " zgrepi regex path\n"
16315 "\n"
16316 msgstr ""
16317 " zgrepi формальний_вираз шлях\n"
16318 "\n"
16319
16320 #. type: textblock
16321 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:7951
16322 msgid ""
16323 "This calls the external C<zgrep -i> program and returns the matching lines."
16324 msgstr ""
16325
16326 #. type: =head2
16327 #: ../fish/guestfish-commands.pod:1
16328 msgid "alloc"
16329 msgstr "alloc"
16330
16331 #. type: =head2
16332 #: ../fish/guestfish-commands.pod:3
16333 msgid "allocate"
16334 msgstr ""
16335
16336 #. type: verbatim
16337 #: ../fish/guestfish-commands.pod:5
16338 #, no-wrap
16339 msgid ""
16340 " alloc filename size\n"
16341 "\n"
16342 msgstr ""
16343
16344 #. type: textblock
16345 #: ../fish/guestfish-commands.pod:7
16346 msgid ""
16347 "This creates an empty (zeroed) file of the given size, and then adds so it "
16348 "can be further examined."
16349 msgstr ""
16350
16351 #. type: textblock
16352 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16353 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16358 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../fish/guestfish-commands.pod:14
16363 msgid ""
16364 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16365 "image, see L</PREPARED DISK IMAGES>."
16366 msgstr ""
16367
16368 #. type: =head2
16369 #: ../fish/guestfish-commands.pod:17
16370 msgid "copy-in"
16371 msgstr "copy-in"
16372
16373 #. type: verbatim
16374 #: ../fish/guestfish-commands.pod:19
16375 #, no-wrap
16376 msgid ""
16377 " copy-in local [local ...] /remotedir\n"
16378 "\n"
16379 msgstr ""
16380
16381 #. type: textblock
16382 #: ../fish/guestfish-commands.pod:21
16383 msgid ""
16384 "C<copy-in> copies local files or directories recursively into the disk "
16385 "image, placing them in the directory called C</remotedir> (which must "
16386 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16387 "other commands as necessary."
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish-commands.pod:26
16392 msgid ""
16393 "Multiple local files and directories can be specified, but the last "
16394 "parameter must always be a remote directory.  Wildcards cannot be used."
16395 msgstr ""
16396
16397 #. type: =head2
16398 #: ../fish/guestfish-commands.pod:30
16399 msgid "copy-out"
16400 msgstr "copy-out"
16401
16402 #. type: verbatim
16403 #: ../fish/guestfish-commands.pod:32
16404 #, no-wrap
16405 msgid ""
16406 " copy-out remote [remote ...] localdir\n"
16407 "\n"
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish-commands.pod:34
16412 msgid ""
16413 "C<copy-out> copies remote files or directories recursively out of the disk "
16414 "image, placing them on the host disk in a local directory called C<localdir> "
16415 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16416 "download>, L</tar-out> and other commands as necessary."
16417 msgstr ""
16418
16419 #. type: textblock
16420 #: ../fish/guestfish-commands.pod:40
16421 msgid ""
16422 "Multiple remote files and directories can be specified, but the last "
16423 "parameter must always be a local directory.  To download to the current "
16424 "directory, use C<.> as in:"
16425 msgstr ""
16426
16427 #. type: verbatim
16428 #: ../fish/guestfish-commands.pod:44
16429 #, no-wrap
16430 msgid ""
16431 " copy-out /home .\n"
16432 "\n"
16433 msgstr ""
16434 " copy-out /home .\n"
16435 "\n"
16436
16437 #. type: textblock
16438 #: ../fish/guestfish-commands.pod:46
16439 msgid ""
16440 "Wildcards cannot be used in the ordinary command, but you can use them with "
16441 "the help of L</glob> like this:"
16442 msgstr ""
16443
16444 #. type: verbatim
16445 #: ../fish/guestfish-commands.pod:49
16446 #, no-wrap
16447 msgid ""
16448 " glob copy-out /home/* .\n"
16449 "\n"
16450 msgstr ""
16451 " glob copy-out /home/* .\n"
16452 "\n"
16453
16454 #. type: =head2
16455 #: ../fish/guestfish-commands.pod:51
16456 msgid "display"
16457 msgstr ""
16458
16459 #. type: verbatim
16460 #: ../fish/guestfish-commands.pod:53
16461 #, no-wrap
16462 msgid ""
16463 " display filename\n"
16464 "\n"
16465 msgstr ""
16466
16467 #. type: textblock
16468 #: ../fish/guestfish-commands.pod:55
16469 msgid ""
16470 "Use C<display> (a graphical display program) to display an image file.  It "
16471 "downloads the file, and runs C<display> on it."
16472 msgstr ""
16473
16474 #. type: textblock
16475 #: ../fish/guestfish-commands.pod:58
16476 msgid ""
16477 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16478 "environment variable.  For example to use the GNOME display program:"
16479 msgstr ""
16480
16481 #. type: verbatim
16482 #: ../fish/guestfish-commands.pod:61
16483 #, no-wrap
16484 msgid ""
16485 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16486 "\n"
16487 msgstr ""
16488
16489 #. type: textblock
16490 #: ../fish/guestfish-commands.pod:63
16491 msgid "See also L<display(1)>."
16492 msgstr ""
16493
16494 #. type: =head2
16495 #: ../fish/guestfish-commands.pod:65
16496 msgid "echo"
16497 msgstr "echo"
16498
16499 #. type: verbatim
16500 #: ../fish/guestfish-commands.pod:67
16501 #, no-wrap
16502 msgid ""
16503 " echo [params ...]\n"
16504 "\n"
16505 msgstr ""
16506 " echo [параметри...]\n"
16507 "\n"
16508
16509 #. type: textblock
16510 #: ../fish/guestfish-commands.pod:69
16511 msgid "This echos the parameters to the terminal."
16512 msgstr ""
16513
16514 #. type: =head2
16515 #: ../fish/guestfish-commands.pod:71
16516 msgid "edit"
16517 msgstr "edit"
16518
16519 #. type: =head2
16520 #: ../fish/guestfish-commands.pod:73
16521 msgid "vi"
16522 msgstr "vi"
16523
16524 #. type: =head2
16525 #: ../fish/guestfish-commands.pod:75
16526 msgid "emacs"
16527 msgstr "emacs"
16528
16529 #. type: verbatim
16530 #: ../fish/guestfish-commands.pod:77
16531 #, no-wrap
16532 msgid ""
16533 " edit filename\n"
16534 "\n"
16535 msgstr ""
16536 " edit назва_файла\n"
16537 "\n"
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-commands.pod:79
16541 msgid ""
16542 "This is used to edit a file.  It downloads the file, edits it locally using "
16543 "your editor, then uploads the result."
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish-commands.pod:82
16548 msgid ""
16549 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16550 "or C<emacs> you will get those corresponding editors."
16551 msgstr ""
16552
16553 #. type: =head2
16554 #: ../fish/guestfish-commands.pod:86
16555 msgid "glob"
16556 msgstr "glob"
16557
16558 #. type: verbatim
16559 #: ../fish/guestfish-commands.pod:88
16560 #, no-wrap
16561 msgid ""
16562 " glob command args...\n"
16563 "\n"
16564 msgstr ""
16565 " glob команда параметри...\n"
16566 "\n"
16567
16568 #. type: textblock
16569 #: ../fish/guestfish-commands.pod:90
16570 msgid ""
16571 "Expand wildcards in any paths in the args list, and run C<command> "
16572 "repeatedly on each matching path."
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../fish/guestfish-commands.pod:93
16577 msgid "See L</WILDCARDS AND GLOBBING>."
16578 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16579
16580 #. type: =head2
16581 #: ../fish/guestfish-commands.pod:95
16582 msgid "hexedit"
16583 msgstr "hexedit"
16584
16585 #. type: verbatim
16586 #: ../fish/guestfish-commands.pod:97
16587 #, no-wrap
16588 msgid ""
16589 " hexedit <filename|device>\n"
16590 " hexedit <filename|device> <max>\n"
16591 " hexedit <filename|device> <start> <max>\n"
16592 "\n"
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-commands.pod:101
16597 msgid ""
16598 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16599 "device."
16600 msgstr ""
16601
16602 #. type: textblock
16603 #: ../fish/guestfish-commands.pod:104
16604 msgid ""
16605 "This command works by downloading potentially the whole file or device, "
16606 "editing it locally, then uploading it.  If the file or device is large, you "
16607 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16608 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16609 "usual modifiers allowed such as C<1M> (1 megabyte)."
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-commands.pod:111
16614 msgid "For example to edit the first few sectors of a disk you might do:"
16615 msgstr ""
16616
16617 #. type: verbatim
16618 #: ../fish/guestfish-commands.pod:114
16619 #, no-wrap
16620 msgid ""
16621 " hexedit /dev/sda 1M\n"
16622 "\n"
16623 msgstr ""
16624 " hexedit /dev/sda 1M\n"
16625 "\n"
16626
16627 #. type: textblock
16628 #: ../fish/guestfish-commands.pod:116
16629 msgid ""
16630 "which would allow you to edit anywhere within the first megabyte of the disk."
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../fish/guestfish-commands.pod:119
16635 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../fish/guestfish-commands.pod:121
16640 #, no-wrap
16641 msgid ""
16642 " hexedit /dev/sda1 0x400 0x400\n"
16643 "\n"
16644 msgstr ""
16645 " hexedit /dev/sda1 0x400 0x400\n"
16646 "\n"
16647
16648 #. type: textblock
16649 #: ../fish/guestfish-commands.pod:123
16650 msgid "(assuming the superblock is in the standard location)."
16651 msgstr ""
16652
16653 #. type: textblock
16654 #: ../fish/guestfish-commands.pod:125
16655 msgid ""
16656 "This command requires the external L<hexedit(1)> program.  You can specify "
16657 "another program to use by setting the C<HEXEDITOR> environment variable."
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish-commands.pod:129
16662 msgid "See also L</hexdump>."
16663 msgstr "Див. також L</hexdump>."
16664
16665 #. type: =head2
16666 #: ../fish/guestfish-commands.pod:131
16667 msgid "lcd"
16668 msgstr "lcd"
16669
16670 #. type: verbatim
16671 #: ../fish/guestfish-commands.pod:133
16672 #, no-wrap
16673 msgid ""
16674 " lcd directory\n"
16675 "\n"
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-commands.pod:135
16680 msgid ""
16681 "Change the local directory, ie. the current directory of guestfish itself."
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../fish/guestfish-commands.pod:138
16686 msgid "Note that C<!cd> won't do what you might expect."
16687 msgstr ""
16688
16689 #. type: =head2
16690 #: ../fish/guestfish-commands.pod:140
16691 msgid "man"
16692 msgstr "man"
16693
16694 #. type: =head2
16695 #: ../fish/guestfish-commands.pod:142
16696 msgid "manual"
16697 msgstr ""
16698
16699 #. type: verbatim
16700 #: ../fish/guestfish-commands.pod:144
16701 #, no-wrap
16702 msgid ""
16703 "  man\n"
16704 "\n"
16705 msgstr ""
16706 "  man\n"
16707 "\n"
16708
16709 #. type: textblock
16710 #: ../fish/guestfish-commands.pod:146
16711 msgid "Opens the manual page for guestfish."
16712 msgstr ""
16713
16714 #. type: =head2
16715 #: ../fish/guestfish-commands.pod:148
16716 msgid "more"
16717 msgstr "more"
16718
16719 #. type: =head2
16720 #: ../fish/guestfish-commands.pod:150
16721 msgid "less"
16722 msgstr "less"
16723
16724 #. type: verbatim
16725 #: ../fish/guestfish-commands.pod:152
16726 #, no-wrap
16727 msgid ""
16728 " more filename\n"
16729 "\n"
16730 msgstr ""
16731
16732 #. type: verbatim
16733 #: ../fish/guestfish-commands.pod:154
16734 #, no-wrap
16735 msgid ""
16736 " less filename\n"
16737 "\n"
16738 msgstr ""
16739
16740 #. type: textblock
16741 #: ../fish/guestfish-commands.pod:156
16742 msgid "This is used to view a file."
16743 msgstr ""
16744
16745 #. type: textblock
16746 #: ../fish/guestfish-commands.pod:158
16747 msgid ""
16748 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16749 "C<less> you will get the C<less> command specifically."
16750 msgstr ""
16751
16752 #. type: =head2
16753 #: ../fish/guestfish-commands.pod:161
16754 msgid "reopen"
16755 msgstr "reopen"
16756
16757 #. type: verbatim
16758 #: ../fish/guestfish-commands.pod:163
16759 #, no-wrap
16760 msgid ""
16761 "  reopen\n"
16762 "\n"
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../fish/guestfish-commands.pod:165
16767 msgid ""
16768 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16769 "normally, because the handle is closed properly when guestfish exits.  "
16770 "However this is occasionally useful for testing."
16771 msgstr ""
16772
16773 #. type: =head2
16774 #: ../fish/guestfish-commands.pod:169
16775 msgid "sparse"
16776 msgstr "sparse"
16777
16778 #. type: verbatim
16779 #: ../fish/guestfish-commands.pod:171
16780 #, no-wrap
16781 msgid ""
16782 " sparse filename size\n"
16783 "\n"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-commands.pod:173
16788 msgid ""
16789 "This creates an empty sparse file of the given size, and then adds so it can "
16790 "be further examined."
16791 msgstr ""
16792
16793 #. type: textblock
16794 #: ../fish/guestfish-commands.pod:176
16795 msgid ""
16796 "In all respects it works the same as the L</alloc> command, except that the "
16797 "image file is allocated sparsely, which means that disk blocks are not "
16798 "assigned to the file until they are needed.  Sparse disk files only use "
16799 "space when written to, but they are slower and there is a danger you could "
16800 "run out of real disk space during a write operation."
16801 msgstr ""
16802
16803 #. type: =head2
16804 #: ../fish/guestfish-commands.pod:186
16805 msgid "supported"
16806 msgstr "supported"
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish-commands.pod:188
16810 #, no-wrap
16811 msgid ""
16812 " supported\n"
16813 "\n"
16814 msgstr ""
16815 " supported\n"
16816 "\n"
16817
16818 #. type: textblock
16819 #: ../fish/guestfish-commands.pod:190
16820 msgid ""
16821 "This command returns a list of the optional groups known to the daemon, and "
16822 "indicates which ones are supported by this build of the libguestfs appliance."
16823 msgstr ""
16824
16825 #. type: textblock
16826 #: ../fish/guestfish-commands.pod:194
16827 msgid "See also L<guestfs(3)/AVAILABILITY>."
16828 msgstr ""
16829
16830 #. type: =head2
16831 #: ../fish/guestfish-commands.pod:196
16832 msgid "time"
16833 msgstr "time"
16834
16835 #. type: verbatim
16836 #: ../fish/guestfish-commands.pod:198
16837 #, no-wrap
16838 msgid ""
16839 " time command args...\n"
16840 "\n"
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-commands.pod:200
16845 msgid ""
16846 "Run the command as usual, but print the elapsed time afterwards.  This can "
16847 "be useful for benchmarking operations."
16848 msgstr ""
16849
16850 #. type: textblock
16851 #: ../fish/guestfish.pod:5
16852 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16853 msgstr ""
16854
16855 #. type: verbatim
16856 #: ../fish/guestfish.pod:9
16857 #, no-wrap
16858 msgid ""
16859 " guestfish [--options] [commands]\n"
16860 "\n"
16861 msgstr ""
16862
16863 #. type: verbatim
16864 #: ../fish/guestfish.pod:11
16865 #, no-wrap
16866 msgid ""
16867 " guestfish\n"
16868 "\n"
16869 msgstr ""
16870
16871 #. type: verbatim
16872 #: ../fish/guestfish.pod:13
16873 #, no-wrap
16874 msgid ""
16875 " guestfish [--ro|--rw] -a disk.img\n"
16876 "\n"
16877 msgstr ""
16878
16879 #. type: verbatim
16880 #: ../fish/guestfish.pod:15
16881 #, no-wrap
16882 msgid ""
16883 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16884 "\n"
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish.pod:17
16889 #, no-wrap
16890 msgid ""
16891 " guestfish -d libvirt-domain\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: verbatim
16896 #: ../fish/guestfish.pod:19
16897 #, no-wrap
16898 msgid ""
16899 " guestfish [--ro|--rw] -a disk.img -i\n"
16900 "\n"
16901 msgstr ""
16902
16903 #. type: verbatim
16904 #: ../fish/guestfish.pod:21
16905 #, no-wrap
16906 msgid ""
16907 " guestfish -d libvirt-domain -i\n"
16908 "\n"
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish.pod:25
16913 msgid ""
16914 "Using guestfish in read/write mode on live virtual machines can be "
16915 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16916 "option to use guestfish safely if the disk image or virtual machine might be "
16917 "live."
16918 msgstr ""
16919
16920 #. type: textblock
16921 #: ../fish/guestfish.pod:32
16922 msgid ""
16923 "Guestfish is a shell and command-line tool for examining and modifying "
16924 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16925 "functionality of the guestfs API, see L<guestfs(3)>."
16926 msgstr ""
16927
16928 #. type: textblock
16929 #: ../fish/guestfish.pod:36
16930 msgid ""
16931 "Guestfish gives you structured access to the libguestfs API, from shell "
16932 "scripts or the command line or interactively.  If you want to rescue a "
16933 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16934 "command."
16935 msgstr ""
16936
16937 #. type: =head2
16938 #: ../fish/guestfish.pod:43
16939 msgid "As an interactive shell"
16940 msgstr ""
16941
16942 #. type: verbatim
16943 #: ../fish/guestfish.pod:45
16944 #, no-wrap
16945 msgid ""
16946 " $ guestfish\n"
16947 " \n"
16948 msgstr ""
16949
16950 #. type: verbatim
16951 #: ../fish/guestfish.pod:47
16952 #, no-wrap
16953 msgid ""
16954 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16955 " editing virtual machine filesystems.\n"
16956 " \n"
16957 msgstr ""
16958
16959 #. type: verbatim
16960 #: ../fish/guestfish.pod:50
16961 #, no-wrap
16962 msgid ""
16963 " Type: 'help' for a list of commands\n"
16964 "       'man' to read the manual\n"
16965 "       'quit' to quit the shell\n"
16966 " \n"
16967 msgstr ""
16968
16969 #. type: verbatim
16970 #: ../fish/guestfish.pod:54
16971 #, no-wrap
16972 msgid ""
16973 " ><fs> add-ro disk.img\n"
16974 " ><fs> run\n"
16975 " ><fs> list-filesystems\n"
16976 " /dev/sda1: ext4\n"
16977 " /dev/vg_guest/lv_root: ext4\n"
16978 " /dev/vg_guest/lv_swap: swap\n"
16979 " ><fs> mount /dev/vg_guest/lv_root /\n"
16980 " ><fs> cat /etc/fstab\n"
16981 " # /etc/fstab\n"
16982 " # Created by anaconda\n"
16983 " [...]\n"
16984 " ><fs> exit\n"
16985 "\n"
16986 msgstr ""
16987
16988 #. type: =head2
16989 #: ../fish/guestfish.pod:67
16990 msgid "From shell scripts"
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish.pod:69
16995 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16996 msgstr ""
16997
16998 #. type: verbatim
16999 #: ../fish/guestfish.pod:71
17000 #, no-wrap
17001 msgid ""
17002 " guestfish <<_EOF_\n"
17003 " add disk.img\n"
17004 " run\n"
17005 " mount /dev/vg_guest/lv_root /\n"
17006 " write /etc/motd \"Welcome, new users\"\n"
17007 " _EOF_\n"
17008 "\n"
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish.pod:78
17013 msgid "List the LVM logical volumes in a disk image:"
17014 msgstr ""
17015
17016 #. type: verbatim
17017 #: ../fish/guestfish.pod:80
17018 #, no-wrap
17019 msgid ""
17020 " guestfish -a disk.img --ro <<_EOF_\n"
17021 " run\n"
17022 " lvs\n"
17023 " _EOF_\n"
17024 "\n"
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish.pod:85
17029 msgid "List all the filesystems in a disk image:"
17030 msgstr ""
17031
17032 #. type: verbatim
17033 #: ../fish/guestfish.pod:87
17034 #, no-wrap
17035 msgid ""
17036 " guestfish -a disk.img --ro <<_EOF_\n"
17037 " run\n"
17038 " list-filesystems\n"
17039 " _EOF_\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: =head2
17044 #: ../fish/guestfish.pod:92
17045 msgid "On one command line"
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17050 msgid "Update C</etc/resolv.conf> in a guest:"
17051 msgstr ""
17052
17053 #. type: verbatim
17054 #: ../fish/guestfish.pod:96
17055 #, no-wrap
17056 msgid ""
17057 " guestfish \\\n"
17058 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17059 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17060 "\n"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish.pod:100
17065 msgid "Edit C</boot/grub/grub.conf> interactively:"
17066 msgstr ""
17067
17068 #. type: verbatim
17069 #: ../fish/guestfish.pod:102
17070 #, no-wrap
17071 msgid ""
17072 " guestfish --rw --add disk.img \\\n"
17073 "   --mount /dev/vg_guest/lv_root \\\n"
17074 "   --mount /dev/sda1:/boot \\\n"
17075 "   edit /boot/grub/grub.conf\n"
17076 "\n"
17077 msgstr ""
17078
17079 #. type: =head2
17080 #: ../fish/guestfish.pod:107
17081 msgid "Mount disks automatically"
17082 msgstr ""
17083
17084 #. type: textblock
17085 #: ../fish/guestfish.pod:109
17086 msgid ""
17087 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17088 msgstr ""
17089
17090 #. type: verbatim
17091 #: ../fish/guestfish.pod:112
17092 #, no-wrap
17093 msgid ""
17094 " guestfish --ro -a disk.img -i cat /etc/group\n"
17095 "\n"
17096 msgstr ""
17097
17098 #. type: verbatim
17099 #: ../fish/guestfish.pod:114
17100 #, no-wrap
17101 msgid ""
17102 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17103 "\n"
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish.pod:116
17108 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17109 msgstr ""
17110
17111 #. type: verbatim
17112 #: ../fish/guestfish.pod:118
17113 #, no-wrap
17114 msgid ""
17115 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17116 "\n"
17117 msgstr ""
17118
17119 #. type: =head2
17120 #: ../fish/guestfish.pod:120
17121 msgid "As a script interpreter"
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../fish/guestfish.pod:122
17126 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17127 msgstr ""
17128
17129 #. type: verbatim
17130 #: ../fish/guestfish.pod:124
17131 #, no-wrap
17132 msgid ""
17133 " #!/usr/bin/guestfish -f\n"
17134 " sparse test1.img 100M\n"
17135 " run\n"
17136 " part-disk /dev/sda mbr\n"
17137 " mkfs ext2 /dev/sda1\n"
17138 "\n"
17139 msgstr ""
17140
17141 #. type: =head2
17142 #: ../fish/guestfish.pod:130
17143 msgid "Start with a prepared disk"
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish.pod:132
17148 msgid ""
17149 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17150 "single ext2-formatted partition:"
17151 msgstr ""
17152
17153 #. type: verbatim
17154 #: ../fish/guestfish.pod:135
17155 #, no-wrap
17156 msgid ""
17157 " guestfish -N fs\n"
17158 "\n"
17159 msgstr ""
17160
17161 #. type: textblock
17162 #: ../fish/guestfish.pod:137
17163 msgid "To list what is available do:"
17164 msgstr ""
17165
17166 #. type: verbatim
17167 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
17168 #, no-wrap
17169 msgid ""
17170 " guestfish -N help | less\n"
17171 "\n"
17172 msgstr ""
17173
17174 #. type: =head2
17175 #: ../fish/guestfish.pod:141
17176 msgid "Remote control"
17177 msgstr "Дистанційне керування"
17178
17179 #. type: verbatim
17180 #: ../fish/guestfish.pod:143
17181 #, no-wrap
17182 msgid ""
17183 " eval \"`guestfish --listen`\"\n"
17184 " guestfish --remote add-ro disk.img\n"
17185 " guestfish --remote run\n"
17186 " guestfish --remote lvs\n"
17187 "\n"
17188 msgstr ""
17189 " eval \"`guestfish --listen`\"\n"
17190 " guestfish --remote add-ro disk.img\n"
17191 " guestfish --remote run\n"
17192 " guestfish --remote lvs\n"
17193 "\n"
17194
17195 #. type: textblock
17196 #: ../fish/guestfish.pod:154
17197 msgid "Displays general help on options."
17198 msgstr ""
17199
17200 #. type: =item
17201 #: ../fish/guestfish.pod:158
17202 msgid "B<--cmd-help>"
17203 msgstr "B<--cmd-help>"
17204
17205 #. type: textblock
17206 #: ../fish/guestfish.pod:160
17207 msgid "Lists all available guestfish commands."
17208 msgstr ""
17209
17210 #. type: =item
17211 #: ../fish/guestfish.pod:162
17212 msgid "B<-h cmd>"
17213 msgstr "B<-h команда>"
17214
17215 #. type: =item
17216 #: ../fish/guestfish.pod:164
17217 msgid "B<--cmd-help cmd>"
17218 msgstr "B<--cmd-help команда>"
17219
17220 #. type: textblock
17221 #: ../fish/guestfish.pod:166
17222 msgid "Displays detailed help on a single command C<cmd>."
17223 msgstr ""
17224
17225 #. type: =item
17226 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
17227 msgid "B<-a image>"
17228 msgstr "B<-a образ>"
17229
17230 #. type: =item
17231 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
17232 msgid "B<--add image>"
17233 msgstr "B<--add образ>"
17234
17235 #. type: textblock
17236 #: ../fish/guestfish.pod:172
17237 msgid "Add a block device or virtual machine image to the shell."
17238 msgstr ""
17239
17240 #. type: textblock
17241 #: ../fish/guestfish.pod:177
17242 msgid ""
17243 "Using this flag is mostly equivalent to using the C<add> command, with "
17244 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17245 "the I<--format=...> flag was given."
17246 msgstr ""
17247
17248 #. type: textblock
17249 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
17250 msgid ""
17251 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17252 "URI to use.  The default is to use the default libvirt connection."
17253 msgstr ""
17254
17255 #. type: =item
17256 #: ../fish/guestfish.pod:189
17257 msgid "B<--csh>"
17258 msgstr "B<--csh>"
17259
17260 #. type: textblock
17261 #: ../fish/guestfish.pod:191
17262 msgid ""
17263 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17264 "section L</REMOTE CONTROL AND CSH> below."
17265 msgstr ""
17266
17267 #. type: =item
17268 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
17269 msgid "B<-d libvirt-domain>"
17270 msgstr "B<-d домен-libvirt>"
17271
17272 #. type: =item
17273 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
17274 msgid "B<--domain libvirt-domain>"
17275 msgstr "B<--domain домен-libvirt>"
17276
17277 #. type: textblock
17278 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
17279 msgid ""
17280 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17281 "used, then any libvirt domain can be used.  However in write mode, only "
17282 "libvirt domains which are shut down can be named here."
17283 msgstr ""
17284
17285 #. type: textblock
17286 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
17287 msgid "Domain UUIDs can be used instead of names."
17288 msgstr ""
17289
17290 #. type: textblock
17291 #: ../fish/guestfish.pod:204
17292 msgid ""
17293 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17294 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17295 "if the I<--format:...> flag was given."
17296 msgstr ""
17297
17298 #. type: =item
17299 #: ../fish/guestfish.pod:208
17300 msgid "B<-D>"
17301 msgstr "B<-D>"
17302
17303 #. type: =item
17304 #: ../fish/guestfish.pod:210
17305 msgid "B<--no-dest-paths>"
17306 msgstr "B<--no-dest-paths>"
17307
17308 #. type: textblock
17309 #: ../fish/guestfish.pod:212
17310 msgid ""
17311 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17312 "to hit the tab key to complete paths on the guest filesystem, but this "
17313 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17314 "allow this feature to be disabled."
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
17319 msgid ""
17320 "When prompting for keys and passphrases, guestfish normally turns echoing "
17321 "off so you cannot see what you are typing.  If you are not worried about "
17322 "Tempest attacks and there is no one else in the room you can specify this "
17323 "flag to see what you are typing."
17324 msgstr ""
17325
17326 #. type: =item
17327 #: ../fish/guestfish.pod:224
17328 msgid "B<-f file>"
17329 msgstr "B<-f файл>"
17330
17331 #. type: =item
17332 #: ../fish/guestfish.pod:226
17333 msgid "B<--file file>"
17334 msgstr "B<--file файл>"
17335
17336 #. type: textblock
17337 #: ../fish/guestfish.pod:228
17338 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17339 msgstr ""
17340
17341 #. type: verbatim
17342 #: ../fish/guestfish.pod:231
17343 #, no-wrap
17344 msgid ""
17345 " #!/usr/bin/guestfish -f\n"
17346 "\n"
17347 msgstr ""
17348 " #!/usr/bin/guestfish -f\n"
17349 "\n"
17350
17351 #. type: verbatim
17352 #: ../fish/guestfish.pod:244
17353 #, no-wrap
17354 msgid ""
17355 " guestfish --format=raw -a disk.img\n"
17356 "\n"
17357 msgstr ""
17358 " guestfish --format=raw -a disk.img\n"
17359 "\n"
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish.pod:248
17363 #, no-wrap
17364 msgid ""
17365 " guestfish --format=raw -a disk.img --format -a another.img\n"
17366 "\n"
17367 msgstr ""
17368 " guestfish --format=raw -a disk.img --format -a another.img\n"
17369 "\n"
17370
17371 #. type: textblock
17372 #: ../fish/guestfish.pod:253
17373 msgid ""
17374 "If you have untrusted raw-format guest disk images, you should use this "
17375 "option to specify the disk format.  This avoids a possible security problem "
17376 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17377 msgstr ""
17378
17379 #. type: =item
17380 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
17381 msgid "B<--inspector>"
17382 msgstr "B<--inspector>"
17383
17384 #. type: textblock
17385 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
17386 msgid ""
17387 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17388 "system and mount filesystems as they would be mounted on the real virtual "
17389 "machine."
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../fish/guestfish.pod:266
17394 msgid "Typical usage is either:"
17395 msgstr ""
17396
17397 #. type: verbatim
17398 #: ../fish/guestfish.pod:268
17399 #, no-wrap
17400 msgid ""
17401 " guestfish -d myguest -i\n"
17402 "\n"
17403 msgstr ""
17404 " guestfish -d myguest -i\n"
17405 "\n"
17406
17407 #. type: textblock
17408 #: ../fish/guestfish.pod:270
17409 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17410 msgstr ""
17411
17412 #. type: verbatim
17413 #: ../fish/guestfish.pod:272
17414 #, no-wrap
17415 msgid ""
17416 " guestfish --ro -d myguest -i\n"
17417 "\n"
17418 msgstr ""
17419 " guestfish --ro -d myguest -i\n"
17420 "\n"
17421
17422 #. type: textblock
17423 #: ../fish/guestfish.pod:274
17424 msgid "(for active domains, readonly), or specify the block device directly:"
17425 msgstr ""
17426
17427 #. type: verbatim
17428 #: ../fish/guestfish.pod:276
17429 #, no-wrap
17430 msgid ""
17431 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17432 "\n"
17433 msgstr ""
17434 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17435 "\n"
17436
17437 #. type: textblock
17438 #: ../fish/guestfish.pod:278
17439 msgid ""
17440 "Note that the command line syntax changed slightly over older versions of "
17441 "guestfish.  You can still use the old syntax:"
17442 msgstr ""
17443
17444 #. type: verbatim
17445 #: ../fish/guestfish.pod:281
17446 #, no-wrap
17447 msgid ""
17448 " guestfish [--ro] -i disk.img\n"
17449 "\n"
17450 msgstr ""
17451 " guestfish [--ro] -i disk.img\n"
17452 "\n"
17453
17454 #. type: verbatim
17455 #: ../fish/guestfish.pod:283
17456 #, no-wrap
17457 msgid ""
17458 " guestfish [--ro] -i libvirt-domain\n"
17459 "\n"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish.pod:285
17464 msgid ""
17465 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17466 "then using other commands to mount the filesystems that were found."
17467 msgstr ""
17468
17469 #. type: =item
17470 #: ../fish/guestfish.pod:294
17471 msgid "B<--listen>"
17472 msgstr "B<--listen>"
17473
17474 #. type: textblock
17475 #: ../fish/guestfish.pod:296
17476 msgid ""
17477 "Fork into the background and listen for remote commands.  See section L</"
17478 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17479 msgstr ""
17480
17481 #. type: =item
17482 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
17483 msgid "B<--live>"
17484 msgstr "B<--live>"
17485
17486 #. type: textblock
17487 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
17488 msgid ""
17489 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17490 "ATTACHING TO RUNNING DAEMONS>)."
17491 msgstr ""
17492
17493 #. type: =item
17494 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
17495 msgid "B<-m dev[:mountpoint[:options]]>"
17496 msgstr ""
17497
17498 #. type: =item
17499 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
17500 msgid "B<--mount dev[:mountpoint[:options]]>"
17501 msgstr ""
17502
17503 #. type: textblock
17504 #: ../fish/guestfish.pod:308
17505 msgid "Mount the named partition or logical volume on the given mountpoint."
17506 msgstr ""
17507
17508 #. type: textblock
17509 #: ../fish/guestfish.pod:310
17510 msgid "If the mountpoint is omitted, it defaults to C</>."
17511 msgstr ""
17512
17513 #. type: textblock
17514 #: ../fish/guestfish.pod:312
17515 msgid "You have to mount something on C</> before most commands will work."
17516 msgstr ""
17517
17518 #. type: textblock
17519 #: ../fish/guestfish.pod:314
17520 msgid ""
17521 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17522 "launched."
17523 msgstr ""
17524
17525 #. type: textblock
17526 #: ../fish/guestfish.pod:317
17527 msgid ""
17528 "If you don't know what filesystems a disk image contains, you can either run "
17529 "guestfish without this option, then list the partitions, filesystems and LVs "
17530 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17531 "commands), or you can use the L<virt-filesystems(1)> program."
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
17536 msgid ""
17537 "The third (and rarely used) part of the mount parameter is the list of mount "
17538 "options used to mount the underlying filesystem.  If this is not given, then "
17539 "the mount options are either the empty string or C<ro> (the latter if the "
17540 "I<--ro> flag is used).  By specifying the mount options, you override this "
17541 "default choice.  Probably the only time you would use this is to enable ACLs "
17542 "and/or extended attributes if the filesystem can support them:"
17543 msgstr ""
17544
17545 #. type: verbatim
17546 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
17547 #, no-wrap
17548 msgid ""
17549 " -m /dev/sda1:/:acl,user_xattr\n"
17550 "\n"
17551 msgstr ""
17552
17553 #. type: textblock
17554 #: ../fish/guestfish.pod:333
17555 msgid "Using this flag is equivalent to using the C<mount-options> command."
17556 msgstr ""
17557
17558 #. type: =item
17559 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
17560 #: ../resize/virt-resize.pod:358
17561 msgid "B<-n>"
17562 msgstr "B<-n>"
17563
17564 #. type: =item
17565 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
17566 msgid "B<--no-sync>"
17567 msgstr "B<--no-sync>"
17568
17569 #. type: textblock
17570 #: ../fish/guestfish.pod:339
17571 msgid ""
17572 "Disable autosync.  This is enabled by default.  See the discussion of "
17573 "autosync in the L<guestfs(3)> manpage."
17574 msgstr ""
17575
17576 #. type: =item
17577 #: ../fish/guestfish.pod:342
17578 msgid "B<-N type>"
17579 msgstr "B<-N тип>"
17580
17581 #. type: =item
17582 #: ../fish/guestfish.pod:344
17583 msgid "B<--new type>"
17584 msgstr "B<--new тип>"
17585
17586 #. type: =item
17587 #: ../fish/guestfish.pod:346
17588 msgid "B<-N help>"
17589 msgstr "B<-N help>"
17590
17591 #. type: textblock
17592 #: ../fish/guestfish.pod:348
17593 msgid ""
17594 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17595 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17596 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17597 "IMAGES> below."
17598 msgstr ""
17599
17600 #. type: =item
17601 #: ../fish/guestfish.pod:353
17602 msgid "B<--progress-bars>"
17603 msgstr "B<--progress-bars>"
17604
17605 #. type: textblock
17606 #: ../fish/guestfish.pod:355
17607 msgid "Enable progress bars, even when guestfish is used non-interactively."
17608 msgstr ""
17609
17610 #. type: textblock
17611 #: ../fish/guestfish.pod:357
17612 msgid ""
17613 "Progress bars are enabled by default when guestfish is used as an "
17614 "interactive shell."
17615 msgstr ""
17616
17617 #. type: =item
17618 #: ../fish/guestfish.pod:360
17619 msgid "B<--no-progress-bars>"
17620 msgstr "B<--no-progress-bars>"
17621
17622 #. type: textblock
17623 #: ../fish/guestfish.pod:362
17624 msgid "Disable progress bars."
17625 msgstr ""
17626
17627 #. type: =item
17628 #: ../fish/guestfish.pod:364
17629 msgid "B<--remote[=pid]>"
17630 msgstr "B<--remote[=pid]>"
17631
17632 #. type: textblock
17633 #: ../fish/guestfish.pod:366
17634 msgid ""
17635 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17636 "CONTROL GUESTFISH OVER A SOCKET> below."
17637 msgstr ""
17638
17639 #. type: =item
17640 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
17641 #: ../rescue/virt-rescue.pod:161
17642 msgid "B<-r>"
17643 msgstr "B<-r>"
17644
17645 #. type: =item
17646 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
17647 #: ../rescue/virt-rescue.pod:163
17648 msgid "B<--ro>"
17649 msgstr "B<--ro>"
17650
17651 #. type: textblock
17652 #: ../fish/guestfish.pod:373
17653 msgid ""
17654 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17655 "mounts are done read-only."
17656 msgstr ""
17657
17658 #. type: textblock
17659 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17660 msgid ""
17661 "The option must always be used if the disk image or virtual machine might be "
17662 "running, and is generally recommended in cases where you don't need write "
17663 "access to the disk."
17664 msgstr ""
17665
17666 #. type: textblock
17667 #: ../fish/guestfish.pod:380
17668 msgid ""
17669 "Note that prepared disk images created with I<-N> are not affected by this "
17670 "option.  Also commands like C<add> are not affected - you have to specify "
17671 "the C<readonly:true> option explicitly if you need it."
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish.pod:384
17676 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17677 msgstr ""
17678
17679 #. type: =item
17680 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
17681 #: ../rescue/virt-rescue.pod:173
17682 msgid "B<--selinux>"
17683 msgstr "B<--selinux>"
17684
17685 #. type: textblock
17686 #: ../fish/guestfish.pod:388
17687 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17688 msgstr ""
17689
17690 #. type: textblock
17691 #: ../fish/guestfish.pod:394
17692 msgid ""
17693 "Enable very verbose messages.  This is particularly useful if you find a bug."
17694 msgstr ""
17695
17696 #. type: textblock
17697 #: ../fish/guestfish.pod:401
17698 msgid "Display the guestfish / libguestfs version number and exit."
17699 msgstr ""
17700
17701 #. type: =item
17702 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
17703 #: ../rescue/virt-rescue.pod:190
17704 msgid "B<-w>"
17705 msgstr "B<-w>"
17706
17707 #. type: =item
17708 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
17709 #: ../rescue/virt-rescue.pod:192
17710 msgid "B<--rw>"
17711 msgstr "B<--rw>"
17712
17713 #. type: textblock
17714 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
17715 msgid ""
17716 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17717 "mounts are done read-write."
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:410
17722 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17723 msgstr ""
17724
17725 #. type: textblock
17726 #: ../fish/guestfish.pod:414
17727 msgid "Echo each command before executing it."
17728 msgstr ""
17729
17730 #. type: =head1
17731 #: ../fish/guestfish.pod:418
17732 msgid "COMMANDS ON COMMAND LINE"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:420
17737 msgid ""
17738 "Any additional (non-option) arguments are treated as commands to execute."
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../fish/guestfish.pod:423
17743 msgid ""
17744 "Commands to execute should be separated by a colon (C<:>), where the colon "
17745 "is a separate parameter.  Thus:"
17746 msgstr ""
17747
17748 #. type: verbatim
17749 #: ../fish/guestfish.pod:426
17750 #, no-wrap
17751 msgid ""
17752 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17753 "\n"
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../fish/guestfish.pod:428
17758 msgid ""
17759 "If there are no additional arguments, then we enter a shell, either an "
17760 "interactive shell with a prompt (if the input is a terminal) or a non-"
17761 "interactive shell."
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:432
17766 msgid ""
17767 "In either command line mode or non-interactive shell, the first command that "
17768 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17769 "prompt) if a command fails, you can continue to enter commands."
17770 msgstr ""
17771
17772 #. type: =head1
17773 #: ../fish/guestfish.pod:437
17774 msgid "USING launch (OR run)"
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../fish/guestfish.pod:439
17779 msgid ""
17780 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17781 "then launch it, then mount any disks you need, and finally issue actions/"
17782 "commands.  So the general order of the day is:"
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../fish/guestfish.pod:447
17787 msgid "add or -a/--add"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish.pod:451
17792 msgid "launch (aka run)"
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish.pod:455
17797 msgid "mount or -m/--mount"
17798 msgstr ""
17799
17800 #. type: textblock
17801 #: ../fish/guestfish.pod:459
17802 msgid "any other commands"
17803 msgstr ""
17804
17805 #. type: textblock
17806 #: ../fish/guestfish.pod:463
17807 msgid ""
17808 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17809 "guest before mounting or performing any other commands."
17810 msgstr ""
17811
17812 #. type: textblock
17813 #: ../fish/guestfish.pod:466
17814 msgid ""
17815 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17816 "I<--new> options were given then C<run> is done automatically, simply "
17817 "because guestfish can't perform the action you asked for without doing this."
17818 msgstr ""
17819
17820 #. type: =head1
17821 #: ../fish/guestfish.pod:471
17822 msgid "OPENING DISKS FOR READ AND WRITE"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish.pod:473
17827 msgid ""
17828 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17829 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17830 "I<-i> and I<-m> open disk images read-only or for writing."
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish.pod:478
17835 msgid ""
17836 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17837 "opening disk images supplied on the command line for write.  To open a disk "
17838 "image read-only you have to do I<-a image --ro>."
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish.pod:482
17843 msgid ""
17844 "This matters: If you accidentally open a live VM disk image writable then "
17845 "you will cause irreversible disk corruption."
17846 msgstr ""
17847
17848 #. type: textblock
17849 #: ../fish/guestfish.pod:485
17850 msgid ""
17851 "In a future libguestfs we intend to change the default the other way.  Disk "
17852 "images will be opened read-only.  You will have to either specify "
17853 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17854 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17855 "access for disk images specified by those other command line options."
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish.pod:492
17860 msgid ""
17861 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17862 "which does nothing (it is already the default).  However it is highly "
17863 "recommended that you use this option to indicate that you need write access, "
17864 "and prepare your scripts for the day when this option will be required for "
17865 "write access."
17866 msgstr ""
17867
17868 #. type: textblock
17869 #: ../fish/guestfish.pod:498
17870 msgid ""
17871 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17872 "other libguestfs program apart from guestfish and guestmount."
17873 msgstr ""
17874
17875 #. type: =head1
17876 #: ../fish/guestfish.pod:501
17877 msgid "QUOTING"
17878 msgstr ""
17879
17880 #. type: textblock
17881 #: ../fish/guestfish.pod:503
17882 msgid ""
17883 "You can quote ordinary parameters using either single or double quotes.  For "
17884 "example:"
17885 msgstr ""
17886
17887 #. type: verbatim
17888 #: ../fish/guestfish.pod:506
17889 #, no-wrap
17890 msgid ""
17891 " add \"file with a space.img\"\n"
17892 "\n"
17893 msgstr ""
17894
17895 #. type: verbatim
17896 #: ../fish/guestfish.pod:508
17897 #, no-wrap
17898 msgid ""
17899 " rm '/file name'\n"
17900 "\n"
17901 msgstr ""
17902
17903 #. type: verbatim
17904 #: ../fish/guestfish.pod:510
17905 #, no-wrap
17906 msgid ""
17907 " rm '/\"'\n"
17908 "\n"
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish.pod:512
17913 msgid ""
17914 "A few commands require a list of strings to be passed.  For these, use a "
17915 "whitespace-separated list, enclosed in quotes.  Strings containing "
17916 "whitespace to be passed through must be enclosed in single quotes.  A "
17917 "literal single quote must be escaped with a backslash."
17918 msgstr ""
17919
17920 #. type: verbatim
17921 #: ../fish/guestfish.pod:517
17922 #, no-wrap
17923 msgid ""
17924 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17925 " command \"/bin/echo 'foo      bar'\"\n"
17926 " command \"/bin/echo \\'foo\\'\"\n"
17927 "\n"
17928 msgstr ""
17929
17930 #. type: =head2
17931 #: ../fish/guestfish.pod:521
17932 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish.pod:523
17937 msgid ""
17938 "In double-quoted arguments (only) use backslash to insert special characters:"
17939 msgstr ""
17940
17941 #. type: =item
17942 #: ../fish/guestfish.pod:528
17943 msgid "C<\\a>"
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish.pod:530
17948 msgid "Alert (bell) character."
17949 msgstr ""
17950
17951 #. type: =item
17952 #: ../fish/guestfish.pod:532
17953 msgid "C<\\b>"
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish.pod:534
17958 msgid "Backspace character."
17959 msgstr ""
17960
17961 #. type: =item
17962 #: ../fish/guestfish.pod:536
17963 msgid "C<\\f>"
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish.pod:538
17968 msgid "Form feed character."
17969 msgstr ""
17970
17971 #. type: =item
17972 #: ../fish/guestfish.pod:540
17973 msgid "C<\\n>"
17974 msgstr ""
17975
17976 #. type: textblock
17977 #: ../fish/guestfish.pod:542
17978 msgid "Newline character."
17979 msgstr ""
17980
17981 #. type: =item
17982 #: ../fish/guestfish.pod:544
17983 msgid "C<\\r>"
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish.pod:546
17988 msgid "Carriage return character."
17989 msgstr ""
17990
17991 #. type: =item
17992 #: ../fish/guestfish.pod:548
17993 msgid "C<\\t>"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish.pod:550
17998 msgid "Horizontal tab character."
17999 msgstr ""
18000
18001 #. type: =item
18002 #: ../fish/guestfish.pod:552
18003 msgid "C<\\v>"
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../fish/guestfish.pod:554
18008 msgid "Vertical tab character."
18009 msgstr ""
18010
18011 #. type: =item
18012 #: ../fish/guestfish.pod:556
18013 msgid "C<\\\">"
18014 msgstr ""
18015
18016 #. type: textblock
18017 #: ../fish/guestfish.pod:558
18018 msgid "A literal double quote character."
18019 msgstr ""
18020
18021 #. type: =item
18022 #: ../fish/guestfish.pod:560
18023 msgid "C<\\ooo>"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish.pod:562
18028 msgid ""
18029 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18030 "(unlike C)."
18031 msgstr ""
18032
18033 #. type: =item
18034 #: ../fish/guestfish.pod:565
18035 msgid "C<\\xhh>"
18036 msgstr ""
18037
18038 #. type: textblock
18039 #: ../fish/guestfish.pod:567
18040 msgid ""
18041 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../fish/guestfish.pod:570
18046 msgid ""
18047 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18048 "strings."
18049 msgstr ""
18050
18051 #. type: =item
18052 #: ../fish/guestfish.pod:573
18053 msgid "C<\\\\>"
18054 msgstr ""
18055
18056 #. type: textblock
18057 #: ../fish/guestfish.pod:575
18058 msgid "A literal backslash character."
18059 msgstr ""
18060
18061 #. type: =head1
18062 #: ../fish/guestfish.pod:579
18063 msgid "OPTIONAL ARGUMENTS"
18064 msgstr ""
18065
18066 #. type: textblock
18067 #: ../fish/guestfish.pod:581
18068 msgid ""
18069 "Some commands take optional arguments.  These arguments appear in this "
18070 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18071 msgstr ""
18072
18073 #. type: verbatim
18074 #: ../fish/guestfish.pod:585
18075 #, no-wrap
18076 msgid ""
18077 " add-drive-opts filename\n"
18078 "\n"
18079 msgstr ""
18080
18081 #. type: verbatim
18082 #: ../fish/guestfish.pod:587
18083 #, no-wrap
18084 msgid ""
18085 " add-drive-opts filename readonly:true\n"
18086 "\n"
18087 msgstr ""
18088
18089 #. type: verbatim
18090 #: ../fish/guestfish.pod:589
18091 #, no-wrap
18092 msgid ""
18093 " add-drive-opts filename format:qcow2 readonly:false\n"
18094 "\n"
18095 msgstr ""
18096
18097 #. type: textblock
18098 #: ../fish/guestfish.pod:591
18099 msgid ""
18100 "Each optional argument can appear at most once.  All optional arguments must "
18101 "appear after the required ones."
18102 msgstr ""
18103
18104 #. type: =head1
18105 #: ../fish/guestfish.pod:594
18106 msgid "NUMBERS"
18107 msgstr "ЧИСЛА"
18108
18109 #. type: textblock
18110 #: ../fish/guestfish.pod:596
18111 msgid ""
18112 "This section applies to all commands which can take integers as parameters."
18113 msgstr ""
18114
18115 #. type: =head2
18116 #: ../fish/guestfish.pod:599
18117 msgid "SIZE SUFFIX"
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish.pod:601
18122 msgid ""
18123 "When the command takes a parameter measured in bytes, you can use one of the "
18124 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18125 msgstr ""
18126
18127 #. type: =item
18128 #: ../fish/guestfish.pod:607
18129 msgid "B<k> or B<K> or B<KiB>"
18130 msgstr "B<k>, B<K> або B<KiB>"
18131
18132 #. type: textblock
18133 #: ../fish/guestfish.pod:609
18134 msgid "The size in kilobytes (multiplied by 1024)."
18135 msgstr ""
18136
18137 #. type: =item
18138 #: ../fish/guestfish.pod:611
18139 msgid "B<KB>"
18140 msgstr "B<KB>"
18141
18142 #. type: textblock
18143 #: ../fish/guestfish.pod:613
18144 msgid "The size in SI 1000 byte units."
18145 msgstr ""
18146
18147 #. type: =item
18148 #: ../fish/guestfish.pod:615
18149 msgid "B<M> or B<MiB>"
18150 msgstr "B<M> або B<MiB>"
18151
18152 #. type: textblock
18153 #: ../fish/guestfish.pod:617
18154 msgid "The size in megabytes (multiplied by 1048576)."
18155 msgstr ""
18156
18157 #. type: =item
18158 #: ../fish/guestfish.pod:619
18159 msgid "B<MB>"
18160 msgstr "B<MB>"
18161
18162 #. type: textblock
18163 #: ../fish/guestfish.pod:621
18164 msgid "The size in SI 1000000 byte units."
18165 msgstr ""
18166
18167 #. type: =item
18168 #: ../fish/guestfish.pod:623
18169 msgid "B<G> or B<GiB>"
18170 msgstr "B<G> або B<GiB>"
18171
18172 #. type: textblock
18173 #: ../fish/guestfish.pod:625
18174 msgid "The size in gigabytes (multiplied by 2**30)."
18175 msgstr "Розмір у гігабайтах (з множником 2**30)."
18176
18177 #. type: =item
18178 #: ../fish/guestfish.pod:627
18179 msgid "B<GB>"
18180 msgstr "B<GB>"
18181
18182 #. type: textblock
18183 #: ../fish/guestfish.pod:629
18184 msgid "The size in SI 10**9 byte units."
18185 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18186
18187 #. type: =item
18188 #: ../fish/guestfish.pod:631
18189 msgid "B<T> or B<TiB>"
18190 msgstr "B<T> або B<TiB>"
18191
18192 #. type: textblock
18193 #: ../fish/guestfish.pod:633
18194 msgid "The size in terabytes (multiplied by 2**40)."
18195 msgstr "Розмір у терабайтах (з множником 2**40)."
18196
18197 #. type: =item
18198 #: ../fish/guestfish.pod:635
18199 msgid "B<TB>"
18200 msgstr "B<TB>"
18201
18202 #. type: textblock
18203 #: ../fish/guestfish.pod:637
18204 msgid "The size in SI 10**12 byte units."
18205 msgstr ""
18206
18207 #. type: =item
18208 #: ../fish/guestfish.pod:639
18209 msgid "B<P> or B<PiB>"
18210 msgstr "B<P> або B<PiB>"
18211
18212 #. type: textblock
18213 #: ../fish/guestfish.pod:641
18214 msgid "The size in petabytes (multiplied by 2**50)."
18215 msgstr ""
18216
18217 #. type: =item
18218 #: ../fish/guestfish.pod:643
18219 msgid "B<PB>"
18220 msgstr "B<PB>"
18221
18222 #. type: textblock
18223 #: ../fish/guestfish.pod:645
18224 msgid "The size in SI 10**15 byte units."
18225 msgstr ""
18226
18227 #. type: =item
18228 #: ../fish/guestfish.pod:647
18229 msgid "B<E> or B<EiB>"
18230 msgstr "B<E> або B<EiB>"
18231
18232 #. type: textblock
18233 #: ../fish/guestfish.pod:649
18234 msgid "The size in exabytes (multiplied by 2**60)."
18235 msgstr ""
18236
18237 #. type: =item
18238 #: ../fish/guestfish.pod:651
18239 msgid "B<EB>"
18240 msgstr "B<EB>"
18241
18242 #. type: textblock
18243 #: ../fish/guestfish.pod:653
18244 msgid "The size in SI 10**18 byte units."
18245 msgstr ""
18246
18247 #. type: =item
18248 #: ../fish/guestfish.pod:655
18249 msgid "B<Z> or B<ZiB>"
18250 msgstr "B<Z> або B<ZiB>"
18251
18252 #. type: textblock
18253 #: ../fish/guestfish.pod:657
18254 msgid "The size in zettabytes (multiplied by 2**70)."
18255 msgstr ""
18256
18257 #. type: =item
18258 #: ../fish/guestfish.pod:659
18259 msgid "B<ZB>"
18260 msgstr "B<ZB>"
18261
18262 #. type: textblock
18263 #: ../fish/guestfish.pod:661
18264 msgid "The size in SI 10**21 byte units."
18265 msgstr ""
18266
18267 #. type: =item
18268 #: ../fish/guestfish.pod:663
18269 msgid "B<Y> or B<YiB>"
18270 msgstr "B<Y> або B<YiB>"
18271
18272 #. type: textblock
18273 #: ../fish/guestfish.pod:665
18274 msgid "The size in yottabytes (multiplied by 2**80)."
18275 msgstr ""
18276
18277 #. type: =item
18278 #: ../fish/guestfish.pod:667
18279 msgid "B<YB>"
18280 msgstr "B<YB>"
18281
18282 #. type: textblock
18283 #: ../fish/guestfish.pod:669
18284 msgid "The size in SI 10**24 byte units."
18285 msgstr ""
18286
18287 #. type: verbatim
18288 #: ../fish/guestfish.pod:675
18289 #, no-wrap
18290 msgid ""
18291 " truncate-size /file 1G\n"
18292 "\n"
18293 msgstr ""
18294
18295 #. type: textblock
18296 #: ../fish/guestfish.pod:677
18297 msgid "would truncate the file to 1 gigabyte."
18298 msgstr ""
18299
18300 #. type: textblock
18301 #: ../fish/guestfish.pod:679
18302 msgid ""
18303 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18304 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18305 "suffix will probably not do what you expect."
18306 msgstr ""
18307
18308 #. type: =head2
18309 #: ../fish/guestfish.pod:683
18310 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:685
18315 msgid ""
18316 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18317 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18318 msgstr ""
18319
18320 #. type: verbatim
18321 #: ../fish/guestfish.pod:688
18322 #, no-wrap
18323 msgid ""
18324 " 1234      decimal number 1234\n"
18325 " 02322     octal number, equivalent to decimal 1234\n"
18326 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18327 "\n"
18328 msgstr ""
18329
18330 #. type: textblock
18331 #: ../fish/guestfish.pod:692
18332 msgid ""
18333 "When using the C<chmod> command, you almost always want to specify an octal "
18334 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18335 "L<chmod(1)> program):"
18336 msgstr ""
18337
18338 #. type: verbatim
18339 #: ../fish/guestfish.pod:696
18340 #, no-wrap
18341 msgid ""
18342 " chmod 0777 /public  # OK\n"
18343 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18344 "\n"
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fish/guestfish.pod:699
18349 msgid ""
18350 "Commands that return numbers usually print them in decimal, but some "
18351 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18352 "octal, preceeded by C<0>)."
18353 msgstr ""
18354
18355 #. type: =head1
18356 #: ../fish/guestfish.pod:703
18357 msgid "WILDCARDS AND GLOBBING"
18358 msgstr ""
18359
18360 #. type: textblock
18361 #: ../fish/guestfish.pod:705
18362 msgid ""
18363 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18364 "(globbing) by default.  So for example the following will not do what you "
18365 "expect:"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fish/guestfish.pod:709
18370 #, no-wrap
18371 msgid ""
18372 " rm-rf /home/*\n"
18373 "\n"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish.pod:711
18378 msgid ""
18379 "Assuming you don't have a directory called literally C</home/*> then the "
18380 "above command will return an error."
18381 msgstr ""
18382
18383 #. type: textblock
18384 #: ../fish/guestfish.pod:714
18385 msgid "To perform wildcard expansion, use the C<glob> command."
18386 msgstr ""
18387
18388 #. type: verbatim
18389 #: ../fish/guestfish.pod:716
18390 #, no-wrap
18391 msgid ""
18392 " glob rm-rf /home/*\n"
18393 "\n"
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fish/guestfish.pod:718
18398 msgid ""
18399 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18400 "many times), equivalent to:"
18401 msgstr ""
18402
18403 #. type: verbatim
18404 #: ../fish/guestfish.pod:721
18405 #, no-wrap
18406 msgid ""
18407 " rm-rf /home/jim\n"
18408 " rm-rf /home/joe\n"
18409 " rm-rf /home/mary\n"
18410 "\n"
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/guestfish.pod:725
18415 msgid "C<glob> only works on simple guest paths and not on device names."
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish.pod:727
18420 msgid ""
18421 "If you have several parameters, each containing a wildcard, then glob will "
18422 "perform a Cartesian product."
18423 msgstr ""
18424
18425 #. type: =head1
18426 #: ../fish/guestfish.pod:730
18427 msgid "COMMENTS"
18428 msgstr "КОМЕНТАРІ"
18429
18430 #. type: textblock
18431 #: ../fish/guestfish.pod:732
18432 msgid ""
18433 "Any line which starts with a I<#> character is treated as a comment and "
18434 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18435 "a command.  For example:"
18436 msgstr ""
18437
18438 #. type: verbatim
18439 #: ../fish/guestfish.pod:736
18440 #, no-wrap
18441 msgid ""
18442 " # this is a comment\n"
18443 "         # this is a comment\n"
18444 " foo # NOT a comment\n"
18445 "\n"
18446 msgstr ""
18447
18448 #. type: textblock
18449 #: ../fish/guestfish.pod:740
18450 msgid "Blank lines are also ignored."
18451 msgstr ""
18452
18453 #. type: =head1
18454 #: ../fish/guestfish.pod:742
18455 msgid "RUNNING COMMANDS LOCALLY"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish.pod:744
18460 msgid ""
18461 "Any line which starts with a I<!> character is treated as a command sent to "
18462 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18463 msgstr ""
18464
18465 #. type: verbatim
18466 #: ../fish/guestfish.pod:748
18467 #, no-wrap
18468 msgid ""
18469 " !mkdir local\n"
18470 " tgz-out /remote local/remote-data.tar.gz\n"
18471 "\n"
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../fish/guestfish.pod:751
18476 msgid ""
18477 "will create a directory C<local> on the host, and then export the contents "
18478 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18479 "(See C<tgz-out>)."
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fish/guestfish.pod:755
18484 msgid ""
18485 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18486 "effect, due to the way that subprocesses work in Unix."
18487 msgstr ""
18488
18489 #. type: =head2
18490 #: ../fish/guestfish.pod:758
18491 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18492 msgstr ""
18493
18494 #. type: textblock
18495 #: ../fish/guestfish.pod:760
18496 msgid ""
18497 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18498 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18499 "and executed as guestfish commands."
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish.pod:764
18504 msgid ""
18505 "Thus you can use shell script to construct arbitrary guestfish commands "
18506 "which are then parsed by guestfish."
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../fish/guestfish.pod:767
18511 msgid ""
18512 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18513 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18514 "if we use a shell script to create the guestfish commands for us:"
18515 msgstr ""
18516
18517 #. type: verbatim
18518 #: ../fish/guestfish.pod:772
18519 #, no-wrap
18520 msgid ""
18521 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18522 "\n"
18523 msgstr ""
18524
18525 #. type: textblock
18526 #: ../fish/guestfish.pod:774
18527 msgid "or with names like C</foo.001>:"
18528 msgstr ""
18529
18530 #. type: verbatim
18531 #: ../fish/guestfish.pod:776
18532 #, no-wrap
18533 msgid ""
18534 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18535 "\n"
18536 msgstr ""
18537
18538 #. type: textblock
18539 #: ../fish/guestfish.pod:778
18540 msgid ""
18541 "When using guestfish interactively it can be helpful to just run the shell "
18542 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18543 "ordinary I<!> local command), see what guestfish commands it would run, and "
18544 "when you are happy with those prepend the C<E<lt>> character to run the "
18545 "guestfish commands for real."
18546 msgstr ""
18547
18548 #. type: =head1
18549 #: ../fish/guestfish.pod:784
18550 msgid "PIPES"
18551 msgstr "КАНАЛИ"
18552
18553 #. type: textblock
18554 #: ../fish/guestfish.pod:786
18555 msgid ""
18556 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18557 "command (a guestfish command) to the second command (any host command).  For "
18558 "example:"
18559 msgstr ""
18560
18561 #. type: verbatim
18562 #: ../fish/guestfish.pod:790
18563 #, no-wrap
18564 msgid ""
18565 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18566 "\n"
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:792
18571 msgid ""
18572 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18573 "program).  The above command would list all accounts in the guest filesystem "
18574 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18575 msgstr ""
18576
18577 #. type: verbatim
18578 #: ../fish/guestfish.pod:797
18579 #, no-wrap
18580 msgid ""
18581 " hexdump /bin/ls | head\n"
18582 " list-devices | tail -1\n"
18583 " tgz-out / - | tar ztf -\n"
18584 "\n"
18585 msgstr ""
18586
18587 #. type: textblock
18588 #: ../fish/guestfish.pod:801
18589 msgid ""
18590 "The space before the pipe symbol is required, any space after the pipe "
18591 "symbol is optional.  Everything after the pipe symbol is just passed "
18592 "straight to the host shell, so it can contain redirections, globs and "
18593 "anything else that makes sense on the host side."
18594 msgstr ""
18595
18596 #. type: textblock
18597 #: ../fish/guestfish.pod:806
18598 msgid ""
18599 "To use a literal argument which begins with a pipe symbol, you have to quote "
18600 "it, eg:"
18601 msgstr ""
18602
18603 #. type: verbatim
18604 #: ../fish/guestfish.pod:809
18605 #, no-wrap
18606 msgid ""
18607 " echo \"|\"\n"
18608 "\n"
18609 msgstr ""
18610
18611 #. type: =head1
18612 #: ../fish/guestfish.pod:811
18613 msgid "HOME DIRECTORIES"
18614 msgstr ""
18615
18616 #. type: textblock
18617 #: ../fish/guestfish.pod:813
18618 msgid ""
18619 "If a parameter starts with the character C<~> then the tilde may be expanded "
18620 "as a home directory path (either C<~> for the current user's home directory, "
18621 "or C<~user> for another user)."
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:817
18626 msgid ""
18627 "Note that home directory expansion happens for users known I<on the host>, "
18628 "not in the guest filesystem."
18629 msgstr ""
18630
18631 #. type: textblock
18632 #: ../fish/guestfish.pod:820
18633 msgid ""
18634 "To use a literal argument which begins with a tilde, you have to quote it, "
18635 "eg:"
18636 msgstr ""
18637
18638 #. type: verbatim
18639 #: ../fish/guestfish.pod:823
18640 #, no-wrap
18641 msgid ""
18642 " echo \"~\"\n"
18643 "\n"
18644 msgstr ""
18645
18646 #. type: =head2
18647 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18648 msgid "ENCRYPTED DISKS"
18649 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18650
18651 #. type: textblock
18652 #: ../fish/guestfish.pod:827
18653 msgid ""
18654 "Libguestfs has some support for Linux guests encrypted according to the "
18655 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18656 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18657 "LUKS is supported."
18658 msgstr ""
18659
18660 #. type: textblock
18661 #: ../fish/guestfish.pod:832
18662 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18663 msgstr ""
18664
18665 #. type: verbatim
18666 #: ../fish/guestfish.pod:834
18667 #, no-wrap
18668 msgid ""
18669 " ><fs> vfs-type /dev/sda2\n"
18670 " crypto_LUKS\n"
18671 "\n"
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:837
18676 msgid ""
18677 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18678 "device called C</dev/mapper/luksdev>."
18679 msgstr ""
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish.pod:840
18683 #, no-wrap
18684 msgid ""
18685 " ><fs> luks-open /dev/sda2 luksdev\n"
18686 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18687 "\n"
18688 msgstr ""
18689
18690 #. type: textblock
18691 #: ../fish/guestfish.pod:843
18692 msgid ""
18693 "Finally you have to tell LVM to scan for volume groups on the newly created "
18694 "mapper device:"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:846
18699 #, no-wrap
18700 msgid ""
18701 " vgscan\n"
18702 " vg-activate-all true\n"
18703 "\n"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/guestfish.pod:849
18708 msgid "The logical volume(s) can now be mounted in the usual way."
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/guestfish.pod:851
18713 msgid ""
18714 "Before closing a LUKS device you must unmount any logical volumes on it and "
18715 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18716 "one.  Then you can close the mapper device:"
18717 msgstr ""
18718
18719 #. type: verbatim
18720 #: ../fish/guestfish.pod:855
18721 #, no-wrap
18722 msgid ""
18723 " vg-activate false /dev/VG\n"
18724 " luks-close /dev/mapper/luksdev\n"
18725 "\n"
18726 msgstr ""
18727
18728 #. type: textblock
18729 #: ../fish/guestfish.pod:860
18730 msgid ""
18731 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18732 "letters and paths (with some limitations).  The following commands are "
18733 "equivalent:"
18734 msgstr ""
18735
18736 #. type: verbatim
18737 #: ../fish/guestfish.pod:864
18738 #, no-wrap
18739 msgid ""
18740 " file /WINDOWS/system32/config/system.LOG\n"
18741 "\n"
18742 msgstr ""
18743
18744 #. type: verbatim
18745 #: ../fish/guestfish.pod:866
18746 #, no-wrap
18747 msgid ""
18748 " file win:\\windows\\system32\\config\\system.log\n"
18749 "\n"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../fish/guestfish.pod:868
18754 #, no-wrap
18755 msgid ""
18756 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18757 "\n"
18758 msgstr ""
18759
18760 #. type: textblock
18761 #: ../fish/guestfish.pod:870
18762 msgid ""
18763 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18764 "where the drive is mounted, prepending that to the path, changing all "
18765 "backslash characters to forward slash, then resolving the result using L</"
18766 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18767 "the parameter might be rewritten like this:"
18768 msgstr ""
18769
18770 #. type: verbatim
18771 #: ../fish/guestfish.pod:876
18772 #, no-wrap
18773 msgid ""
18774 " win:e:\\foo\\bar => /e/FOO/bar\n"
18775 "\n"
18776 msgstr ""
18777
18778 #. type: textblock
18779 #: ../fish/guestfish.pod:878
18780 msgid "This only works in argument positions that expect a path."
18781 msgstr ""
18782
18783 #. type: =head1
18784 #: ../fish/guestfish.pod:880
18785 msgid "UPLOADING AND DOWNLOADING FILES"
18786 msgstr ""
18787
18788 #. type: textblock
18789 #: ../fish/guestfish.pod:882
18790 msgid ""
18791 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18792 "others which upload from or download to a local file, you can use the "
18793 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18794 msgstr ""
18795
18796 #. type: verbatim
18797 #: ../fish/guestfish.pod:886
18798 #, no-wrap
18799 msgid ""
18800 " upload - /foo\n"
18801 "\n"
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/guestfish.pod:888
18806 msgid ""
18807 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18808 msgstr ""
18809
18810 #. type: verbatim
18811 #: ../fish/guestfish.pod:891
18812 #, no-wrap
18813 msgid ""
18814 " tar-out /etc - | tar tf -\n"
18815 "\n"
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:893
18820 msgid ""
18821 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18822 "command (see L</PIPES>)."
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:896
18827 msgid ""
18828 "When using C<-> to read from stdin, the input is read up to the end of "
18829 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18830 "some arbitrary end marker:"
18831 msgstr ""
18832
18833 #. type: verbatim
18834 #: ../fish/guestfish.pod:900
18835 #, no-wrap
18836 msgid ""
18837 " upload -<<END /foo\n"
18838 " input line 1\n"
18839 " input line 2\n"
18840 " input line 3\n"
18841 " END\n"
18842 "\n"
18843 msgstr ""
18844
18845 #. type: textblock
18846 #: ../fish/guestfish.pod:906
18847 msgid ""
18848 "Any string of characters can be used instead of C<END>.  The end marker must "
18849 "appear on a line of its own, without any preceeding or following characters "
18850 "(not even spaces)."
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/guestfish.pod:910
18855 msgid ""
18856 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18857 "upload local files (so-called \"FileIn\" parameters in the generator)."
18858 msgstr ""
18859
18860 #. type: =head1
18861 #: ../fish/guestfish.pod:913
18862 msgid "EXIT ON ERROR BEHAVIOUR"
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:915
18867 msgid ""
18868 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18869 "taking commands from a human over a tty), and will exit on the first error "
18870 "in non-interactive mode (scripts, commands given on the command line)."
18871 msgstr ""
18872
18873 #. type: textblock
18874 #: ../fish/guestfish.pod:920
18875 msgid ""
18876 "If you prefix a command with a I<-> character, then that command will not "
18877 "cause guestfish to exit, even if that (one) command returns an error."
18878 msgstr ""
18879
18880 #. type: =head1
18881 #: ../fish/guestfish.pod:924
18882 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish.pod:926
18887 msgid ""
18888 "Guestfish can be remote-controlled over a socket.  This is useful "
18889 "particularly in shell scripts where you want to make several different "
18890 "changes to a filesystem, but you don't want the overhead of starting up a "
18891 "guestfish process each time."
18892 msgstr ""
18893
18894 #. type: textblock
18895 #: ../fish/guestfish.pod:931
18896 msgid "Start a guestfish server process using:"
18897 msgstr ""
18898
18899 #. type: verbatim
18900 #: ../fish/guestfish.pod:933
18901 #, no-wrap
18902 msgid ""
18903 " eval \"`guestfish --listen`\"\n"
18904 "\n"
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish.pod:935
18909 msgid "and then send it commands by doing:"
18910 msgstr ""
18911
18912 #. type: verbatim
18913 #: ../fish/guestfish.pod:937
18914 #, no-wrap
18915 msgid ""
18916 " guestfish --remote cmd [...]\n"
18917 "\n"
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/guestfish.pod:939
18922 msgid "To cause the server to exit, send it the exit command:"
18923 msgstr ""
18924
18925 #. type: textblock
18926 #: ../fish/guestfish.pod:943
18927 msgid ""
18928 "Note that the server will normally exit if there is an error in a command.  "
18929 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18930 "BEHAVIOUR>."
18931 msgstr ""
18932
18933 #. type: =head2
18934 #: ../fish/guestfish.pod:947
18935 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:949
18940 msgid ""
18941 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18942 "is how the I<--remote> option knows where to send the commands.  You can "
18943 "have several guestfish listener processes running using:"
18944 msgstr ""
18945
18946 #. type: verbatim
18947 #: ../fish/guestfish.pod:953
18948 #, no-wrap
18949 msgid ""
18950 " eval \"`guestfish --listen`\"\n"
18951 " pid1=$GUESTFISH_PID\n"
18952 " eval \"`guestfish --listen`\"\n"
18953 " pid2=$GUESTFISH_PID\n"
18954 " ...\n"
18955 " guestfish --remote=$pid1 cmd\n"
18956 " guestfish --remote=$pid2 cmd\n"
18957 "\n"
18958 msgstr ""
18959
18960 #. type: =head2
18961 #: ../fish/guestfish.pod:961
18962 msgid "REMOTE CONTROL AND CSH"
18963 msgstr ""
18964
18965 #. type: textblock
18966 #: ../fish/guestfish.pod:963
18967 msgid ""
18968 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18969 "option:"
18970 msgstr ""
18971
18972 #. type: verbatim
18973 #: ../fish/guestfish.pod:966
18974 #, no-wrap
18975 msgid ""
18976 " eval \"`guestfish --listen --csh`\"\n"
18977 "\n"
18978 msgstr ""
18979
18980 #. type: =head2
18981 #: ../fish/guestfish.pod:968
18982 msgid "REMOTE CONTROL DETAILS"
18983 msgstr ""
18984
18985 #. type: textblock
18986 #: ../fish/guestfish.pod:970
18987 msgid ""
18988 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18989 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18990 "and C<$PID> is the process ID of the server."
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:974
18995 msgid "Guestfish client and server versions must match exactly."
18996 msgstr ""
18997
18998 #. type: =head2
18999 #: ../fish/guestfish.pod:976
19000 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/guestfish.pod:978
19005 msgid ""
19006 "From Bash, you can use the following code which creates a guestfish "
19007 "instance, correctly quotes the command line, handles failure to start, and "
19008 "cleans up guestfish when the script exits:"
19009 msgstr ""
19010
19011 #. type: verbatim
19012 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:958
19013 #, fuzzy, no-wrap
19014 #| msgid ""
19015 #| " #!/usr/bin/guestfish -f\n"
19016 #| "\n"
19017 msgid ""
19018 " #!/bin/bash -\n"
19019 " \n"
19020 msgstr ""
19021 " #!/usr/bin/guestfish -f\n"
19022 "\n"
19023
19024 #. type: verbatim
19025 #: ../fish/guestfish.pod:986
19026 #, no-wrap
19027 msgid ""
19028 " guestfish[0]=\"guestfish\"\n"
19029 " guestfish[1]=\"--listen\"\n"
19030 " guestfish[2]=\"--ro\"\n"
19031 " guestfish[3]=\"-a\"\n"
19032 " guestfish[4]=\"disk.img\"\n"
19033 " \n"
19034 msgstr ""
19035
19036 #. type: verbatim
19037 #: ../fish/guestfish.pod:992
19038 #, no-wrap
19039 msgid ""
19040 " GUESTFISH_PID=\n"
19041 " eval $(\"${guestfish[@]}\")\n"
19042 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19043 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19044 "     exit 1\n"
19045 " fi\n"
19046 " \n"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fish/guestfish.pod:999
19051 #, no-wrap
19052 msgid ""
19053 " cleanup_guestfish ()\n"
19054 " {\n"
19055 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19056 " }\n"
19057 " trap cleanup_guestfish EXIT ERR\n"
19058 " \n"
19059 msgstr ""
19060
19061 #. type: verbatim
19062 #: ../fish/guestfish.pod:1005
19063 #, fuzzy, no-wrap
19064 #| msgid ""
19065 #| " guestfish --ro -d myguest -i\n"
19066 #| "\n"
19067 msgid ""
19068 " guestfish --remote -- run\n"
19069 " \n"
19070 msgstr ""
19071 " guestfish --ro -d myguest -i\n"
19072 "\n"
19073
19074 #. type: verbatim
19075 #: ../fish/guestfish.pod:1007
19076 #, no-wrap
19077 msgid ""
19078 " # ...\n"
19079 "\n"
19080 msgstr ""
19081
19082 #. type: =head2
19083 #: ../fish/guestfish.pod:1009
19084 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fish/guestfish.pod:1011
19089 msgid ""
19090 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19091 "context hangs, ie. don't do (note the backquotes):"
19092 msgstr ""
19093
19094 #. type: verbatim
19095 #: ../fish/guestfish.pod:1014
19096 #, fuzzy, no-wrap
19097 #| msgid ""
19098 #| " guestfish --ro -d myguest -i\n"
19099 #| "\n"
19100 msgid ""
19101 " a=`guestfish --remote run`\n"
19102 "\n"
19103 msgstr ""
19104 " guestfish --ro -d myguest -i\n"
19105 "\n"
19106
19107 #. type: textblock
19108 #: ../fish/guestfish.pod:1016
19109 msgid ""
19110 "Since the C<run> command produces no output on stdout, this is not useful "
19111 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19112 "cgi?id=592910>."
19113 msgstr ""
19114
19115 #. type: =head1
19116 #: ../fish/guestfish.pod:1020
19117 msgid "PREPARED DISK IMAGES"
19118 msgstr ""
19119
19120 #. type: textblock
19121 #: ../fish/guestfish.pod:1022
19122 msgid ""
19123 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19124 "preformatted disk images that guestfish can make for you to save typing.  "
19125 "This is particularly useful for testing purposes.  This option is used "
19126 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19127 "can be mixed with I<-a>)."
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:1028
19132 msgid ""
19133 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19134 "the second and so on.  Existing files in the current directory are "
19135 "I<overwritten>."
19136 msgstr ""
19137
19138 #. type: textblock
19139 #: ../fish/guestfish.pod:1032
19140 msgid ""
19141 "The type briefly describes how the disk should be sized, partitioned, how "
19142 "filesystem(s) should be created, and how content should be added.  "
19143 "Optionally the type can be followed by extra parameters, separated by C<:> "
19144 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19145 "allocated disk, containing a single partition, with the partition formatted "
19146 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19147 "disk instead."
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:1040
19152 msgid "To list the available types and any extra parameters they take, run:"
19153 msgstr ""
19154
19155 #. type: textblock
19156 #: ../fish/guestfish.pod:1044
19157 msgid ""
19158 "Note that the prepared filesystem is not mounted.  You would usually have to "
19159 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:1048
19164 msgid ""
19165 "If any I<-N> or I<--new> options are given, the guest is automatically "
19166 "launched."
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:1053
19171 msgid "Create a 100MB disk with an ext4-formatted partition:"
19172 msgstr ""
19173
19174 #. type: verbatim
19175 #: ../fish/guestfish.pod:1055
19176 #, no-wrap
19177 msgid ""
19178 " guestfish -N fs:ext4\n"
19179 "\n"
19180 msgstr ""
19181
19182 #. type: textblock
19183 #: ../fish/guestfish.pod:1057
19184 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19185 msgstr ""
19186
19187 #. type: verbatim
19188 #: ../fish/guestfish.pod:1059
19189 #, no-wrap
19190 msgid ""
19191 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19192 "\n"
19193 msgstr ""
19194
19195 #. type: textblock
19196 #: ../fish/guestfish.pod:1061
19197 msgid "Create a blank 200MB disk:"
19198 msgstr ""
19199
19200 #. type: verbatim
19201 #: ../fish/guestfish.pod:1063
19202 #, no-wrap
19203 msgid ""
19204 " guestfish -N disk:200M\n"
19205 "\n"
19206 msgstr ""
19207
19208 #. type: =head1
19209 #: ../fish/guestfish.pod:1065
19210 msgid "PROGRESS BARS"
19211 msgstr ""
19212
19213 #. type: textblock
19214 #: ../fish/guestfish.pod:1067
19215 msgid ""
19216 "Some (not all) long-running commands send progress notification messages as "
19217 "they are running.  Guestfish turns these messages into progress bars."
19218 msgstr ""
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:1071
19222 msgid ""
19223 "When a command that supports progress bars takes longer than two seconds to "
19224 "run, and if progress bars are enabled, then you will see one appearing below "
19225 "the command:"
19226 msgstr ""
19227
19228 #. type: verbatim
19229 #: ../fish/guestfish.pod:1075
19230 #, no-wrap
19231 msgid ""
19232 " ><fs> copy-size /large-file /another-file 2048M\n"
19233 " / 10% [#####-----------------------------------------] 00:30\n"
19234 "\n"
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fish/guestfish.pod:1078
19239 msgid ""
19240 "The spinner on the left hand side moves round once for every progress "
19241 "notification received from the backend.  This is a (reasonably) golden "
19242 "assurance that the command is \"doing something\" even if the progress bar "
19243 "is not moving, because the command is able to send the progress "
19244 "notifications.  When the bar reaches 100% and the command finishes, the "
19245 "spinner disappears."
19246 msgstr ""
19247
19248 #. type: textblock
19249 #: ../fish/guestfish.pod:1085
19250 msgid ""
19251 "Progress bars are enabled by default when guestfish is used interactively.  "
19252 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19253 "and you can disable them completely using I<--no-progress-bars>."
19254 msgstr ""
19255
19256 #. type: =head1
19257 #: ../fish/guestfish.pod:1090
19258 msgid "GUESTFISH COMMANDS"
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../fish/guestfish.pod:1092
19263 msgid ""
19264 "The commands in this section are guestfish convenience commands, in other "
19265 "words, they are not part of the L<guestfs(3)> API."
19266 msgstr ""
19267
19268 #. type: =head2
19269 #: ../fish/guestfish.pod:1095
19270 msgid "help"
19271 msgstr "help"
19272
19273 #. type: verbatim
19274 #: ../fish/guestfish.pod:1097
19275 #, no-wrap
19276 msgid ""
19277 " help\n"
19278 " help cmd\n"
19279 "\n"
19280 msgstr ""
19281 " help\n"
19282 " help команда\n"
19283 "\n"
19284
19285 #. type: textblock
19286 #: ../fish/guestfish.pod:1100
19287 msgid "Without any parameter, this provides general help."
19288 msgstr "Без параметра показує загальну довідкову інформацію."
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:1102
19292 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19293 msgstr ""
19294
19295 #. type: =head2
19296 #: ../fish/guestfish.pod:1104
19297 msgid "quit | exit"
19298 msgstr ""
19299
19300 #. type: textblock
19301 #: ../fish/guestfish.pod:1106
19302 msgid "This exits guestfish.  You can also use C<^D> key."
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fish/guestfish.pod:1108
19307 msgid "@FISH_COMMANDS@"
19308 msgstr ""
19309
19310 #. type: =head1
19311 #: ../fish/guestfish.pod:1110
19312 msgid "COMMANDS"
19313 msgstr "КОМАНДИ"
19314
19315 #. type: textblock
19316 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1497
19317 msgid "@ACTIONS@"
19318 msgstr "@ACTIONS@"
19319
19320 #. type: textblock
19321 #: ../fish/guestfish.pod:1116
19322 msgid ""
19323 "guestfish returns 0 if the commands completed without error, or 1 if there "
19324 "was an error."
19325 msgstr ""
19326
19327 #. type: =item
19328 #: ../fish/guestfish.pod:1123
19329 msgid "EDITOR"
19330 msgstr "РЕДАКТОР"
19331
19332 #. type: textblock
19333 #: ../fish/guestfish.pod:1125
19334 msgid ""
19335 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19336 "C<vi>."
19337 msgstr ""
19338
19339 #. type: =item
19340 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3089
19341 msgid "FEBOOTSTRAP_KERNEL"
19342 msgstr ""
19343
19344 #. type: =item
19345 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3091
19346 msgid "FEBOOTSTRAP_MODULES"
19347 msgstr ""
19348
19349 #. type: textblock
19350 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3093
19351 msgid ""
19352 "These two environment variables allow the kernel that libguestfs uses in the "
19353 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19354 "most recent host kernel is chosen.  For more information about kernel "
19355 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19356 "available in febootstrap E<ge> 3.8."
19357 msgstr ""
19358
19359 #. type: =item
19360 #: ../fish/guestfish.pod:1138
19361 msgid "GUESTFISH_DISPLAY_IMAGE"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fish/guestfish.pod:1140
19366 msgid ""
19367 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19368 "If not set, it uses L<display(1)>."
19369 msgstr ""
19370
19371 #. type: =item
19372 #: ../fish/guestfish.pod:1143
19373 msgid "GUESTFISH_PID"
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish.pod:1145
19378 msgid ""
19379 "Used with the I<--remote> option to specify the remote guestfish process to "
19380 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19381 msgstr ""
19382
19383 #. type: =item
19384 #: ../fish/guestfish.pod:1149
19385 msgid "HEXEDITOR"
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish.pod:1151
19390 msgid ""
19391 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19392 "not specified, the external L<hexedit(1)> program is used."
19393 msgstr ""
19394
19395 #. type: =item
19396 #: ../fish/guestfish.pod:1155
19397 msgid "HOME"
19398 msgstr "ДОМІВКА"
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:1157
19402 msgid ""
19403 "If compiled with GNU readline support, various files in the home directory "
19404 "can be used.  See L</FILES>."
19405 msgstr ""
19406
19407 #. type: =item
19408 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3099
19409 msgid "LIBGUESTFS_APPEND"
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3101
19414 msgid "Pass additional options to the guest kernel."
19415 msgstr ""
19416
19417 #. type: =item
19418 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3103
19419 msgid "LIBGUESTFS_DEBUG"
19420 msgstr "LIBGUESTFS_DEBUG"
19421
19422 #. type: textblock
19423 #: ../fish/guestfish.pod:1166
19424 msgid ""
19425 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19426 "effect as using the B<-v> option."
19427 msgstr ""
19428
19429 #. type: =item
19430 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3108
19431 msgid "LIBGUESTFS_MEMSIZE"
19432 msgstr "LIBGUESTFS_MEMSIZE"
19433
19434 #. type: textblock
19435 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3110
19436 msgid ""
19437 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19438 msgstr ""
19439
19440 #. type: verbatim
19441 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3113
19442 #, no-wrap
19443 msgid ""
19444 " LIBGUESTFS_MEMSIZE=700\n"
19445 "\n"
19446 msgstr ""
19447 " LIBGUESTFS_MEMSIZE=700\n"
19448 "\n"
19449
19450 #. type: =item
19451 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3115
19452 msgid "LIBGUESTFS_PATH"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:1178
19457 msgid ""
19458 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19459 "the discussion of paths in L<guestfs(3)>."
19460 msgstr ""
19461
19462 #. type: =item
19463 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3120
19464 msgid "LIBGUESTFS_QEMU"
19465 msgstr ""
19466
19467 #. type: textblock
19468 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3122
19469 msgid ""
19470 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19471 "which was found at compile time by the configure script is used."
19472 msgstr ""
19473
19474 #. type: =item
19475 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3128
19476 msgid "LIBGUESTFS_TRACE"
19477 msgstr ""
19478
19479 #. type: textblock
19480 #: ../fish/guestfish.pod:1189
19481 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19482 msgstr ""
19483
19484 #. type: =item
19485 #: ../fish/guestfish.pod:1191
19486 msgid "PAGER"
19487 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19488
19489 #. type: textblock
19490 #: ../fish/guestfish.pod:1193
19491 msgid ""
19492 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19493 "C<more>."
19494 msgstr ""
19495
19496 #. type: =item
19497 #: ../fish/guestfish.pod:1196 ../src/guestfs.pod:3133
19498 msgid "TMPDIR"
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3135
19503 msgid ""
19504 "Location of temporary directory, defaults to C</tmp> except for the cached "
19505 "supermin appliance which defaults to C</var/tmp>."
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3138
19510 msgid ""
19511 "If libguestfs was compiled to use the supermin appliance then the real "
19512 "appliance is cached in this directory, shared between all handles belonging "
19513 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19514 "use in case C</var/tmp> is not large enough."
19515 msgstr ""
19516
19517 #. type: =head1
19518 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
19519 #: ../rescue/virt-rescue.pod:269
19520 msgid "FILES"
19521 msgstr "ФАЙЛИ"
19522
19523 #. type: =item
19524 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
19525 #: ../rescue/virt-rescue.pod:273
19526 msgid "$HOME/.libguestfs-tools.rc"
19527 msgstr ""
19528
19529 #. type: =item
19530 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
19531 #: ../rescue/virt-rescue.pod:275
19532 msgid "/etc/libguestfs-tools.conf"
19533 msgstr ""
19534
19535 #. type: textblock
19536 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
19537 #: ../rescue/virt-rescue.pod:277
19538 msgid ""
19539 "This configuration file controls the default read-only or read-write mode "
19540 "(I<--ro> or I<--rw>)."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:1220
19545 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19546 msgstr ""
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:1222
19550 msgid "$HOME/.guestfish"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:1224
19555 msgid ""
19556 "If compiled with GNU readline support, then the command history is saved in "
19557 "this file."
19558 msgstr ""
19559
19560 #. type: =item
19561 #: ../fish/guestfish.pod:1227
19562 msgid "$HOME/.inputrc"
19563 msgstr ""
19564
19565 #. type: =item
19566 #: ../fish/guestfish.pod:1229
19567 msgid "/etc/inputrc"
19568 msgstr ""
19569
19570 #. type: textblock
19571 #: ../fish/guestfish.pod:1231
19572 msgid ""
19573 "If compiled with GNU readline support, then these files can be used to "
19574 "configure readline.  For further information, please see L<readline(3)/"
19575 "INITIALIZATION FILE>."
19576 msgstr ""
19577
19578 #. type: textblock
19579 #: ../fish/guestfish.pod:1235
19580 msgid "To write rules which only apply to guestfish, use:"
19581 msgstr ""
19582
19583 #. type: verbatim
19584 #: ../fish/guestfish.pod:1237
19585 #, no-wrap
19586 msgid ""
19587 " $if guestfish\n"
19588 " ...\n"
19589 " $endif\n"
19590 "\n"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../fish/guestfish.pod:1241
19595 msgid ""
19596 "Variables that you can set in inputrc that change the behaviour of guestfish "
19597 "in useful ways include:"
19598 msgstr ""
19599
19600 #. type: =item
19601 #: ../fish/guestfish.pod:1246
19602 msgid "completion-ignore-case (default: on)"
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../fish/guestfish.pod:1248
19607 msgid ""
19608 "By default, guestfish will ignore case when tab-completing paths on the "
19609 "disk.  Use:"
19610 msgstr ""
19611
19612 #. type: verbatim
19613 #: ../fish/guestfish.pod:1251
19614 #, no-wrap
19615 msgid ""
19616 " set completion-ignore-case off\n"
19617 "\n"
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../fish/guestfish.pod:1253
19622 msgid "to make guestfish case sensitive."
19623 msgstr ""
19624
19625 #. type: =item
19626 #: ../fish/guestfish.pod:1257
19627 msgid "test1.img"
19628 msgstr ""
19629
19630 #. type: =item
19631 #: ../fish/guestfish.pod:1259
19632 msgid "test2.img (etc)"
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:1261
19637 msgid ""
19638 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19639 "will be created in the file C<test1.img> in the current directory.  The "
19640 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19641 "the same name will be overwritten."
19642 msgstr ""
19643
19644 #. type: textblock
19645 #: ../fish/guestfish.pod:1270
19646 msgid ""
19647 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19648 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19649 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19650 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19651 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19652 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19653 msgstr ""
19654
19655 #. type: textblock
19656 #: ../fish/guestfish.pod:1299 ../src/guestfs.pod:3225
19657 #: ../test-tool/libguestfs-test-tool.pod:112
19658 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/virt-copy-in.pod:5
19663 msgid ""
19664 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19665 msgstr ""
19666
19667 #. type: verbatim
19668 #: ../fish/virt-copy-in.pod:9
19669 #, no-wrap
19670 msgid ""
19671 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19672 "\n"
19673 msgstr ""
19674
19675 #. type: verbatim
19676 #: ../fish/virt-copy-in.pod:11
19677 #, no-wrap
19678 msgid ""
19679 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19680 "\n"
19681 msgstr ""
19682
19683 #. type: textblock
19684 #: ../fish/virt-copy-in.pod:15
19685 msgid ""
19686 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19687 "causing disk corruption.  The virtual machine must be shut down before you "
19688 "use this command."
19689 msgstr ""
19690
19691 #. type: textblock
19692 #: ../fish/virt-copy-in.pod:21
19693 msgid ""
19694 "C<virt-copy-in> copies files and directories from the local disk into a "
19695 "virtual machine disk image or named libvirt domain."
19696 msgstr ""
19697
19698 #. type: textblock
19699 #: ../fish/virt-copy-in.pod:24
19700 msgid ""
19701 "You can give one of more filenames and directories on the command line.  "
19702 "Directories are copied in recursively.  The final parameter must be the "
19703 "destination directory in the disk image which must be an absolute path "
19704 "starting with a C</> character."
19705 msgstr ""
19706
19707 #. type: verbatim
19708 #: ../fish/virt-copy-in.pod:33
19709 #, no-wrap
19710 msgid ""
19711 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19712 "\n"
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19717 msgid "Upload a home directory to a guest:"
19718 msgstr ""
19719
19720 #. type: verbatim
19721 #: ../fish/virt-copy-in.pod:37
19722 #, no-wrap
19723 msgid ""
19724 " virt-copy-in -d MyGuest skel /home\n"
19725 "\n"
19726 msgstr ""
19727
19728 #. type: =head1
19729 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19730 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19731 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19732 msgstr ""
19733
19734 #. type: textblock
19735 #: ../fish/virt-copy-in.pod:41
19736 msgid ""
19737 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19738 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19739 "are probably better off using guestfish directly."
19740 msgstr ""
19741
19742 #. type: textblock
19743 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19744 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19745 msgid ""
19746 "Since the shell script just passes options straight to guestfish, read "
19747 "L<guestfish(1)> to see the full list of options."
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fish/virt-copy-in.pod:52
19752 #, fuzzy
19753 #| msgid ""
19754 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19755 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19756 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19757 #| "libguestfs.org/>."
19758 msgid ""
19759 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19760 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19761 msgstr ""
19762 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19763 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19764 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19765 "org/>."
19766
19767 #. type: textblock
19768 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19769 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19770 #, fuzzy
19771 #| msgid "Copyright (C) 2009 Red Hat Inc."
19772 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19773 msgstr "© Red Hat Inc., 2009"
19774
19775 #. type: textblock
19776 #: ../fish/virt-copy-out.pod:5
19777 msgid ""
19778 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19779 "image."
19780 msgstr ""
19781
19782 #. type: verbatim
19783 #: ../fish/virt-copy-out.pod:9
19784 #, no-wrap
19785 msgid ""
19786 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19787 "\n"
19788 msgstr ""
19789
19790 #. type: verbatim
19791 #: ../fish/virt-copy-out.pod:11
19792 #, no-wrap
19793 msgid ""
19794 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19795 "\n"
19796 msgstr ""
19797
19798 #. type: textblock
19799 #: ../fish/virt-copy-out.pod:15
19800 msgid ""
19801 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19802 "image or named libvirt domain."
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../fish/virt-copy-out.pod:18
19807 msgid ""
19808 "You can give one of more filenames and directories on the command line.  "
19809 "Directories are copied out recursively."
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fish/virt-copy-out.pod:23
19814 msgid "Download the home directories from a virtual machine:"
19815 msgstr ""
19816
19817 #. type: verbatim
19818 #: ../fish/virt-copy-out.pod:25
19819 #, no-wrap
19820 msgid ""
19821 " mkdir homes\n"
19822 " virt-copy-out -d MyGuest /home homes\n"
19823 "\n"
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../fish/virt-copy-out.pod:30
19828 msgid ""
19829 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19830 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19831 "are probably better off using guestfish directly."
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/virt-copy-out.pod:41
19836 #, fuzzy
19837 #| msgid ""
19838 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19839 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19840 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19841 #| "libguestfs.org/>."
19842 msgid ""
19843 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19844 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19845 msgstr ""
19846 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19847 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19848 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19849 "org/>."
19850
19851 #. type: textblock
19852 #: ../fish/virt-tar-in.pod:5
19853 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19854 msgstr ""
19855
19856 #. type: verbatim
19857 #: ../fish/virt-tar-in.pod:9
19858 #, no-wrap
19859 msgid ""
19860 " virt-tar-in -a disk.img data.tar /destination\n"
19861 "\n"
19862 msgstr ""
19863
19864 #. type: verbatim
19865 #: ../fish/virt-tar-in.pod:11
19866 #, no-wrap
19867 msgid ""
19868 " virt-tar-in -d domain data.tar /destination\n"
19869 "\n"
19870 msgstr ""
19871
19872 #. type: verbatim
19873 #: ../fish/virt-tar-in.pod:13
19874 #, no-wrap
19875 msgid ""
19876 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19877 "\n"
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../fish/virt-tar-in.pod:17
19882 msgid ""
19883 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19884 "causing disk corruption.  The virtual machine must be shut down before you "
19885 "use this command."
19886 msgstr ""
19887
19888 #. type: textblock
19889 #: ../fish/virt-tar-in.pod:23
19890 msgid ""
19891 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19892 "image or named libvirt domain."
19893 msgstr ""
19894
19895 #. type: textblock
19896 #: ../fish/virt-tar-in.pod:26
19897 msgid ""
19898 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19899 "standard input.  The second parameter is the absolute target directory to "
19900 "unpack into."
19901 msgstr ""
19902
19903 #. type: verbatim
19904 #: ../fish/virt-tar-in.pod:34
19905 #, no-wrap
19906 msgid ""
19907 " virt-tar-in -d MyGuest homes.tar /home\n"
19908 "\n"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../fish/virt-tar-in.pod:38
19913 msgid ""
19914 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19915 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19916 "probably better off using guestfish directly."
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../fish/virt-tar-in.pod:49
19921 #, fuzzy
19922 #| msgid ""
19923 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19924 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19925 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19926 #| "libguestfs.org/>."
19927 msgid ""
19928 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19929 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19930 "org/>."
19931 msgstr ""
19932 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19933 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19934 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19935 "org/>."
19936
19937 #. type: textblock
19938 #: ../fish/virt-tar-out.pod:5
19939 msgid ""
19940 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19941 msgstr ""
19942
19943 #. type: verbatim
19944 #: ../fish/virt-tar-out.pod:9
19945 #, no-wrap
19946 msgid ""
19947 " virt-tar-out -a disk.img /dir files.tar\n"
19948 "\n"
19949 msgstr ""
19950
19951 #. type: verbatim
19952 #: ../fish/virt-tar-out.pod:11
19953 #, no-wrap
19954 msgid ""
19955 " virt-tar-out -d domain /dir files.tar\n"
19956 "\n"
19957 msgstr ""
19958
19959 #. type: verbatim
19960 #: ../fish/virt-tar-out.pod:13
19961 #, no-wrap
19962 msgid ""
19963 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19964 "\n"
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fish/virt-tar-out.pod:17
19969 msgid ""
19970 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../fish/virt-tar-out.pod:20
19975 msgid ""
19976 "The first parameter is the absolute path of the virtual machine directory.  "
19977 "The second parameter is the tar file to write.  Use C<-> to write to "
19978 "standard output."
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/virt-tar-out.pod:26
19983 msgid "Download the home directories from a guest:"
19984 msgstr ""
19985
19986 #. type: verbatim
19987 #: ../fish/virt-tar-out.pod:28
19988 #, no-wrap
19989 msgid ""
19990 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19991 "\n"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/virt-tar-out.pod:32
19996 msgid ""
19997 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19998 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19999 "are probably better off using guestfish directly."
20000 msgstr ""
20001
20002 #. type: textblock
20003 #: ../fish/virt-tar-out.pod:43
20004 #, fuzzy
20005 #| msgid ""
20006 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20007 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20008 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20009 #| "libguestfs.org/>."
20010 msgid ""
20011 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20012 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20013 msgstr ""
20014 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20015 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20016 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20017 "org/>."
20018
20019 #. type: textblock
20020 #: ../fuse/guestmount.pod:5
20021 msgid ""
20022 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20023 msgstr ""
20024
20025 #. type: verbatim
20026 #: ../fuse/guestmount.pod:9
20027 #, no-wrap
20028 msgid ""
20029 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20030 "\n"
20031 msgstr ""
20032
20033 #. type: verbatim
20034 #: ../fuse/guestmount.pod:11
20035 #, no-wrap
20036 msgid ""
20037 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20038 "\n"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fuse/guestmount.pod:13
20043 #, no-wrap
20044 msgid ""
20045 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fuse/guestmount.pod:17
20051 msgid ""
20052 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20053 "machines.  If you do this, you risk disk corruption in the VM."
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fuse/guestmount.pod:22
20058 msgid ""
20059 "The guestmount program can be used to mount virtual machine filesystems and "
20060 "other disk images on the host.  It uses libguestfs for access to the guest "
20061 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20062 "a mountable device."
20063 msgstr ""
20064
20065 #. type: textblock
20066 #: ../fuse/guestmount.pod:27
20067 msgid ""
20068 "Along with other options, you have to give at least one device (I<-a> "
20069 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20070 "option) or use the I<-i> inspection option.  How this works is better "
20071 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20072 "below."
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fuse/guestmount.pod:33
20077 msgid ""
20078 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20079 "by you, and the filesystem will not be visible to any other users unless you "
20080 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20081 "the filesystem, use the C<fusermount -u> command."
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fuse/guestmount.pod:41
20086 msgid ""
20087 "For a typical Windows guest which has its main filesystem on the first "
20088 "partition:"
20089 msgstr ""
20090
20091 #. type: verbatim
20092 #: ../fuse/guestmount.pod:44
20093 #, no-wrap
20094 msgid ""
20095 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20096 "\n"
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../fuse/guestmount.pod:46
20101 msgid ""
20102 "For a typical Linux guest which has a /boot filesystem on the first "
20103 "partition, and the root filesystem on a logical volume:"
20104 msgstr ""
20105
20106 #. type: verbatim
20107 #: ../fuse/guestmount.pod:49
20108 #, no-wrap
20109 msgid ""
20110 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20111 "\n"
20112 msgstr ""
20113
20114 #. type: textblock
20115 #: ../fuse/guestmount.pod:51
20116 msgid "To get libguestfs to detect guest mountpoints for you:"
20117 msgstr ""
20118
20119 #. type: verbatim
20120 #: ../fuse/guestmount.pod:53
20121 #, no-wrap
20122 msgid ""
20123 " guestmount -a guest.img -i --ro /mnt\n"
20124 "\n"
20125 msgstr ""
20126
20127 #. type: textblock
20128 #: ../fuse/guestmount.pod:55
20129 msgid "For a libvirt guest called \"Guest\" you could do:"
20130 msgstr ""
20131
20132 #. type: verbatim
20133 #: ../fuse/guestmount.pod:57
20134 #, no-wrap
20135 msgid ""
20136 " guestmount -d Guest -i --ro /mnt\n"
20137 "\n"
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fuse/guestmount.pod:59
20142 msgid ""
20143 "If you don't know what filesystems are contained in a guest or disk image, "
20144 "use L<virt-filesystems(1)> first:"
20145 msgstr ""
20146
20147 #. type: verbatim
20148 #: ../fuse/guestmount.pod:62
20149 #, no-wrap
20150 msgid ""
20151 " virt-filesystems MyGuest\n"
20152 "\n"
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fuse/guestmount.pod:64
20157 msgid ""
20158 "If you want to trace the libguestfs calls but without excessive debugging "
20159 "information, we recommend:"
20160 msgstr ""
20161
20162 #. type: verbatim
20163 #: ../fuse/guestmount.pod:67
20164 #, no-wrap
20165 msgid ""
20166 " guestmount [...] --trace /mnt\n"
20167 "\n"
20168 msgstr ""
20169
20170 #. type: textblock
20171 #: ../fuse/guestmount.pod:69
20172 msgid "If you want to debug the program, we recommend:"
20173 msgstr ""
20174
20175 #. type: verbatim
20176 #: ../fuse/guestmount.pod:71
20177 #, no-wrap
20178 msgid ""
20179 " guestmount [...] --trace --verbose /mnt\n"
20180 "\n"
20181 msgstr ""
20182
20183 #. type: =head1
20184 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20185 #: ../resize/virt-resize.pod:511
20186 msgid "NOTES"
20187 msgstr "ПРИМІТКИ"
20188
20189 #. type: =head2
20190 #: ../fuse/guestmount.pod:75
20191 msgid "Other users cannot see the filesystem by default"
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../fuse/guestmount.pod:77
20196 msgid ""
20197 "If you mount a filesystem as one user (eg. root), then other users will not "
20198 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20199 "option when mounting:"
20200 msgstr ""
20201
20202 #. type: verbatim
20203 #: ../fuse/guestmount.pod:81
20204 #, no-wrap
20205 msgid ""
20206 " sudo guestmount [...] -o allow_other /mnt\n"
20207 "\n"
20208 msgstr ""
20209
20210 #. type: =head2
20211 #: ../fuse/guestmount.pod:83
20212 msgid "Enabling FUSE"
20213 msgstr ""
20214
20215 #. type: textblock
20216 #: ../fuse/guestmount.pod:85
20217 msgid ""
20218 "On some distros, you may need to add yourself to a special group (eg. "
20219 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
20220 "Debian and derivatives."
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../fuse/guestmount.pod:89
20225 msgid ""
20226 "On other distros, no special group is required.  It is not necessary on "
20227 "Fedora or Red Hat Enterprise Linux."
20228 msgstr ""
20229
20230 #. type: textblock
20231 #: ../fuse/guestmount.pod:100
20232 msgid "Add a block device or virtual machine image."
20233 msgstr ""
20234
20235 #. type: =item
20236 #: ../fuse/guestmount.pod:123
20237 msgid "B<--dir-cache-timeout N>"
20238 msgstr "B<--dir-cache-timeout N>"
20239
20240 #. type: textblock
20241 #: ../fuse/guestmount.pod:125
20242 msgid ""
20243 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20244 "seconds.  The readdir cache [actually, there are several semi-independent "
20245 "caches] is populated after a readdir(2) call with the stat and extended "
20246 "attributes of the files in the directory, in anticipation that they will be "
20247 "requested soon after."
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../fuse/guestmount.pod:131
20252 msgid ""
20253 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20254 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20255 "requests, only cache existing ones."
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../fuse/guestmount.pod:151
20260 msgid ""
20261 "If you have untrusted raw-format guest disk images, you should use this "
20262 "option to specify the disk format.  This avoids a possible security problem "
20263 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20264 "guestfs_add_drive_opts>."
20265 msgstr ""
20266
20267 #. type: =item
20268 #: ../fuse/guestmount.pod:156
20269 msgid "B<--fuse-help>"
20270 msgstr "B<--fuse-help>"
20271
20272 #. type: textblock
20273 #: ../fuse/guestmount.pod:158
20274 msgid "Display help on special FUSE options (see I<-o> below)."
20275 msgstr ""
20276
20277 #. type: textblock
20278 #: ../fuse/guestmount.pod:162
20279 msgid "Display brief help and exit."
20280 msgstr ""
20281
20282 #. type: textblock
20283 #: ../fuse/guestmount.pod:186
20284 msgid ""
20285 "Mount the named partition or logical volume on the given mountpoint B<in the "
20286 "guest> (this has nothing to do with mountpoints in the host)."
20287 msgstr ""
20288
20289 #. type: textblock
20290 #: ../fuse/guestmount.pod:189
20291 msgid ""
20292 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20293 "something on C</>."
20294 msgstr ""
20295
20296 #. type: textblock
20297 #: ../fuse/guestmount.pod:206
20298 msgid ""
20299 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20300 "unmounted.  If you specify this option, then we don't attempt to sync the "
20301 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20302 msgstr ""
20303
20304 #. type: =item
20305 #: ../fuse/guestmount.pod:211
20306 #, fuzzy
20307 #| msgid "B<--partition>"
20308 msgid "B<-o option>"
20309 msgstr "B<--partition>"
20310
20311 #. type: =item
20312 #: ../fuse/guestmount.pod:213
20313 #, fuzzy
20314 #| msgid "B<--partition>"
20315 msgid "B<--option option>"
20316 msgstr "B<--partition>"
20317
20318 #. type: textblock
20319 #: ../fuse/guestmount.pod:215
20320 msgid "Pass extra options to FUSE."
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../fuse/guestmount.pod:217
20325 msgid ""
20326 "To get a list of all the extra options supported by FUSE, use the command "
20327 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20328 "of them are a good idea."
20329 msgstr ""
20330
20331 #. type: verbatim
20332 #: ../fuse/guestmount.pod:221
20333 #, no-wrap
20334 msgid ""
20335 " guestmount --fuse-help\n"
20336 "\n"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../fuse/guestmount.pod:223
20341 msgid "Some potentially useful FUSE options:"
20342 msgstr ""
20343
20344 #. type: =item
20345 #: ../fuse/guestmount.pod:227
20346 msgid "B<-o allow_other>"
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fuse/guestmount.pod:229
20351 msgid "Allow other users to see the filesystem."
20352 msgstr ""
20353
20354 #. type: =item
20355 #: ../fuse/guestmount.pod:231
20356 msgid "B<-o attr_timeout=N>"
20357 msgstr "B<-o attr_timeout=N>"
20358
20359 #. type: textblock
20360 #: ../fuse/guestmount.pod:233
20361 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20362 msgstr ""
20363
20364 #. type: =item
20365 #: ../fuse/guestmount.pod:235
20366 msgid "B<-o kernel_cache>"
20367 msgstr ""
20368
20369 #. type: textblock
20370 #: ../fuse/guestmount.pod:237
20371 msgid ""
20372 "Allow the kernel to cache files (reduces the number of reads that have to go "
20373 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20374 "afford the extra memory usage."
20375 msgstr ""
20376
20377 #. type: =item
20378 #: ../fuse/guestmount.pod:241
20379 msgid "B<-o uid=N> B<-o gid=N>"
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fuse/guestmount.pod:243
20384 msgid ""
20385 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20386 "the chosen values."
20387 msgstr ""
20388
20389 #. type: textblock
20390 #: ../fuse/guestmount.pod:252
20391 msgid ""
20392 "Add devices and mount everything read-only.  Also disallow writes and make "
20393 "the disk appear read-only to FUSE."
20394 msgstr ""
20395
20396 #. type: textblock
20397 #: ../fuse/guestmount.pod:255
20398 msgid ""
20399 "This is highly recommended if you are not going to edit the guest disk.  If "
20400 "the guest is running and this option is I<not> supplied, then there is a "
20401 "strong risk of disk corruption in the guest.  We try to prevent this from "
20402 "happening, but it is not always possible."
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
20407 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fuse/guestmount.pod:264
20412 msgid "Enable SELinux support for the guest."
20413 msgstr ""
20414
20415 #. type: textblock
20416 #: ../fuse/guestmount.pod:270
20417 msgid "Enable verbose messages from underlying libguestfs."
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../fuse/guestmount.pod:276
20422 msgid "Display the program version and exit."
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
20427 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20428 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20429 msgstr ""
20430
20431 #. type: =item
20432 #: ../fuse/guestmount.pod:289
20433 #, fuzzy
20434 #| msgid "B<--ro>"
20435 msgid "B<--trace>"
20436 msgstr "B<--ro>"
20437
20438 #. type: textblock
20439 #: ../fuse/guestmount.pod:291
20440 msgid "Trace libguestfs calls and entry into each FUSE function."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fuse/guestmount.pod:293
20445 msgid "This also stops the daemon from forking into the background."
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../fuse/guestmount.pod:319
20450 msgid ""
20451 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20452 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20453 "net/>."
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../fuse/guestmount.pod:334
20458 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20459 msgstr ""
20460
20461 #. type: textblock
20462 #: ../inspector/virt-inspector.pod:5
20463 msgid ""
20464 "virt-inspector - Display operating system version and other information "
20465 "about a virtual machine"
20466 msgstr ""
20467
20468 #. type: verbatim
20469 #: ../inspector/virt-inspector.pod:9
20470 #, fuzzy, no-wrap
20471 #| msgid ""
20472 #| " virt-list-partitions [--options] domname\n"
20473 #| "\n"
20474 msgid ""
20475 " virt-inspector [--options] -d domname\n"
20476 "\n"
20477 msgstr ""
20478 " virt-list-partitions [--параметри] назва_домену\n"
20479 "\n"
20480
20481 #. type: verbatim
20482 #: ../inspector/virt-inspector.pod:11
20483 #, fuzzy, no-wrap
20484 #| msgid ""
20485 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20486 #| "\n"
20487 msgid ""
20488 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20489 "\n"
20490 msgstr ""
20491 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20492 "\n"
20493
20494 #. type: verbatim
20495 #: ../inspector/virt-inspector.pod:15
20496 #, fuzzy, no-wrap
20497 #| msgid ""
20498 #| " virt-list-partitions [--options] domname\n"
20499 #| "\n"
20500 msgid ""
20501 " virt-inspector domname\n"
20502 "\n"
20503 msgstr ""
20504 " virt-list-partitions [--параметри] назва_домену\n"
20505 "\n"
20506
20507 #. type: verbatim
20508 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20509 #, fuzzy, no-wrap
20510 #| msgid ""
20511 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20512 #| "\n"
20513 msgid ""
20514 " virt-inspector disk.img [disk.img ...]\n"
20515 "\n"
20516 msgstr ""
20517 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20518 "\n"
20519
20520 #. type: textblock
20521 #: ../inspector/virt-inspector.pod:21
20522 msgid ""
20523 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20524 "determine the version of the operating system and other information about "
20525 "the virtual machine."
20526 msgstr ""
20527
20528 #. type: textblock
20529 #: ../inspector/virt-inspector.pod:25
20530 msgid "Virt-inspector produces XML output for feeding into other programs."
20531 msgstr ""
20532
20533 #. type: textblock
20534 #: ../inspector/virt-inspector.pod:27
20535 msgid ""
20536 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20537 "the libvirt domain (see: C<virsh list --all>)."
20538 msgstr ""
20539
20540 #. type: textblock
20541 #: ../inspector/virt-inspector.pod:30
20542 msgid ""
20543 "You can also run virt-inspector directly on disk images from a single "
20544 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20545 "has several block devices, in which case you should list several I<-a> "
20546 "options one after another, with the first corresponding to the guest's C</"
20547 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../inspector/virt-inspector.pod:37
20552 msgid ""
20553 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20554 "keys and similar."
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../inspector/virt-inspector.pod:40
20559 msgid ""
20560 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20561 "inspect several virtual machines, you have to run virt-inspector several "
20562 "times (for example, from a shell script for-loop)."
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../inspector/virt-inspector.pod:45
20567 msgid ""
20568 "Because virt-inspector needs direct access to guest images, it won't "
20569 "normally work over remote libvirt connections."
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../inspector/virt-inspector.pod:48
20574 msgid ""
20575 "All of the information available from virt-inspector is also available "
20576 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20577 "The same information can also be fetched using guestfish or via libguestfs "
20578 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20579 "WITH OTHER PROGRAMMING LANGUAGES>)."
20580 msgstr ""
20581
20582 #. type: textblock
20583 #: ../inspector/virt-inspector.pod:81
20584 msgid ""
20585 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20586 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20587 "at all."
20588 msgstr ""
20589
20590 #. type: textblock
20591 #: ../inspector/virt-inspector.pod:94
20592 msgid ""
20593 "When prompting for keys and passphrases, virt-inspector normally turns "
20594 "echoing off so you cannot see what you are typing.  If you are not worried "
20595 "about Tempest attacks and there is no one else in the room you can specify "
20596 "this flag to see what you are typing."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20601 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20602 #: ../tools/virt-win-reg.pl:144
20603 msgid ""
20604 "Specify the format of disk images given on the command line.  If this is "
20605 "omitted then the format is autodetected from the content of the disk image."
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20610 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20611 #: ../tools/virt-win-reg.pl:148
20612 msgid ""
20613 "If disk images are requested from libvirt, then this program asks libvirt "
20614 "for this information.  In this case, the value of the format parameter is "
20615 "ignored."
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20620 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20621 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20622 #: ../tools/virt-win-reg.pl:152
20623 msgid ""
20624 "If working with untrusted raw-format guest disk images, you should ensure "
20625 "the format is always specified."
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../inspector/virt-inspector.pod:139
20630 msgid "Previous versions of virt-inspector allowed you to write either:"
20631 msgstr ""
20632
20633 #. type: verbatim
20634 #: ../inspector/virt-inspector.pod:145
20635 #, fuzzy, no-wrap
20636 #| msgid ""
20637 #| " inspect-get-hostname root\n"
20638 #| "\n"
20639 msgid ""
20640 " virt-inspector guestname\n"
20641 "\n"
20642 msgstr ""
20643 " inspect-get-hostname корінь\n"
20644 "\n"
20645
20646 #. type: =head1
20647 #: ../inspector/virt-inspector.pod:153
20648 msgid "XML FORMAT"
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../inspector/virt-inspector.pod:155
20653 msgid ""
20654 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20655 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20656 "just an overview."
20657 msgstr ""
20658
20659 #. type: textblock
20660 #: ../inspector/virt-inspector.pod:159
20661 msgid ""
20662 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20663 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20664 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20665 "which is vanishingly rare in real world VMs."
20666 msgstr ""
20667
20668 #. type: =head2
20669 #: ../inspector/virt-inspector.pod:164
20670 msgid "E<lt>operatingsystemE<gt>"
20671 msgstr ""
20672
20673 #. type: textblock
20674 #: ../inspector/virt-inspector.pod:166
20675 msgid ""
20676 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20677 "describe the operating system, its architecture, the descriptive \"product "
20678 "name\" string, the type of OS and so on, as in this example:"
20679 msgstr ""
20680
20681 #. type: verbatim
20682 #: ../inspector/virt-inspector.pod:170
20683 #, no-wrap
20684 msgid ""
20685 " <operatingsystems>\n"
20686 "   <operatingsystem>\n"
20687 "     <root>/dev/sda2</root>\n"
20688 "     <name>windows</name>\n"
20689 "     <arch>i386</arch>\n"
20690 "     <distro>windows</distro>\n"
20691 "     <product_name>Windows 7 Enterprise</product_name>\n"
20692 "     <product_variant>Client</product_variant>\n"
20693 "     <major_version>6</major_version>\n"
20694 "     <minor_version>1</minor_version>\n"
20695 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20696 "     <format>installed</format>\n"
20697 "\n"
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../inspector/virt-inspector.pod:183
20702 msgid ""
20703 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20704 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20705 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20706 "architecture.  The other fields are fairly self-explanatory, but because "
20707 "these fields are taken directly from the libguestfs inspection API you can "
20708 "find precise information from L<guestfs(3)/INSPECTION>."
20709 msgstr ""
20710
20711 #. type: textblock
20712 #: ../inspector/virt-inspector.pod:191
20713 msgid ""
20714 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20715 "of view of libguestfs (block devices may have completely different names "
20716 "inside the VM itself)."
20717 msgstr ""
20718
20719 #. type: =head2
20720 #: ../inspector/virt-inspector.pod:195
20721 #, fuzzy
20722 #| msgid "mountpoints"
20723 msgid "E<lt>mountpointsE<gt>"
20724 msgstr "mountpoints"
20725
20726 #. type: textblock
20727 #: ../inspector/virt-inspector.pod:197
20728 msgid ""
20729 "Un*x-like guests typically have multiple filesystems which are mounted at "
20730 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20731 "element which looks like this:"
20732 msgstr ""
20733
20734 #. type: verbatim
20735 #: ../inspector/virt-inspector.pod:201
20736 #, no-wrap
20737 msgid ""
20738 " <operatingsystems>\n"
20739 "   <operatingsystem>\n"
20740 "     ...\n"
20741 "     <mountpoints>\n"
20742 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20743 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20744 "     </mountpoints>\n"
20745 "\n"
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../inspector/virt-inspector.pod:209
20750 msgid ""
20751 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20752 "and may have completely different names inside the guest.  Only mountable "
20753 "filesystems appear in this list, not things like swap devices."
20754 msgstr ""
20755
20756 #. type: =head2
20757 #: ../inspector/virt-inspector.pod:214
20758 #, fuzzy
20759 #| msgid "list-filesystems"
20760 msgid "E<lt>filesystemsE<gt>"
20761 msgstr "list-filesystems"
20762
20763 #. type: textblock
20764 #: ../inspector/virt-inspector.pod:216
20765 msgid ""
20766 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20767 "filesystems belonging to the guest, including swap and empty partitions.  "
20768 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20769 "this OS or shared with this OS and other OSes)."
20770 msgstr ""
20771
20772 #. type: textblock
20773 #: ../inspector/virt-inspector.pod:222
20774 msgid "You might see something like this:"
20775 msgstr ""
20776
20777 #. type: verbatim
20778 #: ../inspector/virt-inspector.pod:224
20779 #, no-wrap
20780 msgid ""
20781 " <operatingsystems>\n"
20782 "   <operatingsystem>\n"
20783 "     ...\n"
20784 "     <filesystems>\n"
20785 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20786 "         <type>ext4</type>\n"
20787 "         <label>Fedora-13-x86_64</label>\n"
20788 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20789 "       </filesystem>\n"
20790 "\n"
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../inspector/virt-inspector.pod:234
20795 msgid ""
20796 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20797 "the label, and the UUID."
20798 msgstr ""
20799
20800 #. type: =head2
20801 #: ../inspector/virt-inspector.pod:237
20802 msgid "E<lt>applicationsE<gt>"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../inspector/virt-inspector.pod:239
20807 msgid ""
20808 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20809 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20810 "machine."
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../inspector/virt-inspector.pod:243
20815 msgid ""
20816 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20817 "Typical values would be C<rpm> and C<deb>."
20818 msgstr ""
20819
20820 #. type: textblock
20821 #: ../inspector/virt-inspector.pod:246
20822 msgid ""
20823 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20824 "Typical values include C<yum>, C<up2date> and C<apt>"
20825 msgstr ""
20826
20827 #. type: textblock
20828 #: ../inspector/virt-inspector.pod:249
20829 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20830 msgstr ""
20831
20832 #. type: verbatim
20833 #: ../inspector/virt-inspector.pod:252
20834 #, no-wrap
20835 msgid ""
20836 " <operatingsystems>\n"
20837 "   <operatingsystem>\n"
20838 "     ...\n"
20839 "     <applications>\n"
20840 "       <application>\n"
20841 "         <name>coreutils</name>\n"
20842 "         <version>8.5</version>\n"
20843 "         <release>1</release>\n"
20844 "       </application>\n"
20845 "\n"
20846 msgstr ""
20847
20848 #. type: textblock
20849 #: ../inspector/virt-inspector.pod:262
20850 msgid ""
20851 "The version and release fields may not be available for some types guests.  "
20852 "Other fields are possible, see L<guestfs(3)/"
20853 "guestfs_inspect_list_applications>."
20854 msgstr ""
20855
20856 #. type: =head2
20857 #: ../inspector/virt-inspector.pod:266
20858 msgid "E<lt>drive_mappingsE<gt>"
20859 msgstr ""
20860
20861 #. type: textblock
20862 #: ../inspector/virt-inspector.pod:268
20863 msgid ""
20864 "For operating systems like Windows which use drive letters, virt-inspector "
20865 "is able to find out how drive letters map to filesystems."
20866 msgstr ""
20867
20868 #. type: verbatim
20869 #: ../inspector/virt-inspector.pod:272
20870 #, no-wrap
20871 msgid ""
20872 " <operatingsystems>\n"
20873 "   <operatingsystem>\n"
20874 "     ...\n"
20875 "     <drive_mappings>\n"
20876 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20877 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20878 "     </drive_mappings>\n"
20879 "\n"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../inspector/virt-inspector.pod:280
20884 msgid ""
20885 "In the example above, drive C maps to the filesystem on the second partition "
20886 "on the first disk, and drive E maps to the filesystem on the first partition "
20887 "on the second disk."
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../inspector/virt-inspector.pod:284
20892 msgid ""
20893 "Note that this only covers permanent local filesystem mappings, not things "
20894 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20895 "here."
20896 msgstr ""
20897
20898 #. type: =head2
20899 #: ../inspector/virt-inspector.pod:288
20900 #, fuzzy
20901 #| msgid "B<-s E<lt>NE<gt>>"
20902 msgid "E<lt>iconE<gt>"
20903 msgstr "B<-s E<lt>NE<gt>>"
20904
20905 #. type: textblock
20906 #: ../inspector/virt-inspector.pod:290
20907 msgid ""
20908 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20909 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20910 "very large and high quality."
20911 msgstr ""
20912
20913 #. type: verbatim
20914 #: ../inspector/virt-inspector.pod:294
20915 #, no-wrap
20916 msgid ""
20917 " <operatingsystems>\n"
20918 "   <operatingsystem>\n"
20919 "     ...\n"
20920 "     <icon>\n"
20921 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20922 "       [... many lines of base64 data ...]\n"
20923 "     </icon>\n"
20924 "\n"
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../inspector/virt-inspector.pod:302
20929 msgid ""
20930 "To display the icon, you have to extract it and convert the base64 data back "
20931 "to a binary file.  Use an XPath query or simply an editor to extract the "
20932 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20933 "to a PNG file:"
20934 msgstr ""
20935
20936 #. type: verbatim
20937 #: ../inspector/virt-inspector.pod:307
20938 #, no-wrap
20939 msgid ""
20940 " base64 -i -d < icon.data > icon.png\n"
20941 "\n"
20942 msgstr ""
20943
20944 #. type: =head2
20945 #: ../inspector/virt-inspector.pod:309
20946 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../inspector/virt-inspector.pod:311
20951 msgid ""
20952 "Virt-inspector can detect some operating system installers on install disks, "
20953 "live CDs, bootable USB keys and more."
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../inspector/virt-inspector.pod:314
20958 msgid ""
20959 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20960 "fields may be present to indicate a live CD, network installer, or one part "
20961 "of a multipart CD.  For example:"
20962 msgstr ""
20963
20964 #. type: verbatim
20965 #: ../inspector/virt-inspector.pod:318
20966 #, no-wrap
20967 msgid ""
20968 " <operatingsystems>\n"
20969 "   <operatingsystem>\n"
20970 "     <root>/dev/sda</root>\n"
20971 "     <name>linux</name>\n"
20972 "     <arch>i386</arch>\n"
20973 "     <distro>ubuntu</distro>\n"
20974 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20975 "     <major_version>10</major_version>\n"
20976 "     <minor_version>10</minor_version>\n"
20977 "     <format>installer</format>\n"
20978 "     <live/>\n"
20979 "\n"
20980 msgstr ""
20981
20982 #. type: =head1
20983 #: ../inspector/virt-inspector.pod:330
20984 msgid "USING XPATH"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../inspector/virt-inspector.pod:332
20989 msgid ""
20990 "You can use the XPath query language to select parts of the XML.  We "
20991 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20992 msgstr ""
20993
20994 #. type: verbatim
20995 #: ../inspector/virt-inspector.pod:338
20996 #, no-wrap
20997 msgid ""
20998 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20999 " <filesystems>\n"
21000 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21001 "        <type>ext4</type>\n"
21002 " [...]\n"
21003 "\n"
21004 msgstr ""
21005
21006 #. type: verbatim
21007 #: ../inspector/virt-inspector.pod:344
21008 #, no-wrap
21009 msgid ""
21010 " $ virt-inspector -d Guest | \\\n"
21011 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21012 " ext4\n"
21013 "\n"
21014 msgstr ""
21015
21016 #. type: verbatim
21017 #: ../inspector/virt-inspector.pod:348
21018 #, no-wrap
21019 msgid ""
21020 " $ virt-inspector -d Guest | \\\n"
21021 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21022 " [displays the guest icon, if there is one]\n"
21023 "\n"
21024 msgstr ""
21025
21026 #. type: =head1
21027 #: ../inspector/virt-inspector.pod:359
21028 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../inspector/virt-inspector.pod:361
21033 msgid ""
21034 "Early versions of libguestfs shipped with a different virt-inspector program "
21035 "written in Perl (the current version is written in C).  The XML output of "
21036 "the Perl virt-inspector was different and it could also output in other "
21037 "formats like text."
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../inspector/virt-inspector.pod:366
21042 msgid ""
21043 "The old virt-inspector is no longer supported or shipped with libguestfs."
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../inspector/virt-inspector.pod:369
21048 msgid ""
21049 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21050 "versions of virt-inspector with different names:"
21051 msgstr ""
21052
21053 #. type: verbatim
21054 #: ../inspector/virt-inspector.pod:372
21055 #, no-wrap
21056 msgid ""
21057 " virt-inspector     Old Perl version.\n"
21058 " virt-inspector2    New C version.\n"
21059 "\n"
21060 msgstr ""
21061
21062 #. type: textblock
21063 #: ../inspector/virt-inspector.pod:382
21064 #, fuzzy
21065 #| msgid ""
21066 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21067 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21068 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21069 msgid ""
21070 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21071 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21072 msgstr ""
21073 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21074 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21075 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21076
21077 #. type: textblock
21078 #: ../inspector/virt-inspector.pod:399
21079 msgid "Matthew Booth L<mbooth@redhat.com>"
21080 msgstr ""
21081
21082 #. type: textblock
21083 #: ../java/examples/guestfs-java.pod:5
21084 msgid "guestfs-java - How to use libguestfs from Java"
21085 msgstr ""
21086
21087 #. type: verbatim
21088 #: ../java/examples/guestfs-java.pod:9
21089 #, no-wrap
21090 msgid ""
21091 " import com.redhat.et.libguestfs.*;\n"
21092 " \n"
21093 msgstr ""
21094
21095 #. type: verbatim
21096 #: ../java/examples/guestfs-java.pod:11
21097 #, no-wrap
21098 msgid ""
21099 " GuestFS g = new GuestFS ();\n"
21100 " g.add_drive_opts (\"disk.img\", null);\n"
21101 " g.launch ();\n"
21102 "\n"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../java/examples/guestfs-java.pod:17
21107 msgid ""
21108 "This manual page documents how to call libguestfs from the Java programming "
21109 "language.  This page just documents the differences from the C API and gives "
21110 "some examples.  If you are not familiar with using libguestfs, you also need "
21111 "to read L<guestfs(3)>."
21112 msgstr ""
21113
21114 #. type: =head2
21115 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21116 msgid "CLOSING THE HANDLE"
21117 msgstr ""
21118
21119 #. type: textblock
21120 #: ../java/examples/guestfs-java.pod:24
21121 msgid ""
21122 "The handle is closed when it is reaped by the garbage collector.  Because "
21123 "libguestfs handles include a lot of state, it is also possible to close (and "
21124 "hence free) them explicitly by calling the C<close> method."
21125 msgstr ""
21126
21127 #. type: =head2
21128 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21129 #: ../python/examples/guestfs-python.pod:21
21130 #: ../ruby/examples/guestfs-ruby.pod:22
21131 #, fuzzy
21132 #| msgid "OPTIONS"
21133 msgid "EXCEPTIONS"
21134 msgstr "ПАРАМЕТРИ"
21135
21136 #. type: textblock
21137 #: ../java/examples/guestfs-java.pod:31
21138 msgid ""
21139 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21140 "exception.  This has a single parameter which is the error message (a "
21141 "C<String>)."
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../java/examples/guestfs-java.pod:35
21146 msgid "Calling any method on a closed handle raises the same exception."
21147 msgstr ""
21148
21149 #. type: textblock
21150 #: ../java/examples/guestfs-java.pod:47
21151 #, fuzzy
21152 #| msgid ""
21153 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21154 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21155 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21156 msgid ""
21157 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21158 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21159 "libguestfs.org/>, L<http://caml.inria.fr/>."
21160 msgstr ""
21161 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21162 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21163 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21164
21165 #. type: textblock
21166 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21167 #, fuzzy
21168 #| msgid "Copyright (C) 2009 Red Hat Inc."
21169 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21170 msgstr "© Red Hat Inc., 2009"
21171
21172 #. type: textblock
21173 #: ../ocaml/examples/guestfs-ocaml.pod:5
21174 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21175 msgstr ""
21176
21177 #. type: textblock
21178 #: ../ocaml/examples/guestfs-ocaml.pod:9
21179 msgid "Module style:"
21180 msgstr ""
21181
21182 #. type: verbatim
21183 #: ../ocaml/examples/guestfs-ocaml.pod:11
21184 #, no-wrap
21185 msgid ""
21186 " let g = Guestfs.create () in\n"
21187 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21188 " Guestfs.launch g;\n"
21189 "\n"
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../ocaml/examples/guestfs-ocaml.pod:15
21194 msgid "Object-oriented style:"
21195 msgstr ""
21196
21197 #. type: verbatim
21198 #: ../ocaml/examples/guestfs-ocaml.pod:17
21199 #, no-wrap
21200 msgid ""
21201 " let g = new Guestfs.guestfs () in\n"
21202 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21203 " g#launch ();\n"
21204 "\n"
21205 msgstr ""
21206
21207 #. type: verbatim
21208 #: ../ocaml/examples/guestfs-ocaml.pod:21
21209 #, no-wrap
21210 msgid ""
21211 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21212 "or:\n"
21213 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21214 "\n"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../ocaml/examples/guestfs-ocaml.pod:27
21219 msgid ""
21220 "This manual page documents how to call libguestfs from the OCaml programming "
21221 "language.  This page just documents the differences from the C API and gives "
21222 "some examples.  If you are not familiar with using libguestfs, you also need "
21223 "to read L<guestfs(3)>."
21224 msgstr ""
21225
21226 #. type: =head2
21227 #: ../ocaml/examples/guestfs-ocaml.pod:32
21228 msgid "PROGRAMMING STYLES"
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../ocaml/examples/guestfs-ocaml.pod:34
21233 msgid ""
21234 "There are two different programming styles supported by the OCaml bindings.  "
21235 "You can use a module style, with each C function mapped to an OCaml function:"
21236 msgstr ""
21237
21238 #. type: verbatim
21239 #: ../ocaml/examples/guestfs-ocaml.pod:38
21240 #, fuzzy, no-wrap
21241 #| msgid ""
21242 #| " int guestfs_last_errno (guestfs_h *g);\n"
21243 #| "\n"
21244 msgid ""
21245 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21246 "\n"
21247 msgstr ""
21248 " int guestfs_last_errno (guestfs_h *g);\n"
21249 "\n"
21250
21251 #. type: textblock
21252 #: ../ocaml/examples/guestfs-ocaml.pod:40
21253 msgid "becomes:"
21254 msgstr ""
21255
21256 #. type: verbatim
21257 #: ../ocaml/examples/guestfs-ocaml.pod:42
21258 #, no-wrap
21259 msgid ""
21260 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21261 "\n"
21262 msgstr ""
21263
21264 #. type: textblock
21265 #: ../ocaml/examples/guestfs-ocaml.pod:44
21266 msgid ""
21267 "Alternately you can use an object-oriented style, calling methods on the "
21268 "class C<Guestfs.guestfs>:"
21269 msgstr ""
21270
21271 #. type: verbatim
21272 #: ../ocaml/examples/guestfs-ocaml.pod:47
21273 #, no-wrap
21274 msgid ""
21275 " method set_verbose : bool -> unit\n"
21276 "\n"
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../ocaml/examples/guestfs-ocaml.pod:49
21281 msgid ""
21282 "The object-oriented style is usually briefer, and the minor performance "
21283 "penalty isn't noticable in the general overhead of performing libguestfs "
21284 "functions."
21285 msgstr ""
21286
21287 #. type: textblock
21288 #: ../ocaml/examples/guestfs-ocaml.pod:55
21289 msgid ""
21290 "The handle is closed when it is reaped by the garbage collector.  Because "
21291 "libguestfs handles include a lot of state, it is also possible to close (and "
21292 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21293 "method."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../ocaml/examples/guestfs-ocaml.pod:62
21298 msgid ""
21299 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21300 "exception.  This has a single parameter which is the error message (a "
21301 "string)."
21302 msgstr ""
21303
21304 #. type: textblock
21305 #: ../ocaml/examples/guestfs-ocaml.pod:66
21306 msgid ""
21307 "Calling any function/method on a closed handle raises C<Guestfs."
21308 "Handle_closed>.  The single parameter is the name of the function that you "
21309 "called."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../ocaml/examples/guestfs-ocaml.pod:80
21314 #, fuzzy
21315 #| msgid ""
21316 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21317 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21318 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21319 msgid ""
21320 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21321 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21322 "libguestfs.org/>, L<http://caml.inria.fr/>."
21323 msgstr ""
21324 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21325 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21326 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21327
21328 #. type: textblock
21329 #: ../perl/examples/guestfs-perl.pod:5
21330 msgid "guestfs-perl - How to use libguestfs from Perl"
21331 msgstr ""
21332
21333 #. type: verbatim
21334 #: ../perl/examples/guestfs-perl.pod:9
21335 #, no-wrap
21336 msgid ""
21337 " use Sys::Guestfs;\n"
21338 " \n"
21339 msgstr ""
21340
21341 #. type: verbatim
21342 #: ../perl/examples/guestfs-perl.pod:11
21343 #, no-wrap
21344 msgid ""
21345 " my $h = Sys::Guestfs->new ();\n"
21346 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21347 " $h->launch ();\n"
21348 " $h->mount_options ('', '/dev/sda1', '/');\n"
21349 " $h->touch ('/hello');\n"
21350 " $h->sync ();\n"
21351 "\n"
21352 msgstr ""
21353
21354 #. type: textblock
21355 #: ../perl/examples/guestfs-perl.pod:20
21356 msgid ""
21357 "This manual page documents how to call libguestfs from the Perl programming "
21358 "language.  This page just documents the differences from the C API and gives "
21359 "some examples.  If you are not familiar with using libguestfs, you also need "
21360 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21361 msgstr ""
21362
21363 #. type: =head2
21364 #: ../perl/examples/guestfs-perl.pod:26
21365 msgid "ERRORS"
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../perl/examples/guestfs-perl.pod:28
21370 msgid ""
21371 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21372 ">)."
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../perl/examples/guestfs-perl.pod:41
21377 #, fuzzy
21378 #| msgid ""
21379 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21380 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21381 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21382 msgid ""
21383 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21384 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21385 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21386 msgstr ""
21387 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21388 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21389 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21390
21391 #. type: textblock
21392 #: ../python/examples/guestfs-python.pod:5
21393 msgid "guestfs-python - How to use libguestfs from Python"
21394 msgstr ""
21395
21396 #. type: verbatim
21397 #: ../python/examples/guestfs-python.pod:9
21398 #, no-wrap
21399 msgid ""
21400 " import guestfs\n"
21401 " g = guestfs.GuestFS ()\n"
21402 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21403 " g.launch\n"
21404 "\n"
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../python/examples/guestfs-python.pod:16
21409 msgid ""
21410 "This manual page documents how to call libguestfs from the Python "
21411 "programming language.  This page just documents the differences from the C "
21412 "API and gives some examples.  If you are not familiar with using libguestfs, "
21413 "you also need to read L<guestfs(3)>."
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../python/examples/guestfs-python.pod:23
21418 msgid ""
21419 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21420 "single string argument which is the error message."
21421 msgstr ""
21422
21423 #. type: =head2
21424 #: ../python/examples/guestfs-python.pod:26
21425 msgid "MORE DOCUMENTATION"
21426 msgstr ""
21427
21428 #. type: textblock
21429 #: ../python/examples/guestfs-python.pod:28
21430 msgid "Type:"
21431 msgstr ""
21432
21433 #. type: verbatim
21434 #: ../python/examples/guestfs-python.pod:30
21435 #, no-wrap
21436 msgid ""
21437 " $ python\n"
21438 " >>> import guestfs\n"
21439 " >>> help (guestfs)\n"
21440 "\n"
21441 msgstr ""
21442
21443 #. type: textblock
21444 #: ../python/examples/guestfs-python.pod:44
21445 #, fuzzy
21446 #| msgid ""
21447 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21448 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21449 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21450 msgid ""
21451 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21452 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21453 "libguestfs.org/>."
21454 msgstr ""
21455 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21456 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21457 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21458
21459 #. type: textblock
21460 #: ../rescue/virt-rescue.pod:5
21461 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21462 msgstr ""
21463
21464 #. type: verbatim
21465 #: ../rescue/virt-rescue.pod:9
21466 #, fuzzy, no-wrap
21467 #| msgid ""
21468 #| " virt-list-partitions [--options] domname\n"
21469 #| "\n"
21470 msgid ""
21471 " virt-rescue [--options] -d domname\n"
21472 "\n"
21473 msgstr ""
21474 " virt-list-partitions [--параметри] назва_домену\n"
21475 "\n"
21476
21477 #. type: verbatim
21478 #: ../rescue/virt-rescue.pod:11
21479 #, fuzzy, no-wrap
21480 #| msgid ""
21481 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21482 #| "\n"
21483 msgid ""
21484 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21485 "\n"
21486 msgstr ""
21487 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21488 "\n"
21489
21490 #. type: verbatim
21491 #: ../rescue/virt-rescue.pod:15
21492 #, fuzzy, no-wrap
21493 #| msgid ""
21494 #| " virt-list-partitions [--options] domname\n"
21495 #| "\n"
21496 msgid ""
21497 " virt-rescue [--options] domname\n"
21498 "\n"
21499 msgstr ""
21500 " virt-list-partitions [--параметри] назва_домену\n"
21501 "\n"
21502
21503 #. type: verbatim
21504 #: ../rescue/virt-rescue.pod:17
21505 #, fuzzy, no-wrap
21506 #| msgid ""
21507 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21508 #| "\n"
21509 msgid ""
21510 " virt-rescue [--options] disk.img [disk.img ...]\n"
21511 "\n"
21512 msgstr ""
21513 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21514 "\n"
21515
21516 #. type: textblock
21517 #: ../rescue/virt-rescue.pod:21
21518 msgid ""
21519 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21520 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21521 "you from doing this, but doesn't catch all cases."
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../rescue/virt-rescue.pod:25
21526 msgid ""
21527 "However if you use the I<--ro> (read only) option, then you can attach a "
21528 "shell to a live virtual machine.  The results might be strange or "
21529 "inconsistent at times but you won't get disk corruption."
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../rescue/virt-rescue.pod:31
21534 msgid ""
21535 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21536 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21537 "recovery tools which you can use to examine or rescue a virtual machine or "
21538 "disk image."
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../rescue/virt-rescue.pod:36
21543 msgid ""
21544 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21545 "on disk image(s):"
21546 msgstr ""
21547
21548 #. type: verbatim
21549 #: ../rescue/virt-rescue.pod:39
21550 #, no-wrap
21551 msgid ""
21552 " virt-rescue -d GuestName\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: verbatim
21557 #: ../rescue/virt-rescue.pod:41
21558 #, no-wrap
21559 msgid ""
21560 " virt-rescue --ro -a /path/to/disk.img\n"
21561 "\n"
21562 msgstr ""
21563
21564 #. type: verbatim
21565 #: ../rescue/virt-rescue.pod:43
21566 #, no-wrap
21567 msgid ""
21568 " virt-rescue -a /dev/sdc\n"
21569 "\n"
21570 msgstr ""
21571
21572 #. type: textblock
21573 #: ../rescue/virt-rescue.pod:45
21574 msgid "For live VMs you I<must> use the --ro option."
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../rescue/virt-rescue.pod:47
21579 msgid ""
21580 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21581 "in an interactive bash shell where you can use many ordinary Linux "
21582 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21583 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21584 "is an empty directory called C</sysroot> where you can mount filesystems."
21585 msgstr ""
21586
21587 #. type: textblock
21588 #: ../rescue/virt-rescue.pod:54
21589 msgid ""
21590 "In the example below, we list logical volumes, then choose one to mount "
21591 "under C</sysroot>:"
21592 msgstr ""
21593
21594 #. type: verbatim
21595 #: ../rescue/virt-rescue.pod:57
21596 #, no-wrap
21597 msgid ""
21598 " ><rescue> lvs\n"
21599 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21600 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21601 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21602 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21603 " ><rescue> ls /sysroot\n"
21604 "\n"
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../rescue/virt-rescue.pod:64
21609 msgid ""
21610 "If you don't know what filesystems are available on the virtual machine then "
21611 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21612 msgstr ""
21613
21614 #. type: textblock
21615 #: ../rescue/virt-rescue.pod:70
21616 msgid ""
21617 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21618 "virtual machine.  For example you can use it on a blank file if you want to "
21619 "partition that file (although we would recommend using L<guestfish(1)> "
21620 "instead as it is more suitable for this purpose).  You can even use virt-"
21621 "rescue on things like SD cards."
21622 msgstr ""
21623
21624 #. type: textblock
21625 #: ../rescue/virt-rescue.pod:76
21626 msgid ""
21627 "Virt-rescue does not require root.  You only need to run it as root if you "
21628 "need root to open the disk image."
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../rescue/virt-rescue.pod:79
21633 msgid ""
21634 "This tool is just designed for quick interactive hacking on a virtual "
21635 "machine.  For more structured access to a virtual machine disk image, you "
21636 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21637 "make scripted changes to guests, use L<guestfish(1)>."
21638 msgstr ""
21639
21640 #. type: =item
21641 #: ../rescue/virt-rescue.pod:103
21642 msgid "B<--append kernelopts>"
21643 msgstr ""
21644
21645 #. type: textblock
21646 #: ../rescue/virt-rescue.pod:105
21647 msgid "Pass additional options to the rescue kernel."
21648 msgstr ""
21649
21650 #. type: verbatim
21651 #: ../rescue/virt-rescue.pod:135
21652 #, fuzzy, no-wrap
21653 #| msgid ""
21654 #| " guestfish --format=raw -a disk.img\n"
21655 #| "\n"
21656 msgid ""
21657 " virt-rescue --format=raw -a disk.img\n"
21658 "\n"
21659 msgstr ""
21660 " guestfish --format=raw -a disk.img\n"
21661 "\n"
21662
21663 #. type: verbatim
21664 #: ../rescue/virt-rescue.pod:139
21665 #, fuzzy, no-wrap
21666 #| msgid ""
21667 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21668 #| "\n"
21669 msgid ""
21670 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21671 "\n"
21672 msgstr ""
21673 " guestfish --format=raw -a disk.img --format -a another.img\n"
21674 "\n"
21675
21676 #. type: =item
21677 #: ../rescue/virt-rescue.pod:148
21678 msgid "B<-m MB>"
21679 msgstr ""
21680
21681 #. type: =item
21682 #: ../rescue/virt-rescue.pod:150
21683 #, fuzzy
21684 #| msgid "B<--merge>"
21685 msgid "B<--memsize MB>"
21686 msgstr "B<--merge>"
21687
21688 #. type: textblock
21689 #: ../rescue/virt-rescue.pod:152
21690 msgid ""
21691 "Change the amount of memory allocated to the rescue system.  The default is "
21692 "set by libguestfs and is small but adequate for running system tools.  The "
21693 "occasional program might need more memory.  The parameter is specified in "
21694 "megabytes."
21695 msgstr ""
21696
21697 #. type: =item
21698 #: ../rescue/virt-rescue.pod:157
21699 #, fuzzy
21700 #| msgid "B<--inspector>"
21701 msgid "B<--network>"
21702 msgstr "B<--inspector>"
21703
21704 #. type: textblock
21705 #: ../rescue/virt-rescue.pod:159
21706 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21707 msgstr ""
21708
21709 #. type: textblock
21710 #: ../rescue/virt-rescue.pod:165
21711 msgid "Open the image read-only."
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../rescue/virt-rescue.pod:175
21716 msgid ""
21717 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21718 "SELINUX> before using this option."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../rescue/virt-rescue.pod:194
21723 msgid ""
21724 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21725 "are done read-write."
21726 msgstr ""
21727
21728 #. type: textblock
21729 #: ../rescue/virt-rescue.pod:207
21730 msgid "Previous versions of virt-rescue allowed you to write either:"
21731 msgstr ""
21732
21733 #. type: verbatim
21734 #: ../rescue/virt-rescue.pod:209
21735 #, fuzzy, no-wrap
21736 #| msgid ""
21737 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21738 #| "\n"
21739 msgid ""
21740 " virt-rescue disk.img [disk.img ...]\n"
21741 "\n"
21742 msgstr ""
21743 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21744 "\n"
21745
21746 #. type: verbatim
21747 #: ../rescue/virt-rescue.pod:213
21748 #, fuzzy, no-wrap
21749 #| msgid ""
21750 #| " file-architecture filename\n"
21751 #| "\n"
21752 msgid ""
21753 " virt-rescue guestname\n"
21754 "\n"
21755 msgstr ""
21756 " file-architecture назва_файла\n"
21757 "\n"
21758
21759 #. type: =head1
21760 #: ../rescue/virt-rescue.pod:221
21761 msgid "NETWORK"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../rescue/virt-rescue.pod:223
21766 msgid ""
21767 "Adding the I<--network> option enables QEMU user networking in the rescue "
21768 "appliance.  There are some differences between user networking and ordinary "
21769 "networking:"
21770 msgstr ""
21771
21772 #. type: =item
21773 #: ../rescue/virt-rescue.pod:229
21774 msgid "ping does not work"
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../rescue/virt-rescue.pod:231
21779 msgid ""
21780 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21781 "send the ping packets, and because virt-rescue must be able to run as non-"
21782 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21783 "The ping command will appear to resolve addresses but will not be able to "
21784 "send or receive any packets.  This does not mean that the network is not "
21785 "working."
21786 msgstr ""
21787
21788 #. type: =item
21789 #: ../rescue/virt-rescue.pod:238
21790 msgid "cannot receive connections"
21791 msgstr ""
21792
21793 #. type: textblock
21794 #: ../rescue/virt-rescue.pod:240
21795 msgid "QEMU user networking cannot receive incoming connections."
21796 msgstr ""
21797
21798 #. type: =item
21799 #: ../rescue/virt-rescue.pod:242
21800 msgid "making TCP connections"
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../rescue/virt-rescue.pod:244
21805 msgid ""
21806 "The virt-rescue appliance needs to be small and so does not include many "
21807 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21808 "make TCP connections from the shell using the magical C</dev/tcp/"
21809 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21810 msgstr ""
21811
21812 #. type: verbatim
21813 #: ../rescue/virt-rescue.pod:249
21814 #, no-wrap
21815 msgid ""
21816 " exec 3<>/dev/tcp/redhat.com/80\n"
21817 " echo \"GET /\" >&3\n"
21818 " cat <&3\n"
21819 "\n"
21820 msgstr ""
21821
21822 #. type: textblock
21823 #: ../rescue/virt-rescue.pod:253
21824 msgid "See L<bash(1)> for more details."
21825 msgstr ""
21826
21827 #. type: textblock
21828 #: ../rescue/virt-rescue.pod:259
21829 msgid ""
21830 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21831 "ENVIRONMENT VARIABLES> for the complete list."
21832 msgstr ""
21833
21834 #. type: textblock
21835 #: ../rescue/virt-rescue.pod:286
21836 #, fuzzy
21837 #| msgid ""
21838 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21839 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21840 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21841 msgid ""
21842 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21843 "libguestfs.org/>."
21844 msgstr ""
21845 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21846 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21847 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21848
21849 #. type: textblock
21850 #: ../resize/virt-resize.pod:5
21851 msgid "virt-resize - Resize a virtual machine disk"
21852 msgstr ""
21853
21854 #. type: verbatim
21855 #: ../resize/virt-resize.pod:9
21856 #, no-wrap
21857 msgid ""
21858 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21859 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21860 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21861 "\n"
21862 msgstr ""
21863
21864 #. type: textblock
21865 #: ../resize/virt-resize.pod:15
21866 msgid ""
21867 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21868 "larger or smaller overall, and resizing or deleting any partitions contained "
21869 "within."
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../resize/virt-resize.pod:19
21874 msgid ""
21875 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21876 "not> be used on live virtual machines - for consistent results, shut the "
21877 "virtual machine down before resizing it."
21878 msgstr ""
21879
21880 #. type: textblock
21881 #: ../resize/virt-resize.pod:23
21882 msgid ""
21883 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21884 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21885 msgstr ""
21886
21887 #. type: =item
21888 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1280
21889 #: ../src/guestfs.pod:1418 ../src/guestfs.pod:2581
21890 msgid "1."
21891 msgstr "1."
21892
21893 #. type: textblock
21894 #: ../resize/virt-resize.pod:33
21895 msgid ""
21896 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21897 "fill the extra 5GB of space."
21898 msgstr ""
21899
21900 #. type: verbatim
21901 #: ../resize/virt-resize.pod:36
21902 #, no-wrap
21903 msgid ""
21904 " virt-filesystems --long -h --all -a olddisk\n"
21905 " \n"
21906 msgstr ""
21907
21908 #. type: verbatim
21909 #: ../resize/virt-resize.pod:38
21910 #, no-wrap
21911 msgid ""
21912 " truncate -r olddisk newdisk\n"
21913 " truncate -s +5G newdisk\n"
21914 " \n"
21915 msgstr ""
21916
21917 #. type: verbatim
21918 #: ../resize/virt-resize.pod:41
21919 #, no-wrap
21920 msgid ""
21921 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21922 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21923 "\n"
21924 msgstr ""
21925
21926 #. type: =item
21927 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1284
21928 #: ../src/guestfs.pod:1422 ../src/guestfs.pod:2606
21929 msgid "2."
21930 msgstr "2."
21931
21932 #. type: textblock
21933 #: ../resize/virt-resize.pod:46
21934 msgid ""
21935 "As above, but make the /boot partition 200MB bigger, while giving the "
21936 "remaining space to /dev/sda2:"
21937 msgstr ""
21938
21939 #. type: verbatim
21940 #: ../resize/virt-resize.pod:49
21941 #, no-wrap
21942 msgid ""
21943 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21944 "   olddisk newdisk\n"
21945 "\n"
21946 msgstr ""
21947
21948 #. type: =item
21949 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1428
21950 msgid "3."
21951 msgstr "3."
21952
21953 #. type: textblock
21954 #: ../resize/virt-resize.pod:54
21955 msgid ""
21956 "As in the first example, but expand a logical volume as the final step.  "
21957 "This is what you would typically use for Linux guests that use LVM:"
21958 msgstr ""
21959
21960 #. type: verbatim
21961 #: ../resize/virt-resize.pod:58
21962 #, no-wrap
21963 msgid ""
21964 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21965 "   olddisk newdisk\n"
21966 "\n"
21967 msgstr ""
21968
21969 #. type: =item
21970 #: ../resize/virt-resize.pod:61
21971 msgid "4."
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../resize/virt-resize.pod:63
21976 msgid ""
21977 "As in the first example, but the output format will be qcow2 instead of a "
21978 "raw disk:"
21979 msgstr ""
21980
21981 #. type: verbatim
21982 #: ../resize/virt-resize.pod:66
21983 #, no-wrap
21984 msgid ""
21985 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21986 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: =head1
21991 #: ../resize/virt-resize.pod:71
21992 msgid "DETAILED USAGE"
21993 msgstr ""
21994
21995 #. type: =head2
21996 #: ../resize/virt-resize.pod:73
21997 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21998 msgstr ""
21999
22000 #. type: =item
22001 #: ../resize/virt-resize.pod:77
22002 msgid "1. Shut down the virtual machine"
22003 msgstr ""
22004
22005 #. type: =item
22006 #: ../resize/virt-resize.pod:79
22007 msgid "2. Locate input disk image"
22008 msgstr ""
22009
22010 #. type: textblock
22011 #: ../resize/virt-resize.pod:81
22012 msgid ""
22013 "Locate the input disk image (ie. the file or device on the host containing "
22014 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22015 "dumpxml> like this to find the disk image name:"
22016 msgstr ""
22017
22018 #. type: verbatim
22019 #: ../resize/virt-resize.pod:85
22020 #, no-wrap
22021 msgid ""
22022 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22023 " Found 1 nodes:\n"
22024 " -- NODE --\n"
22025 " <source dev=\"/dev/vg/lv_guest\" />\n"
22026 "\n"
22027 msgstr ""
22028
22029 #. type: =item
22030 #: ../resize/virt-resize.pod:90
22031 msgid "3. Look at current sizing"
22032 msgstr ""
22033
22034 #. type: textblock
22035 #: ../resize/virt-resize.pod:92
22036 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22037 msgstr ""
22038
22039 #. type: verbatim
22040 #: ../resize/virt-resize.pod:95
22041 #, no-wrap
22042 msgid ""
22043 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22044 " Name       Type       Size  Parent\n"
22045 " /dev/sda1  partition  101M  /dev/sda\n"
22046 " /dev/sda2  partition  7.9G  /dev/sda\n"
22047 " /dev/sda   device     8.0G  -\n"
22048 "\n"
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../resize/virt-resize.pod:101
22053 msgid ""
22054 "(This example is a virtual machine with an 8 GB disk which we would like to "
22055 "expand up to 10 GB)."
22056 msgstr ""
22057
22058 #. type: =item
22059 #: ../resize/virt-resize.pod:104
22060 msgid "4. Create output disk"
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../resize/virt-resize.pod:106
22065 msgid ""
22066 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22067 "to store the resized output disk."
22068 msgstr ""
22069
22070 #. type: textblock
22071 #: ../resize/virt-resize.pod:109
22072 msgid ""
22073 "To store the resized disk image in a file, create a file of a suitable size:"
22074 msgstr ""
22075
22076 #. type: verbatim
22077 #: ../resize/virt-resize.pod:112
22078 #, no-wrap
22079 msgid ""
22080 " # rm -f outdisk\n"
22081 " # truncate -s 10G outdisk\n"
22082 "\n"
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../resize/virt-resize.pod:115
22087 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22088 msgstr ""
22089
22090 #. type: verbatim
22091 #: ../resize/virt-resize.pod:117
22092 #, no-wrap
22093 msgid ""
22094 " # lvcreate -L 10G -n lv_name vg_name\n"
22095 "\n"
22096 msgstr ""
22097
22098 #. type: textblock
22099 #: ../resize/virt-resize.pod:119
22100 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22101 msgstr ""
22102
22103 #. type: verbatim
22104 #: ../resize/virt-resize.pod:121
22105 #, no-wrap
22106 msgid ""
22107 " # virsh pool-list\n"
22108 " # virsh vol-create-as poolname newvol 10G\n"
22109 "\n"
22110 msgstr ""
22111
22112 #. type: =item
22113 #: ../resize/virt-resize.pod:124
22114 msgid "5. Resize"
22115 msgstr ""
22116
22117 #. type: textblock
22118 #: ../resize/virt-resize.pod:126
22119 msgid ""
22120 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22121 "file) and the output disk.  The output disk is the one created in the "
22122 "previous step."
22123 msgstr ""
22124
22125 #. type: verbatim
22126 #: ../resize/virt-resize.pod:130
22127 #, no-wrap
22128 msgid ""
22129 " # virt-resize indisk outdisk\n"
22130 "\n"
22131 msgstr ""
22132
22133 #. type: textblock
22134 #: ../resize/virt-resize.pod:132
22135 msgid ""
22136 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22137 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22138 "larger, then an extra, empty partition is created at the end of the disk "
22139 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22140 "error."
22141 msgstr ""
22142
22143 #. type: textblock
22144 #: ../resize/virt-resize.pod:138
22145 msgid ""
22146 "More realistically you'd want to expand existing partitions in the disk "
22147 "image by passing extra options (for the full list see the L</OPTIONS> "
22148 "section below)."
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../resize/virt-resize.pod:142
22153 msgid ""
22154 "L</--expand> is the most useful option.  It expands the named partition "
22155 "within the disk to fill any extra space:"
22156 msgstr ""
22157
22158 #. type: verbatim
22159 #: ../resize/virt-resize.pod:145
22160 #, no-wrap
22161 msgid ""
22162 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22163 "\n"
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../resize/virt-resize.pod:147
22168 msgid ""
22169 "(In this case, an extra partition is I<not> created at the end of the disk, "
22170 "because there will be no unused space)."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../resize/virt-resize.pod:150
22175 msgid ""
22176 "L</--resize> is the other commonly used option.  The following would "
22177 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22178 "rest of the available space:"
22179 msgstr ""
22180
22181 #. type: verbatim
22182 #: ../resize/virt-resize.pod:154
22183 #, no-wrap
22184 msgid ""
22185 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22186 "     indisk outdisk\n"
22187 "\n"
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../resize/virt-resize.pod:157
22192 msgid ""
22193 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22194 "if virt-resize knows how, it will resize the contents, the equivalent of "
22195 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22196 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22197 "filesystems, so you would have to online resize them after booting the guest."
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../resize/virt-resize.pod:164
22202 msgid "Other options are covered below."
22203 msgstr ""
22204
22205 #. type: =item
22206 #: ../resize/virt-resize.pod:166
22207 msgid "6. Test"
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../resize/virt-resize.pod:168
22212 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22213 msgstr ""
22214
22215 #. type: textblock
22216 #: ../resize/virt-resize.pod:170
22217 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../resize/virt-resize.pod:172
22222 #, fuzzy, no-wrap
22223 #| msgid ""
22224 #| " edit filename\n"
22225 #| "\n"
22226 msgid ""
22227 " # virsh edit guestname\n"
22228 "\n"
22229 msgstr ""
22230 " edit назва_файла\n"
22231 "\n"
22232
22233 #. type: textblock
22234 #: ../resize/virt-resize.pod:174
22235 msgid ""
22236 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22237 "html#elementsDisks>"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../resize/virt-resize.pod:177
22242 msgid "Then start up the domain with the new, resized disk:"
22243 msgstr ""
22244
22245 #. type: verbatim
22246 #: ../resize/virt-resize.pod:179
22247 #, fuzzy, no-wrap
22248 #| msgid ""
22249 #| " ln-s target linkname\n"
22250 #| "\n"
22251 msgid ""
22252 " # virsh start guestname\n"
22253 "\n"
22254 msgstr ""
22255 " ln-s призначення назва_посилання\n"
22256 "\n"
22257
22258 #. type: textblock
22259 #: ../resize/virt-resize.pod:181
22260 msgid ""
22261 "and check that it still works.  See also the L</NOTES> section below for "
22262 "additional information."
22263 msgstr ""
22264
22265 #. type: =item
22266 #: ../resize/virt-resize.pod:184
22267 msgid "7. Resize LVs etc inside the guest"
22268 msgstr ""
22269
22270 #. type: textblock
22271 #: ../resize/virt-resize.pod:186
22272 msgid "(This can also be done offline using L<guestfish(1)>)"
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../resize/virt-resize.pod:188
22277 msgid ""
22278 "Once the guest has booted you should see the new space available, at least "
22279 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22280 "may need to resize LVs inside PVs, and also resize filesystem types that "
22281 "virt-resize does not know how to expand."
22282 msgstr ""
22283
22284 #. type: =head2
22285 #: ../resize/virt-resize.pod:195
22286 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22287 msgstr ""
22288
22289 #. type: textblock
22290 #: ../resize/virt-resize.pod:197
22291 msgid ""
22292 "Shrinking is somewhat more complex than expanding, and only an overview is "
22293 "given here."
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../resize/virt-resize.pod:200
22298 msgid ""
22299 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22300 "filesystems).  The user has to shrink content before passing the disk image "
22301 "to virt-resize, and virt-resize will check that the content has been shrunk "
22302 "properly."
22303 msgstr ""
22304
22305 #. type: textblock
22306 #: ../resize/virt-resize.pod:205
22307 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22308 msgstr ""
22309
22310 #. type: textblock
22311 #: ../resize/virt-resize.pod:207
22312 msgid ""
22313 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22314 "steps 3 and 4 above to allocate a new disk image."
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../resize/virt-resize.pod:210
22319 msgid ""
22320 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22321 msgstr ""
22322
22323 #. type: =head2
22324 #: ../resize/virt-resize.pod:213
22325 msgid "IGNORING OR DELETING PARTITIONS"
22326 msgstr ""
22327
22328 #. type: textblock
22329 #: ../resize/virt-resize.pod:215
22330 msgid ""
22331 "virt-resize also gives a convenient way to ignore or delete partitions when "
22332 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22333 "up the copy where you don't care about the existing contents of a "
22334 "partition.  Deleting a partition removes it completely, but note that it "
22335 "also renumbers any partitions after the one which is deleted, which can "
22336 "leave some guests unbootable."
22337 msgstr ""
22338
22339 #. type: =head2
22340 #: ../resize/virt-resize.pod:222
22341 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22342 msgstr ""
22343
22344 #. type: textblock
22345 #: ../resize/virt-resize.pod:224
22346 msgid ""
22347 "If the input disk is in qcow2 format, then you may prefer that the output is "
22348 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22349 "the fly.  The output format is simply determined by the format of the empty "
22350 "output container that you provide.  Thus to create qcow2 output, use:"
22351 msgstr ""
22352
22353 #. type: verbatim
22354 #: ../resize/virt-resize.pod:230
22355 #, no-wrap
22356 msgid ""
22357 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22358 "\n"
22359 msgstr ""
22360
22361 #. type: textblock
22362 #: ../resize/virt-resize.pod:232
22363 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../resize/virt-resize.pod:234
22368 msgid "Similarly, to get non-sparse raw output use:"
22369 msgstr ""
22370
22371 #. type: verbatim
22372 #: ../resize/virt-resize.pod:236
22373 #, fuzzy, no-wrap
22374 #| msgid ""
22375 #| " fallocate path len\n"
22376 #| "\n"
22377 msgid ""
22378 " fallocate -l size outdisk\n"
22379 "\n"
22380 msgstr ""
22381 " fallocate шлях довжина\n"
22382 "\n"
22383
22384 #. type: textblock
22385 #: ../resize/virt-resize.pod:238
22386 msgid ""
22387 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22388 "dev/zero of=outdisk bs=1M count=..>)"
22389 msgstr ""
22390
22391 #. type: textblock
22392 #: ../resize/virt-resize.pod:247
22393 msgid "Display help."
22394 msgstr ""
22395
22396 #. type: =item
22397 #: ../resize/virt-resize.pod:249
22398 msgid "B<-d>"
22399 msgstr ""
22400
22401 #. type: =item
22402 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22403 #: ../tools/virt-win-reg.pl:120
22404 msgid "B<--debug>"
22405 msgstr "B<--debug>"
22406
22407 #. type: textblock
22408 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22409 msgid "Enable debugging messages."
22410 msgstr ""
22411
22412 #. type: =item
22413 #: ../resize/virt-resize.pod:255
22414 #, fuzzy
22415 #| msgid "B<--no-dest-paths>"
22416 msgid "B<--delete part>"
22417 msgstr "B<--no-dest-paths>"
22418
22419 #. type: textblock
22420 #: ../resize/virt-resize.pod:257
22421 msgid ""
22422 "Delete the named partition.  It would be more accurate to describe this as "
22423 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22424 "the original disk image is left intact."
22425 msgstr ""
22426
22427 #. type: textblock
22428 #: ../resize/virt-resize.pod:261
22429 msgid ""
22430 "Note that when you delete a partition, then anything contained in the "
22431 "partition is also deleted.  Furthermore, this causes any partitions that "
22432 "come after to be I<renumbered>, which can easily make your guest unbootable."
22433 msgstr ""
22434
22435 #. type: textblock
22436 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22437 #: ../resize/virt-resize.pod:454
22438 msgid "You can give this option multiple times."
22439 msgstr ""
22440
22441 #. type: =item
22442 #: ../resize/virt-resize.pod:268
22443 #, fuzzy
22444 #| msgid "B<--partition>"
22445 msgid "B<--expand part>"
22446 msgstr "B<--partition>"
22447
22448 #. type: textblock
22449 #: ../resize/virt-resize.pod:270
22450 msgid ""
22451 "Expand the named partition so it uses up all extra space (space left over "
22452 "after any other resize changes that you request have been done)."
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../resize/virt-resize.pod:273
22457 msgid ""
22458 "If virt-resize knows how, it will expand the direct content of the "
22459 "partition.  For example, if the partition is an LVM PV, it will expand the "
22460 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22461 "content it doesn't know about alone."
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../resize/virt-resize.pod:278
22466 msgid "Currently virt-resize can resize:"
22467 msgstr ""
22468
22469 #. type: textblock
22470 #: ../resize/virt-resize.pod:284
22471 msgid "ext2, ext3 and ext4 filesystems."
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../resize/virt-resize.pod:288
22476 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../resize/virt-resize.pod:290
22481 msgid ""
22482 "The filesystem must have been shut down consistently last time it was used.  "
22483 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22484 "consistency check, so at the first boot after resizing Windows will check "
22485 "the disk."
22486 msgstr ""
22487
22488 #. type: textblock
22489 #: ../resize/virt-resize.pod:297
22490 msgid ""
22491 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22492 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22493 "resize LVs as desired after boot."
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../resize/virt-resize.pod:303
22498 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22503 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22504 msgstr ""
22505
22506 #. type: =item
22507 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22508 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22509 #: ../tools/virt-win-reg.pl:142
22510 msgid "B<--format> raw"
22511 msgstr ""
22512
22513 #. type: textblock
22514 #: ../resize/virt-resize.pod:311
22515 msgid ""
22516 "Specify the format of the input disk image.  If this flag is not given then "
22517 "it is auto-detected from the image itself."
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../resize/virt-resize.pod:317
22522 msgid ""
22523 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22524 "AND NON-SPARSE RAW FORMATS>."
22525 msgstr ""
22526
22527 #. type: =item
22528 #: ../resize/virt-resize.pod:320
22529 #, fuzzy
22530 #| msgid "B<--format>"
22531 msgid "B<--ignore part>"
22532 msgstr "B<--format>"
22533
22534 #. type: textblock
22535 #: ../resize/virt-resize.pod:322
22536 msgid ""
22537 "Ignore the named partition.  Effectively this means the partition is "
22538 "allocated on the destination disk, but the content is not copied across from "
22539 "the source disk.  The content of the partition will be blank (all zero "
22540 "bytes)."
22541 msgstr ""
22542
22543 #. type: =item
22544 #: ../resize/virt-resize.pod:329
22545 msgid "B<--LV-expand logvol>"
22546 msgstr ""
22547
22548 #. type: textblock
22549 #: ../resize/virt-resize.pod:331
22550 msgid ""
22551 "This takes the logical volume and, as a final step, expands it to fill all "
22552 "the space available in its volume group.  A typical usage, assuming a Linux "
22553 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22554 "lv_root> would be:"
22555 msgstr ""
22556
22557 #. type: verbatim
22558 #: ../resize/virt-resize.pod:336
22559 #, no-wrap
22560 msgid ""
22561 " virt-resize indisk outdisk \\\n"
22562 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22563 "\n"
22564 msgstr ""
22565
22566 #. type: textblock
22567 #: ../resize/virt-resize.pod:339
22568 msgid ""
22569 "This would first expand the partition (and PV), and then expand the root "
22570 "device to fill the extra space in the PV."
22571 msgstr ""
22572
22573 #. type: textblock
22574 #: ../resize/virt-resize.pod:342
22575 msgid ""
22576 "The contents of the LV are also resized if virt-resize knows how to do "
22577 "that.  You can stop virt-resize from trying to expand the content by using "
22578 "the option I<--no-expand-content>."
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../resize/virt-resize.pod:346
22583 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22584 msgstr ""
22585
22586 #. type: textblock
22587 #: ../resize/virt-resize.pod:348
22588 msgid ""
22589 "You can give this option multiple times, I<but> it doesn't make sense to do "
22590 "this unless the logical volumes you specify are all in different volume "
22591 "groups."
22592 msgstr ""
22593
22594 #. type: =item
22595 #: ../resize/virt-resize.pod:352
22596 #, fuzzy
22597 #| msgid "B<-h> | B<--human-readable>"
22598 msgid "B<--machine-readable>"
22599 msgstr "B<-h> | B<--human-readable>"
22600
22601 #. type: textblock
22602 #: ../resize/virt-resize.pod:354
22603 msgid ""
22604 "This option is used to make the output more machine friendly when being "
22605 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22606 msgstr ""
22607
22608 #. type: =item
22609 #: ../resize/virt-resize.pod:360
22610 #, fuzzy
22611 #| msgid "B<--debug>"
22612 msgid "B<--dryrun>"
22613 msgstr "B<--debug>"
22614
22615 #. type: textblock
22616 #: ../resize/virt-resize.pod:362
22617 msgid "Print a summary of what would be done, but don't do anything."
22618 msgstr ""
22619
22620 #. type: =item
22621 #: ../resize/virt-resize.pod:364
22622 msgid "B<--no-copy-boot-loader>"
22623 msgstr ""
22624
22625 #. type: textblock
22626 #: ../resize/virt-resize.pod:366
22627 msgid ""
22628 "By default, virt-resize copies over some sectors at the start of the disk "
22629 "(up to the beginning of the first partition).  Commonly these sectors "
22630 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22631 "in order for the guest to boot correctly."
22632 msgstr ""
22633
22634 #. type: textblock
22635 #: ../resize/virt-resize.pod:371
22636 msgid ""
22637 "If you specify this flag, then this initial copy is not done.  You may need "
22638 "to reinstall the boot loader in this case."
22639 msgstr ""
22640
22641 #. type: =item
22642 #: ../resize/virt-resize.pod:374
22643 #, fuzzy
22644 #| msgid "B<--partition>"
22645 msgid "B<--no-extra-partition>"
22646 msgstr "B<--partition>"
22647
22648 #. type: textblock
22649 #: ../resize/virt-resize.pod:376
22650 msgid ""
22651 "By default, virt-resize creates an extra partition if there is any extra, "
22652 "unused space after all resizing has happened.  Use this option to prevent "
22653 "the extra partition from being created.  If you do this then the extra space "
22654 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22655 "tool in the guest."
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../resize/virt-resize.pod:382
22660 msgid ""
22661 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22662 "will be created."
22663 msgstr ""
22664
22665 #. type: =item
22666 #: ../resize/virt-resize.pod:385
22667 #, fuzzy
22668 #| msgid "B<--no-dest-paths>"
22669 msgid "B<--no-expand-content>"
22670 msgstr "B<--no-dest-paths>"
22671
22672 #. type: textblock
22673 #: ../resize/virt-resize.pod:387
22674 msgid ""
22675 "By default, virt-resize will try to expand the direct contents of "
22676 "partitions, if it knows how (see I<--expand> option above)."
22677 msgstr ""
22678
22679 #. type: textblock
22680 #: ../resize/virt-resize.pod:390
22681 msgid ""
22682 "If you give the I<--no-expand-content> option then virt-resize will not "
22683 "attempt this."
22684 msgstr ""
22685
22686 #. type: =item
22687 #: ../resize/virt-resize.pod:393
22688 #, fuzzy
22689 #| msgid "ntfsresize-size"
22690 msgid "B<--ntfsresize-force>"
22691 msgstr "ntfsresize-size"
22692
22693 #. type: textblock
22694 #: ../resize/virt-resize.pod:395
22695 msgid ""
22696 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22697 "the NTFS disk is marked as needing a consistency check.  You have to use "
22698 "this option if you want to resize a Windows guest multiple times without "
22699 "booting into Windows between each resize."
22700 msgstr ""
22701
22702 #. type: =item
22703 #: ../resize/virt-resize.pod:401
22704 #, fuzzy
22705 #| msgid "B<--format>"
22706 msgid "B<--output-format> raw"
22707 msgstr "B<--format>"
22708
22709 #. type: textblock
22710 #: ../resize/virt-resize.pod:403
22711 msgid ""
22712 "Specify the format of the output disk image.  If this flag is not given then "
22713 "it is auto-detected from the image itself."
22714 msgstr ""
22715
22716 #. type: textblock
22717 #: ../resize/virt-resize.pod:409
22718 msgid ""
22719 "Note that this option I<does not create> the output format.  This option "
22720 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22721 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22722 "SPARSE RAW FORMATS>."
22723 msgstr ""
22724
22725 #. type: =item
22726 #: ../resize/virt-resize.pod:414
22727 msgid "B<-q>"
22728 msgstr ""
22729
22730 #. type: =item
22731 #: ../resize/virt-resize.pod:416
22732 #, fuzzy
22733 #| msgid "B<--live>"
22734 msgid "B<--quiet>"
22735 msgstr "B<--live>"
22736
22737 #. type: textblock
22738 #: ../resize/virt-resize.pod:418
22739 msgid "Don't print the summary."
22740 msgstr ""
22741
22742 #. type: =item
22743 #: ../resize/virt-resize.pod:420
22744 #, fuzzy
22745 #| msgid "B<part_size>"
22746 msgid "B<--resize part=size>"
22747 msgstr "B<part_size>"
22748
22749 #. type: textblock
22750 #: ../resize/virt-resize.pod:422
22751 msgid ""
22752 "Resize the named partition (expanding or shrinking it) so that it has the "
22753 "given size."
22754 msgstr ""
22755
22756 #. type: textblock
22757 #: ../resize/virt-resize.pod:425
22758 msgid ""
22759 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22760 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22761 "size; or as a relative number or percentage.  For example:"
22762 msgstr ""
22763
22764 #. type: verbatim
22765 #: ../resize/virt-resize.pod:431
22766 #, fuzzy, no-wrap
22767 #| msgid ""
22768 #| " hexedit /dev/sda 1M\n"
22769 #| "\n"
22770 msgid ""
22771 " --resize /dev/sda2=10G\n"
22772 "\n"
22773 msgstr ""
22774 " hexedit /dev/sda 1M\n"
22775 "\n"
22776
22777 #. type: verbatim
22778 #: ../resize/virt-resize.pod:433
22779 #, fuzzy, no-wrap
22780 #| msgid ""
22781 #| " pvresize device\n"
22782 #| "\n"
22783 msgid ""
22784 " --resize /dev/sda4=90%\n"
22785 "\n"
22786 msgstr ""
22787 " pvresize пристрій\n"
22788 "\n"
22789
22790 #. type: verbatim
22791 #: ../resize/virt-resize.pod:435
22792 #, fuzzy, no-wrap
22793 #| msgid ""
22794 #| " hexedit /dev/sda 1M\n"
22795 #| "\n"
22796 msgid ""
22797 " --resize /dev/sda2=+1G\n"
22798 "\n"
22799 msgstr ""
22800 " hexedit /dev/sda 1M\n"
22801 "\n"
22802
22803 #. type: verbatim
22804 #: ../resize/virt-resize.pod:437
22805 #, fuzzy, no-wrap
22806 #| msgid ""
22807 #| " hexedit /dev/sda 1M\n"
22808 #| "\n"
22809 msgid ""
22810 " --resize /dev/sda2=-200M\n"
22811 "\n"
22812 msgstr ""
22813 " hexedit /dev/sda 1M\n"
22814 "\n"
22815
22816 #. type: verbatim
22817 #: ../resize/virt-resize.pod:439
22818 #, fuzzy, no-wrap
22819 #| msgid ""
22820 #| " hexedit /dev/sda 1M\n"
22821 #| "\n"
22822 msgid ""
22823 " --resize /dev/sda1=+128K\n"
22824 "\n"
22825 msgstr ""
22826 " hexedit /dev/sda 1M\n"
22827 "\n"
22828
22829 #. type: verbatim
22830 #: ../resize/virt-resize.pod:441
22831 #, fuzzy, no-wrap
22832 #| msgid ""
22833 #| " hexedit /dev/sda 1M\n"
22834 #| "\n"
22835 msgid ""
22836 " --resize /dev/sda1=+10%\n"
22837 "\n"
22838 msgstr ""
22839 " hexedit /dev/sda 1M\n"
22840 "\n"
22841
22842 #. type: verbatim
22843 #: ../resize/virt-resize.pod:443
22844 #, fuzzy, no-wrap
22845 #| msgid ""
22846 #| " hexedit /dev/sda 1M\n"
22847 #| "\n"
22848 msgid ""
22849 " --resize /dev/sda1=-10%\n"
22850 "\n"
22851 msgstr ""
22852 " hexedit /dev/sda 1M\n"
22853 "\n"
22854
22855 #. type: textblock
22856 #: ../resize/virt-resize.pod:445
22857 msgid ""
22858 "You can increase the size of any partition.  Virt-resize will expand the "
22859 "direct content of the partition if it knows how (see I<--expand> below)."
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../resize/virt-resize.pod:449
22864 msgid ""
22865 "You can only I<decrease> the size of partitions that contain filesystems or "
22866 "PVs which have already been shrunk.  Virt-resize will check this has been "
22867 "done before proceeding, or else will print an error (see also I<--resize-"
22868 "force>)."
22869 msgstr ""
22870
22871 #. type: =item
22872 #: ../resize/virt-resize.pod:456
22873 msgid "B<--resize-force part=size>"
22874 msgstr ""
22875
22876 #. type: textblock
22877 #: ../resize/virt-resize.pod:458
22878 msgid ""
22879 "This is the same as I<--resize> except that it will let you decrease the "
22880 "size of any partition.  Generally this means you will lose any data which "
22881 "was at the end of the partition you shrink, but you may not care about that "
22882 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22883 "as a swap partition)."
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../resize/virt-resize.pod:464
22888 msgid "See also the I<--ignore> option."
22889 msgstr ""
22890
22891 #. type: =item
22892 #: ../resize/virt-resize.pod:466
22893 #, fuzzy
22894 #| msgid "B<--partition>"
22895 msgid "B<--shrink part>"
22896 msgstr "B<--partition>"
22897
22898 #. type: textblock
22899 #: ../resize/virt-resize.pod:468
22900 msgid ""
22901 "Shrink the named partition until the overall disk image fits in the "
22902 "destination.  The named partition B<must> contain a filesystem or PV which "
22903 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22904 "online tools).  Virt-resize will check this and give an error if it has not "
22905 "been done."
22906 msgstr ""
22907
22908 #. type: textblock
22909 #: ../resize/virt-resize.pod:474
22910 msgid ""
22911 "The amount by which the overall disk must be shrunk (after carrying out all "
22912 "other operations requested by the user) is called the \"deficit\".  For "
22913 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22914 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22915 "would give an error unless the user specified a partition to shrink and that "
22916 "partition had more than a gigabyte of free space."
22917 msgstr ""
22918
22919 #. type: =head1
22920 #: ../resize/virt-resize.pod:492
22921 msgid "MACHINE READABLE OUTPUT"
22922 msgstr ""
22923
22924 #. type: textblock
22925 #: ../resize/virt-resize.pod:494
22926 msgid ""
22927 "The I<--machine-readable> option can be used to make the output more machine "
22928 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22929 "etc."
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../resize/virt-resize.pod:498
22934 msgid ""
22935 "Use the option on its own to query the capabilities of the virt-resize "
22936 "binary.  Typical output looks like this:"
22937 msgstr ""
22938
22939 #. type: verbatim
22940 #: ../resize/virt-resize.pod:501
22941 #, no-wrap
22942 msgid ""
22943 " $ virt-resize --machine-readable\n"
22944 " virt-resize\n"
22945 " ntfsresize-force\n"
22946 " 32bitok\n"
22947 " ntfs\n"
22948 " btrfs\n"
22949 "\n"
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../resize/virt-resize.pod:508
22954 msgid ""
22955 "A list of features is printed, one per line, and the program exits with "
22956 "status 0."
22957 msgstr ""
22958
22959 #. type: =head2
22960 #: ../resize/virt-resize.pod:513
22961 msgid "\"Partition 1 does not end on cylinder boundary.\""
22962 msgstr ""
22963
22964 #. type: textblock
22965 #: ../resize/virt-resize.pod:515
22966 msgid ""
22967 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22968 "means the partitions will not be aligned to the ancient CHS geometry.  "
22969 "However CHS geometry is meaningless for disks manufactured since the early "
22970 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22971 "cylinders is not required by any modern operating system."
22972 msgstr ""
22973
22974 #. type: =head2
22975 #: ../resize/virt-resize.pod:522
22976 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../resize/virt-resize.pod:524
22981 msgid ""
22982 "In Windows Vista and later versions, Microsoft switched to using a separate "
22983 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22984 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22985 "the boot partition.  Doing so seems to break the guest completely.  However "
22986 "expanding the second partition (ie. C: drive) should work."
22987 msgstr ""
22988
22989 #. type: textblock
22990 #: ../resize/virt-resize.pod:531
22991 msgid ""
22992 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22993 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22994 "it find errors) is nothing to worry about."
22995 msgstr ""
22996
22997 #. type: =head2
22998 #: ../resize/virt-resize.pod:535
22999 msgid "GUEST BOOT STUCK AT \"GRUB\""
23000 msgstr ""
23001
23002 #. type: textblock
23003 #: ../resize/virt-resize.pod:537
23004 msgid ""
23005 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23006 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23007 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23008 "although we think is to do with partition alignment."
23009 msgstr ""
23010
23011 #. type: verbatim
23012 #: ../resize/virt-resize.pod:542
23013 #, no-wrap
23014 msgid ""
23015 " guestfish -i -a newdisk\n"
23016 " ><fs> cat /boot/grub/device.map\n"
23017 " # check the contents of this file are sensible or\n"
23018 " # edit the file if necessary\n"
23019 " ><fs> grub-install / /dev/vda\n"
23020 " ><fs> exit\n"
23021 "\n"
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../resize/virt-resize.pod:549
23026 msgid ""
23027 "For more flexible guest reconfiguration, including if you need to specify "
23028 "other parameters to grub-install, use L<virt-rescue(1)>."
23029 msgstr ""
23030
23031 #. type: =head1
23032 #: ../resize/virt-resize.pod:552
23033 msgid "ALTERNATIVE TOOLS"
23034 msgstr ""
23035
23036 #. type: textblock
23037 #: ../resize/virt-resize.pod:554
23038 msgid ""
23039 "There are several proprietary tools for resizing partitions.  We won't "
23040 "mention any here."
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../resize/virt-resize.pod:557
23045 msgid ""
23046 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23047 "operations on disk images.  They can resize and move partitions, but I don't "
23048 "think they can do anything with the contents, and they certainly don't "
23049 "understand LVM."
23050 msgstr ""
23051
23052 #. type: textblock
23053 #: ../resize/virt-resize.pod:562
23054 msgid ""
23055 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23056 "but at a much lower level.  You will probably end up hand-calculating sector "
23057 "offsets, which is something that virt-resize was designed to avoid.  If you "
23058 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23059 "I<--debug> flag."
23060 msgstr ""
23061
23062 #. type: textblock
23063 #: ../resize/virt-resize.pod:582
23064 msgid ""
23065 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23066 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23067 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23068 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../ruby/examples/guestfs-ruby.pod:5
23073 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23074 msgstr ""
23075
23076 #. type: verbatim
23077 #: ../ruby/examples/guestfs-ruby.pod:9
23078 #, no-wrap
23079 msgid ""
23080 " require 'guestfs'\n"
23081 " g = Guestfs::Guestfs.new()\n"
23082 " g.add_drive_opts(\"disk.img\",\n"
23083 "                  :readonly => 1, :format => \"raw\")\n"
23084 " g.launch()\n"
23085 "\n"
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../ruby/examples/guestfs-ruby.pod:17
23090 msgid ""
23091 "This manual page documents how to call libguestfs from the Ruby programming "
23092 "language.  This page just documents the differences from the C API and gives "
23093 "some examples.  If you are not familiar with using libguestfs, you also need "
23094 "to read L<guestfs(3)>."
23095 msgstr ""
23096
23097 #. type: textblock
23098 #: ../ruby/examples/guestfs-ruby.pod:24
23099 msgid ""
23100 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23101 "This has a single parameter which is the error message (a string)."
23102 msgstr ""
23103
23104 #. type: textblock
23105 #: ../ruby/examples/guestfs-ruby.pod:38
23106 #, fuzzy
23107 #| msgid ""
23108 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23109 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23110 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23111 msgid ""
23112 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23113 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23114 "libguestfs.org/>."
23115 msgstr ""
23116 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23117 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23118 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23119
23120 #. type: =head2
23121 #: ../src/guestfs-actions.pod:1
23122 msgid "guestfs_add_cdrom"
23123 msgstr ""
23124
23125 #. type: verbatim
23126 #: ../src/guestfs-actions.pod:3
23127 #, no-wrap
23128 msgid ""
23129 " int\n"
23130 " guestfs_add_cdrom (guestfs_h *g,\n"
23131 "                    const char *filename);\n"
23132 "\n"
23133 msgstr ""
23134
23135 #. type: textblock
23136 #: ../src/guestfs-actions.pod:17
23137 msgid ""
23138 "This call checks for the existence of C<filename>.  This stops you from "
23139 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23140 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23141 "instead."
23142 msgstr ""
23143
23144 #. type: textblock
23145 #: ../src/guestfs-actions.pod:24
23146 msgid ""
23147 "If you just want to add an ISO file (often you use this as an efficient way "
23148 "to transfer large files into the guest), then you should probably use "
23149 "C<guestfs_add_drive_ro> instead."
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
23154 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23155 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
23156 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23157 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23158 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23159 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23160 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23161 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23162 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23163 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23164 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23165 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23166 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23167 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23168 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23169 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23170 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
23171 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23172 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23173 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
23174 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
23175 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3663
23176 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3877
23177 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3904
23178 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3933
23179 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
23180 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4078
23181 #: ../src/guestfs-actions.pod:4101 ../src/guestfs-actions.pod:4124
23182 #: ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4178
23183 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4232
23184 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4280
23185 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4309
23186 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4341
23187 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4454
23188 #: ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4518
23189 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4554
23190 #: ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:4584
23191 #: ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4615
23192 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4650
23193 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4793
23194 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4843
23195 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4874
23196 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4904
23197 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4934
23198 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5002
23199 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5061
23200 #: ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5092
23201 #: ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5187
23202 #: ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5277
23203 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5329
23204 #: ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5487
23205 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5566
23206 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5616
23207 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5699
23208 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726
23209 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-actions.pod:6034
23210 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6067
23211 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093
23212 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
23213 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6156
23214 #: ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6194
23215 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6242
23216 #: ../src/guestfs-actions.pod:6265 ../src/guestfs-actions.pod:6283
23217 #: ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6323
23218 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359
23219 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6406
23220 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6449
23221 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6492
23222 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526
23223 #: ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6593
23224 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6748
23225 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6881
23226 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
23227 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6942
23228 #: ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6968
23229 #: ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7042
23230 #: ../src/guestfs-actions.pod:7059 ../src/guestfs-actions.pod:7075
23231 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7108
23232 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7141
23233 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7191
23234 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
23235 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7297
23236 #: ../src/guestfs-actions.pod:7333 ../src/guestfs-actions.pod:7449
23237 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7478
23238 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546
23239 #: ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7624
23240 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7707
23241 #: ../src/guestfs-actions.pod:7733 ../src/guestfs-actions.pod:7804
23242 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7856
23243 msgid "This function returns 0 on success or -1 on error."
23244 msgstr ""
23245
23246 #. type: textblock
23247 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
23248 #: ../src/guestfs-actions.pod:275
23249 msgid ""
23250 "This function is deprecated.  In new code, use the L</"
23251 "guestfs_add_drive_opts> call instead."
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23256 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23257 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23258 #: ../src/guestfs-actions.pod:3650 ../src/guestfs-actions.pod:3670
23259 #: ../src/guestfs-actions.pod:4978 ../src/guestfs-actions.pod:6244
23260 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6494
23261 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7110
23262 #: ../src/guestfs-actions.pod:7633
23263 msgid "(Added in 0.3)"
23264 msgstr ""
23265
23266 #. type: =head2
23267 #: ../src/guestfs-actions.pod:41
23268 msgid "guestfs_add_domain"
23269 msgstr ""
23270
23271 #. type: verbatim
23272 #: ../src/guestfs-actions.pod:43
23273 #, no-wrap
23274 msgid ""
23275 " int\n"
23276 " guestfs_add_domain (guestfs_h *g,\n"
23277 "                     const char *dom,\n"
23278 "                     ...);\n"
23279 "\n"
23280 msgstr ""
23281
23282 #. type: textblock
23283 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23284 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2853
23285 #: ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4988
23286 #: ../src/guestfs-actions.pod:5205
23287 msgid ""
23288 "You may supply a list of optional arguments to this call.  Use zero or more "
23289 "of the following pairs of parameters, and terminate the list with C<-1> on "
23290 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../src/guestfs-actions.pod:53
23295 #, no-wrap
23296 msgid ""
23297 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23298 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23299 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23300 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23301 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23302 "\n"
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../src/guestfs-actions.pod:59
23307 msgid ""
23308 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23309 "It works by connecting to libvirt, requesting the domain and domain XML from "
23310 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23311 "one."
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../src/guestfs-actions.pod:94
23316 msgid ""
23317 "The other optional parameters are passed directly through to "
23318 "C<guestfs_add_drive_opts>."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23323 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23324 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23325 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23326 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23327 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23328 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23329 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2971
23330 #: ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:5164
23331 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5796
23332 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:7218
23333 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7657
23334 #: ../src/guestfs-actions.pod:7670
23335 msgid "On error this function returns -1."
23336 msgstr ""
23337
23338 #. type: textblock
23339 #: ../src/guestfs-actions.pod:99
23340 msgid "(Added in 1.7.4)"
23341 msgstr ""
23342
23343 #. type: =head2
23344 #: ../src/guestfs-actions.pod:101
23345 msgid "guestfs_add_domain_va"
23346 msgstr ""
23347
23348 #. type: verbatim
23349 #: ../src/guestfs-actions.pod:103
23350 #, no-wrap
23351 msgid ""
23352 " int\n"
23353 " guestfs_add_domain_va (guestfs_h *g,\n"
23354 "                        const char *dom,\n"
23355 "                        va_list args);\n"
23356 "\n"
23357 msgstr ""
23358
23359 #. type: textblock
23360 #: ../src/guestfs-actions.pod:108
23361 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23366 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23367 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23368 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2949
23369 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4746
23370 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5028
23371 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5265
23372 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23373 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23374
23375 #. type: =head2
23376 #: ../src/guestfs-actions.pod:112
23377 msgid "guestfs_add_domain_argv"
23378 msgstr "guestfs_add_domain_argv"
23379
23380 #. type: verbatim
23381 #: ../src/guestfs-actions.pod:114
23382 #, no-wrap
23383 msgid ""
23384 " int\n"
23385 " guestfs_add_domain_argv (guestfs_h *g,\n"
23386 "                          const char *dom,\n"
23387 "                          const struct guestfs_add_domain_argv *optargs);\n"
23388 "\n"
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../src/guestfs-actions.pod:119
23393 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23394 msgstr ""
23395
23396 #. type: =head2
23397 #: ../src/guestfs-actions.pod:123
23398 msgid "guestfs_add_drive"
23399 msgstr ""
23400
23401 #. type: verbatim
23402 #: ../src/guestfs-actions.pod:125
23403 #, no-wrap
23404 msgid ""
23405 " int\n"
23406 " guestfs_add_drive (guestfs_h *g,\n"
23407 "                    const char *filename);\n"
23408 "\n"
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../src/guestfs-actions.pod:129
23413 msgid ""
23414 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23415 "optional parameters, so the disk is added writable, with the format being "
23416 "detected automatically."
23417 msgstr ""
23418
23419 #. type: textblock
23420 #: ../src/guestfs-actions.pod:133
23421 msgid ""
23422 "Automatic detection of the format opens you up to a potential security hole "
23423 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23424 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23425 "you should think about replacing calls to this function with calls to "
23426 "C<guestfs_add_drive_opts>, and specifying the format."
23427 msgstr ""
23428
23429 #. type: =head2
23430 #: ../src/guestfs-actions.pod:144
23431 msgid "guestfs_add_drive_opts"
23432 msgstr ""
23433
23434 #. type: verbatim
23435 #: ../src/guestfs-actions.pod:146
23436 #, no-wrap
23437 msgid ""
23438 " int\n"
23439 " guestfs_add_drive_opts (guestfs_h *g,\n"
23440 "                         const char *filename,\n"
23441 "                         ...);\n"
23442 "\n"
23443 msgstr ""
23444
23445 #. type: verbatim
23446 #: ../src/guestfs-actions.pod:156
23447 #, no-wrap
23448 msgid ""
23449 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23450 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23451 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23452 "\n"
23453 msgstr ""
23454
23455 #. type: textblock
23456 #: ../src/guestfs-actions.pod:185
23457 msgid ""
23458 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23459 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23460 "Possible formats include C<raw> and C<qcow2>."
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../src/guestfs-actions.pod:196
23465 msgid ""
23466 "This rarely-used option lets you emulate the behaviour of the deprecated "
23467 "C<guestfs_add_drive_with_if> call (q.v.)"
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../src/guestfs-actions.pod:203
23472 msgid "(Added in 1.5.23)"
23473 msgstr ""
23474
23475 #. type: =head2
23476 #: ../src/guestfs-actions.pod:205
23477 msgid "guestfs_add_drive_opts_va"
23478 msgstr ""
23479
23480 #. type: verbatim
23481 #: ../src/guestfs-actions.pod:207
23482 #, no-wrap
23483 msgid ""
23484 " int\n"
23485 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23486 "                            const char *filename,\n"
23487 "                            va_list args);\n"
23488 "\n"
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../src/guestfs-actions.pod:212
23493 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23494 msgstr ""
23495
23496 #. type: =head2
23497 #: ../src/guestfs-actions.pod:216
23498 msgid "guestfs_add_drive_opts_argv"
23499 msgstr ""
23500
23501 #. type: verbatim
23502 #: ../src/guestfs-actions.pod:218
23503 #, no-wrap
23504 msgid ""
23505 " int\n"
23506 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23507 "                              const char *filename,\n"
23508 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23509 "\n"
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../src/guestfs-actions.pod:223
23514 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23515 msgstr ""
23516
23517 #. type: =head2
23518 #: ../src/guestfs-actions.pod:227
23519 msgid "guestfs_add_drive_ro"
23520 msgstr ""
23521
23522 #. type: verbatim
23523 #: ../src/guestfs-actions.pod:229
23524 #, no-wrap
23525 msgid ""
23526 " int\n"
23527 " guestfs_add_drive_ro (guestfs_h *g,\n"
23528 "                       const char *filename);\n"
23529 "\n"
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../src/guestfs-actions.pod:233
23534 msgid ""
23535 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23536 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23537 "disk is added read-only, with the format being detected automatically."
23538 msgstr ""
23539
23540 #. type: textblock
23541 #: ../src/guestfs-actions.pod:240
23542 msgid "(Added in 1.0.38)"
23543 msgstr ""
23544
23545 #. type: =head2
23546 #: ../src/guestfs-actions.pod:242
23547 msgid "guestfs_add_drive_ro_with_if"
23548 msgstr ""
23549
23550 #. type: verbatim
23551 #: ../src/guestfs-actions.pod:244
23552 #, no-wrap
23553 msgid ""
23554 " int\n"
23555 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23556 "                               const char *filename,\n"
23557 "                               const char *iface);\n"
23558 "\n"
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../src/guestfs-actions.pod:249
23563 msgid ""
23564 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23565 "QEMU interface emulation to use at run time."
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23570 #: ../src/guestfs-actions.pod:2458
23571 msgid "(Added in 1.0.84)"
23572 msgstr ""
23573
23574 #. type: =head2
23575 #: ../src/guestfs-actions.pod:263
23576 msgid "guestfs_add_drive_with_if"
23577 msgstr ""
23578
23579 #. type: verbatim
23580 #: ../src/guestfs-actions.pod:265
23581 #, no-wrap
23582 msgid ""
23583 " int\n"
23584 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23585 "                            const char *filename,\n"
23586 "                            const char *iface);\n"
23587 "\n"
23588 msgstr ""
23589
23590 #. type: textblock
23591 #: ../src/guestfs-actions.pod:270
23592 msgid ""
23593 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23594 "QEMU interface emulation to use at run time."
23595 msgstr ""
23596
23597 #. type: =head2
23598 #: ../src/guestfs-actions.pod:284
23599 msgid "guestfs_aug_clear"
23600 msgstr ""
23601
23602 #. type: verbatim
23603 #: ../src/guestfs-actions.pod:286
23604 #, no-wrap
23605 msgid ""
23606 " int\n"
23607 " guestfs_aug_clear (guestfs_h *g,\n"
23608 "                    const char *augpath);\n"
23609 "\n"
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23614 msgid "(Added in 1.3.4)"
23615 msgstr ""
23616
23617 #. type: =head2
23618 #: ../src/guestfs-actions.pod:297
23619 msgid "guestfs_aug_close"
23620 msgstr ""
23621
23622 #. type: verbatim
23623 #: ../src/guestfs-actions.pod:299
23624 #, no-wrap
23625 msgid ""
23626 " int\n"
23627 " guestfs_aug_close (guestfs_h *g);\n"
23628 "\n"
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../src/guestfs-actions.pod:302
23633 msgid ""
23634 "Close the current Augeas handle and free up any resources used by it.  After "
23635 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23636 "any other Augeas functions."
23637 msgstr ""
23638
23639 #. type: textblock
23640 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23641 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23642 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23643 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23644 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23645 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23646 #: ../src/guestfs-actions.pod:5873
23647 msgid "(Added in 0.7)"
23648 msgstr ""
23649
23650 #. type: =head2
23651 #: ../src/guestfs-actions.pod:311
23652 msgid "guestfs_aug_defnode"
23653 msgstr ""
23654
23655 #. type: verbatim
23656 #: ../src/guestfs-actions.pod:313
23657 #, no-wrap
23658 msgid ""
23659 " struct guestfs_int_bool *\n"
23660 " guestfs_aug_defnode (guestfs_h *g,\n"
23661 "                      const char *name,\n"
23662 "                      const char *expr,\n"
23663 "                      const char *val);\n"
23664 "\n"
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../src/guestfs-actions.pod:322
23669 msgid ""
23670 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23671 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23672 "containing that single node."
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../src/guestfs-actions.pod:330
23677 msgid ""
23678 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23679 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23680 msgstr ""
23681
23682 #. type: =head2
23683 #: ../src/guestfs-actions.pod:336
23684 msgid "guestfs_aug_defvar"
23685 msgstr ""
23686
23687 #. type: verbatim
23688 #: ../src/guestfs-actions.pod:338
23689 #, no-wrap
23690 msgid ""
23691 " int\n"
23692 " guestfs_aug_defvar (guestfs_h *g,\n"
23693 "                     const char *name,\n"
23694 "                     const char *expr);\n"
23695 "\n"
23696 msgstr ""
23697
23698 #. type: =head2
23699 #: ../src/guestfs-actions.pod:354
23700 msgid "guestfs_aug_get"
23701 msgstr ""
23702
23703 #. type: verbatim
23704 #: ../src/guestfs-actions.pod:356
23705 #, no-wrap
23706 msgid ""
23707 " char *\n"
23708 " guestfs_aug_get (guestfs_h *g,\n"
23709 "                  const char *augpath);\n"
23710 "\n"
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23715 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23716 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23717 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23718 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23719 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23720 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23721 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
23722 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
23723 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
23724 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2821
23725 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3054
23726 #: ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3103
23727 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3196
23728 #: ../src/guestfs-actions.pod:3216 ../src/guestfs-actions.pod:3236
23729 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4216
23730 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4496
23731 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5601
23732 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5949
23733 #: ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6654
23734 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6687
23735 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:7392
23736 #: ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7429
23737 #: ../src/guestfs-actions.pod:7603 ../src/guestfs-actions.pod:7913
23738 msgid ""
23739 "This function returns a string, or NULL on error.  I<The caller must free "
23740 "the returned string after use>."
23741 msgstr ""
23742
23743 #. type: =head2
23744 #: ../src/guestfs-actions.pod:368
23745 msgid "guestfs_aug_init"
23746 msgstr ""
23747
23748 #. type: verbatim
23749 #: ../src/guestfs-actions.pod:370
23750 #, no-wrap
23751 msgid ""
23752 " int\n"
23753 " guestfs_aug_init (guestfs_h *g,\n"
23754 "                   const char *root,\n"
23755 "                   int flags);\n"
23756 "\n"
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../src/guestfs-actions.pod:379
23761 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23762 msgstr ""
23763
23764 #. type: textblock
23765 #: ../src/guestfs-actions.pod:404
23766 msgid ""
23767 "This option is only useful when debugging Augeas lenses.  Use of this option "
23768 "may require additional memory for the libguestfs appliance.  You may need to "
23769 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23770 "C<guestfs_set_memsize>."
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../src/guestfs-actions.pod:419
23775 msgid "Do not load the tree in C<guestfs_aug_init>."
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../src/guestfs-actions.pod:423
23780 msgid "To close the handle, you can call C<guestfs_aug_close>."
23781 msgstr ""
23782
23783 #. type: =head2
23784 #: ../src/guestfs-actions.pod:431
23785 msgid "guestfs_aug_insert"
23786 msgstr ""
23787
23788 #. type: verbatim
23789 #: ../src/guestfs-actions.pod:433
23790 #, no-wrap
23791 msgid ""
23792 " int\n"
23793 " guestfs_aug_insert (guestfs_h *g,\n"
23794 "                     const char *augpath,\n"
23795 "                     const char *label,\n"
23796 "                     int before);\n"
23797 "\n"
23798 msgstr ""
23799
23800 #. type: =head2
23801 #: ../src/guestfs-actions.pod:451
23802 msgid "guestfs_aug_load"
23803 msgstr ""
23804
23805 #. type: verbatim
23806 #: ../src/guestfs-actions.pod:453
23807 #, no-wrap
23808 msgid ""
23809 " int\n"
23810 " guestfs_aug_load (guestfs_h *g);\n"
23811 "\n"
23812 msgstr ""
23813
23814 #. type: =head2
23815 #: ../src/guestfs-actions.pod:465
23816 msgid "guestfs_aug_ls"
23817 msgstr ""
23818
23819 #. type: verbatim
23820 #: ../src/guestfs-actions.pod:467
23821 #, no-wrap
23822 msgid ""
23823 " char **\n"
23824 " guestfs_aug_ls (guestfs_h *g,\n"
23825 "                 const char *augpath);\n"
23826 "\n"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../src/guestfs-actions.pod:471
23831 msgid ""
23832 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23833 "sorting the resulting nodes into alphabetical order."
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23838 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23839 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23840 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23841 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23842 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23843 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
23844 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
23845 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:3156
23846 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3746
23847 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783
23848 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3950
23849 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:5125
23850 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5869
23851 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6734
23852 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6850
23853 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7020
23854 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7516
23855 #: ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7757
23856 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7870
23857 #: ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7935
23858 #: ../src/guestfs-actions.pod:7954
23859 msgid ""
23860 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23861 ">), or NULL if there was an error.  I<The caller must free the strings and "
23862 "the array after use>."
23863 msgstr ""
23864
23865 #. type: textblock
23866 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23867 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23868 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3541
23869 #: ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4249
23870 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4469
23871 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:5129
23872 #: ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6081
23873 #: ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6107
23874 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7234
23875 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7480
23876 #: ../src/guestfs-actions.pod:7745
23877 msgid "(Added in 0.8)"
23878 msgstr ""
23879
23880 #. type: =head2
23881 #: ../src/guestfs-actions.pod:480
23882 msgid "guestfs_aug_match"
23883 msgstr ""
23884
23885 #. type: verbatim
23886 #: ../src/guestfs-actions.pod:482
23887 #, no-wrap
23888 msgid ""
23889 " char **\n"
23890 " guestfs_aug_match (guestfs_h *g,\n"
23891 "                    const char *augpath);\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: =head2
23896 #: ../src/guestfs-actions.pod:496
23897 msgid "guestfs_aug_mv"
23898 msgstr ""
23899
23900 #. type: verbatim
23901 #: ../src/guestfs-actions.pod:498
23902 #, no-wrap
23903 msgid ""
23904 " int\n"
23905 " guestfs_aug_mv (guestfs_h *g,\n"
23906 "                 const char *src,\n"
23907 "                 const char *dest);\n"
23908 "\n"
23909 msgstr ""
23910
23911 #. type: =head2
23912 #: ../src/guestfs-actions.pod:510
23913 msgid "guestfs_aug_rm"
23914 msgstr ""
23915
23916 #. type: verbatim
23917 #: ../src/guestfs-actions.pod:512
23918 #, no-wrap
23919 msgid ""
23920 " int\n"
23921 " guestfs_aug_rm (guestfs_h *g,\n"
23922 "                 const char *augpath);\n"
23923 "\n"
23924 msgstr ""
23925
23926 #. type: =head2
23927 #: ../src/guestfs-actions.pod:524
23928 msgid "guestfs_aug_save"
23929 msgstr ""
23930
23931 #. type: verbatim
23932 #: ../src/guestfs-actions.pod:526
23933 #, no-wrap
23934 msgid ""
23935 " int\n"
23936 " guestfs_aug_save (guestfs_h *g);\n"
23937 "\n"
23938 msgstr ""
23939
23940 #. type: textblock
23941 #: ../src/guestfs-actions.pod:531
23942 msgid ""
23943 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23944 "are saved."
23945 msgstr ""
23946
23947 #. type: =head2
23948 #: ../src/guestfs-actions.pod:538
23949 msgid "guestfs_aug_set"
23950 msgstr ""
23951
23952 #. type: verbatim
23953 #: ../src/guestfs-actions.pod:540
23954 #, no-wrap
23955 msgid ""
23956 " int\n"
23957 " guestfs_aug_set (guestfs_h *g,\n"
23958 "                  const char *augpath,\n"
23959 "                  const char *val);\n"
23960 "\n"
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../src/guestfs-actions.pod:547
23965 msgid ""
23966 "In the Augeas API, it is possible to clear a node by setting the value to "
23967 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23968 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23969 msgstr ""
23970
23971 #. type: =head2
23972 #: ../src/guestfs-actions.pod:556
23973 msgid "guestfs_available"
23974 msgstr ""
23975
23976 #. type: verbatim
23977 #: ../src/guestfs-actions.pod:558
23978 #, no-wrap
23979 msgid ""
23980 " int\n"
23981 " guestfs_available (guestfs_h *g,\n"
23982 "                    char *const *groups);\n"
23983 "\n"
23984 msgstr ""
23985
23986 #. type: textblock
23987 #: ../src/guestfs-actions.pod:566
23988 msgid ""
23989 "The libguestfs groups, and the functions that those groups correspond to, "
23990 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23991 "runtime by calling C<guestfs_available_all_groups>."
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../src/guestfs-actions.pod:590
23996 msgid "You must call C<guestfs_launch> before calling this function."
23997 msgstr ""
23998
23999 #. type: textblock
24000 #: ../src/guestfs-actions.pod:612
24001 msgid ""
24002 "This call was added in version C<1.0.80>.  In previous versions of "
24003 "libguestfs all you could do would be to speculatively execute a command to "
24004 "find out if the daemon implemented it.  See also C<guestfs_version>."
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
24009 msgid "(Added in 1.0.80)"
24010 msgstr ""
24011
24012 #. type: =head2
24013 #: ../src/guestfs-actions.pod:623
24014 msgid "guestfs_available_all_groups"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../src/guestfs-actions.pod:625
24019 #, no-wrap
24020 msgid ""
24021 " char **\n"
24022 " guestfs_available_all_groups (guestfs_h *g);\n"
24023 "\n"
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../src/guestfs-actions.pod:628
24028 msgid ""
24029 "This command returns a list of all optional groups that this daemon knows "
24030 "about.  Note this returns both supported and unsupported groups.  To find "
24031 "out which ones the daemon can actually support you have to call "
24032 "C<guestfs_available> on each member of the returned list."
24033 msgstr ""
24034
24035 #. type: textblock
24036 #: ../src/guestfs-actions.pod:634
24037 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../src/guestfs-actions.pod:640
24042 msgid "(Added in 1.3.15)"
24043 msgstr ""
24044
24045 #. type: =head2
24046 #: ../src/guestfs-actions.pod:642
24047 msgid "guestfs_base64_in"
24048 msgstr ""
24049
24050 #. type: verbatim
24051 #: ../src/guestfs-actions.pod:644
24052 #, no-wrap
24053 msgid ""
24054 " int\n"
24055 " guestfs_base64_in (guestfs_h *g,\n"
24056 "                    const char *base64file,\n"
24057 "                    const char *filename);\n"
24058 "\n"
24059 msgstr ""
24060
24061 #. type: textblock
24062 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24063 msgid "(Added in 1.3.5)"
24064 msgstr ""
24065
24066 #. type: =head2
24067 #: ../src/guestfs-actions.pod:656
24068 msgid "guestfs_base64_out"
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../src/guestfs-actions.pod:658
24073 #, no-wrap
24074 msgid ""
24075 " int\n"
24076 " guestfs_base64_out (guestfs_h *g,\n"
24077 "                     const char *filename,\n"
24078 "                     const char *base64file);\n"
24079 "\n"
24080 msgstr ""
24081
24082 #. type: =head2
24083 #: ../src/guestfs-actions.pod:670
24084 msgid "guestfs_blockdev_flushbufs"
24085 msgstr ""
24086
24087 #. type: verbatim
24088 #: ../src/guestfs-actions.pod:672
24089 #, no-wrap
24090 msgid ""
24091 " int\n"
24092 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24093 "                             const char *device);\n"
24094 "\n"
24095 msgstr ""
24096
24097 #. type: textblock
24098 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24099 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24100 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24101 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24102 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24103 msgid "(Added in 0.9.3)"
24104 msgstr ""
24105
24106 #. type: =head2
24107 #: ../src/guestfs-actions.pod:685
24108 msgid "guestfs_blockdev_getbsz"
24109 msgstr ""
24110
24111 #. type: verbatim
24112 #: ../src/guestfs-actions.pod:687
24113 #, no-wrap
24114 msgid ""
24115 " int\n"
24116 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24117 "                          const char *device);\n"
24118 "\n"
24119 msgstr ""
24120
24121 #. type: =head2
24122 #: ../src/guestfs-actions.pod:702
24123 msgid "guestfs_blockdev_getro"
24124 msgstr ""
24125
24126 #. type: verbatim
24127 #: ../src/guestfs-actions.pod:704
24128 #, no-wrap
24129 msgid ""
24130 " int\n"
24131 " guestfs_blockdev_getro (guestfs_h *g,\n"
24132 "                         const char *device);\n"
24133 "\n"
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24138 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24139 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24140 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24141 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24142 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3253
24143 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3287
24144 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
24145 #: ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3492
24146 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3523
24147 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
24148 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3580
24149 #: ../src/guestfs-actions.pod:3595 ../src/guestfs-actions.pod:3610
24150 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
24151 #: ../src/guestfs-actions.pod:5366
24152 msgid "This function returns a C truth value on success or -1 on error."
24153 msgstr ""
24154
24155 #. type: =head2
24156 #: ../src/guestfs-actions.pod:717
24157 msgid "guestfs_blockdev_getsize64"
24158 msgstr ""
24159
24160 #. type: verbatim
24161 #: ../src/guestfs-actions.pod:719
24162 #, no-wrap
24163 msgid ""
24164 " int64_t\n"
24165 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24166 "                             const char *device);\n"
24167 "\n"
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../src/guestfs-actions.pod:725
24172 msgid "See also C<guestfs_blockdev_getsz>."
24173 msgstr ""
24174
24175 #. type: =head2
24176 #: ../src/guestfs-actions.pod:733
24177 msgid "guestfs_blockdev_getss"
24178 msgstr ""
24179
24180 #. type: verbatim
24181 #: ../src/guestfs-actions.pod:735
24182 #, no-wrap
24183 msgid ""
24184 " int\n"
24185 " guestfs_blockdev_getss (guestfs_h *g,\n"
24186 "                         const char *device);\n"
24187 "\n"
24188 msgstr ""
24189
24190 #. type: textblock
24191 #: ../src/guestfs-actions.pod:742
24192 msgid ""
24193 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24194 "that)."
24195 msgstr ""
24196
24197 #. type: =head2
24198 #: ../src/guestfs-actions.pod:751
24199 msgid "guestfs_blockdev_getsz"
24200 msgstr ""
24201
24202 #. type: verbatim
24203 #: ../src/guestfs-actions.pod:753
24204 #, no-wrap
24205 msgid ""
24206 " int64_t\n"
24207 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24208 "                         const char *device);\n"
24209 "\n"
24210 msgstr ""
24211
24212 #. type: textblock
24213 #: ../src/guestfs-actions.pod:760
24214 msgid ""
24215 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24216 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24217 msgstr ""
24218
24219 #. type: =head2
24220 #: ../src/guestfs-actions.pod:770
24221 msgid "guestfs_blockdev_rereadpt"
24222 msgstr ""
24223
24224 #. type: verbatim
24225 #: ../src/guestfs-actions.pod:772
24226 #, no-wrap
24227 msgid ""
24228 " int\n"
24229 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24230 "                            const char *device);\n"
24231 "\n"
24232 msgstr ""
24233
24234 #. type: =head2
24235 #: ../src/guestfs-actions.pod:784
24236 msgid "guestfs_blockdev_setbsz"
24237 msgstr ""
24238
24239 #. type: verbatim
24240 #: ../src/guestfs-actions.pod:786
24241 #, no-wrap
24242 msgid ""
24243 " int\n"
24244 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24245 "                          const char *device,\n"
24246 "                          int blocksize);\n"
24247 "\n"
24248 msgstr ""
24249
24250 #. type: =head2
24251 #: ../src/guestfs-actions.pod:802
24252 msgid "guestfs_blockdev_setro"
24253 msgstr ""
24254
24255 #. type: verbatim
24256 #: ../src/guestfs-actions.pod:804
24257 #, no-wrap
24258 msgid ""
24259 " int\n"
24260 " guestfs_blockdev_setro (guestfs_h *g,\n"
24261 "                         const char *device);\n"
24262 "\n"
24263 msgstr ""
24264
24265 #. type: =head2
24266 #: ../src/guestfs-actions.pod:816
24267 msgid "guestfs_blockdev_setrw"
24268 msgstr ""
24269
24270 #. type: verbatim
24271 #: ../src/guestfs-actions.pod:818
24272 #, no-wrap
24273 msgid ""
24274 " int\n"
24275 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24276 "                         const char *device);\n"
24277 "\n"
24278 msgstr ""
24279
24280 #. type: =head2
24281 #: ../src/guestfs-actions.pod:830
24282 msgid "guestfs_btrfs_filesystem_resize"
24283 msgstr ""
24284
24285 #. type: verbatim
24286 #: ../src/guestfs-actions.pod:832
24287 #, no-wrap
24288 msgid ""
24289 " int\n"
24290 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24291 "                                  const char *mountpoint,\n"
24292 "                                  ...);\n"
24293 "\n"
24294 msgstr ""
24295
24296 #. type: verbatim
24297 #: ../src/guestfs-actions.pod:842
24298 #, no-wrap
24299 msgid ""
24300 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24301 "\n"
24302 msgstr ""
24303
24304 #. type: textblock
24305 #: ../src/guestfs-actions.pod:865
24306 msgid "(Added in 1.11.17)"
24307 msgstr ""
24308
24309 #. type: =head2
24310 #: ../src/guestfs-actions.pod:867
24311 msgid "guestfs_btrfs_filesystem_resize_va"
24312 msgstr ""
24313
24314 #. type: verbatim
24315 #: ../src/guestfs-actions.pod:869
24316 #, no-wrap
24317 msgid ""
24318 " int\n"
24319 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24320 "                                     const char *mountpoint,\n"
24321 "                                     va_list args);\n"
24322 "\n"
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../src/guestfs-actions.pod:874
24327 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24328 msgstr ""
24329
24330 #. type: =head2
24331 #: ../src/guestfs-actions.pod:878
24332 msgid "guestfs_btrfs_filesystem_resize_argv"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../src/guestfs-actions.pod:880
24337 #, no-wrap
24338 msgid ""
24339 " int\n"
24340 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24341 "                                       const char *mountpoint,\n"
24342 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../src/guestfs-actions.pod:885
24348 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24349 msgstr ""
24350
24351 #. type: =head2
24352 #: ../src/guestfs-actions.pod:889
24353 msgid "guestfs_case_sensitive_path"
24354 msgstr ""
24355
24356 #. type: verbatim
24357 #: ../src/guestfs-actions.pod:891
24358 #, no-wrap
24359 msgid ""
24360 " char *\n"
24361 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24362 "                              const char *path);\n"
24363 "\n"
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../src/guestfs-actions.pod:917
24368 msgid ""
24369 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24370 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24371 "how the directories were originally created under Windows)."
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../src/guestfs-actions.pod:925
24376 msgid "See also C<guestfs_realpath>."
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7414
24381 msgid "(Added in 1.0.75)"
24382 msgstr ""
24383
24384 #. type: =head2
24385 #: ../src/guestfs-actions.pod:932
24386 msgid "guestfs_cat"
24387 msgstr ""
24388
24389 #. type: verbatim
24390 #: ../src/guestfs-actions.pod:934
24391 #, no-wrap
24392 msgid ""
24393 " char *\n"
24394 " guestfs_cat (guestfs_h *g,\n"
24395 "              const char *path);\n"
24396 "\n"
24397 msgstr ""
24398
24399 #. type: textblock
24400 #: ../src/guestfs-actions.pod:940
24401 msgid ""
24402 "Note that this function cannot correctly handle binary files (specifically, "
24403 "files containing C<\\0> character which is treated as end of string).  For "
24404 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24405 "functions which have a more complex interface."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3767
24410 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3866
24411 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362
24412 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:5747
24413 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:7567
24414 #: ../src/guestfs-actions.pod:7581
24415 msgid "(Added in 0.4)"
24416 msgstr ""
24417
24418 #. type: =head2
24419 #: ../src/guestfs-actions.pod:953
24420 msgid "guestfs_checksum"
24421 msgstr ""
24422
24423 #. type: verbatim
24424 #: ../src/guestfs-actions.pod:955
24425 #, no-wrap
24426 msgid ""
24427 " char *\n"
24428 " guestfs_checksum (guestfs_h *g,\n"
24429 "                   const char *csumtype,\n"
24430 "                   const char *path);\n"
24431 "\n"
24432 msgstr ""
24433
24434 #. type: textblock
24435 #: ../src/guestfs-actions.pod:1001
24436 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24437 msgstr ""
24438
24439 #. type: textblock
24440 #: ../src/guestfs-actions.pod:1003
24441 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24442 msgstr ""
24443
24444 #. type: textblock
24445 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24446 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3465
24447 #: ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555
24448 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:7270
24449 msgid "(Added in 1.0.2)"
24450 msgstr ""
24451
24452 #. type: =head2
24453 #: ../src/guestfs-actions.pod:1010
24454 msgid "guestfs_checksum_device"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../src/guestfs-actions.pod:1012
24459 #, no-wrap
24460 msgid ""
24461 " char *\n"
24462 " guestfs_checksum_device (guestfs_h *g,\n"
24463 "                          const char *csumtype,\n"
24464 "                          const char *device);\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../src/guestfs-actions.pod:1017
24470 msgid ""
24471 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24472 "device named C<device>.  For the types of checksums supported see the "
24473 "C<guestfs_checksum> command."
24474 msgstr ""
24475
24476 #. type: textblock
24477 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5196
24478 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5368
24479 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5568
24480 #: ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7193
24481 #: ../src/guestfs-actions.pod:7593
24482 msgid "(Added in 1.3.2)"
24483 msgstr ""
24484
24485 #. type: =head2
24486 #: ../src/guestfs-actions.pod:1026
24487 msgid "guestfs_checksums_out"
24488 msgstr ""
24489
24490 #. type: verbatim
24491 #: ../src/guestfs-actions.pod:1028
24492 #, no-wrap
24493 msgid ""
24494 " int\n"
24495 " guestfs_checksums_out (guestfs_h *g,\n"
24496 "                        const char *csumtype,\n"
24497 "                        const char *directory,\n"
24498 "                        const char *sumsfile);\n"
24499 "\n"
24500 msgstr ""
24501
24502 #. type: textblock
24503 #: ../src/guestfs-actions.pod:1048
24504 msgid "(Added in 1.3.7)"
24505 msgstr ""
24506
24507 #. type: =head2
24508 #: ../src/guestfs-actions.pod:1050
24509 msgid "guestfs_chmod"
24510 msgstr ""
24511
24512 #. type: verbatim
24513 #: ../src/guestfs-actions.pod:1052
24514 #, no-wrap
24515 msgid ""
24516 " int\n"
24517 " guestfs_chmod (guestfs_h *g,\n"
24518 "                int mode,\n"
24519 "                const char *path);\n"
24520 "\n"
24521 msgstr ""
24522
24523 #. type: =head2
24524 #: ../src/guestfs-actions.pod:1070
24525 msgid "guestfs_chown"
24526 msgstr ""
24527
24528 #. type: verbatim
24529 #: ../src/guestfs-actions.pod:1072
24530 #, no-wrap
24531 msgid ""
24532 " int\n"
24533 " guestfs_chown (guestfs_h *g,\n"
24534 "                int owner,\n"
24535 "                int group,\n"
24536 "                const char *path);\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: =head2
24541 #: ../src/guestfs-actions.pod:1088
24542 msgid "guestfs_command"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../src/guestfs-actions.pod:1090
24547 #, no-wrap
24548 msgid ""
24549 " char *\n"
24550 " guestfs_command (guestfs_h *g,\n"
24551 "                  char *const *arguments);\n"
24552 "\n"
24553 msgstr ""
24554
24555 #. type: textblock
24556 #: ../src/guestfs-actions.pod:1099
24557 msgid ""
24558 "The single parameter is an argv-style list of arguments.  The first element "
24559 "is the name of the program to run.  Subsequent elements are parameters.  The "
24560 "list must be non-empty (ie. must contain a program name).  Note that the "
24561 "command runs directly, and is I<not> invoked via the shell (see "
24562 "C<guestfs_sh>)."
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24567 #: ../src/guestfs-actions.pod:1615
24568 msgid "(Added in 0.9.1)"
24569 msgstr ""
24570
24571 #. type: =head2
24572 #: ../src/guestfs-actions.pod:1132
24573 msgid "guestfs_command_lines"
24574 msgstr ""
24575
24576 #. type: verbatim
24577 #: ../src/guestfs-actions.pod:1134
24578 #, no-wrap
24579 msgid ""
24580 " char **\n"
24581 " guestfs_command_lines (guestfs_h *g,\n"
24582 "                        char *const *arguments);\n"
24583 "\n"
24584 msgstr ""
24585
24586 #. type: textblock
24587 #: ../src/guestfs-actions.pod:1138
24588 msgid ""
24589 "This is the same as C<guestfs_command>, but splits the result into a list of "
24590 "lines."
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../src/guestfs-actions.pod:1141
24595 msgid "See also: C<guestfs_sh_lines>"
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:1152
24600 msgid "guestfs_config"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:1154
24605 #, no-wrap
24606 msgid ""
24607 " int\n"
24608 " guestfs_config (guestfs_h *g,\n"
24609 "                 const char *qemuparam,\n"
24610 "                 const char *qemuvalue);\n"
24611 "\n"
24612 msgstr ""
24613
24614 #. type: =head2
24615 #: ../src/guestfs-actions.pod:1172
24616 msgid "guestfs_copy_size"
24617 msgstr ""
24618
24619 #. type: verbatim
24620 #: ../src/guestfs-actions.pod:1174
24621 #, no-wrap
24622 msgid ""
24623 " int\n"
24624 " guestfs_copy_size (guestfs_h *g,\n"
24625 "                    const char *src,\n"
24626 "                    const char *dest,\n"
24627 "                    int64_t size);\n"
24628 "\n"
24629 msgstr ""
24630
24631 #. type: textblock
24632 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24633 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24634 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24635 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:7265
24636 #: ../src/guestfs-actions.pod:7299 ../src/guestfs-actions.pod:7806
24637 #: ../src/guestfs-actions.pod:7829
24638 msgid ""
24639 "This long-running command can generate progress notification messages so "
24640 "that the caller can display a progress bar or indicator.  To receive these "
24641 "messages, the caller must register a progress event callback.  See L<guestfs"
24642 "(3)/GUESTFS_EVENT_PROGRESS>."
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4389
24647 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:7500
24648 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7606
24649 msgid "(Added in 1.0.87)"
24650 msgstr ""
24651
24652 #. type: =head2
24653 #: ../src/guestfs-actions.pod:1195
24654 msgid "guestfs_cp"
24655 msgstr ""
24656
24657 #. type: verbatim
24658 #: ../src/guestfs-actions.pod:1197
24659 #, no-wrap
24660 msgid ""
24661 " int\n"
24662 " guestfs_cp (guestfs_h *g,\n"
24663 "             const char *src,\n"
24664 "             const char *dest);\n"
24665 "\n"
24666 msgstr ""
24667
24668 #. type: textblock
24669 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24670 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24671 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5143
24672 #: ../src/guestfs-actions.pod:5618
24673 msgid "(Added in 1.0.18)"
24674 msgstr ""
24675
24676 #. type: =head2
24677 #: ../src/guestfs-actions.pod:1209
24678 msgid "guestfs_cp_a"
24679 msgstr ""
24680
24681 #. type: verbatim
24682 #: ../src/guestfs-actions.pod:1211
24683 #, no-wrap
24684 msgid ""
24685 " int\n"
24686 " guestfs_cp_a (guestfs_h *g,\n"
24687 "               const char *src,\n"
24688 "               const char *dest);\n"
24689 "\n"
24690 msgstr ""
24691
24692 #. type: =head2
24693 #: ../src/guestfs-actions.pod:1223
24694 msgid "guestfs_dd"
24695 msgstr ""
24696
24697 #. type: verbatim
24698 #: ../src/guestfs-actions.pod:1225
24699 #, no-wrap
24700 msgid ""
24701 " int\n"
24702 " guestfs_dd (guestfs_h *g,\n"
24703 "             const char *src,\n"
24704 "             const char *dest);\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:1235
24710 msgid ""
24711 "If the destination is a device, it must be as large or larger than the "
24712 "source file or device, otherwise the copy will fail.  This command cannot do "
24713 "partial copies (see C<guestfs_copy_size>)."
24714 msgstr ""
24715
24716 #. type: =head2
24717 #: ../src/guestfs-actions.pod:1243
24718 msgid "guestfs_df"
24719 msgstr ""
24720
24721 #. type: verbatim
24722 #: ../src/guestfs-actions.pod:1245
24723 #, no-wrap
24724 msgid ""
24725 " char *\n"
24726 " guestfs_df (guestfs_h *g);\n"
24727 "\n"
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24732 msgid ""
24733 "This command is mostly useful for interactive sessions.  It is I<not> "
24734 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24735 "from programs."
24736 msgstr ""
24737
24738 #. type: textblock
24739 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24740 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
24741 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
24742 #: ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:5043
24743 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7027
24744 #: ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7659
24745 #: ../src/guestfs-actions.pod:7672
24746 msgid "(Added in 1.0.54)"
24747 msgstr ""
24748
24749 #. type: =head2
24750 #: ../src/guestfs-actions.pod:1259
24751 msgid "guestfs_df_h"
24752 msgstr ""
24753
24754 #. type: verbatim
24755 #: ../src/guestfs-actions.pod:1261
24756 #, no-wrap
24757 msgid ""
24758 " char *\n"
24759 " guestfs_df_h (guestfs_h *g);\n"
24760 "\n"
24761 msgstr ""
24762
24763 #. type: =head2
24764 #: ../src/guestfs-actions.pod:1276
24765 msgid "guestfs_dmesg"
24766 msgstr ""
24767
24768 #. type: verbatim
24769 #: ../src/guestfs-actions.pod:1278
24770 #, no-wrap
24771 msgid ""
24772 " char *\n"
24773 " guestfs_dmesg (guestfs_h *g);\n"
24774 "\n"
24775 msgstr ""
24776
24777 #. type: textblock
24778 #: ../src/guestfs-actions.pod:1285
24779 msgid ""
24780 "Another way to get the same information is to enable verbose messages with "
24781 "C<guestfs_set_verbose> or by setting the environment variable "
24782 "C<LIBGUESTFS_DEBUG=1> before running the program."
24783 msgstr ""
24784
24785 #. type: =head2
24786 #: ../src/guestfs-actions.pod:1295
24787 msgid "guestfs_download"
24788 msgstr ""
24789
24790 #. type: verbatim
24791 #: ../src/guestfs-actions.pod:1297
24792 #, no-wrap
24793 msgid ""
24794 " int\n"
24795 " guestfs_download (guestfs_h *g,\n"
24796 "                   const char *remotefilename,\n"
24797 "                   const char *filename);\n"
24798 "\n"
24799 msgstr ""
24800
24801 #. type: textblock
24802 #: ../src/guestfs-actions.pod:1307
24803 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24804 msgstr ""
24805
24806 #. type: =head2
24807 #: ../src/guestfs-actions.pod:1318
24808 msgid "guestfs_download_offset"
24809 msgstr ""
24810
24811 #. type: verbatim
24812 #: ../src/guestfs-actions.pod:1320
24813 #, no-wrap
24814 msgid ""
24815 " int\n"
24816 " guestfs_download_offset (guestfs_h *g,\n"
24817 "                          const char *remotefilename,\n"
24818 "                          const char *filename,\n"
24819 "                          int64_t offset,\n"
24820 "                          int64_t size);\n"
24821 "\n"
24822 msgstr ""
24823
24824 #. type: textblock
24825 #: ../src/guestfs-actions.pod:1333
24826 msgid ""
24827 "Note that there is no limit on the amount of data that can be downloaded "
24828 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24829 "full amount unless an error occurs."
24830 msgstr ""
24831
24832 #. type: textblock
24833 #: ../src/guestfs-actions.pod:1338
24834 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24835 msgstr ""
24836
24837 #. type: textblock
24838 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7304
24839 msgid "(Added in 1.5.17)"
24840 msgstr ""
24841
24842 #. type: =head2
24843 #: ../src/guestfs-actions.pod:1349
24844 msgid "guestfs_drop_caches"
24845 msgstr ""
24846
24847 #. type: verbatim
24848 #: ../src/guestfs-actions.pod:1351
24849 #, no-wrap
24850 msgid ""
24851 " int\n"
24852 " guestfs_drop_caches (guestfs_h *g,\n"
24853 "                      int whattodrop);\n"
24854 "\n"
24855 msgstr ""
24856
24857 #. type: =head2
24858 #: ../src/guestfs-actions.pod:1369
24859 msgid "guestfs_du"
24860 msgstr ""
24861
24862 #. type: verbatim
24863 #: ../src/guestfs-actions.pod:1371
24864 #, no-wrap
24865 msgid ""
24866 " int64_t\n"
24867 " guestfs_du (guestfs_h *g,\n"
24868 "             const char *path);\n"
24869 "\n"
24870 msgstr ""
24871
24872 #. type: =head2
24873 #: ../src/guestfs-actions.pod:1394
24874 msgid "guestfs_e2fsck_f"
24875 msgstr ""
24876
24877 #. type: verbatim
24878 #: ../src/guestfs-actions.pod:1396
24879 #, no-wrap
24880 msgid ""
24881 " int\n"
24882 " guestfs_e2fsck_f (guestfs_h *g,\n"
24883 "                   const char *device);\n"
24884 "\n"
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../src/guestfs-actions.pod:1404
24889 msgid ""
24890 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24891 "Normally you should use C<guestfs_fsck>."
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../src/guestfs-actions.pod:1409
24896 msgid "(Added in 1.0.29)"
24897 msgstr ""
24898
24899 #. type: =head2
24900 #: ../src/guestfs-actions.pod:1411
24901 msgid "guestfs_echo_daemon"
24902 msgstr ""
24903
24904 #. type: verbatim
24905 #: ../src/guestfs-actions.pod:1413
24906 #, no-wrap
24907 msgid ""
24908 " char *\n"
24909 " guestfs_echo_daemon (guestfs_h *g,\n"
24910 "                      char *const *words);\n"
24911 "\n"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../src/guestfs-actions.pod:1422
24916 msgid "See also C<guestfs_ping_daemon>."
24917 msgstr ""
24918
24919 #. type: textblock
24920 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24921 #: ../src/guestfs-actions.pod:6475
24922 msgid "(Added in 1.0.69)"
24923 msgstr ""
24924
24925 #. type: =head2
24926 #: ../src/guestfs-actions.pod:1429
24927 msgid "guestfs_egrep"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../src/guestfs-actions.pod:1431
24932 #, no-wrap
24933 msgid ""
24934 " char **\n"
24935 " guestfs_egrep (guestfs_h *g,\n"
24936 "                const char *regex,\n"
24937 "                const char *path);\n"
24938 "\n"
24939 msgstr ""
24940
24941 #. type: textblock
24942 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24943 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24944 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24945 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
24946 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
24947 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
24948 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3879
24949 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3906
24950 #: ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4921
24951 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6001
24952 #: ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6883
24953 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909
24954 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6944
24955 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6970
24956 #: ../src/guestfs-actions.pod:7764 ../src/guestfs-actions.pod:7783
24957 #: ../src/guestfs-actions.pod:7877 ../src/guestfs-actions.pod:7896
24958 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7961
24959 msgid "(Added in 1.0.66)"
24960 msgstr ""
24961
24962 #. type: =head2
24963 #: ../src/guestfs-actions.pod:1448
24964 msgid "guestfs_egrepi"
24965 msgstr ""
24966
24967 #. type: verbatim
24968 #: ../src/guestfs-actions.pod:1450
24969 #, no-wrap
24970 msgid ""
24971 " char **\n"
24972 " guestfs_egrepi (guestfs_h *g,\n"
24973 "                 const char *regex,\n"
24974 "                 const char *path);\n"
24975 "\n"
24976 msgstr ""
24977
24978 #. type: =head2
24979 #: ../src/guestfs-actions.pod:1467
24980 msgid "guestfs_equal"
24981 msgstr ""
24982
24983 #. type: verbatim
24984 #: ../src/guestfs-actions.pod:1469
24985 #, no-wrap
24986 msgid ""
24987 " int\n"
24988 " guestfs_equal (guestfs_h *g,\n"
24989 "                const char *file1,\n"
24990 "                const char *file2);\n"
24991 "\n"
24992 msgstr ""
24993
24994 #. type: =head2
24995 #: ../src/guestfs-actions.pod:1483
24996 msgid "guestfs_exists"
24997 msgstr ""
24998
24999 #. type: verbatim
25000 #: ../src/guestfs-actions.pod:1485
25001 #, no-wrap
25002 msgid ""
25003 " int\n"
25004 " guestfs_exists (guestfs_h *g,\n"
25005 "                 const char *path);\n"
25006 "\n"
25007 msgstr ""
25008
25009 #. type: textblock
25010 #: ../src/guestfs-actions.pod:1492
25011 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25012 msgstr ""
25013
25014 #. type: =head2
25015 #: ../src/guestfs-actions.pod:1498
25016 msgid "guestfs_fallocate"
25017 msgstr ""
25018
25019 #. type: verbatim
25020 #: ../src/guestfs-actions.pod:1500
25021 #, no-wrap
25022 msgid ""
25023 " int\n"
25024 " guestfs_fallocate (guestfs_h *g,\n"
25025 "                    const char *path,\n"
25026 "                    int len);\n"
25027 "\n"
25028 msgstr ""
25029
25030 #. type: textblock
25031 #: ../src/guestfs-actions.pod:1515
25032 msgid ""
25033 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
25034 "call instead."
25035 msgstr ""
25036
25037 #. type: =head2
25038 #: ../src/guestfs-actions.pod:1524
25039 msgid "guestfs_fallocate64"
25040 msgstr ""
25041
25042 #. type: verbatim
25043 #: ../src/guestfs-actions.pod:1526
25044 #, no-wrap
25045 msgid ""
25046 " int\n"
25047 " guestfs_fallocate64 (guestfs_h *g,\n"
25048 "                      const char *path,\n"
25049 "                      int64_t len);\n"
25050 "\n"
25051 msgstr ""
25052
25053 #. type: textblock
25054 #: ../src/guestfs-actions.pod:1535
25055 msgid ""
25056 "Note that this call allocates disk blocks for the file.  To create a sparse "
25057 "file use C<guestfs_truncate_size> instead."
25058 msgstr ""
25059
25060 #. type: textblock
25061 #: ../src/guestfs-actions.pod:1538
25062 msgid ""
25063 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25064 "oversight it only allowed 30 bit lengths to be specified, effectively "
25065 "limiting the maximum size of files created through that call to 1GB."
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../src/guestfs-actions.pod:1549
25070 msgid "(Added in 1.3.17)"
25071 msgstr ""
25072
25073 #. type: =head2
25074 #: ../src/guestfs-actions.pod:1551
25075 msgid "guestfs_fgrep"
25076 msgstr ""
25077
25078 #. type: verbatim
25079 #: ../src/guestfs-actions.pod:1553
25080 #, no-wrap
25081 msgid ""
25082 " char **\n"
25083 " guestfs_fgrep (guestfs_h *g,\n"
25084 "                const char *pattern,\n"
25085 "                const char *path);\n"
25086 "\n"
25087 msgstr ""
25088
25089 #. type: =head2
25090 #: ../src/guestfs-actions.pod:1570
25091 msgid "guestfs_fgrepi"
25092 msgstr ""
25093
25094 #. type: verbatim
25095 #: ../src/guestfs-actions.pod:1572
25096 #, no-wrap
25097 msgid ""
25098 " char **\n"
25099 " guestfs_fgrepi (guestfs_h *g,\n"
25100 "                 const char *pattern,\n"
25101 "                 const char *path);\n"
25102 "\n"
25103 msgstr ""
25104
25105 #. type: =head2
25106 #: ../src/guestfs-actions.pod:1589
25107 msgid "guestfs_file"
25108 msgstr ""
25109
25110 #. type: verbatim
25111 #: ../src/guestfs-actions.pod:1591
25112 #, no-wrap
25113 msgid ""
25114 " char *\n"
25115 " guestfs_file (guestfs_h *g,\n"
25116 "               const char *path);\n"
25117 "\n"
25118 msgstr ""
25119
25120 #. type: textblock
25121 #: ../src/guestfs-actions.pod:1609
25122 msgid ""
25123 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25124 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25125 msgstr ""
25126
25127 #. type: =head2
25128 #: ../src/guestfs-actions.pod:1617
25129 msgid "guestfs_file_architecture"
25130 msgstr ""
25131
25132 #. type: verbatim
25133 #: ../src/guestfs-actions.pod:1619
25134 #, no-wrap
25135 msgid ""
25136 " char *\n"
25137 " guestfs_file_architecture (guestfs_h *g,\n"
25138 "                            const char *filename);\n"
25139 "\n"
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25144 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
25145 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2786
25146 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2991
25147 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3106
25148 #: ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3436
25149 #: ../src/guestfs-actions.pod:3568
25150 msgid "(Added in 1.5.3)"
25151 msgstr ""
25152
25153 #. type: =head2
25154 #: ../src/guestfs-actions.pod:1729
25155 msgid "guestfs_filesize"
25156 msgstr ""
25157
25158 #. type: verbatim
25159 #: ../src/guestfs-actions.pod:1731
25160 #, no-wrap
25161 msgid ""
25162 " int64_t\n"
25163 " guestfs_filesize (guestfs_h *g,\n"
25164 "                   const char *file);\n"
25165 "\n"
25166 msgstr ""
25167
25168 #. type: textblock
25169 #: ../src/guestfs-actions.pod:1737
25170 msgid ""
25171 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25172 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25173 "devices, use C<guestfs_blockdev_getsize64>."
25174 msgstr ""
25175
25176 #. type: textblock
25177 #: ../src/guestfs-actions.pod:1743
25178 msgid "(Added in 1.0.82)"
25179 msgstr ""
25180
25181 #. type: =head2
25182 #: ../src/guestfs-actions.pod:1745
25183 msgid "guestfs_fill"
25184 msgstr ""
25185
25186 #. type: verbatim
25187 #: ../src/guestfs-actions.pod:1747
25188 #, no-wrap
25189 msgid ""
25190 " int\n"
25191 " guestfs_fill (guestfs_h *g,\n"
25192 "               int c,\n"
25193 "               int len,\n"
25194 "               const char *path);\n"
25195 "\n"
25196 msgstr ""
25197
25198 #. type: textblock
25199 #: ../src/guestfs-actions.pod:1757
25200 msgid ""
25201 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25202 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25203 "bytes use C<guestfs_fill_pattern>."
25204 msgstr ""
25205
25206 #. type: textblock
25207 #: ../src/guestfs-actions.pod:1769
25208 msgid "(Added in 1.0.79)"
25209 msgstr ""
25210
25211 #. type: =head2
25212 #: ../src/guestfs-actions.pod:1771
25213 msgid "guestfs_fill_pattern"
25214 msgstr ""
25215
25216 #. type: verbatim
25217 #: ../src/guestfs-actions.pod:1773
25218 #, no-wrap
25219 msgid ""
25220 " int\n"
25221 " guestfs_fill_pattern (guestfs_h *g,\n"
25222 "                       const char *pattern,\n"
25223 "                       int len,\n"
25224 "                       const char *path);\n"
25225 "\n"
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../src/guestfs-actions.pod:1779
25230 msgid ""
25231 "This function is like C<guestfs_fill> except that it creates a new file of "
25232 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25233 "pattern is truncated if necessary to ensure the length of the file is "
25234 "exactly C<len> bytes."
25235 msgstr ""
25236
25237 #. type: textblock
25238 #: ../src/guestfs-actions.pod:1791
25239 msgid "(Added in 1.3.12)"
25240 msgstr ""
25241
25242 #. type: =head2
25243 #: ../src/guestfs-actions.pod:1793
25244 msgid "guestfs_find"
25245 msgstr ""
25246
25247 #. type: verbatim
25248 #: ../src/guestfs-actions.pod:1795
25249 #, no-wrap
25250 msgid ""
25251 " char **\n"
25252 " guestfs_find (guestfs_h *g,\n"
25253 "               const char *directory);\n"
25254 "\n"
25255 msgstr ""
25256
25257 #. type: textblock
25258 #: ../src/guestfs-actions.pod:1811
25259 msgid ""
25260 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25261 msgstr ""
25262
25263 #. type: textblock
25264 #: ../src/guestfs-actions.pod:1824
25265 msgid "See also C<guestfs_find0>."
25266 msgstr ""
25267
25268 #. type: textblock
25269 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4326
25270 #: ../src/guestfs-actions.pod:6036
25271 msgid "(Added in 1.0.27)"
25272 msgstr ""
25273
25274 #. type: =head2
25275 #: ../src/guestfs-actions.pod:1835
25276 msgid "guestfs_find0"
25277 msgstr ""
25278
25279 #. type: verbatim
25280 #: ../src/guestfs-actions.pod:1837
25281 #, no-wrap
25282 msgid ""
25283 " int\n"
25284 " guestfs_find0 (guestfs_h *g,\n"
25285 "                const char *directory,\n"
25286 "                const char *files);\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: textblock
25291 #: ../src/guestfs-actions.pod:1846
25292 msgid ""
25293 "This command works the same way as C<guestfs_find> with the following "
25294 "exceptions:"
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../src/guestfs-actions.pod:1873
25299 msgid "(Added in 1.0.74)"
25300 msgstr ""
25301
25302 #. type: =head2
25303 #: ../src/guestfs-actions.pod:1875
25304 msgid "guestfs_findfs_label"
25305 msgstr ""
25306
25307 #. type: verbatim
25308 #: ../src/guestfs-actions.pod:1877
25309 #, no-wrap
25310 msgid ""
25311 " char *\n"
25312 " guestfs_findfs_label (guestfs_h *g,\n"
25313 "                       const char *label);\n"
25314 "\n"
25315 msgstr ""
25316
25317 #. type: textblock
25318 #: ../src/guestfs-actions.pod:1885
25319 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25320 msgstr ""
25321
25322 #. type: =head2
25323 #: ../src/guestfs-actions.pod:1892
25324 msgid "guestfs_findfs_uuid"
25325 msgstr ""
25326
25327 #. type: verbatim
25328 #: ../src/guestfs-actions.pod:1894
25329 #, no-wrap
25330 msgid ""
25331 " char *\n"
25332 " guestfs_findfs_uuid (guestfs_h *g,\n"
25333 "                      const char *uuid);\n"
25334 "\n"
25335 msgstr ""
25336
25337 #. type: textblock
25338 #: ../src/guestfs-actions.pod:1902
25339 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25340 msgstr ""
25341
25342 #. type: =head2
25343 #: ../src/guestfs-actions.pod:1909
25344 msgid "guestfs_fsck"
25345 msgstr ""
25346
25347 #. type: verbatim
25348 #: ../src/guestfs-actions.pod:1911
25349 #, no-wrap
25350 msgid ""
25351 " int\n"
25352 " guestfs_fsck (guestfs_h *g,\n"
25353 "               const char *fstype,\n"
25354 "               const char *device);\n"
25355 "\n"
25356 msgstr ""
25357
25358 #. type: textblock
25359 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7811
25360 msgid "(Added in 1.0.16)"
25361 msgstr ""
25362
25363 #. type: =head2
25364 #: ../src/guestfs-actions.pod:1948
25365 msgid "guestfs_get_append"
25366 msgstr ""
25367
25368 #. type: verbatim
25369 #: ../src/guestfs-actions.pod:1950
25370 #, no-wrap
25371 msgid ""
25372 " const char *\n"
25373 " guestfs_get_append (guestfs_h *g);\n"
25374 "\n"
25375 msgstr ""
25376
25377 #. type: textblock
25378 #: ../src/guestfs-actions.pod:1958
25379 msgid ""
25380 "This function returns a string which may be NULL.  There is no way to return "
25381 "an error from this function.  The string is owned by the guest handle and "
25382 "must I<not> be freed."
25383 msgstr ""
25384
25385 #. type: textblock
25386 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5714
25387 #: ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6638
25388 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6673
25389 #: ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:7451
25390 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7858
25391 msgid "(Added in 1.0.26)"
25392 msgstr ""
25393
25394 #. type: =head2
25395 #: ../src/guestfs-actions.pod:1964
25396 msgid "guestfs_get_attach_method"
25397 msgstr ""
25398
25399 #. type: verbatim
25400 #: ../src/guestfs-actions.pod:1966
25401 #, no-wrap
25402 msgid ""
25403 " char *\n"
25404 " guestfs_get_attach_method (guestfs_h *g);\n"
25405 "\n"
25406 msgstr ""
25407
25408 #. type: textblock
25409 #: ../src/guestfs-actions.pod:1969
25410 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25411 msgstr ""
25412
25413 #. type: textblock
25414 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6226
25415 msgid "(Added in 1.9.8)"
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:1976
25420 msgid "guestfs_get_autosync"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:1978
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_get_autosync (guestfs_h *g);\n"
25429 "\n"
25430 msgstr ""
25431
25432 #. type: =head2
25433 #: ../src/guestfs-actions.pod:1987
25434 msgid "guestfs_get_direct"
25435 msgstr ""
25436
25437 #. type: verbatim
25438 #: ../src/guestfs-actions.pod:1989
25439 #, no-wrap
25440 msgid ""
25441 " int\n"
25442 " guestfs_get_direct (guestfs_h *g);\n"
25443 "\n"
25444 msgstr ""
25445
25446 #. type: textblock
25447 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6267
25448 msgid "(Added in 1.0.72)"
25449 msgstr ""
25450
25451 #. type: =head2
25452 #: ../src/guestfs-actions.pod:1998
25453 msgid "guestfs_get_e2label"
25454 msgstr ""
25455
25456 #. type: verbatim
25457 #: ../src/guestfs-actions.pod:2000
25458 #, no-wrap
25459 msgid ""
25460 " char *\n"
25461 " guestfs_get_e2label (guestfs_h *g,\n"
25462 "                      const char *device);\n"
25463 "\n"
25464 msgstr ""
25465
25466 #. type: textblock
25467 #: ../src/guestfs-actions.pod:2010
25468 msgid ""
25469 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
25470 "call instead."
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25475 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
25476 msgid "(Added in 1.0.15)"
25477 msgstr ""
25478
25479 #. type: =head2
25480 #: ../src/guestfs-actions.pod:2019
25481 msgid "guestfs_get_e2uuid"
25482 msgstr ""
25483
25484 #. type: verbatim
25485 #: ../src/guestfs-actions.pod:2021
25486 #, no-wrap
25487 msgid ""
25488 " char *\n"
25489 " guestfs_get_e2uuid (guestfs_h *g,\n"
25490 "                     const char *device);\n"
25491 "\n"
25492 msgstr ""
25493
25494 #. type: textblock
25495 #: ../src/guestfs-actions.pod:2031
25496 msgid ""
25497 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
25498 "instead."
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../src/guestfs-actions.pod:2040
25503 msgid "guestfs_get_memsize"
25504 msgstr ""
25505
25506 #. type: verbatim
25507 #: ../src/guestfs-actions.pod:2042
25508 #, no-wrap
25509 msgid ""
25510 " int\n"
25511 " guestfs_get_memsize (guestfs_h *g);\n"
25512 "\n"
25513 msgstr ""
25514
25515 #. type: textblock
25516 #: ../src/guestfs-actions.pod:2048
25517 msgid ""
25518 "If C<guestfs_set_memsize> was not called on this handle, and if "
25519 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25520 "value for memsize."
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4617
25525 #: ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845
25526 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4876
25527 #: ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906
25528 #: ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6325
25529 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7220
25530 msgid "(Added in 1.0.55)"
25531 msgstr ""
25532
25533 #. type: =head2
25534 #: ../src/guestfs-actions.pod:2059
25535 msgid "guestfs_get_network"
25536 msgstr ""
25537
25538 #. type: verbatim
25539 #: ../src/guestfs-actions.pod:2061
25540 #, no-wrap
25541 msgid ""
25542 " int\n"
25543 " guestfs_get_network (guestfs_h *g);\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: textblock
25548 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6344
25549 msgid "(Added in 1.5.4)"
25550 msgstr ""
25551
25552 #. type: =head2
25553 #: ../src/guestfs-actions.pod:2070
25554 msgid "guestfs_get_path"
25555 msgstr ""
25556
25557 #. type: verbatim
25558 #: ../src/guestfs-actions.pod:2072
25559 #, no-wrap
25560 msgid ""
25561 " const char *\n"
25562 " guestfs_get_path (guestfs_h *g);\n"
25563 "\n"
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25568 msgid ""
25569 "This function returns a string, or NULL on error.  The string is owned by "
25570 "the guest handle and must I<not> be freed."
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../src/guestfs-actions.pod:2085
25575 msgid "guestfs_get_pgroup"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../src/guestfs-actions.pod:2087
25580 #, no-wrap
25581 msgid ""
25582 " int\n"
25583 " guestfs_get_pgroup (guestfs_h *g);\n"
25584 "\n"
25585 msgstr ""
25586
25587 #. type: textblock
25588 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6380
25589 #: ../src/guestfs-actions.pod:7712
25590 #, fuzzy
25591 #| msgid "(Added in 1.5.1)"
25592 msgid "(Added in 1.11.18)"
25593 msgstr "(Додано у 1.5.1)"
25594
25595 #. type: =head2
25596 #: ../src/guestfs-actions.pod:2096
25597 msgid "guestfs_get_pid"
25598 msgstr ""
25599
25600 #. type: verbatim
25601 #: ../src/guestfs-actions.pod:2098
25602 #, no-wrap
25603 msgid ""
25604 " int\n"
25605 " guestfs_get_pid (guestfs_h *g);\n"
25606 "\n"
25607 msgstr ""
25608
25609 #. type: textblock
25610 #: ../src/guestfs-actions.pod:2108
25611 msgid "(Added in 1.0.56)"
25612 msgstr ""
25613
25614 #. type: =head2
25615 #: ../src/guestfs-actions.pod:2110
25616 msgid "guestfs_get_qemu"
25617 msgstr ""
25618
25619 #. type: verbatim
25620 #: ../src/guestfs-actions.pod:2112
25621 #, no-wrap
25622 msgid ""
25623 " const char *\n"
25624 " guestfs_get_qemu (guestfs_h *g);\n"
25625 "\n"
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6408
25630 msgid "(Added in 1.0.6)"
25631 msgstr ""
25632
25633 #. type: =head2
25634 #: ../src/guestfs-actions.pod:2125
25635 msgid "guestfs_get_recovery_proc"
25636 msgstr ""
25637
25638 #. type: verbatim
25639 #: ../src/guestfs-actions.pod:2127
25640 #, no-wrap
25641 msgid ""
25642 " int\n"
25643 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25644 "\n"
25645 msgstr ""
25646
25647 #. type: textblock
25648 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3690
25649 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4424
25650 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:5644
25651 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6432
25652 #: ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7143
25653 #: ../src/guestfs-actions.pod:7335
25654 msgid "(Added in 1.0.77)"
25655 msgstr ""
25656
25657 #. type: =head2
25658 #: ../src/guestfs-actions.pod:2136
25659 msgid "guestfs_get_selinux"
25660 msgstr ""
25661
25662 #. type: verbatim
25663 #: ../src/guestfs-actions.pod:2138
25664 #, no-wrap
25665 msgid ""
25666 " int\n"
25667 " guestfs_get_selinux (guestfs_h *g);\n"
25668 "\n"
25669 msgstr ""
25670
25671 #. type: textblock
25672 #: ../src/guestfs-actions.pod:2141
25673 msgid ""
25674 "This returns the current setting of the selinux flag which is passed to the "
25675 "appliance at boot time.  See C<guestfs_set_selinux>."
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25680 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6509
25681 msgid "(Added in 1.0.67)"
25682 msgstr ""
25683
25684 #. type: =head2
25685 #: ../src/guestfs-actions.pod:2151
25686 msgid "guestfs_get_state"
25687 msgstr ""
25688
25689 #. type: verbatim
25690 #: ../src/guestfs-actions.pod:2153
25691 #, no-wrap
25692 msgid ""
25693 " int\n"
25694 " guestfs_get_state (guestfs_h *g);\n"
25695 "\n"
25696 msgstr ""
25697
25698 #. type: =head2
25699 #: ../src/guestfs-actions.pod:2165
25700 msgid "guestfs_get_trace"
25701 msgstr ""
25702
25703 #. type: verbatim
25704 #: ../src/guestfs-actions.pod:2167
25705 #, no-wrap
25706 msgid ""
25707 " int\n"
25708 " guestfs_get_trace (guestfs_h *g);\n"
25709 "\n"
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../src/guestfs-actions.pod:2176
25714 msgid "guestfs_get_umask"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../src/guestfs-actions.pod:2178
25719 #, no-wrap
25720 msgid ""
25721 " int\n"
25722 " guestfs_get_umask (guestfs_h *g);\n"
25723 "\n"
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:2181
25728 msgid ""
25729 "Return the current umask.  By default the umask is C<022> unless it has been "
25730 "set by calling C<guestfs_umask>."
25731 msgstr ""
25732
25733 #. type: =head2
25734 #: ../src/guestfs-actions.pod:2188
25735 msgid "guestfs_get_verbose"
25736 msgstr ""
25737
25738 #. type: verbatim
25739 #: ../src/guestfs-actions.pod:2190
25740 #, no-wrap
25741 msgid ""
25742 " int\n"
25743 " guestfs_get_verbose (guestfs_h *g);\n"
25744 "\n"
25745 msgstr ""
25746
25747 #. type: =head2
25748 #: ../src/guestfs-actions.pod:2199
25749 msgid "guestfs_getcon"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../src/guestfs-actions.pod:2201
25754 #, no-wrap
25755 msgid ""
25756 " char *\n"
25757 " guestfs_getcon (guestfs_h *g);\n"
25758 "\n"
25759 msgstr ""
25760
25761 #. type: textblock
25762 #: ../src/guestfs-actions.pod:2206
25763 msgid ""
25764 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25765 msgstr ""
25766
25767 #. type: =head2
25768 #: ../src/guestfs-actions.pod:2214
25769 msgid "guestfs_getxattr"
25770 msgstr ""
25771
25772 #. type: verbatim
25773 #: ../src/guestfs-actions.pod:2216
25774 #, no-wrap
25775 msgid ""
25776 " char *\n"
25777 " guestfs_getxattr (guestfs_h *g,\n"
25778 "                   const char *path,\n"
25779 "                   const char *name,\n"
25780 "                   size_t *size_r);\n"
25781 "\n"
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:2222
25786 msgid ""
25787 "Get a single extended attribute from file C<path> named C<name>.  This call "
25788 "follows symlinks.  If you want to lookup an extended attribute for the "
25789 "symlink itself, use C<guestfs_lgetxattr>."
25790 msgstr ""
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3704
25794 msgid ""
25795 "Normally it is better to get all extended attributes from a file in one go "
25796 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25797 "implementations are buggy and do not provide a way to list out attributes.  "
25798 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25799 "extended attributes you want in advance and call this function."
25800 msgstr ""
25801
25802 #. type: textblock
25803 #: ../src/guestfs-actions.pod:2236
25804 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25805 msgstr ""
25806
25807 #. type: textblock
25808 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
25809 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3716
25810 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5663
25811 #: ../src/guestfs-actions.pod:5844
25812 msgid ""
25813 "This function returns a buffer, or NULL on error.  The size of the returned "
25814 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25815 "after use>."
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3720
25820 msgid "(Added in 1.7.24)"
25821 msgstr ""
25822
25823 #. type: =head2
25824 #: ../src/guestfs-actions.pod:2244
25825 msgid "guestfs_getxattrs"
25826 msgstr ""
25827
25828 #. type: verbatim
25829 #: ../src/guestfs-actions.pod:2246
25830 #, no-wrap
25831 msgid ""
25832 " struct guestfs_xattr_list *\n"
25833 " guestfs_getxattrs (guestfs_h *g,\n"
25834 "                    const char *path);\n"
25835 "\n"
25836 msgstr ""
25837
25838 #. type: textblock
25839 #: ../src/guestfs-actions.pod:2256
25840 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25841 msgstr ""
25842
25843 #. type: textblock
25844 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3732
25845 #: ../src/guestfs-actions.pod:4420
25846 msgid ""
25847 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25848 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25849 msgstr ""
25850
25851 #. type: textblock
25852 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3736
25853 #: ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3971
25854 #: ../src/guestfs-actions.pod:6017 ../src/guestfs-actions.pod:6528
25855 #: ../src/guestfs-actions.pod:7923
25856 msgid "(Added in 1.0.59)"
25857 msgstr ""
25858
25859 #. type: =head2
25860 #: ../src/guestfs-actions.pod:2264
25861 msgid "guestfs_glob_expand"
25862 msgstr ""
25863
25864 #. type: verbatim
25865 #: ../src/guestfs-actions.pod:2266
25866 #, no-wrap
25867 msgid ""
25868 " char **\n"
25869 " guestfs_glob_expand (guestfs_h *g,\n"
25870 "                      const char *pattern);\n"
25871 "\n"
25872 msgstr ""
25873
25874 #. type: textblock
25875 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6721
25876 #: ../src/guestfs-actions.pod:6738
25877 msgid "(Added in 1.0.50)"
25878 msgstr ""
25879
25880 #. type: =head2
25881 #: ../src/guestfs-actions.pod:2287
25882 msgid "guestfs_grep"
25883 msgstr ""
25884
25885 #. type: verbatim
25886 #: ../src/guestfs-actions.pod:2289
25887 #, no-wrap
25888 msgid ""
25889 " char **\n"
25890 " guestfs_grep (guestfs_h *g,\n"
25891 "               const char *regex,\n"
25892 "               const char *path);\n"
25893 "\n"
25894 msgstr ""
25895
25896 #. type: =head2
25897 #: ../src/guestfs-actions.pod:2306
25898 msgid "guestfs_grepi"
25899 msgstr ""
25900
25901 #. type: verbatim
25902 #: ../src/guestfs-actions.pod:2308
25903 #, no-wrap
25904 msgid ""
25905 " char **\n"
25906 " guestfs_grepi (guestfs_h *g,\n"
25907 "                const char *regex,\n"
25908 "                const char *path);\n"
25909 "\n"
25910 msgstr ""
25911
25912 #. type: =head2
25913 #: ../src/guestfs-actions.pod:2325
25914 msgid "guestfs_grub_install"
25915 msgstr ""
25916
25917 #. type: verbatim
25918 #: ../src/guestfs-actions.pod:2327
25919 #, no-wrap
25920 msgid ""
25921 " int\n"
25922 " guestfs_grub_install (guestfs_h *g,\n"
25923 "                       const char *root,\n"
25924 "                       const char *device);\n"
25925 "\n"
25926 msgstr ""
25927
25928 #. type: textblock
25929 #: ../src/guestfs-actions.pod:2370
25930 msgid "(Added in 1.0.17)"
25931 msgstr ""
25932
25933 #. type: =head2
25934 #: ../src/guestfs-actions.pod:2372
25935 msgid "guestfs_head"
25936 msgstr ""
25937
25938 #. type: verbatim
25939 #: ../src/guestfs-actions.pod:2374
25940 #, no-wrap
25941 msgid ""
25942 " char **\n"
25943 " guestfs_head (guestfs_h *g,\n"
25944 "               const char *path);\n"
25945 "\n"
25946 msgstr ""
25947
25948 #. type: =head2
25949 #: ../src/guestfs-actions.pod:2390
25950 msgid "guestfs_head_n"
25951 msgstr ""
25952
25953 #. type: verbatim
25954 #: ../src/guestfs-actions.pod:2392
25955 #, no-wrap
25956 msgid ""
25957 " char **\n"
25958 " guestfs_head_n (guestfs_h *g,\n"
25959 "                 int nrlines,\n"
25960 "                 const char *path);\n"
25961 "\n"
25962 msgstr ""
25963
25964 #. type: =head2
25965 #: ../src/guestfs-actions.pod:2414
25966 msgid "guestfs_hexdump"
25967 msgstr ""
25968
25969 #. type: verbatim
25970 #: ../src/guestfs-actions.pod:2416
25971 #, no-wrap
25972 msgid ""
25973 " char *\n"
25974 " guestfs_hexdump (guestfs_h *g,\n"
25975 "                  const char *path);\n"
25976 "\n"
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6802
25981 #: ../src/guestfs-actions.pod:6857
25982 msgid "(Added in 1.0.22)"
25983 msgstr ""
25984
25985 #. type: =head2
25986 #: ../src/guestfs-actions.pod:2431
25987 msgid "guestfs_initrd_cat"
25988 msgstr ""
25989
25990 #. type: verbatim
25991 #: ../src/guestfs-actions.pod:2433
25992 #, no-wrap
25993 msgid ""
25994 " char *\n"
25995 " guestfs_initrd_cat (guestfs_h *g,\n"
25996 "                     const char *initrdpath,\n"
25997 "                     const char *filename,\n"
25998 "                     size_t *size_r);\n"
25999 "\n"
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../src/guestfs-actions.pod:2449
26004 msgid "See also C<guestfs_initrd_list>."
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../src/guestfs-actions.pod:2460
26009 msgid "guestfs_initrd_list"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../src/guestfs-actions.pod:2462
26014 #, no-wrap
26015 msgid ""
26016 " char **\n"
26017 " guestfs_initrd_list (guestfs_h *g,\n"
26018 "                      const char *path);\n"
26019 "\n"
26020 msgstr ""
26021
26022 #. type: =head2
26023 #: ../src/guestfs-actions.pod:2482
26024 msgid "guestfs_inotify_add_watch"
26025 msgstr ""
26026
26027 #. type: verbatim
26028 #: ../src/guestfs-actions.pod:2484
26029 #, no-wrap
26030 msgid ""
26031 " int64_t\n"
26032 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26033 "                            const char *path,\n"
26034 "                            int mask);\n"
26035 "\n"
26036 msgstr ""
26037
26038 #. type: =head2
26039 #: ../src/guestfs-actions.pod:2503
26040 msgid "guestfs_inotify_close"
26041 msgstr ""
26042
26043 #. type: verbatim
26044 #: ../src/guestfs-actions.pod:2505
26045 #, no-wrap
26046 msgid ""
26047 " int\n"
26048 " guestfs_inotify_close (guestfs_h *g);\n"
26049 "\n"
26050 msgstr ""
26051
26052 #. type: =head2
26053 #: ../src/guestfs-actions.pod:2516
26054 msgid "guestfs_inotify_files"
26055 msgstr ""
26056
26057 #. type: verbatim
26058 #: ../src/guestfs-actions.pod:2518
26059 #, no-wrap
26060 msgid ""
26061 " char **\n"
26062 " guestfs_inotify_files (guestfs_h *g);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:2521
26068 msgid ""
26069 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26070 "returns a list of pathnames of objects that were touched.  The returned "
26071 "pathnames are sorted and deduplicated."
26072 msgstr ""
26073
26074 #. type: =head2
26075 #: ../src/guestfs-actions.pod:2531
26076 msgid "guestfs_inotify_init"
26077 msgstr ""
26078
26079 #. type: verbatim
26080 #: ../src/guestfs-actions.pod:2533
26081 #, no-wrap
26082 msgid ""
26083 " int\n"
26084 " guestfs_inotify_init (guestfs_h *g,\n"
26085 "                       int maxevents);\n"
26086 "\n"
26087 msgstr ""
26088
26089 #. type: textblock
26090 #: ../src/guestfs-actions.pod:2541
26091 msgid ""
26092 "C<maxevents> is the maximum number of events which will be queued up between "
26093 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26094 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26095 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26096 "throws away events, but records the fact that it threw them away by setting "
26097 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26098 "C<guestfs_inotify_read>)."
26099 msgstr ""
26100
26101 #. type: textblock
26102 #: ../src/guestfs-actions.pod:2551
26103 msgid ""
26104 "Before any events are generated, you have to add some watches to the "
26105 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26106 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26107 msgstr ""
26108
26109 #. type: textblock
26110 #: ../src/guestfs-actions.pod:2557
26111 msgid ""
26112 "Queued up events should be read periodically by calling "
26113 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26114 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26115 "often enough then you risk the internal queue overflowing."
26116 msgstr ""
26117
26118 #. type: textblock
26119 #: ../src/guestfs-actions.pod:2564
26120 msgid ""
26121 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26122 "This also removes any watches automatically."
26123 msgstr ""
26124
26125 #. type: =head2
26126 #: ../src/guestfs-actions.pod:2577
26127 msgid "guestfs_inotify_read"
26128 msgstr ""
26129
26130 #. type: verbatim
26131 #: ../src/guestfs-actions.pod:2579
26132 #, no-wrap
26133 msgid ""
26134 " struct guestfs_inotify_event_list *\n"
26135 " guestfs_inotify_read (guestfs_h *g);\n"
26136 "\n"
26137 msgstr ""
26138
26139 #. type: textblock
26140 #: ../src/guestfs-actions.pod:2593
26141 msgid ""
26142 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26143 "there was an error.  I<The caller must call "
26144 "C<guestfs_free_inotify_event_list> after use>."
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../src/guestfs-actions.pod:2599
26149 msgid "guestfs_inotify_rm_watch"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:2601
26154 #, no-wrap
26155 msgid ""
26156 " int\n"
26157 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26158 "                           int wd);\n"
26159 "\n"
26160 msgstr ""
26161
26162 #. type: textblock
26163 #: ../src/guestfs-actions.pod:2605
26164 msgid ""
26165 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26166 msgstr ""
26167
26168 #. type: =head2
26169 #: ../src/guestfs-actions.pod:2612
26170 msgid "guestfs_inspect_get_arch"
26171 msgstr ""
26172
26173 #. type: verbatim
26174 #: ../src/guestfs-actions.pod:2614
26175 #, no-wrap
26176 msgid ""
26177 " char *\n"
26178 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26179 "                           const char *root);\n"
26180 "\n"
26181 msgstr ""
26182
26183 #. type: textblock
26184 #: ../src/guestfs-actions.pod:2618
26185 msgid ""
26186 "This returns the architecture of the inspected operating system.  The "
26187 "possible return values are listed under C<guestfs_file_architecture>."
26188 msgstr ""
26189
26190 #. type: =head2
26191 #: ../src/guestfs-actions.pod:2632
26192 msgid "guestfs_inspect_get_distro"
26193 msgstr ""
26194
26195 #. type: verbatim
26196 #: ../src/guestfs-actions.pod:2634
26197 #, no-wrap
26198 msgid ""
26199 " char *\n"
26200 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26201 "                             const char *root);\n"
26202 "\n"
26203 msgstr ""
26204
26205 #. type: =head2
26206 #: ../src/guestfs-actions.pod:2722
26207 msgid "guestfs_inspect_get_drive_mappings"
26208 msgstr ""
26209
26210 #. type: verbatim
26211 #: ../src/guestfs-actions.pod:2724
26212 #, no-wrap
26213 msgid ""
26214 " char **\n"
26215 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26216 "                                     const char *root);\n"
26217 "\n"
26218 msgstr ""
26219
26220 #. type: textblock
26221 #: ../src/guestfs-actions.pod:2753
26222 msgid ""
26223 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26224 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26225 msgstr ""
26226
26227 #. type: textblock
26228 #: ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:3025
26229 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:5105
26230 #: ../src/guestfs-actions.pod:7159
26231 msgid ""
26232 "This function returns a NULL-terminated array of strings, or NULL if there "
26233 "was an error.  The array of strings will always have length C<2n+1>, where "
26234 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26235 "caller must free the strings and the array after use>."
26236 msgstr ""
26237
26238 #. type: textblock
26239 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:3219
26240 msgid "(Added in 1.9.17)"
26241 msgstr ""
26242
26243 #. type: =head2
26244 #: ../src/guestfs-actions.pod:2765
26245 msgid "guestfs_inspect_get_filesystems"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../src/guestfs-actions.pod:2767
26250 #, no-wrap
26251 msgid ""
26252 " char **\n"
26253 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26254 "                                  const char *root);\n"
26255 "\n"
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:2779
26260 msgid ""
26261 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26262 "C<guestfs_inspect_get_mountpoints>."
26263 msgstr ""
26264
26265 #. type: =head2
26266 #: ../src/guestfs-actions.pod:2788
26267 msgid "guestfs_inspect_get_format"
26268 msgstr ""
26269
26270 #. type: verbatim
26271 #: ../src/guestfs-actions.pod:2790
26272 #, no-wrap
26273 msgid ""
26274 " char *\n"
26275 " guestfs_inspect_get_format (guestfs_h *g,\n"
26276 "                             const char *root);\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: textblock
26281 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3255
26282 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
26283 #: ../src/guestfs-actions.pod:6055
26284 msgid "(Added in 1.9.4)"
26285 msgstr ""
26286
26287 #. type: =head2
26288 #: ../src/guestfs-actions.pod:2826
26289 msgid "guestfs_inspect_get_hostname"
26290 msgstr ""
26291
26292 #. type: verbatim
26293 #: ../src/guestfs-actions.pod:2828
26294 #, no-wrap
26295 msgid ""
26296 " char *\n"
26297 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26298 "                               const char *root);\n"
26299 "\n"
26300 msgstr ""
26301
26302 #. type: textblock
26303 #: ../src/guestfs-actions.pod:2843
26304 msgid "(Added in 1.7.9)"
26305 msgstr ""
26306
26307 #. type: =head2
26308 #: ../src/guestfs-actions.pod:2845
26309 msgid "guestfs_inspect_get_icon"
26310 msgstr ""
26311
26312 #. type: verbatim
26313 #: ../src/guestfs-actions.pod:2847
26314 #, no-wrap
26315 msgid ""
26316 " char *\n"
26317 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26318 "                           const char *root,\n"
26319 "                           size_t *size_r,\n"
26320 "                           ...);\n"
26321 "\n"
26322 msgstr ""
26323
26324 #. type: verbatim
26325 #: ../src/guestfs-actions.pod:2858
26326 #, no-wrap
26327 msgid ""
26328 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26329 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26330 "\n"
26331 msgstr ""
26332
26333 #. type: textblock
26334 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3750
26335 #: ../src/guestfs-actions.pod:5004
26336 msgid "(Added in 1.11.12)"
26337 msgstr ""
26338
26339 #. type: =head2
26340 #: ../src/guestfs-actions.pod:2927
26341 msgid "guestfs_inspect_get_icon_va"
26342 msgstr ""
26343
26344 #. type: verbatim
26345 #: ../src/guestfs-actions.pod:2929
26346 #, no-wrap
26347 msgid ""
26348 " char *\n"
26349 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26350 "                              const char *root,\n"
26351 "                              size_t *size_r,\n"
26352 "                              va_list args);\n"
26353 "\n"
26354 msgstr ""
26355
26356 #. type: textblock
26357 #: ../src/guestfs-actions.pod:2935
26358 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26359 msgstr ""
26360
26361 #. type: =head2
26362 #: ../src/guestfs-actions.pod:2939
26363 msgid "guestfs_inspect_get_icon_argv"
26364 msgstr ""
26365
26366 #. type: verbatim
26367 #: ../src/guestfs-actions.pod:2941
26368 #, no-wrap
26369 msgid ""
26370 " char *\n"
26371 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26372 "                                const char *root,\n"
26373 "                                size_t *size_r,\n"
26374 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26375 "\n"
26376 msgstr ""
26377
26378 #. type: textblock
26379 #: ../src/guestfs-actions.pod:2947
26380 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26381 msgstr ""
26382
26383 #. type: =head2
26384 #: ../src/guestfs-actions.pod:2951
26385 msgid "guestfs_inspect_get_major_version"
26386 msgstr ""
26387
26388 #. type: verbatim
26389 #: ../src/guestfs-actions.pod:2953
26390 #, no-wrap
26391 msgid ""
26392 " int\n"
26393 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26394 "                                    const char *root);\n"
26395 "\n"
26396 msgstr ""
26397
26398 #. type: =head2
26399 #: ../src/guestfs-actions.pod:2975
26400 msgid "guestfs_inspect_get_minor_version"
26401 msgstr ""
26402
26403 #. type: verbatim
26404 #: ../src/guestfs-actions.pod:2977
26405 #, no-wrap
26406 msgid ""
26407 " int\n"
26408 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26409 "                                    const char *root);\n"
26410 "\n"
26411 msgstr ""
26412
26413 #. type: textblock
26414 #: ../src/guestfs-actions.pod:2986
26415 msgid ""
26416 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26417 "C<guestfs_inspect_get_major_version>."
26418 msgstr ""
26419
26420 #. type: =head2
26421 #: ../src/guestfs-actions.pod:2993
26422 msgid "guestfs_inspect_get_mountpoints"
26423 msgstr ""
26424
26425 #. type: verbatim
26426 #: ../src/guestfs-actions.pod:2995
26427 #, no-wrap
26428 msgid ""
26429 " char **\n"
26430 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26431 "                                  const char *root);\n"
26432 "\n"
26433 msgstr ""
26434
26435 #. type: textblock
26436 #: ../src/guestfs-actions.pod:3016
26437 msgid ""
26438 "For operating systems like Windows which still use drive letters, this call "
26439 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26440 "information about the mapping of drive letters to partitions, see "
26441 "C<guestfs_inspect_get_drive_mappings>."
26442 msgstr ""
26443
26444 #. type: textblock
26445 #: ../src/guestfs-actions.pod:3022
26446 msgid ""
26447 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26448 "C<guestfs_inspect_get_filesystems>."
26449 msgstr ""
26450
26451 #. type: =head2
26452 #: ../src/guestfs-actions.pod:3033
26453 msgid "guestfs_inspect_get_package_format"
26454 msgstr ""
26455
26456 #. type: verbatim
26457 #: ../src/guestfs-actions.pod:3035
26458 #, no-wrap
26459 msgid ""
26460 " char *\n"
26461 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26462 "                                     const char *root);\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../src/guestfs-actions.pod:3039
26468 msgid ""
26469 "This function and C<guestfs_inspect_get_package_management> return the "
26470 "package format and package management tool used by the inspected operating "
26471 "system.  For example for Fedora these functions would return C<rpm> (package "
26472 "format) and C<yum> (package management)."
26473 msgstr ""
26474
26475 #. type: textblock
26476 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3085
26477 msgid "(Added in 1.7.5)"
26478 msgstr ""
26479
26480 #. type: =head2
26481 #: ../src/guestfs-actions.pod:3059
26482 msgid "guestfs_inspect_get_package_management"
26483 msgstr ""
26484
26485 #. type: verbatim
26486 #: ../src/guestfs-actions.pod:3061
26487 #, no-wrap
26488 msgid ""
26489 " char *\n"
26490 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26491 "                                         const char *root);\n"
26492 "\n"
26493 msgstr ""
26494
26495 #. type: textblock
26496 #: ../src/guestfs-actions.pod:3065
26497 msgid ""
26498 "C<guestfs_inspect_get_package_format> and this function return the package "
26499 "format and package management tool used by the inspected operating system.  "
26500 "For example for Fedora these functions would return C<rpm> (package format) "
26501 "and C<yum> (package management)."
26502 msgstr ""
26503
26504 #. type: =head2
26505 #: ../src/guestfs-actions.pod:3087
26506 msgid "guestfs_inspect_get_product_name"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../src/guestfs-actions.pod:3089
26511 #, no-wrap
26512 msgid ""
26513 " char *\n"
26514 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26515 "                                   const char *root);\n"
26516 "\n"
26517 msgstr ""
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:3108
26521 msgid "guestfs_inspect_get_product_variant"
26522 msgstr ""
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:3110
26526 #, no-wrap
26527 msgid ""
26528 " char *\n"
26529 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26530 "                                      const char *root);\n"
26531 "\n"
26532 msgstr ""
26533
26534 #. type: textblock
26535 #: ../src/guestfs-actions.pod:3133
26536 msgid ""
26537 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26538 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26539 msgstr ""
26540
26541 #. type: textblock
26542 #: ../src/guestfs-actions.pod:3140
26543 msgid "(Added in 1.9.13)"
26544 msgstr ""
26545
26546 #. type: =head2
26547 #: ../src/guestfs-actions.pod:3142
26548 msgid "guestfs_inspect_get_roots"
26549 msgstr ""
26550
26551 #. type: verbatim
26552 #: ../src/guestfs-actions.pod:3144
26553 #, no-wrap
26554 msgid ""
26555 " char **\n"
26556 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26557 "\n"
26558 msgstr ""
26559
26560 #. type: textblock
26561 #: ../src/guestfs-actions.pod:3147
26562 msgid ""
26563 "This function is a convenient way to get the list of root devices, as "
26564 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26565 "the whole inspection process."
26566 msgstr ""
26567
26568 #. type: textblock
26569 #: ../src/guestfs-actions.pod:3151
26570 msgid ""
26571 "This returns an empty list if either no root devices were found or the "
26572 "caller has not called C<guestfs_inspect_os>."
26573 msgstr ""
26574
26575 #. type: textblock
26576 #: ../src/guestfs-actions.pod:3160
26577 msgid "(Added in 1.7.3)"
26578 msgstr ""
26579
26580 #. type: =head2
26581 #: ../src/guestfs-actions.pod:3162
26582 msgid "guestfs_inspect_get_type"
26583 msgstr ""
26584
26585 #. type: verbatim
26586 #: ../src/guestfs-actions.pod:3164
26587 #, no-wrap
26588 msgid ""
26589 " char *\n"
26590 " guestfs_inspect_get_type (guestfs_h *g,\n"
26591 "                           const char *root);\n"
26592 "\n"
26593 msgstr ""
26594
26595 #. type: =head2
26596 #: ../src/guestfs-actions.pod:3201
26597 msgid "guestfs_inspect_get_windows_current_control_set"
26598 msgstr ""
26599
26600 #. type: verbatim
26601 #: ../src/guestfs-actions.pod:3203
26602 #, no-wrap
26603 msgid ""
26604 " char *\n"
26605 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26606 "                                                  const char *root);\n"
26607 "\n"
26608 msgstr ""
26609
26610 #. type: =head2
26611 #: ../src/guestfs-actions.pod:3221
26612 msgid "guestfs_inspect_get_windows_systemroot"
26613 msgstr ""
26614
26615 #. type: verbatim
26616 #: ../src/guestfs-actions.pod:3223
26617 #, no-wrap
26618 msgid ""
26619 " char *\n"
26620 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26621 "                                         const char *root);\n"
26622 "\n"
26623 msgstr ""
26624
26625 #. type: textblock
26626 #: ../src/guestfs-actions.pod:3239
26627 msgid "(Added in 1.5.25)"
26628 msgstr ""
26629
26630 #. type: =head2
26631 #: ../src/guestfs-actions.pod:3241
26632 msgid "guestfs_inspect_is_live"
26633 msgstr ""
26634
26635 #. type: verbatim
26636 #: ../src/guestfs-actions.pod:3243
26637 #, no-wrap
26638 msgid ""
26639 " int\n"
26640 " guestfs_inspect_is_live (guestfs_h *g,\n"
26641 "                          const char *root);\n"
26642 "\n"
26643 msgstr ""
26644
26645 #. type: textblock
26646 #: ../src/guestfs-actions.pod:3247
26647 msgid ""
26648 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26649 "disk), then this returns true if a live image was detected on the disk."
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:3257
26654 msgid "guestfs_inspect_is_multipart"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:3259
26659 #, no-wrap
26660 msgid ""
26661 " int\n"
26662 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26663 "                               const char *root);\n"
26664 "\n"
26665 msgstr ""
26666
26667 #. type: textblock
26668 #: ../src/guestfs-actions.pod:3263
26669 msgid ""
26670 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26671 "disk), then this returns true if the disk is part of a set."
26672 msgstr ""
26673
26674 #. type: =head2
26675 #: ../src/guestfs-actions.pod:3273
26676 msgid "guestfs_inspect_is_netinst"
26677 msgstr ""
26678
26679 #. type: verbatim
26680 #: ../src/guestfs-actions.pod:3275
26681 #, no-wrap
26682 msgid ""
26683 " int\n"
26684 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26685 "                             const char *root);\n"
26686 "\n"
26687 msgstr ""
26688
26689 #. type: textblock
26690 #: ../src/guestfs-actions.pod:3279
26691 msgid ""
26692 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26693 "disk), then this returns true if the disk is a network installer, ie. not a "
26694 "self-contained install CD but one which is likely to require network access "
26695 "to complete the install."
26696 msgstr ""
26697
26698 #. type: =head2
26699 #: ../src/guestfs-actions.pod:3291
26700 msgid "guestfs_inspect_list_applications"
26701 msgstr ""
26702
26703 #. type: verbatim
26704 #: ../src/guestfs-actions.pod:3293
26705 #, no-wrap
26706 msgid ""
26707 " struct guestfs_application_list *\n"
26708 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26709 "                                    const char *root);\n"
26710 "\n"
26711 msgstr ""
26712
26713 #. type: textblock
26714 #: ../src/guestfs-actions.pod:3299
26715 msgid ""
26716 "I<Note:> This call works differently from other parts of the inspection "
26717 "API.  You have to call C<guestfs_inspect_os>, then "
26718 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26719 "this.  Listing applications is a significantly more difficult operation "
26720 "which requires access to the full filesystem.  Also note that unlike the "
26721 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26722 "the libguestfs handle, this call actually reads parts of the mounted "
26723 "filesystems during the call."
26724 msgstr ""
26725
26726 #. type: textblock
26727 #: ../src/guestfs-actions.pod:3389
26728 msgid ""
26729 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26730 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26731 "after use>."
26732 msgstr ""
26733
26734 #. type: textblock
26735 #: ../src/guestfs-actions.pod:3393
26736 msgid "(Added in 1.7.8)"
26737 msgstr ""
26738
26739 #. type: =head2
26740 #: ../src/guestfs-actions.pod:3395
26741 msgid "guestfs_inspect_os"
26742 msgstr ""
26743
26744 #. type: verbatim
26745 #: ../src/guestfs-actions.pod:3397
26746 #, no-wrap
26747 msgid ""
26748 " char **\n"
26749 " guestfs_inspect_os (guestfs_h *g);\n"
26750 "\n"
26751 msgstr ""
26752
26753 #. type: textblock
26754 #: ../src/guestfs-actions.pod:3413
26755 msgid ""
26756 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26757 "functions in order to query further information about each operating system, "
26758 "such as the name and version."
26759 msgstr ""
26760
26761 #. type: textblock
26762 #: ../src/guestfs-actions.pod:3418
26763 msgid ""
26764 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26765 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26766 "the contents.  This should be called with no disks currently mounted.  The "
26767 "function may also use Augeas, so any existing Augeas handle will be closed."
26768 msgstr ""
26769
26770 #. type: textblock
26771 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3761
26772 #: ../src/guestfs-actions.pod:3843
26773 msgid "See also C<guestfs_list_filesystems>."
26774 msgstr ""
26775
26776 #. type: =head2
26777 #: ../src/guestfs-actions.pod:3438
26778 msgid "guestfs_is_blockdev"
26779 msgstr ""
26780
26781 #. type: verbatim
26782 #: ../src/guestfs-actions.pod:3440
26783 #, no-wrap
26784 msgid ""
26785 " int\n"
26786 " guestfs_is_blockdev (guestfs_h *g,\n"
26787 "                      const char *path);\n"
26788 "\n"
26789 msgstr ""
26790
26791 #. type: textblock
26792 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3476
26793 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3521
26794 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3593
26795 #: ../src/guestfs-actions.pod:3608
26796 msgid "See also C<guestfs_stat>."
26797 msgstr ""
26798
26799 #. type: textblock
26800 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
26801 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3597
26802 #: ../src/guestfs-actions.pod:3612
26803 msgid "(Added in 1.5.10)"
26804 msgstr ""
26805
26806 #. type: =head2
26807 #: ../src/guestfs-actions.pod:3453
26808 msgid "guestfs_is_busy"
26809 msgstr ""
26810
26811 #. type: verbatim
26812 #: ../src/guestfs-actions.pod:3455
26813 #, no-wrap
26814 msgid ""
26815 " int\n"
26816 " guestfs_is_busy (guestfs_h *g);\n"
26817 "\n"
26818 msgstr ""
26819
26820 #. type: =head2
26821 #: ../src/guestfs-actions.pod:3467
26822 msgid "guestfs_is_chardev"
26823 msgstr ""
26824
26825 #. type: verbatim
26826 #: ../src/guestfs-actions.pod:3469
26827 #, no-wrap
26828 msgid ""
26829 " int\n"
26830 " guestfs_is_chardev (guestfs_h *g,\n"
26831 "                     const char *path);\n"
26832 "\n"
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../src/guestfs-actions.pod:3482
26837 msgid "guestfs_is_config"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../src/guestfs-actions.pod:3484
26842 #, no-wrap
26843 msgid ""
26844 " int\n"
26845 " guestfs_is_config (guestfs_h *g);\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: =head2
26850 #: ../src/guestfs-actions.pod:3496
26851 msgid "guestfs_is_dir"
26852 msgstr ""
26853
26854 #. type: verbatim
26855 #: ../src/guestfs-actions.pod:3498
26856 #, no-wrap
26857 msgid ""
26858 " int\n"
26859 " guestfs_is_dir (guestfs_h *g,\n"
26860 "                 const char *path);\n"
26861 "\n"
26862 msgstr ""
26863
26864 #. type: =head2
26865 #: ../src/guestfs-actions.pod:3512
26866 msgid "guestfs_is_fifo"
26867 msgstr ""
26868
26869 #. type: verbatim
26870 #: ../src/guestfs-actions.pod:3514
26871 #, no-wrap
26872 msgid ""
26873 " int\n"
26874 " guestfs_is_fifo (guestfs_h *g,\n"
26875 "                  const char *path);\n"
26876 "\n"
26877 msgstr ""
26878
26879 #. type: =head2
26880 #: ../src/guestfs-actions.pod:3527
26881 msgid "guestfs_is_file"
26882 msgstr ""
26883
26884 #. type: verbatim
26885 #: ../src/guestfs-actions.pod:3529
26886 #, no-wrap
26887 msgid ""
26888 " int\n"
26889 " guestfs_is_file (guestfs_h *g,\n"
26890 "                  const char *path);\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:3543
26896 msgid "guestfs_is_launching"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:3545
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_is_launching (guestfs_h *g);\n"
26905 "\n"
26906 msgstr ""
26907
26908 #. type: =head2
26909 #: ../src/guestfs-actions.pod:3557
26910 msgid "guestfs_is_lv"
26911 msgstr ""
26912
26913 #. type: verbatim
26914 #: ../src/guestfs-actions.pod:3559
26915 #, no-wrap
26916 msgid ""
26917 " int\n"
26918 " guestfs_is_lv (guestfs_h *g,\n"
26919 "                const char *device);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: =head2
26924 #: ../src/guestfs-actions.pod:3570
26925 msgid "guestfs_is_ready"
26926 msgstr ""
26927
26928 #. type: verbatim
26929 #: ../src/guestfs-actions.pod:3572
26930 #, no-wrap
26931 msgid ""
26932 " int\n"
26933 " guestfs_is_ready (guestfs_h *g);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: =head2
26938 #: ../src/guestfs-actions.pod:3584
26939 msgid "guestfs_is_socket"
26940 msgstr ""
26941
26942 #. type: verbatim
26943 #: ../src/guestfs-actions.pod:3586
26944 #, no-wrap
26945 msgid ""
26946 " int\n"
26947 " guestfs_is_socket (guestfs_h *g,\n"
26948 "                    const char *path);\n"
26949 "\n"
26950 msgstr ""
26951
26952 #. type: =head2
26953 #: ../src/guestfs-actions.pod:3599
26954 msgid "guestfs_is_symlink"
26955 msgstr ""
26956
26957 #. type: verbatim
26958 #: ../src/guestfs-actions.pod:3601
26959 #, no-wrap
26960 msgid ""
26961 " int\n"
26962 " guestfs_is_symlink (guestfs_h *g,\n"
26963 "                     const char *path);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: =head2
26968 #: ../src/guestfs-actions.pod:3614
26969 msgid "guestfs_is_zero"
26970 msgstr ""
26971
26972 #. type: verbatim
26973 #: ../src/guestfs-actions.pod:3616
26974 #, no-wrap
26975 msgid ""
26976 " int\n"
26977 " guestfs_is_zero (guestfs_h *g,\n"
26978 "                  const char *path);\n"
26979 "\n"
26980 msgstr ""
26981
26982 #. type: textblock
26983 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3639
26984 msgid "(Added in 1.11.8)"
26985 msgstr ""
26986
26987 #. type: =head2
26988 #: ../src/guestfs-actions.pod:3627
26989 msgid "guestfs_is_zero_device"
26990 msgstr ""
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:3629
26994 #, no-wrap
26995 msgid ""
26996 " int\n"
26997 " guestfs_is_zero_device (guestfs_h *g,\n"
26998 "                         const char *device);\n"
26999 "\n"
27000 msgstr ""
27001
27002 #. type: =head2
27003 #: ../src/guestfs-actions.pod:3641
27004 msgid "guestfs_kill_subprocess"
27005 msgstr ""
27006
27007 #. type: verbatim
27008 #: ../src/guestfs-actions.pod:3643
27009 #, no-wrap
27010 msgid ""
27011 " int\n"
27012 " guestfs_kill_subprocess (guestfs_h *g);\n"
27013 "\n"
27014 msgstr ""
27015
27016 #. type: =head2
27017 #: ../src/guestfs-actions.pod:3652
27018 msgid "guestfs_launch"
27019 msgstr ""
27020
27021 #. type: verbatim
27022 #: ../src/guestfs-actions.pod:3654
27023 #, no-wrap
27024 msgid ""
27025 " int\n"
27026 " guestfs_launch (guestfs_h *g);\n"
27027 "\n"
27028 msgstr ""
27029
27030 #. type: =head2
27031 #: ../src/guestfs-actions.pod:3672
27032 msgid "guestfs_lchown"
27033 msgstr ""
27034
27035 #. type: verbatim
27036 #: ../src/guestfs-actions.pod:3674
27037 #, no-wrap
27038 msgid ""
27039 " int\n"
27040 " guestfs_lchown (guestfs_h *g,\n"
27041 "                 int owner,\n"
27042 "                 int group,\n"
27043 "                 const char *path);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:3680
27049 msgid ""
27050 "Change the file owner to C<owner> and group to C<group>.  This is like "
27051 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27052 "changed, not the target."
27053 msgstr ""
27054
27055 #. type: =head2
27056 #: ../src/guestfs-actions.pod:3692
27057 msgid "guestfs_lgetxattr"
27058 msgstr ""
27059
27060 #. type: verbatim
27061 #: ../src/guestfs-actions.pod:3694
27062 #, no-wrap
27063 msgid ""
27064 " char *\n"
27065 " guestfs_lgetxattr (guestfs_h *g,\n"
27066 "                    const char *path,\n"
27067 "                    const char *name,\n"
27068 "                    size_t *size_r);\n"
27069 "\n"
27070 msgstr ""
27071
27072 #. type: textblock
27073 #: ../src/guestfs-actions.pod:3714
27074 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../src/guestfs-actions.pod:3722
27079 msgid "guestfs_lgetxattrs"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../src/guestfs-actions.pod:3724
27084 #, no-wrap
27085 msgid ""
27086 " struct guestfs_xattr_list *\n"
27087 " guestfs_lgetxattrs (guestfs_h *g,\n"
27088 "                     const char *path);\n"
27089 "\n"
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:3728
27094 msgid ""
27095 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27096 "then it returns the extended attributes of the link itself."
27097 msgstr ""
27098
27099 #. type: =head2
27100 #: ../src/guestfs-actions.pod:3738
27101 msgid "guestfs_list_9p"
27102 msgstr ""
27103
27104 #. type: verbatim
27105 #: ../src/guestfs-actions.pod:3740
27106 #, no-wrap
27107 msgid ""
27108 " char **\n"
27109 " guestfs_list_9p (guestfs_h *g);\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: =head2
27114 #: ../src/guestfs-actions.pod:3752
27115 msgid "guestfs_list_devices"
27116 msgstr ""
27117
27118 #. type: verbatim
27119 #: ../src/guestfs-actions.pod:3754
27120 #, no-wrap
27121 msgid ""
27122 " char **\n"
27123 " guestfs_list_devices (guestfs_h *g);\n"
27124 "\n"
27125 msgstr ""
27126
27127 #. type: =head2
27128 #: ../src/guestfs-actions.pod:3769
27129 msgid "guestfs_list_dm_devices"
27130 msgstr ""
27131
27132 #. type: verbatim
27133 #: ../src/guestfs-actions.pod:3771
27134 #, no-wrap
27135 msgid ""
27136 " char **\n"
27137 " guestfs_list_dm_devices (guestfs_h *g);\n"
27138 "\n"
27139 msgstr ""
27140
27141 #. type: textblock
27142 #: ../src/guestfs-actions.pod:3776
27143 msgid ""
27144 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27145 "previous call to C<guestfs_luks_open>."
27146 msgstr ""
27147
27148 #. type: textblock
27149 #: ../src/guestfs-actions.pod:3779
27150 msgid ""
27151 "Device mapper devices which correspond to logical volumes are I<not> "
27152 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27153 "volumes."
27154 msgstr ""
27155
27156 #. type: textblock
27157 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:5243
27158 msgid "(Added in 1.11.15)"
27159 msgstr ""
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:3789
27163 msgid "guestfs_list_filesystems"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:3791
27168 #, no-wrap
27169 msgid ""
27170 " char **\n"
27171 " guestfs_list_filesystems (guestfs_h *g);\n"
27172 "\n"
27173 msgstr ""
27174
27175 #. type: textblock
27176 #: ../src/guestfs-actions.pod:3811
27177 msgid ""
27178 "This command runs other libguestfs commands, which might include "
27179 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27180 "soon after launch and only when nothing is mounted."
27181 msgstr ""
27182
27183 #. type: textblock
27184 #: ../src/guestfs-actions.pod:3815
27185 msgid ""
27186 "Not all of the filesystems returned will be mountable.  In particular, swap "
27187 "partitions are returned in the list.  Also this command does not check that "
27188 "each filesystem found is valid and mountable, and some filesystems might be "
27189 "mountable but require special options.  Filesystems may not all belong to a "
27190 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27191 msgstr ""
27192
27193 #. type: textblock
27194 #: ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:5604
27195 msgid "(Added in 1.5.15)"
27196 msgstr ""
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:3831
27200 msgid "guestfs_list_partitions"
27201 msgstr "guestfs_list_partitions"
27202
27203 #. type: verbatim
27204 #: ../src/guestfs-actions.pod:3833
27205 #, no-wrap
27206 msgid ""
27207 " char **\n"
27208 " guestfs_list_partitions (guestfs_h *g);\n"
27209 "\n"
27210 msgstr ""
27211 " char **\n"
27212 " guestfs_list_partitions (guestfs_h *g);\n"
27213 "\n"
27214
27215 #. type: textblock
27216 #: ../src/guestfs-actions.pod:3840
27217 msgid ""
27218 "This does not return logical volumes.  For that you will need to call "
27219 "C<guestfs_lvs>."
27220 msgstr ""
27221
27222 #. type: =head2
27223 #: ../src/guestfs-actions.pod:3851
27224 msgid "guestfs_ll"
27225 msgstr "guestfs_ll"
27226
27227 #. type: verbatim
27228 #: ../src/guestfs-actions.pod:3853
27229 #, no-wrap
27230 msgid ""
27231 " char *\n"
27232 " guestfs_ll (guestfs_h *g,\n"
27233 "             const char *directory);\n"
27234 "\n"
27235 msgstr ""
27236 " char *\n"
27237 " guestfs_ll (guestfs_h *g,\n"
27238 "             const char *directory);\n"
27239 "\n"
27240
27241 #. type: =head2
27242 #: ../src/guestfs-actions.pod:3868
27243 msgid "guestfs_ln"
27244 msgstr "guestfs_ln"
27245
27246 #. type: verbatim
27247 #: ../src/guestfs-actions.pod:3870
27248 #, no-wrap
27249 msgid ""
27250 " int\n"
27251 " guestfs_ln (guestfs_h *g,\n"
27252 "             const char *target,\n"
27253 "             const char *linkname);\n"
27254 "\n"
27255 msgstr ""
27256 " int\n"
27257 " guestfs_ln (guestfs_h *g,\n"
27258 "             const char *target,\n"
27259 "             const char *linkname);\n"
27260 "\n"
27261
27262 #. type: =head2
27263 #: ../src/guestfs-actions.pod:3881
27264 msgid "guestfs_ln_f"
27265 msgstr "guestfs_ln_f"
27266
27267 #. type: verbatim
27268 #: ../src/guestfs-actions.pod:3883
27269 #, no-wrap
27270 msgid ""
27271 " int\n"
27272 " guestfs_ln_f (guestfs_h *g,\n"
27273 "               const char *target,\n"
27274 "               const char *linkname);\n"
27275 "\n"
27276 msgstr ""
27277 " int\n"
27278 " guestfs_ln_f (guestfs_h *g,\n"
27279 "               const char *target,\n"
27280 "               const char *linkname);\n"
27281 "\n"
27282
27283 #. type: =head2
27284 #: ../src/guestfs-actions.pod:3895
27285 msgid "guestfs_ln_s"
27286 msgstr "guestfs_ln_s"
27287
27288 #. type: verbatim
27289 #: ../src/guestfs-actions.pod:3897
27290 #, no-wrap
27291 msgid ""
27292 " int\n"
27293 " guestfs_ln_s (guestfs_h *g,\n"
27294 "               const char *target,\n"
27295 "               const char *linkname);\n"
27296 "\n"
27297 msgstr ""
27298 " int\n"
27299 " guestfs_ln_s (guestfs_h *g,\n"
27300 "               const char *target,\n"
27301 "               const char *linkname);\n"
27302 "\n"
27303
27304 #. type: =head2
27305 #: ../src/guestfs-actions.pod:3908
27306 msgid "guestfs_ln_sf"
27307 msgstr "guestfs_ln_sf"
27308
27309 #. type: verbatim
27310 #: ../src/guestfs-actions.pod:3910
27311 #, no-wrap
27312 msgid ""
27313 " int\n"
27314 " guestfs_ln_sf (guestfs_h *g,\n"
27315 "                const char *target,\n"
27316 "                const char *linkname);\n"
27317 "\n"
27318 msgstr ""
27319 " int\n"
27320 " guestfs_ln_sf (guestfs_h *g,\n"
27321 "                const char *target,\n"
27322 "                const char *linkname);\n"
27323 "\n"
27324
27325 #. type: =head2
27326 #: ../src/guestfs-actions.pod:3922
27327 msgid "guestfs_lremovexattr"
27328 msgstr "guestfs_lremovexattr"
27329
27330 #. type: verbatim
27331 #: ../src/guestfs-actions.pod:3924
27332 #, no-wrap
27333 msgid ""
27334 " int\n"
27335 " guestfs_lremovexattr (guestfs_h *g,\n"
27336 "                       const char *xattr,\n"
27337 "                       const char *path);\n"
27338 "\n"
27339 msgstr ""
27340 " int\n"
27341 " guestfs_lremovexattr (guestfs_h *g,\n"
27342 "                       const char *xattr,\n"
27343 "                       const char *path);\n"
27344 "\n"
27345
27346 #. type: textblock
27347 #: ../src/guestfs-actions.pod:3929
27348 msgid ""
27349 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27350 "link, then it removes an extended attribute of the link itself."
27351 msgstr ""
27352
27353 #. type: =head2
27354 #: ../src/guestfs-actions.pod:3937
27355 msgid "guestfs_ls"
27356 msgstr "guestfs_ls"
27357
27358 #. type: verbatim
27359 #: ../src/guestfs-actions.pod:3939
27360 #, no-wrap
27361 msgid ""
27362 " char **\n"
27363 " guestfs_ls (guestfs_h *g,\n"
27364 "             const char *directory);\n"
27365 "\n"
27366 msgstr ""
27367 " char **\n"
27368 " guestfs_ls (guestfs_h *g,\n"
27369 "             const char *directory);\n"
27370 "\n"
27371
27372 #. type: textblock
27373 #: ../src/guestfs-actions.pod:3947
27374 msgid ""
27375 "This command is mostly useful for interactive sessions.  Programs should "
27376 "probably use C<guestfs_readdir> instead."
27377 msgstr ""
27378
27379 #. type: =head2
27380 #: ../src/guestfs-actions.pod:3956
27381 msgid "guestfs_lsetxattr"
27382 msgstr "guestfs_lsetxattr"
27383
27384 #. type: verbatim
27385 #: ../src/guestfs-actions.pod:3958
27386 #, no-wrap
27387 msgid ""
27388 " int\n"
27389 " guestfs_lsetxattr (guestfs_h *g,\n"
27390 "                    const char *xattr,\n"
27391 "                    const char *val,\n"
27392 "                    int vallen,\n"
27393 "                    const char *path);\n"
27394 "\n"
27395 msgstr ""
27396 " int\n"
27397 " guestfs_lsetxattr (guestfs_h *g,\n"
27398 "                    const char *xattr,\n"
27399 "                    const char *val,\n"
27400 "                    int vallen,\n"
27401 "                    const char *path);\n"
27402 "\n"
27403
27404 #. type: textblock
27405 #: ../src/guestfs-actions.pod:3965
27406 msgid ""
27407 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27408 "then it sets an extended attribute of the link itself."
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../src/guestfs-actions.pod:3973
27413 msgid "guestfs_lstat"
27414 msgstr "guestfs_lstat"
27415
27416 #. type: verbatim
27417 #: ../src/guestfs-actions.pod:3975
27418 #, no-wrap
27419 msgid ""
27420 " struct guestfs_stat *\n"
27421 " guestfs_lstat (guestfs_h *g,\n"
27422 "                const char *path);\n"
27423 "\n"
27424 msgstr ""
27425 " struct guestfs_stat *\n"
27426 " guestfs_lstat (guestfs_h *g,\n"
27427 "                const char *path);\n"
27428 "\n"
27429
27430 #. type: textblock
27431 #: ../src/guestfs-actions.pod:3981
27432 msgid ""
27433 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27434 "link, then the link is stat-ed, not the file it refers to."
27435 msgstr ""
27436
27437 #. type: textblock
27438 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:6762
27439 msgid ""
27440 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27441 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27442 msgstr ""
27443
27444 #. type: textblock
27445 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
27446 #: ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:7165
27447 msgid "(Added in 0.9.2)"
27448 msgstr "(Додано у 0.9.2)"
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:3993
27452 msgid "guestfs_lstatlist"
27453 msgstr "guestfs_lstatlist"
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:3995
27457 #, no-wrap
27458 msgid ""
27459 " struct guestfs_stat_list *\n"
27460 " guestfs_lstatlist (guestfs_h *g,\n"
27461 "                    const char *path,\n"
27462 "                    char *const *names);\n"
27463 "\n"
27464 msgstr ""
27465 " struct guestfs_stat_list *\n"
27466 " guestfs_lstatlist (guestfs_h *g,\n"
27467 "                    const char *path,\n"
27468 "                    char *const *names);\n"
27469 "\n"
27470
27471 #. type: textblock
27472 #: ../src/guestfs-actions.pod:4000
27473 msgid ""
27474 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27475 "files, where all files are in the directory C<path>.  C<names> is the list "
27476 "of files from this directory."
27477 msgstr ""
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:4009
27481 msgid ""
27482 "This call is intended for programs that want to efficiently list a directory "
27483 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27484 "for a similarly efficient call for getting extended attributes.  Very long "
27485 "directory listings might cause the protocol message size to be exceeded, "
27486 "causing this call to fail.  The caller must split up such requests into "
27487 "smaller groups of names."
27488 msgstr ""
27489
27490 #. type: textblock
27491 #: ../src/guestfs-actions.pod:4017
27492 msgid ""
27493 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27494 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../src/guestfs-actions.pod:4023
27499 msgid "guestfs_luks_add_key"
27500 msgstr "guestfs_luks_add_key"
27501
27502 #. type: verbatim
27503 #: ../src/guestfs-actions.pod:4025
27504 #, no-wrap
27505 msgid ""
27506 " int\n"
27507 " guestfs_luks_add_key (guestfs_h *g,\n"
27508 "                       const char *device,\n"
27509 "                       const char *key,\n"
27510 "                       const char *newkey,\n"
27511 "                       int keyslot);\n"
27512 "\n"
27513 msgstr ""
27514 " int\n"
27515 " guestfs_luks_add_key (guestfs_h *g,\n"
27516 "                       const char *device,\n"
27517 "                       const char *key,\n"
27518 "                       const char *newkey,\n"
27519 "                       int keyslot);\n"
27520 "\n"
27521
27522 #. type: textblock
27523 #: ../src/guestfs-actions.pod:4037
27524 msgid ""
27525 "Note that if C<keyslot> already contains a key, then this command will "
27526 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4083
27531 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4126
27532 #: ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4180
27533 msgid ""
27534 "This function takes a key or passphrase parameter which could contain "
27535 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27536 "information."
27537 msgstr ""
27538
27539 #. type: textblock
27540 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
27541 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
27542 msgid "(Added in 1.5.2)"
27543 msgstr "(Додано у 1.5.2)"
27544
27545 #. type: =head2
27546 #: ../src/guestfs-actions.pod:4049
27547 msgid "guestfs_luks_close"
27548 msgstr "guestfs_luks_close"
27549
27550 #. type: verbatim
27551 #: ../src/guestfs-actions.pod:4051
27552 #, no-wrap
27553 msgid ""
27554 " int\n"
27555 " guestfs_luks_close (guestfs_h *g,\n"
27556 "                     const char *device);\n"
27557 "\n"
27558 msgstr ""
27559 " int\n"
27560 " guestfs_luks_close (guestfs_h *g,\n"
27561 "                     const char *device);\n"
27562 "\n"
27563
27564 #. type: textblock
27565 #: ../src/guestfs-actions.pod:4055
27566 msgid ""
27567 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27568 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27569 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27570 "underlying block device."
27571 msgstr ""
27572
27573 #. type: textblock
27574 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4165
27575 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4234
27576 #: ../src/guestfs-actions.pod:4282
27577 msgid "(Added in 1.5.1)"
27578 msgstr "(Додано у 1.5.1)"
27579
27580 #. type: =head2
27581 #: ../src/guestfs-actions.pod:4065
27582 msgid "guestfs_luks_format"
27583 msgstr "guestfs_luks_format"
27584
27585 #. type: verbatim
27586 #: ../src/guestfs-actions.pod:4067
27587 #, no-wrap
27588 msgid ""
27589 " int\n"
27590 " guestfs_luks_format (guestfs_h *g,\n"
27591 "                      const char *device,\n"
27592 "                      const char *key,\n"
27593 "                      int keyslot);\n"
27594 "\n"
27595 msgstr ""
27596 " int\n"
27597 " guestfs_luks_format (guestfs_h *g,\n"
27598 "                      const char *device,\n"
27599 "                      const char *key,\n"
27600 "                      int keyslot);\n"
27601 "\n"
27602
27603 #. type: =head2
27604 #: ../src/guestfs-actions.pod:4089
27605 msgid "guestfs_luks_format_cipher"
27606 msgstr "guestfs_luks_format_cipher"
27607
27608 #. type: verbatim
27609 #: ../src/guestfs-actions.pod:4091
27610 #, no-wrap
27611 msgid ""
27612 " int\n"
27613 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27614 "                             const char *device,\n"
27615 "                             const char *key,\n"
27616 "                             int keyslot,\n"
27617 "                             const char *cipher);\n"
27618 "\n"
27619 msgstr ""
27620 " int\n"
27621 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27622 "                             const char *device,\n"
27623 "                             const char *key,\n"
27624 "                             int keyslot,\n"
27625 "                             const char *cipher);\n"
27626 "\n"
27627
27628 #. type: textblock
27629 #: ../src/guestfs-actions.pod:4098
27630 msgid ""
27631 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27632 "set the C<cipher> used."
27633 msgstr ""
27634
27635 #. type: =head2
27636 #: ../src/guestfs-actions.pod:4112
27637 msgid "guestfs_luks_kill_slot"
27638 msgstr "guestfs_luks_kill_slot"
27639
27640 #. type: verbatim
27641 #: ../src/guestfs-actions.pod:4114
27642 #, no-wrap
27643 msgid ""
27644 " int\n"
27645 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27646 "                         const char *device,\n"
27647 "                         const char *key,\n"
27648 "                         int keyslot);\n"
27649 "\n"
27650 msgstr ""
27651 " int\n"
27652 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27653 "                         const char *device,\n"
27654 "                         const char *key,\n"
27655 "                         int keyslot);\n"
27656 "\n"
27657
27658 #. type: =head2
27659 #: ../src/guestfs-actions.pod:4132
27660 msgid "guestfs_luks_open"
27661 msgstr "guestfs_luks_open"
27662
27663 #. type: verbatim
27664 #: ../src/guestfs-actions.pod:4134
27665 #, no-wrap
27666 msgid ""
27667 " int\n"
27668 " guestfs_luks_open (guestfs_h *g,\n"
27669 "                    const char *device,\n"
27670 "                    const char *key,\n"
27671 "                    const char *mapname);\n"
27672 "\n"
27673 msgstr ""
27674 " int\n"
27675 " guestfs_luks_open (guestfs_h *g,\n"
27676 "                    const char *device,\n"
27677 "                    const char *key,\n"
27678 "                    const char *mapname);\n"
27679 "\n"
27680
27681 #. type: textblock
27682 #: ../src/guestfs-actions.pod:4152
27683 msgid ""
27684 "If this block device contains LVM volume groups, then calling "
27685 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27686 "visible."
27687 msgstr ""
27688
27689 #. type: textblock
27690 #: ../src/guestfs-actions.pod:4156
27691 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27692 msgstr ""
27693
27694 #. type: =head2
27695 #: ../src/guestfs-actions.pod:4167
27696 msgid "guestfs_luks_open_ro"
27697 msgstr "guestfs_luks_open_ro"
27698
27699 #. type: verbatim
27700 #: ../src/guestfs-actions.pod:4169
27701 #, no-wrap
27702 msgid ""
27703 " int\n"
27704 " guestfs_luks_open_ro (guestfs_h *g,\n"
27705 "                       const char *device,\n"
27706 "                       const char *key,\n"
27707 "                       const char *mapname);\n"
27708 "\n"
27709 msgstr ""
27710 " int\n"
27711 " guestfs_luks_open_ro (guestfs_h *g,\n"
27712 "                       const char *device,\n"
27713 "                       const char *key,\n"
27714 "                       const char *mapname);\n"
27715 "\n"
27716
27717 #. type: textblock
27718 #: ../src/guestfs-actions.pod:4175
27719 msgid ""
27720 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27721 "created."
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:4186
27726 msgid "guestfs_lvcreate"
27727 msgstr "guestfs_lvcreate"
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:4188
27731 #, no-wrap
27732 msgid ""
27733 " int\n"
27734 " guestfs_lvcreate (guestfs_h *g,\n"
27735 "                   const char *logvol,\n"
27736 "                   const char *volgroup,\n"
27737 "                   int mbytes);\n"
27738 "\n"
27739 msgstr ""
27740 " int\n"
27741 " guestfs_lvcreate (guestfs_h *g,\n"
27742 "                   const char *logvol,\n"
27743 "                   const char *volgroup,\n"
27744 "                   int mbytes);\n"
27745 "\n"
27746
27747 #. type: =head2
27748 #: ../src/guestfs-actions.pod:4201
27749 msgid "guestfs_lvm_canonical_lv_name"
27750 msgstr "guestfs_lvm_canonical_lv_name"
27751
27752 #. type: verbatim
27753 #: ../src/guestfs-actions.pod:4203
27754 #, no-wrap
27755 msgid ""
27756 " char *\n"
27757 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27758 "                                const char *lvname);\n"
27759 "\n"
27760 msgstr ""
27761 " char *\n"
27762 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27763 "                                const char *lvname);\n"
27764 "\n"
27765
27766 #. type: textblock
27767 #: ../src/guestfs-actions.pod:4214
27768 msgid "See also C<guestfs_is_lv>."
27769 msgstr ""
27770
27771 #. type: textblock
27772 #: ../src/guestfs-actions.pod:4219
27773 msgid "(Added in 1.5.24)"
27774 msgstr "(Додано у 1.5.24)"
27775
27776 #. type: =head2
27777 #: ../src/guestfs-actions.pod:4221
27778 msgid "guestfs_lvm_clear_filter"
27779 msgstr "guestfs_lvm_clear_filter"
27780
27781 #. type: verbatim
27782 #: ../src/guestfs-actions.pod:4223
27783 #, no-wrap
27784 msgid ""
27785 " int\n"
27786 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27787 "\n"
27788 msgstr ""
27789 " int\n"
27790 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27791 "\n"
27792
27793 #. type: textblock
27794 #: ../src/guestfs-actions.pod:4226
27795 msgid ""
27796 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27797 "see every block device."
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../src/guestfs-actions.pod:4236
27802 msgid "guestfs_lvm_remove_all"
27803 msgstr "guestfs_lvm_remove_all"
27804
27805 #. type: verbatim
27806 #: ../src/guestfs-actions.pod:4238
27807 #, no-wrap
27808 msgid ""
27809 " int\n"
27810 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27811 "\n"
27812 msgstr ""
27813 " int\n"
27814 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27815 "\n"
27816
27817 #. type: =head2
27818 #: ../src/guestfs-actions.pod:4251
27819 msgid "guestfs_lvm_set_filter"
27820 msgstr "guestfs_lvm_set_filter"
27821
27822 #. type: verbatim
27823 #: ../src/guestfs-actions.pod:4253
27824 #, no-wrap
27825 msgid ""
27826 " int\n"
27827 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27828 "                         char *const *devices);\n"
27829 "\n"
27830 msgstr ""
27831 " int\n"
27832 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27833 "                         char *const *devices);\n"
27834 "\n"
27835
27836 #. type: =head2
27837 #: ../src/guestfs-actions.pod:4284
27838 msgid "guestfs_lvremove"
27839 msgstr "guestfs_lvremove"
27840
27841 #. type: verbatim
27842 #: ../src/guestfs-actions.pod:4286
27843 #, no-wrap
27844 msgid ""
27845 " int\n"
27846 " guestfs_lvremove (guestfs_h *g,\n"
27847 "                   const char *device);\n"
27848 "\n"
27849 msgstr ""
27850 " int\n"
27851 " guestfs_lvremove (guestfs_h *g,\n"
27852 "                   const char *device);\n"
27853 "\n"
27854
27855 #. type: textblock
27856 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:5701
27857 #: ../src/guestfs-actions.pod:7535
27858 msgid "(Added in 1.0.13)"
27859 msgstr "(Додано у 1.0.13)"
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:4300
27863 msgid "guestfs_lvrename"
27864 msgstr "guestfs_lvrename"
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:4302
27868 #, no-wrap
27869 msgid ""
27870 " int\n"
27871 " guestfs_lvrename (guestfs_h *g,\n"
27872 "                   const char *logvol,\n"
27873 "                   const char *newlogvol);\n"
27874 "\n"
27875 msgstr ""
27876 " int\n"
27877 " guestfs_lvrename (guestfs_h *g,\n"
27878 "                   const char *logvol,\n"
27879 "                   const char *newlogvol);\n"
27880 "\n"
27881
27882 #. type: textblock
27883 #: ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:7548
27884 msgid "(Added in 1.0.83)"
27885 msgstr "(Додано у 1.0.83)"
27886
27887 #. type: =head2
27888 #: ../src/guestfs-actions.pod:4313
27889 msgid "guestfs_lvresize"
27890 msgstr "guestfs_lvresize"
27891
27892 #. type: verbatim
27893 #: ../src/guestfs-actions.pod:4315
27894 #, no-wrap
27895 msgid ""
27896 " int\n"
27897 " guestfs_lvresize (guestfs_h *g,\n"
27898 "                   const char *device,\n"
27899 "                   int mbytes);\n"
27900 "\n"
27901 msgstr ""
27902 " int\n"
27903 " guestfs_lvresize (guestfs_h *g,\n"
27904 "                   const char *device,\n"
27905 "                   int mbytes);\n"
27906 "\n"
27907
27908 #. type: =head2
27909 #: ../src/guestfs-actions.pod:4328
27910 msgid "guestfs_lvresize_free"
27911 msgstr "guestfs_lvresize_free"
27912
27913 #. type: verbatim
27914 #: ../src/guestfs-actions.pod:4330
27915 #, no-wrap
27916 msgid ""
27917 " int\n"
27918 " guestfs_lvresize_free (guestfs_h *g,\n"
27919 "                        const char *lv,\n"
27920 "                        int percent);\n"
27921 "\n"
27922 msgstr ""
27923 " int\n"
27924 " guestfs_lvresize_free (guestfs_h *g,\n"
27925 "                        const char *lv,\n"
27926 "                        int percent);\n"
27927 "\n"
27928
27929 #. type: textblock
27930 #: ../src/guestfs-actions.pod:4343
27931 msgid "(Added in 1.3.3)"
27932 msgstr "(Додано у 1.3.3)"
27933
27934 #. type: =head2
27935 #: ../src/guestfs-actions.pod:4345
27936 msgid "guestfs_lvs"
27937 msgstr "guestfs_lvs"
27938
27939 #. type: verbatim
27940 #: ../src/guestfs-actions.pod:4347
27941 #, no-wrap
27942 msgid ""
27943 " char **\n"
27944 " guestfs_lvs (guestfs_h *g);\n"
27945 "\n"
27946 msgstr ""
27947 " char **\n"
27948 " guestfs_lvs (guestfs_h *g);\n"
27949 "\n"
27950
27951 #. type: textblock
27952 #: ../src/guestfs-actions.pod:4356
27953 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27954 msgstr ""
27955
27956 #. type: =head2
27957 #: ../src/guestfs-actions.pod:4364
27958 msgid "guestfs_lvs_full"
27959 msgstr "guestfs_lvs_full"
27960
27961 #. type: verbatim
27962 #: ../src/guestfs-actions.pod:4366
27963 #, no-wrap
27964 msgid ""
27965 " struct guestfs_lvm_lv_list *\n"
27966 " guestfs_lvs_full (guestfs_h *g);\n"
27967 "\n"
27968 msgstr ""
27969 " struct guestfs_lvm_lv_list *\n"
27970 " guestfs_lvs_full (guestfs_h *g);\n"
27971 "\n"
27972
27973 #. type: textblock
27974 #: ../src/guestfs-actions.pod:4372
27975 msgid ""
27976 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27977 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27978 msgstr ""
27979
27980 #. type: =head2
27981 #: ../src/guestfs-actions.pod:4378
27982 msgid "guestfs_lvuuid"
27983 msgstr "guestfs_lvuuid"
27984
27985 #. type: verbatim
27986 #: ../src/guestfs-actions.pod:4380
27987 #, no-wrap
27988 msgid ""
27989 " char *\n"
27990 " guestfs_lvuuid (guestfs_h *g,\n"
27991 "                 const char *device);\n"
27992 "\n"
27993 msgstr ""
27994 " char *\n"
27995 " guestfs_lvuuid (guestfs_h *g,\n"
27996 "                 const char *device);\n"
27997 "\n"
27998
27999 #. type: =head2
28000 #: ../src/guestfs-actions.pod:4391
28001 msgid "guestfs_lxattrlist"
28002 msgstr "guestfs_lxattrlist"
28003
28004 #. type: verbatim
28005 #: ../src/guestfs-actions.pod:4393
28006 #, no-wrap
28007 msgid ""
28008 " struct guestfs_xattr_list *\n"
28009 " guestfs_lxattrlist (guestfs_h *g,\n"
28010 "                     const char *path,\n"
28011 "                     char *const *names);\n"
28012 "\n"
28013 msgstr ""
28014 " struct guestfs_xattr_list *\n"
28015 " guestfs_lxattrlist (guestfs_h *g,\n"
28016 "                     const char *path,\n"
28017 "                     char *const *names);\n"
28018 "\n"
28019
28020 #. type: textblock
28021 #: ../src/guestfs-actions.pod:4412
28022 msgid ""
28023 "This call is intended for programs that want to efficiently list a directory "
28024 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28025 "a similarly efficient call for getting standard stats.  Very long directory "
28026 "listings might cause the protocol message size to be exceeded, causing this "
28027 "call to fail.  The caller must split up such requests into smaller groups of "
28028 "names."
28029 msgstr ""
28030
28031 #. type: =head2
28032 #: ../src/guestfs-actions.pod:4426
28033 msgid "guestfs_mkdir"
28034 msgstr "guestfs_mkdir"
28035
28036 #. type: verbatim
28037 #: ../src/guestfs-actions.pod:4428
28038 #, no-wrap
28039 msgid ""
28040 " int\n"
28041 " guestfs_mkdir (guestfs_h *g,\n"
28042 "                const char *path);\n"
28043 "\n"
28044 msgstr ""
28045 " int\n"
28046 " guestfs_mkdir (guestfs_h *g,\n"
28047 "                const char *path);\n"
28048 "\n"
28049
28050 #. type: =head2
28051 #: ../src/guestfs-actions.pod:4438
28052 msgid "guestfs_mkdir_mode"
28053 msgstr "guestfs_mkdir_mode"
28054
28055 #. type: verbatim
28056 #: ../src/guestfs-actions.pod:4440
28057 #, no-wrap
28058 msgid ""
28059 " int\n"
28060 " guestfs_mkdir_mode (guestfs_h *g,\n"
28061 "                     const char *path,\n"
28062 "                     int mode);\n"
28063 "\n"
28064 msgstr ""
28065 " int\n"
28066 " guestfs_mkdir_mode (guestfs_h *g,\n"
28067 "                     const char *path,\n"
28068 "                     int mode);\n"
28069 "\n"
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:4452
28073 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28074 msgstr ""
28075
28076 #. type: =head2
28077 #: ../src/guestfs-actions.pod:4458
28078 msgid "guestfs_mkdir_p"
28079 msgstr "guestfs_mkdir_p"
28080
28081 #. type: verbatim
28082 #: ../src/guestfs-actions.pod:4460
28083 #, no-wrap
28084 msgid ""
28085 " int\n"
28086 " guestfs_mkdir_p (guestfs_h *g,\n"
28087 "                  const char *path);\n"
28088 "\n"
28089 msgstr ""
28090 " int\n"
28091 " guestfs_mkdir_p (guestfs_h *g,\n"
28092 "                  const char *path);\n"
28093 "\n"
28094
28095 #. type: =head2
28096 #: ../src/guestfs-actions.pod:4471
28097 msgid "guestfs_mkdtemp"
28098 msgstr "guestfs_mkdtemp"
28099
28100 #. type: verbatim
28101 #: ../src/guestfs-actions.pod:4473
28102 #, no-wrap
28103 msgid ""
28104 " char *\n"
28105 " guestfs_mkdtemp (guestfs_h *g,\n"
28106 "                  const char *template);\n"
28107 "\n"
28108 msgstr ""
28109 " char *\n"
28110 " guestfs_mkdtemp (guestfs_h *g,\n"
28111 "                  const char *template);\n"
28112 "\n"
28113
28114 #. type: =head2
28115 #: ../src/guestfs-actions.pod:4501
28116 msgid "guestfs_mke2fs_J"
28117 msgstr "guestfs_mke2fs_J"
28118
28119 #. type: verbatim
28120 #: ../src/guestfs-actions.pod:4503
28121 #, no-wrap
28122 msgid ""
28123 " int\n"
28124 " guestfs_mke2fs_J (guestfs_h *g,\n"
28125 "                   const char *fstype,\n"
28126 "                   int blocksize,\n"
28127 "                   const char *device,\n"
28128 "                   const char *journal);\n"
28129 "\n"
28130 msgstr ""
28131 " int\n"
28132 " guestfs_mke2fs_J (guestfs_h *g,\n"
28133 "                   const char *fstype,\n"
28134 "                   int blocksize,\n"
28135 "                   const char *device,\n"
28136 "                   const char *journal);\n"
28137 "\n"
28138
28139 #. type: textblock
28140 #: ../src/guestfs-actions.pod:4516
28141 msgid "See also C<guestfs_mke2journal>."
28142 msgstr ""
28143
28144 #. type: textblock
28145 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4538
28146 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4572
28147 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4600
28148 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4936
28149 msgid "(Added in 1.0.68)"
28150 msgstr "(Додано у 1.0.68)"
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:4522
28154 msgid "guestfs_mke2fs_JL"
28155 msgstr "guestfs_mke2fs_JL"
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:4524
28159 #, no-wrap
28160 msgid ""
28161 " int\n"
28162 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28163 "                    const char *fstype,\n"
28164 "                    int blocksize,\n"
28165 "                    const char *device,\n"
28166 "                    const char *label);\n"
28167 "\n"
28168 msgstr ""
28169 " int\n"
28170 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28171 "                    const char *fstype,\n"
28172 "                    int blocksize,\n"
28173 "                    const char *device,\n"
28174 "                    const char *label);\n"
28175 "\n"
28176
28177 #. type: textblock
28178 #: ../src/guestfs-actions.pod:4534
28179 msgid "See also C<guestfs_mke2journal_L>."
28180 msgstr ""
28181
28182 #. type: =head2
28183 #: ../src/guestfs-actions.pod:4540
28184 msgid "guestfs_mke2fs_JU"
28185 msgstr "guestfs_mke2fs_JU"
28186
28187 #. type: verbatim
28188 #: ../src/guestfs-actions.pod:4542
28189 #, no-wrap
28190 msgid ""
28191 " int\n"
28192 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28193 "                    const char *fstype,\n"
28194 "                    int blocksize,\n"
28195 "                    const char *device,\n"
28196 "                    const char *uuid);\n"
28197 "\n"
28198 msgstr ""
28199 " int\n"
28200 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28201 "                    const char *fstype,\n"
28202 "                    int blocksize,\n"
28203 "                    const char *device,\n"
28204 "                    const char *uuid);\n"
28205 "\n"
28206
28207 #. type: textblock
28208 #: ../src/guestfs-actions.pod:4552
28209 msgid "See also C<guestfs_mke2journal_U>."
28210 msgstr ""
28211
28212 #. type: =head2
28213 #: ../src/guestfs-actions.pod:4558
28214 msgid "guestfs_mke2journal"
28215 msgstr "guestfs_mke2journal"
28216
28217 #. type: verbatim
28218 #: ../src/guestfs-actions.pod:4560
28219 #, no-wrap
28220 msgid ""
28221 " int\n"
28222 " guestfs_mke2journal (guestfs_h *g,\n"
28223 "                      int blocksize,\n"
28224 "                      const char *device);\n"
28225 "\n"
28226 msgstr ""
28227 " int\n"
28228 " guestfs_mke2journal (guestfs_h *g,\n"
28229 "                      int blocksize,\n"
28230 "                      const char *device);\n"
28231 "\n"
28232
28233 #. type: =head2
28234 #: ../src/guestfs-actions.pod:4574
28235 msgid "guestfs_mke2journal_L"
28236 msgstr "guestfs_mke2journal_L"
28237
28238 #. type: verbatim
28239 #: ../src/guestfs-actions.pod:4576
28240 #, no-wrap
28241 msgid ""
28242 " int\n"
28243 " guestfs_mke2journal_L (guestfs_h *g,\n"
28244 "                        int blocksize,\n"
28245 "                        const char *label,\n"
28246 "                        const char *device);\n"
28247 "\n"
28248 msgstr ""
28249 " int\n"
28250 " guestfs_mke2journal_L (guestfs_h *g,\n"
28251 "                        int blocksize,\n"
28252 "                        const char *label,\n"
28253 "                        const char *device);\n"
28254 "\n"
28255
28256 #. type: =head2
28257 #: ../src/guestfs-actions.pod:4588
28258 msgid "guestfs_mke2journal_U"
28259 msgstr "guestfs_mke2journal_U"
28260
28261 #. type: verbatim
28262 #: ../src/guestfs-actions.pod:4590
28263 #, no-wrap
28264 msgid ""
28265 " int\n"
28266 " guestfs_mke2journal_U (guestfs_h *g,\n"
28267 "                        int blocksize,\n"
28268 "                        const char *uuid,\n"
28269 "                        const char *device);\n"
28270 "\n"
28271 msgstr ""
28272 " int\n"
28273 " guestfs_mke2journal_U (guestfs_h *g,\n"
28274 "                        int blocksize,\n"
28275 "                        const char *uuid,\n"
28276 "                        const char *device);\n"
28277 "\n"
28278
28279 #. type: =head2
28280 #: ../src/guestfs-actions.pod:4602
28281 msgid "guestfs_mkfifo"
28282 msgstr "guestfs_mkfifo"
28283
28284 #. type: verbatim
28285 #: ../src/guestfs-actions.pod:4604
28286 #, no-wrap
28287 msgid ""
28288 " int\n"
28289 " guestfs_mkfifo (guestfs_h *g,\n"
28290 "                 int mode,\n"
28291 "                 const char *path);\n"
28292 "\n"
28293 msgstr ""
28294 " int\n"
28295 " guestfs_mkfifo (guestfs_h *g,\n"
28296 "                 int mode,\n"
28297 "                 const char *path);\n"
28298 "\n"
28299
28300 #. type: textblock
28301 #: ../src/guestfs-actions.pod:4609
28302 msgid ""
28303 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28304 "is just a convenient wrapper around C<guestfs_mknod>."
28305 msgstr ""
28306
28307 #. type: =head2
28308 #: ../src/guestfs-actions.pod:4619
28309 msgid "guestfs_mkfs"
28310 msgstr "guestfs_mkfs"
28311
28312 #. type: verbatim
28313 #: ../src/guestfs-actions.pod:4621
28314 #, no-wrap
28315 msgid ""
28316 " int\n"
28317 " guestfs_mkfs (guestfs_h *g,\n"
28318 "               const char *fstype,\n"
28319 "               const char *device);\n"
28320 "\n"
28321 msgstr ""
28322 " int\n"
28323 " guestfs_mkfs (guestfs_h *g,\n"
28324 "               const char *fstype,\n"
28325 "               const char *device);\n"
28326 "\n"
28327
28328 #. type: =head2
28329 #: ../src/guestfs-actions.pod:4634
28330 msgid "guestfs_mkfs_b"
28331 msgstr "guestfs_mkfs_b"
28332
28333 #. type: verbatim
28334 #: ../src/guestfs-actions.pod:4636
28335 #, no-wrap
28336 msgid ""
28337 " int\n"
28338 " guestfs_mkfs_b (guestfs_h *g,\n"
28339 "                 const char *fstype,\n"
28340 "                 int blocksize,\n"
28341 "                 const char *device);\n"
28342 "\n"
28343 msgstr ""
28344 " int\n"
28345 " guestfs_mkfs_b (guestfs_h *g,\n"
28346 "                 const char *fstype,\n"
28347 "                 int blocksize,\n"
28348 "                 const char *device);\n"
28349 "\n"
28350
28351 #. type: textblock
28352 #: ../src/guestfs-actions.pod:4642
28353 msgid ""
28354 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28355 "block size of the resulting filesystem.  Supported block sizes depend on the "
28356 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28357 msgstr ""
28358
28359 #. type: textblock
28360 #: ../src/guestfs-actions.pod:4652
28361 msgid ""
28362 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
28363 "call instead."
28364 msgstr ""
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:4661
28368 msgid "guestfs_mkfs_opts"
28369 msgstr "guestfs_mkfs_opts"
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:4663
28373 #, no-wrap
28374 msgid ""
28375 " int\n"
28376 " guestfs_mkfs_opts (guestfs_h *g,\n"
28377 "                    const char *fstype,\n"
28378 "                    const char *device,\n"
28379 "                    ...);\n"
28380 "\n"
28381 msgstr ""
28382 " int\n"
28383 " guestfs_mkfs_opts (guestfs_h *g,\n"
28384 "                    const char *fstype,\n"
28385 "                    const char *device,\n"
28386 "                    ...);\n"
28387 "\n"
28388
28389 #. type: verbatim
28390 #: ../src/guestfs-actions.pod:4674
28391 #, no-wrap
28392 msgid ""
28393 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28394 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28395 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28396 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28397 "\n"
28398 msgstr ""
28399
28400 #. type: textblock
28401 #: ../src/guestfs-actions.pod:4722
28402 msgid "(Added in 1.7.19)"
28403 msgstr "(Додано у 1.7.19)"
28404
28405 #. type: =head2
28406 #: ../src/guestfs-actions.pod:4724
28407 msgid "guestfs_mkfs_opts_va"
28408 msgstr "guestfs_mkfs_opts_va"
28409
28410 #. type: verbatim
28411 #: ../src/guestfs-actions.pod:4726
28412 #, no-wrap
28413 msgid ""
28414 " int\n"
28415 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28416 "                       const char *fstype,\n"
28417 "                       const char *device,\n"
28418 "                       va_list args);\n"
28419 "\n"
28420 msgstr ""
28421 " int\n"
28422 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28423 "                       const char *fstype,\n"
28424 "                       const char *device,\n"
28425 "                       va_list args);\n"
28426 "\n"
28427
28428 #. type: textblock
28429 #: ../src/guestfs-actions.pod:4732
28430 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:4736
28435 msgid "guestfs_mkfs_opts_argv"
28436 msgstr "guestfs_mkfs_opts_argv"
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:4738
28440 #, no-wrap
28441 msgid ""
28442 " int\n"
28443 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28444 "                         const char *fstype,\n"
28445 "                         const char *device,\n"
28446 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28447 "\n"
28448 msgstr ""
28449 " int\n"
28450 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28451 "                         const char *fstype,\n"
28452 "                         const char *device,\n"
28453 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28454 "\n"
28455
28456 #. type: textblock
28457 #: ../src/guestfs-actions.pod:4744
28458 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../src/guestfs-actions.pod:4748
28463 msgid "guestfs_mkmountpoint"
28464 msgstr "guestfs_mkmountpoint"
28465
28466 #. type: verbatim
28467 #: ../src/guestfs-actions.pod:4750
28468 #, no-wrap
28469 msgid ""
28470 " int\n"
28471 " guestfs_mkmountpoint (guestfs_h *g,\n"
28472 "                       const char *exemptpath);\n"
28473 "\n"
28474 msgstr ""
28475 " int\n"
28476 " guestfs_mkmountpoint (guestfs_h *g,\n"
28477 "                       const char *exemptpath);\n"
28478 "\n"
28479
28480 #. type: textblock
28481 #: ../src/guestfs-actions.pod:4754
28482 msgid ""
28483 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28484 "that can be used to create extra mountpoints before mounting the first "
28485 "filesystem."
28486 msgstr ""
28487
28488 #. type: textblock
28489 #: ../src/guestfs-actions.pod:4778
28490 msgid ""
28491 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28492 "may get unexpected errors if you try to mix these calls.  It is safest to "
28493 "manually unmount filesystems and remove mountpoints after use."
28494 msgstr ""
28495
28496 #. type: textblock
28497 #: ../src/guestfs-actions.pod:4782
28498 msgid ""
28499 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28500 "first, so for this to work for manual mountpoints, you must ensure that the "
28501 "innermost mountpoints have the longest pathnames, as in the example code "
28502 "above."
28503 msgstr ""
28504
28505 #. type: textblock
28506 #: ../src/guestfs-actions.pod:4789
28507 msgid ""
28508 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28509 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28510 "can also trigger these issues."
28511 msgstr ""
28512
28513 #. type: textblock
28514 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5111
28515 #: ../src/guestfs-actions.pod:6121
28516 msgid "(Added in 1.0.62)"
28517 msgstr "(Додано у 1.0.62)"
28518
28519 #. type: =head2
28520 #: ../src/guestfs-actions.pod:4797
28521 msgid "guestfs_mknod"
28522 msgstr ""
28523
28524 #. type: verbatim
28525 #: ../src/guestfs-actions.pod:4799
28526 #, no-wrap
28527 msgid ""
28528 " int\n"
28529 " guestfs_mknod (guestfs_h *g,\n"
28530 "                int mode,\n"
28531 "                int devmajor,\n"
28532 "                int devminor,\n"
28533 "                const char *path);\n"
28534 "\n"
28535 msgstr ""
28536
28537 #. type: textblock
28538 #: ../src/guestfs-actions.pod:4814
28539 msgid ""
28540 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28541 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28542 "regular file).  These constants are available in the standard Linux header "
28543 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28544 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28545 "the appropriate constant for you."
28546 msgstr ""
28547
28548 #. type: =head2
28549 #: ../src/guestfs-actions.pod:4828
28550 msgid "guestfs_mknod_b"
28551 msgstr ""
28552
28553 #. type: verbatim
28554 #: ../src/guestfs-actions.pod:4830
28555 #, no-wrap
28556 msgid ""
28557 " int\n"
28558 " guestfs_mknod_b (guestfs_h *g,\n"
28559 "                  int mode,\n"
28560 "                  int devmajor,\n"
28561 "                  int devminor,\n"
28562 "                  const char *path);\n"
28563 "\n"
28564 msgstr ""
28565
28566 #. type: textblock
28567 #: ../src/guestfs-actions.pod:4837
28568 msgid ""
28569 "This call creates a block device node called C<path> with mode C<mode> and "
28570 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28571 "wrapper around C<guestfs_mknod>."
28572 msgstr ""
28573
28574 #. type: =head2
28575 #: ../src/guestfs-actions.pod:4847
28576 msgid "guestfs_mknod_c"
28577 msgstr ""
28578
28579 #. type: verbatim
28580 #: ../src/guestfs-actions.pod:4849
28581 #, no-wrap
28582 msgid ""
28583 " int\n"
28584 " guestfs_mknod_c (guestfs_h *g,\n"
28585 "                  int mode,\n"
28586 "                  int devmajor,\n"
28587 "                  int devminor,\n"
28588 "                  const char *path);\n"
28589 "\n"
28590 msgstr ""
28591
28592 #. type: textblock
28593 #: ../src/guestfs-actions.pod:4856
28594 msgid ""
28595 "This call creates a char device node called C<path> with mode C<mode> and "
28596 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28597 "wrapper around C<guestfs_mknod>."
28598 msgstr ""
28599
28600 #. type: =head2
28601 #: ../src/guestfs-actions.pod:4866
28602 msgid "guestfs_mkswap"
28603 msgstr ""
28604
28605 #. type: verbatim
28606 #: ../src/guestfs-actions.pod:4868
28607 #, no-wrap
28608 msgid ""
28609 " int\n"
28610 " guestfs_mkswap (guestfs_h *g,\n"
28611 "                 const char *device);\n"
28612 "\n"
28613 msgstr ""
28614
28615 #. type: =head2
28616 #: ../src/guestfs-actions.pod:4878
28617 msgid "guestfs_mkswap_L"
28618 msgstr ""
28619
28620 #. type: verbatim
28621 #: ../src/guestfs-actions.pod:4880
28622 #, no-wrap
28623 msgid ""
28624 " int\n"
28625 " guestfs_mkswap_L (guestfs_h *g,\n"
28626 "                   const char *label,\n"
28627 "                   const char *device);\n"
28628 "\n"
28629 msgstr ""
28630
28631 #. type: =head2
28632 #: ../src/guestfs-actions.pod:4895
28633 msgid "guestfs_mkswap_U"
28634 msgstr ""
28635
28636 #. type: verbatim
28637 #: ../src/guestfs-actions.pod:4897
28638 #, no-wrap
28639 msgid ""
28640 " int\n"
28641 " guestfs_mkswap_U (guestfs_h *g,\n"
28642 "                   const char *uuid,\n"
28643 "                   const char *device);\n"
28644 "\n"
28645 msgstr ""
28646
28647 #. type: =head2
28648 #: ../src/guestfs-actions.pod:4908
28649 msgid "guestfs_mkswap_file"
28650 msgstr ""
28651
28652 #. type: verbatim
28653 #: ../src/guestfs-actions.pod:4910
28654 #, no-wrap
28655 msgid ""
28656 " int\n"
28657 " guestfs_mkswap_file (guestfs_h *g,\n"
28658 "                      const char *path);\n"
28659 "\n"
28660 msgstr ""
28661
28662 #. type: textblock
28663 #: ../src/guestfs-actions.pod:4916
28664 msgid ""
28665 "This command just writes a swap file signature to an existing file.  To "
28666 "create the file itself, use something like C<guestfs_fallocate>."
28667 msgstr ""
28668
28669 #. type: =head2
28670 #: ../src/guestfs-actions.pod:4923
28671 msgid "guestfs_modprobe"
28672 msgstr ""
28673
28674 #. type: verbatim
28675 #: ../src/guestfs-actions.pod:4925
28676 #, no-wrap
28677 msgid ""
28678 " int\n"
28679 " guestfs_modprobe (guestfs_h *g,\n"
28680 "                   const char *modulename);\n"
28681 "\n"
28682 msgstr ""
28683
28684 #. type: =head2
28685 #: ../src/guestfs-actions.pod:4938
28686 msgid "guestfs_mount"
28687 msgstr ""
28688
28689 #. type: verbatim
28690 #: ../src/guestfs-actions.pod:4940
28691 #, no-wrap
28692 msgid ""
28693 " int\n"
28694 " guestfs_mount (guestfs_h *g,\n"
28695 "                const char *device,\n"
28696 "                const char *mountpoint);\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: textblock
28701 #: ../src/guestfs-actions.pod:4959
28702 msgid ""
28703 "B<Important note:> When you use this call, the filesystem options C<sync> "
28704 "and C<noatime> are set implicitly.  This was originally done because we "
28705 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28706 "very large negative performance impact and negligible effect on "
28707 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28708 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28709 "(use an empty string for the first parameter if you don't want any options)."
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:4971
28714 msgid ""
28715 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
28716 "call instead."
28717 msgstr ""
28718
28719 #. type: =head2
28720 #: ../src/guestfs-actions.pod:4980
28721 msgid "guestfs_mount_9p"
28722 msgstr ""
28723
28724 #. type: verbatim
28725 #: ../src/guestfs-actions.pod:4982
28726 #, no-wrap
28727 msgid ""
28728 " int\n"
28729 " guestfs_mount_9p (guestfs_h *g,\n"
28730 "                   const char *mounttag,\n"
28731 "                   const char *mountpoint,\n"
28732 "                   ...);\n"
28733 "\n"
28734 msgstr ""
28735
28736 #. type: verbatim
28737 #: ../src/guestfs-actions.pod:4993
28738 #, no-wrap
28739 msgid ""
28740 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28741 "\n"
28742 msgstr ""
28743
28744 #. type: =head2
28745 #: ../src/guestfs-actions.pod:5006
28746 msgid "guestfs_mount_9p_va"
28747 msgstr ""
28748
28749 #. type: verbatim
28750 #: ../src/guestfs-actions.pod:5008
28751 #, no-wrap
28752 msgid ""
28753 " int\n"
28754 " guestfs_mount_9p_va (guestfs_h *g,\n"
28755 "                      const char *mounttag,\n"
28756 "                      const char *mountpoint,\n"
28757 "                      va_list args);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: textblock
28762 #: ../src/guestfs-actions.pod:5014
28763 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28764 msgstr ""
28765
28766 #. type: =head2
28767 #: ../src/guestfs-actions.pod:5018
28768 msgid "guestfs_mount_9p_argv"
28769 msgstr ""
28770
28771 #. type: verbatim
28772 #: ../src/guestfs-actions.pod:5020
28773 #, no-wrap
28774 msgid ""
28775 " int\n"
28776 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28777 "                        const char *mounttag,\n"
28778 "                        const char *mountpoint,\n"
28779 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:5026
28785 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28786 msgstr ""
28787
28788 #. type: =head2
28789 #: ../src/guestfs-actions.pod:5030
28790 msgid "guestfs_mount_loop"
28791 msgstr ""
28792
28793 #. type: verbatim
28794 #: ../src/guestfs-actions.pod:5032
28795 #, no-wrap
28796 msgid ""
28797 " int\n"
28798 " guestfs_mount_loop (guestfs_h *g,\n"
28799 "                     const char *file,\n"
28800 "                     const char *mountpoint);\n"
28801 "\n"
28802 msgstr ""
28803
28804 #. type: =head2
28805 #: ../src/guestfs-actions.pod:5045
28806 msgid "guestfs_mount_options"
28807 msgstr ""
28808
28809 #. type: verbatim
28810 #: ../src/guestfs-actions.pod:5047
28811 #, no-wrap
28812 msgid ""
28813 " int\n"
28814 " guestfs_mount_options (guestfs_h *g,\n"
28815 "                        const char *options,\n"
28816 "                        const char *device,\n"
28817 "                        const char *mountpoint);\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:5053
28823 msgid ""
28824 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28825 "the mount options as for the L<mount(8)> I<-o> flag."
28826 msgstr ""
28827
28828 #. type: textblock
28829 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5077
28830 #: ../src/guestfs-actions.pod:5094
28831 msgid "(Added in 1.0.10)"
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:5065
28836 msgid "guestfs_mount_ro"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:5067
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_mount_ro (guestfs_h *g,\n"
28845 "                   const char *device,\n"
28846 "                   const char *mountpoint);\n"
28847 "\n"
28848 msgstr ""
28849
28850 #. type: textblock
28851 #: ../src/guestfs-actions.pod:5072
28852 msgid ""
28853 "This is the same as the C<guestfs_mount> command, but it mounts the "
28854 "filesystem with the read-only (I<-o ro>) flag."
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:5079
28859 msgid "guestfs_mount_vfs"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:5081
28864 #, no-wrap
28865 msgid ""
28866 " int\n"
28867 " guestfs_mount_vfs (guestfs_h *g,\n"
28868 "                    const char *options,\n"
28869 "                    const char *vfstype,\n"
28870 "                    const char *device,\n"
28871 "                    const char *mountpoint);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../src/guestfs-actions.pod:5088
28877 msgid ""
28878 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28879 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28880 "t> flags."
28881 msgstr ""
28882
28883 #. type: =head2
28884 #: ../src/guestfs-actions.pod:5096
28885 msgid "guestfs_mountpoints"
28886 msgstr ""
28887
28888 #. type: verbatim
28889 #: ../src/guestfs-actions.pod:5098
28890 #, no-wrap
28891 msgid ""
28892 " char **\n"
28893 " guestfs_mountpoints (guestfs_h *g);\n"
28894 "\n"
28895 msgstr ""
28896
28897 #. type: textblock
28898 #: ../src/guestfs-actions.pod:5101
28899 msgid ""
28900 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28901 "devices.  This one returns a hash table (map) of device name to directory "
28902 "where the device is mounted."
28903 msgstr ""
28904
28905 #. type: =head2
28906 #: ../src/guestfs-actions.pod:5113
28907 msgid "guestfs_mounts"
28908 msgstr ""
28909
28910 #. type: verbatim
28911 #: ../src/guestfs-actions.pod:5115
28912 #, no-wrap
28913 msgid ""
28914 " char **\n"
28915 " guestfs_mounts (guestfs_h *g);\n"
28916 "\n"
28917 msgstr ""
28918
28919 #. type: textblock
28920 #: ../src/guestfs-actions.pod:5123
28921 msgid "See also: C<guestfs_mountpoints>"
28922 msgstr ""
28923
28924 #. type: =head2
28925 #: ../src/guestfs-actions.pod:5131
28926 msgid "guestfs_mv"
28927 msgstr ""
28928
28929 #. type: verbatim
28930 #: ../src/guestfs-actions.pod:5133
28931 #, no-wrap
28932 msgid ""
28933 " int\n"
28934 " guestfs_mv (guestfs_h *g,\n"
28935 "             const char *src,\n"
28936 "             const char *dest);\n"
28937 "\n"
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:5145
28942 msgid "guestfs_ntfs_3g_probe"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:5147
28947 #, no-wrap
28948 msgid ""
28949 " int\n"
28950 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28951 "                        int rw,\n"
28952 "                        const char *device);\n"
28953 "\n"
28954 msgstr ""
28955
28956 #. type: textblock
28957 #: ../src/guestfs-actions.pod:5166
28958 msgid "(Added in 1.0.43)"
28959 msgstr ""
28960
28961 #. type: =head2
28962 #: ../src/guestfs-actions.pod:5168
28963 msgid "guestfs_ntfsresize"
28964 msgstr ""
28965
28966 #. type: verbatim
28967 #: ../src/guestfs-actions.pod:5170
28968 #, no-wrap
28969 msgid ""
28970 " int\n"
28971 " guestfs_ntfsresize (guestfs_h *g,\n"
28972 "                     const char *device);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: textblock
28977 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5279
28978 msgid ""
28979 "This function is deprecated.  In new code, use the L</"
28980 "guestfs_ntfsresize_opts> call instead."
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../src/guestfs-actions.pod:5198
28985 msgid "guestfs_ntfsresize_opts"
28986 msgstr ""
28987
28988 #. type: verbatim
28989 #: ../src/guestfs-actions.pod:5200
28990 #, no-wrap
28991 msgid ""
28992 " int\n"
28993 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28994 "                          const char *device,\n"
28995 "                          ...);\n"
28996 "\n"
28997 msgstr ""
28998
28999 #. type: verbatim
29000 #: ../src/guestfs-actions.pod:5210
29001 #, no-wrap
29002 msgid ""
29003 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29004 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:5230
29010 msgid ""
29011 "After the resize operation, the filesystem is always marked as requiring a "
29012 "consistency check (for safety).  You have to boot into Windows to perform "
29013 "this check and clear this condition.  If you I<don't> set the C<force> "
29014 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29015 "times on a single filesystem without booting into Windows between each "
29016 "resize."
29017 msgstr ""
29018
29019 #. type: =head2
29020 #: ../src/guestfs-actions.pod:5245
29021 msgid "guestfs_ntfsresize_opts_va"
29022 msgstr ""
29023
29024 #. type: verbatim
29025 #: ../src/guestfs-actions.pod:5247
29026 #, no-wrap
29027 msgid ""
29028 " int\n"
29029 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29030 "                             const char *device,\n"
29031 "                             va_list args);\n"
29032 "\n"
29033 msgstr ""
29034
29035 #. type: textblock
29036 #: ../src/guestfs-actions.pod:5252
29037 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29038 msgstr ""
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:5256
29042 msgid "guestfs_ntfsresize_opts_argv"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:5258
29047 #, no-wrap
29048 msgid ""
29049 " int\n"
29050 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29051 "                               const char *device,\n"
29052 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29053 "\n"
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../src/guestfs-actions.pod:5263
29058 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:5267
29063 msgid "guestfs_ntfsresize_size"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:5269
29068 #, no-wrap
29069 msgid ""
29070 " int\n"
29071 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29072 "                          const char *device,\n"
29073 "                          int64_t size);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:5274
29079 msgid ""
29080 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29081 "to specify the new size (in bytes) explicitly."
29082 msgstr ""
29083
29084 #. type: textblock
29085 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5728
29086 #: ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6069
29087 #: ../src/guestfs-actions.pod:7692
29088 msgid "(Added in 1.3.14)"
29089 msgstr ""
29090
29091 #. type: =head2
29092 #: ../src/guestfs-actions.pod:5288
29093 msgid "guestfs_part_add"
29094 msgstr ""
29095
29096 #. type: verbatim
29097 #: ../src/guestfs-actions.pod:5290
29098 #, no-wrap
29099 msgid ""
29100 " int\n"
29101 " guestfs_part_add (guestfs_h *g,\n"
29102 "                   const char *device,\n"
29103 "                   const char *prlogex,\n"
29104 "                   int64_t startsect,\n"
29105 "                   int64_t endsect);\n"
29106 "\n"
29107 msgstr ""
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:5297
29111 msgid ""
29112 "This command adds a partition to C<device>.  If there is no partition table "
29113 "on the device, call C<guestfs_part_init> first."
29114 msgstr ""
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:5309
29118 msgid ""
29119 "Creating a partition which covers the whole disk is not so easy.  Use "
29120 "C<guestfs_part_disk> to do that."
29121 msgstr ""
29122
29123 #. type: textblock
29124 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5352
29125 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5489
29126 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
29127 #: ../src/guestfs-actions.pod:5586
29128 msgid "(Added in 1.0.78)"
29129 msgstr ""
29130
29131 #. type: =head2
29132 #: ../src/guestfs-actions.pod:5316
29133 msgid "guestfs_part_del"
29134 msgstr ""
29135
29136 #. type: verbatim
29137 #: ../src/guestfs-actions.pod:5318
29138 #, no-wrap
29139 msgid ""
29140 " int\n"
29141 " guestfs_part_del (guestfs_h *g,\n"
29142 "                   const char *device,\n"
29143 "                   int partnum);\n"
29144 "\n"
29145 msgstr ""
29146
29147 #. type: =head2
29148 #: ../src/guestfs-actions.pod:5333
29149 msgid "guestfs_part_disk"
29150 msgstr ""
29151
29152 #. type: verbatim
29153 #: ../src/guestfs-actions.pod:5335
29154 #, no-wrap
29155 msgid ""
29156 " int\n"
29157 " guestfs_part_disk (guestfs_h *g,\n"
29158 "                    const char *device,\n"
29159 "                    const char *parttype);\n"
29160 "\n"
29161 msgstr ""
29162
29163 #. type: textblock
29164 #: ../src/guestfs-actions.pod:5340
29165 msgid ""
29166 "This command is simply a combination of C<guestfs_part_init> followed by "
29167 "C<guestfs_part_add> to create a single primary partition covering the whole "
29168 "disk."
29169 msgstr ""
29170
29171 #. type: textblock
29172 #: ../src/guestfs-actions.pod:5344
29173 msgid ""
29174 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29175 "possible values are described in C<guestfs_part_init>."
29176 msgstr ""
29177
29178 #. type: =head2
29179 #: ../src/guestfs-actions.pod:5354
29180 msgid "guestfs_part_get_bootable"
29181 msgstr ""
29182
29183 #. type: verbatim
29184 #: ../src/guestfs-actions.pod:5356
29185 #, no-wrap
29186 msgid ""
29187 " int\n"
29188 " guestfs_part_get_bootable (guestfs_h *g,\n"
29189 "                            const char *device,\n"
29190 "                            int partnum);\n"
29191 "\n"
29192 msgstr ""
29193
29194 #. type: textblock
29195 #: ../src/guestfs-actions.pod:5364
29196 msgid "See also C<guestfs_part_set_bootable>."
29197 msgstr ""
29198
29199 #. type: =head2
29200 #: ../src/guestfs-actions.pod:5370
29201 msgid "guestfs_part_get_mbr_id"
29202 msgstr ""
29203
29204 #. type: verbatim
29205 #: ../src/guestfs-actions.pod:5372
29206 #, no-wrap
29207 msgid ""
29208 " int\n"
29209 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29210 "                          const char *device,\n"
29211 "                          int partnum);\n"
29212 "\n"
29213 msgstr ""
29214
29215 #. type: textblock
29216 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5562
29217 msgid ""
29218 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29219 "undefined results for other partition table types (see "
29220 "C<guestfs_part_get_parttype>)."
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:5388
29225 msgid "guestfs_part_get_parttype"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:5390
29230 #, no-wrap
29231 msgid ""
29232 " char *\n"
29233 " guestfs_part_get_parttype (guestfs_h *g,\n"
29234 "                            const char *device);\n"
29235 "\n"
29236 msgstr ""
29237
29238 #. type: textblock
29239 #: ../src/guestfs-actions.pod:5397
29240 msgid ""
29241 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29242 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29243 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29244 msgstr ""
29245
29246 #. type: =head2
29247 #: ../src/guestfs-actions.pod:5407
29248 msgid "guestfs_part_init"
29249 msgstr ""
29250
29251 #. type: verbatim
29252 #: ../src/guestfs-actions.pod:5409
29253 #, no-wrap
29254 msgid ""
29255 " int\n"
29256 " guestfs_part_init (guestfs_h *g,\n"
29257 "                    const char *device,\n"
29258 "                    const char *parttype);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: textblock
29263 #: ../src/guestfs-actions.pod:5418
29264 msgid ""
29265 "Initially there are no partitions.  Following this, you should call "
29266 "C<guestfs_part_add> for each partition required."
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:5491
29271 msgid "guestfs_part_list"
29272 msgstr "guestfs_part_list"
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:5493
29276 #, no-wrap
29277 msgid ""
29278 " struct guestfs_partition_list *\n"
29279 " guestfs_part_list (guestfs_h *g,\n"
29280 "                    const char *device);\n"
29281 "\n"
29282 msgstr ""
29283 " struct guestfs_partition_list *\n"
29284 " guestfs_part_list (guestfs_h *g,\n"
29285 "                    const char *device);\n"
29286 "\n"
29287
29288 #. type: textblock
29289 #: ../src/guestfs-actions.pod:5510
29290 msgid ""
29291 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29292 "the device's sector size, see C<guestfs_blockdev_getss>."
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:5523
29297 msgid ""
29298 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29299 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29300 "use>."
29301 msgstr ""
29302
29303 #. type: =head2
29304 #: ../src/guestfs-actions.pod:5529
29305 msgid "guestfs_part_set_bootable"
29306 msgstr ""
29307
29308 #. type: verbatim
29309 #: ../src/guestfs-actions.pod:5531
29310 #, no-wrap
29311 msgid ""
29312 " int\n"
29313 " guestfs_part_set_bootable (guestfs_h *g,\n"
29314 "                            const char *device,\n"
29315 "                            int partnum,\n"
29316 "                            int bootable);\n"
29317 "\n"
29318 msgstr ""
29319
29320 #. type: =head2
29321 #: ../src/guestfs-actions.pod:5548
29322 msgid "guestfs_part_set_mbr_id"
29323 msgstr ""
29324
29325 #. type: verbatim
29326 #: ../src/guestfs-actions.pod:5550
29327 #, no-wrap
29328 msgid ""
29329 " int\n"
29330 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29331 "                          const char *device,\n"
29332 "                          int partnum,\n"
29333 "                          int idbyte);\n"
29334 "\n"
29335 msgstr ""
29336
29337 #. type: =head2
29338 #: ../src/guestfs-actions.pod:5570
29339 msgid "guestfs_part_set_name"
29340 msgstr ""
29341
29342 #. type: verbatim
29343 #: ../src/guestfs-actions.pod:5572
29344 #, no-wrap
29345 msgid ""
29346 " int\n"
29347 " guestfs_part_set_name (guestfs_h *g,\n"
29348 "                        const char *device,\n"
29349 "                        int partnum,\n"
29350 "                        const char *name);\n"
29351 "\n"
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:5588
29356 msgid "guestfs_part_to_dev"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:5590
29361 #, no-wrap
29362 msgid ""
29363 " char *\n"
29364 " guestfs_part_to_dev (guestfs_h *g,\n"
29365 "                      const char *partition);\n"
29366 "\n"
29367 msgstr ""
29368
29369 #. type: textblock
29370 #: ../src/guestfs-actions.pod:5598
29371 msgid ""
29372 "The named partition must exist, for example as a string returned from "
29373 "C<guestfs_list_partitions>."
29374 msgstr ""
29375
29376 #. type: =head2
29377 #: ../src/guestfs-actions.pod:5606
29378 msgid "guestfs_ping_daemon"
29379 msgstr ""
29380
29381 #. type: verbatim
29382 #: ../src/guestfs-actions.pod:5608
29383 #, no-wrap
29384 msgid ""
29385 " int\n"
29386 " guestfs_ping_daemon (guestfs_h *g);\n"
29387 "\n"
29388 msgstr ""
29389
29390 #. type: =head2
29391 #: ../src/guestfs-actions.pod:5620
29392 msgid "guestfs_pread"
29393 msgstr ""
29394
29395 #. type: verbatim
29396 #: ../src/guestfs-actions.pod:5622
29397 #, no-wrap
29398 msgid ""
29399 " char *\n"
29400 " guestfs_pread (guestfs_h *g,\n"
29401 "                const char *path,\n"
29402 "                int count,\n"
29403 "                int64_t offset,\n"
29404 "                size_t *size_r);\n"
29405 "\n"
29406 msgstr ""
29407
29408 #. type: textblock
29409 #: ../src/guestfs-actions.pod:5635
29410 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:5646
29415 msgid "guestfs_pread_device"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:5648
29420 #, no-wrap
29421 msgid ""
29422 " char *\n"
29423 " guestfs_pread_device (guestfs_h *g,\n"
29424 "                       const char *device,\n"
29425 "                       int count,\n"
29426 "                       int64_t offset,\n"
29427 "                       size_t *size_r);\n"
29428 "\n"
29429 msgstr ""
29430
29431 #. type: textblock
29432 #: ../src/guestfs-actions.pod:5661
29433 msgid "See also C<guestfs_pread>."
29434 msgstr ""
29435
29436 #. type: textblock
29437 #: ../src/guestfs-actions.pod:5670
29438 msgid "(Added in 1.5.21)"
29439 msgstr ""
29440
29441 #. type: =head2
29442 #: ../src/guestfs-actions.pod:5672
29443 msgid "guestfs_pvcreate"
29444 msgstr ""
29445
29446 #. type: verbatim
29447 #: ../src/guestfs-actions.pod:5674
29448 #, no-wrap
29449 msgid ""
29450 " int\n"
29451 " guestfs_pvcreate (guestfs_h *g,\n"
29452 "                   const char *device);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: =head2
29457 #: ../src/guestfs-actions.pod:5686
29458 msgid "guestfs_pvremove"
29459 msgstr ""
29460
29461 #. type: verbatim
29462 #: ../src/guestfs-actions.pod:5688
29463 #, no-wrap
29464 msgid ""
29465 " int\n"
29466 " guestfs_pvremove (guestfs_h *g,\n"
29467 "                   const char *device);\n"
29468 "\n"
29469 msgstr ""
29470
29471 #. type: =head2
29472 #: ../src/guestfs-actions.pod:5703
29473 msgid "guestfs_pvresize"
29474 msgstr ""
29475
29476 #. type: verbatim
29477 #: ../src/guestfs-actions.pod:5705
29478 #, no-wrap
29479 msgid ""
29480 " int\n"
29481 " guestfs_pvresize (guestfs_h *g,\n"
29482 "                   const char *device);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: =head2
29487 #: ../src/guestfs-actions.pod:5716
29488 msgid "guestfs_pvresize_size"
29489 msgstr ""
29490
29491 #. type: verbatim
29492 #: ../src/guestfs-actions.pod:5718
29493 #, no-wrap
29494 msgid ""
29495 " int\n"
29496 " guestfs_pvresize_size (guestfs_h *g,\n"
29497 "                        const char *device,\n"
29498 "                        int64_t size);\n"
29499 "\n"
29500 msgstr ""
29501
29502 #. type: textblock
29503 #: ../src/guestfs-actions.pod:5723
29504 msgid ""
29505 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29506 "specify the new size (in bytes) explicitly."
29507 msgstr ""
29508
29509 #. type: =head2
29510 #: ../src/guestfs-actions.pod:5730
29511 msgid "guestfs_pvs"
29512 msgstr ""
29513
29514 #. type: verbatim
29515 #: ../src/guestfs-actions.pod:5732
29516 #, no-wrap
29517 msgid ""
29518 " char **\n"
29519 " guestfs_pvs (guestfs_h *g);\n"
29520 "\n"
29521 msgstr ""
29522
29523 #. type: textblock
29524 #: ../src/guestfs-actions.pod:5741
29525 msgid "See also C<guestfs_pvs_full>."
29526 msgstr ""
29527
29528 #. type: =head2
29529 #: ../src/guestfs-actions.pod:5749
29530 msgid "guestfs_pvs_full"
29531 msgstr ""
29532
29533 #. type: verbatim
29534 #: ../src/guestfs-actions.pod:5751
29535 #, no-wrap
29536 msgid ""
29537 " struct guestfs_lvm_pv_list *\n"
29538 " guestfs_pvs_full (guestfs_h *g);\n"
29539 "\n"
29540 msgstr ""
29541
29542 #. type: textblock
29543 #: ../src/guestfs-actions.pod:5757
29544 msgid ""
29545 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29546 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29547 msgstr ""
29548
29549 #. type: =head2
29550 #: ../src/guestfs-actions.pod:5763
29551 msgid "guestfs_pvuuid"
29552 msgstr ""
29553
29554 #. type: verbatim
29555 #: ../src/guestfs-actions.pod:5765
29556 #, no-wrap
29557 msgid ""
29558 " char *\n"
29559 " guestfs_pvuuid (guestfs_h *g,\n"
29560 "                 const char *device);\n"
29561 "\n"
29562 msgstr ""
29563
29564 #. type: =head2
29565 #: ../src/guestfs-actions.pod:5776
29566 msgid "guestfs_pwrite"
29567 msgstr ""
29568
29569 #. type: verbatim
29570 #: ../src/guestfs-actions.pod:5778
29571 #, no-wrap
29572 msgid ""
29573 " int\n"
29574 " guestfs_pwrite (guestfs_h *g,\n"
29575 "                 const char *path,\n"
29576 "                 const char *content,\n"
29577 "                 size_t content_size,\n"
29578 "                 int64_t offset);\n"
29579 "\n"
29580 msgstr ""
29581
29582 #. type: textblock
29583 #: ../src/guestfs-actions.pod:5794
29584 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29585 msgstr ""
29586
29587 #. type: =head2
29588 #: ../src/guestfs-actions.pod:5803
29589 msgid "guestfs_pwrite_device"
29590 msgstr ""
29591
29592 #. type: verbatim
29593 #: ../src/guestfs-actions.pod:5805
29594 #, no-wrap
29595 msgid ""
29596 " int\n"
29597 " guestfs_pwrite_device (guestfs_h *g,\n"
29598 "                        const char *device,\n"
29599 "                        const char *content,\n"
29600 "                        size_t content_size,\n"
29601 "                        int64_t offset);\n"
29602 "\n"
29603 msgstr ""
29604
29605 #. type: textblock
29606 #: ../src/guestfs-actions.pod:5820
29607 msgid "See also C<guestfs_pwrite>."
29608 msgstr ""
29609
29610 #. type: textblock
29611 #: ../src/guestfs-actions.pod:5827
29612 msgid "(Added in 1.5.20)"
29613 msgstr ""
29614
29615 #. type: =head2
29616 #: ../src/guestfs-actions.pod:5829
29617 msgid "guestfs_read_file"
29618 msgstr ""
29619
29620 #. type: verbatim
29621 #: ../src/guestfs-actions.pod:5831
29622 #, no-wrap
29623 msgid ""
29624 " char *\n"
29625 " guestfs_read_file (guestfs_h *g,\n"
29626 "                    const char *path,\n"
29627 "                    size_t *size_r);\n"
29628 "\n"
29629 msgstr ""
29630
29631 #. type: textblock
29632 #: ../src/guestfs-actions.pod:5839
29633 msgid ""
29634 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29635 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29636 "function is limited in the total size of file that can be handled."
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:5851
29641 msgid "(Added in 1.0.63)"
29642 msgstr ""
29643
29644 #. type: =head2
29645 #: ../src/guestfs-actions.pod:5853
29646 msgid "guestfs_read_lines"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-actions.pod:5855
29651 #, no-wrap
29652 msgid ""
29653 " char **\n"
29654 " guestfs_read_lines (guestfs_h *g,\n"
29655 "                     const char *path);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: textblock
29660 #: ../src/guestfs-actions.pod:5864
29661 msgid ""
29662 "Note that this function cannot correctly handle binary files (specifically, "
29663 "files containing C<\\0> character which is treated as end of line).  For "
29664 "those you need to use the C<guestfs_read_file> function which has a more "
29665 "complex interface."
29666 msgstr ""
29667
29668 #. type: =head2
29669 #: ../src/guestfs-actions.pod:5875
29670 msgid "guestfs_readdir"
29671 msgstr ""
29672
29673 #. type: verbatim
29674 #: ../src/guestfs-actions.pod:5877
29675 #, no-wrap
29676 msgid ""
29677 " struct guestfs_dirent_list *\n"
29678 " guestfs_readdir (guestfs_h *g,\n"
29679 "                  const char *dir);\n"
29680 "\n"
29681 msgstr ""
29682
29683 #. type: textblock
29684 #: ../src/guestfs-actions.pod:5931
29685 msgid ""
29686 "This function is primarily intended for use by programs.  To get a simple "
29687 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29688 "consumption, use C<guestfs_ll>."
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:5935
29693 msgid ""
29694 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29695 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:5941
29700 msgid "guestfs_readlink"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:5943
29705 #, no-wrap
29706 msgid ""
29707 " char *\n"
29708 " guestfs_readlink (guestfs_h *g,\n"
29709 "                   const char *path);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: =head2
29714 #: ../src/guestfs-actions.pod:5954
29715 msgid "guestfs_readlinklist"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-actions.pod:5956
29720 #, no-wrap
29721 msgid ""
29722 " char **\n"
29723 " guestfs_readlinklist (guestfs_h *g,\n"
29724 "                       const char *path,\n"
29725 "                       char *const *names);\n"
29726 "\n"
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:5989
29731 msgid "guestfs_realpath"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:5991
29736 #, no-wrap
29737 msgid ""
29738 " char *\n"
29739 " guestfs_realpath (guestfs_h *g,\n"
29740 "                   const char *path);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: =head2
29745 #: ../src/guestfs-actions.pod:6003
29746 msgid "guestfs_removexattr"
29747 msgstr ""
29748
29749 #. type: verbatim
29750 #: ../src/guestfs-actions.pod:6005
29751 #, no-wrap
29752 msgid ""
29753 " int\n"
29754 " guestfs_removexattr (guestfs_h *g,\n"
29755 "                      const char *xattr,\n"
29756 "                      const char *path);\n"
29757 "\n"
29758 msgstr ""
29759
29760 #. type: textblock
29761 #: ../src/guestfs-actions.pod:6013
29762 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29763 msgstr ""
29764
29765 #. type: =head2
29766 #: ../src/guestfs-actions.pod:6019
29767 msgid "guestfs_resize2fs"
29768 msgstr ""
29769
29770 #. type: verbatim
29771 #: ../src/guestfs-actions.pod:6021
29772 #, no-wrap
29773 msgid ""
29774 " int\n"
29775 " guestfs_resize2fs (guestfs_h *g,\n"
29776 "                    const char *device);\n"
29777 "\n"
29778 msgstr ""
29779
29780 #. type: textblock
29781 #: ../src/guestfs-actions.pod:6028
29782 msgid ""
29783 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29784 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29785 "sometimes gives an error about this and sometimes not.  In any case, it is "
29786 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29787 msgstr ""
29788
29789 #. type: =head2
29790 #: ../src/guestfs-actions.pod:6038
29791 msgid "guestfs_resize2fs_M"
29792 msgstr ""
29793
29794 #. type: verbatim
29795 #: ../src/guestfs-actions.pod:6040
29796 #, no-wrap
29797 msgid ""
29798 " int\n"
29799 " guestfs_resize2fs_M (guestfs_h *g,\n"
29800 "                      const char *device);\n"
29801 "\n"
29802 msgstr ""
29803
29804 #. type: textblock
29805 #: ../src/guestfs-actions.pod:6044
29806 msgid ""
29807 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29808 "resized to its minimum size.  This works like the I<-M> option to the "
29809 "C<resize2fs> command."
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:6048
29814 msgid ""
29815 "To get the resulting size of the filesystem you should call "
29816 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29817 "These two numbers, multiplied together, give the resulting size of the "
29818 "minimal filesystem in bytes."
29819 msgstr ""
29820
29821 #. type: =head2
29822 #: ../src/guestfs-actions.pod:6057
29823 msgid "guestfs_resize2fs_size"
29824 msgstr ""
29825
29826 #. type: verbatim
29827 #: ../src/guestfs-actions.pod:6059
29828 #, no-wrap
29829 msgid ""
29830 " int\n"
29831 " guestfs_resize2fs_size (guestfs_h *g,\n"
29832 "                         const char *device,\n"
29833 "                         int64_t size);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: textblock
29838 #: ../src/guestfs-actions.pod:6064
29839 msgid ""
29840 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29841 "to specify the new size (in bytes) explicitly."
29842 msgstr ""
29843
29844 #. type: =head2
29845 #: ../src/guestfs-actions.pod:6071
29846 msgid "guestfs_rm"
29847 msgstr ""
29848
29849 #. type: verbatim
29850 #: ../src/guestfs-actions.pod:6073
29851 #, no-wrap
29852 msgid ""
29853 " int\n"
29854 " guestfs_rm (guestfs_h *g,\n"
29855 "             const char *path);\n"
29856 "\n"
29857 msgstr ""
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:6083
29861 msgid "guestfs_rm_rf"
29862 msgstr ""
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:6085
29866 #, no-wrap
29867 msgid ""
29868 " int\n"
29869 " guestfs_rm_rf (guestfs_h *g,\n"
29870 "                const char *path);\n"
29871 "\n"
29872 msgstr ""
29873
29874 #. type: =head2
29875 #: ../src/guestfs-actions.pod:6097
29876 msgid "guestfs_rmdir"
29877 msgstr ""
29878
29879 #. type: verbatim
29880 #: ../src/guestfs-actions.pod:6099
29881 #, no-wrap
29882 msgid ""
29883 " int\n"
29884 " guestfs_rmdir (guestfs_h *g,\n"
29885 "                const char *path);\n"
29886 "\n"
29887 msgstr ""
29888
29889 #. type: =head2
29890 #: ../src/guestfs-actions.pod:6109
29891 msgid "guestfs_rmmountpoint"
29892 msgstr ""
29893
29894 #. type: verbatim
29895 #: ../src/guestfs-actions.pod:6111
29896 #, no-wrap
29897 msgid ""
29898 " int\n"
29899 " guestfs_rmmountpoint (guestfs_h *g,\n"
29900 "                       const char *exemptpath);\n"
29901 "\n"
29902 msgstr ""
29903
29904 #. type: textblock
29905 #: ../src/guestfs-actions.pod:6115
29906 msgid ""
29907 "This calls removes a mountpoint that was previously created with "
29908 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29909 msgstr ""
29910
29911 #. type: =head2
29912 #: ../src/guestfs-actions.pod:6123
29913 msgid "guestfs_scrub_device"
29914 msgstr ""
29915
29916 #. type: verbatim
29917 #: ../src/guestfs-actions.pod:6125
29918 #, no-wrap
29919 msgid ""
29920 " int\n"
29921 " guestfs_scrub_device (guestfs_h *g,\n"
29922 "                       const char *device);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: textblock
29927 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6158
29928 #: ../src/guestfs-actions.pod:6177
29929 msgid "(Added in 1.0.52)"
29930 msgstr ""
29931
29932 #. type: =head2
29933 #: ../src/guestfs-actions.pod:6142
29934 msgid "guestfs_scrub_file"
29935 msgstr ""
29936
29937 #. type: verbatim
29938 #: ../src/guestfs-actions.pod:6144
29939 #, no-wrap
29940 msgid ""
29941 " int\n"
29942 " guestfs_scrub_file (guestfs_h *g,\n"
29943 "                     const char *file);\n"
29944 "\n"
29945 msgstr ""
29946
29947 #. type: =head2
29948 #: ../src/guestfs-actions.pod:6160
29949 msgid "guestfs_scrub_freespace"
29950 msgstr ""
29951
29952 #. type: verbatim
29953 #: ../src/guestfs-actions.pod:6162
29954 #, no-wrap
29955 msgid ""
29956 " int\n"
29957 " guestfs_scrub_freespace (guestfs_h *g,\n"
29958 "                          const char *dir);\n"
29959 "\n"
29960 msgstr ""
29961
29962 #. type: textblock
29963 #: ../src/guestfs-actions.pod:6166
29964 msgid ""
29965 "This command creates the directory C<dir> and then fills it with files until "
29966 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29967 "and deletes them.  The intention is to scrub any free space on the partition "
29968 "containing C<dir>."
29969 msgstr ""
29970
29971 #. type: =head2
29972 #: ../src/guestfs-actions.pod:6179
29973 msgid "guestfs_set_append"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../src/guestfs-actions.pod:6181
29978 #, no-wrap
29979 msgid ""
29980 " int\n"
29981 " guestfs_set_append (guestfs_h *g,\n"
29982 "                     const char *append);\n"
29983 "\n"
29984 msgstr ""
29985
29986 #. type: =head2
29987 #: ../src/guestfs-actions.pod:6198
29988 msgid "guestfs_set_attach_method"
29989 msgstr ""
29990
29991 #. type: verbatim
29992 #: ../src/guestfs-actions.pod:6200
29993 #, no-wrap
29994 msgid ""
29995 " int\n"
29996 " guestfs_set_attach_method (guestfs_h *g,\n"
29997 "                            const char *attachmethod);\n"
29998 "\n"
29999 msgstr ""
30000
30001 #. type: =head2
30002 #: ../src/guestfs-actions.pod:6228
30003 msgid "guestfs_set_autosync"
30004 msgstr ""
30005
30006 #. type: verbatim
30007 #: ../src/guestfs-actions.pod:6230
30008 #, no-wrap
30009 msgid ""
30010 " int\n"
30011 " guestfs_set_autosync (guestfs_h *g,\n"
30012 "                       int autosync);\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: =head2
30017 #: ../src/guestfs-actions.pod:6246
30018 msgid "guestfs_set_direct"
30019 msgstr ""
30020
30021 #. type: verbatim
30022 #: ../src/guestfs-actions.pod:6248
30023 #, no-wrap
30024 msgid ""
30025 " int\n"
30026 " guestfs_set_direct (guestfs_h *g,\n"
30027 "                     int direct);\n"
30028 "\n"
30029 msgstr ""
30030
30031 #. type: textblock
30032 #: ../src/guestfs-actions.pod:6256
30033 msgid ""
30034 "One consequence of this is that log messages aren't caught by the library "
30035 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30036 "stdout."
30037 msgstr ""
30038
30039 #. type: =head2
30040 #: ../src/guestfs-actions.pod:6269
30041 msgid "guestfs_set_e2label"
30042 msgstr ""
30043
30044 #. type: verbatim
30045 #: ../src/guestfs-actions.pod:6271
30046 #, no-wrap
30047 msgid ""
30048 " int\n"
30049 " guestfs_set_e2label (guestfs_h *g,\n"
30050 "                      const char *device,\n"
30051 "                      const char *label);\n"
30052 "\n"
30053 msgstr ""
30054
30055 #. type: textblock
30056 #: ../src/guestfs-actions.pod:6280
30057 msgid ""
30058 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30059 "the existing label on a filesystem."
30060 msgstr ""
30061
30062 #. type: =head2
30063 #: ../src/guestfs-actions.pod:6287
30064 msgid "guestfs_set_e2uuid"
30065 msgstr ""
30066
30067 #. type: verbatim
30068 #: ../src/guestfs-actions.pod:6289
30069 #, no-wrap
30070 msgid ""
30071 " int\n"
30072 " guestfs_set_e2uuid (guestfs_h *g,\n"
30073 "                     const char *device,\n"
30074 "                     const char *uuid);\n"
30075 "\n"
30076 msgstr ""
30077
30078 #. type: textblock
30079 #: ../src/guestfs-actions.pod:6299
30080 msgid ""
30081 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30082 "the existing UUID of a filesystem."
30083 msgstr ""
30084
30085 #. type: =head2
30086 #: ../src/guestfs-actions.pod:6306
30087 msgid "guestfs_set_memsize"
30088 msgstr ""
30089
30090 #. type: verbatim
30091 #: ../src/guestfs-actions.pod:6308
30092 #, no-wrap
30093 msgid ""
30094 " int\n"
30095 " guestfs_set_memsize (guestfs_h *g,\n"
30096 "                      int memsize);\n"
30097 "\n"
30098 msgstr ""
30099
30100 #. type: textblock
30101 #: ../src/guestfs-actions.pod:6312
30102 msgid ""
30103 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30104 "This only has any effect if called before C<guestfs_launch>."
30105 msgstr ""
30106
30107 #. type: =head2
30108 #: ../src/guestfs-actions.pod:6327
30109 msgid "guestfs_set_network"
30110 msgstr ""
30111
30112 #. type: verbatim
30113 #: ../src/guestfs-actions.pod:6329
30114 #, no-wrap
30115 msgid ""
30116 " int\n"
30117 " guestfs_set_network (guestfs_h *g,\n"
30118 "                      int network);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../src/guestfs-actions.pod:6339
30124 msgid ""
30125 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30126 "effect."
30127 msgstr ""
30128
30129 #. type: =head2
30130 #: ../src/guestfs-actions.pod:6346
30131 msgid "guestfs_set_path"
30132 msgstr ""
30133
30134 #. type: verbatim
30135 #: ../src/guestfs-actions.pod:6348
30136 #, no-wrap
30137 msgid ""
30138 " int\n"
30139 " guestfs_set_path (guestfs_h *g,\n"
30140 "                   const char *searchpath);\n"
30141 "\n"
30142 msgstr ""
30143
30144 #. type: =head2
30145 #: ../src/guestfs-actions.pod:6363
30146 msgid "guestfs_set_pgroup"
30147 msgstr ""
30148
30149 #. type: verbatim
30150 #: ../src/guestfs-actions.pod:6365
30151 #, no-wrap
30152 msgid ""
30153 " int\n"
30154 " guestfs_set_pgroup (guestfs_h *g,\n"
30155 "                     int pgroup);\n"
30156 "\n"
30157 msgstr ""
30158
30159 #. type: =head2
30160 #: ../src/guestfs-actions.pod:6382
30161 msgid "guestfs_set_qemu"
30162 msgstr ""
30163
30164 #. type: verbatim
30165 #: ../src/guestfs-actions.pod:6384
30166 #, no-wrap
30167 msgid ""
30168 " int\n"
30169 " guestfs_set_qemu (guestfs_h *g,\n"
30170 "                   const char *qemu);\n"
30171 "\n"
30172 msgstr ""
30173
30174 #. type: =head2
30175 #: ../src/guestfs-actions.pod:6410
30176 msgid "guestfs_set_recovery_proc"
30177 msgstr ""
30178
30179 #. type: verbatim
30180 #: ../src/guestfs-actions.pod:6412
30181 #, no-wrap
30182 msgid ""
30183 " int\n"
30184 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30185 "                            int recoveryproc);\n"
30186 "\n"
30187 msgstr ""
30188
30189 #. type: textblock
30190 #: ../src/guestfs-actions.pod:6416
30191 msgid ""
30192 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30193 "not create a recovery process.  The purpose of the recovery process is to "
30194 "stop runaway qemu processes in the case where the main program aborts "
30195 "abruptly."
30196 msgstr ""
30197
30198 #. type: textblock
30199 #: ../src/guestfs-actions.pod:6421
30200 msgid ""
30201 "This only has any effect if called before C<guestfs_launch>, and the default "
30202 "is true."
30203 msgstr ""
30204
30205 #. type: =head2
30206 #: ../src/guestfs-actions.pod:6434
30207 msgid "guestfs_set_selinux"
30208 msgstr ""
30209
30210 #. type: verbatim
30211 #: ../src/guestfs-actions.pod:6436
30212 #, no-wrap
30213 msgid ""
30214 " int\n"
30215 " guestfs_set_selinux (guestfs_h *g,\n"
30216 "                      int selinux);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: =head2
30221 #: ../src/guestfs-actions.pod:6453
30222 msgid "guestfs_set_trace"
30223 msgstr ""
30224
30225 #. type: verbatim
30226 #: ../src/guestfs-actions.pod:6455
30227 #, no-wrap
30228 msgid ""
30229 " int\n"
30230 " guestfs_set_trace (guestfs_h *g,\n"
30231 "                    int trace);\n"
30232 "\n"
30233 msgstr ""
30234
30235 #. type: textblock
30236 #: ../src/guestfs-actions.pod:6469
30237 msgid ""
30238 "Trace messages are normally sent to C<stderr>, unless you register a "
30239 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30240 msgstr ""
30241
30242 #. type: =head2
30243 #: ../src/guestfs-actions.pod:6477
30244 msgid "guestfs_set_verbose"
30245 msgstr ""
30246
30247 #. type: verbatim
30248 #: ../src/guestfs-actions.pod:6479
30249 #, no-wrap
30250 msgid ""
30251 " int\n"
30252 " guestfs_set_verbose (guestfs_h *g,\n"
30253 "                      int verbose);\n"
30254 "\n"
30255 msgstr ""
30256
30257 #. type: textblock
30258 #: ../src/guestfs-actions.pod:6488
30259 msgid ""
30260 "Verbose messages are normally sent to C<stderr>, unless you register a "
30261 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30262 msgstr ""
30263
30264 #. type: =head2
30265 #: ../src/guestfs-actions.pod:6496
30266 msgid "guestfs_setcon"
30267 msgstr ""
30268
30269 #. type: verbatim
30270 #: ../src/guestfs-actions.pod:6498
30271 #, no-wrap
30272 msgid ""
30273 " int\n"
30274 " guestfs_setcon (guestfs_h *g,\n"
30275 "                 const char *context);\n"
30276 "\n"
30277 msgstr ""
30278
30279 #. type: =head2
30280 #: ../src/guestfs-actions.pod:6511
30281 msgid "guestfs_setxattr"
30282 msgstr ""
30283
30284 #. type: verbatim
30285 #: ../src/guestfs-actions.pod:6513
30286 #, no-wrap
30287 msgid ""
30288 " int\n"
30289 " guestfs_setxattr (guestfs_h *g,\n"
30290 "                   const char *xattr,\n"
30291 "                   const char *val,\n"
30292 "                   int vallen,\n"
30293 "                   const char *path);\n"
30294 "\n"
30295 msgstr ""
30296
30297 #. type: textblock
30298 #: ../src/guestfs-actions.pod:6524
30299 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30300 msgstr ""
30301
30302 #. type: =head2
30303 #: ../src/guestfs-actions.pod:6530
30304 msgid "guestfs_sfdisk"
30305 msgstr ""
30306
30307 #. type: verbatim
30308 #: ../src/guestfs-actions.pod:6532
30309 #, no-wrap
30310 msgid ""
30311 " int\n"
30312 " guestfs_sfdisk (guestfs_h *g,\n"
30313 "                 const char *device,\n"
30314 "                 int cyls,\n"
30315 "                 int heads,\n"
30316 "                 int sectors,\n"
30317 "                 char *const *lines);\n"
30318 "\n"
30319 msgstr ""
30320
30321 #. type: textblock
30322 #: ../src/guestfs-actions.pod:6560
30323 msgid ""
30324 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30325 msgstr ""
30326
30327 #. type: textblock
30328 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6598
30329 #: ../src/guestfs-actions.pod:6631
30330 msgid ""
30331 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
30332 "instead."
30333 msgstr ""
30334
30335 #. type: =head2
30336 #: ../src/guestfs-actions.pod:6577
30337 msgid "guestfs_sfdiskM"
30338 msgstr ""
30339
30340 #. type: verbatim
30341 #: ../src/guestfs-actions.pod:6579
30342 #, no-wrap
30343 msgid ""
30344 " int\n"
30345 " guestfs_sfdiskM (guestfs_h *g,\n"
30346 "                  const char *device,\n"
30347 "                  char *const *lines);\n"
30348 "\n"
30349 msgstr ""
30350
30351 #. type: textblock
30352 #: ../src/guestfs-actions.pod:6584
30353 msgid ""
30354 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30355 "partition sizes are specified in megabytes only (rounded to the nearest "
30356 "cylinder) and you don't need to specify the cyls, heads and sectors "
30357 "parameters which were rarely if ever used anyway."
30358 msgstr ""
30359
30360 #. type: textblock
30361 #: ../src/guestfs-actions.pod:6590
30362 msgid ""
30363 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30364 "C<guestfs_part_disk>"
30365 msgstr ""
30366
30367 #. type: =head2
30368 #: ../src/guestfs-actions.pod:6607
30369 msgid "guestfs_sfdisk_N"
30370 msgstr ""
30371
30372 #. type: verbatim
30373 #: ../src/guestfs-actions.pod:6609
30374 #, no-wrap
30375 msgid ""
30376 " int\n"
30377 " guestfs_sfdisk_N (guestfs_h *g,\n"
30378 "                   const char *device,\n"
30379 "                   int partnum,\n"
30380 "                   int cyls,\n"
30381 "                   int heads,\n"
30382 "                   int sectors,\n"
30383 "                   const char *line);\n"
30384 "\n"
30385 msgstr ""
30386
30387 #. type: textblock
30388 #: ../src/guestfs-actions.pod:6621
30389 msgid ""
30390 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30391 "for the cyls/heads/sectors parameters."
30392 msgstr ""
30393
30394 #. type: textblock
30395 #: ../src/guestfs-actions.pod:6624
30396 msgid "See also: C<guestfs_part_add>"
30397 msgstr ""
30398
30399 #. type: =head2
30400 #: ../src/guestfs-actions.pod:6640
30401 msgid "guestfs_sfdisk_disk_geometry"
30402 msgstr ""
30403
30404 #. type: verbatim
30405 #: ../src/guestfs-actions.pod:6642
30406 #, no-wrap
30407 msgid ""
30408 " char *\n"
30409 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30410 "                               const char *device);\n"
30411 "\n"
30412 msgstr ""
30413
30414 #. type: textblock
30415 #: ../src/guestfs-actions.pod:6646
30416 msgid ""
30417 "This displays the disk geometry of C<device> read from the partition table.  "
30418 "Especially in the case where the underlying block device has been resized, "
30419 "this can be different from the kernel's idea of the geometry (see "
30420 "C<guestfs_sfdisk_kernel_geometry>)."
30421 msgstr ""
30422
30423 #. type: =head2
30424 #: ../src/guestfs-actions.pod:6659
30425 msgid "guestfs_sfdisk_kernel_geometry"
30426 msgstr ""
30427
30428 #. type: verbatim
30429 #: ../src/guestfs-actions.pod:6661
30430 #, no-wrap
30431 msgid ""
30432 " char *\n"
30433 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30434 "                                 const char *device);\n"
30435 "\n"
30436 msgstr ""
30437
30438 #. type: =head2
30439 #: ../src/guestfs-actions.pod:6675
30440 msgid "guestfs_sfdisk_l"
30441 msgstr ""
30442
30443 #. type: verbatim
30444 #: ../src/guestfs-actions.pod:6677
30445 #, no-wrap
30446 msgid ""
30447 " char *\n"
30448 " guestfs_sfdisk_l (guestfs_h *g,\n"
30449 "                   const char *device);\n"
30450 "\n"
30451 msgstr ""
30452
30453 #. type: textblock
30454 #: ../src/guestfs-actions.pod:6685
30455 msgid "See also: C<guestfs_part_list>"
30456 msgstr ""
30457
30458 #. type: textblock
30459 #: ../src/guestfs-actions.pod:6690
30460 msgid ""
30461 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
30462 "call instead."
30463 msgstr ""
30464
30465 #. type: =head2
30466 #: ../src/guestfs-actions.pod:6699
30467 msgid "guestfs_sh"
30468 msgstr ""
30469
30470 #. type: verbatim
30471 #: ../src/guestfs-actions.pod:6701
30472 #, no-wrap
30473 msgid ""
30474 " char *\n"
30475 " guestfs_sh (guestfs_h *g,\n"
30476 "             const char *command);\n"
30477 "\n"
30478 msgstr ""
30479
30480 #. type: textblock
30481 #: ../src/guestfs-actions.pod:6708
30482 msgid "This is like C<guestfs_command>, but passes the command to:"
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../src/guestfs-actions.pod:6716
30487 msgid "All the provisos about C<guestfs_command> apply to this call."
30488 msgstr ""
30489
30490 #. type: =head2
30491 #: ../src/guestfs-actions.pod:6723
30492 msgid "guestfs_sh_lines"
30493 msgstr ""
30494
30495 #. type: verbatim
30496 #: ../src/guestfs-actions.pod:6725
30497 #, no-wrap
30498 msgid ""
30499 " char **\n"
30500 " guestfs_sh_lines (guestfs_h *g,\n"
30501 "                   const char *command);\n"
30502 "\n"
30503 msgstr ""
30504
30505 #. type: textblock
30506 #: ../src/guestfs-actions.pod:6729
30507 msgid ""
30508 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30509 "lines."
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../src/guestfs-actions.pod:6732
30514 msgid "See also: C<guestfs_command_lines>"
30515 msgstr ""
30516
30517 #. type: =head2
30518 #: ../src/guestfs-actions.pod:6740
30519 msgid "guestfs_sleep"
30520 msgstr ""
30521
30522 #. type: verbatim
30523 #: ../src/guestfs-actions.pod:6742
30524 #, no-wrap
30525 msgid ""
30526 " int\n"
30527 " guestfs_sleep (guestfs_h *g,\n"
30528 "                int secs);\n"
30529 "\n"
30530 msgstr ""
30531
30532 #. type: textblock
30533 #: ../src/guestfs-actions.pod:6750
30534 msgid "(Added in 1.0.41)"
30535 msgstr ""
30536
30537 #. type: =head2
30538 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-structs.pod:109
30539 msgid "guestfs_stat"
30540 msgstr ""
30541
30542 #. type: verbatim
30543 #: ../src/guestfs-actions.pod:6754
30544 #, no-wrap
30545 msgid ""
30546 " struct guestfs_stat *\n"
30547 " guestfs_stat (guestfs_h *g,\n"
30548 "               const char *path);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: =head2
30553 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-structs.pod:135
30554 msgid "guestfs_statvfs"
30555 msgstr ""
30556
30557 #. type: verbatim
30558 #: ../src/guestfs-actions.pod:6770
30559 #, no-wrap
30560 msgid ""
30561 " struct guestfs_statvfs *\n"
30562 " guestfs_statvfs (guestfs_h *g,\n"
30563 "                  const char *path);\n"
30564 "\n"
30565 msgstr ""
30566
30567 #. type: textblock
30568 #: ../src/guestfs-actions.pod:6780
30569 msgid ""
30570 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30571 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30572 msgstr ""
30573
30574 #. type: =head2
30575 #: ../src/guestfs-actions.pod:6786
30576 msgid "guestfs_strings"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs-actions.pod:6788
30581 #, no-wrap
30582 msgid ""
30583 " char **\n"
30584 " guestfs_strings (guestfs_h *g,\n"
30585 "                  const char *path);\n"
30586 "\n"
30587 msgstr ""
30588
30589 #. type: =head2
30590 #: ../src/guestfs-actions.pod:6804
30591 msgid "guestfs_strings_e"
30592 msgstr ""
30593
30594 #. type: verbatim
30595 #: ../src/guestfs-actions.pod:6806
30596 #, no-wrap
30597 msgid ""
30598 " char **\n"
30599 " guestfs_strings_e (guestfs_h *g,\n"
30600 "                    const char *encoding,\n"
30601 "                    const char *path);\n"
30602 "\n"
30603 msgstr ""
30604
30605 #. type: textblock
30606 #: ../src/guestfs-actions.pod:6811
30607 msgid ""
30608 "This is like the C<guestfs_strings> command, but allows you to specify the "
30609 "encoding of strings that are looked for in the source file C<path>."
30610 msgstr ""
30611
30612 #. type: textblock
30613 #: ../src/guestfs-actions.pod:6821
30614 msgid ""
30615 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30616 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30617 msgstr ""
30618
30619 #. type: =head2
30620 #: ../src/guestfs-actions.pod:6859
30621 msgid "guestfs_swapoff_device"
30622 msgstr ""
30623
30624 #. type: verbatim
30625 #: ../src/guestfs-actions.pod:6861
30626 #, no-wrap
30627 msgid ""
30628 " int\n"
30629 " guestfs_swapoff_device (guestfs_h *g,\n"
30630 "                         const char *device);\n"
30631 "\n"
30632 msgstr ""
30633
30634 #. type: textblock
30635 #: ../src/guestfs-actions.pod:6865
30636 msgid ""
30637 "This command disables the libguestfs appliance swap device or partition "
30638 "named C<device>.  See C<guestfs_swapon_device>."
30639 msgstr ""
30640
30641 #. type: =head2
30642 #: ../src/guestfs-actions.pod:6873
30643 msgid "guestfs_swapoff_file"
30644 msgstr ""
30645
30646 #. type: verbatim
30647 #: ../src/guestfs-actions.pod:6875
30648 #, no-wrap
30649 msgid ""
30650 " int\n"
30651 " guestfs_swapoff_file (guestfs_h *g,\n"
30652 "                       const char *file);\n"
30653 "\n"
30654 msgstr ""
30655
30656 #. type: =head2
30657 #: ../src/guestfs-actions.pod:6885
30658 msgid "guestfs_swapoff_label"
30659 msgstr ""
30660
30661 #. type: verbatim
30662 #: ../src/guestfs-actions.pod:6887
30663 #, no-wrap
30664 msgid ""
30665 " int\n"
30666 " guestfs_swapoff_label (guestfs_h *g,\n"
30667 "                        const char *label);\n"
30668 "\n"
30669 msgstr ""
30670
30671 #. type: =head2
30672 #: ../src/guestfs-actions.pod:6898
30673 msgid "guestfs_swapoff_uuid"
30674 msgstr ""
30675
30676 #. type: verbatim
30677 #: ../src/guestfs-actions.pod:6900
30678 #, no-wrap
30679 msgid ""
30680 " int\n"
30681 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30682 "                       const char *uuid);\n"
30683 "\n"
30684 msgstr ""
30685
30686 #. type: =head2
30687 #: ../src/guestfs-actions.pod:6911
30688 msgid "guestfs_swapon_device"
30689 msgstr ""
30690
30691 #. type: verbatim
30692 #: ../src/guestfs-actions.pod:6913
30693 #, no-wrap
30694 msgid ""
30695 " int\n"
30696 " guestfs_swapon_device (guestfs_h *g,\n"
30697 "                        const char *device);\n"
30698 "\n"
30699 msgstr ""
30700
30701 #. type: textblock
30702 #: ../src/guestfs-actions.pod:6917
30703 msgid ""
30704 "This command enables the libguestfs appliance to use the swap device or "
30705 "partition named C<device>.  The increased memory is made available for all "
30706 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30707 msgstr ""
30708
30709 #. type: =head2
30710 #: ../src/guestfs-actions.pod:6933
30711 msgid "guestfs_swapon_file"
30712 msgstr ""
30713
30714 #. type: verbatim
30715 #: ../src/guestfs-actions.pod:6935
30716 #, no-wrap
30717 msgid ""
30718 " int\n"
30719 " guestfs_swapon_file (guestfs_h *g,\n"
30720 "                      const char *file);\n"
30721 "\n"
30722 msgstr ""
30723
30724 #. type: textblock
30725 #: ../src/guestfs-actions.pod:6939
30726 msgid ""
30727 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30728 "notes."
30729 msgstr ""
30730
30731 #. type: =head2
30732 #: ../src/guestfs-actions.pod:6946
30733 msgid "guestfs_swapon_label"
30734 msgstr ""
30735
30736 #. type: verbatim
30737 #: ../src/guestfs-actions.pod:6948
30738 #, no-wrap
30739 msgid ""
30740 " int\n"
30741 " guestfs_swapon_label (guestfs_h *g,\n"
30742 "                       const char *label);\n"
30743 "\n"
30744 msgstr ""
30745
30746 #. type: textblock
30747 #: ../src/guestfs-actions.pod:6952
30748 msgid ""
30749 "This command enables swap to a labeled swap partition.  See "
30750 "C<guestfs_swapon_device> for other notes."
30751 msgstr ""
30752
30753 #. type: =head2
30754 #: ../src/guestfs-actions.pod:6959
30755 msgid "guestfs_swapon_uuid"
30756 msgstr ""
30757
30758 #. type: verbatim
30759 #: ../src/guestfs-actions.pod:6961
30760 #, no-wrap
30761 msgid ""
30762 " int\n"
30763 " guestfs_swapon_uuid (guestfs_h *g,\n"
30764 "                      const char *uuid);\n"
30765 "\n"
30766 msgstr ""
30767
30768 #. type: textblock
30769 #: ../src/guestfs-actions.pod:6965
30770 msgid ""
30771 "This command enables swap to a swap partition with the given UUID.  See "
30772 "C<guestfs_swapon_device> for other notes."
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:6972
30777 msgid "guestfs_sync"
30778 msgstr ""
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:6974
30782 #, no-wrap
30783 msgid ""
30784 " int\n"
30785 " guestfs_sync (guestfs_h *g);\n"
30786 "\n"
30787 msgstr ""
30788
30789 #. type: =head2
30790 #: ../src/guestfs-actions.pod:6987
30791 msgid "guestfs_tail"
30792 msgstr ""
30793
30794 #. type: verbatim
30795 #: ../src/guestfs-actions.pod:6989
30796 #, no-wrap
30797 msgid ""
30798 " char **\n"
30799 " guestfs_tail (guestfs_h *g,\n"
30800 "               const char *path);\n"
30801 "\n"
30802 msgstr ""
30803
30804 #. type: =head2
30805 #: ../src/guestfs-actions.pod:7005
30806 msgid "guestfs_tail_n"
30807 msgstr ""
30808
30809 #. type: verbatim
30810 #: ../src/guestfs-actions.pod:7007
30811 #, no-wrap
30812 msgid ""
30813 " char **\n"
30814 " guestfs_tail_n (guestfs_h *g,\n"
30815 "                 int nrlines,\n"
30816 "                 const char *path);\n"
30817 "\n"
30818 msgstr ""
30819
30820 #. type: =head2
30821 #: ../src/guestfs-actions.pod:7029
30822 msgid "guestfs_tar_in"
30823 msgstr ""
30824
30825 #. type: verbatim
30826 #: ../src/guestfs-actions.pod:7031
30827 #, no-wrap
30828 msgid ""
30829 " int\n"
30830 " guestfs_tar_in (guestfs_h *g,\n"
30831 "                 const char *tarfile,\n"
30832 "                 const char *directory);\n"
30833 "\n"
30834 msgstr ""
30835
30836 #. type: textblock
30837 #: ../src/guestfs-actions.pod:7039
30838 msgid ""
30839 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30840 msgstr ""
30841
30842 #. type: textblock
30843 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:7061
30844 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7093
30845 msgid "(Added in 1.0.3)"
30846 msgstr ""
30847
30848 #. type: =head2
30849 #: ../src/guestfs-actions.pod:7046
30850 msgid "guestfs_tar_out"
30851 msgstr ""
30852
30853 #. type: verbatim
30854 #: ../src/guestfs-actions.pod:7048
30855 #, no-wrap
30856 msgid ""
30857 " int\n"
30858 " guestfs_tar_out (guestfs_h *g,\n"
30859 "                  const char *directory,\n"
30860 "                  const char *tarfile);\n"
30861 "\n"
30862 msgstr ""
30863
30864 #. type: textblock
30865 #: ../src/guestfs-actions.pod:7056
30866 msgid ""
30867 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30868 "C<guestfs_txz_out>."
30869 msgstr ""
30870
30871 #. type: =head2
30872 #: ../src/guestfs-actions.pod:7063
30873 msgid "guestfs_tgz_in"
30874 msgstr ""
30875
30876 #. type: verbatim
30877 #: ../src/guestfs-actions.pod:7065
30878 #, no-wrap
30879 msgid ""
30880 " int\n"
30881 " guestfs_tgz_in (guestfs_h *g,\n"
30882 "                 const char *tarball,\n"
30883 "                 const char *directory);\n"
30884 "\n"
30885 msgstr ""
30886
30887 #. type: textblock
30888 #: ../src/guestfs-actions.pod:7073
30889 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30890 msgstr ""
30891
30892 #. type: =head2
30893 #: ../src/guestfs-actions.pod:7079
30894 msgid "guestfs_tgz_out"
30895 msgstr ""
30896
30897 #. type: verbatim
30898 #: ../src/guestfs-actions.pod:7081
30899 #, no-wrap
30900 msgid ""
30901 " int\n"
30902 " guestfs_tgz_out (guestfs_h *g,\n"
30903 "                  const char *directory,\n"
30904 "                  const char *tarball);\n"
30905 "\n"
30906 msgstr ""
30907
30908 #. type: textblock
30909 #: ../src/guestfs-actions.pod:7089
30910 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30911 msgstr ""
30912
30913 #. type: =head2
30914 #: ../src/guestfs-actions.pod:7095
30915 msgid "guestfs_touch"
30916 msgstr ""
30917
30918 #. type: verbatim
30919 #: ../src/guestfs-actions.pod:7097
30920 #, no-wrap
30921 msgid ""
30922 " int\n"
30923 " guestfs_touch (guestfs_h *g,\n"
30924 "                const char *path);\n"
30925 "\n"
30926 msgstr ""
30927
30928 #. type: =head2
30929 #: ../src/guestfs-actions.pod:7112
30930 msgid "guestfs_truncate"
30931 msgstr ""
30932
30933 #. type: verbatim
30934 #: ../src/guestfs-actions.pod:7114
30935 #, no-wrap
30936 msgid ""
30937 " int\n"
30938 " guestfs_truncate (guestfs_h *g,\n"
30939 "                   const char *path);\n"
30940 "\n"
30941 msgstr ""
30942
30943 #. type: =head2
30944 #: ../src/guestfs-actions.pod:7125
30945 msgid "guestfs_truncate_size"
30946 msgstr ""
30947
30948 #. type: verbatim
30949 #: ../src/guestfs-actions.pod:7127
30950 #, no-wrap
30951 msgid ""
30952 " int\n"
30953 " guestfs_truncate_size (guestfs_h *g,\n"
30954 "                        const char *path,\n"
30955 "                        int64_t size);\n"
30956 "\n"
30957 msgstr ""
30958
30959 #. type: textblock
30960 #: ../src/guestfs-actions.pod:7135
30961 msgid ""
30962 "If the current file size is less than C<size> then the file is extended to "
30963 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30964 "blocks are not allocated for the file until you write to it).  To create a "
30965 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30966 msgstr ""
30967
30968 #. type: =head2
30969 #: ../src/guestfs-actions.pod:7145
30970 msgid "guestfs_tune2fs_l"
30971 msgstr ""
30972
30973 #. type: verbatim
30974 #: ../src/guestfs-actions.pod:7147
30975 #, no-wrap
30976 msgid ""
30977 " char **\n"
30978 " guestfs_tune2fs_l (guestfs_h *g,\n"
30979 "                    const char *device);\n"
30980 "\n"
30981 msgstr ""
30982
30983 #. type: =head2
30984 #: ../src/guestfs-actions.pod:7167
30985 msgid "guestfs_txz_in"
30986 msgstr ""
30987
30988 #. type: verbatim
30989 #: ../src/guestfs-actions.pod:7169
30990 #, no-wrap
30991 msgid ""
30992 " int\n"
30993 " guestfs_txz_in (guestfs_h *g,\n"
30994 "                 const char *tarball,\n"
30995 "                 const char *directory);\n"
30996 "\n"
30997 msgstr ""
30998
30999 #. type: =head2
31000 #: ../src/guestfs-actions.pod:7181
31001 msgid "guestfs_txz_out"
31002 msgstr ""
31003
31004 #. type: verbatim
31005 #: ../src/guestfs-actions.pod:7183
31006 #, no-wrap
31007 msgid ""
31008 " int\n"
31009 " guestfs_txz_out (guestfs_h *g,\n"
31010 "                  const char *directory,\n"
31011 "                  const char *tarball);\n"
31012 "\n"
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:7195
31017 msgid "guestfs_umask"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:7197
31022 #, no-wrap
31023 msgid ""
31024 " int\n"
31025 " guestfs_umask (guestfs_h *g,\n"
31026 "                int mask);\n"
31027 "\n"
31028 msgstr ""
31029
31030 #. type: textblock
31031 #: ../src/guestfs-actions.pod:7213
31032 msgid ""
31033 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31034 "C<guestfs_mkdir>."
31035 msgstr ""
31036
31037 #. type: =head2
31038 #: ../src/guestfs-actions.pod:7222
31039 msgid "guestfs_umount"
31040 msgstr ""
31041
31042 #. type: verbatim
31043 #: ../src/guestfs-actions.pod:7224
31044 #, no-wrap
31045 msgid ""
31046 " int\n"
31047 " guestfs_umount (guestfs_h *g,\n"
31048 "                 const char *pathordevice);\n"
31049 "\n"
31050 msgstr ""
31051
31052 #. type: =head2
31053 #: ../src/guestfs-actions.pod:7236
31054 msgid "guestfs_umount_all"
31055 msgstr ""
31056
31057 #. type: verbatim
31058 #: ../src/guestfs-actions.pod:7238
31059 #, no-wrap
31060 msgid ""
31061 " int\n"
31062 " guestfs_umount_all (guestfs_h *g);\n"
31063 "\n"
31064 msgstr ""
31065
31066 #. type: =head2
31067 #: ../src/guestfs-actions.pod:7249
31068 msgid "guestfs_upload"
31069 msgstr ""
31070
31071 #. type: verbatim
31072 #: ../src/guestfs-actions.pod:7251
31073 #, no-wrap
31074 msgid ""
31075 " int\n"
31076 " guestfs_upload (guestfs_h *g,\n"
31077 "                 const char *filename,\n"
31078 "                 const char *remotefilename);\n"
31079 "\n"
31080 msgstr ""
31081
31082 #. type: textblock
31083 #: ../src/guestfs-actions.pod:7261
31084 msgid "See also C<guestfs_download>."
31085 msgstr ""
31086
31087 #. type: =head2
31088 #: ../src/guestfs-actions.pod:7272
31089 msgid "guestfs_upload_offset"
31090 msgstr ""
31091
31092 #. type: verbatim
31093 #: ../src/guestfs-actions.pod:7274
31094 #, no-wrap
31095 msgid ""
31096 " int\n"
31097 " guestfs_upload_offset (guestfs_h *g,\n"
31098 "                        const char *filename,\n"
31099 "                        const char *remotefilename,\n"
31100 "                        int64_t offset);\n"
31101 "\n"
31102 msgstr ""
31103
31104 #. type: textblock
31105 #: ../src/guestfs-actions.pod:7290
31106 msgid ""
31107 "Note that there is no limit on the amount of data that can be uploaded with "
31108 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31109 "full amount unless an error occurs."
31110 msgstr ""
31111
31112 #. type: textblock
31113 #: ../src/guestfs-actions.pod:7295
31114 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31115 msgstr ""
31116
31117 #. type: =head2
31118 #: ../src/guestfs-actions.pod:7306
31119 msgid "guestfs_utimens"
31120 msgstr ""
31121
31122 #. type: verbatim
31123 #: ../src/guestfs-actions.pod:7308
31124 #, no-wrap
31125 msgid ""
31126 " int\n"
31127 " guestfs_utimens (guestfs_h *g,\n"
31128 "                  const char *path,\n"
31129 "                  int64_t atsecs,\n"
31130 "                  int64_t atnsecs,\n"
31131 "                  int64_t mtsecs,\n"
31132 "                  int64_t mtnsecs);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: =head2
31137 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-structs.pod:175
31138 msgid "guestfs_version"
31139 msgstr ""
31140
31141 #. type: verbatim
31142 #: ../src/guestfs-actions.pod:7339
31143 #, no-wrap
31144 msgid ""
31145 " struct guestfs_version *\n"
31146 " guestfs_version (guestfs_h *g);\n"
31147 "\n"
31148 msgstr ""
31149
31150 #. type: textblock
31151 #: ../src/guestfs-actions.pod:7367
31152 msgid ""
31153 "I<Note:> Don't use this call to test for availability of features.  In "
31154 "enterprise distributions we backport features from later versions into "
31155 "earlier versions, making this an unreliable way to test for features.  Use "
31156 "C<guestfs_available> instead."
31157 msgstr ""
31158
31159 #. type: textblock
31160 #: ../src/guestfs-actions.pod:7373
31161 msgid ""
31162 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31163 "error.  I<The caller must call C<guestfs_free_version> after use>."
31164 msgstr ""
31165
31166 #. type: textblock
31167 #: ../src/guestfs-actions.pod:7377
31168 msgid "(Added in 1.0.58)"
31169 msgstr ""
31170
31171 #. type: =head2
31172 #: ../src/guestfs-actions.pod:7379
31173 msgid "guestfs_vfs_label"
31174 msgstr ""
31175
31176 #. type: verbatim
31177 #: ../src/guestfs-actions.pod:7381
31178 #, no-wrap
31179 msgid ""
31180 " char *\n"
31181 " guestfs_vfs_label (guestfs_h *g,\n"
31182 "                    const char *device);\n"
31183 "\n"
31184 msgstr ""
31185
31186 #. type: textblock
31187 #: ../src/guestfs-actions.pod:7390
31188 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31189 msgstr ""
31190
31191 #. type: textblock
31192 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7432
31193 msgid "(Added in 1.3.18)"
31194 msgstr ""
31195
31196 #. type: =head2
31197 #: ../src/guestfs-actions.pod:7397
31198 msgid "guestfs_vfs_type"
31199 msgstr ""
31200
31201 #. type: verbatim
31202 #: ../src/guestfs-actions.pod:7399
31203 #, no-wrap
31204 msgid ""
31205 " char *\n"
31206 " guestfs_vfs_type (guestfs_h *g,\n"
31207 "                   const char *device);\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: =head2
31212 #: ../src/guestfs-actions.pod:7416
31213 msgid "guestfs_vfs_uuid"
31214 msgstr ""
31215
31216 #. type: verbatim
31217 #: ../src/guestfs-actions.pod:7418
31218 #, no-wrap
31219 msgid ""
31220 " char *\n"
31221 " guestfs_vfs_uuid (guestfs_h *g,\n"
31222 "                   const char *device);\n"
31223 "\n"
31224 msgstr ""
31225
31226 #. type: textblock
31227 #: ../src/guestfs-actions.pod:7427
31228 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31229 msgstr ""
31230
31231 #. type: =head2
31232 #: ../src/guestfs-actions.pod:7434
31233 msgid "guestfs_vg_activate"
31234 msgstr ""
31235
31236 #. type: verbatim
31237 #: ../src/guestfs-actions.pod:7436
31238 #, no-wrap
31239 msgid ""
31240 " int\n"
31241 " guestfs_vg_activate (guestfs_h *g,\n"
31242 "                      int activate,\n"
31243 "                      char *const *volgroups);\n"
31244 "\n"
31245 msgstr ""
31246
31247 #. type: =head2
31248 #: ../src/guestfs-actions.pod:7453
31249 msgid "guestfs_vg_activate_all"
31250 msgstr ""
31251
31252 #. type: verbatim
31253 #: ../src/guestfs-actions.pod:7455
31254 #, no-wrap
31255 msgid ""
31256 " int\n"
31257 " guestfs_vg_activate_all (guestfs_h *g,\n"
31258 "                          int activate);\n"
31259 "\n"
31260 msgstr ""
31261
31262 #. type: =head2
31263 #: ../src/guestfs-actions.pod:7468
31264 msgid "guestfs_vgcreate"
31265 msgstr ""
31266
31267 #. type: verbatim
31268 #: ../src/guestfs-actions.pod:7470
31269 #, no-wrap
31270 msgid ""
31271 " int\n"
31272 " guestfs_vgcreate (guestfs_h *g,\n"
31273 "                   const char *volgroup,\n"
31274 "                   char *const *physvols);\n"
31275 "\n"
31276 msgstr ""
31277
31278 #. type: =head2
31279 #: ../src/guestfs-actions.pod:7482
31280 msgid "guestfs_vglvuuids"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs-actions.pod:7484
31285 #, no-wrap
31286 msgid ""
31287 " char **\n"
31288 " guestfs_vglvuuids (guestfs_h *g,\n"
31289 "                    const char *vgname);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs-actions.pod:7491
31295 msgid ""
31296 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31297 "associate logical volumes and volume groups."
31298 msgstr ""
31299
31300 #. type: textblock
31301 #: ../src/guestfs-actions.pod:7494
31302 msgid "See also C<guestfs_vgpvuuids>."
31303 msgstr ""
31304
31305 #. type: =head2
31306 #: ../src/guestfs-actions.pod:7502
31307 msgid "guestfs_vgpvuuids"
31308 msgstr ""
31309
31310 #. type: verbatim
31311 #: ../src/guestfs-actions.pod:7504
31312 #, no-wrap
31313 msgid ""
31314 " char **\n"
31315 " guestfs_vgpvuuids (guestfs_h *g,\n"
31316 "                    const char *vgname);\n"
31317 "\n"
31318 msgstr ""
31319
31320 #. type: textblock
31321 #: ../src/guestfs-actions.pod:7511
31322 msgid ""
31323 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31324 "associate physical volumes and volume groups."
31325 msgstr ""
31326
31327 #. type: textblock
31328 #: ../src/guestfs-actions.pod:7514
31329 msgid "See also C<guestfs_vglvuuids>."
31330 msgstr ""
31331
31332 #. type: =head2
31333 #: ../src/guestfs-actions.pod:7522
31334 msgid "guestfs_vgremove"
31335 msgstr ""
31336
31337 #. type: verbatim
31338 #: ../src/guestfs-actions.pod:7524
31339 #, no-wrap
31340 msgid ""
31341 " int\n"
31342 " guestfs_vgremove (guestfs_h *g,\n"
31343 "                   const char *vgname);\n"
31344 "\n"
31345 msgstr ""
31346
31347 #. type: =head2
31348 #: ../src/guestfs-actions.pod:7537
31349 msgid "guestfs_vgrename"
31350 msgstr ""
31351
31352 #. type: verbatim
31353 #: ../src/guestfs-actions.pod:7539
31354 #, no-wrap
31355 msgid ""
31356 " int\n"
31357 " guestfs_vgrename (guestfs_h *g,\n"
31358 "                   const char *volgroup,\n"
31359 "                   const char *newvolgroup);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: =head2
31364 #: ../src/guestfs-actions.pod:7550
31365 msgid "guestfs_vgs"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs-actions.pod:7552
31370 #, no-wrap
31371 msgid ""
31372 " char **\n"
31373 " guestfs_vgs (guestfs_h *g);\n"
31374 "\n"
31375 msgstr ""
31376
31377 #. type: textblock
31378 #: ../src/guestfs-actions.pod:7561
31379 msgid "See also C<guestfs_vgs_full>."
31380 msgstr ""
31381
31382 #. type: =head2
31383 #: ../src/guestfs-actions.pod:7569
31384 msgid "guestfs_vgs_full"
31385 msgstr ""
31386
31387 #. type: verbatim
31388 #: ../src/guestfs-actions.pod:7571
31389 #, no-wrap
31390 msgid ""
31391 " struct guestfs_lvm_vg_list *\n"
31392 " guestfs_vgs_full (guestfs_h *g);\n"
31393 "\n"
31394 msgstr ""
31395
31396 #. type: textblock
31397 #: ../src/guestfs-actions.pod:7577
31398 msgid ""
31399 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31400 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31401 msgstr ""
31402
31403 #. type: =head2
31404 #: ../src/guestfs-actions.pod:7583
31405 msgid "guestfs_vgscan"
31406 msgstr ""
31407
31408 #. type: verbatim
31409 #: ../src/guestfs-actions.pod:7585
31410 #, no-wrap
31411 msgid ""
31412 " int\n"
31413 " guestfs_vgscan (guestfs_h *g);\n"
31414 "\n"
31415 msgstr ""
31416
31417 #. type: =head2
31418 #: ../src/guestfs-actions.pod:7595
31419 msgid "guestfs_vguuid"
31420 msgstr ""
31421
31422 #. type: verbatim
31423 #: ../src/guestfs-actions.pod:7597
31424 #, no-wrap
31425 msgid ""
31426 " char *\n"
31427 " guestfs_vguuid (guestfs_h *g,\n"
31428 "                 const char *vgname);\n"
31429 "\n"
31430 msgstr ""
31431
31432 #. type: =head2
31433 #: ../src/guestfs-actions.pod:7608
31434 msgid "guestfs_wait_ready"
31435 msgstr ""
31436
31437 #. type: verbatim
31438 #: ../src/guestfs-actions.pod:7610
31439 #, no-wrap
31440 msgid ""
31441 " int\n"
31442 " guestfs_wait_ready (guestfs_h *g);\n"
31443 "\n"
31444 msgstr ""
31445
31446 #. type: textblock
31447 #: ../src/guestfs-actions.pod:7613
31448 msgid "This function is a no op."
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs-actions.pod:7615
31453 msgid ""
31454 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31455 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31456 "is no longer necessary because C<guestfs_launch> now does the waiting."
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs-actions.pod:7620
31461 msgid ""
31462 "If you see any calls to this function in code then you can just remove them, "
31463 "unless you want to retain compatibility with older versions of the API."
31464 msgstr ""
31465
31466 #. type: textblock
31467 #: ../src/guestfs-actions.pod:7626
31468 msgid ""
31469 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
31470 "instead."
31471 msgstr ""
31472
31473 #. type: =head2
31474 #: ../src/guestfs-actions.pod:7635
31475 msgid "guestfs_wc_c"
31476 msgstr ""
31477
31478 #. type: verbatim
31479 #: ../src/guestfs-actions.pod:7637
31480 #, no-wrap
31481 msgid ""
31482 " int\n"
31483 " guestfs_wc_c (guestfs_h *g,\n"
31484 "               const char *path);\n"
31485 "\n"
31486 msgstr ""
31487
31488 #. type: =head2
31489 #: ../src/guestfs-actions.pod:7648
31490 msgid "guestfs_wc_l"
31491 msgstr ""
31492
31493 #. type: verbatim
31494 #: ../src/guestfs-actions.pod:7650
31495 #, no-wrap
31496 msgid ""
31497 " int\n"
31498 " guestfs_wc_l (guestfs_h *g,\n"
31499 "               const char *path);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: =head2
31504 #: ../src/guestfs-actions.pod:7661
31505 msgid "guestfs_wc_w"
31506 msgstr ""
31507
31508 #. type: verbatim
31509 #: ../src/guestfs-actions.pod:7663
31510 #, no-wrap
31511 msgid ""
31512 " int\n"
31513 " guestfs_wc_w (guestfs_h *g,\n"
31514 "               const char *path);\n"
31515 "\n"
31516 msgstr ""
31517
31518 #. type: =head2
31519 #: ../src/guestfs-actions.pod:7674
31520 msgid "guestfs_write"
31521 msgstr ""
31522
31523 #. type: verbatim
31524 #: ../src/guestfs-actions.pod:7676
31525 #, no-wrap
31526 msgid ""
31527 " int\n"
31528 " guestfs_write (guestfs_h *g,\n"
31529 "                const char *path,\n"
31530 "                const char *content,\n"
31531 "                size_t content_size);\n"
31532 "\n"
31533 msgstr ""
31534
31535 #. type: textblock
31536 #: ../src/guestfs-actions.pod:7685
31537 msgid "See also C<guestfs_write_append>."
31538 msgstr ""
31539
31540 #. type: =head2
31541 #: ../src/guestfs-actions.pod:7694
31542 msgid "guestfs_write_append"
31543 msgstr ""
31544
31545 #. type: verbatim
31546 #: ../src/guestfs-actions.pod:7696
31547 #, no-wrap
31548 msgid ""
31549 " int\n"
31550 " guestfs_write_append (guestfs_h *g,\n"
31551 "                       const char *path,\n"
31552 "                       const char *content,\n"
31553 "                       size_t content_size);\n"
31554 "\n"
31555 msgstr ""
31556
31557 #. type: textblock
31558 #: ../src/guestfs-actions.pod:7705
31559 msgid "See also C<guestfs_write>."
31560 msgstr ""
31561
31562 #. type: =head2
31563 #: ../src/guestfs-actions.pod:7714
31564 msgid "guestfs_write_file"
31565 msgstr "guestfs_write_file"
31566
31567 #. type: verbatim
31568 #: ../src/guestfs-actions.pod:7716
31569 #, no-wrap
31570 msgid ""
31571 " int\n"
31572 " guestfs_write_file (guestfs_h *g,\n"
31573 "                     const char *path,\n"
31574 "                     const char *content,\n"
31575 "                     int size);\n"
31576 "\n"
31577 msgstr ""
31578 " int\n"
31579 " guestfs_write_file (guestfs_h *g,\n"
31580 "                     const char *path,\n"
31581 "                     const char *content,\n"
31582 "                     int size);\n"
31583 "\n"
31584
31585 #. type: textblock
31586 #: ../src/guestfs-actions.pod:7738
31587 msgid ""
31588 "This function is deprecated.  In new code, use the L</guestfs_write> call "
31589 "instead."
31590 msgstr ""
31591
31592 #. type: =head2
31593 #: ../src/guestfs-actions.pod:7747
31594 msgid "guestfs_zegrep"
31595 msgstr "guestfs_zegrep"
31596
31597 #. type: verbatim
31598 #: ../src/guestfs-actions.pod:7749
31599 #, no-wrap
31600 msgid ""
31601 " char **\n"
31602 " guestfs_zegrep (guestfs_h *g,\n"
31603 "                 const char *regex,\n"
31604 "                 const char *path);\n"
31605 "\n"
31606 msgstr ""
31607 " char **\n"
31608 " guestfs_zegrep (guestfs_h *g,\n"
31609 "                 const char *regex,\n"
31610 "                 const char *path);\n"
31611 "\n"
31612
31613 #. type: =head2
31614 #: ../src/guestfs-actions.pod:7766
31615 msgid "guestfs_zegrepi"
31616 msgstr "guestfs_zegrepi"
31617
31618 #. type: verbatim
31619 #: ../src/guestfs-actions.pod:7768
31620 #, no-wrap
31621 msgid ""
31622 " char **\n"
31623 " guestfs_zegrepi (guestfs_h *g,\n"
31624 "                  const char *regex,\n"
31625 "                  const char *path);\n"
31626 "\n"
31627 msgstr ""
31628 " char **\n"
31629 " guestfs_zegrepi (guestfs_h *g,\n"
31630 "                  const char *regex,\n"
31631 "                  const char *path);\n"
31632 "\n"
31633
31634 #. type: =head2
31635 #: ../src/guestfs-actions.pod:7785
31636 msgid "guestfs_zero"
31637 msgstr "guestfs_zero"
31638
31639 #. type: verbatim
31640 #: ../src/guestfs-actions.pod:7787
31641 #, no-wrap
31642 msgid ""
31643 " int\n"
31644 " guestfs_zero (guestfs_h *g,\n"
31645 "               const char *device);\n"
31646 "\n"
31647 msgstr ""
31648 " int\n"
31649 " guestfs_zero (guestfs_h *g,\n"
31650 "               const char *device);\n"
31651 "\n"
31652
31653 #. type: textblock
31654 #: ../src/guestfs-actions.pod:7801
31655 msgid ""
31656 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31657 "C<guestfs_is_zero_device>"
31658 msgstr ""
31659
31660 #. type: =head2
31661 #: ../src/guestfs-actions.pod:7813
31662 msgid "guestfs_zero_device"
31663 msgstr "guestfs_zero_device"
31664
31665 #. type: verbatim
31666 #: ../src/guestfs-actions.pod:7815
31667 #, no-wrap
31668 msgid ""
31669 " int\n"
31670 " guestfs_zero_device (guestfs_h *g,\n"
31671 "                      const char *device);\n"
31672 "\n"
31673 msgstr ""
31674 " int\n"
31675 " guestfs_zero_device (guestfs_h *g,\n"
31676 "                      const char *device);\n"
31677 "\n"
31678
31679 #. type: textblock
31680 #: ../src/guestfs-actions.pod:7819
31681 msgid ""
31682 "This command writes zeroes over the entire C<device>.  Compare with "
31683 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs-actions.pod:7837
31688 msgid "(Added in 1.3.1)"
31689 msgstr "(Додано у 1.3.1)"
31690
31691 #. type: =head2
31692 #: ../src/guestfs-actions.pod:7839
31693 msgid "guestfs_zerofree"
31694 msgstr "guestfs_zerofree"
31695
31696 #. type: verbatim
31697 #: ../src/guestfs-actions.pod:7841
31698 #, no-wrap
31699 msgid ""
31700 " int\n"
31701 " guestfs_zerofree (guestfs_h *g,\n"
31702 "                   const char *device);\n"
31703 "\n"
31704 msgstr ""
31705 " int\n"
31706 " guestfs_zerofree (guestfs_h *g,\n"
31707 "                   const char *device);\n"
31708 "\n"
31709
31710 #. type: =head2
31711 #: ../src/guestfs-actions.pod:7860
31712 msgid "guestfs_zfgrep"
31713 msgstr "guestfs_zfgrep"
31714
31715 #. type: verbatim
31716 #: ../src/guestfs-actions.pod:7862
31717 #, no-wrap
31718 msgid ""
31719 " char **\n"
31720 " guestfs_zfgrep (guestfs_h *g,\n"
31721 "                 const char *pattern,\n"
31722 "                 const char *path);\n"
31723 "\n"
31724 msgstr ""
31725 " char **\n"
31726 " guestfs_zfgrep (guestfs_h *g,\n"
31727 "                 const char *pattern,\n"
31728 "                 const char *path);\n"
31729 "\n"
31730
31731 #. type: =head2
31732 #: ../src/guestfs-actions.pod:7879
31733 msgid "guestfs_zfgrepi"
31734 msgstr "guestfs_zfgrepi"
31735
31736 #. type: verbatim
31737 #: ../src/guestfs-actions.pod:7881
31738 #, no-wrap
31739 msgid ""
31740 " char **\n"
31741 " guestfs_zfgrepi (guestfs_h *g,\n"
31742 "                  const char *pattern,\n"
31743 "                  const char *path);\n"
31744 "\n"
31745 msgstr ""
31746 " char **\n"
31747 " guestfs_zfgrepi (guestfs_h *g,\n"
31748 "                  const char *pattern,\n"
31749 "                  const char *path);\n"
31750 "\n"
31751
31752 #. type: =head2
31753 #: ../src/guestfs-actions.pod:7898
31754 msgid "guestfs_zfile"
31755 msgstr "guestfs_zfile"
31756
31757 #. type: verbatim
31758 #: ../src/guestfs-actions.pod:7900
31759 #, no-wrap
31760 msgid ""
31761 " char *\n"
31762 " guestfs_zfile (guestfs_h *g,\n"
31763 "                const char *meth,\n"
31764 "                const char *path);\n"
31765 "\n"
31766 msgstr ""
31767 " char *\n"
31768 " guestfs_zfile (guestfs_h *g,\n"
31769 "                const char *meth,\n"
31770 "                const char *path);\n"
31771 "\n"
31772
31773 #. type: textblock
31774 #: ../src/guestfs-actions.pod:7910
31775 msgid ""
31776 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31777 "files."
31778 msgstr ""
31779
31780 #. type: textblock
31781 #: ../src/guestfs-actions.pod:7916
31782 msgid ""
31783 "This function is deprecated.  In new code, use the L</guestfs_file> call "
31784 "instead."
31785 msgstr ""
31786
31787 #. type: =head2
31788 #: ../src/guestfs-actions.pod:7925
31789 msgid "guestfs_zgrep"
31790 msgstr "guestfs_zgrep"
31791
31792 #. type: verbatim
31793 #: ../src/guestfs-actions.pod:7927
31794 #, no-wrap
31795 msgid ""
31796 " char **\n"
31797 " guestfs_zgrep (guestfs_h *g,\n"
31798 "                const char *regex,\n"
31799 "                const char *path);\n"
31800 "\n"
31801 msgstr ""
31802 " char **\n"
31803 " guestfs_zgrep (guestfs_h *g,\n"
31804 "                const char *regex,\n"
31805 "                const char *path);\n"
31806 "\n"
31807
31808 #. type: =head2
31809 #: ../src/guestfs-actions.pod:7944
31810 msgid "guestfs_zgrepi"
31811 msgstr "guestfs_zgrepi"
31812
31813 #. type: verbatim
31814 #: ../src/guestfs-actions.pod:7946
31815 #, no-wrap
31816 msgid ""
31817 " char **\n"
31818 " guestfs_zgrepi (guestfs_h *g,\n"
31819 "                 const char *regex,\n"
31820 "                 const char *path);\n"
31821 "\n"
31822 msgstr ""
31823 " char **\n"
31824 " guestfs_zgrepi (guestfs_h *g,\n"
31825 "                 const char *regex,\n"
31826 "                 const char *path);\n"
31827 "\n"
31828
31829 #. type: =item
31830 #: ../src/guestfs-availability.pod:3
31831 msgid "B<augeas>"
31832 msgstr "B<augeas>"
31833
31834 #. type: textblock
31835 #: ../src/guestfs-availability.pod:5
31836 msgid ""
31837 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31838 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31839 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31840 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31841 "L</guestfs_aug_save> L</guestfs_aug_set>"
31842 msgstr ""
31843
31844 #. type: =item
31845 #: ../src/guestfs-availability.pod:21
31846 msgid "B<btrfs>"
31847 msgstr ""
31848
31849 #. type: textblock
31850 #: ../src/guestfs-availability.pod:23
31851 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31852 msgstr ""
31853
31854 #. type: =item
31855 #: ../src/guestfs-availability.pod:26
31856 #, fuzzy
31857 #| msgid "B<scrub>"
31858 msgid "B<grub>"
31859 msgstr "B<scrub>"
31860
31861 #. type: textblock
31862 #: ../src/guestfs-availability.pod:28
31863 msgid "The following functions: L</guestfs_grub_install>"
31864 msgstr ""
31865
31866 #. type: =item
31867 #: ../src/guestfs-availability.pod:31
31868 msgid "B<inotify>"
31869 msgstr "B<inotify>"
31870
31871 #. type: textblock
31872 #: ../src/guestfs-availability.pod:33
31873 msgid ""
31874 "The following functions: L</guestfs_inotify_add_watch> L</"
31875 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31876 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31877 msgstr ""
31878
31879 #. type: =item
31880 #: ../src/guestfs-availability.pod:41
31881 msgid "B<linuxfsuuid>"
31882 msgstr "B<linuxfsuuid>"
31883
31884 #. type: textblock
31885 #: ../src/guestfs-availability.pod:43
31886 msgid ""
31887 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31888 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31889 msgstr ""
31890
31891 #. type: =item
31892 #: ../src/guestfs-availability.pod:50
31893 msgid "B<linuxmodules>"
31894 msgstr "B<linuxmodules>"
31895
31896 #. type: textblock
31897 #: ../src/guestfs-availability.pod:52
31898 msgid "The following functions: L</guestfs_modprobe>"
31899 msgstr ""
31900
31901 #. type: =item
31902 #: ../src/guestfs-availability.pod:55
31903 msgid "B<linuxxattrs>"
31904 msgstr "B<linuxxattrs>"
31905
31906 #. type: textblock
31907 #: ../src/guestfs-availability.pod:57
31908 msgid ""
31909 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31910 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31911 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31912 "guestfs_setxattr>"
31913 msgstr ""
31914
31915 #. type: =item
31916 #: ../src/guestfs-availability.pod:68
31917 msgid "B<luks>"
31918 msgstr "B<luks>"
31919
31920 #. type: textblock
31921 #: ../src/guestfs-availability.pod:70
31922 msgid ""
31923 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31924 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31925 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31926 msgstr ""
31927
31928 #. type: =item
31929 #: ../src/guestfs-availability.pod:79
31930 msgid "B<lvm2>"
31931 msgstr "B<lvm2>"
31932
31933 #. type: textblock
31934 #: ../src/guestfs-availability.pod:81
31935 msgid ""
31936 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31937 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31938 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31939 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31940 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31941 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31942 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31943 msgstr ""
31944
31945 #. type: =item
31946 #: ../src/guestfs-availability.pod:104
31947 msgid "B<mknod>"
31948 msgstr "B<mknod>"
31949
31950 #. type: textblock
31951 #: ../src/guestfs-availability.pod:106
31952 msgid ""
31953 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31954 "guestfs_mknod_b> L</guestfs_mknod_c>"
31955 msgstr ""
31956
31957 #. type: =item
31958 #: ../src/guestfs-availability.pod:112
31959 msgid "B<ntfs3g>"
31960 msgstr "B<ntfs3g>"
31961
31962 #. type: textblock
31963 #: ../src/guestfs-availability.pod:114
31964 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31965 msgstr ""
31966
31967 #. type: =item
31968 #: ../src/guestfs-availability.pod:117
31969 msgid "B<ntfsprogs>"
31970 msgstr "B<ntfsprogs>"
31971
31972 #. type: textblock
31973 #: ../src/guestfs-availability.pod:119
31974 msgid ""
31975 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31976 "L</guestfs_ntfsresize_size>"
31977 msgstr ""
31978
31979 #. type: =item
31980 #: ../src/guestfs-availability.pod:124
31981 msgid "B<realpath>"
31982 msgstr "B<realpath>"
31983
31984 #. type: textblock
31985 #: ../src/guestfs-availability.pod:126
31986 msgid "The following functions: L</guestfs_realpath>"
31987 msgstr ""
31988
31989 #. type: =item
31990 #: ../src/guestfs-availability.pod:129
31991 msgid "B<scrub>"
31992 msgstr "B<scrub>"
31993
31994 #. type: textblock
31995 #: ../src/guestfs-availability.pod:131
31996 msgid ""
31997 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31998 "guestfs_scrub_freespace>"
31999 msgstr ""
32000
32001 #. type: =item
32002 #: ../src/guestfs-availability.pod:136
32003 msgid "B<selinux>"
32004 msgstr "B<selinux>"
32005
32006 #. type: textblock
32007 #: ../src/guestfs-availability.pod:138
32008 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32009 msgstr ""
32010
32011 #. type: =item
32012 #: ../src/guestfs-availability.pod:142
32013 msgid "B<xz>"
32014 msgstr "B<xz>"
32015
32016 #. type: textblock
32017 #: ../src/guestfs-availability.pod:144
32018 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32019 msgstr ""
32020
32021 #. type: =item
32022 #: ../src/guestfs-availability.pod:148
32023 msgid "B<zerofree>"
32024 msgstr "B<zerofree>"
32025
32026 #. type: textblock
32027 #: ../src/guestfs-availability.pod:150
32028 msgid "The following functions: L</guestfs_zerofree>"
32029 msgstr ""
32030
32031 #. type: =head2
32032 #: ../src/guestfs-structs.pod:1
32033 msgid "guestfs_int_bool"
32034 msgstr ""
32035
32036 #. type: verbatim
32037 #: ../src/guestfs-structs.pod:3
32038 #, no-wrap
32039 msgid ""
32040 " struct guestfs_int_bool {\n"
32041 "   int32_t i;\n"
32042 "   int32_t b;\n"
32043 " };\n"
32044 " \n"
32045 msgstr ""
32046
32047 #. type: verbatim
32048 #: ../src/guestfs-structs.pod:8
32049 #, no-wrap
32050 msgid ""
32051 " struct guestfs_int_bool_list {\n"
32052 "   uint32_t len; /* Number of elements in list. */\n"
32053 "   struct guestfs_int_bool *val; /* Elements. */\n"
32054 " };\n"
32055 " \n"
32056 msgstr ""
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-structs.pod:13
32060 #, no-wrap
32061 msgid ""
32062 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32063 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32064 "\n"
32065 msgstr ""
32066
32067 #. type: =head2
32068 #: ../src/guestfs-structs.pod:16
32069 msgid "guestfs_lvm_pv"
32070 msgstr ""
32071
32072 #. type: verbatim
32073 #: ../src/guestfs-structs.pod:18
32074 #, no-wrap
32075 msgid ""
32076 " struct guestfs_lvm_pv {\n"
32077 "   char *pv_name;\n"
32078 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32079 "   char pv_uuid[32];\n"
32080 "   char *pv_fmt;\n"
32081 "   uint64_t pv_size;\n"
32082 "   uint64_t dev_size;\n"
32083 "   uint64_t pv_free;\n"
32084 "   uint64_t pv_used;\n"
32085 "   char *pv_attr;\n"
32086 "   int64_t pv_pe_count;\n"
32087 "   int64_t pv_pe_alloc_count;\n"
32088 "   char *pv_tags;\n"
32089 "   uint64_t pe_start;\n"
32090 "   int64_t pv_mda_count;\n"
32091 "   uint64_t pv_mda_free;\n"
32092 " };\n"
32093 " \n"
32094 msgstr ""
32095
32096 #. type: verbatim
32097 #: ../src/guestfs-structs.pod:36
32098 #, no-wrap
32099 msgid ""
32100 " struct guestfs_lvm_pv_list {\n"
32101 "   uint32_t len; /* Number of elements in list. */\n"
32102 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32103 " };\n"
32104 " \n"
32105 msgstr ""
32106
32107 #. type: verbatim
32108 #: ../src/guestfs-structs.pod:41
32109 #, no-wrap
32110 msgid ""
32111 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32112 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32113 "\n"
32114 msgstr ""
32115
32116 #. type: =head2
32117 #: ../src/guestfs-structs.pod:44
32118 msgid "guestfs_lvm_vg"
32119 msgstr ""
32120
32121 #. type: verbatim
32122 #: ../src/guestfs-structs.pod:46
32123 #, no-wrap
32124 msgid ""
32125 " struct guestfs_lvm_vg {\n"
32126 "   char *vg_name;\n"
32127 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32128 "   char vg_uuid[32];\n"
32129 "   char *vg_fmt;\n"
32130 "   char *vg_attr;\n"
32131 "   uint64_t vg_size;\n"
32132 "   uint64_t vg_free;\n"
32133 "   char *vg_sysid;\n"
32134 "   uint64_t vg_extent_size;\n"
32135 "   int64_t vg_extent_count;\n"
32136 "   int64_t vg_free_count;\n"
32137 "   int64_t max_lv;\n"
32138 "   int64_t max_pv;\n"
32139 "   int64_t pv_count;\n"
32140 "   int64_t lv_count;\n"
32141 "   int64_t snap_count;\n"
32142 "   int64_t vg_seqno;\n"
32143 "   char *vg_tags;\n"
32144 "   int64_t vg_mda_count;\n"
32145 "   uint64_t vg_mda_free;\n"
32146 " };\n"
32147 " \n"
32148 msgstr ""
32149
32150 #. type: verbatim
32151 #: ../src/guestfs-structs.pod:69
32152 #, no-wrap
32153 msgid ""
32154 " struct guestfs_lvm_vg_list {\n"
32155 "   uint32_t len; /* Number of elements in list. */\n"
32156 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32157 " };\n"
32158 " \n"
32159 msgstr ""
32160
32161 #. type: verbatim
32162 #: ../src/guestfs-structs.pod:74
32163 #, no-wrap
32164 msgid ""
32165 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32166 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32167 "\n"
32168 msgstr ""
32169
32170 #. type: =head2
32171 #: ../src/guestfs-structs.pod:77
32172 msgid "guestfs_lvm_lv"
32173 msgstr ""
32174
32175 #. type: verbatim
32176 #: ../src/guestfs-structs.pod:79
32177 #, no-wrap
32178 msgid ""
32179 " struct guestfs_lvm_lv {\n"
32180 "   char *lv_name;\n"
32181 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32182 "   char lv_uuid[32];\n"
32183 "   char *lv_attr;\n"
32184 "   int64_t lv_major;\n"
32185 "   int64_t lv_minor;\n"
32186 "   int64_t lv_kernel_major;\n"
32187 "   int64_t lv_kernel_minor;\n"
32188 "   uint64_t lv_size;\n"
32189 "   int64_t seg_count;\n"
32190 "   char *origin;\n"
32191 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32192 "   float snap_percent;\n"
32193 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32194 "   float copy_percent;\n"
32195 "   char *move_pv;\n"
32196 "   char *lv_tags;\n"
32197 "   char *mirror_log;\n"
32198 "   char *modules;\n"
32199 " };\n"
32200 " \n"
32201 msgstr ""
32202
32203 #. type: verbatim
32204 #: ../src/guestfs-structs.pod:101
32205 #, no-wrap
32206 msgid ""
32207 " struct guestfs_lvm_lv_list {\n"
32208 "   uint32_t len; /* Number of elements in list. */\n"
32209 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32210 " };\n"
32211 " \n"
32212 msgstr ""
32213
32214 #. type: verbatim
32215 #: ../src/guestfs-structs.pod:106
32216 #, no-wrap
32217 msgid ""
32218 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32219 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32220 "\n"
32221 msgstr ""
32222
32223 #. type: verbatim
32224 #: ../src/guestfs-structs.pod:111
32225 #, no-wrap
32226 msgid ""
32227 " struct guestfs_stat {\n"
32228 "   int64_t dev;\n"
32229 "   int64_t ino;\n"
32230 "   int64_t mode;\n"
32231 "   int64_t nlink;\n"
32232 "   int64_t uid;\n"
32233 "   int64_t gid;\n"
32234 "   int64_t rdev;\n"
32235 "   int64_t size;\n"
32236 "   int64_t blksize;\n"
32237 "   int64_t blocks;\n"
32238 "   int64_t atime;\n"
32239 "   int64_t mtime;\n"
32240 "   int64_t ctime;\n"
32241 " };\n"
32242 " \n"
32243 msgstr ""
32244
32245 #. type: verbatim
32246 #: ../src/guestfs-structs.pod:127
32247 #, no-wrap
32248 msgid ""
32249 " struct guestfs_stat_list {\n"
32250 "   uint32_t len; /* Number of elements in list. */\n"
32251 "   struct guestfs_stat *val; /* Elements. */\n"
32252 " };\n"
32253 " \n"
32254 msgstr ""
32255
32256 #. type: verbatim
32257 #: ../src/guestfs-structs.pod:132
32258 #, no-wrap
32259 msgid ""
32260 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32261 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32262 "\n"
32263 msgstr ""
32264
32265 #. type: verbatim
32266 #: ../src/guestfs-structs.pod:137
32267 #, no-wrap
32268 msgid ""
32269 " struct guestfs_statvfs {\n"
32270 "   int64_t bsize;\n"
32271 "   int64_t frsize;\n"
32272 "   int64_t blocks;\n"
32273 "   int64_t bfree;\n"
32274 "   int64_t bavail;\n"
32275 "   int64_t files;\n"
32276 "   int64_t ffree;\n"
32277 "   int64_t favail;\n"
32278 "   int64_t fsid;\n"
32279 "   int64_t flag;\n"
32280 "   int64_t namemax;\n"
32281 " };\n"
32282 " \n"
32283 msgstr ""
32284
32285 #. type: verbatim
32286 #: ../src/guestfs-structs.pod:151
32287 #, no-wrap
32288 msgid ""
32289 " struct guestfs_statvfs_list {\n"
32290 "   uint32_t len; /* Number of elements in list. */\n"
32291 "   struct guestfs_statvfs *val; /* Elements. */\n"
32292 " };\n"
32293 " \n"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-structs.pod:156
32298 #, no-wrap
32299 msgid ""
32300 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32301 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32302 "\n"
32303 msgstr ""
32304
32305 #. type: =head2
32306 #: ../src/guestfs-structs.pod:159
32307 msgid "guestfs_dirent"
32308 msgstr ""
32309
32310 #. type: verbatim
32311 #: ../src/guestfs-structs.pod:161
32312 #, no-wrap
32313 msgid ""
32314 " struct guestfs_dirent {\n"
32315 "   int64_t ino;\n"
32316 "   char ftyp;\n"
32317 "   char *name;\n"
32318 " };\n"
32319 " \n"
32320 msgstr ""
32321
32322 #. type: verbatim
32323 #: ../src/guestfs-structs.pod:167
32324 #, no-wrap
32325 msgid ""
32326 " struct guestfs_dirent_list {\n"
32327 "   uint32_t len; /* Number of elements in list. */\n"
32328 "   struct guestfs_dirent *val; /* Elements. */\n"
32329 " };\n"
32330 " \n"
32331 msgstr ""
32332
32333 #. type: verbatim
32334 #: ../src/guestfs-structs.pod:172
32335 #, no-wrap
32336 msgid ""
32337 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32338 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32339 "\n"
32340 msgstr ""
32341
32342 #. type: verbatim
32343 #: ../src/guestfs-structs.pod:177
32344 #, no-wrap
32345 msgid ""
32346 " struct guestfs_version {\n"
32347 "   int64_t major;\n"
32348 "   int64_t minor;\n"
32349 "   int64_t release;\n"
32350 "   char *extra;\n"
32351 " };\n"
32352 " \n"
32353 msgstr ""
32354
32355 #. type: verbatim
32356 #: ../src/guestfs-structs.pod:184
32357 #, no-wrap
32358 msgid ""
32359 " struct guestfs_version_list {\n"
32360 "   uint32_t len; /* Number of elements in list. */\n"
32361 "   struct guestfs_version *val; /* Elements. */\n"
32362 " };\n"
32363 " \n"
32364 msgstr ""
32365
32366 #. type: verbatim
32367 #: ../src/guestfs-structs.pod:189
32368 #, no-wrap
32369 msgid ""
32370 " void guestfs_free_version (struct guestfs_free_version *);\n"
32371 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32372 "\n"
32373 msgstr ""
32374
32375 #. type: =head2
32376 #: ../src/guestfs-structs.pod:192
32377 msgid "guestfs_xattr"
32378 msgstr ""
32379
32380 #. type: verbatim
32381 #: ../src/guestfs-structs.pod:194
32382 #, no-wrap
32383 msgid ""
32384 " struct guestfs_xattr {\n"
32385 "   char *attrname;\n"
32386 "   /* The next two fields describe a byte array. */\n"
32387 "   uint32_t attrval_len;\n"
32388 "   char *attrval;\n"
32389 " };\n"
32390 " \n"
32391 msgstr ""
32392
32393 #. type: verbatim
32394 #: ../src/guestfs-structs.pod:201
32395 #, no-wrap
32396 msgid ""
32397 " struct guestfs_xattr_list {\n"
32398 "   uint32_t len; /* Number of elements in list. */\n"
32399 "   struct guestfs_xattr *val; /* Elements. */\n"
32400 " };\n"
32401 " \n"
32402 msgstr ""
32403
32404 #. type: verbatim
32405 #: ../src/guestfs-structs.pod:206
32406 #, no-wrap
32407 msgid ""
32408 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32409 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32410 "\n"
32411 msgstr ""
32412
32413 #. type: =head2
32414 #: ../src/guestfs-structs.pod:209
32415 msgid "guestfs_inotify_event"
32416 msgstr ""
32417
32418 #. type: verbatim
32419 #: ../src/guestfs-structs.pod:211
32420 #, no-wrap
32421 msgid ""
32422 " struct guestfs_inotify_event {\n"
32423 "   int64_t in_wd;\n"
32424 "   uint32_t in_mask;\n"
32425 "   uint32_t in_cookie;\n"
32426 "   char *in_name;\n"
32427 " };\n"
32428 " \n"
32429 msgstr ""
32430
32431 #. type: verbatim
32432 #: ../src/guestfs-structs.pod:218
32433 #, no-wrap
32434 msgid ""
32435 " struct guestfs_inotify_event_list {\n"
32436 "   uint32_t len; /* Number of elements in list. */\n"
32437 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32438 " };\n"
32439 " \n"
32440 msgstr ""
32441
32442 #. type: verbatim
32443 #: ../src/guestfs-structs.pod:223
32444 #, no-wrap
32445 msgid ""
32446 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32447 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32448 "\n"
32449 msgstr ""
32450
32451 #. type: =head2
32452 #: ../src/guestfs-structs.pod:226
32453 msgid "guestfs_partition"
32454 msgstr ""
32455
32456 #. type: verbatim
32457 #: ../src/guestfs-structs.pod:228
32458 #, no-wrap
32459 msgid ""
32460 " struct guestfs_partition {\n"
32461 "   int32_t part_num;\n"
32462 "   uint64_t part_start;\n"
32463 "   uint64_t part_end;\n"
32464 "   uint64_t part_size;\n"
32465 " };\n"
32466 " \n"
32467 msgstr ""
32468
32469 #. type: verbatim
32470 #: ../src/guestfs-structs.pod:235
32471 #, no-wrap
32472 msgid ""
32473 " struct guestfs_partition_list {\n"
32474 "   uint32_t len; /* Number of elements in list. */\n"
32475 "   struct guestfs_partition *val; /* Elements. */\n"
32476 " };\n"
32477 " \n"
32478 msgstr ""
32479
32480 #. type: verbatim
32481 #: ../src/guestfs-structs.pod:240
32482 #, no-wrap
32483 msgid ""
32484 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32485 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32486 "\n"
32487 msgstr ""
32488
32489 #. type: =head2
32490 #: ../src/guestfs-structs.pod:243
32491 msgid "guestfs_application"
32492 msgstr ""
32493
32494 #. type: verbatim
32495 #: ../src/guestfs-structs.pod:245
32496 #, no-wrap
32497 msgid ""
32498 " struct guestfs_application {\n"
32499 "   char *app_name;\n"
32500 "   char *app_display_name;\n"
32501 "   int32_t app_epoch;\n"
32502 "   char *app_version;\n"
32503 "   char *app_release;\n"
32504 "   char *app_install_path;\n"
32505 "   char *app_trans_path;\n"
32506 "   char *app_publisher;\n"
32507 "   char *app_url;\n"
32508 "   char *app_source_package;\n"
32509 "   char *app_summary;\n"
32510 "   char *app_description;\n"
32511 " };\n"
32512 " \n"
32513 msgstr ""
32514
32515 #. type: verbatim
32516 #: ../src/guestfs-structs.pod:260
32517 #, no-wrap
32518 msgid ""
32519 " struct guestfs_application_list {\n"
32520 "   uint32_t len; /* Number of elements in list. */\n"
32521 "   struct guestfs_application *val; /* Elements. */\n"
32522 " };\n"
32523 " \n"
32524 msgstr ""
32525
32526 #. type: verbatim
32527 #: ../src/guestfs-structs.pod:265
32528 #, no-wrap
32529 msgid ""
32530 " void guestfs_free_application (struct guestfs_free_application *);\n"
32531 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32532 "\n"
32533 msgstr ""
32534
32535 #. type: textblock
32536 #: ../src/guestfs.pod:5
32537 msgid "guestfs - Library for accessing and modifying virtual machine images"
32538 msgstr ""
32539 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32540 "машин"
32541
32542 #. type: verbatim
32543 #: ../src/guestfs.pod:11
32544 #, no-wrap
32545 msgid ""
32546 " guestfs_h *g = guestfs_create ();\n"
32547 " guestfs_add_drive (g, \"guest.img\");\n"
32548 " guestfs_launch (g);\n"
32549 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32550 " guestfs_touch (g, \"/hello\");\n"
32551 " guestfs_umount (g, \"/\");\n"
32552 " guestfs_close (g);\n"
32553 "\n"
32554 msgstr ""
32555 " guestfs_h *g = guestfs_create ();\n"
32556 " guestfs_add_drive (g, \"guest.img\");\n"
32557 " guestfs_launch (g);\n"
32558 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32559 " guestfs_touch (g, \"/hello\");\n"
32560 " guestfs_umount (g, \"/\");\n"
32561 " guestfs_close (g);\n"
32562 "\n"
32563
32564 #. type: textblock
32565 #: ../src/guestfs.pod:25
32566 msgid ""
32567 "Libguestfs is a library for accessing and modifying guest disk images.  "
32568 "Amongst the things this is good for: making batch configuration changes to "
32569 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32570 "between virtualization systems (see also: virt-p2v), performing partial "
32571 "backups, performing partial guest clones, cloning guests and changing "
32572 "registry/UUID/hostname info, and much else besides."
32573 msgstr ""
32574
32575 #. type: textblock
32576 #: ../src/guestfs.pod:33
32577 msgid ""
32578 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32579 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32580 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32581 "qcow2, vmdk."
32582 msgstr ""
32583
32584 #. type: textblock
32585 #: ../src/guestfs.pod:38
32586 msgid ""
32587 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32588 "what filesystem is in each LV, etc.).  It can also run commands in the "
32589 "context of the guest.  Also you can access filesystems over FUSE."
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs.pod:43
32594 msgid ""
32595 "Libguestfs is a library that can be linked with C and C++ management "
32596 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32597 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32598 "line."
32599 msgstr ""
32600
32601 #. type: textblock
32602 #: ../src/guestfs.pod:48
32603 msgid ""
32604 "You don't need to be root to use libguestfs, although obviously you do need "
32605 "enough permissions to access the disk images."
32606 msgstr ""
32607
32608 #. type: textblock
32609 #: ../src/guestfs.pod:51
32610 msgid ""
32611 "Libguestfs is a large API because it can do many things.  For a gentle "
32612 "introduction, please read the L</API OVERVIEW> section next."
32613 msgstr ""
32614
32615 #. type: textblock
32616 #: ../src/guestfs.pod:54
32617 msgid ""
32618 "There are also some example programs in the L<guestfs-examples(3)> manual "
32619 "page."
32620 msgstr ""
32621
32622 #. type: =head1
32623 #: ../src/guestfs.pod:57
32624 msgid "API OVERVIEW"
32625 msgstr "ОГЛЯД API"
32626
32627 #. type: textblock
32628 #: ../src/guestfs.pod:59
32629 msgid ""
32630 "This section provides a gentler overview of the libguestfs API.  We also try "
32631 "to group API calls together, where that may not be obvious from reading "
32632 "about the individual calls in the main section of this manual."
32633 msgstr ""
32634
32635 #. type: =head2
32636 #: ../src/guestfs.pod:64
32637 msgid "HANDLES"
32638 msgstr "ОБРОБНИКИ"
32639
32640 #. type: textblock
32641 #: ../src/guestfs.pod:66
32642 msgid ""
32643 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32644 "must add at least one disk image to the handle, followed by launching the "
32645 "handle, then performing whatever operations you want, and finally closing "
32646 "the handle.  By convention we use the single letter C<g> for the name of the "
32647 "handle variable, although of course you can use any name you want."
32648 msgstr ""
32649
32650 #. type: textblock
32651 #: ../src/guestfs.pod:73
32652 msgid "The general structure of all libguestfs-using programs looks like this:"
32653 msgstr ""
32654
32655 #. type: verbatim
32656 #: ../src/guestfs.pod:76
32657 #, no-wrap
32658 msgid ""
32659 " guestfs_h *g = guestfs_create ();\n"
32660 " \n"
32661 msgstr ""
32662 " guestfs_h *g = guestfs_create ();\n"
32663 " \n"
32664
32665 #. type: verbatim
32666 #: ../src/guestfs.pod:78
32667 #, no-wrap
32668 msgid ""
32669 " /* Call guestfs_add_drive additional times if there are\n"
32670 "  * multiple disk images.\n"
32671 "  */\n"
32672 " guestfs_add_drive (g, \"guest.img\");\n"
32673 " \n"
32674 msgstr ""
32675
32676 #. type: verbatim
32677 #: ../src/guestfs.pod:83
32678 #, no-wrap
32679 msgid ""
32680 " /* Most manipulation calls won't work until you've launched\n"
32681 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32682 "  * and _before_ other commands.\n"
32683 "  */\n"
32684 " guestfs_launch (g);\n"
32685 " \n"
32686 msgstr ""
32687
32688 #. type: verbatim
32689 #: ../src/guestfs.pod:89
32690 #, no-wrap
32691 msgid ""
32692 " /* Now you can examine what partitions, LVs etc are available.\n"
32693 "  */\n"
32694 " char **partitions = guestfs_list_partitions (g);\n"
32695 " char **logvols = guestfs_lvs (g);\n"
32696 " \n"
32697 msgstr ""
32698 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32699 "  */\n"
32700 " char **partitions = guestfs_list_partitions (g);\n"
32701 " char **logvols = guestfs_lvs (g);\n"
32702 " \n"
32703
32704 #. type: verbatim
32705 #: ../src/guestfs.pod:94
32706 #, no-wrap
32707 msgid ""
32708 " /* To access a filesystem in the image, you must mount it.\n"
32709 "  */\n"
32710 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32711 " \n"
32712 msgstr ""
32713 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32714 "  */\n"
32715 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32716 " \n"
32717
32718 #. type: verbatim
32719 #: ../src/guestfs.pod:98
32720 #, no-wrap
32721 msgid ""
32722 " /* Now you can perform filesystem actions on the guest\n"
32723 "  * disk image.\n"
32724 "  */\n"
32725 " guestfs_touch (g, \"/hello\");\n"
32726 " \n"
32727 msgstr ""
32728
32729 #. type: verbatim
32730 #: ../src/guestfs.pod:103
32731 #, no-wrap
32732 msgid ""
32733 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32734 "  * it is done automatically when you close the handle.  See\n"
32735 "  * discussion of autosync in this page.\n"
32736 "  */\n"
32737 " guestfs_sync (g);\n"
32738 " \n"
32739 msgstr ""
32740
32741 #. type: verbatim
32742 #: ../src/guestfs.pod:109
32743 #, no-wrap
32744 msgid ""
32745 " /* Close the handle 'g'. */\n"
32746 " guestfs_close (g);\n"
32747 "\n"
32748 msgstr ""
32749 " /* Закрити дескриптор 'g'. */\n"
32750 " guestfs_close (g);\n"
32751 "\n"
32752
32753 #. type: textblock
32754 #: ../src/guestfs.pod:112
32755 msgid ""
32756 "The code above doesn't include any error checking.  In real code you should "
32757 "check return values carefully for errors.  In general all functions that "
32758 "return integers return C<-1> on error, and all functions that return "
32759 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32760 "how to handle errors, and consult the documentation for each function call "
32761 "below to see precisely how they return error indications.  See L<guestfs-"
32762 "examples(3)> for fully worked examples."
32763 msgstr ""
32764
32765 #. type: =head2
32766 #: ../src/guestfs.pod:121
32767 msgid "DISK IMAGES"
32768 msgstr "ОБРАЗИ ДИСКІВ"
32769
32770 #. type: textblock
32771 #: ../src/guestfs.pod:123
32772 msgid ""
32773 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32774 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32775 "actual block device, or simply an empty file of zeroes that you have created "
32776 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32777 "of these."
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs.pod:129
32782 msgid ""
32783 "The call you should use in modern code for adding drives is L</"
32784 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32785 "specifying that the format is raw, do:"
32786 msgstr ""
32787
32788 #. type: verbatim
32789 #: ../src/guestfs.pod:133
32790 #, no-wrap
32791 msgid ""
32792 " guestfs_add_drive_opts (g, filename,\n"
32793 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32794 "                         -1);\n"
32795 "\n"
32796 msgstr ""
32797 " guestfs_add_drive_opts (g, filename,\n"
32798 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32799 "                         -1);\n"
32800 "\n"
32801
32802 #. type: textblock
32803 #: ../src/guestfs.pod:137
32804 msgid "You can add a disk read-only using:"
32805 msgstr "Ви можете додати диск у режимі лише читання:"
32806
32807 #. type: verbatim
32808 #: ../src/guestfs.pod:139
32809 #, no-wrap
32810 msgid ""
32811 " guestfs_add_drive_opts (g, filename,\n"
32812 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32813 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32814 "                         -1);\n"
32815 "\n"
32816 msgstr ""
32817 " guestfs_add_drive_opts (g, filename,\n"
32818 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32819 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32820 "                         -1);\n"
32821 "\n"
32822
32823 #. type: textblock
32824 #: ../src/guestfs.pod:144
32825 msgid ""
32826 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32827 "libguestfs won't modify the file."
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs.pod:147
32832 msgid ""
32833 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32834 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32835 "corruption, but adding it read-only is safe."
32836 msgstr ""
32837
32838 #. type: textblock
32839 #: ../src/guestfs.pod:151
32840 msgid ""
32841 "You must add at least one disk image, and you may add multiple disk images.  "
32842 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32843 "first one you added), C</dev/sdb> (for the second one you added), etc."
32844 msgstr ""
32845
32846 #. type: textblock
32847 #: ../src/guestfs.pod:156
32848 msgid ""
32849 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32850 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32851 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32852 msgstr ""
32853
32854 #. type: =head2
32855 #: ../src/guestfs.pod:161
32856 msgid "MOUNTING"
32857 msgstr "МОНТУВАННЯ"
32858
32859 #. type: textblock
32860 #: ../src/guestfs.pod:163
32861 msgid ""
32862 "Before you can read or write files, create directories and so on in a disk "
32863 "image that contains filesystems, you have to mount those filesystems using "
32864 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32865 "a disk image contains (for example) one partition with a filesystem on that "
32866 "partition, then you can mount it directly:"
32867 msgstr ""
32868
32869 #. type: verbatim
32870 #: ../src/guestfs.pod:170
32871 #, no-wrap
32872 msgid ""
32873 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32874 "\n"
32875 msgstr ""
32876 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32877 "\n"
32878
32879 #. type: textblock
32880 #: ../src/guestfs.pod:172
32881 msgid ""
32882 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32883 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32884 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32885 "that these are libguestfs virtual devices, and are nothing to do with host "
32886 "devices."
32887 msgstr ""
32888
32889 #. type: textblock
32890 #: ../src/guestfs.pod:178
32891 msgid ""
32892 "If you are given a disk image and you don't know what it contains then you "
32893 "have to find out.  Libguestfs can do that too: use L</"
32894 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32895 "LVs, and either try mounting each to see what is mountable, or else examine "
32896 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32897 "filesystems, use L</guestfs_list_filesystems>."
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:186
32902 msgid ""
32903 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32904 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32905 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32906 msgstr ""
32907
32908 #. type: textblock
32909 #: ../src/guestfs.pod:191
32910 msgid ""
32911 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32912 "several other variations of the C<guestfs_mount_*> call."
32913 msgstr ""
32914
32915 #. type: =head2
32916 #: ../src/guestfs.pod:194
32917 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32918 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32919
32920 #. type: textblock
32921 #: ../src/guestfs.pod:196
32922 msgid ""
32923 "The majority of the libguestfs API consists of fairly low-level calls for "
32924 "accessing and modifying the files, directories, symlinks etc on mounted "
32925 "filesystems.  There are over a hundred such calls which you can find listed "
32926 "in detail below in this man page, and we don't even pretend to cover them "
32927 "all in this overview."
32928 msgstr ""
32929
32930 #. type: textblock
32931 #: ../src/guestfs.pod:202
32932 msgid ""
32933 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32934 "mount point."
32935 msgstr ""
32936 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32937 "точкою монтування."
32938
32939 #. type: textblock
32940 #: ../src/guestfs.pod:205
32941 msgid ""
32942 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32943 "the file called C<\"etc/passwd\"> then you could do:"
32944 msgstr ""
32945 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32946 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32947 "таким кодом:"
32948
32949 #. type: verbatim
32950 #: ../src/guestfs.pod:208
32951 #, no-wrap
32952 msgid ""
32953 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32954 "\n"
32955 msgstr ""
32956 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32957 "\n"
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:210
32961 msgid ""
32962 "This would return C<data> as a newly allocated buffer containing the full "
32963 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32964 "or C<NULL> if there was an error."
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs.pod:214
32969 msgid ""
32970 "As another example, to create a top-level directory on that filesystem "
32971 "called C<\"var\"> you would do:"
32972 msgstr ""
32973
32974 #. type: verbatim
32975 #: ../src/guestfs.pod:217
32976 #, no-wrap
32977 msgid ""
32978 " guestfs_mkdir (g, \"/var\");\n"
32979 "\n"
32980 msgstr ""
32981 " guestfs_mkdir (g, \"/var\");\n"
32982 "\n"
32983
32984 #. type: textblock
32985 #: ../src/guestfs.pod:219
32986 msgid "To create a symlink you could do:"
32987 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32988
32989 #. type: verbatim
32990 #: ../src/guestfs.pod:221
32991 #, no-wrap
32992 msgid ""
32993 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32994 "               \"/etc/rc3.d/S30portmap\");\n"
32995 "\n"
32996 msgstr ""
32997 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32998 "               \"/etc/rc3.d/S30portmap\");\n"
32999 "\n"
33000
33001 #. type: textblock
33002 #: ../src/guestfs.pod:224
33003 msgid ""
33004 "Libguestfs will reject attempts to use relative paths and there is no "
33005 "concept of a current working directory."
33006 msgstr ""
33007
33008 #. type: textblock
33009 #: ../src/guestfs.pod:227
33010 msgid ""
33011 "Libguestfs can return errors in many situations: for example if the "
33012 "filesystem isn't writable, or if a file or directory that you requested "
33013 "doesn't exist.  If you are using the C API (documented here)  you have to "
33014 "check for those error conditions after each call.  (Other language bindings "
33015 "turn these errors into exceptions)."
33016 msgstr ""
33017
33018 #. type: textblock
33019 #: ../src/guestfs.pod:233
33020 msgid ""
33021 "File writes are affected by the per-handle umask, set by calling L</"
33022 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33023 msgstr ""
33024
33025 #. type: =head2
33026 #: ../src/guestfs.pod:236
33027 msgid "PARTITIONING"
33028 msgstr "ПОДІЛ НА РОЗДІЛИ"
33029
33030 #. type: textblock
33031 #: ../src/guestfs.pod:238
33032 msgid ""
33033 "Libguestfs contains API calls to read, create and modify partition tables on "
33034 "disk images."
33035 msgstr ""
33036
33037 #. type: textblock
33038 #: ../src/guestfs.pod:241
33039 msgid ""
33040 "In the common case where you want to create a single partition covering the "
33041 "whole disk, you should use the L</guestfs_part_disk> call:"
33042 msgstr ""
33043
33044 #. type: verbatim
33045 #: ../src/guestfs.pod:245
33046 #, no-wrap
33047 msgid ""
33048 " const char *parttype = \"mbr\";\n"
33049 " if (disk_is_larger_than_2TB)\n"
33050 "   parttype = \"gpt\";\n"
33051 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33052 "\n"
33053 msgstr ""
33054 " const char *parttype = \"mbr\";\n"
33055 " if (disk_is_larger_than_2TB)\n"
33056 "   parttype = \"gpt\";\n"
33057 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33058 "\n"
33059
33060 #. type: textblock
33061 #: ../src/guestfs.pod:250
33062 msgid ""
33063 "Obviously this effectively wipes anything that was on that disk image before."
33064 msgstr ""
33065
33066 #. type: =head2
33067 #: ../src/guestfs.pod:253
33068 msgid "LVM2"
33069 msgstr "LVM2"
33070
33071 #. type: textblock
33072 #: ../src/guestfs.pod:255
33073 msgid ""
33074 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33075 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33076 "you familiarize yourself with the concepts of physical volumes, volume "
33077 "groups and logical volumes."
33078 msgstr ""
33079
33080 #. type: textblock
33081 #: ../src/guestfs.pod:260
33082 msgid ""
33083 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33084 "tldp.org/HOWTO/LVM-HOWTO/>."
33085 msgstr ""
33086
33087 #. type: =head2
33088 #: ../src/guestfs.pod:263
33089 msgid "DOWNLOADING"
33090 msgstr "ОТРИМАННЯ ДАНИХ"
33091
33092 #. type: textblock
33093 #: ../src/guestfs.pod:265
33094 msgid ""
33095 "Use L</guestfs_cat> to download small, text only files.  This call is "
33096 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33097 "NUL (C<\\0>) characters.  However the API is very simple to use."
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:269
33102 msgid ""
33103 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33104 "bit data, since it returns a (pointer, size) pair.  However it is still "
33105 "limited to \"small\" files, less than 2 MB."
33106 msgstr ""
33107
33108 #. type: textblock
33109 #: ../src/guestfs.pod:273
33110 msgid ""
33111 "L</guestfs_download> can be used to download any file, with no limits on "
33112 "content or size (even files larger than 4 GB)."
33113 msgstr ""
33114
33115 #. type: textblock
33116 #: ../src/guestfs.pod:276
33117 msgid ""
33118 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33119 msgstr ""
33120
33121 #. type: =head2
33122 #: ../src/guestfs.pod:279
33123 msgid "UPLOADING"
33124 msgstr "ВИВАНТАЖЕННЯ"
33125
33126 #. type: textblock
33127 #: ../src/guestfs.pod:281
33128 msgid ""
33129 "It's often the case that you want to write a file or files to the disk image."
33130 msgstr ""
33131
33132 #. type: textblock
33133 #: ../src/guestfs.pod:284
33134 msgid ""
33135 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33136 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33137 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33138 "of other functions for creating test files, for example L</guestfs_fill> and "
33139 "L</guestfs_fill_pattern>."
33140 msgstr ""
33141
33142 #. type: textblock
33143 #: ../src/guestfs.pod:290
33144 msgid ""
33145 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33146 "file content or size (even files larger than 4 GB)."
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs.pod:293
33151 msgid ""
33152 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33153 msgstr ""
33154
33155 #. type: textblock
33156 #: ../src/guestfs.pod:295
33157 msgid ""
33158 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33159 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33160 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33161 "in a predictable way (eg. adding it last after all other drives) then you "
33162 "can get the device name from L</guestfs_list_devices> and mount it directly "
33163 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33164 "portable between kernel versions, and they don't support labels or UUIDs.  "
33165 "If you want to pre-build an image or you need to mount it using a label or "
33166 "UUID, use an ISO image instead."
33167 msgstr ""
33168
33169 #. type: =head2
33170 #: ../src/guestfs.pod:306
33171 msgid "COPYING"
33172 msgstr "КОПІЮВАННЯ"
33173
33174 #. type: textblock
33175 #: ../src/guestfs.pod:308
33176 msgid ""
33177 "There are various different commands for copying between files and devices "
33178 "and in and out of the guest filesystem.  These are summarised in the table "
33179 "below."
33180 msgstr ""
33181
33182 #. type: =item
33183 #: ../src/guestfs.pod:314
33184 msgid "B<file> to B<file>"
33185 msgstr "B<файл> у B<файл>"
33186
33187 #. type: textblock
33188 #: ../src/guestfs.pod:316
33189 msgid ""
33190 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33191 "directories recursively."
33192 msgstr ""
33193
33194 #. type: =item
33195 #: ../src/guestfs.pod:319
33196 msgid "B<file or device> to B<file or device>"
33197 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33198
33199 #. type: textblock
33200 #: ../src/guestfs.pod:321
33201 msgid ""
33202 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33203 "devices in the guest."
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs.pod:324
33208 msgid "Example: duplicate the contents of an LV:"
33209 msgstr ""
33210
33211 #. type: verbatim
33212 #: ../src/guestfs.pod:326
33213 #, no-wrap
33214 msgid ""
33215 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33216 "\n"
33217 msgstr ""
33218 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33219 "\n"
33220
33221 #. type: textblock
33222 #: ../src/guestfs.pod:328
33223 msgid ""
33224 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33225 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33226 "guestfs_copy_size>."
33227 msgstr ""
33228
33229 #. type: =item
33230 #: ../src/guestfs.pod:332
33231 msgid "B<file on the host> to B<file or device>"
33232 msgstr ""
33233
33234 #. type: textblock
33235 #: ../src/guestfs.pod:334
33236 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33237 msgstr ""
33238
33239 #. type: =item
33240 #: ../src/guestfs.pod:336
33241 msgid "B<file or device> to B<file on the host>"
33242 msgstr ""
33243
33244 #. type: textblock
33245 #: ../src/guestfs.pod:338
33246 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33247 msgstr ""
33248
33249 #. type: =head2
33250 #: ../src/guestfs.pod:342
33251 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33252 msgstr ""
33253
33254 #. type: textblock
33255 #: ../src/guestfs.pod:344
33256 msgid ""
33257 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33258 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33259 "appears you can only upload and download to files.  However many Un*x-like "
33260 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33261 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33262 "and arbitrary file descriptor N."
33263 msgstr ""
33264
33265 #. type: textblock
33266 #: ../src/guestfs.pod:352
33267 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33268 msgstr ""
33269
33270 #. type: verbatim
33271 #: ../src/guestfs.pod:355
33272 #, no-wrap
33273 msgid ""
33274 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33275 "\n"
33276 msgstr ""
33277 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33278 "\n"
33279
33280 #. type: textblock
33281 #: ../src/guestfs.pod:357
33282 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33283 msgstr ""
33284
33285 #. type: verbatim
33286 #: ../src/guestfs.pod:359
33287 #, no-wrap
33288 msgid ""
33289 " char devfd[64];\n"
33290 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33291 " guestfs_tar_out (g, \"/\", devfd);\n"
33292 "\n"
33293 msgstr ""
33294 " char devfd[64];\n"
33295 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33296 " guestfs_tar_out (g, \"/\", devfd);\n"
33297 "\n"
33298
33299 #. type: =head2
33300 #: ../src/guestfs.pod:363
33301 msgid "LISTING FILES"
33302 msgstr "СПИСКИ ФАЙЛІВ"
33303
33304 #. type: textblock
33305 #: ../src/guestfs.pod:365
33306 msgid ""
33307 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33308 "L<guestfish(1)>-equivalent command C<ll>)."
33309 msgstr ""
33310
33311 #. type: textblock
33312 #: ../src/guestfs.pod:368
33313 msgid ""
33314 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33315 "programs, as a flat list of strings."
33316 msgstr ""
33317
33318 #. type: textblock
33319 #: ../src/guestfs.pod:371
33320 msgid ""
33321 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33322 "directory, plus additional information about each one.  It is more "
33323 "equivalent to using the L<readdir(3)> call on a local filesystem."
33324 msgstr ""
33325
33326 #. type: textblock
33327 #: ../src/guestfs.pod:375
33328 msgid ""
33329 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33330 msgstr ""
33331
33332 #. type: =head2
33333 #: ../src/guestfs.pod:378
33334 msgid "RUNNING COMMANDS"
33335 msgstr "ВИКОНАННЯ КОМАНД"
33336
33337 #. type: textblock
33338 #: ../src/guestfs.pod:380
33339 msgid ""
33340 "Although libguestfs is primarily an API for manipulating files inside guest "
33341 "images, we also provide some limited facilities for running commands inside "
33342 "guests."
33343 msgstr ""
33344
33345 #. type: textblock
33346 #: ../src/guestfs.pod:384
33347 msgid "There are many limitations to this:"
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs.pod:390
33352 msgid ""
33353 "The kernel version that the command runs under will be different from what "
33354 "it expects."
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs.pod:395
33359 msgid ""
33360 "If the command needs to communicate with daemons, then most likely they "
33361 "won't be running."
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs.pod:400
33366 msgid "The command will be running in limited memory."
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs.pod:404
33371 msgid ""
33372 "The network may not be available unless you enable it (see L</"
33373 "guestfs_set_network>)."
33374 msgstr ""
33375
33376 #. type: textblock
33377 #: ../src/guestfs.pod:409
33378 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs.pod:413
33383 msgid ""
33384 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs.pod:418
33389 msgid ""
33390 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33391 "See L</SELINUX> in this manpage."
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs.pod:423
33396 msgid ""
33397 "I<Security:> It is not safe to run commands from untrusted, possibly "
33398 "malicious guests.  These commands may attempt to exploit your program by "
33399 "sending unexpected output.  They could also try to exploit the Linux kernel "
33400 "or qemu provided by the libguestfs appliance.  They could use the network "
33401 "provided by the libguestfs appliance to bypass ordinary network partitions "
33402 "and firewalls.  They could use the elevated privileges or different SELinux "
33403 "context of your program to their advantage."
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs.pod:432
33408 msgid ""
33409 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33410 "(a script which runs when the guest next boots normally), and to have this "
33411 "script run the commands you want in the normal context of the running guest, "
33412 "network security and so on.  For information about other security issues, "
33413 "see L</SECURITY>."
33414 msgstr ""
33415
33416 #. type: textblock
33417 #: ../src/guestfs.pod:440
33418 msgid ""
33419 "The two main API calls to run commands are L</guestfs_command> and L</"
33420 "guestfs_sh> (there are also variations)."
33421 msgstr ""
33422
33423 #. type: textblock
33424 #: ../src/guestfs.pod:443
33425 msgid ""
33426 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33427 "shell globs, redirections, etc will work."
33428 msgstr ""
33429
33430 #. type: =head2
33431 #: ../src/guestfs.pod:446
33432 msgid "CONFIGURATION FILES"
33433 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33434
33435 #. type: textblock
33436 #: ../src/guestfs.pod:448
33437 msgid ""
33438 "To read and write configuration files in Linux guest filesystems, we "
33439 "strongly recommend using Augeas.  For example, Augeas understands how to "
33440 "read and write, say, a Linux shadow password file or X.org configuration "
33441 "file, and so avoids you having to write that code."
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:453
33446 msgid ""
33447 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33448 "document Augeas itself here because there is excellent documentation on the "
33449 "L<http://augeas.net/> website."
33450 msgstr ""
33451
33452 #. type: textblock
33453 #: ../src/guestfs.pod:457
33454 msgid ""
33455 "If you don't want to use Augeas (you fool!) then try calling L</"
33456 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33457 "over."
33458 msgstr ""
33459
33460 #. type: =head2
33461 #: ../src/guestfs.pod:461
33462 msgid "SELINUX"
33463 msgstr "SELINUX"
33464
33465 #. type: textblock
33466 #: ../src/guestfs.pod:463
33467 msgid ""
33468 "We support SELinux guests.  To ensure that labeling happens correctly in "
33469 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33470 msgstr ""
33471
33472 #. type: textblock
33473 #: ../src/guestfs.pod:471
33474 msgid "Before launching, do:"
33475 msgstr ""
33476
33477 #. type: verbatim
33478 #: ../src/guestfs.pod:473
33479 #, no-wrap
33480 msgid ""
33481 " guestfs_set_selinux (g, 1);\n"
33482 "\n"
33483 msgstr ""
33484 " guestfs_set_selinux (g, 1);\n"
33485 "\n"
33486
33487 #. type: textblock
33488 #: ../src/guestfs.pod:477
33489 msgid ""
33490 "After mounting the guest's filesystem(s), load the policy.  This is best "
33491 "done by running the L<load_policy(8)> command in the guest itself:"
33492 msgstr ""
33493
33494 #. type: verbatim
33495 #: ../src/guestfs.pod:481
33496 #, no-wrap
33497 msgid ""
33498 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33499 "\n"
33500 msgstr ""
33501 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33502 "\n"
33503
33504 #. type: textblock
33505 #: ../src/guestfs.pod:483
33506 msgid ""
33507 "(Older versions of C<load_policy> require you to specify the name of the "
33508 "policy file)."
33509 msgstr ""
33510
33511 #. type: textblock
33512 #: ../src/guestfs.pod:488
33513 msgid ""
33514 "Optionally, set the security context for the API.  The correct security "
33515 "context to use can only be known by inspecting the guest.  As an example:"
33516 msgstr ""
33517
33518 #. type: verbatim
33519 #: ../src/guestfs.pod:492
33520 #, no-wrap
33521 msgid ""
33522 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33523 "\n"
33524 msgstr ""
33525 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33526 "\n"
33527
33528 #. type: textblock
33529 #: ../src/guestfs.pod:496
33530 msgid "This will work for running commands and editing existing files."
33531 msgstr ""
33532
33533 #. type: textblock
33534 #: ../src/guestfs.pod:498
33535 msgid ""
33536 "When new files are created, you may need to label them explicitly, for "
33537 "example by running the external command C<restorecon pathname>."
33538 msgstr ""
33539
33540 #. type: =head2
33541 #: ../src/guestfs.pod:502
33542 msgid "UMASK"
33543 msgstr "UMASK"
33544
33545 #. type: textblock
33546 #: ../src/guestfs.pod:504
33547 msgid ""
33548 "Certain calls are affected by the current file mode creation mask (the "
33549 "\"umask\").  In particular ones which create files or directories, such as "
33550 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33551 "either the default mode that the file is created with or modifies the mode "
33552 "that you supply."
33553 msgstr ""
33554
33555 #. type: textblock
33556 #: ../src/guestfs.pod:510
33557 msgid ""
33558 "The default umask is C<022>, so files are created with modes such as C<0644> "
33559 "and directories with C<0755>."
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:513
33564 msgid ""
33565 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33566 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33567 "guestfs_chmod> after creating each file or directory."
33568 msgstr ""
33569
33570 #. type: textblock
33571 #: ../src/guestfs.pod:517
33572 msgid "For more information about umask, see L<umask(2)>."
33573 msgstr ""
33574
33575 #. type: textblock
33576 #: ../src/guestfs.pod:521
33577 msgid ""
33578 "Libguestfs allows you to access Linux guests which have been encrypted using "
33579 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33580 "standard.  This includes nearly all whole disk encryption systems used by "
33581 "modern Linux guests."
33582 msgstr ""
33583
33584 #. type: textblock
33585 #: ../src/guestfs.pod:527
33586 msgid ""
33587 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33588 "returns the string C<crypto_LUKS>)."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:530
33593 msgid ""
33594 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33595 "will require the passphrase!"
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs.pod:533
33600 msgid ""
33601 "Opening a LUKS device creates a new device mapper device called C</dev/"
33602 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33603 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33604 "from and encrypted to the underlying block device respectively."
33605 msgstr ""
33606
33607 #. type: textblock
33608 #: ../src/guestfs.pod:539
33609 msgid ""
33610 "LVM volume groups on the device can be made visible by calling L</"
33611 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33612 "(s) can now be mounted in the usual way."
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:543
33617 msgid ""
33618 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33619 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33620 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33621 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33622 "underlying encrypted block device)."
33623 msgstr ""
33624
33625 #. type: =head2
33626 #: ../src/guestfs.pod:550
33627 msgid "INSPECTION"
33628 msgstr "ПЕРЕВІРКА"
33629
33630 #. type: textblock
33631 #: ../src/guestfs.pod:552
33632 msgid ""
33633 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33634 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33635 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33636 "version 1.5.3 the most frequently used part of this library has been "
33637 "rewritten in C and moved into the core code)."
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs.pod:559
33642 msgid ""
33643 "Add all disks belonging to the unknown virtual machine and call L</"
33644 "guestfs_launch> in the usual way."
33645 msgstr ""
33646
33647 #. type: textblock
33648 #: ../src/guestfs.pod:562
33649 msgid ""
33650 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33651 "and certain heuristics, and returns a list of operating systems that were "
33652 "found.  An empty list means none were found.  A single element is the root "
33653 "filesystem of the operating system.  For dual- or multi-boot guests, "
33654 "multiple roots can be returned, each one corresponding to a separate "
33655 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33656 "world of virtualization, but since this scenario can happen, we have built "
33657 "libguestfs to deal with it.)"
33658 msgstr ""
33659
33660 #. type: textblock
33661 #: ../src/guestfs.pod:571
33662 msgid ""
33663 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33664 "to get additional details about that operating system.  For example, call L</"
33665 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33666 "Windows and Linux-based operating systems respectively."
33667 msgstr ""
33668
33669 #. type: textblock
33670 #: ../src/guestfs.pod:577
33671 msgid ""
33672 "Un*x-like and Linux-based operating systems usually consist of several "
33673 "filesystems which are mounted at boot time (for example, a separate boot "
33674 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33675 "filesystems correspond to mount points.  Call "
33676 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33677 "hash table like this example:"
33678 msgstr ""
33679
33680 #. type: verbatim
33681 #: ../src/guestfs.pod:584
33682 #, no-wrap
33683 msgid ""
33684 " /boot => /dev/sda1\n"
33685 " /     => /dev/vg_guest/lv_root\n"
33686 " /usr  => /dev/vg_guest/lv_usr\n"
33687 "\n"
33688 msgstr ""
33689 " /boot => /dev/sda1\n"
33690 " /     => /dev/vg_guest/lv_root\n"
33691 " /usr  => /dev/vg_guest/lv_usr\n"
33692 "\n"
33693
33694 #. type: textblock
33695 #: ../src/guestfs.pod:588
33696 msgid ""
33697 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33698 "filesystems as suggested."
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:591
33703 msgid ""
33704 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33705 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33706 msgstr ""
33707
33708 #. type: textblock
33709 #: ../src/guestfs.pod:595
33710 msgid ""
33711 "Inspection currently only works for some common operating systems.  "
33712 "Contributors are welcome to send patches for other operating systems that we "
33713 "currently cannot detect."
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:599
33718 msgid ""
33719 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33720 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33721 "encrypted devices."
33722 msgstr ""
33723
33724 #. type: textblock
33725 #: ../src/guestfs.pod:603
33726 msgid ""
33727 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33728 "inspection and caches the results in the guest handle.  Subsequent calls to "
33729 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33730 "read the disks.  If you change the content of the guest disks, you can redo "
33731 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33732 "guestfs_inspect_list_applications> works a little differently from the other "
33733 "calls and does read the disks.  See documentation for that function for "
33734 "details)."
33735 msgstr ""
33736
33737 #. type: =head3
33738 #: ../src/guestfs.pod:612
33739 msgid "INSPECTING INSTALL DISKS"
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs.pod:614
33744 msgid ""
33745 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33746 "CDs and more."
33747 msgstr ""
33748
33749 #. type: textblock
33750 #: ../src/guestfs.pod:617
33751 msgid ""
33752 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33753 "system, which currently can be C<installed> (a regular operating system) or "
33754 "C<installer> (some sort of install disk)."
33755 msgstr ""
33756
33757 #. type: textblock
33758 #: ../src/guestfs.pod:621
33759 msgid ""
33760 "Further information is available about the operating system that can be "
33761 "installed using the regular inspection APIs like L</"
33762 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33763 msgstr ""
33764
33765 #. type: textblock
33766 #: ../src/guestfs.pod:626
33767 msgid ""
33768 "Some additional information specific to installer disks is also available "
33769 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33770 "guestfs_inspect_is_multipart> calls."
33771 msgstr ""
33772
33773 #. type: =head2
33774 #: ../src/guestfs.pod:631
33775 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33776 msgstr ""
33777
33778 #. type: textblock
33779 #: ../src/guestfs.pod:633
33780 msgid ""
33781 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33782 "ntfs-3g.org/> driver."
33783 msgstr ""
33784
33785 #. type: =head3
33786 #: ../src/guestfs.pod:636
33787 msgid "DRIVE LETTERS AND PATHS"
33788 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33789
33790 #. type: textblock
33791 #: ../src/guestfs.pod:638
33792 msgid ""
33793 "DOS and Windows still use drive letters, and the filesystems are always "
33794 "treated as case insensitive by Windows itself, and therefore you might find "
33795 "a Windows configuration file referring to a path like C<c:\\windows"
33796 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33797 "might be referred to as C</WINDOWS/System32>."
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs.pod:644
33802 msgid ""
33803 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33804 "L</guestfs_inspect_get_drive_mappings>)"
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs.pod:647
33809 msgid ""
33810 "Dealing with separator characters (backslash vs forward slash) is outside "
33811 "the scope of libguestfs, but usually a simple character replacement will "
33812 "work."
33813 msgstr ""
33814
33815 #. type: textblock
33816 #: ../src/guestfs.pod:651
33817 msgid ""
33818 "To resolve the case insensitivity of paths, call L</"
33819 "guestfs_case_sensitive_path>."
33820 msgstr ""
33821
33822 #. type: =head3
33823 #: ../src/guestfs.pod:654
33824 msgid "ACCESSING THE WINDOWS REGISTRY"
33825 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33826
33827 #. type: textblock
33828 #: ../src/guestfs.pod:656
33829 msgid ""
33830 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33831 "files, through the library C<hivex> which is part of the libguestfs project "
33832 "although ships as a separate tarball.  You have to locate and download the "
33833 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33834 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33835 "reg(1)> for more help on this issue."
33836 msgstr ""
33837
33838 #. type: =head3
33839 #: ../src/guestfs.pod:664
33840 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33841 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33842
33843 #. type: textblock
33844 #: ../src/guestfs.pod:666
33845 msgid ""
33846 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33847 "provide something which looks like a Linux symlink.  The way it tries to do "
33848 "the rewriting is described here:"
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs.pod:670
33853 msgid ""
33854 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33855 "symbolic-links/>"
33856 msgstr ""
33857 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33858 "symbolic-links/>"
33859
33860 #. type: textblock
33861 #: ../src/guestfs.pod:672
33862 msgid ""
33863 "The essential problem is that ntfs-3g simply does not have enough "
33864 "information to do a correct job.  NTFS links can contain drive letters and "
33865 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33866 "It is almost certainly the case that libguestfs callers should ignore what "
33867 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33868 msgstr ""
33869
33870 #. type: textblock
33871 #: ../src/guestfs.pod:679
33872 msgid ""
33873 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33874 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33875 "attribute, and read the raw reparse data from that (you can find the format "
33876 "documented in various places around the web)."
33877 msgstr ""
33878
33879 #. type: =head3
33880 #: ../src/guestfs.pod:684
33881 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33882 msgstr ""
33883
33884 #. type: textblock
33885 #: ../src/guestfs.pod:686
33886 msgid ""
33887 "There are other useful extended attributes that can be read from ntfs-3g "
33888 "filesystems (using L</guestfs_getxattr>).  See:"
33889 msgstr ""
33890
33891 #. type: textblock
33892 #: ../src/guestfs.pod:689
33893 msgid ""
33894 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33895 msgstr ""
33896 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33897
33898 #. type: =head2
33899 #: ../src/guestfs.pod:691
33900 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33901 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33902
33903 #. type: textblock
33904 #: ../src/guestfs.pod:693
33905 msgid ""
33906 "Although we don't want to discourage you from using the C API, we will "
33907 "mention here that the same API is also available in other languages."
33908 msgstr ""
33909
33910 #. type: textblock
33911 #: ../src/guestfs.pod:696
33912 msgid ""
33913 "The API is broadly identical in all supported languages.  This means that "
33914 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33915 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33916 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33917 "each language."
33918 msgstr ""
33919
33920 #. type: textblock
33921 #: ../src/guestfs.pod:702
33922 msgid ""
33923 "Error messages are automatically transformed into exceptions if the language "
33924 "supports it."
33925 msgstr ""
33926
33927 #. type: textblock
33928 #: ../src/guestfs.pod:705
33929 msgid ""
33930 "We don't try to \"object orientify\" parts of the API in OO languages, "
33931 "although contributors are welcome to write higher level APIs above what we "
33932 "provide in their favourite languages if they wish."
33933 msgstr ""
33934
33935 #. type: =item
33936 #: ../src/guestfs.pod:711
33937 msgid "B<C++>"
33938 msgstr "B<C++>"
33939
33940 #. type: textblock
33941 #: ../src/guestfs.pod:713
33942 msgid ""
33943 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33944 "identical to the C API.  C++ classes and exceptions are not used."
33945 msgstr ""
33946
33947 #. type: =item
33948 #: ../src/guestfs.pod:717
33949 msgid "B<C#>"
33950 msgstr "B<C#>"
33951
33952 #. type: textblock
33953 #: ../src/guestfs.pod:719
33954 msgid ""
33955 "The C# bindings are highly experimental.  Please read the warnings at the "
33956 "top of C<csharp/Libguestfs.cs>."
33957 msgstr ""
33958
33959 #. type: =item
33960 #: ../src/guestfs.pod:722
33961 msgid "B<Haskell>"
33962 msgstr "B<Haskell>"
33963
33964 #. type: textblock
33965 #: ../src/guestfs.pod:724
33966 msgid ""
33967 "This is the only language binding that is working but incomplete.  Only "
33968 "calls which return simple integers have been bound in Haskell, and we are "
33969 "looking for help to complete this binding."
33970 msgstr ""
33971
33972 #. type: =item
33973 #: ../src/guestfs.pod:728
33974 msgid "B<Java>"
33975 msgstr "B<Java>"
33976
33977 #. type: textblock
33978 #: ../src/guestfs.pod:730
33979 msgid ""
33980 "Full documentation is contained in the Javadoc which is distributed with "
33981 "libguestfs.  For examples, see L<guestfs-java(3)>."
33982 msgstr ""
33983
33984 #. type: =item
33985 #: ../src/guestfs.pod:733
33986 msgid "B<OCaml>"
33987 msgstr "B<OCaml>"
33988
33989 #. type: textblock
33990 #: ../src/guestfs.pod:735
33991 msgid "See L<guestfs-ocaml(3)>."
33992 msgstr "Див. L<guestfs-ocaml(3)>."
33993
33994 #. type: =item
33995 #: ../src/guestfs.pod:737
33996 msgid "B<Perl>"
33997 msgstr "B<Perl>"
33998
33999 #. type: textblock
34000 #: ../src/guestfs.pod:739
34001 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34002 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34003
34004 #. type: =item
34005 #: ../src/guestfs.pod:741
34006 msgid "B<PHP>"
34007 msgstr "B<PHP>"
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:743
34011 msgid ""
34012 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34013 "the php-libguestfs package for your distribution."
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs.pod:746
34018 msgid "The PHP binding only works correctly on 64 bit machines."
34019 msgstr ""
34020
34021 #. type: =item
34022 #: ../src/guestfs.pod:748
34023 msgid "B<Python>"
34024 msgstr "B<Python>"
34025
34026 #. type: textblock
34027 #: ../src/guestfs.pod:750
34028 msgid "See L<guestfs-python(3)>."
34029 msgstr "Див. L<guestfs-python(3)>."
34030
34031 #. type: =item
34032 #: ../src/guestfs.pod:752
34033 msgid "B<Ruby>"
34034 msgstr "B<Ruby>"
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:754
34038 msgid "See L<guestfs-ruby(3)>."
34039 msgstr "Див. L<guestfs-ruby(3)>."
34040
34041 #. type: =item
34042 #: ../src/guestfs.pod:756
34043 msgid "B<shell scripts>"
34044 msgstr "B<скрипти оболонки>"
34045
34046 #. type: textblock
34047 #: ../src/guestfs.pod:758
34048 msgid "See L<guestfish(1)>."
34049 msgstr "Див. L<guestfish(1)>."
34050
34051 #. type: =head2
34052 #: ../src/guestfs.pod:762
34053 msgid "LIBGUESTFS GOTCHAS"
34054 msgstr ""
34055
34056 #. type: textblock
34057 #: ../src/guestfs.pod:764
34058 msgid ""
34059 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34060 "system [...] that works in the way it is documented but is counterintuitive "
34061 "and almost invites mistakes.\""
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../src/guestfs.pod:768
34066 msgid ""
34067 "Since we developed libguestfs and the associated tools, there are several "
34068 "things we would have designed differently, but are now stuck with for "
34069 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34070 "release, you can expect these to change.  Beware of them."
34071 msgstr ""
34072
34073 #. type: =item
34074 #: ../src/guestfs.pod:776
34075 msgid "Autosync / forgetting to sync."
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs.pod:778
34080 msgid ""
34081 "I<Update:> Autosync is enabled by default for all API users starting from "
34082 "libguestfs 1.5.24.  This section only applies to older versions."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:781
34087 msgid ""
34088 "When modifying a filesystem from C or another language, you B<must> unmount "
34089 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34090 "libguestfs handle.  You can also call:"
34091 msgstr ""
34092
34093 #. type: verbatim
34094 #: ../src/guestfs.pod:785
34095 #, no-wrap
34096 msgid ""
34097 " guestfs_set_autosync (g, 1);\n"
34098 "\n"
34099 msgstr ""
34100 " guestfs_set_autosync (g, 1);\n"
34101 "\n"
34102
34103 #. type: textblock
34104 #: ../src/guestfs.pod:787
34105 msgid ""
34106 "to have the unmount/sync done automatically for you when the handle 'g' is "
34107 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:791
34112 msgid ""
34113 "If you forget to do this, then it is entirely possible that your changes "
34114 "won't be written out, or will be partially written, or (very rarely) that "
34115 "you'll get disk corruption."
34116 msgstr ""
34117
34118 #. type: textblock
34119 #: ../src/guestfs.pod:795
34120 msgid ""
34121 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34122 "guestfish scripts that forget to sync will work just fine, which can make "
34123 "this very puzzling if you are trying to debug a problem."
34124 msgstr ""
34125
34126 #. type: =item
34127 #: ../src/guestfs.pod:799
34128 msgid "Mount option C<-o sync> should not be the default."
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs.pod:801
34133 msgid ""
34134 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34135 "However C<-o sync> does not add any reliability benefit, but does have a "
34136 "very large performance impact."
34137 msgstr ""
34138
34139 #. type: textblock
34140 #: ../src/guestfs.pod:805
34141 msgid ""
34142 "The work around is to use L</guestfs_mount_options> and set the mount "
34143 "options that you actually want to use."
34144 msgstr ""
34145
34146 #. type: =item
34147 #: ../src/guestfs.pod:808
34148 msgid "Read-only should be the default."
34149 msgstr ""
34150
34151 #. type: textblock
34152 #: ../src/guestfs.pod:810
34153 msgid ""
34154 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34155 "specify I<--rw> if you want to make changes to the image."
34156 msgstr ""
34157
34158 #. type: textblock
34159 #: ../src/guestfs.pod:813
34160 msgid "This would reduce the potential to corrupt live VM images."
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:815
34165 msgid ""
34166 "Note that many filesystems change the disk when you just mount and unmount, "
34167 "even if you didn't perform any writes.  You need to use L</"
34168 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34169 msgstr ""
34170
34171 #. type: =item
34172 #: ../src/guestfs.pod:819
34173 msgid "guestfish command line is hard to use."
34174 msgstr ""
34175
34176 #. type: textblock
34177 #: ../src/guestfs.pod:821
34178 msgid ""
34179 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34180 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34181 "exist, so it fails.  In earlier versions of guestfish the error message was "
34182 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34183 "we should have used C<guestfish -c command> to run commands."
34184 msgstr ""
34185
34186 #. type: =item
34187 #: ../src/guestfs.pod:828
34188 msgid "guestfish megabyte modifiers don't work right on all commands"
34189 msgstr ""
34190
34191 #. type: textblock
34192 #: ../src/guestfs.pod:830
34193 msgid ""
34194 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34195 "other modifiers).  What guestfish actually does is to multiply the number "
34196 "part by the modifier part and pass the result to the C API.  However this "
34197 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34198 "expecting some other unit (eg. megabytes)."
34199 msgstr ""
34200
34201 #. type: textblock
34202 #: ../src/guestfs.pod:837
34203 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34204 msgstr ""
34205
34206 #. type: verbatim
34207 #: ../src/guestfs.pod:839
34208 #, no-wrap
34209 msgid ""
34210 " lvcreate LV VG 100M\n"
34211 "\n"
34212 msgstr ""
34213 " lvcreate LV VG 100M\n"
34214 "\n"
34215
34216 #. type: textblock
34217 #: ../src/guestfs.pod:841
34218 msgid ""
34219 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34220 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34221 "megabytes * megabytes) logical volume.  The error message you get from this "
34222 "is also a little obscure."
34223 msgstr ""
34224
34225 #. type: textblock
34226 #: ../src/guestfs.pod:846
34227 msgid ""
34228 "This could be fixed in the generator by specially marking parameters and "
34229 "return values which take bytes or other units."
34230 msgstr ""
34231
34232 #. type: =item
34233 #: ../src/guestfs.pod:849
34234 msgid "Ambiguity between devices and paths"
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs.pod:851
34239 msgid ""
34240 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34241 "sdb2>) and a similar pathname.  A file might just happen to be called "
34242 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34243 msgstr ""
34244
34245 #. type: textblock
34246 #: ../src/guestfs.pod:856
34247 msgid ""
34248 "In the current API we usually resolve this ambiguity by having two separate "
34249 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34250 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34251 "detecting if the path supplied begins with C</dev/>."
34252 msgstr ""
34253
34254 #. type: textblock
34255 #: ../src/guestfs.pod:862
34256 msgid ""
34257 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34258 "make paths/devices into structured names.  One way to do this would be to "
34259 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34260 "aspect of grub.  Another way would be to use a structured type, equivalent "
34261 "to this OCaml type:"
34262 msgstr ""
34263
34264 #. type: verbatim
34265 #: ../src/guestfs.pod:868
34266 #, no-wrap
34267 msgid ""
34268 " type path = Path of string | Device of int | Partition of int * int\n"
34269 "\n"
34270 msgstr ""
34271
34272 #. type: textblock
34273 #: ../src/guestfs.pod:870
34274 msgid "which would allow you to pass arguments like:"
34275 msgstr ""
34276
34277 #. type: verbatim
34278 #: ../src/guestfs.pod:872
34279 #, no-wrap
34280 msgid ""
34281 " Path \"/foo/bar\"\n"
34282 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34283 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34284 " Path \"/dev/sdb2\"    (* not a device *)\n"
34285 "\n"
34286 msgstr ""
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:877
34290 msgid ""
34291 "As you can see there are still problems to resolve even with this "
34292 "representation.  Also consider how it might work in guestfish."
34293 msgstr ""
34294
34295 #. type: =head2
34296 #: ../src/guestfs.pod:882
34297 msgid "KEYS AND PASSPHRASES"
34298 msgstr "КЛЮЧІ І ПАРОЛІ"
34299
34300 #. type: textblock
34301 #: ../src/guestfs.pod:884
34302 msgid ""
34303 "Certain libguestfs calls take a parameter that contains sensitive key "
34304 "material, passed in as a C string."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:887
34309 msgid ""
34310 "In the future we would hope to change the libguestfs implementation so that "
34311 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34312 "swap.  However this is I<not> done at the moment, because of the complexity "
34313 "of such an implementation."
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:892
34318 msgid ""
34319 "Therefore you should be aware that any key parameter you pass to libguestfs "
34320 "might end up being written out to the swap partition.  If this is a concern, "
34321 "scrub the swap partition or don't use libguestfs on encrypted devices."
34322 msgstr ""
34323
34324 #. type: =head2
34325 #: ../src/guestfs.pod:897
34326 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34327 msgstr ""
34328
34329 #. type: textblock
34330 #: ../src/guestfs.pod:899
34331 msgid ""
34332 "All high-level libguestfs actions are synchronous.  If you want to use "
34333 "libguestfs asynchronously then you must create a thread."
34334 msgstr ""
34335
34336 #. type: textblock
34337 #: ../src/guestfs.pod:902
34338 msgid ""
34339 "Only use the handle from a single thread.  Either use the handle exclusively "
34340 "from one thread, or provide your own mutex so that two threads cannot issue "
34341 "calls on the same handle at the same time."
34342 msgstr ""
34343
34344 #. type: textblock
34345 #: ../src/guestfs.pod:906
34346 msgid ""
34347 "See the graphical program guestfs-browser for one possible architecture for "
34348 "multithreaded programs using libvirt and libguestfs."
34349 msgstr ""
34350
34351 #. type: =head2
34352 #: ../src/guestfs.pod:909
34353 msgid "PATH"
34354 msgstr "ШЛЯХ"
34355
34356 #. type: textblock
34357 #: ../src/guestfs.pod:911
34358 msgid ""
34359 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34360 "internal path."
34361 msgstr ""
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:914
34365 msgid ""
34366 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34367 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34368 msgstr ""
34369
34370 #. type: textblock
34371 #: ../src/guestfs.pod:917
34372 msgid ""
34373 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34374 "to change the directories that libguestfs will search in.  The value is a "
34375 "colon-separated list of paths.  The current directory is I<not> searched "
34376 "unless the path contains an empty element or C<.>.  For example "
34377 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34378 "then C</usr/lib/guestfs>."
34379 msgstr ""
34380
34381 #. type: =head2
34382 #: ../src/guestfs.pod:924
34383 msgid "QEMU WRAPPERS"
34384 msgstr ""
34385
34386 #. type: textblock
34387 #: ../src/guestfs.pod:926
34388 msgid ""
34389 "If you want to compile your own qemu, run qemu from a non-standard location, "
34390 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34391 "around qemu."
34392 msgstr ""
34393
34394 #. type: textblock
34395 #: ../src/guestfs.pod:930
34396 msgid ""
34397 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34398 "last command in the shell script (so that qemu replaces the shell and "
34399 "becomes the direct child of the libguestfs-using program).  If you don't do "
34400 "this, then the qemu process won't be cleaned up correctly."
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs.pod:935
34405 msgid ""
34406 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34407 "source:"
34408 msgstr ""
34409
34410 #. type: verbatim
34411 #: ../src/guestfs.pod:938
34412 #, no-wrap
34413 msgid ""
34414 " #!/bin/sh -\n"
34415 " qemudir=/home/rjones/d/qemu\n"
34416 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34417 "\n"
34418 msgstr ""
34419 " #!/bin/sh -\n"
34420 " qemudir=/home/rjones/d/qemu\n"
34421 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34422 "\n"
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:942
34426 msgid ""
34427 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34428 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34429 "example:"
34430 msgstr ""
34431
34432 #. type: verbatim
34433 #: ../src/guestfs.pod:946
34434 #, no-wrap
34435 msgid ""
34436 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34437 "\n"
34438 msgstr ""
34439 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34440 "\n"
34441
34442 #. type: textblock
34443 #: ../src/guestfs.pod:948
34444 msgid ""
34445 "Note that libguestfs also calls qemu with the -help and -version options in "
34446 "order to determine features."
34447 msgstr ""
34448
34449 #. type: textblock
34450 #: ../src/guestfs.pod:951
34451 msgid ""
34452 "Wrappers can also be used to edit the options passed to qemu.  In the "
34453 "following example, the C<-machine ...> option (C<-machine> and the following "
34454 "argument) are removed from the command line and replaced with C<-machine pc,"
34455 "accel=tcg>.  The while loop iterates over the options until it finds the "
34456 "right one to remove, putting the remaining options into the C<args> array."
34457 msgstr ""
34458
34459 #. type: verbatim
34460 #: ../src/guestfs.pod:960
34461 #, no-wrap
34462 msgid ""
34463 " i=0\n"
34464 " while [ $# -gt 0 ]; do\n"
34465 "     case \"$1\" in\n"
34466 "     -machine)\n"
34467 "         shift 2;;\n"
34468 "     *)\n"
34469 "         args[i]=\"$1\"\n"
34470 "         (( i++ ))\n"
34471 "         shift ;;\n"
34472 "     esac\n"
34473 " done\n"
34474 " \n"
34475 msgstr ""
34476
34477 #. type: verbatim
34478 #: ../src/guestfs.pod:972
34479 #, no-wrap
34480 msgid ""
34481 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34482 "\n"
34483 msgstr ""
34484
34485 #. type: =head2
34486 #: ../src/guestfs.pod:974
34487 msgid "ATTACHING TO RUNNING DAEMONS"
34488 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34489
34490 #. type: textblock
34491 #: ../src/guestfs.pod:976
34492 msgid ""
34493 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34494 "babies.  Use with caution."
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs.pod:979
34499 msgid ""
34500 "I<Note (2):> This section explains how to attach to a running daemon from a "
34501 "low level perspective.  For most users, simply using virt tools such as "
34502 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34503 msgstr ""
34504
34505 #. type: =head3
34506 #: ../src/guestfs.pod:983
34507 msgid "Using guestfs_set_attach_method"
34508 msgstr "За допомогою guestfs_set_attach_method"
34509
34510 #. type: textblock
34511 #: ../src/guestfs.pod:985
34512 msgid ""
34513 "By calling L</guestfs_set_attach_method> you can change how the library "
34514 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34515 "ARCHITECTURE> for some background)."
34516 msgstr ""
34517
34518 #. type: textblock
34519 #: ../src/guestfs.pod:989
34520 msgid ""
34521 "The normal attach method is C<appliance>, where a small appliance is created "
34522 "containing the daemon, and then the library connects to this."
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs.pod:992
34527 msgid ""
34528 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34529 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34530 "daemon over the Unix domain socket."
34531 msgstr ""
34532
34533 #. type: textblock
34534 #: ../src/guestfs.pod:996
34535 msgid ""
34536 "The normal use for this is to connect to a running virtual machine that "
34537 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34538 "files inside the live virtual machine."
34539 msgstr ""
34540
34541 #. type: =head3
34542 #: ../src/guestfs.pod:1000
34543 msgid "Using guestfs_add_domain with live flag"
34544 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:1002
34548 msgid ""
34549 "L</guestfs_add_domain> provides some help for getting the correct attach "
34550 "method.  If you pass the C<live> option to this function, then (if the "
34551 "virtual machine is running) it will examine the libvirt XML looking for a "
34552 "virtio-serial channel to connect to:"
34553 msgstr ""
34554
34555 #. type: verbatim
34556 #: ../src/guestfs.pod:1008
34557 #, no-wrap
34558 msgid ""
34559 " <domain>\n"
34560 "   ...\n"
34561 "   <devices>\n"
34562 "     ...\n"
34563 "     <channel type='unix'>\n"
34564 "       <source mode='bind' path='/path/to/socket'/>\n"
34565 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34566 "     </channel>\n"
34567 "     ...\n"
34568 "   </devices>\n"
34569 " </domain>\n"
34570 "\n"
34571 msgstr ""
34572 " <domain>\n"
34573 "   ...\n"
34574 "   <devices>\n"
34575 "     ...\n"
34576 "     <channel type='unix'>\n"
34577 "       <source mode='bind' path='/path/to/socket'/>\n"
34578 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34579 "     </channel>\n"
34580 "     ...\n"
34581 "   </devices>\n"
34582 " </domain>\n"
34583 "\n"
34584
34585 #. type: textblock
34586 #: ../src/guestfs.pod:1020
34587 msgid ""
34588 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34589 "method to C<unix:/path/to/socket>."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1023
34594 msgid ""
34595 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34596 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34597 "to attach to and modify live virtual machines."
34598 msgstr ""
34599
34600 #. type: textblock
34601 #: ../src/guestfs.pod:1027
34602 msgid ""
34603 "The virtual machine needs to have been set up beforehand so that it has the "
34604 "virtio-serial channel and so that guestfsd is running inside it."
34605 msgstr ""
34606
34607 #. type: =head2
34608 #: ../src/guestfs.pod:1031
34609 msgid "ABI GUARANTEE"
34610 msgstr "ГАРАНТІЯ ЩОДО ABI"
34611
34612 #. type: textblock
34613 #: ../src/guestfs.pod:1033
34614 msgid ""
34615 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34616 "actions as outlined in this section.  Although we will deprecate some "
34617 "actions, for example if they get replaced by newer calls, we will keep the "
34618 "old actions forever.  This allows you the developer to program in confidence "
34619 "against the libguestfs API."
34620 msgstr ""
34621
34622 #. type: =head2
34623 #: ../src/guestfs.pod:1039
34624 msgid "BLOCK DEVICE NAMING"
34625 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:1041
34629 msgid ""
34630 "In the kernel there is now quite a profusion of schemata for naming block "
34631 "devices (in this context, by I<block device> I mean a physical or virtual "
34632 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34633 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34634 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34635 "for the old IDE driver (particularly for SATA devices) those devices also "
34636 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34637 "paravirtualized drivers.  This has created several different naming systems, "
34638 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34639 msgstr ""
34640
34641 #. type: textblock
34642 #: ../src/guestfs.pod:1053
34643 msgid ""
34644 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34645 "Linux kernel to access block devices.  We can run a variety of appliances "
34646 "based on a variety of Linux kernels."
34647 msgstr ""
34648
34649 #. type: textblock
34650 #: ../src/guestfs.pod:1057
34651 msgid ""
34652 "This causes a problem for libguestfs because many API calls use device or "
34653 "partition names.  Working scripts and the recipe (example) scripts that we "
34654 "make available over the internet could fail if the naming scheme changes."
34655 msgstr ""
34656
34657 #. type: textblock
34658 #: ../src/guestfs.pod:1062
34659 msgid ""
34660 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34661 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34662 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34663 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:1068
34668 msgid ""
34669 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34670 "L</guestfs_list_partitions> and similar calls return the true names of the "
34671 "devices and partitions as known to the appliance."
34672 msgstr ""
34673
34674 #. type: =head3
34675 #: ../src/guestfs.pod:1073
34676 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34677 msgstr ""
34678
34679 #. type: textblock
34680 #: ../src/guestfs.pod:1075
34681 msgid ""
34682 "Usually this translation is transparent.  However in some (very rare)  cases "
34683 "you may need to know the exact algorithm.  Such cases include where you use "
34684 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34685 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34686 msgstr ""
34687
34688 #. type: textblock
34689 #: ../src/guestfs.pod:1081
34690 msgid ""
34691 "The algorithm is applied only to I<parameters> which are known to be either "
34692 "device or partition names.  Return values from functions such as L</"
34693 "guestfs_list_devices> are never changed."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:1089
34698 msgid "Is the string a parameter which is a device or partition name?"
34699 msgstr ""
34700
34701 #. type: textblock
34702 #: ../src/guestfs.pod:1093
34703 msgid "Does the string begin with C</dev/sd>?"
34704 msgstr "Чи починається рядок з C</dev/sd>?"
34705
34706 #. type: textblock
34707 #: ../src/guestfs.pod:1097
34708 msgid ""
34709 "Does the named device exist? If so, we use that device.  However if I<not> "
34710 "then we continue with this algorithm."
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs.pod:1102
34715 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34716 msgstr ""
34717
34718 #. type: textblock
34719 #: ../src/guestfs.pod:1104
34720 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34721 msgstr ""
34722
34723 #. type: textblock
34724 #: ../src/guestfs.pod:1106
34725 msgid "If that named device exists, use it.  If not, continue."
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs.pod:1110
34730 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:1112
34735 msgid "If that named device exists, use it.  If not, return an error."
34736 msgstr ""
34737
34738 #. type: =head3
34739 #: ../src/guestfs.pod:1116
34740 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:1118
34745 msgid ""
34746 "Although the standard naming scheme and automatic translation is useful for "
34747 "simple programs and guestfish scripts, for larger programs it is best not to "
34748 "rely on this mechanism."
34749 msgstr ""
34750
34751 #. type: textblock
34752 #: ../src/guestfs.pod:1122
34753 msgid ""
34754 "Where possible for maximum future portability programs using libguestfs "
34755 "should use these future-proof techniques:"
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:1129
34760 msgid ""
34761 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34762 "device names, and then use those names directly."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:1132
34767 msgid ""
34768 "Since those device names exist by definition, they will never be translated."
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:1137
34773 msgid ""
34774 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34775 "filesystem labels."
34776 msgstr ""
34777
34778 #. type: =head1
34779 #: ../src/guestfs.pod:1142
34780 msgid "SECURITY"
34781 msgstr "БЕЗПЕКА"
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:1144
34785 msgid ""
34786 "This section discusses security implications of using libguestfs, "
34787 "particularly with untrusted or malicious guests or disk images."
34788 msgstr ""
34789
34790 #. type: =head2
34791 #: ../src/guestfs.pod:1147
34792 msgid "GENERAL SECURITY CONSIDERATIONS"
34793 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:1149
34797 msgid ""
34798 "Be careful with any files or data that you download from a guest (by "
34799 "\"download\" we mean not just the L</guestfs_download> command but any "
34800 "command that reads files, filenames, directories or anything else from a "
34801 "disk image).  An attacker could manipulate the data to fool your program "
34802 "into doing the wrong thing.  Consider cases such as:"
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:1159
34807 msgid "the data (file etc) not being present"
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs.pod:1163
34812 msgid "being present but empty"
34813 msgstr ""
34814
34815 #. type: textblock
34816 #: ../src/guestfs.pod:1167
34817 msgid "being much larger than normal"
34818 msgstr ""
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:1171
34822 msgid "containing arbitrary 8 bit data"
34823 msgstr ""
34824
34825 #. type: textblock
34826 #: ../src/guestfs.pod:1175
34827 msgid "being in an unexpected character encoding"
34828 msgstr ""
34829
34830 #. type: textblock
34831 #: ../src/guestfs.pod:1179
34832 msgid "containing homoglyphs."
34833 msgstr ""
34834
34835 #. type: =head2
34836 #: ../src/guestfs.pod:1183
34837 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34838 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34839
34840 #. type: textblock
34841 #: ../src/guestfs.pod:1185
34842 msgid ""
34843 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34844 "(VFS) module can sometimes be escalated into exploits by deliberately "
34845 "creating a malicious, malformed filesystem.  These exploits are very severe "
34846 "for two reasons.  Firstly there are very many filesystem drivers in the "
34847 "kernel, and many of them are infrequently used and not much developer "
34848 "attention has been paid to the code.  Linux userspace helps potential "
34849 "crackers by detecting the filesystem type and automatically choosing the "
34850 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34851 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34852 "exploit (worse in some ways), giving immediate and total access to the "
34853 "system right down to the hardware level."
34854 msgstr ""
34855
34856 #. type: textblock
34857 #: ../src/guestfs.pod:1198
34858 msgid ""
34859 "That explains why you should never mount a filesystem from an untrusted "
34860 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34861 "inside a qemu virtual machine, usually running as a non-root user.  The "
34862 "attacker would need to write a filesystem which first exploited the kernel, "
34863 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34864 "the libguestfs protocol, and finally to be as serious as the host kernel "
34865 "exploit it would need to escalate its privileges to root.  This multi-step "
34866 "escalation, performed by a static piece of data, is thought to be extremely "
34867 "hard to do, although we never say 'never' about security issues."
34868 msgstr ""
34869
34870 #. type: textblock
34871 #: ../src/guestfs.pod:1209
34872 msgid ""
34873 "In any case callers can reduce the attack surface by forcing the filesystem "
34874 "type when mounting (use L</guestfs_mount_vfs>)."
34875 msgstr ""
34876
34877 #. type: =head2
34878 #: ../src/guestfs.pod:1212
34879 msgid "PROTOCOL SECURITY"
34880 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34881
34882 #. type: textblock
34883 #: ../src/guestfs.pod:1214
34884 msgid ""
34885 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34886 "defined upper message size.  However a program that uses libguestfs must "
34887 "also take care - for example you can write a program that downloads a binary "
34888 "from a disk image and executes it locally, and no amount of protocol "
34889 "security will save you from the consequences."
34890 msgstr ""
34891
34892 #. type: =head2
34893 #: ../src/guestfs.pod:1220
34894 msgid "INSPECTION SECURITY"
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:1222
34899 msgid ""
34900 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34901 "directly from the guest, and these could contain any 8 bit data.  Callers "
34902 "should be careful to escape these before printing them to a structured file "
34903 "(for example, use HTML escaping if creating a web page)."
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:1228
34908 msgid ""
34909 "Guest configuration may be altered in unusual ways by the administrator of "
34910 "the virtual machine, and may not reflect reality (particularly for untrusted "
34911 "or actively malicious guests).  For example we parse the hostname from "
34912 "configuration files like C</etc/sysconfig/network> that we find in the "
34913 "guest, but the guest administrator can easily manipulate these files to "
34914 "provide the wrong hostname."
34915 msgstr ""
34916
34917 #. type: textblock
34918 #: ../src/guestfs.pod:1236
34919 msgid ""
34920 "The inspection API parses guest configuration using two external libraries: "
34921 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34922 "designed to be robust in the face of malicious data, although denial of "
34923 "service attacks are still possible, for example with oversized configuration "
34924 "files."
34925 msgstr ""
34926
34927 #. type: =head2
34928 #: ../src/guestfs.pod:1242
34929 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34930 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:1244
34934 msgid ""
34935 "Be very cautious about running commands from the guest.  By running a "
34936 "command in the guest, you are giving CPU time to a binary that you do not "
34937 "control, under the same user account as the library, albeit wrapped in qemu "
34938 "virtualization.  More information and alternatives can be found in the "
34939 "section L</RUNNING COMMANDS>."
34940 msgstr ""
34941
34942 #. type: =head2
34943 #: ../src/guestfs.pod:1250
34944 msgid "CVE-2010-3851"
34945 msgstr "CVE-2010-3851"
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:1252
34949 msgid "https://bugzilla.redhat.com/642934"
34950 msgstr "https://bugzilla.redhat.com/642934"
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:1254
34954 msgid ""
34955 "This security bug concerns the automatic disk format detection that qemu "
34956 "does on disk images."
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:1257
34961 msgid ""
34962 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34963 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34964 "for one of the known headers, and if none is found then assuming the disk "
34965 "image must be raw."
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:1262
34970 msgid ""
34971 "This allows a guest which has been given a raw disk image to write some "
34972 "other header.  At next boot (or when the disk image is accessed by "
34973 "libguestfs) qemu would do autodetection and think the disk image format was, "
34974 "say, qcow2 based on the header written by the guest."
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:1267
34979 msgid ""
34980 "This in itself would not be a problem, but qcow2 offers many features, one "
34981 "of which is to allow a disk image to refer to another image (called the "
34982 "\"backing disk\").  It does this by placing the path to the backing disk "
34983 "into the qcow2 header.  This path is not validated and could point to any "
34984 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34985 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34986 "control of the attacker."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:1275
34991 msgid ""
34992 "In libguestfs this is rather hard to exploit except under two circumstances:"
34993 msgstr ""
34994
34995 #. type: textblock
34996 #: ../src/guestfs.pod:1282
34997 msgid "You have enabled the network or have opened the disk in write mode."
34998 msgstr ""
34999
35000 #. type: textblock
35001 #: ../src/guestfs.pod:1286
35002 msgid ""
35003 "You are also running untrusted code from the guest (see L</RUNNING "
35004 "COMMANDS>)."
35005 msgstr ""
35006
35007 #. type: textblock
35008 #: ../src/guestfs.pod:1291
35009 msgid ""
35010 "The way to avoid this is to specify the expected disk format when adding "
35011 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35012 "should always do this if the disk is raw format, and it's a good idea for "
35013 "other cases too."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:1296
35018 msgid ""
35019 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35020 "format is fetched from libvirt and passed through."
35021 msgstr ""
35022
35023 #. type: textblock
35024 #: ../src/guestfs.pod:1299
35025 msgid ""
35026 "For libguestfs tools, use the I<--format> command line parameter as "
35027 "appropriate."
35028 msgstr ""
35029
35030 #. type: =head1
35031 #: ../src/guestfs.pod:1302
35032 msgid "CONNECTION MANAGEMENT"
35033 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35034
35035 #. type: =head2
35036 #: ../src/guestfs.pod:1304
35037 msgid "guestfs_h *"
35038 msgstr "guestfs_h *"
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:1306
35042 msgid ""
35043 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35044 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35045 "handle and release all resources used."
35046 msgstr ""
35047
35048 #. type: textblock
35049 #: ../src/guestfs.pod:1310
35050 msgid ""
35051 "For information on using multiple handles and threads, see the section L</"
35052 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35053 msgstr ""
35054
35055 #. type: =head2
35056 #: ../src/guestfs.pod:1313
35057 msgid "guestfs_create"
35058 msgstr "guestfs_create"
35059
35060 #. type: verbatim
35061 #: ../src/guestfs.pod:1315
35062 #, no-wrap
35063 msgid ""
35064 " guestfs_h *guestfs_create (void);\n"
35065 "\n"
35066 msgstr ""
35067 " guestfs_h *guestfs_create (void);\n"
35068 "\n"
35069
35070 #. type: textblock
35071 #: ../src/guestfs.pod:1317
35072 msgid "Create a connection handle."
35073 msgstr "Створити дескриптор з’єднання."
35074
35075 #. type: textblock
35076 #: ../src/guestfs.pod:1319
35077 msgid ""
35078 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35079 "NULL."
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:1322
35084 msgid ""
35085 "You have to \"configure\" the handle after creating it.  This includes "
35086 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35087 "handle at least once."
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:1326
35092 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35093 msgstr ""
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:1328
35097 msgid ""
35098 "You may also want to configure error handling for the handle.  See the L</"
35099 "ERROR HANDLING> section below."
35100 msgstr ""
35101
35102 #. type: =head2
35103 #: ../src/guestfs.pod:1331
35104 msgid "guestfs_close"
35105 msgstr "guestfs_close"
35106
35107 #. type: verbatim
35108 #: ../src/guestfs.pod:1333
35109 #, no-wrap
35110 msgid ""
35111 " void guestfs_close (guestfs_h *g);\n"
35112 "\n"
35113 msgstr ""
35114 " void guestfs_close (guestfs_h *g);\n"
35115 "\n"
35116
35117 #. type: textblock
35118 #: ../src/guestfs.pod:1335
35119 msgid "This closes the connection handle and frees up all resources used."
35120 msgstr ""
35121
35122 #. type: textblock
35123 #: ../src/guestfs.pod:1337
35124 msgid ""
35125 "If autosync was set on the handle and the handle was launched, then this "
35126 "implicitly calls various functions to unmount filesystems and sync the "
35127 "disk.  See L</guestfs_set_autosync> for more details."
35128 msgstr ""
35129
35130 #. type: textblock
35131 #: ../src/guestfs.pod:1341
35132 msgid "If a close callback was set on the handle, then it is called."
35133 msgstr ""
35134
35135 #. type: =head1
35136 #: ../src/guestfs.pod:1343
35137 msgid "ERROR HANDLING"
35138 msgstr "ОБРОБКА ПОМИЛОК"
35139
35140 #. type: textblock
35141 #: ../src/guestfs.pod:1345
35142 msgid ""
35143 "API functions can return errors.  For example, almost all functions that "
35144 "return C<int> will return C<-1> to indicate an error."
35145 msgstr ""
35146
35147 #. type: textblock
35148 #: ../src/guestfs.pod:1348
35149 msgid ""
35150 "Additional information is available for errors: an error message string and "
35151 "optionally an error number (errno) if the thing that failed was a system "
35152 "call."
35153 msgstr ""
35154
35155 #. type: textblock
35156 #: ../src/guestfs.pod:1352
35157 msgid ""
35158 "You can get at the additional information about the last error on the handle "
35159 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35160 "up an error handler with L</guestfs_set_error_handler>."
35161 msgstr ""
35162
35163 #. type: textblock
35164 #: ../src/guestfs.pod:1357
35165 msgid ""
35166 "When the handle is created, a default error handler is installed which "
35167 "prints the error message string to C<stderr>.  For small short-running "
35168 "command line programs it is sufficient to do:"
35169 msgstr ""
35170
35171 #. type: verbatim
35172 #: ../src/guestfs.pod:1361
35173 #, no-wrap
35174 msgid ""
35175 " if (guestfs_launch (g) == -1)\n"
35176 "   exit (EXIT_FAILURE);\n"
35177 "\n"
35178 msgstr ""
35179 " if (guestfs_launch (g) == -1)\n"
35180 "   exit (EXIT_FAILURE);\n"
35181 "\n"
35182
35183 #. type: textblock
35184 #: ../src/guestfs.pod:1364
35185 msgid ""
35186 "since the default error handler will ensure that an error message has been "
35187 "printed to C<stderr> before the program exits."
35188 msgstr ""
35189
35190 #. type: textblock
35191 #: ../src/guestfs.pod:1367
35192 msgid ""
35193 "For other programs the caller will almost certainly want to install an "
35194 "alternate error handler or do error handling in-line like this:"
35195 msgstr ""
35196
35197 #. type: verbatim
35198 #: ../src/guestfs.pod:1370
35199 #, no-wrap
35200 msgid ""
35201 " g = guestfs_create ();\n"
35202 " \n"
35203 msgstr ""
35204 " g = guestfs_create ();\n"
35205 " \n"
35206
35207 #. type: verbatim
35208 #: ../src/guestfs.pod:1372
35209 #, no-wrap
35210 msgid ""
35211 " /* This disables the default behaviour of printing errors\n"
35212 "    on stderr. */\n"
35213 " guestfs_set_error_handler (g, NULL, NULL);\n"
35214 " \n"
35215 msgstr ""
35216
35217 #. type: verbatim
35218 #: ../src/guestfs.pod:1376
35219 #, no-wrap
35220 msgid ""
35221 " if (guestfs_launch (g) == -1) {\n"
35222 "   /* Examine the error message and print it etc. */\n"
35223 "   char *msg = guestfs_last_error (g);\n"
35224 "   int errnum = guestfs_last_errno (g);\n"
35225 "   fprintf (stderr, \"%s\\n\", msg);\n"
35226 "   /* ... */\n"
35227 "  }\n"
35228 "\n"
35229 msgstr ""
35230 " if (guestfs_launch (g) == -1) {\n"
35231 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35232 "   char *msg = guestfs_last_error (g);\n"
35233 "   int errnum = guestfs_last_errno (g);\n"
35234 "   fprintf (stderr, \"%s\\n\", msg);\n"
35235 "   /* ... */\n"
35236 "  }\n"
35237 "\n"
35238
35239 #. type: textblock
35240 #: ../src/guestfs.pod:1384
35241 msgid ""
35242 "Out of memory errors are handled differently.  The default action is to call "
35243 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35244 "guestfs_set_out_of_memory_handler>."
35245 msgstr ""
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:1388
35249 msgid ""
35250 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35251 "because there is no handle if this happens there is no way to get additional "
35252 "error information.  However L</guestfs_create> is supposed to be a "
35253 "lightweight operation which can only fail because of insufficient memory (it "
35254 "returns NULL in this case)."
35255 msgstr ""
35256
35257 #. type: =head2
35258 #: ../src/guestfs.pod:1394
35259 msgid "guestfs_last_error"
35260 msgstr "guestfs_last_error"
35261
35262 #. type: verbatim
35263 #: ../src/guestfs.pod:1396
35264 #, no-wrap
35265 msgid ""
35266 " const char *guestfs_last_error (guestfs_h *g);\n"
35267 "\n"
35268 msgstr ""
35269 " const char *guestfs_last_error (guestfs_h *g);\n"
35270 "\n"
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:1398
35274 msgid ""
35275 "This returns the last error message that happened on C<g>.  If there has not "
35276 "been an error since the handle was created, then this returns C<NULL>."
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:1402
35281 msgid ""
35282 "The lifetime of the returned string is until the next error occurs, or L</"
35283 "guestfs_close> is called."
35284 msgstr ""
35285
35286 #. type: =head2
35287 #: ../src/guestfs.pod:1405
35288 msgid "guestfs_last_errno"
35289 msgstr "guestfs_last_errno"
35290
35291 #. type: verbatim
35292 #: ../src/guestfs.pod:1407
35293 #, no-wrap
35294 msgid ""
35295 " int guestfs_last_errno (guestfs_h *g);\n"
35296 "\n"
35297 msgstr ""
35298 " int guestfs_last_errno (guestfs_h *g);\n"
35299 "\n"
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:1409
35303 msgid "This returns the last error number (errno) that happened on C<g>."
35304 msgstr ""
35305
35306 #. type: textblock
35307 #: ../src/guestfs.pod:1411
35308 msgid "If successful, an errno integer not equal to zero is returned."
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:1413
35313 msgid ""
35314 "If no error, this returns 0.  This call can return 0 in three situations:"
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:1420
35319 msgid "There has not been any error on the handle."
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:1424
35324 msgid ""
35325 "There has been an error but the errno was meaningless.  This corresponds to "
35326 "the case where the error did not come from a failed system call, but for "
35327 "some other reason."
35328 msgstr ""
35329
35330 #. type: textblock
35331 #: ../src/guestfs.pod:1430
35332 msgid ""
35333 "There was an error from a failed system call, but for some reason the errno "
35334 "was not captured and returned.  This usually indicates a bug in libguestfs."
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:1436
35339 msgid ""
35340 "Libguestfs tries to convert the errno from inside the applicance into a "
35341 "corresponding errno for the caller (not entirely trivial: the appliance "
35342 "might be running a completely different operating system from the library "
35343 "and error numbers are not standardized across Un*xen).  If this could not be "
35344 "done, then the error is translated to C<EINVAL>.  In practice this should "
35345 "only happen in very rare circumstances."
35346 msgstr ""
35347
35348 #. type: =head2
35349 #: ../src/guestfs.pod:1444
35350 msgid "guestfs_set_error_handler"
35351 msgstr "guestfs_set_error_handler"
35352
35353 #. type: verbatim
35354 #: ../src/guestfs.pod:1446
35355 #, no-wrap
35356 msgid ""
35357 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35358 "                                           void *opaque,\n"
35359 "                                           const char *msg);\n"
35360 " void guestfs_set_error_handler (guestfs_h *g,\n"
35361 "                                 guestfs_error_handler_cb cb,\n"
35362 "                                 void *opaque);\n"
35363 "\n"
35364 msgstr ""
35365 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35366 "                                           void *opaque,\n"
35367 "                                           const char *msg);\n"
35368 " void guestfs_set_error_handler (guestfs_h *g,\n"
35369 "                                 guestfs_error_handler_cb cb,\n"
35370 "                                 void *opaque);\n"
35371 "\n"
35372
35373 #. type: textblock
35374 #: ../src/guestfs.pod:1453
35375 msgid ""
35376 "The callback C<cb> will be called if there is an error.  The parameters "
35377 "passed to the callback are an opaque data pointer and the error message "
35378 "string."
35379 msgstr ""
35380
35381 #. type: textblock
35382 #: ../src/guestfs.pod:1457
35383 msgid ""
35384 "C<errno> is not passed to the callback.  To get that the callback must call "
35385 "L</guestfs_last_errno>."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:1460
35390 msgid ""
35391 "Note that the message string C<msg> is freed as soon as the callback "
35392 "function returns, so if you want to stash it somewhere you must make your "
35393 "own copy."
35394 msgstr ""
35395
35396 #. type: textblock
35397 #: ../src/guestfs.pod:1464
35398 msgid "The default handler prints messages on C<stderr>."
35399 msgstr ""
35400
35401 #. type: textblock
35402 #: ../src/guestfs.pod:1466
35403 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35404 msgstr ""
35405
35406 #. type: =head2
35407 #: ../src/guestfs.pod:1468
35408 msgid "guestfs_get_error_handler"
35409 msgstr "guestfs_get_error_handler"
35410
35411 #. type: verbatim
35412 #: ../src/guestfs.pod:1470
35413 #, no-wrap
35414 msgid ""
35415 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35416 "                                                     void **opaque_rtn);\n"
35417 "\n"
35418 msgstr ""
35419 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35420 "                                                     void **opaque_rtn);\n"
35421 "\n"
35422
35423 #. type: textblock
35424 #: ../src/guestfs.pod:1473
35425 msgid "Returns the current error handler callback."
35426 msgstr ""
35427
35428 #. type: =head2
35429 #: ../src/guestfs.pod:1475
35430 msgid "guestfs_set_out_of_memory_handler"
35431 msgstr "guestfs_set_out_of_memory_handler"
35432
35433 #. type: verbatim
35434 #: ../src/guestfs.pod:1477
35435 #, fuzzy, no-wrap
35436 #| msgid ""
35437 #| " typedef void (*guestfs_abort_cb) (void);\n"
35438 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35439 #| "                                        guestfs_abort_cb);\n"
35440 #| "\n"
35441 msgid ""
35442 " typedef void (*guestfs_abort_cb) (void);\n"
35443 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35444 "                                         guestfs_abort_cb);\n"
35445 "\n"
35446 msgstr ""
35447 " typedef void (*guestfs_abort_cb) (void);\n"
35448 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35449 "                                        guestfs_abort_cb);\n"
35450 "\n"
35451
35452 #. type: textblock
35453 #: ../src/guestfs.pod:1481
35454 msgid ""
35455 "The callback C<cb> will be called if there is an out of memory situation.  "
35456 "I<Note this callback must not return>."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:1484
35461 msgid "The default is to call L<abort(3)>."
35462 msgstr ""
35463
35464 #. type: textblock
35465 #: ../src/guestfs.pod:1486
35466 msgid ""
35467 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35468 msgstr ""
35469
35470 #. type: =head2
35471 #: ../src/guestfs.pod:1489
35472 msgid "guestfs_get_out_of_memory_handler"
35473 msgstr "guestfs_get_out_of_memory_handler"
35474
35475 #. type: verbatim
35476 #: ../src/guestfs.pod:1491
35477 #, no-wrap
35478 msgid ""
35479 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35480 "\n"
35481 msgstr ""
35482 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35483 "\n"
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:1493
35487 msgid "This returns the current out of memory handler."
35488 msgstr ""
35489
35490 #. type: =head1
35491 #: ../src/guestfs.pod:1495
35492 msgid "API CALLS"
35493 msgstr "ВИКЛИКИ API"
35494
35495 #. type: =head1
35496 #: ../src/guestfs.pod:1499
35497 msgid "STRUCTURES"
35498 msgstr "СТРУКТУРИ"
35499
35500 #. type: textblock
35501 #: ../src/guestfs.pod:1501
35502 msgid "@STRUCTS@"
35503 msgstr "@STRUCTS@"
35504
35505 #. type: =head1
35506 #: ../src/guestfs.pod:1503
35507 msgid "AVAILABILITY"
35508 msgstr "ДОСТУПНІСТЬ"
35509
35510 #. type: =head2
35511 #: ../src/guestfs.pod:1505
35512 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35513 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35514
35515 #. type: textblock
35516 #: ../src/guestfs.pod:1507
35517 msgid ""
35518 "Using L</guestfs_available> you can test availability of the following "
35519 "groups of functions.  This test queries the appliance to see if the "
35520 "appliance you are currently using supports the functionality."
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:1512
35525 msgid "@AVAILABILITY@"
35526 msgstr "@AVAILABILITY@"
35527
35528 #. type: =head2
35529 #: ../src/guestfs.pod:1514
35530 msgid "GUESTFISH supported COMMAND"
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:1516
35535 msgid ""
35536 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35537 "prints out the available groups and whether they are supported by this build "
35538 "of libguestfs.  Note however that you have to do C<run> first."
35539 msgstr ""
35540
35541 #. type: =head2
35542 #: ../src/guestfs.pod:1521
35543 msgid "SINGLE CALLS AT COMPILE TIME"
35544 msgstr ""
35545
35546 #. type: textblock
35547 #: ../src/guestfs.pod:1523
35548 msgid ""
35549 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35550 "function, such as:"
35551 msgstr ""
35552
35553 #. type: verbatim
35554 #: ../src/guestfs.pod:1526
35555 #, no-wrap
35556 msgid ""
35557 " #define LIBGUESTFS_HAVE_DD 1\n"
35558 "\n"
35559 msgstr ""
35560 " #define LIBGUESTFS_HAVE_DD 1\n"
35561 "\n"
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:1528
35565 msgid "if L</guestfs_dd> is available."
35566 msgstr ""
35567
35568 #. type: textblock
35569 #: ../src/guestfs.pod:1530
35570 msgid ""
35571 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35572 "function is available at compile time, we recommended using build tools such "
35573 "as autoconf or cmake.  For example in autotools you could use:"
35574 msgstr ""
35575
35576 #. type: verbatim
35577 #: ../src/guestfs.pod:1535
35578 #, no-wrap
35579 msgid ""
35580 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35581 " AC_CHECK_FUNCS([guestfs_dd])\n"
35582 "\n"
35583 msgstr ""
35584 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35585 " AC_CHECK_FUNCS([guestfs_dd])\n"
35586 "\n"
35587
35588 #. type: textblock
35589 #: ../src/guestfs.pod:1538
35590 msgid ""
35591 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35592 "in your program."
35593 msgstr ""
35594
35595 #. type: =head2
35596 #: ../src/guestfs.pod:1541
35597 msgid "SINGLE CALLS AT RUN TIME"
35598 msgstr ""
35599
35600 #. type: textblock
35601 #: ../src/guestfs.pod:1543
35602 msgid ""
35603 "Testing at compile time doesn't guarantee that a function really exists in "
35604 "the library.  The reason is that you might be dynamically linked against a "
35605 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35606 "This situation unfortunately results in a segmentation fault, which is a "
35607 "shortcoming of the C dynamic linking system itself."
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:1550
35612 msgid ""
35613 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35614 "in this example program (note that you still need the compile time check as "
35615 "well):"
35616 msgstr ""
35617
35618 #. type: verbatim
35619 #: ../src/guestfs.pod:1554
35620 #, no-wrap
35621 msgid ""
35622 " #include <stdio.h>\n"
35623 " #include <stdlib.h>\n"
35624 " #include <unistd.h>\n"
35625 " #include <dlfcn.h>\n"
35626 " #include <guestfs.h>\n"
35627 " \n"
35628 msgstr ""
35629 " #include <stdio.h>\n"
35630 " #include <stdlib.h>\n"
35631 " #include <unistd.h>\n"
35632 " #include <dlfcn.h>\n"
35633 " #include <guestfs.h>\n"
35634 " \n"
35635
35636 #. type: verbatim
35637 #: ../src/guestfs.pod:1560
35638 #, no-wrap
35639 msgid ""
35640 " main ()\n"
35641 " {\n"
35642 " #ifdef LIBGUESTFS_HAVE_DD\n"
35643 "   void *dl;\n"
35644 "   int has_function;\n"
35645 " \n"
35646 msgstr ""
35647 " main ()\n"
35648 " {\n"
35649 " #ifdef LIBGUESTFS_HAVE_DD\n"
35650 "   void *dl;\n"
35651 "   int has_function;\n"
35652 " \n"
35653
35654 #. type: verbatim
35655 #: ../src/guestfs.pod:1566
35656 #, no-wrap
35657 msgid ""
35658 "   /* Test if the function guestfs_dd is really available. */\n"
35659 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35660 "   if (!dl) {\n"
35661 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35662 "     exit (EXIT_FAILURE);\n"
35663 "   }\n"
35664 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35665 "   dlclose (dl);\n"
35666 " \n"
35667 msgstr ""
35668
35669 #. type: verbatim
35670 #: ../src/guestfs.pod:1575
35671 #, no-wrap
35672 msgid ""
35673 "   if (!has_function)\n"
35674 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35675 "   else {\n"
35676 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35677 "     /* Now it's safe to call\n"
35678 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35679 "     */\n"
35680 "   }\n"
35681 " #else\n"
35682 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35683 " #endif\n"
35684 "  }\n"
35685 "\n"
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:1588
35690 msgid ""
35691 "You may think the above is an awful lot of hassle, and it is.  There are "
35692 "other ways outside of the C linking system to ensure that this kind of "
35693 "incompatibility never arises, such as using package versioning:"
35694 msgstr ""
35695
35696 #. type: verbatim
35697 #: ../src/guestfs.pod:1593
35698 #, no-wrap
35699 msgid ""
35700 " Requires: libguestfs >= 1.0.80\n"
35701 "\n"
35702 msgstr ""
35703
35704 #. type: =head1
35705 #: ../src/guestfs.pod:1595
35706 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35707 msgstr ""
35708
35709 #. type: textblock
35710 #: ../src/guestfs.pod:1597
35711 msgid ""
35712 "A recent feature of the API is the introduction of calls which take optional "
35713 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35714 "takes variable arguments (ie. C<...>), as in this example:"
35715 msgstr ""
35716
35717 #. type: verbatim
35718 #: ../src/guestfs.pod:1602
35719 #, no-wrap
35720 msgid ""
35721 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35722 "\n"
35723 msgstr ""
35724 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35725 "\n"
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:1604
35729 msgid ""
35730 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35731 "call with no optional arguments specified:"
35732 msgstr ""
35733
35734 #. type: verbatim
35735 #: ../src/guestfs.pod:1607
35736 #, no-wrap
35737 msgid ""
35738 " guestfs_add_drive_opts (g, filename, -1);\n"
35739 "\n"
35740 msgstr ""
35741 " guestfs_add_drive_opts (g, filename, -1);\n"
35742 "\n"
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:1609
35746 msgid "With a single optional argument:"
35747 msgstr ""
35748
35749 #. type: verbatim
35750 #: ../src/guestfs.pod:1611
35751 #, no-wrap
35752 msgid ""
35753 " guestfs_add_drive_opts (g, filename,\n"
35754 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35755 "                         -1);\n"
35756 "\n"
35757 msgstr ""
35758 " guestfs_add_drive_opts (g, filename,\n"
35759 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35760 "                         -1);\n"
35761 "\n"
35762
35763 #. type: textblock
35764 #: ../src/guestfs.pod:1615
35765 msgid "With two:"
35766 msgstr ""
35767
35768 #. type: verbatim
35769 #: ../src/guestfs.pod:1617
35770 #, no-wrap
35771 msgid ""
35772 " guestfs_add_drive_opts (g, filename,\n"
35773 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35774 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35775 "                         -1);\n"
35776 "\n"
35777 msgstr ""
35778 " guestfs_add_drive_opts (g, filename,\n"
35779 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35780 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35781 "                         -1);\n"
35782 "\n"
35783
35784 #. type: textblock
35785 #: ../src/guestfs.pod:1622
35786 msgid ""
35787 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35788 "happen!"
35789 msgstr ""
35790
35791 #. type: =head2
35792 #: ../src/guestfs.pod:1625
35793 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35794 msgstr ""
35795
35796 #. type: textblock
35797 #: ../src/guestfs.pod:1627
35798 msgid ""
35799 "The second variant has the same name with the suffix C<_va>, which works the "
35800 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35801 "example function, this is declared:"
35802 msgstr ""
35803
35804 #. type: verbatim
35805 #: ../src/guestfs.pod:1631
35806 #, no-wrap
35807 msgid ""
35808 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35809 "                                va_list args);\n"
35810 "\n"
35811 msgstr ""
35812 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35813 "                                va_list args);\n"
35814 "\n"
35815
35816 #. type: =head2
35817 #: ../src/guestfs.pod:1634
35818 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:1636
35823 msgid ""
35824 "The third variant is useful where you need to construct these calls.  You "
35825 "pass in a structure where you fill in the optional fields.  The structure "
35826 "has a bitmask as the first element which you must set to indicate which "
35827 "fields you have filled in.  For our example function the structure and call "
35828 "are declared:"
35829 msgstr ""
35830
35831 #. type: verbatim
35832 #: ../src/guestfs.pod:1642
35833 #, no-wrap
35834 msgid ""
35835 " struct guestfs_add_drive_opts_argv {\n"
35836 "   uint64_t bitmask;\n"
35837 "   int readonly;\n"
35838 "   const char *format;\n"
35839 "   /* ... */\n"
35840 " };\n"
35841 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35842 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35843 "\n"
35844 msgstr ""
35845 " struct guestfs_add_drive_opts_argv {\n"
35846 "   uint64_t bitmask;\n"
35847 "   int readonly;\n"
35848 "   const char *format;\n"
35849 "   /* ... */\n"
35850 " };\n"
35851 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35852 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35853 "\n"
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:1651
35857 msgid "You could call it like this:"
35858 msgstr ""
35859
35860 #. type: verbatim
35861 #: ../src/guestfs.pod:1653
35862 #, no-wrap
35863 msgid ""
35864 " struct guestfs_add_drive_opts_argv optargs = {\n"
35865 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35866 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35867 "   .readonly = 1,\n"
35868 "   .format = \"qcow2\"\n"
35869 " };\n"
35870 " \n"
35871 msgstr ""
35872 " struct guestfs_add_drive_opts_argv optargs = {\n"
35873 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35874 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35875 "   .readonly = 1,\n"
35876 "   .format = \"qcow2\"\n"
35877 " };\n"
35878 " \n"
35879
35880 #. type: verbatim
35881 #: ../src/guestfs.pod:1660
35882 #, no-wrap
35883 msgid ""
35884 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35885 "\n"
35886 msgstr ""
35887 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35888 "\n"
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:1668
35892 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35893 msgstr ""
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:1673
35897 msgid "You do not need to fill in all fields of the structure."
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:1677
35902 msgid ""
35903 "There must be a one-to-one correspondence between fields of the structure "
35904 "that are filled in, and bits set in the bitmask."
35905 msgstr ""
35906
35907 #. type: =head2
35908 #: ../src/guestfs.pod:1682
35909 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../src/guestfs.pod:1684
35914 msgid ""
35915 "In other languages, optional arguments are expressed in the way that is "
35916 "natural for that language.  We refer you to the language-specific "
35917 "documentation for more details on that."
35918 msgstr ""
35919
35920 #. type: textblock
35921 #: ../src/guestfs.pod:1688
35922 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35923 msgstr ""
35924
35925 #. type: =head2
35926 #: ../src/guestfs.pod:1690
35927 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs.pod:1692
35932 msgid ""
35933 "B<Note:> This section documents the generic event mechanism introduced in "
35934 "libguestfs 1.10, which you should use in new code if possible.  The old "
35935 "functions C<guestfs_set_log_message_callback>, "
35936 "C<guestfs_set_subprocess_quit_callback>, "
35937 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35938 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35939 "page.  Because of the ABI guarantee, the old functions continue to work."
35940 msgstr ""
35941
35942 #. type: textblock
35943 #: ../src/guestfs.pod:1701
35944 msgid ""
35945 "Handles generate events when certain things happen, such as log messages "
35946 "being generated, progress messages during long-running operations, or the "
35947 "handle being closed.  The API calls described below let you register a "
35948 "callback to be called when events happen.  You can register multiple "
35949 "callbacks (for the same, different or overlapping sets of events), and "
35950 "individually remove callbacks.  If callbacks are not removed, then they "
35951 "remain in force until the handle is closed."
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:1709
35956 msgid ""
35957 "In the current implementation, events are only generated synchronously: that "
35958 "means that events (and hence callbacks) can only happen while you are in the "
35959 "middle of making another libguestfs call.  The callback is called in the "
35960 "same thread."
35961 msgstr ""
35962
35963 #. type: textblock
35964 #: ../src/guestfs.pod:1714
35965 msgid ""
35966 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35967 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35968 msgstr ""
35969
35970 #. type: =head3
35971 #: ../src/guestfs.pod:1718
35972 msgid "CLASSES OF EVENTS"
35973 msgstr ""
35974
35975 #. type: =item
35976 #: ../src/guestfs.pod:1722
35977 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:1725
35982 msgid ""
35983 "The callback function will be called while the handle is being closed "
35984 "(synchronously from L</guestfs_close>)."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:1728
35989 msgid ""
35990 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35991 "handles that are open when the program exits.  This means that this callback "
35992 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35993 "problems in higher-level languages (eg. if your HLL interpreter has already "
35994 "been cleaned up by the time this is called, and if your callback then jumps "
35995 "into some HLL function)."
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:1735
36000 msgid ""
36001 "If no callback is registered: the handle is closed without any callback "
36002 "being invoked."
36003 msgstr ""
36004
36005 #. type: =item
36006 #: ../src/guestfs.pod:1738
36007 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:1741
36012 msgid ""
36013 "The callback function will be called when the child process quits, either "
36014 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36015 "corresponds to a transition from any state to the CONFIG state)."
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:1745 ../src/guestfs.pod:1754
36020 msgid "If no callback is registered: the event is ignored."
36021 msgstr ""
36022
36023 #. type: =item
36024 #: ../src/guestfs.pod:1747
36025 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:1750
36030 msgid ""
36031 "The callback function will be called when the child process becomes ready "
36032 "first time after it has been launched.  (This corresponds to a transition "
36033 "from LAUNCHING to the READY state)."
36034 msgstr ""
36035
36036 #. type: =item
36037 #: ../src/guestfs.pod:1756
36038 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:1759
36043 msgid ""
36044 "Some long-running operations can generate progress messages.  If this "
36045 "callback is registered, then it will be called each time a progress message "
36046 "is generated (usually two seconds after the operation started, and three "
36047 "times per second thereafter until it completes, although the frequency may "
36048 "change in future versions)."
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:1765
36053 msgid ""
36054 "The callback receives in the payload four unsigned 64 bit numbers which are "
36055 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:1768
36060 msgid ""
36061 "The units of C<total> are not defined, although for some operations C<total> "
36062 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36063 "or megabytes), and C<position> may be the portion which has been transferred."
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:1773
36068 msgid "The only defined and stable parts of the API are:"
36069 msgstr ""
36070
36071 #. type: textblock
36072 #: ../src/guestfs.pod:1779
36073 msgid ""
36074 "The callback can display to the user some type of progress bar or indicator "
36075 "which shows the ratio of C<position>:C<total>."
36076 msgstr ""
36077
36078 #. type: textblock
36079 #: ../src/guestfs.pod:1784
36080 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../src/guestfs.pod:1788
36085 msgid ""
36086 "If any progress notification is sent during a call, then a final progress "
36087 "notification is always sent when C<position> = C<total> (I<unless> the call "
36088 "fails with an error)."
36089 msgstr ""
36090
36091 #. type: textblock
36092 #: ../src/guestfs.pod:1792
36093 msgid ""
36094 "This is to simplify caller code, so callers can easily set the progress "
36095 "indicator to \"100%\" at the end of the operation, without requiring special "
36096 "code to detect this case."
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:1798
36101 msgid ""
36102 "For some calls we are unable to estimate the progress of the call, but we "
36103 "can still generate progress messages to indicate activity.  This is known as "
36104 "\"pulse mode\", and is directly supported by certain progress bar "
36105 "implementations (eg. GtkProgressBar)."
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:1803
36110 msgid ""
36111 "For these calls, zero or more progress messages are generated with "
36112 "C<position = 0> and C<total = 1>, followed by a final message with "
36113 "C<position = total = 1>."
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:1807
36118 msgid ""
36119 "As noted above, if the call fails with an error then the final message may "
36120 "not be generated."
36121 msgstr ""
36122
36123 #. type: textblock
36124 #: ../src/guestfs.pod:1812
36125 msgid ""
36126 "The callback also receives the procedure number (C<proc_nr>) and serial "
36127 "number (C<serial>) of the call.  These are only useful for debugging "
36128 "protocol issues, and the callback can normally ignore them.  The callback "
36129 "may want to print these numbers in error messages or debugging messages."
36130 msgstr ""
36131
36132 #. type: textblock
36133 #: ../src/guestfs.pod:1818
36134 msgid "If no callback is registered: progress messages are discarded."
36135 msgstr ""
36136
36137 #. type: =item
36138 #: ../src/guestfs.pod:1820
36139 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../src/guestfs.pod:1823
36144 msgid ""
36145 "The callback function is called whenever a log message is generated by qemu, "
36146 "the appliance kernel, guestfsd (daemon), or utility programs."
36147 msgstr ""
36148
36149 #. type: textblock
36150 #: ../src/guestfs.pod:1826
36151 msgid ""
36152 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36153 "guestfs_launch>) then additional debug messages are generated."
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:1829 ../src/guestfs.pod:1843
36158 msgid ""
36159 "If no callback is registered: the messages are discarded unless the verbose "
36160 "flag is set in which case they are sent to stderr.  You can override the "
36161 "printing of verbose messages to stderr by setting up a callback."
36162 msgstr ""
36163
36164 #. type: =item
36165 #: ../src/guestfs.pod:1834
36166 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36167 msgstr ""
36168
36169 #. type: textblock
36170 #: ../src/guestfs.pod:1837
36171 msgid ""
36172 "The callback function is called whenever a log message is generated by the "
36173 "library part of libguestfs."
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../src/guestfs.pod:1840
36178 msgid ""
36179 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36180 "messages are generated."
36181 msgstr ""
36182
36183 #. type: =item
36184 #: ../src/guestfs.pod:1848
36185 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36186 msgstr ""
36187
36188 #. type: textblock
36189 #: ../src/guestfs.pod:1851
36190 msgid ""
36191 "The callback function is called whenever a trace message is generated.  This "
36192 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:1854
36197 msgid ""
36198 "If no callback is registered: the messages are sent to stderr.  You can "
36199 "override the printing of trace messages to stderr by setting up a callback."
36200 msgstr ""
36201
36202 #. type: =head3
36203 #: ../src/guestfs.pod:1860
36204 msgid "guestfs_set_event_callback"
36205 msgstr ""
36206
36207 #. type: verbatim
36208 #: ../src/guestfs.pod:1862
36209 #, no-wrap
36210 msgid ""
36211 " int guestfs_set_event_callback (guestfs_h *g,\n"
36212 "                                 guestfs_event_callback cb,\n"
36213 "                                 uint64_t event_bitmask,\n"
36214 "                                 int flags,\n"
36215 "                                 void *opaque);\n"
36216 "\n"
36217 msgstr ""
36218
36219 #. type: textblock
36220 #: ../src/guestfs.pod:1868
36221 msgid ""
36222 "This function registers a callback (C<cb>) for all event classes in the "
36223 "C<event_bitmask>."
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs.pod:1871
36228 msgid ""
36229 "For example, to register for all log message events, you could call this "
36230 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36231 "To register a single callback for all possible classes of events, use "
36232 "C<GUESTFS_EVENT_ALL>."
36233 msgstr ""
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:1877
36237 msgid "C<flags> should always be passed as 0."
36238 msgstr ""
36239
36240 #. type: textblock
36241 #: ../src/guestfs.pod:1879
36242 msgid ""
36243 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36244 "it for any purpose."
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:1882
36249 msgid ""
36250 "The return value is the event handle (an integer) which you can use to "
36251 "delete the callback (see below)."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:1885
36256 msgid ""
36257 "If there is an error, this function returns C<-1>, and sets the error in the "
36258 "handle in the usual way (see L</guestfs_last_error> etc.)"
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../src/guestfs.pod:1888
36263 msgid ""
36264 "Callbacks remain in effect until they are deleted, or until the handle is "
36265 "closed."
36266 msgstr ""
36267
36268 #. type: textblock
36269 #: ../src/guestfs.pod:1891
36270 msgid ""
36271 "In the case where multiple callbacks are registered for a particular event "
36272 "class, all of the callbacks are called.  The order in which multiple "
36273 "callbacks are called is not defined."
36274 msgstr ""
36275
36276 #. type: =head3
36277 #: ../src/guestfs.pod:1895
36278 msgid "guestfs_delete_event_callback"
36279 msgstr ""
36280
36281 #. type: verbatim
36282 #: ../src/guestfs.pod:1897
36283 #, no-wrap
36284 msgid ""
36285 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36286 "\n"
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1899
36291 msgid ""
36292 "Delete a callback that was previously registered.  C<event_handle> should be "
36293 "the integer that was returned by a previous call to "
36294 "C<guestfs_set_event_callback> on the same handle."
36295 msgstr ""
36296
36297 #. type: =head3
36298 #: ../src/guestfs.pod:1903
36299 msgid "guestfs_event_callback"
36300 msgstr ""
36301
36302 #. type: verbatim
36303 #: ../src/guestfs.pod:1905
36304 #, no-wrap
36305 msgid ""
36306 " typedef void (*guestfs_event_callback) (\n"
36307 "                  guestfs_h *g,\n"
36308 "                  void *opaque,\n"
36309 "                  uint64_t event,\n"
36310 "                  int event_handle,\n"
36311 "                  int flags,\n"
36312 "                  const char *buf, size_t buf_len,\n"
36313 "                  const uint64_t *array, size_t array_len);\n"
36314 "\n"
36315 msgstr ""
36316
36317 #. type: textblock
36318 #: ../src/guestfs.pod:1914
36319 msgid ""
36320 "This is the type of the event callback function that you have to provide."
36321 msgstr ""
36322
36323 #. type: textblock
36324 #: ../src/guestfs.pod:1917
36325 msgid ""
36326 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36327 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36328 "handle, and C<flags> which in the current API you should ignore."
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../src/guestfs.pod:1921
36333 msgid ""
36334 "The remaining parameters contain the event payload (if any).  Each event may "
36335 "contain a payload, which usually relates to the event class, but for future "
36336 "proofing your code should be written to handle any payload for any event "
36337 "class."
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:1926
36342 msgid ""
36343 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36344 "there is no message buffer).  Note that this message buffer can contain "
36345 "arbitrary 8 bit data, including NUL bytes."
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:1930
36350 msgid ""
36351 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36352 "moment this is only used for progress messages."
36353 msgstr ""
36354
36355 #. type: =head3
36356 #: ../src/guestfs.pod:1933
36357 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:1935
36362 msgid ""
36363 "One motivation for the generic event API was to allow GUI programs to "
36364 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36365 "unconditionally to C<stderr>."
36366 msgstr ""
36367
36368 #. type: textblock
36369 #: ../src/guestfs.pod:1939
36370 msgid ""
36371 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36372 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36373 "messages are not events; you must capture error messages separately)."
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:1944
36378 msgid ""
36379 "Programs have to set up a callback to capture the classes of events of "
36380 "interest:"
36381 msgstr ""
36382
36383 #. type: verbatim
36384 #: ../src/guestfs.pod:1947
36385 #, no-wrap
36386 msgid ""
36387 " int eh =\n"
36388 "   guestfs_set_event_callback\n"
36389 "     (g, message_callback,\n"
36390 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36391 "      GUESTFS_EVENT_TRACE,\n"
36392 "      0, NULL) == -1)\n"
36393 " if (eh == -1) {\n"
36394 "   // handle error in the usual way\n"
36395 " }\n"
36396 "\n"
36397 msgstr ""
36398
36399 #. type: textblock
36400 #: ../src/guestfs.pod:1957
36401 msgid ""
36402 "The callback can then direct messages to the appropriate place.  In this "
36403 "example, messages are directed to syslog:"
36404 msgstr ""
36405
36406 #. type: verbatim
36407 #: ../src/guestfs.pod:1960
36408 #, no-wrap
36409 msgid ""
36410 " static void\n"
36411 " message_callback (\n"
36412 "         guestfs_h *g,\n"
36413 "         void *opaque,\n"
36414 "         uint64_t event,\n"
36415 "         int event_handle,\n"
36416 "         int flags,\n"
36417 "         const char *buf, size_t buf_len,\n"
36418 "         const uint64_t *array, size_t array_len)\n"
36419 " {\n"
36420 "   const int priority = LOG_USER|LOG_INFO;\n"
36421 "   if (buf_len > 0)\n"
36422 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36423 " }\n"
36424 "\n"
36425 msgstr ""
36426
36427 #. type: =head1
36428 #: ../src/guestfs.pod:1975
36429 msgid "CANCELLING LONG TRANSFERS"
36430 msgstr ""
36431
36432 #. type: textblock
36433 #: ../src/guestfs.pod:1977
36434 msgid ""
36435 "Some operations can be cancelled by the caller while they are in progress.  "
36436 "Currently only operations that involve uploading or downloading data can be "
36437 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36438 "parameters in the generator)."
36439 msgstr ""
36440
36441 #. type: =head2
36442 #: ../src/guestfs.pod:1982
36443 msgid "guestfs_user_cancel"
36444 msgstr ""
36445
36446 #. type: verbatim
36447 #: ../src/guestfs.pod:1984
36448 #, no-wrap
36449 msgid ""
36450 " void guestfs_user_cancel (guestfs_h *g);\n"
36451 "\n"
36452 msgstr ""
36453
36454 #. type: textblock
36455 #: ../src/guestfs.pod:1986
36456 msgid ""
36457 "C<guestfs_user_cancel> cancels the current upload or download operation."
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:1989
36462 msgid ""
36463 "Unlike most other libguestfs calls, this function is signal safe and thread "
36464 "safe.  You can call it from a signal handler or from another thread, without "
36465 "needing to do any locking."
36466 msgstr ""
36467
36468 #. type: textblock
36469 #: ../src/guestfs.pod:1993
36470 msgid ""
36471 "The transfer that was in progress (if there is one) will stop shortly "
36472 "afterwards, and will return an error.  The errno (see L</"
36473 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36474 "out if the operation was cancelled or failed because of another error."
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:1999
36479 msgid ""
36480 "No cleanup is performed: for example, if a file was being uploaded then "
36481 "after cancellation there may be a partially uploaded file.  It is the "
36482 "caller's responsibility to clean up if necessary."
36483 msgstr ""
36484
36485 #. type: textblock
36486 #: ../src/guestfs.pod:2003
36487 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../src/guestfs.pod:2005
36492 msgid ""
36493 "In an interactive text-based program, you might call it from a C<SIGINT> "
36494 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36495 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36496 "receive the C<^C> signal)."
36497 msgstr ""
36498
36499 #. type: textblock
36500 #: ../src/guestfs.pod:2010
36501 msgid ""
36502 "In a graphical program, when the main thread is displaying a progress bar "
36503 "with a cancel button, wire up the cancel button to call this function."
36504 msgstr ""
36505
36506 #. type: =head1
36507 #: ../src/guestfs.pod:2014
36508 msgid "PRIVATE DATA AREA"
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:2016
36513 msgid ""
36514 "You can attach named pieces of private data to the libguestfs handle, fetch "
36515 "them by name, and walk over them, for the lifetime of the handle.  This is "
36516 "called the private data area and is only available from the C API."
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:2021
36521 msgid "To attach a named piece of data, use the following call:"
36522 msgstr ""
36523
36524 #. type: verbatim
36525 #: ../src/guestfs.pod:2023
36526 #, no-wrap
36527 msgid ""
36528 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36529 "\n"
36530 msgstr ""
36531 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36532 "\n"
36533
36534 #. type: textblock
36535 #: ../src/guestfs.pod:2025
36536 msgid ""
36537 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36538 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36539 "overwritten."
36540 msgstr ""
36541
36542 #. type: textblock
36543 #: ../src/guestfs.pod:2029
36544 msgid ""
36545 "You can use any C<key> you want, but your key should I<not> start with an "
36546 "underscore character.  Keys beginning with an underscore character are "
36547 "reserved for internal libguestfs purposes (eg. for implementing language "
36548 "bindings).  It is recommended that you prefix the key with some unique "
36549 "string to avoid collisions with other users."
36550 msgstr ""
36551
36552 #. type: textblock
36553 #: ../src/guestfs.pod:2035
36554 msgid "To retrieve the pointer, use:"
36555 msgstr ""
36556
36557 #. type: verbatim
36558 #: ../src/guestfs.pod:2037
36559 #, no-wrap
36560 msgid ""
36561 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36562 "\n"
36563 msgstr ""
36564 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36565 "\n"
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:2039
36569 msgid ""
36570 "This function returns C<NULL> if either no data is found associated with "
36571 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36572 "C<NULL>."
36573 msgstr ""
36574
36575 #. type: textblock
36576 #: ../src/guestfs.pod:2043
36577 msgid ""
36578 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36579 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36580 "all.  In particular, libguestfs does I<not> try to free the data when the "
36581 "handle is closed.  If the data must be freed, then the caller must either "
36582 "free it before calling L</guestfs_close> or must set up a close callback to "
36583 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../src/guestfs.pod:2050
36588 msgid "To walk over all entries, use these two functions:"
36589 msgstr ""
36590
36591 #. type: verbatim
36592 #: ../src/guestfs.pod:2052
36593 #, no-wrap
36594 msgid ""
36595 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36596 "\n"
36597 msgstr ""
36598
36599 #. type: verbatim
36600 #: ../src/guestfs.pod:2054
36601 #, no-wrap
36602 msgid ""
36603 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36604 "\n"
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../src/guestfs.pod:2056
36609 msgid ""
36610 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36611 "not have any particular meaning -- keys are not returned in any defined "
36612 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36613 "corresponding data pointer is returned from the function.  C<NULL> is "
36614 "returned if there are no keys stored in the handle."
36615 msgstr ""
36616
36617 #. type: textblock
36618 #: ../src/guestfs.pod:2062
36619 msgid ""
36620 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36621 "value of this function is also C<NULL> is there are no further entries to "
36622 "return."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:2066
36627 msgid "Notes about walking over entries:"
36628 msgstr ""
36629
36630 #. type: textblock
36631 #: ../src/guestfs.pod:2072
36632 msgid ""
36633 "You must not call C<guestfs_set_private> while walking over the entries."
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:2077
36638 msgid ""
36639 "The handle maintains an internal iterator which is reset when you call "
36640 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36641 "call C<guestfs_set_private>."
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../src/guestfs.pod:2083
36646 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36647 msgstr ""
36648
36649 #. type: verbatim
36650 #: ../src/guestfs.pod:2085
36651 #, no-wrap
36652 msgid ""
36653 " guestfs_set_private (g, key, NULL);\n"
36654 "\n"
36655 msgstr ""
36656
36657 #. type: textblock
36658 #: ../src/guestfs.pod:2087
36659 msgid "then that C<key> is not returned when walking."
36660 msgstr ""
36661
36662 #. type: textblock
36663 #: ../src/guestfs.pod:2091
36664 msgid ""
36665 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36666 "C<guestfs_next_private> or C<guestfs_set_private>."
36667 msgstr ""
36668
36669 #. type: textblock
36670 #: ../src/guestfs.pod:2097
36671 msgid ""
36672 "The following example code shows how to print all keys and data pointers "
36673 "that are associated with the handle C<g>:"
36674 msgstr ""
36675
36676 #. type: verbatim
36677 #: ../src/guestfs.pod:2100
36678 #, no-wrap
36679 msgid ""
36680 " const char *key;\n"
36681 " void *data = guestfs_first_private (g, &key);\n"
36682 " while (data != NULL)\n"
36683 "   {\n"
36684 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36685 "     data = guestfs_next_private (g, &key);\n"
36686 "   }\n"
36687 "\n"
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:2108
36692 msgid ""
36693 "More commonly you are only interested in keys that begin with an application-"
36694 "specific prefix C<foo_>.  Modify the loop like so:"
36695 msgstr ""
36696
36697 #. type: verbatim
36698 #: ../src/guestfs.pod:2111
36699 #, no-wrap
36700 msgid ""
36701 " const char *key;\n"
36702 " void *data = guestfs_first_private (g, &key);\n"
36703 " while (data != NULL)\n"
36704 "   {\n"
36705 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36706 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36707 "     data = guestfs_next_private (g, &key);\n"
36708 "   }\n"
36709 "\n"
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:2120
36714 msgid ""
36715 "If you need to modify keys while walking, then you have to jump back to the "
36716 "beginning of the loop.  For example, to delete all keys prefixed with "
36717 "C<foo_>:"
36718 msgstr ""
36719
36720 #. type: verbatim
36721 #: ../src/guestfs.pod:2124
36722 #, no-wrap
36723 msgid ""
36724 "  const char *key;\n"
36725 "  void *data;\n"
36726 " again:\n"
36727 "  data = guestfs_first_private (g, &key);\n"
36728 "  while (data != NULL)\n"
36729 "    {\n"
36730 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36731 "        {\n"
36732 "          guestfs_set_private (g, key, NULL);\n"
36733 "          /* note that 'key' pointer is now invalid, and so is\n"
36734 "             the internal iterator */\n"
36735 "          goto again;\n"
36736 "        }\n"
36737 "      data = guestfs_next_private (g, &key);\n"
36738 "    }\n"
36739 "\n"
36740 msgstr ""
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:2140
36744 msgid ""
36745 "Note that the above loop is guaranteed to terminate because the keys are "
36746 "being deleted, but other manipulations of keys within the loop might not "
36747 "terminate unless you also maintain an indication of which keys have been "
36748 "visited."
36749 msgstr ""
36750
36751 #. type: =end
36752 #: ../src/guestfs.pod:2145 ../src/guestfs.pod:2150
36753 msgid "html"
36754 msgstr "html"
36755
36756 #. type: textblock
36757 #: ../src/guestfs.pod:2147
36758 msgid ""
36759 "<!-- old anchor for the next section --> <a name="
36760 "\"state_machine_and_low_level_event_api\"/>"
36761 msgstr ""
36762 "<!-- old anchor for the next section --> <a name="
36763 "\"state_machine_and_low_level_event_api\"/>"
36764
36765 #. type: =head1
36766 #: ../src/guestfs.pod:2152
36767 msgid "ARCHITECTURE"
36768 msgstr "АРХІТЕКТУРА"
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:2154
36772 msgid ""
36773 "Internally, libguestfs is implemented by running an appliance (a special "
36774 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36775 "process of the main program."
36776 msgstr ""
36777
36778 #. type: verbatim
36779 #: ../src/guestfs.pod:2158
36780 #, no-wrap
36781 msgid ""
36782 "  ___________________\n"
36783 " /                   \\\n"
36784 " | main program      |\n"
36785 " |                   |\n"
36786 " |                   |           child process / appliance\n"
36787 " |                   |           __________________________\n"
36788 " |                   |          / qemu                     \\\n"
36789 " +-------------------+   RPC    |      +-----------------+ |\n"
36790 " | libguestfs     <--------------------> guestfsd        | |\n"
36791 " |                   |          |      +-----------------+ |\n"
36792 " \\___________________/          |      | Linux kernel    | |\n"
36793 "                                |      +--^--------------+ |\n"
36794 "                                \\_________|________________/\n"
36795 "                                          |\n"
36796 "                                   _______v______\n"
36797 "                                  /              \\\n"
36798 "                                  | Device or    |\n"
36799 "                                  | disk image   |\n"
36800 "                                  \\______________/\n"
36801 "\n"
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:2178
36806 msgid ""
36807 "The library, linked to the main program, creates the child process and hence "
36808 "the appliance in the L</guestfs_launch> function."
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../src/guestfs.pod:2181
36813 msgid ""
36814 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36815 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36816 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36817 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36818 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36819 "attached to the qemu process which translates device access by the "
36820 "appliance's Linux kernel into accesses to the image."
36821 msgstr ""
36822
36823 #. type: textblock
36824 #: ../src/guestfs.pod:2190
36825 msgid ""
36826 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36827 "Although the disk image you are attached to might also be used by some "
36828 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36829 "care if both libguestfs's qemu process and your virtual machine are trying "
36830 "to update the disk image at the same time, since these usually results in "
36831 "massive disk corruption)."
36832 msgstr ""
36833
36834 #. type: =head1
36835 #: ../src/guestfs.pod:2197
36836 msgid "STATE MACHINE"
36837 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:2199
36841 msgid "libguestfs uses a state machine to model the child process:"
36842 msgstr ""
36843
36844 #. type: verbatim
36845 #: ../src/guestfs.pod:2201
36846 #, no-wrap
36847 msgid ""
36848 "                         |\n"
36849 "                    guestfs_create\n"
36850 "                         |\n"
36851 "                         |\n"
36852 "                     ____V_____\n"
36853 "                    /          \\\n"
36854 "                    |  CONFIG  |\n"
36855 "                    \\__________/\n"
36856 "                     ^ ^   ^  \\\n"
36857 "                    /  |    \\  \\ guestfs_launch\n"
36858 "                   /   |    _\\__V______\n"
36859 "                  /    |   /           \\\n"
36860 "                 /     |   | LAUNCHING |\n"
36861 "                /      |   \\___________/\n"
36862 "               /       |       /\n"
36863 "              /        |  guestfs_launch\n"
36864 "             /         |     /\n"
36865 "    ______  /        __|____V\n"
36866 "   /      \\ ------> /        \\\n"
36867 "   | BUSY |         | READY  |\n"
36868 "   \\______/ <------ \\________/\n"
36869 "\n"
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:2223
36874 msgid ""
36875 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36876 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36877 "(3) alternating between READY and BUSY as commands are issued to, and "
36878 "carried out by, the child process."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:2228
36883 msgid ""
36884 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36885 "asynchronously at any time (eg. due to some internal error), and that causes "
36886 "the state to transition back to CONFIG."
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:2232
36891 msgid ""
36892 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36893 "issued when in the CONFIG state."
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:2235
36898 msgid ""
36899 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36900 "L</guestfs_launch> blocks until the child process is READY to accept "
36901 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36902 "moves the state from CONFIG to LAUNCHING while it is running."
36903 msgstr ""
36904
36905 #. type: textblock
36906 #: ../src/guestfs.pod:2241
36907 msgid ""
36908 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36909 "state.  These API calls block waiting for the command to be carried out (ie. "
36910 "the state to transition to BUSY and then back to READY).  There are no non-"
36911 "blocking versions, and no way to issue more than one command per handle at "
36912 "the same time."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:2247
36917 msgid ""
36918 "Finally, the child process sends asynchronous messages back to the main "
36919 "program, such as kernel log messages.  You can register a callback to "
36920 "receive these messages."
36921 msgstr ""
36922
36923 #. type: =head1
36924 #: ../src/guestfs.pod:2251
36925 msgid "INTERNALS"
36926 msgstr ""
36927
36928 #. type: =head2
36929 #: ../src/guestfs.pod:2253
36930 msgid "APPLIANCE BOOT PROCESS"
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:2255
36935 msgid ""
36936 "This process has evolved and continues to evolve.  The description here "
36937 "corresponds only to the current version of libguestfs and is provided for "
36938 "information only."
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:2259
36943 msgid ""
36944 "In order to follow the stages involved below, enable libguestfs debugging "
36945 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36946 msgstr ""
36947
36948 #. type: =item
36949 #: ../src/guestfs.pod:2264
36950 #, fuzzy
36951 #| msgid "C<appliance>"
36952 msgid "Create the appliance"
36953 msgstr "C<appliance>"
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:2266
36957 msgid ""
36958 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36959 "initrd and the appliance."
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:2269
36964 msgid ""
36965 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36966 "directory if C<TMPDIR> is set)."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:2272
36971 msgid ""
36972 "For a complete description of how the appliance is created and cached, read "
36973 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36974 msgstr ""
36975
36976 #. type: =item
36977 #: ../src/guestfs.pod:2276
36978 msgid "Start qemu and boot the kernel"
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:2278
36983 msgid "qemu is invoked to boot the kernel."
36984 msgstr ""
36985
36986 #. type: =item
36987 #: ../src/guestfs.pod:2280
36988 msgid "Run the initrd"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:2282
36993 msgid ""
36994 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36995 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36996 "order that the appliance itself can be mounted and started."
36997 msgstr ""
36998
36999 #. type: textblock
37000 #: ../src/guestfs.pod:2286
37001 msgid ""
37002 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37003 "initrd>."
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:2289
37008 msgid ""
37009 "When the initrd has started you will see messages showing that kernel "
37010 "modules are being loaded, similar to this:"
37011 msgstr ""
37012
37013 #. type: verbatim
37014 #: ../src/guestfs.pod:2292
37015 #, no-wrap
37016 msgid ""
37017 " febootstrap: ext2 mini initrd starting up\n"
37018 " febootstrap: mounting /sys\n"
37019 " febootstrap: internal insmod libcrc32c.ko\n"
37020 " febootstrap: internal insmod crc32c-intel.ko\n"
37021 "\n"
37022 msgstr ""
37023
37024 #. type: =item
37025 #: ../src/guestfs.pod:2297
37026 msgid "Find and mount the appliance device"
37027 msgstr ""
37028
37029 #. type: textblock
37030 #: ../src/guestfs.pod:2299
37031 msgid ""
37032 "The appliance is a sparse file containing an ext2 filesystem which contains "
37033 "a familiar (although reduced in size) Linux operating system.  It would "
37034 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:2303
37039 msgid ""
37040 "The regular disks being inspected by libguestfs are the first devices "
37041 "exposed by qemu (eg. as C</dev/vda>)."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2306
37046 msgid ""
37047 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37048 "there was only one regular disk)."
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../src/guestfs.pod:2309
37053 msgid ""
37054 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37055 "and switch root into the appliance, and run C</init> from the appliance."
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:2313
37060 msgid "If this works successfully you will see messages such as:"
37061 msgstr ""
37062
37063 #. type: verbatim
37064 #: ../src/guestfs.pod:2315
37065 #, no-wrap
37066 msgid ""
37067 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37068 " febootstrap: creating /dev/root as block special 252:16\n"
37069 " febootstrap: mounting new root on /root\n"
37070 " febootstrap: chroot\n"
37071 " Starting /init script ...\n"
37072 "\n"
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:2321
37077 msgid ""
37078 "Note that C<Starting /init script ...> indicates that the appliance's init "
37079 "script is now running."
37080 msgstr ""
37081
37082 #. type: =item
37083 #: ../src/guestfs.pod:2324
37084 msgid "Initialize the appliance"
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../src/guestfs.pod:2326
37089 msgid ""
37090 "The appliance itself now initializes itself.  This involves starting certain "
37091 "processes like C<udev>, possibly printing some debug information, and "
37092 "finally running the daemon (C<guestfsd>)."
37093 msgstr ""
37094
37095 #. type: =item
37096 #: ../src/guestfs.pod:2330
37097 #, fuzzy
37098 #| msgid "C<daemon>"
37099 msgid "The daemon"
37100 msgstr "C<daemon>"
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:2332
37104 msgid ""
37105 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37106 "should see:"
37107 msgstr ""
37108
37109 #. type: verbatim
37110 #: ../src/guestfs.pod:2335
37111 #, fuzzy, no-wrap
37112 #| msgid ""
37113 #| " set-verbose true|false\n"
37114 #| "\n"
37115 msgid ""
37116 " verbose daemon enabled\n"
37117 "\n"
37118 msgstr ""
37119 " set-verbose true|false\n"
37120 "\n"
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:2337
37124 msgid ""
37125 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37126 "connected on the other end to the library."
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:2340
37131 msgid ""
37132 "The daemon connects to this port (and hence to the library) and sends a four "
37133 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37134 "protocol (see below)."
37135 msgstr ""
37136
37137 #. type: =head2
37138 #: ../src/guestfs.pod:2346
37139 msgid "COMMUNICATION PROTOCOL"
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:2348
37144 msgid ""
37145 "Don't rely on using this protocol directly.  This section documents how it "
37146 "currently works, but it may change at any time."
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:2351
37151 msgid ""
37152 "The protocol used to talk between the library and the daemon running inside "
37153 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37154 "1014, RFC 1832, RFC 4506)."
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../src/guestfs.pod:2355
37159 msgid ""
37160 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37161 "this file is automatically generated)."
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:2358
37166 msgid ""
37167 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37168 "and C<FileOut> parameters, which are handled with very simple request/reply "
37169 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37170 "parameters, which use the same request and reply messages, but they may also "
37171 "be followed by files sent using a chunked encoding."
37172 msgstr ""
37173
37174 #. type: =head3
37175 #: ../src/guestfs.pod:2365
37176 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:2367
37181 msgid "For ordinary functions, the request message is:"
37182 msgstr ""
37183
37184 #. type: verbatim
37185 #: ../src/guestfs.pod:2369
37186 #, no-wrap
37187 msgid ""
37188 " total length (header + arguments,\n"
37189 "      but not including the length word itself)\n"
37190 " struct guestfs_message_header (encoded as XDR)\n"
37191 " struct guestfs_<foo>_args (encoded as XDR)\n"
37192 "\n"
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:2374
37197 msgid ""
37198 "The total length field allows the daemon to allocate a fixed size buffer "
37199 "into which it slurps the rest of the message.  As a result, the total length "
37200 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37201 "effective size of any request is limited to somewhere under this size."
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:2380
37206 msgid ""
37207 "Note also that many functions don't take any arguments, in which case the "
37208 "C<guestfs_I<foo>_args> is completely omitted."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../src/guestfs.pod:2383
37213 msgid ""
37214 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37215 "receiver knows what type of args structure to expect, or none at all."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../src/guestfs.pod:2387
37220 msgid ""
37221 "For functions that take optional arguments, the optional arguments are "
37222 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37223 "arguments.  A bitmask in the header indicates which optional arguments are "
37224 "meaningful.  The bitmask is also checked to see if it contains bits set "
37225 "which the daemon does not know about (eg. if more optional arguments were "
37226 "added in a later version of the library), and this causes the call to be "
37227 "rejected."
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:2395
37232 msgid "The reply message for ordinary functions is:"
37233 msgstr ""
37234
37235 #. type: verbatim
37236 #: ../src/guestfs.pod:2397
37237 #, no-wrap
37238 msgid ""
37239 " total length (header + ret,\n"
37240 "      but not including the length word itself)\n"
37241 " struct guestfs_message_header (encoded as XDR)\n"
37242 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37243 "\n"
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:2402
37248 msgid ""
37249 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37250 "functions that return no formal return values."
37251 msgstr ""
37252
37253 #. type: textblock
37254 #: ../src/guestfs.pod:2405
37255 msgid ""
37256 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37257 msgstr ""
37258
37259 #. type: textblock
37260 #: ../src/guestfs.pod:2408
37261 msgid ""
37262 "In the case of an error, a flag is set in the header, and the reply message "
37263 "is slightly changed:"
37264 msgstr ""
37265
37266 #. type: verbatim
37267 #: ../src/guestfs.pod:2411
37268 #, no-wrap
37269 msgid ""
37270 " total length (header + error,\n"
37271 "      but not including the length word itself)\n"
37272 " struct guestfs_message_header (encoded as XDR)\n"
37273 " struct guestfs_message_error (encoded as XDR)\n"
37274 "\n"
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:2416
37279 msgid ""
37280 "The C<guestfs_message_error> structure contains the error message as a "
37281 "string."
37282 msgstr ""
37283
37284 #. type: =head3
37285 #: ../src/guestfs.pod:2419
37286 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../src/guestfs.pod:2421
37291 msgid ""
37292 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37293 "The normal request message is sent (see above).  However this is followed by "
37294 "a sequence of file chunks."
37295 msgstr ""
37296
37297 #. type: verbatim
37298 #: ../src/guestfs.pod:2425
37299 #, no-wrap
37300 msgid ""
37301 " total length (header + arguments,\n"
37302 "      but not including the length word itself,\n"
37303 "      and not including the chunks)\n"
37304 " struct guestfs_message_header (encoded as XDR)\n"
37305 " struct guestfs_<foo>_args (encoded as XDR)\n"
37306 " sequence of chunks for FileIn param #0\n"
37307 " sequence of chunks for FileIn param #1 etc.\n"
37308 "\n"
37309 msgstr ""
37310
37311 #. type: textblock
37312 #: ../src/guestfs.pod:2433
37313 msgid "The \"sequence of chunks\" is:"
37314 msgstr ""
37315
37316 #. type: verbatim
37317 #: ../src/guestfs.pod:2435
37318 #, no-wrap
37319 msgid ""
37320 " length of chunk (not including length word itself)\n"
37321 " struct guestfs_chunk (encoded as XDR)\n"
37322 " length of chunk\n"
37323 " struct guestfs_chunk (encoded as XDR)\n"
37324 "   ...\n"
37325 " length of chunk\n"
37326 " struct guestfs_chunk (with data.data_len == 0)\n"
37327 "\n"
37328 msgstr ""
37329
37330 #. type: textblock
37331 #: ../src/guestfs.pod:2443
37332 msgid ""
37333 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37334 "is set in the final chunk to indicate either successful completion or early "
37335 "cancellation."
37336 msgstr ""
37337
37338 #. type: textblock
37339 #: ../src/guestfs.pod:2447
37340 msgid ""
37341 "At time of writing there are no functions that have more than one FileIn "
37342 "parameter.  However this is (theoretically) supported, by sending the "
37343 "sequence of chunks for each FileIn parameter one after another (from left to "
37344 "right)."
37345 msgstr ""
37346
37347 #. type: textblock
37348 #: ../src/guestfs.pod:2452
37349 msgid ""
37350 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37351 "transfer.  The library does this by sending a chunk with a special flag set "
37352 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37353 "RPC, does I<not> send any reply, and goes back to reading the next request."
37354 msgstr ""
37355
37356 #. type: textblock
37357 #: ../src/guestfs.pod:2458
37358 msgid ""
37359 "The daemon may also cancel.  It does this by writing a special word "
37360 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37361 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37362 "cancel chunk).  The special word is chosen so that even if cancellation "
37363 "happens right at the end of the transfer (after the library has finished "
37364 "writing and has started listening for the reply), the \"spurious\" cancel "
37365 "flag will not be confused with the reply message."
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:2467
37370 msgid ""
37371 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37372 "limit), and also files where the size is not known in advance (eg. from "
37373 "pipes or sockets).  However the chunks are rather small "
37374 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37375 "to keep much in memory."
37376 msgstr ""
37377
37378 #. type: =head3
37379 #: ../src/guestfs.pod:2473
37380 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37381 msgstr ""
37382
37383 #. type: textblock
37384 #: ../src/guestfs.pod:2475
37385 msgid ""
37386 "The protocol for FileOut parameters is exactly the same as for FileIn "
37387 "parameters, but with the roles of daemon and library reversed."
37388 msgstr ""
37389
37390 #. type: verbatim
37391 #: ../src/guestfs.pod:2478
37392 #, no-wrap
37393 msgid ""
37394 " total length (header + ret,\n"
37395 "      but not including the length word itself,\n"
37396 "      and not including the chunks)\n"
37397 " struct guestfs_message_header (encoded as XDR)\n"
37398 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37399 " sequence of chunks for FileOut param #0\n"
37400 " sequence of chunks for FileOut param #1 etc.\n"
37401 "\n"
37402 msgstr ""
37403
37404 #. type: =head3
37405 #: ../src/guestfs.pod:2486
37406 msgid "INITIAL MESSAGE"
37407 msgstr ""
37408
37409 #. type: textblock
37410 #: ../src/guestfs.pod:2488
37411 msgid ""
37412 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37413 "which indicates that the guest and daemon is alive.  This is what L</"
37414 "guestfs_launch> waits for."
37415 msgstr ""
37416
37417 #. type: =head3
37418 #: ../src/guestfs.pod:2492
37419 msgid "PROGRESS NOTIFICATION MESSAGES"
37420 msgstr ""
37421
37422 #. type: textblock
37423 #: ../src/guestfs.pod:2494
37424 msgid ""
37425 "The daemon may send progress notification messages at any time.  These are "
37426 "distinguished by the normal length word being replaced by "
37427 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:2498
37432 msgid ""
37433 "The library turns them into progress callbacks (see L</"
37434 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37435 "if not."
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:2502
37440 msgid ""
37441 "The daemon self-limits the frequency of progress messages it sends (see "
37442 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37443 "messages."
37444 msgstr ""
37445
37446 #. type: =head1
37447 #: ../src/guestfs.pod:2506
37448 msgid "LIBGUESTFS VERSION NUMBERS"
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../src/guestfs.pod:2508
37453 msgid ""
37454 "Since April 2010, libguestfs has started to make separate development and "
37455 "stable releases, along with corresponding branches in our git repository.  "
37456 "These separate releases can be identified by version number:"
37457 msgstr ""
37458
37459 #. type: verbatim
37460 #: ../src/guestfs.pod:2513
37461 #, no-wrap
37462 msgid ""
37463 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37464 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37465 "       |\n"
37466 "       v\n"
37467 " 1  .  3  .  5\n"
37468 " ^           ^\n"
37469 " |           |\n"
37470 " |           `-------- sub-version\n"
37471 " |\n"
37472 " `------ always '1' because we don't change the ABI\n"
37473 "\n"
37474 msgstr ""
37475
37476 #. type: textblock
37477 #: ../src/guestfs.pod:2524
37478 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37479 msgstr ""
37480
37481 #. type: textblock
37482 #: ../src/guestfs.pod:2526
37483 msgid ""
37484 "As time passes we cherry pick fixes from the development branch and backport "
37485 "those into the stable branch, the effect being that the stable branch should "
37486 "get more stable and less buggy over time.  So the stable releases are ideal "
37487 "for people who don't need new features but would just like the software to "
37488 "work."
37489 msgstr ""
37490
37491 #. type: textblock
37492 #: ../src/guestfs.pod:2532
37493 msgid "Our criteria for backporting changes are:"
37494 msgstr ""
37495
37496 #. type: textblock
37497 #: ../src/guestfs.pod:2538
37498 msgid ""
37499 "Documentation changes which don't affect any code are backported unless the "
37500 "documentation refers to a future feature which is not in stable."
37501 msgstr ""
37502
37503 #. type: textblock
37504 #: ../src/guestfs.pod:2544
37505 msgid ""
37506 "Bug fixes which are not controversial, fix obvious problems, and have been "
37507 "well tested are backported."
37508 msgstr ""
37509
37510 #. type: textblock
37511 #: ../src/guestfs.pod:2549
37512 msgid ""
37513 "Simple rearrangements of code which shouldn't affect how it works get "
37514 "backported.  This is so that the code in the two branches doesn't get too "
37515 "far out of step, allowing us to backport future fixes more easily."
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:2555
37520 msgid ""
37521 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37522 "exceptional case: the new feature is required in order to implement an "
37523 "important bug fix."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:2561
37528 msgid ""
37529 "A new stable branch starts when we think the new features in development are "
37530 "substantial and compelling enough over the current stable branch to warrant "
37531 "it.  When that happens we create new stable and development versions 1.N.0 "
37532 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37533 "stable at this point, but by backporting fixes from development, that branch "
37534 "will stabilize over time."
37535 msgstr ""
37536
37537 #. type: =head1
37538 #: ../src/guestfs.pod:2569
37539 msgid "EXTENDING LIBGUESTFS"
37540 msgstr ""
37541
37542 #. type: =head2
37543 #: ../src/guestfs.pod:2571
37544 msgid "ADDING A NEW API ACTION"
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:2573
37549 msgid ""
37550 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37551 "documentation) are generated, and this makes it easy to extend the "
37552 "libguestfs API."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:2577
37557 msgid "To add a new API action there are two changes:"
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:2583
37562 msgid ""
37563 "You need to add a description of the call (name, parameters, return type, "
37564 "tests, documentation) to C<generator/generator_actions.ml>."
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:2586
37569 msgid ""
37570 "There are two sorts of API action, depending on whether the call goes "
37571 "through to the daemon in the appliance, or is serviced entirely by the "
37572 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37573 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37574 "an example of the latter, since a trace flag is maintained in the handle and "
37575 "all tracing is done on the library side."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:2594
37580 msgid ""
37581 "Most new actions are of the first type, and get added to the "
37582 "C<daemon_functions> list.  Each function has a unique procedure number used "
37583 "in the RPC protocol which is assigned to that action when we publish "
37584 "libguestfs and cannot be reused.  Take the latest procedure number and "
37585 "increment it."
37586 msgstr ""
37587
37588 #. type: textblock
37589 #: ../src/guestfs.pod:2600
37590 msgid ""
37591 "For library-only actions of the second type, add to the "
37592 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37593 "library and do not travel over the RPC mechanism to the daemon, these "
37594 "functions do not need a procedure number, and so the procedure number is set "
37595 "to C<-1>."
37596 msgstr ""
37597
37598 #. type: textblock
37599 #: ../src/guestfs.pod:2608
37600 msgid "Implement the action (in C):"
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:2610
37605 msgid ""
37606 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37607 "C<daemon/> directory."
37608 msgstr ""
37609
37610 #. type: textblock
37611 #: ../src/guestfs.pod:2613
37612 msgid ""
37613 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37614 "(note: double underscore) in the C<src/> directory."
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:2616
37619 msgid "In either case, use another function as an example of what to do."
37620 msgstr ""
37621
37622 #. type: textblock
37623 #: ../src/guestfs.pod:2620
37624 msgid "After making these changes, use C<make> to compile."
37625 msgstr ""
37626
37627 #. type: textblock
37628 #: ../src/guestfs.pod:2622
37629 msgid ""
37630 "Note that you don't need to implement the RPC, language bindings, manual "
37631 "pages or anything else.  It's all automatically generated from the OCaml "
37632 "description."
37633 msgstr ""
37634
37635 #. type: =head2
37636 #: ../src/guestfs.pod:2626
37637 msgid "ADDING TESTS FOR AN API ACTION"
37638 msgstr ""
37639
37640 #. type: textblock
37641 #: ../src/guestfs.pod:2628
37642 msgid ""
37643 "You can supply zero or as many tests as you want per API call.  The tests "
37644 "can either be added as part of the API description (C<generator/"
37645 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37646 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37647 "slower, so if possible use the first method."
37648 msgstr ""
37649
37650 #. type: textblock
37651 #: ../src/guestfs.pod:2634
37652 msgid ""
37653 "The following describes the test environment used when you add an API test "
37654 "in C<generator_actions.ml>."
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:2637
37659 msgid "The test environment has 4 block devices:"
37660 msgstr ""
37661
37662 #. type: =item
37663 #: ../src/guestfs.pod:2641
37664 msgid "C</dev/sda> 500MB"
37665 msgstr "C</dev/sda> 500 МБ"
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:2643
37669 msgid "General block device for testing."
37670 msgstr ""
37671
37672 #. type: =item
37673 #: ../src/guestfs.pod:2645
37674 msgid "C</dev/sdb> 50MB"
37675 msgstr "C</dev/sdb> 50 МБ"
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:2647
37679 msgid ""
37680 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37681 "operations."
37682 msgstr ""
37683
37684 #. type: =item
37685 #: ../src/guestfs.pod:2650
37686 msgid "C</dev/sdc> 10MB"
37687 msgstr "C</dev/sdc> 10 МБ"
37688
37689 #. type: textblock
37690 #: ../src/guestfs.pod:2652
37691 msgid "Used in a few tests where two block devices are needed."
37692 msgstr ""
37693
37694 #. type: =item
37695 #: ../src/guestfs.pod:2654
37696 msgid "C</dev/sdd>"
37697 msgstr "C</dev/sdd>"
37698
37699 #. type: textblock
37700 #: ../src/guestfs.pod:2656
37701 msgid "ISO with fixed content (see C<images/test.iso>)."
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../src/guestfs.pod:2660
37706 msgid ""
37707 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37708 "appliance and block devices are reused between tests.  So don't try testing "
37709 "L</guestfs_kill_subprocess> :-x"
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../src/guestfs.pod:2664
37714 msgid ""
37715 "Each test starts with an initial scenario, selected using one of the "
37716 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37717 "initialize the disks mentioned above in a particular way as documented in "
37718 "C<generator_types.ml>.  You should not assume anything about the previous "
37719 "contents of other disks that are not initialized."
37720 msgstr ""
37721
37722 #. type: textblock
37723 #: ../src/guestfs.pod:2670
37724 msgid ""
37725 "You can add a prerequisite clause to any individual test.  This is a run-"
37726 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37727 "testing a command which might not work on all variations of libguestfs "
37728 "builds.  A test that has prerequisite of C<Always> means to run "
37729 "unconditionally."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:2676
37734 msgid ""
37735 "In addition, packagers can skip individual tests by setting environment "
37736 "variables before running C<make check>."
37737 msgstr ""
37738
37739 #. type: verbatim
37740 #: ../src/guestfs.pod:2679
37741 #, no-wrap
37742 msgid ""
37743 " SKIP_TEST_<CMD>_<NUM>=1\n"
37744 "\n"
37745 msgstr ""
37746
37747 #. type: textblock
37748 #: ../src/guestfs.pod:2681
37749 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37750 msgstr ""
37751
37752 #. type: textblock
37753 #: ../src/guestfs.pod:2683
37754 msgid "or:"
37755 msgstr "або:"
37756
37757 #. type: verbatim
37758 #: ../src/guestfs.pod:2685
37759 #, no-wrap
37760 msgid ""
37761 " SKIP_TEST_<CMD>=1\n"
37762 "\n"
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:2687
37767 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../src/guestfs.pod:2689
37772 msgid "Packagers can run only certain tests by setting for example:"
37773 msgstr ""
37774
37775 #. type: verbatim
37776 #: ../src/guestfs.pod:2691
37777 #, no-wrap
37778 msgid ""
37779 " TEST_ONLY=\"vfs_type zerofree\"\n"
37780 "\n"
37781 msgstr ""
37782
37783 #. type: textblock
37784 #: ../src/guestfs.pod:2693
37785 msgid ""
37786 "See C<capitests/tests.c> for more details of how these environment variables "
37787 "work."
37788 msgstr ""
37789
37790 #. type: =head2
37791 #: ../src/guestfs.pod:2696
37792 msgid "DEBUGGING NEW API ACTIONS"
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:2698
37797 msgid "Test new actions work before submitting them."
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:2700
37802 msgid "You can use guestfish to try out new commands."
37803 msgstr ""
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:2702
37807 msgid ""
37808 "Debugging the daemon is a problem because it runs inside a minimal "
37809 "environment.  However you can fprintf messages in the daemon to stderr, and "
37810 "they will show up if you use C<guestfish -v>."
37811 msgstr ""
37812
37813 #. type: =head2
37814 #: ../src/guestfs.pod:2706
37815 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37816 msgstr ""
37817
37818 #. type: textblock
37819 #: ../src/guestfs.pod:2708
37820 msgid ""
37821 "Our C source code generally adheres to some basic code-formatting "
37822 "conventions.  The existing code base is not totally consistent on this "
37823 "front, but we do prefer that contributed code be formatted similarly.  In "
37824 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37825 "indentation level, and other than that, follow the K&R style."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:2714
37830 msgid ""
37831 "If you use Emacs, add the following to one of one of your start-up files (e."
37832 "g., ~/.emacs), to help ensure that you get indentation right:"
37833 msgstr ""
37834
37835 #. type: verbatim
37836 #: ../src/guestfs.pod:2717
37837 #, no-wrap
37838 msgid ""
37839 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37840 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37841 " (add-hook 'find-file-hook\n"
37842 "     '(lambda () (if (and buffer-file-name\n"
37843 "                          (string-match \"/libguestfs\\\\>\"\n"
37844 "                              (buffer-file-name))\n"
37845 "                          (not (string-equal mode-name \"Change Log\"))\n"
37846 "                          (not (string-equal mode-name \"Makefile\")))\n"
37847 "                     (setq indent-tabs-mode nil))))\n"
37848 " \n"
37849 msgstr ""
37850
37851 #. type: verbatim
37852 #: ../src/guestfs.pod:2727
37853 #, no-wrap
37854 msgid ""
37855 " ;;; When editing C sources in libguestfs, use this style.\n"
37856 " (defun libguestfs-c-mode ()\n"
37857 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37858 "   (interactive)\n"
37859 "   (c-set-style \"K&R\")\n"
37860 "   (setq c-indent-level 2)\n"
37861 "   (setq c-basic-offset 2))\n"
37862 " (add-hook 'c-mode-hook\n"
37863 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37864 "                               (buffer-file-name))\n"
37865 "                           (libguestfs-c-mode))))\n"
37866 "\n"
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:2739
37871 msgid "Enable warnings when compiling (and fix any problems this finds):"
37872 msgstr ""
37873
37874 #. type: verbatim
37875 #: ../src/guestfs.pod:2742
37876 #, no-wrap
37877 msgid ""
37878 " ./configure --enable-gcc-warnings\n"
37879 "\n"
37880 msgstr ""
37881 " ./configure --enable-gcc-warnings\n"
37882 "\n"
37883
37884 #. type: textblock
37885 #: ../src/guestfs.pod:2744
37886 msgid "Useful targets are:"
37887 msgstr ""
37888
37889 #. type: verbatim
37890 #: ../src/guestfs.pod:2746
37891 #, no-wrap
37892 msgid ""
37893 " make syntax-check  # checks the syntax of the C code\n"
37894 " make check         # runs the test suite\n"
37895 "\n"
37896 msgstr ""
37897
37898 #. type: =head2
37899 #: ../src/guestfs.pod:2749
37900 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37901 msgstr ""
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:2751
37905 msgid ""
37906 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37907 "which are used to do shell quoting."
37908 msgstr ""
37909
37910 #. type: =item
37911 #: ../src/guestfs.pod:2756
37912 msgid "%Q"
37913 msgstr "%Q"
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:2758
37917 msgid ""
37918 "Simple shell quoted string.  Any spaces or other shell characters are "
37919 "escaped for you."
37920 msgstr ""
37921
37922 #. type: =item
37923 #: ../src/guestfs.pod:2761
37924 msgid "%R"
37925 msgstr "%R"
37926
37927 #. type: textblock
37928 #: ../src/guestfs.pod:2763
37929 msgid ""
37930 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37931 "the sysroot."
37932 msgstr ""
37933
37934 #. type: verbatim
37935 #: ../src/guestfs.pod:2770
37936 #, no-wrap
37937 msgid ""
37938 " asprintf (&cmd, \"cat %R\", path);\n"
37939 "\n"
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:2772
37944 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37945 msgstr ""
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:2774
37949 msgid ""
37950 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37951 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37952 "they are not passed via the shell (instead, straight to exec).  You probably "
37953 "want to use the C<sysroot_path()> function however."
37954 msgstr ""
37955
37956 #. type: =head2
37957 #: ../src/guestfs.pod:2780
37958 msgid "SUBMITTING YOUR NEW API ACTIONS"
37959 msgstr ""
37960
37961 #. type: textblock
37962 #: ../src/guestfs.pod:2782
37963 msgid ""
37964 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37965 "libguestfs> and CC to L<rjones@redhat.com>."
37966 msgstr ""
37967
37968 #. type: =head2
37969 #: ../src/guestfs.pod:2786
37970 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37971 msgstr ""
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:2788
37975 msgid "We support i18n (gettext anyhow) in the library."
37976 msgstr ""
37977
37978 #. type: textblock
37979 #: ../src/guestfs.pod:2790
37980 msgid ""
37981 "However many messages come from the daemon, and we don't translate those at "
37982 "the moment.  One reason is that the appliance generally has all locale files "
37983 "removed from it, because they take up a lot of space.  So we'd have to readd "
37984 "some of those, as well as copying our PO files into the appliance."
37985 msgstr ""
37986
37987 #. type: textblock
37988 #: ../src/guestfs.pod:2796
37989 msgid ""
37990 "Debugging messages are never translated, since they are intended for the "
37991 "programmers."
37992 msgstr ""
37993
37994 #. type: =head2
37995 #: ../src/guestfs.pod:2799
37996 msgid "SOURCE CODE SUBDIRECTORIES"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:2805
38001 msgid "The libguestfs appliance, build scripts and so on."
38002 msgstr ""
38003
38004 #. type: =item
38005 #: ../src/guestfs.pod:2807
38006 msgid "C<capitests>"
38007 msgstr "C<capitests>"
38008
38009 #. type: textblock
38010 #: ../src/guestfs.pod:2809
38011 msgid "Automated tests of the C API."
38012 msgstr ""
38013
38014 #. type: =item
38015 #: ../src/guestfs.pod:2811
38016 msgid "C<cat>"
38017 msgstr "C<cat>"
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:2813
38021 msgid ""
38022 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38023 "documentation."
38024 msgstr ""
38025
38026 #. type: =item
38027 #: ../src/guestfs.pod:2816
38028 msgid "C<caution>"
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:2818
38033 msgid ""
38034 "Safety and liveness tests of components that libguestfs depends upon (not of "
38035 "libguestfs itself).  Mainly this is for qemu and the kernel."
38036 msgstr ""
38037
38038 #. type: =item
38039 #: ../src/guestfs.pod:2821
38040 msgid "C<contrib>"
38041 msgstr "C<contrib>"
38042
38043 #. type: textblock
38044 #: ../src/guestfs.pod:2823
38045 msgid "Outside contributions, experimental parts."
38046 msgstr ""
38047
38048 #. type: =item
38049 #: ../src/guestfs.pod:2825
38050 msgid "C<daemon>"
38051 msgstr "C<daemon>"
38052
38053 #. type: textblock
38054 #: ../src/guestfs.pod:2827
38055 msgid ""
38056 "The daemon that runs inside the libguestfs appliance and carries out actions."
38057 msgstr ""
38058
38059 #. type: =item
38060 #: ../src/guestfs.pod:2830
38061 msgid "C<df>"
38062 msgstr "C<df>"
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:2832
38066 msgid "L<virt-df(1)> command and documentation."
38067 msgstr ""
38068
38069 #. type: =item
38070 #: ../src/guestfs.pod:2834
38071 msgid "C<edit>"
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:2836
38076 msgid "L<virt-edit(1)> command and documentation."
38077 msgstr ""
38078
38079 #. type: =item
38080 #: ../src/guestfs.pod:2838
38081 msgid "C<examples>"
38082 msgstr "C<examples>"
38083
38084 #. type: textblock
38085 #: ../src/guestfs.pod:2840
38086 msgid "C API example code."
38087 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38088
38089 #. type: =item
38090 #: ../src/guestfs.pod:2842
38091 msgid "C<fish>"
38092 msgstr "C<fish>"
38093
38094 #. type: textblock
38095 #: ../src/guestfs.pod:2844
38096 msgid ""
38097 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38098 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38099 "L<virt-tar-out(1)>."
38100 msgstr ""
38101
38102 #. type: =item
38103 #: ../src/guestfs.pod:2848
38104 msgid "C<fuse>"
38105 msgstr "C<fuse>"
38106
38107 #. type: textblock
38108 #: ../src/guestfs.pod:2850
38109 msgid ""
38110 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38111 msgstr ""
38112
38113 #. type: =item
38114 #: ../src/guestfs.pod:2852
38115 msgid "C<generator>"
38116 msgstr "C<generator>"
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:2854
38120 msgid ""
38121 "The crucially important generator, used to automatically generate large "
38122 "amounts of boilerplate C code for things like RPC and bindings."
38123 msgstr ""
38124
38125 #. type: =item
38126 #: ../src/guestfs.pod:2857
38127 msgid "C<images>"
38128 msgstr "C<images>"
38129
38130 #. type: textblock
38131 #: ../src/guestfs.pod:2859
38132 msgid "Files used by the test suite."
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../src/guestfs.pod:2861
38137 msgid "Some \"phony\" guest images which we test against."
38138 msgstr ""
38139
38140 #. type: =item
38141 #: ../src/guestfs.pod:2863
38142 msgid "C<inspector>"
38143 msgstr "C<inspector>"
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:2865
38147 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38148 msgstr ""
38149
38150 #. type: =item
38151 #: ../src/guestfs.pod:2867
38152 msgid "C<logo>"
38153 msgstr "C<logo>"
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:2869
38157 msgid "Logo used on the website.  The fish is called Arthur by the way."
38158 msgstr ""
38159
38160 #. type: =item
38161 #: ../src/guestfs.pod:2871
38162 msgid "C<m4>"
38163 msgstr "C<m4>"
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:2873
38167 msgid "M4 macros used by autoconf."
38168 msgstr ""
38169
38170 #. type: =item
38171 #: ../src/guestfs.pod:2875
38172 msgid "C<po>"
38173 msgstr "C<po>"
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:2877
38177 msgid "Translations of simple gettext strings."
38178 msgstr "Переклади простих рядків gettext."
38179
38180 #. type: =item
38181 #: ../src/guestfs.pod:2879
38182 msgid "C<po-docs>"
38183 msgstr "C<po-docs>"
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:2881
38187 msgid ""
38188 "The build infrastructure and PO files for translations of manpages and POD "
38189 "files.  Eventually this will be combined with the C<po> directory, but that "
38190 "is rather complicated."
38191 msgstr ""
38192
38193 #. type: =item
38194 #: ../src/guestfs.pod:2885
38195 msgid "C<regressions>"
38196 msgstr "C<regressions>"
38197
38198 #. type: textblock
38199 #: ../src/guestfs.pod:2887
38200 msgid "Regression tests."
38201 msgstr "Тести на регресії."
38202
38203 #. type: =item
38204 #: ../src/guestfs.pod:2889
38205 msgid "C<rescue>"
38206 msgstr "C<rescue>"
38207
38208 #. type: textblock
38209 #: ../src/guestfs.pod:2891
38210 msgid "L<virt-rescue(1)> command and documentation."
38211 msgstr ""
38212
38213 #. type: =item
38214 #: ../src/guestfs.pod:2893
38215 #, fuzzy
38216 #| msgid "C<rescue>"
38217 msgid "C<resize>"
38218 msgstr "C<rescue>"
38219
38220 #. type: textblock
38221 #: ../src/guestfs.pod:2895
38222 msgid "L<virt-resize(1)> command and documentation."
38223 msgstr ""
38224
38225 #. type: =item
38226 #: ../src/guestfs.pod:2897
38227 msgid "C<src>"
38228 msgstr "C<src>"
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:2899
38232 msgid "Source code to the C library."
38233 msgstr ""
38234
38235 #. type: =item
38236 #: ../src/guestfs.pod:2901
38237 msgid "C<tools>"
38238 msgstr "C<tools>"
38239
38240 #. type: textblock
38241 #: ../src/guestfs.pod:2903
38242 msgid ""
38243 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38244 msgstr ""
38245
38246 #. type: =item
38247 #: ../src/guestfs.pod:2905
38248 msgid "C<test-tool>"
38249 msgstr "C<test-tool>"
38250
38251 #. type: textblock
38252 #: ../src/guestfs.pod:2907
38253 msgid ""
38254 "Test tool for end users to test if their qemu/kernel combination will work "
38255 "with libguestfs."
38256 msgstr ""
38257
38258 #. type: =item
38259 #: ../src/guestfs.pod:2910
38260 msgid "C<csharp>"
38261 msgstr "C<csharp>"
38262
38263 #. type: =item
38264 #: ../src/guestfs.pod:2912
38265 msgid "C<haskell>"
38266 msgstr "C<haskell>"
38267
38268 #. type: =item
38269 #: ../src/guestfs.pod:2914
38270 msgid "C<java>"
38271 msgstr "C<java>"
38272
38273 #. type: =item
38274 #: ../src/guestfs.pod:2916
38275 msgid "C<ocaml>"
38276 msgstr "C<ocaml>"
38277
38278 #. type: =item
38279 #: ../src/guestfs.pod:2918
38280 msgid "C<php>"
38281 msgstr "C<php>"
38282
38283 #. type: =item
38284 #: ../src/guestfs.pod:2920
38285 msgid "C<perl>"
38286 msgstr "C<perl>"
38287
38288 #. type: =item
38289 #: ../src/guestfs.pod:2922
38290 msgid "C<python>"
38291 msgstr "C<python>"
38292
38293 #. type: =item
38294 #: ../src/guestfs.pod:2924
38295 msgid "C<ruby>"
38296 msgstr "C<ruby>"
38297
38298 #. type: textblock
38299 #: ../src/guestfs.pod:2926
38300 msgid "Language bindings."
38301 msgstr "Прив’язки до мов програмування."
38302
38303 #. type: =head2
38304 #: ../src/guestfs.pod:2930
38305 msgid "MAKING A STABLE RELEASE"
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:2932
38310 msgid ""
38311 "When we make a stable release, there are several steps documented here.  See "
38312 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38313 "branch policy."
38314 msgstr ""
38315
38316 #. type: textblock
38317 #: ../src/guestfs.pod:2940
38318 msgid ""
38319 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38320 msgstr ""
38321
38322 #. type: textblock
38323 #: ../src/guestfs.pod:2945
38324 msgid "Finalize RELEASE-NOTES."
38325 msgstr ""
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:2949
38329 msgid "Update ROADMAP."
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:2953
38334 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:2957
38339 msgid "Push and pull from Transifex."
38340 msgstr ""
38341
38342 #. type: textblock
38343 #: ../src/guestfs.pod:2959
38344 msgid "Run:"
38345 msgstr ""
38346
38347 #. type: verbatim
38348 #: ../src/guestfs.pod:2961
38349 #, no-wrap
38350 msgid ""
38351 " tx push -s\n"
38352 "\n"
38353 msgstr ""
38354
38355 #. type: textblock
38356 #: ../src/guestfs.pod:2963
38357 msgid "to push the latest POT files to Transifex.  Then run:"
38358 msgstr ""
38359
38360 #. type: verbatim
38361 #: ../src/guestfs.pod:2965
38362 #, no-wrap
38363 msgid ""
38364 " ./tx-pull.sh\n"
38365 "\n"
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../src/guestfs.pod:2967
38370 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:2971
38375 msgid ""
38376 "Create new stable and development directories under L<http://libguestfs.org/"
38377 "download>."
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:2976
38382 msgid "Create the branch in git:"
38383 msgstr ""
38384
38385 #. type: verbatim
38386 #: ../src/guestfs.pod:2978
38387 #, no-wrap
38388 msgid ""
38389 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38390 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38391 " git branch stable-1.XX\n"
38392 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38393 "\n"
38394 msgstr ""
38395
38396 #. type: =head1
38397 #: ../src/guestfs.pod:2985
38398 msgid "LIMITS"
38399 msgstr ""
38400
38401 #. type: =head2
38402 #: ../src/guestfs.pod:2987
38403 msgid "PROTOCOL LIMITS"
38404 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38405
38406 #. type: textblock
38407 #: ../src/guestfs.pod:2989
38408 msgid ""
38409 "Internally libguestfs uses a message-based protocol to pass API calls and "
38410 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38411 "plenty more detail about this).  The maximum message size used by the "
38412 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38413 "aware of this limit.  The API calls which may be affected are individually "
38414 "documented, with a link back to this section of the documentation."
38415 msgstr ""
38416
38417 #. type: textblock
38418 #: ../src/guestfs.pod:2997
38419 msgid ""
38420 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38421 "a simple string.  Because this string is at some point internally encoded as "
38422 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38423 "the requested file is larger than this then you will get an error."
38424 msgstr ""
38425
38426 #. type: textblock
38427 #: ../src/guestfs.pod:3003
38428 msgid ""
38429 "In order to transfer large files into and out of the guest filesystem, you "
38430 "need to use particular calls that support this.  The sections L</UPLOADING> "
38431 "and L</DOWNLOADING> document how to do this."
38432 msgstr ""
38433
38434 #. type: textblock
38435 #: ../src/guestfs.pod:3007
38436 msgid ""
38437 "You might also consider mounting the disk image using our FUSE filesystem "
38438 "support (L<guestmount(1)>)."
38439 msgstr ""
38440
38441 #. type: =head2
38442 #: ../src/guestfs.pod:3010
38443 msgid "MAXIMUM NUMBER OF DISKS"
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../src/guestfs.pod:3012
38448 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38449 msgstr ""
38450
38451 #. type: textblock
38452 #: ../src/guestfs.pod:3015
38453 msgid ""
38454 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38455 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38456 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38457 "purposes."
38458 msgstr ""
38459
38460 #. type: textblock
38461 #: ../src/guestfs.pod:3020
38462 msgid ""
38463 "We are working to substantially raise this limit in future versions but it "
38464 "requires complex changes to qemu."
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:3023
38469 msgid ""
38470 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38471 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38472 "requires changes to qemu."
38473 msgstr ""
38474
38475 #. type: =head2
38476 #: ../src/guestfs.pod:3027
38477 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38478 msgstr ""
38479
38480 #. type: textblock
38481 #: ../src/guestfs.pod:3029
38482 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38483 msgstr ""
38484
38485 #. type: textblock
38486 #: ../src/guestfs.pod:3031
38487 msgid ""
38488 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38489 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:3034
38494 msgid ""
38495 "If you attach a disk with more than 15 partitions, the extra partitions are "
38496 "ignored by libguestfs."
38497 msgstr ""
38498
38499 #. type: =head2
38500 #: ../src/guestfs.pod:3037
38501 msgid "MAXIMUM SIZE OF A DISK"
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:3039
38506 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38507 msgstr ""
38508
38509 #. type: textblock
38510 #: ../src/guestfs.pod:3041
38511 msgid ""
38512 "We have tested block devices up to 1 exabyte (2**60 or "
38513 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38514 "filesystem."
38515 msgstr ""
38516
38517 #. type: textblock
38518 #: ../src/guestfs.pod:3045
38519 msgid ""
38520 "Although libguestfs probably does not impose any limit, the underlying host "
38521 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38522 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38523 "TB).  If you store disk images as host logical volumes then you are limited "
38524 "by the maximum size of an LV."
38525 msgstr ""
38526
38527 #. type: textblock
38528 #: ../src/guestfs.pod:3051
38529 msgid ""
38530 "For the hugest disk image files, we recommend using XFS on the host for "
38531 "storage."
38532 msgstr ""
38533
38534 #. type: =head2
38535 #: ../src/guestfs.pod:3054
38536 msgid "MAXIMUM SIZE OF A PARTITION"
38537 msgstr ""
38538
38539 #. type: textblock
38540 #: ../src/guestfs.pod:3056
38541 msgid ""
38542 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38543 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38544 "address a partition located beyond 2 TB on the disk."
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:3060
38549 msgid ""
38550 "It is recommended that you use GPT partitions on disks which are larger than "
38551 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38552 "which are theoretically larger than the largest disk we could support."
38553 msgstr ""
38554
38555 #. type: =head2
38556 #: ../src/guestfs.pod:3065
38557 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38558 msgstr ""
38559
38560 #. type: textblock
38561 #: ../src/guestfs.pod:3067
38562 msgid ""
38563 "This depends on the filesystem type.  libguestfs itself does not impose any "
38564 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38565 "what these limits are."
38566 msgstr ""
38567
38568 #. type: =head2
38569 #: ../src/guestfs.pod:3071
38570 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:3073
38575 msgid ""
38576 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38577 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38578 "uploads and downloads."
38579 msgstr ""
38580
38581 #. type: =head2
38582 #: ../src/guestfs.pod:3077
38583 msgid "INSPECTION LIMITS"
38584 msgstr ""
38585
38586 #. type: textblock
38587 #: ../src/guestfs.pod:3079
38588 msgid ""
38589 "The inspection code has several arbitrary limits on things like the size of "
38590 "Windows Registry hive it will read, and the length of product name.  These "
38591 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38592 "memory and disk space on the host, and should not be reached in practice.  "
38593 "See the source code for more information."
38594 msgstr ""
38595
38596 #. type: textblock
38597 #: ../src/guestfs.pod:3105
38598 msgid ""
38599 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38600 "effect as calling C<guestfs_set_verbose (g, 1)>."
38601 msgstr ""
38602
38603 #. type: textblock
38604 #: ../src/guestfs.pod:3117
38605 msgid ""
38606 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38607 "the discussion of paths in section L</PATH> above."
38608 msgstr ""
38609
38610 #. type: textblock
38611 #: ../src/guestfs.pod:3126
38612 msgid "See also L</QEMU WRAPPERS> above."
38613 msgstr ""
38614
38615 #. type: textblock
38616 #: ../src/guestfs.pod:3130
38617 msgid ""
38618 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38619 "effect as calling C<guestfs_set_trace (g, 1)>."
38620 msgstr ""
38621
38622 #. type: textblock
38623 #: ../src/guestfs.pod:3148
38624 msgid ""
38625 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38626 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38627 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38628 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38629 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38630 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
38631 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
38632 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
38633 "libguestfs.org/>."
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:3179
38638 msgid ""
38639 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38640 "(8)>, L<disktype(1)>."
38641 msgstr ""
38642
38643 #. type: =head1
38644 #: ../src/guestfs.pod:3186 ../tools/virt-make-fs.pl:571
38645 #: ../tools/virt-win-reg.pl:761
38646 msgid "BUGS"
38647 msgstr "ВАДИ"
38648
38649 #. type: textblock
38650 #: ../src/guestfs.pod:3188
38651 msgid "To get a list of bugs against libguestfs use this link:"
38652 msgstr ""
38653 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38654 "посиланням:"
38655
38656 #. type: textblock
38657 #: ../src/guestfs.pod:3190
38658 msgid ""
38659 "L<https://bugzilla.redhat.com/buglist.cgi?"
38660 "component=libguestfs&product=Virtualization+Tools>"
38661 msgstr ""
38662 "L<https://bugzilla.redhat.com/buglist.cgi?"
38663 "component=libguestfs&product=Virtualization+Tools>"
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:3192
38667 msgid "To report a new bug against libguestfs use this link:"
38668 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38669
38670 #. type: textblock
38671 #: ../src/guestfs.pod:3194
38672 msgid ""
38673 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38674 "component=libguestfs&product=Virtualization+Tools>"
38675 msgstr ""
38676 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38677 "component=libguestfs&product=Virtualization+Tools>"
38678
38679 #. type: textblock
38680 #: ../src/guestfs.pod:3196
38681 msgid "When reporting a bug, please check:"
38682 msgstr ""
38683
38684 #. type: textblock
38685 #: ../src/guestfs.pod:3202
38686 msgid "That the bug hasn't been reported already."
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:3206
38691 msgid "That you are testing a recent version."
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../src/guestfs.pod:3210
38696 msgid "Describe the bug accurately, and give a way to reproduce it."
38697 msgstr ""
38698
38699 #. type: textblock
38700 #: ../src/guestfs.pod:3214
38701 msgid ""
38702 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38703 "bug report."
38704 msgstr ""
38705
38706 #. type: textblock
38707 #: ../test-tool/libguestfs-test-tool.pod:5
38708 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38709 msgstr ""
38710
38711 #. type: verbatim
38712 #: ../test-tool/libguestfs-test-tool.pod:9
38713 #, no-wrap
38714 msgid ""
38715 " libguestfs-test-tool [--options]\n"
38716 "\n"
38717 msgstr ""
38718
38719 #. type: textblock
38720 #: ../test-tool/libguestfs-test-tool.pod:13
38721 msgid ""
38722 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38723 "to check basic libguestfs functionality is working.  This is needed because "
38724 "libguestfs occasionally breaks for reasons beyond our control: usually "
38725 "because of changes in the underlying qemu or kernel packages, or the host "
38726 "environment."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../test-tool/libguestfs-test-tool.pod:19
38731 msgid "If you suspect a problem in libguestfs, then just run:"
38732 msgstr ""
38733
38734 #. type: verbatim
38735 #: ../test-tool/libguestfs-test-tool.pod:21
38736 #, no-wrap
38737 msgid ""
38738 " libguestfs-test-tool\n"
38739 "\n"
38740 msgstr ""
38741
38742 #. type: textblock
38743 #: ../test-tool/libguestfs-test-tool.pod:23
38744 msgid "It will print lots of diagnostic messages."
38745 msgstr ""
38746
38747 #. type: textblock
38748 #: ../test-tool/libguestfs-test-tool.pod:25
38749 msgid "If it runs to completion successfully, you will see this near the end:"
38750 msgstr ""
38751
38752 #. type: verbatim
38753 #: ../test-tool/libguestfs-test-tool.pod:27
38754 #, no-wrap
38755 msgid ""
38756 " ===== TEST FINISHED OK =====\n"
38757 "\n"
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../test-tool/libguestfs-test-tool.pod:29
38762 msgid "and the test tool will exit with code 0."
38763 msgstr ""
38764
38765 #. type: textblock
38766 #: ../test-tool/libguestfs-test-tool.pod:31
38767 msgid ""
38768 "If it fails (and/or exits with non-zero error code), please paste the "
38769 "I<complete, unedited> output of the test tool into a bug report.  More "
38770 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38771 "> website."
38772 msgstr ""
38773
38774 #. type: textblock
38775 #: ../test-tool/libguestfs-test-tool.pod:42
38776 msgid "Display short usage information and exit."
38777 msgstr ""
38778
38779 #. type: =item
38780 #: ../test-tool/libguestfs-test-tool.pod:44
38781 #, fuzzy
38782 #| msgid "I<--qemu qemu_binary>"
38783 msgid "B<--qemu qemu_binary>"
38784 msgstr "I<--qemu виконуваний_файл_qemu>"
38785
38786 #. type: textblock
38787 #: ../test-tool/libguestfs-test-tool.pod:46
38788 msgid ""
38789 "If you have downloaded another qemu binary, point this option at the full "
38790 "path of the binary to try it."
38791 msgstr ""
38792
38793 #. type: =item
38794 #: ../test-tool/libguestfs-test-tool.pod:49
38795 #, fuzzy
38796 #| msgid "I<--qemu qemu_binary>"
38797 msgid "B<--qemudir qemu_source_dir>"
38798 msgstr "I<--qemu виконуваний_файл_qemu>"
38799
38800 #. type: textblock
38801 #: ../test-tool/libguestfs-test-tool.pod:51
38802 msgid ""
38803 "If you have compiled qemu from source, point this option at the source "
38804 "directory to try it."
38805 msgstr ""
38806
38807 #. type: =item
38808 #: ../test-tool/libguestfs-test-tool.pod:54
38809 msgid "B<-t N>"
38810 msgstr ""
38811
38812 #. type: =item
38813 #: ../test-tool/libguestfs-test-tool.pod:56
38814 #, fuzzy
38815 #| msgid "I<--timeout N>"
38816 msgid "B<--timeout N>"
38817 msgstr "I<--timeout N>"
38818
38819 #. type: textblock
38820 #: ../test-tool/libguestfs-test-tool.pod:58
38821 msgid ""
38822 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38823 "minutes) which does not usually need to be adjusted."
38824 msgstr ""
38825
38826 #. type: =head1
38827 #: ../test-tool/libguestfs-test-tool.pod:63
38828 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../test-tool/libguestfs-test-tool.pod:65
38833 msgid ""
38834 "If you have compiled another version of qemu from source and would like to "
38835 "try that, then you can use the I<--qemudir> option to point to the qemu "
38836 "source directory."
38837 msgstr ""
38838
38839 #. type: textblock
38840 #: ../test-tool/libguestfs-test-tool.pod:69
38841 msgid ""
38842 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38843 "option to point to the binary."
38844 msgstr ""
38845
38846 #. type: textblock
38847 #: ../test-tool/libguestfs-test-tool.pod:72
38848 msgid ""
38849 "Note when using these options, you can ignore the business of qemu wrapper "
38850 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38851 "wrapper script for you if one is needed."
38852 msgstr ""
38853
38854 #. type: =head1
38855 #: ../test-tool/libguestfs-test-tool.pod:76
38856 msgid "TRYING OUT A DIFFERENT KERNEL"
38857 msgstr ""
38858
38859 #. type: textblock
38860 #: ../test-tool/libguestfs-test-tool.pod:78
38861 msgid ""
38862 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38863 "libguestfs tries.  You do this by setting the environment variables "
38864 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38865 msgstr ""
38866
38867 #. type: textblock
38868 #: ../test-tool/libguestfs-test-tool.pod:82
38869 msgid ""
38870 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38871 "information."
38872 msgstr ""
38873
38874 #. type: =head1
38875 #: ../test-tool/libguestfs-test-tool.pod:85
38876 msgid "SELF-DIAGNOSIS"
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../test-tool/libguestfs-test-tool.pod:87
38881 msgid ""
38882 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38883 "produced by libguestfs-test-tool and/or possible errors."
38884 msgstr ""
38885
38886 #. type: textblock
38887 #: ../test-tool/libguestfs-test-tool.pod:92
38888 msgid ""
38889 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38890 "I<1> if there was an error."
38891 msgstr ""
38892
38893 #. type: textblock
38894 #: ../test-tool/libguestfs-test-tool.pod:97
38895 msgid ""
38896 "For the full list of environment variables which may affect libguestfs, "
38897 "please see the L<guestfs(3)> manual page."
38898 msgstr ""
38899
38900 #. type: textblock
38901 #: ../test-tool/libguestfs-test-tool.pod:102
38902 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38903 msgstr ""
38904
38905 #. type: textblock
38906 #: ../tools/virt-list-filesystems.pl:32
38907 msgid ""
38908 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38909 msgstr ""
38910
38911 #. type: verbatim
38912 #: ../tools/virt-list-filesystems.pl:36
38913 #, no-wrap
38914 msgid ""
38915 " virt-list-filesystems [--options] domname\n"
38916 "\n"
38917 msgstr ""
38918
38919 #. type: verbatim
38920 #: ../tools/virt-list-filesystems.pl:38
38921 #, no-wrap
38922 msgid ""
38923 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38924 "\n"
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38929 msgid ""
38930 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38931 "replacement."
38932 msgstr ""
38933
38934 #. type: textblock
38935 #: ../tools/virt-list-filesystems.pl:45
38936 msgid ""
38937 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38938 "are contained in a virtual machine or disk image."
38939 msgstr ""
38940
38941 #. type: textblock
38942 #: ../tools/virt-list-filesystems.pl:49
38943 msgid ""
38944 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38945 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38946 "> tool."
38947 msgstr ""
38948
38949 #. type: textblock
38950 #: ../tools/virt-list-filesystems.pl:112
38951 msgid ""
38952 "With this option, C<virt-list-filesystems> displays the type of each "
38953 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38954 msgstr ""
38955
38956 #. type: =item
38957 #: ../tools/virt-list-filesystems.pl:119
38958 #, fuzzy
38959 #| msgid "B<-a image>"
38960 msgid "B<-a>"
38961 msgstr "B<-a образ>"
38962
38963 #. type: textblock
38964 #: ../tools/virt-list-filesystems.pl:123
38965 msgid ""
38966 "Normally we only show mountable filesystems.  If this option is given then "
38967 "swap devices are shown too."
38968 msgstr ""
38969
38970 #. type: textblock
38971 #: ../tools/virt-list-filesystems.pl:197
38972 msgid ""
38973 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38974 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38975 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38976 msgstr ""
38977 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38978 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38979 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38980
38981 #. type: textblock
38982 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38983 msgid "Copyright (C) 2009 Red Hat Inc."
38984 msgstr "© Red Hat Inc., 2009"
38985
38986 #. type: textblock
38987 #: ../tools/virt-list-partitions.pl:32
38988 msgid ""
38989 "virt-list-partitions - List partitions in a virtual machine or disk image"
38990 msgstr ""
38991
38992 #. type: verbatim
38993 #: ../tools/virt-list-partitions.pl:36
38994 #, no-wrap
38995 msgid ""
38996 " virt-list-partitions [--options] domname\n"
38997 "\n"
38998 msgstr ""
38999 " virt-list-partitions [--параметри] назва_домену\n"
39000 "\n"
39001
39002 #. type: verbatim
39003 #: ../tools/virt-list-partitions.pl:38
39004 #, no-wrap
39005 msgid ""
39006 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39007 "\n"
39008 msgstr ""
39009 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39010 "\n"
39011
39012 #. type: textblock
39013 #: ../tools/virt-list-partitions.pl:45
39014 msgid ""
39015 "C<virt-list-partitions> is a command line tool to list the partitions that "
39016 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39017 "first step to using L<virt-resize(1)>."
39018 msgstr ""
39019
39020 #. type: textblock
39021 #: ../tools/virt-list-partitions.pl:50
39022 msgid ""
39023 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39024 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39025 "> tool."
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../tools/virt-list-partitions.pl:113
39030 msgid "Show sizes in human-readable form (eg. \"1G\")."
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../tools/virt-list-partitions.pl:123
39035 msgid ""
39036 "With this option, C<virt-list-partitions> displays the type and size of each "
39037 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39038 msgstr ""
39039
39040 #. type: =item
39041 #: ../tools/virt-list-partitions.pl:130
39042 msgid "B<-t>"
39043 msgstr ""
39044
39045 #. type: =item
39046 #: ../tools/virt-list-partitions.pl:132
39047 #, fuzzy
39048 #| msgid "B<-t> | B<--total>"
39049 msgid "B<--total>"
39050 msgstr "B<-t> | B<--total>"
39051
39052 #. type: textblock
39053 #: ../tools/virt-list-partitions.pl:134
39054 msgid ""
39055 "Display the total size of each block device (as a separate row or rows)."
39056 msgstr ""
39057
39058 #. type: textblock
39059 #: ../tools/virt-list-partitions.pl:267
39060 msgid ""
39061 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39062 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39063 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39064 msgstr ""
39065 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39066 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39067 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39068
39069 #. type: textblock
39070 #: ../tools/virt-list-partitions.pl:283
39071 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39072 msgstr "© Red Hat Inc., 2009–2010"
39073
39074 #. type: textblock
39075 #: ../tools/virt-make-fs.pl:37
39076 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39077 msgstr ""
39078
39079 #. type: verbatim
39080 #: ../tools/virt-make-fs.pl:41
39081 #, no-wrap
39082 msgid ""
39083 " virt-make-fs [--options] input.tar output.img\n"
39084 "\n"
39085 msgstr ""
39086
39087 #. type: verbatim
39088 #: ../tools/virt-make-fs.pl:43
39089 #, no-wrap
39090 msgid ""
39091 " virt-make-fs [--options] input.tar.gz output.img\n"
39092 "\n"
39093 msgstr ""
39094
39095 #. type: verbatim
39096 #: ../tools/virt-make-fs.pl:45
39097 #, no-wrap
39098 msgid ""
39099 " virt-make-fs [--options] directory output.img\n"
39100 "\n"
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../tools/virt-make-fs.pl:49
39105 msgid ""
39106 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39107 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
39108 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
39109 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39110 "you want to attach these filesystems to existing virtual machines (eg. to "
39111 "import large amounts of read-only data to a VM)."
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../tools/virt-make-fs.pl:57
39116 msgid "Basic usage is:"
39117 msgstr ""
39118
39119 #. type: verbatim
39120 #: ../tools/virt-make-fs.pl:59
39121 #, fuzzy, no-wrap
39122 #| msgid ""
39123 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39124 #| "\n"
39125 msgid ""
39126 " virt-make-fs input output.img\n"
39127 "\n"
39128 msgstr ""
39129 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39130 "\n"
39131
39132 #. type: textblock
39133 #: ../tools/virt-make-fs.pl:61
39134 msgid ""
39135 "where C<input> is either a directory containing files that you want to add, "
39136 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39137 "C<output.img> is a disk image.  The input type is detected automatically.  "
39138 "The output disk image defaults to a raw ext2 sparse image unless you specify "
39139 "extra flags (see L</OPTIONS> below)."
39140 msgstr ""
39141
39142 #. type: =head2
39143 #: ../tools/virt-make-fs.pl:67
39144 msgid "FILESYSTEM TYPE"
39145 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39146
39147 #. type: textblock
39148 #: ../tools/virt-make-fs.pl:69
39149 msgid ""
39150 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39151 "libguestfs supports can be used (but I<not> read-only formats like "
39152 "ISO9660).  Here are some of the more common choices:"
39153 msgstr ""
39154
39155 #. type: =item
39156 #: ../tools/virt-make-fs.pl:75
39157 msgid "I<ext3>"
39158 msgstr "I<ext3>"
39159
39160 #. type: textblock
39161 #: ../tools/virt-make-fs.pl:77
39162 msgid ""
39163 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39164 "you are not going to use the filesystem in a way that requires the journal, "
39165 "then this is just wasted overhead."
39166 msgstr ""
39167
39168 #. type: =item
39169 #: ../tools/virt-make-fs.pl:81
39170 msgid "I<ntfs> or I<vfat>"
39171 msgstr "I<ntfs> або I<vfat>"
39172
39173 #. type: textblock
39174 #: ../tools/virt-make-fs.pl:83
39175 msgid "Useful if exporting data to a Windows guest."
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../tools/virt-make-fs.pl:85
39180 msgid ""
39181 "I<Note for vfat>: The tar archive or local directory must only contain files "
39182 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39183 "program running within libguestfs is unable to change the ownership of non-"
39184 "root files, since vfat itself does not support this."
39185 msgstr ""
39186
39187 #. type: =item
39188 #: ../tools/virt-make-fs.pl:90
39189 msgid "I<minix>"
39190 msgstr "I<minix>"
39191
39192 #. type: textblock
39193 #: ../tools/virt-make-fs.pl:92
39194 msgid ""
39195 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39196 "total filesystem size."
39197 msgstr ""
39198
39199 #. type: =head3
39200 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
39201 #: ../tools/virt-make-fs.pl:149
39202 msgid "EXAMPLE"
39203 msgstr "ПРИКЛАД"
39204
39205 #. type: verbatim
39206 #: ../tools/virt-make-fs.pl:99
39207 #, no-wrap
39208 msgid ""
39209 " virt-make-fs --type=minix input minixfs.img\n"
39210 "\n"
39211 msgstr ""
39212
39213 #. type: =head2
39214 #: ../tools/virt-make-fs.pl:101
39215 msgid "TO PARTITION OR NOT TO PARTITION"
39216 msgstr ""
39217
39218 #. type: textblock
39219 #: ../tools/virt-make-fs.pl:103
39220 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39221 msgstr ""
39222
39223 #. type: textblock
39224 #: ../tools/virt-make-fs.pl:105
39225 msgid ""
39226 "Adding a partition can make the disk image more compatible with certain "
39227 "virtualized operating systems which don't expect to see a filesystem "
39228 "directly located on a block device (Linux doesn't care and will happily "
39229 "handle both types)."
39230 msgstr ""
39231
39232 #. type: textblock
39233 #: ../tools/virt-make-fs.pl:110
39234 msgid ""
39235 "On the other hand, if you have a partition table then the output image is no "
39236 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39237 "directly on a partitioned disk image.  (However libguestfs tools such as "
39238 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39239 msgstr ""
39240
39241 #. type: textblock
39242 #: ../tools/virt-make-fs.pl:118
39243 msgid "Add an MBR partition:"
39244 msgstr ""
39245
39246 #. type: verbatim
39247 #: ../tools/virt-make-fs.pl:120
39248 #, no-wrap
39249 msgid ""
39250 " virt-make-fs --partition -- input disk.img\n"
39251 "\n"
39252 msgstr ""
39253
39254 #. type: textblock
39255 #: ../tools/virt-make-fs.pl:122
39256 msgid ""
39257 "If the output disk image could be terabyte-sized or larger, it's better to "
39258 "use an EFI/GPT-compatible partition table:"
39259 msgstr ""
39260
39261 #. type: verbatim
39262 #: ../tools/virt-make-fs.pl:125
39263 #, no-wrap
39264 msgid ""
39265 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39266 "\n"
39267 msgstr ""
39268
39269 #. type: =head2
39270 #: ../tools/virt-make-fs.pl:127
39271 msgid "EXTRA SPACE"
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../tools/virt-make-fs.pl:129
39276 msgid ""
39277 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39278 "the files that it contains, but might have extra space.  Depending on how "
39279 "you are going to use the output, you might think this extra space is wasted "
39280 "and want to minimize it, or you might want to leave space so that more files "
39281 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39282 "but you can use the I<--size> flag to leave space in the filesystem if you "
39283 "want it."
39284 msgstr ""
39285
39286 #. type: textblock
39287 #: ../tools/virt-make-fs.pl:137
39288 msgid ""
39289 "An alternative way to leave extra space but not make the output image any "
39290 "bigger is to use an alternative disk image format (instead of the default "
39291 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39292 "image format (check your hypervisor supports this before using it).  This "
39293 "allows you to choose a large I<--size> but the extra space won't actually be "
39294 "allocated in the image until you try to store something in it."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../tools/virt-make-fs.pl:145
39299 msgid ""
39300 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39301 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39302 "to build another image from scratch."
39303 msgstr ""
39304
39305 #. type: verbatim
39306 #: ../tools/virt-make-fs.pl:151
39307 #, no-wrap
39308 msgid ""
39309 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39310 "\n"
39311 msgstr ""
39312 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39313 "\n"
39314
39315 #. type: textblock
39316 #: ../tools/virt-make-fs.pl:179
39317 msgid "Enable debugging information."
39318 msgstr "Увімкнути виведення діагностичних даних."
39319
39320 #. type: =item
39321 #: ../tools/virt-make-fs.pl:185
39322 msgid "B<--size=E<lt>NE<gt>>"
39323 msgstr "B<--size=E<lt>NE<gt>>"
39324
39325 #. type: =item
39326 #: ../tools/virt-make-fs.pl:187
39327 msgid "B<--size=+E<lt>NE<gt>>"
39328 msgstr "B<--size=+E<lt>NE<gt>>"
39329
39330 #. type: =item
39331 #: ../tools/virt-make-fs.pl:189
39332 msgid "B<-s E<lt>NE<gt>>"
39333 msgstr "B<-s E<lt>NE<gt>>"
39334
39335 #. type: =item
39336 #: ../tools/virt-make-fs.pl:191
39337 msgid "B<-s +E<lt>NE<gt>>"
39338 msgstr "B<-s +E<lt>NE<gt>>"
39339
39340 #. type: textblock
39341 #: ../tools/virt-make-fs.pl:193
39342 msgid ""
39343 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39344 msgstr ""
39345
39346 #. type: textblock
39347 #: ../tools/virt-make-fs.pl:196
39348 msgid ""
39349 "If this option is I<not> given, then the output image will be just large "
39350 "enough to contain all the files, with not much wasted space."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../tools/virt-make-fs.pl:199
39355 msgid ""
39356 "To choose a fixed size output disk, specify an absolute number followed by b/"
39357 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39358 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39359 "files, else you will get an error."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../tools/virt-make-fs.pl:204
39364 msgid ""
39365 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39366 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39367 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39368 "the input files, and (approximately) an extra 200 MB free space."
39369 msgstr ""
39370
39371 #. type: textblock
39372 #: ../tools/virt-make-fs.pl:210
39373 msgid ""
39374 "Note that virt-make-fs estimates free space, and therefore will not produce "
39375 "filesystems containing precisely the free space requested.  (It is much more "
39376 "expensive and time-consuming to produce a filesystem which has precisely the "
39377 "desired free space)."
39378 msgstr ""
39379
39380 #. type: =item
39381 #: ../tools/virt-make-fs.pl:219
39382 msgid "B<--format=E<lt>fmtE<gt>>"
39383 msgstr ""
39384
39385 #. type: =item
39386 #: ../tools/virt-make-fs.pl:221
39387 msgid "B<-F E<lt>fmtE<gt>>"
39388 msgstr ""
39389
39390 #. type: textblock
39391 #: ../tools/virt-make-fs.pl:223
39392 msgid "Choose the output disk image format."
39393 msgstr ""
39394
39395 #. type: textblock
39396 #: ../tools/virt-make-fs.pl:225
39397 msgid "The default is C<raw> (raw sparse disk image)."
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../tools/virt-make-fs.pl:227
39402 msgid ""
39403 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39404 "that would really make sense here is C<qcow2>."
39405 msgstr ""
39406
39407 #. type: =item
39408 #: ../tools/virt-make-fs.pl:234
39409 msgid "B<--type=E<lt>fsE<gt>>"
39410 msgstr ""
39411
39412 #. type: =item
39413 #: ../tools/virt-make-fs.pl:236
39414 msgid "B<-t E<lt>fsE<gt>>"
39415 msgstr ""
39416
39417 #. type: textblock
39418 #: ../tools/virt-make-fs.pl:238
39419 msgid "Choose the output filesystem type."
39420 msgstr ""
39421
39422 #. type: textblock
39423 #: ../tools/virt-make-fs.pl:240
39424 msgid "The default is C<ext2>."
39425 msgstr "Типовим значенням є C<ext2>."
39426
39427 #. type: textblock
39428 #: ../tools/virt-make-fs.pl:242
39429 msgid ""
39430 "Any filesystem which is supported read-write by libguestfs can be used here."
39431 msgstr ""
39432
39433 #. type: =item
39434 #: ../tools/virt-make-fs.pl:249
39435 msgid "B<--partition>"
39436 msgstr "B<--partition>"
39437
39438 #. type: =item
39439 #: ../tools/virt-make-fs.pl:251
39440 msgid "B<--partition=E<lt>parttypeE<gt>>"
39441 msgstr ""
39442
39443 #. type: textblock
39444 #: ../tools/virt-make-fs.pl:253
39445 msgid ""
39446 "If specified, this flag adds an MBR partition table to the output disk image."
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../tools/virt-make-fs.pl:256
39451 msgid ""
39452 "You can change the partition table type, eg. I<--partition=gpt> for large "
39453 "disks."
39454 msgstr ""
39455
39456 #. type: textblock
39457 #: ../tools/virt-make-fs.pl:259
39458 msgid ""
39459 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39460 "might consider the next parameter to be the partition type.  For example:"
39461 msgstr ""
39462
39463 #. type: verbatim
39464 #: ../tools/virt-make-fs.pl:263
39465 #, fuzzy, no-wrap
39466 #| msgid ""
39467 #| " virt-make-fs --partition -- input.tar ...\n"
39468 #| "\n"
39469 msgid ""
39470 " virt-make-fs --partition input.tar output.img\n"
39471 "\n"
39472 msgstr ""
39473 " virt-make-fs --partition -- input.tar ...\n"
39474 "\n"
39475
39476 #. type: textblock
39477 #: ../tools/virt-make-fs.pl:265
39478 msgid ""
39479 "would cause virt-make-fs to think you wanted to use a partition type of "
39480 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39481 "dash) between options and the input and output arguments:"
39482 msgstr ""
39483
39484 #. type: verbatim
39485 #: ../tools/virt-make-fs.pl:269
39486 #, fuzzy, no-wrap
39487 #| msgid ""
39488 #| " virt-make-fs --partition -- input.tar ...\n"
39489 #| "\n"
39490 msgid ""
39491 " virt-make-fs --partition -- input.tar output.img\n"
39492 "\n"
39493 msgstr ""
39494 " virt-make-fs --partition -- input.tar ...\n"
39495 "\n"
39496
39497 #. type: textblock
39498 #: ../tools/virt-make-fs.pl:271
39499 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
39500 msgstr ""
39501
39502 #. type: textblock
39503 #: ../tools/virt-make-fs.pl:559
39504 msgid ""
39505 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39506 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39507 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39508 msgstr ""
39509 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39510 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39511 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39512
39513 #. type: textblock
39514 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:763
39515 msgid ""
39516 "When reporting bugs, please enable debugging and capture the I<complete> "
39517 "output:"
39518 msgstr ""
39519
39520 #. type: verbatim
39521 #: ../tools/virt-make-fs.pl:576
39522 #, no-wrap
39523 msgid ""
39524 " export LIBGUESTFS_DEBUG=1\n"
39525 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39526 "\n"
39527 msgstr ""
39528 " export LIBGUESTFS_DEBUG=1\n"
39529 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39530 "\n"
39531
39532 #. type: textblock
39533 #: ../tools/virt-make-fs.pl:579
39534 msgid ""
39535 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39536 "redhat.com/>"
39537 msgstr ""
39538
39539 #. type: textblock
39540 #: ../tools/virt-tar.pl:33
39541 msgid "virt-tar - Extract or upload files to a virtual machine"
39542 msgstr ""
39543
39544 #. type: verbatim
39545 #: ../tools/virt-tar.pl:37
39546 #, no-wrap
39547 msgid ""
39548 " virt-tar [--options] -x domname directory tarball\n"
39549 "\n"
39550 msgstr ""
39551
39552 #. type: verbatim
39553 #: ../tools/virt-tar.pl:39
39554 #, no-wrap
39555 msgid ""
39556 " virt-tar [--options] -u domname tarball directory\n"
39557 "\n"
39558 msgstr ""
39559
39560 #. type: verbatim
39561 #: ../tools/virt-tar.pl:41
39562 #, no-wrap
39563 msgid ""
39564 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39565 "\n"
39566 msgstr ""
39567
39568 #. type: verbatim
39569 #: ../tools/virt-tar.pl:43
39570 #, no-wrap
39571 msgid ""
39572 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39573 "\n"
39574 msgstr ""
39575
39576 #. type: =head2
39577 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39578 msgid "NOTE"
39579 msgstr "ПРИМІТКА"
39580
39581 #. type: textblock
39582 #: ../tools/virt-tar.pl:47
39583 msgid ""
39584 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39585 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../tools/virt-tar.pl:52
39590 msgid "Download C</home> from the VM into a local tarball:"
39591 msgstr ""
39592
39593 #. type: verbatim
39594 #: ../tools/virt-tar.pl:54
39595 #, no-wrap
39596 msgid ""
39597 " virt-tar -x domname /home home.tar\n"
39598 "\n"
39599 msgstr ""
39600
39601 #. type: verbatim
39602 #: ../tools/virt-tar.pl:56
39603 #, no-wrap
39604 msgid ""
39605 " virt-tar -zx domname /home home.tar.gz\n"
39606 "\n"
39607 msgstr ""
39608
39609 #. type: textblock
39610 #: ../tools/virt-tar.pl:58
39611 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39612 msgstr ""
39613
39614 #. type: verbatim
39615 #: ../tools/virt-tar.pl:60
39616 #, no-wrap
39617 msgid ""
39618 " virt-tar -u domname uploadstuff.tar /tmp\n"
39619 "\n"
39620 msgstr ""
39621
39622 #. type: verbatim
39623 #: ../tools/virt-tar.pl:62
39624 #, no-wrap
39625 msgid ""
39626 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39627 "\n"
39628 msgstr ""
39629
39630 #. type: textblock
39631 #: ../tools/virt-tar.pl:66
39632 msgid ""
39633 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39634 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39635 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39636 msgstr ""
39637
39638 #. type: textblock
39639 #: ../tools/virt-tar.pl:71
39640 msgid ""
39641 "You can use I<-x> (extract) on live virtual machines, but you might get "
39642 "inconsistent results or errors if there is filesystem activity inside the "
39643 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39644 "work, but the only way to guarantee consistent results is if the virtual "
39645 "machine is shut down."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../tools/virt-tar.pl:79
39650 msgid ""
39651 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39652 "parts of a guest filesystem.  There are many possibilities: making backups, "
39653 "uploading data files, snooping on guest activity, fixing or customizing "
39654 "guests, etc."
39655 msgstr ""
39656
39657 #. type: textblock
39658 #: ../tools/virt-tar.pl:84
39659 msgid ""
39660 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39661 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39662 "should look at the L<guestfish(1)> tool."
39663 msgstr ""
39664
39665 #. type: textblock
39666 #: ../tools/virt-tar.pl:88
39667 msgid ""
39668 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39669 "its contents (recursively) from the virtual machine into a local tarball.  "
39670 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39671 "virtual machine.  You cannot use these two options together."
39672 msgstr ""
39673
39674 #. type: textblock
39675 #: ../tools/virt-tar.pl:94
39676 msgid ""
39677 "In addition, you may need to use the I<-z> (gZip) option to enable "
39678 "compression.  When uploading, you have to specify I<-z> if the upload file "
39679 "is compressed because virt-tar won't detect this on its own."
39680 msgstr ""
39681
39682 #. type: textblock
39683 #: ../tools/virt-tar.pl:98
39684 msgid ""
39685 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39686 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39687 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39688 "the L<libguestfs(3)> API)."
39689 msgstr ""
39690
39691 #. type: =item
39692 #: ../tools/virt-tar.pl:160
39693 #, fuzzy
39694 #| msgid "B<--format>"
39695 msgid "B<--extract>"
39696 msgstr "B<--format>"
39697
39698 #. type: =item
39699 #: ../tools/virt-tar.pl:162
39700 #, fuzzy
39701 #| msgid "download"
39702 msgid "B<--download>"
39703 msgstr "download"
39704
39705 #. type: =item
39706 #: ../tools/virt-tar.pl:164
39707 msgid "B<-u>"
39708 msgstr ""
39709
39710 #. type: =item
39711 #: ../tools/virt-tar.pl:166
39712 #, fuzzy
39713 #| msgid "B<-u> | B<--upload>"
39714 msgid "B<--upload>"
39715 msgstr "B<-u> | B<--upload>"
39716
39717 #. type: textblock
39718 #: ../tools/virt-tar.pl:168
39719 msgid ""
39720 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39721 "local tarball."
39722 msgstr ""
39723
39724 #. type: textblock
39725 #: ../tools/virt-tar.pl:171
39726 msgid ""
39727 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39728 "Please read the L</WARNING> section above before using this option."
39729 msgstr ""
39730
39731 #. type: textblock
39732 #: ../tools/virt-tar.pl:175
39733 msgid "You must specify exactly one of these options."
39734 msgstr ""
39735
39736 #. type: =item
39737 #: ../tools/virt-tar.pl:181
39738 msgid "B<-z>"
39739 msgstr ""
39740
39741 #. type: =item
39742 #: ../tools/virt-tar.pl:183
39743 #, fuzzy
39744 #| msgid "B<-z> | B<--gzip>"
39745 msgid "B<--gzip>"
39746 msgstr "B<-z> | B<--gzip>"
39747
39748 #. type: textblock
39749 #: ../tools/virt-tar.pl:185
39750 msgid "Specify that the input or output tarball is gzip-compressed."
39751 msgstr ""
39752
39753 #. type: textblock
39754 #: ../tools/virt-tar.pl:298
39755 msgid ""
39756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39757 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39758 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39759 "org/>."
39760 msgstr ""
39761 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39762 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39763 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39764 "org/>."
39765
39766 #. type: textblock
39767 #: ../tools/virt-win-reg.pl:37
39768 msgid ""
39769 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39770 msgstr ""
39771
39772 #. type: verbatim
39773 #: ../tools/virt-win-reg.pl:41
39774 #, no-wrap
39775 msgid ""
39776 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39777 "\n"
39778 msgstr ""
39779
39780 #. type: verbatim
39781 #: ../tools/virt-win-reg.pl:43
39782 #, no-wrap
39783 msgid ""
39784 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39785 "\n"
39786 msgstr ""
39787
39788 #. type: verbatim
39789 #: ../tools/virt-win-reg.pl:45
39790 #, no-wrap
39791 msgid ""
39792 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39793 "\n"
39794 msgstr ""
39795
39796 #. type: verbatim
39797 #: ../tools/virt-win-reg.pl:47
39798 #, no-wrap
39799 msgid ""
39800 " virt-win-reg --merge domname [input.reg ...]\n"
39801 "\n"
39802 msgstr ""
39803
39804 #. type: verbatim
39805 #: ../tools/virt-win-reg.pl:49
39806 #, no-wrap
39807 msgid ""
39808 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39809 "\n"
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../tools/virt-win-reg.pl:53
39814 msgid ""
39815 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39816 "virtual machines.  If you do this, you I<will> get irreversible disk "
39817 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39818 "but doesn't catch all cases."
39819 msgstr ""
39820
39821 #. type: textblock
39822 #: ../tools/virt-win-reg.pl:58
39823 msgid ""
39824 "Modifying the Windows Registry is an inherently risky operation.  The format "
39825 "is deliberately obscure and undocumented, and Registry changes can leave the "
39826 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39827 "you have a reliable backup first."
39828 msgstr ""
39829
39830 #. type: textblock
39831 #: ../tools/virt-win-reg.pl:65
39832 msgid ""
39833 "This program can export and merge Windows Registry entries from a Windows "
39834 "guest."
39835 msgstr ""
39836
39837 #. type: textblock
39838 #: ../tools/virt-win-reg.pl:68
39839 msgid ""
39840 "The first parameter is the libvirt guest name or the raw disk image of a "
39841 "Windows guest."
39842 msgstr ""
39843
39844 #. type: textblock
39845 #: ../tools/virt-win-reg.pl:71
39846 msgid ""
39847 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39848 "exported (recursively).  For example:"
39849 msgstr ""
39850
39851 #. type: verbatim
39852 #: ../tools/virt-win-reg.pl:74
39853 #, no-wrap
39854 msgid ""
39855 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39856 "\n"
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../tools/virt-win-reg.pl:76
39861 msgid ""
39862 "You can also display single values from within registry keys, for example:"
39863 msgstr ""
39864
39865 #. type: verbatim
39866 #: ../tools/virt-win-reg.pl:79
39867 #, no-wrap
39868 msgid ""
39869 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39870 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39871 " Windows 7 Enterprise\n"
39872 "\n"
39873 msgstr ""
39874
39875 #. type: textblock
39876 #: ../tools/virt-win-reg.pl:83
39877 msgid ""
39878 "With I<--merge>, you can merge a textual regedit file into the Windows "
39879 "Registry:"
39880 msgstr ""
39881
39882 #. type: verbatim
39883 #: ../tools/virt-win-reg.pl:86
39884 #, no-wrap
39885 msgid ""
39886 " $ virt-win-reg --merge Windows7 changes.reg\n"
39887 "\n"
39888 msgstr ""
39889
39890 #. type: textblock
39891 #: ../tools/virt-win-reg.pl:90
39892 msgid ""
39893 "This program is only meant for simple access to the registry.  If you want "
39894 "to do complicated things with the registry, we suggest you download the "
39895 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39896 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39897 "L<hivexregedit(1)>."
39898 msgstr ""
39899
39900 #. type: =item
39901 #: ../tools/virt-win-reg.pl:159
39902 msgid "B<--merge>"
39903 msgstr "B<--merge>"
39904
39905 #. type: textblock
39906 #: ../tools/virt-win-reg.pl:161
39907 msgid ""
39908 "In merge mode, this merges a textual regedit file into the Windows Registry "
39909 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39910 "displays or exports Registry entries instead."
39911 msgstr ""
39912
39913 #. type: textblock
39914 #: ../tools/virt-win-reg.pl:165
39915 msgid ""
39916 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39917 "result in disk corruption.  However exporting (without this flag)  is always "
39918 "safe."
39919 msgstr ""
39920
39921 #. type: =item
39922 #: ../tools/virt-win-reg.pl:173
39923 msgid "B<--encoding> UTF-16LE|ASCII"
39924 msgstr ""
39925
39926 #. type: textblock
39927 #: ../tools/virt-win-reg.pl:175
39928 msgid ""
39929 "When merging (only), you may need to specify the encoding for strings to be "
39930 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39931 "(3)/ENCODING STRINGS>."
39932 msgstr ""
39933
39934 #. type: textblock
39935 #: ../tools/virt-win-reg.pl:179
39936 msgid ""
39937 "The default is to use UTF-16LE, which should work with recent versions of "
39938 "Windows."
39939 msgstr ""
39940
39941 #. type: =item
39942 #: ../tools/virt-win-reg.pl:186
39943 msgid "B<--unsafe-printable-strings>"
39944 msgstr ""
39945
39946 #. type: textblock
39947 #: ../tools/virt-win-reg.pl:188
39948 msgid ""
39949 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39950 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39951 "present."
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../tools/virt-win-reg.pl:192
39956 msgid ""
39957 "This is unsafe and does not preserve the fidelity of strings in the original "
39958 "Registry for various reasons:"
39959 msgstr ""
39960
39961 #. type: textblock
39962 #: ../tools/virt-win-reg.pl:199
39963 msgid ""
39964 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39965 "other encodings will be corrupted by this transformation."
39966 msgstr ""
39967
39968 #. type: textblock
39969 #: ../tools/virt-win-reg.pl:204
39970 msgid ""
39971 "Assumes that everything which has type 1 or 2 is really a string and that "
39972 "everything else is not a string, but the type field in real Registries is "
39973 "not reliable."
39974 msgstr ""
39975
39976 #. type: textblock
39977 #: ../tools/virt-win-reg.pl:210
39978 msgid ""
39979 "Loses information about whether a zero codepoint followed the string in the "
39980 "Registry or not."
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../tools/virt-win-reg.pl:215
39985 msgid ""
39986 "This all happens because the Registry itself contains no information about "
39987 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39988 msgstr ""
39989
39990 #. type: textblock
39991 #: ../tools/virt-win-reg.pl:219
39992 msgid ""
39993 "You should only use this option for quick hacking and debugging of the "
39994 "Registry contents, and I<never> use it if the output is going to be passed "
39995 "into another program or stored in another Registry."
39996 msgstr ""
39997
39998 #. type: =head1
39999 #: ../tools/virt-win-reg.pl:556
40000 msgid "SUPPORTED SYSTEMS"
40001 msgstr ""
40002
40003 #. type: textblock
40004 #: ../tools/virt-win-reg.pl:558
40005 msgid ""
40006 "The program currently supports Windows NT-derived guests starting with "
40007 "Windows XP through to at least Windows 7."
40008 msgstr ""
40009
40010 #. type: textblock
40011 #: ../tools/virt-win-reg.pl:561
40012 msgid "The following Registry keys are supported:"
40013 msgstr ""
40014
40015 #. type: =item
40016 #: ../tools/virt-win-reg.pl:565
40017 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40018 msgstr ""
40019
40020 #. type: =item
40021 #: ../tools/virt-win-reg.pl:567
40022 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40023 msgstr ""
40024
40025 #. type: =item
40026 #: ../tools/virt-win-reg.pl:569
40027 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40028 msgstr ""
40029
40030 #. type: =item
40031 #: ../tools/virt-win-reg.pl:571
40032 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40033 msgstr ""
40034
40035 #. type: =item
40036 #: ../tools/virt-win-reg.pl:573
40037 msgid "C<HKEY_USERS\\.DEFAULT>"
40038 msgstr ""
40039
40040 #. type: =item
40041 #: ../tools/virt-win-reg.pl:575
40042 msgid "C<HKEY_USERS\\I<SID>>"
40043 msgstr ""
40044
40045 #. type: textblock
40046 #: ../tools/virt-win-reg.pl:577
40047 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40048 msgstr ""
40049
40050 #. type: =item
40051 #: ../tools/virt-win-reg.pl:579
40052 msgid "C<HKEY_USERS\\I<username>>"
40053 msgstr ""
40054
40055 #. type: textblock
40056 #: ../tools/virt-win-reg.pl:581
40057 msgid ""
40058 "where I<username> is a local user name (this is a libguestfs extension)."
40059 msgstr ""
40060
40061 #. type: textblock
40062 #: ../tools/virt-win-reg.pl:585
40063 msgid ""
40064 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40065 "C<HKEY_USERS>."
40066 msgstr ""
40067
40068 #. type: textblock
40069 #: ../tools/virt-win-reg.pl:588
40070 msgid ""
40071 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40072 "supported (there is no \"current user\")."
40073 msgstr ""
40074
40075 #. type: =head1
40076 #: ../tools/virt-win-reg.pl:591
40077 msgid "ENCODING"
40078 msgstr "КОДУВАННЯ"
40079
40080 #. type: textblock
40081 #: ../tools/virt-win-reg.pl:593
40082 msgid ""
40083 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40084 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40085 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40086 "Windows-style line endings, you may need to reencode the whole file before "
40087 "or after processing."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../tools/virt-win-reg.pl:599
40092 msgid ""
40093 "To reencode a file from Windows format to Linux (before processing it with "
40094 "the I<--merge> option), you would do something like this:"
40095 msgstr ""
40096
40097 #. type: verbatim
40098 #: ../tools/virt-win-reg.pl:602
40099 #, no-wrap
40100 msgid ""
40101 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40102 "\n"
40103 msgstr ""
40104
40105 #. type: textblock
40106 #: ../tools/virt-win-reg.pl:604
40107 msgid ""
40108 "To go in the opposite direction, after exporting and before sending the file "
40109 "to a Windows user, do something like this:"
40110 msgstr ""
40111
40112 #. type: verbatim
40113 #: ../tools/virt-win-reg.pl:607
40114 #, no-wrap
40115 msgid ""
40116 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40117 "\n"
40118 msgstr ""
40119
40120 #. type: textblock
40121 #: ../tools/virt-win-reg.pl:609
40122 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40123 msgstr ""
40124
40125 #. type: textblock
40126 #: ../tools/virt-win-reg.pl:611
40127 msgid ""
40128 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40129 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40130 "style (CRLF) line endings, like this:"
40131 msgstr ""
40132
40133 #. type: verbatim
40134 #: ../tools/virt-win-reg.pl:615
40135 #, no-wrap
40136 msgid ""
40137 " $ file software.reg\n"
40138 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40139 " with CRLF line terminators\n"
40140 "\n"
40141 msgstr ""
40142
40143 #. type: textblock
40144 #: ../tools/virt-win-reg.pl:619
40145 msgid "This file would need conversion before you could I<--merge> it."
40146 msgstr ""
40147
40148 #. type: =head1
40149 #: ../tools/virt-win-reg.pl:621
40150 msgid "CurrentControlSet etc."
40151 msgstr ""
40152
40153 #. type: textblock
40154 #: ../tools/virt-win-reg.pl:623
40155 msgid ""
40156 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40157 "Registry at the level of the hive file, and therefore you cannot modify "
40158 "these."
40159 msgstr ""
40160
40161 #. type: textblock
40162 #: ../tools/virt-win-reg.pl:627
40163 msgid ""
40164 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40165 "circumstances it might refer to another control set.  The way to find out is "
40166 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40167 msgstr ""
40168
40169 #. type: verbatim
40170 #: ../tools/virt-win-reg.pl:631
40171 #, no-wrap
40172 msgid ""
40173 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40174 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40175 " \"Current\"=dword:00000001\n"
40176 " \"Default\"=dword:00000001\n"
40177 " \"Failed\"=dword:00000000\n"
40178 " \"LastKnownGood\"=dword:00000002\n"
40179 "\n"
40180 msgstr ""
40181
40182 #. type: textblock
40183 #: ../tools/virt-win-reg.pl:638
40184 msgid "\"Current\" is the one which Windows will choose when it boots."
40185 msgstr ""
40186
40187 #. type: textblock
40188 #: ../tools/virt-win-reg.pl:640
40189 msgid ""
40190 "Similarly, other C<Current...> keys in the path may need to be replaced."
40191 msgstr ""
40192
40193 #. type: =head1
40194 #: ../tools/virt-win-reg.pl:643
40195 msgid "WINDOWS TIPS"
40196 msgstr ""
40197
40198 #. type: textblock
40199 #: ../tools/virt-win-reg.pl:645
40200 msgid ""
40201 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40202 "be shut off, else you will get disk corruption."
40203 msgstr ""
40204
40205 #. type: =head2
40206 #: ../tools/virt-win-reg.pl:648
40207 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40208 msgstr ""
40209
40210 #. type: textblock
40211 #: ../tools/virt-win-reg.pl:650
40212 msgid ""
40213 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40214 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40215 "is uploaded into C<C:\\>:"
40216 msgstr ""
40217
40218 #. type: verbatim
40219 #: ../tools/virt-win-reg.pl:654
40220 #, no-wrap
40221 msgid ""
40222 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40223 "\n"
40224 msgstr ""
40225
40226 #. type: textblock
40227 #: ../tools/virt-win-reg.pl:656
40228 msgid "Prepare a regedit file containing the registry change:"
40229 msgstr ""
40230
40231 #. type: verbatim
40232 #: ../tools/virt-win-reg.pl:658
40233 #, no-wrap
40234 msgid ""
40235 " cat > test.reg <<'EOF'\n"
40236 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40237 " \"Test\"=\"c:\\\\test.bat\"\n"
40238 " EOF\n"
40239 "\n"
40240 msgstr ""
40241
40242 #. type: textblock
40243 #: ../tools/virt-win-reg.pl:663
40244 msgid ""
40245 "In this example we use the key C<RunOnce> which means that the script will "
40246 "run precisely once when the first user logs in.  If you want it to run every "
40247 "time a user logs in, replace C<RunOnce> with C<Run>."
40248 msgstr ""
40249
40250 #. type: textblock
40251 #: ../tools/virt-win-reg.pl:667
40252 msgid "Now update the registry:"
40253 msgstr ""
40254
40255 #. type: verbatim
40256 #: ../tools/virt-win-reg.pl:669
40257 #, no-wrap
40258 msgid ""
40259 " virt-win-reg --merge WindowsGuest test.reg\n"
40260 "\n"
40261 msgstr ""
40262
40263 #. type: =head2
40264 #: ../tools/virt-win-reg.pl:671
40265 msgid "INSTALLING A SERVICE"
40266 msgstr ""
40267
40268 #. type: textblock
40269 #: ../tools/virt-win-reg.pl:673
40270 msgid ""
40271 "This section assumes you are familiar with Windows services, and you either "
40272 "have a program which handles the Windows Service Control Protocol directly "
40273 "or you want to run any program using a service wrapper like SrvAny or the "
40274 "free RHSrvAny."
40275 msgstr ""
40276
40277 #. type: textblock
40278 #: ../tools/virt-win-reg.pl:678
40279 msgid ""
40280 "First upload the program and optionally the service wrapper.  In this case "
40281 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40282 msgstr ""
40283
40284 #. type: verbatim
40285 #: ../tools/virt-win-reg.pl:682
40286 #, no-wrap
40287 msgid ""
40288 " guestfish -i -d WindowsGuest <<EOF\n"
40289 "   upload rhsrvany.exe /rhsrvany.exe\n"
40290 "   upload test.exe /test.exe\n"
40291 " EOF\n"
40292 "\n"
40293 msgstr ""
40294
40295 #. type: textblock
40296 #: ../tools/virt-win-reg.pl:687
40297 msgid ""
40298 "Prepare a regedit file containing the registry changes.  In this example, "
40299 "the first registry change is needed for the service itself or the service "
40300 "wrapper (if used).  The second registry change is only needed because I am "
40301 "using the RHSrvAny service wrapper."
40302 msgstr ""
40303
40304 #. type: verbatim
40305 #: ../tools/virt-win-reg.pl:692
40306 #, no-wrap
40307 msgid ""
40308 " cat > service.reg <<'EOF'\n"
40309 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40310 " \"Type\"=dword:00000010\n"
40311 " \"Start\"=dword:00000002\n"
40312 " \"ErrorControl\"=dword:00000001\n"
40313 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40314 " \"DisplayName\"=\"RHSrvAny\"\n"
40315 " \"ObjectName\"=\"NetworkService\"\n"
40316 " \n"
40317 msgstr ""
40318
40319 #. type: verbatim
40320 #: ../tools/virt-win-reg.pl:701
40321 #, no-wrap
40322 msgid ""
40323 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40324 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40325 " \"PWD\"=\"c:\\\\Temp\"\n"
40326 " EOF\n"
40327 "\n"
40328 msgstr ""
40329
40330 #. type: textblock
40331 #: ../tools/virt-win-reg.pl:712
40332 msgid ""
40333 "For use of C<ControlSet001> see the section above in this manual page.  You "
40334 "may need to adjust this according to the control set that is in use by the "
40335 "guest."
40336 msgstr ""
40337
40338 #. type: textblock
40339 #: ../tools/virt-win-reg.pl:718
40340 msgid ""
40341 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40342 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40343 "privileged account."
40344 msgstr ""
40345
40346 #. type: textblock
40347 #: ../tools/virt-win-reg.pl:724
40348 msgid ""
40349 "For the meaning of the magic numbers, see this Microsoft KB article: "
40350 "L<http://support.microsoft.com/kb/103000>."
40351 msgstr ""
40352
40353 #. type: textblock
40354 #: ../tools/virt-win-reg.pl:729
40355 msgid "Update the registry:"
40356 msgstr ""
40357
40358 #. type: verbatim
40359 #: ../tools/virt-win-reg.pl:731
40360 #, no-wrap
40361 msgid ""
40362 " virt-win-reg --merge WindowsGuest service.reg\n"
40363 "\n"
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../tools/virt-win-reg.pl:735
40368 msgid ""
40369 "Be careful when passing parameters containing C<\\> (backslash) in the "
40370 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40371 "(but not both) to protect them from the shell."
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../tools/virt-win-reg.pl:739
40376 msgid "Paths and value names are case-insensitive."
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../tools/virt-win-reg.pl:748
40381 msgid ""
40382 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40383 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40384 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40385 msgstr ""
40386
40387 #. type: verbatim
40388 #: ../tools/virt-win-reg.pl:766
40389 #, no-wrap
40390 msgid ""
40391 " export LIBGUESTFS_DEBUG=1\n"
40392 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40393 "\n"
40394 msgstr ""
40395
40396 #. type: textblock
40397 #: ../tools/virt-win-reg.pl:769
40398 msgid ""
40399 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40400 "redhat.com/>"
40401 msgstr ""
40402
40403 #~ msgid "I<--help>"
40404 #~ msgstr "I<--help>"
40405
40406 #~ msgid "EXIT CODE"
40407 #~ msgstr "КОД ВИХОДУ"
40408
40409 #~ msgid "B<-a> | B<--all>"
40410 #~ msgstr "B<-a> | B<--all>"
40411
40412 #~ msgid "B<-x> | B<--extract> | B<--download>"
40413 #~ msgstr "B<-x> | B<--extract> | B<--download>"