1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
6 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
9 "Project-Id-Version: libguestfs\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-19 17:23+0200\n"
12 "PO-Revision-Date: 2011-10-19 15:46+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
65 msgstr "КОРОТКИЙ ОПИС"
68 #: ../align/virt-alignment-scan.pod:9
71 " virt-alignment-scan [--options] -d domname\n"
76 #: ../align/virt-alignment-scan.pod:11
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
105 #: ../align/virt-alignment-scan.pod:15
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>). Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
115 #: ../align/virt-alignment-scan.pod:21
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
122 #: ../align/virt-alignment-scan.pod:25
124 "Currently there is no virt tool for fixing alignment problems. You can only "
125 "reinstall the guest operating system. The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
131 #: ../align/virt-alignment-scan.pod:30
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
141 #: ../align/virt-alignment-scan.pod:34
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
150 #: ../align/virt-alignment-scan.pod:37
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1 1048576 1024K ok\n"
155 " /dev/sda2 2097152 2048K ok\n"
156 " /dev/sda3 526385152 2048K ok\n"
161 #: ../align/virt-alignment-scan.pod:42
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
168 #: ../align/virt-alignment-scan.pod:45
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
173 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
178 #: ../align/virt-alignment-scan.pod:49
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1 1048576 1024K ok\n"
183 " /dev/sda2 105906176 1024K ok\n"
184 " /dev/sdb1 65536 64K ok\n"
189 #: ../align/virt-alignment-scan.pod:54
191 "The output consists of 4 or more whitespace-separated columns. Only the "
192 "first 4 columns are signficant if you want to parse this from a program. "
197 #: ../align/virt-alignment-scan.pod:60
202 #: ../align/virt-alignment-scan.pod:62
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
209 #: ../align/virt-alignment-scan.pod:65
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
219 #: ../align/virt-alignment-scan.pod:69
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
229 #: ../align/virt-alignment-scan.pod:73
234 #: ../align/virt-alignment-scan.pod:75
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
241 #: ../align/virt-alignment-scan.pod:78
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
251 #: ../align/virt-alignment-scan.pod:84
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found. See L</EXIT STATUS> below."
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
331 "The format of the disk image is auto-detected. To override this and force a "
332 "particular format use the I<--format=..> option."
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
341 msgstr "B<-c> адреса"
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
359 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
360 "to the default libvirt hypervisor."
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
395 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image. Using this forces the disk format for I<-a> options which follow on "
427 "the command line. Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
442 #: ../align/virt-alignment-scan.pod:134
445 " virt-alignment-scan --format=raw -a disk.img\n"
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
459 #: ../align/virt-alignment-scan.pod:138
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format. This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414
490 #: ../sparsify/virt-sparsify.pod:153
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:416
496 #: ../sparsify/virt-sparsify.pod:155
501 #: ../align/virt-alignment-scan.pod:151
503 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
525 msgstr "B<--verbose>"
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
543 #: ../sparsify/virt-sparsify.pod:165
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
558 msgstr "B<--version>"
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
598 #: ../align/virt-alignment-scan.pod:174
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size. This happens because of a historical accident. Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track. The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
611 #: ../align/virt-alignment-scan.pod:183
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
618 #: ../align/virt-alignment-scan.pod:188
623 #: ../align/virt-alignment-scan.pod:190
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
630 #: ../align/virt-alignment-scan.pod:193
635 #: ../align/virt-alignment-scan.pod:195
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
643 #: ../align/virt-alignment-scan.pod:199
648 #: ../align/virt-alignment-scan.pod:201
650 "for high-end network-attached storage. This is the optimal block size for "
651 "some NetApp hardware."
655 #: ../align/virt-alignment-scan.pod:204
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
665 #: ../align/virt-alignment-scan.pod:210
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O. For example:"
672 #: ../align/virt-alignment-scan.pod:213
676 " +--------------------------+------\n"
678 " | filesystem block |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 " | host block | host block |\n"
682 " ---+-------------------------+-------------------------+---\n"
687 #: ../align/virt-alignment-scan.pod:222
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
701 #: ../align/virt-alignment-scan.pod:229
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
713 #: ../align/virt-alignment-scan.pod:234
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
733 #: ../align/virt-alignment-scan.pod:245
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
748 #: ../align/virt-alignment-scan.pod:254
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
755 #: ../align/virt-alignment-scan.pod:258
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
763 #: ../align/virt-alignment-scan.pod:261
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
775 #: ../align/virt-alignment-scan.pod:266
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
782 #: ../align/virt-alignment-scan.pod:269
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any) will start at a "
786 "multiple of 2048 sectors."
790 #: ../align/virt-alignment-scan.pod:273
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
802 #: ../align/virt-alignment-scan.pod:278
804 "Currently there is no virt tool for fixing alignment problems in guests. "
805 "This is a difficult problem to fix because simply moving partitions around "
806 "breaks the bootloader, necessitating either manual reinstallation of the "
807 "bootloader using a rescue disk, or complex and error-prone hacks."
811 #: ../align/virt-alignment-scan.pod:284
813 "L<virt-resize(1)> does not change the alignment of the first partition, but "
814 "it does align the second and subsequent partitions to a multiple of 64 or "
815 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
816 "E<ge> 1.13.19). For operating systems that have a separate boot partition, "
817 "virt-resize could be used to align the main OS partition, so that the "
818 "majority of OS accesses except at boot will be aligned."
822 #: ../align/virt-alignment-scan.pod:292
824 "The easiest way to correct partition alignment problems is to reinstall your "
825 "guest operating systems. If you install operating systems from templates, "
826 "ensure these have correct partition alignment too."
830 #: ../align/virt-alignment-scan.pod:297
832 "For older versions of Windows, the following NetApp document contains useful "
833 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
837 #: ../align/virt-alignment-scan.pod:300
839 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
840 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
841 ">. Do not use the Kickstart C<part> command. The NetApp document above "
842 "contains an example."
846 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191
847 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
848 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
849 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
850 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601
851 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
852 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
853 #: ../tools/virt-win-reg.pl:733
854 msgid "SHELL QUOTING"
858 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193
859 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
860 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
861 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
862 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603
863 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
864 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
865 #: ../tools/virt-win-reg.pl:741
867 "Libvirt guest names can contain arbitrary characters, some of which have "
868 "meaning to the shell such as C<#> and space. You may need to quote or "
869 "escape these characters on the command line. See the shell manual page L<sh"
874 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198
875 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
876 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
877 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
878 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
879 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
880 #: ../test-tool/libguestfs-test-tool.pod:90
885 #: ../align/virt-alignment-scan.pod:314
886 msgid "This program returns:"
890 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324
891 #: ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337
892 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
893 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
894 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
895 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
896 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
897 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
898 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
899 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
900 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
901 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
902 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
903 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
904 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
905 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
906 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
907 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
908 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
909 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
910 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
911 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
912 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
913 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
914 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
915 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
916 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
917 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
918 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
919 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
920 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
921 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
922 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
923 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
924 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
925 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
926 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
927 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
928 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
929 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
930 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
931 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
932 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
933 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
934 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
935 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
936 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
937 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
938 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
939 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
940 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
941 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
942 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
943 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
944 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
945 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
946 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
947 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
948 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
949 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
950 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
951 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
952 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
953 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
954 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
955 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
956 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
957 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
958 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
959 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
960 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
961 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
962 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
963 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
964 #: ../tools/virt-win-reg.pl:722
969 #: ../align/virt-alignment-scan.pod:320
974 #: ../align/virt-alignment-scan.pod:322
976 "successful exit, all partitions are aligned E<ge> 64K for best performance"
980 #: ../align/virt-alignment-scan.pod:326
985 #: ../align/virt-alignment-scan.pod:328
986 msgid "an error scanning the disk image or guest"
990 #: ../align/virt-alignment-scan.pod:332
995 #: ../align/virt-alignment-scan.pod:334
997 "successful exit, some partitions have alignment E<lt> 64K which can result "
998 "in poor performance on high end network storage"
1002 #: ../align/virt-alignment-scan.pod:339
1007 #: ../align/virt-alignment-scan.pod:341
1009 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1010 "poor performance on most hypervisors"
1014 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203
1015 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1016 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1017 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1018 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1019 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1020 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1021 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1022 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1023 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1024 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1025 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
1026 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1027 #: ../test-tool/libguestfs-test-tool.pod:100
1028 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1029 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1030 #: ../tools/virt-win-reg.pl:746
1032 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1035 #: ../align/virt-alignment-scan.pod:348
1037 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1038 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1042 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212
1043 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1044 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1045 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1046 #: ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264
1047 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1048 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1049 #: ../tools/virt-win-reg.pl:772
1054 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214
1055 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1056 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1057 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1058 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637
1059 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1060 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1061 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1062 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1063 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1066 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216
1067 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1068 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1069 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1070 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1071 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1072 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1073 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1074 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1075 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1076 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1077 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
1078 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1079 #: ../test-tool/libguestfs-test-tool.pod:110
1080 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1081 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1082 #: ../tools/virt-win-reg.pl:776
1084 msgstr "АВТОРСЬКІ ПРАВА"
1087 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:507
1088 #: ../sparsify/virt-sparsify.pod:270
1089 msgid "Copyright (C) 2011 Red Hat Inc."
1093 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220
1094 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1095 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1096 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1097 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1098 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1099 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1100 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
1101 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1102 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1103 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1104 #: ../tools/virt-win-reg.pl:780
1106 "This program is free software; you can redistribute it and/or modify it "
1107 "under the terms of the GNU General Public License as published by the Free "
1108 "Software Foundation; either version 2 of the License, or (at your option) "
1109 "any later version."
1113 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225
1114 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1115 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1116 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1117 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1118 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1119 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1120 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
1121 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1122 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1123 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1124 #: ../tools/virt-win-reg.pl:785
1126 "This program is distributed in the hope that it will be useful, but WITHOUT "
1127 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1128 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1131 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1132 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1133 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1134 "дізнатися з GNU General Public License."
1137 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230
1138 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1139 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1140 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1141 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1142 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1143 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1144 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
1145 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1146 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1147 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1148 #: ../tools/virt-win-reg.pl:790
1150 "You should have received a copy of the GNU General Public License along with "
1151 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1152 "Ave, Cambridge, MA 02139, USA."
1154 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1155 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1156 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1159 #: ../cat/virt-cat.pod:5
1160 msgid "virt-cat - Display files in a virtual machine"
1161 msgstr "virt-cat — показ файлів у віртуальній машині"
1164 #: ../cat/virt-cat.pod:9
1167 " virt-cat [--options] -d domname file [file ...]\n"
1170 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1174 #: ../cat/virt-cat.pod:11
1177 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1180 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1184 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1185 #: ../inspector/virt-inspector.pod:13
1187 msgstr "Застарілий стиль:"
1190 #: ../cat/virt-cat.pod:15
1193 " virt-cat domname file\n"
1196 " virt-cat назва_домену файл\n"
1200 #: ../cat/virt-cat.pod:17
1203 " virt-cat disk.img file\n"
1206 " virt-cat диск.img файл\n"
1210 #: ../cat/virt-cat.pod:21
1212 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1213 "C<file> exists in the named virtual machine (or disk image)."
1215 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1216 "зберігається у вказаній віртуальній машині (або образі диска)."
1219 #: ../cat/virt-cat.pod:24
1221 "Multiple filenames can be given, in which case they are concatenated "
1222 "together. Each filename must be a full path, starting at the root directory "
1223 "(starting with '/')."
1225 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1226 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1227 "кореневого каталогу (тобто назва має починатися з «/»)."
1230 #: ../cat/virt-cat.pod:28
1232 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1233 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1234 "(see L</USING GUESTFISH> below)."
1236 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1237 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1238 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1242 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1243 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1244 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1245 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1246 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1247 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1248 #: ../tools/virt-tar.pl:50
1253 #: ../cat/virt-cat.pod:34
1255 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1257 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1260 #: ../cat/virt-cat.pod:37
1263 " virt-cat -d mydomain /etc/fstab\n"
1266 " virt-cat -d mydomain /etc/fstab\n"
1270 #: ../cat/virt-cat.pod:39
1271 msgid "List syslog messages from a VM disk image file:"
1273 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1276 #: ../cat/virt-cat.pod:41
1279 " virt-cat -a disk.img /var/log/messages | tail\n"
1282 " virt-cat -a disk.img /var/log/messages | tail\n"
1286 #: ../cat/virt-cat.pod:43
1287 msgid "Find out what DHCP IP address a VM acquired:"
1288 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1291 #: ../cat/virt-cat.pod:45
1294 " virt-cat -d mydomain /var/log/messages | \\\n"
1295 " grep 'dhclient: bound to' | tail\n"
1298 " virt-cat -d mydomain /var/log/messages | \\\n"
1299 " grep 'dhclient: bound to' | tail\n"
1303 #: ../cat/virt-cat.pod:48
1304 msgid "Find out what packages were recently installed:"
1305 msgstr "Пошук нещодавно встановлених пакунків:"
1308 #: ../cat/virt-cat.pod:50
1311 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1314 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1318 #: ../cat/virt-cat.pod:52
1319 msgid "Find out who is logged on inside a virtual machine:"
1320 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1323 #: ../cat/virt-cat.pod:54
1326 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1330 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1335 #: ../cat/virt-cat.pod:57
1336 msgid "or who was logged on:"
1337 msgstr "або тих, які у ній працювали:"
1340 #: ../cat/virt-cat.pod:59
1343 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1344 " last -f /tmp/wtmp\n"
1347 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1348 " last -f /tmp/wtmp\n"
1352 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1353 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1354 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1356 "Add I<file> which should be a disk image from a virtual machine. If the "
1357 "virtual machine has multiple block devices, you must supply all of them with "
1358 "separate I<-a> options."
1362 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1363 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1364 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1365 msgid "B<--echo-keys>"
1366 msgstr "B<--echo-keys>"
1369 #: ../cat/virt-cat.pod:100
1371 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1372 "so you cannot see what you are typing. If you are not worried about Tempest "
1373 "attacks and there is no one else in the room you can specify this flag to "
1374 "see what you are typing."
1378 #: ../cat/virt-cat.pod:116
1381 " virt-cat --format=raw -a disk.img file\n"
1384 " virt-cat --format=raw -a disk.img file\n"
1388 #: ../cat/virt-cat.pod:120
1391 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1394 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1398 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1399 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1400 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1401 msgid "B<--keys-from-stdin>"
1402 msgstr "B<--keys-from-stdin>"
1405 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1406 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1407 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1409 "Read key or passphrase parameters from stdin. The default is to try to read "
1410 "passphrases from the user by opening C</dev/tty>."
1414 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1415 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1416 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1420 #: ../cat/virt-cat.pod:154
1421 msgid "Previous versions of virt-cat allowed you to write either:"
1425 #: ../cat/virt-cat.pod:156
1428 " virt-cat disk.img [disk.img ...] file\n"
1433 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1434 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1439 #: ../cat/virt-cat.pod:160
1442 " virt-cat guestname file\n"
1447 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1448 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1450 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1451 "the confusing case where a disk image might have the same name as a guest."
1455 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1456 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1457 msgid "For compatibility the old style is still supported."
1461 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1462 msgid "USING GUESTFISH"
1463 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1466 #: ../cat/virt-cat.pod:170
1468 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1469 "C<virt-cat> doesn't work."
1473 #: ../cat/virt-cat.pod:173
1474 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1478 #: ../cat/virt-cat.pod:175
1481 " guestfish --ro -i -d domname download file -\n"
1486 #: ../cat/virt-cat.pod:177
1488 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1489 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1493 #: ../cat/virt-cat.pod:181
1495 "The command above uses libguestfs's guest inspection feature and so does not "
1496 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1497 "disk images that don't contain guests. To display a file from a disk image "
1502 #: ../cat/virt-cat.pod:186
1505 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1510 #: ../cat/virt-cat.pod:188
1512 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1513 "the disk image, and C<file> is the full path to the file."
1517 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1518 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1519 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1520 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1522 "This program returns 0 if successful, or non-zero if there was an error."
1526 #: ../cat/virt-cat.pod:205
1528 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1529 "tar-out(1)>, L<http://libguestfs.org/>."
1531 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1532 "tar-out(1)>, L<http://libguestfs.org/>."
1535 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1536 #: ../resize/virt-resize.pod:641
1537 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1538 msgstr "©Red Hat Inc., 2010–2011"
1541 #: ../cat/virt-filesystems.pod:5
1543 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1544 "virtual machine or disk image"
1548 #: ../cat/virt-filesystems.pod:9
1551 " virt-filesystems [--options] -d domname\n"
1554 " virt-filesystems [--параметри] -d назва_домену\n"
1558 #: ../cat/virt-filesystems.pod:11
1561 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1566 #: ../cat/virt-filesystems.pod:15
1568 "This tool allows you to discover filesystems, partitions, logical volumes, "
1569 "and their sizes in a disk image or virtual machine. It is a replacement for "
1570 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1574 #: ../cat/virt-filesystems.pod:20
1576 "One use for this tool is from shell scripts to iterate over all filesystems "
1577 "from a disk image:"
1581 #: ../cat/virt-filesystems.pod:23
1584 " for fs in $(virt-filesystems -a disk.img); do\n"
1589 " for fs in $(virt-filesystems -a disk.img); do\n"
1595 #: ../cat/virt-filesystems.pod:27
1597 "Another use is to list partitions before using another tool to modify those "
1598 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1599 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1603 #: ../cat/virt-filesystems.pod:32
1605 "Various command line options control what this program displays. You need "
1606 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1607 "guest respectively. If you just specify that then the program shows "
1608 "filesystems found, one per line, like this:"
1612 #: ../cat/virt-filesystems.pod:37
1615 " $ virt-filesystems -a disk.img\n"
1617 " /dev/vg_guest/lv_root\n"
1620 " $ virt-filesystems -a disk.img\n"
1622 " /dev/vg_guest/lv_root\n"
1626 #: ../cat/virt-filesystems.pod:41
1628 "If you add I<-l> or I<--long> then the output includes extra information:"
1632 #: ../cat/virt-filesystems.pod:44
1635 " $ virt-filesystems -a disk.img -l\n"
1636 " Name Type VFS Label Size\n"
1637 " /dev/sda1 filesystem ext4 boot 524288000\n"
1638 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1643 #: ../cat/virt-filesystems.pod:49
1645 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1650 #: ../cat/virt-filesystems.pod:52
1653 " $ virt-filesystems -a disk.img --extra\n"
1655 " /dev/vg_guest/lv_root\n"
1656 " /dev/vg_guest/lv_swap\n"
1657 " /dev/vg_guest/lv_data\n"
1660 " $ virt-filesystems -a disk.img --extra\n"
1662 " /dev/vg_guest/lv_root\n"
1663 " /dev/vg_guest/lv_swap\n"
1664 " /dev/vg_guest/lv_data\n"
1668 #: ../cat/virt-filesystems.pod:58
1670 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1674 #: ../cat/virt-filesystems.pod:60
1677 " $ virt-filesystems -a disk.img --partitions\n"
1682 " $ virt-filesystems -a disk.img --partitions\n"
1688 #: ../cat/virt-filesystems.pod:64
1690 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1691 "volumes>, I<--block-devices> to list those items."
1695 #: ../cat/virt-filesystems.pod:67
1697 "You can use these options in combination as well (if you want a combination "
1698 "including filesystems, you have to add I<--filesystems>). Notice that some "
1699 "items fall into several categories (eg. C</dev/sda1> might be both a "
1700 "partition and a filesystem). These items are listed several times. To get "
1701 "a list which includes absolutely everything that virt-filesystems knows "
1702 "about, use the I<--all> option."
1706 #: ../cat/virt-filesystems.pod:74
1708 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1709 "uuid> option to display device and filesystem UUIDs in the long output."
1713 #: ../cat/virt-filesystems.pod:78
1715 "I<--all --long --uuid> is a useful combination to display all possible "
1716 "information about everything."
1720 #: ../cat/virt-filesystems.pod:81
1723 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1724 " Name Type VFS Label Size Parent UUID\n"
1725 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1726 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1727 " /dev/sda1 partition - - 100M /dev/sda -\n"
1728 " /dev/sda2 partition - - 20G /dev/sda -\n"
1729 " /dev/sda device - - 20G - -\n"
1734 #: ../cat/virt-filesystems.pod:89
1736 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1740 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1745 #: ../cat/virt-filesystems.pod:112
1747 "Display everything. This is currently the same as specifying these options: "
1748 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1749 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1750 "added to this list in future)."
1754 #: ../cat/virt-filesystems.pod:117
1755 msgid "See also I<--long>."
1756 msgstr "Див. також I<--long>."
1759 #: ../cat/virt-filesystems.pod:119
1760 msgid "B<--blkdevs>"
1761 msgstr "B<--blkdevs>"
1764 #: ../cat/virt-filesystems.pod:121
1765 msgid "B<--block-devices>"
1766 msgstr "B<--block-devices>"
1769 #: ../cat/virt-filesystems.pod:123
1770 msgid "Display block devices."
1771 msgstr "Показати список блокових пристроїв."
1774 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1779 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1781 "Write out the results in CSV format (comma-separated values). This format "
1782 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1783 "ABOUT CSV FORMAT> below."
1787 #: ../cat/virt-filesystems.pod:150
1789 "When prompting for keys and passphrases, virt-filesystems normally turns "
1790 "echoing off so you cannot see what you are typing. If you are not worried "
1791 "about Tempest attacks and there is no one else in the room you can specify "
1792 "this flag to see what you are typing."
1796 #: ../cat/virt-filesystems.pod:155
1801 #: ../cat/virt-filesystems.pod:157
1803 "This causes filesystems that are not ordinary, mountable filesystems to be "
1804 "displayed. This category includes swapspace, and filesystems that are empty "
1805 "or contain unknown data."
1809 #: ../cat/virt-filesystems.pod:161
1810 msgid "This option implies I<--filesystems>."
1814 #: ../cat/virt-filesystems.pod:163
1815 msgid "B<--filesystems>"
1816 msgstr "B<--filesystems>"
1819 #: ../cat/virt-filesystems.pod:165
1821 "Display mountable filesystems. If no display option was selected then this "
1822 "option is implied."
1826 #: ../cat/virt-filesystems.pod:168
1827 msgid "With I<--extra>, non-mountable filesystems are shown too."
1831 #: ../cat/virt-filesystems.pod:181
1834 " virt-filesystems --format=raw -a disk.img\n"
1837 " virt-filesystems --format=raw -a диск.img\n"
1841 #: ../cat/virt-filesystems.pod:185
1844 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1849 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1850 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1851 #: ../tools/virt-list-partitions.pl:109
1856 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1857 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1858 msgid "B<--human-readable>"
1859 msgstr "B<--human-readable>"
1862 #: ../cat/virt-filesystems.pod:198
1863 msgid "In I<--long> mode, display sizes in human-readable format."
1867 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1868 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1873 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1874 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1879 #: ../cat/virt-filesystems.pod:209
1880 msgid "Display extra columns of data (\"long format\")."
1884 #: ../cat/virt-filesystems.pod:211
1885 msgid "A title row is added unless you also specify I<--no-title>."
1889 #: ../cat/virt-filesystems.pod:213
1891 "The extra columns displayed depend on what output you select, and the "
1892 "ordering of columns may change in future versions. Use the title row, I<--"
1893 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1898 #: ../cat/virt-filesystems.pod:218
1900 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1901 "default is to show raw numbers of I<bytes>."
1905 #: ../cat/virt-filesystems.pod:221
1906 msgid "Use I<--uuid> to display UUIDs too."
1910 #: ../cat/virt-filesystems.pod:223
1915 #: ../cat/virt-filesystems.pod:225
1916 msgid "B<--logvols>"
1917 msgstr "B<--logvols>"
1920 #: ../cat/virt-filesystems.pod:227
1921 msgid "B<--logical-volumes>"
1922 msgstr "B<--logical-volumes>"
1925 #: ../cat/virt-filesystems.pod:229
1927 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1928 "of whether the LVs contain filesystems."
1932 #: ../cat/virt-filesystems.pod:232
1933 msgid "B<--no-title>"
1934 msgstr "B<--no-title>"
1937 #: ../cat/virt-filesystems.pod:234
1938 msgid "In I<--long> mode, don't add a title row."
1942 #: ../cat/virt-filesystems.pod:236
1944 "Note that the order of the columns is not fixed, and may change in future "
1945 "versions of virt-filesystems, so using this option may give you unexpected "
1950 #: ../cat/virt-filesystems.pod:240
1955 #: ../cat/virt-filesystems.pod:242
1956 msgid "B<--partitions>"
1957 msgstr "B<--partitions>"
1960 #: ../cat/virt-filesystems.pod:244
1962 "Display partitions. In this mode, these are displayed irrespective of "
1963 "whether the partitions contain filesystems."
1967 #: ../cat/virt-filesystems.pod:247
1972 #: ../cat/virt-filesystems.pod:249
1973 msgid "B<--physvols>"
1974 msgstr "B<--physvols>"
1977 #: ../cat/virt-filesystems.pod:251
1978 msgid "B<--physical-volumes>"
1979 msgstr "B<--physical-volumes>"
1982 #: ../cat/virt-filesystems.pod:253
1983 msgid "Display LVM physical volumes."
1987 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1992 #: ../cat/virt-filesystems.pod:257
1997 #: ../cat/virt-filesystems.pod:259
1998 msgid "In I<--long> mode, display UUIDs as well."
2002 #: ../cat/virt-filesystems.pod:273
2007 #: ../cat/virt-filesystems.pod:275
2008 msgid "B<--volgroups>"
2009 msgstr "B<--volgroups>"
2012 #: ../cat/virt-filesystems.pod:277
2013 msgid "B<--volume-groups>"
2014 msgstr "B<--volume-groups>"
2017 #: ../cat/virt-filesystems.pod:279
2018 msgid "Display LVM volume groups."
2022 #: ../cat/virt-filesystems.pod:287
2027 #: ../cat/virt-filesystems.pod:289
2029 "Note that columns in the output are subject to reordering and change in "
2030 "future versions of this tool."
2034 #: ../cat/virt-filesystems.pod:294
2039 #: ../cat/virt-filesystems.pod:296
2040 msgid "The filesystem, partition, block device or LVM name."
2044 #: ../cat/virt-filesystems.pod:298
2046 "For device and partition names these are displayed as canonical libguestfs "
2047 "names, so that for example C</dev/sda2> is the second partition on the first "
2052 #: ../cat/virt-filesystems.pod:302
2054 "If the I<--long> option is B<not> specified, then only the name column is "
2055 "shown in the output."
2059 #: ../cat/virt-filesystems.pod:305
2064 #: ../cat/virt-filesystems.pod:307
2065 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2069 #: ../cat/virt-filesystems.pod:309
2074 #: ../cat/virt-filesystems.pod:311
2076 "If there is a filesystem, then this column displays the filesystem type if "
2077 "one could be detected, eg. C<ext4>."
2081 #: ../cat/virt-filesystems.pod:314
2086 #: ../cat/virt-filesystems.pod:316
2088 "If the object has a label (used for identifying and mounting filesystems) "
2089 "then this column contains the label."
2093 #: ../cat/virt-filesystems.pod:319
2098 #: ../cat/virt-filesystems.pod:321
2100 "The size of the object in bytes. If the I<--human> option is used then the "
2101 "size is displayed in a human-readable form."
2105 #: ../cat/virt-filesystems.pod:324
2110 #: ../cat/virt-filesystems.pod:326
2112 "The parent column records the parent relationship between objects. For "
2113 "example, if the object is a partition, then this column contains the name of "
2114 "the containing device. If the object is a logical volume, then this column "
2115 "is the name of the volume group."
2119 #: ../cat/virt-filesystems.pod:331
2124 #: ../cat/virt-filesystems.pod:333
2126 "If the object has a UUID (used for identifying and mounting filesystems and "
2127 "block devices) then this column contains the UUID as a string."
2131 #: ../cat/virt-filesystems.pod:337
2132 msgid "The UUID is only displayed if the I<--uuid> option is given."
2136 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2137 #: ../df/virt-df.pod:191
2138 msgid "NOTE ABOUT CSV FORMAT"
2142 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2143 #: ../df/virt-df.pod:193
2145 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2146 "should be easy to parse, but it is definitely not easy to parse."
2150 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2151 #: ../df/virt-df.pod:196
2153 "Myth: Just split fields at commas. Reality: This does I<not> work "
2154 "reliably. This example has two columns:"
2158 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2159 #: ../df/virt-df.pod:199
2162 " \"foo,bar\",baz\n"
2167 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2168 #: ../df/virt-df.pod:201
2170 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2171 "reliably. This example has one row:"
2175 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2176 #: ../df/virt-df.pod:204
2185 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2186 #: ../df/virt-df.pod:207
2188 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2189 "packaged in major Linux distributions)."
2193 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2194 #: ../df/virt-df.pod:210
2196 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2197 "or Python's built-in csv library)."
2201 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2202 #: ../df/virt-df.pod:213
2203 msgid "Most spreadsheets and databases can import CSV directly."
2207 #: ../cat/virt-filesystems.pod:379
2209 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2210 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2213 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2214 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2218 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2219 #: ../tools/virt-win-reg.pl:778
2220 msgid "Copyright (C) 2010 Red Hat Inc."
2221 msgstr "©Red Hat Inc., 2010"
2224 #: ../cat/virt-ls.pod:5
2225 msgid "virt-ls - List files in a virtual machine"
2229 #: ../cat/virt-ls.pod:9
2232 " virt-ls [--options] -d domname directory [directory ...]\n"
2237 #: ../cat/virt-ls.pod:11
2240 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2245 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2247 msgstr "Старий стиль:"
2250 #: ../cat/virt-ls.pod:15
2253 " virt-ls [--options] domname directory\n"
2258 #: ../cat/virt-ls.pod:17
2261 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2266 #: ../cat/virt-ls.pod:21
2268 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2269 "more from a virtual machine or disk image."
2273 #: ../cat/virt-ls.pod:24
2275 "Multiple directory names can be given, in which case the output from each is "
2280 #: ../cat/virt-ls.pod:27
2282 "To list directories from a libvirt guest use the I<-d> option to specify the "
2283 "name of the guest. For a disk image, use the I<-a> option."
2287 #: ../cat/virt-ls.pod:31
2289 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2290 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2295 #: ../cat/virt-ls.pod:37
2296 msgid "Get a list of all files and directories in a virtual machine:"
2300 #: ../cat/virt-ls.pod:39
2303 " virt-ls -R -d guest /\n"
2308 #: ../cat/virt-ls.pod:41
2309 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2313 #: ../cat/virt-ls.pod:43
2316 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2321 #: ../cat/virt-ls.pod:45
2322 msgid "List all public-writable directories in a Linux virtual machine:"
2326 #: ../cat/virt-ls.pod:47
2329 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2334 #: ../cat/virt-ls.pod:49
2335 msgid "List all Unix domain sockets in a Linux virtual machine:"
2339 #: ../cat/virt-ls.pod:51
2342 " virt-ls -lR -d guest / | grep '^s'\n"
2347 #: ../cat/virt-ls.pod:53
2348 msgid "List all regular files with filenames ending in '.png':"
2352 #: ../cat/virt-ls.pod:55
2355 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2360 #: ../cat/virt-ls.pod:57
2361 msgid "To display files larger than 10MB in home directories:"
2365 #: ../cat/virt-ls.pod:59
2368 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2373 #: ../cat/virt-ls.pod:61
2374 msgid "Find everything modified in the last 7 days:"
2378 #: ../cat/virt-ls.pod:63
2381 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2386 #: ../cat/virt-ls.pod:65
2387 msgid "Find regular files modified in the last 24 hours:"
2391 #: ../cat/virt-ls.pod:67
2394 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2399 #: ../cat/virt-ls.pod:69
2400 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2404 #: ../cat/virt-ls.pod:71
2406 "Find the differences between files in a guest and an earlier snapshot of the "
2411 #: ../cat/virt-ls.pod:74
2414 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2415 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2416 " diff -u old new | less\n"
2421 #: ../cat/virt-ls.pod:78
2423 "The commands above won't find files where the content has changed but the "
2424 "metadata (eg. file size and modification date) is the same. To do that, you "
2425 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2426 "checksum> can be quite slow since it has to read and compute a checksum of "
2427 "every regular file in the virtual machine."
2431 #: ../cat/virt-ls.pod:84
2432 msgid "OUTPUT MODES"
2433 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2436 #: ../cat/virt-ls.pod:86
2438 "C<virt-ls> has four output modes, controlled by different combinations of "
2439 "the I<-l> and I<-R> options."
2443 #: ../cat/virt-ls.pod:89
2444 msgid "SIMPLE LISTING"
2445 msgstr "ПРОСТИЙ СПИСОК"
2448 #: ../cat/virt-ls.pod:91
2449 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2453 #: ../cat/virt-ls.pod:93
2456 " $ virt-ls -d guest /\n"
2462 " $ virt-ls -d guest /\n"
2469 #: ../cat/virt-ls.pod:98
2470 msgid "LONG LISTING"
2471 msgstr "ДОВГИЙ СПИСОК"
2474 #: ../cat/virt-ls.pod:100
2476 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2477 "(more specifically, like the C<guestfs_ll> function)."
2481 #: ../cat/virt-ls.pod:103
2484 " $ virt-ls -l -d guest /\n"
2486 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2487 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2491 " $ virt-ls -l -d guest /\n"
2493 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2494 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2499 #: ../cat/virt-ls.pod:109
2501 "Note that while this is useful for displaying a directory, do not try "
2502 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2507 #: ../cat/virt-ls.pod:113
2508 msgid "RECURSIVE LISTING"
2509 msgstr "РЕКУРСИВНИЙ СПИСОК"
2512 #: ../cat/virt-ls.pod:115
2514 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2515 "and directories recursively:"
2519 #: ../cat/virt-ls.pod:118
2522 " $ virt-ls -R -d guest /tmp\n"
2528 " $ virt-ls -R -d guest /tmp\n"
2535 #: ../cat/virt-ls.pod:123
2537 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2538 "converts C<\\0> characters to C<\\n>."
2542 #: ../cat/virt-ls.pod:126
2543 msgid "RECURSIVE LONG LISTING"
2544 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2547 #: ../cat/virt-ls.pod:128
2549 "Using I<-lR> options together changes the output to display directories "
2550 "recursively, with file stats, and optionally other features such as "
2551 "checksums and extended attributes."
2555 #: ../cat/virt-ls.pod:132
2557 "Most of the interesting features of C<virt-ls> are only available when using "
2562 #: ../cat/virt-ls.pod:135
2564 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2565 "you cannot use the output in another program (because filenames can contain "
2566 "spaces and other unsafe characters). If the guest was untrusted and someone "
2567 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2568 "on you by creating filenames with embedded newline characters. To B<safely> "
2569 "parse the output in another program, use the I<--csv> (Comma-Separated "
2574 #: ../cat/virt-ls.pod:143
2576 "Note that this output format is completely unrelated to the C<ls -lR> "
2581 #: ../cat/virt-ls.pod:146
2584 " $ virt-ls -lR -d guest /bin\n"
2585 " d 0555 4096 /bin\n"
2586 " - 0755 123 /bin/alsaunmute\n"
2587 " - 0755 28328 /bin/arch\n"
2588 " l 0777 4 /bin/awk -> gawk\n"
2589 " - 0755 27216 /bin/basename\n"
2590 " - 0755 943360 /bin/bash\n"
2594 " $ virt-ls -lR -d guest /bin\n"
2595 " d 0555 4096 /bin\n"
2596 " - 0755 123 /bin/alsaunmute\n"
2597 " - 0755 28328 /bin/arch\n"
2598 " l 0777 4 /bin/awk -> gawk\n"
2599 " - 0755 27216 /bin/basename\n"
2600 " - 0755 943360 /bin/bash\n"
2605 #: ../cat/virt-ls.pod:155
2606 msgid "These basic fields are always shown:"
2610 #: ../cat/virt-ls.pod:159
2615 #: ../cat/virt-ls.pod:161
2617 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2618 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2619 "link), C<s> (socket) or C<u> (unknown)."
2623 #: ../cat/virt-ls.pod:171
2625 msgstr "права доступу"
2628 #: ../cat/virt-ls.pod:173
2629 msgid "The Unix permissions, displayed as a 4 digit octal number."
2633 #: ../cat/virt-ls.pod:175
2638 #: ../cat/virt-ls.pod:177
2640 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2641 "readable> option is given, in which case this is shown as a human-readable "
2646 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2651 #: ../cat/virt-ls.pod:183
2652 msgid "The full path of the file or directory."
2656 #: ../cat/virt-ls.pod:185
2661 #: ../cat/virt-ls.pod:187
2662 msgid "For symbolic links only, the link target."
2666 #: ../cat/virt-ls.pod:191
2668 "In I<-lR> mode, additional command line options enable the display of more "
2673 #: ../cat/virt-ls.pod:194
2675 "With the I<--uids> flag, these additional fields are displayed before the "
2680 #: ../cat/virt-ls.pod:199
2685 #: ../cat/virt-ls.pod:201
2690 #: ../cat/virt-ls.pod:203
2692 "The UID and GID of the owner of the file (displayed numerically). Note "
2693 "these only make sense in the context of a Unix-like guest."
2697 #: ../cat/virt-ls.pod:208
2698 msgid "With the I<--times> flag, these additional fields are displayed:"
2702 #: ../cat/virt-ls.pod:212
2707 #: ../cat/virt-ls.pod:214
2708 msgid "The time of last access."
2709 msgstr "Час останнього доступу."
2712 #: ../cat/virt-ls.pod:216
2717 #: ../cat/virt-ls.pod:218
2718 msgid "The time of last modification."
2719 msgstr "Час останнього внесення змін."
2722 #: ../cat/virt-ls.pod:220
2727 #: ../cat/virt-ls.pod:222
2728 msgid "The time of last status change."
2729 msgstr "Час останньої зміни стану."
2732 #: ../cat/virt-ls.pod:226
2734 "The time fields are displayed as string dates and times, unless one of the "
2735 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2739 #: ../cat/virt-ls.pod:229
2740 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2744 #: ../cat/virt-ls.pod:233
2749 #: ../cat/virt-ls.pod:235
2751 "The device containing the file (displayed as major:minor). This may not "
2752 "match devices as known to the guest."
2756 #: ../cat/virt-ls.pod:238
2761 #: ../cat/virt-ls.pod:240
2762 msgid "The inode number."
2766 #: ../cat/virt-ls.pod:242
2771 #: ../cat/virt-ls.pod:244
2772 msgid "The number of hard links."
2773 msgstr "Кількість жорстких посилань."
2776 #: ../cat/virt-ls.pod:246
2781 #: ../cat/virt-ls.pod:248
2783 "For block and char special files, the device (displayed as major:minor)."
2787 #: ../cat/virt-ls.pod:251
2792 #: ../cat/virt-ls.pod:253
2793 msgid "The number of 512 byte blocks allocated to the file."
2797 #: ../cat/virt-ls.pod:257
2799 "With the I<--checksum> flag, the checksum of the file contents is shown "
2800 "(only for regular files). Computing file checksums can take a considerable "
2805 #: ../cat/virt-ls.pod:280
2806 msgid "B<--checksum>"
2807 msgstr "B<--checksum>"
2810 #: ../cat/virt-ls.pod:282
2811 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2812 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2815 #: ../cat/virt-ls.pod:284
2817 "Display checksum over file contents for regular files. With no argument, "
2818 "this defaults to using I<md5>. Using an argument, you can select the "
2819 "checksum type to use."
2823 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2824 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2825 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2827 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2832 #: ../cat/virt-ls.pod:316
2834 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2835 "so you cannot see what you are typing. If you are not worried about Tempest "
2836 "attacks and there is no one else in the room you can specify this flag to "
2837 "see what you are typing."
2841 #: ../cat/virt-ls.pod:321
2842 msgid "B<--extra-stats>"
2843 msgstr "B<--extra-stats>"
2846 #: ../cat/virt-ls.pod:323
2847 msgid "Display extra stats."
2848 msgstr "Показати додаткові дані."
2851 #: ../cat/virt-ls.pod:339
2854 " virt-ls --format=raw -a disk.img /dir\n"
2859 #: ../cat/virt-ls.pod:343
2862 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2867 #: ../cat/virt-ls.pod:356
2868 msgid "Display file sizes in human-readable format."
2872 #: ../cat/virt-ls.pod:370
2877 #: ../cat/virt-ls.pod:372
2878 msgid "B<--recursive>"
2879 msgstr "B<--recursive>"
2882 #: ../cat/virt-ls.pod:374
2884 "Select the mode. With neither of these options, C<virt-ls> produces a "
2885 "simple, flat list of the files in the named directory. See L</SIMPLE "
2890 #: ../cat/virt-ls.pod:378
2892 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2897 #: ../cat/virt-ls.pod:381
2899 "C<virt-ls -R> produces a recursive list of files starting at the named "
2900 "directory. See L</RECURSIVE LISTING>."
2904 #: ../cat/virt-ls.pod:384
2906 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2907 "parsed. See L</RECURSIVE LONG LISTING>."
2911 #: ../cat/virt-ls.pod:387
2916 #: ../cat/virt-ls.pod:389
2917 msgid "Display time fields."
2921 #: ../cat/virt-ls.pod:394
2922 msgid "B<--time-days>"
2923 msgstr "B<--time-days>"
2926 #: ../cat/virt-ls.pod:396
2927 msgid "Display time fields as days before now (negative if in the future)."
2931 #: ../cat/virt-ls.pod:398
2933 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2934 "of the file is between 0 and 86399 seconds."
2938 #: ../cat/virt-ls.pod:404
2939 msgid "B<--time-relative>"
2940 msgstr "B<--time-relative>"
2943 #: ../cat/virt-ls.pod:406
2944 msgid "Display time fields as seconds before now (negative if in the future)."
2948 #: ../cat/virt-ls.pod:411
2950 msgstr "B<--time-t>"
2953 #: ../cat/virt-ls.pod:413
2954 msgid "Display time fields as seconds since the Unix epoch."
2958 #: ../cat/virt-ls.pod:418
2963 #: ../cat/virt-ls.pod:420
2964 msgid "Display UID and GID fields."
2968 #: ../cat/virt-ls.pod:445
2969 msgid "Previous versions of virt-ls allowed you to write either:"
2973 #: ../cat/virt-ls.pod:447
2976 " virt-ls disk.img [disk.img ...] /dir\n"
2981 #: ../cat/virt-ls.pod:451
2984 " virt-ls guestname /dir\n"
2989 #: ../cat/virt-ls.pod:497
2991 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2992 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2993 "L<http://libguestfs.org/>."
2995 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2996 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2997 "L<http://libguestfs.org/>."
3000 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3001 #: ../rescue/virt-rescue.pod:302
3002 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3003 msgstr "©Red Hat Inc., 2009–2011"
3006 #: ../clone/virt-sysprep.pod:5
3008 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3012 #: ../clone/virt-sysprep.pod:9
3015 " virt-sysprep [--options] -d domname\n"
3020 #: ../clone/virt-sysprep.pod:11
3023 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3028 #: ../clone/virt-sysprep.pod:15
3030 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3031 "can be made from it. Steps in this process include removing SSH host keys, "
3032 "removing persistent network MAC configuration, and removing user accounts. "
3033 "Each step can be enabled or disabled as required."
3037 #: ../clone/virt-sysprep.pod:21
3039 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3040 "customization by the system administrator."
3044 #: ../clone/virt-sysprep.pod:24
3046 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3047 "be shut down. If you want to preserve the existing contents of the guest, "
3048 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3052 #: ../clone/virt-sysprep.pod:29
3054 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3055 "recommend that you don't. The time you might want to run it as root is when "
3056 "you need root in order to access the disk image, but even in this case it "
3057 "would be better to change the permissions on the disk image to be writable "
3058 "as the non-root user running virt-sysprep."
3062 #: ../clone/virt-sysprep.pod:35
3064 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3065 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3066 "machines in preparation for cloning them. Having said that, virt-sysprep "
3067 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3068 "Windows sysprepping in a future version, and we already have code to do it."
3072 #: ../clone/virt-sysprep.pod:76
3073 msgid "B<--enable=...>"
3077 #: ../clone/virt-sysprep.pod:78
3079 "Choose which sysprep operations to perform. Give a comma-separated list of "
3080 "operations, for example:"
3084 #: ../clone/virt-sysprep.pod:81
3087 " --enable=ssh-hostkeys,udev-persistent-net\n"
3092 #: ../clone/virt-sysprep.pod:83
3094 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3098 #: ../clone/virt-sysprep.pod:85
3100 "If the I<--enable> option is not given, then we default to trying all "
3101 "possible sysprep operations. But some sysprep operations are skipped for "
3106 #: ../clone/virt-sysprep.pod:89
3108 "Use I<--list-operations> to list operations supported by a particular "
3109 "version of virt-sysprep."
3113 #: ../clone/virt-sysprep.pod:92
3115 "See L</OPERATIONS> below for a list and an explanation of each operation."
3119 #: ../clone/virt-sysprep.pod:106
3122 " virt-sysprep --format=raw -a disk.img\n"
3127 #: ../clone/virt-sysprep.pod:110
3130 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3135 #: ../clone/virt-sysprep.pod:119
3136 msgid "B<--hostname> newhostname"
3140 #: ../clone/virt-sysprep.pod:121
3142 "Change the hostname. See the L</hostname> operation below. If not given, "
3143 "defaults to C<localhost.localdomain>."
3147 #: ../clone/virt-sysprep.pod:124
3148 msgid "B<--list-operations>"
3152 #: ../clone/virt-sysprep.pod:126
3153 msgid "List the operations supported by the virt-sysprep program."
3157 #: ../clone/virt-sysprep.pod:128
3158 msgid "B<--selinux-relabel>"
3162 #: ../clone/virt-sysprep.pod:130
3163 msgid "B<--no-selinux-relabel>"
3167 #: ../clone/virt-sysprep.pod:132
3169 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3170 "I<--no-selinux-relabel> disables relabelling."
3174 #: ../clone/virt-sysprep.pod:135
3176 "The default is to try to detect if SELinux relabelling is required. See L</"
3177 "SELINUX RELABELLING> below for more details."
3181 #: ../clone/virt-sysprep.pod:156
3186 #: ../clone/virt-sysprep.pod:158
3188 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3189 "enabled>, although some are skipped depending on the type of guest."
3193 #: ../clone/virt-sysprep.pod:162
3195 "Operations can be individually enabled using the I<--enable> option. Use a "
3196 "comma-separated list, for example:"
3200 #: ../clone/virt-sysprep.pod:165
3203 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3208 #: ../clone/virt-sysprep.pod:167
3210 "To list the operations supported by the current version of virt-sysprep, use "
3211 "I<--list-operations>."
3215 #: ../clone/virt-sysprep.pod:170
3217 "Future versions of virt-sysprep may add more operations. If you are using "
3218 "virt-sysprep and want predictable behaviour, specify only the operations "
3219 "that you want to have enabled."
3223 #: ../clone/virt-sysprep.pod:174
3228 #: ../clone/virt-sysprep.pod:176
3229 msgid "Remove user at-jobs and cron-jobs."
3233 #: ../clone/virt-sysprep.pod:178
3234 msgid "dhcp-client-state"
3238 #: ../clone/virt-sysprep.pod:180
3239 msgid "Remove DHCP client leases."
3243 #: ../clone/virt-sysprep.pod:182
3244 msgid "dhcp-server-state"
3248 #: ../clone/virt-sysprep.pod:184
3249 msgid "Remove DHCP server leases."
3253 #: ../clone/virt-sysprep.pod:186
3258 #: ../clone/virt-sysprep.pod:188
3260 "Changes the hostname of the guest to the value given in the I<--hostname> "
3265 #: ../clone/virt-sysprep.pod:191
3267 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3268 "C<localhost.localdomain>."
3272 #: ../clone/virt-sysprep.pod:194
3277 #: ../clone/virt-sysprep.pod:196
3278 msgid "Remove many log files."
3282 #: ../clone/virt-sysprep.pod:198
3287 #: ../clone/virt-sysprep.pod:200
3288 msgid "Remove email from the local mail spool directory."
3292 #: ../clone/virt-sysprep.pod:202
3297 #: ../clone/virt-sysprep.pod:204
3299 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3300 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3304 #: ../clone/virt-sysprep.pod:207
3309 #: ../clone/virt-sysprep.pod:209
3311 "Write some random bytes from the host into the random seed file of the guest."
3315 #: ../clone/virt-sysprep.pod:212
3316 msgid "See L</RANDOM SEED> below."
3320 #: ../clone/virt-sysprep.pod:214
3321 msgid "rhn-systemid"
3325 #: ../clone/virt-sysprep.pod:216
3326 msgid "Remove the RHN system ID."
3330 #: ../clone/virt-sysprep.pod:218
3335 #: ../clone/virt-sysprep.pod:220
3336 msgid "Remove the Smolt hardware UUID."
3340 #: ../clone/virt-sysprep.pod:222
3341 msgid "ssh-hostkeys"
3345 #: ../clone/virt-sysprep.pod:224
3346 msgid "Remove the SSH host keys in the guest."
3350 #: ../clone/virt-sysprep.pod:226
3352 "The SSH host keys are regenerated (differently) next time the guest is "
3357 #: ../clone/virt-sysprep.pod:229
3359 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3360 "stark warning about the host key changing:"
3364 #: ../clone/virt-sysprep.pod:232
3367 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3368 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3369 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3370 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3375 #: ../clone/virt-sysprep.pod:237
3376 msgid "udev-persistent-net"
3380 #: ../clone/virt-sysprep.pod:239
3382 "Remove udev persistent net rules which map the guest's existing MAC address "
3383 "to a fixed ethernet device (eg. eth0)."
3387 #: ../clone/virt-sysprep.pod:242
3389 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3390 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3391 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3392 "Erasing the udev persistent net rules avoids this."
3396 #: ../clone/virt-sysprep.pod:247
3401 #: ../clone/virt-sysprep.pod:249
3402 msgid "Remove the utmp file."
3406 #: ../clone/virt-sysprep.pod:251
3408 "This records who is currently logged in on a machine. In modern Linux "
3409 "distros it is stored in a ramdisk and hence not part of the virtual "
3410 "machine's disk, but it was stored on disk in older distros."
3414 #: ../clone/virt-sysprep.pod:255
3419 #: ../clone/virt-sysprep.pod:257
3420 msgid "Remove the yum UUID."
3424 #: ../clone/virt-sysprep.pod:259
3426 "Yum creates a fresh UUID the next time it runs when it notices that the "
3427 "original UUID has been erased."
3431 #: ../clone/virt-sysprep.pod:262
3432 msgid "COPYING AND CLONING"
3436 #: ../clone/virt-sysprep.pod:264
3438 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3439 "prepare a template from which guests can be cloned. There are many "
3440 "different ways to achieve this using the virt tools, and this section is "
3441 "just an introduction."
3445 #: ../clone/virt-sysprep.pod:269
3446 msgid "A virtual machine (when switched off) consists of two parts:"
3450 #: ../clone/virt-sysprep.pod:273
3451 msgid "I<configuration>"
3455 #: ../clone/virt-sysprep.pod:275
3457 "The configuration or description of the guest. eg. The libvirt XML (see "
3458 "C<virsh dumpxml>), the running configuration of the guest, or another "
3459 "external format like OVF."
3463 #: ../clone/virt-sysprep.pod:279
3464 msgid "Some configuration items that might need to be changed:"
3468 #: ../clone/virt-sysprep.pod:285
3473 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3478 #: ../clone/virt-sysprep.pod:293
3479 msgid "path to block device(s)"
3483 #: ../clone/virt-sysprep.pod:297
3484 msgid "network card MAC address"
3488 #: ../clone/virt-sysprep.pod:301
3489 msgid "I<block device(s)>"
3493 #: ../clone/virt-sysprep.pod:303
3495 "One or more hard disk images, themselves containing files, directories, "
3496 "applications, kernels, configuration, etc."
3500 #: ../clone/virt-sysprep.pod:306
3501 msgid "Some things inside the block devices that might need to be changed:"
3505 #: ../clone/virt-sysprep.pod:312
3506 msgid "hostname and other net configuration"
3510 #: ../clone/virt-sysprep.pod:320
3511 msgid "SSH host keys"
3515 #: ../clone/virt-sysprep.pod:324
3516 msgid "Windows unique security ID (SID)"
3520 #: ../clone/virt-sysprep.pod:328
3521 msgid "Puppet registration"
3525 #: ../clone/virt-sysprep.pod:334
3526 msgid "COPYING THE BLOCK DEVICE"
3530 #: ../clone/virt-sysprep.pod:336
3532 "Starting with an original guest, you probably wish to copy the guest block "
3533 "device and its configuration to make a template. Then once you are happy "
3534 "with the template, you will want to make many clones from it."
3538 #: ../clone/virt-sysprep.pod:341
3544 " original guest --------> template ---------->\n"
3545 " \\------> cloned\n"
3546 " \\-----> guests\n"
3552 #: ../clone/virt-sysprep.pod:349
3554 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3559 #: ../clone/virt-sysprep.pod:352
3563 " original guest --------> template ---------->\n"
3564 " \\------> cloned\n"
3565 " \\-----> guests\n"
3571 #: ../clone/virt-sysprep.pod:358
3572 msgid "There are some smarter (and faster) ways too:"
3576 #: ../clone/virt-sysprep.pod:364
3580 " template ---------->\n"
3581 " \\------> cloned\n"
3582 " \\-----> guests\n"
3588 #: ../clone/virt-sysprep.pod:370
3590 "Use the block device as a backing file and create a snapshot on top for each "
3591 "guest. The advantage is that you don't need to copy the block device (very "
3592 "fast) and only changes are stored (less storage required)."
3596 #: ../clone/virt-sysprep.pod:375
3598 "Note that writing to the backing file once you have created guests on top of "
3599 "it is not possible: you will corrupt the guests."
3603 #: ../clone/virt-sysprep.pod:378
3605 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3606 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3607 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3608 "also create cheap snapshots from files or LUNs."
3612 #: ../clone/virt-sysprep.pod:386
3613 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3617 #: ../clone/virt-sysprep.pod:390
3618 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3622 #: ../clone/virt-sysprep.pod:394
3627 #: ../clone/virt-sysprep.pod:396
3629 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3630 "and/or modify the external libvirt configuration of a guest. It will reset "
3631 "the name, UUID and MAC address of the guest in the libvirt XML."
3635 #: ../clone/virt-sysprep.pod:401
3637 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3638 "image. This was the original motivation to write virt-sysprep."
3642 #: ../clone/virt-sysprep.pod:404
3647 #: ../clone/virt-sysprep.pod:406
3651 " original guest --------> template\n"
3656 #: ../clone/virt-sysprep.pod:409
3658 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3659 "it easier to compress and/or faster to copy."
3663 #: ../clone/virt-sysprep.pod:412
3665 "Notice that since virt-sparsify also copies the image, you can use it to "
3666 "make the initial copy (instead of C<dd>)."
3670 #: ../clone/virt-sysprep.pod:415
3675 #: ../clone/virt-sysprep.pod:417
3679 " template ---------->\n"
3680 " \\------> cloned\n"
3681 " \\-----> guests\n"
3687 #: ../clone/virt-sysprep.pod:423
3689 "If you want to give people cloned guests, but let them pick the size of the "
3690 "guest themselves (eg. depending on how much they are prepared to pay for "
3691 "disk space), then instead of copying the template, you can run L<virt-resize"
3692 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3693 "guests from a template."
3697 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3702 #: ../clone/virt-sysprep.pod:431
3704 "Although virt-sysprep removes some sensitive information from the guest, it "
3705 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3706 "above, and the implementation of the operations in the shell script. You "
3707 "should also examine the guest afterwards."
3711 #: ../clone/virt-sysprep.pod:436
3713 "Sensitive files are simply removed. The data they contained may still exist "
3714 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3715 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3716 "(1)> command to get rid of deleted content in directory entries and inodes."
3720 #: ../clone/virt-sysprep.pod:442
3725 #: ../clone/virt-sysprep.pod:444
3726 msgid "I<(This section applies to Linux guests only)>"
3730 #: ../clone/virt-sysprep.pod:446
3732 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3733 "from the host into the guest's random seed file."
3737 #: ../clone/virt-sysprep.pod:449
3739 "If this is just done once and the guest is cloned from the same template, "
3740 "then each guest will start with the same entropy, and things like SSH host "
3741 "keys and TCP sequence numbers may be predictable."
3745 #: ../clone/virt-sysprep.pod:453
3747 "Therefore you should arrange to add more randomness I<after> cloning from a "
3748 "template too, which can be done by just enabling the C<random-seed> "
3753 #: ../clone/virt-sysprep.pod:457
3756 " cp template.img newguest.img\n"
3757 " virt-sysprep --enable=random-seed -a newguest.img\n"
3762 #: ../clone/virt-sysprep.pod:460
3763 msgid "SELINUX RELABELLING"
3767 #: ../clone/virt-sysprep.pod:462
3768 msgid "I<(This section applies to Linux guests using SELinux only)>"
3772 #: ../clone/virt-sysprep.pod:464
3774 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3775 "autorelabel> so that these will be correctly labelled by SELinux the next "
3776 "time the guest is booted. This process interrupts boot and can take some "
3781 #: ../clone/virt-sysprep.pod:469
3783 "You can force relabelling for all guests by supplying the I<--selinux-"
3788 #: ../clone/virt-sysprep.pod:472
3790 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3795 #: ../clone/virt-sysprep.pod:484
3796 msgid "This program returns 0 on success, or 1 if there was an error."
3800 #: ../clone/virt-sysprep.pod:488
3802 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3803 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3804 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3808 #: ../df/virt-df.pod:5
3809 msgid "virt-df - Display free space on virtual filesystems"
3813 #: ../df/virt-df.pod:9
3816 " virt-df [--options]\n"
3819 " virt-df [--параметри]\n"
3823 #: ../df/virt-df.pod:11
3826 " virt-df [--options] -d domname\n"
3831 #: ../df/virt-df.pod:13
3834 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3839 #: ../df/virt-df.pod:17
3842 " virt-df [--options] domname\n"
3847 #: ../df/virt-df.pod:19
3850 " virt-df [--options] disk.img [disk.img ...]\n"
3855 #: ../df/virt-df.pod:23
3857 "C<virt-df> is a command line tool to display free space on virtual machine "
3858 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3859 "allocated to a virtual machine, but can look inside disk images to see how "
3860 "much space is really being used."
3864 #: ../df/virt-df.pod:28
3866 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3867 "to get a list of all active and inactive guests, and performs a C<df>-type "
3868 "operation on each one in turn, printing out the results."
3872 #: ../df/virt-df.pod:32
3874 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3875 "type operation on either the single named libvirt domain, or on the disk "
3876 "image(s) listed on the command line (which must all belong to a single VM). "
3877 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3878 "guest>. If you want to run on multiple guests, then you have to invoke "
3879 "C<virt-df> multiple times."
3883 #: ../df/virt-df.pod:39
3885 "Use the I<--csv> option to get a format which can be easily parsed by other "
3886 "programs. Other options are similar to the standard L<df(1)> command."
3890 #: ../df/virt-df.pod:45
3892 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3893 "output human-readable:"
3897 #: ../df/virt-df.pod:48
3900 " # virt-df -d F14x64 -h\n"
3901 " Filesystem Size Used Available Use%\n"
3902 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3903 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3908 #: ../df/virt-df.pod:53
3909 msgid "Show disk usage for a disk image file called C<test.img>:"
3913 #: ../df/virt-df.pod:55
3916 " $ virt-df -a test1.img\n"
3917 " Filesystem 1K-blocks Used Available Use%\n"
3918 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
3923 #: ../df/virt-df.pod:112
3926 " virt-df --format=raw -a disk.img\n"
3931 #: ../df/virt-df.pod:116
3934 " virt-df --format=raw -a disk.img --format -a another.img\n"
3939 #: ../df/virt-df.pod:129
3940 msgid "Print sizes in human-readable format."
3944 #: ../df/virt-df.pod:131
3945 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3949 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3954 #: ../df/virt-df.pod:135
3956 msgstr "B<--inodes>"
3959 #: ../df/virt-df.pod:137
3960 msgid "Print inodes instead of blocks."
3964 #: ../df/virt-df.pod:139
3965 msgid "B<--one-per-guest>"
3966 msgstr "B<--one-per-guest>"
3969 #: ../df/virt-df.pod:141
3971 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
3972 "disks from several guests to a single libguestfs appliance."
3976 #: ../df/virt-df.pod:144
3977 msgid "You might use this option in the following circumstances:"
3981 #: ../df/virt-df.pod:150
3983 "If you think an untrusted guest might actively try to exploit the libguestfs "
3984 "appliance kernel, then this prevents one guest from interfering with the "
3985 "stats printed for another guest."
3989 #: ../df/virt-df.pod:156
3991 "If the kernel has a bug which stops it from accessing a filesystem in one "
3992 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3993 "and report stats for further guests."
3997 #: ../df/virt-df.pod:165
3999 "Print UUIDs instead of names. This is useful for following a guest even "
4000 "when the guest is migrated or renamed, or when two guests happen to have the "
4005 #: ../df/virt-df.pod:169
4007 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4008 "images, we still print the disk image name even when this option is "
4013 #: ../df/virt-df.pod:229
4015 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4020 #: ../edit/virt-edit.pod:5
4021 msgid "virt-edit - Edit a file in a virtual machine"
4025 #: ../edit/virt-edit.pod:9
4028 " virt-edit [--options] -d domname file [file ...]\n"
4033 #: ../edit/virt-edit.pod:11
4036 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4041 #: ../edit/virt-edit.pod:13
4044 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4049 #: ../edit/virt-edit.pod:17
4052 " virt-edit domname file\n"
4057 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4060 " virt-edit disk.img [disk.img ...] file\n"
4065 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4066 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4067 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4068 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4070 msgstr "ПОПЕРЕДЖЕННЯ"
4073 #: ../edit/virt-edit.pod:23
4075 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4076 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4077 "doing this, but doesn't catch all cases."
4081 #: ../edit/virt-edit.pod:29
4083 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4084 "exists in the named virtual machine (or disk image)."
4088 #: ../edit/virt-edit.pod:32
4090 "Multiple filenames can be given, in which case they are each edited in "
4091 "turn. Each filename must be a full path, starting at the root directory "
4092 "(starting with '/')."
4096 #: ../edit/virt-edit.pod:36
4097 msgid "If you want to just view a file, use L<virt-cat(1)>."
4101 #: ../edit/virt-edit.pod:38
4103 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4104 "USING GUESTFISH> below)."
4108 #: ../edit/virt-edit.pod:41
4110 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4111 "that and much more."
4115 #: ../edit/virt-edit.pod:46
4116 msgid "Edit the named files interactively:"
4120 #: ../edit/virt-edit.pod:48
4123 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4128 #: ../edit/virt-edit.pod:50
4131 " virt-edit -d mydomain /etc/passwd\n"
4136 #: ../edit/virt-edit.pod:52
4137 msgid "For Windows guests, some Windows paths are understood:"
4141 #: ../edit/virt-edit.pod:54
4144 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4149 #: ../edit/virt-edit.pod:56
4151 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4152 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4156 #: ../edit/virt-edit.pod:60
4159 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4164 #: ../edit/virt-edit.pod:81
4165 msgid "B<-b> extension"
4169 #: ../edit/virt-edit.pod:83
4170 msgid "B<--backup> extension"
4174 #: ../edit/virt-edit.pod:85
4176 "Create a backup of the original file I<in the guest disk image>. The backup "
4177 "has the original filename with C<extension> added."
4181 #: ../edit/virt-edit.pod:88
4183 "Usually the first character of C<extension> would be a dot C<.> so you would "
4188 #: ../edit/virt-edit.pod:91
4191 " virt-edit -b .orig [etc]\n"
4196 #: ../edit/virt-edit.pod:93
4197 msgid "By default, no backup file is made."
4201 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4202 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4203 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4204 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4206 msgstr "B<-c адреса>"
4209 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4210 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4211 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4212 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4213 msgid "B<--connect URI>"
4214 msgstr "B<--connect адреса>"
4217 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4218 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4219 #: ../tools/virt-win-reg.pl:135
4221 "If you specify guest block devices directly, then libvirt is not used at all."
4225 #: ../edit/virt-edit.pod:114
4227 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4228 "off so you cannot see what you are typing. If you are not worried about "
4229 "Tempest attacks and there is no one else in the room you can specify this "
4230 "flag to see what you are typing."
4234 #: ../edit/virt-edit.pod:119
4236 msgstr "B<-e> вираз"
4239 #: ../edit/virt-edit.pod:121
4240 msgid "B<--expr> EXPR"
4241 msgstr "B<--expr> вираз"
4244 #: ../edit/virt-edit.pod:123
4246 "Instead of launching the external editor, non-interactively apply the Perl "
4247 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4252 #: ../edit/virt-edit.pod:127
4254 "Be careful to properly quote the expression to prevent it from being altered "
4259 #: ../edit/virt-edit.pod:130
4260 msgid "Note that this option is only available when Perl 5 is installed."
4264 #: ../edit/virt-edit.pod:132
4265 msgid "B<--format> raw|qcow2|..."
4266 msgstr "B<--format> raw|qcow2|..."
4269 #: ../edit/virt-edit.pod:143
4272 " virt-edit --format=raw -a disk.img file\n"
4277 #: ../edit/virt-edit.pod:147
4280 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4285 #: ../edit/virt-edit.pod:181
4286 msgid "Previous versions of virt-edit allowed you to write either:"
4290 #: ../edit/virt-edit.pod:187
4293 " virt-edit guestname file\n"
4298 #: ../edit/virt-edit.pod:195
4299 msgid "NON-INTERACTIVE EDITING"
4300 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4303 #: ../edit/virt-edit.pod:197
4305 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4306 "administrator can interactively edit the file."
4310 #: ../edit/virt-edit.pod:200
4312 "There are two ways also to use C<virt-edit> from scripts in order to make "
4313 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4314 "like this, it's less error-prone to write scripts directly using the "
4315 "libguestfs API and Augeas for configuration file editing.)"
4319 #: ../edit/virt-edit.pod:206
4321 "The first method is to temporarily set C<$EDITOR> to any script or program "
4322 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4323 "update C<tmpfile> in place however it likes."
4327 #: ../edit/virt-edit.pod:210
4329 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4330 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4331 "instances of C<foo> with C<bar> in a file:"
4335 #: ../edit/virt-edit.pod:214
4338 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4343 #: ../edit/virt-edit.pod:216
4345 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4346 "For example to delete root's password you could do:"
4350 #: ../edit/virt-edit.pod:219
4353 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4356 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4360 #: ../edit/virt-edit.pod:221
4362 "What really happens is that the snippet is evaluated as a Perl expression "
4363 "for each line of the file. The line, including the final C<\\n>, is passed "
4364 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4368 #: ../edit/virt-edit.pod:226
4370 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4371 "C<apache> user account from the password file you can do:"
4375 #: ../edit/virt-edit.pod:229
4378 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4381 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4385 #: ../edit/virt-edit.pod:231
4387 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4388 "the end of the file is rather difficult this way since there is no concept "
4389 "of \"last line of the file\" - your expression just doesn't get called "
4390 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4395 #: ../edit/virt-edit.pod:237
4397 "The variable C<$lineno> contains the current line number. As is "
4398 "traditional, the first line in the file is number C<1>."
4402 #: ../edit/virt-edit.pod:240
4404 "The return value from the expression is ignored, but the expression may call "
4405 "C<die> in order to abort the whole program, leaving the original file "
4410 #: ../edit/virt-edit.pod:244
4412 "Remember when matching the end of a line that C<$_> may contain the final C<"
4413 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4414 "newline then neither of these. Thus to match or substitute some text at the "
4415 "end of a line, use this regular expression:"
4419 #: ../edit/virt-edit.pod:249
4422 " /some text(\\r?\\n)?$/\n"
4425 " /якийсь текст(\\r?\\n)?$/\n"
4429 #: ../edit/virt-edit.pod:251
4431 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4432 "$_> itself (since that would remove all newlines from the file):"
4436 #: ../edit/virt-edit.pod:255
4439 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4442 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4446 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4447 msgid "WINDOWS PATHS"
4448 msgstr "ШЛЯХИ У WINDOWS"
4451 #: ../edit/virt-edit.pod:259
4453 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4454 "paths (eg. C<E:\\foo\\bar.txt>)."
4458 #: ../edit/virt-edit.pod:262
4459 msgid "If and only if the guest is running Windows then:"
4463 #: ../edit/virt-edit.pod:268
4465 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4466 "to the correct filesystem."
4470 #: ../edit/virt-edit.pod:273
4472 "Any backslash (C<\\>) characters in the path are replaced with forward "
4473 "slashes so that libguestfs can process it."
4477 #: ../edit/virt-edit.pod:278
4479 "The path is resolved case insensitively to locate the file that should be "
4484 #: ../edit/virt-edit.pod:283
4485 msgid "There are some known shortcomings:"
4489 #: ../edit/virt-edit.pod:289
4490 msgid "Some NTFS symbolic links may not be followed correctly."
4494 #: ../edit/virt-edit.pod:293
4495 msgid "NTFS junction points that cross filesystems are not followed."
4499 #: ../edit/virt-edit.pod:299
4501 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4502 "C<virt-edit> doesn't work."
4506 #: ../edit/virt-edit.pod:302
4507 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4511 #: ../edit/virt-edit.pod:304
4514 " guestfish --rw -i -d domname edit /file\n"
4519 #: ../edit/virt-edit.pod:306
4521 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4526 #: ../edit/virt-edit.pod:309
4528 "The command above uses libguestfs's guest inspection feature and so does not "
4529 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4530 "disk images that don't contain guests. To edit a file on a disk image "
4535 #: ../edit/virt-edit.pod:314
4538 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4543 #: ../edit/virt-edit.pod:316
4545 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4546 "the disk image to edit, and C</file> is the full path to the file."
4550 #: ../edit/virt-edit.pod:320
4552 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4553 "C<write> or C<upload> instead:"
4557 #: ../edit/virt-edit.pod:323
4560 " guestfish --rw -i -d domname touch /newfile\n"
4565 #: ../edit/virt-edit.pod:325
4568 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4573 #: ../edit/virt-edit.pod:327
4576 " guestfish --rw -i -d domname upload localfile /newfile\n"
4581 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4582 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4583 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4584 msgid "ENVIRONMENT VARIABLES"
4585 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4588 #: ../edit/virt-edit.pod:333
4593 #: ../edit/virt-edit.pod:335
4595 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4600 #: ../edit/virt-edit.pod:338
4601 msgid "If not set, C<vi> is used."
4605 #: ../edit/virt-edit.pod:356
4607 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4608 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4609 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4611 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4612 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4613 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4616 #: ../erlang/examples/guestfs-erlang.pod:5
4617 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4621 #: ../erlang/examples/guestfs-erlang.pod:9
4624 " {ok, G} = guestfs:create(),\n"
4625 " ok = guestfs:add_drive_opts(G, Disk,\n"
4626 " [{format, \"raw\"}, {readonly, true}]),\n"
4627 " ok = guestfs:launch(G),\n"
4628 " [Device] = guestfs:list_devices(G),\n"
4629 " ok = guestfs:close(G).\n"
4634 #: ../erlang/examples/guestfs-erlang.pod:18
4636 "This manual page documents how to call libguestfs from the Erlang "
4637 "programming language. This page just documents the differences from the C "
4638 "API and gives some examples. If you are not familiar with using libguestfs, "
4639 "you also need to read L<guestfs(3)>."
4643 #: ../erlang/examples/guestfs-erlang.pod:23
4644 msgid "OPENING AND CLOSING THE HANDLE"
4648 #: ../erlang/examples/guestfs-erlang.pod:25
4650 "The Erlang bindings are implemented using an external program called C<erl-"
4651 "guestfs>. This program must be on the current PATH, or else you should "
4652 "specify the full path to the program:"
4656 #: ../erlang/examples/guestfs-erlang.pod:29
4659 " {ok, G} = guestfs:create().\n"
4664 #: ../erlang/examples/guestfs-erlang.pod:31
4667 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4672 #: ../erlang/examples/guestfs-erlang.pod:33
4673 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4677 #: ../erlang/examples/guestfs-erlang.pod:36
4678 msgid "To close the handle:"
4682 #: ../erlang/examples/guestfs-erlang.pod:38
4685 " ok = guestfs:close(G).\n"
4690 #: ../erlang/examples/guestfs-erlang.pod:40
4691 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4695 #: ../erlang/examples/guestfs-erlang.pod:42
4697 "For functions that take optional arguments, the first arguments are the non-"
4698 "optional ones. The last argument is a list of tuples supplying the "
4699 "remaining optional arguments."
4703 #: ../erlang/examples/guestfs-erlang.pod:46
4706 " ok = guestfs:add_drive_opts(G, Disk,\n"
4707 " [{format, \"raw\"}, {readonly, true}]).\n"
4712 #: ../erlang/examples/guestfs-erlang.pod:49
4713 msgid "If the last argument would be an empty list, you can also omit it:"
4717 #: ../erlang/examples/guestfs-erlang.pod:51
4720 " ok = guestfs:add_drive_opts(G, Disk).\n"
4725 #: ../erlang/examples/guestfs-erlang.pod:53
4726 msgid "RETURN VALUES AND ERRORS"
4730 #: ../erlang/examples/guestfs-erlang.pod:55
4732 "On success, most functions return a C<Result> term (which could be a list, "
4733 "string, tuple etc.). If there is nothing for the function to return, then "
4734 "the atom C<ok> is returned."
4738 #: ../erlang/examples/guestfs-erlang.pod:59
4739 msgid "On error, you would see one of the following tuples:"
4743 #: ../erlang/examples/guestfs-erlang.pod:63
4744 msgid "C<{error, Msg, Errno}>"
4748 #: ../erlang/examples/guestfs-erlang.pod:65
4749 msgid "This indicates an ordinary error from the function."
4753 #: ../erlang/examples/guestfs-erlang.pod:67
4755 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4760 #: ../erlang/examples/guestfs-erlang.pod:70
4761 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4765 #: ../erlang/examples/guestfs-erlang.pod:72
4766 msgid "C<{unknown, Function}>"
4770 #: ../erlang/examples/guestfs-erlang.pod:74
4772 "This indicates that the function you called is not known. Generally this "
4773 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4774 "which you should not do."
4778 #: ../erlang/examples/guestfs-erlang.pod:78
4779 msgid "C<Function> is the name of the unknown function."
4783 #: ../erlang/examples/guestfs-erlang.pod:80
4784 msgid "C<{unknownarg, Arg}>"
4788 #: ../erlang/examples/guestfs-erlang.pod:82
4790 "This indicates that you called a function with optional arguments, with an "
4791 "unknown argument name."
4795 #: ../erlang/examples/guestfs-erlang.pod:85
4796 msgid "C<Arg> is the name of the unknown argument."
4800 #: ../erlang/examples/guestfs-erlang.pod:89
4801 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4802 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4803 #: ../python/examples/guestfs-python.pod:34
4804 #: ../ruby/examples/guestfs-ruby.pod:28
4805 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4806 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4809 #: ../erlang/examples/guestfs-erlang.pod:91
4810 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4811 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4812 #: ../python/examples/guestfs-python.pod:36
4813 #: ../ruby/examples/guestfs-ruby.pod:30
4818 #: ../erlang/examples/guestfs-erlang.pod:93
4819 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4820 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4821 #: ../python/examples/guestfs-python.pod:38
4822 #: ../ruby/examples/guestfs-ruby.pod:32
4823 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4824 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4827 #: ../erlang/examples/guestfs-erlang.pod:95
4828 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4829 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4830 #: ../python/examples/guestfs-python.pod:40
4831 #: ../ruby/examples/guestfs-ruby.pod:34
4836 #: ../erlang/examples/guestfs-erlang.pod:99
4838 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4839 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4840 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4844 #: ../erlang/examples/guestfs-erlang.pod:110
4845 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4846 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4847 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4848 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4849 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4850 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4851 #: ../python/examples/guestfs-python.pod:54
4852 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4853 #: ../test-tool/libguestfs-test-tool.pod:106
4858 #: ../erlang/examples/guestfs-erlang.pod:112
4859 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4860 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4861 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4862 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4863 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4864 #: ../perl/examples/guestfs-perl.pod:54
4865 #: ../python/examples/guestfs-python.pod:56
4866 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4867 #: ../test-tool/libguestfs-test-tool.pod:108
4868 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4869 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4872 #: ../erlang/examples/guestfs-erlang.pod:116
4873 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4874 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4878 #: ../erlang/examples/guestfs-erlang.pod:118
4879 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4880 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4881 #: ../perl/examples/guestfs-perl.pod:60
4882 #: ../python/examples/guestfs-python.pod:62
4883 #: ../ruby/examples/guestfs-ruby.pod:56
4885 "The examples in this manual page may be freely copied, modified and "
4886 "distributed without any restrictions."
4890 #: ../erlang/examples/guestfs-erlang.pod:121
4891 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4892 #: ../java/examples/guestfs-java.pod:69
4893 #: ../ocaml/examples/guestfs-ocaml.pod:102
4894 #: ../perl/examples/guestfs-perl.pod:63
4895 #: ../python/examples/guestfs-python.pod:65
4896 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4898 "This library is free software; you can redistribute it and/or modify it "
4899 "under the terms of the GNU Lesser General Public License as published by the "
4900 "Free Software Foundation; either version 2 of the License, or (at your "
4901 "option) any later version."
4905 #: ../erlang/examples/guestfs-erlang.pod:126
4906 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4907 #: ../java/examples/guestfs-java.pod:74
4908 #: ../ocaml/examples/guestfs-ocaml.pod:107
4909 #: ../perl/examples/guestfs-perl.pod:68
4910 #: ../python/examples/guestfs-python.pod:70
4911 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4913 "This library is distributed in the hope that it will be useful, but WITHOUT "
4914 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4915 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4920 #: ../erlang/examples/guestfs-erlang.pod:131
4921 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4922 #: ../java/examples/guestfs-java.pod:79
4923 #: ../ocaml/examples/guestfs-ocaml.pod:112
4924 #: ../perl/examples/guestfs-perl.pod:73
4925 #: ../python/examples/guestfs-python.pod:75
4926 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4928 "You should have received a copy of the GNU Lesser General Public License "
4929 "along with this library; if not, write to the Free Software Foundation, "
4930 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4934 #: ../examples/guestfs-examples.pod:5
4935 msgid "guestfs-examples - Examples of using libguestfs from C"
4939 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4942 " #include <guestfs.h>\n"
4945 " #include <guestfs.h>\n"
4949 #: ../examples/guestfs-examples.pod:11
4952 " guestfs_h *g = guestfs_create ();\n"
4953 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4954 " guestfs_launch (g);\n"
4957 " guestfs_h *g = guestfs_create ();\n"
4958 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4959 " guestfs_launch (g);\n"
4963 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4966 " cc prog.c -o prog -lguestfs\n"
4968 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4971 " cc prog.c -o prog -lguestfs\n"
4973 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4977 #: ../examples/guestfs-examples.pod:21
4979 "This manual page contains examples of calling libguestfs from the C "
4980 "programming language. If you are not familiar with using libguestfs, you "
4981 "also need to read L<guestfs(3)>."
4985 #: ../examples/guestfs-examples.pod:35
4987 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4988 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4989 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4993 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4994 #: ../python/examples/guestfs-python.pod:60
4995 #: ../ruby/examples/guestfs-ruby.pod:54
4996 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5000 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5005 #: ../examples/guestfs-recipes.pod:5
5007 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5008 "here. The only way which works for both sorts of output is to just write "
5009 "the URL directly. Do NOT use L<...> for URLs."
5013 #: ../examples/guestfs-recipes.pod:9
5015 "We break with tradition here and don't use ALL CAPS for the section "
5016 "headings, as this makes them much easier to read."
5020 #: ../examples/guestfs-recipes.pod:16
5021 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5025 #: ../examples/guestfs-recipes.pod:20
5027 "This page contains recipes for and links to things you can do using "
5028 "libguestfs, L<guestfish(1)> and the virt tools."
5032 #: ../examples/guestfs-recipes.pod:23
5033 msgid "Audit a virtual machine for setuid files"
5037 #: ../examples/guestfs-recipes.pod:25
5039 "The link below contains a small program which can be used to audit a Linux "
5040 "virtual machine to see what setuid and setgid files it contains."
5044 #: ../examples/guestfs-recipes.pod:28
5046 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5051 #: ../examples/guestfs-recipes.pod:30
5052 msgid "Change the background image in a Windows XP VM"
5056 #: ../examples/guestfs-recipes.pod:32
5058 "The links below explain how to use L<guestfish(1)> to change the background "
5059 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5060 "be substantially different for each version of Windows."
5064 #: ../examples/guestfs-recipes.pod:37
5066 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5067 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5071 #: ../examples/guestfs-recipes.pod:40
5072 msgid "Cloning a virtual machine (Linux)"
5076 #: ../examples/guestfs-recipes.pod:42
5078 "The guestfish technique described in the link below works well for most "
5079 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5084 #: ../examples/guestfs-recipes.pod:46
5086 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5091 #: ../examples/guestfs-recipes.pod:48
5093 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5098 #: ../examples/guestfs-recipes.pod:51
5099 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5103 #: ../examples/guestfs-recipes.pod:53
5104 msgid "Cloning a virtual machine (Windows)"
5108 #: ../examples/guestfs-recipes.pod:55
5110 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5111 "straightforward. Currently there is code in the Aeolus Oz project which "
5112 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5113 "we may add sysprepping ability."
5117 #: ../examples/guestfs-recipes.pod:60
5119 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5120 "list/2011-May/msg00019.html"
5124 #: ../examples/guestfs-recipes.pod:63
5125 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5129 #: ../examples/guestfs-recipes.pod:65
5130 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5134 #: ../examples/guestfs-recipes.pod:67
5137 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5142 #: ../examples/guestfs-recipes.pod:69
5143 msgid "To export just a subdirectory, eg. C</files>, do:"
5147 #: ../examples/guestfs-recipes.pod:71
5150 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5155 #: ../examples/guestfs-recipes.pod:73
5156 msgid "Create empty disk images"
5160 #: ../examples/guestfs-recipes.pod:75
5162 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5163 "The useful guide below explains the options available."
5167 #: ../examples/guestfs-recipes.pod:78
5169 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5174 #: ../examples/guestfs-recipes.pod:80
5175 msgid "Dump raw filesystem content from inside a disk image or VM"
5179 #: ../examples/guestfs-recipes.pod:82
5181 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5182 "filesystem content from any filesystem in a disk image or a VM (even one "
5183 "which is encrypted or buried inside an LV):"
5187 #: ../examples/guestfs-recipes.pod:86
5190 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5195 #: ../examples/guestfs-recipes.pod:88
5198 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5203 #: ../examples/guestfs-recipes.pod:90
5204 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5208 #: ../examples/guestfs-recipes.pod:92
5209 msgid "Edit grub configuration in a VM"
5213 #: ../examples/guestfs-recipes.pod:94
5214 msgid "You can use this to:"
5218 #: ../examples/guestfs-recipes.pod:100
5219 msgid "Fix a virtual machine that does not boot."
5223 #: ../examples/guestfs-recipes.pod:104
5224 msgid "Change which kernel is used to boot the VM."
5228 #: ../examples/guestfs-recipes.pod:108
5229 msgid "Change kernel command line options."
5233 #: ../examples/guestfs-recipes.pod:112
5234 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5238 #: ../examples/guestfs-recipes.pod:114
5241 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5246 #: ../examples/guestfs-recipes.pod:116
5248 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5253 #: ../examples/guestfs-recipes.pod:119
5256 " virt-rescue -d BrokenGuest\n"
5261 #: ../examples/guestfs-recipes.pod:121
5262 msgid "Export any directory from a VM"
5266 #: ../examples/guestfs-recipes.pod:123
5268 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5272 #: ../examples/guestfs-recipes.pod:126
5275 " virt-copy-out -d Guest /home .\n"
5280 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5281 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5282 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5283 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5284 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5285 #: ../tools/virt-win-reg.pl:706
5290 #: ../examples/guestfs-recipes.pod:134
5292 "The final dot of the command is not a printing error. It means we want to "
5293 "copy out to the current directory."
5297 #: ../examples/guestfs-recipes.pod:139
5298 msgid "This creates a directory called C<home> under the current directory."
5302 #: ../examples/guestfs-recipes.pod:143
5304 "If the guest is a Windows guest then you can use drive letters and "
5305 "backslashes, but you must prefix the path with C<win:> and quote it to "
5306 "protect it from the shell, like this:"
5310 #: ../examples/guestfs-recipes.pod:147
5313 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5318 #: ../examples/guestfs-recipes.pod:149
5319 msgid "To get the output as a compressed tarball, do:"
5323 #: ../examples/guestfs-recipes.pod:151
5326 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5331 #: ../examples/guestfs-recipes.pod:153
5333 "Although it sounds tempting, this is usually not a reliable way to get a "
5334 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5335 "org/FAQ.html#backup"
5339 #: ../examples/guestfs-recipes.pod:157
5340 msgid "Find out which user is using the most space"
5344 #: ../examples/guestfs-recipes.pod:159
5346 "This simple script examines a Linux guest to find out which user is using "
5347 "the most space in their home directory:"
5351 #: ../examples/guestfs-recipes.pod:162
5359 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5367 #: ../examples/guestfs-recipes.pod:166
5376 #: ../examples/guestfs-recipes.pod:169
5379 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5384 #: ../examples/guestfs-recipes.pod:171
5387 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5388 " echo -n \"$dir/$d\"\n"
5390 " guestfish --remote du \"$dir/$d\";\n"
5391 " done | sort -nr -k 2\n"
5396 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5399 " guestfish --remote exit\n"
5404 #: ../examples/guestfs-recipes.pod:179
5405 msgid "Get DHCP address from a VM"
5409 #: ../examples/guestfs-recipes.pod:181
5411 "The link below explains the many different possible techniques for getting "
5412 "the last assigned DHCP address of a virtual machine."
5416 #: ../examples/guestfs-recipes.pod:184
5418 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5419 "a-virtual-machine-disk-image/#content"
5423 #: ../examples/guestfs-recipes.pod:186
5425 "In the libguestfs source examples directory you will find the latest version "
5426 "of the C<virt-dhcp-address.c> program."
5430 #: ../examples/guestfs-recipes.pod:189
5431 msgid "Get the operating system product name string"
5435 #: ../examples/guestfs-recipes.pod:191
5436 msgid "Save the following script into a file called C<product-name.sh>:"
5440 #: ../examples/guestfs-recipes.pod:193
5445 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5446 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5447 " guestfish --remote inspect-get-product-name \"$root\"\n"
5448 " guestfish --remote exit\n"
5453 #: ../examples/guestfs-recipes.pod:200
5454 msgid "Make the script executable and run it on a named guest:"
5458 #: ../examples/guestfs-recipes.pod:202
5461 " # product-name.sh RHEL60x64\n"
5462 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5467 #: ../examples/guestfs-recipes.pod:205
5469 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5470 "C<xpath> command line tool or from your favourite programming language:"
5474 #: ../examples/guestfs-recipes.pod:209
5477 " # virt-inspector RHEL60x64 > xml\n"
5478 " # xpath '//product_name' < xml\n"
5481 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5486 #: ../examples/guestfs-recipes.pod:215
5487 msgid "Get the default boot kernel for a Linux VM"
5491 #: ../examples/guestfs-recipes.pod:217
5493 "The link below contains a program to print the default boot kernel for a "
5498 #: ../examples/guestfs-recipes.pod:220
5500 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5501 "kernel-for-a-vm/#content"
5505 #: ../examples/guestfs-recipes.pod:222
5507 "It uses Augeas, and the technique is generally applicable for many different "
5512 #: ../examples/guestfs-recipes.pod:229
5513 msgid "listing the user accounts in the guest"
5517 #: ../examples/guestfs-recipes.pod:233
5518 msgid "what repositories is it configured to use"
5522 #: ../examples/guestfs-recipes.pod:237
5523 msgid "what NTP servers does it connect to"
5527 #: ../examples/guestfs-recipes.pod:241
5528 msgid "what were the boot messages last time it booted"
5532 #: ../examples/guestfs-recipes.pod:245
5533 msgid "listing who was logged in recently"
5537 #: ../examples/guestfs-recipes.pod:249
5538 msgid "http://augeas.net/"
5542 #: ../examples/guestfs-recipes.pod:251
5543 msgid "Install RPMs in a guest"
5547 #: ../examples/guestfs-recipes.pod:253
5549 "The link below contains a method to install RPMs in a guest. In fact the "
5550 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5551 "installs them next time the guest is booted. You could use this technique "
5552 "to install vital security updates in an offline guest."
5556 #: ../examples/guestfs-recipes.pod:259
5558 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5562 #: ../examples/guestfs-recipes.pod:261
5563 msgid "List applications installed in a VM"
5567 #: ../examples/guestfs-recipes.pod:263
5568 msgid "Save the following to a file C<list-apps.sh>:"
5572 #: ../examples/guestfs-recipes.pod:265
5577 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5578 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5579 " guestfish --remote inspect-list-applications \"$root\"\n"
5580 " guestfish --remote exit\n"
5585 #: ../examples/guestfs-recipes.pod:272
5587 "Make the file executable and then you can run it on any named virtual "
5592 #: ../examples/guestfs-recipes.pod:275
5595 " # list-apps.sh WinGuest\n"
5597 " app_name: Mozilla Firefox (3.6.12)\n"
5598 " app_display_name: Mozilla Firefox (3.6.12)\n"
5600 " app_version: 3.6.12 (en-GB)\n"
5602 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5603 " app_trans_path:\n"
5604 " app_publisher: Mozilla\n"
5605 " app_url: http://www.mozilla.com/en-GB/\n"
5606 " app_source_package:\n"
5608 " app_description: Mozilla Firefox\n"
5611 " app_name: VLC media player\n"
5612 " app_display_name: VLC media player 1.1.5\n"
5614 " app_version: 1.1.5\n"
5616 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5617 " app_trans_path:\n"
5618 " app_publisher: VideoLAN\n"
5619 " app_url: http://www.videolan.org/\n"
5620 " app_source_package:\n"
5622 " app_description:\n"
5628 #: ../examples/guestfs-recipes.pod:305
5630 "If you want to run the script on disk images (instead of libvirt virtual "
5631 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5636 #: ../examples/guestfs-recipes.pod:309
5637 msgid "List files and directories in a VM"
5641 #: ../examples/guestfs-recipes.pod:311
5642 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5646 #: ../examples/guestfs-recipes.pod:313
5649 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5654 #: ../examples/guestfs-recipes.pod:315
5655 msgid "List services in a Windows VM"
5659 #: ../examples/guestfs-recipes.pod:317
5661 "The link below contains a script that can be used to list out the services "
5662 "from a Windows VM, and whether those services run at boot time or are loaded "
5667 #: ../examples/guestfs-recipes.pod:321
5669 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5674 #: ../examples/guestfs-recipes.pod:323
5675 msgid "Make a disk image sparse"
5679 #: ../examples/guestfs-recipes.pod:325
5681 "The link below contains some guides for making a disk image sparse (or "
5682 "reintroducing sparseness)."
5686 #: ../examples/guestfs-recipes.pod:328
5688 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5692 #: ../examples/guestfs-recipes.pod:330
5693 msgid "Monitor disk usage over time"
5697 #: ../examples/guestfs-recipes.pod:332
5699 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5700 "The link below contains a guide."
5704 #: ../examples/guestfs-recipes.pod:335
5705 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5709 #: ../examples/guestfs-recipes.pod:337
5710 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5714 #: ../examples/guestfs-recipes.pod:339
5716 "L<guestfish(1)> plus the tools described in the link below can be used to "
5717 "read out the Windows Event Log from any virtual machine running Windows "
5718 "Vista or a later version."
5722 #: ../examples/guestfs-recipes.pod:343
5724 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5725 "guestfish/#content"
5729 #: ../examples/guestfs-recipes.pod:345
5730 msgid "Remove root password (Linux)"
5734 #: ../examples/guestfs-recipes.pod:347
5736 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5737 "files. One use is to remove the root password from a Linux guest:"
5741 #: ../examples/guestfs-recipes.pod:350
5744 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5749 #: ../examples/guestfs-recipes.pod:352
5750 msgid "Remove Administrator password (Windows)"
5754 #: ../examples/guestfs-recipes.pod:354
5756 "The link below contains one technique for removing the Administrator "
5757 "password from a Windows VM, or to be more precise, it gives you a command "
5758 "prompt the next time you log in which you can use to bypass any security:"
5762 #: ../examples/guestfs-recipes.pod:359
5764 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5765 "administrator-password-with-guestfish/"
5769 #: ../examples/guestfs-recipes.pod:361
5770 msgid "Unpack a live CD"
5774 #: ../examples/guestfs-recipes.pod:363
5776 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5777 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5778 "layers, as outlined in the guide below."
5782 #: ../examples/guestfs-recipes.pod:367
5784 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5789 #: ../examples/guestfs-recipes.pod:369
5790 msgid "Uploading and downloading files"
5794 #: ../examples/guestfs-recipes.pod:371
5796 "The link below contains general tips on uploading (copying in) and "
5797 "downloading (copying out) files from VMs."
5801 #: ../examples/guestfs-recipes.pod:374
5803 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5807 #: ../examples/guestfs-recipes.pod:376
5808 msgid "Use libguestfs tools on VMware ESX guests"
5812 #: ../examples/guestfs-recipes.pod:378
5814 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5815 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5819 #: ../examples/guestfs-recipes.pod:382
5821 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5826 #: ../examples/guestfs-recipes.pod:386
5828 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5829 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5830 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5834 #: ../examples/guestfs-recipes.pod:403
5835 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5839 #: ../fish/guestfish-actions.pod:1
5844 #: ../fish/guestfish-actions.pod:3
5847 " add-cdrom filename\n"
5852 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5853 msgid "This function adds a virtual CD-ROM disk image to the guest."
5857 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5858 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5862 #: ../fish/guestfish-actions.pod:15
5864 "This call checks for the existence of C<filename>. This stops you from "
5865 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5866 "and C<http:> URLs. To specify those, use the general L</config> call "
5871 #: ../fish/guestfish-actions.pod:22
5873 "If you just want to add an ISO file (often you use this as an efficient way "
5874 "to transfer large files into the guest), then you should probably use L</add-"
5875 "drive-ro> instead."
5879 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5880 #: ../fish/guestfish-actions.pod:182
5882 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5887 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5888 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5889 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5890 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5891 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5892 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5893 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5894 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5895 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5896 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5897 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5898 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5899 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5900 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5901 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5902 #: ../src/guestfs-actions.pod:8059
5904 "Deprecated functions will not be removed from the API, but the fact that "
5905 "they are deprecated indicates that there are problems with correct use of "
5910 #: ../fish/guestfish-actions.pod:35
5915 #: ../fish/guestfish-actions.pod:37
5920 #: ../fish/guestfish-actions.pod:39
5923 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5928 #: ../fish/guestfish-actions.pod:41
5930 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5931 "It works by connecting to libvirt, requesting the domain and domain XML from "
5932 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5936 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5938 "The number of disks added is returned. This operation is atomic: if an "
5939 "error is returned, then no disks are added."
5943 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5945 "This function does some minimal checks to make sure the libvirt domain is "
5946 "not running (unless C<readonly> is true). In a future version we will try "
5947 "to acquire the libvirt lock on each disk."
5951 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5953 "Disks must be accessible locally. This often means that adding disks from a "
5954 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
5955 "unless those disks are accessible via the same device path locally too."
5959 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5961 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5962 "libvirt.org/uri.html>). If this is not set then we connect to the default "
5963 "libvirt URI (or one set through an environment variable, see the libvirt "
5964 "documentation for full details)."
5968 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5970 "The optional C<live> flag controls whether this call will try to connect to "
5971 "a running virtual machine C<guestfsd> process if it sees a suitable "
5972 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
5973 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
5974 "DAEMONS> for more information."
5978 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5980 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5981 "passed instead of the domain name. The C<dom> string is treated as a UUID "
5982 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5987 #: ../fish/guestfish-actions.pod:76
5989 "The other optional parameters are passed directly through to L</add-drive-"
5994 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5995 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5996 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5997 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5998 #: ../fish/guestfish-actions.pod:3522
6000 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6004 #: ../fish/guestfish-actions.pod:81
6009 #: ../fish/guestfish-actions.pod:83
6012 " add-drive filename\n"
6015 " add-drive назва_файла\n"
6019 #: ../fish/guestfish-actions.pod:85
6021 "This function is the equivalent of calling L</add-drive-opts> with no "
6022 "optional parameters, so the disk is added writable, with the format being "
6023 "detected automatically."
6027 #: ../fish/guestfish-actions.pod:89
6029 "Automatic detection of the format opens you up to a potential security hole "
6030 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6031 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6032 "you should think about replacing calls to this function with calls to L</add-"
6033 "drive-opts>, and specifying the format."
6037 #: ../fish/guestfish-actions.pod:96
6038 msgid "add-drive-opts"
6039 msgstr "add-drive-opts"
6042 #: ../fish/guestfish-actions.pod:98
6047 #: ../fish/guestfish-actions.pod:100
6050 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6055 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6057 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6058 "The first time you call this function, the disk appears as C</dev/sda>, the "
6059 "second time as C</dev/sdb>, and so on."
6063 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6065 "You don't necessarily need to be root when using libguestfs. However you "
6066 "obviously do need sufficient permissions to access the filename for whatever "
6067 "operations you want to perform (ie. read access if you just want to read the "
6068 "image or write access if you want to modify the image)."
6072 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6073 msgid "This call checks that C<filename> exists."
6077 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
6078 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
6079 msgid "The optional arguments are:"
6083 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6085 msgstr "C<readonly>"
6088 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6090 "If true then the image is treated as read-only. Writes are still allowed, "
6091 "but they are stored in a temporary snapshot overlay which is discarded at "
6092 "the end. The disk that you add is not modified."
6096 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6101 #: ../fish/guestfish-actions.pod:127
6103 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6104 "add-drive-ro>) then the format is automatically detected. Possible formats "
6105 "include C<raw> and C<qcow2>."
6109 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6111 "Automatic detection of the format opens you up to a potential security hole "
6112 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6113 "RHBZ#642934. Specifying the format closes this security hole."
6117 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6122 #: ../fish/guestfish-actions.pod:138
6124 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6125 "add-drive-with-if> call (q.v.)"
6129 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6131 #| msgid "C<app_name>"
6133 msgstr "C<app_name>"
6136 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6138 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6139 "a hint to the guest inspection process if it is available."
6143 #: ../fish/guestfish-actions.pod:150
6144 msgid "add-drive-ro"
6145 msgstr "add-drive-ro"
6148 #: ../fish/guestfish-actions.pod:152
6153 #: ../fish/guestfish-actions.pod:154
6156 " add-drive-ro filename\n"
6161 #: ../fish/guestfish-actions.pod:156
6163 "This function is the equivalent of calling L</add-drive-opts> with the "
6164 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6165 "is added read-only, with the format being detected automatically."
6169 #: ../fish/guestfish-actions.pod:161
6170 msgid "add-drive-ro-with-if"
6174 #: ../fish/guestfish-actions.pod:163
6177 " add-drive-ro-with-if filename iface\n"
6182 #: ../fish/guestfish-actions.pod:165
6184 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6185 "interface emulation to use at run time."
6189 #: ../fish/guestfish-actions.pod:175
6190 msgid "add-drive-with-if"
6194 #: ../fish/guestfish-actions.pod:177
6197 " add-drive-with-if filename iface\n"
6202 #: ../fish/guestfish-actions.pod:179
6204 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6205 "interface emulation to use at run time."
6209 #: ../fish/guestfish-actions.pod:189
6214 #: ../fish/guestfish-actions.pod:191
6217 " aug-clear augpath\n"
6222 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6224 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6225 "L<augtool(1)> C<clear> command."
6229 #: ../fish/guestfish-actions.pod:196
6234 #: ../fish/guestfish-actions.pod:198
6242 #: ../fish/guestfish-actions.pod:200
6244 "Close the current Augeas handle and free up any resources used by it. After "
6245 "calling this, you have to call L</aug-init> again before you can use any "
6246 "other Augeas functions."
6250 #: ../fish/guestfish-actions.pod:205
6255 #: ../fish/guestfish-actions.pod:207
6258 " aug-defnode name expr val\n"
6263 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6265 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6269 #: ../fish/guestfish-actions.pod:212
6271 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6272 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6273 "containing that single node."
6277 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6279 "On success this returns a pair containing the number of nodes in the "
6280 "nodeset, and a boolean flag if a node was created."
6284 #: ../fish/guestfish-actions.pod:220
6289 #: ../fish/guestfish-actions.pod:222
6292 " aug-defvar name expr\n"
6297 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6299 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6300 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6304 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6306 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6307 "evaluates to something which is not a nodeset."
6311 #: ../fish/guestfish-actions.pod:231
6316 #: ../fish/guestfish-actions.pod:233
6319 " aug-get augpath\n"
6324 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6326 "Look up the value associated with C<path>. If C<path> matches exactly one "
6327 "node, the C<value> is returned."
6331 #: ../fish/guestfish-actions.pod:238
6336 #: ../fish/guestfish-actions.pod:240
6339 " aug-init root flags\n"
6344 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6346 "Create a new Augeas handle for editing configuration files. If there was "
6347 "any previous Augeas handle associated with this guestfs session, then it is "
6352 #: ../fish/guestfish-actions.pod:246
6353 msgid "You must call this before using any other L</aug-*> commands."
6357 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6359 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6363 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6365 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6366 "logical I<or> of the following integers:"
6370 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6371 msgid "C<AUG_SAVE_BACKUP> = 1"
6372 msgstr "C<AUG_SAVE_BACKUP> = 1"
6375 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6376 msgid "Keep the original file with a C<.augsave> extension."
6380 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6381 msgid "C<AUG_SAVE_NEWFILE> = 2"
6382 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6385 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6387 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6388 "original. Overrides C<AUG_SAVE_BACKUP>."
6392 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6393 msgid "C<AUG_TYPE_CHECK> = 4"
6394 msgstr "C<AUG_TYPE_CHECK> = 4"
6397 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6398 msgid "Typecheck lenses."
6402 #: ../fish/guestfish-actions.pod:271
6404 "This option is only useful when debugging Augeas lenses. Use of this option "
6405 "may require additional memory for the libguestfs appliance. You may need to "
6406 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6410 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6411 msgid "C<AUG_NO_STDINC> = 8"
6412 msgstr "C<AUG_NO_STDINC> = 8"
6415 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6416 msgid "Do not use standard load path for modules."
6420 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6421 msgid "C<AUG_SAVE_NOOP> = 16"
6422 msgstr "C<AUG_SAVE_NOOP> = 16"
6425 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6426 msgid "Make save a no-op, just record what would have been changed."
6430 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6431 msgid "C<AUG_NO_LOAD> = 32"
6432 msgstr "C<AUG_NO_LOAD> = 32"
6435 #: ../fish/guestfish-actions.pod:286
6436 msgid "Do not load the tree in L</aug-init>."
6440 #: ../fish/guestfish-actions.pod:290
6441 msgid "To close the handle, you can call L</aug-close>."
6445 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6446 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6450 #: ../fish/guestfish-actions.pod:294
6455 #: ../fish/guestfish-actions.pod:296
6458 " aug-insert augpath label true|false\n"
6463 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6465 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6466 "or after C<path> (depending on the boolean flag C<before>)."
6470 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6472 "C<path> must match exactly one existing node in the tree, and C<label> must "
6473 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6477 #: ../fish/guestfish-actions.pod:306
6482 #: ../fish/guestfish-actions.pod:308
6490 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6491 msgid "Load files into the tree."
6492 msgstr "Завантажити файли до ієрархії."
6495 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6496 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6500 #: ../fish/guestfish-actions.pod:315
6505 #: ../fish/guestfish-actions.pod:317
6513 #: ../fish/guestfish-actions.pod:319
6515 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6516 "resulting nodes into alphabetical order."
6520 #: ../fish/guestfish-actions.pod:322
6525 #: ../fish/guestfish-actions.pod:324
6528 " aug-match augpath\n"
6533 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6535 "Returns a list of paths which match the path expression C<path>. The "
6536 "returned paths are sufficiently qualified so that they match exactly one "
6537 "node in the current tree."
6541 #: ../fish/guestfish-actions.pod:330
6546 #: ../fish/guestfish-actions.pod:332
6549 " aug-mv src dest\n"
6554 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6556 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6557 "C<dest> is overwritten if it exists."
6561 #: ../fish/guestfish-actions.pod:337
6566 #: ../fish/guestfish-actions.pod:339
6574 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6575 msgid "Remove C<path> and all of its children."
6579 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6580 msgid "On success this returns the number of entries which were removed."
6584 #: ../fish/guestfish-actions.pod:345
6589 #: ../fish/guestfish-actions.pod:347
6597 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6598 msgid "This writes all pending changes to disk."
6602 #: ../fish/guestfish-actions.pod:351
6604 "The flags which were passed to L</aug-init> affect exactly how files are "
6609 #: ../fish/guestfish-actions.pod:354
6614 #: ../fish/guestfish-actions.pod:356
6617 " aug-set augpath val\n"
6622 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6623 msgid "Set the value associated with C<path> to C<val>."
6627 #: ../fish/guestfish-actions.pod:360
6629 "In the Augeas API, it is possible to clear a node by setting the value to "
6630 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6631 "this call. Instead you must use the L</aug-clear> call."
6635 #: ../fish/guestfish-actions.pod:365
6640 #: ../fish/guestfish-actions.pod:367
6643 " available 'groups ...'\n"
6648 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6650 "This command is used to check the availability of some groups of "
6651 "functionality in the appliance, which not all builds of the libguestfs "
6652 "appliance will be able to provide."
6656 #: ../fish/guestfish-actions.pod:373
6658 "The libguestfs groups, and the functions that those groups correspond to, "
6659 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6660 "runtime by calling L</available-all-groups>."
6664 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6666 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6667 "\"]> would check for the availability of the Linux inotify functions and "
6668 "Augeas (configuration file editing) functions."
6672 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6673 msgid "The command returns no error if I<all> requested groups are available."
6677 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6679 "It fails with an error if one or more of the requested groups is unavailable "
6684 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6686 "If an unknown group name is included in the list of groups then an error is "
6691 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6693 msgstr "I<Нотатки:>"
6696 #: ../fish/guestfish-actions.pod:397
6697 msgid "You must call L</launch> before calling this function."
6701 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6703 "The reason is because we don't know what groups are supported by the "
6704 "appliance/daemon until it is running and can be queried."
6708 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6710 "If a group of functions is available, this does not necessarily mean that "
6711 "they will work. You still have to check for errors when calling individual "
6712 "API functions even if they are available."
6716 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6718 "It is usually the job of distro packagers to build complete functionality "
6719 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6720 "with all requirements satisfied, will support everything."
6724 #: ../fish/guestfish-actions.pod:419
6726 "This call was added in version C<1.0.80>. In previous versions of "
6727 "libguestfs all you could do would be to speculatively execute a command to "
6728 "find out if the daemon implemented it. See also L</version>."
6732 #: ../fish/guestfish-actions.pod:426
6733 msgid "available-all-groups"
6737 #: ../fish/guestfish-actions.pod:428
6740 " available-all-groups\n"
6745 #: ../fish/guestfish-actions.pod:430
6747 "This command returns a list of all optional groups that this daemon knows "
6748 "about. Note this returns both supported and unsupported groups. To find "
6749 "out which ones the daemon can actually support you have to call L</"
6750 "available> on each member of the returned list."
6754 #: ../fish/guestfish-actions.pod:436
6755 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6759 #: ../fish/guestfish-actions.pod:438
6764 #: ../fish/guestfish-actions.pod:440
6767 " base64-in (base64file|-) filename\n"
6772 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6774 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6778 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6779 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6780 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6781 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6782 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6783 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6784 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6785 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6786 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6790 #: ../fish/guestfish-actions.pod:447
6795 #: ../fish/guestfish-actions.pod:449
6798 " base64-out filename (base64file|-)\n"
6803 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6805 "This command downloads the contents of C<filename>, writing it out to local "
6806 "file C<base64file> encoded as base64."
6810 #: ../fish/guestfish-actions.pod:456
6811 msgid "blockdev-flushbufs"
6815 #: ../fish/guestfish-actions.pod:458
6818 " blockdev-flushbufs device\n"
6823 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6825 "This tells the kernel to flush internal buffers associated with C<device>."
6829 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6830 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6831 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6832 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6833 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6834 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6835 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6836 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6837 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6838 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6839 msgid "This uses the L<blockdev(8)> command."
6843 #: ../fish/guestfish-actions.pod:465
6844 msgid "blockdev-getbsz"
6848 #: ../fish/guestfish-actions.pod:467
6851 " blockdev-getbsz device\n"
6856 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6857 msgid "This returns the block size of a device."
6861 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6862 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6864 "(Note this is different from both I<size in blocks> and I<filesystem block "
6869 #: ../fish/guestfish-actions.pod:476
6870 msgid "blockdev-getro"
6874 #: ../fish/guestfish-actions.pod:478
6877 " blockdev-getro device\n"
6882 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6884 "Returns a boolean indicating if the block device is read-only (true if read-"
6885 "only, false if not)."
6889 #: ../fish/guestfish-actions.pod:485
6890 msgid "blockdev-getsize64"
6894 #: ../fish/guestfish-actions.pod:487
6897 " blockdev-getsize64 device\n"
6902 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6903 msgid "This returns the size of the device in bytes."
6907 #: ../fish/guestfish-actions.pod:491
6908 msgid "See also L</blockdev-getsz>."
6909 msgstr "Див. також L</blockdev-getsz>."
6912 #: ../fish/guestfish-actions.pod:495
6913 msgid "blockdev-getss"
6917 #: ../fish/guestfish-actions.pod:497
6920 " blockdev-getss device\n"
6925 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6927 "This returns the size of sectors on a block device. Usually 512, but can be "
6928 "larger for modern devices."
6932 #: ../fish/guestfish-actions.pod:502
6934 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6938 #: ../fish/guestfish-actions.pod:507
6939 msgid "blockdev-getsz"
6943 #: ../fish/guestfish-actions.pod:509
6946 " blockdev-getsz device\n"
6951 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6953 "This returns the size of the device in units of 512-byte sectors (even if "
6954 "the sectorsize isn't 512 bytes ... weird)."
6958 #: ../fish/guestfish-actions.pod:514
6960 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6961 "blockdev-getsize64> for the more useful I<size in bytes>."
6965 #: ../fish/guestfish-actions.pod:520
6966 msgid "blockdev-rereadpt"
6970 #: ../fish/guestfish-actions.pod:522
6973 " blockdev-rereadpt device\n"
6978 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6979 msgid "Reread the partition table on C<device>."
6983 #: ../fish/guestfish-actions.pod:528
6984 msgid "blockdev-setbsz"
6988 #: ../fish/guestfish-actions.pod:530
6991 " blockdev-setbsz device blocksize\n"
6996 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6997 msgid "This sets the block size of a device."
7001 #: ../fish/guestfish-actions.pod:539
7002 msgid "blockdev-setro"
7006 #: ../fish/guestfish-actions.pod:541
7009 " blockdev-setro device\n"
7014 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7015 msgid "Sets the block device named C<device> to read-only."
7019 #: ../fish/guestfish-actions.pod:547
7020 msgid "blockdev-setrw"
7024 #: ../fish/guestfish-actions.pod:549
7027 " blockdev-setrw device\n"
7032 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7033 msgid "Sets the block device named C<device> to read-write."
7037 #: ../fish/guestfish-actions.pod:555
7038 msgid "btrfs-filesystem-resize"
7042 #: ../fish/guestfish-actions.pod:557
7045 " btrfs-filesystem-resize mountpoint [size:..]\n"
7050 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7051 msgid "This command resizes a btrfs filesystem."
7055 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7057 "Note that unlike other resize calls, the filesystem has to be mounted and "
7058 "the parameter is the mountpoint not the device (this is a requirement of "
7063 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
7064 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
7065 msgid "The optional parameters are:"
7069 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
7070 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
7075 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7077 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7078 "resized to the maximum size."
7082 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7083 msgid "See also L<btrfs(8)>."
7084 msgstr "Див. також L<btrfs(8)>."
7087 #: ../fish/guestfish-actions.pod:580
7088 msgid "case-sensitive-path"
7092 #: ../fish/guestfish-actions.pod:582
7095 " case-sensitive-path path\n"
7100 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7102 "This can be used to resolve case insensitive paths on a filesystem which is "
7103 "case sensitive. The use case is to resolve paths which you have read from "
7104 "Windows configuration files or the Windows Registry, to the true path."
7108 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7110 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7111 "(and probably others), which is that although the underlying filesystem is "
7112 "case-insensitive, the driver exports the filesystem to Linux as case-"
7117 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7119 "One consequence of this is that special directories such as C<c:\\windows> "
7120 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7121 "precise details of how they were created. In Windows itself this would not "
7126 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7128 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7133 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7135 "This function resolves the true case of each element in the path and returns "
7136 "the case-sensitive path."
7140 #: ../fish/guestfish-actions.pod:606
7142 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7143 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7144 "the directories were originally created under Windows)."
7148 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7149 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7153 #: ../fish/guestfish-actions.pod:614
7154 msgid "See also L</realpath>."
7155 msgstr "Див. також L</realpath>."
7158 #: ../fish/guestfish-actions.pod:616
7163 #: ../fish/guestfish-actions.pod:618
7173 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7174 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7175 msgid "Return the contents of the file named C<path>."
7179 #: ../fish/guestfish-actions.pod:622
7181 "Note that this function cannot correctly handle binary files (specifically, "
7182 "files containing C<\\0> character which is treated as end of string). For "
7183 "those you need to use the L</read-file> or L</download> functions which have "
7184 "a more complex interface."
7188 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7189 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7190 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7191 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7192 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7193 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7194 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7195 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7196 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7197 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7198 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7199 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7200 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7201 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7202 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7203 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7204 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7205 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7206 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7207 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7208 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7209 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7210 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7211 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7212 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7213 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7214 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7215 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7216 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7217 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7218 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7219 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7221 "Because of the message protocol, there is a transfer limit of somewhere "
7222 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7226 #: ../fish/guestfish-actions.pod:630
7231 #: ../fish/guestfish-actions.pod:632
7234 " checksum csumtype path\n"
7239 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7241 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7245 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7247 "The type of checksum to compute is given by the C<csumtype> parameter which "
7248 "must have one of the following values:"
7252 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7257 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7259 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7264 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7269 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7270 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7274 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7279 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7280 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7284 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7289 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7290 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7294 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7299 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7300 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7304 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7309 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7310 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7314 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7319 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7320 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7324 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7325 msgid "The checksum is returned as a printable string."
7329 #: ../fish/guestfish-actions.pod:675
7330 msgid "To get the checksum for a device, use L</checksum-device>."
7334 #: ../fish/guestfish-actions.pod:677
7335 msgid "To get the checksums for many files, use L</checksums-out>."
7339 #: ../fish/guestfish-actions.pod:679
7340 msgid "checksum-device"
7341 msgstr "checksum-device"
7344 #: ../fish/guestfish-actions.pod:681
7347 " checksum-device csumtype device\n"
7352 #: ../fish/guestfish-actions.pod:683
7354 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7355 "device named C<device>. For the types of checksums supported see the L</"
7356 "checksum> command."
7360 #: ../fish/guestfish-actions.pod:687
7361 msgid "checksums-out"
7365 #: ../fish/guestfish-actions.pod:689
7368 " checksums-out csumtype directory (sumsfile|-)\n"
7373 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7375 "This command computes the checksums of all regular files in C<directory> and "
7376 "then emits a list of those checksums to the local output file C<sumsfile>."
7380 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7382 "This can be used for verifying the integrity of a virtual machine. However "
7383 "to be properly secure you should pay attention to the output of the checksum "
7384 "command (it uses the ones from GNU coreutils). In particular when the "
7385 "filename is not printable, coreutils uses a special backslash syntax. For "
7386 "more information, see the GNU coreutils info file."
7390 #: ../fish/guestfish-actions.pod:705
7395 #: ../fish/guestfish-actions.pod:707
7398 " chmod mode path\n"
7403 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7405 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7410 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7412 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7413 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7418 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7419 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7420 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7421 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7422 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7423 msgid "The mode actually set is affected by the umask."
7427 #: ../fish/guestfish-actions.pod:718
7432 #: ../fish/guestfish-actions.pod:720
7435 " chown owner group path\n"
7440 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7441 msgid "Change the file owner to C<owner> and group to C<group>."
7445 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7446 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7448 "Only numeric uid and gid are supported. If you want to use names, you will "
7449 "need to locate and parse the password file yourself (Augeas support makes "
7450 "this relatively easy)."
7454 #: ../fish/guestfish-actions.pod:728
7459 #: ../fish/guestfish-actions.pod:730
7462 " command 'arguments ...'\n"
7465 " command 'параметри...'\n"
7469 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7471 "This call runs a command from the guest filesystem. The filesystem must be "
7472 "mounted, and must contain a compatible operating system (ie. something "
7473 "Linux, with the same or compatible processor architecture)."
7477 #: ../fish/guestfish-actions.pod:737
7479 "The single parameter is an argv-style list of arguments. The first element "
7480 "is the name of the program to run. Subsequent elements are parameters. The "
7481 "list must be non-empty (ie. must contain a program name). Note that the "
7482 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7486 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7487 msgid "The return value is anything printed to I<stdout> by the command."
7491 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7493 "If the command returns a non-zero exit status, then this function returns an "
7494 "error message. The error message string is the content of I<stderr> from "
7499 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7501 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7502 "bin>. If you require a program from another location, you should provide "
7503 "the full path in the first parameter."
7507 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7509 "Shared libraries and data files required by the program must be available on "
7510 "filesystems which are mounted in the correct places. It is the caller's "
7511 "responsibility to ensure all filesystems that are needed are mounted at the "
7516 #: ../fish/guestfish-actions.pod:765
7517 msgid "command-lines"
7521 #: ../fish/guestfish-actions.pod:767
7524 " command-lines 'arguments ...'\n"
7529 #: ../fish/guestfish-actions.pod:769
7531 "This is the same as L</command>, but splits the result into a list of lines."
7535 #: ../fish/guestfish-actions.pod:772
7536 msgid "See also: L</sh-lines>"
7537 msgstr "Див. також L</sh-lines>"
7540 #: ../fish/guestfish-actions.pod:777
7541 msgid "compress-device-out"
7545 #: ../fish/guestfish-actions.pod:779
7548 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7553 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7555 "This command compresses C<device> and writes it out to the local file "
7560 #: ../fish/guestfish-actions.pod:784
7562 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7567 #: ../fish/guestfish-actions.pod:791
7568 msgid "compress-out"
7572 #: ../fish/guestfish-actions.pod:793
7575 " compress-out ctype file (zfile|-) [level:..]\n"
7580 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7582 "This command compresses C<file> and writes it out to the local file C<zfile>."
7586 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7588 "The compression program used is controlled by the C<ctype> parameter. "
7589 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7590 "Some compression types may not be supported by particular builds of "
7591 "libguestfs, in which case you will get an error containing the substring "
7592 "\"not supported\"."
7596 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7598 "The optional C<level> parameter controls compression level. The meaning and "
7599 "default for this parameter depends on the compression program being used."
7603 #: ../fish/guestfish-actions.pod:812
7608 #: ../fish/guestfish-actions.pod:814
7611 " config qemuparam qemuvalue\n"
7616 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7618 "This can be used to add arbitrary qemu command line parameters of the form "
7619 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7620 "setting some parameters which would interfere with parameters that we use."
7624 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7625 msgid "The first character of C<param> string must be a C<-> (dash)."
7629 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7630 msgid "C<value> can be NULL."
7634 #: ../fish/guestfish-actions.pod:825
7639 #: ../fish/guestfish-actions.pod:827
7642 " copy-size src dest size\n"
7647 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7649 "This command copies exactly C<size> bytes from one source device or file "
7650 "C<src> to another destination device or file C<dest>."
7654 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7656 "Note this will fail if the source is too short or if the destination is not "
7661 #: ../fish/guestfish-actions.pod:835
7666 #: ../fish/guestfish-actions.pod:837
7674 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7676 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7677 "destination filename or destination directory."
7681 #: ../fish/guestfish-actions.pod:842
7686 #: ../fish/guestfish-actions.pod:844
7694 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7696 "This copies a file or directory from C<src> to C<dest> recursively using the "
7701 #: ../fish/guestfish-actions.pod:849
7706 #: ../fish/guestfish-actions.pod:851
7714 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7716 "This command copies from one source device or file C<src> to another "
7717 "destination device or file C<dest>. Normally you would use this to copy to "
7718 "or from a device or partition, for example to duplicate a filesystem."
7722 #: ../fish/guestfish-actions.pod:858
7724 "If the destination is a device, it must be as large or larger than the "
7725 "source file or device, otherwise the copy will fail. This command cannot do "
7726 "partial copies (see L</copy-size>)."
7730 #: ../fish/guestfish-actions.pod:862
7735 #: ../fish/guestfish-actions.pod:864
7745 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7746 msgid "This command runs the C<df> command to report disk space used."
7750 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7752 "This command is mostly useful for interactive sessions. It is I<not> "
7753 "intended that you try to parse the output string. Use L</statvfs> from "
7758 #: ../fish/guestfish-actions.pod:872
7763 #: ../fish/guestfish-actions.pod:874
7773 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7775 "This command runs the C<df -h> command to report disk space used in human-"
7780 #: ../fish/guestfish-actions.pod:883
7785 #: ../fish/guestfish-actions.pod:885
7795 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7797 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
7798 "This is sometimes useful for extended debugging of problems."
7802 #: ../fish/guestfish-actions.pod:891
7804 "Another way to get the same information is to enable verbose messages with "
7805 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7806 "before running the program."
7810 #: ../fish/guestfish-actions.pod:896
7815 #: ../fish/guestfish-actions.pod:898
7818 " download remotefilename (filename|-)\n"
7823 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7824 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7826 "Download file C<remotefilename> and save it as C<filename> on the local "
7831 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7832 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7833 msgid "C<filename> can also be a named pipe."
7837 #: ../fish/guestfish-actions.pod:905
7838 msgid "See also L</upload>, L</cat>."
7842 #: ../fish/guestfish-actions.pod:909
7843 msgid "download-offset"
7844 msgstr "download-offset"
7847 #: ../fish/guestfish-actions.pod:911
7850 " download-offset remotefilename (filename|-) offset size\n"
7855 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7857 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7858 "region must be within the file or device)."
7862 #: ../fish/guestfish-actions.pod:919
7864 "Note that there is no limit on the amount of data that can be downloaded "
7865 "with this call, unlike with L</pread>, and this call always reads the full "
7866 "amount unless an error occurs."
7870 #: ../fish/guestfish-actions.pod:924
7871 msgid "See also L</download>, L</pread>."
7875 #: ../fish/guestfish-actions.pod:928
7880 #: ../fish/guestfish-actions.pod:930
7883 " drop-caches whattodrop\n"
7888 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7890 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7891 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
7892 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7896 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7897 msgid "Setting C<whattodrop> to 3 should drop everything."
7901 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7903 "This automatically calls L<sync(2)> before the operation, so that the "
7904 "maximum guest memory is freed."
7908 #: ../fish/guestfish-actions.pod:942
7913 #: ../fish/guestfish-actions.pod:944
7923 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7925 "This command runs the C<du -s> command to estimate file space usage for "
7930 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7932 "C<path> can be a file or a directory. If C<path> is a directory then the "
7933 "estimate includes the contents of the directory and all subdirectories "
7938 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7940 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7944 #: ../fish/guestfish-actions.pod:956
7949 #: ../fish/guestfish-actions.pod:958
7952 " e2fsck-f device\n"
7957 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7959 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7960 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7965 #: ../fish/guestfish-actions.pod:964
7967 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
7968 "should use L</fsck>."
7972 #: ../fish/guestfish-actions.pod:967
7977 #: ../fish/guestfish-actions.pod:969
7980 " echo-daemon 'words ...'\n"
7985 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7987 "This command concatenates the list of C<words> passed with single spaces "
7988 "between them and returns the resulting string."
7992 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7993 msgid "You can use this command to test the connection through to the daemon."
7997 #: ../fish/guestfish-actions.pod:976
7998 msgid "See also L</ping-daemon>."
7999 msgstr "Див. також L</ping-daemon>."
8002 #: ../fish/guestfish-actions.pod:978
8007 #: ../fish/guestfish-actions.pod:980
8010 " egrep regex path\n"
8015 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
8017 "This calls the external C<egrep> program and returns the matching lines."
8021 #: ../fish/guestfish-actions.pod:988
8026 #: ../fish/guestfish-actions.pod:990
8029 " egrepi regex path\n"
8034 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
8036 "This calls the external C<egrep -i> program and returns the matching lines."
8040 #: ../fish/guestfish-actions.pod:998
8045 #: ../fish/guestfish-actions.pod:1000
8048 " equal file1 file2\n"
8051 " equal файл1 файл2\n"
8055 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
8057 "This compares the two files C<file1> and C<file2> and returns true if their "
8058 "content is exactly equal, or false otherwise."
8062 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
8063 msgid "The external L<cmp(1)> program is used for the comparison."
8067 #: ../fish/guestfish-actions.pod:1007
8072 #: ../fish/guestfish-actions.pod:1009
8082 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
8084 "This returns C<true> if and only if there is a file, directory (or anything) "
8085 "with the given C<path> name."
8089 #: ../fish/guestfish-actions.pod:1014
8090 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8091 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8094 #: ../fish/guestfish-actions.pod:1016
8099 #: ../fish/guestfish-actions.pod:1018
8102 " fallocate path len\n"
8105 " fallocate шлях довжина\n"
8109 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
8110 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
8112 "This command preallocates a file (containing zero bytes) named C<path> of "
8113 "size C<len> bytes. If the file exists already, it is overwritten."
8117 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
8119 "Do not confuse this with the guestfish-specific C<alloc> command which "
8120 "allocates a file in the host and attaches it as a device."
8124 #: ../fish/guestfish-actions.pod:1028
8126 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8131 #: ../fish/guestfish-actions.pod:1035
8133 msgstr "fallocate64"
8136 #: ../fish/guestfish-actions.pod:1037
8139 " fallocate64 path len\n"
8142 " fallocate64 шлях довжина\n"
8146 #: ../fish/guestfish-actions.pod:1043
8148 "Note that this call allocates disk blocks for the file. To create a sparse "
8149 "file use L</truncate-size> instead."
8153 #: ../fish/guestfish-actions.pod:1046
8155 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8156 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8157 "maximum size of files created through that call to 1GB."
8161 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8163 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8164 "commands which create a file in the host and attach it as a device."
8168 #: ../fish/guestfish-actions.pod:1055
8173 #: ../fish/guestfish-actions.pod:1057
8176 " fgrep pattern path\n"
8179 " fgrep шаблон шлях\n"
8183 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8185 "This calls the external C<fgrep> program and returns the matching lines."
8189 #: ../fish/guestfish-actions.pod:1065
8194 #: ../fish/guestfish-actions.pod:1067
8197 " fgrepi pattern path\n"
8200 " fgrepi шаблон шлях\n"
8204 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8206 "This calls the external C<fgrep -i> program and returns the matching lines."
8210 #: ../fish/guestfish-actions.pod:1075
8215 #: ../fish/guestfish-actions.pod:1077
8225 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8227 "This call uses the standard L<file(1)> command to determine the type or "
8228 "contents of the file."
8232 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8234 "This call will also transparently look inside various types of compressed "
8239 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8241 "The exact command which runs is C<file -zb path>. Note in particular that "
8242 "the filename is not prepended to the output (the I<-b> option)."
8246 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8248 "The output depends on the output of the underlying L<file(1)> command and it "
8249 "can change in future in ways beyond our control. In other words, the output "
8250 "is not guaranteed by the ABI."
8254 #: ../fish/guestfish-actions.pod:1093
8256 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8257 "(etc), L</is-zero>."
8261 #: ../fish/guestfish-actions.pod:1096
8262 msgid "file-architecture"
8263 msgstr "file-architecture"
8266 #: ../fish/guestfish-actions.pod:1098
8269 " file-architecture filename\n"
8272 " file-architecture назва_файла\n"
8276 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8278 "This detects the architecture of the binary C<filename>, and returns it if "
8283 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8284 msgid "Currently defined architectures are:"
8288 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8293 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8295 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8296 "irrespective of the precise processor requirements of the binary."
8300 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8305 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8306 msgid "64 bit x86-64."
8310 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8315 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8316 msgid "32 bit SPARC."
8320 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8325 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8326 msgid "64 bit SPARC V9 and above."
8330 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8335 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8336 msgid "Intel Itanium."
8337 msgstr "Intel Itanium."
8340 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8345 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8346 msgid "32 bit Power PC."
8350 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8355 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8356 msgid "64 bit Power PC."
8360 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8361 msgid "Libguestfs may return other architecture strings in future."
8365 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8366 msgid "The function works on at least the following types of files:"
8370 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8371 msgid "many types of Un*x and Linux binary"
8375 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8376 msgid "many types of Un*x and Linux shared library"
8380 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8381 msgid "Windows Win32 and Win64 binaries"
8385 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8386 msgid "Windows Win32 and Win64 DLLs"
8390 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8391 msgid "Win32 binaries and DLLs return C<i386>."
8395 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8396 msgid "Win64 binaries and DLLs return C<x86_64>."
8400 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8401 msgid "Linux kernel modules"
8405 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8406 msgid "Linux new-style initrd images"
8410 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8411 msgid "some non-x86 Linux vmlinuz kernels"
8415 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8416 msgid "What it can't do currently:"
8420 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8421 msgid "static libraries (libfoo.a)"
8425 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8426 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8430 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8431 msgid "x86 Linux vmlinuz kernels"
8435 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8437 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8438 "compressed code, and are horribly hard to unpack. If you want to find the "
8439 "architecture of a kernel, use the architecture of the associated initrd or "
8440 "kernel module(s) instead."
8444 #: ../fish/guestfish-actions.pod:1201
8449 #: ../fish/guestfish-actions.pod:1203
8459 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8460 msgid "This command returns the size of C<file> in bytes."
8464 #: ../fish/guestfish-actions.pod:1207
8466 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8467 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8471 #: ../fish/guestfish-actions.pod:1211
8476 #: ../fish/guestfish-actions.pod:1213
8479 " fill c len path\n"
8484 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8486 "This command creates a new file called C<path>. The initial content of the "
8487 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8492 #: ../fish/guestfish-actions.pod:1219
8494 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8495 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8500 #: ../fish/guestfish-actions.pod:1224
8501 msgid "fill-pattern"
8502 msgstr "fill-pattern"
8505 #: ../fish/guestfish-actions.pod:1226
8508 " fill-pattern pattern len path\n"
8513 #: ../fish/guestfish-actions.pod:1228
8515 "This function is like L</fill> except that it creates a new file of length "
8516 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8517 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8522 #: ../fish/guestfish-actions.pod:1233
8527 #: ../fish/guestfish-actions.pod:1235
8537 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8539 "This command lists out all files and directories, recursively, starting at "
8540 "C<directory>. It is essentially equivalent to running the shell command "
8541 "C<find directory -print> but some post-processing happens on the output, "
8546 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8548 "This returns a list of strings I<without any prefix>. Thus if the directory "
8553 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8563 #: ../fish/guestfish-actions.pod:1249
8564 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8568 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8579 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8580 msgid "If C<directory> is not a directory, then this command returns an error."
8584 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8585 msgid "The returned list is sorted."
8589 #: ../fish/guestfish-actions.pod:1262
8590 msgid "See also L</find0>."
8591 msgstr "Див. також L</find0>."
8594 #: ../fish/guestfish-actions.pod:1267
8599 #: ../fish/guestfish-actions.pod:1269
8602 " find0 directory (files|-)\n"
8605 " find0 каталог (файли|-)\n"
8609 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8611 "This command lists out all files and directories, recursively, starting at "
8612 "C<directory>, placing the resulting list in the external file called "
8617 #: ../fish/guestfish-actions.pod:1275
8619 "This command works the same way as L</find> with the following exceptions:"
8623 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8624 msgid "The resulting list is written to an external file."
8628 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8630 "Items (filenames) in the result are separated by C<\\0> characters. See "
8631 "L<find(1)> option I<-print0>."
8635 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8636 msgid "This command is not limited in the number of names that it can return."
8640 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8641 msgid "The result list is not sorted."
8645 #: ../fish/guestfish-actions.pod:1302
8646 msgid "findfs-label"
8647 msgstr "findfs-label"
8650 #: ../fish/guestfish-actions.pod:1304
8653 " findfs-label label\n"
8656 " findfs-label мітка\n"
8660 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8662 "This command searches the filesystems and returns the one which has the "
8663 "given label. An error is returned if no such filesystem can be found."
8667 #: ../fish/guestfish-actions.pod:1310
8668 msgid "To find the label of a filesystem, use L</vfs-label>."
8669 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8672 #: ../fish/guestfish-actions.pod:1312
8674 msgstr "findfs-uuid"
8677 #: ../fish/guestfish-actions.pod:1314
8680 " findfs-uuid uuid\n"
8683 " findfs-uuid uuid\n"
8687 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8689 "This command searches the filesystems and returns the one which has the "
8690 "given UUID. An error is returned if no such filesystem can be found."
8694 #: ../fish/guestfish-actions.pod:1320
8695 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8696 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8699 #: ../fish/guestfish-actions.pod:1322
8704 #: ../fish/guestfish-actions.pod:1324
8707 " fsck fstype device\n"
8710 " fsck тип_файлової_системи пристрій\n"
8714 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8716 "This runs the filesystem checker (fsck) on C<device> which should have "
8717 "filesystem type C<fstype>."
8721 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8723 "The returned integer is the status. See L<fsck(8)> for the list of status "
8724 "codes from C<fsck>."
8728 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8729 msgid "Multiple status codes can be summed together."
8733 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8735 "A non-zero return code can mean \"success\", for example if errors have been "
8736 "corrected on the filesystem."
8740 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8741 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8745 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8747 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8751 #: ../fish/guestfish-actions.pod:1354
8756 #: ../fish/guestfish-actions.pod:1356
8766 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8768 "Return the additional kernel options which are added to the guest kernel "
8773 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8774 msgid "If C<NULL> then no options are added."
8778 #: ../fish/guestfish-actions.pod:1363
8779 msgid "get-attach-method"
8780 msgstr "get-attach-method"
8783 #: ../fish/guestfish-actions.pod:1365
8786 " get-attach-method\n"
8789 " get-attach-method\n"
8793 #: ../fish/guestfish-actions.pod:1367
8794 msgid "Return the current attach method. See L</set-attach-method>."
8798 #: ../fish/guestfish-actions.pod:1369
8799 msgid "get-autosync"
8800 msgstr "get-autosync"
8803 #: ../fish/guestfish-actions.pod:1371
8813 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8814 msgid "Get the autosync flag."
8818 #: ../fish/guestfish-actions.pod:1375
8823 #: ../fish/guestfish-actions.pod:1377
8833 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8834 msgid "Return the direct appliance mode flag."
8838 #: ../fish/guestfish-actions.pod:1381
8840 msgstr "get-e2label"
8843 #: ../fish/guestfish-actions.pod:1383
8846 " get-e2label device\n"
8849 " get-e2label пристрій\n"
8853 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8855 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8859 #: ../fish/guestfish-actions.pod:1388
8861 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8866 #: ../fish/guestfish-actions.pod:1395
8871 #: ../fish/guestfish-actions.pod:1397
8874 " get-e2uuid device\n"
8877 " get-e2uuid пристрій\n"
8881 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8883 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8887 #: ../fish/guestfish-actions.pod:1402
8889 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8894 #: ../fish/guestfish-actions.pod:1409
8896 msgstr "get-memsize"
8899 #: ../fish/guestfish-actions.pod:1411
8909 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8911 "This gets the memory size in megabytes allocated to the qemu subprocess."
8915 #: ../fish/guestfish-actions.pod:1416
8917 "If L</set-memsize> was not called on this handle, and if "
8918 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8919 "value for memsize."
8923 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8924 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8925 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8926 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8928 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8932 #: ../fish/guestfish-actions.pod:1423
8934 msgstr "get-network"
8937 #: ../fish/guestfish-actions.pod:1425
8947 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8948 msgid "This returns the enable network flag."
8952 #: ../fish/guestfish-actions.pod:1429
8957 #: ../fish/guestfish-actions.pod:1431
8967 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8968 msgid "Return the current search path."
8972 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8974 "This is always non-NULL. If it wasn't set already, then this will return "
8979 #: ../fish/guestfish-actions.pod:1438
8984 #: ../fish/guestfish-actions.pod:1440
8992 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8993 msgid "This returns the process group flag."
8997 #: ../fish/guestfish-actions.pod:1444
9002 #: ../fish/guestfish-actions.pod:1446
9007 #: ../fish/guestfish-actions.pod:1448
9017 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
9019 "Return the process ID of the qemu subprocess. If there is no qemu "
9020 "subprocess, then this will return an error."
9024 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
9025 msgid "This is an internal call used for debugging and testing."
9029 #: ../fish/guestfish-actions.pod:1455
9034 #: ../fish/guestfish-actions.pod:1457
9044 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
9045 msgid "Return the current qemu binary."
9049 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
9051 "This is always non-NULL. If it wasn't set already, then this will return "
9052 "the default qemu binary name."
9056 #: ../fish/guestfish-actions.pod:1464
9057 msgid "get-recovery-proc"
9058 msgstr "get-recovery-proc"
9061 #: ../fish/guestfish-actions.pod:1466
9064 " get-recovery-proc\n"
9067 " get-recovery-proc\n"
9071 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
9072 msgid "Return the recovery process enabled flag."
9076 #: ../fish/guestfish-actions.pod:1470
9078 msgstr "get-selinux"
9081 #: ../fish/guestfish-actions.pod:1472
9091 #: ../fish/guestfish-actions.pod:1474
9093 "This returns the current setting of the selinux flag which is passed to the "
9094 "appliance at boot time. See L</set-selinux>."
9098 #: ../fish/guestfish-actions.pod:1480
9103 #: ../fish/guestfish-actions.pod:1482
9111 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
9112 msgid "This returns the number of virtual CPUs assigned to the appliance."
9116 #: ../fish/guestfish-actions.pod:1486
9121 #: ../fish/guestfish-actions.pod:1488
9131 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
9133 "This returns the current state as an opaque integer. This is only useful "
9134 "for printing debug and internal error messages."
9138 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
9139 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
9140 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
9141 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
9142 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
9143 msgid "For more information on states, see L<guestfs(3)>."
9147 #: ../fish/guestfish-actions.pod:1495
9152 #: ../fish/guestfish-actions.pod:1497
9162 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
9163 msgid "Return the command trace flag."
9167 #: ../fish/guestfish-actions.pod:1501
9172 #: ../fish/guestfish-actions.pod:1503
9182 #: ../fish/guestfish-actions.pod:1505
9184 "Return the current umask. By default the umask is C<022> unless it has been "
9185 "set by calling L</umask>."
9189 #: ../fish/guestfish-actions.pod:1508
9191 msgstr "get-verbose"
9194 #: ../fish/guestfish-actions.pod:1510
9204 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9205 msgid "This returns the verbose messages flag."
9209 #: ../fish/guestfish-actions.pod:1514
9214 #: ../fish/guestfish-actions.pod:1516
9224 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9225 msgid "This gets the SELinux security context of the daemon."
9229 #: ../fish/guestfish-actions.pod:1520
9230 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9234 #: ../fish/guestfish-actions.pod:1523
9239 #: ../fish/guestfish-actions.pod:1525
9242 " getxattr path name\n"
9245 " getxattr шлях назва\n"
9249 #: ../fish/guestfish-actions.pod:1527
9251 "Get a single extended attribute from file C<path> named C<name>. This call "
9252 "follows symlinks. If you want to lookup an extended attribute for the "
9253 "symlink itself, use L</lgetxattr>."
9257 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9259 "Normally it is better to get all extended attributes from a file in one go "
9260 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9261 "buggy and do not provide a way to list out attributes. For these "
9262 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9263 "attributes you want in advance and call this function."
9267 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9268 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9270 "Extended attribute values are blobs of binary data. If there is no extended "
9271 "attribute named C<name>, this returns an error."
9275 #: ../fish/guestfish-actions.pod:1541
9276 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9277 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9280 #: ../fish/guestfish-actions.pod:1543
9285 #: ../fish/guestfish-actions.pod:1545
9295 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9297 "This call lists the extended attributes of the file or directory C<path>."
9301 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9303 "At the system call level, this is a combination of the L<listxattr(2)> and "
9304 "L<getxattr(2)> calls."
9308 #: ../fish/guestfish-actions.pod:1553
9309 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9310 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9313 #: ../fish/guestfish-actions.pod:1555
9315 msgstr "glob-expand"
9318 #: ../fish/guestfish-actions.pod:1557
9321 " glob-expand pattern\n"
9324 " glob-expand шаблон\n"
9328 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9330 "This command searches for all the pathnames matching C<pattern> according to "
9331 "the wildcard expansion rules used by the shell."
9335 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9337 "If no paths match, then this returns an empty list (note: not an error)."
9341 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9343 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9344 "GLOB_BRACE>. See that manual page for more details."
9348 #: ../fish/guestfish-actions.pod:1570
9353 #: ../fish/guestfish-actions.pod:1572
9356 " grep regex path\n"
9359 " grepi формальний_вираз шлях\n"
9363 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9364 msgid "This calls the external C<grep> program and returns the matching lines."
9368 #: ../fish/guestfish-actions.pod:1580
9373 #: ../fish/guestfish-actions.pod:1582
9376 " grepi regex path\n"
9379 " grepi формальний_вираз шлях\n"
9383 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9385 "This calls the external C<grep -i> program and returns the matching lines."
9389 #: ../fish/guestfish-actions.pod:1590
9390 msgid "grub-install"
9391 msgstr "grub-install"
9394 #: ../fish/guestfish-actions.pod:1592
9397 " grub-install root device\n"
9400 " grub-install кореневий пристрій\n"
9404 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9406 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9407 "with the root directory being C<root>."
9411 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9413 "There is currently no way in the API to install grub2, which is used by most "
9414 "modern Linux guests. It is possible to run the grub2 command from the "
9415 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9419 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9421 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9422 "compatible with itself, so this only works in rather narrow circumstances. "
9423 "Careful testing with each guest version is advisable."
9427 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9429 "If grub-install reports the error \"No suitable drive was found in the "
9430 "generated device map.\" it may be that you need to create a C</boot/grub/"
9431 "device.map> file first that contains the mapping between grub device names "
9432 "and Linux device names. It is usually sufficient to create a file "
9437 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9445 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9446 msgid "replacing C</dev/vda> with the name of the installation device."
9450 #: ../fish/guestfish-actions.pod:1630
9455 #: ../fish/guestfish-actions.pod:1632
9465 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9467 "This command returns up to the first 10 lines of a file as a list of strings."
9471 #: ../fish/guestfish-actions.pod:1640
9476 #: ../fish/guestfish-actions.pod:1642
9479 " head-n nrlines path\n"
9484 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9486 "If the parameter C<nrlines> is a positive number, this returns the first "
9487 "C<nrlines> lines of the file C<path>."
9491 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9493 "If the parameter C<nrlines> is a negative number, this returns lines from "
9494 "the file C<path>, excluding the last C<nrlines> lines."
9498 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9499 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9500 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9504 #: ../fish/guestfish-actions.pod:1655
9509 #: ../fish/guestfish-actions.pod:1657
9519 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9521 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9522 "readable, canonical hex dump of the file."
9526 #: ../fish/guestfish-actions.pod:1665
9531 #: ../fish/guestfish-actions.pod:1667
9534 " initrd-cat initrdpath filename\n"
9537 " initrd-cat шлях_initrd назва_файла\n"
9541 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9543 "This command unpacks the file C<filename> from the initrd file called "
9544 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9549 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9551 "For example, in guestfish you could use the following command to examine the "
9552 "boot script (usually called C</init>) contained in a Linux initrd or "
9557 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9560 " initrd-cat /boot/initrd-<version>.img init\n"
9565 #: ../fish/guestfish-actions.pod:1679
9566 msgid "See also L</initrd-list>."
9567 msgstr "Див. також L</initrd-list>."
9570 #: ../fish/guestfish-actions.pod:1684
9572 msgstr "initrd-list"
9575 #: ../fish/guestfish-actions.pod:1686
9578 " initrd-list path\n"
9581 " initrd-list шлях\n"
9585 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9586 msgid "This command lists out files contained in an initrd."
9590 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9592 "The files are listed without any initial C</> character. The files are "
9593 "listed in the order they appear (not necessarily alphabetical). Directory "
9594 "names are listed as separate items."
9598 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9600 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9601 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9606 #: ../fish/guestfish-actions.pod:1698
9607 msgid "inotify-add-watch"
9608 msgstr "inotify-add-watch"
9611 #: ../fish/guestfish-actions.pod:1700
9614 " inotify-add-watch path mask\n"
9617 " inotify-add-watch шлях маска\n"
9621 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9622 msgid "Watch C<path> for the events listed in C<mask>."
9626 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9628 "Note that if C<path> is a directory then events within that directory are "
9629 "watched, but this does I<not> happen recursively (in subdirectories)."
9633 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9635 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9636 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9640 #: ../fish/guestfish-actions.pod:1712
9641 msgid "inotify-close"
9642 msgstr "inotify-close"
9645 #: ../fish/guestfish-actions.pod:1714
9655 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9657 "This closes the inotify handle which was previously opened by inotify_init. "
9658 "It removes all watches, throws away any pending events, and deallocates all "
9663 #: ../fish/guestfish-actions.pod:1720
9664 msgid "inotify-files"
9665 msgstr "inotify-files"
9668 #: ../fish/guestfish-actions.pod:1722
9678 #: ../fish/guestfish-actions.pod:1724
9680 "This function is a helpful wrapper around L</inotify-read> which just "
9681 "returns a list of pathnames of objects that were touched. The returned "
9682 "pathnames are sorted and deduplicated."
9686 #: ../fish/guestfish-actions.pod:1728
9687 msgid "inotify-init"
9688 msgstr "inotify-init"
9691 #: ../fish/guestfish-actions.pod:1730
9694 " inotify-init maxevents\n"
9699 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9701 "This command creates a new inotify handle. The inotify subsystem can be "
9702 "used to notify events which happen to objects in the guest filesystem."
9706 #: ../fish/guestfish-actions.pod:1736
9708 "C<maxevents> is the maximum number of events which will be queued up between "
9709 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9710 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9711 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9712 "but records the fact that it threw them away by setting a flag "
9713 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9717 #: ../fish/guestfish-actions.pod:1746
9719 "Before any events are generated, you have to add some watches to the "
9720 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9721 "L</inotify-watch-all>."
9725 #: ../fish/guestfish-actions.pod:1752
9727 "Queued up events should be read periodically by calling L</inotify-read> (or "
9728 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9729 "If you don't read the events out often enough then you risk the internal "
9730 "queue overflowing."
9734 #: ../fish/guestfish-actions.pod:1759
9736 "The handle should be closed after use by calling L</inotify-close>. This "
9737 "also removes any watches automatically."
9741 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9743 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9744 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9745 "that there is one global inotify handle per libguestfs instance."
9749 #: ../fish/guestfish-actions.pod:1768
9750 msgid "inotify-read"
9751 msgstr "inotify-read"
9754 #: ../fish/guestfish-actions.pod:1770
9764 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9766 "Return the complete queue of events that have happened since the previous "
9771 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9772 msgid "If no events have happened, this returns an empty list."
9776 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9778 "I<Note>: In order to make sure that all events have been read, you must call "
9779 "this function repeatedly until it returns an empty list. The reason is that "
9780 "the call will read events up to the maximum appliance-to-host message size "
9781 "and leave remaining events in the queue."
9785 #: ../fish/guestfish-actions.pod:1783
9786 msgid "inotify-rm-watch"
9787 msgstr "inotify-rm-watch"
9790 #: ../fish/guestfish-actions.pod:1785
9793 " inotify-rm-watch wd\n"
9798 #: ../fish/guestfish-actions.pod:1787
9799 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
9803 #: ../fish/guestfish-actions.pod:1790
9804 msgid "inspect-get-arch"
9805 msgstr "inspect-get-arch"
9808 #: ../fish/guestfish-actions.pod:1792
9811 " inspect-get-arch root\n"
9814 " inspect-get-arch корінь\n"
9818 #: ../fish/guestfish-actions.pod:1794
9820 "This returns the architecture of the inspected operating system. The "
9821 "possible return values are listed under L</file-architecture>."
9825 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9827 "If the architecture could not be determined, then the string C<unknown> is "
9832 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9833 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9834 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9835 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9836 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9837 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9838 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9839 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9840 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9841 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9842 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9843 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9844 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9845 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9846 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9847 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9848 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9849 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9853 #: ../fish/guestfish-actions.pod:1803
9854 msgid "inspect-get-distro"
9855 msgstr "inspect-get-distro"
9858 #: ../fish/guestfish-actions.pod:1805
9861 " inspect-get-distro root\n"
9864 " inspect-get-distro корінь\n"
9868 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9870 "This returns the distro (distribution) of the inspected operating system."
9874 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9875 msgid "Currently defined distros are:"
9879 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9880 msgid "\"archlinux\""
9881 msgstr "\"archlinux\""
9884 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9886 msgstr "Arch Linux."
9889 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9894 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9899 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9904 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9909 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9914 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9919 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9924 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9929 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9930 msgid "\"linuxmint\""
9931 msgstr "\"linuxmint\""
9934 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9936 msgstr "Linux Mint."
9939 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9944 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9949 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9950 msgid "\"mandriva\""
9951 msgstr "\"mandriva\""
9954 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9959 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9964 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9969 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9970 msgid "\"opensuse\""
9974 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9979 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9984 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9989 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9990 msgid "\"redhat-based\""
9991 msgstr "\"redhat-based\""
9994 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9995 msgid "Some Red Hat-derived distro."
9996 msgstr "Дистрибутив, що походить від Red Hat."
9999 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
10004 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
10005 msgid "Red Hat Enterprise Linux."
10006 msgstr "Red Hat Enterprise Linux."
10009 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
10010 msgid "\"scientificlinux\""
10011 msgstr "\"scientificlinux\""
10014 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
10015 msgid "Scientific Linux."
10016 msgstr "Scientific Linux."
10019 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
10020 msgid "\"slackware\""
10021 msgstr "\"slackware\""
10024 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
10026 msgstr "Slackware."
10029 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
10030 msgid "\"ttylinux\""
10034 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
10039 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
10041 msgstr "\"ubuntu\""
10044 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
10049 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
10050 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
10051 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10052 msgid "\"unknown\""
10053 msgstr "\"unknown\""
10056 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
10057 msgid "The distro could not be determined."
10058 msgstr "Дистрибутив, тип якого не вдалося визначити."
10061 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
10062 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
10063 msgid "\"windows\""
10064 msgstr "\"windows\""
10067 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
10069 "Windows does not have distributions. This string is returned if the OS type "
10074 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
10075 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
10076 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
10078 "Future versions of libguestfs may return other strings here. The caller "
10079 "should be prepared to handle any string."
10083 #: ../fish/guestfish-actions.pod:1898
10084 msgid "inspect-get-drive-mappings"
10088 #: ../fish/guestfish-actions.pod:1900
10091 " inspect-get-drive-mappings root\n"
10096 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
10098 "This call is useful for Windows which uses a primitive system of assigning "
10099 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10100 "Windows Registry to find out how disks/partitions are mapped to drive "
10101 "letters, and returns a hash table as in the example below:"
10105 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
10108 " C => /dev/vda2\n"
10109 " E => /dev/vdb1\n"
10110 " F => /dev/vdc1\n"
10115 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
10117 "Note that keys are drive letters. For Windows, the key is case insensitive "
10118 "and just contains the drive letter, without the customary colon separator "
10123 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
10125 "In future we may support other operating systems that also used drive "
10126 "letters, but the keys for those might not be case insensitive and might be "
10127 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10132 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
10134 "For Windows guests, currently only hard drive mappings are returned. "
10135 "Removable disks (eg. DVD-ROMs) are ignored."
10139 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
10141 "For guests that do not use drive mappings, or if the drive mappings could "
10142 "not be determined, this returns an empty hash table."
10146 #: ../fish/guestfish-actions.pod:1927
10148 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10149 "get-mountpoints>, L</inspect-get-filesystems>."
10153 #: ../fish/guestfish-actions.pod:1931
10154 msgid "inspect-get-filesystems"
10155 msgstr "inspect-get-filesystems"
10158 #: ../fish/guestfish-actions.pod:1933
10161 " inspect-get-filesystems root\n"
10164 " inspect-get-filesystems корінь\n"
10168 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
10170 "This returns a list of all the filesystems that we think are associated with "
10171 "this operating system. This includes the root filesystem, other ordinary "
10172 "filesystems, and non-mounted devices like swap partitions."
10176 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
10178 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10179 "to be shared between operating systems."
10183 #: ../fish/guestfish-actions.pod:1943
10185 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10186 "get-mountpoints>."
10190 #: ../fish/guestfish-actions.pod:1946
10191 msgid "inspect-get-format"
10192 msgstr "inspect-get-format"
10195 #: ../fish/guestfish-actions.pod:1948
10198 " inspect-get-format root\n"
10201 " inspect-get-format корінь\n"
10205 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
10207 "This returns the format of the inspected operating system. You can use it "
10208 "to detect install images, live CDs and similar."
10212 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
10213 msgid "Currently defined formats are:"
10217 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
10218 msgid "\"installed\""
10219 msgstr "\"installed\""
10222 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
10223 msgid "This is an installed operating system."
10224 msgstr "Це встановлена операційна система."
10227 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
10228 msgid "\"installer\""
10232 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
10234 "The disk image being inspected is not an installed operating system, but a "
10235 "I<bootable> install disk, live CD, or similar."
10239 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10240 msgid "The format of this disk image is not known."
10244 #: ../fish/guestfish-actions.pod:1977
10245 msgid "inspect-get-hostname"
10246 msgstr "inspect-get-hostname"
10249 #: ../fish/guestfish-actions.pod:1979
10252 " inspect-get-hostname root\n"
10255 " inspect-get-hostname корінь\n"
10259 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10261 "This function returns the hostname of the operating system as found by "
10262 "inspection of the guest's configuration files."
10266 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10268 "If the hostname could not be determined, then the string C<unknown> is "
10273 #: ../fish/guestfish-actions.pod:1989
10274 msgid "inspect-get-icon"
10278 #: ../fish/guestfish-actions.pod:1991
10281 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10286 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10288 "This function returns an icon corresponding to the inspected operating "
10289 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10290 "to PNG if necessary)."
10294 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10296 "If it was not possible to get an icon this function returns a zero-length "
10297 "(non-NULL) buffer. I<Callers must check for this case>."
10301 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10303 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10304 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10305 "this file will be returned. You can disable favicons by passing the "
10306 "optional C<favicon> boolean as false (default is true)."
10310 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10312 "If finding the favicon fails, then we look in other places in the guest for "
10317 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10319 "If the optional C<highquality> boolean is true then only high quality icons "
10320 "are returned, which means only icons of high resolution with an alpha "
10321 "channel. The default (false) is to return any icon we can, even if it is of "
10322 "substandard quality."
10326 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10328 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10329 "before you call this, since it needs to read information from the guest "
10330 "filesystem during the call."
10334 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10336 "B<Security:> The icon data comes from the untrusted guest, and should be "
10337 "treated with caution. PNG files have been known to contain exploits. "
10338 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10339 "trying to process or display the icon."
10343 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10345 "The PNG image returned can be any size. It might not be square. Libguestfs "
10346 "tries to return the largest, highest quality icon available. The "
10347 "application must scale the icon to the required size."
10351 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10353 "Extracting icons from Windows guests requires the external C<wrestool> "
10354 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10355 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10356 "installed separately."
10360 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10362 "Operating system icons are usually trademarks. Seek legal advice before "
10363 "using trademarks in applications."
10367 #: ../fish/guestfish-actions.pod:2055
10368 msgid "inspect-get-major-version"
10369 msgstr "inspect-get-major-version"
10372 #: ../fish/guestfish-actions.pod:2057
10375 " inspect-get-major-version root\n"
10378 " inspect-get-major-version корінь\n"
10382 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10384 "This returns the major version number of the inspected operating system."
10388 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10390 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10391 "popular public names used by the operating system. Notably the operating "
10392 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10393 "1). You can find out the real versions corresponding to releases of Windows "
10394 "by consulting Wikipedia or MSDN."
10398 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10399 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10400 msgid "If the version could not be determined, then C<0> is returned."
10404 #: ../fish/guestfish-actions.pod:2073
10405 msgid "inspect-get-minor-version"
10406 msgstr "inspect-get-minor-version"
10409 #: ../fish/guestfish-actions.pod:2075
10412 " inspect-get-minor-version root\n"
10415 " inspect-get-minor-version корінь\n"
10419 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10421 "This returns the minor version number of the inspected operating system."
10425 #: ../fish/guestfish-actions.pod:2082
10427 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10428 "get-major-version>."
10432 #: ../fish/guestfish-actions.pod:2085
10433 msgid "inspect-get-mountpoints"
10434 msgstr "inspect-get-mountpoints"
10437 #: ../fish/guestfish-actions.pod:2087
10440 " inspect-get-mountpoints root\n"
10443 " inspect-get-mountpoints корінь\n"
10447 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10449 "This returns a hash of where we think the filesystems associated with this "
10450 "operating system should be mounted. Callers should note that this is at "
10451 "best an educated guess made by reading configuration files such as C</etc/"
10452 "fstab>. I<In particular note> that this may return filesystems which are "
10453 "non-existent or not mountable and callers should be prepared to handle or "
10454 "ignore failures if they try to mount them."
10458 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10460 "Each element in the returned hashtable has a key which is the path of the "
10461 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10462 "mounted there (eg. C</dev/sda1>)."
10466 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10468 "Non-mounted devices such as swap devices are I<not> returned in this list."
10472 #: ../fish/guestfish-actions.pod:2106
10474 "For operating systems like Windows which still use drive letters, this call "
10475 "will only return an entry for the first drive \"mounted on\" C</>. For "
10476 "information about the mapping of drive letters to partitions, see L</inspect-"
10477 "get-drive-mappings>."
10481 #: ../fish/guestfish-actions.pod:2112
10483 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10484 "get-filesystems>."
10488 #: ../fish/guestfish-actions.pod:2115
10489 msgid "inspect-get-package-format"
10490 msgstr "inspect-get-package-format"
10493 #: ../fish/guestfish-actions.pod:2117
10496 " inspect-get-package-format root\n"
10499 " inspect-get-package-format корінь\n"
10503 #: ../fish/guestfish-actions.pod:2119
10505 "This function and L</inspect-get-package-management> return the package "
10506 "format and package management tool used by the inspected operating system. "
10507 "For example for Fedora these functions would return C<rpm> (package format) "
10508 "and C<yum> (package management)."
10512 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10514 "This returns the string C<unknown> if we could not determine the package "
10515 "format I<or> if the operating system does not have a real packaging system "
10520 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10522 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10523 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10527 #: ../fish/guestfish-actions.pod:2135
10528 msgid "inspect-get-package-management"
10529 msgstr "inspect-get-package-management"
10532 #: ../fish/guestfish-actions.pod:2137
10535 " inspect-get-package-management root\n"
10538 " inspect-get-package-management корінь\n"
10542 #: ../fish/guestfish-actions.pod:2139
10544 "L</inspect-get-package-format> and this function return the package format "
10545 "and package management tool used by the inspected operating system. For "
10546 "example for Fedora these functions would return C<rpm> (package format) and "
10547 "C<yum> (package management)."
10551 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10553 "This returns the string C<unknown> if we could not determine the package "
10554 "management tool I<or> if the operating system does not have a real packaging "
10555 "system (eg. Windows)."
10559 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10561 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10562 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10563 "versions of libguestfs may return other strings."
10567 #: ../fish/guestfish-actions.pod:2156
10568 msgid "inspect-get-product-name"
10569 msgstr "inspect-get-product-name"
10572 #: ../fish/guestfish-actions.pod:2158
10575 " inspect-get-product-name root\n"
10578 " inspect-get-product-name корінь\n"
10582 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10584 "This returns the product name of the inspected operating system. The "
10585 "product name is generally some freeform string which can be displayed to the "
10586 "user, but should not be parsed by programs."
10590 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10592 "If the product name could not be determined, then the string C<unknown> is "
10597 #: ../fish/guestfish-actions.pod:2170
10598 msgid "inspect-get-product-variant"
10602 #: ../fish/guestfish-actions.pod:2172
10605 " inspect-get-product-variant root\n"
10610 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10611 msgid "This returns the product variant of the inspected operating system."
10615 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10617 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10618 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10619 "is usually a string such as C<Client> or C<Server> (other values are "
10620 "possible). This can be used to distinguish consumer and enterprise versions "
10621 "of Windows that have the same version number (for example, Windows 7 and "
10622 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10623 "the latter is C<Server>)."
10627 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10629 "For enterprise Linux guests, in future we intend this to return the product "
10630 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10631 "implemented at present."
10635 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10637 "If the product variant could not be determined, then the string C<unknown> "
10642 #: ../fish/guestfish-actions.pod:2193
10644 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10645 "get-product-name>, L</inspect-get-major-version>."
10649 #: ../fish/guestfish-actions.pod:2197
10650 msgid "inspect-get-roots"
10651 msgstr "inspect-get-roots"
10654 #: ../fish/guestfish-actions.pod:2199
10657 " inspect-get-roots\n"
10660 " inspect-get-roots\n"
10664 #: ../fish/guestfish-actions.pod:2201
10666 "This function is a convenient way to get the list of root devices, as "
10667 "returned from a previous call to L</inspect-os>, but without redoing the "
10668 "whole inspection process."
10672 #: ../fish/guestfish-actions.pod:2205
10674 "This returns an empty list if either no root devices were found or the "
10675 "caller has not called L</inspect-os>."
10679 #: ../fish/guestfish-actions.pod:2210
10680 msgid "inspect-get-type"
10681 msgstr "inspect-get-type"
10684 #: ../fish/guestfish-actions.pod:2212
10687 " inspect-get-type root\n"
10690 " inspect-get-type корінь\n"
10694 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10696 "This returns the type of the inspected operating system. Currently defined "
10701 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10706 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10707 msgid "Any Linux-based operating system."
10711 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10712 msgid "Any Microsoft Windows operating system."
10716 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10717 msgid "\"freebsd\""
10718 msgstr "\"freebsd\""
10721 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10726 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10731 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10736 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10737 msgid "The operating system type could not be determined."
10741 #: ../fish/guestfish-actions.pod:2246
10742 msgid "inspect-get-windows-current-control-set"
10746 #: ../fish/guestfish-actions.pod:2248
10749 " inspect-get-windows-current-control-set root\n"
10754 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10756 "This returns the Windows CurrentControlSet of the inspected guest. The "
10757 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10761 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10763 "This call assumes that the guest is Windows and that the Registry could be "
10764 "examined by inspection. If this is not the case then an error is returned."
10768 #: ../fish/guestfish-actions.pod:2259
10769 msgid "inspect-get-windows-systemroot"
10770 msgstr "inspect-get-windows-systemroot"
10773 #: ../fish/guestfish-actions.pod:2261
10776 " inspect-get-windows-systemroot root\n"
10779 " inspect-get-windows-systemroot корінь\n"
10783 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10785 "This returns the Windows systemroot of the inspected guest. The systemroot "
10786 "is a directory path such as C</WINDOWS>."
10790 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10792 "This call assumes that the guest is Windows and that the systemroot could be "
10793 "determined by inspection. If this is not the case then an error is returned."
10797 #: ../fish/guestfish-actions.pod:2272
10798 msgid "inspect-is-live"
10799 msgstr "inspect-is-live"
10802 #: ../fish/guestfish-actions.pod:2274
10805 " inspect-is-live root\n"
10808 " inspect-is-live корінь\n"
10812 #: ../fish/guestfish-actions.pod:2276
10814 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10815 "then this returns true if a live image was detected on the disk."
10819 #: ../fish/guestfish-actions.pod:2282
10820 msgid "inspect-is-multipart"
10821 msgstr "inspect-is-multipart"
10824 #: ../fish/guestfish-actions.pod:2284
10827 " inspect-is-multipart root\n"
10830 " inspect-is-multipart корінь\n"
10834 #: ../fish/guestfish-actions.pod:2286
10836 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10837 "then this returns true if the disk is part of a set."
10841 #: ../fish/guestfish-actions.pod:2292
10842 msgid "inspect-is-netinst"
10843 msgstr "inspect-is-netinst"
10846 #: ../fish/guestfish-actions.pod:2294
10849 " inspect-is-netinst root\n"
10852 " inspect-is-netinst корінь\n"
10856 #: ../fish/guestfish-actions.pod:2296
10858 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10859 "then this returns true if the disk is a network installer, ie. not a self-"
10860 "contained install CD but one which is likely to require network access to "
10861 "complete the install."
10865 #: ../fish/guestfish-actions.pod:2304
10866 msgid "inspect-list-applications"
10867 msgstr "inspect-list-applications"
10870 #: ../fish/guestfish-actions.pod:2306
10873 " inspect-list-applications root\n"
10876 " inspect-list-applications кореневий_каталог\n"
10880 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10881 msgid "Return the list of applications installed in the operating system."
10885 #: ../fish/guestfish-actions.pod:2310
10887 "I<Note:> This call works differently from other parts of the inspection "
10888 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10889 "then mount up the disks, before calling this. Listing applications is a "
10890 "significantly more difficult operation which requires access to the full "
10891 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
10892 "are just returning data cached in the libguestfs handle, this call actually "
10893 "reads parts of the mounted filesystems during the call."
10897 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10899 "This returns an empty list if the inspection code was not able to determine "
10900 "the list of applications."
10904 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10905 msgid "The application structure contains the following fields:"
10909 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10910 msgid "C<app_name>"
10911 msgstr "C<app_name>"
10914 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10916 "The name of the application. For Red Hat-derived and Debian-derived Linux "
10917 "guests, this is the package name."
10921 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10922 msgid "C<app_display_name>"
10923 msgstr "C<app_display_name>"
10926 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10928 "The display name of the application, sometimes localized to the install "
10929 "language of the guest operating system."
10933 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10935 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
10936 "to display something can use C<app_name> instead."
10940 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10941 msgid "C<app_epoch>"
10942 msgstr "C<app_epoch>"
10945 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10947 "For package managers which use epochs, this contains the epoch of the "
10948 "package (an integer). If unavailable, this is returned as C<0>."
10952 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10953 msgid "C<app_version>"
10954 msgstr "C<app_version>"
10957 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10959 "The version string of the application or package. If unavailable this is "
10960 "returned as an empty string C<\"\">."
10964 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10965 msgid "C<app_release>"
10966 msgstr "C<app_release>"
10969 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10971 "The release string of the application or package, for package managers that "
10972 "use this. If unavailable this is returned as an empty string C<\"\">."
10976 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10977 msgid "C<app_install_path>"
10978 msgstr "C<app_install_path>"
10981 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10983 "The installation path of the application (on operating systems such as "
10984 "Windows which use installation paths). This path is in the format used by "
10985 "the guest operating system, it is not a libguestfs path."
10989 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10990 msgid "If unavailable this is returned as an empty string C<\"\">."
10994 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10995 msgid "C<app_trans_path>"
10996 msgstr "C<app_trans_path>"
10999 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
11001 "The install path translated into a libguestfs path. If unavailable this is "
11002 "returned as an empty string C<\"\">."
11006 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
11007 msgid "C<app_publisher>"
11008 msgstr "C<app_publisher>"
11011 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
11013 "The name of the publisher of the application, for package managers that use "
11014 "this. If unavailable this is returned as an empty string C<\"\">."
11018 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
11020 msgstr "C<app_url>"
11023 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
11025 "The URL (eg. upstream URL) of the application. If unavailable this is "
11026 "returned as an empty string C<\"\">."
11030 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
11031 msgid "C<app_source_package>"
11032 msgstr "C<app_source_package>"
11035 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
11037 "For packaging systems which support this, the name of the source package. "
11038 "If unavailable this is returned as an empty string C<\"\">."
11042 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
11043 msgid "C<app_summary>"
11044 msgstr "C<app_summary>"
11047 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
11049 "A short (usually one line) description of the application or package. If "
11050 "unavailable this is returned as an empty string C<\"\">."
11054 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
11055 msgid "C<app_description>"
11056 msgstr "C<app_description>"
11059 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
11061 "A longer description of the application or package. If unavailable this is "
11062 "returned as an empty string C<\"\">."
11066 #: ../fish/guestfish-actions.pod:2400
11068 msgstr "inspect-os"
11071 #: ../fish/guestfish-actions.pod:2402
11081 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
11083 "This function uses other libguestfs functions and certain heuristics to "
11084 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11085 "for operating systems."
11089 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
11090 msgid "The list returned is empty if no operating systems were found."
11094 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
11096 "If one operating system was found, then this returns a list with a single "
11097 "element, which is the name of the root filesystem of this operating system. "
11098 "It is also possible for this function to return a list containing more than "
11099 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11100 "element being the root filesystem of one of the operating systems."
11104 #: ../fish/guestfish-actions.pod:2417
11106 "You can pass the root string(s) returned to other L</inspect-get-*> "
11107 "functions in order to query further information about each operating system, "
11108 "such as the name and version."
11112 #: ../fish/guestfish-actions.pod:2422
11114 "This function uses other libguestfs features such as L</mount-ro> and L</"
11115 "umount-all> in order to mount and unmount filesystems and look at the "
11116 "contents. This should be called with no disks currently mounted. The "
11117 "function may also use Augeas, so any existing Augeas handle will be closed."
11121 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
11123 "This function cannot decrypt encrypted disks. The caller must do that first "
11124 "(supplying the necessary keys) if the disk is encrypted."
11128 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
11129 #: ../fish/guestfish-actions.pod:2691
11130 msgid "See also L</list-filesystems>."
11131 msgstr "Див. також L</list-filesystems>."
11134 #: ../fish/guestfish-actions.pod:2436
11135 msgid "is-blockdev"
11136 msgstr "is-blockdev"
11139 #: ../fish/guestfish-actions.pod:2438
11142 " is-blockdev path\n"
11145 " is-blockdev шлях\n"
11149 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
11151 "This returns C<true> if and only if there is a block device with the given "
11156 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
11157 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
11158 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
11159 #: ../fish/guestfish-actions.pod:2542
11160 msgid "See also L</stat>."
11161 msgstr "Див. також L</stat>."
11164 #: ../fish/guestfish-actions.pod:2445
11169 #: ../fish/guestfish-actions.pod:2447
11179 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
11181 "This returns true iff this handle is busy processing a command (in the "
11186 #: ../fish/guestfish-actions.pod:2454
11188 msgstr "is-chardev"
11191 #: ../fish/guestfish-actions.pod:2456
11194 " is-chardev path\n"
11197 " is-chardev шлях\n"
11201 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
11203 "This returns C<true> if and only if there is a character device with the "
11204 "given C<path> name."
11208 #: ../fish/guestfish-actions.pod:2463
11213 #: ../fish/guestfish-actions.pod:2465
11223 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
11225 "This returns true iff this handle is being configured (in the C<CONFIG> "
11230 #: ../fish/guestfish-actions.pod:2472
11235 #: ../fish/guestfish-actions.pod:2474
11245 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
11247 "This returns C<true> if and only if there is a directory with the given "
11248 "C<path> name. Note that it returns false for other objects like files."
11252 #: ../fish/guestfish-actions.pod:2482
11257 #: ../fish/guestfish-actions.pod:2484
11267 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
11269 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11270 "given C<path> name."
11274 #: ../fish/guestfish-actions.pod:2491
11279 #: ../fish/guestfish-actions.pod:2493
11289 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11291 "This returns C<true> if and only if there is a regular file with the given "
11292 "C<path> name. Note that it returns false for other objects like directories."
11296 #: ../fish/guestfish-actions.pod:2501
11297 msgid "is-launching"
11298 msgstr "is-launching"
11301 #: ../fish/guestfish-actions.pod:2503
11311 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11313 "This returns true iff this handle is launching the subprocess (in the "
11314 "C<LAUNCHING> state)."
11318 #: ../fish/guestfish-actions.pod:2510
11323 #: ../fish/guestfish-actions.pod:2512
11329 " is-lv пристрій\n"
11333 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11335 "This command tests whether C<device> is a logical volume, and returns true "
11336 "iff this is the case."
11340 #: ../fish/guestfish-actions.pod:2517
11345 #: ../fish/guestfish-actions.pod:2519
11355 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11357 "This returns true iff this handle is ready to accept commands (in the "
11362 #: ../fish/guestfish-actions.pod:2526
11367 #: ../fish/guestfish-actions.pod:2528
11370 " is-socket path\n"
11373 " is-socket шлях\n"
11377 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11379 "This returns C<true> if and only if there is a Unix domain socket with the "
11380 "given C<path> name."
11384 #: ../fish/guestfish-actions.pod:2535
11386 msgstr "is-symlink"
11389 #: ../fish/guestfish-actions.pod:2537
11392 " is-symlink path\n"
11395 " is-symlink шлях\n"
11399 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11401 "This returns C<true> if and only if there is a symbolic link with the given "
11406 #: ../fish/guestfish-actions.pod:2544
11411 #: ../fish/guestfish-actions.pod:2546
11419 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11421 "This returns true iff the file exists and the file is empty or it contains "
11426 #: ../fish/guestfish-actions.pod:2551
11427 msgid "is-zero-device"
11431 #: ../fish/guestfish-actions.pod:2553
11434 " is-zero-device device\n"
11439 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11440 msgid "This returns true iff the device exists and contains all zero bytes."
11444 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11445 msgid "Note that for large devices this can take a long time to run."
11449 #: ../fish/guestfish-actions.pod:2559
11450 msgid "kill-subprocess"
11451 msgstr "kill-subprocess"
11454 #: ../fish/guestfish-actions.pod:2561
11457 " kill-subprocess\n"
11460 " kill-subprocess\n"
11464 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11465 msgid "This kills the qemu subprocess. You should never need to call this."
11469 #: ../fish/guestfish-actions.pod:2565
11474 #: ../fish/guestfish-actions.pod:2567
11479 #: ../fish/guestfish-actions.pod:2569
11489 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11491 "Internally libguestfs is implemented by running a virtual machine using "
11496 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11498 "You should call this after configuring the handle (eg. adding drives) but "
11499 "before performing any actions."
11503 #: ../fish/guestfish-actions.pod:2577
11508 #: ../fish/guestfish-actions.pod:2579
11511 " lchown owner group path\n"
11514 " lchown власник група шлях\n"
11518 #: ../fish/guestfish-actions.pod:2581
11520 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11521 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11526 #: ../fish/guestfish-actions.pod:2589
11531 #: ../fish/guestfish-actions.pod:2591
11534 " lgetxattr path name\n"
11537 " lgetxattr шлях назва\n"
11541 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11543 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11544 "is a symlink, then this call returns an extended attribute from the symlink."
11548 #: ../fish/guestfish-actions.pod:2607
11549 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11550 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11553 #: ../fish/guestfish-actions.pod:2609
11555 msgstr "lgetxattrs"
11558 #: ../fish/guestfish-actions.pod:2611
11561 " lgetxattrs path\n"
11564 " lgetxattrs шлях\n"
11568 #: ../fish/guestfish-actions.pod:2613
11570 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11571 "it returns the extended attributes of the link itself."
11575 #: ../fish/guestfish-actions.pod:2617
11580 #: ../fish/guestfish-actions.pod:2619
11588 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11590 "List all 9p filesystems attached to the guest. A list of mount tags is "
11595 #: ../fish/guestfish-actions.pod:2624
11596 msgid "list-devices"
11597 msgstr "list-devices"
11600 #: ../fish/guestfish-actions.pod:2626
11610 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11611 msgid "List all the block devices."
11615 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11616 msgid "The full block device names are returned, eg. C</dev/sda>."
11620 #: ../fish/guestfish-actions.pod:2634
11621 msgid "list-dm-devices"
11625 #: ../fish/guestfish-actions.pod:2636
11628 " list-dm-devices\n"
11633 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11634 msgid "List all device mapper devices."
11638 #: ../fish/guestfish-actions.pod:2640
11640 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11641 "previous call to L</luks-open>."
11645 #: ../fish/guestfish-actions.pod:2643
11647 "Device mapper devices which correspond to logical volumes are I<not> "
11648 "returned in this list. Call L</lvs> if you want to list logical volumes."
11652 #: ../fish/guestfish-actions.pod:2647
11653 msgid "list-filesystems"
11654 msgstr "list-filesystems"
11657 #: ../fish/guestfish-actions.pod:2649
11660 " list-filesystems\n"
11663 " list-filesystems\n"
11667 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11669 "This inspection command looks for filesystems on partitions, block devices "
11670 "and logical volumes, returning a list of devices containing filesystems and "
11675 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11677 "The return value is a hash, where the keys are the devices containing "
11678 "filesystems, and the values are the filesystem types. For example:"
11682 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11685 " \"/dev/sda1\" => \"ntfs\"\n"
11686 " \"/dev/sda2\" => \"ext2\"\n"
11687 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11688 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11693 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11695 "The value can have the special value \"unknown\", meaning the content of the "
11696 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11700 #: ../fish/guestfish-actions.pod:2668
11702 "This command runs other libguestfs commands, which might include L</mount> "
11703 "and L</umount>, and therefore you should use this soon after launch and only "
11704 "when nothing is mounted."
11708 #: ../fish/guestfish-actions.pod:2672
11710 "Not all of the filesystems returned will be mountable. In particular, swap "
11711 "partitions are returned in the list. Also this command does not check that "
11712 "each filesystem found is valid and mountable, and some filesystems might be "
11713 "mountable but require special options. Filesystems may not all belong to a "
11714 "single logical operating system (use L</inspect-os> to look for OSes)."
11718 #: ../fish/guestfish-actions.pod:2680
11719 msgid "list-partitions"
11720 msgstr "list-partitions"
11723 #: ../fish/guestfish-actions.pod:2682
11726 " list-partitions\n"
11729 " list-partitions\n"
11733 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11734 msgid "List all the partitions detected on all block devices."
11738 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11739 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11743 #: ../fish/guestfish-actions.pod:2688
11745 "This does not return logical volumes. For that you will need to call L</"
11750 #: ../fish/guestfish-actions.pod:2693
11755 #: ../fish/guestfish-actions.pod:2695
11765 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11767 "List the files in C<directory> (relative to the root directory, there is no "
11768 "cwd) in the format of 'ls -la'."
11772 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11774 "This command is mostly useful for interactive sessions. It is I<not> "
11775 "intended that you try to parse the output string."
11779 #: ../fish/guestfish-actions.pod:2703
11784 #: ../fish/guestfish-actions.pod:2705
11787 " ln target linkname\n"
11790 " ln призначення назва_посилання\n"
11794 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11795 msgid "This command creates a hard link using the C<ln> command."
11799 #: ../fish/guestfish-actions.pod:2709
11804 #: ../fish/guestfish-actions.pod:2711
11807 " ln-f target linkname\n"
11810 " ln-f призначення назва_посилання\n"
11814 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11816 "This command creates a hard link using the C<ln -f> command. The I<-f> "
11817 "option removes the link (C<linkname>) if it exists already."
11821 #: ../fish/guestfish-actions.pod:2716
11826 #: ../fish/guestfish-actions.pod:2718
11829 " ln-s target linkname\n"
11832 " ln-s призначення назва_посилання\n"
11836 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11837 msgid "This command creates a symbolic link using the C<ln -s> command."
11841 #: ../fish/guestfish-actions.pod:2722
11846 #: ../fish/guestfish-actions.pod:2724
11849 " ln-sf target linkname\n"
11852 " ln-sf призначення назва_посилання\n"
11856 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11858 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11859 "option removes the link (C<linkname>) if it exists already."
11863 #: ../fish/guestfish-actions.pod:2729
11864 msgid "lremovexattr"
11865 msgstr "lremovexattr"
11868 #: ../fish/guestfish-actions.pod:2731
11871 " lremovexattr xattr path\n"
11876 #: ../fish/guestfish-actions.pod:2733
11878 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11879 "it removes an extended attribute of the link itself."
11883 #: ../fish/guestfish-actions.pod:2737
11888 #: ../fish/guestfish-actions.pod:2739
11898 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11900 "List the files in C<directory> (relative to the root directory, there is no "
11901 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
11905 #: ../fish/guestfish-actions.pod:2745
11907 "This command is mostly useful for interactive sessions. Programs should "
11908 "probably use L</readdir> instead."
11912 #: ../fish/guestfish-actions.pod:2748
11917 #: ../fish/guestfish-actions.pod:2750
11920 " lsetxattr xattr val vallen path\n"
11925 #: ../fish/guestfish-actions.pod:2752
11927 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11928 "sets an extended attribute of the link itself."
11932 #: ../fish/guestfish-actions.pod:2756
11937 #: ../fish/guestfish-actions.pod:2758
11947 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11948 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11949 msgid "Returns file information for the given C<path>."
11953 #: ../fish/guestfish-actions.pod:2762
11955 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11956 "the link is stat-ed, not the file it refers to."
11960 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11961 msgid "This is the same as the C<lstat(2)> system call."
11965 #: ../fish/guestfish-actions.pod:2768
11970 #: ../fish/guestfish-actions.pod:2770
11973 " lstatlist path 'names ...'\n"
11978 #: ../fish/guestfish-actions.pod:2772
11980 "This call allows you to perform the L</lstat> operation on multiple files, "
11981 "where all files are in the directory C<path>. C<names> is the list of files "
11982 "from this directory."
11986 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11988 "On return you get a list of stat structs, with a one-to-one correspondence "
11989 "to the C<names> list. If any name did not exist or could not be lstat'd, "
11990 "then the C<ino> field of that structure is set to C<-1>."
11994 #: ../fish/guestfish-actions.pod:2781
11996 "This call is intended for programs that want to efficiently list a directory "
11997 "contents without making many round-trips. See also L</lxattrlist> for a "
11998 "similarly efficient call for getting extended attributes. Very long "
11999 "directory listings might cause the protocol message size to be exceeded, "
12000 "causing this call to fail. The caller must split up such requests into "
12001 "smaller groups of names."
12005 #: ../fish/guestfish-actions.pod:2789
12006 msgid "luks-add-key"
12007 msgstr "luks-add-key"
12010 #: ../fish/guestfish-actions.pod:2791
12013 " luks-add-key device keyslot\n"
12018 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
12020 "This command adds a new key on LUKS device C<device>. C<key> is any "
12021 "existing key, and is used to access the device. C<newkey> is the new key to "
12022 "add. C<keyslot> is the key slot that will be replaced."
12026 #: ../fish/guestfish-actions.pod:2798
12028 "Note that if C<keyslot> already contains a key, then this command will "
12029 "fail. You have to use L</luks-kill-slot> first to remove that key."
12033 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
12034 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
12035 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
12037 "This command has one or more key or passphrase parameters. Guestfish will "
12038 "prompt for these separately."
12042 #: ../fish/guestfish-actions.pod:2805
12044 msgstr "luks-close"
12047 #: ../fish/guestfish-actions.pod:2807
12050 " luks-close device\n"
12053 " luks-close пристрій\n"
12057 #: ../fish/guestfish-actions.pod:2809
12059 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12060 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12061 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12066 #: ../fish/guestfish-actions.pod:2815
12067 msgid "luks-format"
12068 msgstr "luks-format"
12071 #: ../fish/guestfish-actions.pod:2817
12074 " luks-format device keyslot\n"
12079 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
12081 "This command erases existing data on C<device> and formats the device as a "
12082 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12083 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12087 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
12088 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
12089 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
12090 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
12091 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
12092 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
12093 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
12094 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
12095 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
12097 "B<This command is dangerous. Without careful use you can easily destroy all "
12102 #: ../fish/guestfish-actions.pod:2830
12103 msgid "luks-format-cipher"
12104 msgstr "luks-format-cipher"
12107 #: ../fish/guestfish-actions.pod:2832
12110 " luks-format-cipher device keyslot cipher\n"
12115 #: ../fish/guestfish-actions.pod:2834
12117 "This command is the same as L</luks-format> but it also allows you to set "
12118 "the C<cipher> used."
12122 #: ../fish/guestfish-actions.pod:2843
12123 msgid "luks-kill-slot"
12124 msgstr "luks-kill-slot"
12127 #: ../fish/guestfish-actions.pod:2845
12130 " luks-kill-slot device keyslot\n"
12135 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
12137 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12138 "device C<device>. C<key> must be one of the I<other> keys."
12142 #: ../fish/guestfish-actions.pod:2854
12147 #: ../fish/guestfish-actions.pod:2856
12150 " luks-open device mapname\n"
12155 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
12157 "This command opens a block device which has been encrypted according to the "
12158 "Linux Unified Key Setup (LUKS) standard."
12162 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
12163 msgid "C<device> is the encrypted block device or partition."
12167 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
12169 "The caller must supply one of the keys associated with the LUKS block "
12170 "device, in the C<key> parameter."
12174 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
12176 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12177 "writes to this block device are decrypted from and encrypted to the "
12178 "underlying C<device> respectively."
12182 #: ../fish/guestfish-actions.pod:2870
12184 "If this block device contains LVM volume groups, then calling L</vgscan> "
12185 "followed by L</vg-activate-all> will make them visible."
12189 #: ../fish/guestfish-actions.pod:2874
12190 msgid "Use L</list-dm-devices> to list all device mapper devices."
12194 #: ../fish/guestfish-actions.pod:2880
12195 msgid "luks-open-ro"
12196 msgstr "luks-open-ro"
12199 #: ../fish/guestfish-actions.pod:2882
12202 " luks-open-ro device mapname\n"
12207 #: ../fish/guestfish-actions.pod:2884
12209 "This is the same as L</luks-open> except that a read-only mapping is created."
12213 #: ../fish/guestfish-actions.pod:2890
12218 #: ../fish/guestfish-actions.pod:2892
12221 " lvcreate logvol volgroup mbytes\n"
12226 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
12228 "This creates an LVM logical volume called C<logvol> on the volume group "
12229 "C<volgroup>, with C<size> megabytes."
12233 #: ../fish/guestfish-actions.pod:2897
12234 msgid "lvm-canonical-lv-name"
12235 msgstr "lvm-canonical-lv-name"
12238 #: ../fish/guestfish-actions.pod:2899
12241 " lvm-canonical-lv-name lvname\n"
12246 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
12248 "This converts alternative naming schemes for LVs that you might find to the "
12249 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12254 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
12256 "This command returns an error if the C<lvname> parameter does not refer to a "
12261 #: ../fish/guestfish-actions.pod:2908
12262 msgid "See also L</is-lv>."
12263 msgstr "Див. також L</is-lv>."
12266 #: ../fish/guestfish-actions.pod:2910
12267 msgid "lvm-clear-filter"
12268 msgstr "lvm-clear-filter"
12271 #: ../fish/guestfish-actions.pod:2912
12274 " lvm-clear-filter\n"
12277 " lvm-clear-filter\n"
12281 #: ../fish/guestfish-actions.pod:2914
12283 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12288 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
12289 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
12291 "This command also clears the LVM cache and performs a volume group scan."
12295 #: ../fish/guestfish-actions.pod:2920
12296 msgid "lvm-remove-all"
12297 msgstr "lvm-remove-all"
12300 #: ../fish/guestfish-actions.pod:2922
12303 " lvm-remove-all\n"
12306 " lvm-remove-all\n"
12310 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
12312 "This command removes all LVM logical volumes, volume groups and physical "
12317 #: ../fish/guestfish-actions.pod:2930
12318 msgid "lvm-set-filter"
12319 msgstr "lvm-set-filter"
12322 #: ../fish/guestfish-actions.pod:2932
12325 " lvm-set-filter 'devices ...'\n"
12328 " lvm-set-filter 'пристрої...'\n"
12332 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12334 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12335 "block devices in the list C<devices>, and will ignore all other attached "
12340 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12342 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12343 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12344 "there are two types of duplication possible: either cloned PVs/VGs which "
12345 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12346 "same name. In normal operation you cannot create this situation, but you "
12347 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12348 "inside the LVM metadata."
12352 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12353 msgid "You can filter whole block devices or individual partitions."
12357 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12359 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12360 "filesystem), even if you are not filtering out that VG."
12364 #: ../fish/guestfish-actions.pod:2957
12369 #: ../fish/guestfish-actions.pod:2959
12372 " lvremove device\n"
12375 " lvremove пристрій\n"
12379 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12381 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12382 "LV, such as C</dev/VG/LV>."
12386 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12388 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12393 #: ../fish/guestfish-actions.pod:2967
12398 #: ../fish/guestfish-actions.pod:2969
12401 " lvrename logvol newlogvol\n"
12406 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12407 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12411 #: ../fish/guestfish-actions.pod:2973
12416 #: ../fish/guestfish-actions.pod:2975
12419 " lvresize device mbytes\n"
12424 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12426 "This resizes (expands or shrinks) an existing LVM logical volume to "
12427 "C<mbytes>. When reducing, data in the reduced part is lost."
12431 #: ../fish/guestfish-actions.pod:2981
12432 msgid "lvresize-free"
12433 msgstr "lvresize-free"
12436 #: ../fish/guestfish-actions.pod:2983
12439 " lvresize-free lv percent\n"
12444 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12446 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12447 "remaining free space in the volume group. Commonly you would call this with "
12448 "pc = 100 which expands the logical volume as much as possible, using all "
12449 "remaining free space in the volume group."
12453 #: ../fish/guestfish-actions.pod:2991
12458 #: ../fish/guestfish-actions.pod:2993
12468 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12470 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12475 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12477 "This returns a list of the logical volume device names (eg. C</dev/"
12478 "VolGroup00/LogVol00>)."
12482 #: ../fish/guestfish-actions.pod:3001
12483 msgid "See also L</lvs-full>, L</list-filesystems>."
12484 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12487 #: ../fish/guestfish-actions.pod:3003
12492 #: ../fish/guestfish-actions.pod:3005
12502 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12504 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12505 "(8)> command. The \"full\" version includes all fields."
12509 #: ../fish/guestfish-actions.pod:3010
12514 #: ../fish/guestfish-actions.pod:3012
12520 " lvuuid пристрій\n"
12524 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12525 msgid "This command returns the UUID of the LVM LV C<device>."
12529 #: ../fish/guestfish-actions.pod:3016
12531 msgstr "lxattrlist"
12534 #: ../fish/guestfish-actions.pod:3018
12537 " lxattrlist path 'names ...'\n"
12542 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12544 "This call allows you to get the extended attributes of multiple files, where "
12545 "all files are in the directory C<path>. C<names> is the list of files from "
12550 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12552 "On return you get a flat list of xattr structs which must be interpreted "
12553 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12554 "C<attrval> in this struct is zero-length to indicate there was an error "
12555 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12556 "number (the number of following attributes for this file, which could be C<"
12557 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12558 "for the first named file. This repeats for the second and subsequent files."
12562 #: ../fish/guestfish-actions.pod:3034
12564 "This call is intended for programs that want to efficiently list a directory "
12565 "contents without making many round-trips. See also L</lstatlist> for a "
12566 "similarly efficient call for getting standard stats. Very long directory "
12567 "listings might cause the protocol message size to be exceeded, causing this "
12568 "call to fail. The caller must split up such requests into smaller groups of "
12573 #: ../fish/guestfish-actions.pod:3042
12578 #: ../fish/guestfish-actions.pod:3044
12588 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12589 msgid "Create a directory named C<path>."
12593 #: ../fish/guestfish-actions.pod:3048
12595 msgstr "mkdir-mode"
12598 #: ../fish/guestfish-actions.pod:3050
12601 " mkdir-mode path mode\n"
12604 " mkdir-mode шлях режим\n"
12608 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12610 "This command creates a directory, setting the initial permissions of the "
12611 "directory to C<mode>."
12615 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12617 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12618 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12623 #: ../fish/guestfish-actions.pod:3059
12624 msgid "See also L</mkdir>, L</umask>"
12625 msgstr "Див. також L</mkdir>, L</umask>"
12628 #: ../fish/guestfish-actions.pod:3061
12633 #: ../fish/guestfish-actions.pod:3063
12643 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12645 "Create a directory named C<path>, creating any parent directories as "
12646 "necessary. This is like the C<mkdir -p> shell command."
12650 #: ../fish/guestfish-actions.pod:3068
12655 #: ../fish/guestfish-actions.pod:3070
12658 " mkdtemp template\n"
12661 " mkdtemp шаблон\n"
12665 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12667 "This command creates a temporary directory. The C<template> parameter "
12668 "should be a full pathname for the temporary directory name with the final "
12669 "six characters being \"XXXXXX\"."
12673 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12675 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12676 "being suitable for Windows filesystems."
12680 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12681 msgid "The name of the temporary directory that was created is returned."
12685 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12686 msgid "The temporary directory is created with mode 0700 and is owned by root."
12690 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12692 "The caller is responsible for deleting the temporary directory and its "
12693 "contents after use."
12697 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12698 msgid "See also: L<mkdtemp(3)>"
12699 msgstr "Див. також L<mkdtemp(3)>"
12702 #: ../fish/guestfish-actions.pod:3091
12707 #: ../fish/guestfish-actions.pod:3093
12710 " mke2fs-J fstype blocksize device journal\n"
12715 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12717 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12718 "C<journal>. It is equivalent to the command:"
12722 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12725 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12728 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12732 #: ../fish/guestfish-actions.pod:3101
12733 msgid "See also L</mke2journal>."
12734 msgstr "Див. також L</mke2journal>."
12737 #: ../fish/guestfish-actions.pod:3103
12742 #: ../fish/guestfish-actions.pod:3105
12745 " mke2fs-JL fstype blocksize device label\n"
12750 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12752 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12753 "the journal labeled C<label>."
12757 #: ../fish/guestfish-actions.pod:3110
12758 msgid "See also L</mke2journal-L>."
12759 msgstr "Див. також L</mke2journal-L>."
12762 #: ../fish/guestfish-actions.pod:3112
12767 #: ../fish/guestfish-actions.pod:3114
12770 " mke2fs-JU fstype blocksize device uuid\n"
12775 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12777 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12778 "the journal with UUID C<uuid>."
12782 #: ../fish/guestfish-actions.pod:3119
12783 msgid "See also L</mke2journal-U>."
12784 msgstr "Див. також L</mke2journal-U>."
12787 #: ../fish/guestfish-actions.pod:3121
12788 msgid "mke2journal"
12789 msgstr "mke2journal"
12792 #: ../fish/guestfish-actions.pod:3123
12795 " mke2journal blocksize device\n"
12800 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12802 "This creates an ext2 external journal on C<device>. It is equivalent to the "
12807 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12810 " mke2fs -O journal_dev -b blocksize device\n"
12815 #: ../fish/guestfish-actions.pod:3130
12816 msgid "mke2journal-L"
12817 msgstr "mke2journal-L"
12820 #: ../fish/guestfish-actions.pod:3132
12823 " mke2journal-L blocksize label device\n"
12828 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12829 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12833 #: ../fish/guestfish-actions.pod:3136
12834 msgid "mke2journal-U"
12835 msgstr "mke2journal-U"
12838 #: ../fish/guestfish-actions.pod:3138
12841 " mke2journal-U blocksize uuid device\n"
12846 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12847 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12851 #: ../fish/guestfish-actions.pod:3142
12856 #: ../fish/guestfish-actions.pod:3144
12859 " mkfifo mode path\n"
12862 " mkfifo режим шлях\n"
12866 #: ../fish/guestfish-actions.pod:3146
12868 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
12869 "is just a convenient wrapper around L</mknod>."
12873 #: ../fish/guestfish-actions.pod:3152
12878 #: ../fish/guestfish-actions.pod:3154
12881 " mkfs fstype device\n"
12884 " mkfs тип_файлової_системи пристрій\n"
12888 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12890 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12891 "volume). The filesystem type is C<fstype>, for example C<ext3>."
12895 #: ../fish/guestfish-actions.pod:3160
12900 #: ../fish/guestfish-actions.pod:3162
12903 " mkfs-b fstype blocksize device\n"
12908 #: ../fish/guestfish-actions.pod:3164
12910 "This call is similar to L</mkfs>, but it allows you to control the block "
12911 "size of the resulting filesystem. Supported block sizes depend on the "
12912 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12916 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12917 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12919 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12924 #: ../fish/guestfish-actions.pod:3172
12926 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12931 #: ../fish/guestfish-actions.pod:3179
12936 #: ../fish/guestfish-actions.pod:3181
12939 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12944 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12946 "This function creates a filesystem on C<device>. The filesystem type is "
12947 "C<fstype>, for example C<ext3>."
12951 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12952 msgid "C<blocksize>"
12953 msgstr "C<blocksize>"
12956 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12958 "The filesystem block size. Supported block sizes depend on the filesystem "
12959 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12964 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12965 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12969 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12970 msgid "C<features>"
12971 msgstr "C<features>"
12974 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12975 msgid "This passes the I<-O> parameter to the external mkfs program."
12979 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12981 "For certain filesystem types, this allows extra filesystem features to be "
12982 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12986 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12988 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12993 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12998 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
13000 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13001 "sets the inode size (only for ext2/3/4 filesystems at present)."
13005 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
13006 msgid "C<sectorsize>"
13007 msgstr "C<sectorsize>"
13010 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
13012 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13013 "sets sector size for ufs filesystem."
13017 #: ../fish/guestfish-actions.pod:3226
13018 msgid "mkmountpoint"
13019 msgstr "mkmountpoint"
13022 #: ../fish/guestfish-actions.pod:3228
13025 " mkmountpoint exemptpath\n"
13030 #: ../fish/guestfish-actions.pod:3230
13032 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13033 "to create extra mountpoints before mounting the first filesystem."
13037 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
13039 "These calls are I<only> necessary in some very limited circumstances, mainly "
13040 "the case where you want to mount a mix of unrelated and/or read-only "
13041 "filesystems together."
13045 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
13047 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13048 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13049 "inside that. You can unpack this as follows in guestfish:"
13053 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
13056 " add-ro Fedora-11-i686-Live.iso\n"
13058 " mkmountpoint /cd\n"
13059 " mkmountpoint /sqsh\n"
13060 " mkmountpoint /ext3fs\n"
13061 " mount /dev/sda /cd\n"
13062 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13063 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13066 " add-ro Fedora-11-i686-Live.iso\n"
13068 " mkmountpoint /cd\n"
13069 " mkmountpoint /sqsh\n"
13070 " mkmountpoint /ext3fs\n"
13071 " mount /dev/sda /cd\n"
13072 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13073 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13077 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
13078 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13082 #: ../fish/guestfish-actions.pod:3254
13084 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13085 "unexpected errors if you try to mix these calls. It is safest to manually "
13086 "unmount filesystems and remove mountpoints after use."
13090 #: ../fish/guestfish-actions.pod:3258
13092 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13093 "for this to work for manual mountpoints, you must ensure that the innermost "
13094 "mountpoints have the longest pathnames, as in the example code above."
13098 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
13100 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13104 #: ../fish/guestfish-actions.pod:3265
13106 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13107 "L</umount-all> to be called when the handle is closed which can also trigger "
13112 #: ../fish/guestfish-actions.pod:3269
13117 #: ../fish/guestfish-actions.pod:3271
13120 " mknod mode devmajor devminor path\n"
13125 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
13127 "This call creates block or character special devices, or named pipes (FIFOs)."
13131 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
13133 "The C<mode> parameter should be the mode, using the standard constants. "
13134 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13135 "used when creating block and character special devices."
13139 #: ../fish/guestfish-actions.pod:3281
13141 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13142 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13143 "regular file). These constants are available in the standard Linux header "
13144 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13145 "wrappers around this command which bitwise OR in the appropriate constant "
13150 #: ../fish/guestfish-actions.pod:3291
13155 #: ../fish/guestfish-actions.pod:3293
13158 " mknod-b mode devmajor devminor path\n"
13163 #: ../fish/guestfish-actions.pod:3295
13165 "This call creates a block device node called C<path> with mode C<mode> and "
13166 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13167 "wrapper around L</mknod>."
13171 #: ../fish/guestfish-actions.pod:3301
13176 #: ../fish/guestfish-actions.pod:3303
13179 " mknod-c mode devmajor devminor path\n"
13184 #: ../fish/guestfish-actions.pod:3305
13186 "This call creates a char device node called C<path> with mode C<mode> and "
13187 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13188 "wrapper around L</mknod>."
13192 #: ../fish/guestfish-actions.pod:3311
13197 #: ../fish/guestfish-actions.pod:3313
13203 " mkswap пристрій\n"
13207 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
13208 msgid "Create a swap partition on C<device>."
13212 #: ../fish/guestfish-actions.pod:3317
13217 #: ../fish/guestfish-actions.pod:3319
13220 " mkswap-L label device\n"
13223 " mkswap-L мітка пристрій\n"
13227 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
13228 msgid "Create a swap partition on C<device> with label C<label>."
13232 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
13234 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13235 "sda>), just to a partition. This appears to be a limitation of the kernel "
13240 #: ../fish/guestfish-actions.pod:3327
13245 #: ../fish/guestfish-actions.pod:3329
13248 " mkswap-U uuid device\n"
13251 " mkswap-U uuid пристрій\n"
13255 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
13256 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13260 #: ../fish/guestfish-actions.pod:3333
13261 msgid "mkswap-file"
13262 msgstr "mkswap-file"
13265 #: ../fish/guestfish-actions.pod:3335
13268 " mkswap-file path\n"
13271 " mkswap-file шлях\n"
13275 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
13276 msgid "Create a swap file."
13277 msgstr "Створити файл резервної пам’яті."
13280 #: ../fish/guestfish-actions.pod:3339
13282 "This command just writes a swap file signature to an existing file. To "
13283 "create the file itself, use something like L</fallocate>."
13287 #: ../fish/guestfish-actions.pod:3342
13292 #: ../fish/guestfish-actions.pod:3344
13295 " modprobe modulename\n"
13298 " modprobe назва_модуля\n"
13302 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
13303 msgid "This loads a kernel module in the appliance."
13307 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
13309 "The kernel module must have been whitelisted when libguestfs was built (see "
13310 "C<appliance/kmod.whitelist.in> in the source)."
13314 #: ../fish/guestfish-actions.pod:3351
13319 #: ../fish/guestfish-actions.pod:3353
13322 " mount device mountpoint\n"
13325 " mount пристрій точка_монтування\n"
13329 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
13331 "Mount a guest disk at a position in the filesystem. Block devices are named "
13332 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13333 "those block devices contain partitions, they will have the usual names (eg. "
13334 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13338 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
13340 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13341 "mounted on C</> before others can be mounted. Other filesystems can only be "
13342 "mounted on directories which already exist."
13346 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
13348 "The mounted filesystem is writable, if we have sufficient permissions on the "
13349 "underlying device."
13353 #: ../fish/guestfish-actions.pod:3369
13355 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13356 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13357 "problems for users. If your program might need to work with older versions "
13358 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13359 "first parameter if you don't want any options)."
13363 #: ../fish/guestfish-actions.pod:3376
13368 #: ../fish/guestfish-actions.pod:3378
13371 " mount-9p mounttag mountpoint [options:..]\n"
13376 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13378 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13383 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13385 "If required, C<trans=virtio> will be automatically added to the options. "
13386 "Any other options required can be passed in the optional C<options> "
13391 #: ../fish/guestfish-actions.pod:3389
13393 msgstr "mount-loop"
13396 #: ../fish/guestfish-actions.pod:3391
13399 " mount-loop file mountpoint\n"
13404 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13406 "This command lets you mount C<file> (a filesystem image in a file) on a "
13407 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13412 #: ../fish/guestfish-actions.pod:3397
13413 msgid "mount-options"
13414 msgstr "mount-options"
13417 #: ../fish/guestfish-actions.pod:3399
13420 " mount-options options device mountpoint\n"
13425 #: ../fish/guestfish-actions.pod:3401
13427 "This is the same as the L</mount> command, but it allows you to set the "
13428 "mount options as for the L<mount(8)> I<-o> flag."
13432 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13434 "If the C<options> parameter is an empty string, then no options are passed "
13435 "(all options default to whatever the filesystem uses)."
13439 #: ../fish/guestfish-actions.pod:3409
13444 #: ../fish/guestfish-actions.pod:3411
13447 " mount-ro device mountpoint\n"
13450 " mount-ro пристрій точка_монтування\n"
13454 #: ../fish/guestfish-actions.pod:3413
13456 "This is the same as the L</mount> command, but it mounts the filesystem with "
13457 "the read-only (I<-o ro>) flag."
13461 #: ../fish/guestfish-actions.pod:3416
13466 #: ../fish/guestfish-actions.pod:3418
13469 " mount-vfs options vfstype device mountpoint\n"
13474 #: ../fish/guestfish-actions.pod:3420
13476 "This is the same as the L</mount> command, but it allows you to set both the "
13477 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13481 #: ../fish/guestfish-actions.pod:3424
13482 msgid "mountpoints"
13483 msgstr "mountpoints"
13486 #: ../fish/guestfish-actions.pod:3426
13496 #: ../fish/guestfish-actions.pod:3428
13498 "This call is similar to L</mounts>. That call returns a list of devices. "
13499 "This one returns a hash table (map) of device name to directory where the "
13500 "device is mounted."
13504 #: ../fish/guestfish-actions.pod:3432
13509 #: ../fish/guestfish-actions.pod:3434
13519 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13521 "This returns the list of currently mounted filesystems. It returns the list "
13522 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13526 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13527 msgid "Some internal mounts are not shown."
13531 #: ../fish/guestfish-actions.pod:3441
13532 msgid "See also: L</mountpoints>"
13533 msgstr "Див. також L</mountpoints>"
13536 #: ../fish/guestfish-actions.pod:3443
13541 #: ../fish/guestfish-actions.pod:3445
13547 " mv джерело призначення\n"
13551 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13553 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13554 "destination filename or destination directory."
13558 #: ../fish/guestfish-actions.pod:3450
13559 msgid "ntfs-3g-probe"
13560 msgstr "ntfs-3g-probe"
13563 #: ../fish/guestfish-actions.pod:3452
13566 " ntfs-3g-probe true|false device\n"
13571 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13573 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13574 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13575 "write, and some cannot be mounted at all)."
13579 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13581 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13582 "can be mounted read-write. Set it to false if you want to test if the "
13583 "volume can be mounted read-only."
13587 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13589 "The return value is an integer which C<0> if the operation would succeed, or "
13590 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13594 #: ../fish/guestfish-actions.pod:3466
13596 msgstr "ntfsresize"
13599 #: ../fish/guestfish-actions.pod:3468
13602 " ntfsresize device\n"
13605 " ntfsresize пристрій\n"
13609 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13610 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13612 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13613 "size of the underlying device."
13617 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13619 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13620 "consistency check (for safety). You have to boot into Windows to perform "
13621 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13622 "resize filesystems which have been marked in this way. So in effect it is "
13623 "not possible to call ntfsresize multiple times on a single filesystem "
13624 "without booting into Windows between each resize."
13628 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13629 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13630 msgid "See also L<ntfsresize(8)>."
13631 msgstr "Див. також L<ntfsresize(8)>."
13634 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13636 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13641 #: ../fish/guestfish-actions.pod:3490
13642 msgid "ntfsresize-opts"
13646 #: ../fish/guestfish-actions.pod:3492
13649 " ntfsresize-opts device [size:..] [force:..]\n"
13654 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13656 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13657 "resized to fit the container (eg. partition)."
13661 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13666 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13668 "If this option is true, then force the resize of the filesystem even if the "
13669 "filesystem is marked as requiring a consistency check."
13673 #: ../fish/guestfish-actions.pod:3511
13675 "After the resize operation, the filesystem is always marked as requiring a "
13676 "consistency check (for safety). You have to boot into Windows to perform "
13677 "this check and clear this condition. If you I<don't> set the C<force> "
13678 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13679 "a single filesystem without booting into Windows between each resize."
13683 #: ../fish/guestfish-actions.pod:3524
13684 msgid "ntfsresize-size"
13685 msgstr "ntfsresize-size"
13688 #: ../fish/guestfish-actions.pod:3526
13691 " ntfsresize-size device size\n"
13696 #: ../fish/guestfish-actions.pod:3528
13698 "This command is the same as L</ntfsresize> except that it allows you to "
13699 "specify the new size (in bytes) explicitly."
13703 #: ../fish/guestfish-actions.pod:3538
13708 #: ../fish/guestfish-actions.pod:3540
13711 " part-add device prlogex startsect endsect\n"
13716 #: ../fish/guestfish-actions.pod:3542
13718 "This command adds a partition to C<device>. If there is no partition table "
13719 "on the device, call L</part-init> first."
13723 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13725 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13726 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13727 "C<logical>) and C<e> (or C<extended>) partition types."
13731 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13733 "C<startsect> and C<endsect> are the start and end of the partition in "
13734 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13735 "from the end of the disk (C<-1> is the last sector)."
13739 #: ../fish/guestfish-actions.pod:3554
13741 "Creating a partition which covers the whole disk is not so easy. Use L</"
13742 "part-disk> to do that."
13746 #: ../fish/guestfish-actions.pod:3557
13751 #: ../fish/guestfish-actions.pod:3559
13754 " part-del device partnum\n"
13759 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13760 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13764 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13766 "Note that in the case of MBR partitioning, deleting an extended partition "
13767 "also deletes any logical partitions it contains."
13771 #: ../fish/guestfish-actions.pod:3567
13776 #: ../fish/guestfish-actions.pod:3569
13779 " part-disk device parttype\n"
13782 " part-disk пристрій тип_розділу\n"
13786 #: ../fish/guestfish-actions.pod:3571
13788 "This command is simply a combination of L</part-init> followed by L</part-"
13789 "add> to create a single primary partition covering the whole disk."
13793 #: ../fish/guestfish-actions.pod:3575
13795 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13796 "possible values are described in L</part-init>."
13800 #: ../fish/guestfish-actions.pod:3581
13801 msgid "part-get-bootable"
13802 msgstr "part-get-bootable"
13805 #: ../fish/guestfish-actions.pod:3583
13808 " part-get-bootable device partnum\n"
13813 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13815 "This command returns true if the partition C<partnum> on C<device> has the "
13816 "bootable flag set."
13820 #: ../fish/guestfish-actions.pod:3588
13821 msgid "See also L</part-set-bootable>."
13822 msgstr "Див. також L</part-set-bootable>."
13825 #: ../fish/guestfish-actions.pod:3590
13826 msgid "part-get-mbr-id"
13827 msgstr "part-get-mbr-id"
13830 #: ../fish/guestfish-actions.pod:3592
13833 " part-get-mbr-id device partnum\n"
13838 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13840 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13841 "partition C<partnum>."
13845 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13847 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
13848 "undefined results for other partition table types (see L</part-get-"
13853 #: ../fish/guestfish-actions.pod:3601
13854 msgid "part-get-parttype"
13855 msgstr "part-get-parttype"
13858 #: ../fish/guestfish-actions.pod:3603
13861 " part-get-parttype device\n"
13864 " part-get-parttype пристрій\n"
13868 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13870 "This command examines the partition table on C<device> and returns the "
13871 "partition table type (format) being used."
13875 #: ../fish/guestfish-actions.pod:3608
13877 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13878 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
13879 "possible, although unusual. See L</part-init> for a full list."
13883 #: ../fish/guestfish-actions.pod:3613
13888 #: ../fish/guestfish-actions.pod:3615
13891 " part-init device parttype\n"
13896 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13898 "This creates an empty partition table on C<device> of one of the partition "
13899 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
13900 "(for large disks)."
13904 #: ../fish/guestfish-actions.pod:3621
13906 "Initially there are no partitions. Following this, you should call L</part-"
13907 "add> for each partition required."
13911 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13912 msgid "Possible values for C<parttype> are:"
13916 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13921 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13926 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13927 msgid "Intel EFI / GPT partition table."
13931 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13933 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13934 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
13935 "the C<mbr> format."
13939 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13944 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13949 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13951 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13952 "Windows. This partition type will B<only> work for device sizes up to 2 "
13953 "TB. For large disks we recommend using C<gpt>."
13957 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13959 "Other partition table types that may work but are not supported include:"
13963 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13968 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13969 msgid "AIX disk labels."
13970 msgstr "Мітки дисків AIX."
13973 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13978 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13983 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13984 msgid "Amiga \"Rigid Disk Block\" format."
13985 msgstr "Формат \"Rigid Disk Block\" Amiga."
13988 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13993 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13994 msgid "BSD disk labels."
13995 msgstr "Мітки дисків BSD."
13998 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
14003 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
14004 msgid "DASD, used on IBM mainframes."
14005 msgstr "DASD, використовувалися у мейнфреймах IBM."
14008 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
14013 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
14014 msgid "MIPS/SGI volumes."
14015 msgstr "Томи MIPS/SGI."
14018 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
14023 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
14024 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14025 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14028 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
14033 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
14034 msgid "NEC PC-98 format, common in Japan apparently."
14035 msgstr "Формат NEC PC-98, поширений у Японії."
14038 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
14043 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
14044 msgid "Sun disk labels."
14045 msgstr "Мітки дисків Sun."
14048 #: ../fish/guestfish-actions.pod:3690
14053 #: ../fish/guestfish-actions.pod:3692
14056 " part-list device\n"
14059 " part-list device\n"
14063 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
14065 "This command parses the partition table on C<device> and returns the list of "
14066 "partitions found."
14070 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
14071 msgid "The fields in the returned structure are:"
14075 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
14076 msgid "B<part_num>"
14077 msgstr "B<part_num>"
14080 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
14081 msgid "Partition number, counting from 1."
14085 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
14086 msgid "B<part_start>"
14087 msgstr "B<part_start>"
14090 #: ../fish/guestfish-actions.pod:3707
14092 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14093 "the device's sector size, see L</blockdev-getss>."
14097 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
14098 msgid "B<part_end>"
14099 msgstr "B<part_end>"
14102 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
14103 msgid "End of the partition in bytes."
14107 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
14108 msgid "B<part_size>"
14109 msgstr "B<part_size>"
14112 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
14113 msgid "Size of the partition in bytes."
14117 #: ../fish/guestfish-actions.pod:3720
14118 msgid "part-set-bootable"
14119 msgstr "part-set-bootable"
14122 #: ../fish/guestfish-actions.pod:3722
14125 " part-set-bootable device partnum true|false\n"
14130 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
14132 "This sets the bootable flag on partition numbered C<partnum> on device "
14133 "C<device>. Note that partitions are numbered from 1."
14137 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
14139 "The bootable flag is used by some operating systems (notably Windows) to "
14140 "determine which partition to boot from. It is by no means universally "
14145 #: ../fish/guestfish-actions.pod:3731
14146 msgid "part-set-mbr-id"
14147 msgstr "part-set-mbr-id"
14150 #: ../fish/guestfish-actions.pod:3733
14153 " part-set-mbr-id device partnum idbyte\n"
14158 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
14160 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14161 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14162 "documentation are in fact hexadecimal numbers, but usually documented "
14163 "without any leading \"0x\" which might be confusing."
14167 #: ../fish/guestfish-actions.pod:3745
14168 msgid "part-set-name"
14169 msgstr "part-set-name"
14172 #: ../fish/guestfish-actions.pod:3747
14175 " part-set-name device partnum name\n"
14180 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
14182 "This sets the partition name on partition numbered C<partnum> on device "
14183 "C<device>. Note that partitions are numbered from 1."
14187 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
14189 "The partition name can only be set on certain types of partition table. "
14190 "This works on C<gpt> but not on C<mbr> partitions."
14194 #: ../fish/guestfish-actions.pod:3755
14195 msgid "part-to-dev"
14196 msgstr "part-to-dev"
14199 #: ../fish/guestfish-actions.pod:3757
14202 " part-to-dev partition\n"
14205 " part-to-dev розділ\n"
14209 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
14211 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14212 "partition number, returning the device name (eg. \"/dev/sdb\")."
14216 #: ../fish/guestfish-actions.pod:3763
14218 "The named partition must exist, for example as a string returned from L</"
14219 "list-partitions>."
14223 #: ../fish/guestfish-actions.pod:3766
14224 msgid "ping-daemon"
14225 msgstr "ping-daemon"
14228 #: ../fish/guestfish-actions.pod:3768
14238 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
14240 "This is a test probe into the guestfs daemon running inside the qemu "
14241 "subprocess. Calling this function checks that the daemon responds to the "
14242 "ping message, without affecting the daemon or attached block device(s) in "
14247 #: ../fish/guestfish-actions.pod:3775
14252 #: ../fish/guestfish-actions.pod:3777
14255 " pread path count offset\n"
14260 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
14262 "This command lets you read part of a file. It reads C<count> bytes of the "
14263 "file, starting at C<offset>, from file C<path>."
14267 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
14268 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
14270 "This may read fewer bytes than requested. For further details see the "
14271 "L<pread(2)> system call."
14275 #: ../fish/guestfish-actions.pod:3785
14276 msgid "See also L</pwrite>, L</pread-device>."
14277 msgstr "Див. також L</pwrite>, L</pread-device>."
14280 #: ../fish/guestfish-actions.pod:3790
14281 msgid "pread-device"
14282 msgstr "pread-device"
14285 #: ../fish/guestfish-actions.pod:3792
14288 " pread-device device count offset\n"
14293 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
14295 "This command lets you read part of a file. It reads C<count> bytes of "
14296 "C<device>, starting at C<offset>."
14300 #: ../fish/guestfish-actions.pod:3800
14301 msgid "See also L</pread>."
14302 msgstr "Див. також L</pread>."
14305 #: ../fish/guestfish-actions.pod:3805
14310 #: ../fish/guestfish-actions.pod:3807
14313 " pvcreate device\n"
14316 " pvcreate пристрій\n"
14320 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
14322 "This creates an LVM physical volume on the named C<device>, where C<device> "
14323 "should usually be a partition name such as C</dev/sda1>."
14327 #: ../fish/guestfish-actions.pod:3813
14332 #: ../fish/guestfish-actions.pod:3815
14335 " pvremove device\n"
14338 " pvremove пристрій\n"
14342 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
14344 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14349 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
14351 "The implementation uses the C<pvremove> command which refuses to wipe "
14352 "physical volumes that contain any volume groups, so you have to remove those "
14357 #: ../fish/guestfish-actions.pod:3824
14362 #: ../fish/guestfish-actions.pod:3826
14365 " pvresize device\n"
14368 " pvresize пристрій\n"
14372 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
14374 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14375 "the new size of the underlying device."
14379 #: ../fish/guestfish-actions.pod:3831
14380 msgid "pvresize-size"
14381 msgstr "pvresize-size"
14384 #: ../fish/guestfish-actions.pod:3833
14387 " pvresize-size device size\n"
14392 #: ../fish/guestfish-actions.pod:3835
14394 "This command is the same as L</pvresize> except that it allows you to "
14395 "specify the new size (in bytes) explicitly."
14399 #: ../fish/guestfish-actions.pod:3838
14404 #: ../fish/guestfish-actions.pod:3840
14414 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14416 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14421 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14423 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14428 #: ../fish/guestfish-actions.pod:3848
14429 msgid "See also L</pvs-full>."
14430 msgstr "Див. також L</pvs-full>."
14433 #: ../fish/guestfish-actions.pod:3850
14438 #: ../fish/guestfish-actions.pod:3852
14448 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14450 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14451 "(8)> command. The \"full\" version includes all fields."
14455 #: ../fish/guestfish-actions.pod:3857
14460 #: ../fish/guestfish-actions.pod:3859
14466 " pvuuid пристрій\n"
14470 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14471 msgid "This command returns the UUID of the LVM PV C<device>."
14475 #: ../fish/guestfish-actions.pod:3863
14480 #: ../fish/guestfish-actions.pod:3865
14483 " pwrite path content offset\n"
14488 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14490 "This command writes to part of a file. It writes the data buffer C<content> "
14491 "to the file C<path> starting at offset C<offset>."
14495 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14497 "This command implements the L<pwrite(2)> system call, and like that system "
14498 "call it may not write the full data requested. The return value is the "
14499 "number of bytes that were actually written to the file. This could even be "
14500 "0, although short writes are unlikely for regular files in ordinary "
14505 #: ../fish/guestfish-actions.pod:3876
14506 msgid "See also L</pread>, L</pwrite-device>."
14507 msgstr "Див. також L</pread>, L</pwrite-device>."
14510 #: ../fish/guestfish-actions.pod:3881
14511 msgid "pwrite-device"
14512 msgstr "pwrite-device"
14515 #: ../fish/guestfish-actions.pod:3883
14518 " pwrite-device device content offset\n"
14523 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14525 "This command writes to part of a device. It writes the data buffer "
14526 "C<content> to C<device> starting at offset C<offset>."
14530 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14532 "This command implements the L<pwrite(2)> system call, and like that system "
14533 "call it may not write the full data requested (although short writes to disk "
14534 "devices and partitions are probably impossible with standard Linux kernels)."
14538 #: ../fish/guestfish-actions.pod:3893
14539 msgid "See also L</pwrite>."
14540 msgstr "Див. також L</pwrite>."
14543 #: ../fish/guestfish-actions.pod:3898
14548 #: ../fish/guestfish-actions.pod:3900
14551 " read-file path\n"
14554 " read-file шлях\n"
14558 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14559 msgid "This calls returns the contents of the file C<path> as a buffer."
14563 #: ../fish/guestfish-actions.pod:3905
14565 "Unlike L</cat>, this function can correctly handle files that contain "
14566 "embedded ASCII NUL characters. However unlike L</download>, this function "
14567 "is limited in the total size of file that can be handled."
14571 #: ../fish/guestfish-actions.pod:3913
14573 msgstr "read-lines"
14576 #: ../fish/guestfish-actions.pod:3915
14579 " read-lines path\n"
14582 " read-lines шлях\n"
14586 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14588 "The file contents are returned as a list of lines. Trailing C<LF> and "
14589 "C<CRLF> character sequences are I<not> returned."
14593 #: ../fish/guestfish-actions.pod:3922
14595 "Note that this function cannot correctly handle binary files (specifically, "
14596 "files containing C<\\0> character which is treated as end of line). For "
14597 "those you need to use the L</read-file> function which has a more complex "
14602 #: ../fish/guestfish-actions.pod:3927
14607 #: ../fish/guestfish-actions.pod:3929
14613 " readdir каталог\n"
14617 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14618 msgid "This returns the list of directory entries in directory C<dir>."
14622 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14624 "All entries in the directory are returned, including C<.> and C<..>. The "
14625 "entries are I<not> sorted, but returned in the same order as the underlying "
14630 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14632 "Also this call returns basic file type information about each file. The "
14633 "C<ftyp> field will contain one of the following characters:"
14637 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14642 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14643 msgid "Block special"
14644 msgstr "Блоковий особливий"
14647 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14652 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14653 msgid "Char special"
14654 msgstr "Символьний особливий"
14657 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14662 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14667 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14672 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14673 msgid "FIFO (named pipe)"
14674 msgstr "FIFO (іменований канал)"
14677 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14682 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14683 msgid "Symbolic link"
14684 msgstr "Символічне посилання"
14687 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14692 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14693 msgid "Regular file"
14694 msgstr "Звичайний файл"
14697 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14702 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14707 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14712 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14713 msgid "Unknown file type"
14714 msgstr "Невідомий тип файла"
14717 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14722 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14724 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14728 #: ../fish/guestfish-actions.pod:3981
14730 "This function is primarily intended for use by programs. To get a simple "
14731 "list of names, use L</ls>. To get a printable directory for human "
14732 "consumption, use L</ll>."
14736 #: ../fish/guestfish-actions.pod:3985
14741 #: ../fish/guestfish-actions.pod:3987
14751 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14752 msgid "This command reads the target of a symbolic link."
14756 #: ../fish/guestfish-actions.pod:3991
14757 msgid "readlinklist"
14758 msgstr "readlinklist"
14761 #: ../fish/guestfish-actions.pod:3993
14764 " readlinklist path 'names ...'\n"
14769 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14771 "This call allows you to do a C<readlink> operation on multiple files, where "
14772 "all files are in the directory C<path>. C<names> is the list of files from "
14777 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14779 "On return you get a list of strings, with a one-to-one correspondence to the "
14780 "C<names> list. Each string is the value of the symbolic link."
14784 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14786 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14787 "result string is the empty string C<\"\">. However the whole operation is "
14788 "completed even if there were C<readlink(2)> errors, and so you can call this "
14789 "function with names where you don't know if they are symbolic links already "
14790 "(albeit slightly less efficient)."
14794 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14796 "This call is intended for programs that want to efficiently list a directory "
14797 "contents without making many round-trips. Very long directory listings "
14798 "might cause the protocol message size to be exceeded, causing this call to "
14799 "fail. The caller must split up such requests into smaller groups of names."
14803 #: ../fish/guestfish-actions.pod:4017
14808 #: ../fish/guestfish-actions.pod:4019
14818 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14820 "Return the canonicalized absolute pathname of C<path>. The returned path "
14821 "has no C<.>, C<..> or symbolic link path elements."
14825 #: ../fish/guestfish-actions.pod:4024
14826 msgid "removexattr"
14827 msgstr "removexattr"
14830 #: ../fish/guestfish-actions.pod:4026
14833 " removexattr xattr path\n"
14838 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14840 "This call removes the extended attribute named C<xattr> of the file C<path>."
14844 #: ../fish/guestfish-actions.pod:4031
14845 msgid "See also: L</lremovexattr>, L<attr(5)>."
14846 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14849 #: ../fish/guestfish-actions.pod:4033
14854 #: ../fish/guestfish-actions.pod:4035
14857 " resize2fs device\n"
14860 " resize2fs пристрій\n"
14864 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14866 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14867 "underlying device."
14871 #: ../fish/guestfish-actions.pod:4040
14873 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14874 "before calling this command. For unknown reasons C<resize2fs> sometimes "
14875 "gives an error about this and sometimes not. In any case, it is always safe "
14876 "to call L</e2fsck-f> before calling this function."
14880 #: ../fish/guestfish-actions.pod:4046
14881 msgid "resize2fs-M"
14882 msgstr "resize2fs-M"
14885 #: ../fish/guestfish-actions.pod:4048
14888 " resize2fs-M device\n"
14891 " resize2fs-M пристрій\n"
14895 #: ../fish/guestfish-actions.pod:4050
14897 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14898 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
14903 #: ../fish/guestfish-actions.pod:4054
14905 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14906 "and read the C<Block size> and C<Block count> values. These two numbers, "
14907 "multiplied together, give the resulting size of the minimal filesystem in "
14912 #: ../fish/guestfish-actions.pod:4059
14913 msgid "resize2fs-size"
14914 msgstr "resize2fs-size"
14917 #: ../fish/guestfish-actions.pod:4061
14920 " resize2fs-size device size\n"
14925 #: ../fish/guestfish-actions.pod:4063
14927 "This command is the same as L</resize2fs> except that it allows you to "
14928 "specify the new size (in bytes) explicitly."
14932 #: ../fish/guestfish-actions.pod:4066
14937 #: ../fish/guestfish-actions.pod:4068
14947 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14948 msgid "Remove the single file C<path>."
14952 #: ../fish/guestfish-actions.pod:4072
14957 #: ../fish/guestfish-actions.pod:4074
14967 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14969 "Remove the file or directory C<path>, recursively removing the contents if "
14970 "its a directory. This is like the C<rm -rf> shell command."
14974 #: ../fish/guestfish-actions.pod:4080
14979 #: ../fish/guestfish-actions.pod:4082
14989 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14990 msgid "Remove the single directory C<path>."
14994 #: ../fish/guestfish-actions.pod:4086
14995 msgid "rmmountpoint"
14996 msgstr "rmmountpoint"
14999 #: ../fish/guestfish-actions.pod:4088
15002 " rmmountpoint exemptpath\n"
15007 #: ../fish/guestfish-actions.pod:4090
15009 "This calls removes a mountpoint that was previously created with L</"
15010 "mkmountpoint>. See L</mkmountpoint> for full details."
15014 #: ../fish/guestfish-actions.pod:4094
15015 msgid "scrub-device"
15016 msgstr "scrub-device"
15019 #: ../fish/guestfish-actions.pod:4096
15022 " scrub-device device\n"
15025 " scrub-device пристрій\n"
15029 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
15031 "This command writes patterns over C<device> to make data retrieval more "
15036 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
15037 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
15038 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
15040 "It is an interface to the L<scrub(1)> program. See that manual page for "
15045 #: ../fish/guestfish-actions.pod:4107
15047 msgstr "scrub-file"
15050 #: ../fish/guestfish-actions.pod:4109
15053 " scrub-file file\n"
15056 " scrub-file файл\n"
15060 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
15062 "This command writes patterns over a file to make data retrieval more "
15067 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
15068 msgid "The file is I<removed> after scrubbing."
15072 #: ../fish/guestfish-actions.pod:4119
15073 msgid "scrub-freespace"
15074 msgstr "scrub-freespace"
15077 #: ../fish/guestfish-actions.pod:4121
15080 " scrub-freespace dir\n"
15083 " scrub-freespace каталог\n"
15087 #: ../fish/guestfish-actions.pod:4123
15089 "This command creates the directory C<dir> and then fills it with files until "
15090 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15091 "deletes them. The intention is to scrub any free space on the partition "
15092 "containing C<dir>."
15096 #: ../fish/guestfish-actions.pod:4132
15098 msgstr "set-append"
15101 #: ../fish/guestfish-actions.pod:4134
15106 #: ../fish/guestfish-actions.pod:4136
15109 " set-append append\n"
15114 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
15116 "This function is used to add additional options to the guest kernel command "
15121 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
15123 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15124 "environment variable."
15128 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
15130 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15131 "(libguestfs always adds a few of its own)."
15135 #: ../fish/guestfish-actions.pod:4147
15136 msgid "set-attach-method"
15137 msgstr "set-attach-method"
15140 #: ../fish/guestfish-actions.pod:4149
15141 msgid "attach-method"
15145 #: ../fish/guestfish-actions.pod:4151
15148 " set-attach-method attachmethod\n"
15153 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
15155 "Set the method that libguestfs uses to connect to the back end guestfsd "
15156 "daemon. Possible methods are:"
15160 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
15161 #: ../src/guestfs.pod:2901
15162 msgid "C<appliance>"
15163 msgstr "C<appliance>"
15166 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
15168 "Launch an appliance and connect to it. This is the ordinary method and the "
15173 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
15174 msgid "C<unix:I<path>>"
15175 msgstr "C<unix:I<шлях>>"
15178 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
15179 msgid "Connect to the Unix domain socket I<path>."
15180 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15183 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
15185 "This method lets you connect to an existing daemon or (using virtio-serial) "
15186 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15187 "RUNNING DAEMONS>."
15191 #: ../fish/guestfish-actions.pod:4173
15192 msgid "set-autosync"
15193 msgstr "set-autosync"
15196 #: ../fish/guestfish-actions.pod:4175
15201 #: ../fish/guestfish-actions.pod:4177
15204 " set-autosync true|false\n"
15207 " set-autosync true|false\n"
15211 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
15213 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15214 "effort attempt to make filesystems consistent and synchronized when the "
15215 "handle is closed (also if the program exits without closing handles)."
15219 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
15221 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15222 "disabled by default)."
15226 #: ../fish/guestfish-actions.pod:4187
15228 msgstr "set-direct"
15231 #: ../fish/guestfish-actions.pod:4189
15236 #: ../fish/guestfish-actions.pod:4191
15239 " set-direct true|false\n"
15242 " set-direct true|false\n"
15246 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
15248 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15249 "passed directly through to the appliance once it is launched."
15253 #: ../fish/guestfish-actions.pod:4197
15255 "One consequence of this is that log messages aren't caught by the library "
15256 "and handled by L</set-log-message-callback>, but go straight to stdout."
15260 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
15261 msgid "You probably don't want to use this unless you know what you are doing."
15265 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
15266 msgid "The default is disabled."
15270 #: ../fish/guestfish-actions.pod:4206
15271 msgid "set-e2label"
15272 msgstr "set-e2label"
15275 #: ../fish/guestfish-actions.pod:4208
15278 " set-e2label device label\n"
15283 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
15285 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15286 "C<label>. Filesystem labels are limited to 16 characters."
15290 #: ../fish/guestfish-actions.pod:4214
15292 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15293 "label on a filesystem."
15297 #: ../fish/guestfish-actions.pod:4217
15299 msgstr "set-e2uuid"
15302 #: ../fish/guestfish-actions.pod:4219
15305 " set-e2uuid device uuid\n"
15310 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
15312 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15313 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15314 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15318 #: ../fish/guestfish-actions.pod:4226
15320 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15321 "UUID of a filesystem."
15325 #: ../fish/guestfish-actions.pod:4229
15326 msgid "set-memsize"
15327 msgstr "set-memsize"
15330 #: ../fish/guestfish-actions.pod:4231
15335 #: ../fish/guestfish-actions.pod:4233
15338 " set-memsize memsize\n"
15343 #: ../fish/guestfish-actions.pod:4235
15345 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15346 "This only has any effect if called before L</launch>."
15350 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
15352 "You can also change this by setting the environment variable "
15353 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15357 #: ../fish/guestfish-actions.pod:4246
15358 msgid "set-network"
15359 msgstr "set-network"
15362 #: ../fish/guestfish-actions.pod:4248
15367 #: ../fish/guestfish-actions.pod:4250
15370 " set-network true|false\n"
15373 " set-network true|false\n"
15377 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
15379 "If C<network> is true, then the network is enabled in the libguestfs "
15380 "appliance. The default is false."
15384 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
15386 "This affects whether commands are able to access the network (see L<guestfs"
15387 "(3)/RUNNING COMMANDS>)."
15391 #: ../fish/guestfish-actions.pod:4258
15393 "You must call this before calling L</launch>, otherwise it has no effect."
15397 #: ../fish/guestfish-actions.pod:4261
15402 #: ../fish/guestfish-actions.pod:4265
15405 " set-path searchpath\n"
15410 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
15411 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15415 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
15417 "The default is C<$libdir/guestfs> unless overridden by setting "
15418 "C<LIBGUESTFS_PATH> environment variable."
15422 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
15423 msgid "Setting C<path> to C<NULL> restores the default path."
15427 #: ../fish/guestfish-actions.pod:4274
15432 #: ../fish/guestfish-actions.pod:4276
15437 #: ../fish/guestfish-actions.pod:4278
15440 " set-pgroup true|false\n"
15445 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15447 "If C<pgroup> is true, child processes are placed into their own process "
15452 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15454 "The practical upshot of this is that signals like C<SIGINT> (from users "
15455 "pressing C<^C>) won't be received by the child process."
15459 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15461 "The default for this flag is false, because usually you want C<^C> to kill "
15466 #: ../fish/guestfish-actions.pod:4289
15471 #: ../fish/guestfish-actions.pod:4291
15476 #: ../fish/guestfish-actions.pod:4293
15486 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15487 msgid "Set the qemu binary that we will use."
15491 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15493 "The default is chosen when the library was compiled by the configure script."
15497 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15499 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15504 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15505 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15509 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15511 "Note that you should call this function as early as possible after creating "
15512 "the handle. This is because some pre-launch operations depend on testing "
15513 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15514 "don't retest features, and so you might see inconsistent results. Using the "
15515 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15516 "the qemu binary at the same time as the handle is created."
15520 #: ../fish/guestfish-actions.pod:4313
15521 msgid "set-recovery-proc"
15522 msgstr "set-recovery-proc"
15525 #: ../fish/guestfish-actions.pod:4315
15526 msgid "recovery-proc"
15527 msgstr "recovery-proc"
15530 #: ../fish/guestfish-actions.pod:4317
15533 " set-recovery-proc true|false\n"
15536 " set-recovery-proc true|false\n"
15540 #: ../fish/guestfish-actions.pod:4319
15542 "If this is called with the parameter C<false> then L</launch> does not "
15543 "create a recovery process. The purpose of the recovery process is to stop "
15544 "runaway qemu processes in the case where the main program aborts abruptly."
15548 #: ../fish/guestfish-actions.pod:4324
15550 "This only has any effect if called before L</launch>, and the default is "
15555 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15557 "About the only time when you would want to disable this is if the main "
15558 "process will fork itself into the background (\"daemonize\" itself). In "
15559 "this case the recovery process thinks that the main program has disappeared "
15560 "and so kills qemu, which is not very helpful."
15564 #: ../fish/guestfish-actions.pod:4333
15565 msgid "set-selinux"
15566 msgstr "set-selinux"
15569 #: ../fish/guestfish-actions.pod:4335
15574 #: ../fish/guestfish-actions.pod:4337
15577 " set-selinux true|false\n"
15580 " set-selinux true|false\n"
15584 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15586 "This sets the selinux flag that is passed to the appliance at boot time. "
15587 "The default is C<selinux=0> (disabled)."
15591 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15593 "Note that if SELinux is enabled, it is always in Permissive mode "
15594 "(C<enforcing=0>)."
15598 #: ../fish/guestfish-actions.pod:4348
15603 #: ../fish/guestfish-actions.pod:4350
15608 #: ../fish/guestfish-actions.pod:4352
15616 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15618 "Change the number of virtual CPUs assigned to the appliance. The default is "
15619 "C<1>. Increasing this may improve performance, though often it has no "
15624 #: ../fish/guestfish-actions.pod:4358
15625 msgid "This function must be called before L</launch>."
15629 #: ../fish/guestfish-actions.pod:4360
15634 #: ../fish/guestfish-actions.pod:4362
15639 #: ../fish/guestfish-actions.pod:4364
15642 " set-trace true|false\n"
15645 " set-trace true|false\n"
15649 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15651 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15652 "return values are traced."
15656 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15658 "If you want to trace C API calls into libguestfs (and other libraries) then "
15659 "possibly a better way is to use the external ltrace(1) command."
15663 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15665 "Command traces are disabled unless the environment variable "
15666 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15670 #: ../fish/guestfish-actions.pod:4376
15672 "Trace messages are normally sent to C<stderr>, unless you register a "
15673 "callback to send them somewhere else (see L</set-event-callback>)."
15677 #: ../fish/guestfish-actions.pod:4380
15678 msgid "set-verbose"
15679 msgstr "set-verbose"
15682 #: ../fish/guestfish-actions.pod:4382
15687 #: ../fish/guestfish-actions.pod:4384
15690 " set-verbose true|false\n"
15693 " set-verbose true|false\n"
15697 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15698 msgid "If C<verbose> is true, this turns on verbose messages."
15702 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15704 "Verbose messages are disabled unless the environment variable "
15705 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15709 #: ../fish/guestfish-actions.pod:4391
15711 "Verbose messages are normally sent to C<stderr>, unless you register a "
15712 "callback to send them somewhere else (see L</set-event-callback>)."
15716 #: ../fish/guestfish-actions.pod:4395
15721 #: ../fish/guestfish-actions.pod:4397
15724 " setcon context\n"
15727 " setcon контекст\n"
15731 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15733 "This sets the SELinux security context of the daemon to the string "
15738 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15739 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15743 #: ../fish/guestfish-actions.pod:4404
15748 #: ../fish/guestfish-actions.pod:4406
15751 " setxattr xattr val vallen path\n"
15756 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15758 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15759 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
15763 #: ../fish/guestfish-actions.pod:4412
15764 msgid "See also: L</lsetxattr>, L<attr(5)>."
15765 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15768 #: ../fish/guestfish-actions.pod:4414
15773 #: ../fish/guestfish-actions.pod:4416
15776 " sfdisk device cyls heads sectors 'lines ...'\n"
15781 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15783 "This is a direct interface to the L<sfdisk(8)> program for creating "
15784 "partitions on block devices."
15788 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15789 msgid "C<device> should be a block device, for example C</dev/sda>."
15793 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15795 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15796 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15797 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
15798 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
15799 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15800 "the kernel) cannot work out the right geometry and you will need to tell it."
15804 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15806 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
15807 "refer to the L<sfdisk(8)> manpage."
15811 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15813 "To create a single partition occupying the whole disk, you would pass "
15814 "C<lines> as a single element list, when the single element being the string "
15819 #: ../fish/guestfish-actions.pod:4438
15820 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15821 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15824 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15825 #: ../fish/guestfish-actions.pod:4489
15827 "I<This function is deprecated.> In new code, use the L</part_add> call "
15832 #: ../fish/guestfish-actions.pod:4451
15837 #: ../fish/guestfish-actions.pod:4453
15840 " sfdiskM device 'lines ...'\n"
15845 #: ../fish/guestfish-actions.pod:4455
15847 "This is a simplified interface to the L</sfdisk> command, where partition "
15848 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15849 "you don't need to specify the cyls, heads and sectors parameters which were "
15850 "rarely if ever used anyway."
15854 #: ../fish/guestfish-actions.pod:4461
15855 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15857 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15860 #: ../fish/guestfish-actions.pod:4474
15865 #: ../fish/guestfish-actions.pod:4476
15868 " sfdisk-N device partnum cyls heads sectors line\n"
15873 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15875 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15876 "(note: C<n> counts from 1)."
15880 #: ../fish/guestfish-actions.pod:4481
15882 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
15883 "cyls/heads/sectors parameters."
15887 #: ../fish/guestfish-actions.pod:4484
15888 msgid "See also: L</part-add>"
15889 msgstr "Див. також L</part-add>"
15892 #: ../fish/guestfish-actions.pod:4496
15893 msgid "sfdisk-disk-geometry"
15894 msgstr "sfdisk-disk-geometry"
15897 #: ../fish/guestfish-actions.pod:4498
15900 " sfdisk-disk-geometry device\n"
15903 " sfdisk-disk-geometry пристрій\n"
15907 #: ../fish/guestfish-actions.pod:4500
15909 "This displays the disk geometry of C<device> read from the partition table. "
15910 "Especially in the case where the underlying block device has been resized, "
15911 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15912 "kernel-geometry>)."
15916 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15917 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15918 msgid "The result is in human-readable format, and not designed to be parsed."
15922 #: ../fish/guestfish-actions.pod:4508
15923 msgid "sfdisk-kernel-geometry"
15924 msgstr "sfdisk-kernel-geometry"
15927 #: ../fish/guestfish-actions.pod:4510
15930 " sfdisk-kernel-geometry device\n"
15933 " sfdisk-kernel-geometry пристрій\n"
15937 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15938 msgid "This displays the kernel's idea of the geometry of C<device>."
15942 #: ../fish/guestfish-actions.pod:4517
15947 #: ../fish/guestfish-actions.pod:4519
15950 " sfdisk-l device\n"
15953 " sfdisk-l пристрій\n"
15957 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15959 "This displays the partition table on C<device>, in the human-readable output "
15960 "of the L<sfdisk(8)> command. It is not intended to be parsed."
15964 #: ../fish/guestfish-actions.pod:4525
15965 msgid "See also: L</part-list>"
15966 msgstr "Див. також L</part-list>"
15969 #: ../fish/guestfish-actions.pod:4527
15971 "I<This function is deprecated.> In new code, use the L</part_list> call "
15976 #: ../fish/guestfish-actions.pod:4534
15981 #: ../fish/guestfish-actions.pod:4536
15991 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15993 "This call runs a command from the guest filesystem via the guest's C</bin/"
15998 #: ../fish/guestfish-actions.pod:4541
15999 msgid "This is like L</command>, but passes the command to:"
16003 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
16006 " /bin/sh -c \"command\"\n"
16011 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
16013 "Depending on the guest's shell, this usually results in wildcards being "
16014 "expanded, shell expressions being interpolated and so on."
16018 #: ../fish/guestfish-actions.pod:4549
16019 msgid "All the provisos about L</command> apply to this call."
16023 #: ../fish/guestfish-actions.pod:4551
16028 #: ../fish/guestfish-actions.pod:4553
16031 " sh-lines command\n"
16034 " sh-lines команда\n"
16038 #: ../fish/guestfish-actions.pod:4555
16039 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16043 #: ../fish/guestfish-actions.pod:4558
16044 msgid "See also: L</command-lines>"
16045 msgstr "Див. також L</command-lines>"
16048 #: ../fish/guestfish-actions.pod:4560
16053 #: ../fish/guestfish-actions.pod:4562
16059 " sleep час_у_секундах\n"
16063 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
16064 msgid "Sleep for C<secs> seconds."
16068 #: ../fish/guestfish-actions.pod:4566
16073 #: ../fish/guestfish-actions.pod:4568
16083 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
16084 msgid "This is the same as the C<stat(2)> system call."
16088 #: ../fish/guestfish-actions.pod:4574
16093 #: ../fish/guestfish-actions.pod:4576
16103 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
16105 "Returns file system statistics for any mounted file system. C<path> should "
16106 "be a file or directory in the mounted file system (typically it is the mount "
16107 "point itself, but it doesn't need to be)."
16111 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
16112 msgid "This is the same as the C<statvfs(2)> system call."
16116 #: ../fish/guestfish-actions.pod:4584
16121 #: ../fish/guestfish-actions.pod:4586
16131 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
16133 "This runs the L<strings(1)> command on a file and returns the list of "
16134 "printable strings found."
16138 #: ../fish/guestfish-actions.pod:4594
16143 #: ../fish/guestfish-actions.pod:4596
16146 " strings-e encoding path\n"
16149 " strings-e кодування шлях\n"
16153 #: ../fish/guestfish-actions.pod:4598
16155 "This is like the L</strings> command, but allows you to specify the encoding "
16156 "of strings that are looked for in the source file C<path>."
16160 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
16161 msgid "Allowed encodings are:"
16162 msgstr "Можливими кодуваннями є:"
16165 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
16170 #: ../fish/guestfish-actions.pod:4608
16172 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16173 "ISO-8859-X (this is what L</strings> uses)."
16177 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
16182 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
16183 msgid "Single 8-bit-byte characters."
16184 msgstr "Окремі 8-бітові-байтові символи."
16187 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
16192 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
16193 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16197 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
16198 msgid "l (lower case letter L)"
16202 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
16204 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16205 "examining binaries in Windows guests."
16209 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
16214 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
16215 msgid "32-bit big endian such as UCS-4BE."
16219 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
16224 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
16225 msgid "32-bit little endian such as UCS-4LE."
16229 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
16230 msgid "The returned strings are transcoded to UTF-8."
16234 #: ../fish/guestfish-actions.pod:4640
16235 msgid "swapoff-device"
16236 msgstr "swapoff-device"
16239 #: ../fish/guestfish-actions.pod:4642
16242 " swapoff-device device\n"
16245 " swapoff-device пристрій\n"
16249 #: ../fish/guestfish-actions.pod:4644
16251 "This command disables the libguestfs appliance swap device or partition "
16252 "named C<device>. See L</swapon-device>."
16256 #: ../fish/guestfish-actions.pod:4648
16257 msgid "swapoff-file"
16258 msgstr "swapoff-file"
16261 #: ../fish/guestfish-actions.pod:4650
16264 " swapoff-file file\n"
16267 " swapoff-file файл\n"
16271 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
16272 msgid "This command disables the libguestfs appliance swap on file."
16276 #: ../fish/guestfish-actions.pod:4654
16277 msgid "swapoff-label"
16278 msgstr "swapoff-label"
16281 #: ../fish/guestfish-actions.pod:4656
16284 " swapoff-label label\n"
16287 " swapoff-label мітка\n"
16291 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
16293 "This command disables the libguestfs appliance swap on labeled swap "
16298 #: ../fish/guestfish-actions.pod:4661
16299 msgid "swapoff-uuid"
16300 msgstr "swapoff-uuid"
16303 #: ../fish/guestfish-actions.pod:4663
16306 " swapoff-uuid uuid\n"
16309 " swapoff-uuid uuid\n"
16313 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
16315 "This command disables the libguestfs appliance swap partition with the given "
16320 #: ../fish/guestfish-actions.pod:4668
16321 msgid "swapon-device"
16322 msgstr "swapon-device"
16325 #: ../fish/guestfish-actions.pod:4670
16328 " swapon-device device\n"
16331 " swapon-device пристрій\n"
16335 #: ../fish/guestfish-actions.pod:4672
16337 "This command enables the libguestfs appliance to use the swap device or "
16338 "partition named C<device>. The increased memory is made available for all "
16339 "commands, for example those run using L</command> or L</sh>."
16343 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
16345 "Note that you should not swap to existing guest swap partitions unless you "
16346 "know what you are doing. They may contain hibernation information, or other "
16347 "information that the guest doesn't want you to trash. You also risk leaking "
16348 "information about the host to the guest this way. Instead, attach a new "
16349 "host device to the guest and swap on that."
16353 #: ../fish/guestfish-actions.pod:4684
16354 msgid "swapon-file"
16355 msgstr "swapon-file"
16358 #: ../fish/guestfish-actions.pod:4686
16361 " swapon-file file\n"
16364 " swapon-file файл\n"
16368 #: ../fish/guestfish-actions.pod:4688
16370 "This command enables swap to a file. See L</swapon-device> for other notes."
16374 #: ../fish/guestfish-actions.pod:4691
16375 msgid "swapon-label"
16376 msgstr "swapon-label"
16379 #: ../fish/guestfish-actions.pod:4693
16382 " swapon-label label\n"
16385 " swapon-label мітка\n"
16389 #: ../fish/guestfish-actions.pod:4695
16391 "This command enables swap to a labeled swap partition. See L</swapon-"
16392 "device> for other notes."
16396 #: ../fish/guestfish-actions.pod:4698
16397 msgid "swapon-uuid"
16398 msgstr "swapon-uuid"
16401 #: ../fish/guestfish-actions.pod:4700
16404 " swapon-uuid uuid\n"
16407 " swapon-uuid uuid\n"
16411 #: ../fish/guestfish-actions.pod:4702
16413 "This command enables swap to a swap partition with the given UUID. See L</"
16414 "swapon-device> for other notes."
16418 #: ../fish/guestfish-actions.pod:4705
16423 #: ../fish/guestfish-actions.pod:4707
16433 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
16435 "This syncs the disk, so that any writes are flushed through to the "
16436 "underlying disk image."
16440 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
16442 "You should always call this if you have modified a disk image, before "
16443 "closing the handle."
16447 #: ../fish/guestfish-actions.pod:4715
16452 #: ../fish/guestfish-actions.pod:4717
16462 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
16464 "This command returns up to the last 10 lines of a file as a list of strings."
16468 #: ../fish/guestfish-actions.pod:4725
16473 #: ../fish/guestfish-actions.pod:4727
16476 " tail-n nrlines path\n"
16481 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
16483 "If the parameter C<nrlines> is a positive number, this returns the last "
16484 "C<nrlines> lines of the file C<path>."
16488 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16490 "If the parameter C<nrlines> is a negative number, this returns lines from "
16491 "the file C<path>, starting with the C<-nrlines>th line."
16495 #: ../fish/guestfish-actions.pod:4740
16500 #: ../fish/guestfish-actions.pod:4742
16503 " tar-in (tarfile|-) directory\n"
16506 " tar-in (файл_tar|-) каталог\n"
16510 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16512 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16513 "tar file) into C<directory>."
16517 #: ../fish/guestfish-actions.pod:4747
16518 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16522 #: ../fish/guestfish-actions.pod:4752
16527 #: ../fish/guestfish-actions.pod:4754
16530 " tar-out directory (tarfile|-)\n"
16533 " tar-out каталог (файл tar|-)\n"
16537 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16539 "This command packs the contents of C<directory> and downloads it to local "
16544 #: ../fish/guestfish-actions.pod:4759
16545 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16549 #: ../fish/guestfish-actions.pod:4764
16554 #: ../fish/guestfish-actions.pod:4766
16557 " tgz-in (tarball|-) directory\n"
16560 " tgz-in (архів tar|-) каталог\n"
16564 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16566 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16567 "tar file) into C<directory>."
16571 #: ../fish/guestfish-actions.pod:4771
16572 msgid "To upload an uncompressed tarball, use L</tar-in>."
16576 #: ../fish/guestfish-actions.pod:4775
16581 #: ../fish/guestfish-actions.pod:4777
16584 " tgz-out directory (tarball|-)\n"
16587 " tgz-out каталог (архів tar|-)\n"
16591 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16593 "This command packs the contents of C<directory> and downloads it to local "
16598 #: ../fish/guestfish-actions.pod:4782
16599 msgid "To download an uncompressed tarball, use L</tar-out>."
16603 #: ../fish/guestfish-actions.pod:4786
16608 #: ../fish/guestfish-actions.pod:4788
16618 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16620 "Touch acts like the L<touch(1)> command. It can be used to update the "
16621 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16626 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16628 "This command only works on regular files, and will fail on other file types "
16629 "such as directories, symbolic links, block special etc."
16633 #: ../fish/guestfish-actions.pod:4797
16638 #: ../fish/guestfish-actions.pod:4799
16648 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16650 "This command truncates C<path> to a zero-length file. The file must exist "
16655 #: ../fish/guestfish-actions.pod:4804
16656 msgid "truncate-size"
16657 msgstr "truncate-size"
16660 #: ../fish/guestfish-actions.pod:4806
16663 " truncate-size path size\n"
16666 " truncate-size шлях розмір\n"
16670 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16672 "This command truncates C<path> to size C<size> bytes. The file must exist "
16677 #: ../fish/guestfish-actions.pod:4811
16679 "If the current file size is less than C<size> then the file is extended to "
16680 "the required size with zero bytes. This creates a sparse file (ie. disk "
16681 "blocks are not allocated for the file until you write to it). To create a "
16682 "non-sparse file of zeroes, use L</fallocate64> instead."
16686 #: ../fish/guestfish-actions.pod:4817
16691 #: ../fish/guestfish-actions.pod:4819
16694 " tune2fs-l device\n"
16697 " tune2fs-l пристрій\n"
16701 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16703 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16708 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16710 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16711 "for more details. The list of fields returned isn't clearly defined, and "
16712 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16713 "and the filesystem itself."
16717 #: ../fish/guestfish-actions.pod:4829
16722 #: ../fish/guestfish-actions.pod:4831
16725 " txz-in (tarball|-) directory\n"
16728 " txz-in (архів tar|-) каталог\n"
16732 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16734 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16735 "tar file) into C<directory>."
16739 #: ../fish/guestfish-actions.pod:4838
16744 #: ../fish/guestfish-actions.pod:4840
16747 " txz-out directory (tarball|-)\n"
16750 " txz-out каталог (архів tar|-)\n"
16754 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16756 "This command packs the contents of C<directory> and downloads it to local "
16757 "file C<tarball> (as an xz compressed tar archive)."
16761 #: ../fish/guestfish-actions.pod:4847
16766 #: ../fish/guestfish-actions.pod:4849
16776 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16778 "This function sets the mask used for creating new files and device nodes to "
16783 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16785 "Typical umask values would be C<022> which creates new files with "
16786 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16787 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16791 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16793 "The default umask is C<022>. This is important because it means that "
16794 "directories and device nodes will be created with C<0644> or C<0755> mode "
16795 "even if you specify C<0777>."
16799 #: ../fish/guestfish-actions.pod:4863
16800 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16801 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16804 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16805 msgid "This call returns the previous umask."
16809 #: ../fish/guestfish-actions.pod:4868
16814 #: ../fish/guestfish-actions.pod:4870
16819 #: ../fish/guestfish-actions.pod:4872
16822 " umount pathordevice\n"
16825 " umount шлях_або_пристрій\n"
16829 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16831 "This unmounts the given filesystem. The filesystem may be specified either "
16832 "by its mountpoint (path) or the device which contains the filesystem."
16836 #: ../fish/guestfish-actions.pod:4878
16838 msgstr "umount-all"
16841 #: ../fish/guestfish-actions.pod:4880
16842 msgid "unmount-all"
16843 msgstr "unmount-all"
16846 #: ../fish/guestfish-actions.pod:4882
16856 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16857 msgid "This unmounts all mounted filesystems."
16861 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16862 msgid "Some internal mounts are not unmounted by this call."
16866 #: ../fish/guestfish-actions.pod:4888
16871 #: ../fish/guestfish-actions.pod:4890
16874 " upload (filename|-) remotefilename\n"
16877 " upload (назва_файла|-) назва_віддаленого_файла\n"
16881 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16882 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16883 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16887 #: ../fish/guestfish-actions.pod:4897
16888 msgid "See also L</download>."
16889 msgstr "Див. також L</download>."
16892 #: ../fish/guestfish-actions.pod:4901
16893 msgid "upload-offset"
16894 msgstr "upload-offset"
16897 #: ../fish/guestfish-actions.pod:4903
16900 " upload-offset (filename|-) remotefilename offset\n"
16903 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16907 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16909 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
16910 "The intention is to overwrite parts of existing files or devices, although "
16911 "if a non-existant file is specified then it is created with a \"hole\" "
16912 "before C<offset>. The size of the data written is implicit in the size of "
16913 "the source C<filename>."
16917 #: ../fish/guestfish-actions.pod:4915
16919 "Note that there is no limit on the amount of data that can be uploaded with "
16920 "this call, unlike with L</pwrite>, and this call always writes the full "
16921 "amount unless an error occurs."
16925 #: ../fish/guestfish-actions.pod:4920
16926 msgid "See also L</upload>, L</pwrite>."
16927 msgstr "Див. також L</upload>, L</pwrite>."
16930 #: ../fish/guestfish-actions.pod:4924
16935 #: ../fish/guestfish-actions.pod:4926
16938 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16943 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16944 msgid "This command sets the timestamps of a file with nanosecond precision."
16948 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16950 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16955 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16957 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16958 "nanoseconds from the epoch."
16962 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16964 "If the C<*nsecs> field contains the special value C<-1> then the "
16965 "corresponding timestamp is set to the current time. (The C<*secs> field is "
16966 "ignored in this case)."
16970 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16972 "If the C<*nsecs> field contains the special value C<-2> then the "
16973 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
16978 #: ../fish/guestfish-actions.pod:4945
16983 #: ../fish/guestfish-actions.pod:4947
16993 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16995 "Return the libguestfs version number that the program is linked against."
16999 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
17001 "Note that because of dynamic linking this is not necessarily the version of "
17002 "libguestfs that you compiled against. You can compile the program, and then "
17003 "at runtime dynamically link against a completely different C<libguestfs.so> "
17008 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
17010 "This call was added in version C<1.0.58>. In previous versions of "
17011 "libguestfs there was no way to get the version number. From C code you can "
17012 "use dynamic linker functions to find out if this symbol exists (if it "
17013 "doesn't, then it's an earlier version)."
17017 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
17019 "The call returns a structure with four elements. The first three (C<major>, "
17020 "C<minor> and C<release>) are numbers and correspond to the usual version "
17021 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17022 "but may be used for distro-specific information."
17026 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
17028 "To construct the original version string: C<$major.$minor.$release$extra>"
17032 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
17033 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17034 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17037 #: ../fish/guestfish-actions.pod:4974
17039 "I<Note:> Don't use this call to test for availability of features. In "
17040 "enterprise distributions we backport features from later versions into "
17041 "earlier versions, making this an unreliable way to test for features. Use "
17042 "L</available> instead."
17046 #: ../fish/guestfish-actions.pod:4980
17051 #: ../fish/guestfish-actions.pod:4982
17054 " vfs-label device\n"
17057 " vfs-label пристрій\n"
17061 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
17062 msgid "This returns the filesystem label of the filesystem on C<device>."
17066 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
17067 msgid "If the filesystem is unlabeled, this returns the empty string."
17071 #: ../fish/guestfish-actions.pod:4989
17072 msgid "To find a filesystem from the label, use L</findfs-label>."
17076 #: ../fish/guestfish-actions.pod:4991
17081 #: ../fish/guestfish-actions.pod:4993
17084 " vfs-type device\n"
17087 " vfs-type пристрій\n"
17091 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
17093 "This command gets the filesystem type corresponding to the filesystem on "
17098 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
17100 "For most filesystems, the result is the name of the Linux VFS module which "
17101 "would be used to mount this filesystem if you mounted it without specifying "
17102 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17106 #: ../fish/guestfish-actions.pod:5003
17111 #: ../fish/guestfish-actions.pod:5005
17114 " vfs-uuid device\n"
17117 " vfs-uuid пристрій\n"
17121 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
17122 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17126 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
17127 msgid "If the filesystem does not have a UUID, this returns the empty string."
17131 #: ../fish/guestfish-actions.pod:5012
17132 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17136 #: ../fish/guestfish-actions.pod:5014
17137 msgid "vg-activate"
17138 msgstr "vg-activate"
17141 #: ../fish/guestfish-actions.pod:5016
17144 " vg-activate true|false 'volgroups ...'\n"
17149 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
17151 "This command activates or (if C<activate> is false) deactivates all logical "
17152 "volumes in the listed volume groups C<volgroups>."
17156 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
17157 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17161 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
17163 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17164 "activated or deactivated."
17168 #: ../fish/guestfish-actions.pod:5026
17169 msgid "vg-activate-all"
17170 msgstr "vg-activate-all"
17173 #: ../fish/guestfish-actions.pod:5028
17176 " vg-activate-all true|false\n"
17179 " vg-activate-all true|false\n"
17183 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
17185 "This command activates or (if C<activate> is false) deactivates all logical "
17186 "volumes in all volume groups."
17190 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
17191 msgid "This command is the same as running C<vgchange -a y|n>"
17195 #: ../fish/guestfish-actions.pod:5035
17200 #: ../fish/guestfish-actions.pod:5037
17203 " vgcreate volgroup 'physvols ...'\n"
17208 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
17210 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17211 "of physical volumes C<physvols>."
17215 #: ../fish/guestfish-actions.pod:5042
17220 #: ../fish/guestfish-actions.pod:5044
17223 " vglvuuids vgname\n"
17228 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
17230 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17231 "volumes created in this volume group."
17235 #: ../fish/guestfish-actions.pod:5049
17237 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17238 "logical volumes and volume groups."
17242 #: ../fish/guestfish-actions.pod:5052
17243 msgid "See also L</vgpvuuids>."
17244 msgstr "Див. також L</vgpvuuids>."
17247 #: ../fish/guestfish-actions.pod:5054
17252 #: ../fish/guestfish-actions.pod:5056
17255 " vgpvuuids vgname\n"
17260 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
17262 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17263 "volumes that this volume group resides on."
17267 #: ../fish/guestfish-actions.pod:5061
17269 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17270 "physical volumes and volume groups."
17274 #: ../fish/guestfish-actions.pod:5064
17275 msgid "See also L</vglvuuids>."
17276 msgstr "Див. також L</vglvuuids>."
17279 #: ../fish/guestfish-actions.pod:5066
17284 #: ../fish/guestfish-actions.pod:5068
17287 " vgremove vgname\n"
17292 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
17293 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17297 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
17299 "This also forcibly removes all logical volumes in the volume group (if any)."
17303 #: ../fish/guestfish-actions.pod:5075
17308 #: ../fish/guestfish-actions.pod:5077
17311 " vgrename volgroup newvolgroup\n"
17316 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
17317 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17321 #: ../fish/guestfish-actions.pod:5081
17326 #: ../fish/guestfish-actions.pod:5083
17336 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
17338 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17343 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
17345 "This returns a list of just the volume group names that were detected (eg. "
17350 #: ../fish/guestfish-actions.pod:5091
17351 msgid "See also L</vgs-full>."
17352 msgstr "Див. також L</vgs-full>."
17355 #: ../fish/guestfish-actions.pod:5093
17360 #: ../fish/guestfish-actions.pod:5095
17370 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
17372 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17373 "> command. The \"full\" version includes all fields."
17377 #: ../fish/guestfish-actions.pod:5100
17382 #: ../fish/guestfish-actions.pod:5102
17392 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
17394 "This rescans all block devices and rebuilds the list of LVM physical "
17395 "volumes, volume groups and logical volumes."
17399 #: ../fish/guestfish-actions.pod:5107
17404 #: ../fish/guestfish-actions.pod:5109
17412 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
17413 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17417 #: ../fish/guestfish-actions.pod:5113
17422 #: ../fish/guestfish-actions.pod:5115
17432 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
17434 "This command counts the characters in a file, using the C<wc -c> external "
17439 #: ../fish/guestfish-actions.pod:5120
17444 #: ../fish/guestfish-actions.pod:5122
17454 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
17456 "This command counts the lines in a file, using the C<wc -l> external command."
17460 #: ../fish/guestfish-actions.pod:5127
17465 #: ../fish/guestfish-actions.pod:5129
17475 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
17477 "This command counts the words in a file, using the C<wc -w> external command."
17481 #: ../fish/guestfish-actions.pod:5134
17486 #: ../fish/guestfish-actions.pod:5136
17489 " write path content\n"
17492 " write шлях дані\n"
17496 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
17498 "This call creates a file called C<path>. The content of the file is the "
17499 "string C<content> (which can contain any 8 bit data)."
17503 #: ../fish/guestfish-actions.pod:5141
17504 msgid "See also L</write-append>."
17505 msgstr "Див. також L</write-append>."
17508 #: ../fish/guestfish-actions.pod:5146
17509 msgid "write-append"
17513 #: ../fish/guestfish-actions.pod:5148
17516 " write-append path content\n"
17521 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
17523 "This call appends C<content> to the end of file C<path>. If C<path> does "
17524 "not exist, then a new file is created."
17528 #: ../fish/guestfish-actions.pod:5153
17529 msgid "See also L</write>."
17530 msgstr "Див. також L</write>."
17533 #: ../fish/guestfish-actions.pod:5158
17535 msgstr "write-file"
17538 #: ../fish/guestfish-actions.pod:5160
17541 " write-file path content size\n"
17546 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17548 "This call creates a file called C<path>. The contents of the file is the "
17549 "string C<content> (which can contain any 8 bit data), with length C<size>."
17553 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17555 "As a special case, if C<size> is C<0> then the length is calculated using "
17556 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17560 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17562 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17563 "I<not> work, even if the length is specified."
17567 #: ../fish/guestfish-actions.pod:5176
17569 "I<This function is deprecated.> In new code, use the L</write> call instead."
17573 #: ../fish/guestfish-actions.pod:5183
17578 #: ../fish/guestfish-actions.pod:5185
17581 " zegrep regex path\n"
17584 " zegrep формальний_вираз шлях\n"
17588 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17590 "This calls the external C<zegrep> program and returns the matching lines."
17594 #: ../fish/guestfish-actions.pod:5193
17599 #: ../fish/guestfish-actions.pod:5195
17602 " zegrepi regex path\n"
17607 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17609 "This calls the external C<zegrep -i> program and returns the matching lines."
17613 #: ../fish/guestfish-actions.pod:5203
17618 #: ../fish/guestfish-actions.pod:5205
17628 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17629 msgid "This command writes zeroes over the first few blocks of C<device>."
17633 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17635 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17636 "securely wipe the device). It should be sufficient to remove any partition "
17637 "tables, filesystem superblocks and so on."
17641 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17642 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17644 "If blocks are already zero, then this command avoids writing zeroes. This "
17645 "prevents the underlying device from becoming non-sparse or growing "
17650 #: ../fish/guestfish-actions.pod:5217
17651 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17655 #: ../fish/guestfish-actions.pod:5220
17656 msgid "zero-device"
17657 msgstr "zero-device"
17660 #: ../fish/guestfish-actions.pod:5222
17663 " zero-device device\n"
17666 " zero-device пристрій\n"
17670 #: ../fish/guestfish-actions.pod:5224
17672 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17673 "which just zeroes the first few blocks of a device."
17677 #: ../fish/guestfish-actions.pod:5235
17682 #: ../fish/guestfish-actions.pod:5237
17685 " zerofree device\n"
17688 " zerofree пристрій\n"
17692 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17694 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17695 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17696 "possible to compress the filesystem more effectively."
17700 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17701 msgid "You should B<not> run this program if the filesystem is mounted."
17705 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17707 "It is possible that using this program can damage the filesystem or data on "
17712 #: ../fish/guestfish-actions.pod:5250
17717 #: ../fish/guestfish-actions.pod:5252
17720 " zfgrep pattern path\n"
17723 " zfgrep шаблон шлях\n"
17727 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17729 "This calls the external C<zfgrep> program and returns the matching lines."
17733 #: ../fish/guestfish-actions.pod:5260
17738 #: ../fish/guestfish-actions.pod:5262
17741 " zfgrepi pattern path\n"
17744 " zfgrepi шаблон шлях\n"
17748 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17750 "This calls the external C<zfgrep -i> program and returns the matching lines."
17754 #: ../fish/guestfish-actions.pod:5270
17759 #: ../fish/guestfish-actions.pod:5272
17762 " zfile meth path\n"
17765 " zfile метод шлях\n"
17769 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17771 "This command runs C<file> after first decompressing C<path> using C<method>."
17775 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17776 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17780 #: ../fish/guestfish-actions.pod:5279
17782 "Since 1.0.63, use L</file> instead which can now process compressed files."
17786 #: ../fish/guestfish-actions.pod:5282
17788 "I<This function is deprecated.> In new code, use the L</file> call instead."
17792 #: ../fish/guestfish-actions.pod:5289
17797 #: ../fish/guestfish-actions.pod:5291
17800 " zgrep regex path\n"
17803 " zgrep формальний_вираз шлях\n"
17807 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17809 "This calls the external C<zgrep> program and returns the matching lines."
17813 #: ../fish/guestfish-actions.pod:5299
17818 #: ../fish/guestfish-actions.pod:5301
17821 " zgrepi regex path\n"
17824 " zgrepi формальний_вираз шлях\n"
17828 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17830 "This calls the external C<zgrep -i> program and returns the matching lines."
17834 #: ../fish/guestfish-commands.pod:1
17839 #: ../fish/guestfish-commands.pod:3
17844 #: ../fish/guestfish-commands.pod:5
17847 " alloc filename size\n"
17852 #: ../fish/guestfish-commands.pod:7
17854 "This creates an empty (zeroed) file of the given size, and then adds so it "
17855 "can be further examined."
17859 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17860 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17864 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17865 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17869 #: ../fish/guestfish-commands.pod:14
17871 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
17872 "image, see L</PREPARED DISK IMAGES>."
17876 #: ../fish/guestfish-commands.pod:17
17881 #: ../fish/guestfish-commands.pod:19
17884 " copy-in local [local ...] /remotedir\n"
17889 #: ../fish/guestfish-commands.pod:21
17891 "C<copy-in> copies local files or directories recursively into the disk "
17892 "image, placing them in the directory called C</remotedir> (which must "
17893 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
17894 "other commands as necessary."
17898 #: ../fish/guestfish-commands.pod:26
17900 "Multiple local files and directories can be specified, but the last "
17901 "parameter must always be a remote directory. Wildcards cannot be used."
17905 #: ../fish/guestfish-commands.pod:30
17910 #: ../fish/guestfish-commands.pod:32
17913 " copy-out remote [remote ...] localdir\n"
17918 #: ../fish/guestfish-commands.pod:34
17920 "C<copy-out> copies remote files or directories recursively out of the disk "
17921 "image, placing them on the host disk in a local directory called C<localdir> "
17922 "(which must exist). This guestfish meta-command turns into a sequence of L</"
17923 "download>, L</tar-out> and other commands as necessary."
17927 #: ../fish/guestfish-commands.pod:40
17929 "Multiple remote files and directories can be specified, but the last "
17930 "parameter must always be a local directory. To download to the current "
17931 "directory, use C<.> as in:"
17935 #: ../fish/guestfish-commands.pod:44
17938 " copy-out /home .\n"
17941 " copy-out /home .\n"
17945 #: ../fish/guestfish-commands.pod:46
17947 "Wildcards cannot be used in the ordinary command, but you can use them with "
17948 "the help of L</glob> like this:"
17952 #: ../fish/guestfish-commands.pod:49
17955 " glob copy-out /home/* .\n"
17958 " glob copy-out /home/* .\n"
17962 #: ../fish/guestfish-commands.pod:51
17967 #: ../fish/guestfish-commands.pod:53
17970 " display filename\n"
17975 #: ../fish/guestfish-commands.pod:55
17977 "Use C<display> (a graphical display program) to display an image file. It "
17978 "downloads the file, and runs C<display> on it."
17982 #: ../fish/guestfish-commands.pod:58
17984 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17985 "environment variable. For example to use the GNOME display program:"
17989 #: ../fish/guestfish-commands.pod:61
17992 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17997 #: ../fish/guestfish-commands.pod:63
17998 msgid "See also L<display(1)>."
17999 msgstr "Див. також L<display(1)>."
18002 #: ../fish/guestfish-commands.pod:65
18007 #: ../fish/guestfish-commands.pod:67
18010 " echo [params ...]\n"
18013 " echo [параметри...]\n"
18017 #: ../fish/guestfish-commands.pod:69
18018 msgid "This echos the parameters to the terminal."
18022 #: ../fish/guestfish-commands.pod:71
18027 #: ../fish/guestfish-commands.pod:73
18032 #: ../fish/guestfish-commands.pod:75
18037 #: ../fish/guestfish-commands.pod:77
18043 " edit назва_файла\n"
18047 #: ../fish/guestfish-commands.pod:79
18049 "This is used to edit a file. It downloads the file, edits it locally using "
18050 "your editor, then uploads the result."
18054 #: ../fish/guestfish-commands.pod:82
18056 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18057 "or C<emacs> you will get those corresponding editors."
18061 #: ../fish/guestfish-commands.pod:86
18066 #: ../fish/guestfish-commands.pod:88
18069 " glob command args...\n"
18072 " glob команда параметри...\n"
18076 #: ../fish/guestfish-commands.pod:90
18078 "Expand wildcards in any paths in the args list, and run C<command> "
18079 "repeatedly on each matching path."
18083 #: ../fish/guestfish-commands.pod:93
18084 msgid "See L</WILDCARDS AND GLOBBING>."
18085 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18088 #: ../fish/guestfish-commands.pod:95
18093 #: ../fish/guestfish-commands.pod:97
18096 " hexedit <filename|device>\n"
18097 " hexedit <filename|device> <max>\n"
18098 " hexedit <filename|device> <start> <max>\n"
18103 #: ../fish/guestfish-commands.pod:101
18105 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18110 #: ../fish/guestfish-commands.pod:104
18112 "This command works by downloading potentially the whole file or device, "
18113 "editing it locally, then uploading it. If the file or device is large, you "
18114 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18115 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18116 "usual modifiers allowed such as C<1M> (1 megabyte)."
18120 #: ../fish/guestfish-commands.pod:111
18121 msgid "For example to edit the first few sectors of a disk you might do:"
18125 #: ../fish/guestfish-commands.pod:114
18128 " hexedit /dev/sda 1M\n"
18131 " hexedit /dev/sda 1M\n"
18135 #: ../fish/guestfish-commands.pod:116
18137 "which would allow you to edit anywhere within the first megabyte of the disk."
18141 #: ../fish/guestfish-commands.pod:119
18142 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18146 #: ../fish/guestfish-commands.pod:121
18149 " hexedit /dev/sda1 0x400 0x400\n"
18152 " hexedit /dev/sda1 0x400 0x400\n"
18156 #: ../fish/guestfish-commands.pod:123
18157 msgid "(assuming the superblock is in the standard location)."
18161 #: ../fish/guestfish-commands.pod:125
18163 "This command requires the external L<hexedit(1)> program. You can specify "
18164 "another program to use by setting the C<HEXEDITOR> environment variable."
18168 #: ../fish/guestfish-commands.pod:129
18169 msgid "See also L</hexdump>."
18170 msgstr "Див. також L</hexdump>."
18173 #: ../fish/guestfish-commands.pod:131
18178 #: ../fish/guestfish-commands.pod:133
18186 #: ../fish/guestfish-commands.pod:135
18188 "Change the local directory, ie. the current directory of guestfish itself."
18192 #: ../fish/guestfish-commands.pod:138
18193 msgid "Note that C<!cd> won't do what you might expect."
18197 #: ../fish/guestfish-commands.pod:140
18202 #: ../fish/guestfish-commands.pod:142
18207 #: ../fish/guestfish-commands.pod:144
18217 #: ../fish/guestfish-commands.pod:146
18218 msgid "Opens the manual page for guestfish."
18222 #: ../fish/guestfish-commands.pod:148
18227 #: ../fish/guestfish-commands.pod:150
18232 #: ../fish/guestfish-commands.pod:152
18240 #: ../fish/guestfish-commands.pod:154
18248 #: ../fish/guestfish-commands.pod:156
18249 msgid "This is used to view a file."
18253 #: ../fish/guestfish-commands.pod:158
18255 "The default viewer is C<$PAGER>. However if you use the alternate command "
18256 "C<less> you will get the C<less> command specifically."
18260 #: ../fish/guestfish-commands.pod:161
18265 #: ../fish/guestfish-commands.pod:163
18273 #: ../fish/guestfish-commands.pod:165
18275 "Close and reopen the libguestfs handle. It is not necessary to use this "
18276 "normally, because the handle is closed properly when guestfish exits. "
18277 "However this is occasionally useful for testing."
18281 #: ../fish/guestfish-commands.pod:169
18286 #: ../fish/guestfish-commands.pod:171
18289 " setenv VAR value\n"
18294 #: ../fish/guestfish-commands.pod:173
18295 msgid "Set the environment variable C<VAR> to the string C<value>."
18299 #: ../fish/guestfish-commands.pod:175
18301 "To print the value of an environment variable use a shell command such as:"
18305 #: ../fish/guestfish-commands.pod:178
18313 #: ../fish/guestfish-commands.pod:180
18318 #: ../fish/guestfish-commands.pod:182
18321 " sparse filename size\n"
18326 #: ../fish/guestfish-commands.pod:184
18328 "This creates an empty sparse file of the given size, and then adds so it can "
18329 "be further examined."
18333 #: ../fish/guestfish-commands.pod:187
18335 "In all respects it works the same as the L</alloc> command, except that the "
18336 "image file is allocated sparsely, which means that disk blocks are not "
18337 "assigned to the file until they are needed. Sparse disk files only use "
18338 "space when written to, but they are slower and there is a danger you could "
18339 "run out of real disk space during a write operation."
18343 #: ../fish/guestfish-commands.pod:197
18348 #: ../fish/guestfish-commands.pod:199
18358 #: ../fish/guestfish-commands.pod:201
18360 "This command returns a list of the optional groups known to the daemon, and "
18361 "indicates which ones are supported by this build of the libguestfs appliance."
18365 #: ../fish/guestfish-commands.pod:205
18366 msgid "See also L<guestfs(3)/AVAILABILITY>."
18367 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18370 #: ../fish/guestfish-commands.pod:207
18375 #: ../fish/guestfish-commands.pod:209
18378 " time command args...\n"
18383 #: ../fish/guestfish-commands.pod:211
18385 "Run the command as usual, but print the elapsed time afterwards. This can "
18386 "be useful for benchmarking operations."
18390 #: ../fish/guestfish-commands.pod:214
18395 #: ../fish/guestfish-commands.pod:216
18403 #: ../fish/guestfish-commands.pod:218
18404 msgid "Remove C<VAR> from the environment."
18408 #: ../fish/guestfish.pod:5
18409 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18413 #: ../fish/guestfish.pod:9
18416 " guestfish [--options] [commands]\n"
18421 #: ../fish/guestfish.pod:11
18429 #: ../fish/guestfish.pod:13
18432 " guestfish [--ro|--rw] -a disk.img\n"
18437 #: ../fish/guestfish.pod:15
18440 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18445 #: ../fish/guestfish.pod:17
18448 " guestfish -d libvirt-domain\n"
18453 #: ../fish/guestfish.pod:19
18456 " guestfish [--ro|--rw] -a disk.img -i\n"
18461 #: ../fish/guestfish.pod:21
18464 " guestfish -d libvirt-domain -i\n"
18469 #: ../fish/guestfish.pod:25
18471 "Using guestfish in read/write mode on live virtual machines can be "
18472 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18473 "option to use guestfish safely if the disk image or virtual machine might be "
18478 #: ../fish/guestfish.pod:32
18480 "Guestfish is a shell and command-line tool for examining and modifying "
18481 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18482 "functionality of the guestfs API, see L<guestfs(3)>."
18486 #: ../fish/guestfish.pod:36
18488 "Guestfish gives you structured access to the libguestfs API, from shell "
18489 "scripts or the command line or interactively. If you want to rescue a "
18490 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18495 #: ../fish/guestfish.pod:43
18496 msgid "As an interactive shell"
18500 #: ../fish/guestfish.pod:45
18508 #: ../fish/guestfish.pod:47
18511 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18512 " editing virtual machine filesystems.\n"
18517 #: ../fish/guestfish.pod:50
18520 " Type: 'help' for a list of commands\n"
18521 " 'man' to read the manual\n"
18522 " 'quit' to quit the shell\n"
18527 #: ../fish/guestfish.pod:54
18530 " ><fs> add-ro disk.img\n"
18532 " ><fs> list-filesystems\n"
18533 " /dev/sda1: ext4\n"
18534 " /dev/vg_guest/lv_root: ext4\n"
18535 " /dev/vg_guest/lv_swap: swap\n"
18536 " ><fs> mount /dev/vg_guest/lv_root /\n"
18537 " ><fs> cat /etc/fstab\n"
18539 " # Created by anaconda\n"
18546 #: ../fish/guestfish.pod:67
18547 msgid "From shell scripts"
18551 #: ../fish/guestfish.pod:69
18552 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18556 #: ../fish/guestfish.pod:71
18559 " guestfish <<_EOF_\n"
18562 " mount /dev/vg_guest/lv_root /\n"
18563 " write /etc/motd \"Welcome, new users\"\n"
18569 #: ../fish/guestfish.pod:78
18570 msgid "List the LVM logical volumes in a disk image:"
18574 #: ../fish/guestfish.pod:80
18577 " guestfish -a disk.img --ro <<_EOF_\n"
18585 #: ../fish/guestfish.pod:85
18586 msgid "List all the filesystems in a disk image:"
18590 #: ../fish/guestfish.pod:87
18593 " guestfish -a disk.img --ro <<_EOF_\n"
18595 " list-filesystems\n"
18601 #: ../fish/guestfish.pod:92
18602 msgid "On one command line"
18606 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18607 msgid "Update C</etc/resolv.conf> in a guest:"
18611 #: ../fish/guestfish.pod:96
18615 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18616 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18621 #: ../fish/guestfish.pod:100
18622 msgid "Edit C</boot/grub/grub.conf> interactively:"
18626 #: ../fish/guestfish.pod:102
18629 " guestfish --rw --add disk.img \\\n"
18630 " --mount /dev/vg_guest/lv_root \\\n"
18631 " --mount /dev/sda1:/boot \\\n"
18632 " edit /boot/grub/grub.conf\n"
18637 #: ../fish/guestfish.pod:107
18638 msgid "Mount disks automatically"
18642 #: ../fish/guestfish.pod:109
18644 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18648 #: ../fish/guestfish.pod:112
18651 " guestfish --ro -a disk.img -i cat /etc/group\n"
18656 #: ../fish/guestfish.pod:114
18659 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18664 #: ../fish/guestfish.pod:116
18665 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18669 #: ../fish/guestfish.pod:118
18672 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18677 #: ../fish/guestfish.pod:120
18678 msgid "As a script interpreter"
18682 #: ../fish/guestfish.pod:122
18683 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18687 #: ../fish/guestfish.pod:124
18690 " #!/usr/bin/guestfish -f\n"
18691 " sparse test1.img 100M\n"
18693 " part-disk /dev/sda mbr\n"
18694 " mkfs ext2 /dev/sda1\n"
18699 #: ../fish/guestfish.pod:130
18700 msgid "Start with a prepared disk"
18704 #: ../fish/guestfish.pod:132
18706 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18707 "single ext2-formatted partition:"
18711 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18714 " guestfish -N fs\n"
18719 #: ../fish/guestfish.pod:137
18720 msgid "To list what is available do:"
18724 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18727 " guestfish -N help | less\n"
18732 #: ../fish/guestfish.pod:141
18733 msgid "Remote control"
18734 msgstr "Дистанційне керування"
18737 #: ../fish/guestfish.pod:143
18740 " eval \"`guestfish --listen`\"\n"
18741 " guestfish --remote add-ro disk.img\n"
18742 " guestfish --remote run\n"
18743 " guestfish --remote lvs\n"
18746 " eval \"`guestfish --listen`\"\n"
18747 " guestfish --remote add-ro disk.img\n"
18748 " guestfish --remote run\n"
18749 " guestfish --remote lvs\n"
18753 #: ../fish/guestfish.pod:154
18754 msgid "Displays general help on options."
18758 #: ../fish/guestfish.pod:158
18759 msgid "B<--cmd-help>"
18760 msgstr "B<--cmd-help>"
18763 #: ../fish/guestfish.pod:160
18764 msgid "Lists all available guestfish commands."
18768 #: ../fish/guestfish.pod:162
18770 msgstr "B<-h команда>"
18773 #: ../fish/guestfish.pod:164
18774 msgid "B<--cmd-help cmd>"
18775 msgstr "B<--cmd-help команда>"
18778 #: ../fish/guestfish.pod:166
18779 msgid "Displays detailed help on a single command C<cmd>."
18783 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18784 msgid "B<-a image>"
18785 msgstr "B<-a образ>"
18788 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18789 msgid "B<--add image>"
18790 msgstr "B<--add образ>"
18793 #: ../fish/guestfish.pod:172
18794 msgid "Add a block device or virtual machine image to the shell."
18798 #: ../fish/guestfish.pod:177
18800 "Using this flag is mostly equivalent to using the C<add> command, with "
18801 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18802 "the I<--format=...> flag was given."
18806 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18808 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18809 "URI to use. The default is to use the default libvirt connection."
18813 #: ../fish/guestfish.pod:189
18818 #: ../fish/guestfish.pod:191
18820 "If using the I<--listen> option and a csh-like shell, use this option. See "
18821 "section L</REMOTE CONTROL AND CSH> below."
18825 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18826 msgid "B<-d libvirt-domain>"
18827 msgstr "B<-d домен-libvirt>"
18830 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18831 msgid "B<--domain libvirt-domain>"
18832 msgstr "B<--domain домен-libvirt>"
18835 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18837 "Add disks from the named libvirt domain. If the I<--ro> option is also "
18838 "used, then any libvirt domain can be used. However in write mode, only "
18839 "libvirt domains which are shut down can be named here."
18843 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18844 msgid "Domain UUIDs can be used instead of names."
18848 #: ../fish/guestfish.pod:204
18850 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18851 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18852 "if the I<--format:...> flag was given."
18856 #: ../fish/guestfish.pod:208
18861 #: ../fish/guestfish.pod:210
18862 msgid "B<--no-dest-paths>"
18863 msgstr "B<--no-dest-paths>"
18866 #: ../fish/guestfish.pod:212
18868 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
18869 "to hit the tab key to complete paths on the guest filesystem, but this "
18870 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18871 "allow this feature to be disabled."
18875 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18877 "When prompting for keys and passphrases, guestfish normally turns echoing "
18878 "off so you cannot see what you are typing. If you are not worried about "
18879 "Tempest attacks and there is no one else in the room you can specify this "
18880 "flag to see what you are typing."
18884 #: ../fish/guestfish.pod:224
18886 msgstr "B<-f файл>"
18889 #: ../fish/guestfish.pod:226
18890 msgid "B<--file file>"
18891 msgstr "B<--file файл>"
18894 #: ../fish/guestfish.pod:228
18895 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
18899 #: ../fish/guestfish.pod:231
18902 " #!/usr/bin/guestfish -f\n"
18905 " #!/usr/bin/guestfish -f\n"
18909 #: ../fish/guestfish.pod:244
18912 " guestfish --format=raw -a disk.img\n"
18915 " guestfish --format=raw -a disk.img\n"
18919 #: ../fish/guestfish.pod:248
18922 " guestfish --format=raw -a disk.img --format -a another.img\n"
18925 " guestfish --format=raw -a disk.img --format -a another.img\n"
18929 #: ../fish/guestfish.pod:253
18931 "If you have untrusted raw-format guest disk images, you should use this "
18932 "option to specify the disk format. This avoids a possible security problem "
18933 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
18937 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18938 msgid "B<--inspector>"
18939 msgstr "B<--inspector>"
18942 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18944 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18945 "system and mount filesystems as they would be mounted on the real virtual "
18950 #: ../fish/guestfish.pod:266
18951 msgid "Typical usage is either:"
18955 #: ../fish/guestfish.pod:268
18958 " guestfish -d myguest -i\n"
18961 " guestfish -d myguest -i\n"
18965 #: ../fish/guestfish.pod:270
18966 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18970 #: ../fish/guestfish.pod:272
18973 " guestfish --ro -d myguest -i\n"
18976 " guestfish --ro -d myguest -i\n"
18980 #: ../fish/guestfish.pod:274
18981 msgid "(for active domains, readonly), or specify the block device directly:"
18985 #: ../fish/guestfish.pod:276
18988 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18991 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18995 #: ../fish/guestfish.pod:278
18997 "Note that the command line syntax changed slightly over older versions of "
18998 "guestfish. You can still use the old syntax:"
19002 #: ../fish/guestfish.pod:281
19005 " guestfish [--ro] -i disk.img\n"
19008 " guestfish [--ro] -i disk.img\n"
19012 #: ../fish/guestfish.pod:283
19015 " guestfish [--ro] -i libvirt-domain\n"
19020 #: ../fish/guestfish.pod:285
19022 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19023 "then using other commands to mount the filesystems that were found."
19027 #: ../fish/guestfish.pod:294
19028 msgid "B<--listen>"
19029 msgstr "B<--listen>"
19032 #: ../fish/guestfish.pod:296
19034 "Fork into the background and listen for remote commands. See section L</"
19035 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19039 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19044 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19046 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19047 "ATTACHING TO RUNNING DAEMONS>)."
19051 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19052 msgid "B<-m dev[:mountpoint[:options]]>"
19053 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19056 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19057 msgid "B<--mount dev[:mountpoint[:options]]>"
19058 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19061 #: ../fish/guestfish.pod:308
19062 msgid "Mount the named partition or logical volume on the given mountpoint."
19066 #: ../fish/guestfish.pod:310
19067 msgid "If the mountpoint is omitted, it defaults to C</>."
19071 #: ../fish/guestfish.pod:312
19072 msgid "You have to mount something on C</> before most commands will work."
19076 #: ../fish/guestfish.pod:314
19078 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19083 #: ../fish/guestfish.pod:317
19085 "If you don't know what filesystems a disk image contains, you can either run "
19086 "guestfish without this option, then list the partitions, filesystems and LVs "
19087 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19088 "commands), or you can use the L<virt-filesystems(1)> program."
19092 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19094 "The third (and rarely used) part of the mount parameter is the list of mount "
19095 "options used to mount the underlying filesystem. If this is not given, then "
19096 "the mount options are either the empty string or C<ro> (the latter if the "
19097 "I<--ro> flag is used). By specifying the mount options, you override this "
19098 "default choice. Probably the only time you would use this is to enable ACLs "
19099 "and/or extended attributes if the filesystem can support them:"
19103 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19106 " -m /dev/sda1:/:acl,user_xattr\n"
19111 #: ../fish/guestfish.pod:333
19112 msgid "Using this flag is equivalent to using the C<mount-options> command."
19116 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19117 #: ../resize/virt-resize.pod:358
19122 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19123 msgid "B<--no-sync>"
19124 msgstr "B<--no-sync>"
19127 #: ../fish/guestfish.pod:339
19129 "Disable autosync. This is enabled by default. See the discussion of "
19130 "autosync in the L<guestfs(3)> manpage."
19134 #: ../fish/guestfish.pod:342
19139 #: ../fish/guestfish.pod:344
19140 msgid "B<--new type>"
19141 msgstr "B<--new тип>"
19144 #: ../fish/guestfish.pod:346
19146 msgstr "B<-N help>"
19149 #: ../fish/guestfish.pod:348
19151 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19152 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19153 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19158 #: ../fish/guestfish.pod:353
19159 msgid "B<--progress-bars>"
19160 msgstr "B<--progress-bars>"
19163 #: ../fish/guestfish.pod:355
19164 msgid "Enable progress bars, even when guestfish is used non-interactively."
19168 #: ../fish/guestfish.pod:357
19170 "Progress bars are enabled by default when guestfish is used as an "
19171 "interactive shell."
19175 #: ../fish/guestfish.pod:360
19176 msgid "B<--no-progress-bars>"
19177 msgstr "B<--no-progress-bars>"
19180 #: ../fish/guestfish.pod:362
19181 msgid "Disable progress bars."
19185 #: ../fish/guestfish.pod:364
19186 msgid "B<--remote[=pid]>"
19187 msgstr "B<--remote[=pid]>"
19190 #: ../fish/guestfish.pod:366
19192 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19193 "CONTROL GUESTFISH OVER A SOCKET> below."
19197 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19198 #: ../rescue/virt-rescue.pod:161
19203 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19204 #: ../rescue/virt-rescue.pod:163
19209 #: ../fish/guestfish.pod:373
19211 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19212 "mounts are done read-only."
19216 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19218 "The option must always be used if the disk image or virtual machine might be "
19219 "running, and is generally recommended in cases where you don't need write "
19220 "access to the disk."
19224 #: ../fish/guestfish.pod:380
19226 "Note that prepared disk images created with I<-N> are not affected by this "
19227 "option. Also commands like C<add> are not affected - you have to specify "
19228 "the C<readonly:true> option explicitly if you need it."
19232 #: ../fish/guestfish.pod:384
19233 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19237 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19238 #: ../rescue/virt-rescue.pod:173
19239 msgid "B<--selinux>"
19240 msgstr "B<--selinux>"
19243 #: ../fish/guestfish.pod:388
19244 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19248 #: ../fish/guestfish.pod:394
19250 "Enable very verbose messages. This is particularly useful if you find a bug."
19254 #: ../fish/guestfish.pod:401
19255 msgid "Display the guestfish / libguestfs version number and exit."
19259 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19260 #: ../rescue/virt-rescue.pod:194
19265 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19266 #: ../rescue/virt-rescue.pod:196
19271 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19273 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19274 "mounts are done read-write."
19278 #: ../fish/guestfish.pod:410
19279 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19283 #: ../fish/guestfish.pod:414
19284 msgid "Echo each command before executing it."
19288 #: ../fish/guestfish.pod:418
19289 msgid "COMMANDS ON COMMAND LINE"
19293 #: ../fish/guestfish.pod:420
19295 "Any additional (non-option) arguments are treated as commands to execute."
19299 #: ../fish/guestfish.pod:423
19301 "Commands to execute should be separated by a colon (C<:>), where the colon "
19302 "is a separate parameter. Thus:"
19306 #: ../fish/guestfish.pod:426
19309 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19314 #: ../fish/guestfish.pod:428
19316 "If there are no additional arguments, then we enter a shell, either an "
19317 "interactive shell with a prompt (if the input is a terminal) or a non-"
19318 "interactive shell."
19322 #: ../fish/guestfish.pod:432
19324 "In either command line mode or non-interactive shell, the first command that "
19325 "gives an error causes the whole shell to exit. In interactive mode (with a "
19326 "prompt) if a command fails, you can continue to enter commands."
19330 #: ../fish/guestfish.pod:437
19331 msgid "USING launch (OR run)"
19335 #: ../fish/guestfish.pod:439
19337 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19338 "then launch it, then mount any disks you need, and finally issue actions/"
19339 "commands. So the general order of the day is:"
19343 #: ../fish/guestfish.pod:447
19344 msgid "add or -a/--add"
19348 #: ../fish/guestfish.pod:451
19349 msgid "launch (aka run)"
19353 #: ../fish/guestfish.pod:455
19354 msgid "mount or -m/--mount"
19358 #: ../fish/guestfish.pod:459
19359 msgid "any other commands"
19363 #: ../fish/guestfish.pod:463
19365 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19366 "guest before mounting or performing any other commands."
19370 #: ../fish/guestfish.pod:466
19372 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19373 "I<--new> options were given then C<run> is done automatically, simply "
19374 "because guestfish can't perform the action you asked for without doing this."
19378 #: ../fish/guestfish.pod:471
19379 msgid "OPENING DISKS FOR READ AND WRITE"
19383 #: ../fish/guestfish.pod:473
19385 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19386 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19387 "I<-i> and I<-m> open disk images read-only or for writing."
19391 #: ../fish/guestfish.pod:478
19393 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19394 "opening disk images supplied on the command line for write. To open a disk "
19395 "image read-only you have to do I<-a image --ro>."
19399 #: ../fish/guestfish.pod:482
19401 "This matters: If you accidentally open a live VM disk image writable then "
19402 "you will cause irreversible disk corruption."
19406 #: ../fish/guestfish.pod:485
19408 "In a future libguestfs we intend to change the default the other way. Disk "
19409 "images will be opened read-only. You will have to either specify "
19410 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19411 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19412 "access for disk images specified by those other command line options."
19416 #: ../fish/guestfish.pod:492
19418 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19419 "which does nothing (it is already the default). However it is highly "
19420 "recommended that you use this option to indicate that you need write access, "
19421 "and prepare your scripts for the day when this option will be required for "
19426 #: ../fish/guestfish.pod:498
19428 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19429 "other libguestfs program apart from guestfish and guestmount."
19433 #: ../fish/guestfish.pod:501
19438 #: ../fish/guestfish.pod:503
19440 "You can quote ordinary parameters using either single or double quotes. For "
19445 #: ../fish/guestfish.pod:506
19448 " add \"file with a space.img\"\n"
19453 #: ../fish/guestfish.pod:508
19456 " rm '/file name'\n"
19461 #: ../fish/guestfish.pod:510
19469 #: ../fish/guestfish.pod:512
19471 "A few commands require a list of strings to be passed. For these, use a "
19472 "whitespace-separated list, enclosed in quotes. Strings containing "
19473 "whitespace to be passed through must be enclosed in single quotes. A "
19474 "literal single quote must be escaped with a backslash."
19478 #: ../fish/guestfish.pod:517
19481 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19482 " command \"/bin/echo 'foo bar'\"\n"
19483 " command \"/bin/echo \\'foo\\'\"\n"
19488 #: ../fish/guestfish.pod:521
19489 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19493 #: ../fish/guestfish.pod:523
19495 "In double-quoted arguments (only) use backslash to insert special characters:"
19499 #: ../fish/guestfish.pod:528
19504 #: ../fish/guestfish.pod:530
19505 msgid "Alert (bell) character."
19506 msgstr "Символ гудка (дзвінка)."
19509 #: ../fish/guestfish.pod:532
19514 #: ../fish/guestfish.pod:534
19515 msgid "Backspace character."
19519 #: ../fish/guestfish.pod:536
19524 #: ../fish/guestfish.pod:538
19525 msgid "Form feed character."
19529 #: ../fish/guestfish.pod:540
19534 #: ../fish/guestfish.pod:542
19535 msgid "Newline character."
19539 #: ../fish/guestfish.pod:544
19544 #: ../fish/guestfish.pod:546
19545 msgid "Carriage return character."
19546 msgstr "Символ повернення каретки."
19549 #: ../fish/guestfish.pod:548
19554 #: ../fish/guestfish.pod:550
19555 msgid "Horizontal tab character."
19556 msgstr "Символ горизонтальної табуляції"
19559 #: ../fish/guestfish.pod:552
19564 #: ../fish/guestfish.pod:554
19565 msgid "Vertical tab character."
19566 msgstr "Символ вертикальної табуляції."
19569 #: ../fish/guestfish.pod:556
19574 #: ../fish/guestfish.pod:558
19575 msgid "A literal double quote character."
19579 #: ../fish/guestfish.pod:560
19584 #: ../fish/guestfish.pod:562
19586 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19591 #: ../fish/guestfish.pod:565
19596 #: ../fish/guestfish.pod:567
19598 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19602 #: ../fish/guestfish.pod:570
19604 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19609 #: ../fish/guestfish.pod:573
19614 #: ../fish/guestfish.pod:575
19615 msgid "A literal backslash character."
19619 #: ../fish/guestfish.pod:579
19620 msgid "OPTIONAL ARGUMENTS"
19624 #: ../fish/guestfish.pod:581
19626 "Some commands take optional arguments. These arguments appear in this "
19627 "documentation as C<[argname:..]>. You can use them as in these examples:"
19631 #: ../fish/guestfish.pod:585
19634 " add-drive-opts filename\n"
19639 #: ../fish/guestfish.pod:587
19642 " add-drive-opts filename readonly:true\n"
19647 #: ../fish/guestfish.pod:589
19650 " add-drive-opts filename format:qcow2 readonly:false\n"
19655 #: ../fish/guestfish.pod:591
19657 "Each optional argument can appear at most once. All optional arguments must "
19658 "appear after the required ones."
19662 #: ../fish/guestfish.pod:594
19667 #: ../fish/guestfish.pod:596
19669 "This section applies to all commands which can take integers as parameters."
19673 #: ../fish/guestfish.pod:599
19674 msgid "SIZE SUFFIX"
19678 #: ../fish/guestfish.pod:601
19680 "When the command takes a parameter measured in bytes, you can use one of the "
19681 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19685 #: ../fish/guestfish.pod:607
19686 msgid "B<k> or B<K> or B<KiB>"
19687 msgstr "B<k>, B<K> або B<KiB>"
19690 #: ../fish/guestfish.pod:609
19691 msgid "The size in kilobytes (multiplied by 1024)."
19692 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19695 #: ../fish/guestfish.pod:611
19700 #: ../fish/guestfish.pod:613
19701 msgid "The size in SI 1000 byte units."
19702 msgstr "Розмір у одиницях СІ: 1000 байтів."
19705 #: ../fish/guestfish.pod:615
19706 msgid "B<M> or B<MiB>"
19707 msgstr "B<M> або B<MiB>"
19710 #: ../fish/guestfish.pod:617
19711 msgid "The size in megabytes (multiplied by 1048576)."
19712 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19715 #: ../fish/guestfish.pod:619
19720 #: ../fish/guestfish.pod:621
19721 msgid "The size in SI 1000000 byte units."
19722 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19725 #: ../fish/guestfish.pod:623
19726 msgid "B<G> or B<GiB>"
19727 msgstr "B<G> або B<GiB>"
19730 #: ../fish/guestfish.pod:625
19731 msgid "The size in gigabytes (multiplied by 2**30)."
19732 msgstr "Розмір у гігабайтах (з множником 2**30)."
19735 #: ../fish/guestfish.pod:627
19740 #: ../fish/guestfish.pod:629
19741 msgid "The size in SI 10**9 byte units."
19742 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19745 #: ../fish/guestfish.pod:631
19746 msgid "B<T> or B<TiB>"
19747 msgstr "B<T> або B<TiB>"
19750 #: ../fish/guestfish.pod:633
19751 msgid "The size in terabytes (multiplied by 2**40)."
19752 msgstr "Розмір у терабайтах (з множником 2**40)."
19755 #: ../fish/guestfish.pod:635
19760 #: ../fish/guestfish.pod:637
19761 msgid "The size in SI 10**12 byte units."
19762 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19765 #: ../fish/guestfish.pod:639
19766 msgid "B<P> or B<PiB>"
19767 msgstr "B<P> або B<PiB>"
19770 #: ../fish/guestfish.pod:641
19771 msgid "The size in petabytes (multiplied by 2**50)."
19772 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19775 #: ../fish/guestfish.pod:643
19780 #: ../fish/guestfish.pod:645
19781 msgid "The size in SI 10**15 byte units."
19782 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19785 #: ../fish/guestfish.pod:647
19786 msgid "B<E> or B<EiB>"
19787 msgstr "B<E> або B<EiB>"
19790 #: ../fish/guestfish.pod:649
19791 msgid "The size in exabytes (multiplied by 2**60)."
19792 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19795 #: ../fish/guestfish.pod:651
19800 #: ../fish/guestfish.pod:653
19801 msgid "The size in SI 10**18 byte units."
19802 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19805 #: ../fish/guestfish.pod:655
19806 msgid "B<Z> or B<ZiB>"
19807 msgstr "B<Z> або B<ZiB>"
19810 #: ../fish/guestfish.pod:657
19811 msgid "The size in zettabytes (multiplied by 2**70)."
19812 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19815 #: ../fish/guestfish.pod:659
19820 #: ../fish/guestfish.pod:661
19821 msgid "The size in SI 10**21 byte units."
19822 msgstr "Розмір у одиницях СІ: 10**21 байтів."
19825 #: ../fish/guestfish.pod:663
19826 msgid "B<Y> or B<YiB>"
19827 msgstr "B<Y> або B<YiB>"
19830 #: ../fish/guestfish.pod:665
19831 msgid "The size in yottabytes (multiplied by 2**80)."
19832 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
19835 #: ../fish/guestfish.pod:667
19840 #: ../fish/guestfish.pod:669
19841 msgid "The size in SI 10**24 byte units."
19842 msgstr "Розмір у одиницях СІ: 10**24 байтів."
19845 #: ../fish/guestfish.pod:675
19848 " truncate-size /file 1G\n"
19853 #: ../fish/guestfish.pod:677
19854 msgid "would truncate the file to 1 gigabyte."
19858 #: ../fish/guestfish.pod:679
19860 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19861 "the parameter to L</memsize> is specified in megabytes already). Adding a "
19862 "suffix will probably not do what you expect."
19866 #: ../fish/guestfish.pod:683
19867 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19871 #: ../fish/guestfish.pod:685
19873 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19874 "octal number or C<0x> to prefix a hexadecimal number. For example:"
19878 #: ../fish/guestfish.pod:688
19881 " 1234 decimal number 1234\n"
19882 " 02322 octal number, equivalent to decimal 1234\n"
19883 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
19888 #: ../fish/guestfish.pod:692
19890 "When using the C<chmod> command, you almost always want to specify an octal "
19891 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19892 "L<chmod(1)> program):"
19896 #: ../fish/guestfish.pod:696
19899 " chmod 0777 /public # OK\n"
19900 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
19905 #: ../fish/guestfish.pod:699
19907 "Commands that return numbers usually print them in decimal, but some "
19908 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19909 "octal, preceeded by C<0>)."
19913 #: ../fish/guestfish.pod:703
19914 msgid "WILDCARDS AND GLOBBING"
19918 #: ../fish/guestfish.pod:705
19920 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19921 "(globbing) by default. So for example the following will not do what you "
19926 #: ../fish/guestfish.pod:709
19934 #: ../fish/guestfish.pod:711
19936 "Assuming you don't have a directory called literally C</home/*> then the "
19937 "above command will return an error."
19941 #: ../fish/guestfish.pod:714
19942 msgid "To perform wildcard expansion, use the C<glob> command."
19946 #: ../fish/guestfish.pod:716
19949 " glob rm-rf /home/*\n"
19954 #: ../fish/guestfish.pod:718
19956 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19957 "many times), equivalent to:"
19961 #: ../fish/guestfish.pod:721
19964 " rm-rf /home/jim\n"
19965 " rm-rf /home/joe\n"
19966 " rm-rf /home/mary\n"
19971 #: ../fish/guestfish.pod:725
19972 msgid "C<glob> only works on simple guest paths and not on device names."
19976 #: ../fish/guestfish.pod:727
19978 "If you have several parameters, each containing a wildcard, then glob will "
19979 "perform a Cartesian product."
19983 #: ../fish/guestfish.pod:730
19988 #: ../fish/guestfish.pod:732
19990 "Any line which starts with a I<#> character is treated as a comment and "
19991 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
19992 "a command. For example:"
19996 #: ../fish/guestfish.pod:736
19999 " # this is a comment\n"
20000 " # this is a comment\n"
20001 " foo # NOT a comment\n"
20006 #: ../fish/guestfish.pod:740
20007 msgid "Blank lines are also ignored."
20011 #: ../fish/guestfish.pod:742
20012 msgid "RUNNING COMMANDS LOCALLY"
20016 #: ../fish/guestfish.pod:744
20018 "Any line which starts with a I<!> character is treated as a command sent to "
20019 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20023 #: ../fish/guestfish.pod:748
20027 " tgz-out /remote local/remote-data.tar.gz\n"
20032 #: ../fish/guestfish.pod:751
20034 "will create a directory C<local> on the host, and then export the contents "
20035 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20036 "(See C<tgz-out>)."
20040 #: ../fish/guestfish.pod:755
20042 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20043 "effect, due to the way that subprocesses work in Unix."
20047 #: ../fish/guestfish.pod:758
20048 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20052 #: ../fish/guestfish.pod:760
20054 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20055 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20056 "and executed as guestfish commands."
20060 #: ../fish/guestfish.pod:764
20062 "Thus you can use shell script to construct arbitrary guestfish commands "
20063 "which are then parsed by guestfish."
20067 #: ../fish/guestfish.pod:767
20069 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20070 "through C</foo.100>) using guestfish commands alone. However this is simple "
20071 "if we use a shell script to create the guestfish commands for us:"
20075 #: ../fish/guestfish.pod:772
20078 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20083 #: ../fish/guestfish.pod:774
20084 msgid "or with names like C</foo.001>:"
20088 #: ../fish/guestfish.pod:776
20091 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20096 #: ../fish/guestfish.pod:778
20098 "When using guestfish interactively it can be helpful to just run the shell "
20099 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20100 "ordinary I<!> local command), see what guestfish commands it would run, and "
20101 "when you are happy with those prepend the C<E<lt>> character to run the "
20102 "guestfish commands for real."
20106 #: ../fish/guestfish.pod:784
20111 #: ../fish/guestfish.pod:786
20113 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20114 "command (a guestfish command) to the second command (any host command). For "
20119 #: ../fish/guestfish.pod:790
20122 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20127 #: ../fish/guestfish.pod:792
20129 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20130 "program). The above command would list all accounts in the guest filesystem "
20131 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20135 #: ../fish/guestfish.pod:797
20138 " hexdump /bin/ls | head\n"
20139 " list-devices | tail -1\n"
20140 " tgz-out / - | tar ztf -\n"
20145 #: ../fish/guestfish.pod:801
20147 "The space before the pipe symbol is required, any space after the pipe "
20148 "symbol is optional. Everything after the pipe symbol is just passed "
20149 "straight to the host shell, so it can contain redirections, globs and "
20150 "anything else that makes sense on the host side."
20154 #: ../fish/guestfish.pod:806
20156 "To use a literal argument which begins with a pipe symbol, you have to quote "
20161 #: ../fish/guestfish.pod:809
20169 #: ../fish/guestfish.pod:811
20170 msgid "HOME DIRECTORIES"
20174 #: ../fish/guestfish.pod:813
20176 "If a parameter starts with the character C<~> then the tilde may be expanded "
20177 "as a home directory path (either C<~> for the current user's home directory, "
20178 "or C<~user> for another user)."
20182 #: ../fish/guestfish.pod:817
20184 "Note that home directory expansion happens for users known I<on the host>, "
20185 "not in the guest filesystem."
20189 #: ../fish/guestfish.pod:820
20191 "To use a literal argument which begins with a tilde, you have to quote it, "
20196 #: ../fish/guestfish.pod:823
20204 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20205 msgid "ENCRYPTED DISKS"
20206 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20209 #: ../fish/guestfish.pod:827
20211 "Libguestfs has some support for Linux guests encrypted according to the "
20212 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20213 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20214 "LUKS is supported."
20218 #: ../fish/guestfish.pod:832
20219 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20223 #: ../fish/guestfish.pod:834
20226 " ><fs> vfs-type /dev/sda2\n"
20232 #: ../fish/guestfish.pod:837
20234 "Then open those devices using L</luks-open>. This creates a device-mapper "
20235 "device called C</dev/mapper/luksdev>."
20239 #: ../fish/guestfish.pod:840
20242 " ><fs> luks-open /dev/sda2 luksdev\n"
20243 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20248 #: ../fish/guestfish.pod:843
20250 "Finally you have to tell LVM to scan for volume groups on the newly created "
20255 #: ../fish/guestfish.pod:846
20259 " vg-activate-all true\n"
20264 #: ../fish/guestfish.pod:849
20265 msgid "The logical volume(s) can now be mounted in the usual way."
20269 #: ../fish/guestfish.pod:851
20271 "Before closing a LUKS device you must unmount any logical volumes on it and "
20272 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20273 "one. Then you can close the mapper device:"
20277 #: ../fish/guestfish.pod:855
20280 " vg-activate false /dev/VG\n"
20281 " luks-close /dev/mapper/luksdev\n"
20286 #: ../fish/guestfish.pod:860
20288 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20289 "letters and paths (with some limitations). The following commands are "
20294 #: ../fish/guestfish.pod:864
20297 " file /WINDOWS/system32/config/system.LOG\n"
20302 #: ../fish/guestfish.pod:866
20305 " file win:\\windows\\system32\\config\\system.log\n"
20310 #: ../fish/guestfish.pod:868
20313 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20318 #: ../fish/guestfish.pod:870
20320 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20321 "where the drive is mounted, prepending that to the path, changing all "
20322 "backslash characters to forward slash, then resolving the result using L</"
20323 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20324 "the parameter might be rewritten like this:"
20328 #: ../fish/guestfish.pod:876
20331 " win:e:\\foo\\bar => /e/FOO/bar\n"
20336 #: ../fish/guestfish.pod:878
20337 msgid "This only works in argument positions that expect a path."
20341 #: ../fish/guestfish.pod:880
20342 msgid "UPLOADING AND DOWNLOADING FILES"
20346 #: ../fish/guestfish.pod:882
20348 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20349 "others which upload from or download to a local file, you can use the "
20350 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20354 #: ../fish/guestfish.pod:886
20362 #: ../fish/guestfish.pod:888
20364 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20368 #: ../fish/guestfish.pod:891
20371 " tar-out /etc - | tar tf -\n"
20376 #: ../fish/guestfish.pod:893
20378 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20379 "command (see L</PIPES>)."
20383 #: ../fish/guestfish.pod:896
20385 "When using C<-> to read from stdin, the input is read up to the end of "
20386 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20387 "some arbitrary end marker:"
20391 #: ../fish/guestfish.pod:900
20394 " upload -<<END /foo\n"
20403 #: ../fish/guestfish.pod:906
20405 "Any string of characters can be used instead of C<END>. The end marker must "
20406 "appear on a line of its own, without any preceeding or following characters "
20407 "(not even spaces)."
20411 #: ../fish/guestfish.pod:910
20413 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20414 "upload local files (so-called \"FileIn\" parameters in the generator)."
20418 #: ../fish/guestfish.pod:913
20419 msgid "EXIT ON ERROR BEHAVIOUR"
20423 #: ../fish/guestfish.pod:915
20425 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20426 "taking commands from a human over a tty), and will exit on the first error "
20427 "in non-interactive mode (scripts, commands given on the command line)."
20431 #: ../fish/guestfish.pod:920
20433 "If you prefix a command with a I<-> character, then that command will not "
20434 "cause guestfish to exit, even if that (one) command returns an error."
20438 #: ../fish/guestfish.pod:924
20439 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20443 #: ../fish/guestfish.pod:926
20445 "Guestfish can be remote-controlled over a socket. This is useful "
20446 "particularly in shell scripts where you want to make several different "
20447 "changes to a filesystem, but you don't want the overhead of starting up a "
20448 "guestfish process each time."
20452 #: ../fish/guestfish.pod:931
20453 msgid "Start a guestfish server process using:"
20457 #: ../fish/guestfish.pod:933
20460 " eval \"`guestfish --listen`\"\n"
20465 #: ../fish/guestfish.pod:935
20466 msgid "and then send it commands by doing:"
20470 #: ../fish/guestfish.pod:937
20473 " guestfish --remote cmd [...]\n"
20478 #: ../fish/guestfish.pod:939
20479 msgid "To cause the server to exit, send it the exit command:"
20483 #: ../fish/guestfish.pod:943
20485 "Note that the server will normally exit if there is an error in a command. "
20486 "You can change this in the usual way. See section L</EXIT ON ERROR "
20491 #: ../fish/guestfish.pod:947
20492 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20496 #: ../fish/guestfish.pod:949
20498 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20499 "is how the I<--remote> option knows where to send the commands. You can "
20500 "have several guestfish listener processes running using:"
20504 #: ../fish/guestfish.pod:953
20507 " eval \"`guestfish --listen`\"\n"
20508 " pid1=$GUESTFISH_PID\n"
20509 " eval \"`guestfish --listen`\"\n"
20510 " pid2=$GUESTFISH_PID\n"
20512 " guestfish --remote=$pid1 cmd\n"
20513 " guestfish --remote=$pid2 cmd\n"
20518 #: ../fish/guestfish.pod:961
20519 msgid "REMOTE CONTROL AND CSH"
20523 #: ../fish/guestfish.pod:963
20525 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20530 #: ../fish/guestfish.pod:966
20533 " eval \"`guestfish --listen --csh`\"\n"
20538 #: ../fish/guestfish.pod:968
20539 msgid "REMOTE CONTROL DETAILS"
20543 #: ../fish/guestfish.pod:970
20545 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20546 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20547 "and C<$PID> is the process ID of the server."
20551 #: ../fish/guestfish.pod:974
20552 msgid "Guestfish client and server versions must match exactly."
20556 #: ../fish/guestfish.pod:976
20557 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20561 #: ../fish/guestfish.pod:978
20563 "From Bash, you can use the following code which creates a guestfish "
20564 "instance, correctly quotes the command line, handles failure to start, and "
20565 "cleans up guestfish when the script exits:"
20569 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20577 #: ../fish/guestfish.pod:986
20580 " guestfish[0]=\"guestfish\"\n"
20581 " guestfish[1]=\"--listen\"\n"
20582 " guestfish[2]=\"--ro\"\n"
20583 " guestfish[3]=\"-a\"\n"
20584 " guestfish[4]=\"disk.img\"\n"
20589 #: ../fish/guestfish.pod:992
20592 " GUESTFISH_PID=\n"
20593 " eval $(\"${guestfish[@]}\")\n"
20594 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20595 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20602 #: ../fish/guestfish.pod:999
20605 " cleanup_guestfish ()\n"
20607 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20609 " trap cleanup_guestfish EXIT ERR\n"
20614 #: ../fish/guestfish.pod:1005
20617 " guestfish --remote -- run\n"
20622 #: ../fish/guestfish.pod:1007
20630 #: ../fish/guestfish.pod:1009
20631 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20635 #: ../fish/guestfish.pod:1011
20637 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20638 "context hangs, ie. don't do (note the backquotes):"
20642 #: ../fish/guestfish.pod:1014
20645 " a=`guestfish --remote run`\n"
20650 #: ../fish/guestfish.pod:1016
20652 "Since the C<run> command produces no output on stdout, this is not useful "
20653 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20658 #: ../fish/guestfish.pod:1020
20659 msgid "PREPARED DISK IMAGES"
20663 #: ../fish/guestfish.pod:1022
20665 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20666 "preformatted disk images that guestfish can make for you to save typing. "
20667 "This is particularly useful for testing purposes. This option is used "
20668 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20669 "can be mixed with I<-a>)."
20673 #: ../fish/guestfish.pod:1028
20675 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20676 "the second and so on. Existing files in the current directory are "
20681 #: ../fish/guestfish.pod:1032
20683 "The type briefly describes how the disk should be sized, partitioned, how "
20684 "filesystem(s) should be created, and how content should be added. "
20685 "Optionally the type can be followed by extra parameters, separated by C<:> "
20686 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20687 "allocated disk, containing a single partition, with the partition formatted "
20688 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20693 #: ../fish/guestfish.pod:1040
20694 msgid "To list the available types and any extra parameters they take, run:"
20698 #: ../fish/guestfish.pod:1044
20700 "Note that the prepared filesystem is not mounted. You would usually have to "
20701 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20705 #: ../fish/guestfish.pod:1048
20707 "If any I<-N> or I<--new> options are given, the guest is automatically "
20712 #: ../fish/guestfish.pod:1053
20713 msgid "Create a 100MB disk with an ext4-formatted partition:"
20717 #: ../fish/guestfish.pod:1055
20720 " guestfish -N fs:ext4\n"
20725 #: ../fish/guestfish.pod:1057
20726 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20730 #: ../fish/guestfish.pod:1059
20733 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20738 #: ../fish/guestfish.pod:1061
20739 msgid "Create a blank 200MB disk:"
20743 #: ../fish/guestfish.pod:1063
20746 " guestfish -N disk:200M\n"
20751 #: ../fish/guestfish.pod:1065
20752 msgid "PROGRESS BARS"
20756 #: ../fish/guestfish.pod:1067
20758 "Some (not all) long-running commands send progress notification messages as "
20759 "they are running. Guestfish turns these messages into progress bars."
20763 #: ../fish/guestfish.pod:1071
20765 "When a command that supports progress bars takes longer than two seconds to "
20766 "run, and if progress bars are enabled, then you will see one appearing below "
20771 #: ../fish/guestfish.pod:1075
20774 " ><fs> copy-size /large-file /another-file 2048M\n"
20775 " / 10% [#####-----------------------------------------] 00:30\n"
20780 #: ../fish/guestfish.pod:1078
20782 "The spinner on the left hand side moves round once for every progress "
20783 "notification received from the backend. This is a (reasonably) golden "
20784 "assurance that the command is \"doing something\" even if the progress bar "
20785 "is not moving, because the command is able to send the progress "
20786 "notifications. When the bar reaches 100% and the command finishes, the "
20787 "spinner disappears."
20791 #: ../fish/guestfish.pod:1085
20793 "Progress bars are enabled by default when guestfish is used interactively. "
20794 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20795 "and you can disable them completely using I<--no-progress-bars>."
20799 #: ../fish/guestfish.pod:1090
20800 msgid "GUESTFISH COMMANDS"
20804 #: ../fish/guestfish.pod:1092
20806 "The commands in this section are guestfish convenience commands, in other "
20807 "words, they are not part of the L<guestfs(3)> API."
20811 #: ../fish/guestfish.pod:1095
20816 #: ../fish/guestfish.pod:1097
20828 #: ../fish/guestfish.pod:1100
20829 msgid "Without any parameter, this provides general help."
20830 msgstr "Без параметра показує загальну довідкову інформацію."
20833 #: ../fish/guestfish.pod:1102
20834 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20838 #: ../fish/guestfish.pod:1104
20839 msgid "quit | exit"
20843 #: ../fish/guestfish.pod:1106
20844 msgid "This exits guestfish. You can also use C<^D> key."
20848 #: ../fish/guestfish.pod:1108
20849 msgid "@FISH_COMMANDS@"
20853 #: ../fish/guestfish.pod:1110
20858 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20863 #: ../fish/guestfish.pod:1116
20865 "guestfish returns 0 if the commands completed without error, or 1 if there "
20870 #: ../fish/guestfish.pod:1123
20875 #: ../fish/guestfish.pod:1125
20877 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
20882 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20883 msgid "FEBOOTSTRAP_KERNEL"
20887 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20888 msgid "FEBOOTSTRAP_MODULES"
20892 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20894 "These two environment variables allow the kernel that libguestfs uses in the "
20895 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20896 "most recent host kernel is chosen. For more information about kernel "
20897 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
20898 "available in febootstrap E<ge> 3.8."
20902 #: ../fish/guestfish.pod:1138
20903 msgid "GUESTFISH_DISPLAY_IMAGE"
20907 #: ../fish/guestfish.pod:1140
20909 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
20910 "If not set, it uses L<display(1)>."
20914 #: ../fish/guestfish.pod:1143
20915 msgid "GUESTFISH_PID"
20919 #: ../fish/guestfish.pod:1145
20921 "Used with the I<--remote> option to specify the remote guestfish process to "
20922 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20926 #: ../fish/guestfish.pod:1149
20931 #: ../fish/guestfish.pod:1151
20933 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
20934 "not specified, the external L<hexedit(1)> program is used."
20938 #: ../fish/guestfish.pod:1155
20943 #: ../fish/guestfish.pod:1157
20945 "If compiled with GNU readline support, various files in the home directory "
20946 "can be used. See L</FILES>."
20950 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20951 msgid "LIBGUESTFS_APPEND"
20955 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20956 msgid "Pass additional options to the guest kernel."
20960 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20961 msgid "LIBGUESTFS_DEBUG"
20962 msgstr "LIBGUESTFS_DEBUG"
20965 #: ../fish/guestfish.pod:1166
20967 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
20968 "effect as using the B<-v> option."
20972 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20973 msgid "LIBGUESTFS_MEMSIZE"
20974 msgstr "LIBGUESTFS_MEMSIZE"
20977 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20979 "Set the memory allocated to the qemu process, in megabytes. For example:"
20983 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20986 " LIBGUESTFS_MEMSIZE=700\n"
20989 " LIBGUESTFS_MEMSIZE=700\n"
20993 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20994 msgid "LIBGUESTFS_PATH"
20998 #: ../fish/guestfish.pod:1178
21000 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21001 "the discussion of paths in L<guestfs(3)>."
21005 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
21006 msgid "LIBGUESTFS_QEMU"
21010 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21012 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21013 "which was found at compile time by the configure script is used."
21017 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21018 msgid "LIBGUESTFS_TRACE"
21022 #: ../fish/guestfish.pod:1189
21023 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21027 #: ../fish/guestfish.pod:1191
21029 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21032 #: ../fish/guestfish.pod:1193
21034 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21039 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21040 #: ../src/guestfs.pod:3242
21045 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21047 "Location of temporary directory, defaults to C</tmp> except for the cached "
21048 "supermin appliance which defaults to C</var/tmp>."
21052 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21054 "If libguestfs was compiled to use the supermin appliance then the real "
21055 "appliance is cached in this directory, shared between all handles belonging "
21056 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21057 "use in case C</var/tmp> is not large enough."
21061 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21062 #: ../rescue/virt-rescue.pod:273
21067 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21068 #: ../rescue/virt-rescue.pod:277
21069 msgid "$HOME/.libguestfs-tools.rc"
21073 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21074 #: ../rescue/virt-rescue.pod:279
21075 msgid "/etc/libguestfs-tools.conf"
21079 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21080 #: ../rescue/virt-rescue.pod:281
21082 "This configuration file controls the default read-only or read-write mode "
21083 "(I<--ro> or I<--rw>)."
21087 #: ../fish/guestfish.pod:1220
21088 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21089 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21092 #: ../fish/guestfish.pod:1222
21093 msgid "$HOME/.guestfish"
21097 #: ../fish/guestfish.pod:1224
21099 "If compiled with GNU readline support, then the command history is saved in "
21104 #: ../fish/guestfish.pod:1227
21105 msgid "$HOME/.inputrc"
21109 #: ../fish/guestfish.pod:1229
21110 msgid "/etc/inputrc"
21114 #: ../fish/guestfish.pod:1231
21116 "If compiled with GNU readline support, then these files can be used to "
21117 "configure readline. For further information, please see L<readline(3)/"
21118 "INITIALIZATION FILE>."
21122 #: ../fish/guestfish.pod:1235
21123 msgid "To write rules which only apply to guestfish, use:"
21127 #: ../fish/guestfish.pod:1237
21137 #: ../fish/guestfish.pod:1241
21139 "Variables that you can set in inputrc that change the behaviour of guestfish "
21140 "in useful ways include:"
21144 #: ../fish/guestfish.pod:1246
21145 msgid "completion-ignore-case (default: on)"
21149 #: ../fish/guestfish.pod:1248
21151 "By default, guestfish will ignore case when tab-completing paths on the "
21156 #: ../fish/guestfish.pod:1251
21159 " set completion-ignore-case off\n"
21164 #: ../fish/guestfish.pod:1253
21165 msgid "to make guestfish case sensitive."
21169 #: ../fish/guestfish.pod:1257
21174 #: ../fish/guestfish.pod:1259
21175 msgid "test2.img (etc)"
21179 #: ../fish/guestfish.pod:1261
21181 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21182 "will be created in the file C<test1.img> in the current directory. The "
21183 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21184 "the same name will be overwritten."
21188 #: ../fish/guestfish.pod:1270
21190 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21191 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21192 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21193 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21194 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21195 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21196 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21200 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21201 #: ../test-tool/libguestfs-test-tool.pod:112
21202 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21206 #: ../fish/virt-copy-in.pod:5
21208 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21212 #: ../fish/virt-copy-in.pod:9
21215 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21220 #: ../fish/virt-copy-in.pod:11
21223 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21228 #: ../fish/virt-copy-in.pod:15
21230 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21231 "causing disk corruption. The virtual machine must be shut down before you "
21232 "use this command."
21236 #: ../fish/virt-copy-in.pod:21
21238 "C<virt-copy-in> copies files and directories from the local disk into a "
21239 "virtual machine disk image or named libvirt domain."
21243 #: ../fish/virt-copy-in.pod:24
21245 "You can give one of more filenames and directories on the command line. "
21246 "Directories are copied in recursively. The final parameter must be the "
21247 "destination directory in the disk image which must be an absolute path "
21248 "starting with a C</> character."
21252 #: ../fish/virt-copy-in.pod:33
21255 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21260 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21261 msgid "Upload a home directory to a guest:"
21265 #: ../fish/virt-copy-in.pod:37
21268 " virt-copy-in -d MyGuest skel /home\n"
21273 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21274 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21275 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21279 #: ../fish/virt-copy-in.pod:41
21281 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21282 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21283 "are probably better off using guestfish directly."
21287 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21288 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21290 "Since the shell script just passes options straight to guestfish, read "
21291 "L<guestfish(1)> to see the full list of options."
21295 #: ../fish/virt-copy-in.pod:52
21297 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21298 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21302 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21303 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21304 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21308 #: ../fish/virt-copy-out.pod:5
21310 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21315 #: ../fish/virt-copy-out.pod:9
21318 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21323 #: ../fish/virt-copy-out.pod:11
21326 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21331 #: ../fish/virt-copy-out.pod:15
21333 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21334 "image or named libvirt domain."
21338 #: ../fish/virt-copy-out.pod:18
21340 "You can give one of more filenames and directories on the command line. "
21341 "Directories are copied out recursively."
21345 #: ../fish/virt-copy-out.pod:23
21346 msgid "Download the home directories from a virtual machine:"
21350 #: ../fish/virt-copy-out.pod:25
21354 " virt-copy-out -d MyGuest /home homes\n"
21359 #: ../fish/virt-copy-out.pod:30
21361 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21362 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21363 "are probably better off using guestfish directly."
21367 #: ../fish/virt-copy-out.pod:41
21369 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21370 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21374 #: ../fish/virt-tar-in.pod:5
21375 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21379 #: ../fish/virt-tar-in.pod:9
21382 " virt-tar-in -a disk.img data.tar /destination\n"
21387 #: ../fish/virt-tar-in.pod:11
21390 " virt-tar-in -d domain data.tar /destination\n"
21395 #: ../fish/virt-tar-in.pod:13
21398 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21403 #: ../fish/virt-tar-in.pod:17
21405 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21406 "causing disk corruption. The virtual machine must be shut down before you "
21407 "use this command."
21411 #: ../fish/virt-tar-in.pod:23
21413 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21414 "image or named libvirt domain."
21418 #: ../fish/virt-tar-in.pod:26
21420 "The first parameter is the tar file. Use C<-> to read the tar file from "
21421 "standard input. The second parameter is the absolute target directory to "
21426 #: ../fish/virt-tar-in.pod:34
21429 " virt-tar-in -d MyGuest homes.tar /home\n"
21434 #: ../fish/virt-tar-in.pod:38
21436 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21437 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21438 "probably better off using guestfish directly."
21442 #: ../fish/virt-tar-in.pod:49
21444 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21445 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21450 #: ../fish/virt-tar-out.pod:5
21452 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21456 #: ../fish/virt-tar-out.pod:9
21459 " virt-tar-out -a disk.img /dir files.tar\n"
21464 #: ../fish/virt-tar-out.pod:11
21467 " virt-tar-out -d domain /dir files.tar\n"
21472 #: ../fish/virt-tar-out.pod:13
21475 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21480 #: ../fish/virt-tar-out.pod:17
21482 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21486 #: ../fish/virt-tar-out.pod:20
21488 "The first parameter is the absolute path of the virtual machine directory. "
21489 "The second parameter is the tar file to write. Use C<-> to write to "
21494 #: ../fish/virt-tar-out.pod:26
21495 msgid "Download the home directories from a guest:"
21499 #: ../fish/virt-tar-out.pod:28
21502 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21507 #: ../fish/virt-tar-out.pod:32
21509 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21510 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21511 "are probably better off using guestfish directly."
21515 #: ../fish/virt-tar-out.pod:43
21517 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21518 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21522 #: ../fuse/guestmount.pod:5
21524 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21528 #: ../fuse/guestmount.pod:9
21531 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21536 #: ../fuse/guestmount.pod:11
21539 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21544 #: ../fuse/guestmount.pod:13
21547 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21552 #: ../fuse/guestmount.pod:17
21554 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21555 "machines. If you do this, you risk disk corruption in the VM."
21559 #: ../fuse/guestmount.pod:22
21561 "The guestmount program can be used to mount virtual machine filesystems and "
21562 "other disk images on the host. It uses libguestfs for access to the guest "
21563 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21564 "a mountable device."
21568 #: ../fuse/guestmount.pod:27
21570 "Along with other options, you have to give at least one device (I<-a> "
21571 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21572 "option) or use the I<-i> inspection option. How this works is better "
21573 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21578 #: ../fuse/guestmount.pod:33
21580 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21581 "by you, and the filesystem will not be visible to any other users unless you "
21582 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21583 "the filesystem, use the C<fusermount -u> command."
21587 #: ../fuse/guestmount.pod:41
21589 "For a typical Windows guest which has its main filesystem on the first "
21594 #: ../fuse/guestmount.pod:44
21597 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21602 #: ../fuse/guestmount.pod:46
21604 "For a typical Linux guest which has a /boot filesystem on the first "
21605 "partition, and the root filesystem on a logical volume:"
21609 #: ../fuse/guestmount.pod:49
21612 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21617 #: ../fuse/guestmount.pod:51
21618 msgid "To get libguestfs to detect guest mountpoints for you:"
21622 #: ../fuse/guestmount.pod:53
21625 " guestmount -a guest.img -i --ro /mnt\n"
21630 #: ../fuse/guestmount.pod:55
21631 msgid "For a libvirt guest called \"Guest\" you could do:"
21635 #: ../fuse/guestmount.pod:57
21638 " guestmount -d Guest -i --ro /mnt\n"
21643 #: ../fuse/guestmount.pod:59
21645 "If you don't know what filesystems are contained in a guest or disk image, "
21646 "use L<virt-filesystems(1)> first:"
21650 #: ../fuse/guestmount.pod:62
21653 " virt-filesystems MyGuest\n"
21658 #: ../fuse/guestmount.pod:64
21660 "If you want to trace the libguestfs calls but without excessive debugging "
21661 "information, we recommend:"
21665 #: ../fuse/guestmount.pod:67
21668 " guestmount [...] --trace /mnt\n"
21673 #: ../fuse/guestmount.pod:69
21674 msgid "If you want to debug the program, we recommend:"
21678 #: ../fuse/guestmount.pod:71
21681 " guestmount [...] --trace --verbose /mnt\n"
21686 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21687 #: ../resize/virt-resize.pod:544
21692 #: ../fuse/guestmount.pod:75
21693 msgid "Other users cannot see the filesystem by default"
21697 #: ../fuse/guestmount.pod:77
21699 "If you mount a filesystem as one user (eg. root), then other users will not "
21700 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21701 "option when mounting:"
21705 #: ../fuse/guestmount.pod:81
21708 " sudo guestmount [...] -o allow_other /mnt\n"
21713 #: ../fuse/guestmount.pod:83
21714 msgid "Enabling FUSE"
21718 #: ../fuse/guestmount.pod:85
21720 "On some distros, you may need to add yourself to a special group (eg. "
21721 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21722 "Debian and derivatives."
21726 #: ../fuse/guestmount.pod:89
21728 "On other distros, no special group is required. It is not necessary on "
21729 "Fedora or Red Hat Enterprise Linux."
21733 #: ../fuse/guestmount.pod:100
21734 msgid "Add a block device or virtual machine image."
21738 #: ../fuse/guestmount.pod:123
21739 msgid "B<--dir-cache-timeout N>"
21740 msgstr "B<--dir-cache-timeout N>"
21743 #: ../fuse/guestmount.pod:125
21745 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21746 "seconds. The readdir cache [actually, there are several semi-independent "
21747 "caches] is populated after a readdir(2) call with the stat and extended "
21748 "attributes of the files in the directory, in anticipation that they will be "
21749 "requested soon after."
21753 #: ../fuse/guestmount.pod:131
21755 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21756 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21757 "requests, only cache existing ones."
21761 #: ../fuse/guestmount.pod:151
21763 "If you have untrusted raw-format guest disk images, you should use this "
21764 "option to specify the disk format. This avoids a possible security problem "
21765 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
21766 "guestfs_add_drive_opts>."
21770 #: ../fuse/guestmount.pod:156
21771 msgid "B<--fuse-help>"
21772 msgstr "B<--fuse-help>"
21775 #: ../fuse/guestmount.pod:158
21776 msgid "Display help on special FUSE options (see I<-o> below)."
21780 #: ../fuse/guestmount.pod:162
21781 msgid "Display brief help and exit."
21785 #: ../fuse/guestmount.pod:186
21787 "Mount the named partition or logical volume on the given mountpoint B<in the "
21788 "guest> (this has nothing to do with mountpoints in the host)."
21792 #: ../fuse/guestmount.pod:189
21794 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
21795 "something on C</>."
21799 #: ../fuse/guestmount.pod:206
21801 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21802 "unmounted. If you specify this option, then we don't attempt to sync the "
21803 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
21807 #: ../fuse/guestmount.pod:211
21808 msgid "B<-o option>"
21809 msgstr "B<-o параметр>"
21812 #: ../fuse/guestmount.pod:213
21813 msgid "B<--option option>"
21814 msgstr "B<--option параметр>"
21817 #: ../fuse/guestmount.pod:215
21818 msgid "Pass extra options to FUSE."
21822 #: ../fuse/guestmount.pod:217
21824 "To get a list of all the extra options supported by FUSE, use the command "
21825 "below. Note that only the FUSE I<-o> options can be passed, and only some "
21826 "of them are a good idea."
21830 #: ../fuse/guestmount.pod:221
21833 " guestmount --fuse-help\n"
21838 #: ../fuse/guestmount.pod:223
21839 msgid "Some potentially useful FUSE options:"
21843 #: ../fuse/guestmount.pod:227
21844 msgid "B<-o allow_other>"
21848 #: ../fuse/guestmount.pod:229
21849 msgid "Allow other users to see the filesystem."
21853 #: ../fuse/guestmount.pod:231
21854 msgid "B<-o attr_timeout=N>"
21855 msgstr "B<-o attr_timeout=N>"
21858 #: ../fuse/guestmount.pod:233
21859 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21863 #: ../fuse/guestmount.pod:235
21864 msgid "B<-o kernel_cache>"
21868 #: ../fuse/guestmount.pod:237
21870 "Allow the kernel to cache files (reduces the number of reads that have to go "
21871 "through the L<guestfs(3)> API). This is generally a good idea if you can "
21872 "afford the extra memory usage."
21876 #: ../fuse/guestmount.pod:241
21877 msgid "B<-o uid=N> B<-o gid=N>"
21878 msgstr "B<-o uid=N> B<-o gid=N>"
21881 #: ../fuse/guestmount.pod:243
21883 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21884 "the chosen values."
21888 #: ../fuse/guestmount.pod:252
21890 "Add devices and mount everything read-only. Also disallow writes and make "
21891 "the disk appear read-only to FUSE."
21895 #: ../fuse/guestmount.pod:255
21897 "This is highly recommended if you are not going to edit the guest disk. If "
21898 "the guest is running and this option is I<not> supplied, then there is a "
21899 "strong risk of disk corruption in the guest. We try to prevent this from "
21900 "happening, but it is not always possible."
21904 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21905 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21906 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21909 #: ../fuse/guestmount.pod:264
21910 msgid "Enable SELinux support for the guest."
21914 #: ../fuse/guestmount.pod:270
21915 msgid "Enable verbose messages from underlying libguestfs."
21919 #: ../fuse/guestmount.pod:276
21920 msgid "Display the program version and exit."
21924 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21925 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21926 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21927 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21930 #: ../fuse/guestmount.pod:289
21932 msgstr "B<--trace>"
21935 #: ../fuse/guestmount.pod:291
21936 msgid "Trace libguestfs calls and entry into each FUSE function."
21940 #: ../fuse/guestmount.pod:293
21941 msgid "This also stops the daemon from forking into the background."
21945 #: ../fuse/guestmount.pod:319
21947 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21948 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21951 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21952 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21956 #: ../fuse/guestmount.pod:334
21957 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
21961 #: ../inspector/virt-inspector.pod:5
21963 "virt-inspector - Display operating system version and other information "
21964 "about a virtual machine"
21968 #: ../inspector/virt-inspector.pod:9
21971 " virt-inspector [--options] -d domname\n"
21976 #: ../inspector/virt-inspector.pod:11
21979 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21984 #: ../inspector/virt-inspector.pod:15
21987 " virt-inspector domname\n"
21992 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21995 " virt-inspector disk.img [disk.img ...]\n"
22000 #: ../inspector/virt-inspector.pod:21
22002 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22003 "determine the version of the operating system and other information about "
22004 "the virtual machine."
22008 #: ../inspector/virt-inspector.pod:25
22009 msgid "Virt-inspector produces XML output for feeding into other programs."
22013 #: ../inspector/virt-inspector.pod:27
22015 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22016 "the libvirt domain (see: C<virsh list --all>)."
22020 #: ../inspector/virt-inspector.pod:30
22022 "You can also run virt-inspector directly on disk images from a single "
22023 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22024 "has several block devices, in which case you should list several I<-a> "
22025 "options one after another, with the first corresponding to the guest's C</"
22026 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22030 #: ../inspector/virt-inspector.pod:37
22032 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22033 "keys and similar."
22037 #: ../inspector/virt-inspector.pod:40
22039 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22040 "inspect several virtual machines, you have to run virt-inspector several "
22041 "times (for example, from a shell script for-loop)."
22045 #: ../inspector/virt-inspector.pod:45
22047 "Because virt-inspector needs direct access to guest images, it won't "
22048 "normally work over remote libvirt connections."
22052 #: ../inspector/virt-inspector.pod:48
22054 "All of the information available from virt-inspector is also available "
22055 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22056 "The same information can also be fetched using guestfish or via libguestfs "
22057 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22058 "WITH OTHER PROGRAMMING LANGUAGES>)."
22062 #: ../inspector/virt-inspector.pod:81
22064 "Libvirt is only used if you specify a C<domname> on the command line. If "
22065 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22070 #: ../inspector/virt-inspector.pod:94
22072 "When prompting for keys and passphrases, virt-inspector normally turns "
22073 "echoing off so you cannot see what you are typing. If you are not worried "
22074 "about Tempest attacks and there is no one else in the room you can specify "
22075 "this flag to see what you are typing."
22079 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22080 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22081 #: ../tools/virt-win-reg.pl:144
22083 "Specify the format of disk images given on the command line. If this is "
22084 "omitted then the format is autodetected from the content of the disk image."
22088 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22089 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22090 #: ../tools/virt-win-reg.pl:148
22092 "If disk images are requested from libvirt, then this program asks libvirt "
22093 "for this information. In this case, the value of the format parameter is "
22098 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
22099 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
22100 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22101 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22103 "If working with untrusted raw-format guest disk images, you should ensure "
22104 "the format is always specified."
22108 #: ../inspector/virt-inspector.pod:139
22109 msgid "Previous versions of virt-inspector allowed you to write either:"
22113 #: ../inspector/virt-inspector.pod:145
22116 " virt-inspector guestname\n"
22121 #: ../inspector/virt-inspector.pod:153
22126 #: ../inspector/virt-inspector.pod:155
22128 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22129 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22130 "just an overview."
22134 #: ../inspector/virt-inspector.pod:159
22136 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22137 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22138 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22139 "which is vanishingly rare in real world VMs."
22143 #: ../inspector/virt-inspector.pod:164
22144 msgid "E<lt>operatingsystemE<gt>"
22148 #: ../inspector/virt-inspector.pod:166
22150 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22151 "describe the operating system, its architecture, the descriptive \"product "
22152 "name\" string, the type of OS and so on, as in this example:"
22156 #: ../inspector/virt-inspector.pod:170
22159 " <operatingsystems>\n"
22160 " <operatingsystem>\n"
22161 " <root>/dev/sda2</root>\n"
22162 " <name>windows</name>\n"
22163 " <arch>i386</arch>\n"
22164 " <distro>windows</distro>\n"
22165 " <product_name>Windows 7 Enterprise</product_name>\n"
22166 " <product_variant>Client</product_variant>\n"
22167 " <major_version>6</major_version>\n"
22168 " <minor_version>1</minor_version>\n"
22169 " <windows_systemroot>/Windows</windows_systemroot>\n"
22170 " <format>installed</format>\n"
22175 #: ../inspector/virt-inspector.pod:183
22177 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22178 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22179 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22180 "architecture. The other fields are fairly self-explanatory, but because "
22181 "these fields are taken directly from the libguestfs inspection API you can "
22182 "find precise information from L<guestfs(3)/INSPECTION>."
22186 #: ../inspector/virt-inspector.pod:191
22188 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22189 "of view of libguestfs (block devices may have completely different names "
22190 "inside the VM itself)."
22194 #: ../inspector/virt-inspector.pod:195
22195 msgid "E<lt>mountpointsE<gt>"
22199 #: ../inspector/virt-inspector.pod:197
22201 "Un*x-like guests typically have multiple filesystems which are mounted at "
22202 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22203 "element which looks like this:"
22207 #: ../inspector/virt-inspector.pod:201
22210 " <operatingsystems>\n"
22211 " <operatingsystem>\n"
22214 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22215 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22216 " </mountpoints>\n"
22221 #: ../inspector/virt-inspector.pod:209
22223 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22224 "and may have completely different names inside the guest. Only mountable "
22225 "filesystems appear in this list, not things like swap devices."
22229 #: ../inspector/virt-inspector.pod:214
22230 msgid "E<lt>filesystemsE<gt>"
22234 #: ../inspector/virt-inspector.pod:216
22236 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22237 "filesystems belonging to the guest, including swap and empty partitions. "
22238 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22239 "this OS or shared with this OS and other OSes)."
22243 #: ../inspector/virt-inspector.pod:222
22244 msgid "You might see something like this:"
22248 #: ../inspector/virt-inspector.pod:224
22251 " <operatingsystems>\n"
22252 " <operatingsystem>\n"
22255 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22256 " <type>ext4</type>\n"
22257 " <label>Fedora-13-x86_64</label>\n"
22258 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22264 #: ../inspector/virt-inspector.pod:234
22266 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22267 "the label, and the UUID."
22271 #: ../inspector/virt-inspector.pod:237
22272 msgid "E<lt>applicationsE<gt>"
22276 #: ../inspector/virt-inspector.pod:239
22278 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22279 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22284 #: ../inspector/virt-inspector.pod:243
22286 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22287 "Typical values would be C<rpm> and C<deb>."
22291 #: ../inspector/virt-inspector.pod:246
22293 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22294 "Typical values include C<yum>, C<up2date> and C<apt>"
22298 #: ../inspector/virt-inspector.pod:249
22299 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22303 #: ../inspector/virt-inspector.pod:252
22306 " <operatingsystems>\n"
22307 " <operatingsystem>\n"
22309 " <applications>\n"
22311 " <name>coreutils</name>\n"
22312 " <version>8.5</version>\n"
22313 " <release>1</release>\n"
22314 " </application>\n"
22319 #: ../inspector/virt-inspector.pod:262
22321 "The version and release fields may not be available for some types guests. "
22322 "Other fields are possible, see L<guestfs(3)/"
22323 "guestfs_inspect_list_applications>."
22327 #: ../inspector/virt-inspector.pod:266
22328 msgid "E<lt>drive_mappingsE<gt>"
22332 #: ../inspector/virt-inspector.pod:268
22334 "For operating systems like Windows which use drive letters, virt-inspector "
22335 "is able to find out how drive letters map to filesystems."
22339 #: ../inspector/virt-inspector.pod:272
22342 " <operatingsystems>\n"
22343 " <operatingsystem>\n"
22345 " <drive_mappings>\n"
22346 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22347 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22348 " </drive_mappings>\n"
22353 #: ../inspector/virt-inspector.pod:280
22355 "In the example above, drive C maps to the filesystem on the second partition "
22356 "on the first disk, and drive E maps to the filesystem on the first partition "
22357 "on the second disk."
22361 #: ../inspector/virt-inspector.pod:284
22363 "Note that this only covers permanent local filesystem mappings, not things "
22364 "like network shares. Furthermore NTFS volume mount points may not be listed "
22369 #: ../inspector/virt-inspector.pod:288
22370 msgid "E<lt>iconE<gt>"
22374 #: ../inspector/virt-inspector.pod:290
22376 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22377 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22378 "very large and high quality."
22382 #: ../inspector/virt-inspector.pod:294
22385 " <operatingsystems>\n"
22386 " <operatingsystem>\n"
22389 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22390 " [... many lines of base64 data ...]\n"
22396 #: ../inspector/virt-inspector.pod:302
22398 "To display the icon, you have to extract it and convert the base64 data back "
22399 "to a binary file. Use an XPath query or simply an editor to extract the "
22400 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22405 #: ../inspector/virt-inspector.pod:307
22408 " base64 -i -d < icon.data > icon.png\n"
22413 #: ../inspector/virt-inspector.pod:309
22414 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22418 #: ../inspector/virt-inspector.pod:311
22420 "Virt-inspector can detect some operating system installers on install disks, "
22421 "live CDs, bootable USB keys and more."
22425 #: ../inspector/virt-inspector.pod:314
22427 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22428 "fields may be present to indicate a live CD, network installer, or one part "
22429 "of a multipart CD. For example:"
22433 #: ../inspector/virt-inspector.pod:318
22436 " <operatingsystems>\n"
22437 " <operatingsystem>\n"
22438 " <root>/dev/sda</root>\n"
22439 " <name>linux</name>\n"
22440 " <arch>i386</arch>\n"
22441 " <distro>ubuntu</distro>\n"
22442 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22443 " <major_version>10</major_version>\n"
22444 " <minor_version>10</minor_version>\n"
22445 " <format>installer</format>\n"
22451 #: ../inspector/virt-inspector.pod:330
22452 msgid "USING XPATH"
22456 #: ../inspector/virt-inspector.pod:332
22458 "You can use the XPath query language to select parts of the XML. We "
22459 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22463 #: ../inspector/virt-inspector.pod:338
22466 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22468 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22469 " <type>ext4</type>\n"
22475 #: ../inspector/virt-inspector.pod:344
22478 " $ virt-inspector -d Guest | \\\n"
22479 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22485 #: ../inspector/virt-inspector.pod:348
22488 " $ virt-inspector -d Guest | \\\n"
22489 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22490 " [displays the guest icon, if there is one]\n"
22495 #: ../inspector/virt-inspector.pod:359
22496 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22500 #: ../inspector/virt-inspector.pod:361
22502 "Early versions of libguestfs shipped with a different virt-inspector program "
22503 "written in Perl (the current version is written in C). The XML output of "
22504 "the Perl virt-inspector was different and it could also output in other "
22505 "formats like text."
22509 #: ../inspector/virt-inspector.pod:366
22511 "The old virt-inspector is no longer supported or shipped with libguestfs."
22515 #: ../inspector/virt-inspector.pod:369
22517 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22518 "versions of virt-inspector with different names:"
22522 #: ../inspector/virt-inspector.pod:372
22525 " virt-inspector Old Perl version.\n"
22526 " virt-inspector2 New C version.\n"
22531 #: ../inspector/virt-inspector.pod:382
22533 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22534 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22538 #: ../inspector/virt-inspector.pod:399
22539 msgid "Matthew Booth L<mbooth@redhat.com>"
22543 #: ../java/examples/guestfs-java.pod:5
22544 msgid "guestfs-java - How to use libguestfs from Java"
22548 #: ../java/examples/guestfs-java.pod:9
22551 " import com.redhat.et.libguestfs.*;\n"
22556 #: ../java/examples/guestfs-java.pod:11
22559 " GuestFS g = new GuestFS ();\n"
22560 " g.add_drive_opts (\"disk.img\", null);\n"
22566 #: ../java/examples/guestfs-java.pod:17
22568 "This manual page documents how to call libguestfs from the Java programming "
22569 "language. This page just documents the differences from the C API and gives "
22570 "some examples. If you are not familiar with using libguestfs, you also need "
22571 "to read L<guestfs(3)>."
22575 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22576 msgid "CLOSING THE HANDLE"
22580 #: ../java/examples/guestfs-java.pod:24
22582 "The handle is closed when it is reaped by the garbage collector. Because "
22583 "libguestfs handles include a lot of state, it is also possible to close (and "
22584 "hence free) them explicitly by calling the C<close> method."
22588 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22589 #: ../python/examples/guestfs-python.pod:21
22590 #: ../ruby/examples/guestfs-ruby.pod:22
22595 #: ../java/examples/guestfs-java.pod:31
22597 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22598 "exception. This has a single parameter which is the error message (a "
22603 #: ../java/examples/guestfs-java.pod:35
22604 msgid "Calling any method on a closed handle raises the same exception."
22608 #: ../java/examples/guestfs-java.pod:47
22610 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22611 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22612 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22616 #: ../ocaml/examples/guestfs-ocaml.pod:5
22617 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22621 #: ../ocaml/examples/guestfs-ocaml.pod:9
22622 msgid "Module style:"
22626 #: ../ocaml/examples/guestfs-ocaml.pod:11
22629 " let g = Guestfs.create () in\n"
22630 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22631 " Guestfs.launch g;\n"
22636 #: ../ocaml/examples/guestfs-ocaml.pod:15
22637 msgid "Object-oriented style:"
22641 #: ../ocaml/examples/guestfs-ocaml.pod:17
22644 " let g = new Guestfs.guestfs () in\n"
22645 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22651 #: ../ocaml/examples/guestfs-ocaml.pod:21
22654 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22656 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22661 #: ../ocaml/examples/guestfs-ocaml.pod:27
22663 "This manual page documents how to call libguestfs from the OCaml programming "
22664 "language. This page just documents the differences from the C API and gives "
22665 "some examples. If you are not familiar with using libguestfs, you also need "
22666 "to read L<guestfs(3)>."
22670 #: ../ocaml/examples/guestfs-ocaml.pod:32
22671 msgid "PROGRAMMING STYLES"
22675 #: ../ocaml/examples/guestfs-ocaml.pod:34
22677 "There are two different programming styles supported by the OCaml bindings. "
22678 "You can use a module style, with each C function mapped to an OCaml function:"
22682 #: ../ocaml/examples/guestfs-ocaml.pod:38
22685 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22690 #: ../ocaml/examples/guestfs-ocaml.pod:40
22695 #: ../ocaml/examples/guestfs-ocaml.pod:42
22698 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22703 #: ../ocaml/examples/guestfs-ocaml.pod:44
22705 "Alternately you can use an object-oriented style, calling methods on the "
22706 "class C<Guestfs.guestfs>:"
22710 #: ../ocaml/examples/guestfs-ocaml.pod:47
22713 " method set_verbose : bool -> unit\n"
22718 #: ../ocaml/examples/guestfs-ocaml.pod:49
22720 "The object-oriented style is usually briefer, and the minor performance "
22721 "penalty isn't noticable in the general overhead of performing libguestfs "
22726 #: ../ocaml/examples/guestfs-ocaml.pod:55
22728 "The handle is closed when it is reaped by the garbage collector. Because "
22729 "libguestfs handles include a lot of state, it is also possible to close (and "
22730 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22735 #: ../ocaml/examples/guestfs-ocaml.pod:62
22737 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22738 "exception. This has a single parameter which is the error message (a "
22743 #: ../ocaml/examples/guestfs-ocaml.pod:66
22745 "Calling any function/method on a closed handle raises C<Guestfs."
22746 "Handle_closed>. The single parameter is the name of the function that you "
22751 #: ../ocaml/examples/guestfs-ocaml.pod:80
22753 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22754 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22755 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22759 #: ../perl/examples/guestfs-perl.pod:5
22760 msgid "guestfs-perl - How to use libguestfs from Perl"
22764 #: ../perl/examples/guestfs-perl.pod:9
22767 " use Sys::Guestfs;\n"
22772 #: ../perl/examples/guestfs-perl.pod:11
22775 " my $h = Sys::Guestfs->new ();\n"
22776 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22777 " $h->launch ();\n"
22778 " $h->mount_options ('', '/dev/sda1', '/');\n"
22779 " $h->touch ('/hello');\n"
22785 #: ../perl/examples/guestfs-perl.pod:20
22787 "This manual page documents how to call libguestfs from the Perl programming "
22788 "language. This page just documents the differences from the C API and gives "
22789 "some examples. If you are not familiar with using libguestfs, you also need "
22790 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
22794 #: ../perl/examples/guestfs-perl.pod:26
22799 #: ../perl/examples/guestfs-perl.pod:28
22801 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22806 #: ../perl/examples/guestfs-perl.pod:41
22808 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22809 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22810 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22814 #: ../python/examples/guestfs-python.pod:5
22815 msgid "guestfs-python - How to use libguestfs from Python"
22819 #: ../python/examples/guestfs-python.pod:9
22822 " import guestfs\n"
22823 " g = guestfs.GuestFS ()\n"
22824 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22830 #: ../python/examples/guestfs-python.pod:16
22832 "This manual page documents how to call libguestfs from the Python "
22833 "programming language. This page just documents the differences from the C "
22834 "API and gives some examples. If you are not familiar with using libguestfs, "
22835 "you also need to read L<guestfs(3)>."
22839 #: ../python/examples/guestfs-python.pod:23
22841 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22842 "single string argument which is the error message."
22846 #: ../python/examples/guestfs-python.pod:26
22847 msgid "MORE DOCUMENTATION"
22851 #: ../python/examples/guestfs-python.pod:28
22856 #: ../python/examples/guestfs-python.pod:30
22860 " >>> import guestfs\n"
22861 " >>> help (guestfs)\n"
22866 #: ../python/examples/guestfs-python.pod:44
22868 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22869 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22870 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22874 #: ../rescue/virt-rescue.pod:5
22875 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22879 #: ../rescue/virt-rescue.pod:9
22882 " virt-rescue [--options] -d domname\n"
22887 #: ../rescue/virt-rescue.pod:11
22890 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22895 #: ../rescue/virt-rescue.pod:15
22898 " virt-rescue [--options] domname\n"
22903 #: ../rescue/virt-rescue.pod:17
22906 " virt-rescue [--options] disk.img [disk.img ...]\n"
22911 #: ../rescue/virt-rescue.pod:21
22913 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
22914 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
22915 "you from doing this, but doesn't catch all cases."
22919 #: ../rescue/virt-rescue.pod:25
22921 "However if you use the I<--ro> (read only) option, then you can attach a "
22922 "shell to a live virtual machine. The results might be strange or "
22923 "inconsistent at times but you won't get disk corruption."
22927 #: ../rescue/virt-rescue.pod:31
22929 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22930 "need for a CD. virt-rescue gives you a rescue shell and some simple "
22931 "recovery tools which you can use to examine or rescue a virtual machine or "
22936 #: ../rescue/virt-rescue.pod:36
22938 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22939 "on disk image(s):"
22943 #: ../rescue/virt-rescue.pod:39
22946 " virt-rescue -d GuestName\n"
22951 #: ../rescue/virt-rescue.pod:41
22954 " virt-rescue --ro -a /path/to/disk.img\n"
22959 #: ../rescue/virt-rescue.pod:43
22962 " virt-rescue -a /dev/sdc\n"
22967 #: ../rescue/virt-rescue.pod:45
22968 msgid "For live VMs you I<must> use the --ro option."
22972 #: ../rescue/virt-rescue.pod:47
22974 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22975 "in an interactive bash shell where you can use many ordinary Linux "
22976 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22977 "appliance. You must mount the virtual machine's filesystems by hand. There "
22978 "is an empty directory called C</sysroot> where you can mount filesystems."
22982 #: ../rescue/virt-rescue.pod:54
22984 "In the example below, we list logical volumes, then choose one to mount "
22985 "under C</sysroot>:"
22989 #: ../rescue/virt-rescue.pod:57
22993 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
22994 " lv_root vg_f11x64 -wi-a- 8.83G\n"
22995 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22996 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22997 " ><rescue> ls /sysroot\n"
23002 #: ../rescue/virt-rescue.pod:64
23004 "If you don't know what filesystems are available on the virtual machine then "
23005 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23009 #: ../rescue/virt-rescue.pod:70
23011 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23012 "virtual machine. For example you can use it on a blank file if you want to "
23013 "partition that file (although we would recommend using L<guestfish(1)> "
23014 "instead as it is more suitable for this purpose). You can even use virt-"
23015 "rescue on things like SD cards."
23019 #: ../rescue/virt-rescue.pod:76
23021 "Virt-rescue does not require root. You only need to run it as root if you "
23022 "need root to open the disk image."
23026 #: ../rescue/virt-rescue.pod:79
23028 "This tool is just designed for quick interactive hacking on a virtual "
23029 "machine. For more structured access to a virtual machine disk image, you "
23030 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23031 "make scripted changes to guests, use L<guestfish(1)>."
23035 #: ../rescue/virt-rescue.pod:103
23036 msgid "B<--append kernelopts>"
23037 msgstr "B<--append параметри_ядра>"
23040 #: ../rescue/virt-rescue.pod:105
23041 msgid "Pass additional options to the rescue kernel."
23045 #: ../rescue/virt-rescue.pod:135
23048 " virt-rescue --format=raw -a disk.img\n"
23053 #: ../rescue/virt-rescue.pod:139
23056 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23061 #: ../rescue/virt-rescue.pod:148
23066 #: ../rescue/virt-rescue.pod:150
23067 msgid "B<--memsize MB>"
23068 msgstr "B<--memsize МБ>"
23071 #: ../rescue/virt-rescue.pod:152
23073 "Change the amount of memory allocated to the rescue system. The default is "
23074 "set by libguestfs and is small but adequate for running system tools. The "
23075 "occasional program might need more memory. The parameter is specified in "
23080 #: ../rescue/virt-rescue.pod:157
23081 msgid "B<--network>"
23082 msgstr "B<--network>"
23085 #: ../rescue/virt-rescue.pod:159
23086 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23090 #: ../rescue/virt-rescue.pod:165
23091 msgid "Open the image read-only."
23095 #: ../rescue/virt-rescue.pod:175
23097 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23098 "SELINUX> before using this option."
23102 #: ../rescue/virt-rescue.pod:178
23107 #: ../rescue/virt-rescue.pod:180
23108 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23112 #: ../rescue/virt-rescue.pod:198
23114 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23115 "are done read-write."
23119 #: ../rescue/virt-rescue.pod:211
23120 msgid "Previous versions of virt-rescue allowed you to write either:"
23124 #: ../rescue/virt-rescue.pod:213
23127 " virt-rescue disk.img [disk.img ...]\n"
23132 #: ../rescue/virt-rescue.pod:217
23135 " virt-rescue guestname\n"
23140 #: ../rescue/virt-rescue.pod:225
23145 #: ../rescue/virt-rescue.pod:227
23147 "Adding the I<--network> option enables QEMU user networking in the rescue "
23148 "appliance. There are some differences between user networking and ordinary "
23153 #: ../rescue/virt-rescue.pod:233
23154 msgid "ping does not work"
23158 #: ../rescue/virt-rescue.pod:235
23160 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23161 "send the ping packets, and because virt-rescue must be able to run as non-"
23162 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23163 "The ping command will appear to resolve addresses but will not be able to "
23164 "send or receive any packets. This does not mean that the network is not "
23169 #: ../rescue/virt-rescue.pod:242
23170 msgid "cannot receive connections"
23174 #: ../rescue/virt-rescue.pod:244
23175 msgid "QEMU user networking cannot receive incoming connections."
23179 #: ../rescue/virt-rescue.pod:246
23180 msgid "making TCP connections"
23184 #: ../rescue/virt-rescue.pod:248
23186 "The virt-rescue appliance needs to be small and so does not include many "
23187 "network tools. In particular there is no L<telnet(1)> command. You can "
23188 "make TCP connections from the shell using the magical C</dev/tcp/"
23189 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23193 #: ../rescue/virt-rescue.pod:253
23196 " exec 3<>/dev/tcp/redhat.com/80\n"
23197 " echo \"GET /\" >&3\n"
23203 #: ../rescue/virt-rescue.pod:257
23204 msgid "See L<bash(1)> for more details."
23208 #: ../rescue/virt-rescue.pod:263
23210 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23211 "ENVIRONMENT VARIABLES> for the complete list."
23215 #: ../rescue/virt-rescue.pod:290
23217 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23218 "libguestfs.org/>."
23222 #: ../resize/virt-resize.pod:5
23223 msgid "virt-resize - Resize a virtual machine disk"
23227 #: ../resize/virt-resize.pod:9
23230 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23231 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23232 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23237 #: ../resize/virt-resize.pod:15
23239 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23240 "larger or smaller overall, and resizing or deleting any partitions contained "
23245 #: ../resize/virt-resize.pod:19
23247 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23248 "not> be used on live virtual machines - for consistent results, shut the "
23249 "virtual machine down before resizing it."
23253 #: ../resize/virt-resize.pod:23
23255 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23256 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23260 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
23261 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23262 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23267 #: ../resize/virt-resize.pod:33
23269 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23270 "fill the extra 5GB of space."
23274 #: ../resize/virt-resize.pod:36
23277 " virt-filesystems --long -h --all -a olddisk\n"
23282 #: ../resize/virt-resize.pod:38
23285 " truncate -r olddisk newdisk\n"
23286 " truncate -s +5G newdisk\n"
23291 #: ../resize/virt-resize.pod:41
23294 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23295 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23300 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
23301 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23302 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23307 #: ../resize/virt-resize.pod:46
23309 "As above, but make the /boot partition 200MB bigger, while giving the "
23310 "remaining space to /dev/sda2:"
23314 #: ../resize/virt-resize.pod:49
23317 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23318 " olddisk newdisk\n"
23323 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
23324 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23325 #: ../src/guestfs.pod:1436
23330 #: ../resize/virt-resize.pod:54
23332 "As in the first example, but expand a logical volume as the final step. "
23333 "This is what you would typically use for Linux guests that use LVM:"
23337 #: ../resize/virt-resize.pod:58
23340 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23341 " olddisk newdisk\n"
23346 #: ../resize/virt-resize.pod:61
23351 #: ../resize/virt-resize.pod:63
23353 "As in the first example, but the output format will be qcow2 instead of a "
23358 #: ../resize/virt-resize.pod:66
23361 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23362 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23367 #: ../resize/virt-resize.pod:71
23368 msgid "DETAILED USAGE"
23369 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23372 #: ../resize/virt-resize.pod:73
23373 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23374 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23377 #: ../resize/virt-resize.pod:77
23378 msgid "1. Shut down the virtual machine"
23382 #: ../resize/virt-resize.pod:79
23383 msgid "2. Locate input disk image"
23387 #: ../resize/virt-resize.pod:81
23389 "Locate the input disk image (ie. the file or device on the host containing "
23390 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23391 "dumpxml> like this to find the disk image name:"
23395 #: ../resize/virt-resize.pod:85
23398 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23399 " Found 1 nodes:\n"
23401 " <source dev=\"/dev/vg/lv_guest\" />\n"
23406 #: ../resize/virt-resize.pod:90
23407 msgid "3. Look at current sizing"
23411 #: ../resize/virt-resize.pod:92
23412 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23416 #: ../resize/virt-resize.pod:95
23419 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23420 " Name Type Size Parent\n"
23421 " /dev/sda1 partition 101M /dev/sda\n"
23422 " /dev/sda2 partition 7.9G /dev/sda\n"
23423 " /dev/sda device 8.0G -\n"
23428 #: ../resize/virt-resize.pod:101
23430 "(This example is a virtual machine with an 8 GB disk which we would like to "
23431 "expand up to 10 GB)."
23435 #: ../resize/virt-resize.pod:104
23436 msgid "4. Create output disk"
23440 #: ../resize/virt-resize.pod:106
23442 "Virt-resize cannot do in-place disk modifications. You have to have space "
23443 "to store the resized output disk."
23447 #: ../resize/virt-resize.pod:109
23449 "To store the resized disk image in a file, create a file of a suitable size:"
23453 #: ../resize/virt-resize.pod:112
23456 " # rm -f outdisk\n"
23457 " # truncate -s 10G outdisk\n"
23462 #: ../resize/virt-resize.pod:115
23463 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23467 #: ../resize/virt-resize.pod:117
23470 " # lvcreate -L 10G -n lv_name vg_name\n"
23475 #: ../resize/virt-resize.pod:119
23476 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23480 #: ../resize/virt-resize.pod:121
23483 " # virsh pool-list\n"
23484 " # virsh vol-create-as poolname newvol 10G\n"
23489 #: ../resize/virt-resize.pod:124
23491 msgstr "5. Зміна розміру"
23494 #: ../resize/virt-resize.pod:126
23496 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23497 "file) and the output disk. The output disk is the one created in the "
23502 #: ../resize/virt-resize.pod:130
23505 " # virt-resize indisk outdisk\n"
23510 #: ../resize/virt-resize.pod:132
23512 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23513 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23514 "larger, then an extra, empty partition is created at the end of the disk "
23515 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23520 #: ../resize/virt-resize.pod:138
23522 "More realistically you'd want to expand existing partitions in the disk "
23523 "image by passing extra options (for the full list see the L</OPTIONS> "
23528 #: ../resize/virt-resize.pod:142
23530 "L</--expand> is the most useful option. It expands the named partition "
23531 "within the disk to fill any extra space:"
23535 #: ../resize/virt-resize.pod:145
23538 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23543 #: ../resize/virt-resize.pod:147
23545 "(In this case, an extra partition is I<not> created at the end of the disk, "
23546 "because there will be no unused space)."
23550 #: ../resize/virt-resize.pod:150
23552 "L</--resize> is the other commonly used option. The following would "
23553 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23554 "rest of the available space:"
23558 #: ../resize/virt-resize.pod:154
23561 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23562 " indisk outdisk\n"
23567 #: ../resize/virt-resize.pod:157
23569 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23570 "if virt-resize knows how, it will resize the contents, the equivalent of "
23571 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23572 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23573 "filesystems, so you would have to online resize them after booting the guest."
23577 #: ../resize/virt-resize.pod:164
23578 msgid "Other options are covered below."
23582 #: ../resize/virt-resize.pod:166
23584 msgstr "6. Перевірка"
23587 #: ../resize/virt-resize.pod:168
23588 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23592 #: ../resize/virt-resize.pod:170
23593 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23597 #: ../resize/virt-resize.pod:172
23600 " # virsh edit guestname\n"
23605 #: ../resize/virt-resize.pod:174
23607 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23608 "html#elementsDisks>"
23612 #: ../resize/virt-resize.pod:177
23613 msgid "Then start up the domain with the new, resized disk:"
23617 #: ../resize/virt-resize.pod:179
23620 " # virsh start guestname\n"
23625 #: ../resize/virt-resize.pod:181
23627 "and check that it still works. See also the L</NOTES> section below for "
23628 "additional information."
23632 #: ../resize/virt-resize.pod:184
23633 msgid "7. Resize LVs etc inside the guest"
23637 #: ../resize/virt-resize.pod:186
23638 msgid "(This can also be done offline using L<guestfish(1)>)"
23642 #: ../resize/virt-resize.pod:188
23644 "Once the guest has booted you should see the new space available, at least "
23645 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23646 "may need to resize LVs inside PVs, and also resize filesystem types that "
23647 "virt-resize does not know how to expand."
23651 #: ../resize/virt-resize.pod:195
23652 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23656 #: ../resize/virt-resize.pod:197
23658 "Shrinking is somewhat more complex than expanding, and only an overview is "
23663 #: ../resize/virt-resize.pod:200
23665 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23666 "filesystems). The user has to shrink content before passing the disk image "
23667 "to virt-resize, and virt-resize will check that the content has been shrunk "
23672 #: ../resize/virt-resize.pod:205
23673 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23677 #: ../resize/virt-resize.pod:207
23679 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23680 "steps 3 and 4 above to allocate a new disk image."
23684 #: ../resize/virt-resize.pod:210
23686 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23690 #: ../resize/virt-resize.pod:213
23691 msgid "IGNORING OR DELETING PARTITIONS"
23695 #: ../resize/virt-resize.pod:215
23697 "virt-resize also gives a convenient way to ignore or delete partitions when "
23698 "copying from the input disk to the output disk. Ignoring a partition speeds "
23699 "up the copy where you don't care about the existing contents of a "
23700 "partition. Deleting a partition removes it completely, but note that it "
23701 "also renumbers any partitions after the one which is deleted, which can "
23702 "leave some guests unbootable."
23706 #: ../resize/virt-resize.pod:222
23707 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23711 #: ../resize/virt-resize.pod:224
23713 "If the input disk is in qcow2 format, then you may prefer that the output is "
23714 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23715 "the fly. The output format is simply determined by the format of the empty "
23716 "output container that you provide. Thus to create qcow2 output, use:"
23720 #: ../resize/virt-resize.pod:230
23723 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23728 #: ../resize/virt-resize.pod:232
23729 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23733 #: ../resize/virt-resize.pod:234
23734 msgid "Similarly, to get non-sparse raw output use:"
23738 #: ../resize/virt-resize.pod:236
23741 " fallocate -l size outdisk\n"
23746 #: ../resize/virt-resize.pod:238
23748 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23749 "dev/zero of=outdisk bs=1M count=..>)"
23753 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23754 msgid "Display help."
23758 #: ../resize/virt-resize.pod:249
23763 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
23764 #: ../tools/virt-win-reg.pl:120
23766 msgstr "B<--debug>"
23769 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
23770 msgid "Enable debugging messages."
23774 #: ../resize/virt-resize.pod:255
23775 msgid "B<--delete part>"
23776 msgstr "B<--delete розділ>"
23779 #: ../resize/virt-resize.pod:257
23781 "Delete the named partition. It would be more accurate to describe this as "
23782 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23783 "the original disk image is left intact."
23787 #: ../resize/virt-resize.pod:261
23789 "Note that when you delete a partition, then anything contained in the "
23790 "partition is also deleted. Furthermore, this causes any partitions that "
23791 "come after to be I<renumbered>, which can easily make your guest unbootable."
23795 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
23796 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
23797 msgid "You can give this option multiple times."
23801 #: ../resize/virt-resize.pod:268
23802 msgid "B<--expand part>"
23803 msgstr "B<--expand розділ>"
23806 #: ../resize/virt-resize.pod:270
23808 "Expand the named partition so it uses up all extra space (space left over "
23809 "after any other resize changes that you request have been done)."
23813 #: ../resize/virt-resize.pod:273
23815 "If virt-resize knows how, it will expand the direct content of the "
23816 "partition. For example, if the partition is an LVM PV, it will expand the "
23817 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
23818 "content it doesn't know about alone."
23822 #: ../resize/virt-resize.pod:278
23823 msgid "Currently virt-resize can resize:"
23827 #: ../resize/virt-resize.pod:284
23828 msgid "ext2, ext3 and ext4 filesystems."
23832 #: ../resize/virt-resize.pod:288
23833 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23837 #: ../resize/virt-resize.pod:290
23839 "The filesystem must have been shut down consistently last time it was used. "
23840 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23841 "consistency check, so at the first boot after resizing Windows will check "
23846 #: ../resize/virt-resize.pod:297
23848 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
23849 "inside the PV, but see the I<--LV-expand> option. The user could also "
23850 "resize LVs as desired after boot."
23854 #: ../resize/virt-resize.pod:303
23855 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23859 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
23860 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23864 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
23865 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23866 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23867 msgid "B<--format> raw"
23868 msgstr "B<--format> raw"
23871 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
23873 "Specify the format of the input disk image. If this flag is not given then "
23874 "it is auto-detected from the image itself."
23878 #: ../resize/virt-resize.pod:317
23880 "Note that this option I<does not> affect the output format. See L</QCOW2 "
23881 "AND NON-SPARSE RAW FORMATS>."
23885 #: ../resize/virt-resize.pod:320
23886 msgid "B<--ignore part>"
23887 msgstr "B<--ignore розділ>"
23890 #: ../resize/virt-resize.pod:322
23892 "Ignore the named partition. Effectively this means the partition is "
23893 "allocated on the destination disk, but the content is not copied across from "
23894 "the source disk. The content of the partition will be blank (all zero "
23899 #: ../resize/virt-resize.pod:329
23900 msgid "B<--LV-expand logvol>"
23901 msgstr "B<--LV-expand логічний_том>"
23904 #: ../resize/virt-resize.pod:331
23906 "This takes the logical volume and, as a final step, expands it to fill all "
23907 "the space available in its volume group. A typical usage, assuming a Linux "
23908 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23909 "lv_root> would be:"
23913 #: ../resize/virt-resize.pod:336
23916 " virt-resize indisk outdisk \\\n"
23917 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23922 #: ../resize/virt-resize.pod:339
23924 "This would first expand the partition (and PV), and then expand the root "
23925 "device to fill the extra space in the PV."
23929 #: ../resize/virt-resize.pod:342
23931 "The contents of the LV are also resized if virt-resize knows how to do "
23932 "that. You can stop virt-resize from trying to expand the content by using "
23933 "the option I<--no-expand-content>."
23937 #: ../resize/virt-resize.pod:346
23938 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23942 #: ../resize/virt-resize.pod:348
23944 "You can give this option multiple times, I<but> it doesn't make sense to do "
23945 "this unless the logical volumes you specify are all in different volume "
23950 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
23951 msgid "B<--machine-readable>"
23955 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
23957 "This option is used to make the output more machine friendly when being "
23958 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
23962 #: ../resize/virt-resize.pod:360
23963 msgid "B<--dryrun>"
23964 msgstr "B<--dryrun>"
23967 #: ../resize/virt-resize.pod:362
23968 msgid "Print a summary of what would be done, but don't do anything."
23972 #: ../resize/virt-resize.pod:364
23973 msgid "B<--no-copy-boot-loader>"
23974 msgstr "B<--no-copy-boot-loader>"
23977 #: ../resize/virt-resize.pod:366
23979 "By default, virt-resize copies over some sectors at the start of the disk "
23980 "(up to the beginning of the first partition). Commonly these sectors "
23981 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23982 "in order for the guest to boot correctly."
23986 #: ../resize/virt-resize.pod:371
23988 "If you specify this flag, then this initial copy is not done. You may need "
23989 "to reinstall the boot loader in this case."
23993 #: ../resize/virt-resize.pod:374
23994 msgid "B<--no-extra-partition>"
23995 msgstr "B<--no-extra-partition>"
23998 #: ../resize/virt-resize.pod:376
24000 "By default, virt-resize creates an extra partition if there is any extra, "
24001 "unused space after all resizing has happened. Use this option to prevent "
24002 "the extra partition from being created. If you do this then the extra space "
24003 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24004 "tool in the guest."
24008 #: ../resize/virt-resize.pod:382
24010 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24015 #: ../resize/virt-resize.pod:385
24016 msgid "B<--no-expand-content>"
24017 msgstr "B<--no-expand-content>"
24020 #: ../resize/virt-resize.pod:387
24022 "By default, virt-resize will try to expand the direct contents of "
24023 "partitions, if it knows how (see I<--expand> option above)."
24027 #: ../resize/virt-resize.pod:390
24029 "If you give the I<--no-expand-content> option then virt-resize will not "
24034 #: ../resize/virt-resize.pod:393
24035 msgid "B<--ntfsresize-force>"
24036 msgstr "B<--ntfsresize-force>"
24039 #: ../resize/virt-resize.pod:395
24041 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24042 "the NTFS disk is marked as needing a consistency check. You have to use "
24043 "this option if you want to resize a Windows guest multiple times without "
24044 "booting into Windows between each resize."
24048 #: ../resize/virt-resize.pod:401
24049 msgid "B<--output-format> raw"
24050 msgstr "B<--output-format> raw"
24053 #: ../resize/virt-resize.pod:403
24055 "Specify the format of the output disk image. If this flag is not given then "
24056 "it is auto-detected from the image itself."
24060 #: ../resize/virt-resize.pod:409
24062 "Note that this option I<does not create> the output format. This option "
24063 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24064 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24065 "SPARSE RAW FORMATS>."
24069 #: ../resize/virt-resize.pod:418
24070 msgid "Don't print the summary."
24074 #: ../resize/virt-resize.pod:420
24075 msgid "B<--resize part=size>"
24076 msgstr "B<--resize розділ=розмір>"
24079 #: ../resize/virt-resize.pod:422
24081 "Resize the named partition (expanding or shrinking it) so that it has the "
24086 #: ../resize/virt-resize.pod:425
24088 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24089 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24090 "size; or as a relative number or percentage. For example:"
24094 #: ../resize/virt-resize.pod:431
24097 " --resize /dev/sda2=10G\n"
24102 #: ../resize/virt-resize.pod:433
24105 " --resize /dev/sda4=90%\n"
24110 #: ../resize/virt-resize.pod:435
24113 " --resize /dev/sda2=+1G\n"
24118 #: ../resize/virt-resize.pod:437
24121 " --resize /dev/sda2=-200M\n"
24126 #: ../resize/virt-resize.pod:439
24129 " --resize /dev/sda1=+128K\n"
24134 #: ../resize/virt-resize.pod:441
24137 " --resize /dev/sda1=+10%\n"
24142 #: ../resize/virt-resize.pod:443
24145 " --resize /dev/sda1=-10%\n"
24150 #: ../resize/virt-resize.pod:445
24152 "You can increase the size of any partition. Virt-resize will expand the "
24153 "direct content of the partition if it knows how (see I<--expand> below)."
24157 #: ../resize/virt-resize.pod:449
24159 "You can only I<decrease> the size of partitions that contain filesystems or "
24160 "PVs which have already been shrunk. Virt-resize will check this has been "
24161 "done before proceeding, or else will print an error (see also I<--resize-"
24166 #: ../resize/virt-resize.pod:456
24167 msgid "B<--resize-force part=size>"
24168 msgstr "B<--resize-force розділ=розмір>"
24171 #: ../resize/virt-resize.pod:458
24173 "This is the same as I<--resize> except that it will let you decrease the "
24174 "size of any partition. Generally this means you will lose any data which "
24175 "was at the end of the partition you shrink, but you may not care about that "
24176 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24177 "as a swap partition)."
24181 #: ../resize/virt-resize.pod:464
24182 msgid "See also the I<--ignore> option."
24186 #: ../resize/virt-resize.pod:466
24187 msgid "B<--shrink part>"
24188 msgstr "B<--shrink розділ>"
24191 #: ../resize/virt-resize.pod:468
24193 "Shrink the named partition until the overall disk image fits in the "
24194 "destination. The named partition B<must> contain a filesystem or PV which "
24195 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24196 "online tools). Virt-resize will check this and give an error if it has not "
24201 #: ../resize/virt-resize.pod:474
24203 "The amount by which the overall disk must be shrunk (after carrying out all "
24204 "other operations requested by the user) is called the \"deficit\". For "
24205 "example, a straight copy (assume no other operations) from a 5GB disk image "
24206 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24207 "would give an error unless the user specified a partition to shrink and that "
24208 "partition had more than a gigabyte of free space."
24212 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
24213 msgid "MACHINE READABLE OUTPUT"
24217 #: ../resize/virt-resize.pod:494
24219 "The I<--machine-readable> option can be used to make the output more machine "
24220 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24225 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
24226 msgid "There are two ways to use this option."
24230 #: ../resize/virt-resize.pod:500
24232 "Firstly use the option on its own to query the capabilities of the virt-"
24233 "resize binary. Typical output looks like this:"
24237 #: ../resize/virt-resize.pod:503
24240 " $ virt-resize --machine-readable\n"
24242 " ntfsresize-force\n"
24250 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
24252 "A list of features is printed, one per line, and the program exits with "
24257 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
24259 "Secondly use the option in conjunction with other options to make the "
24260 "regular program output more machine friendly."
24264 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
24265 msgid "At the moment this means:"
24269 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
24271 "Progress bar messages can be parsed from stdout by looking for this regular "
24276 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
24279 " ^[0-9]+/[0-9]+$\n"
24284 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
24286 "The calling program should treat messages sent to stdout (except for "
24287 "progress bar messages) as status messages. They can be logged and/or "
24288 "displayed to the user."
24292 #: ../resize/virt-resize.pod:535
24294 "The calling program should treat messages sent to stderr as error messages. "
24295 "In addition, virt-resize exits with a non-zero status code if there was a "
24300 #: ../resize/virt-resize.pod:541
24302 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24303 "readable> option and will return an error."
24307 #: ../resize/virt-resize.pod:546
24308 msgid "\"Partition 1 does not end on cylinder boundary.\""
24312 #: ../resize/virt-resize.pod:548
24314 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
24315 "means the partitions will not be aligned to the ancient CHS geometry. "
24316 "However CHS geometry is meaningless for disks manufactured since the early "
24317 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
24318 "cylinders is not required by any modern operating system."
24322 #: ../resize/virt-resize.pod:555
24323 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24327 #: ../resize/virt-resize.pod:557
24329 "In Windows Vista and later versions, Microsoft switched to using a separate "
24330 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24331 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
24332 "the boot partition. Doing so seems to break the guest completely. However "
24333 "expanding the second partition (ie. C: drive) should work."
24337 #: ../resize/virt-resize.pod:564
24339 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24340 "NTFS partitions have been expanded. This is just a safety check and (unless "
24341 "it find errors) is nothing to worry about."
24345 #: ../resize/virt-resize.pod:568
24346 msgid "GUEST BOOT STUCK AT \"GRUB\""
24350 #: ../resize/virt-resize.pod:570
24352 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24353 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
24354 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
24355 "although we think is to do with partition alignment."
24359 #: ../resize/virt-resize.pod:575
24362 " guestfish -i -a newdisk\n"
24363 " ><fs> cat /boot/grub/device.map\n"
24364 " # check the contents of this file are sensible or\n"
24365 " # edit the file if necessary\n"
24366 " ><fs> grub-install / /dev/vda\n"
24372 #: ../resize/virt-resize.pod:582
24374 "For more flexible guest reconfiguration, including if you need to specify "
24375 "other parameters to grub-install, use L<virt-rescue(1)>."
24379 #: ../resize/virt-resize.pod:585
24380 msgid "ALTERNATIVE TOOLS"
24384 #: ../resize/virt-resize.pod:587
24386 "There are several proprietary tools for resizing partitions. We won't "
24387 "mention any here."
24391 #: ../resize/virt-resize.pod:590
24393 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24394 "operations on disk images. They can resize and move partitions, but I don't "
24395 "think they can do anything with the contents, and they certainly don't "
24400 #: ../resize/virt-resize.pod:595
24402 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24403 "but at a much lower level. You will probably end up hand-calculating sector "
24404 "offsets, which is something that virt-resize was designed to avoid. If you "
24405 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24410 #: ../resize/virt-resize.pod:615
24412 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24413 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24414 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24415 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24416 "L<http://libguestfs.org/>."
24420 #: ../ruby/examples/guestfs-ruby.pod:5
24421 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24425 #: ../ruby/examples/guestfs-ruby.pod:9
24428 " require 'guestfs'\n"
24429 " g = Guestfs::Guestfs.new()\n"
24430 " g.add_drive_opts(\"disk.img\",\n"
24431 " :readonly => 1, :format => \"raw\")\n"
24437 #: ../ruby/examples/guestfs-ruby.pod:17
24439 "This manual page documents how to call libguestfs from the Ruby programming "
24440 "language. This page just documents the differences from the C API and gives "
24441 "some examples. If you are not familiar with using libguestfs, you also need "
24442 "to read L<guestfs(3)>."
24446 #: ../ruby/examples/guestfs-ruby.pod:24
24448 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24449 "This has a single parameter which is the error message (a string)."
24453 #: ../ruby/examples/guestfs-ruby.pod:38
24455 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24456 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24457 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24461 #: ../sparsify/virt-sparsify.pod:5
24462 msgid "virt-sparsify - Make a virtual machine disk sparse"
24466 #: ../sparsify/virt-sparsify.pod:9
24469 " virt-sparsify [--options] indisk outdisk\n"
24474 #: ../sparsify/virt-sparsify.pod:13
24476 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24477 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24478 "the disk image can be converted back to free space on the host."
24482 #: ../sparsify/virt-sparsify.pod:18
24484 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24485 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24489 #: ../sparsify/virt-sparsify.pod:21
24491 "Virt-sparsify can also convert between some disk formats, for example "
24492 "converting a raw disk image to a thin-provisioned qcow2 image."
24496 #: ../sparsify/virt-sparsify.pod:24
24498 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24499 "machines. If a virtual machine has more than one attached disk, you must "
24500 "sparsify each one separately."
24504 #: ../sparsify/virt-sparsify.pod:28
24505 msgid "IMPORTANT LIMITATIONS"
24509 #: ../sparsify/virt-sparsify.pod:34
24511 "Virt-sparsify does not do in-place modifications. It copies from a source "
24512 "image to a destination image, leaving the source unchanged. I<Check that "
24513 "the sparsification was successful before deleting the source image>."
24517 #: ../sparsify/virt-sparsify.pod:41
24518 msgid "The virtual machine I<must be shut down> before using this tool."
24522 #: ../sparsify/virt-sparsify.pod:45
24524 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24525 "(1 temporary copy + 1 destination image). This is in the worst case and "
24526 "usually much less space is required."
24530 #: ../sparsify/virt-sparsify.pod:51
24532 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24536 #: ../sparsify/virt-sparsify.pod:56
24537 msgid "Virt-sparsify cannot handle encrypted disks."
24541 #: ../sparsify/virt-sparsify.pod:60
24543 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24544 "this space is often used for critical items like bootloaders so it's not "
24549 #: ../sparsify/virt-sparsify.pod:66
24551 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24552 "to do this unless we can be sure there is no hibernation data, so at the "
24553 "moment swap partitions are ignored."
24557 #: ../sparsify/virt-sparsify.pod:72
24559 "You may also want to read the manual pages for the associated tools L<virt-"
24560 "filesystems(1)> and L<virt-df(1)> before starting."
24564 #: ../sparsify/virt-sparsify.pod:77
24565 msgid "Typical usage is:"
24569 #: ../sparsify/virt-sparsify.pod:79
24572 " virt-sparsify indisk outdisk\n"
24577 #: ../sparsify/virt-sparsify.pod:81
24579 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
24580 "is created, or overwritten if it already exists. The format of the input "
24581 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24585 #: ../sparsify/virt-sparsify.pod:86
24586 msgid "To convert between formats, use the I<--convert> option:"
24590 #: ../sparsify/virt-sparsify.pod:88
24593 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24598 #: ../sparsify/virt-sparsify.pod:90
24600 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24601 "can find within the source disk image. You can get it to ignore (don't zero "
24602 "free space on) certain filesystems by doing:"
24606 #: ../sparsify/virt-sparsify.pod:94
24609 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24614 #: ../sparsify/virt-sparsify.pod:96
24616 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24620 #: ../sparsify/virt-sparsify.pod:107
24621 msgid "B<--convert> raw"
24625 #: ../sparsify/virt-sparsify.pod:109
24626 msgid "B<--convert> qcow2"
24630 #: ../sparsify/virt-sparsify.pod:111
24631 msgid "B<--convert> [other formats]"
24635 #: ../sparsify/virt-sparsify.pod:113
24637 "Use C<output-format> as the format for the destination image. If this is "
24638 "not specified, then the input format is used."
24642 #: ../sparsify/virt-sparsify.pod:116
24643 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24647 #: ../sparsify/virt-sparsify.pod:118
24649 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24650 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24654 #: ../sparsify/virt-sparsify.pod:122
24656 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24657 "sparsify doesn't need to try to guess the input format."
24661 #: ../sparsify/virt-sparsify.pod:127
24662 msgid "B<--format> qcow2"
24666 #: ../sparsify/virt-sparsify.pod:135
24667 msgid "B<--ignore> filesystem"
24671 #: ../sparsify/virt-sparsify.pod:137
24672 msgid "B<--ignore> volgroup"
24676 #: ../sparsify/virt-sparsify.pod:139
24678 "Ignore the named filesystem. Free space on the filesystem will not be "
24679 "zeroed, but existing blocks of zeroes will still be sparsified."
24683 #: ../sparsify/virt-sparsify.pod:142
24685 "In the second form, this ignores the named volume group. Use the volume "
24686 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24690 #: ../sparsify/virt-sparsify.pod:157
24691 msgid "This disables progress bars and other unnecessary output."
24695 #: ../sparsify/virt-sparsify.pod:179
24697 "The I<--machine-readable> option can be used to make the output more machine "
24698 "friendly, which is useful when calling virt-sparsify from other programs, "
24703 #: ../sparsify/virt-sparsify.pod:185
24705 "Firstly use the option on its own to query the capabilities of the virt-"
24706 "sparsify binary. Typical output looks like this:"
24710 #: ../sparsify/virt-sparsify.pod:188
24713 " $ virt-sparsify --machine-readable\n"
24721 #: ../sparsify/virt-sparsify.pod:218
24723 "The calling program should treat messages sent to stderr as error messages. "
24724 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24729 #: ../sparsify/virt-sparsify.pod:224
24731 "All versions of virt-sparsify have supported the I<--machine-readable> "
24736 #: ../sparsify/virt-sparsify.pod:238
24738 "Location of the temporary directory used for the potentially large temporary "
24743 #: ../sparsify/virt-sparsify.pod:241
24745 "You should ensure there is enough free space in the worst case for a full "
24746 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24747 "to another directory that has enough space."
24751 #: ../sparsify/virt-sparsify.pod:245
24752 msgid "This defaults to C</tmp>."
24756 #: ../sparsify/virt-sparsify.pod:249
24758 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24762 #: ../sparsify/virt-sparsify.pod:253
24764 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24765 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24766 "(1)>, L<http://libguestfs.org/>."
24770 #: ../src/guestfs-actions.pod:1
24771 msgid "guestfs_add_cdrom"
24775 #: ../src/guestfs-actions.pod:3
24779 " guestfs_add_cdrom (guestfs_h *g,\n"
24780 " const char *filename);\n"
24785 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24786 #: ../src/guestfs-actions.pod:276
24788 "I<This function is deprecated.> In new code, use the L</"
24789 "guestfs_add_drive_opts> call instead."
24793 #: ../src/guestfs-actions.pod:24
24795 "This call checks for the existence of C<filename>. This stops you from "
24796 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24797 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
24802 #: ../src/guestfs-actions.pod:31
24804 "If you just want to add an ISO file (often you use this as an efficient way "
24805 "to transfer large files into the guest), then you should probably use "
24806 "C<guestfs_add_drive_ro> instead."
24810 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24811 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24812 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24813 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24814 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24815 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24816 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24817 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24818 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24819 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24820 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24821 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24822 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24823 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24824 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24825 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24826 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24827 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24828 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24829 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24830 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24831 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24832 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24833 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24834 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24835 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24836 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24837 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24838 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24839 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24840 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24841 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24842 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24843 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24844 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24845 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24846 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24847 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24848 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24849 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24850 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24851 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24852 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24853 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24854 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24855 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24856 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24857 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24858 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24859 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24860 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24861 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24862 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24863 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24864 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24865 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24866 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24867 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24868 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24869 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24870 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24871 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24872 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24873 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24874 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24875 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24876 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24877 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24878 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24879 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24880 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24881 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24882 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24883 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24884 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24885 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24886 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24887 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24888 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24889 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24890 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24891 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
24892 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
24893 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
24894 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
24895 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
24896 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
24897 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
24898 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
24899 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
24900 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
24901 #: ../src/guestfs-actions.pod:8007
24902 msgid "This function returns 0 on success or -1 on error."
24906 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24907 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
24908 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
24909 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
24910 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
24911 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
24912 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
24913 #: ../src/guestfs-actions.pod:7784
24914 msgid "(Added in 0.3)"
24915 msgstr "(Додано у 0.3)"
24918 #: ../src/guestfs-actions.pod:41
24919 msgid "guestfs_add_domain"
24923 #: ../src/guestfs-actions.pod:43
24927 " guestfs_add_domain (guestfs_h *g,\n"
24928 " const char *dom,\n"
24934 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24935 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
24936 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
24937 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
24938 #: ../src/guestfs-actions.pod:5340
24940 "You may supply a list of optional arguments to this call. Use zero or more "
24941 "of the following pairs of parameters, and terminate the list with C<-1> on "
24942 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
24946 #: ../src/guestfs-actions.pod:53
24949 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24950 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24951 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24952 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24953 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24958 #: ../src/guestfs-actions.pod:59
24960 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
24961 "It works by connecting to libvirt, requesting the domain and domain XML from "
24962 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24967 #: ../src/guestfs-actions.pod:94
24969 "The other optional parameters are passed directly through to "
24970 "C<guestfs_add_drive_opts>."
24974 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
24975 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
24976 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
24977 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
24978 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
24979 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
24980 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
24981 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
24982 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
24983 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
24984 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
24985 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
24986 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
24987 msgid "On error this function returns -1."
24991 #: ../src/guestfs-actions.pod:99
24992 msgid "(Added in 1.7.4)"
24993 msgstr "(Додано у 1.7.4)"
24996 #: ../src/guestfs-actions.pod:101
24997 msgid "guestfs_add_domain_va"
25001 #: ../src/guestfs-actions.pod:103
25005 " guestfs_add_domain_va (guestfs_h *g,\n"
25006 " const char *dom,\n"
25007 " va_list args);\n"
25012 #: ../src/guestfs-actions.pod:108
25013 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25017 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25018 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25019 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25020 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25021 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25022 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
25023 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
25024 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
25025 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
25026 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25027 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25030 #: ../src/guestfs-actions.pod:112
25031 msgid "guestfs_add_domain_argv"
25032 msgstr "guestfs_add_domain_argv"
25035 #: ../src/guestfs-actions.pod:114
25039 " guestfs_add_domain_argv (guestfs_h *g,\n"
25040 " const char *dom,\n"
25041 " const struct guestfs_add_domain_argv *optargs);\n"
25046 #: ../src/guestfs-actions.pod:119
25047 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25051 #: ../src/guestfs-actions.pod:123
25052 msgid "guestfs_add_drive"
25056 #: ../src/guestfs-actions.pod:125
25060 " guestfs_add_drive (guestfs_h *g,\n"
25061 " const char *filename);\n"
25066 #: ../src/guestfs-actions.pod:129
25068 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25069 "optional parameters, so the disk is added writable, with the format being "
25070 "detected automatically."
25074 #: ../src/guestfs-actions.pod:133
25076 "Automatic detection of the format opens you up to a potential security hole "
25077 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25078 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25079 "you should think about replacing calls to this function with calls to "
25080 "C<guestfs_add_drive_opts>, and specifying the format."
25084 #: ../src/guestfs-actions.pod:144
25085 msgid "guestfs_add_drive_opts"
25089 #: ../src/guestfs-actions.pod:146
25093 " guestfs_add_drive_opts (guestfs_h *g,\n"
25094 " const char *filename,\n"
25100 #: ../src/guestfs-actions.pod:156
25103 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25104 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25105 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25106 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25111 #: ../src/guestfs-actions.pod:186
25113 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25114 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25115 "Possible formats include C<raw> and C<qcow2>."
25119 #: ../src/guestfs-actions.pod:197
25121 "This rarely-used option lets you emulate the behaviour of the deprecated "
25122 "C<guestfs_add_drive_with_if> call (q.v.)"
25126 #: ../src/guestfs-actions.pod:209
25127 msgid "(Added in 1.5.23)"
25128 msgstr "(Додано у 1.5.23)"
25131 #: ../src/guestfs-actions.pod:211
25132 msgid "guestfs_add_drive_opts_va"
25136 #: ../src/guestfs-actions.pod:213
25140 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25141 " const char *filename,\n"
25142 " va_list args);\n"
25147 #: ../src/guestfs-actions.pod:218
25148 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25152 #: ../src/guestfs-actions.pod:222
25153 msgid "guestfs_add_drive_opts_argv"
25157 #: ../src/guestfs-actions.pod:224
25161 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25162 " const char *filename,\n"
25163 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25168 #: ../src/guestfs-actions.pod:229
25169 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25173 #: ../src/guestfs-actions.pod:233
25174 msgid "guestfs_add_drive_ro"
25178 #: ../src/guestfs-actions.pod:235
25182 " guestfs_add_drive_ro (guestfs_h *g,\n"
25183 " const char *filename);\n"
25188 #: ../src/guestfs-actions.pod:239
25190 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25191 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25192 "disk is added read-only, with the format being detected automatically."
25196 #: ../src/guestfs-actions.pod:246
25197 msgid "(Added in 1.0.38)"
25198 msgstr "(Додано у 1.0.38)"
25201 #: ../src/guestfs-actions.pod:248
25202 msgid "guestfs_add_drive_ro_with_if"
25206 #: ../src/guestfs-actions.pod:250
25210 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25211 " const char *filename,\n"
25212 " const char *iface);\n"
25217 #: ../src/guestfs-actions.pod:262
25219 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25220 "QEMU interface emulation to use at run time."
25224 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25225 #: ../src/guestfs-actions.pod:2586
25226 msgid "(Added in 1.0.84)"
25227 msgstr "(Додано у 1.0.84)"
25230 #: ../src/guestfs-actions.pod:269
25231 msgid "guestfs_add_drive_with_if"
25235 #: ../src/guestfs-actions.pod:271
25239 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25240 " const char *filename,\n"
25241 " const char *iface);\n"
25246 #: ../src/guestfs-actions.pod:283
25248 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25249 "QEMU interface emulation to use at run time."
25253 #: ../src/guestfs-actions.pod:290
25254 msgid "guestfs_aug_clear"
25258 #: ../src/guestfs-actions.pod:292
25262 " guestfs_aug_clear (guestfs_h *g,\n"
25263 " const char *augpath);\n"
25268 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
25269 msgid "(Added in 1.3.4)"
25270 msgstr "(Додано у 1.3.4)"
25273 #: ../src/guestfs-actions.pod:303
25274 msgid "guestfs_aug_close"
25278 #: ../src/guestfs-actions.pod:305
25282 " guestfs_aug_close (guestfs_h *g);\n"
25287 #: ../src/guestfs-actions.pod:308
25289 "Close the current Augeas handle and free up any resources used by it. After "
25290 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25291 "any other Augeas functions."
25295 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25296 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25297 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25298 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25299 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25300 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25301 #: ../src/guestfs-actions.pod:6008
25302 msgid "(Added in 0.7)"
25303 msgstr "(Додано у 0.7)"
25306 #: ../src/guestfs-actions.pod:317
25307 msgid "guestfs_aug_defnode"
25311 #: ../src/guestfs-actions.pod:319
25314 " struct guestfs_int_bool *\n"
25315 " guestfs_aug_defnode (guestfs_h *g,\n"
25316 " const char *name,\n"
25317 " const char *expr,\n"
25318 " const char *val);\n"
25323 #: ../src/guestfs-actions.pod:328
25325 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25326 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25327 "containing that single node."
25331 #: ../src/guestfs-actions.pod:336
25333 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25334 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25338 #: ../src/guestfs-actions.pod:342
25339 msgid "guestfs_aug_defvar"
25343 #: ../src/guestfs-actions.pod:344
25347 " guestfs_aug_defvar (guestfs_h *g,\n"
25348 " const char *name,\n"
25349 " const char *expr);\n"
25354 #: ../src/guestfs-actions.pod:360
25355 msgid "guestfs_aug_get"
25356 msgstr "guestfs_aug_get"
25359 #: ../src/guestfs-actions.pod:362
25363 " guestfs_aug_get (guestfs_h *g,\n"
25364 " const char *augpath);\n"
25368 " guestfs_aug_get (guestfs_h *g,\n"
25369 " const char *augpath);\n"
25373 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25374 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25375 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25376 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
25377 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
25378 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
25379 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
25380 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
25381 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
25382 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
25383 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
25384 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
25385 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
25386 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
25387 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
25388 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
25389 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
25390 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
25391 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
25392 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
25393 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
25394 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
25395 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
25396 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
25398 "This function returns a string, or NULL on error. I<The caller must free "
25399 "the returned string after use>."
25403 #: ../src/guestfs-actions.pod:374
25404 msgid "guestfs_aug_init"
25405 msgstr "guestfs_aug_init"
25408 #: ../src/guestfs-actions.pod:376
25412 " guestfs_aug_init (guestfs_h *g,\n"
25413 " const char *root,\n"
25418 " guestfs_aug_init (guestfs_h *g,\n"
25419 " const char *root,\n"
25424 #: ../src/guestfs-actions.pod:385
25425 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25429 #: ../src/guestfs-actions.pod:410
25431 "This option is only useful when debugging Augeas lenses. Use of this option "
25432 "may require additional memory for the libguestfs appliance. You may need to "
25433 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25434 "C<guestfs_set_memsize>."
25438 #: ../src/guestfs-actions.pod:425
25439 msgid "Do not load the tree in C<guestfs_aug_init>."
25443 #: ../src/guestfs-actions.pod:429
25444 msgid "To close the handle, you can call C<guestfs_aug_close>."
25448 #: ../src/guestfs-actions.pod:437
25449 msgid "guestfs_aug_insert"
25450 msgstr "guestfs_aug_insert"
25453 #: ../src/guestfs-actions.pod:439
25457 " guestfs_aug_insert (guestfs_h *g,\n"
25458 " const char *augpath,\n"
25459 " const char *label,\n"
25464 " guestfs_aug_insert (guestfs_h *g,\n"
25465 " const char *augpath,\n"
25466 " const char *label,\n"
25471 #: ../src/guestfs-actions.pod:457
25472 msgid "guestfs_aug_load"
25473 msgstr "guestfs_aug_load"
25476 #: ../src/guestfs-actions.pod:459
25480 " guestfs_aug_load (guestfs_h *g);\n"
25484 " guestfs_aug_load (guestfs_h *g);\n"
25488 #: ../src/guestfs-actions.pod:471
25489 msgid "guestfs_aug_ls"
25490 msgstr "guestfs_aug_ls"
25493 #: ../src/guestfs-actions.pod:473
25497 " guestfs_aug_ls (guestfs_h *g,\n"
25498 " const char *augpath);\n"
25502 " guestfs_aug_ls (guestfs_h *g,\n"
25503 " const char *augpath);\n"
25507 #: ../src/guestfs-actions.pod:477
25509 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25510 "sorting the resulting nodes into alphabetical order."
25514 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25515 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25516 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
25517 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
25518 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
25519 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
25520 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
25521 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
25522 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25523 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25524 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25525 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25526 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25527 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25528 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25529 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25530 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25531 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25532 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25533 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25534 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25535 #: ../src/guestfs-actions.pod:8105
25537 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25538 ">), or NULL if there was an error. I<The caller must free the strings and "
25539 "the array after use>."
25543 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25544 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25545 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25546 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25547 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25548 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25549 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25550 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25551 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25552 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25553 #: ../src/guestfs-actions.pod:7896
25554 msgid "(Added in 0.8)"
25555 msgstr "(Додано у 0.8)"
25558 #: ../src/guestfs-actions.pod:486
25559 msgid "guestfs_aug_match"
25560 msgstr "guestfs_aug_match"
25563 #: ../src/guestfs-actions.pod:488
25567 " guestfs_aug_match (guestfs_h *g,\n"
25568 " const char *augpath);\n"
25572 " guestfs_aug_match (guestfs_h *g,\n"
25573 " const char *augpath);\n"
25577 #: ../src/guestfs-actions.pod:502
25578 msgid "guestfs_aug_mv"
25579 msgstr "guestfs_aug_mv"
25582 #: ../src/guestfs-actions.pod:504
25586 " guestfs_aug_mv (guestfs_h *g,\n"
25587 " const char *src,\n"
25588 " const char *dest);\n"
25592 " guestfs_aug_mv (guestfs_h *g,\n"
25593 " const char *src,\n"
25594 " const char *dest);\n"
25598 #: ../src/guestfs-actions.pod:516
25599 msgid "guestfs_aug_rm"
25600 msgstr "guestfs_aug_rm"
25603 #: ../src/guestfs-actions.pod:518
25607 " guestfs_aug_rm (guestfs_h *g,\n"
25608 " const char *augpath);\n"
25612 " guestfs_aug_rm (guestfs_h *g,\n"
25613 " const char *augpath);\n"
25617 #: ../src/guestfs-actions.pod:530
25618 msgid "guestfs_aug_save"
25619 msgstr "guestfs_aug_save"
25622 #: ../src/guestfs-actions.pod:532
25626 " guestfs_aug_save (guestfs_h *g);\n"
25630 " guestfs_aug_save (guestfs_h *g);\n"
25634 #: ../src/guestfs-actions.pod:537
25636 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25641 #: ../src/guestfs-actions.pod:544
25642 msgid "guestfs_aug_set"
25643 msgstr "guestfs_aug_set"
25646 #: ../src/guestfs-actions.pod:546
25650 " guestfs_aug_set (guestfs_h *g,\n"
25651 " const char *augpath,\n"
25652 " const char *val);\n"
25656 " guestfs_aug_set (guestfs_h *g,\n"
25657 " const char *augpath,\n"
25658 " const char *val);\n"
25662 #: ../src/guestfs-actions.pod:553
25664 "In the Augeas API, it is possible to clear a node by setting the value to "
25665 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
25666 "this call. Instead you must use the C<guestfs_aug_clear> call."
25670 #: ../src/guestfs-actions.pod:562
25671 msgid "guestfs_available"
25672 msgstr "guestfs_available"
25675 #: ../src/guestfs-actions.pod:564
25679 " guestfs_available (guestfs_h *g,\n"
25680 " char *const *groups);\n"
25684 " guestfs_available (guestfs_h *g,\n"
25685 " char *const *groups);\n"
25689 #: ../src/guestfs-actions.pod:572
25691 "The libguestfs groups, and the functions that those groups correspond to, "
25692 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
25693 "runtime by calling C<guestfs_available_all_groups>."
25697 #: ../src/guestfs-actions.pod:596
25698 msgid "You must call C<guestfs_launch> before calling this function."
25702 #: ../src/guestfs-actions.pod:618
25704 "This call was added in version C<1.0.80>. In previous versions of "
25705 "libguestfs all you could do would be to speculatively execute a command to "
25706 "find out if the daemon implemented it. See also C<guestfs_version>."
25710 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25711 msgid "(Added in 1.0.80)"
25712 msgstr "(Додано у 1.0.80)"
25715 #: ../src/guestfs-actions.pod:629
25716 msgid "guestfs_available_all_groups"
25717 msgstr "guestfs_available_all_groups"
25720 #: ../src/guestfs-actions.pod:631
25724 " guestfs_available_all_groups (guestfs_h *g);\n"
25728 " guestfs_available_all_groups (guestfs_h *g);\n"
25732 #: ../src/guestfs-actions.pod:634
25734 "This command returns a list of all optional groups that this daemon knows "
25735 "about. Note this returns both supported and unsupported groups. To find "
25736 "out which ones the daemon can actually support you have to call "
25737 "C<guestfs_available> on each member of the returned list."
25741 #: ../src/guestfs-actions.pod:640
25742 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25746 #: ../src/guestfs-actions.pod:646
25747 msgid "(Added in 1.3.15)"
25748 msgstr "(Додано у 1.3.15)"
25751 #: ../src/guestfs-actions.pod:648
25752 msgid "guestfs_base64_in"
25753 msgstr "guestfs_base64_in"
25756 #: ../src/guestfs-actions.pod:650
25760 " guestfs_base64_in (guestfs_h *g,\n"
25761 " const char *base64file,\n"
25762 " const char *filename);\n"
25766 " guestfs_base64_in (guestfs_h *g,\n"
25767 " const char *base64file,\n"
25768 " const char *filename);\n"
25772 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25773 msgid "(Added in 1.3.5)"
25774 msgstr "(Додано у 1.3.5)"
25777 #: ../src/guestfs-actions.pod:662
25778 msgid "guestfs_base64_out"
25779 msgstr "guestfs_base64_out"
25782 #: ../src/guestfs-actions.pod:664
25786 " guestfs_base64_out (guestfs_h *g,\n"
25787 " const char *filename,\n"
25788 " const char *base64file);\n"
25792 " guestfs_base64_out (guestfs_h *g,\n"
25793 " const char *filename,\n"
25794 " const char *base64file);\n"
25798 #: ../src/guestfs-actions.pod:676
25799 msgid "guestfs_blockdev_flushbufs"
25800 msgstr "guestfs_blockdev_flushbufs"
25803 #: ../src/guestfs-actions.pod:678
25807 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25808 " const char *device);\n"
25812 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25813 " const char *device);\n"
25817 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25818 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25819 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25820 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25821 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25822 msgid "(Added in 0.9.3)"
25823 msgstr "(Додано у 0.9.3)"
25826 #: ../src/guestfs-actions.pod:691
25827 msgid "guestfs_blockdev_getbsz"
25828 msgstr "guestfs_blockdev_getbsz"
25831 #: ../src/guestfs-actions.pod:693
25835 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25836 " const char *device);\n"
25840 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25841 " const char *device);\n"
25845 #: ../src/guestfs-actions.pod:708
25846 msgid "guestfs_blockdev_getro"
25847 msgstr "guestfs_blockdev_getro"
25850 #: ../src/guestfs-actions.pod:710
25854 " guestfs_blockdev_getro (guestfs_h *g,\n"
25855 " const char *device);\n"
25859 " guestfs_blockdev_getro (guestfs_h *g,\n"
25860 " const char *device);\n"
25864 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25865 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25866 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25867 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25868 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25869 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25870 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25871 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25872 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25873 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25874 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25875 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25876 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25877 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25878 #: ../src/guestfs-actions.pod:5501
25879 msgid "This function returns a C truth value on success or -1 on error."
25883 #: ../src/guestfs-actions.pod:723
25884 msgid "guestfs_blockdev_getsize64"
25885 msgstr "guestfs_blockdev_getsize64"
25888 #: ../src/guestfs-actions.pod:725
25892 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25893 " const char *device);\n"
25897 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25898 " const char *device);\n"
25902 #: ../src/guestfs-actions.pod:731
25903 msgid "See also C<guestfs_blockdev_getsz>."
25907 #: ../src/guestfs-actions.pod:739
25908 msgid "guestfs_blockdev_getss"
25909 msgstr "guestfs_blockdev_getss"
25912 #: ../src/guestfs-actions.pod:741
25916 " guestfs_blockdev_getss (guestfs_h *g,\n"
25917 " const char *device);\n"
25921 " guestfs_blockdev_getss (guestfs_h *g,\n"
25922 " const char *device);\n"
25926 #: ../src/guestfs-actions.pod:748
25928 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25933 #: ../src/guestfs-actions.pod:757
25934 msgid "guestfs_blockdev_getsz"
25935 msgstr "guestfs_blockdev_getsz"
25938 #: ../src/guestfs-actions.pod:759
25942 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25943 " const char *device);\n"
25947 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25948 " const char *device);\n"
25952 #: ../src/guestfs-actions.pod:766
25954 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25955 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25959 #: ../src/guestfs-actions.pod:776
25960 msgid "guestfs_blockdev_rereadpt"
25961 msgstr "guestfs_blockdev_rereadpt"
25964 #: ../src/guestfs-actions.pod:778
25968 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25969 " const char *device);\n"
25973 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25974 " const char *device);\n"
25978 #: ../src/guestfs-actions.pod:790
25979 msgid "guestfs_blockdev_setbsz"
25980 msgstr "guestfs_blockdev_setbsz"
25983 #: ../src/guestfs-actions.pod:792
25987 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25988 " const char *device,\n"
25989 " int blocksize);\n"
25993 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25994 " const char *device,\n"
25995 " int blocksize);\n"
25999 #: ../src/guestfs-actions.pod:808
26000 msgid "guestfs_blockdev_setro"
26001 msgstr "guestfs_blockdev_setro"
26004 #: ../src/guestfs-actions.pod:810
26008 " guestfs_blockdev_setro (guestfs_h *g,\n"
26009 " const char *device);\n"
26013 " guestfs_blockdev_setro (guestfs_h *g,\n"
26014 " const char *device);\n"
26018 #: ../src/guestfs-actions.pod:822
26019 msgid "guestfs_blockdev_setrw"
26020 msgstr "guestfs_blockdev_setrw"
26023 #: ../src/guestfs-actions.pod:824
26027 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26028 " const char *device);\n"
26032 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26033 " const char *device);\n"
26037 #: ../src/guestfs-actions.pod:836
26038 msgid "guestfs_btrfs_filesystem_resize"
26039 msgstr "guestfs_btrfs_filesystem_resize"
26042 #: ../src/guestfs-actions.pod:838
26046 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26047 " const char *mountpoint,\n"
26052 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26053 " const char *mountpoint,\n"
26058 #: ../src/guestfs-actions.pod:848
26061 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26064 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26068 #: ../src/guestfs-actions.pod:871
26069 msgid "(Added in 1.11.17)"
26070 msgstr "(Додано у 1.11.17)"
26073 #: ../src/guestfs-actions.pod:873
26074 msgid "guestfs_btrfs_filesystem_resize_va"
26075 msgstr "guestfs_btrfs_filesystem_resize_va"
26078 #: ../src/guestfs-actions.pod:875
26082 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26083 " const char *mountpoint,\n"
26084 " va_list args);\n"
26088 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26089 " const char *mountpoint,\n"
26090 " va_list args);\n"
26094 #: ../src/guestfs-actions.pod:880
26095 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26099 #: ../src/guestfs-actions.pod:884
26100 msgid "guestfs_btrfs_filesystem_resize_argv"
26101 msgstr "guestfs_btrfs_filesystem_resize_argv"
26104 #: ../src/guestfs-actions.pod:886
26108 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26109 " const char *mountpoint,\n"
26110 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26114 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26115 " const char *mountpoint,\n"
26116 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26120 #: ../src/guestfs-actions.pod:891
26121 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26125 #: ../src/guestfs-actions.pod:895
26126 msgid "guestfs_case_sensitive_path"
26130 #: ../src/guestfs-actions.pod:897
26134 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26135 " const char *path);\n"
26140 #: ../src/guestfs-actions.pod:923
26142 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26143 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26144 "how the directories were originally created under Windows)."
26148 #: ../src/guestfs-actions.pod:931
26149 msgid "See also C<guestfs_realpath>."
26153 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
26154 msgid "(Added in 1.0.75)"
26155 msgstr "(Додано у 1.0.75)"
26158 #: ../src/guestfs-actions.pod:938
26159 msgid "guestfs_cat"
26163 #: ../src/guestfs-actions.pod:940
26167 " guestfs_cat (guestfs_h *g,\n"
26168 " const char *path);\n"
26173 #: ../src/guestfs-actions.pod:946
26175 "Note that this function cannot correctly handle binary files (specifically, "
26176 "files containing C<\\0> character which is treated as end of string). For "
26177 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26178 "functions which have a more complex interface."
26182 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
26183 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
26184 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
26185 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
26186 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
26187 #: ../src/guestfs-actions.pod:7732
26188 msgid "(Added in 0.4)"
26189 msgstr "(Додано у 0.4)"
26192 #: ../src/guestfs-actions.pod:959
26193 msgid "guestfs_checksum"
26197 #: ../src/guestfs-actions.pod:961
26201 " guestfs_checksum (guestfs_h *g,\n"
26202 " const char *csumtype,\n"
26203 " const char *path);\n"
26208 #: ../src/guestfs-actions.pod:1007
26209 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26213 #: ../src/guestfs-actions.pod:1009
26214 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26218 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
26219 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
26220 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
26221 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
26222 msgid "(Added in 1.0.2)"
26223 msgstr "(Додано у 1.0.2)"
26226 #: ../src/guestfs-actions.pod:1016
26227 msgid "guestfs_checksum_device"
26231 #: ../src/guestfs-actions.pod:1018
26235 " guestfs_checksum_device (guestfs_h *g,\n"
26236 " const char *csumtype,\n"
26237 " const char *device);\n"
26242 #: ../src/guestfs-actions.pod:1023
26244 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26245 "device named C<device>. For the types of checksums supported see the "
26246 "C<guestfs_checksum> command."
26250 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
26251 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
26252 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
26253 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
26254 #: ../src/guestfs-actions.pod:7744
26255 msgid "(Added in 1.3.2)"
26256 msgstr "(Додано у 1.3.2)"
26259 #: ../src/guestfs-actions.pod:1032
26260 msgid "guestfs_checksums_out"
26264 #: ../src/guestfs-actions.pod:1034
26268 " guestfs_checksums_out (guestfs_h *g,\n"
26269 " const char *csumtype,\n"
26270 " const char *directory,\n"
26271 " const char *sumsfile);\n"
26276 #: ../src/guestfs-actions.pod:1054
26277 msgid "(Added in 1.3.7)"
26278 msgstr "(Додано у 1.3.7)"
26281 #: ../src/guestfs-actions.pod:1056
26282 msgid "guestfs_chmod"
26286 #: ../src/guestfs-actions.pod:1058
26290 " guestfs_chmod (guestfs_h *g,\n"
26292 " const char *path);\n"
26297 #: ../src/guestfs-actions.pod:1076
26298 msgid "guestfs_chown"
26302 #: ../src/guestfs-actions.pod:1078
26306 " guestfs_chown (guestfs_h *g,\n"
26309 " const char *path);\n"
26314 #: ../src/guestfs-actions.pod:1094
26315 msgid "guestfs_command"
26319 #: ../src/guestfs-actions.pod:1096
26323 " guestfs_command (guestfs_h *g,\n"
26324 " char *const *arguments);\n"
26329 #: ../src/guestfs-actions.pod:1105
26331 "The single parameter is an argv-style list of arguments. The first element "
26332 "is the name of the program to run. Subsequent elements are parameters. The "
26333 "list must be non-empty (ie. must contain a program name). Note that the "
26334 "command runs directly, and is I<not> invoked via the shell (see "
26339 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26340 #: ../src/guestfs-actions.pod:1732
26341 msgid "(Added in 0.9.1)"
26342 msgstr "(Додано у 0.9.1)"
26345 #: ../src/guestfs-actions.pod:1138
26346 msgid "guestfs_command_lines"
26350 #: ../src/guestfs-actions.pod:1140
26354 " guestfs_command_lines (guestfs_h *g,\n"
26355 " char *const *arguments);\n"
26360 #: ../src/guestfs-actions.pod:1144
26362 "This is the same as C<guestfs_command>, but splits the result into a list of "
26367 #: ../src/guestfs-actions.pod:1147
26368 msgid "See also: C<guestfs_sh_lines>"
26372 #: ../src/guestfs-actions.pod:1158
26373 msgid "guestfs_compress_device_out"
26377 #: ../src/guestfs-actions.pod:1160
26381 " guestfs_compress_device_out (guestfs_h *g,\n"
26382 " const char *ctype,\n"
26383 " const char *device,\n"
26384 " const char *zdevice,\n"
26390 #: ../src/guestfs-actions.pod:1172
26393 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26398 #: ../src/guestfs-actions.pod:1177
26400 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26401 "C<guestfs_compress_out>."
26405 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26406 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
26407 msgid "(Added in 1.13.15)"
26411 #: ../src/guestfs-actions.pod:1184
26412 msgid "guestfs_compress_device_out_va"
26416 #: ../src/guestfs-actions.pod:1186
26420 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26421 " const char *ctype,\n"
26422 " const char *device,\n"
26423 " const char *zdevice,\n"
26424 " va_list args);\n"
26429 #: ../src/guestfs-actions.pod:1193
26430 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26434 #: ../src/guestfs-actions.pod:1197
26435 msgid "guestfs_compress_device_out_argv"
26439 #: ../src/guestfs-actions.pod:1199
26443 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26444 " const char *ctype,\n"
26445 " const char *device,\n"
26446 " const char *zdevice,\n"
26447 " const struct guestfs_compress_device_out_argv *optargs);\n"
26452 #: ../src/guestfs-actions.pod:1206
26453 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26457 #: ../src/guestfs-actions.pod:1210
26458 msgid "guestfs_compress_out"
26462 #: ../src/guestfs-actions.pod:1212
26466 " guestfs_compress_out (guestfs_h *g,\n"
26467 " const char *ctype,\n"
26468 " const char *file,\n"
26469 " const char *zfile,\n"
26475 #: ../src/guestfs-actions.pod:1224
26478 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26483 #: ../src/guestfs-actions.pod:1243
26484 msgid "guestfs_compress_out_va"
26488 #: ../src/guestfs-actions.pod:1245
26492 " guestfs_compress_out_va (guestfs_h *g,\n"
26493 " const char *ctype,\n"
26494 " const char *file,\n"
26495 " const char *zfile,\n"
26496 " va_list args);\n"
26501 #: ../src/guestfs-actions.pod:1252
26502 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26506 #: ../src/guestfs-actions.pod:1256
26507 msgid "guestfs_compress_out_argv"
26511 #: ../src/guestfs-actions.pod:1258
26515 " guestfs_compress_out_argv (guestfs_h *g,\n"
26516 " const char *ctype,\n"
26517 " const char *file,\n"
26518 " const char *zfile,\n"
26519 " const struct guestfs_compress_out_argv *optargs);\n"
26524 #: ../src/guestfs-actions.pod:1265
26525 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26529 #: ../src/guestfs-actions.pod:1269
26530 msgid "guestfs_config"
26534 #: ../src/guestfs-actions.pod:1271
26538 " guestfs_config (guestfs_h *g,\n"
26539 " const char *qemuparam,\n"
26540 " const char *qemuvalue);\n"
26545 #: ../src/guestfs-actions.pod:1289
26546 msgid "guestfs_copy_size"
26550 #: ../src/guestfs-actions.pod:1291
26554 " guestfs_copy_size (guestfs_h *g,\n"
26555 " const char *src,\n"
26556 " const char *dest,\n"
26557 " int64_t size);\n"
26562 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
26563 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
26564 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
26565 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
26566 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
26567 #: ../src/guestfs-actions.pod:7980
26569 "This long-running command can generate progress notification messages so "
26570 "that the caller can display a progress bar or indicator. To receive these "
26571 "messages, the caller must register a progress event callback. See L<guestfs"
26572 "(3)/GUESTFS_EVENT_PROGRESS>."
26576 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
26577 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
26578 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
26579 msgid "(Added in 1.0.87)"
26580 msgstr "(Додано у 1.0.87)"
26583 #: ../src/guestfs-actions.pod:1312
26588 #: ../src/guestfs-actions.pod:1314
26592 " guestfs_cp (guestfs_h *g,\n"
26593 " const char *src,\n"
26594 " const char *dest);\n"
26599 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
26600 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
26601 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
26602 #: ../src/guestfs-actions.pod:5753
26603 msgid "(Added in 1.0.18)"
26604 msgstr "(Додано у 1.0.18)"
26607 #: ../src/guestfs-actions.pod:1326
26608 msgid "guestfs_cp_a"
26612 #: ../src/guestfs-actions.pod:1328
26616 " guestfs_cp_a (guestfs_h *g,\n"
26617 " const char *src,\n"
26618 " const char *dest);\n"
26623 #: ../src/guestfs-actions.pod:1340
26628 #: ../src/guestfs-actions.pod:1342
26632 " guestfs_dd (guestfs_h *g,\n"
26633 " const char *src,\n"
26634 " const char *dest);\n"
26639 #: ../src/guestfs-actions.pod:1352
26641 "If the destination is a device, it must be as large or larger than the "
26642 "source file or device, otherwise the copy will fail. This command cannot do "
26643 "partial copies (see C<guestfs_copy_size>)."
26647 #: ../src/guestfs-actions.pod:1360
26652 #: ../src/guestfs-actions.pod:1362
26656 " guestfs_df (guestfs_h *g);\n"
26661 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26663 "This command is mostly useful for interactive sessions. It is I<not> "
26664 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
26669 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26670 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26671 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26672 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26673 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26674 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26675 #: ../src/guestfs-actions.pod:7823
26676 msgid "(Added in 1.0.54)"
26677 msgstr "(Додано у 1.0.54)"
26680 #: ../src/guestfs-actions.pod:1376
26681 msgid "guestfs_df_h"
26685 #: ../src/guestfs-actions.pod:1378
26689 " guestfs_df_h (guestfs_h *g);\n"
26694 #: ../src/guestfs-actions.pod:1393
26695 msgid "guestfs_dmesg"
26699 #: ../src/guestfs-actions.pod:1395
26703 " guestfs_dmesg (guestfs_h *g);\n"
26708 #: ../src/guestfs-actions.pod:1402
26710 "Another way to get the same information is to enable verbose messages with "
26711 "C<guestfs_set_verbose> or by setting the environment variable "
26712 "C<LIBGUESTFS_DEBUG=1> before running the program."
26716 #: ../src/guestfs-actions.pod:1412
26717 msgid "guestfs_download"
26721 #: ../src/guestfs-actions.pod:1414
26725 " guestfs_download (guestfs_h *g,\n"
26726 " const char *remotefilename,\n"
26727 " const char *filename);\n"
26732 #: ../src/guestfs-actions.pod:1424
26733 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26737 #: ../src/guestfs-actions.pod:1435
26738 msgid "guestfs_download_offset"
26742 #: ../src/guestfs-actions.pod:1437
26746 " guestfs_download_offset (guestfs_h *g,\n"
26747 " const char *remotefilename,\n"
26748 " const char *filename,\n"
26749 " int64_t offset,\n"
26750 " int64_t size);\n"
26755 #: ../src/guestfs-actions.pod:1450
26757 "Note that there is no limit on the amount of data that can be downloaded "
26758 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26759 "full amount unless an error occurs."
26763 #: ../src/guestfs-actions.pod:1455
26764 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26768 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26769 msgid "(Added in 1.5.17)"
26770 msgstr "(Додано у 1.5.17)"
26773 #: ../src/guestfs-actions.pod:1466
26774 msgid "guestfs_drop_caches"
26778 #: ../src/guestfs-actions.pod:1468
26782 " guestfs_drop_caches (guestfs_h *g,\n"
26783 " int whattodrop);\n"
26788 #: ../src/guestfs-actions.pod:1486
26793 #: ../src/guestfs-actions.pod:1488
26797 " guestfs_du (guestfs_h *g,\n"
26798 " const char *path);\n"
26803 #: ../src/guestfs-actions.pod:1511
26804 msgid "guestfs_e2fsck_f"
26808 #: ../src/guestfs-actions.pod:1513
26812 " guestfs_e2fsck_f (guestfs_h *g,\n"
26813 " const char *device);\n"
26818 #: ../src/guestfs-actions.pod:1521
26820 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
26821 "Normally you should use C<guestfs_fsck>."
26825 #: ../src/guestfs-actions.pod:1526
26826 msgid "(Added in 1.0.29)"
26827 msgstr "(Додано у 1.0.29)"
26830 #: ../src/guestfs-actions.pod:1528
26831 msgid "guestfs_echo_daemon"
26832 msgstr "guestfs_echo_daemon"
26835 #: ../src/guestfs-actions.pod:1530
26839 " guestfs_echo_daemon (guestfs_h *g,\n"
26840 " char *const *words);\n"
26844 " guestfs_echo_daemon (guestfs_h *g,\n"
26845 " char *const *words);\n"
26849 #: ../src/guestfs-actions.pod:1539
26850 msgid "See also C<guestfs_ping_daemon>."
26854 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26855 #: ../src/guestfs-actions.pod:6626
26856 msgid "(Added in 1.0.69)"
26857 msgstr "(Додано у 1.0.69)"
26860 #: ../src/guestfs-actions.pod:1546
26861 msgid "guestfs_egrep"
26862 msgstr "guestfs_egrep"
26865 #: ../src/guestfs-actions.pod:1548
26869 " guestfs_egrep (guestfs_h *g,\n"
26870 " const char *regex,\n"
26871 " const char *path);\n"
26875 " guestfs_egrep (guestfs_h *g,\n"
26876 " const char *regex,\n"
26877 " const char *path);\n"
26881 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26882 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26883 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26884 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26885 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26886 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26887 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26888 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26889 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26890 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26891 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
26892 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
26893 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
26894 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
26895 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
26896 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
26897 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
26898 msgid "(Added in 1.0.66)"
26899 msgstr "(Додано у 1.0.66)"
26902 #: ../src/guestfs-actions.pod:1565
26903 msgid "guestfs_egrepi"
26904 msgstr "guestfs_egrepi"
26907 #: ../src/guestfs-actions.pod:1567
26911 " guestfs_egrepi (guestfs_h *g,\n"
26912 " const char *regex,\n"
26913 " const char *path);\n"
26918 #: ../src/guestfs-actions.pod:1584
26919 msgid "guestfs_equal"
26923 #: ../src/guestfs-actions.pod:1586
26927 " guestfs_equal (guestfs_h *g,\n"
26928 " const char *file1,\n"
26929 " const char *file2);\n"
26934 #: ../src/guestfs-actions.pod:1600
26935 msgid "guestfs_exists"
26939 #: ../src/guestfs-actions.pod:1602
26943 " guestfs_exists (guestfs_h *g,\n"
26944 " const char *path);\n"
26949 #: ../src/guestfs-actions.pod:1609
26950 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26954 #: ../src/guestfs-actions.pod:1615
26955 msgid "guestfs_fallocate"
26959 #: ../src/guestfs-actions.pod:1617
26963 " guestfs_fallocate (guestfs_h *g,\n"
26964 " const char *path,\n"
26970 #: ../src/guestfs-actions.pod:1622
26972 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26977 #: ../src/guestfs-actions.pod:1641
26978 msgid "guestfs_fallocate64"
26982 #: ../src/guestfs-actions.pod:1643
26986 " guestfs_fallocate64 (guestfs_h *g,\n"
26987 " const char *path,\n"
26993 #: ../src/guestfs-actions.pod:1652
26995 "Note that this call allocates disk blocks for the file. To create a sparse "
26996 "file use C<guestfs_truncate_size> instead."
27000 #: ../src/guestfs-actions.pod:1655
27002 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27003 "oversight it only allowed 30 bit lengths to be specified, effectively "
27004 "limiting the maximum size of files created through that call to 1GB."
27008 #: ../src/guestfs-actions.pod:1666
27009 msgid "(Added in 1.3.17)"
27010 msgstr "(Додано у 1.3.17)"
27013 #: ../src/guestfs-actions.pod:1668
27014 msgid "guestfs_fgrep"
27018 #: ../src/guestfs-actions.pod:1670
27022 " guestfs_fgrep (guestfs_h *g,\n"
27023 " const char *pattern,\n"
27024 " const char *path);\n"
27029 #: ../src/guestfs-actions.pod:1687
27030 msgid "guestfs_fgrepi"
27034 #: ../src/guestfs-actions.pod:1689
27038 " guestfs_fgrepi (guestfs_h *g,\n"
27039 " const char *pattern,\n"
27040 " const char *path);\n"
27045 #: ../src/guestfs-actions.pod:1706
27046 msgid "guestfs_file"
27050 #: ../src/guestfs-actions.pod:1708
27054 " guestfs_file (guestfs_h *g,\n"
27055 " const char *path);\n"
27060 #: ../src/guestfs-actions.pod:1726
27062 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27063 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27067 #: ../src/guestfs-actions.pod:1734
27068 msgid "guestfs_file_architecture"
27072 #: ../src/guestfs-actions.pod:1736
27076 " guestfs_file_architecture (guestfs_h *g,\n"
27077 " const char *filename);\n"
27082 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
27083 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
27084 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
27085 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
27086 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
27087 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
27088 #: ../src/guestfs-actions.pod:3713
27089 msgid "(Added in 1.5.3)"
27090 msgstr "(Додано у 1.5.3)"
27093 #: ../src/guestfs-actions.pod:1846
27094 msgid "guestfs_filesize"
27098 #: ../src/guestfs-actions.pod:1848
27102 " guestfs_filesize (guestfs_h *g,\n"
27103 " const char *file);\n"
27108 #: ../src/guestfs-actions.pod:1854
27110 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27111 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27112 "devices, use C<guestfs_blockdev_getsize64>."
27116 #: ../src/guestfs-actions.pod:1860
27117 msgid "(Added in 1.0.82)"
27118 msgstr "(Додано у 1.0.82)"
27121 #: ../src/guestfs-actions.pod:1862
27122 msgid "guestfs_fill"
27126 #: ../src/guestfs-actions.pod:1864
27130 " guestfs_fill (guestfs_h *g,\n"
27133 " const char *path);\n"
27138 #: ../src/guestfs-actions.pod:1874
27140 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27141 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27142 "bytes use C<guestfs_fill_pattern>."
27146 #: ../src/guestfs-actions.pod:1886
27147 msgid "(Added in 1.0.79)"
27148 msgstr "(Додано у 1.0.79)"
27151 #: ../src/guestfs-actions.pod:1888
27152 msgid "guestfs_fill_pattern"
27156 #: ../src/guestfs-actions.pod:1890
27160 " guestfs_fill_pattern (guestfs_h *g,\n"
27161 " const char *pattern,\n"
27163 " const char *path);\n"
27168 #: ../src/guestfs-actions.pod:1896
27170 "This function is like C<guestfs_fill> except that it creates a new file of "
27171 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27172 "pattern is truncated if necessary to ensure the length of the file is "
27173 "exactly C<len> bytes."
27177 #: ../src/guestfs-actions.pod:1908
27178 msgid "(Added in 1.3.12)"
27179 msgstr "(Додано у 1.3.12)"
27182 #: ../src/guestfs-actions.pod:1910
27183 msgid "guestfs_find"
27187 #: ../src/guestfs-actions.pod:1912
27191 " guestfs_find (guestfs_h *g,\n"
27192 " const char *directory);\n"
27197 #: ../src/guestfs-actions.pod:1928
27199 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27203 #: ../src/guestfs-actions.pod:1941
27204 msgid "See also C<guestfs_find0>."
27208 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
27209 #: ../src/guestfs-actions.pod:6171
27210 msgid "(Added in 1.0.27)"
27211 msgstr "(Додано у 1.0.27)"
27214 #: ../src/guestfs-actions.pod:1952
27215 msgid "guestfs_find0"
27219 #: ../src/guestfs-actions.pod:1954
27223 " guestfs_find0 (guestfs_h *g,\n"
27224 " const char *directory,\n"
27225 " const char *files);\n"
27230 #: ../src/guestfs-actions.pod:1963
27232 "This command works the same way as C<guestfs_find> with the following "
27237 #: ../src/guestfs-actions.pod:1990
27238 msgid "(Added in 1.0.74)"
27239 msgstr "(Додано у 1.0.74)"
27242 #: ../src/guestfs-actions.pod:1992
27243 msgid "guestfs_findfs_label"
27247 #: ../src/guestfs-actions.pod:1994
27251 " guestfs_findfs_label (guestfs_h *g,\n"
27252 " const char *label);\n"
27257 #: ../src/guestfs-actions.pod:2002
27258 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27262 #: ../src/guestfs-actions.pod:2009
27263 msgid "guestfs_findfs_uuid"
27267 #: ../src/guestfs-actions.pod:2011
27271 " guestfs_findfs_uuid (guestfs_h *g,\n"
27272 " const char *uuid);\n"
27277 #: ../src/guestfs-actions.pod:2019
27278 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27282 #: ../src/guestfs-actions.pod:2026
27283 msgid "guestfs_fsck"
27287 #: ../src/guestfs-actions.pod:2028
27291 " guestfs_fsck (guestfs_h *g,\n"
27292 " const char *fstype,\n"
27293 " const char *device);\n"
27298 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
27299 msgid "(Added in 1.0.16)"
27300 msgstr "(Додано у 1.0.16)"
27303 #: ../src/guestfs-actions.pod:2065
27304 msgid "guestfs_get_append"
27308 #: ../src/guestfs-actions.pod:2067
27312 " guestfs_get_append (guestfs_h *g);\n"
27317 #: ../src/guestfs-actions.pod:2075
27319 "This function returns a string which may be NULL. There is no way to return "
27320 "an error from this function. The string is owned by the guest handle and "
27321 "must I<not> be freed."
27325 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
27326 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
27327 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
27328 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
27329 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
27330 msgid "(Added in 1.0.26)"
27331 msgstr "(Додано у 1.0.26)"
27334 #: ../src/guestfs-actions.pod:2081
27335 msgid "guestfs_get_attach_method"
27339 #: ../src/guestfs-actions.pod:2083
27343 " guestfs_get_attach_method (guestfs_h *g);\n"
27348 #: ../src/guestfs-actions.pod:2086
27349 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
27353 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
27354 msgid "(Added in 1.9.8)"
27355 msgstr "(Додано у 1.9.8)"
27358 #: ../src/guestfs-actions.pod:2093
27359 msgid "guestfs_get_autosync"
27363 #: ../src/guestfs-actions.pod:2095
27367 " guestfs_get_autosync (guestfs_h *g);\n"
27372 #: ../src/guestfs-actions.pod:2104
27373 msgid "guestfs_get_direct"
27377 #: ../src/guestfs-actions.pod:2106
27381 " guestfs_get_direct (guestfs_h *g);\n"
27386 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
27387 msgid "(Added in 1.0.72)"
27388 msgstr "(Додано у 1.0.72)"
27391 #: ../src/guestfs-actions.pod:2115
27392 msgid "guestfs_get_e2label"
27396 #: ../src/guestfs-actions.pod:2117
27400 " guestfs_get_e2label (guestfs_h *g,\n"
27401 " const char *device);\n"
27406 #: ../src/guestfs-actions.pod:2121
27408 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27413 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
27414 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
27415 msgid "(Added in 1.0.15)"
27416 msgstr "(Додано у 1.0.15)"
27419 #: ../src/guestfs-actions.pod:2136
27420 msgid "guestfs_get_e2uuid"
27424 #: ../src/guestfs-actions.pod:2138
27428 " guestfs_get_e2uuid (guestfs_h *g,\n"
27429 " const char *device);\n"
27434 #: ../src/guestfs-actions.pod:2142
27436 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27441 #: ../src/guestfs-actions.pod:2157
27442 msgid "guestfs_get_memsize"
27446 #: ../src/guestfs-actions.pod:2159
27450 " guestfs_get_memsize (guestfs_h *g);\n"
27455 #: ../src/guestfs-actions.pod:2165
27457 "If C<guestfs_set_memsize> was not called on this handle, and if "
27458 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27459 "value for memsize."
27463 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
27464 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
27465 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
27466 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
27467 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
27468 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
27469 msgid "(Added in 1.0.55)"
27470 msgstr "(Додано у 1.0.55)"
27473 #: ../src/guestfs-actions.pod:2176
27474 msgid "guestfs_get_network"
27478 #: ../src/guestfs-actions.pod:2178
27482 " guestfs_get_network (guestfs_h *g);\n"
27487 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
27488 msgid "(Added in 1.5.4)"
27489 msgstr "(Додано у 1.5.4)"
27492 #: ../src/guestfs-actions.pod:2187
27493 msgid "guestfs_get_path"
27497 #: ../src/guestfs-actions.pod:2189
27501 " guestfs_get_path (guestfs_h *g);\n"
27506 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
27508 "This function returns a string, or NULL on error. The string is owned by "
27509 "the guest handle and must I<not> be freed."
27513 #: ../src/guestfs-actions.pod:2202
27514 msgid "guestfs_get_pgroup"
27518 #: ../src/guestfs-actions.pod:2204
27522 " guestfs_get_pgroup (guestfs_h *g);\n"
27527 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
27528 #: ../src/guestfs-actions.pod:7863
27529 msgid "(Added in 1.11.18)"
27530 msgstr "(Додано у 1.11.18)"
27533 #: ../src/guestfs-actions.pod:2213
27534 msgid "guestfs_get_pid"
27538 #: ../src/guestfs-actions.pod:2215
27542 " guestfs_get_pid (guestfs_h *g);\n"
27547 #: ../src/guestfs-actions.pod:2225
27548 msgid "(Added in 1.0.56)"
27549 msgstr "(Додано у 1.0.56)"
27552 #: ../src/guestfs-actions.pod:2227
27553 msgid "guestfs_get_qemu"
27557 #: ../src/guestfs-actions.pod:2229
27561 " guestfs_get_qemu (guestfs_h *g);\n"
27566 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
27567 msgid "(Added in 1.0.6)"
27568 msgstr "(Додано у 1.0.6)"
27571 #: ../src/guestfs-actions.pod:2242
27572 msgid "guestfs_get_recovery_proc"
27576 #: ../src/guestfs-actions.pod:2244
27580 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27585 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
27586 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
27587 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
27588 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
27589 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
27590 #: ../src/guestfs-actions.pod:7486
27591 msgid "(Added in 1.0.77)"
27592 msgstr "(Додано у 1.0.77)"
27595 #: ../src/guestfs-actions.pod:2253
27596 msgid "guestfs_get_selinux"
27600 #: ../src/guestfs-actions.pod:2255
27604 " guestfs_get_selinux (guestfs_h *g);\n"
27609 #: ../src/guestfs-actions.pod:2258
27611 "This returns the current setting of the selinux flag which is passed to the "
27612 "appliance at boot time. See C<guestfs_set_selinux>."
27616 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
27617 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
27618 msgid "(Added in 1.0.67)"
27619 msgstr "(Додано у 1.0.67)"
27622 #: ../src/guestfs-actions.pod:2268
27623 msgid "guestfs_get_smp"
27627 #: ../src/guestfs-actions.pod:2270
27631 " guestfs_get_smp (guestfs_h *g);\n"
27636 #: ../src/guestfs-actions.pod:2279
27637 msgid "guestfs_get_state"
27641 #: ../src/guestfs-actions.pod:2281
27645 " guestfs_get_state (guestfs_h *g);\n"
27650 #: ../src/guestfs-actions.pod:2293
27651 msgid "guestfs_get_trace"
27655 #: ../src/guestfs-actions.pod:2295
27659 " guestfs_get_trace (guestfs_h *g);\n"
27664 #: ../src/guestfs-actions.pod:2304
27665 msgid "guestfs_get_umask"
27669 #: ../src/guestfs-actions.pod:2306
27673 " guestfs_get_umask (guestfs_h *g);\n"
27678 #: ../src/guestfs-actions.pod:2309
27680 "Return the current umask. By default the umask is C<022> unless it has been "
27681 "set by calling C<guestfs_umask>."
27685 #: ../src/guestfs-actions.pod:2316
27686 msgid "guestfs_get_verbose"
27690 #: ../src/guestfs-actions.pod:2318
27694 " guestfs_get_verbose (guestfs_h *g);\n"
27699 #: ../src/guestfs-actions.pod:2327
27700 msgid "guestfs_getcon"
27704 #: ../src/guestfs-actions.pod:2329
27708 " guestfs_getcon (guestfs_h *g);\n"
27713 #: ../src/guestfs-actions.pod:2334
27715 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27719 #: ../src/guestfs-actions.pod:2342
27720 msgid "guestfs_getxattr"
27724 #: ../src/guestfs-actions.pod:2344
27728 " guestfs_getxattr (guestfs_h *g,\n"
27729 " const char *path,\n"
27730 " const char *name,\n"
27731 " size_t *size_r);\n"
27736 #: ../src/guestfs-actions.pod:2350
27738 "Get a single extended attribute from file C<path> named C<name>. This call "
27739 "follows symlinks. If you want to lookup an extended attribute for the "
27740 "symlink itself, use C<guestfs_lgetxattr>."
27744 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27746 "Normally it is better to get all extended attributes from a file in one go "
27747 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
27748 "implementations are buggy and do not provide a way to list out attributes. "
27749 "For these filesystems (notably ntfs-3g) you have to know the names of the "
27750 "extended attributes you want in advance and call this function."
27754 #: ../src/guestfs-actions.pod:2364
27755 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27759 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27760 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27761 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27762 #: ../src/guestfs-actions.pod:5979
27764 "This function returns a buffer, or NULL on error. The size of the returned "
27765 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
27770 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27771 msgid "(Added in 1.7.24)"
27772 msgstr "(Додано у 1.7.24)"
27775 #: ../src/guestfs-actions.pod:2372
27776 msgid "guestfs_getxattrs"
27780 #: ../src/guestfs-actions.pod:2374
27783 " struct guestfs_xattr_list *\n"
27784 " guestfs_getxattrs (guestfs_h *g,\n"
27785 " const char *path);\n"
27790 #: ../src/guestfs-actions.pod:2384
27791 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27795 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27796 #: ../src/guestfs-actions.pod:4565
27798 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27799 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
27803 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27804 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27805 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27806 #: ../src/guestfs-actions.pod:8074
27807 msgid "(Added in 1.0.59)"
27808 msgstr "(Додано у 1.0.59)"
27811 #: ../src/guestfs-actions.pod:2392
27812 msgid "guestfs_glob_expand"
27816 #: ../src/guestfs-actions.pod:2394
27820 " guestfs_glob_expand (guestfs_h *g,\n"
27821 " const char *pattern);\n"
27826 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27827 #: ../src/guestfs-actions.pod:6889
27828 msgid "(Added in 1.0.50)"
27829 msgstr "(Додано у 1.0.50)"
27832 #: ../src/guestfs-actions.pod:2415
27833 msgid "guestfs_grep"
27837 #: ../src/guestfs-actions.pod:2417
27841 " guestfs_grep (guestfs_h *g,\n"
27842 " const char *regex,\n"
27843 " const char *path);\n"
27848 #: ../src/guestfs-actions.pod:2434
27849 msgid "guestfs_grepi"
27853 #: ../src/guestfs-actions.pod:2436
27857 " guestfs_grepi (guestfs_h *g,\n"
27858 " const char *regex,\n"
27859 " const char *path);\n"
27864 #: ../src/guestfs-actions.pod:2453
27865 msgid "guestfs_grub_install"
27869 #: ../src/guestfs-actions.pod:2455
27873 " guestfs_grub_install (guestfs_h *g,\n"
27874 " const char *root,\n"
27875 " const char *device);\n"
27880 #: ../src/guestfs-actions.pod:2498
27881 msgid "(Added in 1.0.17)"
27882 msgstr "(Додано у 1.0.17)"
27885 #: ../src/guestfs-actions.pod:2500
27886 msgid "guestfs_head"
27890 #: ../src/guestfs-actions.pod:2502
27894 " guestfs_head (guestfs_h *g,\n"
27895 " const char *path);\n"
27900 #: ../src/guestfs-actions.pod:2518
27901 msgid "guestfs_head_n"
27905 #: ../src/guestfs-actions.pod:2520
27909 " guestfs_head_n (guestfs_h *g,\n"
27911 " const char *path);\n"
27916 #: ../src/guestfs-actions.pod:2542
27917 msgid "guestfs_hexdump"
27921 #: ../src/guestfs-actions.pod:2544
27925 " guestfs_hexdump (guestfs_h *g,\n"
27926 " const char *path);\n"
27931 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
27932 #: ../src/guestfs-actions.pod:7008
27933 msgid "(Added in 1.0.22)"
27934 msgstr "(Додано у 1.0.22)"
27937 #: ../src/guestfs-actions.pod:2559
27938 msgid "guestfs_initrd_cat"
27942 #: ../src/guestfs-actions.pod:2561
27946 " guestfs_initrd_cat (guestfs_h *g,\n"
27947 " const char *initrdpath,\n"
27948 " const char *filename,\n"
27949 " size_t *size_r);\n"
27954 #: ../src/guestfs-actions.pod:2577
27955 msgid "See also C<guestfs_initrd_list>."
27959 #: ../src/guestfs-actions.pod:2588
27960 msgid "guestfs_initrd_list"
27964 #: ../src/guestfs-actions.pod:2590
27968 " guestfs_initrd_list (guestfs_h *g,\n"
27969 " const char *path);\n"
27974 #: ../src/guestfs-actions.pod:2610
27975 msgid "guestfs_inotify_add_watch"
27979 #: ../src/guestfs-actions.pod:2612
27983 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27984 " const char *path,\n"
27990 #: ../src/guestfs-actions.pod:2631
27991 msgid "guestfs_inotify_close"
27995 #: ../src/guestfs-actions.pod:2633
27999 " guestfs_inotify_close (guestfs_h *g);\n"
28004 #: ../src/guestfs-actions.pod:2644
28005 msgid "guestfs_inotify_files"
28009 #: ../src/guestfs-actions.pod:2646
28013 " guestfs_inotify_files (guestfs_h *g);\n"
28018 #: ../src/guestfs-actions.pod:2649
28020 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28021 "returns a list of pathnames of objects that were touched. The returned "
28022 "pathnames are sorted and deduplicated."
28026 #: ../src/guestfs-actions.pod:2659
28027 msgid "guestfs_inotify_init"
28031 #: ../src/guestfs-actions.pod:2661
28035 " guestfs_inotify_init (guestfs_h *g,\n"
28036 " int maxevents);\n"
28041 #: ../src/guestfs-actions.pod:2669
28043 "C<maxevents> is the maximum number of events which will be queued up between "
28044 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28045 "passed as C<0>, then the kernel (or previously set) default is used. For "
28046 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28047 "throws away events, but records the fact that it threw them away by setting "
28048 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28049 "C<guestfs_inotify_read>)."
28053 #: ../src/guestfs-actions.pod:2679
28055 "Before any events are generated, you have to add some watches to the "
28056 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28057 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28061 #: ../src/guestfs-actions.pod:2685
28063 "Queued up events should be read periodically by calling "
28064 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28065 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28066 "often enough then you risk the internal queue overflowing."
28070 #: ../src/guestfs-actions.pod:2692
28072 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28073 "This also removes any watches automatically."
28077 #: ../src/guestfs-actions.pod:2705
28078 msgid "guestfs_inotify_read"
28082 #: ../src/guestfs-actions.pod:2707
28085 " struct guestfs_inotify_event_list *\n"
28086 " guestfs_inotify_read (guestfs_h *g);\n"
28091 #: ../src/guestfs-actions.pod:2721
28093 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28094 "there was an error. I<The caller must call "
28095 "C<guestfs_free_inotify_event_list> after use>."
28099 #: ../src/guestfs-actions.pod:2727
28100 msgid "guestfs_inotify_rm_watch"
28104 #: ../src/guestfs-actions.pod:2729
28108 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28114 #: ../src/guestfs-actions.pod:2733
28116 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28120 #: ../src/guestfs-actions.pod:2740
28121 msgid "guestfs_inspect_get_arch"
28125 #: ../src/guestfs-actions.pod:2742
28129 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28130 " const char *root);\n"
28135 #: ../src/guestfs-actions.pod:2746
28137 "This returns the architecture of the inspected operating system. The "
28138 "possible return values are listed under C<guestfs_file_architecture>."
28142 #: ../src/guestfs-actions.pod:2760
28143 msgid "guestfs_inspect_get_distro"
28147 #: ../src/guestfs-actions.pod:2762
28151 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28152 " const char *root);\n"
28157 #: ../src/guestfs-actions.pod:2862
28158 msgid "guestfs_inspect_get_drive_mappings"
28162 #: ../src/guestfs-actions.pod:2864
28166 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28167 " const char *root);\n"
28172 #: ../src/guestfs-actions.pod:2893
28174 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28175 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28179 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
28180 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
28181 #: ../src/guestfs-actions.pod:7310
28183 "This function returns a NULL-terminated array of strings, or NULL if there "
28184 "was an error. The array of strings will always have length C<2n+1>, where "
28185 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28186 "caller must free the strings and the array after use>."
28190 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
28191 msgid "(Added in 1.9.17)"
28192 msgstr "(Додано у 1.9.17)"
28195 #: ../src/guestfs-actions.pod:2905
28196 msgid "guestfs_inspect_get_filesystems"
28200 #: ../src/guestfs-actions.pod:2907
28204 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28205 " const char *root);\n"
28210 #: ../src/guestfs-actions.pod:2919
28212 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28213 "C<guestfs_inspect_get_mountpoints>."
28217 #: ../src/guestfs-actions.pod:2928
28218 msgid "guestfs_inspect_get_format"
28222 #: ../src/guestfs-actions.pod:2930
28226 " guestfs_inspect_get_format (guestfs_h *g,\n"
28227 " const char *root);\n"
28232 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
28233 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
28234 #: ../src/guestfs-actions.pod:6190
28235 msgid "(Added in 1.9.4)"
28236 msgstr "(Додано у 1.9.4)"
28239 #: ../src/guestfs-actions.pod:2966
28240 msgid "guestfs_inspect_get_hostname"
28244 #: ../src/guestfs-actions.pod:2968
28248 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28249 " const char *root);\n"
28254 #: ../src/guestfs-actions.pod:2983
28255 msgid "(Added in 1.7.9)"
28256 msgstr "(Додано у 1.7.9)"
28259 #: ../src/guestfs-actions.pod:2985
28260 msgid "guestfs_inspect_get_icon"
28264 #: ../src/guestfs-actions.pod:2987
28268 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28269 " const char *root,\n"
28270 " size_t *size_r,\n"
28276 #: ../src/guestfs-actions.pod:2998
28279 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28280 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28285 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
28286 #: ../src/guestfs-actions.pod:5139
28287 msgid "(Added in 1.11.12)"
28288 msgstr "(Додано у 1.11.12)"
28291 #: ../src/guestfs-actions.pod:3067
28292 msgid "guestfs_inspect_get_icon_va"
28296 #: ../src/guestfs-actions.pod:3069
28300 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28301 " const char *root,\n"
28302 " size_t *size_r,\n"
28303 " va_list args);\n"
28308 #: ../src/guestfs-actions.pod:3075
28309 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28313 #: ../src/guestfs-actions.pod:3079
28314 msgid "guestfs_inspect_get_icon_argv"
28318 #: ../src/guestfs-actions.pod:3081
28322 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28323 " const char *root,\n"
28324 " size_t *size_r,\n"
28325 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
28330 #: ../src/guestfs-actions.pod:3087
28331 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28335 #: ../src/guestfs-actions.pod:3091
28336 msgid "guestfs_inspect_get_major_version"
28340 #: ../src/guestfs-actions.pod:3093
28344 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28345 " const char *root);\n"
28350 #: ../src/guestfs-actions.pod:3115
28351 msgid "guestfs_inspect_get_minor_version"
28355 #: ../src/guestfs-actions.pod:3117
28359 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28360 " const char *root);\n"
28365 #: ../src/guestfs-actions.pod:3126
28367 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28368 "C<guestfs_inspect_get_major_version>."
28372 #: ../src/guestfs-actions.pod:3133
28373 msgid "guestfs_inspect_get_mountpoints"
28377 #: ../src/guestfs-actions.pod:3135
28381 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28382 " const char *root);\n"
28387 #: ../src/guestfs-actions.pod:3156
28389 "For operating systems like Windows which still use drive letters, this call "
28390 "will only return an entry for the first drive \"mounted on\" C</>. For "
28391 "information about the mapping of drive letters to partitions, see "
28392 "C<guestfs_inspect_get_drive_mappings>."
28396 #: ../src/guestfs-actions.pod:3162
28398 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28399 "C<guestfs_inspect_get_filesystems>."
28403 #: ../src/guestfs-actions.pod:3173
28404 msgid "guestfs_inspect_get_package_format"
28408 #: ../src/guestfs-actions.pod:3175
28412 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28413 " const char *root);\n"
28418 #: ../src/guestfs-actions.pod:3179
28420 "This function and C<guestfs_inspect_get_package_management> return the "
28421 "package format and package management tool used by the inspected operating "
28422 "system. For example for Fedora these functions would return C<rpm> (package "
28423 "format) and C<yum> (package management)."
28427 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
28428 msgid "(Added in 1.7.5)"
28429 msgstr "(Додано у 1.7.5)"
28432 #: ../src/guestfs-actions.pod:3200
28433 msgid "guestfs_inspect_get_package_management"
28437 #: ../src/guestfs-actions.pod:3202
28441 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28442 " const char *root);\n"
28447 #: ../src/guestfs-actions.pod:3206
28449 "C<guestfs_inspect_get_package_format> and this function return the package "
28450 "format and package management tool used by the inspected operating system. "
28451 "For example for Fedora these functions would return C<rpm> (package format) "
28452 "and C<yum> (package management)."
28456 #: ../src/guestfs-actions.pod:3228
28457 msgid "guestfs_inspect_get_product_name"
28461 #: ../src/guestfs-actions.pod:3230
28465 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28466 " const char *root);\n"
28471 #: ../src/guestfs-actions.pod:3249
28472 msgid "guestfs_inspect_get_product_variant"
28476 #: ../src/guestfs-actions.pod:3251
28480 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28481 " const char *root);\n"
28486 #: ../src/guestfs-actions.pod:3274
28488 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28489 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28493 #: ../src/guestfs-actions.pod:3281
28494 msgid "(Added in 1.9.13)"
28495 msgstr "(Додано у 1.9.13)"
28498 #: ../src/guestfs-actions.pod:3283
28499 msgid "guestfs_inspect_get_roots"
28503 #: ../src/guestfs-actions.pod:3285
28507 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28512 #: ../src/guestfs-actions.pod:3288
28514 "This function is a convenient way to get the list of root devices, as "
28515 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28516 "the whole inspection process."
28520 #: ../src/guestfs-actions.pod:3292
28522 "This returns an empty list if either no root devices were found or the "
28523 "caller has not called C<guestfs_inspect_os>."
28527 #: ../src/guestfs-actions.pod:3301
28528 msgid "(Added in 1.7.3)"
28529 msgstr "(Додано у 1.7.3)"
28532 #: ../src/guestfs-actions.pod:3303
28533 msgid "guestfs_inspect_get_type"
28537 #: ../src/guestfs-actions.pod:3305
28541 " guestfs_inspect_get_type (guestfs_h *g,\n"
28542 " const char *root);\n"
28547 #: ../src/guestfs-actions.pod:3346
28548 msgid "guestfs_inspect_get_windows_current_control_set"
28552 #: ../src/guestfs-actions.pod:3348
28556 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28557 " const char *root);\n"
28562 #: ../src/guestfs-actions.pod:3366
28563 msgid "guestfs_inspect_get_windows_systemroot"
28567 #: ../src/guestfs-actions.pod:3368
28571 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28572 " const char *root);\n"
28577 #: ../src/guestfs-actions.pod:3384
28578 msgid "(Added in 1.5.25)"
28579 msgstr "(Додано у 1.5.25)"
28582 #: ../src/guestfs-actions.pod:3386
28583 msgid "guestfs_inspect_is_live"
28587 #: ../src/guestfs-actions.pod:3388
28591 " guestfs_inspect_is_live (guestfs_h *g,\n"
28592 " const char *root);\n"
28597 #: ../src/guestfs-actions.pod:3392
28599 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28600 "disk), then this returns true if a live image was detected on the disk."
28604 #: ../src/guestfs-actions.pod:3402
28605 msgid "guestfs_inspect_is_multipart"
28609 #: ../src/guestfs-actions.pod:3404
28613 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28614 " const char *root);\n"
28619 #: ../src/guestfs-actions.pod:3408
28621 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28622 "disk), then this returns true if the disk is part of a set."
28626 #: ../src/guestfs-actions.pod:3418
28627 msgid "guestfs_inspect_is_netinst"
28631 #: ../src/guestfs-actions.pod:3420
28635 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28636 " const char *root);\n"
28641 #: ../src/guestfs-actions.pod:3424
28643 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28644 "disk), then this returns true if the disk is a network installer, ie. not a "
28645 "self-contained install CD but one which is likely to require network access "
28646 "to complete the install."
28650 #: ../src/guestfs-actions.pod:3436
28651 msgid "guestfs_inspect_list_applications"
28655 #: ../src/guestfs-actions.pod:3438
28658 " struct guestfs_application_list *\n"
28659 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28660 " const char *root);\n"
28665 #: ../src/guestfs-actions.pod:3444
28667 "I<Note:> This call works differently from other parts of the inspection "
28668 "API. You have to call C<guestfs_inspect_os>, then "
28669 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28670 "this. Listing applications is a significantly more difficult operation "
28671 "which requires access to the full filesystem. Also note that unlike the "
28672 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28673 "the libguestfs handle, this call actually reads parts of the mounted "
28674 "filesystems during the call."
28678 #: ../src/guestfs-actions.pod:3534
28680 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28681 "there was an error. I<The caller must call C<guestfs_free_application_list> "
28686 #: ../src/guestfs-actions.pod:3538
28687 msgid "(Added in 1.7.8)"
28688 msgstr "(Додано у 1.7.8)"
28691 #: ../src/guestfs-actions.pod:3540
28692 msgid "guestfs_inspect_os"
28696 #: ../src/guestfs-actions.pod:3542
28700 " guestfs_inspect_os (guestfs_h *g);\n"
28705 #: ../src/guestfs-actions.pod:3558
28707 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28708 "functions in order to query further information about each operating system, "
28709 "such as the name and version."
28713 #: ../src/guestfs-actions.pod:3563
28715 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28716 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28717 "the contents. This should be called with no disks currently mounted. The "
28718 "function may also use Augeas, so any existing Augeas handle will be closed."
28722 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28723 #: ../src/guestfs-actions.pod:3988
28724 msgid "See also C<guestfs_list_filesystems>."
28728 #: ../src/guestfs-actions.pod:3583
28729 msgid "guestfs_is_blockdev"
28733 #: ../src/guestfs-actions.pod:3585
28737 " guestfs_is_blockdev (guestfs_h *g,\n"
28738 " const char *path);\n"
28743 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28744 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28745 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28746 #: ../src/guestfs-actions.pod:3753
28747 msgid "See also C<guestfs_stat>."
28751 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28752 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28753 #: ../src/guestfs-actions.pod:3757
28754 msgid "(Added in 1.5.10)"
28755 msgstr "(Додано у 1.5.10)"
28758 #: ../src/guestfs-actions.pod:3598
28759 msgid "guestfs_is_busy"
28763 #: ../src/guestfs-actions.pod:3600
28767 " guestfs_is_busy (guestfs_h *g);\n"
28772 #: ../src/guestfs-actions.pod:3612
28773 msgid "guestfs_is_chardev"
28777 #: ../src/guestfs-actions.pod:3614
28781 " guestfs_is_chardev (guestfs_h *g,\n"
28782 " const char *path);\n"
28787 #: ../src/guestfs-actions.pod:3627
28788 msgid "guestfs_is_config"
28792 #: ../src/guestfs-actions.pod:3629
28796 " guestfs_is_config (guestfs_h *g);\n"
28801 #: ../src/guestfs-actions.pod:3641
28802 msgid "guestfs_is_dir"
28806 #: ../src/guestfs-actions.pod:3643
28810 " guestfs_is_dir (guestfs_h *g,\n"
28811 " const char *path);\n"
28816 #: ../src/guestfs-actions.pod:3657
28817 msgid "guestfs_is_fifo"
28821 #: ../src/guestfs-actions.pod:3659
28825 " guestfs_is_fifo (guestfs_h *g,\n"
28826 " const char *path);\n"
28831 #: ../src/guestfs-actions.pod:3672
28832 msgid "guestfs_is_file"
28836 #: ../src/guestfs-actions.pod:3674
28840 " guestfs_is_file (guestfs_h *g,\n"
28841 " const char *path);\n"
28846 #: ../src/guestfs-actions.pod:3688
28847 msgid "guestfs_is_launching"
28851 #: ../src/guestfs-actions.pod:3690
28855 " guestfs_is_launching (guestfs_h *g);\n"
28860 #: ../src/guestfs-actions.pod:3702
28861 msgid "guestfs_is_lv"
28865 #: ../src/guestfs-actions.pod:3704
28869 " guestfs_is_lv (guestfs_h *g,\n"
28870 " const char *device);\n"
28875 #: ../src/guestfs-actions.pod:3715
28876 msgid "guestfs_is_ready"
28880 #: ../src/guestfs-actions.pod:3717
28884 " guestfs_is_ready (guestfs_h *g);\n"
28889 #: ../src/guestfs-actions.pod:3729
28890 msgid "guestfs_is_socket"
28894 #: ../src/guestfs-actions.pod:3731
28898 " guestfs_is_socket (guestfs_h *g,\n"
28899 " const char *path);\n"
28904 #: ../src/guestfs-actions.pod:3744
28905 msgid "guestfs_is_symlink"
28909 #: ../src/guestfs-actions.pod:3746
28913 " guestfs_is_symlink (guestfs_h *g,\n"
28914 " const char *path);\n"
28919 #: ../src/guestfs-actions.pod:3759
28920 msgid "guestfs_is_zero"
28924 #: ../src/guestfs-actions.pod:3761
28928 " guestfs_is_zero (guestfs_h *g,\n"
28929 " const char *path);\n"
28934 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
28935 msgid "(Added in 1.11.8)"
28936 msgstr "(Додано у 1.11.8)"
28939 #: ../src/guestfs-actions.pod:3772
28940 msgid "guestfs_is_zero_device"
28944 #: ../src/guestfs-actions.pod:3774
28948 " guestfs_is_zero_device (guestfs_h *g,\n"
28949 " const char *device);\n"
28954 #: ../src/guestfs-actions.pod:3786
28955 msgid "guestfs_kill_subprocess"
28959 #: ../src/guestfs-actions.pod:3788
28963 " guestfs_kill_subprocess (guestfs_h *g);\n"
28968 #: ../src/guestfs-actions.pod:3797
28969 msgid "guestfs_launch"
28973 #: ../src/guestfs-actions.pod:3799
28977 " guestfs_launch (guestfs_h *g);\n"
28982 #: ../src/guestfs-actions.pod:3817
28983 msgid "guestfs_lchown"
28987 #: ../src/guestfs-actions.pod:3819
28991 " guestfs_lchown (guestfs_h *g,\n"
28994 " const char *path);\n"
28999 #: ../src/guestfs-actions.pod:3825
29001 "Change the file owner to C<owner> and group to C<group>. This is like "
29002 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29003 "changed, not the target."
29007 #: ../src/guestfs-actions.pod:3837
29008 msgid "guestfs_lgetxattr"
29012 #: ../src/guestfs-actions.pod:3839
29016 " guestfs_lgetxattr (guestfs_h *g,\n"
29017 " const char *path,\n"
29018 " const char *name,\n"
29019 " size_t *size_r);\n"
29024 #: ../src/guestfs-actions.pod:3859
29025 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29029 #: ../src/guestfs-actions.pod:3867
29030 msgid "guestfs_lgetxattrs"
29034 #: ../src/guestfs-actions.pod:3869
29037 " struct guestfs_xattr_list *\n"
29038 " guestfs_lgetxattrs (guestfs_h *g,\n"
29039 " const char *path);\n"
29044 #: ../src/guestfs-actions.pod:3873
29046 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29047 "then it returns the extended attributes of the link itself."
29051 #: ../src/guestfs-actions.pod:3883
29052 msgid "guestfs_list_9p"
29056 #: ../src/guestfs-actions.pod:3885
29060 " guestfs_list_9p (guestfs_h *g);\n"
29065 #: ../src/guestfs-actions.pod:3897
29066 msgid "guestfs_list_devices"
29070 #: ../src/guestfs-actions.pod:3899
29074 " guestfs_list_devices (guestfs_h *g);\n"
29079 #: ../src/guestfs-actions.pod:3914
29080 msgid "guestfs_list_dm_devices"
29084 #: ../src/guestfs-actions.pod:3916
29088 " guestfs_list_dm_devices (guestfs_h *g);\n"
29093 #: ../src/guestfs-actions.pod:3921
29095 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29096 "previous call to C<guestfs_luks_open>."
29100 #: ../src/guestfs-actions.pod:3924
29102 "Device mapper devices which correspond to logical volumes are I<not> "
29103 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29108 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
29109 msgid "(Added in 1.11.15)"
29110 msgstr "(Додано у 1.11.15)"
29113 #: ../src/guestfs-actions.pod:3934
29114 msgid "guestfs_list_filesystems"
29118 #: ../src/guestfs-actions.pod:3936
29122 " guestfs_list_filesystems (guestfs_h *g);\n"
29127 #: ../src/guestfs-actions.pod:3956
29129 "This command runs other libguestfs commands, which might include "
29130 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29131 "soon after launch and only when nothing is mounted."
29135 #: ../src/guestfs-actions.pod:3960
29137 "Not all of the filesystems returned will be mountable. In particular, swap "
29138 "partitions are returned in the list. Also this command does not check that "
29139 "each filesystem found is valid and mountable, and some filesystems might be "
29140 "mountable but require special options. Filesystems may not all belong to a "
29141 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29145 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
29146 msgid "(Added in 1.5.15)"
29147 msgstr "(Додано у 1.5.15)"
29150 #: ../src/guestfs-actions.pod:3976
29151 msgid "guestfs_list_partitions"
29152 msgstr "guestfs_list_partitions"
29155 #: ../src/guestfs-actions.pod:3978
29159 " guestfs_list_partitions (guestfs_h *g);\n"
29163 " guestfs_list_partitions (guestfs_h *g);\n"
29167 #: ../src/guestfs-actions.pod:3985
29169 "This does not return logical volumes. For that you will need to call "
29174 #: ../src/guestfs-actions.pod:3996
29176 msgstr "guestfs_ll"
29179 #: ../src/guestfs-actions.pod:3998
29183 " guestfs_ll (guestfs_h *g,\n"
29184 " const char *directory);\n"
29188 " guestfs_ll (guestfs_h *g,\n"
29189 " const char *directory);\n"
29193 #: ../src/guestfs-actions.pod:4013
29195 msgstr "guestfs_ln"
29198 #: ../src/guestfs-actions.pod:4015
29202 " guestfs_ln (guestfs_h *g,\n"
29203 " const char *target,\n"
29204 " const char *linkname);\n"
29208 " guestfs_ln (guestfs_h *g,\n"
29209 " const char *target,\n"
29210 " const char *linkname);\n"
29214 #: ../src/guestfs-actions.pod:4026
29215 msgid "guestfs_ln_f"
29216 msgstr "guestfs_ln_f"
29219 #: ../src/guestfs-actions.pod:4028
29223 " guestfs_ln_f (guestfs_h *g,\n"
29224 " const char *target,\n"
29225 " const char *linkname);\n"
29229 " guestfs_ln_f (guestfs_h *g,\n"
29230 " const char *target,\n"
29231 " const char *linkname);\n"
29235 #: ../src/guestfs-actions.pod:4040
29236 msgid "guestfs_ln_s"
29237 msgstr "guestfs_ln_s"
29240 #: ../src/guestfs-actions.pod:4042
29244 " guestfs_ln_s (guestfs_h *g,\n"
29245 " const char *target,\n"
29246 " const char *linkname);\n"
29250 " guestfs_ln_s (guestfs_h *g,\n"
29251 " const char *target,\n"
29252 " const char *linkname);\n"
29256 #: ../src/guestfs-actions.pod:4053
29257 msgid "guestfs_ln_sf"
29258 msgstr "guestfs_ln_sf"
29261 #: ../src/guestfs-actions.pod:4055
29265 " guestfs_ln_sf (guestfs_h *g,\n"
29266 " const char *target,\n"
29267 " const char *linkname);\n"
29271 " guestfs_ln_sf (guestfs_h *g,\n"
29272 " const char *target,\n"
29273 " const char *linkname);\n"
29277 #: ../src/guestfs-actions.pod:4067
29278 msgid "guestfs_lremovexattr"
29279 msgstr "guestfs_lremovexattr"
29282 #: ../src/guestfs-actions.pod:4069
29286 " guestfs_lremovexattr (guestfs_h *g,\n"
29287 " const char *xattr,\n"
29288 " const char *path);\n"
29292 " guestfs_lremovexattr (guestfs_h *g,\n"
29293 " const char *xattr,\n"
29294 " const char *path);\n"
29298 #: ../src/guestfs-actions.pod:4074
29300 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29301 "link, then it removes an extended attribute of the link itself."
29305 #: ../src/guestfs-actions.pod:4082
29307 msgstr "guestfs_ls"
29310 #: ../src/guestfs-actions.pod:4084
29314 " guestfs_ls (guestfs_h *g,\n"
29315 " const char *directory);\n"
29319 " guestfs_ls (guestfs_h *g,\n"
29320 " const char *directory);\n"
29324 #: ../src/guestfs-actions.pod:4092
29326 "This command is mostly useful for interactive sessions. Programs should "
29327 "probably use C<guestfs_readdir> instead."
29331 #: ../src/guestfs-actions.pod:4101
29332 msgid "guestfs_lsetxattr"
29333 msgstr "guestfs_lsetxattr"
29336 #: ../src/guestfs-actions.pod:4103
29340 " guestfs_lsetxattr (guestfs_h *g,\n"
29341 " const char *xattr,\n"
29342 " const char *val,\n"
29344 " const char *path);\n"
29348 " guestfs_lsetxattr (guestfs_h *g,\n"
29349 " const char *xattr,\n"
29350 " const char *val,\n"
29352 " const char *path);\n"
29356 #: ../src/guestfs-actions.pod:4110
29358 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29359 "then it sets an extended attribute of the link itself."
29363 #: ../src/guestfs-actions.pod:4118
29364 msgid "guestfs_lstat"
29365 msgstr "guestfs_lstat"
29368 #: ../src/guestfs-actions.pod:4120
29371 " struct guestfs_stat *\n"
29372 " guestfs_lstat (guestfs_h *g,\n"
29373 " const char *path);\n"
29376 " struct guestfs_stat *\n"
29377 " guestfs_lstat (guestfs_h *g,\n"
29378 " const char *path);\n"
29382 #: ../src/guestfs-actions.pod:4126
29384 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29385 "link, then the link is stat-ed, not the file it refers to."
29389 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
29391 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29392 "error. I<The caller must call C<guestfs_free_stat> after use>."
29396 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
29397 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
29398 msgid "(Added in 0.9.2)"
29399 msgstr "(Додано у 0.9.2)"
29402 #: ../src/guestfs-actions.pod:4138
29403 msgid "guestfs_lstatlist"
29404 msgstr "guestfs_lstatlist"
29407 #: ../src/guestfs-actions.pod:4140
29410 " struct guestfs_stat_list *\n"
29411 " guestfs_lstatlist (guestfs_h *g,\n"
29412 " const char *path,\n"
29413 " char *const *names);\n"
29416 " struct guestfs_stat_list *\n"
29417 " guestfs_lstatlist (guestfs_h *g,\n"
29418 " const char *path,\n"
29419 " char *const *names);\n"
29423 #: ../src/guestfs-actions.pod:4145
29425 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29426 "files, where all files are in the directory C<path>. C<names> is the list "
29427 "of files from this directory."
29431 #: ../src/guestfs-actions.pod:4154
29433 "This call is intended for programs that want to efficiently list a directory "
29434 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
29435 "for a similarly efficient call for getting extended attributes. Very long "
29436 "directory listings might cause the protocol message size to be exceeded, "
29437 "causing this call to fail. The caller must split up such requests into "
29438 "smaller groups of names."
29442 #: ../src/guestfs-actions.pod:4162
29444 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29445 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
29449 #: ../src/guestfs-actions.pod:4168
29450 msgid "guestfs_luks_add_key"
29451 msgstr "guestfs_luks_add_key"
29454 #: ../src/guestfs-actions.pod:4170
29458 " guestfs_luks_add_key (guestfs_h *g,\n"
29459 " const char *device,\n"
29460 " const char *key,\n"
29461 " const char *newkey,\n"
29466 " guestfs_luks_add_key (guestfs_h *g,\n"
29467 " const char *device,\n"
29468 " const char *key,\n"
29469 " const char *newkey,\n"
29474 #: ../src/guestfs-actions.pod:4182
29476 "Note that if C<keyslot> already contains a key, then this command will "
29477 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
29481 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
29482 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
29483 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
29485 "This function takes a key or passphrase parameter which could contain "
29486 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
29491 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
29492 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
29493 msgid "(Added in 1.5.2)"
29494 msgstr "(Додано у 1.5.2)"
29497 #: ../src/guestfs-actions.pod:4194
29498 msgid "guestfs_luks_close"
29499 msgstr "guestfs_luks_close"
29502 #: ../src/guestfs-actions.pod:4196
29506 " guestfs_luks_close (guestfs_h *g,\n"
29507 " const char *device);\n"
29511 " guestfs_luks_close (guestfs_h *g,\n"
29512 " const char *device);\n"
29516 #: ../src/guestfs-actions.pod:4200
29518 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29519 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
29520 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29521 "underlying block device."
29525 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
29526 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
29527 #: ../src/guestfs-actions.pod:4427
29528 msgid "(Added in 1.5.1)"
29529 msgstr "(Додано у 1.5.1)"
29532 #: ../src/guestfs-actions.pod:4210
29533 msgid "guestfs_luks_format"
29534 msgstr "guestfs_luks_format"
29537 #: ../src/guestfs-actions.pod:4212
29541 " guestfs_luks_format (guestfs_h *g,\n"
29542 " const char *device,\n"
29543 " const char *key,\n"
29548 " guestfs_luks_format (guestfs_h *g,\n"
29549 " const char *device,\n"
29550 " const char *key,\n"
29555 #: ../src/guestfs-actions.pod:4234
29556 msgid "guestfs_luks_format_cipher"
29557 msgstr "guestfs_luks_format_cipher"
29560 #: ../src/guestfs-actions.pod:4236
29564 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29565 " const char *device,\n"
29566 " const char *key,\n"
29568 " const char *cipher);\n"
29572 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29573 " const char *device,\n"
29574 " const char *key,\n"
29576 " const char *cipher);\n"
29580 #: ../src/guestfs-actions.pod:4243
29582 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29583 "set the C<cipher> used."
29587 #: ../src/guestfs-actions.pod:4257
29588 msgid "guestfs_luks_kill_slot"
29589 msgstr "guestfs_luks_kill_slot"
29592 #: ../src/guestfs-actions.pod:4259
29596 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29597 " const char *device,\n"
29598 " const char *key,\n"
29603 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29604 " const char *device,\n"
29605 " const char *key,\n"
29610 #: ../src/guestfs-actions.pod:4277
29611 msgid "guestfs_luks_open"
29612 msgstr "guestfs_luks_open"
29615 #: ../src/guestfs-actions.pod:4279
29619 " guestfs_luks_open (guestfs_h *g,\n"
29620 " const char *device,\n"
29621 " const char *key,\n"
29622 " const char *mapname);\n"
29626 " guestfs_luks_open (guestfs_h *g,\n"
29627 " const char *device,\n"
29628 " const char *key,\n"
29629 " const char *mapname);\n"
29633 #: ../src/guestfs-actions.pod:4297
29635 "If this block device contains LVM volume groups, then calling "
29636 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29641 #: ../src/guestfs-actions.pod:4301
29642 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29646 #: ../src/guestfs-actions.pod:4312
29647 msgid "guestfs_luks_open_ro"
29648 msgstr "guestfs_luks_open_ro"
29651 #: ../src/guestfs-actions.pod:4314
29655 " guestfs_luks_open_ro (guestfs_h *g,\n"
29656 " const char *device,\n"
29657 " const char *key,\n"
29658 " const char *mapname);\n"
29662 " guestfs_luks_open_ro (guestfs_h *g,\n"
29663 " const char *device,\n"
29664 " const char *key,\n"
29665 " const char *mapname);\n"
29669 #: ../src/guestfs-actions.pod:4320
29671 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29676 #: ../src/guestfs-actions.pod:4331
29677 msgid "guestfs_lvcreate"
29678 msgstr "guestfs_lvcreate"
29681 #: ../src/guestfs-actions.pod:4333
29685 " guestfs_lvcreate (guestfs_h *g,\n"
29686 " const char *logvol,\n"
29687 " const char *volgroup,\n"
29692 " guestfs_lvcreate (guestfs_h *g,\n"
29693 " const char *logvol,\n"
29694 " const char *volgroup,\n"
29699 #: ../src/guestfs-actions.pod:4346
29700 msgid "guestfs_lvm_canonical_lv_name"
29701 msgstr "guestfs_lvm_canonical_lv_name"
29704 #: ../src/guestfs-actions.pod:4348
29708 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29709 " const char *lvname);\n"
29713 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29714 " const char *lvname);\n"
29718 #: ../src/guestfs-actions.pod:4359
29719 msgid "See also C<guestfs_is_lv>."
29723 #: ../src/guestfs-actions.pod:4364
29724 msgid "(Added in 1.5.24)"
29725 msgstr "(Додано у 1.5.24)"
29728 #: ../src/guestfs-actions.pod:4366
29729 msgid "guestfs_lvm_clear_filter"
29730 msgstr "guestfs_lvm_clear_filter"
29733 #: ../src/guestfs-actions.pod:4368
29737 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29741 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29745 #: ../src/guestfs-actions.pod:4371
29747 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
29748 "see every block device."
29752 #: ../src/guestfs-actions.pod:4381
29753 msgid "guestfs_lvm_remove_all"
29754 msgstr "guestfs_lvm_remove_all"
29757 #: ../src/guestfs-actions.pod:4383
29761 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29765 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29769 #: ../src/guestfs-actions.pod:4396
29770 msgid "guestfs_lvm_set_filter"
29771 msgstr "guestfs_lvm_set_filter"
29774 #: ../src/guestfs-actions.pod:4398
29778 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29779 " char *const *devices);\n"
29783 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29784 " char *const *devices);\n"
29788 #: ../src/guestfs-actions.pod:4429
29789 msgid "guestfs_lvremove"
29790 msgstr "guestfs_lvremove"
29793 #: ../src/guestfs-actions.pod:4431
29797 " guestfs_lvremove (guestfs_h *g,\n"
29798 " const char *device);\n"
29802 " guestfs_lvremove (guestfs_h *g,\n"
29803 " const char *device);\n"
29807 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29808 #: ../src/guestfs-actions.pod:7686
29809 msgid "(Added in 1.0.13)"
29810 msgstr "(Додано у 1.0.13)"
29813 #: ../src/guestfs-actions.pod:4445
29814 msgid "guestfs_lvrename"
29815 msgstr "guestfs_lvrename"
29818 #: ../src/guestfs-actions.pod:4447
29822 " guestfs_lvrename (guestfs_h *g,\n"
29823 " const char *logvol,\n"
29824 " const char *newlogvol);\n"
29828 " guestfs_lvrename (guestfs_h *g,\n"
29829 " const char *logvol,\n"
29830 " const char *newlogvol);\n"
29834 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29835 msgid "(Added in 1.0.83)"
29836 msgstr "(Додано у 1.0.83)"
29839 #: ../src/guestfs-actions.pod:4458
29840 msgid "guestfs_lvresize"
29841 msgstr "guestfs_lvresize"
29844 #: ../src/guestfs-actions.pod:4460
29848 " guestfs_lvresize (guestfs_h *g,\n"
29849 " const char *device,\n"
29854 " guestfs_lvresize (guestfs_h *g,\n"
29855 " const char *device,\n"
29860 #: ../src/guestfs-actions.pod:4473
29861 msgid "guestfs_lvresize_free"
29862 msgstr "guestfs_lvresize_free"
29865 #: ../src/guestfs-actions.pod:4475
29869 " guestfs_lvresize_free (guestfs_h *g,\n"
29870 " const char *lv,\n"
29875 " guestfs_lvresize_free (guestfs_h *g,\n"
29876 " const char *lv,\n"
29881 #: ../src/guestfs-actions.pod:4488
29882 msgid "(Added in 1.3.3)"
29883 msgstr "(Додано у 1.3.3)"
29886 #: ../src/guestfs-actions.pod:4490
29887 msgid "guestfs_lvs"
29888 msgstr "guestfs_lvs"
29891 #: ../src/guestfs-actions.pod:4492
29895 " guestfs_lvs (guestfs_h *g);\n"
29899 " guestfs_lvs (guestfs_h *g);\n"
29903 #: ../src/guestfs-actions.pod:4501
29904 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29908 #: ../src/guestfs-actions.pod:4509
29909 msgid "guestfs_lvs_full"
29910 msgstr "guestfs_lvs_full"
29913 #: ../src/guestfs-actions.pod:4511
29916 " struct guestfs_lvm_lv_list *\n"
29917 " guestfs_lvs_full (guestfs_h *g);\n"
29920 " struct guestfs_lvm_lv_list *\n"
29921 " guestfs_lvs_full (guestfs_h *g);\n"
29925 #: ../src/guestfs-actions.pod:4517
29927 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29928 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29932 #: ../src/guestfs-actions.pod:4523
29933 msgid "guestfs_lvuuid"
29934 msgstr "guestfs_lvuuid"
29937 #: ../src/guestfs-actions.pod:4525
29941 " guestfs_lvuuid (guestfs_h *g,\n"
29942 " const char *device);\n"
29946 " guestfs_lvuuid (guestfs_h *g,\n"
29947 " const char *device);\n"
29951 #: ../src/guestfs-actions.pod:4536
29952 msgid "guestfs_lxattrlist"
29953 msgstr "guestfs_lxattrlist"
29956 #: ../src/guestfs-actions.pod:4538
29959 " struct guestfs_xattr_list *\n"
29960 " guestfs_lxattrlist (guestfs_h *g,\n"
29961 " const char *path,\n"
29962 " char *const *names);\n"
29965 " struct guestfs_xattr_list *\n"
29966 " guestfs_lxattrlist (guestfs_h *g,\n"
29967 " const char *path,\n"
29968 " char *const *names);\n"
29972 #: ../src/guestfs-actions.pod:4557
29974 "This call is intended for programs that want to efficiently list a directory "
29975 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
29976 "a similarly efficient call for getting standard stats. Very long directory "
29977 "listings might cause the protocol message size to be exceeded, causing this "
29978 "call to fail. The caller must split up such requests into smaller groups of "
29983 #: ../src/guestfs-actions.pod:4571
29984 msgid "guestfs_mkdir"
29985 msgstr "guestfs_mkdir"
29988 #: ../src/guestfs-actions.pod:4573
29992 " guestfs_mkdir (guestfs_h *g,\n"
29993 " const char *path);\n"
29997 " guestfs_mkdir (guestfs_h *g,\n"
29998 " const char *path);\n"
30002 #: ../src/guestfs-actions.pod:4583
30003 msgid "guestfs_mkdir_mode"
30004 msgstr "guestfs_mkdir_mode"
30007 #: ../src/guestfs-actions.pod:4585
30011 " guestfs_mkdir_mode (guestfs_h *g,\n"
30012 " const char *path,\n"
30017 " guestfs_mkdir_mode (guestfs_h *g,\n"
30018 " const char *path,\n"
30023 #: ../src/guestfs-actions.pod:4597
30024 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30028 #: ../src/guestfs-actions.pod:4603
30029 msgid "guestfs_mkdir_p"
30030 msgstr "guestfs_mkdir_p"
30033 #: ../src/guestfs-actions.pod:4605
30037 " guestfs_mkdir_p (guestfs_h *g,\n"
30038 " const char *path);\n"
30042 " guestfs_mkdir_p (guestfs_h *g,\n"
30043 " const char *path);\n"
30047 #: ../src/guestfs-actions.pod:4616
30048 msgid "guestfs_mkdtemp"
30049 msgstr "guestfs_mkdtemp"
30052 #: ../src/guestfs-actions.pod:4618
30056 " guestfs_mkdtemp (guestfs_h *g,\n"
30057 " const char *template);\n"
30061 " guestfs_mkdtemp (guestfs_h *g,\n"
30062 " const char *template);\n"
30066 #: ../src/guestfs-actions.pod:4646
30067 msgid "guestfs_mke2fs_J"
30068 msgstr "guestfs_mke2fs_J"
30071 #: ../src/guestfs-actions.pod:4648
30075 " guestfs_mke2fs_J (guestfs_h *g,\n"
30076 " const char *fstype,\n"
30077 " int blocksize,\n"
30078 " const char *device,\n"
30079 " const char *journal);\n"
30083 " guestfs_mke2fs_J (guestfs_h *g,\n"
30084 " const char *fstype,\n"
30085 " int blocksize,\n"
30086 " const char *device,\n"
30087 " const char *journal);\n"
30091 #: ../src/guestfs-actions.pod:4661
30092 msgid "See also C<guestfs_mke2journal>."
30096 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
30097 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
30098 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
30099 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
30100 msgid "(Added in 1.0.68)"
30101 msgstr "(Додано у 1.0.68)"
30104 #: ../src/guestfs-actions.pod:4667
30105 msgid "guestfs_mke2fs_JL"
30106 msgstr "guestfs_mke2fs_JL"
30109 #: ../src/guestfs-actions.pod:4669
30113 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30114 " const char *fstype,\n"
30115 " int blocksize,\n"
30116 " const char *device,\n"
30117 " const char *label);\n"
30121 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30122 " const char *fstype,\n"
30123 " int blocksize,\n"
30124 " const char *device,\n"
30125 " const char *label);\n"
30129 #: ../src/guestfs-actions.pod:4679
30130 msgid "See also C<guestfs_mke2journal_L>."
30134 #: ../src/guestfs-actions.pod:4685
30135 msgid "guestfs_mke2fs_JU"
30136 msgstr "guestfs_mke2fs_JU"
30139 #: ../src/guestfs-actions.pod:4687
30143 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30144 " const char *fstype,\n"
30145 " int blocksize,\n"
30146 " const char *device,\n"
30147 " const char *uuid);\n"
30151 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30152 " const char *fstype,\n"
30153 " int blocksize,\n"
30154 " const char *device,\n"
30155 " const char *uuid);\n"
30159 #: ../src/guestfs-actions.pod:4697
30160 msgid "See also C<guestfs_mke2journal_U>."
30164 #: ../src/guestfs-actions.pod:4703
30165 msgid "guestfs_mke2journal"
30166 msgstr "guestfs_mke2journal"
30169 #: ../src/guestfs-actions.pod:4705
30173 " guestfs_mke2journal (guestfs_h *g,\n"
30174 " int blocksize,\n"
30175 " const char *device);\n"
30179 " guestfs_mke2journal (guestfs_h *g,\n"
30180 " int blocksize,\n"
30181 " const char *device);\n"
30185 #: ../src/guestfs-actions.pod:4719
30186 msgid "guestfs_mke2journal_L"
30187 msgstr "guestfs_mke2journal_L"
30190 #: ../src/guestfs-actions.pod:4721
30194 " guestfs_mke2journal_L (guestfs_h *g,\n"
30195 " int blocksize,\n"
30196 " const char *label,\n"
30197 " const char *device);\n"
30201 " guestfs_mke2journal_L (guestfs_h *g,\n"
30202 " int blocksize,\n"
30203 " const char *label,\n"
30204 " const char *device);\n"
30208 #: ../src/guestfs-actions.pod:4733
30209 msgid "guestfs_mke2journal_U"
30210 msgstr "guestfs_mke2journal_U"
30213 #: ../src/guestfs-actions.pod:4735
30217 " guestfs_mke2journal_U (guestfs_h *g,\n"
30218 " int blocksize,\n"
30219 " const char *uuid,\n"
30220 " const char *device);\n"
30224 " guestfs_mke2journal_U (guestfs_h *g,\n"
30225 " int blocksize,\n"
30226 " const char *uuid,\n"
30227 " const char *device);\n"
30231 #: ../src/guestfs-actions.pod:4747
30232 msgid "guestfs_mkfifo"
30233 msgstr "guestfs_mkfifo"
30236 #: ../src/guestfs-actions.pod:4749
30240 " guestfs_mkfifo (guestfs_h *g,\n"
30242 " const char *path);\n"
30246 " guestfs_mkfifo (guestfs_h *g,\n"
30248 " const char *path);\n"
30252 #: ../src/guestfs-actions.pod:4754
30254 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
30255 "is just a convenient wrapper around C<guestfs_mknod>."
30259 #: ../src/guestfs-actions.pod:4764
30260 msgid "guestfs_mkfs"
30261 msgstr "guestfs_mkfs"
30264 #: ../src/guestfs-actions.pod:4766
30268 " guestfs_mkfs (guestfs_h *g,\n"
30269 " const char *fstype,\n"
30270 " const char *device);\n"
30274 " guestfs_mkfs (guestfs_h *g,\n"
30275 " const char *fstype,\n"
30276 " const char *device);\n"
30280 #: ../src/guestfs-actions.pod:4779
30281 msgid "guestfs_mkfs_b"
30282 msgstr "guestfs_mkfs_b"
30285 #: ../src/guestfs-actions.pod:4781
30289 " guestfs_mkfs_b (guestfs_h *g,\n"
30290 " const char *fstype,\n"
30291 " int blocksize,\n"
30292 " const char *device);\n"
30296 " guestfs_mkfs_b (guestfs_h *g,\n"
30297 " const char *fstype,\n"
30298 " int blocksize,\n"
30299 " const char *device);\n"
30303 #: ../src/guestfs-actions.pod:4787
30305 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30310 #: ../src/guestfs-actions.pod:4794
30312 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30313 "block size of the resulting filesystem. Supported block sizes depend on the "
30314 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30318 #: ../src/guestfs-actions.pod:4806
30319 msgid "guestfs_mkfs_opts"
30320 msgstr "guestfs_mkfs_opts"
30323 #: ../src/guestfs-actions.pod:4808
30327 " guestfs_mkfs_opts (guestfs_h *g,\n"
30328 " const char *fstype,\n"
30329 " const char *device,\n"
30334 " guestfs_mkfs_opts (guestfs_h *g,\n"
30335 " const char *fstype,\n"
30336 " const char *device,\n"
30341 #: ../src/guestfs-actions.pod:4819
30344 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30345 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30346 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30347 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30352 #: ../src/guestfs-actions.pod:4867
30353 msgid "(Added in 1.7.19)"
30354 msgstr "(Додано у 1.7.19)"
30357 #: ../src/guestfs-actions.pod:4869
30358 msgid "guestfs_mkfs_opts_va"
30359 msgstr "guestfs_mkfs_opts_va"
30362 #: ../src/guestfs-actions.pod:4871
30366 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30367 " const char *fstype,\n"
30368 " const char *device,\n"
30369 " va_list args);\n"
30373 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30374 " const char *fstype,\n"
30375 " const char *device,\n"
30376 " va_list args);\n"
30380 #: ../src/guestfs-actions.pod:4877
30381 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30385 #: ../src/guestfs-actions.pod:4881
30386 msgid "guestfs_mkfs_opts_argv"
30387 msgstr "guestfs_mkfs_opts_argv"
30390 #: ../src/guestfs-actions.pod:4883
30394 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30395 " const char *fstype,\n"
30396 " const char *device,\n"
30397 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30401 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30402 " const char *fstype,\n"
30403 " const char *device,\n"
30404 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30408 #: ../src/guestfs-actions.pod:4889
30409 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30413 #: ../src/guestfs-actions.pod:4893
30414 msgid "guestfs_mkmountpoint"
30415 msgstr "guestfs_mkmountpoint"
30418 #: ../src/guestfs-actions.pod:4895
30422 " guestfs_mkmountpoint (guestfs_h *g,\n"
30423 " const char *exemptpath);\n"
30427 " guestfs_mkmountpoint (guestfs_h *g,\n"
30428 " const char *exemptpath);\n"
30432 #: ../src/guestfs-actions.pod:4899
30434 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30435 "that can be used to create extra mountpoints before mounting the first "
30440 #: ../src/guestfs-actions.pod:4923
30442 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
30443 "may get unexpected errors if you try to mix these calls. It is safest to "
30444 "manually unmount filesystems and remove mountpoints after use."
30448 #: ../src/guestfs-actions.pod:4927
30450 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30451 "first, so for this to work for manual mountpoints, you must ensure that the "
30452 "innermost mountpoints have the longest pathnames, as in the example code "
30457 #: ../src/guestfs-actions.pod:4934
30459 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30460 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30461 "can also trigger these issues."
30465 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
30466 #: ../src/guestfs-actions.pod:6256
30467 msgid "(Added in 1.0.62)"
30468 msgstr "(Додано у 1.0.62)"
30471 #: ../src/guestfs-actions.pod:4942
30472 msgid "guestfs_mknod"
30476 #: ../src/guestfs-actions.pod:4944
30480 " guestfs_mknod (guestfs_h *g,\n"
30484 " const char *path);\n"
30489 #: ../src/guestfs-actions.pod:4959
30491 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30492 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30493 "regular file). These constants are available in the standard Linux header "
30494 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30495 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30496 "the appropriate constant for you."
30500 #: ../src/guestfs-actions.pod:4973
30501 msgid "guestfs_mknod_b"
30505 #: ../src/guestfs-actions.pod:4975
30509 " guestfs_mknod_b (guestfs_h *g,\n"
30513 " const char *path);\n"
30518 #: ../src/guestfs-actions.pod:4982
30520 "This call creates a block device node called C<path> with mode C<mode> and "
30521 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30522 "wrapper around C<guestfs_mknod>."
30526 #: ../src/guestfs-actions.pod:4992
30527 msgid "guestfs_mknod_c"
30531 #: ../src/guestfs-actions.pod:4994
30535 " guestfs_mknod_c (guestfs_h *g,\n"
30539 " const char *path);\n"
30544 #: ../src/guestfs-actions.pod:5001
30546 "This call creates a char device node called C<path> with mode C<mode> and "
30547 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30548 "wrapper around C<guestfs_mknod>."
30552 #: ../src/guestfs-actions.pod:5011
30553 msgid "guestfs_mkswap"
30557 #: ../src/guestfs-actions.pod:5013
30561 " guestfs_mkswap (guestfs_h *g,\n"
30562 " const char *device);\n"
30567 #: ../src/guestfs-actions.pod:5023
30568 msgid "guestfs_mkswap_L"
30572 #: ../src/guestfs-actions.pod:5025
30576 " guestfs_mkswap_L (guestfs_h *g,\n"
30577 " const char *label,\n"
30578 " const char *device);\n"
30583 #: ../src/guestfs-actions.pod:5040
30584 msgid "guestfs_mkswap_U"
30588 #: ../src/guestfs-actions.pod:5042
30592 " guestfs_mkswap_U (guestfs_h *g,\n"
30593 " const char *uuid,\n"
30594 " const char *device);\n"
30599 #: ../src/guestfs-actions.pod:5053
30600 msgid "guestfs_mkswap_file"
30604 #: ../src/guestfs-actions.pod:5055
30608 " guestfs_mkswap_file (guestfs_h *g,\n"
30609 " const char *path);\n"
30614 #: ../src/guestfs-actions.pod:5061
30616 "This command just writes a swap file signature to an existing file. To "
30617 "create the file itself, use something like C<guestfs_fallocate>."
30621 #: ../src/guestfs-actions.pod:5068
30622 msgid "guestfs_modprobe"
30626 #: ../src/guestfs-actions.pod:5070
30630 " guestfs_modprobe (guestfs_h *g,\n"
30631 " const char *modulename);\n"
30636 #: ../src/guestfs-actions.pod:5083
30637 msgid "guestfs_mount"
30641 #: ../src/guestfs-actions.pod:5085
30645 " guestfs_mount (guestfs_h *g,\n"
30646 " const char *device,\n"
30647 " const char *mountpoint);\n"
30652 #: ../src/guestfs-actions.pod:5104
30654 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30655 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
30656 "problems for users. If your program might need to work with older versions "
30657 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30658 "for the first parameter if you don't want any options)."
30662 #: ../src/guestfs-actions.pod:5115
30663 msgid "guestfs_mount_9p"
30667 #: ../src/guestfs-actions.pod:5117
30671 " guestfs_mount_9p (guestfs_h *g,\n"
30672 " const char *mounttag,\n"
30673 " const char *mountpoint,\n"
30679 #: ../src/guestfs-actions.pod:5128
30682 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30687 #: ../src/guestfs-actions.pod:5141
30688 msgid "guestfs_mount_9p_va"
30692 #: ../src/guestfs-actions.pod:5143
30696 " guestfs_mount_9p_va (guestfs_h *g,\n"
30697 " const char *mounttag,\n"
30698 " const char *mountpoint,\n"
30699 " va_list args);\n"
30704 #: ../src/guestfs-actions.pod:5149
30705 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30709 #: ../src/guestfs-actions.pod:5153
30710 msgid "guestfs_mount_9p_argv"
30714 #: ../src/guestfs-actions.pod:5155
30718 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30719 " const char *mounttag,\n"
30720 " const char *mountpoint,\n"
30721 " const struct guestfs_mount_9p_argv *optargs);\n"
30726 #: ../src/guestfs-actions.pod:5161
30727 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30731 #: ../src/guestfs-actions.pod:5165
30732 msgid "guestfs_mount_loop"
30736 #: ../src/guestfs-actions.pod:5167
30740 " guestfs_mount_loop (guestfs_h *g,\n"
30741 " const char *file,\n"
30742 " const char *mountpoint);\n"
30747 #: ../src/guestfs-actions.pod:5180
30748 msgid "guestfs_mount_options"
30752 #: ../src/guestfs-actions.pod:5182
30756 " guestfs_mount_options (guestfs_h *g,\n"
30757 " const char *options,\n"
30758 " const char *device,\n"
30759 " const char *mountpoint);\n"
30764 #: ../src/guestfs-actions.pod:5188
30766 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30767 "the mount options as for the L<mount(8)> I<-o> flag."
30771 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
30772 #: ../src/guestfs-actions.pod:5229
30773 msgid "(Added in 1.0.10)"
30774 msgstr "(Додано у 1.0.10)"
30777 #: ../src/guestfs-actions.pod:5200
30778 msgid "guestfs_mount_ro"
30782 #: ../src/guestfs-actions.pod:5202
30786 " guestfs_mount_ro (guestfs_h *g,\n"
30787 " const char *device,\n"
30788 " const char *mountpoint);\n"
30793 #: ../src/guestfs-actions.pod:5207
30795 "This is the same as the C<guestfs_mount> command, but it mounts the "
30796 "filesystem with the read-only (I<-o ro>) flag."
30800 #: ../src/guestfs-actions.pod:5214
30801 msgid "guestfs_mount_vfs"
30805 #: ../src/guestfs-actions.pod:5216
30809 " guestfs_mount_vfs (guestfs_h *g,\n"
30810 " const char *options,\n"
30811 " const char *vfstype,\n"
30812 " const char *device,\n"
30813 " const char *mountpoint);\n"
30818 #: ../src/guestfs-actions.pod:5223
30820 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30821 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30826 #: ../src/guestfs-actions.pod:5231
30827 msgid "guestfs_mountpoints"
30831 #: ../src/guestfs-actions.pod:5233
30835 " guestfs_mountpoints (guestfs_h *g);\n"
30840 #: ../src/guestfs-actions.pod:5236
30842 "This call is similar to C<guestfs_mounts>. That call returns a list of "
30843 "devices. This one returns a hash table (map) of device name to directory "
30844 "where the device is mounted."
30848 #: ../src/guestfs-actions.pod:5248
30849 msgid "guestfs_mounts"
30853 #: ../src/guestfs-actions.pod:5250
30857 " guestfs_mounts (guestfs_h *g);\n"
30862 #: ../src/guestfs-actions.pod:5258
30863 msgid "See also: C<guestfs_mountpoints>"
30867 #: ../src/guestfs-actions.pod:5266
30872 #: ../src/guestfs-actions.pod:5268
30876 " guestfs_mv (guestfs_h *g,\n"
30877 " const char *src,\n"
30878 " const char *dest);\n"
30883 #: ../src/guestfs-actions.pod:5280
30884 msgid "guestfs_ntfs_3g_probe"
30888 #: ../src/guestfs-actions.pod:5282
30892 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30894 " const char *device);\n"
30899 #: ../src/guestfs-actions.pod:5301
30900 msgid "(Added in 1.0.43)"
30901 msgstr "(Додано у 1.0.43)"
30904 #: ../src/guestfs-actions.pod:5303
30905 msgid "guestfs_ntfsresize"
30909 #: ../src/guestfs-actions.pod:5305
30913 " guestfs_ntfsresize (guestfs_h *g,\n"
30914 " const char *device);\n"
30919 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
30921 "I<This function is deprecated.> In new code, use the L</"
30922 "guestfs_ntfsresize_opts> call instead."
30926 #: ../src/guestfs-actions.pod:5333
30927 msgid "guestfs_ntfsresize_opts"
30931 #: ../src/guestfs-actions.pod:5335
30935 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30936 " const char *device,\n"
30942 #: ../src/guestfs-actions.pod:5345
30945 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30946 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30951 #: ../src/guestfs-actions.pod:5365
30953 "After the resize operation, the filesystem is always marked as requiring a "
30954 "consistency check (for safety). You have to boot into Windows to perform "
30955 "this check and clear this condition. If you I<don't> set the C<force> "
30956 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30957 "times on a single filesystem without booting into Windows between each "
30962 #: ../src/guestfs-actions.pod:5380
30963 msgid "guestfs_ntfsresize_opts_va"
30967 #: ../src/guestfs-actions.pod:5382
30971 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30972 " const char *device,\n"
30973 " va_list args);\n"
30978 #: ../src/guestfs-actions.pod:5387
30979 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30983 #: ../src/guestfs-actions.pod:5391
30984 msgid "guestfs_ntfsresize_opts_argv"
30988 #: ../src/guestfs-actions.pod:5393
30992 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30993 " const char *device,\n"
30994 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30999 #: ../src/guestfs-actions.pod:5398
31000 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31004 #: ../src/guestfs-actions.pod:5402
31005 msgid "guestfs_ntfsresize_size"
31009 #: ../src/guestfs-actions.pod:5404
31013 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31014 " const char *device,\n"
31015 " int64_t size);\n"
31020 #: ../src/guestfs-actions.pod:5416
31022 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31023 "to specify the new size (in bytes) explicitly."
31027 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
31028 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
31029 #: ../src/guestfs-actions.pod:7843
31030 msgid "(Added in 1.3.14)"
31031 msgstr "(Додано у 1.3.14)"
31034 #: ../src/guestfs-actions.pod:5423
31035 msgid "guestfs_part_add"
31039 #: ../src/guestfs-actions.pod:5425
31043 " guestfs_part_add (guestfs_h *g,\n"
31044 " const char *device,\n"
31045 " const char *prlogex,\n"
31046 " int64_t startsect,\n"
31047 " int64_t endsect);\n"
31052 #: ../src/guestfs-actions.pod:5432
31054 "This command adds a partition to C<device>. If there is no partition table "
31055 "on the device, call C<guestfs_part_init> first."
31059 #: ../src/guestfs-actions.pod:5444
31061 "Creating a partition which covers the whole disk is not so easy. Use "
31062 "C<guestfs_part_disk> to do that."
31066 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
31067 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
31068 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
31069 #: ../src/guestfs-actions.pod:5721
31070 msgid "(Added in 1.0.78)"
31071 msgstr "(Додано у 1.0.78)"
31074 #: ../src/guestfs-actions.pod:5451
31075 msgid "guestfs_part_del"
31079 #: ../src/guestfs-actions.pod:5453
31083 " guestfs_part_del (guestfs_h *g,\n"
31084 " const char *device,\n"
31090 #: ../src/guestfs-actions.pod:5468
31091 msgid "guestfs_part_disk"
31095 #: ../src/guestfs-actions.pod:5470
31099 " guestfs_part_disk (guestfs_h *g,\n"
31100 " const char *device,\n"
31101 " const char *parttype);\n"
31106 #: ../src/guestfs-actions.pod:5475
31108 "This command is simply a combination of C<guestfs_part_init> followed by "
31109 "C<guestfs_part_add> to create a single primary partition covering the whole "
31114 #: ../src/guestfs-actions.pod:5479
31116 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31117 "possible values are described in C<guestfs_part_init>."
31121 #: ../src/guestfs-actions.pod:5489
31122 msgid "guestfs_part_get_bootable"
31126 #: ../src/guestfs-actions.pod:5491
31130 " guestfs_part_get_bootable (guestfs_h *g,\n"
31131 " const char *device,\n"
31137 #: ../src/guestfs-actions.pod:5499
31138 msgid "See also C<guestfs_part_set_bootable>."
31142 #: ../src/guestfs-actions.pod:5505
31143 msgid "guestfs_part_get_mbr_id"
31147 #: ../src/guestfs-actions.pod:5507
31151 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31152 " const char *device,\n"
31158 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
31160 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
31161 "undefined results for other partition table types (see "
31162 "C<guestfs_part_get_parttype>)."
31166 #: ../src/guestfs-actions.pod:5523
31167 msgid "guestfs_part_get_parttype"
31171 #: ../src/guestfs-actions.pod:5525
31175 " guestfs_part_get_parttype (guestfs_h *g,\n"
31176 " const char *device);\n"
31181 #: ../src/guestfs-actions.pod:5532
31183 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31184 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31185 "possible, although unusual. See C<guestfs_part_init> for a full list."
31189 #: ../src/guestfs-actions.pod:5542
31190 msgid "guestfs_part_init"
31194 #: ../src/guestfs-actions.pod:5544
31198 " guestfs_part_init (guestfs_h *g,\n"
31199 " const char *device,\n"
31200 " const char *parttype);\n"
31205 #: ../src/guestfs-actions.pod:5553
31207 "Initially there are no partitions. Following this, you should call "
31208 "C<guestfs_part_add> for each partition required."
31212 #: ../src/guestfs-actions.pod:5626
31213 msgid "guestfs_part_list"
31214 msgstr "guestfs_part_list"
31217 #: ../src/guestfs-actions.pod:5628
31220 " struct guestfs_partition_list *\n"
31221 " guestfs_part_list (guestfs_h *g,\n"
31222 " const char *device);\n"
31225 " struct guestfs_partition_list *\n"
31226 " guestfs_part_list (guestfs_h *g,\n"
31227 " const char *device);\n"
31231 #: ../src/guestfs-actions.pod:5645
31233 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31234 "the device's sector size, see C<guestfs_blockdev_getss>."
31238 #: ../src/guestfs-actions.pod:5658
31240 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31241 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
31246 #: ../src/guestfs-actions.pod:5664
31247 msgid "guestfs_part_set_bootable"
31251 #: ../src/guestfs-actions.pod:5666
31255 " guestfs_part_set_bootable (guestfs_h *g,\n"
31256 " const char *device,\n"
31258 " int bootable);\n"
31263 #: ../src/guestfs-actions.pod:5683
31264 msgid "guestfs_part_set_mbr_id"
31268 #: ../src/guestfs-actions.pod:5685
31272 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31273 " const char *device,\n"
31280 #: ../src/guestfs-actions.pod:5705
31281 msgid "guestfs_part_set_name"
31285 #: ../src/guestfs-actions.pod:5707
31289 " guestfs_part_set_name (guestfs_h *g,\n"
31290 " const char *device,\n"
31292 " const char *name);\n"
31297 #: ../src/guestfs-actions.pod:5723
31298 msgid "guestfs_part_to_dev"
31302 #: ../src/guestfs-actions.pod:5725
31306 " guestfs_part_to_dev (guestfs_h *g,\n"
31307 " const char *partition);\n"
31312 #: ../src/guestfs-actions.pod:5733
31314 "The named partition must exist, for example as a string returned from "
31315 "C<guestfs_list_partitions>."
31319 #: ../src/guestfs-actions.pod:5741
31320 msgid "guestfs_ping_daemon"
31324 #: ../src/guestfs-actions.pod:5743
31328 " guestfs_ping_daemon (guestfs_h *g);\n"
31333 #: ../src/guestfs-actions.pod:5755
31334 msgid "guestfs_pread"
31338 #: ../src/guestfs-actions.pod:5757
31342 " guestfs_pread (guestfs_h *g,\n"
31343 " const char *path,\n"
31345 " int64_t offset,\n"
31346 " size_t *size_r);\n"
31351 #: ../src/guestfs-actions.pod:5770
31352 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31356 #: ../src/guestfs-actions.pod:5781
31357 msgid "guestfs_pread_device"
31361 #: ../src/guestfs-actions.pod:5783
31365 " guestfs_pread_device (guestfs_h *g,\n"
31366 " const char *device,\n"
31368 " int64_t offset,\n"
31369 " size_t *size_r);\n"
31374 #: ../src/guestfs-actions.pod:5796
31375 msgid "See also C<guestfs_pread>."
31379 #: ../src/guestfs-actions.pod:5805
31380 msgid "(Added in 1.5.21)"
31381 msgstr "(Додано у 1.5.21)"
31384 #: ../src/guestfs-actions.pod:5807
31385 msgid "guestfs_pvcreate"
31389 #: ../src/guestfs-actions.pod:5809
31393 " guestfs_pvcreate (guestfs_h *g,\n"
31394 " const char *device);\n"
31399 #: ../src/guestfs-actions.pod:5821
31400 msgid "guestfs_pvremove"
31404 #: ../src/guestfs-actions.pod:5823
31408 " guestfs_pvremove (guestfs_h *g,\n"
31409 " const char *device);\n"
31414 #: ../src/guestfs-actions.pod:5838
31415 msgid "guestfs_pvresize"
31419 #: ../src/guestfs-actions.pod:5840
31423 " guestfs_pvresize (guestfs_h *g,\n"
31424 " const char *device);\n"
31429 #: ../src/guestfs-actions.pod:5851
31430 msgid "guestfs_pvresize_size"
31434 #: ../src/guestfs-actions.pod:5853
31438 " guestfs_pvresize_size (guestfs_h *g,\n"
31439 " const char *device,\n"
31440 " int64_t size);\n"
31445 #: ../src/guestfs-actions.pod:5858
31447 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31448 "specify the new size (in bytes) explicitly."
31452 #: ../src/guestfs-actions.pod:5865
31453 msgid "guestfs_pvs"
31457 #: ../src/guestfs-actions.pod:5867
31461 " guestfs_pvs (guestfs_h *g);\n"
31466 #: ../src/guestfs-actions.pod:5876
31467 msgid "See also C<guestfs_pvs_full>."
31471 #: ../src/guestfs-actions.pod:5884
31472 msgid "guestfs_pvs_full"
31476 #: ../src/guestfs-actions.pod:5886
31479 " struct guestfs_lvm_pv_list *\n"
31480 " guestfs_pvs_full (guestfs_h *g);\n"
31485 #: ../src/guestfs-actions.pod:5892
31487 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31488 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31492 #: ../src/guestfs-actions.pod:5898
31493 msgid "guestfs_pvuuid"
31497 #: ../src/guestfs-actions.pod:5900
31501 " guestfs_pvuuid (guestfs_h *g,\n"
31502 " const char *device);\n"
31507 #: ../src/guestfs-actions.pod:5911
31508 msgid "guestfs_pwrite"
31512 #: ../src/guestfs-actions.pod:5913
31516 " guestfs_pwrite (guestfs_h *g,\n"
31517 " const char *path,\n"
31518 " const char *content,\n"
31519 " size_t content_size,\n"
31520 " int64_t offset);\n"
31525 #: ../src/guestfs-actions.pod:5929
31526 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31530 #: ../src/guestfs-actions.pod:5938
31531 msgid "guestfs_pwrite_device"
31535 #: ../src/guestfs-actions.pod:5940
31539 " guestfs_pwrite_device (guestfs_h *g,\n"
31540 " const char *device,\n"
31541 " const char *content,\n"
31542 " size_t content_size,\n"
31543 " int64_t offset);\n"
31548 #: ../src/guestfs-actions.pod:5955
31549 msgid "See also C<guestfs_pwrite>."
31553 #: ../src/guestfs-actions.pod:5962
31554 msgid "(Added in 1.5.20)"
31555 msgstr "(Додано у 1.5.20)"
31558 #: ../src/guestfs-actions.pod:5964
31559 msgid "guestfs_read_file"
31563 #: ../src/guestfs-actions.pod:5966
31567 " guestfs_read_file (guestfs_h *g,\n"
31568 " const char *path,\n"
31569 " size_t *size_r);\n"
31574 #: ../src/guestfs-actions.pod:5974
31576 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31577 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
31578 "function is limited in the total size of file that can be handled."
31582 #: ../src/guestfs-actions.pod:5986
31583 msgid "(Added in 1.0.63)"
31584 msgstr "(Додано у 1.0.63)"
31587 #: ../src/guestfs-actions.pod:5988
31588 msgid "guestfs_read_lines"
31592 #: ../src/guestfs-actions.pod:5990
31596 " guestfs_read_lines (guestfs_h *g,\n"
31597 " const char *path);\n"
31602 #: ../src/guestfs-actions.pod:5999
31604 "Note that this function cannot correctly handle binary files (specifically, "
31605 "files containing C<\\0> character which is treated as end of line). For "
31606 "those you need to use the C<guestfs_read_file> function which has a more "
31607 "complex interface."
31611 #: ../src/guestfs-actions.pod:6010
31612 msgid "guestfs_readdir"
31616 #: ../src/guestfs-actions.pod:6012
31619 " struct guestfs_dirent_list *\n"
31620 " guestfs_readdir (guestfs_h *g,\n"
31621 " const char *dir);\n"
31626 #: ../src/guestfs-actions.pod:6066
31628 "This function is primarily intended for use by programs. To get a simple "
31629 "list of names, use C<guestfs_ls>. To get a printable directory for human "
31630 "consumption, use C<guestfs_ll>."
31634 #: ../src/guestfs-actions.pod:6070
31636 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31637 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
31641 #: ../src/guestfs-actions.pod:6076
31642 msgid "guestfs_readlink"
31646 #: ../src/guestfs-actions.pod:6078
31650 " guestfs_readlink (guestfs_h *g,\n"
31651 " const char *path);\n"
31656 #: ../src/guestfs-actions.pod:6089
31657 msgid "guestfs_readlinklist"
31661 #: ../src/guestfs-actions.pod:6091
31665 " guestfs_readlinklist (guestfs_h *g,\n"
31666 " const char *path,\n"
31667 " char *const *names);\n"
31672 #: ../src/guestfs-actions.pod:6124
31673 msgid "guestfs_realpath"
31677 #: ../src/guestfs-actions.pod:6126
31681 " guestfs_realpath (guestfs_h *g,\n"
31682 " const char *path);\n"
31687 #: ../src/guestfs-actions.pod:6138
31688 msgid "guestfs_removexattr"
31692 #: ../src/guestfs-actions.pod:6140
31696 " guestfs_removexattr (guestfs_h *g,\n"
31697 " const char *xattr,\n"
31698 " const char *path);\n"
31703 #: ../src/guestfs-actions.pod:6148
31704 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31708 #: ../src/guestfs-actions.pod:6154
31709 msgid "guestfs_resize2fs"
31713 #: ../src/guestfs-actions.pod:6156
31717 " guestfs_resize2fs (guestfs_h *g,\n"
31718 " const char *device);\n"
31723 #: ../src/guestfs-actions.pod:6163
31725 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31726 "C<device> before calling this command. For unknown reasons C<resize2fs> "
31727 "sometimes gives an error about this and sometimes not. In any case, it is "
31728 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31732 #: ../src/guestfs-actions.pod:6173
31733 msgid "guestfs_resize2fs_M"
31737 #: ../src/guestfs-actions.pod:6175
31741 " guestfs_resize2fs_M (guestfs_h *g,\n"
31742 " const char *device);\n"
31747 #: ../src/guestfs-actions.pod:6179
31749 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31750 "resized to its minimum size. This works like the I<-M> option to the "
31751 "C<resize2fs> command."
31755 #: ../src/guestfs-actions.pod:6183
31757 "To get the resulting size of the filesystem you should call "
31758 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
31759 "These two numbers, multiplied together, give the resulting size of the "
31760 "minimal filesystem in bytes."
31764 #: ../src/guestfs-actions.pod:6192
31765 msgid "guestfs_resize2fs_size"
31769 #: ../src/guestfs-actions.pod:6194
31773 " guestfs_resize2fs_size (guestfs_h *g,\n"
31774 " const char *device,\n"
31775 " int64_t size);\n"
31780 #: ../src/guestfs-actions.pod:6199
31782 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31783 "to specify the new size (in bytes) explicitly."
31787 #: ../src/guestfs-actions.pod:6206
31792 #: ../src/guestfs-actions.pod:6208
31796 " guestfs_rm (guestfs_h *g,\n"
31797 " const char *path);\n"
31802 #: ../src/guestfs-actions.pod:6218
31803 msgid "guestfs_rm_rf"
31807 #: ../src/guestfs-actions.pod:6220
31811 " guestfs_rm_rf (guestfs_h *g,\n"
31812 " const char *path);\n"
31817 #: ../src/guestfs-actions.pod:6232
31818 msgid "guestfs_rmdir"
31822 #: ../src/guestfs-actions.pod:6234
31826 " guestfs_rmdir (guestfs_h *g,\n"
31827 " const char *path);\n"
31832 #: ../src/guestfs-actions.pod:6244
31833 msgid "guestfs_rmmountpoint"
31837 #: ../src/guestfs-actions.pod:6246
31841 " guestfs_rmmountpoint (guestfs_h *g,\n"
31842 " const char *exemptpath);\n"
31847 #: ../src/guestfs-actions.pod:6250
31849 "This calls removes a mountpoint that was previously created with "
31850 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
31854 #: ../src/guestfs-actions.pod:6258
31855 msgid "guestfs_scrub_device"
31859 #: ../src/guestfs-actions.pod:6260
31863 " guestfs_scrub_device (guestfs_h *g,\n"
31864 " const char *device);\n"
31869 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
31870 #: ../src/guestfs-actions.pod:6312
31871 msgid "(Added in 1.0.52)"
31872 msgstr "(Додано у 1.0.52)"
31875 #: ../src/guestfs-actions.pod:6277
31876 msgid "guestfs_scrub_file"
31880 #: ../src/guestfs-actions.pod:6279
31884 " guestfs_scrub_file (guestfs_h *g,\n"
31885 " const char *file);\n"
31890 #: ../src/guestfs-actions.pod:6295
31891 msgid "guestfs_scrub_freespace"
31895 #: ../src/guestfs-actions.pod:6297
31899 " guestfs_scrub_freespace (guestfs_h *g,\n"
31900 " const char *dir);\n"
31905 #: ../src/guestfs-actions.pod:6301
31907 "This command creates the directory C<dir> and then fills it with files until "
31908 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31909 "and deletes them. The intention is to scrub any free space on the partition "
31910 "containing C<dir>."
31914 #: ../src/guestfs-actions.pod:6314
31915 msgid "guestfs_set_append"
31919 #: ../src/guestfs-actions.pod:6316
31923 " guestfs_set_append (guestfs_h *g,\n"
31924 " const char *append);\n"
31929 #: ../src/guestfs-actions.pod:6333
31930 msgid "guestfs_set_attach_method"
31934 #: ../src/guestfs-actions.pod:6335
31938 " guestfs_set_attach_method (guestfs_h *g,\n"
31939 " const char *attachmethod);\n"
31944 #: ../src/guestfs-actions.pod:6363
31945 msgid "guestfs_set_autosync"
31949 #: ../src/guestfs-actions.pod:6365
31953 " guestfs_set_autosync (guestfs_h *g,\n"
31954 " int autosync);\n"
31959 #: ../src/guestfs-actions.pod:6381
31960 msgid "guestfs_set_direct"
31964 #: ../src/guestfs-actions.pod:6383
31968 " guestfs_set_direct (guestfs_h *g,\n"
31974 #: ../src/guestfs-actions.pod:6391
31976 "One consequence of this is that log messages aren't caught by the library "
31977 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31982 #: ../src/guestfs-actions.pod:6404
31983 msgid "guestfs_set_e2label"
31987 #: ../src/guestfs-actions.pod:6406
31991 " guestfs_set_e2label (guestfs_h *g,\n"
31992 " const char *device,\n"
31993 " const char *label);\n"
31998 #: ../src/guestfs-actions.pod:6415
32000 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32001 "the existing label on a filesystem."
32005 #: ../src/guestfs-actions.pod:6422
32006 msgid "guestfs_set_e2uuid"
32010 #: ../src/guestfs-actions.pod:6424
32014 " guestfs_set_e2uuid (guestfs_h *g,\n"
32015 " const char *device,\n"
32016 " const char *uuid);\n"
32021 #: ../src/guestfs-actions.pod:6434
32023 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32024 "the existing UUID of a filesystem."
32028 #: ../src/guestfs-actions.pod:6441
32029 msgid "guestfs_set_memsize"
32033 #: ../src/guestfs-actions.pod:6443
32037 " guestfs_set_memsize (guestfs_h *g,\n"
32043 #: ../src/guestfs-actions.pod:6447
32045 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32046 "This only has any effect if called before C<guestfs_launch>."
32050 #: ../src/guestfs-actions.pod:6462
32051 msgid "guestfs_set_network"
32055 #: ../src/guestfs-actions.pod:6464
32059 " guestfs_set_network (guestfs_h *g,\n"
32065 #: ../src/guestfs-actions.pod:6474
32067 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32072 #: ../src/guestfs-actions.pod:6481
32073 msgid "guestfs_set_path"
32077 #: ../src/guestfs-actions.pod:6483
32081 " guestfs_set_path (guestfs_h *g,\n"
32082 " const char *searchpath);\n"
32087 #: ../src/guestfs-actions.pod:6498
32088 msgid "guestfs_set_pgroup"
32092 #: ../src/guestfs-actions.pod:6500
32096 " guestfs_set_pgroup (guestfs_h *g,\n"
32102 #: ../src/guestfs-actions.pod:6517
32103 msgid "guestfs_set_qemu"
32107 #: ../src/guestfs-actions.pod:6519
32111 " guestfs_set_qemu (guestfs_h *g,\n"
32112 " const char *qemu);\n"
32117 #: ../src/guestfs-actions.pod:6545
32118 msgid "guestfs_set_recovery_proc"
32122 #: ../src/guestfs-actions.pod:6547
32126 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32127 " int recoveryproc);\n"
32132 #: ../src/guestfs-actions.pod:6551
32134 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32135 "not create a recovery process. The purpose of the recovery process is to "
32136 "stop runaway qemu processes in the case where the main program aborts "
32141 #: ../src/guestfs-actions.pod:6556
32143 "This only has any effect if called before C<guestfs_launch>, and the default "
32148 #: ../src/guestfs-actions.pod:6569
32149 msgid "guestfs_set_selinux"
32153 #: ../src/guestfs-actions.pod:6571
32157 " guestfs_set_selinux (guestfs_h *g,\n"
32163 #: ../src/guestfs-actions.pod:6588
32164 msgid "guestfs_set_smp"
32168 #: ../src/guestfs-actions.pod:6590
32172 " guestfs_set_smp (guestfs_h *g,\n"
32178 #: ../src/guestfs-actions.pod:6598
32179 msgid "This function must be called before C<guestfs_launch>."
32183 #: ../src/guestfs-actions.pod:6604
32184 msgid "guestfs_set_trace"
32188 #: ../src/guestfs-actions.pod:6606
32192 " guestfs_set_trace (guestfs_h *g,\n"
32198 #: ../src/guestfs-actions.pod:6620
32200 "Trace messages are normally sent to C<stderr>, unless you register a "
32201 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32205 #: ../src/guestfs-actions.pod:6628
32206 msgid "guestfs_set_verbose"
32210 #: ../src/guestfs-actions.pod:6630
32214 " guestfs_set_verbose (guestfs_h *g,\n"
32220 #: ../src/guestfs-actions.pod:6639
32222 "Verbose messages are normally sent to C<stderr>, unless you register a "
32223 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32227 #: ../src/guestfs-actions.pod:6647
32228 msgid "guestfs_setcon"
32232 #: ../src/guestfs-actions.pod:6649
32236 " guestfs_setcon (guestfs_h *g,\n"
32237 " const char *context);\n"
32242 #: ../src/guestfs-actions.pod:6662
32243 msgid "guestfs_setxattr"
32247 #: ../src/guestfs-actions.pod:6664
32251 " guestfs_setxattr (guestfs_h *g,\n"
32252 " const char *xattr,\n"
32253 " const char *val,\n"
32255 " const char *path);\n"
32260 #: ../src/guestfs-actions.pod:6675
32261 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32265 #: ../src/guestfs-actions.pod:6681
32266 msgid "guestfs_sfdisk"
32270 #: ../src/guestfs-actions.pod:6683
32274 " guestfs_sfdisk (guestfs_h *g,\n"
32275 " const char *device,\n"
32279 " char *const *lines);\n"
32284 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
32285 #: ../src/guestfs-actions.pod:6769
32287 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32292 #: ../src/guestfs-actions.pod:6718
32294 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32298 #: ../src/guestfs-actions.pod:6728
32299 msgid "guestfs_sfdiskM"
32303 #: ../src/guestfs-actions.pod:6730
32307 " guestfs_sfdiskM (guestfs_h *g,\n"
32308 " const char *device,\n"
32309 " char *const *lines);\n"
32314 #: ../src/guestfs-actions.pod:6742
32316 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32317 "partition sizes are specified in megabytes only (rounded to the nearest "
32318 "cylinder) and you don't need to specify the cyls, heads and sectors "
32319 "parameters which were rarely if ever used anyway."
32323 #: ../src/guestfs-actions.pod:6748
32325 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32326 "C<guestfs_part_disk>"
32330 #: ../src/guestfs-actions.pod:6758
32331 msgid "guestfs_sfdisk_N"
32335 #: ../src/guestfs-actions.pod:6760
32339 " guestfs_sfdisk_N (guestfs_h *g,\n"
32340 " const char *device,\n"
32345 " const char *line);\n"
32350 #: ../src/guestfs-actions.pod:6779
32352 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
32353 "for the cyls/heads/sectors parameters."
32357 #: ../src/guestfs-actions.pod:6782
32358 msgid "See also: C<guestfs_part_add>"
32362 #: ../src/guestfs-actions.pod:6791
32363 msgid "guestfs_sfdisk_disk_geometry"
32367 #: ../src/guestfs-actions.pod:6793
32371 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32372 " const char *device);\n"
32377 #: ../src/guestfs-actions.pod:6797
32379 "This displays the disk geometry of C<device> read from the partition table. "
32380 "Especially in the case where the underlying block device has been resized, "
32381 "this can be different from the kernel's idea of the geometry (see "
32382 "C<guestfs_sfdisk_kernel_geometry>)."
32386 #: ../src/guestfs-actions.pod:6810
32387 msgid "guestfs_sfdisk_kernel_geometry"
32391 #: ../src/guestfs-actions.pod:6812
32395 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32396 " const char *device);\n"
32401 #: ../src/guestfs-actions.pod:6826
32402 msgid "guestfs_sfdisk_l"
32406 #: ../src/guestfs-actions.pod:6828
32410 " guestfs_sfdisk_l (guestfs_h *g,\n"
32411 " const char *device);\n"
32416 #: ../src/guestfs-actions.pod:6832
32418 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32423 #: ../src/guestfs-actions.pod:6843
32424 msgid "See also: C<guestfs_part_list>"
32428 #: ../src/guestfs-actions.pod:6850
32433 #: ../src/guestfs-actions.pod:6852
32437 " guestfs_sh (guestfs_h *g,\n"
32438 " const char *command);\n"
32443 #: ../src/guestfs-actions.pod:6859
32444 msgid "This is like C<guestfs_command>, but passes the command to:"
32448 #: ../src/guestfs-actions.pod:6867
32449 msgid "All the provisos about C<guestfs_command> apply to this call."
32453 #: ../src/guestfs-actions.pod:6874
32454 msgid "guestfs_sh_lines"
32458 #: ../src/guestfs-actions.pod:6876
32462 " guestfs_sh_lines (guestfs_h *g,\n"
32463 " const char *command);\n"
32468 #: ../src/guestfs-actions.pod:6880
32470 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32475 #: ../src/guestfs-actions.pod:6883
32476 msgid "See also: C<guestfs_command_lines>"
32480 #: ../src/guestfs-actions.pod:6891
32481 msgid "guestfs_sleep"
32485 #: ../src/guestfs-actions.pod:6893
32489 " guestfs_sleep (guestfs_h *g,\n"
32495 #: ../src/guestfs-actions.pod:6901
32496 msgid "(Added in 1.0.41)"
32497 msgstr "(Додано у 1.0.41)"
32500 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
32501 msgid "guestfs_stat"
32505 #: ../src/guestfs-actions.pod:6905
32508 " struct guestfs_stat *\n"
32509 " guestfs_stat (guestfs_h *g,\n"
32510 " const char *path);\n"
32515 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
32516 msgid "guestfs_statvfs"
32520 #: ../src/guestfs-actions.pod:6921
32523 " struct guestfs_statvfs *\n"
32524 " guestfs_statvfs (guestfs_h *g,\n"
32525 " const char *path);\n"
32530 #: ../src/guestfs-actions.pod:6931
32532 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32533 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
32537 #: ../src/guestfs-actions.pod:6937
32538 msgid "guestfs_strings"
32542 #: ../src/guestfs-actions.pod:6939
32546 " guestfs_strings (guestfs_h *g,\n"
32547 " const char *path);\n"
32552 #: ../src/guestfs-actions.pod:6955
32553 msgid "guestfs_strings_e"
32557 #: ../src/guestfs-actions.pod:6957
32561 " guestfs_strings_e (guestfs_h *g,\n"
32562 " const char *encoding,\n"
32563 " const char *path);\n"
32568 #: ../src/guestfs-actions.pod:6962
32570 "This is like the C<guestfs_strings> command, but allows you to specify the "
32571 "encoding of strings that are looked for in the source file C<path>."
32575 #: ../src/guestfs-actions.pod:6972
32577 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32578 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32582 #: ../src/guestfs-actions.pod:7010
32583 msgid "guestfs_swapoff_device"
32587 #: ../src/guestfs-actions.pod:7012
32591 " guestfs_swapoff_device (guestfs_h *g,\n"
32592 " const char *device);\n"
32597 #: ../src/guestfs-actions.pod:7016
32599 "This command disables the libguestfs appliance swap device or partition "
32600 "named C<device>. See C<guestfs_swapon_device>."
32604 #: ../src/guestfs-actions.pod:7024
32605 msgid "guestfs_swapoff_file"
32609 #: ../src/guestfs-actions.pod:7026
32613 " guestfs_swapoff_file (guestfs_h *g,\n"
32614 " const char *file);\n"
32619 #: ../src/guestfs-actions.pod:7036
32620 msgid "guestfs_swapoff_label"
32624 #: ../src/guestfs-actions.pod:7038
32628 " guestfs_swapoff_label (guestfs_h *g,\n"
32629 " const char *label);\n"
32634 #: ../src/guestfs-actions.pod:7049
32635 msgid "guestfs_swapoff_uuid"
32639 #: ../src/guestfs-actions.pod:7051
32643 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32644 " const char *uuid);\n"
32649 #: ../src/guestfs-actions.pod:7062
32650 msgid "guestfs_swapon_device"
32654 #: ../src/guestfs-actions.pod:7064
32658 " guestfs_swapon_device (guestfs_h *g,\n"
32659 " const char *device);\n"
32664 #: ../src/guestfs-actions.pod:7068
32666 "This command enables the libguestfs appliance to use the swap device or "
32667 "partition named C<device>. The increased memory is made available for all "
32668 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32672 #: ../src/guestfs-actions.pod:7084
32673 msgid "guestfs_swapon_file"
32677 #: ../src/guestfs-actions.pod:7086
32681 " guestfs_swapon_file (guestfs_h *g,\n"
32682 " const char *file);\n"
32687 #: ../src/guestfs-actions.pod:7090
32689 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
32694 #: ../src/guestfs-actions.pod:7097
32695 msgid "guestfs_swapon_label"
32699 #: ../src/guestfs-actions.pod:7099
32703 " guestfs_swapon_label (guestfs_h *g,\n"
32704 " const char *label);\n"
32709 #: ../src/guestfs-actions.pod:7103
32711 "This command enables swap to a labeled swap partition. See "
32712 "C<guestfs_swapon_device> for other notes."
32716 #: ../src/guestfs-actions.pod:7110
32717 msgid "guestfs_swapon_uuid"
32721 #: ../src/guestfs-actions.pod:7112
32725 " guestfs_swapon_uuid (guestfs_h *g,\n"
32726 " const char *uuid);\n"
32731 #: ../src/guestfs-actions.pod:7116
32733 "This command enables swap to a swap partition with the given UUID. See "
32734 "C<guestfs_swapon_device> for other notes."
32738 #: ../src/guestfs-actions.pod:7123
32739 msgid "guestfs_sync"
32743 #: ../src/guestfs-actions.pod:7125
32747 " guestfs_sync (guestfs_h *g);\n"
32752 #: ../src/guestfs-actions.pod:7138
32753 msgid "guestfs_tail"
32757 #: ../src/guestfs-actions.pod:7140
32761 " guestfs_tail (guestfs_h *g,\n"
32762 " const char *path);\n"
32767 #: ../src/guestfs-actions.pod:7156
32768 msgid "guestfs_tail_n"
32772 #: ../src/guestfs-actions.pod:7158
32776 " guestfs_tail_n (guestfs_h *g,\n"
32778 " const char *path);\n"
32783 #: ../src/guestfs-actions.pod:7180
32784 msgid "guestfs_tar_in"
32788 #: ../src/guestfs-actions.pod:7182
32792 " guestfs_tar_in (guestfs_h *g,\n"
32793 " const char *tarfile,\n"
32794 " const char *directory);\n"
32799 #: ../src/guestfs-actions.pod:7190
32801 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32805 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
32806 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
32807 msgid "(Added in 1.0.3)"
32808 msgstr "(Додано у 1.0.3)"
32811 #: ../src/guestfs-actions.pod:7197
32812 msgid "guestfs_tar_out"
32816 #: ../src/guestfs-actions.pod:7199
32820 " guestfs_tar_out (guestfs_h *g,\n"
32821 " const char *directory,\n"
32822 " const char *tarfile);\n"
32827 #: ../src/guestfs-actions.pod:7207
32829 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32830 "C<guestfs_txz_out>."
32834 #: ../src/guestfs-actions.pod:7214
32835 msgid "guestfs_tgz_in"
32839 #: ../src/guestfs-actions.pod:7216
32843 " guestfs_tgz_in (guestfs_h *g,\n"
32844 " const char *tarball,\n"
32845 " const char *directory);\n"
32850 #: ../src/guestfs-actions.pod:7224
32851 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32855 #: ../src/guestfs-actions.pod:7230
32856 msgid "guestfs_tgz_out"
32860 #: ../src/guestfs-actions.pod:7232
32864 " guestfs_tgz_out (guestfs_h *g,\n"
32865 " const char *directory,\n"
32866 " const char *tarball);\n"
32871 #: ../src/guestfs-actions.pod:7240
32872 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32876 #: ../src/guestfs-actions.pod:7246
32877 msgid "guestfs_touch"
32881 #: ../src/guestfs-actions.pod:7248
32885 " guestfs_touch (guestfs_h *g,\n"
32886 " const char *path);\n"
32891 #: ../src/guestfs-actions.pod:7263
32892 msgid "guestfs_truncate"
32896 #: ../src/guestfs-actions.pod:7265
32900 " guestfs_truncate (guestfs_h *g,\n"
32901 " const char *path);\n"
32906 #: ../src/guestfs-actions.pod:7276
32907 msgid "guestfs_truncate_size"
32911 #: ../src/guestfs-actions.pod:7278
32915 " guestfs_truncate_size (guestfs_h *g,\n"
32916 " const char *path,\n"
32917 " int64_t size);\n"
32922 #: ../src/guestfs-actions.pod:7286
32924 "If the current file size is less than C<size> then the file is extended to "
32925 "the required size with zero bytes. This creates a sparse file (ie. disk "
32926 "blocks are not allocated for the file until you write to it). To create a "
32927 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32931 #: ../src/guestfs-actions.pod:7296
32932 msgid "guestfs_tune2fs_l"
32936 #: ../src/guestfs-actions.pod:7298
32940 " guestfs_tune2fs_l (guestfs_h *g,\n"
32941 " const char *device);\n"
32946 #: ../src/guestfs-actions.pod:7318
32947 msgid "guestfs_txz_in"
32951 #: ../src/guestfs-actions.pod:7320
32955 " guestfs_txz_in (guestfs_h *g,\n"
32956 " const char *tarball,\n"
32957 " const char *directory);\n"
32962 #: ../src/guestfs-actions.pod:7332
32963 msgid "guestfs_txz_out"
32967 #: ../src/guestfs-actions.pod:7334
32971 " guestfs_txz_out (guestfs_h *g,\n"
32972 " const char *directory,\n"
32973 " const char *tarball);\n"
32978 #: ../src/guestfs-actions.pod:7346
32979 msgid "guestfs_umask"
32983 #: ../src/guestfs-actions.pod:7348
32987 " guestfs_umask (guestfs_h *g,\n"
32993 #: ../src/guestfs-actions.pod:7364
32995 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32996 "C<guestfs_mkdir>."
33000 #: ../src/guestfs-actions.pod:7373
33001 msgid "guestfs_umount"
33005 #: ../src/guestfs-actions.pod:7375
33009 " guestfs_umount (guestfs_h *g,\n"
33010 " const char *pathordevice);\n"
33015 #: ../src/guestfs-actions.pod:7387
33016 msgid "guestfs_umount_all"
33020 #: ../src/guestfs-actions.pod:7389
33024 " guestfs_umount_all (guestfs_h *g);\n"
33029 #: ../src/guestfs-actions.pod:7400
33030 msgid "guestfs_upload"
33034 #: ../src/guestfs-actions.pod:7402
33038 " guestfs_upload (guestfs_h *g,\n"
33039 " const char *filename,\n"
33040 " const char *remotefilename);\n"
33045 #: ../src/guestfs-actions.pod:7412
33046 msgid "See also C<guestfs_download>."
33050 #: ../src/guestfs-actions.pod:7423
33051 msgid "guestfs_upload_offset"
33055 #: ../src/guestfs-actions.pod:7425
33059 " guestfs_upload_offset (guestfs_h *g,\n"
33060 " const char *filename,\n"
33061 " const char *remotefilename,\n"
33062 " int64_t offset);\n"
33067 #: ../src/guestfs-actions.pod:7441
33069 "Note that there is no limit on the amount of data that can be uploaded with "
33070 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33071 "full amount unless an error occurs."
33075 #: ../src/guestfs-actions.pod:7446
33076 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33080 #: ../src/guestfs-actions.pod:7457
33081 msgid "guestfs_utimens"
33085 #: ../src/guestfs-actions.pod:7459
33089 " guestfs_utimens (guestfs_h *g,\n"
33090 " const char *path,\n"
33091 " int64_t atsecs,\n"
33092 " int64_t atnsecs,\n"
33093 " int64_t mtsecs,\n"
33094 " int64_t mtnsecs);\n"
33099 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
33100 msgid "guestfs_version"
33104 #: ../src/guestfs-actions.pod:7490
33107 " struct guestfs_version *\n"
33108 " guestfs_version (guestfs_h *g);\n"
33113 #: ../src/guestfs-actions.pod:7518
33115 "I<Note:> Don't use this call to test for availability of features. In "
33116 "enterprise distributions we backport features from later versions into "
33117 "earlier versions, making this an unreliable way to test for features. Use "
33118 "C<guestfs_available> instead."
33122 #: ../src/guestfs-actions.pod:7524
33124 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33125 "error. I<The caller must call C<guestfs_free_version> after use>."
33129 #: ../src/guestfs-actions.pod:7528
33130 msgid "(Added in 1.0.58)"
33131 msgstr "(Додано у 1.0.58)"
33134 #: ../src/guestfs-actions.pod:7530
33135 msgid "guestfs_vfs_label"
33139 #: ../src/guestfs-actions.pod:7532
33143 " guestfs_vfs_label (guestfs_h *g,\n"
33144 " const char *device);\n"
33149 #: ../src/guestfs-actions.pod:7541
33150 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33154 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
33155 msgid "(Added in 1.3.18)"
33156 msgstr "(Додано у 1.3.18)"
33159 #: ../src/guestfs-actions.pod:7548
33160 msgid "guestfs_vfs_type"
33164 #: ../src/guestfs-actions.pod:7550
33168 " guestfs_vfs_type (guestfs_h *g,\n"
33169 " const char *device);\n"
33174 #: ../src/guestfs-actions.pod:7567
33175 msgid "guestfs_vfs_uuid"
33179 #: ../src/guestfs-actions.pod:7569
33183 " guestfs_vfs_uuid (guestfs_h *g,\n"
33184 " const char *device);\n"
33189 #: ../src/guestfs-actions.pod:7578
33190 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33194 #: ../src/guestfs-actions.pod:7585
33195 msgid "guestfs_vg_activate"
33199 #: ../src/guestfs-actions.pod:7587
33203 " guestfs_vg_activate (guestfs_h *g,\n"
33205 " char *const *volgroups);\n"
33210 #: ../src/guestfs-actions.pod:7604
33211 msgid "guestfs_vg_activate_all"
33215 #: ../src/guestfs-actions.pod:7606
33219 " guestfs_vg_activate_all (guestfs_h *g,\n"
33220 " int activate);\n"
33225 #: ../src/guestfs-actions.pod:7619
33226 msgid "guestfs_vgcreate"
33230 #: ../src/guestfs-actions.pod:7621
33234 " guestfs_vgcreate (guestfs_h *g,\n"
33235 " const char *volgroup,\n"
33236 " char *const *physvols);\n"
33241 #: ../src/guestfs-actions.pod:7633
33242 msgid "guestfs_vglvuuids"
33246 #: ../src/guestfs-actions.pod:7635
33250 " guestfs_vglvuuids (guestfs_h *g,\n"
33251 " const char *vgname);\n"
33256 #: ../src/guestfs-actions.pod:7642
33258 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33259 "associate logical volumes and volume groups."
33263 #: ../src/guestfs-actions.pod:7645
33264 msgid "See also C<guestfs_vgpvuuids>."
33268 #: ../src/guestfs-actions.pod:7653
33269 msgid "guestfs_vgpvuuids"
33273 #: ../src/guestfs-actions.pod:7655
33277 " guestfs_vgpvuuids (guestfs_h *g,\n"
33278 " const char *vgname);\n"
33283 #: ../src/guestfs-actions.pod:7662
33285 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33286 "associate physical volumes and volume groups."
33290 #: ../src/guestfs-actions.pod:7665
33291 msgid "See also C<guestfs_vglvuuids>."
33295 #: ../src/guestfs-actions.pod:7673
33296 msgid "guestfs_vgremove"
33300 #: ../src/guestfs-actions.pod:7675
33304 " guestfs_vgremove (guestfs_h *g,\n"
33305 " const char *vgname);\n"
33310 #: ../src/guestfs-actions.pod:7688
33311 msgid "guestfs_vgrename"
33315 #: ../src/guestfs-actions.pod:7690
33319 " guestfs_vgrename (guestfs_h *g,\n"
33320 " const char *volgroup,\n"
33321 " const char *newvolgroup);\n"
33326 #: ../src/guestfs-actions.pod:7701
33327 msgid "guestfs_vgs"
33331 #: ../src/guestfs-actions.pod:7703
33335 " guestfs_vgs (guestfs_h *g);\n"
33340 #: ../src/guestfs-actions.pod:7712
33341 msgid "See also C<guestfs_vgs_full>."
33345 #: ../src/guestfs-actions.pod:7720
33346 msgid "guestfs_vgs_full"
33350 #: ../src/guestfs-actions.pod:7722
33353 " struct guestfs_lvm_vg_list *\n"
33354 " guestfs_vgs_full (guestfs_h *g);\n"
33359 #: ../src/guestfs-actions.pod:7728
33361 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33362 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33366 #: ../src/guestfs-actions.pod:7734
33367 msgid "guestfs_vgscan"
33371 #: ../src/guestfs-actions.pod:7736
33375 " guestfs_vgscan (guestfs_h *g);\n"
33380 #: ../src/guestfs-actions.pod:7746
33381 msgid "guestfs_vguuid"
33385 #: ../src/guestfs-actions.pod:7748
33389 " guestfs_vguuid (guestfs_h *g,\n"
33390 " const char *vgname);\n"
33395 #: ../src/guestfs-actions.pod:7759
33396 msgid "guestfs_wait_ready"
33400 #: ../src/guestfs-actions.pod:7761
33404 " guestfs_wait_ready (guestfs_h *g);\n"
33409 #: ../src/guestfs-actions.pod:7764
33411 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33416 #: ../src/guestfs-actions.pod:7771
33417 msgid "This function is a no op."
33421 #: ../src/guestfs-actions.pod:7773
33423 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33424 "calling C<guestfs_launch> to wait for the launch to complete. However this "
33425 "is no longer necessary because C<guestfs_launch> now does the waiting."
33429 #: ../src/guestfs-actions.pod:7778
33431 "If you see any calls to this function in code then you can just remove them, "
33432 "unless you want to retain compatibility with older versions of the API."
33436 #: ../src/guestfs-actions.pod:7786
33437 msgid "guestfs_wc_c"
33441 #: ../src/guestfs-actions.pod:7788
33445 " guestfs_wc_c (guestfs_h *g,\n"
33446 " const char *path);\n"
33451 #: ../src/guestfs-actions.pod:7799
33452 msgid "guestfs_wc_l"
33456 #: ../src/guestfs-actions.pod:7801
33460 " guestfs_wc_l (guestfs_h *g,\n"
33461 " const char *path);\n"
33466 #: ../src/guestfs-actions.pod:7812
33467 msgid "guestfs_wc_w"
33471 #: ../src/guestfs-actions.pod:7814
33475 " guestfs_wc_w (guestfs_h *g,\n"
33476 " const char *path);\n"
33481 #: ../src/guestfs-actions.pod:7825
33482 msgid "guestfs_write"
33486 #: ../src/guestfs-actions.pod:7827
33490 " guestfs_write (guestfs_h *g,\n"
33491 " const char *path,\n"
33492 " const char *content,\n"
33493 " size_t content_size);\n"
33498 #: ../src/guestfs-actions.pod:7836
33499 msgid "See also C<guestfs_write_append>."
33503 #: ../src/guestfs-actions.pod:7845
33504 msgid "guestfs_write_append"
33508 #: ../src/guestfs-actions.pod:7847
33512 " guestfs_write_append (guestfs_h *g,\n"
33513 " const char *path,\n"
33514 " const char *content,\n"
33515 " size_t content_size);\n"
33520 #: ../src/guestfs-actions.pod:7856
33521 msgid "See also C<guestfs_write>."
33525 #: ../src/guestfs-actions.pod:7865
33526 msgid "guestfs_write_file"
33527 msgstr "guestfs_write_file"
33530 #: ../src/guestfs-actions.pod:7867
33534 " guestfs_write_file (guestfs_h *g,\n"
33535 " const char *path,\n"
33536 " const char *content,\n"
33541 " guestfs_write_file (guestfs_h *g,\n"
33542 " const char *path,\n"
33543 " const char *content,\n"
33548 #: ../src/guestfs-actions.pod:7873
33550 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33555 #: ../src/guestfs-actions.pod:7898
33556 msgid "guestfs_zegrep"
33557 msgstr "guestfs_zegrep"
33560 #: ../src/guestfs-actions.pod:7900
33564 " guestfs_zegrep (guestfs_h *g,\n"
33565 " const char *regex,\n"
33566 " const char *path);\n"
33570 " guestfs_zegrep (guestfs_h *g,\n"
33571 " const char *regex,\n"
33572 " const char *path);\n"
33576 #: ../src/guestfs-actions.pod:7917
33577 msgid "guestfs_zegrepi"
33578 msgstr "guestfs_zegrepi"
33581 #: ../src/guestfs-actions.pod:7919
33585 " guestfs_zegrepi (guestfs_h *g,\n"
33586 " const char *regex,\n"
33587 " const char *path);\n"
33591 " guestfs_zegrepi (guestfs_h *g,\n"
33592 " const char *regex,\n"
33593 " const char *path);\n"
33597 #: ../src/guestfs-actions.pod:7936
33598 msgid "guestfs_zero"
33599 msgstr "guestfs_zero"
33602 #: ../src/guestfs-actions.pod:7938
33606 " guestfs_zero (guestfs_h *g,\n"
33607 " const char *device);\n"
33611 " guestfs_zero (guestfs_h *g,\n"
33612 " const char *device);\n"
33616 #: ../src/guestfs-actions.pod:7952
33618 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33619 "C<guestfs_is_zero_device>"
33623 #: ../src/guestfs-actions.pod:7964
33624 msgid "guestfs_zero_device"
33625 msgstr "guestfs_zero_device"
33628 #: ../src/guestfs-actions.pod:7966
33632 " guestfs_zero_device (guestfs_h *g,\n"
33633 " const char *device);\n"
33637 " guestfs_zero_device (guestfs_h *g,\n"
33638 " const char *device);\n"
33642 #: ../src/guestfs-actions.pod:7970
33644 "This command writes zeroes over the entire C<device>. Compare with "
33645 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33649 #: ../src/guestfs-actions.pod:7988
33650 msgid "(Added in 1.3.1)"
33651 msgstr "(Додано у 1.3.1)"
33654 #: ../src/guestfs-actions.pod:7990
33655 msgid "guestfs_zerofree"
33656 msgstr "guestfs_zerofree"
33659 #: ../src/guestfs-actions.pod:7992
33663 " guestfs_zerofree (guestfs_h *g,\n"
33664 " const char *device);\n"
33668 " guestfs_zerofree (guestfs_h *g,\n"
33669 " const char *device);\n"
33673 #: ../src/guestfs-actions.pod:8011
33674 msgid "guestfs_zfgrep"
33675 msgstr "guestfs_zfgrep"
33678 #: ../src/guestfs-actions.pod:8013
33682 " guestfs_zfgrep (guestfs_h *g,\n"
33683 " const char *pattern,\n"
33684 " const char *path);\n"
33688 " guestfs_zfgrep (guestfs_h *g,\n"
33689 " const char *pattern,\n"
33690 " const char *path);\n"
33694 #: ../src/guestfs-actions.pod:8030
33695 msgid "guestfs_zfgrepi"
33696 msgstr "guestfs_zfgrepi"
33699 #: ../src/guestfs-actions.pod:8032
33703 " guestfs_zfgrepi (guestfs_h *g,\n"
33704 " const char *pattern,\n"
33705 " const char *path);\n"
33709 " guestfs_zfgrepi (guestfs_h *g,\n"
33710 " const char *pattern,\n"
33711 " const char *path);\n"
33715 #: ../src/guestfs-actions.pod:8049
33716 msgid "guestfs_zfile"
33717 msgstr "guestfs_zfile"
33720 #: ../src/guestfs-actions.pod:8051
33724 " guestfs_zfile (guestfs_h *g,\n"
33725 " const char *meth,\n"
33726 " const char *path);\n"
33730 " guestfs_zfile (guestfs_h *g,\n"
33731 " const char *meth,\n"
33732 " const char *path);\n"
33736 #: ../src/guestfs-actions.pod:8056
33738 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33743 #: ../src/guestfs-actions.pod:8068
33745 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33750 #: ../src/guestfs-actions.pod:8076
33751 msgid "guestfs_zgrep"
33752 msgstr "guestfs_zgrep"
33755 #: ../src/guestfs-actions.pod:8078
33759 " guestfs_zgrep (guestfs_h *g,\n"
33760 " const char *regex,\n"
33761 " const char *path);\n"
33765 " guestfs_zgrep (guestfs_h *g,\n"
33766 " const char *regex,\n"
33767 " const char *path);\n"
33771 #: ../src/guestfs-actions.pod:8095
33772 msgid "guestfs_zgrepi"
33773 msgstr "guestfs_zgrepi"
33776 #: ../src/guestfs-actions.pod:8097
33780 " guestfs_zgrepi (guestfs_h *g,\n"
33781 " const char *regex,\n"
33782 " const char *path);\n"
33786 " guestfs_zgrepi (guestfs_h *g,\n"
33787 " const char *regex,\n"
33788 " const char *path);\n"
33792 #: ../src/guestfs-availability.pod:3
33797 #: ../src/guestfs-availability.pod:5
33799 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33800 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33801 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33802 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33803 "L</guestfs_aug_save> L</guestfs_aug_set>"
33807 #: ../src/guestfs-availability.pod:21
33812 #: ../src/guestfs-availability.pod:23
33813 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33817 #: ../src/guestfs-availability.pod:26
33822 #: ../src/guestfs-availability.pod:28
33823 msgid "The following functions: L</guestfs_grub_install>"
33827 #: ../src/guestfs-availability.pod:31
33829 msgstr "B<inotify>"
33832 #: ../src/guestfs-availability.pod:33
33834 "The following functions: L</guestfs_inotify_add_watch> L</"
33835 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33836 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33840 #: ../src/guestfs-availability.pod:41
33841 msgid "B<linuxfsuuid>"
33842 msgstr "B<linuxfsuuid>"
33845 #: ../src/guestfs-availability.pod:43
33847 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33848 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33852 #: ../src/guestfs-availability.pod:50
33853 msgid "B<linuxmodules>"
33854 msgstr "B<linuxmodules>"
33857 #: ../src/guestfs-availability.pod:52
33858 msgid "The following functions: L</guestfs_modprobe>"
33862 #: ../src/guestfs-availability.pod:55
33863 msgid "B<linuxxattrs>"
33864 msgstr "B<linuxxattrs>"
33867 #: ../src/guestfs-availability.pod:57
33869 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33870 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33871 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33872 "guestfs_setxattr>"
33876 #: ../src/guestfs-availability.pod:68
33881 #: ../src/guestfs-availability.pod:70
33883 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33884 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33885 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33889 #: ../src/guestfs-availability.pod:79
33894 #: ../src/guestfs-availability.pod:81
33896 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33897 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33898 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33899 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33900 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33901 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33902 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33906 #: ../src/guestfs-availability.pod:104
33911 #: ../src/guestfs-availability.pod:106
33913 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33914 "guestfs_mknod_b> L</guestfs_mknod_c>"
33918 #: ../src/guestfs-availability.pod:112
33923 #: ../src/guestfs-availability.pod:114
33924 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33928 #: ../src/guestfs-availability.pod:117
33929 msgid "B<ntfsprogs>"
33930 msgstr "B<ntfsprogs>"
33933 #: ../src/guestfs-availability.pod:119
33935 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33936 "L</guestfs_ntfsresize_size>"
33940 #: ../src/guestfs-availability.pod:124
33941 msgid "B<realpath>"
33942 msgstr "B<realpath>"
33945 #: ../src/guestfs-availability.pod:126
33946 msgid "The following functions: L</guestfs_realpath>"
33950 #: ../src/guestfs-availability.pod:129
33955 #: ../src/guestfs-availability.pod:131
33957 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33958 "guestfs_scrub_freespace>"
33962 #: ../src/guestfs-availability.pod:136
33964 msgstr "B<selinux>"
33967 #: ../src/guestfs-availability.pod:138
33968 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33972 #: ../src/guestfs-availability.pod:142
33977 #: ../src/guestfs-availability.pod:144
33978 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33982 #: ../src/guestfs-availability.pod:148
33983 msgid "B<zerofree>"
33984 msgstr "B<zerofree>"
33987 #: ../src/guestfs-availability.pod:150
33988 msgid "The following functions: L</guestfs_zerofree>"
33992 #: ../src/guestfs-structs.pod:1
33993 msgid "guestfs_int_bool"
33997 #: ../src/guestfs-structs.pod:3
34000 " struct guestfs_int_bool {\n"
34008 #: ../src/guestfs-structs.pod:8
34011 " struct guestfs_int_bool_list {\n"
34012 " uint32_t len; /* Number of elements in list. */\n"
34013 " struct guestfs_int_bool *val; /* Elements. */\n"
34019 #: ../src/guestfs-structs.pod:13
34022 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34023 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34028 #: ../src/guestfs-structs.pod:16
34029 msgid "guestfs_lvm_pv"
34033 #: ../src/guestfs-structs.pod:18
34036 " struct guestfs_lvm_pv {\n"
34037 " char *pv_name;\n"
34038 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34039 " char pv_uuid[32];\n"
34041 " uint64_t pv_size;\n"
34042 " uint64_t dev_size;\n"
34043 " uint64_t pv_free;\n"
34044 " uint64_t pv_used;\n"
34045 " char *pv_attr;\n"
34046 " int64_t pv_pe_count;\n"
34047 " int64_t pv_pe_alloc_count;\n"
34048 " char *pv_tags;\n"
34049 " uint64_t pe_start;\n"
34050 " int64_t pv_mda_count;\n"
34051 " uint64_t pv_mda_free;\n"
34057 #: ../src/guestfs-structs.pod:36
34060 " struct guestfs_lvm_pv_list {\n"
34061 " uint32_t len; /* Number of elements in list. */\n"
34062 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34068 #: ../src/guestfs-structs.pod:41
34071 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34072 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34077 #: ../src/guestfs-structs.pod:44
34078 msgid "guestfs_lvm_vg"
34082 #: ../src/guestfs-structs.pod:46
34085 " struct guestfs_lvm_vg {\n"
34086 " char *vg_name;\n"
34087 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34088 " char vg_uuid[32];\n"
34090 " char *vg_attr;\n"
34091 " uint64_t vg_size;\n"
34092 " uint64_t vg_free;\n"
34093 " char *vg_sysid;\n"
34094 " uint64_t vg_extent_size;\n"
34095 " int64_t vg_extent_count;\n"
34096 " int64_t vg_free_count;\n"
34097 " int64_t max_lv;\n"
34098 " int64_t max_pv;\n"
34099 " int64_t pv_count;\n"
34100 " int64_t lv_count;\n"
34101 " int64_t snap_count;\n"
34102 " int64_t vg_seqno;\n"
34103 " char *vg_tags;\n"
34104 " int64_t vg_mda_count;\n"
34105 " uint64_t vg_mda_free;\n"
34111 #: ../src/guestfs-structs.pod:69
34114 " struct guestfs_lvm_vg_list {\n"
34115 " uint32_t len; /* Number of elements in list. */\n"
34116 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34122 #: ../src/guestfs-structs.pod:74
34125 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34126 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34131 #: ../src/guestfs-structs.pod:77
34132 msgid "guestfs_lvm_lv"
34136 #: ../src/guestfs-structs.pod:79
34139 " struct guestfs_lvm_lv {\n"
34140 " char *lv_name;\n"
34141 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34142 " char lv_uuid[32];\n"
34143 " char *lv_attr;\n"
34144 " int64_t lv_major;\n"
34145 " int64_t lv_minor;\n"
34146 " int64_t lv_kernel_major;\n"
34147 " int64_t lv_kernel_minor;\n"
34148 " uint64_t lv_size;\n"
34149 " int64_t seg_count;\n"
34151 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34152 " float snap_percent;\n"
34153 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34154 " float copy_percent;\n"
34155 " char *move_pv;\n"
34156 " char *lv_tags;\n"
34157 " char *mirror_log;\n"
34158 " char *modules;\n"
34164 #: ../src/guestfs-structs.pod:101
34167 " struct guestfs_lvm_lv_list {\n"
34168 " uint32_t len; /* Number of elements in list. */\n"
34169 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34175 #: ../src/guestfs-structs.pod:106
34178 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34179 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34184 #: ../src/guestfs-structs.pod:111
34187 " struct guestfs_stat {\n"
34191 " int64_t nlink;\n"
34196 " int64_t blksize;\n"
34197 " int64_t blocks;\n"
34198 " int64_t atime;\n"
34199 " int64_t mtime;\n"
34200 " int64_t ctime;\n"
34206 #: ../src/guestfs-structs.pod:127
34209 " struct guestfs_stat_list {\n"
34210 " uint32_t len; /* Number of elements in list. */\n"
34211 " struct guestfs_stat *val; /* Elements. */\n"
34217 #: ../src/guestfs-structs.pod:132
34220 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34221 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34226 #: ../src/guestfs-structs.pod:137
34229 " struct guestfs_statvfs {\n"
34230 " int64_t bsize;\n"
34231 " int64_t frsize;\n"
34232 " int64_t blocks;\n"
34233 " int64_t bfree;\n"
34234 " int64_t bavail;\n"
34235 " int64_t files;\n"
34236 " int64_t ffree;\n"
34237 " int64_t favail;\n"
34240 " int64_t namemax;\n"
34246 #: ../src/guestfs-structs.pod:151
34249 " struct guestfs_statvfs_list {\n"
34250 " uint32_t len; /* Number of elements in list. */\n"
34251 " struct guestfs_statvfs *val; /* Elements. */\n"
34257 #: ../src/guestfs-structs.pod:156
34260 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34261 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34266 #: ../src/guestfs-structs.pod:159
34267 msgid "guestfs_dirent"
34271 #: ../src/guestfs-structs.pod:161
34274 " struct guestfs_dirent {\n"
34283 #: ../src/guestfs-structs.pod:167
34286 " struct guestfs_dirent_list {\n"
34287 " uint32_t len; /* Number of elements in list. */\n"
34288 " struct guestfs_dirent *val; /* Elements. */\n"
34294 #: ../src/guestfs-structs.pod:172
34297 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34298 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34303 #: ../src/guestfs-structs.pod:177
34306 " struct guestfs_version {\n"
34307 " int64_t major;\n"
34308 " int64_t minor;\n"
34309 " int64_t release;\n"
34316 #: ../src/guestfs-structs.pod:184
34319 " struct guestfs_version_list {\n"
34320 " uint32_t len; /* Number of elements in list. */\n"
34321 " struct guestfs_version *val; /* Elements. */\n"
34327 #: ../src/guestfs-structs.pod:189
34330 " void guestfs_free_version (struct guestfs_free_version *);\n"
34331 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34336 #: ../src/guestfs-structs.pod:192
34337 msgid "guestfs_xattr"
34341 #: ../src/guestfs-structs.pod:194
34344 " struct guestfs_xattr {\n"
34345 " char *attrname;\n"
34346 " /* The next two fields describe a byte array. */\n"
34347 " uint32_t attrval_len;\n"
34348 " char *attrval;\n"
34354 #: ../src/guestfs-structs.pod:201
34357 " struct guestfs_xattr_list {\n"
34358 " uint32_t len; /* Number of elements in list. */\n"
34359 " struct guestfs_xattr *val; /* Elements. */\n"
34365 #: ../src/guestfs-structs.pod:206
34368 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34369 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34374 #: ../src/guestfs-structs.pod:209
34375 msgid "guestfs_inotify_event"
34379 #: ../src/guestfs-structs.pod:211
34382 " struct guestfs_inotify_event {\n"
34383 " int64_t in_wd;\n"
34384 " uint32_t in_mask;\n"
34385 " uint32_t in_cookie;\n"
34386 " char *in_name;\n"
34392 #: ../src/guestfs-structs.pod:218
34395 " struct guestfs_inotify_event_list {\n"
34396 " uint32_t len; /* Number of elements in list. */\n"
34397 " struct guestfs_inotify_event *val; /* Elements. */\n"
34403 #: ../src/guestfs-structs.pod:223
34406 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34407 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34412 #: ../src/guestfs-structs.pod:226
34413 msgid "guestfs_partition"
34417 #: ../src/guestfs-structs.pod:228
34420 " struct guestfs_partition {\n"
34421 " int32_t part_num;\n"
34422 " uint64_t part_start;\n"
34423 " uint64_t part_end;\n"
34424 " uint64_t part_size;\n"
34430 #: ../src/guestfs-structs.pod:235
34433 " struct guestfs_partition_list {\n"
34434 " uint32_t len; /* Number of elements in list. */\n"
34435 " struct guestfs_partition *val; /* Elements. */\n"
34441 #: ../src/guestfs-structs.pod:240
34444 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34445 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34450 #: ../src/guestfs-structs.pod:243
34451 msgid "guestfs_application"
34455 #: ../src/guestfs-structs.pod:245
34458 " struct guestfs_application {\n"
34459 " char *app_name;\n"
34460 " char *app_display_name;\n"
34461 " int32_t app_epoch;\n"
34462 " char *app_version;\n"
34463 " char *app_release;\n"
34464 " char *app_install_path;\n"
34465 " char *app_trans_path;\n"
34466 " char *app_publisher;\n"
34467 " char *app_url;\n"
34468 " char *app_source_package;\n"
34469 " char *app_summary;\n"
34470 " char *app_description;\n"
34476 #: ../src/guestfs-structs.pod:260
34479 " struct guestfs_application_list {\n"
34480 " uint32_t len; /* Number of elements in list. */\n"
34481 " struct guestfs_application *val; /* Elements. */\n"
34487 #: ../src/guestfs-structs.pod:265
34490 " void guestfs_free_application (struct guestfs_free_application *);\n"
34491 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34496 #: ../src/guestfs.pod:5
34497 msgid "guestfs - Library for accessing and modifying virtual machine images"
34499 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34503 #: ../src/guestfs.pod:11
34506 " guestfs_h *g = guestfs_create ();\n"
34507 " guestfs_add_drive (g, \"guest.img\");\n"
34508 " guestfs_launch (g);\n"
34509 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34510 " guestfs_touch (g, \"/hello\");\n"
34511 " guestfs_umount (g, \"/\");\n"
34512 " guestfs_close (g);\n"
34515 " guestfs_h *g = guestfs_create ();\n"
34516 " guestfs_add_drive (g, \"guest.img\");\n"
34517 " guestfs_launch (g);\n"
34518 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34519 " guestfs_touch (g, \"/hello\");\n"
34520 " guestfs_umount (g, \"/\");\n"
34521 " guestfs_close (g);\n"
34525 #: ../src/guestfs.pod:25
34527 "Libguestfs is a library for accessing and modifying guest disk images. "
34528 "Amongst the things this is good for: making batch configuration changes to "
34529 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34530 "between virtualization systems (see also: virt-p2v), performing partial "
34531 "backups, performing partial guest clones, cloning guests and changing "
34532 "registry/UUID/hostname info, and much else besides."
34536 #: ../src/guestfs.pod:33
34538 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34539 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34540 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34545 #: ../src/guestfs.pod:38
34547 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34548 "what filesystem is in each LV, etc.). It can also run commands in the "
34549 "context of the guest. Also you can access filesystems over FUSE."
34553 #: ../src/guestfs.pod:43
34555 "Libguestfs is a library that can be linked with C and C++ management "
34556 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34557 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
34562 #: ../src/guestfs.pod:48
34564 "You don't need to be root to use libguestfs, although obviously you do need "
34565 "enough permissions to access the disk images."
34569 #: ../src/guestfs.pod:51
34571 "Libguestfs is a large API because it can do many things. For a gentle "
34572 "introduction, please read the L</API OVERVIEW> section next."
34576 #: ../src/guestfs.pod:54
34578 "There are also some example programs in the L<guestfs-examples(3)> manual "
34583 #: ../src/guestfs.pod:57
34584 msgid "API OVERVIEW"
34588 #: ../src/guestfs.pod:59
34590 "This section provides a gentler overview of the libguestfs API. We also try "
34591 "to group API calls together, where that may not be obvious from reading "
34592 "about the individual calls in the main section of this manual."
34596 #: ../src/guestfs.pod:64
34601 #: ../src/guestfs.pod:66
34603 "Before you can use libguestfs calls, you have to create a handle. Then you "
34604 "must add at least one disk image to the handle, followed by launching the "
34605 "handle, then performing whatever operations you want, and finally closing "
34606 "the handle. By convention we use the single letter C<g> for the name of the "
34607 "handle variable, although of course you can use any name you want."
34611 #: ../src/guestfs.pod:73
34612 msgid "The general structure of all libguestfs-using programs looks like this:"
34616 #: ../src/guestfs.pod:76
34619 " guestfs_h *g = guestfs_create ();\n"
34622 " guestfs_h *g = guestfs_create ();\n"
34626 #: ../src/guestfs.pod:78
34629 " /* Call guestfs_add_drive additional times if there are\n"
34630 " * multiple disk images.\n"
34632 " guestfs_add_drive (g, \"guest.img\");\n"
34637 #: ../src/guestfs.pod:83
34640 " /* Most manipulation calls won't work until you've launched\n"
34641 " * the handle 'g'. You have to do this _after_ adding drives\n"
34642 " * and _before_ other commands.\n"
34644 " guestfs_launch (g);\n"
34649 #: ../src/guestfs.pod:89
34652 " /* Now you can examine what partitions, LVs etc are available.\n"
34654 " char **partitions = guestfs_list_partitions (g);\n"
34655 " char **logvols = guestfs_lvs (g);\n"
34658 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34660 " char **partitions = guestfs_list_partitions (g);\n"
34661 " char **logvols = guestfs_lvs (g);\n"
34665 #: ../src/guestfs.pod:94
34668 " /* To access a filesystem in the image, you must mount it.\n"
34670 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34673 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34675 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34679 #: ../src/guestfs.pod:98
34682 " /* Now you can perform filesystem actions on the guest\n"
34685 " guestfs_touch (g, \"/hello\");\n"
34688 " /* Тепер ви можете виконувати дії з файловою системою на\n"
34689 " * образі диска операційної системи.\n"
34691 " guestfs_touch (g, \"/hello\");\n"
34695 #: ../src/guestfs.pod:103
34698 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
34699 " * it is done automatically when you close the handle. See\n"
34700 " * discussion of autosync in this page.\n"
34702 " guestfs_sync (g);\n"
34707 #: ../src/guestfs.pod:109
34710 " /* Close the handle 'g'. */\n"
34711 " guestfs_close (g);\n"
34714 " /* Закрити дескриптор 'g'. */\n"
34715 " guestfs_close (g);\n"
34719 #: ../src/guestfs.pod:112
34721 "The code above doesn't include any error checking. In real code you should "
34722 "check return values carefully for errors. In general all functions that "
34723 "return integers return C<-1> on error, and all functions that return "
34724 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
34725 "how to handle errors, and consult the documentation for each function call "
34726 "below to see precisely how they return error indications. See L<guestfs-"
34727 "examples(3)> for fully worked examples."
34731 #: ../src/guestfs.pod:121
34732 msgid "DISK IMAGES"
34733 msgstr "ОБРАЗИ ДИСКІВ"
34736 #: ../src/guestfs.pod:123
34738 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34739 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34740 "actual block device, or simply an empty file of zeroes that you have created "
34741 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
34746 #: ../src/guestfs.pod:129
34748 "The call you should use in modern code for adding drives is L</"
34749 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
34750 "specifying that the format is raw, do:"
34754 #: ../src/guestfs.pod:133
34757 " guestfs_add_drive_opts (g, filename,\n"
34758 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34762 " guestfs_add_drive_opts (g, filename,\n"
34763 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34768 #: ../src/guestfs.pod:137
34769 msgid "You can add a disk read-only using:"
34770 msgstr "Ви можете додати диск у режимі лише читання:"
34773 #: ../src/guestfs.pod:139
34776 " guestfs_add_drive_opts (g, filename,\n"
34777 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34778 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34782 " guestfs_add_drive_opts (g, filename,\n"
34783 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34784 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34789 #: ../src/guestfs.pod:144
34791 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
34792 "libguestfs won't modify the file."
34796 #: ../src/guestfs.pod:147
34798 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34799 "by a virtual machine. Adding it read-write will almost certainly cause disk "
34800 "corruption, but adding it read-only is safe."
34804 #: ../src/guestfs.pod:151
34806 "You must add at least one disk image, and you may add multiple disk images. "
34807 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34808 "first one you added), C</dev/sdb> (for the second one you added), etc."
34812 #: ../src/guestfs.pod:156
34814 "Once L</guestfs_launch> has been called you cannot add any more images. You "
34815 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34816 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
34820 #: ../src/guestfs.pod:161
34822 msgstr "МОНТУВАННЯ"
34825 #: ../src/guestfs.pod:163
34827 "Before you can read or write files, create directories and so on in a disk "
34828 "image that contains filesystems, you have to mount those filesystems using "
34829 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
34830 "a disk image contains (for example) one partition with a filesystem on that "
34831 "partition, then you can mount it directly:"
34835 #: ../src/guestfs.pod:170
34838 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34841 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34845 #: ../src/guestfs.pod:172
34847 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34848 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
34849 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
34850 "that these are libguestfs virtual devices, and are nothing to do with host "
34855 #: ../src/guestfs.pod:178
34857 "If you are given a disk image and you don't know what it contains then you "
34858 "have to find out. Libguestfs can do that too: use L</"
34859 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34860 "LVs, and either try mounting each to see what is mountable, or else examine "
34861 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
34862 "filesystems, use L</guestfs_list_filesystems>."
34866 #: ../src/guestfs.pod:186
34868 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34869 "L</INSPECTION> below). But you might find it easier to look at higher level "
34870 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34874 #: ../src/guestfs.pod:191
34876 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
34877 "several other variations of the C<guestfs_mount_*> call."
34881 #: ../src/guestfs.pod:194
34882 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34883 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34886 #: ../src/guestfs.pod:196
34888 "The majority of the libguestfs API consists of fairly low-level calls for "
34889 "accessing and modifying the files, directories, symlinks etc on mounted "
34890 "filesystems. There are over a hundred such calls which you can find listed "
34891 "in detail below in this man page, and we don't even pretend to cover them "
34892 "all in this overview."
34896 #: ../src/guestfs.pod:202
34898 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34901 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
34902 "точкою монтування."
34905 #: ../src/guestfs.pod:205
34907 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34908 "the file called C<\"etc/passwd\"> then you could do:"
34910 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
34911 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
34915 #: ../src/guestfs.pod:208
34918 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34921 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34925 #: ../src/guestfs.pod:210
34927 "This would return C<data> as a newly allocated buffer containing the full "
34928 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34929 "or C<NULL> if there was an error."
34933 #: ../src/guestfs.pod:214
34935 "As another example, to create a top-level directory on that filesystem "
34936 "called C<\"var\"> you would do:"
34940 #: ../src/guestfs.pod:217
34943 " guestfs_mkdir (g, \"/var\");\n"
34946 " guestfs_mkdir (g, \"/var\");\n"
34950 #: ../src/guestfs.pod:219
34951 msgid "To create a symlink you could do:"
34952 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
34955 #: ../src/guestfs.pod:221
34958 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34959 " \"/etc/rc3.d/S30portmap\");\n"
34962 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34963 " \"/etc/rc3.d/S30portmap\");\n"
34967 #: ../src/guestfs.pod:224
34969 "Libguestfs will reject attempts to use relative paths and there is no "
34970 "concept of a current working directory."
34974 #: ../src/guestfs.pod:227
34976 "Libguestfs can return errors in many situations: for example if the "
34977 "filesystem isn't writable, or if a file or directory that you requested "
34978 "doesn't exist. If you are using the C API (documented here) you have to "
34979 "check for those error conditions after each call. (Other language bindings "
34980 "turn these errors into exceptions)."
34984 #: ../src/guestfs.pod:233
34986 "File writes are affected by the per-handle umask, set by calling L</"
34987 "guestfs_umask> and defaulting to 022. See L</UMASK>."
34991 #: ../src/guestfs.pod:236
34992 msgid "PARTITIONING"
34993 msgstr "ПОДІЛ НА РОЗДІЛИ"
34996 #: ../src/guestfs.pod:238
34998 "Libguestfs contains API calls to read, create and modify partition tables on "
35003 #: ../src/guestfs.pod:241
35005 "In the common case where you want to create a single partition covering the "
35006 "whole disk, you should use the L</guestfs_part_disk> call:"
35010 #: ../src/guestfs.pod:245
35013 " const char *parttype = \"mbr\";\n"
35014 " if (disk_is_larger_than_2TB)\n"
35015 " parttype = \"gpt\";\n"
35016 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35019 " const char *parttype = \"mbr\";\n"
35020 " if (disk_is_larger_than_2TB)\n"
35021 " parttype = \"gpt\";\n"
35022 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35026 #: ../src/guestfs.pod:250
35028 "Obviously this effectively wipes anything that was on that disk image before."
35032 #: ../src/guestfs.pod:253
35037 #: ../src/guestfs.pod:255
35039 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35040 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35041 "you familiarize yourself with the concepts of physical volumes, volume "
35042 "groups and logical volumes."
35046 #: ../src/guestfs.pod:260
35048 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35049 "tldp.org/HOWTO/LVM-HOWTO/>."
35053 #: ../src/guestfs.pod:263
35054 msgid "DOWNLOADING"
35055 msgstr "ОТРИМАННЯ ДАНИХ"
35058 #: ../src/guestfs.pod:265
35060 "Use L</guestfs_cat> to download small, text only files. This call is "
35061 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35062 "NUL (C<\\0>) characters. However the API is very simple to use."
35066 #: ../src/guestfs.pod:269
35068 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35069 "bit data, since it returns a (pointer, size) pair. However it is still "
35070 "limited to \"small\" files, less than 2 MB."
35074 #: ../src/guestfs.pod:273
35076 "L</guestfs_download> can be used to download any file, with no limits on "
35077 "content or size (even files larger than 4 GB)."
35081 #: ../src/guestfs.pod:276
35083 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35087 #: ../src/guestfs.pod:279
35089 msgstr "ВИВАНТАЖЕННЯ"
35092 #: ../src/guestfs.pod:281
35094 "It's often the case that you want to write a file or files to the disk image."
35098 #: ../src/guestfs.pod:284
35100 "To write a small file with fixed content, use L</guestfs_write>. To create "
35101 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35102 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35103 "of other functions for creating test files, for example L</guestfs_fill> and "
35104 "L</guestfs_fill_pattern>."
35108 #: ../src/guestfs.pod:290
35110 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
35111 "file content or size (even files larger than 4 GB)."
35115 #: ../src/guestfs.pod:293
35117 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35121 #: ../src/guestfs.pod:295
35123 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35124 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35125 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
35126 "in a predictable way (eg. adding it last after all other drives) then you "
35127 "can get the device name from L</guestfs_list_devices> and mount it directly "
35128 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
35129 "portable between kernel versions, and they don't support labels or UUIDs. "
35130 "If you want to pre-build an image or you need to mount it using a label or "
35131 "UUID, use an ISO image instead."
35135 #: ../src/guestfs.pod:306
35137 msgstr "КОПІЮВАННЯ"
35140 #: ../src/guestfs.pod:308
35142 "There are various different commands for copying between files and devices "
35143 "and in and out of the guest filesystem. These are summarised in the table "
35148 #: ../src/guestfs.pod:314
35149 msgid "B<file> to B<file>"
35150 msgstr "B<файл> у B<файл>"
35153 #: ../src/guestfs.pod:316
35155 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35156 "directories recursively."
35160 #: ../src/guestfs.pod:319
35161 msgid "B<file or device> to B<file or device>"
35162 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35165 #: ../src/guestfs.pod:321
35167 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35168 "devices in the guest."
35172 #: ../src/guestfs.pod:324
35173 msgid "Example: duplicate the contents of an LV:"
35177 #: ../src/guestfs.pod:326
35180 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35183 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35187 #: ../src/guestfs.pod:328
35189 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35190 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
35191 "guestfs_copy_size>."
35195 #: ../src/guestfs.pod:332
35196 msgid "B<file on the host> to B<file or device>"
35200 #: ../src/guestfs.pod:334
35201 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
35205 #: ../src/guestfs.pod:336
35206 msgid "B<file or device> to B<file on the host>"
35210 #: ../src/guestfs.pod:338
35211 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
35215 #: ../src/guestfs.pod:342
35216 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35220 #: ../src/guestfs.pod:344
35222 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35223 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35224 "appears you can only upload and download to files. However many Un*x-like "
35225 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35226 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35227 "and arbitrary file descriptor N."
35231 #: ../src/guestfs.pod:352
35232 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35236 #: ../src/guestfs.pod:355
35239 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35242 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35246 #: ../src/guestfs.pod:357
35247 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35251 #: ../src/guestfs.pod:359
35254 " char devfd[64];\n"
35255 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35256 " guestfs_tar_out (g, \"/\", devfd);\n"
35259 " char devfd[64];\n"
35260 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35261 " guestfs_tar_out (g, \"/\", devfd);\n"
35265 #: ../src/guestfs.pod:363
35266 msgid "LISTING FILES"
35267 msgstr "СПИСКИ ФАЙЛІВ"
35270 #: ../src/guestfs.pod:365
35272 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35273 "L<guestfish(1)>-equivalent command C<ll>)."
35277 #: ../src/guestfs.pod:368
35279 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35280 "programs, as a flat list of strings."
35284 #: ../src/guestfs.pod:371
35286 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35287 "directory, plus additional information about each one. It is more "
35288 "equivalent to using the L<readdir(3)> call on a local filesystem."
35292 #: ../src/guestfs.pod:375
35294 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35298 #: ../src/guestfs.pod:378
35299 msgid "RUNNING COMMANDS"
35300 msgstr "ВИКОНАННЯ КОМАНД"
35303 #: ../src/guestfs.pod:380
35305 "Although libguestfs is primarily an API for manipulating files inside guest "
35306 "images, we also provide some limited facilities for running commands inside "
35311 #: ../src/guestfs.pod:384
35312 msgid "There are many limitations to this:"
35316 #: ../src/guestfs.pod:390
35318 "The kernel version that the command runs under will be different from what "
35323 #: ../src/guestfs.pod:395
35325 "If the command needs to communicate with daemons, then most likely they "
35326 "won't be running."
35330 #: ../src/guestfs.pod:400
35331 msgid "The command will be running in limited memory."
35335 #: ../src/guestfs.pod:404
35337 "The network may not be available unless you enable it (see L</"
35338 "guestfs_set_network>)."
35342 #: ../src/guestfs.pod:409
35343 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35347 #: ../src/guestfs.pod:413
35349 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35353 #: ../src/guestfs.pod:418
35355 "For SELinux guests, you may need to enable SELinux and load policy first. "
35356 "See L</SELINUX> in this manpage."
35360 #: ../src/guestfs.pod:423
35362 "I<Security:> It is not safe to run commands from untrusted, possibly "
35363 "malicious guests. These commands may attempt to exploit your program by "
35364 "sending unexpected output. They could also try to exploit the Linux kernel "
35365 "or qemu provided by the libguestfs appliance. They could use the network "
35366 "provided by the libguestfs appliance to bypass ordinary network partitions "
35367 "and firewalls. They could use the elevated privileges or different SELinux "
35368 "context of your program to their advantage."
35372 #: ../src/guestfs.pod:432
35374 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35375 "(a script which runs when the guest next boots normally), and to have this "
35376 "script run the commands you want in the normal context of the running guest, "
35377 "network security and so on. For information about other security issues, "
35378 "see L</SECURITY>."
35382 #: ../src/guestfs.pod:440
35384 "The two main API calls to run commands are L</guestfs_command> and L</"
35385 "guestfs_sh> (there are also variations)."
35389 #: ../src/guestfs.pod:443
35391 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35392 "shell globs, redirections, etc will work."
35396 #: ../src/guestfs.pod:446
35397 msgid "CONFIGURATION FILES"
35398 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35401 #: ../src/guestfs.pod:448
35403 "To read and write configuration files in Linux guest filesystems, we "
35404 "strongly recommend using Augeas. For example, Augeas understands how to "
35405 "read and write, say, a Linux shadow password file or X.org configuration "
35406 "file, and so avoids you having to write that code."
35410 #: ../src/guestfs.pod:453
35412 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
35413 "document Augeas itself here because there is excellent documentation on the "
35414 "L<http://augeas.net/> website."
35418 #: ../src/guestfs.pod:457
35420 "If you don't want to use Augeas (you fool!) then try calling L</"
35421 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35426 #: ../src/guestfs.pod:461
35431 #: ../src/guestfs.pod:463
35433 "We support SELinux guests. To ensure that labeling happens correctly in "
35434 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35438 #: ../src/guestfs.pod:471
35439 msgid "Before launching, do:"
35443 #: ../src/guestfs.pod:473
35446 " guestfs_set_selinux (g, 1);\n"
35449 " guestfs_set_selinux (g, 1);\n"
35453 #: ../src/guestfs.pod:477
35455 "After mounting the guest's filesystem(s), load the policy. This is best "
35456 "done by running the L<load_policy(8)> command in the guest itself:"
35460 #: ../src/guestfs.pod:481
35463 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35466 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35470 #: ../src/guestfs.pod:483
35472 "(Older versions of C<load_policy> require you to specify the name of the "
35477 #: ../src/guestfs.pod:488
35479 "Optionally, set the security context for the API. The correct security "
35480 "context to use can only be known by inspecting the guest. As an example:"
35484 #: ../src/guestfs.pod:492
35487 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35490 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35494 #: ../src/guestfs.pod:496
35495 msgid "This will work for running commands and editing existing files."
35499 #: ../src/guestfs.pod:498
35501 "When new files are created, you may need to label them explicitly, for "
35502 "example by running the external command C<restorecon pathname>."
35506 #: ../src/guestfs.pod:502
35511 #: ../src/guestfs.pod:504
35513 "Certain calls are affected by the current file mode creation mask (the "
35514 "\"umask\"). In particular ones which create files or directories, such as "
35515 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
35516 "either the default mode that the file is created with or modifies the mode "
35521 #: ../src/guestfs.pod:510
35523 "The default umask is C<022>, so files are created with modes such as C<0644> "
35524 "and directories with C<0755>."
35528 #: ../src/guestfs.pod:513
35530 "There are two ways to avoid being affected by umask. Either set umask to 0 "
35531 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
35532 "guestfs_chmod> after creating each file or directory."
35536 #: ../src/guestfs.pod:517
35537 msgid "For more information about umask, see L<umask(2)>."
35541 #: ../src/guestfs.pod:521
35543 "Libguestfs allows you to access Linux guests which have been encrypted using "
35544 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35545 "standard. This includes nearly all whole disk encryption systems used by "
35546 "modern Linux guests."
35550 #: ../src/guestfs.pod:527
35552 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35553 "returns the string C<crypto_LUKS>)."
35557 #: ../src/guestfs.pod:530
35559 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
35560 "will require the passphrase!"
35564 #: ../src/guestfs.pod:533
35566 "Opening a LUKS device creates a new device mapper device called C</dev/"
35567 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35568 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
35569 "from and encrypted to the underlying block device respectively."
35573 #: ../src/guestfs.pod:539
35575 "LVM volume groups on the device can be made visible by calling L</"
35576 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
35577 "(s) can now be mounted in the usual way."
35581 #: ../src/guestfs.pod:543
35583 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
35584 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35585 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
35586 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35587 "underlying encrypted block device)."
35591 #: ../src/guestfs.pod:550
35596 #: ../src/guestfs.pod:552
35598 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35599 "contains operating systems, an install CD or a live CD. (These APIs used to "
35600 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35601 "version 1.5.3 the most frequently used part of this library has been "
35602 "rewritten in C and moved into the core code)."
35606 #: ../src/guestfs.pod:559
35608 "Add all disks belonging to the unknown virtual machine and call L</"
35609 "guestfs_launch> in the usual way."
35613 #: ../src/guestfs.pod:562
35615 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
35616 "and certain heuristics, and returns a list of operating systems that were "
35617 "found. An empty list means none were found. A single element is the root "
35618 "filesystem of the operating system. For dual- or multi-boot guests, "
35619 "multiple roots can be returned, each one corresponding to a separate "
35620 "operating system. (Multi-boot virtual machines are extremely rare in the "
35621 "world of virtualization, but since this scenario can happen, we have built "
35622 "libguestfs to deal with it.)"
35626 #: ../src/guestfs.pod:571
35628 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35629 "to get additional details about that operating system. For example, call L</"
35630 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35631 "Windows and Linux-based operating systems respectively."
35635 #: ../src/guestfs.pod:577
35637 "Un*x-like and Linux-based operating systems usually consist of several "
35638 "filesystems which are mounted at boot time (for example, a separate boot "
35639 "partition mounted on C</boot>). The inspection rules are able to detect how "
35640 "filesystems correspond to mount points. Call "
35641 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
35642 "hash table like this example:"
35646 #: ../src/guestfs.pod:584
35649 " /boot => /dev/sda1\n"
35650 " / => /dev/vg_guest/lv_root\n"
35651 " /usr => /dev/vg_guest/lv_usr\n"
35654 " /boot => /dev/sda1\n"
35655 " / => /dev/vg_guest/lv_root\n"
35656 " /usr => /dev/vg_guest/lv_usr\n"
35660 #: ../src/guestfs.pod:588
35662 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35663 "filesystems as suggested."
35667 #: ../src/guestfs.pod:591
35669 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35670 "usr>). Sorting the keys of the hash by length, shortest first, should work."
35674 #: ../src/guestfs.pod:595
35676 "Inspection currently only works for some common operating systems. "
35677 "Contributors are welcome to send patches for other operating systems that we "
35678 "currently cannot detect."
35682 #: ../src/guestfs.pod:599
35684 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
35685 "for more details. The L</guestfs_inspect_os> function just ignores any "
35686 "encrypted devices."
35690 #: ../src/guestfs.pod:603
35692 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35693 "inspection and caches the results in the guest handle. Subsequent calls to "
35694 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35695 "read the disks. If you change the content of the guest disks, you can redo "
35696 "inspection by calling L</guestfs_inspect_os> again. (L</"
35697 "guestfs_inspect_list_applications> works a little differently from the other "
35698 "calls and does read the disks. See documentation for that function for "
35703 #: ../src/guestfs.pod:612
35704 msgid "INSPECTING INSTALL DISKS"
35708 #: ../src/guestfs.pod:614
35710 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35715 #: ../src/guestfs.pod:617
35717 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35718 "system, which currently can be C<installed> (a regular operating system) or "
35719 "C<installer> (some sort of install disk)."
35723 #: ../src/guestfs.pod:621
35725 "Further information is available about the operating system that can be "
35726 "installed using the regular inspection APIs like L</"
35727 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35731 #: ../src/guestfs.pod:626
35733 "Some additional information specific to installer disks is also available "
35734 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35735 "guestfs_inspect_is_multipart> calls."
35739 #: ../src/guestfs.pod:631
35740 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35744 #: ../src/guestfs.pod:633
35746 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
35747 "ntfs-3g.org/> driver."
35751 #: ../src/guestfs.pod:636
35752 msgid "DRIVE LETTERS AND PATHS"
35753 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35756 #: ../src/guestfs.pod:638
35758 "DOS and Windows still use drive letters, and the filesystems are always "
35759 "treated as case insensitive by Windows itself, and therefore you might find "
35760 "a Windows configuration file referring to a path like C<c:\\windows"
35761 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
35762 "might be referred to as C</WINDOWS/System32>."
35766 #: ../src/guestfs.pod:644
35768 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35769 "L</guestfs_inspect_get_drive_mappings>)"
35773 #: ../src/guestfs.pod:647
35775 "Dealing with separator characters (backslash vs forward slash) is outside "
35776 "the scope of libguestfs, but usually a simple character replacement will "
35781 #: ../src/guestfs.pod:651
35783 "To resolve the case insensitivity of paths, call L</"
35784 "guestfs_case_sensitive_path>."
35788 #: ../src/guestfs.pod:654
35789 msgid "ACCESSING THE WINDOWS REGISTRY"
35790 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35793 #: ../src/guestfs.pod:656
35795 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35796 "files, through the library C<hivex> which is part of the libguestfs project "
35797 "although ships as a separate tarball. You have to locate and download the "
35798 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
35799 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35800 "reg(1)> for more help on this issue."
35804 #: ../src/guestfs.pod:664
35805 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35806 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35809 #: ../src/guestfs.pod:666
35811 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35812 "provide something which looks like a Linux symlink. The way it tries to do "
35813 "the rewriting is described here:"
35817 #: ../src/guestfs.pod:670
35819 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35822 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35826 #: ../src/guestfs.pod:672
35828 "The essential problem is that ntfs-3g simply does not have enough "
35829 "information to do a correct job. NTFS links can contain drive letters and "
35830 "references to external device GUIDs that ntfs-3g has no way of resolving. "
35831 "It is almost certainly the case that libguestfs callers should ignore what "
35832 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35836 #: ../src/guestfs.pod:679
35838 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35839 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35840 "attribute, and read the raw reparse data from that (you can find the format "
35841 "documented in various places around the web)."
35845 #: ../src/guestfs.pod:684
35846 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35850 #: ../src/guestfs.pod:686
35852 "There are other useful extended attributes that can be read from ntfs-3g "
35853 "filesystems (using L</guestfs_getxattr>). See:"
35857 #: ../src/guestfs.pod:689
35859 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35861 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35864 #: ../src/guestfs.pod:691
35865 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35866 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35869 #: ../src/guestfs.pod:693
35871 "Although we don't want to discourage you from using the C API, we will "
35872 "mention here that the same API is also available in other languages."
35876 #: ../src/guestfs.pod:696
35878 "The API is broadly identical in all supported languages. This means that "
35879 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35880 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35881 "OCaml. In other words, a straightforward, predictable isomorphism between "
35886 #: ../src/guestfs.pod:702
35888 "Error messages are automatically transformed into exceptions if the language "
35893 #: ../src/guestfs.pod:705
35895 "We don't try to \"object orientify\" parts of the API in OO languages, "
35896 "although contributors are welcome to write higher level APIs above what we "
35897 "provide in their favourite languages if they wish."
35901 #: ../src/guestfs.pod:711
35906 #: ../src/guestfs.pod:713
35908 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
35909 "identical to the C API. C++ classes and exceptions are not used."
35913 #: ../src/guestfs.pod:717
35918 #: ../src/guestfs.pod:719
35920 "The C# bindings are highly experimental. Please read the warnings at the "
35921 "top of C<csharp/Libguestfs.cs>."
35925 #: ../src/guestfs.pod:722
35930 #: ../src/guestfs.pod:724
35931 msgid "See L<guestfs-erlang(3)>."
35935 #: ../src/guestfs.pod:726
35937 msgstr "B<Haskell>"
35940 #: ../src/guestfs.pod:728
35942 "This is the only language binding that is working but incomplete. Only "
35943 "calls which return simple integers have been bound in Haskell, and we are "
35944 "looking for help to complete this binding."
35948 #: ../src/guestfs.pod:732
35953 #: ../src/guestfs.pod:734
35955 "Full documentation is contained in the Javadoc which is distributed with "
35956 "libguestfs. For examples, see L<guestfs-java(3)>."
35960 #: ../src/guestfs.pod:737
35965 #: ../src/guestfs.pod:739
35966 msgid "See L<guestfs-ocaml(3)>."
35967 msgstr "Див. L<guestfs-ocaml(3)>."
35970 #: ../src/guestfs.pod:741
35975 #: ../src/guestfs.pod:743
35976 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35977 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
35980 #: ../src/guestfs.pod:745
35985 #: ../src/guestfs.pod:747
35987 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35988 "the php-libguestfs package for your distribution."
35992 #: ../src/guestfs.pod:750
35993 msgid "The PHP binding only works correctly on 64 bit machines."
35997 #: ../src/guestfs.pod:752
36002 #: ../src/guestfs.pod:754
36003 msgid "See L<guestfs-python(3)>."
36004 msgstr "Див. L<guestfs-python(3)>."
36007 #: ../src/guestfs.pod:756
36012 #: ../src/guestfs.pod:758
36013 msgid "See L<guestfs-ruby(3)>."
36014 msgstr "Див. L<guestfs-ruby(3)>."
36017 #: ../src/guestfs.pod:760
36018 msgid "B<shell scripts>"
36019 msgstr "B<скрипти оболонки>"
36022 #: ../src/guestfs.pod:762
36023 msgid "See L<guestfish(1)>."
36024 msgstr "Див. L<guestfish(1)>."
36027 #: ../src/guestfs.pod:766
36028 msgid "LIBGUESTFS GOTCHAS"
36032 #: ../src/guestfs.pod:768
36034 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36035 "system [...] that works in the way it is documented but is counterintuitive "
36036 "and almost invites mistakes.\""
36040 #: ../src/guestfs.pod:772
36042 "Since we developed libguestfs and the associated tools, there are several "
36043 "things we would have designed differently, but are now stuck with for "
36044 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36045 "release, you can expect these to change. Beware of them."
36049 #: ../src/guestfs.pod:780
36050 msgid "Autosync / forgetting to sync."
36054 #: ../src/guestfs.pod:782
36056 "I<Update:> Autosync is enabled by default for all API users starting from "
36057 "libguestfs 1.5.24. This section only applies to older versions."
36061 #: ../src/guestfs.pod:785
36063 "When modifying a filesystem from C or another language, you B<must> unmount "
36064 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36065 "libguestfs handle. You can also call:"
36069 #: ../src/guestfs.pod:789
36072 " guestfs_set_autosync (g, 1);\n"
36075 " guestfs_set_autosync (g, 1);\n"
36079 #: ../src/guestfs.pod:791
36081 "to have the unmount/sync done automatically for you when the handle 'g' is "
36082 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36086 #: ../src/guestfs.pod:795
36088 "If you forget to do this, then it is entirely possible that your changes "
36089 "won't be written out, or will be partially written, or (very rarely) that "
36090 "you'll get disk corruption."
36094 #: ../src/guestfs.pod:799
36096 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36097 "guestfish scripts that forget to sync will work just fine, which can make "
36098 "this very puzzling if you are trying to debug a problem."
36102 #: ../src/guestfs.pod:803
36103 msgid "Mount option C<-o sync> should not be the default."
36107 #: ../src/guestfs.pod:805
36109 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36110 "libguestfs 1.13.16. This section only applies to older versions."
36114 #: ../src/guestfs.pod:808
36116 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
36117 "However C<-o sync> does not add any reliability benefit, but does have a "
36118 "very large performance impact."
36122 #: ../src/guestfs.pod:812
36124 "The work around is to use L</guestfs_mount_options> and set the mount "
36125 "options that you actually want to use."
36129 #: ../src/guestfs.pod:815
36130 msgid "Read-only should be the default."
36134 #: ../src/guestfs.pod:817
36136 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36137 "specify I<--rw> if you want to make changes to the image."
36141 #: ../src/guestfs.pod:820
36142 msgid "This would reduce the potential to corrupt live VM images."
36146 #: ../src/guestfs.pod:822
36148 "Note that many filesystems change the disk when you just mount and unmount, "
36149 "even if you didn't perform any writes. You need to use L</"
36150 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36154 #: ../src/guestfs.pod:826
36155 msgid "guestfish command line is hard to use."
36159 #: ../src/guestfs.pod:828
36161 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36162 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
36163 "exist, so it fails. In earlier versions of guestfish the error message was "
36164 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
36165 "we should have used C<guestfish -c command> to run commands."
36169 #: ../src/guestfs.pod:835
36170 msgid "guestfish megabyte modifiers don't work right on all commands"
36174 #: ../src/guestfs.pod:837
36176 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36177 "other modifiers). What guestfish actually does is to multiply the number "
36178 "part by the modifier part and pass the result to the C API. However this "
36179 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36180 "expecting some other unit (eg. megabytes)."
36184 #: ../src/guestfs.pod:844
36185 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
36189 #: ../src/guestfs.pod:846
36192 " lvcreate LV VG 100M\n"
36195 " lvcreate LV VG 100M\n"
36199 #: ../src/guestfs.pod:848
36201 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
36202 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36203 "megabytes * megabytes) logical volume. The error message you get from this "
36204 "is also a little obscure."
36208 #: ../src/guestfs.pod:853
36210 "This could be fixed in the generator by specially marking parameters and "
36211 "return values which take bytes or other units."
36215 #: ../src/guestfs.pod:856
36216 msgid "Ambiguity between devices and paths"
36220 #: ../src/guestfs.pod:858
36222 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36223 "sdb2>) and a similar pathname. A file might just happen to be called "
36224 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36228 #: ../src/guestfs.pod:863
36230 "In the current API we usually resolve this ambiguity by having two separate "
36231 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
36232 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36233 "detecting if the path supplied begins with C</dev/>."
36237 #: ../src/guestfs.pod:869
36239 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36240 "make paths/devices into structured names. One way to do this would be to "
36241 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36242 "aspect of grub. Another way would be to use a structured type, equivalent "
36243 "to this OCaml type:"
36247 #: ../src/guestfs.pod:875
36250 " type path = Path of string | Device of int | Partition of int * int\n"
36255 #: ../src/guestfs.pod:877
36256 msgid "which would allow you to pass arguments like:"
36260 #: ../src/guestfs.pod:879
36263 " Path \"/foo/bar\"\n"
36264 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
36265 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36266 " Path \"/dev/sdb2\" (* not a device *)\n"
36271 #: ../src/guestfs.pod:884
36273 "As you can see there are still problems to resolve even with this "
36274 "representation. Also consider how it might work in guestfish."
36278 #: ../src/guestfs.pod:889
36279 msgid "KEYS AND PASSPHRASES"
36280 msgstr "КЛЮЧІ І ПАРОЛІ"
36283 #: ../src/guestfs.pod:891
36285 "Certain libguestfs calls take a parameter that contains sensitive key "
36286 "material, passed in as a C string."
36290 #: ../src/guestfs.pod:894
36292 "In the future we would hope to change the libguestfs implementation so that "
36293 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36294 "swap. However this is I<not> done at the moment, because of the complexity "
36295 "of such an implementation."
36299 #: ../src/guestfs.pod:899
36301 "Therefore you should be aware that any key parameter you pass to libguestfs "
36302 "might end up being written out to the swap partition. If this is a concern, "
36303 "scrub the swap partition or don't use libguestfs on encrypted devices."
36307 #: ../src/guestfs.pod:904
36308 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36312 #: ../src/guestfs.pod:906
36314 "All high-level libguestfs actions are synchronous. If you want to use "
36315 "libguestfs asynchronously then you must create a thread."
36319 #: ../src/guestfs.pod:909
36321 "Only use the handle from a single thread. Either use the handle exclusively "
36322 "from one thread, or provide your own mutex so that two threads cannot issue "
36323 "calls on the same handle at the same time."
36327 #: ../src/guestfs.pod:913
36329 "See the graphical program guestfs-browser for one possible architecture for "
36330 "multithreaded programs using libvirt and libguestfs."
36334 #: ../src/guestfs.pod:916
36339 #: ../src/guestfs.pod:918
36341 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36346 #: ../src/guestfs.pod:921
36348 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36349 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36353 #: ../src/guestfs.pod:924
36355 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36356 "to change the directories that libguestfs will search in. The value is a "
36357 "colon-separated list of paths. The current directory is I<not> searched "
36358 "unless the path contains an empty element or C<.>. For example "
36359 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36360 "then C</usr/lib/guestfs>."
36364 #: ../src/guestfs.pod:931
36365 msgid "QEMU WRAPPERS"
36369 #: ../src/guestfs.pod:933
36371 "If you want to compile your own qemu, run qemu from a non-standard location, "
36372 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36377 #: ../src/guestfs.pod:937
36379 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36380 "last command in the shell script (so that qemu replaces the shell and "
36381 "becomes the direct child of the libguestfs-using program). If you don't do "
36382 "this, then the qemu process won't be cleaned up correctly."
36386 #: ../src/guestfs.pod:942
36388 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36393 #: ../src/guestfs.pod:945
36397 " qemudir=/home/rjones/d/qemu\n"
36398 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36402 " qemudir=/home/rjones/d/qemu\n"
36403 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36407 #: ../src/guestfs.pod:949
36409 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36410 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
36415 #: ../src/guestfs.pod:953
36418 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36421 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36425 #: ../src/guestfs.pod:955
36427 "Note that libguestfs also calls qemu with the -help and -version options in "
36428 "order to determine features."
36432 #: ../src/guestfs.pod:958
36434 "Wrappers can also be used to edit the options passed to qemu. In the "
36435 "following example, the C<-machine ...> option (C<-machine> and the following "
36436 "argument) are removed from the command line and replaced with C<-machine pc,"
36437 "accel=tcg>. The while loop iterates over the options until it finds the "
36438 "right one to remove, putting the remaining options into the C<args> array."
36442 #: ../src/guestfs.pod:967
36446 " while [ $# -gt 0 ]; do\n"
36447 " case \"$1\" in\n"
36451 " args[i]=\"$1\"\n"
36460 #: ../src/guestfs.pod:979
36463 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36468 #: ../src/guestfs.pod:981
36469 msgid "ATTACHING TO RUNNING DAEMONS"
36470 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36473 #: ../src/guestfs.pod:983
36475 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36476 "babies. Use with caution."
36480 #: ../src/guestfs.pod:986
36482 "I<Note (2):> This section explains how to attach to a running daemon from a "
36483 "low level perspective. For most users, simply using virt tools such as "
36484 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36488 #: ../src/guestfs.pod:990
36489 msgid "Using guestfs_set_attach_method"
36490 msgstr "За допомогою guestfs_set_attach_method"
36493 #: ../src/guestfs.pod:992
36495 "By calling L</guestfs_set_attach_method> you can change how the library "
36496 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36497 "ARCHITECTURE> for some background)."
36501 #: ../src/guestfs.pod:996
36503 "The normal attach method is C<appliance>, where a small appliance is created "
36504 "containing the daemon, and then the library connects to this."
36508 #: ../src/guestfs.pod:999
36510 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36511 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36512 "daemon over the Unix domain socket."
36516 #: ../src/guestfs.pod:1003
36518 "The normal use for this is to connect to a running virtual machine that "
36519 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36520 "files inside the live virtual machine."
36524 #: ../src/guestfs.pod:1007
36525 msgid "Using guestfs_add_domain with live flag"
36526 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36529 #: ../src/guestfs.pod:1009
36531 "L</guestfs_add_domain> provides some help for getting the correct attach "
36532 "method. If you pass the C<live> option to this function, then (if the "
36533 "virtual machine is running) it will examine the libvirt XML looking for a "
36534 "virtio-serial channel to connect to:"
36538 #: ../src/guestfs.pod:1015
36545 " <channel type='unix'>\n"
36546 " <source mode='bind' path='/path/to/socket'/>\n"
36547 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36558 " <channel type='unix'>\n"
36559 " <source mode='bind' path='/path/to/socket'/>\n"
36560 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36568 #: ../src/guestfs.pod:1027
36570 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36571 "method to C<unix:/path/to/socket>."
36575 #: ../src/guestfs.pod:1030
36577 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36578 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36579 "to attach to and modify live virtual machines."
36583 #: ../src/guestfs.pod:1034
36585 "The virtual machine needs to have been set up beforehand so that it has the "
36586 "virtio-serial channel and so that guestfsd is running inside it."
36590 #: ../src/guestfs.pod:1038
36591 msgid "ABI GUARANTEE"
36592 msgstr "ГАРАНТІЯ ЩОДО ABI"
36595 #: ../src/guestfs.pod:1040
36597 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36598 "actions as outlined in this section. Although we will deprecate some "
36599 "actions, for example if they get replaced by newer calls, we will keep the "
36600 "old actions forever. This allows you the developer to program in confidence "
36601 "against the libguestfs API."
36605 #: ../src/guestfs.pod:1046
36606 msgid "BLOCK DEVICE NAMING"
36607 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36610 #: ../src/guestfs.pod:1048
36612 "In the kernel there is now quite a profusion of schemata for naming block "
36613 "devices (in this context, by I<block device> I mean a physical or virtual "
36614 "hard drive). The original Linux IDE driver used names starting with C</dev/"
36615 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
36616 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
36617 "for the old IDE driver (particularly for SATA devices) those devices also "
36618 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
36619 "paravirtualized drivers. This has created several different naming systems, "
36620 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36624 #: ../src/guestfs.pod:1060
36626 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36627 "Linux kernel to access block devices. We can run a variety of appliances "
36628 "based on a variety of Linux kernels."
36632 #: ../src/guestfs.pod:1064
36634 "This causes a problem for libguestfs because many API calls use device or "
36635 "partition names. Working scripts and the recipe (example) scripts that we "
36636 "make available over the internet could fail if the naming scheme changes."
36640 #: ../src/guestfs.pod:1069
36642 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
36643 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36644 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36645 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36649 #: ../src/guestfs.pod:1075
36651 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
36652 "L</guestfs_list_partitions> and similar calls return the true names of the "
36653 "devices and partitions as known to the appliance."
36657 #: ../src/guestfs.pod:1080
36658 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36662 #: ../src/guestfs.pod:1082
36664 "Usually this translation is transparent. However in some (very rare) cases "
36665 "you may need to know the exact algorithm. Such cases include where you use "
36666 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36667 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36671 #: ../src/guestfs.pod:1088
36673 "The algorithm is applied only to I<parameters> which are known to be either "
36674 "device or partition names. Return values from functions such as L</"
36675 "guestfs_list_devices> are never changed."
36679 #: ../src/guestfs.pod:1096
36680 msgid "Is the string a parameter which is a device or partition name?"
36684 #: ../src/guestfs.pod:1100
36685 msgid "Does the string begin with C</dev/sd>?"
36686 msgstr "Чи починається рядок з C</dev/sd>?"
36689 #: ../src/guestfs.pod:1104
36691 "Does the named device exist? If so, we use that device. However if I<not> "
36692 "then we continue with this algorithm."
36696 #: ../src/guestfs.pod:1109
36697 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36701 #: ../src/guestfs.pod:1111
36702 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36706 #: ../src/guestfs.pod:1113
36707 msgid "If that named device exists, use it. If not, continue."
36711 #: ../src/guestfs.pod:1117
36712 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36716 #: ../src/guestfs.pod:1119
36717 msgid "If that named device exists, use it. If not, return an error."
36721 #: ../src/guestfs.pod:1123
36722 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36726 #: ../src/guestfs.pod:1125
36728 "Although the standard naming scheme and automatic translation is useful for "
36729 "simple programs and guestfish scripts, for larger programs it is best not to "
36730 "rely on this mechanism."
36734 #: ../src/guestfs.pod:1129
36736 "Where possible for maximum future portability programs using libguestfs "
36737 "should use these future-proof techniques:"
36741 #: ../src/guestfs.pod:1136
36743 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36744 "device names, and then use those names directly."
36748 #: ../src/guestfs.pod:1139
36750 "Since those device names exist by definition, they will never be translated."
36754 #: ../src/guestfs.pod:1144
36756 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36757 "filesystem labels."
36761 #: ../src/guestfs.pod:1151
36763 "This section discusses security implications of using libguestfs, "
36764 "particularly with untrusted or malicious guests or disk images."
36768 #: ../src/guestfs.pod:1154
36769 msgid "GENERAL SECURITY CONSIDERATIONS"
36770 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36773 #: ../src/guestfs.pod:1156
36775 "Be careful with any files or data that you download from a guest (by "
36776 "\"download\" we mean not just the L</guestfs_download> command but any "
36777 "command that reads files, filenames, directories or anything else from a "
36778 "disk image). An attacker could manipulate the data to fool your program "
36779 "into doing the wrong thing. Consider cases such as:"
36783 #: ../src/guestfs.pod:1166
36784 msgid "the data (file etc) not being present"
36788 #: ../src/guestfs.pod:1170
36789 msgid "being present but empty"
36793 #: ../src/guestfs.pod:1174
36794 msgid "being much larger than normal"
36798 #: ../src/guestfs.pod:1178
36799 msgid "containing arbitrary 8 bit data"
36803 #: ../src/guestfs.pod:1182
36804 msgid "being in an unexpected character encoding"
36808 #: ../src/guestfs.pod:1186
36809 msgid "containing homoglyphs."
36813 #: ../src/guestfs.pod:1190
36814 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36815 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36818 #: ../src/guestfs.pod:1192
36820 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36821 "(VFS) module can sometimes be escalated into exploits by deliberately "
36822 "creating a malicious, malformed filesystem. These exploits are very severe "
36823 "for two reasons. Firstly there are very many filesystem drivers in the "
36824 "kernel, and many of them are infrequently used and not much developer "
36825 "attention has been paid to the code. Linux userspace helps potential "
36826 "crackers by detecting the filesystem type and automatically choosing the "
36827 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36828 "the administrator. Secondly, a kernel-level exploit is like a local root "
36829 "exploit (worse in some ways), giving immediate and total access to the "
36830 "system right down to the hardware level."
36834 #: ../src/guestfs.pod:1205
36836 "That explains why you should never mount a filesystem from an untrusted "
36837 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
36838 "inside a qemu virtual machine, usually running as a non-root user. The "
36839 "attacker would need to write a filesystem which first exploited the kernel, "
36840 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36841 "the libguestfs protocol, and finally to be as serious as the host kernel "
36842 "exploit it would need to escalate its privileges to root. This multi-step "
36843 "escalation, performed by a static piece of data, is thought to be extremely "
36844 "hard to do, although we never say 'never' about security issues."
36848 #: ../src/guestfs.pod:1216
36850 "In any case callers can reduce the attack surface by forcing the filesystem "
36851 "type when mounting (use L</guestfs_mount_vfs>)."
36855 #: ../src/guestfs.pod:1219
36856 msgid "PROTOCOL SECURITY"
36857 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36860 #: ../src/guestfs.pod:1221
36862 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
36863 "defined upper message size. However a program that uses libguestfs must "
36864 "also take care - for example you can write a program that downloads a binary "
36865 "from a disk image and executes it locally, and no amount of protocol "
36866 "security will save you from the consequences."
36870 #: ../src/guestfs.pod:1227
36871 msgid "INSPECTION SECURITY"
36875 #: ../src/guestfs.pod:1229
36877 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36878 "directly from the guest, and these could contain any 8 bit data. Callers "
36879 "should be careful to escape these before printing them to a structured file "
36880 "(for example, use HTML escaping if creating a web page)."
36884 #: ../src/guestfs.pod:1235
36886 "Guest configuration may be altered in unusual ways by the administrator of "
36887 "the virtual machine, and may not reflect reality (particularly for untrusted "
36888 "or actively malicious guests). For example we parse the hostname from "
36889 "configuration files like C</etc/sysconfig/network> that we find in the "
36890 "guest, but the guest administrator can easily manipulate these files to "
36891 "provide the wrong hostname."
36895 #: ../src/guestfs.pod:1243
36897 "The inspection API parses guest configuration using two external libraries: "
36898 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
36899 "designed to be robust in the face of malicious data, although denial of "
36900 "service attacks are still possible, for example with oversized configuration "
36905 #: ../src/guestfs.pod:1249
36906 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36907 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
36910 #: ../src/guestfs.pod:1251
36912 "Be very cautious about running commands from the guest. By running a "
36913 "command in the guest, you are giving CPU time to a binary that you do not "
36914 "control, under the same user account as the library, albeit wrapped in qemu "
36915 "virtualization. More information and alternatives can be found in the "
36916 "section L</RUNNING COMMANDS>."
36920 #: ../src/guestfs.pod:1257
36921 msgid "CVE-2010-3851"
36922 msgstr "CVE-2010-3851"
36925 #: ../src/guestfs.pod:1259
36926 msgid "https://bugzilla.redhat.com/642934"
36927 msgstr "https://bugzilla.redhat.com/642934"
36930 #: ../src/guestfs.pod:1261
36932 "This security bug concerns the automatic disk format detection that qemu "
36933 "does on disk images."
36937 #: ../src/guestfs.pod:1264
36939 "A raw disk image is just the raw bytes, there is no header. Other disk "
36940 "images like qcow2 contain a special header. Qemu deals with this by looking "
36941 "for one of the known headers, and if none is found then assuming the disk "
36942 "image must be raw."
36946 #: ../src/guestfs.pod:1269
36948 "This allows a guest which has been given a raw disk image to write some "
36949 "other header. At next boot (or when the disk image is accessed by "
36950 "libguestfs) qemu would do autodetection and think the disk image format was, "
36951 "say, qcow2 based on the header written by the guest."
36955 #: ../src/guestfs.pod:1274
36957 "This in itself would not be a problem, but qcow2 offers many features, one "
36958 "of which is to allow a disk image to refer to another image (called the "
36959 "\"backing disk\"). It does this by placing the path to the backing disk "
36960 "into the qcow2 header. This path is not validated and could point to any "
36961 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
36962 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36963 "control of the attacker."
36967 #: ../src/guestfs.pod:1282
36969 "In libguestfs this is rather hard to exploit except under two circumstances:"
36973 #: ../src/guestfs.pod:1289
36974 msgid "You have enabled the network or have opened the disk in write mode."
36978 #: ../src/guestfs.pod:1293
36980 "You are also running untrusted code from the guest (see L</RUNNING "
36985 #: ../src/guestfs.pod:1298
36987 "The way to avoid this is to specify the expected disk format when adding "
36988 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
36989 "should always do this if the disk is raw format, and it's a good idea for "
36994 #: ../src/guestfs.pod:1303
36996 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36997 "format is fetched from libvirt and passed through."
37001 #: ../src/guestfs.pod:1306
37003 "For libguestfs tools, use the I<--format> command line parameter as "
37008 #: ../src/guestfs.pod:1309
37009 msgid "CONNECTION MANAGEMENT"
37010 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37013 #: ../src/guestfs.pod:1311
37014 msgid "guestfs_h *"
37015 msgstr "guestfs_h *"
37018 #: ../src/guestfs.pod:1313
37020 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37021 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37022 "handle and release all resources used."
37026 #: ../src/guestfs.pod:1317
37028 "For information on using multiple handles and threads, see the section L</"
37029 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37033 #: ../src/guestfs.pod:1320
37034 msgid "guestfs_create"
37035 msgstr "guestfs_create"
37038 #: ../src/guestfs.pod:1322
37041 " guestfs_h *guestfs_create (void);\n"
37044 " guestfs_h *guestfs_create (void);\n"
37048 #: ../src/guestfs.pod:1324
37049 msgid "Create a connection handle."
37050 msgstr "Створити дескриптор з’єднання."
37053 #: ../src/guestfs.pod:1326
37055 "On success this returns a non-NULL pointer to a handle. On error it returns "
37060 #: ../src/guestfs.pod:1329
37062 "You have to \"configure\" the handle after creating it. This includes "
37063 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37064 "handle at least once."
37068 #: ../src/guestfs.pod:1333
37069 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37073 #: ../src/guestfs.pod:1335
37075 "You may also want to configure error handling for the handle. See the L</"
37076 "ERROR HANDLING> section below."
37080 #: ../src/guestfs.pod:1338
37081 msgid "guestfs_close"
37082 msgstr "guestfs_close"
37085 #: ../src/guestfs.pod:1340
37088 " void guestfs_close (guestfs_h *g);\n"
37091 " void guestfs_close (guestfs_h *g);\n"
37095 #: ../src/guestfs.pod:1342
37096 msgid "This closes the connection handle and frees up all resources used."
37100 #: ../src/guestfs.pod:1344
37102 "If autosync was set on the handle and the handle was launched, then this "
37103 "implicitly calls various functions to unmount filesystems and sync the "
37104 "disk. See L</guestfs_set_autosync> for more details."
37108 #: ../src/guestfs.pod:1348
37109 msgid "If a close callback was set on the handle, then it is called."
37113 #: ../src/guestfs.pod:1350
37114 msgid "ERROR HANDLING"
37115 msgstr "ОБРОБКА ПОМИЛОК"
37118 #: ../src/guestfs.pod:1352
37120 "API functions can return errors. For example, almost all functions that "
37121 "return C<int> will return C<-1> to indicate an error."
37125 #: ../src/guestfs.pod:1355
37127 "Additional information is available for errors: an error message string and "
37128 "optionally an error number (errno) if the thing that failed was a system "
37133 #: ../src/guestfs.pod:1359
37135 "You can get at the additional information about the last error on the handle "
37136 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37137 "up an error handler with L</guestfs_set_error_handler>."
37141 #: ../src/guestfs.pod:1364
37143 "When the handle is created, a default error handler is installed which "
37144 "prints the error message string to C<stderr>. For small short-running "
37145 "command line programs it is sufficient to do:"
37149 #: ../src/guestfs.pod:1368
37152 " if (guestfs_launch (g) == -1)\n"
37153 " exit (EXIT_FAILURE);\n"
37156 " if (guestfs_launch (g) == -1)\n"
37157 " exit (EXIT_FAILURE);\n"
37161 #: ../src/guestfs.pod:1371
37163 "since the default error handler will ensure that an error message has been "
37164 "printed to C<stderr> before the program exits."
37168 #: ../src/guestfs.pod:1374
37170 "For other programs the caller will almost certainly want to install an "
37171 "alternate error handler or do error handling in-line like this:"
37175 #: ../src/guestfs.pod:1377
37178 " /* This disables the default behaviour of printing errors\n"
37180 " guestfs_set_error_handler (g, NULL, NULL);\n"
37185 #: ../src/guestfs.pod:1381
37188 " if (guestfs_launch (g) == -1) {\n"
37189 " /* Examine the error message and print it etc. */\n"
37190 " char *msg = guestfs_last_error (g);\n"
37191 " int errnum = guestfs_last_errno (g);\n"
37192 " fprintf (stderr, \"%s\", msg);\n"
37193 " if (errnum != 0)\n"
37194 " fprintf (stderr, \": %s\", strerror (errnum));\n"
37195 " fprintf (stderr, \"\\n\");\n"
37202 #: ../src/guestfs.pod:1392
37204 "Out of memory errors are handled differently. The default action is to call "
37205 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
37206 "guestfs_set_out_of_memory_handler>."
37210 #: ../src/guestfs.pod:1396
37212 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37213 "because there is no handle if this happens there is no way to get additional "
37214 "error information. However L</guestfs_create> is supposed to be a "
37215 "lightweight operation which can only fail because of insufficient memory (it "
37216 "returns NULL in this case)."
37220 #: ../src/guestfs.pod:1402
37221 msgid "guestfs_last_error"
37222 msgstr "guestfs_last_error"
37225 #: ../src/guestfs.pod:1404
37228 " const char *guestfs_last_error (guestfs_h *g);\n"
37231 " const char *guestfs_last_error (guestfs_h *g);\n"
37235 #: ../src/guestfs.pod:1406
37237 "This returns the last error message that happened on C<g>. If there has not "
37238 "been an error since the handle was created, then this returns C<NULL>."
37242 #: ../src/guestfs.pod:1410
37244 "The lifetime of the returned string is until the next error occurs, or L</"
37245 "guestfs_close> is called."
37249 #: ../src/guestfs.pod:1413
37250 msgid "guestfs_last_errno"
37251 msgstr "guestfs_last_errno"
37254 #: ../src/guestfs.pod:1415
37257 " int guestfs_last_errno (guestfs_h *g);\n"
37260 " int guestfs_last_errno (guestfs_h *g);\n"
37264 #: ../src/guestfs.pod:1417
37265 msgid "This returns the last error number (errno) that happened on C<g>."
37269 #: ../src/guestfs.pod:1419
37270 msgid "If successful, an errno integer not equal to zero is returned."
37274 #: ../src/guestfs.pod:1421
37276 "If no error, this returns 0. This call can return 0 in three situations:"
37280 #: ../src/guestfs.pod:1428
37281 msgid "There has not been any error on the handle."
37285 #: ../src/guestfs.pod:1432
37287 "There has been an error but the errno was meaningless. This corresponds to "
37288 "the case where the error did not come from a failed system call, but for "
37289 "some other reason."
37293 #: ../src/guestfs.pod:1438
37295 "There was an error from a failed system call, but for some reason the errno "
37296 "was not captured and returned. This usually indicates a bug in libguestfs."
37300 #: ../src/guestfs.pod:1444
37302 "Libguestfs tries to convert the errno from inside the applicance into a "
37303 "corresponding errno for the caller (not entirely trivial: the appliance "
37304 "might be running a completely different operating system from the library "
37305 "and error numbers are not standardized across Un*xen). If this could not be "
37306 "done, then the error is translated to C<EINVAL>. In practice this should "
37307 "only happen in very rare circumstances."
37311 #: ../src/guestfs.pod:1452
37312 msgid "guestfs_set_error_handler"
37313 msgstr "guestfs_set_error_handler"
37316 #: ../src/guestfs.pod:1454
37319 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37321 " const char *msg);\n"
37322 " void guestfs_set_error_handler (guestfs_h *g,\n"
37323 " guestfs_error_handler_cb cb,\n"
37324 " void *opaque);\n"
37327 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37329 " const char *msg);\n"
37330 " void guestfs_set_error_handler (guestfs_h *g,\n"
37331 " guestfs_error_handler_cb cb,\n"
37332 " void *opaque);\n"
37336 #: ../src/guestfs.pod:1461
37338 "The callback C<cb> will be called if there is an error. The parameters "
37339 "passed to the callback are an opaque data pointer and the error message "
37344 #: ../src/guestfs.pod:1465
37346 "C<errno> is not passed to the callback. To get that the callback must call "
37347 "L</guestfs_last_errno>."
37351 #: ../src/guestfs.pod:1468
37353 "Note that the message string C<msg> is freed as soon as the callback "
37354 "function returns, so if you want to stash it somewhere you must make your "
37359 #: ../src/guestfs.pod:1472
37360 msgid "The default handler prints messages on C<stderr>."
37364 #: ../src/guestfs.pod:1474
37365 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37369 #: ../src/guestfs.pod:1476
37370 msgid "guestfs_get_error_handler"
37371 msgstr "guestfs_get_error_handler"
37374 #: ../src/guestfs.pod:1478
37377 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37378 " void **opaque_rtn);\n"
37381 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37382 " void **opaque_rtn);\n"
37386 #: ../src/guestfs.pod:1481
37387 msgid "Returns the current error handler callback."
37391 #: ../src/guestfs.pod:1483
37392 msgid "guestfs_set_out_of_memory_handler"
37393 msgstr "guestfs_set_out_of_memory_handler"
37396 #: ../src/guestfs.pod:1485
37399 " typedef void (*guestfs_abort_cb) (void);\n"
37400 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37401 " guestfs_abort_cb);\n"
37406 #: ../src/guestfs.pod:1489
37408 "The callback C<cb> will be called if there is an out of memory situation. "
37409 "I<Note this callback must not return>."
37413 #: ../src/guestfs.pod:1492
37414 msgid "The default is to call L<abort(3)>."
37418 #: ../src/guestfs.pod:1494
37420 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
37424 #: ../src/guestfs.pod:1497
37425 msgid "guestfs_get_out_of_memory_handler"
37426 msgstr "guestfs_get_out_of_memory_handler"
37429 #: ../src/guestfs.pod:1499
37432 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37435 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37439 #: ../src/guestfs.pod:1501
37440 msgid "This returns the current out of memory handler."
37444 #: ../src/guestfs.pod:1503
37446 msgstr "ВИКЛИКИ API"
37449 #: ../src/guestfs.pod:1507
37454 #: ../src/guestfs.pod:1509
37459 #: ../src/guestfs.pod:1511
37460 msgid "AVAILABILITY"
37461 msgstr "ДОСТУПНІСТЬ"
37464 #: ../src/guestfs.pod:1513
37465 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37466 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37469 #: ../src/guestfs.pod:1515
37471 "Using L</guestfs_available> you can test availability of the following "
37472 "groups of functions. This test queries the appliance to see if the "
37473 "appliance you are currently using supports the functionality."
37477 #: ../src/guestfs.pod:1520
37478 msgid "@AVAILABILITY@"
37479 msgstr "@AVAILABILITY@"
37482 #: ../src/guestfs.pod:1522
37483 msgid "GUESTFISH supported COMMAND"
37487 #: ../src/guestfs.pod:1524
37489 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37490 "prints out the available groups and whether they are supported by this build "
37491 "of libguestfs. Note however that you have to do C<run> first."
37495 #: ../src/guestfs.pod:1529
37496 msgid "SINGLE CALLS AT COMPILE TIME"
37500 #: ../src/guestfs.pod:1531
37502 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37503 "function, such as:"
37507 #: ../src/guestfs.pod:1534
37510 " #define LIBGUESTFS_HAVE_DD 1\n"
37513 " #define LIBGUESTFS_HAVE_DD 1\n"
37517 #: ../src/guestfs.pod:1536
37518 msgid "if L</guestfs_dd> is available."
37522 #: ../src/guestfs.pod:1538
37524 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37525 "function is available at compile time, we recommended using build tools such "
37526 "as autoconf or cmake. For example in autotools you could use:"
37530 #: ../src/guestfs.pod:1543
37533 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37534 " AC_CHECK_FUNCS([guestfs_dd])\n"
37537 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37538 " AC_CHECK_FUNCS([guestfs_dd])\n"
37542 #: ../src/guestfs.pod:1546
37544 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37549 #: ../src/guestfs.pod:1549
37550 msgid "SINGLE CALLS AT RUN TIME"
37554 #: ../src/guestfs.pod:1551
37556 "Testing at compile time doesn't guarantee that a function really exists in "
37557 "the library. The reason is that you might be dynamically linked against a "
37558 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
37559 "This situation unfortunately results in a segmentation fault, which is a "
37560 "shortcoming of the C dynamic linking system itself."
37564 #: ../src/guestfs.pod:1558
37566 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37567 "in this example program (note that you still need the compile time check as "
37572 #: ../src/guestfs.pod:1562
37575 " #include <stdio.h>\n"
37576 " #include <stdlib.h>\n"
37577 " #include <unistd.h>\n"
37578 " #include <dlfcn.h>\n"
37579 " #include <guestfs.h>\n"
37582 " #include <stdio.h>\n"
37583 " #include <stdlib.h>\n"
37584 " #include <unistd.h>\n"
37585 " #include <dlfcn.h>\n"
37586 " #include <guestfs.h>\n"
37590 #: ../src/guestfs.pod:1568
37595 " #ifdef LIBGUESTFS_HAVE_DD\n"
37597 " int has_function;\n"
37602 " #ifdef LIBGUESTFS_HAVE_DD\n"
37604 " int has_function;\n"
37608 #: ../src/guestfs.pod:1574
37611 " /* Test if the function guestfs_dd is really available. */\n"
37612 " dl = dlopen (NULL, RTLD_LAZY);\n"
37614 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37615 " exit (EXIT_FAILURE);\n"
37617 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37623 #: ../src/guestfs.pod:1583
37626 " if (!has_function)\n"
37627 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37629 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37630 " /* Now it's safe to call\n"
37631 " guestfs_dd (g, \"foo\", \"bar\");\n"
37635 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37642 #: ../src/guestfs.pod:1596
37644 "You may think the above is an awful lot of hassle, and it is. There are "
37645 "other ways outside of the C linking system to ensure that this kind of "
37646 "incompatibility never arises, such as using package versioning:"
37650 #: ../src/guestfs.pod:1601
37653 " Requires: libguestfs >= 1.0.80\n"
37658 #: ../src/guestfs.pod:1603
37659 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37663 #: ../src/guestfs.pod:1605
37665 "A recent feature of the API is the introduction of calls which take optional "
37666 "arguments. In C these are declared 3 ways. The main way is as a call which "
37667 "takes variable arguments (ie. C<...>), as in this example:"
37671 #: ../src/guestfs.pod:1610
37674 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37677 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37681 #: ../src/guestfs.pod:1612
37683 "Call this with a list of optional arguments, terminated by C<-1>. So to "
37684 "call with no optional arguments specified:"
37688 #: ../src/guestfs.pod:1615
37691 " guestfs_add_drive_opts (g, filename, -1);\n"
37694 " guestfs_add_drive_opts (g, filename, -1);\n"
37698 #: ../src/guestfs.pod:1617
37699 msgid "With a single optional argument:"
37703 #: ../src/guestfs.pod:1619
37706 " guestfs_add_drive_opts (g, filename,\n"
37707 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37711 " guestfs_add_drive_opts (g, filename,\n"
37712 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37717 #: ../src/guestfs.pod:1623
37722 #: ../src/guestfs.pod:1625
37725 " guestfs_add_drive_opts (g, filename,\n"
37726 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37727 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37731 " guestfs_add_drive_opts (g, filename,\n"
37732 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37733 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37738 #: ../src/guestfs.pod:1630
37740 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
37745 #: ../src/guestfs.pod:1633
37746 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37750 #: ../src/guestfs.pod:1635
37752 "The second variant has the same name with the suffix C<_va>, which works the "
37753 "same way but takes a C<va_list>. See the C manual for details. For the "
37754 "example function, this is declared:"
37758 #: ../src/guestfs.pod:1639
37761 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37762 " va_list args);\n"
37765 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37766 " va_list args);\n"
37770 #: ../src/guestfs.pod:1642
37771 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37775 #: ../src/guestfs.pod:1644
37777 "The third variant is useful where you need to construct these calls. You "
37778 "pass in a structure where you fill in the optional fields. The structure "
37779 "has a bitmask as the first element which you must set to indicate which "
37780 "fields you have filled in. For our example function the structure and call "
37785 #: ../src/guestfs.pod:1650
37788 " struct guestfs_add_drive_opts_argv {\n"
37789 " uint64_t bitmask;\n"
37791 " const char *format;\n"
37794 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37795 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37798 " struct guestfs_add_drive_opts_argv {\n"
37799 " uint64_t bitmask;\n"
37801 " const char *format;\n"
37804 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37805 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37809 #: ../src/guestfs.pod:1659
37810 msgid "You could call it like this:"
37814 #: ../src/guestfs.pod:1661
37817 " struct guestfs_add_drive_opts_argv optargs = {\n"
37818 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37819 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37820 " .readonly = 1,\n"
37821 " .format = \"qcow2\"\n"
37825 " struct guestfs_add_drive_opts_argv optargs = {\n"
37826 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37827 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37828 " .readonly = 1,\n"
37829 " .format = \"qcow2\"\n"
37834 #: ../src/guestfs.pod:1668
37837 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37840 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37844 #: ../src/guestfs.pod:1676
37845 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37849 #: ../src/guestfs.pod:1681
37850 msgid "You do not need to fill in all fields of the structure."
37854 #: ../src/guestfs.pod:1685
37856 "There must be a one-to-one correspondence between fields of the structure "
37857 "that are filled in, and bits set in the bitmask."
37861 #: ../src/guestfs.pod:1690
37862 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37866 #: ../src/guestfs.pod:1692
37868 "In other languages, optional arguments are expressed in the way that is "
37869 "natural for that language. We refer you to the language-specific "
37870 "documentation for more details on that."
37874 #: ../src/guestfs.pod:1696
37875 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37879 #: ../src/guestfs.pod:1698
37880 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37884 #: ../src/guestfs.pod:1700
37886 "B<Note:> This section documents the generic event mechanism introduced in "
37887 "libguestfs 1.10, which you should use in new code if possible. The old "
37888 "functions C<guestfs_set_log_message_callback>, "
37889 "C<guestfs_set_subprocess_quit_callback>, "
37890 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37891 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37892 "page. Because of the ABI guarantee, the old functions continue to work."
37896 #: ../src/guestfs.pod:1709
37898 "Handles generate events when certain things happen, such as log messages "
37899 "being generated, progress messages during long-running operations, or the "
37900 "handle being closed. The API calls described below let you register a "
37901 "callback to be called when events happen. You can register multiple "
37902 "callbacks (for the same, different or overlapping sets of events), and "
37903 "individually remove callbacks. If callbacks are not removed, then they "
37904 "remain in force until the handle is closed."
37908 #: ../src/guestfs.pod:1717
37910 "In the current implementation, events are only generated synchronously: that "
37911 "means that events (and hence callbacks) can only happen while you are in the "
37912 "middle of making another libguestfs call. The callback is called in the "
37917 #: ../src/guestfs.pod:1722
37919 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37920 "unsigned integers, or a message buffer. Payloads are discussed later on."
37924 #: ../src/guestfs.pod:1726
37925 msgid "CLASSES OF EVENTS"
37929 #: ../src/guestfs.pod:1730
37930 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37934 #: ../src/guestfs.pod:1733
37936 "The callback function will be called while the handle is being closed "
37937 "(synchronously from L</guestfs_close>)."
37941 #: ../src/guestfs.pod:1736
37943 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37944 "handles that are open when the program exits. This means that this callback "
37945 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37946 "problems in higher-level languages (eg. if your HLL interpreter has already "
37947 "been cleaned up by the time this is called, and if your callback then jumps "
37948 "into some HLL function)."
37952 #: ../src/guestfs.pod:1743
37954 "If no callback is registered: the handle is closed without any callback "
37959 #: ../src/guestfs.pod:1746
37960 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37964 #: ../src/guestfs.pod:1749
37966 "The callback function will be called when the child process quits, either "
37967 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
37968 "corresponds to a transition from any state to the CONFIG state)."
37972 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
37973 msgid "If no callback is registered: the event is ignored."
37977 #: ../src/guestfs.pod:1755
37978 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37982 #: ../src/guestfs.pod:1758
37984 "The callback function will be called when the child process becomes ready "
37985 "first time after it has been launched. (This corresponds to a transition "
37986 "from LAUNCHING to the READY state)."
37990 #: ../src/guestfs.pod:1764
37991 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37995 #: ../src/guestfs.pod:1767
37997 "Some long-running operations can generate progress messages. If this "
37998 "callback is registered, then it will be called each time a progress message "
37999 "is generated (usually two seconds after the operation started, and three "
38000 "times per second thereafter until it completes, although the frequency may "
38001 "change in future versions)."
38005 #: ../src/guestfs.pod:1773
38007 "The callback receives in the payload four unsigned 64 bit numbers which are "
38008 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38012 #: ../src/guestfs.pod:1776
38014 "The units of C<total> are not defined, although for some operations C<total> "
38015 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38016 "or megabytes), and C<position> may be the portion which has been transferred."
38020 #: ../src/guestfs.pod:1781
38021 msgid "The only defined and stable parts of the API are:"
38025 #: ../src/guestfs.pod:1787
38027 "The callback can display to the user some type of progress bar or indicator "
38028 "which shows the ratio of C<position>:C<total>."
38032 #: ../src/guestfs.pod:1792
38033 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38037 #: ../src/guestfs.pod:1796
38039 "If any progress notification is sent during a call, then a final progress "
38040 "notification is always sent when C<position> = C<total> (I<unless> the call "
38041 "fails with an error)."
38045 #: ../src/guestfs.pod:1800
38047 "This is to simplify caller code, so callers can easily set the progress "
38048 "indicator to \"100%\" at the end of the operation, without requiring special "
38049 "code to detect this case."
38053 #: ../src/guestfs.pod:1806
38055 "For some calls we are unable to estimate the progress of the call, but we "
38056 "can still generate progress messages to indicate activity. This is known as "
38057 "\"pulse mode\", and is directly supported by certain progress bar "
38058 "implementations (eg. GtkProgressBar)."
38062 #: ../src/guestfs.pod:1811
38064 "For these calls, zero or more progress messages are generated with "
38065 "C<position = 0> and C<total = 1>, followed by a final message with "
38066 "C<position = total = 1>."
38070 #: ../src/guestfs.pod:1815
38072 "As noted above, if the call fails with an error then the final message may "
38073 "not be generated."
38077 #: ../src/guestfs.pod:1820
38079 "The callback also receives the procedure number (C<proc_nr>) and serial "
38080 "number (C<serial>) of the call. These are only useful for debugging "
38081 "protocol issues, and the callback can normally ignore them. The callback "
38082 "may want to print these numbers in error messages or debugging messages."
38086 #: ../src/guestfs.pod:1826
38087 msgid "If no callback is registered: progress messages are discarded."
38091 #: ../src/guestfs.pod:1828
38092 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38096 #: ../src/guestfs.pod:1831
38098 "The callback function is called whenever a log message is generated by qemu, "
38099 "the appliance kernel, guestfsd (daemon), or utility programs."
38103 #: ../src/guestfs.pod:1834
38105 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38106 "guestfs_launch>) then additional debug messages are generated."
38110 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38112 "If no callback is registered: the messages are discarded unless the verbose "
38113 "flag is set in which case they are sent to stderr. You can override the "
38114 "printing of verbose messages to stderr by setting up a callback."
38118 #: ../src/guestfs.pod:1842
38119 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38123 #: ../src/guestfs.pod:1845
38125 "The callback function is called whenever a log message is generated by the "
38126 "library part of libguestfs."
38130 #: ../src/guestfs.pod:1848
38132 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38133 "messages are generated."
38137 #: ../src/guestfs.pod:1856
38138 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38142 #: ../src/guestfs.pod:1859
38144 "The callback function is called whenever a trace message is generated. This "
38145 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38149 #: ../src/guestfs.pod:1862
38151 "If no callback is registered: the messages are sent to stderr. You can "
38152 "override the printing of trace messages to stderr by setting up a callback."
38156 #: ../src/guestfs.pod:1866
38157 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38161 #: ../src/guestfs.pod:1869
38163 "The callback function is called whenever a libguestfs function is entered."
38167 #: ../src/guestfs.pod:1872
38169 "The payload is a string which contains the name of the function that we are "
38170 "entering (not including C<guestfs_> prefix)."
38174 #: ../src/guestfs.pod:1875
38176 "Note that libguestfs functions can call themselves, so you may see many "
38177 "events from a single call. A few libguestfs functions do not generate this "
38182 #: ../src/guestfs.pod:1883
38183 msgid "guestfs_set_event_callback"
38187 #: ../src/guestfs.pod:1885
38190 " int guestfs_set_event_callback (guestfs_h *g,\n"
38191 " guestfs_event_callback cb,\n"
38192 " uint64_t event_bitmask,\n"
38194 " void *opaque);\n"
38199 #: ../src/guestfs.pod:1891
38201 "This function registers a callback (C<cb>) for all event classes in the "
38202 "C<event_bitmask>."
38206 #: ../src/guestfs.pod:1894
38208 "For example, to register for all log message events, you could call this "
38209 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
38210 "To register a single callback for all possible classes of events, use "
38211 "C<GUESTFS_EVENT_ALL>."
38215 #: ../src/guestfs.pod:1900
38216 msgid "C<flags> should always be passed as 0."
38220 #: ../src/guestfs.pod:1902
38222 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
38223 "it for any purpose."
38227 #: ../src/guestfs.pod:1905
38229 "The return value is the event handle (an integer) which you can use to "
38230 "delete the callback (see below)."
38234 #: ../src/guestfs.pod:1908
38236 "If there is an error, this function returns C<-1>, and sets the error in the "
38237 "handle in the usual way (see L</guestfs_last_error> etc.)"
38241 #: ../src/guestfs.pod:1911
38243 "Callbacks remain in effect until they are deleted, or until the handle is "
38248 #: ../src/guestfs.pod:1914
38250 "In the case where multiple callbacks are registered for a particular event "
38251 "class, all of the callbacks are called. The order in which multiple "
38252 "callbacks are called is not defined."
38256 #: ../src/guestfs.pod:1918
38257 msgid "guestfs_delete_event_callback"
38261 #: ../src/guestfs.pod:1920
38264 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38269 #: ../src/guestfs.pod:1922
38271 "Delete a callback that was previously registered. C<event_handle> should be "
38272 "the integer that was returned by a previous call to "
38273 "C<guestfs_set_event_callback> on the same handle."
38277 #: ../src/guestfs.pod:1926
38278 msgid "guestfs_event_callback"
38282 #: ../src/guestfs.pod:1928
38285 " typedef void (*guestfs_event_callback) (\n"
38288 " uint64_t event,\n"
38289 " int event_handle,\n"
38291 " const char *buf, size_t buf_len,\n"
38292 " const uint64_t *array, size_t array_len);\n"
38297 #: ../src/guestfs.pod:1937
38299 "This is the type of the event callback function that you have to provide."
38303 #: ../src/guestfs.pod:1940
38305 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38306 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38307 "handle, and C<flags> which in the current API you should ignore."
38311 #: ../src/guestfs.pod:1944
38313 "The remaining parameters contain the event payload (if any). Each event may "
38314 "contain a payload, which usually relates to the event class, but for future "
38315 "proofing your code should be written to handle any payload for any event "
38320 #: ../src/guestfs.pod:1949
38322 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38323 "there is no message buffer). Note that this message buffer can contain "
38324 "arbitrary 8 bit data, including NUL bytes."
38328 #: ../src/guestfs.pod:1953
38330 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
38331 "moment this is only used for progress messages."
38335 #: ../src/guestfs.pod:1956
38336 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38340 #: ../src/guestfs.pod:1958
38342 "One motivation for the generic event API was to allow GUI programs to "
38343 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
38344 "unconditionally to C<stderr>."
38348 #: ../src/guestfs.pod:1962
38350 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38351 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
38352 "messages are not events; you must capture error messages separately)."
38356 #: ../src/guestfs.pod:1967
38358 "Programs have to set up a callback to capture the classes of events of "
38363 #: ../src/guestfs.pod:1970
38367 " guestfs_set_event_callback\n"
38368 " (g, message_callback,\n"
38369 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38370 " GUESTFS_EVENT_TRACE,\n"
38371 " 0, NULL) == -1)\n"
38372 " if (eh == -1) {\n"
38373 " // handle error in the usual way\n"
38379 #: ../src/guestfs.pod:1980
38381 "The callback can then direct messages to the appropriate place. In this "
38382 "example, messages are directed to syslog:"
38386 #: ../src/guestfs.pod:1983
38390 " message_callback (\n"
38393 " uint64_t event,\n"
38394 " int event_handle,\n"
38396 " const char *buf, size_t buf_len,\n"
38397 " const uint64_t *array, size_t array_len)\n"
38399 " const int priority = LOG_USER|LOG_INFO;\n"
38400 " if (buf_len > 0)\n"
38401 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38407 #: ../src/guestfs.pod:1998
38408 msgid "CANCELLING LONG TRANSFERS"
38412 #: ../src/guestfs.pod:2000
38414 "Some operations can be cancelled by the caller while they are in progress. "
38415 "Currently only operations that involve uploading or downloading data can be "
38416 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38417 "parameters in the generator)."
38421 #: ../src/guestfs.pod:2005
38422 msgid "guestfs_user_cancel"
38426 #: ../src/guestfs.pod:2007
38429 " void guestfs_user_cancel (guestfs_h *g);\n"
38434 #: ../src/guestfs.pod:2009
38436 "C<guestfs_user_cancel> cancels the current upload or download operation."
38440 #: ../src/guestfs.pod:2012
38442 "Unlike most other libguestfs calls, this function is signal safe and thread "
38443 "safe. You can call it from a signal handler or from another thread, without "
38444 "needing to do any locking."
38448 #: ../src/guestfs.pod:2016
38450 "The transfer that was in progress (if there is one) will stop shortly "
38451 "afterwards, and will return an error. The errno (see L</"
38452 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38453 "out if the operation was cancelled or failed because of another error."
38457 #: ../src/guestfs.pod:2022
38459 "No cleanup is performed: for example, if a file was being uploaded then "
38460 "after cancellation there may be a partially uploaded file. It is the "
38461 "caller's responsibility to clean up if necessary."
38465 #: ../src/guestfs.pod:2026
38466 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38470 #: ../src/guestfs.pod:2028
38472 "In an interactive text-based program, you might call it from a C<SIGINT> "
38473 "signal handler so that pressing C<^C> cancels the current operation. (You "
38474 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38475 "receive the C<^C> signal)."
38479 #: ../src/guestfs.pod:2033
38481 "In a graphical program, when the main thread is displaying a progress bar "
38482 "with a cancel button, wire up the cancel button to call this function."
38486 #: ../src/guestfs.pod:2037
38487 msgid "PRIVATE DATA AREA"
38491 #: ../src/guestfs.pod:2039
38493 "You can attach named pieces of private data to the libguestfs handle, fetch "
38494 "them by name, and walk over them, for the lifetime of the handle. This is "
38495 "called the private data area and is only available from the C API."
38499 #: ../src/guestfs.pod:2044
38500 msgid "To attach a named piece of data, use the following call:"
38504 #: ../src/guestfs.pod:2046
38507 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38510 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38514 #: ../src/guestfs.pod:2048
38516 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38517 "pointer (which can be C<NULL>). Any previous item with the same key is "
38522 #: ../src/guestfs.pod:2052
38524 "You can use any C<key> you want, but your key should I<not> start with an "
38525 "underscore character. Keys beginning with an underscore character are "
38526 "reserved for internal libguestfs purposes (eg. for implementing language "
38527 "bindings). It is recommended that you prefix the key with some unique "
38528 "string to avoid collisions with other users."
38532 #: ../src/guestfs.pod:2058
38533 msgid "To retrieve the pointer, use:"
38537 #: ../src/guestfs.pod:2060
38540 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38543 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38547 #: ../src/guestfs.pod:2062
38549 "This function returns C<NULL> if either no data is found associated with "
38550 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38555 #: ../src/guestfs.pod:2066
38557 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38558 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
38559 "all. In particular, libguestfs does I<not> try to free the data when the "
38560 "handle is closed. If the data must be freed, then the caller must either "
38561 "free it before calling L</guestfs_close> or must set up a close callback to "
38562 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38566 #: ../src/guestfs.pod:2073
38567 msgid "To walk over all entries, use these two functions:"
38571 #: ../src/guestfs.pod:2075
38574 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38579 #: ../src/guestfs.pod:2077
38582 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38587 #: ../src/guestfs.pod:2079
38589 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38590 "not have any particular meaning -- keys are not returned in any defined "
38591 "order). A pointer to the key is returned in C<*key_rtn> and the "
38592 "corresponding data pointer is returned from the function. C<NULL> is "
38593 "returned if there are no keys stored in the handle."
38597 #: ../src/guestfs.pod:2085
38599 "C<guestfs_next_private> returns the next key, pointer pair. The return "
38600 "value of this function is also C<NULL> is there are no further entries to "
38605 #: ../src/guestfs.pod:2089
38606 msgid "Notes about walking over entries:"
38610 #: ../src/guestfs.pod:2095
38612 "You must not call C<guestfs_set_private> while walking over the entries."
38616 #: ../src/guestfs.pod:2100
38618 "The handle maintains an internal iterator which is reset when you call "
38619 "C<guestfs_first_private>. This internal iterator is invalidated when you "
38620 "call C<guestfs_set_private>."
38624 #: ../src/guestfs.pod:2106
38625 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38629 #: ../src/guestfs.pod:2108
38632 " guestfs_set_private (g, key, NULL);\n"
38637 #: ../src/guestfs.pod:2110
38638 msgid "then that C<key> is not returned when walking."
38642 #: ../src/guestfs.pod:2114
38644 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38645 "C<guestfs_next_private> or C<guestfs_set_private>."
38649 #: ../src/guestfs.pod:2120
38651 "The following example code shows how to print all keys and data pointers "
38652 "that are associated with the handle C<g>:"
38656 #: ../src/guestfs.pod:2123
38659 " const char *key;\n"
38660 " void *data = guestfs_first_private (g, &key);\n"
38661 " while (data != NULL)\n"
38663 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38664 " data = guestfs_next_private (g, &key);\n"
38670 #: ../src/guestfs.pod:2131
38672 "More commonly you are only interested in keys that begin with an application-"
38673 "specific prefix C<foo_>. Modify the loop like so:"
38677 #: ../src/guestfs.pod:2134
38680 " const char *key;\n"
38681 " void *data = guestfs_first_private (g, &key);\n"
38682 " while (data != NULL)\n"
38684 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38685 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38686 " data = guestfs_next_private (g, &key);\n"
38692 #: ../src/guestfs.pod:2143
38694 "If you need to modify keys while walking, then you have to jump back to the "
38695 "beginning of the loop. For example, to delete all keys prefixed with "
38700 #: ../src/guestfs.pod:2147
38703 " const char *key;\n"
38706 " data = guestfs_first_private (g, &key);\n"
38707 " while (data != NULL)\n"
38709 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38711 " guestfs_set_private (g, key, NULL);\n"
38712 " /* note that 'key' pointer is now invalid, and so is\n"
38713 " the internal iterator */\n"
38716 " data = guestfs_next_private (g, &key);\n"
38722 #: ../src/guestfs.pod:2163
38724 "Note that the above loop is guaranteed to terminate because the keys are "
38725 "being deleted, but other manipulations of keys within the loop might not "
38726 "terminate unless you also maintain an indication of which keys have been "
38731 #: ../src/guestfs.pod:2168
38736 #: ../src/guestfs.pod:2170
38738 "The libguestfs C library can be probed using systemtap or DTrace. This is "
38739 "true of any library, not just libguestfs. However libguestfs also contains "
38740 "static markers to help in probing internal operations."
38744 #: ../src/guestfs.pod:2174
38745 msgid "You can list all the static markers by doing:"
38749 #: ../src/guestfs.pod:2176
38752 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38753 " .provider(\"guestfs\").mark(\"*\")'\n"
38758 #: ../src/guestfs.pod:2179
38760 "B<Note:> These static markers are I<not> part of the stable API and may "
38761 "change in future versions."
38765 #: ../src/guestfs.pod:2182
38766 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38770 #: ../src/guestfs.pod:2184
38772 "This script contains examples of displaying both the static markers and some "
38773 "ordinary C entry points:"
38777 #: ../src/guestfs.pod:2187
38785 #: ../src/guestfs.pod:2189
38788 " function display_time () {\n"
38789 " now = gettimeofday_us ();\n"
38792 " delta = now - last;\n"
38798 #: ../src/guestfs.pod:2196
38801 " printf (\"%d (+%d):\", now, delta);\n"
38807 #: ../src/guestfs.pod:2199
38812 " printf (\"ready\\n\");\n"
38818 #: ../src/guestfs.pod:2204
38821 " /* Display all calls to static markers. */\n"
38822 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38823 " .provider(\"guestfs\").mark(\"*\") ? {\n"
38824 " display_time();\n"
38825 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38831 #: ../src/guestfs.pod:2211
38834 " /* Display all calls to guestfs_mkfs* functions. */\n"
38835 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38836 " .function(\"guestfs_mkfs*\") ? {\n"
38837 " display_time();\n"
38838 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38844 #: ../src/guestfs.pod:2218
38846 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38847 "program. Note that you either have to be root, or you have to add yourself "
38848 "to several special stap groups. Consult the systemtap documentation for "
38849 "more information."
38853 #: ../src/guestfs.pod:2223
38856 " # stap /tmp/test.stap\n"
38862 #: ../src/guestfs.pod:2226
38863 msgid "In another terminal, run a guestfish command such as this:"
38867 #: ../src/guestfs.pod:2230
38868 msgid "In the first terminal, stap trace output similar to this is shown:"
38872 #: ../src/guestfs.pod:2232
38875 " 1318248056692655 (+0):\tlaunch_start\n"
38876 " 1318248056692850 (+195): launch_build_appliance_start\n"
38877 " 1318248056818285 (+125435): launch_build_appliance_end\n"
38878 " 1318248056838059 (+19774): launch_run_qemu\n"
38879 " 1318248061071167 (+4233108): launch_end\n"
38880 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38885 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
38890 #: ../src/guestfs.pod:2241
38892 "<!-- old anchor for the next section --> <a name="
38893 "\"state_machine_and_low_level_event_api\"/>"
38895 "<!-- old anchor for the next section --> <a name="
38896 "\"state_machine_and_low_level_event_api\"/>"
38899 #: ../src/guestfs.pod:2246
38900 msgid "ARCHITECTURE"
38901 msgstr "АРХІТЕКТУРА"
38904 #: ../src/guestfs.pod:2248
38906 "Internally, libguestfs is implemented by running an appliance (a special "
38907 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
38908 "process of the main program."
38912 #: ../src/guestfs.pod:2252
38915 " ___________________\n"
38917 " | main program |\n"
38919 " | | child process / appliance\n"
38920 " | | __________________________\n"
38922 " +-------------------+ RPC | +-----------------+ |\n"
38923 " | libguestfs <--------------------> guestfsd | |\n"
38924 " | | | +-----------------+ |\n"
38925 " \\___________________/ | | Linux kernel | |\n"
38926 " | +--^--------------+ |\n"
38927 " \\_________|________________/\n"
38929 " _______v______\n"
38932 " | disk image |\n"
38933 " \\______________/\n"
38938 #: ../src/guestfs.pod:2272
38940 "The library, linked to the main program, creates the child process and hence "
38941 "the appliance in the L</guestfs_launch> function."
38945 #: ../src/guestfs.pod:2275
38947 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38948 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38949 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
38950 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
38951 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
38952 "attached to the qemu process which translates device access by the "
38953 "appliance's Linux kernel into accesses to the image."
38957 #: ../src/guestfs.pod:2284
38959 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
38960 "Although the disk image you are attached to might also be used by some "
38961 "virtual machine, libguestfs doesn't know or care about this. (But you will "
38962 "care if both libguestfs's qemu process and your virtual machine are trying "
38963 "to update the disk image at the same time, since these usually results in "
38964 "massive disk corruption)."
38968 #: ../src/guestfs.pod:2291
38969 msgid "STATE MACHINE"
38970 msgstr "СКІНЧЕННИЙ АВТОМАТ"
38973 #: ../src/guestfs.pod:2293
38974 msgid "libguestfs uses a state machine to model the child process:"
38978 #: ../src/guestfs.pod:2295
38982 " guestfs_create\n"
38990 " / | \\ \\ guestfs_launch\n"
38991 " / | _\\__V______\n"
38993 " / | | LAUNCHING |\n"
38994 " / | \\___________/\n"
38996 " / | guestfs_launch\n"
38998 " ______ / __|____V\n"
38999 " / \\ ------> / \\\n"
39000 " | BUSY | | READY |\n"
39001 " \\______/ <------ \\________/\n"
39006 #: ../src/guestfs.pod:2317
39008 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39009 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39010 "(3) alternating between READY and BUSY as commands are issued to, and "
39011 "carried out by, the child process."
39015 #: ../src/guestfs.pod:2322
39017 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39018 "asynchronously at any time (eg. due to some internal error), and that causes "
39019 "the state to transition back to CONFIG."
39023 #: ../src/guestfs.pod:2326
39025 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39026 "issued when in the CONFIG state."
39030 #: ../src/guestfs.pod:2329
39032 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39033 "L</guestfs_launch> blocks until the child process is READY to accept "
39034 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39035 "moves the state from CONFIG to LAUNCHING while it is running."
39039 #: ../src/guestfs.pod:2335
39041 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39042 "state. These API calls block waiting for the command to be carried out (ie. "
39043 "the state to transition to BUSY and then back to READY). There are no non-"
39044 "blocking versions, and no way to issue more than one command per handle at "
39049 #: ../src/guestfs.pod:2341
39051 "Finally, the child process sends asynchronous messages back to the main "
39052 "program, such as kernel log messages. You can register a callback to "
39053 "receive these messages."
39057 #: ../src/guestfs.pod:2345
39062 #: ../src/guestfs.pod:2347
39063 msgid "APPLIANCE BOOT PROCESS"
39067 #: ../src/guestfs.pod:2349
39069 "This process has evolved and continues to evolve. The description here "
39070 "corresponds only to the current version of libguestfs and is provided for "
39071 "information only."
39075 #: ../src/guestfs.pod:2353
39077 "In order to follow the stages involved below, enable libguestfs debugging "
39078 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39082 #: ../src/guestfs.pod:2358
39083 msgid "Create the appliance"
39087 #: ../src/guestfs.pod:2360
39089 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39090 "initrd and the appliance."
39094 #: ../src/guestfs.pod:2363
39096 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39097 "directory if C<TMPDIR> is set)."
39101 #: ../src/guestfs.pod:2366
39103 "For a complete description of how the appliance is created and cached, read "
39104 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39108 #: ../src/guestfs.pod:2370
39109 msgid "Start qemu and boot the kernel"
39113 #: ../src/guestfs.pod:2372
39114 msgid "qemu is invoked to boot the kernel."
39118 #: ../src/guestfs.pod:2374
39119 msgid "Run the initrd"
39123 #: ../src/guestfs.pod:2376
39125 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
39126 "appliance. The purpose of the initrd is to load enough kernel modules in "
39127 "order that the appliance itself can be mounted and started."
39131 #: ../src/guestfs.pod:2380
39133 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39138 #: ../src/guestfs.pod:2383
39140 "When the initrd has started you will see messages showing that kernel "
39141 "modules are being loaded, similar to this:"
39145 #: ../src/guestfs.pod:2386
39148 " febootstrap: ext2 mini initrd starting up\n"
39149 " febootstrap: mounting /sys\n"
39150 " febootstrap: internal insmod libcrc32c.ko\n"
39151 " febootstrap: internal insmod crc32c-intel.ko\n"
39156 #: ../src/guestfs.pod:2391
39157 msgid "Find and mount the appliance device"
39161 #: ../src/guestfs.pod:2393
39163 "The appliance is a sparse file containing an ext2 filesystem which contains "
39164 "a familiar (although reduced in size) Linux operating system. It would "
39165 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39169 #: ../src/guestfs.pod:2397
39171 "The regular disks being inspected by libguestfs are the first devices "
39172 "exposed by qemu (eg. as C</dev/vda>)."
39176 #: ../src/guestfs.pod:2400
39178 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39179 "there was only one regular disk)."
39183 #: ../src/guestfs.pod:2403
39185 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39186 "and switch root into the appliance, and run C</init> from the appliance."
39190 #: ../src/guestfs.pod:2407
39191 msgid "If this works successfully you will see messages such as:"
39195 #: ../src/guestfs.pod:2409
39198 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39199 " febootstrap: creating /dev/root as block special 252:16\n"
39200 " febootstrap: mounting new root on /root\n"
39201 " febootstrap: chroot\n"
39202 " Starting /init script ...\n"
39207 #: ../src/guestfs.pod:2415
39209 "Note that C<Starting /init script ...> indicates that the appliance's init "
39210 "script is now running."
39214 #: ../src/guestfs.pod:2418
39215 msgid "Initialize the appliance"
39219 #: ../src/guestfs.pod:2420
39221 "The appliance itself now initializes itself. This involves starting certain "
39222 "processes like C<udev>, possibly printing some debug information, and "
39223 "finally running the daemon (C<guestfsd>)."
39227 #: ../src/guestfs.pod:2424
39232 #: ../src/guestfs.pod:2426
39234 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
39239 #: ../src/guestfs.pod:2429
39242 " verbose daemon enabled\n"
39247 #: ../src/guestfs.pod:2431
39249 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39250 "connected on the other end to the library."
39254 #: ../src/guestfs.pod:2434
39256 "The daemon connects to this port (and hence to the library) and sends a four "
39257 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39258 "protocol (see below)."
39262 #: ../src/guestfs.pod:2440
39263 msgid "COMMUNICATION PROTOCOL"
39267 #: ../src/guestfs.pod:2442
39269 "Don't rely on using this protocol directly. This section documents how it "
39270 "currently works, but it may change at any time."
39274 #: ../src/guestfs.pod:2445
39276 "The protocol used to talk between the library and the daemon running inside "
39277 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39278 "1014, RFC 1832, RFC 4506)."
39282 #: ../src/guestfs.pod:2449
39284 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39285 "this file is automatically generated)."
39289 #: ../src/guestfs.pod:2452
39291 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39292 "and C<FileOut> parameters, which are handled with very simple request/reply "
39293 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
39294 "parameters, which use the same request and reply messages, but they may also "
39295 "be followed by files sent using a chunked encoding."
39299 #: ../src/guestfs.pod:2459
39300 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39304 #: ../src/guestfs.pod:2461
39305 msgid "For ordinary functions, the request message is:"
39309 #: ../src/guestfs.pod:2463
39312 " total length (header + arguments,\n"
39313 " but not including the length word itself)\n"
39314 " struct guestfs_message_header (encoded as XDR)\n"
39315 " struct guestfs_<foo>_args (encoded as XDR)\n"
39320 #: ../src/guestfs.pod:2468
39322 "The total length field allows the daemon to allocate a fixed size buffer "
39323 "into which it slurps the rest of the message. As a result, the total length "
39324 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39325 "effective size of any request is limited to somewhere under this size."
39329 #: ../src/guestfs.pod:2474
39331 "Note also that many functions don't take any arguments, in which case the "
39332 "C<guestfs_I<foo>_args> is completely omitted."
39336 #: ../src/guestfs.pod:2477
39338 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39339 "receiver knows what type of args structure to expect, or none at all."
39343 #: ../src/guestfs.pod:2481
39345 "For functions that take optional arguments, the optional arguments are "
39346 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39347 "arguments. A bitmask in the header indicates which optional arguments are "
39348 "meaningful. The bitmask is also checked to see if it contains bits set "
39349 "which the daemon does not know about (eg. if more optional arguments were "
39350 "added in a later version of the library), and this causes the call to be "
39355 #: ../src/guestfs.pod:2489
39356 msgid "The reply message for ordinary functions is:"
39360 #: ../src/guestfs.pod:2491
39363 " total length (header + ret,\n"
39364 " but not including the length word itself)\n"
39365 " struct guestfs_message_header (encoded as XDR)\n"
39366 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39371 #: ../src/guestfs.pod:2496
39373 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39374 "functions that return no formal return values."
39378 #: ../src/guestfs.pod:2499
39380 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39384 #: ../src/guestfs.pod:2502
39386 "In the case of an error, a flag is set in the header, and the reply message "
39387 "is slightly changed:"
39391 #: ../src/guestfs.pod:2505
39394 " total length (header + error,\n"
39395 " but not including the length word itself)\n"
39396 " struct guestfs_message_header (encoded as XDR)\n"
39397 " struct guestfs_message_error (encoded as XDR)\n"
39402 #: ../src/guestfs.pod:2510
39404 "The C<guestfs_message_error> structure contains the error message as a "
39409 #: ../src/guestfs.pod:2513
39410 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39414 #: ../src/guestfs.pod:2515
39416 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
39417 "The normal request message is sent (see above). However this is followed by "
39418 "a sequence of file chunks."
39422 #: ../src/guestfs.pod:2519
39425 " total length (header + arguments,\n"
39426 " but not including the length word itself,\n"
39427 " and not including the chunks)\n"
39428 " struct guestfs_message_header (encoded as XDR)\n"
39429 " struct guestfs_<foo>_args (encoded as XDR)\n"
39430 " sequence of chunks for FileIn param #0\n"
39431 " sequence of chunks for FileIn param #1 etc.\n"
39436 #: ../src/guestfs.pod:2527
39437 msgid "The \"sequence of chunks\" is:"
39441 #: ../src/guestfs.pod:2529
39444 " length of chunk (not including length word itself)\n"
39445 " struct guestfs_chunk (encoded as XDR)\n"
39446 " length of chunk\n"
39447 " struct guestfs_chunk (encoded as XDR)\n"
39449 " length of chunk\n"
39450 " struct guestfs_chunk (with data.data_len == 0)\n"
39455 #: ../src/guestfs.pod:2537
39457 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
39458 "is set in the final chunk to indicate either successful completion or early "
39463 #: ../src/guestfs.pod:2541
39465 "At time of writing there are no functions that have more than one FileIn "
39466 "parameter. However this is (theoretically) supported, by sending the "
39467 "sequence of chunks for each FileIn parameter one after another (from left to "
39472 #: ../src/guestfs.pod:2546
39474 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39475 "transfer. The library does this by sending a chunk with a special flag set "
39476 "to indicate cancellation. When the daemon sees this, it cancels the whole "
39477 "RPC, does I<not> send any reply, and goes back to reading the next request."
39481 #: ../src/guestfs.pod:2552
39483 "The daemon may also cancel. It does this by writing a special word "
39484 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
39485 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39486 "cancel chunk). The special word is chosen so that even if cancellation "
39487 "happens right at the end of the transfer (after the library has finished "
39488 "writing and has started listening for the reply), the \"spurious\" cancel "
39489 "flag will not be confused with the reply message."
39493 #: ../src/guestfs.pod:2561
39495 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39496 "limit), and also files where the size is not known in advance (eg. from "
39497 "pipes or sockets). However the chunks are rather small "
39498 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39499 "to keep much in memory."
39503 #: ../src/guestfs.pod:2567
39504 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39508 #: ../src/guestfs.pod:2569
39510 "The protocol for FileOut parameters is exactly the same as for FileIn "
39511 "parameters, but with the roles of daemon and library reversed."
39515 #: ../src/guestfs.pod:2572
39518 " total length (header + ret,\n"
39519 " but not including the length word itself,\n"
39520 " and not including the chunks)\n"
39521 " struct guestfs_message_header (encoded as XDR)\n"
39522 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39523 " sequence of chunks for FileOut param #0\n"
39524 " sequence of chunks for FileOut param #1 etc.\n"
39529 #: ../src/guestfs.pod:2580
39530 msgid "INITIAL MESSAGE"
39534 #: ../src/guestfs.pod:2582
39536 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39537 "which indicates that the guest and daemon is alive. This is what L</"
39538 "guestfs_launch> waits for."
39542 #: ../src/guestfs.pod:2586
39543 msgid "PROGRESS NOTIFICATION MESSAGES"
39547 #: ../src/guestfs.pod:2588
39549 "The daemon may send progress notification messages at any time. These are "
39550 "distinguished by the normal length word being replaced by "
39551 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39555 #: ../src/guestfs.pod:2592
39557 "The library turns them into progress callbacks (see L</"
39558 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39563 #: ../src/guestfs.pod:2596
39565 "The daemon self-limits the frequency of progress messages it sends (see "
39566 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
39571 #: ../src/guestfs.pod:2600
39572 msgid "LIBGUESTFS VERSION NUMBERS"
39576 #: ../src/guestfs.pod:2602
39578 "Since April 2010, libguestfs has started to make separate development and "
39579 "stable releases, along with corresponding branches in our git repository. "
39580 "These separate releases can be identified by version number:"
39584 #: ../src/guestfs.pod:2607
39587 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
39588 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39594 " | `-------- sub-version\n"
39596 " `------ always '1' because we don't change the ABI\n"
39601 #: ../src/guestfs.pod:2618
39602 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39606 #: ../src/guestfs.pod:2620
39608 "As time passes we cherry pick fixes from the development branch and backport "
39609 "those into the stable branch, the effect being that the stable branch should "
39610 "get more stable and less buggy over time. So the stable releases are ideal "
39611 "for people who don't need new features but would just like the software to "
39616 #: ../src/guestfs.pod:2626
39617 msgid "Our criteria for backporting changes are:"
39621 #: ../src/guestfs.pod:2632
39623 "Documentation changes which don't affect any code are backported unless the "
39624 "documentation refers to a future feature which is not in stable."
39628 #: ../src/guestfs.pod:2638
39630 "Bug fixes which are not controversial, fix obvious problems, and have been "
39631 "well tested are backported."
39635 #: ../src/guestfs.pod:2643
39637 "Simple rearrangements of code which shouldn't affect how it works get "
39638 "backported. This is so that the code in the two branches doesn't get too "
39639 "far out of step, allowing us to backport future fixes more easily."
39643 #: ../src/guestfs.pod:2649
39645 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39646 "exceptional case: the new feature is required in order to implement an "
39647 "important bug fix."
39651 #: ../src/guestfs.pod:2655
39653 "A new stable branch starts when we think the new features in development are "
39654 "substantial and compelling enough over the current stable branch to warrant "
39655 "it. When that happens we create new stable and development versions 1.N.0 "
39656 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
39657 "stable at this point, but by backporting fixes from development, that branch "
39658 "will stabilize over time."
39662 #: ../src/guestfs.pod:2663
39663 msgid "EXTENDING LIBGUESTFS"
39667 #: ../src/guestfs.pod:2665
39668 msgid "ADDING A NEW API ACTION"
39672 #: ../src/guestfs.pod:2667
39674 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39675 "documentation) are generated, and this makes it easy to extend the "
39680 #: ../src/guestfs.pod:2671
39681 msgid "To add a new API action there are two changes:"
39685 #: ../src/guestfs.pod:2677
39687 "You need to add a description of the call (name, parameters, return type, "
39688 "tests, documentation) to C<generator/generator_actions.ml>."
39692 #: ../src/guestfs.pod:2680
39694 "There are two sorts of API action, depending on whether the call goes "
39695 "through to the daemon in the appliance, or is serviced entirely by the "
39696 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
39697 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
39698 "an example of the latter, since a trace flag is maintained in the handle and "
39699 "all tracing is done on the library side."
39703 #: ../src/guestfs.pod:2688
39705 "Most new actions are of the first type, and get added to the "
39706 "C<daemon_functions> list. Each function has a unique procedure number used "
39707 "in the RPC protocol which is assigned to that action when we publish "
39708 "libguestfs and cannot be reused. Take the latest procedure number and "
39713 #: ../src/guestfs.pod:2694
39715 "For library-only actions of the second type, add to the "
39716 "C<non_daemon_functions> list. Since these functions are serviced by the "
39717 "library and do not travel over the RPC mechanism to the daemon, these "
39718 "functions do not need a procedure number, and so the procedure number is set "
39723 #: ../src/guestfs.pod:2702
39724 msgid "Implement the action (in C):"
39728 #: ../src/guestfs.pod:2704
39730 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39731 "C<daemon/> directory."
39735 #: ../src/guestfs.pod:2707
39737 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39738 "(note: double underscore) in the C<src/> directory."
39742 #: ../src/guestfs.pod:2710
39743 msgid "In either case, use another function as an example of what to do."
39747 #: ../src/guestfs.pod:2714
39748 msgid "After making these changes, use C<make> to compile."
39752 #: ../src/guestfs.pod:2716
39754 "Note that you don't need to implement the RPC, language bindings, manual "
39755 "pages or anything else. It's all automatically generated from the OCaml "
39760 #: ../src/guestfs.pod:2720
39761 msgid "ADDING TESTS FOR AN API ACTION"
39765 #: ../src/guestfs.pod:2722
39767 "You can supply zero or as many tests as you want per API call. The tests "
39768 "can either be added as part of the API description (C<generator/"
39769 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39770 "into C<regressions/>. Note that adding a script to C<regressions/> is "
39771 "slower, so if possible use the first method."
39775 #: ../src/guestfs.pod:2728
39777 "The following describes the test environment used when you add an API test "
39778 "in C<generator_actions.ml>."
39782 #: ../src/guestfs.pod:2731
39783 msgid "The test environment has 4 block devices:"
39787 #: ../src/guestfs.pod:2735
39788 msgid "C</dev/sda> 500MB"
39789 msgstr "C</dev/sda> 500 МБ"
39792 #: ../src/guestfs.pod:2737
39793 msgid "General block device for testing."
39797 #: ../src/guestfs.pod:2739
39798 msgid "C</dev/sdb> 50MB"
39799 msgstr "C</dev/sdb> 50 МБ"
39802 #: ../src/guestfs.pod:2741
39804 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39809 #: ../src/guestfs.pod:2744
39810 msgid "C</dev/sdc> 10MB"
39811 msgstr "C</dev/sdc> 10 МБ"
39814 #: ../src/guestfs.pod:2746
39815 msgid "Used in a few tests where two block devices are needed."
39819 #: ../src/guestfs.pod:2748
39820 msgid "C</dev/sdd>"
39821 msgstr "C</dev/sdd>"
39824 #: ../src/guestfs.pod:2750
39825 msgid "ISO with fixed content (see C<images/test.iso>)."
39829 #: ../src/guestfs.pod:2754
39831 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39832 "appliance and block devices are reused between tests. So don't try testing "
39833 "L</guestfs_kill_subprocess> :-x"
39837 #: ../src/guestfs.pod:2758
39839 "Each test starts with an initial scenario, selected using one of the "
39840 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
39841 "initialize the disks mentioned above in a particular way as documented in "
39842 "C<generator_types.ml>. You should not assume anything about the previous "
39843 "contents of other disks that are not initialized."
39847 #: ../src/guestfs.pod:2764
39849 "You can add a prerequisite clause to any individual test. This is a run-"
39850 "time check, which, if it fails, causes the test to be skipped. Useful if "
39851 "testing a command which might not work on all variations of libguestfs "
39852 "builds. A test that has prerequisite of C<Always> means to run "
39857 #: ../src/guestfs.pod:2770
39859 "In addition, packagers can skip individual tests by setting environment "
39860 "variables before running C<make check>."
39864 #: ../src/guestfs.pod:2773
39867 " SKIP_TEST_<CMD>_<NUM>=1\n"
39872 #: ../src/guestfs.pod:2775
39873 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39877 #: ../src/guestfs.pod:2777
39882 #: ../src/guestfs.pod:2779
39885 " SKIP_TEST_<CMD>=1\n"
39890 #: ../src/guestfs.pod:2781
39891 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39895 #: ../src/guestfs.pod:2783
39896 msgid "Packagers can run only certain tests by setting for example:"
39900 #: ../src/guestfs.pod:2785
39903 " TEST_ONLY=\"vfs_type zerofree\"\n"
39908 #: ../src/guestfs.pod:2787
39910 "See C<capitests/tests.c> for more details of how these environment variables "
39915 #: ../src/guestfs.pod:2790
39916 msgid "DEBUGGING NEW API ACTIONS"
39920 #: ../src/guestfs.pod:2792
39921 msgid "Test new actions work before submitting them."
39925 #: ../src/guestfs.pod:2794
39926 msgid "You can use guestfish to try out new commands."
39930 #: ../src/guestfs.pod:2796
39932 "Debugging the daemon is a problem because it runs inside a minimal "
39933 "environment. However you can fprintf messages in the daemon to stderr, and "
39934 "they will show up if you use C<guestfish -v>."
39938 #: ../src/guestfs.pod:2800
39939 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39943 #: ../src/guestfs.pod:2802
39945 "Our C source code generally adheres to some basic code-formatting "
39946 "conventions. The existing code base is not totally consistent on this "
39947 "front, but we do prefer that contributed code be formatted similarly. In "
39948 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39949 "indentation level, and other than that, follow the K&R style."
39953 #: ../src/guestfs.pod:2808
39955 "If you use Emacs, add the following to one of one of your start-up files (e."
39956 "g., ~/.emacs), to help ensure that you get indentation right:"
39960 #: ../src/guestfs.pod:2811
39963 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39964 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39965 " (add-hook 'find-file-hook\n"
39966 " '(lambda () (if (and buffer-file-name\n"
39967 " (string-match \"/libguestfs\\\\>\"\n"
39968 " (buffer-file-name))\n"
39969 " (not (string-equal mode-name \"Change Log\"))\n"
39970 " (not (string-equal mode-name \"Makefile\")))\n"
39971 " (setq indent-tabs-mode nil))))\n"
39976 #: ../src/guestfs.pod:2821
39979 " ;;; When editing C sources in libguestfs, use this style.\n"
39980 " (defun libguestfs-c-mode ()\n"
39981 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
39983 " (c-set-style \"K&R\")\n"
39984 " (setq c-indent-level 2)\n"
39985 " (setq c-basic-offset 2))\n"
39986 " (add-hook 'c-mode-hook\n"
39987 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39988 " (buffer-file-name))\n"
39989 " (libguestfs-c-mode))))\n"
39994 #: ../src/guestfs.pod:2833
39995 msgid "Enable warnings when compiling (and fix any problems this finds):"
39999 #: ../src/guestfs.pod:2836
40002 " ./configure --enable-gcc-warnings\n"
40005 " ./configure --enable-gcc-warnings\n"
40009 #: ../src/guestfs.pod:2838
40010 msgid "Useful targets are:"
40014 #: ../src/guestfs.pod:2840
40017 " make syntax-check # checks the syntax of the C code\n"
40018 " make check # runs the test suite\n"
40023 #: ../src/guestfs.pod:2843
40024 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40028 #: ../src/guestfs.pod:2845
40030 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40031 "which are used to do shell quoting."
40035 #: ../src/guestfs.pod:2850
40040 #: ../src/guestfs.pod:2852
40042 "Simple shell quoted string. Any spaces or other shell characters are "
40047 #: ../src/guestfs.pod:2855
40052 #: ../src/guestfs.pod:2857
40054 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40059 #: ../src/guestfs.pod:2864
40062 " asprintf (&cmd, \"cat %R\", path);\n"
40065 " asprintf (&cmd, \"cat %R\", path);\n"
40069 #: ../src/guestfs.pod:2866
40070 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40074 #: ../src/guestfs.pod:2868
40076 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40077 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
40078 "they are not passed via the shell (instead, straight to exec). You probably "
40079 "want to use the C<sysroot_path()> function however."
40083 #: ../src/guestfs.pod:2874
40084 msgid "SUBMITTING YOUR NEW API ACTIONS"
40088 #: ../src/guestfs.pod:2876
40090 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40091 "libguestfs> and CC to L<rjones@redhat.com>."
40095 #: ../src/guestfs.pod:2880
40096 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40100 #: ../src/guestfs.pod:2882
40101 msgid "We support i18n (gettext anyhow) in the library."
40105 #: ../src/guestfs.pod:2884
40107 "However many messages come from the daemon, and we don't translate those at "
40108 "the moment. One reason is that the appliance generally has all locale files "
40109 "removed from it, because they take up a lot of space. So we'd have to readd "
40110 "some of those, as well as copying our PO files into the appliance."
40114 #: ../src/guestfs.pod:2890
40116 "Debugging messages are never translated, since they are intended for the "
40121 #: ../src/guestfs.pod:2893
40122 msgid "SOURCE CODE SUBDIRECTORIES"
40126 #: ../src/guestfs.pod:2897
40131 #: ../src/guestfs.pod:2899
40132 msgid "L<virt-alignment-scan(1)> command and documentation."
40136 #: ../src/guestfs.pod:2903
40137 msgid "The libguestfs appliance, build scripts and so on."
40141 #: ../src/guestfs.pod:2905
40142 msgid "C<capitests>"
40143 msgstr "C<capitests>"
40146 #: ../src/guestfs.pod:2907
40147 msgid "Automated tests of the C API."
40151 #: ../src/guestfs.pod:2909
40156 #: ../src/guestfs.pod:2911
40158 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40163 #: ../src/guestfs.pod:2914
40165 msgstr "C<caution>"
40168 #: ../src/guestfs.pod:2916
40170 "Safety and liveness tests of components that libguestfs depends upon (not of "
40171 "libguestfs itself). Mainly this is for qemu and the kernel."
40175 #: ../src/guestfs.pod:2919
40180 #: ../src/guestfs.pod:2921
40182 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
40183 "command and documentation."
40187 #: ../src/guestfs.pod:2924
40189 msgstr "C<contrib>"
40192 #: ../src/guestfs.pod:2926
40193 msgid "Outside contributions, experimental parts."
40197 #: ../src/guestfs.pod:2928
40202 #: ../src/guestfs.pod:2930
40204 "The daemon that runs inside the libguestfs appliance and carries out actions."
40208 #: ../src/guestfs.pod:2933
40213 #: ../src/guestfs.pod:2935
40214 msgid "L<virt-df(1)> command and documentation."
40218 #: ../src/guestfs.pod:2937
40223 #: ../src/guestfs.pod:2939
40224 msgid "L<virt-edit(1)> command and documentation."
40228 #: ../src/guestfs.pod:2941
40229 msgid "C<examples>"
40230 msgstr "C<examples>"
40233 #: ../src/guestfs.pod:2943
40234 msgid "C API example code."
40235 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40238 #: ../src/guestfs.pod:2945
40243 #: ../src/guestfs.pod:2947
40245 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40246 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40247 "L<virt-tar-out(1)>."
40251 #: ../src/guestfs.pod:2951
40256 #: ../src/guestfs.pod:2953
40258 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40262 #: ../src/guestfs.pod:2955
40263 msgid "C<generator>"
40264 msgstr "C<generator>"
40267 #: ../src/guestfs.pod:2957
40269 "The crucially important generator, used to automatically generate large "
40270 "amounts of boilerplate C code for things like RPC and bindings."
40274 #: ../src/guestfs.pod:2960
40279 #: ../src/guestfs.pod:2962
40280 msgid "Files used by the test suite."
40284 #: ../src/guestfs.pod:2964
40285 msgid "Some \"phony\" guest images which we test against."
40289 #: ../src/guestfs.pod:2966
40290 msgid "C<inspector>"
40291 msgstr "C<inspector>"
40294 #: ../src/guestfs.pod:2968
40295 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40299 #: ../src/guestfs.pod:2970
40304 #: ../src/guestfs.pod:2972
40305 msgid "Logo used on the website. The fish is called Arthur by the way."
40309 #: ../src/guestfs.pod:2974
40314 #: ../src/guestfs.pod:2976
40315 msgid "M4 macros used by autoconf."
40319 #: ../src/guestfs.pod:2978
40324 #: ../src/guestfs.pod:2980
40325 msgid "Translations of simple gettext strings."
40326 msgstr "Переклади простих рядків gettext."
40329 #: ../src/guestfs.pod:2982
40331 msgstr "C<po-docs>"
40334 #: ../src/guestfs.pod:2984
40336 "The build infrastructure and PO files for translations of manpages and POD "
40337 "files. Eventually this will be combined with the C<po> directory, but that "
40338 "is rather complicated."
40342 #: ../src/guestfs.pod:2988
40343 msgid "C<regressions>"
40344 msgstr "C<regressions>"
40347 #: ../src/guestfs.pod:2990
40348 msgid "Regression tests."
40349 msgstr "Тести на регресії."
40352 #: ../src/guestfs.pod:2992
40357 #: ../src/guestfs.pod:2994
40358 msgid "L<virt-rescue(1)> command and documentation."
40362 #: ../src/guestfs.pod:2996
40367 #: ../src/guestfs.pod:2998
40368 msgid "L<virt-resize(1)> command and documentation."
40372 #: ../src/guestfs.pod:3000
40373 msgid "C<sparsify>"
40377 #: ../src/guestfs.pod:3002
40378 msgid "L<virt-sparsify(1)> command and documentation."
40382 #: ../src/guestfs.pod:3004
40387 #: ../src/guestfs.pod:3006
40388 msgid "Source code to the C library."
40392 #: ../src/guestfs.pod:3008
40397 #: ../src/guestfs.pod:3010
40399 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40403 #: ../src/guestfs.pod:3012
40404 msgid "C<test-tool>"
40405 msgstr "C<test-tool>"
40408 #: ../src/guestfs.pod:3014
40410 "Test tool for end users to test if their qemu/kernel combination will work "
40415 #: ../src/guestfs.pod:3017
40420 #: ../src/guestfs.pod:3019
40425 #: ../src/guestfs.pod:3021
40427 msgstr "C<haskell>"
40430 #: ../src/guestfs.pod:3023
40435 #: ../src/guestfs.pod:3025
40440 #: ../src/guestfs.pod:3027
40445 #: ../src/guestfs.pod:3029
40450 #: ../src/guestfs.pod:3031
40455 #: ../src/guestfs.pod:3033
40460 #: ../src/guestfs.pod:3035
40461 msgid "Language bindings."
40462 msgstr "Прив’язки до мов програмування."
40465 #: ../src/guestfs.pod:3039
40466 msgid "MAKING A STABLE RELEASE"
40470 #: ../src/guestfs.pod:3041
40472 "When we make a stable release, there are several steps documented here. See "
40473 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40478 #: ../src/guestfs.pod:3049
40480 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40484 #: ../src/guestfs.pod:3054
40485 msgid "Finalize RELEASE-NOTES."
40489 #: ../src/guestfs.pod:3058
40490 msgid "Update ROADMAP."
40494 #: ../src/guestfs.pod:3062
40495 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40499 #: ../src/guestfs.pod:3066
40500 msgid "Push and pull from Transifex."
40504 #: ../src/guestfs.pod:3068
40509 #: ../src/guestfs.pod:3070
40517 #: ../src/guestfs.pod:3072
40518 msgid "to push the latest POT files to Transifex. Then run:"
40522 #: ../src/guestfs.pod:3074
40530 #: ../src/guestfs.pod:3076
40531 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40535 #: ../src/guestfs.pod:3080
40537 "Create new stable and development directories under L<http://libguestfs.org/"
40542 #: ../src/guestfs.pod:3085
40543 msgid "Create the branch in git:"
40547 #: ../src/guestfs.pod:3087
40550 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40551 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40552 " git branch stable-1.XX\n"
40553 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40558 #: ../src/guestfs.pod:3094
40563 #: ../src/guestfs.pod:3096
40564 msgid "PROTOCOL LIMITS"
40565 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40568 #: ../src/guestfs.pod:3098
40570 "Internally libguestfs uses a message-based protocol to pass API calls and "
40571 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40572 "plenty more detail about this). The maximum message size used by the "
40573 "protocol is slightly less than 4 MB. For some API calls you may need to be "
40574 "aware of this limit. The API calls which may be affected are individually "
40575 "documented, with a link back to this section of the documentation."
40579 #: ../src/guestfs.pod:3106
40581 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40582 "a simple string. Because this string is at some point internally encoded as "
40583 "a message, the maximum size that it can return is slightly under 4 MB. If "
40584 "the requested file is larger than this then you will get an error."
40588 #: ../src/guestfs.pod:3112
40590 "In order to transfer large files into and out of the guest filesystem, you "
40591 "need to use particular calls that support this. The sections L</UPLOADING> "
40592 "and L</DOWNLOADING> document how to do this."
40596 #: ../src/guestfs.pod:3116
40598 "You might also consider mounting the disk image using our FUSE filesystem "
40599 "support (L<guestmount(1)>)."
40603 #: ../src/guestfs.pod:3119
40604 msgid "MAXIMUM NUMBER OF DISKS"
40608 #: ../src/guestfs.pod:3121
40609 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40613 #: ../src/guestfs.pod:3124
40615 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40616 "slots. However febootstrap only understands disks with names C</dev/vda> "
40617 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40622 #: ../src/guestfs.pod:3129
40624 "We are working to substantially raise this limit in future versions but it "
40625 "requires complex changes to qemu."
40629 #: ../src/guestfs.pod:3132
40631 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40632 "disks (add and remove disks after calling L</guestfs_launch>). This also "
40633 "requires changes to qemu."
40637 #: ../src/guestfs.pod:3136
40638 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40642 #: ../src/guestfs.pod:3138
40643 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40647 #: ../src/guestfs.pod:3140
40649 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40650 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40654 #: ../src/guestfs.pod:3143
40656 "If you attach a disk with more than 15 partitions, the extra partitions are "
40657 "ignored by libguestfs."
40661 #: ../src/guestfs.pod:3146
40662 msgid "MAXIMUM SIZE OF A DISK"
40666 #: ../src/guestfs.pod:3148
40667 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40671 #: ../src/guestfs.pod:3150
40673 "We have tested block devices up to 1 exabyte (2**60 or "
40674 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40679 #: ../src/guestfs.pod:3154
40681 "Although libguestfs probably does not impose any limit, the underlying host "
40682 "storage will. If you store disk images on a host ext4 filesystem, then the "
40683 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40684 "TB). If you store disk images as host logical volumes then you are limited "
40685 "by the maximum size of an LV."
40689 #: ../src/guestfs.pod:3160
40691 "For the hugest disk image files, we recommend using XFS on the host for "
40696 #: ../src/guestfs.pod:3163
40697 msgid "MAXIMUM SIZE OF A PARTITION"
40701 #: ../src/guestfs.pod:3165
40703 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40704 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
40705 "address a partition located beyond 2 TB on the disk."
40709 #: ../src/guestfs.pod:3169
40711 "It is recommended that you use GPT partitions on disks which are larger than "
40712 "this size. GPT uses 64 bit sector numbers and so can address partitions "
40713 "which are theoretically larger than the largest disk we could support."
40717 #: ../src/guestfs.pod:3174
40718 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40722 #: ../src/guestfs.pod:3176
40724 "This depends on the filesystem type. libguestfs itself does not impose any "
40725 "known limit. Consult Wikipedia or the filesystem documentation to find out "
40726 "what these limits are."
40730 #: ../src/guestfs.pod:3180
40731 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40735 #: ../src/guestfs.pod:3182
40737 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40738 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40739 "uploads and downloads."
40743 #: ../src/guestfs.pod:3186
40744 msgid "INSPECTION LIMITS"
40748 #: ../src/guestfs.pod:3188
40750 "The inspection code has several arbitrary limits on things like the size of "
40751 "Windows Registry hive it will read, and the length of product name. These "
40752 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40753 "memory and disk space on the host, and should not be reached in practice. "
40754 "See the source code for more information."
40758 #: ../src/guestfs.pod:3214
40760 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
40761 "effect as calling C<guestfs_set_verbose (g, 1)>."
40765 #: ../src/guestfs.pod:3226
40767 "Set the path that libguestfs uses to search for a supermin appliance. See "
40768 "the discussion of paths in section L</PATH> above."
40772 #: ../src/guestfs.pod:3235
40773 msgid "See also L</QEMU WRAPPERS> above."
40777 #: ../src/guestfs.pod:3239
40779 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
40780 "effect as calling C<guestfs_set_trace (g, 1)>."
40784 #: ../src/guestfs.pod:3257
40786 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40787 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40788 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40789 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40790 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40791 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40792 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40793 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40794 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40795 ">, L<http://libguestfs.org/>."
40799 #: ../src/guestfs.pod:3293
40801 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40802 "(8)>, L<disktype(1)>."
40806 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
40807 #: ../tools/virt-win-reg.pl:761
40812 #: ../src/guestfs.pod:3302
40813 msgid "To get a list of bugs against libguestfs use this link:"
40815 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40819 #: ../src/guestfs.pod:3304
40821 "L<https://bugzilla.redhat.com/buglist.cgi?"
40822 "component=libguestfs&product=Virtualization+Tools>"
40824 "L<https://bugzilla.redhat.com/buglist.cgi?"
40825 "component=libguestfs&product=Virtualization+Tools>"
40828 #: ../src/guestfs.pod:3306
40829 msgid "To report a new bug against libguestfs use this link:"
40830 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40833 #: ../src/guestfs.pod:3308
40835 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40836 "component=libguestfs&product=Virtualization+Tools>"
40838 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40839 "component=libguestfs&product=Virtualization+Tools>"
40842 #: ../src/guestfs.pod:3310
40843 msgid "When reporting a bug, please check:"
40847 #: ../src/guestfs.pod:3316
40848 msgid "That the bug hasn't been reported already."
40852 #: ../src/guestfs.pod:3320
40853 msgid "That you are testing a recent version."
40857 #: ../src/guestfs.pod:3324
40858 msgid "Describe the bug accurately, and give a way to reproduce it."
40862 #: ../src/guestfs.pod:3328
40864 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40869 #: ../test-tool/libguestfs-test-tool.pod:5
40870 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40874 #: ../test-tool/libguestfs-test-tool.pod:9
40877 " libguestfs-test-tool [--options]\n"
40882 #: ../test-tool/libguestfs-test-tool.pod:13
40884 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40885 "to check basic libguestfs functionality is working. This is needed because "
40886 "libguestfs occasionally breaks for reasons beyond our control: usually "
40887 "because of changes in the underlying qemu or kernel packages, or the host "
40892 #: ../test-tool/libguestfs-test-tool.pod:19
40893 msgid "If you suspect a problem in libguestfs, then just run:"
40897 #: ../test-tool/libguestfs-test-tool.pod:21
40900 " libguestfs-test-tool\n"
40905 #: ../test-tool/libguestfs-test-tool.pod:23
40906 msgid "It will print lots of diagnostic messages."
40910 #: ../test-tool/libguestfs-test-tool.pod:25
40911 msgid "If it runs to completion successfully, you will see this near the end:"
40915 #: ../test-tool/libguestfs-test-tool.pod:27
40918 " ===== TEST FINISHED OK =====\n"
40923 #: ../test-tool/libguestfs-test-tool.pod:29
40924 msgid "and the test tool will exit with code 0."
40928 #: ../test-tool/libguestfs-test-tool.pod:31
40930 "If it fails (and/or exits with non-zero error code), please paste the "
40931 "I<complete, unedited> output of the test tool into a bug report. More "
40932 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40937 #: ../test-tool/libguestfs-test-tool.pod:42
40938 msgid "Display short usage information and exit."
40942 #: ../test-tool/libguestfs-test-tool.pod:44
40943 msgid "B<--qemu qemu_binary>"
40947 #: ../test-tool/libguestfs-test-tool.pod:46
40949 "If you have downloaded another qemu binary, point this option at the full "
40950 "path of the binary to try it."
40954 #: ../test-tool/libguestfs-test-tool.pod:49
40955 msgid "B<--qemudir qemu_source_dir>"
40959 #: ../test-tool/libguestfs-test-tool.pod:51
40961 "If you have compiled qemu from source, point this option at the source "
40962 "directory to try it."
40966 #: ../test-tool/libguestfs-test-tool.pod:54
40971 #: ../test-tool/libguestfs-test-tool.pod:56
40972 msgid "B<--timeout N>"
40976 #: ../test-tool/libguestfs-test-tool.pod:58
40978 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
40979 "minutes) which does not usually need to be adjusted."
40983 #: ../test-tool/libguestfs-test-tool.pod:63
40984 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40988 #: ../test-tool/libguestfs-test-tool.pod:65
40990 "If you have compiled another version of qemu from source and would like to "
40991 "try that, then you can use the I<--qemudir> option to point to the qemu "
40992 "source directory."
40996 #: ../test-tool/libguestfs-test-tool.pod:69
40998 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40999 "option to point to the binary."
41003 #: ../test-tool/libguestfs-test-tool.pod:72
41005 "Note when using these options, you can ignore the business of qemu wrapper "
41006 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41007 "wrapper script for you if one is needed."
41011 #: ../test-tool/libguestfs-test-tool.pod:76
41012 msgid "TRYING OUT A DIFFERENT KERNEL"
41016 #: ../test-tool/libguestfs-test-tool.pod:78
41018 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41019 "libguestfs tries. You do this by setting the environment variables "
41020 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41024 #: ../test-tool/libguestfs-test-tool.pod:82
41026 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41031 #: ../test-tool/libguestfs-test-tool.pod:85
41032 msgid "SELF-DIAGNOSIS"
41036 #: ../test-tool/libguestfs-test-tool.pod:87
41038 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41039 "produced by libguestfs-test-tool and/or possible errors."
41043 #: ../test-tool/libguestfs-test-tool.pod:92
41045 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41046 "I<1> if there was an error."
41050 #: ../test-tool/libguestfs-test-tool.pod:97
41052 "For the full list of environment variables which may affect libguestfs, "
41053 "please see the L<guestfs(3)> manual page."
41057 #: ../test-tool/libguestfs-test-tool.pod:102
41058 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41062 #: ../tools/virt-list-filesystems.pl:32
41064 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41068 #: ../tools/virt-list-filesystems.pl:36
41071 " virt-list-filesystems [--options] domname\n"
41076 #: ../tools/virt-list-filesystems.pl:38
41079 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41084 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41086 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41091 #: ../tools/virt-list-filesystems.pl:45
41093 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41094 "are contained in a virtual machine or disk image."
41098 #: ../tools/virt-list-filesystems.pl:49
41100 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41101 "functionality. For more complex cases you should look at the L<guestfish(1)"
41106 #: ../tools/virt-list-filesystems.pl:112
41108 "With this option, C<virt-list-filesystems> displays the type of each "
41109 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41113 #: ../tools/virt-list-filesystems.pl:119
41118 #: ../tools/virt-list-filesystems.pl:123
41120 "Normally we only show mountable filesystems. If this option is given then "
41121 "swap devices are shown too."
41125 #: ../tools/virt-list-filesystems.pl:197
41127 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41128 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41129 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41131 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41132 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41133 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41136 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41137 msgid "Copyright (C) 2009 Red Hat Inc."
41138 msgstr "© Red Hat Inc., 2009"
41141 #: ../tools/virt-list-partitions.pl:32
41143 "virt-list-partitions - List partitions in a virtual machine or disk image"
41147 #: ../tools/virt-list-partitions.pl:36
41150 " virt-list-partitions [--options] domname\n"
41153 " virt-list-partitions [--параметри] назва_домену\n"
41157 #: ../tools/virt-list-partitions.pl:38
41160 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41163 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41167 #: ../tools/virt-list-partitions.pl:45
41169 "C<virt-list-partitions> is a command line tool to list the partitions that "
41170 "are contained in a virtual machine or disk image. It is mainly useful as a "
41171 "first step to using L<virt-resize(1)>."
41175 #: ../tools/virt-list-partitions.pl:50
41177 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41178 "functionality. For more complex cases you should look at the L<guestfish(1)"
41183 #: ../tools/virt-list-partitions.pl:113
41184 msgid "Show sizes in human-readable form (eg. \"1G\")."
41188 #: ../tools/virt-list-partitions.pl:123
41190 "With this option, C<virt-list-partitions> displays the type and size of each "
41191 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41195 #: ../tools/virt-list-partitions.pl:130
41200 #: ../tools/virt-list-partitions.pl:132
41202 msgstr "B<--total>"
41205 #: ../tools/virt-list-partitions.pl:134
41207 "Display the total size of each block device (as a separate row or rows)."
41211 #: ../tools/virt-list-partitions.pl:267
41213 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41214 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41215 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41217 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41218 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41219 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41222 #: ../tools/virt-list-partitions.pl:283
41223 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41224 msgstr "© Red Hat Inc., 2009–2010"
41227 #: ../tools/virt-make-fs.pl:37
41228 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41232 #: ../tools/virt-make-fs.pl:41
41235 " virt-make-fs [--options] input.tar output.img\n"
41240 #: ../tools/virt-make-fs.pl:43
41243 " virt-make-fs [--options] input.tar.gz output.img\n"
41248 #: ../tools/virt-make-fs.pl:45
41251 " virt-make-fs [--options] directory output.img\n"
41256 #: ../tools/virt-make-fs.pl:49
41258 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41259 "archive or some files in a directory. It is similar to tools like L<mkisofs"
41260 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
41261 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41262 "you want to attach these filesystems to existing virtual machines (eg. to "
41263 "import large amounts of read-only data to a VM)."
41267 #: ../tools/virt-make-fs.pl:57
41268 msgid "Basic usage is:"
41272 #: ../tools/virt-make-fs.pl:59
41275 " virt-make-fs input output\n"
41280 #: ../tools/virt-make-fs.pl:61
41282 "where C<input> is either a directory containing files that you want to add, "
41283 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41284 "C<output> is a disk image. The input type is detected automatically. The "
41285 "output disk image defaults to a raw ext2 image unless you specify extra "
41286 "flags (see L</OPTIONS> below)."
41290 #: ../tools/virt-make-fs.pl:67
41291 msgid "EXTRA SPACE"
41295 #: ../tools/virt-make-fs.pl:69
41297 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41298 "the files that it contains, but might have extra space. Depending on how "
41299 "you are going to use the output, you might think this extra space is wasted "
41300 "and want to minimize it, or you might want to leave space so that more files "
41301 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
41302 "but you can use the I<--size> flag to leave space in the filesystem if you "
41307 #: ../tools/virt-make-fs.pl:77
41309 "An alternative way to leave extra space but not make the output image any "
41310 "bigger is to use an alternative disk image format (instead of the default "
41311 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41312 "image format (check your hypervisor supports this before using it). This "
41313 "allows you to choose a large I<--size> but the extra space won't actually be "
41314 "allocated in the image until you try to store something in it."
41318 #: ../tools/virt-make-fs.pl:85
41320 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41321 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41322 "to build another image from scratch."
41326 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
41327 #: ../tools/virt-make-fs.pl:142
41332 #: ../tools/virt-make-fs.pl:91
41335 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41338 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41342 #: ../tools/virt-make-fs.pl:93
41343 msgid "FILESYSTEM TYPE"
41344 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41347 #: ../tools/virt-make-fs.pl:95
41349 "The default filesystem type is C<ext2>. Just about any filesystem type that "
41350 "libguestfs supports can be used (but I<not> read-only formats like "
41351 "ISO9660). Here are some of the more common choices:"
41355 #: ../tools/virt-make-fs.pl:101
41360 #: ../tools/virt-make-fs.pl:103
41362 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
41363 "you are not going to use the filesystem in a way that requires the journal, "
41364 "then this is just wasted overhead."
41368 #: ../tools/virt-make-fs.pl:107
41369 msgid "I<ntfs> or I<vfat>"
41370 msgstr "I<ntfs> або I<vfat>"
41373 #: ../tools/virt-make-fs.pl:109
41374 msgid "Useful if exporting data to a Windows guest."
41378 #: ../tools/virt-make-fs.pl:111
41380 "I<Note for vfat>: The tar archive or local directory must only contain files "
41381 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
41382 "program running within libguestfs is unable to change the ownership of non-"
41383 "root files, since vfat itself does not support this."
41387 #: ../tools/virt-make-fs.pl:116
41392 #: ../tools/virt-make-fs.pl:118
41394 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41395 "total filesystem size."
41399 #: ../tools/virt-make-fs.pl:125
41402 " virt-make-fs --type=minix input minixfs.img\n"
41407 #: ../tools/virt-make-fs.pl:127
41408 msgid "TO PARTITION OR NOT TO PARTITION"
41412 #: ../tools/virt-make-fs.pl:129
41413 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41417 #: ../tools/virt-make-fs.pl:131
41419 "Adding a partition can make the disk image more compatible with certain "
41420 "virtualized operating systems which don't expect to see a filesystem "
41421 "directly located on a block device (Linux doesn't care and will happily "
41422 "handle both types)."
41426 #: ../tools/virt-make-fs.pl:136
41428 "On the other hand, if you have a partition table then the output image is no "
41429 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
41430 "directly on a partitioned disk image. (However libguestfs tools such as "
41431 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41435 #: ../tools/virt-make-fs.pl:144
41436 msgid "Add an MBR partition:"
41440 #: ../tools/virt-make-fs.pl:146
41443 " virt-make-fs --partition -- input disk.img\n"
41448 #: ../tools/virt-make-fs.pl:148
41450 "If the output disk image could be terabyte-sized or larger, it's better to "
41451 "use an EFI/GPT-compatible partition table:"
41455 #: ../tools/virt-make-fs.pl:151
41458 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41463 #: ../tools/virt-make-fs.pl:179
41464 msgid "Enable debugging information."
41465 msgstr "Увімкнути виведення діагностичних даних."
41468 #: ../tools/virt-make-fs.pl:185
41469 msgid "B<--size=E<lt>NE<gt>>"
41470 msgstr "B<--size=E<lt>NE<gt>>"
41473 #: ../tools/virt-make-fs.pl:187
41474 msgid "B<--size=+E<lt>NE<gt>>"
41475 msgstr "B<--size=+E<lt>NE<gt>>"
41478 #: ../tools/virt-make-fs.pl:189
41479 msgid "B<-s E<lt>NE<gt>>"
41480 msgstr "B<-s E<lt>NE<gt>>"
41483 #: ../tools/virt-make-fs.pl:191
41484 msgid "B<-s +E<lt>NE<gt>>"
41485 msgstr "B<-s +E<lt>NE<gt>>"
41488 #: ../tools/virt-make-fs.pl:193
41490 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41494 #: ../tools/virt-make-fs.pl:196
41496 "If this option is I<not> given, then the output image will be just large "
41497 "enough to contain all the files, with not much wasted space."
41501 #: ../tools/virt-make-fs.pl:199
41503 "To choose a fixed size output disk, specify an absolute number followed by b/"
41504 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41505 "Petabytes or Exabytes. This must be large enough to contain all the input "
41506 "files, else you will get an error."
41510 #: ../tools/virt-make-fs.pl:204
41512 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41513 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41514 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
41515 "the input files, and (approximately) an extra 200 MB free space."
41519 #: ../tools/virt-make-fs.pl:210
41521 "Note that virt-make-fs estimates free space, and therefore will not produce "
41522 "filesystems containing precisely the free space requested. (It is much more "
41523 "expensive and time-consuming to produce a filesystem which has precisely the "
41524 "desired free space)."
41528 #: ../tools/virt-make-fs.pl:219
41529 msgid "B<--format=E<lt>fmtE<gt>>"
41533 #: ../tools/virt-make-fs.pl:221
41534 msgid "B<-F E<lt>fmtE<gt>>"
41538 #: ../tools/virt-make-fs.pl:223
41539 msgid "Choose the output disk image format."
41543 #: ../tools/virt-make-fs.pl:225
41544 msgid "The default is C<raw> (raw disk image)."
41548 #: ../tools/virt-make-fs.pl:227
41550 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
41551 "that would really make sense here is C<qcow2>."
41555 #: ../tools/virt-make-fs.pl:234
41556 msgid "B<--type=E<lt>fsE<gt>>"
41560 #: ../tools/virt-make-fs.pl:236
41561 msgid "B<-t E<lt>fsE<gt>>"
41565 #: ../tools/virt-make-fs.pl:238
41566 msgid "Choose the output filesystem type."
41570 #: ../tools/virt-make-fs.pl:240
41571 msgid "The default is C<ext2>."
41572 msgstr "Типовим значенням є C<ext2>."
41575 #: ../tools/virt-make-fs.pl:242
41577 "Any filesystem which is supported read-write by libguestfs can be used here."
41581 #: ../tools/virt-make-fs.pl:249
41582 msgid "B<--partition>"
41583 msgstr "B<--partition>"
41586 #: ../tools/virt-make-fs.pl:251
41587 msgid "B<--partition=E<lt>parttypeE<gt>>"
41591 #: ../tools/virt-make-fs.pl:253
41593 "If specified, this flag adds an MBR partition table to the output disk image."
41597 #: ../tools/virt-make-fs.pl:256
41599 "You can change the partition table type, eg. I<--partition=gpt> for large "
41604 #: ../tools/virt-make-fs.pl:259
41606 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41607 "might consider the next parameter to be the partition type. For example:"
41611 #: ../tools/virt-make-fs.pl:263
41614 " virt-make-fs --partition input.tar ...\n"
41617 " virt-make-fs --partition input.tar ...\n"
41621 #: ../tools/virt-make-fs.pl:265
41623 "would cause virt-make-fs to think you wanted to use a partition type of "
41624 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
41625 "dash) between options and the input file argument:"
41629 #: ../tools/virt-make-fs.pl:269
41632 " virt-make-fs --partition -- input.tar ...\n"
41635 " virt-make-fs --partition -- input.tar ...\n"
41639 #: ../tools/virt-make-fs.pl:541
41641 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41642 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41643 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41645 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41646 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41647 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41650 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
41652 "When reporting bugs, please enable debugging and capture the I<complete> "
41657 #: ../tools/virt-make-fs.pl:558
41660 " export LIBGUESTFS_DEBUG=1\n"
41661 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41664 " export LIBGUESTFS_DEBUG=1\n"
41665 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41669 #: ../tools/virt-make-fs.pl:561
41671 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41676 #: ../tools/virt-tar.pl:33
41677 msgid "virt-tar - Extract or upload files to a virtual machine"
41681 #: ../tools/virt-tar.pl:37
41684 " virt-tar [--options] -x domname directory tarball\n"
41689 #: ../tools/virt-tar.pl:39
41692 " virt-tar [--options] -u domname tarball directory\n"
41697 #: ../tools/virt-tar.pl:41
41700 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41705 #: ../tools/virt-tar.pl:43
41708 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41713 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41718 #: ../tools/virt-tar.pl:47
41720 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41721 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41725 #: ../tools/virt-tar.pl:52
41726 msgid "Download C</home> from the VM into a local tarball:"
41730 #: ../tools/virt-tar.pl:54
41733 " virt-tar -x domname /home home.tar\n"
41738 #: ../tools/virt-tar.pl:56
41741 " virt-tar -zx domname /home home.tar.gz\n"
41746 #: ../tools/virt-tar.pl:58
41747 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41751 #: ../tools/virt-tar.pl:60
41754 " virt-tar -u domname uploadstuff.tar /tmp\n"
41759 #: ../tools/virt-tar.pl:62
41762 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41767 #: ../tools/virt-tar.pl:66
41769 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41770 "virtual machines. If you do this, you risk disk corruption in the VM. "
41771 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41775 #: ../tools/virt-tar.pl:71
41777 "You can use I<-x> (extract) on live virtual machines, but you might get "
41778 "inconsistent results or errors if there is filesystem activity inside the "
41779 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
41780 "work, but the only way to guarantee consistent results is if the virtual "
41781 "machine is shut down."
41785 #: ../tools/virt-tar.pl:79
41787 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41788 "parts of a guest filesystem. There are many possibilities: making backups, "
41789 "uploading data files, snooping on guest activity, fixing or customizing "
41794 #: ../tools/virt-tar.pl:84
41796 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
41797 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
41798 "should look at the L<guestfish(1)> tool."
41802 #: ../tools/virt-tar.pl:88
41804 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41805 "its contents (recursively) from the virtual machine into a local tarball. "
41806 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41807 "virtual machine. You cannot use these two options together."
41811 #: ../tools/virt-tar.pl:94
41813 "In addition, you may need to use the I<-z> (gZip) option to enable "
41814 "compression. When uploading, you have to specify I<-z> if the upload file "
41815 "is compressed because virt-tar won't detect this on its own."
41819 #: ../tools/virt-tar.pl:98
41821 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
41822 "example it cannot do PKZip files or bzip2 compression. If you want that "
41823 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
41824 "the L<libguestfs(3)> API)."
41828 #: ../tools/virt-tar.pl:160
41829 msgid "B<--extract>"
41830 msgstr "B<--extract>"
41833 #: ../tools/virt-tar.pl:162
41834 msgid "B<--download>"
41835 msgstr "B<--download>"
41838 #: ../tools/virt-tar.pl:164
41843 #: ../tools/virt-tar.pl:166
41844 msgid "B<--upload>"
41845 msgstr "B<--upload>"
41848 #: ../tools/virt-tar.pl:168
41850 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41855 #: ../tools/virt-tar.pl:171
41857 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
41858 "Please read the L</WARNING> section above before using this option."
41862 #: ../tools/virt-tar.pl:175
41863 msgid "You must specify exactly one of these options."
41867 #: ../tools/virt-tar.pl:181
41872 #: ../tools/virt-tar.pl:183
41877 #: ../tools/virt-tar.pl:185
41878 msgid "Specify that the input or output tarball is gzip-compressed."
41882 #: ../tools/virt-tar.pl:298
41884 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41885 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41886 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41889 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41890 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41891 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41895 #: ../tools/virt-win-reg.pl:37
41897 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41901 #: ../tools/virt-win-reg.pl:41
41904 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41909 #: ../tools/virt-win-reg.pl:43
41912 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41917 #: ../tools/virt-win-reg.pl:45
41920 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41925 #: ../tools/virt-win-reg.pl:47
41928 " virt-win-reg --merge domname [input.reg ...]\n"
41933 #: ../tools/virt-win-reg.pl:49
41936 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41941 #: ../tools/virt-win-reg.pl:53
41943 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41944 "virtual machines. If you do this, you I<will> get irreversible disk "
41945 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
41946 "but doesn't catch all cases."
41950 #: ../tools/virt-win-reg.pl:58
41952 "Modifying the Windows Registry is an inherently risky operation. The format "
41953 "is deliberately obscure and undocumented, and Registry changes can leave the "
41954 "system unbootable. Therefore when using the I<--merge> option, make sure "
41955 "you have a reliable backup first."
41959 #: ../tools/virt-win-reg.pl:65
41961 "This program can export and merge Windows Registry entries from a Windows "
41966 #: ../tools/virt-win-reg.pl:68
41968 "The first parameter is the libvirt guest name or the raw disk image of a "
41973 #: ../tools/virt-win-reg.pl:71
41975 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41976 "exported (recursively). For example:"
41980 #: ../tools/virt-win-reg.pl:74
41983 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41986 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41990 #: ../tools/virt-win-reg.pl:76
41992 "You can also display single values from within registry keys, for example:"
41996 #: ../tools/virt-win-reg.pl:79
41999 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42000 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42001 " Windows 7 Enterprise\n"
42004 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42005 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42006 " Windows 7 Enterprise\n"
42010 #: ../tools/virt-win-reg.pl:83
42012 "With I<--merge>, you can merge a textual regedit file into the Windows "
42017 #: ../tools/virt-win-reg.pl:86
42020 " $ virt-win-reg --merge Windows7 changes.reg\n"
42023 " $ virt-win-reg --merge Windows7 changes.reg\n"
42027 #: ../tools/virt-win-reg.pl:90
42029 "This program is only meant for simple access to the registry. If you want "
42030 "to do complicated things with the registry, we suggest you download the "
42031 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42032 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42033 "L<hivexregedit(1)>."
42037 #: ../tools/virt-win-reg.pl:159
42039 msgstr "B<--merge>"
42042 #: ../tools/virt-win-reg.pl:161
42044 "In merge mode, this merges a textual regedit file into the Windows Registry "
42045 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42046 "displays or exports Registry entries instead."
42050 #: ../tools/virt-win-reg.pl:165
42052 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42053 "result in disk corruption. However exporting (without this flag) is always "
42058 #: ../tools/virt-win-reg.pl:173
42059 msgid "B<--encoding> UTF-16LE|ASCII"
42060 msgstr "B<--encoding> UTF-16LE|ASCII"
42063 #: ../tools/virt-win-reg.pl:175
42065 "When merging (only), you may need to specify the encoding for strings to be "
42066 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
42067 "(3)/ENCODING STRINGS>."
42071 #: ../tools/virt-win-reg.pl:179
42073 "The default is to use UTF-16LE, which should work with recent versions of "
42078 #: ../tools/virt-win-reg.pl:186
42079 msgid "B<--unsafe-printable-strings>"
42080 msgstr "B<--unsafe-printable-strings>"
42083 #: ../tools/virt-win-reg.pl:188
42085 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42086 "instead of hex sequences. Remove the final zero codepoint from strings if "
42091 #: ../tools/virt-win-reg.pl:192
42093 "This is unsafe and does not preserve the fidelity of strings in the original "
42094 "Registry for various reasons:"
42098 #: ../tools/virt-win-reg.pl:199
42100 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42101 "other encodings will be corrupted by this transformation."
42105 #: ../tools/virt-win-reg.pl:204
42107 "Assumes that everything which has type 1 or 2 is really a string and that "
42108 "everything else is not a string, but the type field in real Registries is "
42113 #: ../tools/virt-win-reg.pl:210
42115 "Loses information about whether a zero codepoint followed the string in the "
42120 #: ../tools/virt-win-reg.pl:215
42122 "This all happens because the Registry itself contains no information about "
42123 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42127 #: ../tools/virt-win-reg.pl:219
42129 "You should only use this option for quick hacking and debugging of the "
42130 "Registry contents, and I<never> use it if the output is going to be passed "
42131 "into another program or stored in another Registry."
42135 #: ../tools/virt-win-reg.pl:556
42136 msgid "SUPPORTED SYSTEMS"
42137 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42140 #: ../tools/virt-win-reg.pl:558
42142 "The program currently supports Windows NT-derived guests starting with "
42143 "Windows XP through to at least Windows 7."
42147 #: ../tools/virt-win-reg.pl:561
42148 msgid "The following Registry keys are supported:"
42152 #: ../tools/virt-win-reg.pl:565
42153 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42154 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42157 #: ../tools/virt-win-reg.pl:567
42158 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42159 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42162 #: ../tools/virt-win-reg.pl:569
42163 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42164 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42167 #: ../tools/virt-win-reg.pl:571
42168 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42169 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42172 #: ../tools/virt-win-reg.pl:573
42173 msgid "C<HKEY_USERS\\.DEFAULT>"
42174 msgstr "C<HKEY_USERS\\.DEFAULT>"
42177 #: ../tools/virt-win-reg.pl:575
42178 msgid "C<HKEY_USERS\\I<SID>>"
42179 msgstr "C<HKEY_USERS\\I<SID>>"
42182 #: ../tools/virt-win-reg.pl:577
42183 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42187 #: ../tools/virt-win-reg.pl:579
42188 msgid "C<HKEY_USERS\\I<username>>"
42189 msgstr "C<HKEY_USERS\\I<користувач>>"
42192 #: ../tools/virt-win-reg.pl:581
42194 "where I<username> is a local user name (this is a libguestfs extension)."
42198 #: ../tools/virt-win-reg.pl:585
42200 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42205 #: ../tools/virt-win-reg.pl:588
42207 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42208 "supported (there is no \"current user\")."
42212 #: ../tools/virt-win-reg.pl:591
42217 #: ../tools/virt-win-reg.pl:593
42219 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42220 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
42221 "style line endings. Since Windows regedit files are often in UTF-16LE with "
42222 "Windows-style line endings, you may need to reencode the whole file before "
42223 "or after processing."
42227 #: ../tools/virt-win-reg.pl:599
42229 "To reencode a file from Windows format to Linux (before processing it with "
42230 "the I<--merge> option), you would do something like this:"
42234 #: ../tools/virt-win-reg.pl:602
42237 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42240 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42244 #: ../tools/virt-win-reg.pl:604
42246 "To go in the opposite direction, after exporting and before sending the file "
42247 "to a Windows user, do something like this:"
42251 #: ../tools/virt-win-reg.pl:607
42254 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42257 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42261 #: ../tools/virt-win-reg.pl:609
42262 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42266 #: ../tools/virt-win-reg.pl:611
42268 "If you are unsure about the current encoding, use the L<file(1)> command. "
42269 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42270 "style (CRLF) line endings, like this:"
42274 #: ../tools/virt-win-reg.pl:615
42277 " $ file software.reg\n"
42278 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42279 " with CRLF line terminators\n"
42284 #: ../tools/virt-win-reg.pl:619
42285 msgid "This file would need conversion before you could I<--merge> it."
42289 #: ../tools/virt-win-reg.pl:621
42290 msgid "CurrentControlSet etc."
42294 #: ../tools/virt-win-reg.pl:623
42296 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42297 "Registry at the level of the hive file, and therefore you cannot modify "
42302 #: ../tools/virt-win-reg.pl:627
42304 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
42305 "circumstances it might refer to another control set. The way to find out is "
42306 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42310 #: ../tools/virt-win-reg.pl:631
42313 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42314 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42315 " \"Current\"=dword:00000001\n"
42316 " \"Default\"=dword:00000001\n"
42317 " \"Failed\"=dword:00000000\n"
42318 " \"LastKnownGood\"=dword:00000002\n"
42321 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42322 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42323 " \"Current\"=dword:00000001\n"
42324 " \"Default\"=dword:00000001\n"
42325 " \"Failed\"=dword:00000000\n"
42326 " \"LastKnownGood\"=dword:00000002\n"
42330 #: ../tools/virt-win-reg.pl:638
42331 msgid "\"Current\" is the one which Windows will choose when it boots."
42335 #: ../tools/virt-win-reg.pl:640
42337 "Similarly, other C<Current...> keys in the path may need to be replaced."
42341 #: ../tools/virt-win-reg.pl:643
42342 msgid "WINDOWS TIPS"
42346 #: ../tools/virt-win-reg.pl:645
42348 "Note that some of these tips modify the guest disk image. The guest I<must> "
42349 "be shut off, else you will get disk corruption."
42353 #: ../tools/virt-win-reg.pl:648
42354 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42358 #: ../tools/virt-win-reg.pl:650
42360 "Prepare a DOS batch script, VBScript or executable. Upload this using "
42361 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
42362 "is uploaded into C<C:\\>:"
42366 #: ../tools/virt-win-reg.pl:654
42369 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42372 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42376 #: ../tools/virt-win-reg.pl:656
42377 msgid "Prepare a regedit file containing the registry change:"
42381 #: ../tools/virt-win-reg.pl:658
42384 " cat > test.reg <<'EOF'\n"
42385 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42386 " \"Test\"=\"c:\\\\test.bat\"\n"
42390 " cat > test.reg <<'EOF'\n"
42391 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42392 " \"Test\"=\"c:\\\\test.bat\"\n"
42397 #: ../tools/virt-win-reg.pl:663
42399 "In this example we use the key C<RunOnce> which means that the script will "
42400 "run precisely once when the first user logs in. If you want it to run every "
42401 "time a user logs in, replace C<RunOnce> with C<Run>."
42405 #: ../tools/virt-win-reg.pl:667
42406 msgid "Now update the registry:"
42407 msgstr "Оновіть регістр:"
42410 #: ../tools/virt-win-reg.pl:669
42413 " virt-win-reg --merge WindowsGuest test.reg\n"
42418 #: ../tools/virt-win-reg.pl:671
42419 msgid "INSTALLING A SERVICE"
42423 #: ../tools/virt-win-reg.pl:673
42425 "This section assumes you are familiar with Windows services, and you either "
42426 "have a program which handles the Windows Service Control Protocol directly "
42427 "or you want to run any program using a service wrapper like SrvAny or the "
42432 #: ../tools/virt-win-reg.pl:678
42434 "First upload the program and optionally the service wrapper. In this case "
42435 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42439 #: ../tools/virt-win-reg.pl:682
42442 " guestfish -i -d WindowsGuest <<EOF\n"
42443 " upload rhsrvany.exe /rhsrvany.exe\n"
42444 " upload test.exe /test.exe\n"
42448 " guestfish -i -d WindowsGuest <<EOF\n"
42449 " upload rhsrvany.exe /rhsrvany.exe\n"
42450 " upload test.exe /test.exe\n"
42455 #: ../tools/virt-win-reg.pl:687
42457 "Prepare a regedit file containing the registry changes. In this example, "
42458 "the first registry change is needed for the service itself or the service "
42459 "wrapper (if used). The second registry change is only needed because I am "
42460 "using the RHSrvAny service wrapper."
42464 #: ../tools/virt-win-reg.pl:692
42467 " cat > service.reg <<'EOF'\n"
42468 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42469 " \"Type\"=dword:00000010\n"
42470 " \"Start\"=dword:00000002\n"
42471 " \"ErrorControl\"=dword:00000001\n"
42472 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42473 " \"DisplayName\"=\"RHSrvAny\"\n"
42474 " \"ObjectName\"=\"NetworkService\"\n"
42477 " cat > service.reg <<'EOF'\n"
42478 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42479 " \"Type\"=dword:00000010\n"
42480 " \"Start\"=dword:00000002\n"
42481 " \"ErrorControl\"=dword:00000001\n"
42482 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42483 " \"DisplayName\"=\"RHSrvAny\"\n"
42484 " \"ObjectName\"=\"NetworkService\"\n"
42488 #: ../tools/virt-win-reg.pl:701
42491 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42492 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42493 " \"PWD\"=\"c:\\\\Temp\"\n"
42497 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42498 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42499 " \"PWD\"=\"c:\\\\Temp\"\n"
42504 #: ../tools/virt-win-reg.pl:712
42506 "For use of C<ControlSet001> see the section above in this manual page. You "
42507 "may need to adjust this according to the control set that is in use by the "
42512 #: ../tools/virt-win-reg.pl:718
42514 "C<\"ObjectName\"> controls the privileges that the service will have. An "
42515 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42516 "privileged account."
42520 #: ../tools/virt-win-reg.pl:724
42522 "For the meaning of the magic numbers, see this Microsoft KB article: "
42523 "L<http://support.microsoft.com/kb/103000>."
42527 #: ../tools/virt-win-reg.pl:729
42528 msgid "Update the registry:"
42529 msgstr "Оновіть регістр:"
42532 #: ../tools/virt-win-reg.pl:731
42535 " virt-win-reg --merge WindowsGuest service.reg\n"
42540 #: ../tools/virt-win-reg.pl:735
42542 "Be careful when passing parameters containing C<\\> (backslash) in the "
42543 "shell. Usually you will have to use 'single quotes' or double backslashes "
42544 "(but not both) to protect them from the shell."
42548 #: ../tools/virt-win-reg.pl:739
42549 msgid "Paths and value names are case-insensitive."
42553 #: ../tools/virt-win-reg.pl:748
42555 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42556 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42557 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42559 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42560 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42561 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42564 #: ../tools/virt-win-reg.pl:766
42567 " export LIBGUESTFS_DEBUG=1\n"
42568 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42573 #: ../tools/virt-win-reg.pl:769
42575 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."