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-11-22 15:04+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+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 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
66 msgstr "КОРОТКИЙ ОПИС"
69 #: ../align/virt-alignment-scan.pod:9
72 " virt-alignment-scan [--options] -d domname\n"
77 #: ../align/virt-alignment-scan.pod:11
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
107 #: ../align/virt-alignment-scan.pod:15
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>). Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
117 #: ../align/virt-alignment-scan.pod:21
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
124 #: ../align/virt-alignment-scan.pod:25
126 "Currently there is no virt tool for fixing alignment problems. You can only "
127 "reinstall the guest operating system. The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
133 #: ../align/virt-alignment-scan.pod:30
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
143 #: ../align/virt-alignment-scan.pod:34
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
152 #: ../align/virt-alignment-scan.pod:37
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1 1048576 1024K ok\n"
157 " /dev/sda2 2097152 2048K ok\n"
158 " /dev/sda3 526385152 2048K ok\n"
163 #: ../align/virt-alignment-scan.pod:42
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
170 #: ../align/virt-alignment-scan.pod:45
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
175 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
180 #: ../align/virt-alignment-scan.pod:49
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1 1048576 1024K ok\n"
185 " /dev/sda2 105906176 1024K ok\n"
186 " /dev/sdb1 65536 64K ok\n"
191 #: ../align/virt-alignment-scan.pod:54
193 "The output consists of 4 or more whitespace-separated columns. Only the "
194 "first 4 columns are signficant if you want to parse this from a program. "
199 #: ../align/virt-alignment-scan.pod:60
204 #: ../align/virt-alignment-scan.pod:62
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
211 #: ../align/virt-alignment-scan.pod:65
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
221 #: ../align/virt-alignment-scan.pod:69
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
231 #: ../align/virt-alignment-scan.pod:73
236 #: ../align/virt-alignment-scan.pod:75
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
243 #: ../align/virt-alignment-scan.pod:78
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
253 #: ../align/virt-alignment-scan.pod:84
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found. See L</EXIT STATUS> below."
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr "Показати коротку довідку."
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
318 msgid "B<--add> file"
319 msgstr "B<--add> файл"
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
333 "The format of the disk image is auto-detected. To override this and force a "
334 "particular format use the I<--format=..> option."
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:107
343 msgstr "B<-c> адреса"
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:109
350 msgid "B<--connect> URI"
351 msgstr "B<--connect> адреса"
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
361 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
362 "to the default libvirt hypervisor."
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:114
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
388 msgid "B<--domain> guest"
389 msgstr "B<--domain> гість"
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
397 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr "B<--format=raw|qcow2|..>"
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:126
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image. Using this forces the disk format for I<-a> options which follow on "
429 "the command line. Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
444 #: ../align/virt-alignment-scan.pod:134
447 " virt-alignment-scan --format=raw -a disk.img\n"
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:137
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
461 #: ../align/virt-alignment-scan.pod:138
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:141
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format. This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
492 #: ../sparsify/virt-sparsify.pod:152
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
498 #: ../sparsify/virt-sparsify.pod:154
503 #: ../align/virt-alignment-scan.pod:151
505 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:158
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:160
527 msgstr "B<--verbose>"
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:162
535 msgid "Enable verbose messages for debugging."
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
545 #: ../sparsify/virt-sparsify.pod:164
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
556 #: ../sparsify/virt-sparsify.pod:166 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
560 msgstr "B<--version>"
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
568 #: ../sparsify/virt-sparsify.pod:168 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr "Показати дані щодо версії і завершити роботу."
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:170
581 #: ../tools/virt-tar.pl:158
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:172
591 msgid "Enable tracing of libguestfs API calls."
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
600 #: ../align/virt-alignment-scan.pod:174
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size. This happens because of a historical accident. Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track. The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
613 #: ../align/virt-alignment-scan.pod:183
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
620 #: ../align/virt-alignment-scan.pod:188
625 #: ../align/virt-alignment-scan.pod:190
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
632 #: ../align/virt-alignment-scan.pod:193
637 #: ../align/virt-alignment-scan.pod:195
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
645 #: ../align/virt-alignment-scan.pod:199
650 #: ../align/virt-alignment-scan.pod:201
652 "for high-end network-attached storage. This is the optimal block size for "
653 "some NetApp hardware."
657 #: ../align/virt-alignment-scan.pod:204
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
667 #: ../align/virt-alignment-scan.pod:210
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O. For example:"
674 #: ../align/virt-alignment-scan.pod:213
678 " +--------------------------+------\n"
680 " | filesystem block |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 " | host block | host block |\n"
684 " ---+-------------------------+-------------------------+---\n"
689 #: ../align/virt-alignment-scan.pod:222
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
703 #: ../align/virt-alignment-scan.pod:229
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
715 #: ../align/virt-alignment-scan.pod:234
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
737 #: ../align/virt-alignment-scan.pod:247
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
759 #: ../align/virt-alignment-scan.pod:260
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
774 #: ../align/virt-alignment-scan.pod:269
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
781 #: ../align/virt-alignment-scan.pod:273
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
789 #: ../align/virt-alignment-scan.pod:276
791 "[Thanks to Matt Booth for providing 4K drive data. Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
801 #: ../align/virt-alignment-scan.pod:281
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
808 #: ../align/virt-alignment-scan.pod:284
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any) will start at a "
812 "multiple of 2048 sectors."
816 #: ../align/virt-alignment-scan.pod:288
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
828 #: ../align/virt-alignment-scan.pod:293
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests. Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary. For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
838 #: ../align/virt-alignment-scan.pod:299
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems. If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
846 #: ../align/virt-alignment-scan.pod:303
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
853 #: ../align/virt-alignment-scan.pod:306
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">. Do not use the Kickstart C<part> command. The NetApp document above "
858 "contains an example."
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space. You may need to quote or "
885 "escape these characters on the command line. See the shell manual page L<sh"
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:226
896 #: ../test-tool/libguestfs-test-tool.pod:90
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:359 ../resize/virt-resize.pod:363
945 #: ../resize/virt-resize.pod:372 ../resize/virt-resize.pod:378
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3062 ../src/guestfs.pod:3067 ../src/guestfs.pod:3071
978 #: ../src/guestfs.pod:3075 ../src/guestfs.pod:3079 ../src/guestfs.pod:3093
979 #: ../src/guestfs.pod:3098 ../src/guestfs.pod:3330 ../src/guestfs.pod:3334
980 #: ../src/guestfs.pod:3338 ../src/guestfs.pod:3342
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
988 #: ../align/virt-alignment-scan.pod:326
993 #: ../align/virt-alignment-scan.pod:328
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
999 #: ../align/virt-alignment-scan.pod:332
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1009 #: ../align/virt-alignment-scan.pod:338
1014 #: ../align/virt-alignment-scan.pod:340
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1021 #: ../align/virt-alignment-scan.pod:345
1026 #: ../align/virt-alignment-scan.pod:347
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1045 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:250 ../src/guestfs.pod:3270
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1052 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1055 #: ../align/virt-alignment-scan.pod:354
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1066 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:263
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1079 #: ../sparsify/virt-sparsify.pod:265 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1098 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:267 ../src/guestfs.pod:3353
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1105 msgstr "АВТОРСЬКІ ПРАВА"
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:269
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1122 #: ../sparsify/virt-sparsify.pod:271 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1142 #: ../sparsify/virt-sparsify.pod:276 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1152 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1153 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1154 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1155 "дізнатися з GNU General Public License."
1158 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1159 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1160 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1161 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1162 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1163 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1164 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1165 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1166 #: ../sparsify/virt-sparsify.pod:281 ../test-tool/libguestfs-test-tool.pod:125
1167 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1168 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1169 #: ../tools/virt-win-reg.pl:801
1171 "You should have received a copy of the GNU General Public License along with "
1172 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1173 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1175 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1176 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1177 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1180 #: ../cat/virt-cat.pod:5
1181 msgid "virt-cat - Display files in a virtual machine"
1182 msgstr "virt-cat — показ файлів у віртуальній машині"
1185 #: ../cat/virt-cat.pod:9
1188 " virt-cat [--options] -d domname file [file ...]\n"
1191 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1195 #: ../cat/virt-cat.pod:11
1198 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1201 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1205 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1206 #: ../inspector/virt-inspector.pod:13
1208 msgstr "Застарілий стиль:"
1211 #: ../cat/virt-cat.pod:15
1214 " virt-cat domname file\n"
1217 " virt-cat назва_домену файл\n"
1221 #: ../cat/virt-cat.pod:17
1224 " virt-cat disk.img file\n"
1227 " virt-cat диск.img файл\n"
1231 #: ../cat/virt-cat.pod:21
1233 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1234 "C<file> exists in the named virtual machine (or disk image)."
1236 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1237 "зберігається у вказаній віртуальній машині (або образі диска)."
1240 #: ../cat/virt-cat.pod:24
1242 "Multiple filenames can be given, in which case they are concatenated "
1243 "together. Each filename must be a full path, starting at the root directory "
1244 "(starting with '/')."
1246 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1247 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1248 "кореневого каталогу (тобто назва має починатися з «/»)."
1251 #: ../cat/virt-cat.pod:28
1253 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1254 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1255 "(see L</USING GUESTFISH> below)."
1257 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1258 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1259 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1263 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1264 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1265 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1266 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1267 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1268 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1269 #: ../tools/virt-tar.pl:50
1274 #: ../cat/virt-cat.pod:34
1276 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1278 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1281 #: ../cat/virt-cat.pod:37
1284 " virt-cat -d mydomain /etc/fstab\n"
1287 " virt-cat -d mydomain /etc/fstab\n"
1291 #: ../cat/virt-cat.pod:39
1292 msgid "List syslog messages from a VM disk image file:"
1294 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1297 #: ../cat/virt-cat.pod:41
1300 " virt-cat -a disk.img /var/log/messages | tail\n"
1303 " virt-cat -a disk.img /var/log/messages | tail\n"
1307 #: ../cat/virt-cat.pod:43
1308 msgid "Find out what DHCP IP address a VM acquired:"
1309 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1312 #: ../cat/virt-cat.pod:45
1315 " virt-cat -d mydomain /var/log/messages | \\\n"
1316 " grep 'dhclient: bound to' | tail\n"
1319 " virt-cat -d mydomain /var/log/messages | \\\n"
1320 " grep 'dhclient: bound to' | tail\n"
1324 #: ../cat/virt-cat.pod:48
1325 msgid "Find out what packages were recently installed:"
1326 msgstr "Пошук нещодавно встановлених пакунків:"
1329 #: ../cat/virt-cat.pod:50
1332 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1335 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1339 #: ../cat/virt-cat.pod:52
1340 msgid "Find out who is logged on inside a virtual machine:"
1341 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1344 #: ../cat/virt-cat.pod:54
1347 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1351 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1356 #: ../cat/virt-cat.pod:57
1357 msgid "or who was logged on:"
1358 msgstr "або тих, які у ній працювали:"
1361 #: ../cat/virt-cat.pod:59
1364 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1365 " last -f /tmp/wtmp\n"
1368 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1369 " last -f /tmp/wtmp\n"
1373 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1374 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1375 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1377 "Add I<file> which should be a disk image from a virtual machine. If the "
1378 "virtual machine has multiple block devices, you must supply all of them with "
1379 "separate I<-a> options."
1383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1385 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1386 msgid "B<--echo-keys>"
1387 msgstr "B<--echo-keys>"
1390 #: ../cat/virt-cat.pod:100
1392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1393 "so you cannot see what you are typing. If you are not worried about Tempest "
1394 "attacks and there is no one else in the room you can specify this flag to "
1395 "see what you are typing."
1399 #: ../cat/virt-cat.pod:116
1402 " virt-cat --format=raw -a disk.img file\n"
1405 " virt-cat --format=raw -a disk.img file\n"
1409 #: ../cat/virt-cat.pod:120
1412 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1415 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1419 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1420 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1421 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1422 msgid "B<--keys-from-stdin>"
1423 msgstr "B<--keys-from-stdin>"
1426 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1427 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1428 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1430 "Read key or passphrase parameters from stdin. The default is to try to read "
1431 "passphrases from the user by opening C</dev/tty>."
1435 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1436 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1437 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1441 #: ../cat/virt-cat.pod:154
1442 msgid "Previous versions of virt-cat allowed you to write either:"
1446 #: ../cat/virt-cat.pod:156
1449 " virt-cat disk.img [disk.img ...] file\n"
1454 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1455 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1460 #: ../cat/virt-cat.pod:160
1463 " virt-cat guestname file\n"
1468 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1469 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1471 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1472 "the confusing case where a disk image might have the same name as a guest."
1476 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1477 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1478 msgid "For compatibility the old style is still supported."
1482 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1483 msgid "WINDOWS PATHS"
1484 msgstr "ШЛЯХИ У WINDOWS"
1487 #: ../cat/virt-cat.pod:170
1489 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1490 "paths (eg. C<E:\\foo\\bar.txt>)."
1494 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1495 msgid "If and only if the guest is running Windows then:"
1499 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1501 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1502 "to the correct filesystem."
1506 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1508 "Any backslash (C<\\>) characters in the path are replaced with forward "
1509 "slashes so that libguestfs can process it."
1513 #: ../cat/virt-cat.pod:189
1515 "The path is resolved case insensitively to locate the file that should be "
1520 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1521 msgid "There are some known shortcomings:"
1525 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1526 msgid "Some NTFS symbolic links may not be followed correctly."
1530 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1531 msgid "NTFS junction points that cross filesystems are not followed."
1535 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1536 msgid "USING GUESTFISH"
1537 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1540 #: ../cat/virt-cat.pod:210
1542 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1543 "C<virt-cat> doesn't work."
1547 #: ../cat/virt-cat.pod:213
1548 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1552 #: ../cat/virt-cat.pod:215
1555 " guestfish --ro -i -d domname download file -\n"
1560 #: ../cat/virt-cat.pod:217
1562 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1563 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1567 #: ../cat/virt-cat.pod:221
1569 "The command above uses libguestfs's guest inspection feature and so does not "
1570 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1571 "disk images that don't contain guests. To display a file from a disk image "
1576 #: ../cat/virt-cat.pod:226
1579 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1584 #: ../cat/virt-cat.pod:228
1586 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1587 "the disk image, and C<file> is the full path to the file."
1591 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1592 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1593 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1594 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:228
1596 "This program returns 0 if successful, or non-zero if there was an error."
1600 #: ../cat/virt-cat.pod:245
1602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1603 "tar-out(1)>, L<http://libguestfs.org/>."
1605 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1606 "tar-out(1)>, L<http://libguestfs.org/>."
1609 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1610 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1611 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1612 msgstr "©Red Hat Inc., 2010–2011"
1615 #: ../cat/virt-filesystems.pod:5
1617 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1618 "virtual machine or disk image"
1622 #: ../cat/virt-filesystems.pod:9
1625 " virt-filesystems [--options] -d domname\n"
1628 " virt-filesystems [--параметри] -d назва_домену\n"
1632 #: ../cat/virt-filesystems.pod:11
1635 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1640 #: ../cat/virt-filesystems.pod:15
1642 "This tool allows you to discover filesystems, partitions, logical volumes, "
1643 "and their sizes in a disk image or virtual machine. It is a replacement for "
1644 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1648 #: ../cat/virt-filesystems.pod:20
1650 "One use for this tool is from shell scripts to iterate over all filesystems "
1651 "from a disk image:"
1655 #: ../cat/virt-filesystems.pod:23
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1663 " for fs in $(virt-filesystems -a disk.img); do\n"
1669 #: ../cat/virt-filesystems.pod:27
1671 "Another use is to list partitions before using another tool to modify those "
1672 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1673 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1677 #: ../cat/virt-filesystems.pod:32
1679 "Various command line options control what this program displays. You need "
1680 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1681 "guest respectively. If you just specify that then the program shows "
1682 "filesystems found, one per line, like this:"
1686 #: ../cat/virt-filesystems.pod:37
1689 " $ virt-filesystems -a disk.img\n"
1691 " /dev/vg_guest/lv_root\n"
1694 " $ virt-filesystems -a disk.img\n"
1696 " /dev/vg_guest/lv_root\n"
1700 #: ../cat/virt-filesystems.pod:41
1702 "If you add I<-l> or I<--long> then the output includes extra information:"
1706 #: ../cat/virt-filesystems.pod:44
1709 " $ virt-filesystems -a disk.img -l\n"
1710 " Name Type VFS Label Size\n"
1711 " /dev/sda1 filesystem ext4 boot 524288000\n"
1712 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1717 #: ../cat/virt-filesystems.pod:49
1719 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1724 #: ../cat/virt-filesystems.pod:52
1727 " $ virt-filesystems -a disk.img --extra\n"
1729 " /dev/vg_guest/lv_root\n"
1730 " /dev/vg_guest/lv_swap\n"
1731 " /dev/vg_guest/lv_data\n"
1734 " $ virt-filesystems -a disk.img --extra\n"
1736 " /dev/vg_guest/lv_root\n"
1737 " /dev/vg_guest/lv_swap\n"
1738 " /dev/vg_guest/lv_data\n"
1742 #: ../cat/virt-filesystems.pod:58
1744 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1748 #: ../cat/virt-filesystems.pod:60
1751 " $ virt-filesystems -a disk.img --partitions\n"
1756 " $ virt-filesystems -a disk.img --partitions\n"
1762 #: ../cat/virt-filesystems.pod:64
1764 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1765 "volumes>, I<--block-devices> to list those items."
1769 #: ../cat/virt-filesystems.pod:67
1771 "You can use these options in combination as well (if you want a combination "
1772 "including filesystems, you have to add I<--filesystems>). Notice that some "
1773 "items fall into several categories (eg. C</dev/sda1> might be both a "
1774 "partition and a filesystem). These items are listed several times. To get "
1775 "a list which includes absolutely everything that virt-filesystems knows "
1776 "about, use the I<--all> option."
1780 #: ../cat/virt-filesystems.pod:74
1782 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1783 "uuid> option to display device and filesystem UUIDs in the long output."
1787 #: ../cat/virt-filesystems.pod:78
1789 "I<--all --long --uuid> is a useful combination to display all possible "
1790 "information about everything."
1794 #: ../cat/virt-filesystems.pod:81
1797 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1798 " Name Type VFS Label Size Parent UUID\n"
1799 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1800 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1801 " /dev/sda1 partition - - 100M /dev/sda -\n"
1802 " /dev/sda2 partition - - 20G /dev/sda -\n"
1803 " /dev/sda device - - 20G - -\n"
1808 #: ../cat/virt-filesystems.pod:89
1810 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1814 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1819 #: ../cat/virt-filesystems.pod:112
1821 "Display everything. This is currently the same as specifying these options: "
1822 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1823 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1824 "added to this list in future)."
1828 #: ../cat/virt-filesystems.pod:117
1829 msgid "See also I<--long>."
1830 msgstr "Див. також I<--long>."
1833 #: ../cat/virt-filesystems.pod:119
1834 msgid "B<--blkdevs>"
1835 msgstr "B<--blkdevs>"
1838 #: ../cat/virt-filesystems.pod:121
1839 msgid "B<--block-devices>"
1840 msgstr "B<--block-devices>"
1843 #: ../cat/virt-filesystems.pod:123
1844 msgid "Display block devices."
1845 msgstr "Показати список блокових пристроїв."
1848 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1853 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1855 "Write out the results in CSV format (comma-separated values). This format "
1856 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1857 "ABOUT CSV FORMAT> below."
1861 #: ../cat/virt-filesystems.pod:150
1863 "When prompting for keys and passphrases, virt-filesystems normally turns "
1864 "echoing off so you cannot see what you are typing. If you are not worried "
1865 "about Tempest attacks and there is no one else in the room you can specify "
1866 "this flag to see what you are typing."
1870 #: ../cat/virt-filesystems.pod:155
1875 #: ../cat/virt-filesystems.pod:157
1877 "This causes filesystems that are not ordinary, mountable filesystems to be "
1878 "displayed. This category includes swapspace, and filesystems that are empty "
1879 "or contain unknown data."
1883 #: ../cat/virt-filesystems.pod:161
1884 msgid "This option implies I<--filesystems>."
1888 #: ../cat/virt-filesystems.pod:163
1889 msgid "B<--filesystems>"
1890 msgstr "B<--filesystems>"
1893 #: ../cat/virt-filesystems.pod:165
1895 "Display mountable filesystems. If no display option was selected then this "
1896 "option is implied."
1900 #: ../cat/virt-filesystems.pod:168
1901 msgid "With I<--extra>, non-mountable filesystems are shown too."
1905 #: ../cat/virt-filesystems.pod:181
1908 " virt-filesystems --format=raw -a disk.img\n"
1911 " virt-filesystems --format=raw -a диск.img\n"
1915 #: ../cat/virt-filesystems.pod:185
1918 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1923 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1924 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1925 #: ../tools/virt-list-partitions.pl:109
1930 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1931 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1932 msgid "B<--human-readable>"
1933 msgstr "B<--human-readable>"
1936 #: ../cat/virt-filesystems.pod:198
1937 msgid "In I<--long> mode, display sizes in human-readable format."
1941 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1942 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1947 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1948 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1953 #: ../cat/virt-filesystems.pod:209
1954 msgid "Display extra columns of data (\"long format\")."
1958 #: ../cat/virt-filesystems.pod:211
1959 msgid "A title row is added unless you also specify I<--no-title>."
1963 #: ../cat/virt-filesystems.pod:213
1965 "The extra columns displayed depend on what output you select, and the "
1966 "ordering of columns may change in future versions. Use the title row, I<--"
1967 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1972 #: ../cat/virt-filesystems.pod:218
1974 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1975 "default is to show raw numbers of I<bytes>."
1979 #: ../cat/virt-filesystems.pod:221
1980 msgid "Use I<--uuid> to display UUIDs too."
1984 #: ../cat/virt-filesystems.pod:223
1989 #: ../cat/virt-filesystems.pod:225
1990 msgid "B<--logvols>"
1991 msgstr "B<--logvols>"
1994 #: ../cat/virt-filesystems.pod:227
1995 msgid "B<--logical-volumes>"
1996 msgstr "B<--logical-volumes>"
1999 #: ../cat/virt-filesystems.pod:229
2001 "Display LVM logical volumes. In this mode, these are displayed irrespective "
2002 "of whether the LVs contain filesystems."
2006 #: ../cat/virt-filesystems.pod:232
2007 msgid "B<--no-title>"
2008 msgstr "B<--no-title>"
2011 #: ../cat/virt-filesystems.pod:234
2012 msgid "In I<--long> mode, don't add a title row."
2016 #: ../cat/virt-filesystems.pod:236
2018 "Note that the order of the columns is not fixed, and may change in future "
2019 "versions of virt-filesystems, so using this option may give you unexpected "
2024 #: ../cat/virt-filesystems.pod:240
2029 #: ../cat/virt-filesystems.pod:242
2030 msgid "B<--partitions>"
2031 msgstr "B<--partitions>"
2034 #: ../cat/virt-filesystems.pod:244
2036 "Display partitions. In this mode, these are displayed irrespective of "
2037 "whether the partitions contain filesystems."
2041 #: ../cat/virt-filesystems.pod:247
2046 #: ../cat/virt-filesystems.pod:249
2047 msgid "B<--physvols>"
2048 msgstr "B<--physvols>"
2051 #: ../cat/virt-filesystems.pod:251
2052 msgid "B<--physical-volumes>"
2053 msgstr "B<--physical-volumes>"
2056 #: ../cat/virt-filesystems.pod:253
2057 msgid "Display LVM physical volumes."
2061 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2066 #: ../cat/virt-filesystems.pod:257
2071 #: ../cat/virt-filesystems.pod:259
2072 msgid "In I<--long> mode, display UUIDs as well."
2076 #: ../cat/virt-filesystems.pod:273
2081 #: ../cat/virt-filesystems.pod:275
2082 msgid "B<--volgroups>"
2083 msgstr "B<--volgroups>"
2086 #: ../cat/virt-filesystems.pod:277
2087 msgid "B<--volume-groups>"
2088 msgstr "B<--volume-groups>"
2091 #: ../cat/virt-filesystems.pod:279
2092 msgid "Display LVM volume groups."
2096 #: ../cat/virt-filesystems.pod:287
2101 #: ../cat/virt-filesystems.pod:289
2103 "Note that columns in the output are subject to reordering and change in "
2104 "future versions of this tool."
2108 #: ../cat/virt-filesystems.pod:294
2113 #: ../cat/virt-filesystems.pod:296
2114 msgid "The filesystem, partition, block device or LVM name."
2118 #: ../cat/virt-filesystems.pod:298
2120 "For device and partition names these are displayed as canonical libguestfs "
2121 "names, so that for example C</dev/sda2> is the second partition on the first "
2126 #: ../cat/virt-filesystems.pod:302
2128 "If the I<--long> option is B<not> specified, then only the name column is "
2129 "shown in the output."
2133 #: ../cat/virt-filesystems.pod:305
2138 #: ../cat/virt-filesystems.pod:307
2139 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2143 #: ../cat/virt-filesystems.pod:309
2148 #: ../cat/virt-filesystems.pod:311
2150 "If there is a filesystem, then this column displays the filesystem type if "
2151 "one could be detected, eg. C<ext4>."
2155 #: ../cat/virt-filesystems.pod:314
2160 #: ../cat/virt-filesystems.pod:316
2162 "If the object has a label (used for identifying and mounting filesystems) "
2163 "then this column contains the label."
2167 #: ../cat/virt-filesystems.pod:319
2172 #: ../cat/virt-filesystems.pod:321
2174 "The partition type byte, displayed as a two digit hexadecimal number. A "
2175 "comprehensive list of partition types can be found here: L<http://www.win."
2176 "tue.nl/~aeb/partitions/partition_types-1.html>"
2180 #: ../cat/virt-filesystems.pod:325
2181 msgid "This is only applicable for DOS (MBR) partitions."
2185 #: ../cat/virt-filesystems.pod:327
2190 #: ../cat/virt-filesystems.pod:329
2192 "The size of the object in bytes. If the I<--human> option is used then the "
2193 "size is displayed in a human-readable form."
2197 #: ../cat/virt-filesystems.pod:332
2202 #: ../cat/virt-filesystems.pod:334
2204 "The parent column records the parent relationship between objects. For "
2205 "example, if the object is a partition, then this column contains the name of "
2206 "the containing device. If the object is a logical volume, then this column "
2207 "is the name of the volume group."
2211 #: ../cat/virt-filesystems.pod:339
2216 #: ../cat/virt-filesystems.pod:341
2218 "If the object has a UUID (used for identifying and mounting filesystems and "
2219 "block devices) then this column contains the UUID as a string."
2223 #: ../cat/virt-filesystems.pod:345
2224 msgid "The UUID is only displayed if the I<--uuid> option is given."
2228 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2229 #: ../df/virt-df.pod:217
2230 msgid "NOTE ABOUT CSV FORMAT"
2234 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2235 #: ../df/virt-df.pod:219
2237 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2238 "should be easy to parse, but it is definitely not easy to parse."
2242 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2243 #: ../df/virt-df.pod:222
2245 "Myth: Just split fields at commas. Reality: This does I<not> work "
2246 "reliably. This example has two columns:"
2250 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2251 #: ../df/virt-df.pod:225
2254 " \"foo,bar\",baz\n"
2259 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2260 #: ../df/virt-df.pod:227
2262 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2263 "reliably. This example has one row:"
2267 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2268 #: ../df/virt-df.pod:230
2277 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2278 #: ../df/virt-df.pod:233
2280 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2281 "packaged in major Linux distributions)."
2285 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2286 #: ../df/virt-df.pod:236
2288 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2289 "or Python's built-in csv library)."
2293 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2294 #: ../df/virt-df.pod:239
2295 msgid "Most spreadsheets and databases can import CSV directly."
2299 #: ../cat/virt-filesystems.pod:387
2301 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2302 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2305 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2306 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2310 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2311 msgid "Copyright (C) 2010 Red Hat Inc."
2312 msgstr "©Red Hat Inc., 2010"
2315 #: ../cat/virt-ls.pod:5
2316 msgid "virt-ls - List files in a virtual machine"
2320 #: ../cat/virt-ls.pod:9
2323 " virt-ls [--options] -d domname directory [directory ...]\n"
2328 #: ../cat/virt-ls.pod:11
2331 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2336 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2338 msgstr "Старий стиль:"
2341 #: ../cat/virt-ls.pod:15
2344 " virt-ls [--options] domname directory\n"
2349 #: ../cat/virt-ls.pod:17
2352 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2357 #: ../cat/virt-ls.pod:21
2359 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2360 "more from a virtual machine or disk image."
2364 #: ../cat/virt-ls.pod:24
2366 "Multiple directory names can be given, in which case the output from each is "
2371 #: ../cat/virt-ls.pod:27
2373 "To list directories from a libvirt guest use the I<-d> option to specify the "
2374 "name of the guest. For a disk image, use the I<-a> option."
2378 #: ../cat/virt-ls.pod:31
2380 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2381 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2386 #: ../cat/virt-ls.pod:37
2387 msgid "Get a list of all files and directories in a virtual machine:"
2391 #: ../cat/virt-ls.pod:39
2394 " virt-ls -R -d guest /\n"
2399 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2400 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2404 #: ../cat/virt-ls.pod:43
2407 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2412 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2413 msgid "List all public-writable directories in a Linux virtual machine:"
2417 #: ../cat/virt-ls.pod:47
2420 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2425 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2426 msgid "List all Unix domain sockets in a Linux virtual machine:"
2430 #: ../cat/virt-ls.pod:51
2433 " virt-ls -lR -d guest / | grep '^s'\n"
2438 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2439 msgid "List all regular files with filenames ending in '.png':"
2443 #: ../cat/virt-ls.pod:55
2446 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2451 #: ../cat/virt-ls.pod:57
2452 msgid "To display files larger than 10MB in home directories:"
2456 #: ../cat/virt-ls.pod:59
2459 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2464 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2465 msgid "Find everything modified in the last 7 days:"
2469 #: ../cat/virt-ls.pod:63
2472 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2477 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2478 msgid "Find regular files modified in the last 24 hours:"
2482 #: ../cat/virt-ls.pod:67
2485 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2490 #: ../cat/virt-ls.pod:69
2491 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2495 #: ../cat/virt-ls.pod:71
2497 "Find the differences between files in a guest and an earlier snapshot of the "
2502 #: ../cat/virt-ls.pod:74
2505 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2506 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2507 " diff -u old new | less\n"
2512 #: ../cat/virt-ls.pod:78
2514 "The commands above won't find files where the content has changed but the "
2515 "metadata (eg. file size and modification date) is the same. To do that, you "
2516 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2517 "checksum> can be quite slow since it has to read and compute a checksum of "
2518 "every regular file in the virtual machine."
2522 #: ../cat/virt-ls.pod:84
2523 msgid "OUTPUT MODES"
2524 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2527 #: ../cat/virt-ls.pod:86
2529 "C<virt-ls> has four output modes, controlled by different combinations of "
2530 "the I<-l> and I<-R> options."
2534 #: ../cat/virt-ls.pod:89
2535 msgid "SIMPLE LISTING"
2536 msgstr "ПРОСТИЙ СПИСОК"
2539 #: ../cat/virt-ls.pod:91
2540 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2544 #: ../cat/virt-ls.pod:93
2547 " $ virt-ls -d guest /\n"
2553 " $ virt-ls -d guest /\n"
2560 #: ../cat/virt-ls.pod:98
2561 msgid "LONG LISTING"
2562 msgstr "ДОВГИЙ СПИСОК"
2565 #: ../cat/virt-ls.pod:100
2567 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2568 "(more specifically, like the C<guestfs_ll> function)."
2572 #: ../cat/virt-ls.pod:103
2575 " $ virt-ls -l -d guest /\n"
2577 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2578 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2582 " $ virt-ls -l -d guest /\n"
2584 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2585 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2590 #: ../cat/virt-ls.pod:109
2592 "Note that while this is useful for displaying a directory, do not try "
2593 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2598 #: ../cat/virt-ls.pod:113
2599 msgid "RECURSIVE LISTING"
2600 msgstr "РЕКУРСИВНИЙ СПИСОК"
2603 #: ../cat/virt-ls.pod:115
2605 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2606 "and directories recursively:"
2610 #: ../cat/virt-ls.pod:118
2613 " $ virt-ls -R -d guest /tmp\n"
2619 " $ virt-ls -R -d guest /tmp\n"
2626 #: ../cat/virt-ls.pod:123
2628 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2629 "converts C<\\0> characters to C<\\n>."
2633 #: ../cat/virt-ls.pod:126
2634 msgid "RECURSIVE LONG LISTING"
2635 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2638 #: ../cat/virt-ls.pod:128
2640 "Using I<-lR> options together changes the output to display directories "
2641 "recursively, with file stats, and optionally other features such as "
2642 "checksums and extended attributes."
2646 #: ../cat/virt-ls.pod:132
2648 "Most of the interesting features of C<virt-ls> are only available when using "
2653 #: ../cat/virt-ls.pod:135
2655 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2656 "you cannot use the output in another program (because filenames can contain "
2657 "spaces and other unsafe characters). If the guest was untrusted and someone "
2658 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2659 "on you by creating filenames with embedded newline characters. To B<safely> "
2660 "parse the output in another program, use the I<--csv> (Comma-Separated "
2665 #: ../cat/virt-ls.pod:143
2667 "Note that this output format is completely unrelated to the C<ls -lR> "
2672 #: ../cat/virt-ls.pod:146
2675 " $ virt-ls -lR -d guest /bin\n"
2676 " d 0555 4096 /bin\n"
2677 " - 0755 123 /bin/alsaunmute\n"
2678 " - 0755 28328 /bin/arch\n"
2679 " l 0777 4 /bin/awk -> gawk\n"
2680 " - 0755 27216 /bin/basename\n"
2681 " - 0755 943360 /bin/bash\n"
2685 " $ virt-ls -lR -d guest /bin\n"
2686 " d 0555 4096 /bin\n"
2687 " - 0755 123 /bin/alsaunmute\n"
2688 " - 0755 28328 /bin/arch\n"
2689 " l 0777 4 /bin/awk -> gawk\n"
2690 " - 0755 27216 /bin/basename\n"
2691 " - 0755 943360 /bin/bash\n"
2696 #: ../cat/virt-ls.pod:155
2697 msgid "These basic fields are always shown:"
2701 #: ../cat/virt-ls.pod:159
2706 #: ../cat/virt-ls.pod:161
2708 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2709 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2710 "link), C<s> (socket) or C<u> (unknown)."
2714 #: ../cat/virt-ls.pod:171
2716 msgstr "права доступу"
2719 #: ../cat/virt-ls.pod:173
2720 msgid "The Unix permissions, displayed as a 4 digit octal number."
2724 #: ../cat/virt-ls.pod:175
2729 #: ../cat/virt-ls.pod:177
2731 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2732 "readable> option is given, in which case this is shown as a human-readable "
2737 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2742 #: ../cat/virt-ls.pod:183
2743 msgid "The full path of the file or directory."
2747 #: ../cat/virt-ls.pod:185
2752 #: ../cat/virt-ls.pod:187
2753 msgid "For symbolic links only, the link target."
2757 #: ../cat/virt-ls.pod:191
2759 "In I<-lR> mode, additional command line options enable the display of more "
2764 #: ../cat/virt-ls.pod:194
2766 "With the I<--uids> flag, these additional fields are displayed before the "
2771 #: ../cat/virt-ls.pod:199
2776 #: ../cat/virt-ls.pod:201
2781 #: ../cat/virt-ls.pod:203
2783 "The UID and GID of the owner of the file (displayed numerically). Note "
2784 "these only make sense in the context of a Unix-like guest."
2788 #: ../cat/virt-ls.pod:208
2789 msgid "With the I<--times> flag, these additional fields are displayed:"
2793 #: ../cat/virt-ls.pod:212
2798 #: ../cat/virt-ls.pod:214
2799 msgid "The time of last access."
2800 msgstr "Час останнього доступу."
2803 #: ../cat/virt-ls.pod:216
2808 #: ../cat/virt-ls.pod:218
2809 msgid "The time of last modification."
2810 msgstr "Час останнього внесення змін."
2813 #: ../cat/virt-ls.pod:220
2818 #: ../cat/virt-ls.pod:222
2819 msgid "The time of last status change."
2820 msgstr "Час останньої зміни стану."
2823 #: ../cat/virt-ls.pod:226
2825 "The time fields are displayed as string dates and times, unless one of the "
2826 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2830 #: ../cat/virt-ls.pod:229
2831 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2835 #: ../cat/virt-ls.pod:233
2840 #: ../cat/virt-ls.pod:235
2842 "The device containing the file (displayed as major:minor). This may not "
2843 "match devices as known to the guest."
2847 #: ../cat/virt-ls.pod:238
2852 #: ../cat/virt-ls.pod:240
2853 msgid "The inode number."
2857 #: ../cat/virt-ls.pod:242
2862 #: ../cat/virt-ls.pod:244
2863 msgid "The number of hard links."
2864 msgstr "Кількість жорстких посилань."
2867 #: ../cat/virt-ls.pod:246
2872 #: ../cat/virt-ls.pod:248
2874 "For block and char special files, the device (displayed as major:minor)."
2878 #: ../cat/virt-ls.pod:251
2883 #: ../cat/virt-ls.pod:253
2884 msgid "The number of 512 byte blocks allocated to the file."
2888 #: ../cat/virt-ls.pod:257
2890 "With the I<--checksum> flag, the checksum of the file contents is shown "
2891 "(only for regular files). Computing file checksums can take a considerable "
2896 #: ../cat/virt-ls.pod:280
2897 msgid "B<--checksum>"
2898 msgstr "B<--checksum>"
2901 #: ../cat/virt-ls.pod:282
2902 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2903 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2906 #: ../cat/virt-ls.pod:284
2908 "Display checksum over file contents for regular files. With no argument, "
2909 "this defaults to using I<md5>. Using an argument, you can select the "
2910 "checksum type to use."
2914 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2915 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2916 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2918 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2923 #: ../cat/virt-ls.pod:316
2925 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2926 "so you cannot see what you are typing. If you are not worried about Tempest "
2927 "attacks and there is no one else in the room you can specify this flag to "
2928 "see what you are typing."
2932 #: ../cat/virt-ls.pod:321
2933 msgid "B<--extra-stats>"
2934 msgstr "B<--extra-stats>"
2937 #: ../cat/virt-ls.pod:323
2938 msgid "Display extra stats."
2939 msgstr "Показати додаткові дані."
2942 #: ../cat/virt-ls.pod:339
2945 " virt-ls --format=raw -a disk.img /dir\n"
2950 #: ../cat/virt-ls.pod:343
2953 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2958 #: ../cat/virt-ls.pod:356
2959 msgid "Display file sizes in human-readable format."
2963 #: ../cat/virt-ls.pod:370
2968 #: ../cat/virt-ls.pod:372
2969 msgid "B<--recursive>"
2970 msgstr "B<--recursive>"
2973 #: ../cat/virt-ls.pod:374
2975 "Select the mode. With neither of these options, C<virt-ls> produces a "
2976 "simple, flat list of the files in the named directory. See L</SIMPLE "
2981 #: ../cat/virt-ls.pod:378
2983 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2988 #: ../cat/virt-ls.pod:381
2990 "C<virt-ls -R> produces a recursive list of files starting at the named "
2991 "directory. See L</RECURSIVE LISTING>."
2995 #: ../cat/virt-ls.pod:384
2997 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2998 "parsed. See L</RECURSIVE LONG LISTING>."
3002 #: ../cat/virt-ls.pod:387
3007 #: ../cat/virt-ls.pod:389
3008 msgid "Display time fields."
3012 #: ../cat/virt-ls.pod:394
3013 msgid "B<--time-days>"
3014 msgstr "B<--time-days>"
3017 #: ../cat/virt-ls.pod:396
3018 msgid "Display time fields as days before now (negative if in the future)."
3022 #: ../cat/virt-ls.pod:398
3024 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3025 "of the file is between 0 and 86399 seconds."
3029 #: ../cat/virt-ls.pod:404
3030 msgid "B<--time-relative>"
3031 msgstr "B<--time-relative>"
3034 #: ../cat/virt-ls.pod:406
3035 msgid "Display time fields as seconds before now (negative if in the future)."
3039 #: ../cat/virt-ls.pod:411
3041 msgstr "B<--time-t>"
3044 #: ../cat/virt-ls.pod:413
3045 msgid "Display time fields as seconds since the Unix epoch."
3049 #: ../cat/virt-ls.pod:418
3054 #: ../cat/virt-ls.pod:420
3055 msgid "Display UID and GID fields."
3059 #: ../cat/virt-ls.pod:445
3060 msgid "Previous versions of virt-ls allowed you to write either:"
3064 #: ../cat/virt-ls.pod:447
3067 " virt-ls disk.img [disk.img ...] /dir\n"
3072 #: ../cat/virt-ls.pod:451
3075 " virt-ls guestname /dir\n"
3080 #: ../cat/virt-ls.pod:497
3082 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3083 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3084 "L<http://libguestfs.org/>."
3086 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3087 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3088 "L<http://libguestfs.org/>."
3091 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374
3092 #: ../rescue/virt-rescue.pod:302
3093 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3094 msgstr "©Red Hat Inc., 2009–2011"
3097 #: ../clone/virt-sysprep.pod:5
3099 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3103 #: ../clone/virt-sysprep.pod:9
3106 " virt-sysprep [--options] -d domname\n"
3111 #: ../clone/virt-sysprep.pod:11
3114 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3119 #: ../clone/virt-sysprep.pod:15
3121 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3122 "can be made from it. Steps in this process include removing SSH host keys, "
3123 "removing persistent network MAC configuration, and removing user accounts. "
3124 "Each step can be enabled or disabled as required."
3128 #: ../clone/virt-sysprep.pod:21
3130 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3131 "customization by the system administrator."
3135 #: ../clone/virt-sysprep.pod:24
3137 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3138 "be shut down. If you want to preserve the existing contents of the guest, "
3139 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3143 #: ../clone/virt-sysprep.pod:29
3145 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3146 "recommend that you don't. The time you might want to run it as root is when "
3147 "you need root in order to access the disk image, but even in this case it "
3148 "would be better to change the permissions on the disk image to be writable "
3149 "as the non-root user running virt-sysprep."
3153 #: ../clone/virt-sysprep.pod:35
3155 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3156 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3157 "machines in preparation for cloning them. Having said that, virt-sysprep "
3158 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3159 "Windows sysprepping in a future version, and we already have code to do it."
3163 #: ../clone/virt-sysprep.pod:76
3164 msgid "B<--enable=...>"
3168 #: ../clone/virt-sysprep.pod:78
3170 "Choose which sysprep operations to perform. Give a comma-separated list of "
3171 "operations, for example:"
3175 #: ../clone/virt-sysprep.pod:81
3178 " --enable=ssh-hostkeys,udev-persistent-net\n"
3183 #: ../clone/virt-sysprep.pod:83
3185 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3189 #: ../clone/virt-sysprep.pod:85
3191 "If the I<--enable> option is not given, then we default to trying all "
3192 "possible sysprep operations. But some sysprep operations are skipped for "
3197 #: ../clone/virt-sysprep.pod:89
3199 "Use I<--list-operations> to list operations supported by a particular "
3200 "version of virt-sysprep."
3204 #: ../clone/virt-sysprep.pod:92
3206 "See L</OPERATIONS> below for a list and an explanation of each operation."
3210 #: ../clone/virt-sysprep.pod:106
3213 " virt-sysprep --format=raw -a disk.img\n"
3218 #: ../clone/virt-sysprep.pod:110
3221 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3226 #: ../clone/virt-sysprep.pod:119
3227 msgid "B<--hostname> newhostname"
3231 #: ../clone/virt-sysprep.pod:121
3233 "Change the hostname. See the L</hostname> operation below. If not given, "
3234 "defaults to C<localhost.localdomain>."
3238 #: ../clone/virt-sysprep.pod:124
3239 msgid "B<--list-operations>"
3243 #: ../clone/virt-sysprep.pod:126
3244 msgid "List the operations supported by the virt-sysprep program."
3248 #: ../clone/virt-sysprep.pod:128
3249 msgid "B<--selinux-relabel>"
3253 #: ../clone/virt-sysprep.pod:130
3254 msgid "B<--no-selinux-relabel>"
3258 #: ../clone/virt-sysprep.pod:132
3260 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3261 "I<--no-selinux-relabel> disables relabelling."
3265 #: ../clone/virt-sysprep.pod:135
3267 "The default is to try to detect if SELinux relabelling is required. See L</"
3268 "SELINUX RELABELLING> below for more details."
3272 #: ../clone/virt-sysprep.pod:156
3277 #: ../clone/virt-sysprep.pod:158
3279 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3280 "enabled>, although some are skipped depending on the type of guest."
3284 #: ../clone/virt-sysprep.pod:162
3286 "Operations can be individually enabled using the I<--enable> option. Use a "
3287 "comma-separated list, for example:"
3291 #: ../clone/virt-sysprep.pod:165
3294 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3299 #: ../clone/virt-sysprep.pod:167
3301 "To list the operations supported by the current version of virt-sysprep, use "
3302 "I<--list-operations>."
3306 #: ../clone/virt-sysprep.pod:170
3308 "Future versions of virt-sysprep may add more operations. If you are using "
3309 "virt-sysprep and want predictable behaviour, specify only the operations "
3310 "that you want to have enabled."
3314 #: ../clone/virt-sysprep.pod:174
3319 #: ../clone/virt-sysprep.pod:176
3320 msgid "Remove user at-jobs and cron-jobs."
3324 #: ../clone/virt-sysprep.pod:178
3325 msgid "dhcp-client-state"
3329 #: ../clone/virt-sysprep.pod:180
3330 msgid "Remove DHCP client leases."
3334 #: ../clone/virt-sysprep.pod:182
3335 msgid "dhcp-server-state"
3339 #: ../clone/virt-sysprep.pod:184
3340 msgid "Remove DHCP server leases."
3344 #: ../clone/virt-sysprep.pod:186
3349 #: ../clone/virt-sysprep.pod:188
3351 "Changes the hostname of the guest to the value given in the I<--hostname> "
3356 #: ../clone/virt-sysprep.pod:191
3358 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3359 "C<localhost.localdomain>."
3363 #: ../clone/virt-sysprep.pod:194
3368 #: ../clone/virt-sysprep.pod:196
3369 msgid "Remove many log files."
3373 #: ../clone/virt-sysprep.pod:198
3378 #: ../clone/virt-sysprep.pod:200
3379 msgid "Remove email from the local mail spool directory."
3383 #: ../clone/virt-sysprep.pod:202
3388 #: ../clone/virt-sysprep.pod:204
3390 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3391 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3395 #: ../clone/virt-sysprep.pod:207
3400 #: ../clone/virt-sysprep.pod:209
3402 "Write some random bytes from the host into the random seed file of the guest."
3406 #: ../clone/virt-sysprep.pod:212
3407 msgid "See L</RANDOM SEED> below."
3411 #: ../clone/virt-sysprep.pod:214
3412 msgid "rhn-systemid"
3416 #: ../clone/virt-sysprep.pod:216
3417 msgid "Remove the RHN system ID."
3421 #: ../clone/virt-sysprep.pod:218
3426 #: ../clone/virt-sysprep.pod:220
3427 msgid "Remove the Smolt hardware UUID."
3431 #: ../clone/virt-sysprep.pod:222
3432 msgid "ssh-hostkeys"
3436 #: ../clone/virt-sysprep.pod:224
3437 msgid "Remove the SSH host keys in the guest."
3441 #: ../clone/virt-sysprep.pod:226
3443 "The SSH host keys are regenerated (differently) next time the guest is "
3448 #: ../clone/virt-sysprep.pod:229
3450 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3451 "stark warning about the host key changing:"
3455 #: ../clone/virt-sysprep.pod:232
3458 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3459 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3460 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3461 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3466 #: ../clone/virt-sysprep.pod:237
3467 msgid "udev-persistent-net"
3471 #: ../clone/virt-sysprep.pod:239
3473 "Remove udev persistent net rules which map the guest's existing MAC address "
3474 "to a fixed ethernet device (eg. eth0)."
3478 #: ../clone/virt-sysprep.pod:242
3480 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3481 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3482 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3483 "Erasing the udev persistent net rules avoids this."
3487 #: ../clone/virt-sysprep.pod:247
3492 #: ../clone/virt-sysprep.pod:249
3493 msgid "Remove the utmp file."
3497 #: ../clone/virt-sysprep.pod:251
3499 "This records who is currently logged in on a machine. In modern Linux "
3500 "distros it is stored in a ramdisk and hence not part of the virtual "
3501 "machine's disk, but it was stored on disk in older distros."
3505 #: ../clone/virt-sysprep.pod:255
3510 #: ../clone/virt-sysprep.pod:257
3511 msgid "Remove the yum UUID."
3515 #: ../clone/virt-sysprep.pod:259
3517 "Yum creates a fresh UUID the next time it runs when it notices that the "
3518 "original UUID has been erased."
3522 #: ../clone/virt-sysprep.pod:262
3523 msgid "COPYING AND CLONING"
3527 #: ../clone/virt-sysprep.pod:264
3529 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3530 "prepare a template from which guests can be cloned. There are many "
3531 "different ways to achieve this using the virt tools, and this section is "
3532 "just an introduction."
3536 #: ../clone/virt-sysprep.pod:269
3537 msgid "A virtual machine (when switched off) consists of two parts:"
3541 #: ../clone/virt-sysprep.pod:273
3542 msgid "I<configuration>"
3546 #: ../clone/virt-sysprep.pod:275
3548 "The configuration or description of the guest. eg. The libvirt XML (see "
3549 "C<virsh dumpxml>), the running configuration of the guest, or another "
3550 "external format like OVF."
3554 #: ../clone/virt-sysprep.pod:279
3555 msgid "Some configuration items that might need to be changed:"
3559 #: ../clone/virt-sysprep.pod:285
3564 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3569 #: ../clone/virt-sysprep.pod:293
3570 msgid "path to block device(s)"
3574 #: ../clone/virt-sysprep.pod:297
3575 msgid "network card MAC address"
3579 #: ../clone/virt-sysprep.pod:301
3580 msgid "I<block device(s)>"
3584 #: ../clone/virt-sysprep.pod:303
3586 "One or more hard disk images, themselves containing files, directories, "
3587 "applications, kernels, configuration, etc."
3591 #: ../clone/virt-sysprep.pod:306
3592 msgid "Some things inside the block devices that might need to be changed:"
3596 #: ../clone/virt-sysprep.pod:312
3597 msgid "hostname and other net configuration"
3601 #: ../clone/virt-sysprep.pod:320
3602 msgid "SSH host keys"
3606 #: ../clone/virt-sysprep.pod:324
3607 msgid "Windows unique security ID (SID)"
3611 #: ../clone/virt-sysprep.pod:328
3612 msgid "Puppet registration"
3616 #: ../clone/virt-sysprep.pod:334
3617 msgid "COPYING THE BLOCK DEVICE"
3621 #: ../clone/virt-sysprep.pod:336
3623 "Starting with an original guest, you probably wish to copy the guest block "
3624 "device and its configuration to make a template. Then once you are happy "
3625 "with the template, you will want to make many clones from it."
3629 #: ../clone/virt-sysprep.pod:341
3635 " original guest --------> template ---------->\n"
3636 " \\------> cloned\n"
3637 " \\-----> guests\n"
3643 #: ../clone/virt-sysprep.pod:349
3645 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3650 #: ../clone/virt-sysprep.pod:352
3654 " original guest --------> template ---------->\n"
3655 " \\------> cloned\n"
3656 " \\-----> guests\n"
3662 #: ../clone/virt-sysprep.pod:358
3663 msgid "There are some smarter (and faster) ways too:"
3667 #: ../clone/virt-sysprep.pod:364
3671 " template ---------->\n"
3672 " \\------> cloned\n"
3673 " \\-----> guests\n"
3679 #: ../clone/virt-sysprep.pod:370
3681 "Use the block device as a backing file and create a snapshot on top for each "
3682 "guest. The advantage is that you don't need to copy the block device (very "
3683 "fast) and only changes are stored (less storage required)."
3687 #: ../clone/virt-sysprep.pod:375
3689 "Note that writing to the backing file once you have created guests on top of "
3690 "it is not possible: you will corrupt the guests."
3694 #: ../clone/virt-sysprep.pod:378
3696 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3697 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3698 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3699 "also create cheap snapshots from files or LUNs."
3703 #: ../clone/virt-sysprep.pod:386
3704 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3708 #: ../clone/virt-sysprep.pod:390
3709 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3713 #: ../clone/virt-sysprep.pod:394
3718 #: ../clone/virt-sysprep.pod:396
3720 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3721 "and/or modify the external libvirt configuration of a guest. It will reset "
3722 "the name, UUID and MAC address of the guest in the libvirt XML."
3726 #: ../clone/virt-sysprep.pod:401
3728 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3729 "image. This was the original motivation to write virt-sysprep."
3733 #: ../clone/virt-sysprep.pod:404
3738 #: ../clone/virt-sysprep.pod:406
3742 " original guest --------> template\n"
3747 #: ../clone/virt-sysprep.pod:409
3749 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3750 "it easier to compress and/or faster to copy."
3754 #: ../clone/virt-sysprep.pod:412
3756 "Notice that since virt-sparsify also copies the image, you can use it to "
3757 "make the initial copy (instead of C<dd>)."
3761 #: ../clone/virt-sysprep.pod:415
3766 #: ../clone/virt-sysprep.pod:417
3770 " template ---------->\n"
3771 " \\------> cloned\n"
3772 " \\-----> guests\n"
3778 #: ../clone/virt-sysprep.pod:423
3780 "If you want to give people cloned guests, but let them pick the size of the "
3781 "guest themselves (eg. depending on how much they are prepared to pay for "
3782 "disk space), then instead of copying the template, you can run L<virt-resize"
3783 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3784 "guests from a template."
3788 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3793 #: ../clone/virt-sysprep.pod:431
3795 "Although virt-sysprep removes some sensitive information from the guest, it "
3796 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3797 "above, and the implementation of the operations in the shell script. You "
3798 "should also examine the guest afterwards."
3802 #: ../clone/virt-sysprep.pod:436
3804 "Sensitive files are simply removed. The data they contained may still exist "
3805 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3806 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3807 "(1)> command to get rid of deleted content in directory entries and inodes."
3811 #: ../clone/virt-sysprep.pod:442
3816 #: ../clone/virt-sysprep.pod:444
3817 msgid "I<(This section applies to Linux guests only)>"
3821 #: ../clone/virt-sysprep.pod:446
3823 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3824 "from the host into the guest's random seed file."
3828 #: ../clone/virt-sysprep.pod:449
3830 "If this is just done once and the guest is cloned from the same template, "
3831 "then each guest will start with the same entropy, and things like SSH host "
3832 "keys and TCP sequence numbers may be predictable."
3836 #: ../clone/virt-sysprep.pod:453
3838 "Therefore you should arrange to add more randomness I<after> cloning from a "
3839 "template too, which can be done by just enabling the C<random-seed> "
3844 #: ../clone/virt-sysprep.pod:457
3847 " cp template.img newguest.img\n"
3848 " virt-sysprep --enable=random-seed -a newguest.img\n"
3853 #: ../clone/virt-sysprep.pod:460
3854 msgid "SELINUX RELABELLING"
3858 #: ../clone/virt-sysprep.pod:462
3859 msgid "I<(This section applies to Linux guests using SELinux only)>"
3863 #: ../clone/virt-sysprep.pod:464
3865 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3866 "autorelabel> so that these will be correctly labelled by SELinux the next "
3867 "time the guest is booted. This process interrupts boot and can take some "
3872 #: ../clone/virt-sysprep.pod:469
3874 "You can force relabelling for all guests by supplying the I<--selinux-"
3879 #: ../clone/virt-sysprep.pod:472
3881 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3886 #: ../clone/virt-sysprep.pod:484
3887 msgid "This program returns 0 on success, or 1 if there was an error."
3891 #: ../clone/virt-sysprep.pod:488
3893 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3894 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3895 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3899 #: ../df/virt-df.pod:5
3900 msgid "virt-df - Display free space on virtual filesystems"
3904 #: ../df/virt-df.pod:9
3907 " virt-df [--options]\n"
3910 " virt-df [--параметри]\n"
3914 #: ../df/virt-df.pod:11
3917 " virt-df [--options] -d domname\n"
3922 #: ../df/virt-df.pod:13
3925 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3930 #: ../df/virt-df.pod:17
3933 " virt-df [--options] domname\n"
3938 #: ../df/virt-df.pod:19
3941 " virt-df [--options] disk.img [disk.img ...]\n"
3946 #: ../df/virt-df.pod:23
3948 "C<virt-df> is a command line tool to display free space on virtual machine "
3949 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3950 "allocated to a virtual machine, but can look inside disk images to see how "
3951 "much space is really being used."
3955 #: ../df/virt-df.pod:28
3957 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3958 "to get a list of all active and inactive guests, and performs a C<df>-type "
3959 "operation on each one in turn, printing out the results."
3963 #: ../df/virt-df.pod:32
3965 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3966 "type operation on either the single named libvirt domain, or on the disk "
3967 "image(s) listed on the command line (which must all belong to a single VM). "
3968 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3969 "guest>. If you want to run on multiple guests, then you have to invoke "
3970 "C<virt-df> multiple times."
3974 #: ../df/virt-df.pod:39
3976 "Use the I<--csv> option to get a format which can be easily parsed by other "
3977 "programs. Other options are similar to the standard L<df(1)> command."
3981 #: ../df/virt-df.pod:45
3983 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3984 "output human-readable:"
3988 #: ../df/virt-df.pod:48
3991 " # virt-df -d F14x64 -h\n"
3992 " Filesystem Size Used Available Use%\n"
3993 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3994 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3999 #: ../df/virt-df.pod:53
4000 msgid "Show disk usage for a disk image file called C<test.img>:"
4004 #: ../df/virt-df.pod:55
4007 " $ virt-df -a test1.img\n"
4008 " Filesystem 1K-blocks Used Available Use%\n"
4009 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
4014 #: ../df/virt-df.pod:112
4017 " virt-df --format=raw -a disk.img\n"
4022 #: ../df/virt-df.pod:116
4025 " virt-df --format=raw -a disk.img --format -a another.img\n"
4030 #: ../df/virt-df.pod:129
4031 msgid "Print sizes in human-readable format."
4035 #: ../df/virt-df.pod:131
4036 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4040 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4045 #: ../df/virt-df.pod:135
4047 msgstr "B<--inodes>"
4050 #: ../df/virt-df.pod:137
4051 msgid "Print inodes instead of blocks."
4055 #: ../df/virt-df.pod:139
4056 msgid "B<--one-per-guest>"
4057 msgstr "B<--one-per-guest>"
4060 #: ../df/virt-df.pod:141
4062 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4063 "disks from several guests to a single libguestfs appliance."
4067 #: ../df/virt-df.pod:144
4068 msgid "You might use this option in the following circumstances:"
4072 #: ../df/virt-df.pod:150
4074 "If you think an untrusted guest might actively try to exploit the libguestfs "
4075 "appliance kernel, then this prevents one guest from interfering with the "
4076 "stats printed for another guest."
4080 #: ../df/virt-df.pod:156
4082 "If the kernel has a bug which stops it from accessing a filesystem in one "
4083 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4084 "and report stats for further guests."
4088 #: ../df/virt-df.pod:165
4090 "Print UUIDs instead of names. This is useful for following a guest even "
4091 "when the guest is migrated or renamed, or when two guests happen to have the "
4096 #: ../df/virt-df.pod:169
4098 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4099 "images, we still print the disk image name even when this option is "
4104 #: ../df/virt-df.pod:191
4107 msgid "STATVFS NUMBERS"
4111 #: ../df/virt-df.pod:193
4113 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
4114 "call. You can get the same information directly, either from the host "
4115 "(using libguestfs) or inside the guest:"
4119 #: ../df/virt-df.pod:199
4120 msgid "From the host"
4124 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
4127 #| " sh-lines command\n"
4129 msgid "Run this command:"
4131 " sh-lines команда\n"
4135 #: ../df/virt-df.pod:203
4138 #| " guestfish --ro -d myguest -i\n"
4141 " guestfish --ro -d GuestName -i statvfs /\n"
4144 " guestfish --ro -d myguest -i\n"
4148 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
4149 msgid "(change C</> to see stats for other filesystems)."
4153 #: ../df/virt-df.pod:207
4154 msgid "From inside the guest"
4158 #: ../df/virt-df.pod:211
4161 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
4166 #: ../df/virt-df.pod:255
4168 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4173 #: ../edit/virt-edit.pod:5
4174 msgid "virt-edit - Edit a file in a virtual machine"
4178 #: ../edit/virt-edit.pod:9
4181 " virt-edit [--options] -d domname file [file ...]\n"
4186 #: ../edit/virt-edit.pod:11
4189 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4194 #: ../edit/virt-edit.pod:13
4197 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4202 #: ../edit/virt-edit.pod:17
4205 " virt-edit domname file\n"
4210 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4213 " virt-edit disk.img [disk.img ...] file\n"
4218 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4219 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4220 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4221 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4223 msgstr "ПОПЕРЕДЖЕННЯ"
4226 #: ../edit/virt-edit.pod:23
4228 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4229 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4230 "doing this, but doesn't catch all cases."
4234 #: ../edit/virt-edit.pod:29
4236 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4237 "exists in the named virtual machine (or disk image)."
4241 #: ../edit/virt-edit.pod:32
4243 "Multiple filenames can be given, in which case they are each edited in "
4244 "turn. Each filename must be a full path, starting at the root directory "
4245 "(starting with '/')."
4249 #: ../edit/virt-edit.pod:36
4250 msgid "If you want to just view a file, use L<virt-cat(1)>."
4254 #: ../edit/virt-edit.pod:38
4256 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4257 "USING GUESTFISH> below)."
4261 #: ../edit/virt-edit.pod:41
4263 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4264 "that and much more."
4268 #: ../edit/virt-edit.pod:46
4269 msgid "Edit the named files interactively:"
4273 #: ../edit/virt-edit.pod:48
4276 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4281 #: ../edit/virt-edit.pod:50
4284 " virt-edit -d mydomain /etc/passwd\n"
4289 #: ../edit/virt-edit.pod:52
4290 msgid "For Windows guests, some Windows paths are understood:"
4294 #: ../edit/virt-edit.pod:54
4297 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4302 #: ../edit/virt-edit.pod:56
4304 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4305 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4309 #: ../edit/virt-edit.pod:60
4312 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4317 #: ../edit/virt-edit.pod:81
4318 msgid "B<-b> extension"
4322 #: ../edit/virt-edit.pod:83
4323 msgid "B<--backup> extension"
4327 #: ../edit/virt-edit.pod:85
4329 "Create a backup of the original file I<in the guest disk image>. The backup "
4330 "has the original filename with C<extension> added."
4334 #: ../edit/virt-edit.pod:88
4336 "Usually the first character of C<extension> would be a dot C<.> so you would "
4341 #: ../edit/virt-edit.pod:91
4344 " virt-edit -b .orig [etc]\n"
4349 #: ../edit/virt-edit.pod:93
4350 msgid "By default, no backup file is made."
4354 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4355 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4356 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4357 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4359 msgstr "B<-c адреса>"
4362 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4363 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4364 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4365 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4366 msgid "B<--connect URI>"
4367 msgstr "B<--connect адреса>"
4370 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4371 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4372 #: ../tools/virt-win-reg.pl:135
4374 "If you specify guest block devices directly, then libvirt is not used at all."
4378 #: ../edit/virt-edit.pod:114
4380 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4381 "off so you cannot see what you are typing. If you are not worried about "
4382 "Tempest attacks and there is no one else in the room you can specify this "
4383 "flag to see what you are typing."
4387 #: ../edit/virt-edit.pod:119
4389 msgstr "B<-e> вираз"
4392 #: ../edit/virt-edit.pod:121
4393 msgid "B<--expr> EXPR"
4394 msgstr "B<--expr> вираз"
4397 #: ../edit/virt-edit.pod:123
4399 "Instead of launching the external editor, non-interactively apply the Perl "
4400 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4405 #: ../edit/virt-edit.pod:127
4407 "Be careful to properly quote the expression to prevent it from being altered "
4412 #: ../edit/virt-edit.pod:130
4413 msgid "Note that this option is only available when Perl 5 is installed."
4417 #: ../edit/virt-edit.pod:132
4418 msgid "B<--format> raw|qcow2|..."
4419 msgstr "B<--format> raw|qcow2|..."
4422 #: ../edit/virt-edit.pod:143
4425 " virt-edit --format=raw -a disk.img file\n"
4430 #: ../edit/virt-edit.pod:147
4433 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4438 #: ../edit/virt-edit.pod:181
4439 msgid "Previous versions of virt-edit allowed you to write either:"
4443 #: ../edit/virt-edit.pod:187
4446 " virt-edit guestname file\n"
4451 #: ../edit/virt-edit.pod:195
4452 msgid "NON-INTERACTIVE EDITING"
4453 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4456 #: ../edit/virt-edit.pod:197
4458 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4459 "administrator can interactively edit the file."
4463 #: ../edit/virt-edit.pod:200
4465 "There are two ways also to use C<virt-edit> from scripts in order to make "
4466 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4467 "like this, it's less error-prone to write scripts directly using the "
4468 "libguestfs API and Augeas for configuration file editing.)"
4472 #: ../edit/virt-edit.pod:206
4474 "The first method is to temporarily set C<$EDITOR> to any script or program "
4475 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4476 "update C<tmpfile> in place however it likes."
4480 #: ../edit/virt-edit.pod:210
4482 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4483 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4484 "instances of C<foo> with C<bar> in a file:"
4488 #: ../edit/virt-edit.pod:214
4491 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4496 #: ../edit/virt-edit.pod:216
4498 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4499 "For example to delete root's password you could do:"
4503 #: ../edit/virt-edit.pod:219
4506 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4509 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4513 #: ../edit/virt-edit.pod:221
4515 "What really happens is that the snippet is evaluated as a Perl expression "
4516 "for each line of the file. The line, including the final C<\\n>, is passed "
4517 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4521 #: ../edit/virt-edit.pod:226
4523 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4524 "C<apache> user account from the password file you can do:"
4528 #: ../edit/virt-edit.pod:229
4531 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4534 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4538 #: ../edit/virt-edit.pod:231
4540 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4541 "the end of the file is rather difficult this way since there is no concept "
4542 "of \"last line of the file\" - your expression just doesn't get called "
4543 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4548 #: ../edit/virt-edit.pod:237
4550 "The variable C<$lineno> contains the current line number. As is "
4551 "traditional, the first line in the file is number C<1>."
4555 #: ../edit/virt-edit.pod:240
4557 "The return value from the expression is ignored, but the expression may call "
4558 "C<die> in order to abort the whole program, leaving the original file "
4563 #: ../edit/virt-edit.pod:244
4565 "Remember when matching the end of a line that C<$_> may contain the final C<"
4566 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4567 "newline then neither of these. Thus to match or substitute some text at the "
4568 "end of a line, use this regular expression:"
4572 #: ../edit/virt-edit.pod:249
4575 " /some text(\\r?\\n)?$/\n"
4578 " /якийсь текст(\\r?\\n)?$/\n"
4582 #: ../edit/virt-edit.pod:251
4584 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4585 "$_> itself (since that would remove all newlines from the file):"
4589 #: ../edit/virt-edit.pod:255
4592 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4595 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4599 #: ../edit/virt-edit.pod:259
4601 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4602 "paths (eg. C<E:\\foo\\bar.txt>)."
4606 #: ../edit/virt-edit.pod:278
4608 "The path is resolved case insensitively to locate the file that should be "
4613 #: ../edit/virt-edit.pod:299
4615 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4616 "C<virt-edit> doesn't work."
4620 #: ../edit/virt-edit.pod:302
4621 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4625 #: ../edit/virt-edit.pod:304
4628 " guestfish --rw -i -d domname edit /file\n"
4633 #: ../edit/virt-edit.pod:306
4635 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4640 #: ../edit/virt-edit.pod:309
4642 "The command above uses libguestfs's guest inspection feature and so does not "
4643 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4644 "disk images that don't contain guests. To edit a file on a disk image "
4649 #: ../edit/virt-edit.pod:314
4652 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4657 #: ../edit/virt-edit.pod:316
4659 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4660 "the disk image to edit, and C</file> is the full path to the file."
4664 #: ../edit/virt-edit.pod:320
4666 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4667 "C<write> or C<upload> instead:"
4671 #: ../edit/virt-edit.pod:323
4674 " guestfish --rw -i -d domname touch /newfile\n"
4679 #: ../edit/virt-edit.pod:325
4682 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4687 #: ../edit/virt-edit.pod:327
4690 " guestfish --rw -i -d domname upload localfile /newfile\n"
4695 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4696 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:231
4697 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4698 msgid "ENVIRONMENT VARIABLES"
4699 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4702 #: ../edit/virt-edit.pod:333
4707 #: ../edit/virt-edit.pod:335
4709 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4714 #: ../edit/virt-edit.pod:338
4715 msgid "If not set, C<vi> is used."
4719 #: ../edit/virt-edit.pod:356
4721 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4722 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4723 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4725 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4726 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4727 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4730 #: ../erlang/examples/guestfs-erlang.pod:5
4731 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4735 #: ../erlang/examples/guestfs-erlang.pod:9
4738 " {ok, G} = guestfs:create(),\n"
4739 " ok = guestfs:add_drive_opts(G, Disk,\n"
4740 " [{format, \"raw\"}, {readonly, true}]),\n"
4741 " ok = guestfs:launch(G),\n"
4742 " [Device] = guestfs:list_devices(G),\n"
4743 " ok = guestfs:close(G).\n"
4748 #: ../erlang/examples/guestfs-erlang.pod:18
4750 "This manual page documents how to call libguestfs from the Erlang "
4751 "programming language. This page just documents the differences from the C "
4752 "API and gives some examples. If you are not familiar with using libguestfs, "
4753 "you also need to read L<guestfs(3)>."
4757 #: ../erlang/examples/guestfs-erlang.pod:23
4758 msgid "OPENING AND CLOSING THE HANDLE"
4762 #: ../erlang/examples/guestfs-erlang.pod:25
4764 "The Erlang bindings are implemented using an external program called C<erl-"
4765 "guestfs>. This program must be on the current PATH, or else you should "
4766 "specify the full path to the program:"
4770 #: ../erlang/examples/guestfs-erlang.pod:29
4773 " {ok, G} = guestfs:create().\n"
4778 #: ../erlang/examples/guestfs-erlang.pod:31
4781 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4786 #: ../erlang/examples/guestfs-erlang.pod:33
4787 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4791 #: ../erlang/examples/guestfs-erlang.pod:36
4792 msgid "To close the handle:"
4796 #: ../erlang/examples/guestfs-erlang.pod:38
4799 " ok = guestfs:close(G).\n"
4804 #: ../erlang/examples/guestfs-erlang.pod:40
4805 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4809 #: ../erlang/examples/guestfs-erlang.pod:42
4811 "For functions that take optional arguments, the first arguments are the non-"
4812 "optional ones. The last argument is a list of tuples supplying the "
4813 "remaining optional arguments."
4817 #: ../erlang/examples/guestfs-erlang.pod:46
4820 " ok = guestfs:add_drive_opts(G, Disk,\n"
4821 " [{format, \"raw\"}, {readonly, true}]).\n"
4826 #: ../erlang/examples/guestfs-erlang.pod:49
4827 msgid "If the last argument would be an empty list, you can also omit it:"
4831 #: ../erlang/examples/guestfs-erlang.pod:51
4834 " ok = guestfs:add_drive_opts(G, Disk).\n"
4839 #: ../erlang/examples/guestfs-erlang.pod:53
4840 msgid "RETURN VALUES AND ERRORS"
4844 #: ../erlang/examples/guestfs-erlang.pod:55
4846 "On success, most functions return a C<Result> term (which could be a list, "
4847 "string, tuple etc.). If there is nothing for the function to return, then "
4848 "the atom C<ok> is returned."
4852 #: ../erlang/examples/guestfs-erlang.pod:59
4853 msgid "On error, you would see one of the following tuples:"
4857 #: ../erlang/examples/guestfs-erlang.pod:63
4858 msgid "C<{error, Msg, Errno}>"
4862 #: ../erlang/examples/guestfs-erlang.pod:65
4863 msgid "This indicates an ordinary error from the function."
4867 #: ../erlang/examples/guestfs-erlang.pod:67
4869 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4874 #: ../erlang/examples/guestfs-erlang.pod:70
4875 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4879 #: ../erlang/examples/guestfs-erlang.pod:72
4880 msgid "C<{unknown, Function}>"
4884 #: ../erlang/examples/guestfs-erlang.pod:74
4886 "This indicates that the function you called is not known. Generally this "
4887 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4888 "which you should not do."
4892 #: ../erlang/examples/guestfs-erlang.pod:78
4893 msgid "C<Function> is the name of the unknown function."
4897 #: ../erlang/examples/guestfs-erlang.pod:80
4898 msgid "C<{unknownarg, Arg}>"
4902 #: ../erlang/examples/guestfs-erlang.pod:82
4904 "This indicates that you called a function with optional arguments, with an "
4905 "unknown argument name."
4909 #: ../erlang/examples/guestfs-erlang.pod:85
4910 msgid "C<Arg> is the name of the unknown argument."
4914 #: ../erlang/examples/guestfs-erlang.pod:89
4915 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4916 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4917 #: ../python/examples/guestfs-python.pod:34
4918 #: ../ruby/examples/guestfs-ruby.pod:28
4919 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4920 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4923 #: ../erlang/examples/guestfs-erlang.pod:91
4924 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4925 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4926 #: ../python/examples/guestfs-python.pod:36
4927 #: ../ruby/examples/guestfs-ruby.pod:30
4932 #: ../erlang/examples/guestfs-erlang.pod:93
4933 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4934 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4935 #: ../python/examples/guestfs-python.pod:38
4936 #: ../ruby/examples/guestfs-ruby.pod:32
4937 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4938 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4941 #: ../erlang/examples/guestfs-erlang.pod:95
4942 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4943 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4944 #: ../python/examples/guestfs-python.pod:40
4945 #: ../ruby/examples/guestfs-ruby.pod:34
4950 #: ../erlang/examples/guestfs-erlang.pod:99
4952 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4953 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4954 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4958 #: ../erlang/examples/guestfs-erlang.pod:110
4959 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4960 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4961 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4962 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4963 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4964 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4965 #: ../perl/examples/guestfs-perl.pod:52
4966 #: ../python/examples/guestfs-python.pod:54
4967 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3349
4968 #: ../test-tool/libguestfs-test-tool.pod:106
4973 #: ../erlang/examples/guestfs-erlang.pod:112
4974 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4975 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4976 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4977 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4978 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4979 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4980 #: ../python/examples/guestfs-python.pod:56
4981 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3351
4982 #: ../test-tool/libguestfs-test-tool.pod:108
4983 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4984 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4987 #: ../erlang/examples/guestfs-erlang.pod:116
4988 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4989 #: ../perl/examples/guestfs-perl.pod:58
4990 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4994 #: ../erlang/examples/guestfs-erlang.pod:118
4995 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4996 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4997 #: ../perl/examples/guestfs-perl.pod:60
4998 #: ../python/examples/guestfs-python.pod:62
4999 #: ../ruby/examples/guestfs-ruby.pod:56
5001 "The examples in this manual page may be freely copied, modified and "
5002 "distributed without any restrictions."
5006 #: ../erlang/examples/guestfs-erlang.pod:121
5007 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5008 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
5009 #: ../ocaml/examples/guestfs-ocaml.pod:102
5010 #: ../perl/examples/guestfs-perl.pod:63
5011 #: ../python/examples/guestfs-python.pod:65
5012 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3358
5014 "This library is free software; you can redistribute it and/or modify it "
5015 "under the terms of the GNU Lesser General Public License as published by the "
5016 "Free Software Foundation; either version 2 of the License, or (at your "
5017 "option) any later version."
5021 #: ../erlang/examples/guestfs-erlang.pod:126
5022 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5023 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
5024 #: ../ocaml/examples/guestfs-ocaml.pod:107
5025 #: ../perl/examples/guestfs-perl.pod:68
5026 #: ../python/examples/guestfs-python.pod:70
5027 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3363
5029 "This library is distributed in the hope that it will be useful, but WITHOUT "
5030 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5031 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
5036 #: ../erlang/examples/guestfs-erlang.pod:131
5037 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5038 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
5039 #: ../ocaml/examples/guestfs-ocaml.pod:112
5040 #: ../perl/examples/guestfs-perl.pod:73
5041 #: ../python/examples/guestfs-python.pod:75
5042 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3368
5044 "You should have received a copy of the GNU Lesser General Public License "
5045 "along with this library; if not, write to the Free Software Foundation, "
5046 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5050 #: ../examples/guestfs-examples.pod:5
5051 msgid "guestfs-examples - Examples of using libguestfs from C"
5055 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5058 " #include <guestfs.h>\n"
5061 " #include <guestfs.h>\n"
5065 #: ../examples/guestfs-examples.pod:11
5068 " guestfs_h *g = guestfs_create ();\n"
5069 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5070 " guestfs_launch (g);\n"
5073 " guestfs_h *g = guestfs_create ();\n"
5074 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5075 " guestfs_launch (g);\n"
5079 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5082 " cc prog.c -o prog -lguestfs\n"
5084 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5087 " cc prog.c -o prog -lguestfs\n"
5089 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5093 #: ../examples/guestfs-examples.pod:21
5095 "This manual page contains examples of calling libguestfs from the C "
5096 "programming language. If you are not familiar with using libguestfs, you "
5097 "also need to read L<guestfs(3)>."
5101 #: ../examples/guestfs-examples.pod:35
5103 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5104 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5105 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5109 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5110 #: ../python/examples/guestfs-python.pod:60
5111 #: ../ruby/examples/guestfs-ruby.pod:54
5112 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5116 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5121 #: ../examples/guestfs-recipes.pod:5
5123 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5124 "here. The only way which works for both sorts of output is to just write "
5125 "the URL directly. Do NOT use L<...> for URLs."
5129 #: ../examples/guestfs-recipes.pod:9
5131 "We break with tradition here and don't use ALL CAPS for the section "
5132 "headings, as this makes them much easier to read."
5136 #: ../examples/guestfs-recipes.pod:16
5137 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5141 #: ../examples/guestfs-recipes.pod:20
5143 "This page contains recipes for and links to things you can do using "
5144 "libguestfs, L<guestfish(1)> and the virt tools."
5148 #: ../examples/guestfs-recipes.pod:23
5149 msgid "Audit a virtual machine for setuid files"
5153 #: ../examples/guestfs-recipes.pod:25
5155 "The link below contains a small program which can be used to audit a Linux "
5156 "virtual machine to see what setuid and setgid files it contains."
5160 #: ../examples/guestfs-recipes.pod:28
5162 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5167 #: ../examples/guestfs-recipes.pod:30
5168 msgid "Change the background image in a Windows XP VM"
5172 #: ../examples/guestfs-recipes.pod:32
5174 "The links below explain how to use L<guestfish(1)> to change the background "
5175 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5176 "be substantially different for each version of Windows."
5180 #: ../examples/guestfs-recipes.pod:37
5182 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5183 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5187 #: ../examples/guestfs-recipes.pod:40
5188 msgid "Cloning a virtual machine (Linux)"
5192 #: ../examples/guestfs-recipes.pod:42
5194 "The guestfish technique described in the link below works well for most "
5195 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5200 #: ../examples/guestfs-recipes.pod:46
5202 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5207 #: ../examples/guestfs-recipes.pod:48
5209 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5214 #: ../examples/guestfs-recipes.pod:51
5215 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5219 #: ../examples/guestfs-recipes.pod:53
5220 msgid "Cloning a virtual machine (Windows)"
5224 #: ../examples/guestfs-recipes.pod:55
5226 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5227 "straightforward. Currently there is code in the Aeolus Oz project which "
5228 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5229 "we may add sysprepping ability."
5233 #: ../examples/guestfs-recipes.pod:60
5235 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5236 "list/2011-May/msg00019.html"
5240 #: ../examples/guestfs-recipes.pod:63
5241 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5245 #: ../examples/guestfs-recipes.pod:65
5246 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5250 #: ../examples/guestfs-recipes.pod:67
5253 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5258 #: ../examples/guestfs-recipes.pod:69
5259 msgid "To export just a subdirectory, eg. C</files>, do:"
5263 #: ../examples/guestfs-recipes.pod:71
5266 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5271 #: ../examples/guestfs-recipes.pod:73
5272 msgid "Create empty disk images"
5276 #: ../examples/guestfs-recipes.pod:75
5278 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5279 "The useful guide below explains the options available."
5283 #: ../examples/guestfs-recipes.pod:78
5285 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5290 #: ../examples/guestfs-recipes.pod:80
5291 msgid "Dump raw filesystem content from inside a disk image or VM"
5295 #: ../examples/guestfs-recipes.pod:82
5297 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5298 "filesystem content from any filesystem in a disk image or a VM (even one "
5299 "which is encrypted or buried inside an LV):"
5303 #: ../examples/guestfs-recipes.pod:86
5306 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5311 #: ../examples/guestfs-recipes.pod:88
5314 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5319 #: ../examples/guestfs-recipes.pod:90
5320 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5324 #: ../examples/guestfs-recipes.pod:92
5325 msgid "Edit grub configuration in a VM"
5329 #: ../examples/guestfs-recipes.pod:94
5330 msgid "You can use this to:"
5334 #: ../examples/guestfs-recipes.pod:100
5335 msgid "Fix a virtual machine that does not boot."
5339 #: ../examples/guestfs-recipes.pod:104
5340 msgid "Change which kernel is used to boot the VM."
5344 #: ../examples/guestfs-recipes.pod:108
5345 msgid "Change kernel command line options."
5349 #: ../examples/guestfs-recipes.pod:112
5350 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5354 #: ../examples/guestfs-recipes.pod:114
5357 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5362 #: ../examples/guestfs-recipes.pod:116
5364 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5369 #: ../examples/guestfs-recipes.pod:119
5372 " virt-rescue -d BrokenGuest\n"
5377 #: ../examples/guestfs-recipes.pod:121
5378 msgid "Export any directory from a VM"
5382 #: ../examples/guestfs-recipes.pod:123
5384 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5388 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5391 " virt-copy-out -d Guest /home .\n"
5396 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5397 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5398 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5399 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5400 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5401 #: ../tools/virt-win-reg.pl:717
5406 #: ../examples/guestfs-recipes.pod:134
5408 "The final dot of the command is not a printing error. It means we want to "
5409 "copy out to the current directory."
5413 #: ../examples/guestfs-recipes.pod:139
5414 msgid "This creates a directory called C<home> under the current directory."
5418 #: ../examples/guestfs-recipes.pod:143
5420 "If the guest is a Windows guest then you can use drive letters and "
5421 "backslashes, but you must prefix the path with C<win:> and quote it to "
5422 "protect it from the shell, like this:"
5426 #: ../examples/guestfs-recipes.pod:147
5429 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5434 #: ../examples/guestfs-recipes.pod:149
5435 msgid "To get the output as a compressed tarball, do:"
5439 #: ../examples/guestfs-recipes.pod:151
5442 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5447 #: ../examples/guestfs-recipes.pod:153
5449 "Although it sounds tempting, this is usually not a reliable way to get a "
5450 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5451 "org/FAQ.html#backup"
5455 #: ../examples/guestfs-recipes.pod:157
5456 msgid "Find out which user is using the most space"
5460 #: ../examples/guestfs-recipes.pod:159
5462 "This simple script examines a Linux guest to find out which user is using "
5463 "the most space in their home directory:"
5467 #: ../examples/guestfs-recipes.pod:162
5475 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5483 #: ../examples/guestfs-recipes.pod:166
5492 #: ../examples/guestfs-recipes.pod:169
5495 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5500 #: ../examples/guestfs-recipes.pod:171
5503 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5504 " echo -n \"$dir/$d\"\n"
5506 " guestfish --remote du \"$dir/$d\";\n"
5507 " done | sort -nr -k 2\n"
5512 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5515 " guestfish --remote exit\n"
5520 #: ../examples/guestfs-recipes.pod:179
5521 msgid "Get DHCP address from a VM"
5525 #: ../examples/guestfs-recipes.pod:181
5527 "The link below explains the many different possible techniques for getting "
5528 "the last assigned DHCP address of a virtual machine."
5532 #: ../examples/guestfs-recipes.pod:184
5534 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5535 "a-virtual-machine-disk-image/#content"
5539 #: ../examples/guestfs-recipes.pod:186
5541 "In the libguestfs source examples directory you will find the latest version "
5542 "of the C<virt-dhcp-address.c> program."
5546 #: ../examples/guestfs-recipes.pod:189
5547 msgid "Get the operating system product name string"
5551 #: ../examples/guestfs-recipes.pod:191
5552 msgid "Save the following script into a file called C<product-name.sh>:"
5556 #: ../examples/guestfs-recipes.pod:193
5561 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5562 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5563 " guestfish --remote inspect-get-product-name \"$root\"\n"
5564 " guestfish --remote exit\n"
5569 #: ../examples/guestfs-recipes.pod:200
5570 msgid "Make the script executable and run it on a named guest:"
5574 #: ../examples/guestfs-recipes.pod:202
5577 " # product-name.sh RHEL60x64\n"
5578 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5583 #: ../examples/guestfs-recipes.pod:205
5585 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5586 "C<xpath> command line tool or from your favourite programming language:"
5590 #: ../examples/guestfs-recipes.pod:209
5593 " # virt-inspector RHEL60x64 > xml\n"
5594 " # xpath '//product_name' < xml\n"
5597 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5602 #: ../examples/guestfs-recipes.pod:215
5603 msgid "Get the default boot kernel for a Linux VM"
5607 #: ../examples/guestfs-recipes.pod:217
5609 "The link below contains a program to print the default boot kernel for a "
5614 #: ../examples/guestfs-recipes.pod:220
5616 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5617 "kernel-for-a-vm/#content"
5621 #: ../examples/guestfs-recipes.pod:222
5623 "It uses Augeas, and the technique is generally applicable for many different "
5628 #: ../examples/guestfs-recipes.pod:229
5629 msgid "listing the user accounts in the guest"
5633 #: ../examples/guestfs-recipes.pod:233
5634 msgid "what repositories is it configured to use"
5638 #: ../examples/guestfs-recipes.pod:237
5639 msgid "what NTP servers does it connect to"
5643 #: ../examples/guestfs-recipes.pod:241
5644 msgid "what were the boot messages last time it booted"
5648 #: ../examples/guestfs-recipes.pod:245
5649 msgid "listing who was logged in recently"
5653 #: ../examples/guestfs-recipes.pod:249
5654 msgid "http://augeas.net/"
5658 #: ../examples/guestfs-recipes.pod:251
5659 msgid "Install RPMs in a guest"
5663 #: ../examples/guestfs-recipes.pod:253
5665 "The link below contains a method to install RPMs in a guest. In fact the "
5666 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5667 "installs them next time the guest is booted. You could use this technique "
5668 "to install vital security updates in an offline guest."
5672 #: ../examples/guestfs-recipes.pod:259
5674 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5678 #: ../examples/guestfs-recipes.pod:261
5679 msgid "List applications installed in a VM"
5683 #: ../examples/guestfs-recipes.pod:263
5684 msgid "Save the following to a file C<list-apps.sh>:"
5688 #: ../examples/guestfs-recipes.pod:265
5693 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5694 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5695 " guestfish --remote inspect-list-applications \"$root\"\n"
5696 " guestfish --remote exit\n"
5701 #: ../examples/guestfs-recipes.pod:272
5703 "Make the file executable and then you can run it on any named virtual "
5708 #: ../examples/guestfs-recipes.pod:275
5711 " # list-apps.sh WinGuest\n"
5713 " app_name: Mozilla Firefox (3.6.12)\n"
5714 " app_display_name: Mozilla Firefox (3.6.12)\n"
5716 " app_version: 3.6.12 (en-GB)\n"
5718 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5719 " app_trans_path:\n"
5720 " app_publisher: Mozilla\n"
5721 " app_url: http://www.mozilla.com/en-GB/\n"
5722 " app_source_package:\n"
5724 " app_description: Mozilla Firefox\n"
5727 " app_name: VLC media player\n"
5728 " app_display_name: VLC media player 1.1.5\n"
5730 " app_version: 1.1.5\n"
5732 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5733 " app_trans_path:\n"
5734 " app_publisher: VideoLAN\n"
5735 " app_url: http://www.videolan.org/\n"
5736 " app_source_package:\n"
5738 " app_description:\n"
5744 #: ../examples/guestfs-recipes.pod:305
5746 "If you want to run the script on disk images (instead of libvirt virtual "
5747 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5752 #: ../examples/guestfs-recipes.pod:309
5753 msgid "List files and directories in a VM"
5757 #: ../examples/guestfs-recipes.pod:311
5758 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5762 #: ../examples/guestfs-recipes.pod:313
5765 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5770 #: ../examples/guestfs-recipes.pod:315
5771 msgid "List services in a Windows VM"
5775 #: ../examples/guestfs-recipes.pod:317
5777 "The link below contains a script that can be used to list out the services "
5778 "from a Windows VM, and whether those services run at boot time or are loaded "
5783 #: ../examples/guestfs-recipes.pod:321
5785 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5790 #: ../examples/guestfs-recipes.pod:323
5791 msgid "Make a disk image sparse"
5795 #: ../examples/guestfs-recipes.pod:325
5797 "The link below contains some guides for making a disk image sparse (or "
5798 "reintroducing sparseness)."
5802 #: ../examples/guestfs-recipes.pod:328
5804 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5808 #: ../examples/guestfs-recipes.pod:330
5809 msgid "Monitor disk usage over time"
5813 #: ../examples/guestfs-recipes.pod:332
5815 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5816 "The link below contains a guide."
5820 #: ../examples/guestfs-recipes.pod:335
5821 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5825 #: ../examples/guestfs-recipes.pod:337
5826 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5830 #: ../examples/guestfs-recipes.pod:339
5832 "L<guestfish(1)> plus the tools described in the link below can be used to "
5833 "read out the Windows Event Log from any virtual machine running Windows "
5834 "Vista or a later version."
5838 #: ../examples/guestfs-recipes.pod:343
5840 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5841 "guestfish/#content"
5845 #: ../examples/guestfs-recipes.pod:345
5846 msgid "Remove root password (Linux)"
5850 #: ../examples/guestfs-recipes.pod:347
5852 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5853 "files. One use is to remove the root password from a Linux guest:"
5857 #: ../examples/guestfs-recipes.pod:350
5860 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5865 #: ../examples/guestfs-recipes.pod:352
5866 msgid "Remove Administrator password (Windows)"
5870 #: ../examples/guestfs-recipes.pod:354
5872 "The link below contains one technique for removing the Administrator "
5873 "password from a Windows VM, or to be more precise, it gives you a command "
5874 "prompt the next time you log in which you can use to bypass any security:"
5878 #: ../examples/guestfs-recipes.pod:359
5880 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5881 "administrator-password-with-guestfish/"
5885 #: ../examples/guestfs-recipes.pod:361
5886 msgid "Unpack a live CD"
5890 #: ../examples/guestfs-recipes.pod:363
5892 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5893 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5894 "layers, as outlined in the guide below."
5898 #: ../examples/guestfs-recipes.pod:367
5900 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5905 #: ../examples/guestfs-recipes.pod:369
5906 msgid "Uploading and downloading files"
5910 #: ../examples/guestfs-recipes.pod:371
5912 "The link below contains general tips on uploading (copying in) and "
5913 "downloading (copying out) files from VMs."
5917 #: ../examples/guestfs-recipes.pod:374
5919 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5923 #: ../examples/guestfs-recipes.pod:376
5924 msgid "Use libguestfs tools on VMware ESX guests"
5928 #: ../examples/guestfs-recipes.pod:378
5930 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5931 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5935 #: ../examples/guestfs-recipes.pod:382
5937 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5942 #: ../examples/guestfs-recipes.pod:386
5944 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5945 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5946 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5950 #: ../examples/guestfs-recipes.pod:403
5951 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5955 #: ../examples/guestfs-testing.pod:5
5956 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5960 #: ../examples/guestfs-testing.pod:9
5962 "This page has manual tests you can try on libguestfs. Everyone has a "
5963 "slightly different combination of platform, hardware and guests, so this "
5964 "testing is very valuable. Thanks for helping out!"
5968 #: ../examples/guestfs-testing.pod:13
5969 msgid "These tests require libguestfs E<ge> 1.14."
5973 #: ../examples/guestfs-testing.pod:15
5975 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5976 "careful. The others are safe and won't modify anything."
5980 #: ../examples/guestfs-testing.pod:18
5981 msgid "You can report bugs you find through this link:"
5985 #: ../examples/guestfs-testing.pod:20
5988 #| "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5989 #| "component=libguestfs&product=Virtualization+Tools>"
5991 "https://bugzilla.redhat.com/enter_bug.cgi?"
5992 "component=libguestfs&product=Virtualization+Tools"
5994 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5995 "component=libguestfs&product=Virtualization+Tools>"
5998 #: ../examples/guestfs-testing.pod:22
6000 "or post on the mailing list (registration is B<not> required, but if you're "
6001 "not registered then you'll have to wait for a moderator to manually approve "
6006 #: ../examples/guestfs-testing.pod:26
6007 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
6011 #: ../examples/guestfs-testing.pod:28
6016 #: ../examples/guestfs-testing.pod:30
6017 msgid "Check KVM acceleration is being used."
6021 #: ../examples/guestfs-testing.pod:32
6023 "If your host has hardware virt acceleration, then with a hot cache "
6024 "libguestfs should be able to start up in a few seconds. Run the following "
6025 "command a few times:"
6029 #: ../examples/guestfs-testing.pod:36
6032 " time guestfish -a /dev/null run\n"
6037 #: ../examples/guestfs-testing.pod:38
6039 "After a few runs, the time should settle down to a few seconds (under 5 "
6040 "seconds on fast 64 bit hardware)."
6044 #: ../examples/guestfs-testing.pod:41
6045 msgid "How to check for hardware virt:"
6049 #: ../examples/guestfs-testing.pod:43
6050 msgid "http://virt-tools.org/learning/check-hardware-virt/"
6054 #: ../examples/guestfs-testing.pod:45
6056 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
6060 #: ../examples/guestfs-testing.pod:48
6061 msgid "Run virt-alignment-scan on all your guests."
6065 #: ../examples/guestfs-testing.pod:50
6066 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
6070 #: ../examples/guestfs-testing.pod:52
6073 " virt-alignment-scan -a /path/to/disk.img\n"
6078 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161
6079 #: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234
6080 #: ../src/guestfs.pod:2792
6085 #: ../examples/guestfs-testing.pod:56
6088 " virt-alignment-scan -d Guest\n"
6093 #: ../examples/guestfs-testing.pod:58
6094 msgid "Does the alignment report match how the guest partitions are aligned?"
6098 #: ../examples/guestfs-testing.pod:60
6101 #| " virt-cat domname file\n"
6103 msgid "Run virt-cat on some files in guests."
6105 " virt-cat назва_домену файл\n"
6109 #: ../examples/guestfs-testing.pod:62
6110 msgid "L<virt-cat(1)> can display files from guests. For a Linux guest, try:"
6114 #: ../examples/guestfs-testing.pod:64
6117 #| " virt-cat -d mydomain /etc/fstab\n"
6120 " virt-cat LinuxGuest /etc/passwd\n"
6123 " virt-cat -d mydomain /etc/fstab\n"
6127 #: ../examples/guestfs-testing.pod:66
6128 msgid "A recent feature is support for Windows paths, for example:"
6132 #: ../examples/guestfs-testing.pod:68
6135 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
6140 #: ../examples/guestfs-testing.pod:70
6142 "An even better test is if you have a Windows guest with multiple drives. Do "
6143 "C<D:>, C<E:> etc paths work correctly?"
6147 #: ../examples/guestfs-testing.pod:73
6148 msgid "B<*> Copy some files into a B<shut off> guest."
6152 #: ../examples/guestfs-testing.pod:75
6154 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6159 #: ../examples/guestfs-testing.pod:78
6162 " virt-copy-in -d Guest /etc /tmp\n"
6167 #: ../examples/guestfs-testing.pod:80
6169 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6170 "(recursively). If you boot the guest, can you see all of the copied files "
6175 #: ../examples/guestfs-testing.pod:84
6176 msgid "Shut the guest down and try copying multiple files and directories:"
6180 #: ../examples/guestfs-testing.pod:86
6183 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6188 #: ../examples/guestfs-testing.pod:88
6189 msgid "Copy some files out of a guest."
6193 #: ../examples/guestfs-testing.pod:90
6195 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6196 "guest or disk image."
6200 #: ../examples/guestfs-testing.pod:95
6201 msgid "Note the final space and period in the command is not a typo."
6205 #: ../examples/guestfs-testing.pod:97
6206 msgid "This should copy C</home> from the guest into the current directory."
6210 #: ../examples/guestfs-testing.pod:99
6211 msgid "Run virt-df."
6215 #: ../examples/guestfs-testing.pod:101
6216 msgid "L<virt-df(1)> lists disk space. Run:"
6220 #: ../examples/guestfs-testing.pod:103
6233 #: ../examples/guestfs-testing.pod:105
6235 "You can try comparing this to the results from L<df(1)> inside the guest, "
6236 "but there are some provisos:"
6240 #: ../examples/guestfs-testing.pod:112
6241 msgid "The guest must be idle."
6245 #: ../examples/guestfs-testing.pod:116
6246 msgid "The guest disks must be synched using L<sync(1)>."
6250 #: ../examples/guestfs-testing.pod:120
6252 "Any action such as booting the guest will write log files causing the "
6253 "numbers to change."
6257 #: ../examples/guestfs-testing.pod:125
6259 "We don't guarantee that the numbers will be identical even under these "
6260 "circumstances. They should be similar. It would indicate a bug if you saw "
6261 "greatly differing numbers."
6265 #: ../examples/guestfs-testing.pod:129
6266 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6270 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3083
6275 #: ../examples/guestfs-testing.pod:133
6278 " virt-df --csv > /tmp/report.csv\n"
6283 #: ../examples/guestfs-testing.pod:135
6285 "Now try to load this into your favorite spreadsheet or database. Are the "
6286 "results reproduced faithfully in the spreadsheet/database?"
6290 #: ../examples/guestfs-testing.pod:138
6292 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6293 "doc/refman/5.1/en/load-data.html"
6297 #: ../examples/guestfs-testing.pod:141
6298 msgid "B<*> Edit a file in a B<shut off> guest."
6302 #: ../examples/guestfs-testing.pod:143
6304 "L<virt-edit(1)> can edit files in guests. Try this command on a RHEL or "
6309 #: ../examples/guestfs-testing.pod:146
6312 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6317 #: ../examples/guestfs-testing.pod:148
6318 msgid "On other Linux guests try editing other files such as:"
6322 #: ../examples/guestfs-testing.pod:150
6325 " virt-edit LinuxGuest /etc/motd\n"
6330 #: ../examples/guestfs-testing.pod:152
6331 msgid "Are the changes seen inside the guest when it is booted?"
6335 #: ../examples/guestfs-testing.pod:154
6336 msgid "Display the filesystems / partitions / LVs in a guest."
6340 #: ../examples/guestfs-testing.pod:156
6342 "L<virt-filesystems(1)> can be used to display filesystems in a guest. Try "
6343 "this command on any disk image or guest:"
6347 #: ../examples/guestfs-testing.pod:159
6350 #| " virt-filesystems --format=raw -a disk.img\n"
6353 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6356 " virt-filesystems --format=raw -a диск.img\n"
6360 #: ../examples/guestfs-testing.pod:163
6363 #| " virt-filesystems [--options] -d domname\n"
6366 " virt-filesystems -d Guest --all --long -h\n"
6369 " virt-filesystems [--параметри] -d назва_домену\n"
6373 #: ../examples/guestfs-testing.pod:165
6374 msgid "Do the results match what is seen in the guest?"
6378 #: ../examples/guestfs-testing.pod:167
6379 msgid "Run virt-inspector on all your guests."
6383 #: ../examples/guestfs-testing.pod:169
6385 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6390 #: ../examples/guestfs-testing.pod:172
6393 #| " virt-cat disk.img file\n"
6396 " virt-inspector -a /path/to/disk.img | less\n"
6399 " virt-cat диск.img файл\n"
6403 #: ../examples/guestfs-testing.pod:176
6406 " virt-inspector -d Guest | less\n"
6411 #: ../examples/guestfs-testing.pod:178
6412 msgid "Do the results match what is actually in the guest?"
6416 #: ../examples/guestfs-testing.pod:180
6417 msgid "Try the auditing features of virt-ls on all your guests."
6421 #: ../examples/guestfs-testing.pod:184
6424 #| " $ virt-ls -R -d guest /tmp\n"
6430 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6433 " $ virt-ls -R -d guest /tmp\n"
6440 #: ../examples/guestfs-testing.pod:188
6443 #| " $ virt-ls -R -d guest /tmp\n"
6449 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6452 " $ virt-ls -R -d guest /tmp\n"
6459 #: ../examples/guestfs-testing.pod:192
6462 #| " $ virt-ls -R -d guest /tmp\n"
6468 " virt-ls -lR -d Guest / | grep '^s'\n"
6471 " $ virt-ls -R -d guest /tmp\n"
6478 #: ../examples/guestfs-testing.pod:196
6481 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6486 #: ../examples/guestfs-testing.pod:198
6487 msgid "Display files larger than 10MB in home directories:"
6491 #: ../examples/guestfs-testing.pod:200
6494 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6499 #: ../examples/guestfs-testing.pod:204
6502 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6507 #: ../examples/guestfs-testing.pod:208
6510 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6515 #: ../examples/guestfs-testing.pod:210
6516 msgid "Do the results match what is in the guest?"
6520 #: ../examples/guestfs-testing.pod:212
6521 msgid "Create a disk image from a tarball."
6525 #: ../examples/guestfs-testing.pod:214
6527 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6532 #: ../examples/guestfs-testing.pod:217
6535 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6540 #: ../examples/guestfs-testing.pod:219
6542 "Add 'output.img' as a raw disk to an existing guest. Check the guest can "
6543 "see the files. This test is particularly useful if you try it with a "
6548 #: ../examples/guestfs-testing.pod:223
6549 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6553 #: ../examples/guestfs-testing.pod:225
6554 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6558 #: ../examples/guestfs-testing.pod:227
6559 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6563 #: ../examples/guestfs-testing.pod:229
6565 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6570 #: ../examples/guestfs-testing.pod:232
6573 #| " virt-cat disk.img file\n"
6576 " virt-rescue -a /path/to/disk.img\n"
6579 " virt-cat диск.img файл\n"
6583 #: ../examples/guestfs-testing.pod:236
6586 " virt-rescue -d Guest\n"
6591 #: ../examples/guestfs-testing.pod:238
6592 msgid "Can you use ordinary shell commands to examine the guest?"
6596 #: ../examples/guestfs-testing.pod:240
6597 msgid "B<*> Resize your guests."
6601 #: ../examples/guestfs-testing.pod:242
6603 "Use L<virt-resize(1)> to give a guest some more disk space. For example, if "
6604 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6608 #: ../examples/guestfs-testing.pod:246
6611 " truncate -s 30G newdisk.img\n"
6612 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6613 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6614 " qemu-kvm -m 1024 -hda newdisk.img\n"
6619 #: ../examples/guestfs-testing.pod:251
6620 msgid "Does the guest still boot? Try expanding other partitions."
6624 #: ../examples/guestfs-testing.pod:253
6625 msgid "B<*> Sparsify a guest disk."
6629 #: ../examples/guestfs-testing.pod:255
6630 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6634 #: ../examples/guestfs-testing.pod:257
6637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
6640 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
6647 #: ../examples/guestfs-testing.pod:259
6649 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6650 "image smaller (use C<du> to check)?"
6654 #: ../examples/guestfs-testing.pod:262
6655 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6659 #: ../examples/guestfs-testing.pod:264
6661 "Note that this really will mess up an existing guest, so it's better to "
6662 "clone the guest before trying this."
6666 #: ../examples/guestfs-testing.pod:267
6669 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6674 #: ../examples/guestfs-testing.pod:269
6676 "Was the sysprep successful? After booting, what changes were made and were "
6681 #: ../examples/guestfs-testing.pod:272
6682 msgid "Dump the Windows Registry from your Windows guests."
6686 #: ../examples/guestfs-testing.pod:274
6688 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6689 "guests that you have."
6693 #: ../examples/guestfs-testing.pod:277
6696 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6702 #: ../examples/guestfs-testing.pod:280
6705 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6711 #: ../examples/guestfs-testing.pod:283
6712 msgid "Does the output match running C<regedit> inside the guest?"
6716 #: ../examples/guestfs-testing.pod:285
6718 "A recent feature is the ability to dump user registries, so try this, "
6719 "replacing I<username> with the name of a local user in the guest:"
6723 #: ../examples/guestfs-testing.pod:288
6726 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6732 #: ../examples/guestfs-testing.pod:293
6735 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
6736 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
6738 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
6742 "tar-out(1)>, L<http://libguestfs.org/>."
6745 #: ../fish/guestfish-actions.pod:1
6750 #: ../fish/guestfish-actions.pod:3
6753 " add-cdrom filename\n"
6758 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6759 msgid "This function adds a virtual CD-ROM disk image to the guest."
6763 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6764 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6768 #: ../fish/guestfish-actions.pod:15
6770 "This call checks for the existence of C<filename>. This stops you from "
6771 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6772 "and C<http:> URLs. To specify those, use the general L</config> call "
6777 #: ../fish/guestfish-actions.pod:22
6779 "If you just want to add an ISO file (often you use this as an efficient way "
6780 "to transfer large files into the guest), then you should probably use L</add-"
6781 "drive-ro> instead."
6785 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6786 #: ../fish/guestfish-actions.pod:228
6788 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6793 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6794 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
6795 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6796 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6797 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
6798 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
6799 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
6800 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
6801 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
6802 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6803 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6804 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6805 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
6806 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
6807 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
6808 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
6809 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
6810 #: ../src/guestfs-actions.pod:8347
6812 "Deprecated functions will not be removed from the API, but the fact that "
6813 "they are deprecated indicates that there are problems with correct use of "
6818 #: ../fish/guestfish-actions.pod:35
6823 #: ../fish/guestfish-actions.pod:37
6828 #: ../fish/guestfish-actions.pod:39
6831 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6836 #: ../fish/guestfish-actions.pod:41
6838 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
6839 "It works by connecting to libvirt, requesting the domain and domain XML from "
6840 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6844 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6846 "The number of disks added is returned. This operation is atomic: if an "
6847 "error is returned, then no disks are added."
6851 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6853 "This function does some minimal checks to make sure the libvirt domain is "
6854 "not running (unless C<readonly> is true). In a future version we will try "
6855 "to acquire the libvirt lock on each disk."
6859 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6861 "Disks must be accessible locally. This often means that adding disks from a "
6862 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
6863 "unless those disks are accessible via the same device path locally too."
6867 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6869 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6870 "libvirt.org/uri.html>). If this is not set then we connect to the default "
6871 "libvirt URI (or one set through an environment variable, see the libvirt "
6872 "documentation for full details)."
6876 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6878 "The optional C<live> flag controls whether this call will try to connect to "
6879 "a running virtual machine C<guestfsd> process if it sees a suitable "
6880 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6881 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
6882 "DAEMONS> for more information."
6886 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6888 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6889 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6890 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6895 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6897 "The optional C<readonlydisk> parameter controls what we do for disks which "
6898 "are marked E<lt>readonly/E<gt> in the libvirt XML. Possible values are:"
6902 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6903 msgid "readonlydisk = \"error\""
6907 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6908 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6909 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6910 msgid "If C<readonly> is false:"
6914 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6916 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6917 "E<gt> flag is found."
6921 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6922 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6923 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6924 msgid "If C<readonly> is true:"
6928 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6929 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6930 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6931 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6935 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6936 msgid "readonlydisk = \"read\""
6940 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6942 "Disks with the E<lt>readonly/E<gt> flag are added read-only. Other disks "
6943 "are added read/write."
6947 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6948 msgid "readonlydisk = \"write\" (default)"
6952 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6953 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6957 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6958 msgid "readonlydisk = \"ignore\""
6962 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6963 msgid "If C<readonly> is true or false:"
6967 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6968 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6972 #: ../fish/guestfish-actions.pod:122
6974 "The other optional parameters are passed directly through to L</add-drive-"
6979 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6980 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6981 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6982 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6983 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6984 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6985 #: ../fish/guestfish-actions.pod:3631
6987 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6991 #: ../fish/guestfish-actions.pod:127
6996 #: ../fish/guestfish-actions.pod:129
6999 " add-drive filename\n"
7002 " add-drive назва_файла\n"
7006 #: ../fish/guestfish-actions.pod:131
7008 "This function is the equivalent of calling L</add-drive-opts> with no "
7009 "optional parameters, so the disk is added writable, with the format being "
7010 "detected automatically."
7014 #: ../fish/guestfish-actions.pod:135
7016 "Automatic detection of the format opens you up to a potential security hole "
7017 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
7018 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
7019 "you should think about replacing calls to this function with calls to L</add-"
7020 "drive-opts>, and specifying the format."
7024 #: ../fish/guestfish-actions.pod:142
7025 msgid "add-drive-opts"
7026 msgstr "add-drive-opts"
7029 #: ../fish/guestfish-actions.pod:144
7034 #: ../fish/guestfish-actions.pod:146
7037 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
7042 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
7044 "This function adds a virtual machine disk image C<filename> to libguestfs. "
7045 "The first time you call this function, the disk appears as C</dev/sda>, the "
7046 "second time as C</dev/sdb>, and so on."
7050 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
7052 "You don't necessarily need to be root when using libguestfs. However you "
7053 "obviously do need sufficient permissions to access the filename for whatever "
7054 "operations you want to perform (ie. read access if you just want to read the "
7055 "image or write access if you want to modify the image)."
7059 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
7060 msgid "This call checks that C<filename> exists."
7064 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
7065 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
7066 msgid "The optional arguments are:"
7070 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
7072 msgstr "C<readonly>"
7075 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
7077 "If true then the image is treated as read-only. Writes are still allowed, "
7078 "but they are stored in a temporary snapshot overlay which is discarded at "
7079 "the end. The disk that you add is not modified."
7083 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
7088 #: ../fish/guestfish-actions.pod:173
7090 "This forces the image format. If you omit this (or use L</add-drive> or L</"
7091 "add-drive-ro>) then the format is automatically detected. Possible formats "
7092 "include C<raw> and C<qcow2>."
7096 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
7098 "Automatic detection of the format opens you up to a potential security hole "
7099 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
7100 "RHBZ#642934. Specifying the format closes this security hole."
7104 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
7109 #: ../fish/guestfish-actions.pod:184
7111 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
7112 "add-drive-with-if> call (q.v.)"
7116 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
7121 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
7123 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
7124 "a hint to the guest inspection process if it is available."
7128 #: ../fish/guestfish-actions.pod:196
7129 msgid "add-drive-ro"
7130 msgstr "add-drive-ro"
7133 #: ../fish/guestfish-actions.pod:198
7138 #: ../fish/guestfish-actions.pod:200
7141 " add-drive-ro filename\n"
7146 #: ../fish/guestfish-actions.pod:202
7148 "This function is the equivalent of calling L</add-drive-opts> with the "
7149 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
7150 "is added read-only, with the format being detected automatically."
7154 #: ../fish/guestfish-actions.pod:207
7155 msgid "add-drive-ro-with-if"
7159 #: ../fish/guestfish-actions.pod:209
7162 " add-drive-ro-with-if filename iface\n"
7167 #: ../fish/guestfish-actions.pod:211
7169 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
7170 "interface emulation to use at run time."
7174 #: ../fish/guestfish-actions.pod:221
7175 msgid "add-drive-with-if"
7179 #: ../fish/guestfish-actions.pod:223
7182 " add-drive-with-if filename iface\n"
7187 #: ../fish/guestfish-actions.pod:225
7189 "This is the same as L</add-drive> but it allows you to specify the QEMU "
7190 "interface emulation to use at run time."
7194 #: ../fish/guestfish-actions.pod:235
7199 #: ../fish/guestfish-actions.pod:237
7202 " aug-clear augpath\n"
7207 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
7209 "Set the value associated with C<path> to C<NULL>. This is the same as the "
7210 "L<augtool(1)> C<clear> command."
7214 #: ../fish/guestfish-actions.pod:242
7219 #: ../fish/guestfish-actions.pod:244
7227 #: ../fish/guestfish-actions.pod:246
7229 "Close the current Augeas handle and free up any resources used by it. After "
7230 "calling this, you have to call L</aug-init> again before you can use any "
7231 "other Augeas functions."
7235 #: ../fish/guestfish-actions.pod:251
7240 #: ../fish/guestfish-actions.pod:253
7243 " aug-defnode name expr val\n"
7248 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7250 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7254 #: ../fish/guestfish-actions.pod:258
7256 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7257 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
7258 "containing that single node."
7262 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7264 "On success this returns a pair containing the number of nodes in the "
7265 "nodeset, and a boolean flag if a node was created."
7269 #: ../fish/guestfish-actions.pod:266
7274 #: ../fish/guestfish-actions.pod:268
7277 " aug-defvar name expr\n"
7282 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7284 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7285 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
7289 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7291 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7292 "evaluates to something which is not a nodeset."
7296 #: ../fish/guestfish-actions.pod:277
7301 #: ../fish/guestfish-actions.pod:279
7304 " aug-get augpath\n"
7309 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7311 "Look up the value associated with C<path>. If C<path> matches exactly one "
7312 "node, the C<value> is returned."
7316 #: ../fish/guestfish-actions.pod:284
7321 #: ../fish/guestfish-actions.pod:286
7324 " aug-init root flags\n"
7329 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7331 "Create a new Augeas handle for editing configuration files. If there was "
7332 "any previous Augeas handle associated with this guestfs session, then it is "
7337 #: ../fish/guestfish-actions.pod:292
7338 msgid "You must call this before using any other L</aug-*> commands."
7342 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7344 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
7348 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7350 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7351 "logical I<or> of the following integers:"
7355 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7356 msgid "C<AUG_SAVE_BACKUP> = 1"
7357 msgstr "C<AUG_SAVE_BACKUP> = 1"
7360 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7361 msgid "Keep the original file with a C<.augsave> extension."
7365 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7366 msgid "C<AUG_SAVE_NEWFILE> = 2"
7367 msgstr "C<AUG_SAVE_NEWFILE> = 2"
7370 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7372 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7373 "original. Overrides C<AUG_SAVE_BACKUP>."
7377 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7378 msgid "C<AUG_TYPE_CHECK> = 4"
7379 msgstr "C<AUG_TYPE_CHECK> = 4"
7382 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7383 msgid "Typecheck lenses."
7387 #: ../fish/guestfish-actions.pod:317
7389 "This option is only useful when debugging Augeas lenses. Use of this option "
7390 "may require additional memory for the libguestfs appliance. You may need to "
7391 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7395 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7396 msgid "C<AUG_NO_STDINC> = 8"
7397 msgstr "C<AUG_NO_STDINC> = 8"
7400 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7401 msgid "Do not use standard load path for modules."
7405 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7406 msgid "C<AUG_SAVE_NOOP> = 16"
7407 msgstr "C<AUG_SAVE_NOOP> = 16"
7410 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7411 msgid "Make save a no-op, just record what would have been changed."
7415 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7416 msgid "C<AUG_NO_LOAD> = 32"
7417 msgstr "C<AUG_NO_LOAD> = 32"
7420 #: ../fish/guestfish-actions.pod:332
7421 msgid "Do not load the tree in L</aug-init>."
7425 #: ../fish/guestfish-actions.pod:336
7426 msgid "To close the handle, you can call L</aug-close>."
7430 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7431 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7435 #: ../fish/guestfish-actions.pod:340
7440 #: ../fish/guestfish-actions.pod:342
7443 " aug-insert augpath label true|false\n"
7448 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7450 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7451 "or after C<path> (depending on the boolean flag C<before>)."
7455 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7457 "C<path> must match exactly one existing node in the tree, and C<label> must "
7458 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7462 #: ../fish/guestfish-actions.pod:352
7467 #: ../fish/guestfish-actions.pod:354
7475 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7476 msgid "Load files into the tree."
7477 msgstr "Завантажити файли до ієрархії."
7480 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7481 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7485 #: ../fish/guestfish-actions.pod:361
7490 #: ../fish/guestfish-actions.pod:363
7498 #: ../fish/guestfish-actions.pod:365
7500 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7501 "resulting nodes into alphabetical order."
7505 #: ../fish/guestfish-actions.pod:368
7510 #: ../fish/guestfish-actions.pod:370
7513 " aug-match augpath\n"
7518 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7520 "Returns a list of paths which match the path expression C<path>. The "
7521 "returned paths are sufficiently qualified so that they match exactly one "
7522 "node in the current tree."
7526 #: ../fish/guestfish-actions.pod:376
7531 #: ../fish/guestfish-actions.pod:378
7534 " aug-mv src dest\n"
7539 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7541 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
7542 "C<dest> is overwritten if it exists."
7546 #: ../fish/guestfish-actions.pod:383
7551 #: ../fish/guestfish-actions.pod:385
7559 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7560 msgid "Remove C<path> and all of its children."
7564 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7565 msgid "On success this returns the number of entries which were removed."
7569 #: ../fish/guestfish-actions.pod:391
7574 #: ../fish/guestfish-actions.pod:393
7582 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7583 msgid "This writes all pending changes to disk."
7587 #: ../fish/guestfish-actions.pod:397
7589 "The flags which were passed to L</aug-init> affect exactly how files are "
7594 #: ../fish/guestfish-actions.pod:400
7599 #: ../fish/guestfish-actions.pod:402
7602 " aug-set augpath val\n"
7607 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7608 msgid "Set the value associated with C<path> to C<val>."
7612 #: ../fish/guestfish-actions.pod:406
7614 "In the Augeas API, it is possible to clear a node by setting the value to "
7615 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
7616 "this call. Instead you must use the L</aug-clear> call."
7620 #: ../fish/guestfish-actions.pod:411
7625 #: ../fish/guestfish-actions.pod:413
7628 " available 'groups ...'\n"
7633 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7635 "This command is used to check the availability of some groups of "
7636 "functionality in the appliance, which not all builds of the libguestfs "
7637 "appliance will be able to provide."
7641 #: ../fish/guestfish-actions.pod:419
7643 "The libguestfs groups, and the functions that those groups correspond to, "
7644 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
7645 "runtime by calling L</available-all-groups>."
7649 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7651 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7652 "\"]> would check for the availability of the Linux inotify functions and "
7653 "Augeas (configuration file editing) functions."
7657 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7658 msgid "The command returns no error if I<all> requested groups are available."
7662 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7664 "It fails with an error if one or more of the requested groups is unavailable "
7669 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7671 "If an unknown group name is included in the list of groups then an error is "
7676 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7678 msgstr "I<Нотатки:>"
7681 #: ../fish/guestfish-actions.pod:443
7682 msgid "You must call L</launch> before calling this function."
7686 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7688 "The reason is because we don't know what groups are supported by the "
7689 "appliance/daemon until it is running and can be queried."
7693 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7695 "If a group of functions is available, this does not necessarily mean that "
7696 "they will work. You still have to check for errors when calling individual "
7697 "API functions even if they are available."
7701 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7703 "It is usually the job of distro packagers to build complete functionality "
7704 "into the libguestfs appliance. Upstream libguestfs, if built from source "
7705 "with all requirements satisfied, will support everything."
7709 #: ../fish/guestfish-actions.pod:465
7711 "This call was added in version C<1.0.80>. In previous versions of "
7712 "libguestfs all you could do would be to speculatively execute a command to "
7713 "find out if the daemon implemented it. See also L</version>."
7717 #: ../fish/guestfish-actions.pod:472
7718 msgid "available-all-groups"
7722 #: ../fish/guestfish-actions.pod:474
7725 " available-all-groups\n"
7730 #: ../fish/guestfish-actions.pod:476
7732 "This command returns a list of all optional groups that this daemon knows "
7733 "about. Note this returns both supported and unsupported groups. To find "
7734 "out which ones the daemon can actually support you have to call L</"
7735 "available> on each member of the returned list."
7739 #: ../fish/guestfish-actions.pod:482
7740 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7744 #: ../fish/guestfish-actions.pod:484
7749 #: ../fish/guestfish-actions.pod:486
7752 " base64-in (base64file|-) filename\n"
7757 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7759 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7763 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7764 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7765 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7766 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7767 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
7768 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
7769 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
7770 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
7771 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7775 #: ../fish/guestfish-actions.pod:493
7780 #: ../fish/guestfish-actions.pod:495
7783 " base64-out filename (base64file|-)\n"
7788 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7790 "This command downloads the contents of C<filename>, writing it out to local "
7791 "file C<base64file> encoded as base64."
7795 #: ../fish/guestfish-actions.pod:502
7796 msgid "blockdev-flushbufs"
7800 #: ../fish/guestfish-actions.pod:504
7803 " blockdev-flushbufs device\n"
7808 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7810 "This tells the kernel to flush internal buffers associated with C<device>."
7814 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7815 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7816 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7817 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7818 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7819 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7820 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7821 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7822 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7823 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7824 msgid "This uses the L<blockdev(8)> command."
7828 #: ../fish/guestfish-actions.pod:511
7829 msgid "blockdev-getbsz"
7833 #: ../fish/guestfish-actions.pod:513
7836 " blockdev-getbsz device\n"
7841 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7842 msgid "This returns the block size of a device."
7846 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7847 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7849 "(Note this is different from both I<size in blocks> and I<filesystem block "
7854 #: ../fish/guestfish-actions.pod:522
7855 msgid "blockdev-getro"
7859 #: ../fish/guestfish-actions.pod:524
7862 " blockdev-getro device\n"
7867 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7869 "Returns a boolean indicating if the block device is read-only (true if read-"
7870 "only, false if not)."
7874 #: ../fish/guestfish-actions.pod:531
7875 msgid "blockdev-getsize64"
7879 #: ../fish/guestfish-actions.pod:533
7882 " blockdev-getsize64 device\n"
7887 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7888 msgid "This returns the size of the device in bytes."
7892 #: ../fish/guestfish-actions.pod:537
7893 msgid "See also L</blockdev-getsz>."
7894 msgstr "Див. також L</blockdev-getsz>."
7897 #: ../fish/guestfish-actions.pod:541
7898 msgid "blockdev-getss"
7902 #: ../fish/guestfish-actions.pod:543
7905 " blockdev-getss device\n"
7910 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7912 "This returns the size of sectors on a block device. Usually 512, but can be "
7913 "larger for modern devices."
7917 #: ../fish/guestfish-actions.pod:548
7919 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7923 #: ../fish/guestfish-actions.pod:553
7924 msgid "blockdev-getsz"
7928 #: ../fish/guestfish-actions.pod:555
7931 " blockdev-getsz device\n"
7936 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7938 "This returns the size of the device in units of 512-byte sectors (even if "
7939 "the sectorsize isn't 512 bytes ... weird)."
7943 #: ../fish/guestfish-actions.pod:560
7945 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7946 "blockdev-getsize64> for the more useful I<size in bytes>."
7950 #: ../fish/guestfish-actions.pod:566
7951 msgid "blockdev-rereadpt"
7955 #: ../fish/guestfish-actions.pod:568
7958 " blockdev-rereadpt device\n"
7963 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7964 msgid "Reread the partition table on C<device>."
7968 #: ../fish/guestfish-actions.pod:574
7969 msgid "blockdev-setbsz"
7973 #: ../fish/guestfish-actions.pod:576
7976 " blockdev-setbsz device blocksize\n"
7981 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7982 msgid "This sets the block size of a device."
7986 #: ../fish/guestfish-actions.pod:585
7987 msgid "blockdev-setro"
7991 #: ../fish/guestfish-actions.pod:587
7994 " blockdev-setro device\n"
7999 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
8000 msgid "Sets the block device named C<device> to read-only."
8004 #: ../fish/guestfish-actions.pod:593
8005 msgid "blockdev-setrw"
8009 #: ../fish/guestfish-actions.pod:595
8012 " blockdev-setrw device\n"
8017 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
8018 msgid "Sets the block device named C<device> to read-write."
8022 #: ../fish/guestfish-actions.pod:601
8023 msgid "btrfs-filesystem-resize"
8027 #: ../fish/guestfish-actions.pod:603
8030 " btrfs-filesystem-resize mountpoint [size:N]\n"
8035 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
8036 msgid "This command resizes a btrfs filesystem."
8040 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
8042 "Note that unlike other resize calls, the filesystem has to be mounted and "
8043 "the parameter is the mountpoint not the device (this is a requirement of "
8048 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
8049 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
8050 msgid "The optional parameters are:"
8054 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
8055 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
8060 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
8062 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
8063 "resized to the maximum size."
8067 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
8068 msgid "See also L<btrfs(8)>."
8069 msgstr "Див. також L<btrfs(8)>."
8072 #: ../fish/guestfish-actions.pod:626
8073 msgid "case-sensitive-path"
8077 #: ../fish/guestfish-actions.pod:628
8080 " case-sensitive-path path\n"
8085 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
8087 "This can be used to resolve case insensitive paths on a filesystem which is "
8088 "case sensitive. The use case is to resolve paths which you have read from "
8089 "Windows configuration files or the Windows Registry, to the true path."
8093 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
8095 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8096 "(and probably others), which is that although the underlying filesystem is "
8097 "case-insensitive, the driver exports the filesystem to Linux as case-"
8102 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
8104 "One consequence of this is that special directories such as C<c:\\windows> "
8105 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8106 "precise details of how they were created. In Windows itself this would not "
8111 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
8113 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8118 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
8120 "This function resolves the true case of each element in the path and returns "
8121 "the case-sensitive path."
8125 #: ../fish/guestfish-actions.pod:652
8127 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
8128 "WINDOWS/system32\"> (the exact return value would depend on details of how "
8129 "the directories were originally created under Windows)."
8133 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
8134 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8138 #: ../fish/guestfish-actions.pod:660
8139 msgid "See also L</realpath>."
8140 msgstr "Див. також L</realpath>."
8143 #: ../fish/guestfish-actions.pod:662
8148 #: ../fish/guestfish-actions.pod:664
8158 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
8159 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
8160 msgid "Return the contents of the file named C<path>."
8164 #: ../fish/guestfish-actions.pod:668
8166 "Note that this function cannot correctly handle binary files (specifically, "
8167 "files containing C<\\0> character which is treated as end of string). For "
8168 "those you need to use the L</read-file> or L</download> functions which have "
8169 "a more complex interface."
8173 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
8174 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
8175 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
8176 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
8177 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
8178 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
8179 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
8180 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
8181 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
8182 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
8183 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
8184 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
8185 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
8186 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
8187 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
8188 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
8189 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
8190 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
8191 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
8192 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
8193 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
8194 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
8195 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
8196 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
8197 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
8198 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
8199 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
8200 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
8201 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
8202 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
8203 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
8204 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
8206 "Because of the message protocol, there is a transfer limit of somewhere "
8207 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
8211 #: ../fish/guestfish-actions.pod:676
8216 #: ../fish/guestfish-actions.pod:678
8219 " checksum csumtype path\n"
8224 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8226 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8230 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8232 "The type of checksum to compute is given by the C<csumtype> parameter which "
8233 "must have one of the following values:"
8237 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8242 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8244 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8249 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8254 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8255 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8259 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8264 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8265 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8269 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8274 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8275 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8279 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8284 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8285 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8289 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8294 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8295 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8299 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8304 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8305 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8309 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8310 msgid "The checksum is returned as a printable string."
8314 #: ../fish/guestfish-actions.pod:721
8315 msgid "To get the checksum for a device, use L</checksum-device>."
8319 #: ../fish/guestfish-actions.pod:723
8320 msgid "To get the checksums for many files, use L</checksums-out>."
8324 #: ../fish/guestfish-actions.pod:725
8325 msgid "checksum-device"
8326 msgstr "checksum-device"
8329 #: ../fish/guestfish-actions.pod:727
8332 " checksum-device csumtype device\n"
8337 #: ../fish/guestfish-actions.pod:729
8339 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8340 "device named C<device>. For the types of checksums supported see the L</"
8341 "checksum> command."
8345 #: ../fish/guestfish-actions.pod:733
8346 msgid "checksums-out"
8350 #: ../fish/guestfish-actions.pod:735
8353 " checksums-out csumtype directory (sumsfile|-)\n"
8358 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8360 "This command computes the checksums of all regular files in C<directory> and "
8361 "then emits a list of those checksums to the local output file C<sumsfile>."
8365 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8367 "This can be used for verifying the integrity of a virtual machine. However "
8368 "to be properly secure you should pay attention to the output of the checksum "
8369 "command (it uses the ones from GNU coreutils). In particular when the "
8370 "filename is not printable, coreutils uses a special backslash syntax. For "
8371 "more information, see the GNU coreutils info file."
8375 #: ../fish/guestfish-actions.pod:751
8380 #: ../fish/guestfish-actions.pod:753
8383 " chmod mode path\n"
8388 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8390 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
8395 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8397 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8398 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8403 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
8404 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
8405 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
8406 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
8407 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
8408 msgid "The mode actually set is affected by the umask."
8412 #: ../fish/guestfish-actions.pod:764
8417 #: ../fish/guestfish-actions.pod:766
8420 " chown owner group path\n"
8425 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8426 msgid "Change the file owner to C<owner> and group to C<group>."
8430 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
8431 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
8433 "Only numeric uid and gid are supported. If you want to use names, you will "
8434 "need to locate and parse the password file yourself (Augeas support makes "
8435 "this relatively easy)."
8439 #: ../fish/guestfish-actions.pod:774
8444 #: ../fish/guestfish-actions.pod:776
8447 " command 'arguments ...'\n"
8450 " command 'параметри...'\n"
8454 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8456 "This call runs a command from the guest filesystem. The filesystem must be "
8457 "mounted, and must contain a compatible operating system (ie. something "
8458 "Linux, with the same or compatible processor architecture)."
8462 #: ../fish/guestfish-actions.pod:783
8464 "The single parameter is an argv-style list of arguments. The first element "
8465 "is the name of the program to run. Subsequent elements are parameters. The "
8466 "list must be non-empty (ie. must contain a program name). Note that the "
8467 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8471 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8472 msgid "The return value is anything printed to I<stdout> by the command."
8476 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8478 "If the command returns a non-zero exit status, then this function returns an "
8479 "error message. The error message string is the content of I<stderr> from "
8484 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8486 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8487 "bin>. If you require a program from another location, you should provide "
8488 "the full path in the first parameter."
8492 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8494 "Shared libraries and data files required by the program must be available on "
8495 "filesystems which are mounted in the correct places. It is the caller's "
8496 "responsibility to ensure all filesystems that are needed are mounted at the "
8501 #: ../fish/guestfish-actions.pod:811
8502 msgid "command-lines"
8506 #: ../fish/guestfish-actions.pod:813
8509 " command-lines 'arguments ...'\n"
8514 #: ../fish/guestfish-actions.pod:815
8516 "This is the same as L</command>, but splits the result into a list of lines."
8520 #: ../fish/guestfish-actions.pod:818
8521 msgid "See also: L</sh-lines>"
8522 msgstr "Див. також L</sh-lines>"
8525 #: ../fish/guestfish-actions.pod:823
8526 msgid "compress-device-out"
8530 #: ../fish/guestfish-actions.pod:825
8533 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8538 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8540 "This command compresses C<device> and writes it out to the local file "
8545 #: ../fish/guestfish-actions.pod:830
8547 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8552 #: ../fish/guestfish-actions.pod:837
8553 msgid "compress-out"
8557 #: ../fish/guestfish-actions.pod:839
8560 " compress-out ctype file (zfile|-) [level:N]\n"
8565 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8567 "This command compresses C<file> and writes it out to the local file C<zfile>."
8571 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8573 "The compression program used is controlled by the C<ctype> parameter. "
8574 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
8575 "Some compression types may not be supported by particular builds of "
8576 "libguestfs, in which case you will get an error containing the substring "
8577 "\"not supported\"."
8581 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8583 "The optional C<level> parameter controls compression level. The meaning and "
8584 "default for this parameter depends on the compression program being used."
8588 #: ../fish/guestfish-actions.pod:858
8593 #: ../fish/guestfish-actions.pod:860
8596 " config qemuparam qemuvalue\n"
8601 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8603 "This can be used to add arbitrary qemu command line parameters of the form "
8604 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
8605 "setting some parameters which would interfere with parameters that we use."
8609 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8610 msgid "The first character of C<param> string must be a C<-> (dash)."
8614 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8615 msgid "C<value> can be NULL."
8619 #: ../fish/guestfish-actions.pod:871
8620 msgid "copy-device-to-device"
8624 #: ../fish/guestfish-actions.pod:873
8627 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8632 #: ../fish/guestfish-actions.pod:875
8634 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8635 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8636 "(device|file) to a destination (device|file)."
8640 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8642 "Partial copies can be made since you can specify optionally the source "
8643 "offset, destination offset and size to copy. These values are all specified "
8644 "in bytes. If not given, the offsets both default to zero, and the size "
8645 "defaults to copying as much as possible until we hit the end of the source."
8649 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8651 "The source and destination may be the same object. However overlapping "
8652 "regions may not be copied correctly."
8656 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8658 "If the destination is a file, it is created if required. If the destination "
8659 "file is not large enough, it is extended."
8663 #: ../fish/guestfish-actions.pod:896
8664 msgid "copy-device-to-file"
8668 #: ../fish/guestfish-actions.pod:898
8671 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8676 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8677 #: ../fish/guestfish-actions.pod:918
8678 msgid "See L</copy-device-to-device> for a general overview of this call."
8682 #: ../fish/guestfish-actions.pod:905
8683 msgid "copy-file-to-device"
8687 #: ../fish/guestfish-actions.pod:907
8690 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8695 #: ../fish/guestfish-actions.pod:914
8696 msgid "copy-file-to-file"
8700 #: ../fish/guestfish-actions.pod:916
8703 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8708 #: ../fish/guestfish-actions.pod:921
8710 "This is B<not> the function you want for copying files. This is for copying "
8711 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
8712 "file copying and moving functions."
8716 #: ../fish/guestfish-actions.pod:928
8721 #: ../fish/guestfish-actions.pod:930
8724 " copy-size src dest size\n"
8729 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8731 "This command copies exactly C<size> bytes from one source device or file "
8732 "C<src> to another destination device or file C<dest>."
8736 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8738 "Note this will fail if the source is too short or if the destination is not "
8743 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8745 "I<This function is deprecated.> In new code, use the L</"
8746 "copy_device_to_device> call instead."
8750 #: ../fish/guestfish-actions.pod:945
8755 #: ../fish/guestfish-actions.pod:947
8763 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8765 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8766 "destination filename or destination directory."
8770 #: ../fish/guestfish-actions.pod:952
8775 #: ../fish/guestfish-actions.pod:954
8783 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8785 "This copies a file or directory from C<src> to C<dest> recursively using the "
8790 #: ../fish/guestfish-actions.pod:959
8795 #: ../fish/guestfish-actions.pod:961
8803 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8805 "This command copies from one source device or file C<src> to another "
8806 "destination device or file C<dest>. Normally you would use this to copy to "
8807 "or from a device or partition, for example to duplicate a filesystem."
8811 #: ../fish/guestfish-actions.pod:968
8813 "If the destination is a device, it must be as large or larger than the "
8814 "source file or device, otherwise the copy will fail. This command cannot do "
8815 "partial copies (see L</copy-device-to-device>)."
8819 #: ../fish/guestfish-actions.pod:980
8824 #: ../fish/guestfish-actions.pod:982
8834 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8835 msgid "This command runs the C<df> command to report disk space used."
8839 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8841 "This command is mostly useful for interactive sessions. It is I<not> "
8842 "intended that you try to parse the output string. Use L</statvfs> from "
8847 #: ../fish/guestfish-actions.pod:990
8852 #: ../fish/guestfish-actions.pod:992
8862 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8864 "This command runs the C<df -h> command to report disk space used in human-"
8869 #: ../fish/guestfish-actions.pod:1001
8874 #: ../fish/guestfish-actions.pod:1003
8884 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8886 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8887 "This is sometimes useful for extended debugging of problems."
8891 #: ../fish/guestfish-actions.pod:1009
8893 "Another way to get the same information is to enable verbose messages with "
8894 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8895 "before running the program."
8899 #: ../fish/guestfish-actions.pod:1014
8904 #: ../fish/guestfish-actions.pod:1016
8907 " download remotefilename (filename|-)\n"
8912 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8913 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8915 "Download file C<remotefilename> and save it as C<filename> on the local "
8920 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
8921 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8922 msgid "C<filename> can also be a named pipe."
8926 #: ../fish/guestfish-actions.pod:1023
8927 msgid "See also L</upload>, L</cat>."
8931 #: ../fish/guestfish-actions.pod:1027
8932 msgid "download-offset"
8933 msgstr "download-offset"
8936 #: ../fish/guestfish-actions.pod:1029
8939 " download-offset remotefilename (filename|-) offset size\n"
8944 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8946 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8947 "region must be within the file or device)."
8951 #: ../fish/guestfish-actions.pod:1037
8953 "Note that there is no limit on the amount of data that can be downloaded "
8954 "with this call, unlike with L</pread>, and this call always reads the full "
8955 "amount unless an error occurs."
8959 #: ../fish/guestfish-actions.pod:1042
8960 msgid "See also L</download>, L</pread>."
8964 #: ../fish/guestfish-actions.pod:1046
8969 #: ../fish/guestfish-actions.pod:1048
8972 " drop-caches whattodrop\n"
8977 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8979 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8980 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8981 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8985 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8986 msgid "Setting C<whattodrop> to 3 should drop everything."
8990 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8992 "This automatically calls L<sync(2)> before the operation, so that the "
8993 "maximum guest memory is freed."
8997 #: ../fish/guestfish-actions.pod:1060
9002 #: ../fish/guestfish-actions.pod:1062
9012 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
9014 "This command runs the C<du -s> command to estimate file space usage for "
9019 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
9021 "C<path> can be a file or a directory. If C<path> is a directory then the "
9022 "estimate includes the contents of the directory and all subdirectories "
9027 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
9029 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9033 #: ../fish/guestfish-actions.pod:1074
9038 #: ../fish/guestfish-actions.pod:1076
9041 " e2fsck-f device\n"
9046 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
9048 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9049 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9054 #: ../fish/guestfish-actions.pod:1082
9056 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
9057 "should use L</fsck>."
9061 #: ../fish/guestfish-actions.pod:1085
9066 #: ../fish/guestfish-actions.pod:1087
9069 " echo-daemon 'words ...'\n"
9074 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
9076 "This command concatenates the list of C<words> passed with single spaces "
9077 "between them and returns the resulting string."
9081 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
9082 msgid "You can use this command to test the connection through to the daemon."
9086 #: ../fish/guestfish-actions.pod:1094
9087 msgid "See also L</ping-daemon>."
9088 msgstr "Див. також L</ping-daemon>."
9091 #: ../fish/guestfish-actions.pod:1096
9096 #: ../fish/guestfish-actions.pod:1098
9099 " egrep regex path\n"
9104 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
9106 "This calls the external C<egrep> program and returns the matching lines."
9110 #: ../fish/guestfish-actions.pod:1106
9115 #: ../fish/guestfish-actions.pod:1108
9118 " egrepi regex path\n"
9123 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
9125 "This calls the external C<egrep -i> program and returns the matching lines."
9129 #: ../fish/guestfish-actions.pod:1116
9134 #: ../fish/guestfish-actions.pod:1118
9137 " equal file1 file2\n"
9140 " equal файл1 файл2\n"
9144 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
9146 "This compares the two files C<file1> and C<file2> and returns true if their "
9147 "content is exactly equal, or false otherwise."
9151 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
9152 msgid "The external L<cmp(1)> program is used for the comparison."
9156 #: ../fish/guestfish-actions.pod:1125
9161 #: ../fish/guestfish-actions.pod:1127
9171 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
9173 "This returns C<true> if and only if there is a file, directory (or anything) "
9174 "with the given C<path> name."
9178 #: ../fish/guestfish-actions.pod:1132
9179 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9180 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
9183 #: ../fish/guestfish-actions.pod:1134
9188 #: ../fish/guestfish-actions.pod:1136
9191 " fallocate path len\n"
9194 " fallocate шлях довжина\n"
9198 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
9199 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
9201 "This command preallocates a file (containing zero bytes) named C<path> of "
9202 "size C<len> bytes. If the file exists already, it is overwritten."
9206 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
9208 "Do not confuse this with the guestfish-specific C<alloc> command which "
9209 "allocates a file in the host and attaches it as a device."
9213 #: ../fish/guestfish-actions.pod:1146
9215 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9220 #: ../fish/guestfish-actions.pod:1153
9222 msgstr "fallocate64"
9225 #: ../fish/guestfish-actions.pod:1155
9228 " fallocate64 path len\n"
9231 " fallocate64 шлях довжина\n"
9235 #: ../fish/guestfish-actions.pod:1161
9237 "Note that this call allocates disk blocks for the file. To create a sparse "
9238 "file use L</truncate-size> instead."
9242 #: ../fish/guestfish-actions.pod:1164
9244 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9245 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9246 "maximum size of files created through that call to 1GB."
9250 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9252 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9253 "commands which create a file in the host and attach it as a device."
9257 #: ../fish/guestfish-actions.pod:1173
9262 #: ../fish/guestfish-actions.pod:1175
9265 " fgrep pattern path\n"
9268 " fgrep шаблон шлях\n"
9272 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9274 "This calls the external C<fgrep> program and returns the matching lines."
9278 #: ../fish/guestfish-actions.pod:1183
9283 #: ../fish/guestfish-actions.pod:1185
9286 " fgrepi pattern path\n"
9289 " fgrepi шаблон шлях\n"
9293 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9295 "This calls the external C<fgrep -i> program and returns the matching lines."
9299 #: ../fish/guestfish-actions.pod:1193
9304 #: ../fish/guestfish-actions.pod:1195
9314 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9316 "This call uses the standard L<file(1)> command to determine the type or "
9317 "contents of the file."
9321 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9323 "This call will also transparently look inside various types of compressed "
9328 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9330 "The exact command which runs is C<file -zb path>. Note in particular that "
9331 "the filename is not prepended to the output (the I<-b> option)."
9335 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9337 "The output depends on the output of the underlying L<file(1)> command and it "
9338 "can change in future in ways beyond our control. In other words, the output "
9339 "is not guaranteed by the ABI."
9343 #: ../fish/guestfish-actions.pod:1211
9345 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9346 "(etc), L</is-zero>."
9350 #: ../fish/guestfish-actions.pod:1214
9351 msgid "file-architecture"
9352 msgstr "file-architecture"
9355 #: ../fish/guestfish-actions.pod:1216
9358 " file-architecture filename\n"
9361 " file-architecture назва_файла\n"
9365 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9367 "This detects the architecture of the binary C<filename>, and returns it if "
9372 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9373 msgid "Currently defined architectures are:"
9377 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9382 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9384 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9385 "irrespective of the precise processor requirements of the binary."
9389 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9394 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9395 msgid "64 bit x86-64."
9399 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9404 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9405 msgid "32 bit SPARC."
9409 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9414 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9415 msgid "64 bit SPARC V9 and above."
9419 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9424 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9425 msgid "Intel Itanium."
9426 msgstr "Intel Itanium."
9429 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9434 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9435 msgid "32 bit Power PC."
9439 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9444 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9445 msgid "64 bit Power PC."
9449 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9450 msgid "Libguestfs may return other architecture strings in future."
9454 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9455 msgid "The function works on at least the following types of files:"
9459 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9460 msgid "many types of Un*x and Linux binary"
9464 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9465 msgid "many types of Un*x and Linux shared library"
9469 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9470 msgid "Windows Win32 and Win64 binaries"
9474 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9475 msgid "Windows Win32 and Win64 DLLs"
9479 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9480 msgid "Win32 binaries and DLLs return C<i386>."
9484 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9485 msgid "Win64 binaries and DLLs return C<x86_64>."
9489 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9490 msgid "Linux kernel modules"
9494 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9495 msgid "Linux new-style initrd images"
9499 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9500 msgid "some non-x86 Linux vmlinuz kernels"
9504 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9505 msgid "What it can't do currently:"
9509 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9510 msgid "static libraries (libfoo.a)"
9514 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9515 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9519 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9520 msgid "x86 Linux vmlinuz kernels"
9524 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9526 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9527 "compressed code, and are horribly hard to unpack. If you want to find the "
9528 "architecture of a kernel, use the architecture of the associated initrd or "
9529 "kernel module(s) instead."
9533 #: ../fish/guestfish-actions.pod:1319
9538 #: ../fish/guestfish-actions.pod:1321
9548 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9549 msgid "This command returns the size of C<file> in bytes."
9553 #: ../fish/guestfish-actions.pod:1325
9555 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9556 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
9560 #: ../fish/guestfish-actions.pod:1329
9565 #: ../fish/guestfish-actions.pod:1331
9568 " fill c len path\n"
9573 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9575 "This command creates a new file called C<path>. The initial content of the "
9576 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9581 #: ../fish/guestfish-actions.pod:1337
9583 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9584 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
9589 #: ../fish/guestfish-actions.pod:1342
9590 msgid "fill-pattern"
9591 msgstr "fill-pattern"
9594 #: ../fish/guestfish-actions.pod:1344
9597 " fill-pattern pattern len path\n"
9602 #: ../fish/guestfish-actions.pod:1346
9604 "This function is like L</fill> except that it creates a new file of length "
9605 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
9606 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9611 #: ../fish/guestfish-actions.pod:1351
9616 #: ../fish/guestfish-actions.pod:1353
9626 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9628 "This command lists out all files and directories, recursively, starting at "
9629 "C<directory>. It is essentially equivalent to running the shell command "
9630 "C<find directory -print> but some post-processing happens on the output, "
9635 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9637 "This returns a list of strings I<without any prefix>. Thus if the directory "
9642 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9652 #: ../fish/guestfish-actions.pod:1367
9653 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9657 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9668 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9669 msgid "If C<directory> is not a directory, then this command returns an error."
9673 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9674 msgid "The returned list is sorted."
9678 #: ../fish/guestfish-actions.pod:1380
9679 msgid "See also L</find0>."
9680 msgstr "Див. також L</find0>."
9683 #: ../fish/guestfish-actions.pod:1385
9688 #: ../fish/guestfish-actions.pod:1387
9691 " find0 directory (files|-)\n"
9694 " find0 каталог (файли|-)\n"
9698 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9700 "This command lists out all files and directories, recursively, starting at "
9701 "C<directory>, placing the resulting list in the external file called "
9706 #: ../fish/guestfish-actions.pod:1393
9708 "This command works the same way as L</find> with the following exceptions:"
9712 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9713 msgid "The resulting list is written to an external file."
9717 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9719 "Items (filenames) in the result are separated by C<\\0> characters. See "
9720 "L<find(1)> option I<-print0>."
9724 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9725 msgid "This command is not limited in the number of names that it can return."
9729 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9730 msgid "The result list is not sorted."
9734 #: ../fish/guestfish-actions.pod:1420
9735 msgid "findfs-label"
9736 msgstr "findfs-label"
9739 #: ../fish/guestfish-actions.pod:1422
9742 " findfs-label label\n"
9745 " findfs-label мітка\n"
9749 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9751 "This command searches the filesystems and returns the one which has the "
9752 "given label. An error is returned if no such filesystem can be found."
9756 #: ../fish/guestfish-actions.pod:1428
9757 msgid "To find the label of a filesystem, use L</vfs-label>."
9758 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9761 #: ../fish/guestfish-actions.pod:1430
9763 msgstr "findfs-uuid"
9766 #: ../fish/guestfish-actions.pod:1432
9769 " findfs-uuid uuid\n"
9772 " findfs-uuid uuid\n"
9776 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9778 "This command searches the filesystems and returns the one which has the "
9779 "given UUID. An error is returned if no such filesystem can be found."
9783 #: ../fish/guestfish-actions.pod:1438
9784 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9785 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9788 #: ../fish/guestfish-actions.pod:1440
9793 #: ../fish/guestfish-actions.pod:1442
9796 " fsck fstype device\n"
9799 " fsck тип_файлової_системи пристрій\n"
9803 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9805 "This runs the filesystem checker (fsck) on C<device> which should have "
9806 "filesystem type C<fstype>."
9810 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9812 "The returned integer is the status. See L<fsck(8)> for the list of status "
9813 "codes from C<fsck>."
9817 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9818 msgid "Multiple status codes can be summed together."
9822 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9824 "A non-zero return code can mean \"success\", for example if errors have been "
9825 "corrected on the filesystem."
9829 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9830 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9834 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9836 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9840 #: ../fish/guestfish-actions.pod:1472
9845 #: ../fish/guestfish-actions.pod:1474
9855 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9857 "Return the additional kernel options which are added to the guest kernel "
9862 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9863 msgid "If C<NULL> then no options are added."
9867 #: ../fish/guestfish-actions.pod:1481
9868 msgid "get-attach-method"
9869 msgstr "get-attach-method"
9872 #: ../fish/guestfish-actions.pod:1483
9875 " get-attach-method\n"
9878 " get-attach-method\n"
9882 #: ../fish/guestfish-actions.pod:1485
9883 msgid "Return the current attach method. See L</set-attach-method>."
9887 #: ../fish/guestfish-actions.pod:1487
9888 msgid "get-autosync"
9889 msgstr "get-autosync"
9892 #: ../fish/guestfish-actions.pod:1489
9902 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9903 msgid "Get the autosync flag."
9907 #: ../fish/guestfish-actions.pod:1493
9912 #: ../fish/guestfish-actions.pod:1495
9922 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9923 msgid "Return the direct appliance mode flag."
9927 #: ../fish/guestfish-actions.pod:1499
9929 msgstr "get-e2label"
9932 #: ../fish/guestfish-actions.pod:1501
9935 " get-e2label device\n"
9938 " get-e2label пристрій\n"
9942 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9944 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9948 #: ../fish/guestfish-actions.pod:1506
9950 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9955 #: ../fish/guestfish-actions.pod:1513
9960 #: ../fish/guestfish-actions.pod:1515
9963 " get-e2uuid device\n"
9966 " get-e2uuid пристрій\n"
9970 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9972 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9976 #: ../fish/guestfish-actions.pod:1520
9978 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9983 #: ../fish/guestfish-actions.pod:1527
9985 msgstr "get-memsize"
9988 #: ../fish/guestfish-actions.pod:1529
9998 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
10000 "This gets the memory size in megabytes allocated to the qemu subprocess."
10004 #: ../fish/guestfish-actions.pod:1534
10006 "If L</set-memsize> was not called on this handle, and if "
10007 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10008 "value for memsize."
10012 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
10013 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
10014 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
10015 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
10017 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10021 #: ../fish/guestfish-actions.pod:1541
10022 msgid "get-network"
10023 msgstr "get-network"
10026 #: ../fish/guestfish-actions.pod:1543
10036 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
10037 msgid "This returns the enable network flag."
10041 #: ../fish/guestfish-actions.pod:1547
10046 #: ../fish/guestfish-actions.pod:1549
10056 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
10057 msgid "Return the current search path."
10061 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
10063 "This is always non-NULL. If it wasn't set already, then this will return "
10064 "the default path."
10068 #: ../fish/guestfish-actions.pod:1556
10073 #: ../fish/guestfish-actions.pod:1558
10081 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
10082 msgid "This returns the process group flag."
10086 #: ../fish/guestfish-actions.pod:1562
10091 #: ../fish/guestfish-actions.pod:1564
10096 #: ../fish/guestfish-actions.pod:1566
10106 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
10108 "Return the process ID of the qemu subprocess. If there is no qemu "
10109 "subprocess, then this will return an error."
10113 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
10114 msgid "This is an internal call used for debugging and testing."
10118 #: ../fish/guestfish-actions.pod:1573
10123 #: ../fish/guestfish-actions.pod:1575
10133 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
10134 msgid "Return the current qemu binary."
10138 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
10140 "This is always non-NULL. If it wasn't set already, then this will return "
10141 "the default qemu binary name."
10145 #: ../fish/guestfish-actions.pod:1582
10146 msgid "get-recovery-proc"
10147 msgstr "get-recovery-proc"
10150 #: ../fish/guestfish-actions.pod:1584
10153 " get-recovery-proc\n"
10156 " get-recovery-proc\n"
10160 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
10161 msgid "Return the recovery process enabled flag."
10165 #: ../fish/guestfish-actions.pod:1588
10166 msgid "get-selinux"
10167 msgstr "get-selinux"
10170 #: ../fish/guestfish-actions.pod:1590
10180 #: ../fish/guestfish-actions.pod:1592
10182 "This returns the current setting of the selinux flag which is passed to the "
10183 "appliance at boot time. See L</set-selinux>."
10187 #: ../fish/guestfish-actions.pod:1598
10192 #: ../fish/guestfish-actions.pod:1600
10200 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
10201 msgid "This returns the number of virtual CPUs assigned to the appliance."
10205 #: ../fish/guestfish-actions.pod:1604
10210 #: ../fish/guestfish-actions.pod:1606
10220 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
10222 "This returns the current state as an opaque integer. This is only useful "
10223 "for printing debug and internal error messages."
10227 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
10228 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
10229 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
10230 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
10231 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
10232 msgid "For more information on states, see L<guestfs(3)>."
10236 #: ../fish/guestfish-actions.pod:1613
10241 #: ../fish/guestfish-actions.pod:1615
10251 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
10252 msgid "Return the command trace flag."
10256 #: ../fish/guestfish-actions.pod:1619
10261 #: ../fish/guestfish-actions.pod:1621
10271 #: ../fish/guestfish-actions.pod:1623
10273 "Return the current umask. By default the umask is C<022> unless it has been "
10274 "set by calling L</umask>."
10278 #: ../fish/guestfish-actions.pod:1626
10279 msgid "get-verbose"
10280 msgstr "get-verbose"
10283 #: ../fish/guestfish-actions.pod:1628
10293 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10294 msgid "This returns the verbose messages flag."
10298 #: ../fish/guestfish-actions.pod:1632
10303 #: ../fish/guestfish-actions.pod:1634
10313 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10314 msgid "This gets the SELinux security context of the daemon."
10318 #: ../fish/guestfish-actions.pod:1638
10319 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10323 #: ../fish/guestfish-actions.pod:1641
10328 #: ../fish/guestfish-actions.pod:1643
10331 " getxattr path name\n"
10334 " getxattr шлях назва\n"
10338 #: ../fish/guestfish-actions.pod:1645
10340 "Get a single extended attribute from file C<path> named C<name>. This call "
10341 "follows symlinks. If you want to lookup an extended attribute for the "
10342 "symlink itself, use L</lgetxattr>."
10346 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
10348 "Normally it is better to get all extended attributes from a file in one go "
10349 "by calling L</getxattrs>. However some Linux filesystem implementations are "
10350 "buggy and do not provide a way to list out attributes. For these "
10351 "filesystems (notably ntfs-3g) you have to know the names of the extended "
10352 "attributes you want in advance and call this function."
10356 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
10357 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
10359 "Extended attribute values are blobs of binary data. If there is no extended "
10360 "attribute named C<name>, this returns an error."
10364 #: ../fish/guestfish-actions.pod:1659
10365 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10366 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10369 #: ../fish/guestfish-actions.pod:1661
10374 #: ../fish/guestfish-actions.pod:1663
10377 " getxattrs path\n"
10380 " getxattrs шлях\n"
10384 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10386 "This call lists the extended attributes of the file or directory C<path>."
10390 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10392 "At the system call level, this is a combination of the L<listxattr(2)> and "
10393 "L<getxattr(2)> calls."
10397 #: ../fish/guestfish-actions.pod:1671
10398 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10399 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
10402 #: ../fish/guestfish-actions.pod:1673
10403 msgid "glob-expand"
10404 msgstr "glob-expand"
10407 #: ../fish/guestfish-actions.pod:1675
10410 " glob-expand pattern\n"
10413 " glob-expand шаблон\n"
10417 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10419 "This command searches for all the pathnames matching C<pattern> according to "
10420 "the wildcard expansion rules used by the shell."
10424 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10426 "If no paths match, then this returns an empty list (note: not an error)."
10430 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10432 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10433 "GLOB_BRACE>. See that manual page for more details."
10437 #: ../fish/guestfish-actions.pod:1688
10442 #: ../fish/guestfish-actions.pod:1690
10445 " grep regex path\n"
10448 " grepi формальний_вираз шлях\n"
10452 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10453 msgid "This calls the external C<grep> program and returns the matching lines."
10457 #: ../fish/guestfish-actions.pod:1698
10462 #: ../fish/guestfish-actions.pod:1700
10465 " grepi regex path\n"
10468 " grepi формальний_вираз шлях\n"
10472 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10474 "This calls the external C<grep -i> program and returns the matching lines."
10478 #: ../fish/guestfish-actions.pod:1708
10479 msgid "grub-install"
10480 msgstr "grub-install"
10483 #: ../fish/guestfish-actions.pod:1710
10486 " grub-install root device\n"
10489 " grub-install кореневий пристрій\n"
10493 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10495 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10496 "with the root directory being C<root>."
10500 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10502 "There is currently no way in the API to install grub2, which is used by most "
10503 "modern Linux guests. It is possible to run the grub2 command from the "
10504 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10508 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10510 "This uses C<grub-install> from the host. Unfortunately grub is not always "
10511 "compatible with itself, so this only works in rather narrow circumstances. "
10512 "Careful testing with each guest version is advisable."
10516 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10518 "If grub-install reports the error \"No suitable drive was found in the "
10519 "generated device map.\" it may be that you need to create a C</boot/grub/"
10520 "device.map> file first that contains the mapping between grub device names "
10521 "and Linux device names. It is usually sufficient to create a file "
10526 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10529 " (hd0) /dev/vda\n"
10534 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10535 msgid "replacing C</dev/vda> with the name of the installation device."
10539 #: ../fish/guestfish-actions.pod:1748
10544 #: ../fish/guestfish-actions.pod:1750
10554 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10556 "This command returns up to the first 10 lines of a file as a list of strings."
10560 #: ../fish/guestfish-actions.pod:1758
10565 #: ../fish/guestfish-actions.pod:1760
10568 " head-n nrlines path\n"
10573 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10575 "If the parameter C<nrlines> is a positive number, this returns the first "
10576 "C<nrlines> lines of the file C<path>."
10580 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10582 "If the parameter C<nrlines> is a negative number, this returns lines from "
10583 "the file C<path>, excluding the last C<nrlines> lines."
10587 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
10588 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
10589 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10593 #: ../fish/guestfish-actions.pod:1773
10598 #: ../fish/guestfish-actions.pod:1775
10608 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10610 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
10611 "readable, canonical hex dump of the file."
10615 #: ../fish/guestfish-actions.pod:1783
10617 msgstr "initrd-cat"
10620 #: ../fish/guestfish-actions.pod:1785
10623 " initrd-cat initrdpath filename\n"
10626 " initrd-cat шлях_initrd назва_файла\n"
10630 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10632 "This command unpacks the file C<filename> from the initrd file called "
10633 "C<initrdpath>. The filename must be given I<without> the initial C</> "
10638 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10640 "For example, in guestfish you could use the following command to examine the "
10641 "boot script (usually called C</init>) contained in a Linux initrd or "
10646 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10649 " initrd-cat /boot/initrd-<version>.img init\n"
10654 #: ../fish/guestfish-actions.pod:1797
10655 msgid "See also L</initrd-list>."
10656 msgstr "Див. також L</initrd-list>."
10659 #: ../fish/guestfish-actions.pod:1802
10660 msgid "initrd-list"
10661 msgstr "initrd-list"
10664 #: ../fish/guestfish-actions.pod:1804
10667 " initrd-list path\n"
10670 " initrd-list шлях\n"
10674 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10675 msgid "This command lists out files contained in an initrd."
10679 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10681 "The files are listed without any initial C</> character. The files are "
10682 "listed in the order they appear (not necessarily alphabetical). Directory "
10683 "names are listed as separate items."
10687 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10689 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10690 "initrd. We I<only> support the newer initramfs format (compressed cpio "
10695 #: ../fish/guestfish-actions.pod:1816
10696 msgid "inotify-add-watch"
10697 msgstr "inotify-add-watch"
10700 #: ../fish/guestfish-actions.pod:1818
10703 " inotify-add-watch path mask\n"
10706 " inotify-add-watch шлях маска\n"
10710 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10711 msgid "Watch C<path> for the events listed in C<mask>."
10715 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10717 "Note that if C<path> is a directory then events within that directory are "
10718 "watched, but this does I<not> happen recursively (in subdirectories)."
10722 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10724 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10725 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10729 #: ../fish/guestfish-actions.pod:1830
10730 msgid "inotify-close"
10731 msgstr "inotify-close"
10734 #: ../fish/guestfish-actions.pod:1832
10744 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10746 "This closes the inotify handle which was previously opened by inotify_init. "
10747 "It removes all watches, throws away any pending events, and deallocates all "
10752 #: ../fish/guestfish-actions.pod:1838
10753 msgid "inotify-files"
10754 msgstr "inotify-files"
10757 #: ../fish/guestfish-actions.pod:1840
10767 #: ../fish/guestfish-actions.pod:1842
10769 "This function is a helpful wrapper around L</inotify-read> which just "
10770 "returns a list of pathnames of objects that were touched. The returned "
10771 "pathnames are sorted and deduplicated."
10775 #: ../fish/guestfish-actions.pod:1846
10776 msgid "inotify-init"
10777 msgstr "inotify-init"
10780 #: ../fish/guestfish-actions.pod:1848
10783 " inotify-init maxevents\n"
10788 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10790 "This command creates a new inotify handle. The inotify subsystem can be "
10791 "used to notify events which happen to objects in the guest filesystem."
10795 #: ../fish/guestfish-actions.pod:1854
10797 "C<maxevents> is the maximum number of events which will be queued up between "
10798 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
10799 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
10800 "default was 16384 events. Beyond this limit, the kernel throws away events, "
10801 "but records the fact that it threw them away by setting a flag "
10802 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10806 #: ../fish/guestfish-actions.pod:1864
10808 "Before any events are generated, you have to add some watches to the "
10809 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10810 "L</inotify-watch-all>."
10814 #: ../fish/guestfish-actions.pod:1870
10816 "Queued up events should be read periodically by calling L</inotify-read> (or "
10817 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
10818 "If you don't read the events out often enough then you risk the internal "
10819 "queue overflowing."
10823 #: ../fish/guestfish-actions.pod:1877
10825 "The handle should be closed after use by calling L</inotify-close>. This "
10826 "also removes any watches automatically."
10830 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10832 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10833 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
10834 "that there is one global inotify handle per libguestfs instance."
10838 #: ../fish/guestfish-actions.pod:1886
10839 msgid "inotify-read"
10840 msgstr "inotify-read"
10843 #: ../fish/guestfish-actions.pod:1888
10853 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10855 "Return the complete queue of events that have happened since the previous "
10860 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10861 msgid "If no events have happened, this returns an empty list."
10865 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10867 "I<Note>: In order to make sure that all events have been read, you must call "
10868 "this function repeatedly until it returns an empty list. The reason is that "
10869 "the call will read events up to the maximum appliance-to-host message size "
10870 "and leave remaining events in the queue."
10874 #: ../fish/guestfish-actions.pod:1901
10875 msgid "inotify-rm-watch"
10876 msgstr "inotify-rm-watch"
10879 #: ../fish/guestfish-actions.pod:1903
10882 " inotify-rm-watch wd\n"
10887 #: ../fish/guestfish-actions.pod:1905
10888 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10892 #: ../fish/guestfish-actions.pod:1908
10893 msgid "inspect-get-arch"
10894 msgstr "inspect-get-arch"
10897 #: ../fish/guestfish-actions.pod:1910
10900 " inspect-get-arch root\n"
10903 " inspect-get-arch корінь\n"
10907 #: ../fish/guestfish-actions.pod:1912
10909 "This returns the architecture of the inspected operating system. The "
10910 "possible return values are listed under L</file-architecture>."
10914 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10916 "If the architecture could not be determined, then the string C<unknown> is "
10921 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10922 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10923 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10924 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10925 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10926 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10927 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10928 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10929 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10930 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10931 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10932 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10933 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10934 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10935 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10936 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10937 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10938 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10942 #: ../fish/guestfish-actions.pod:1921
10943 msgid "inspect-get-distro"
10944 msgstr "inspect-get-distro"
10947 #: ../fish/guestfish-actions.pod:1923
10950 " inspect-get-distro root\n"
10953 " inspect-get-distro корінь\n"
10957 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10959 "This returns the distro (distribution) of the inspected operating system."
10963 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10964 msgid "Currently defined distros are:"
10968 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10969 msgid "\"archlinux\""
10970 msgstr "\"archlinux\""
10973 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10974 msgid "Arch Linux."
10975 msgstr "Arch Linux."
10978 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10983 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10988 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10990 msgstr "\"debian\""
10993 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10998 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
11000 msgstr "\"fedora\""
11003 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
11008 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
11010 msgstr "\"gentoo\""
11013 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
11018 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
11019 msgid "\"linuxmint\""
11020 msgstr "\"linuxmint\""
11023 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
11024 msgid "Linux Mint."
11025 msgstr "Linux Mint."
11028 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
11033 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
11038 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
11039 msgid "\"mandriva\""
11040 msgstr "\"mandriva\""
11043 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
11048 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
11053 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
11058 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
11059 msgid "\"opensuse\""
11063 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
11068 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
11070 msgstr "\"pardus\""
11073 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
11078 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
11079 msgid "\"redhat-based\""
11080 msgstr "\"redhat-based\""
11083 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
11084 msgid "Some Red Hat-derived distro."
11085 msgstr "Дистрибутив, що походить від Red Hat."
11088 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
11093 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
11094 msgid "Red Hat Enterprise Linux."
11095 msgstr "Red Hat Enterprise Linux."
11098 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
11099 msgid "\"scientificlinux\""
11100 msgstr "\"scientificlinux\""
11103 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
11104 msgid "Scientific Linux."
11105 msgstr "Scientific Linux."
11108 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
11109 msgid "\"slackware\""
11110 msgstr "\"slackware\""
11113 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
11115 msgstr "Slackware."
11118 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
11119 msgid "\"ttylinux\""
11123 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
11128 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
11130 msgstr "\"ubuntu\""
11133 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
11138 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
11139 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
11140 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
11141 msgid "\"unknown\""
11142 msgstr "\"unknown\""
11145 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
11146 msgid "The distro could not be determined."
11147 msgstr "Дистрибутив, тип якого не вдалося визначити."
11150 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
11151 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
11152 msgid "\"windows\""
11153 msgstr "\"windows\""
11156 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
11158 "Windows does not have distributions. This string is returned if the OS type "
11163 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
11164 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
11165 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
11167 "Future versions of libguestfs may return other strings here. The caller "
11168 "should be prepared to handle any string."
11172 #: ../fish/guestfish-actions.pod:2016
11173 msgid "inspect-get-drive-mappings"
11177 #: ../fish/guestfish-actions.pod:2018
11180 " inspect-get-drive-mappings root\n"
11185 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
11187 "This call is useful for Windows which uses a primitive system of assigning "
11188 "drive letters (like \"C:\") to partitions. This inspection API examines the "
11189 "Windows Registry to find out how disks/partitions are mapped to drive "
11190 "letters, and returns a hash table as in the example below:"
11194 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
11197 " C => /dev/vda2\n"
11198 " E => /dev/vdb1\n"
11199 " F => /dev/vdc1\n"
11204 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
11206 "Note that keys are drive letters. For Windows, the key is case insensitive "
11207 "and just contains the drive letter, without the customary colon separator "
11212 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
11214 "In future we may support other operating systems that also used drive "
11215 "letters, but the keys for those might not be case insensitive and might be "
11216 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
11221 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
11223 "For Windows guests, currently only hard drive mappings are returned. "
11224 "Removable disks (eg. DVD-ROMs) are ignored."
11228 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
11230 "For guests that do not use drive mappings, or if the drive mappings could "
11231 "not be determined, this returns an empty hash table."
11235 #: ../fish/guestfish-actions.pod:2045
11237 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11238 "get-mountpoints>, L</inspect-get-filesystems>."
11242 #: ../fish/guestfish-actions.pod:2049
11243 msgid "inspect-get-filesystems"
11244 msgstr "inspect-get-filesystems"
11247 #: ../fish/guestfish-actions.pod:2051
11250 " inspect-get-filesystems root\n"
11253 " inspect-get-filesystems корінь\n"
11257 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
11259 "This returns a list of all the filesystems that we think are associated with "
11260 "this operating system. This includes the root filesystem, other ordinary "
11261 "filesystems, and non-mounted devices like swap partitions."
11265 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
11267 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11268 "to be shared between operating systems."
11272 #: ../fish/guestfish-actions.pod:2061
11274 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11275 "get-mountpoints>."
11279 #: ../fish/guestfish-actions.pod:2064
11280 msgid "inspect-get-format"
11281 msgstr "inspect-get-format"
11284 #: ../fish/guestfish-actions.pod:2066
11287 " inspect-get-format root\n"
11290 " inspect-get-format корінь\n"
11294 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
11296 "This returns the format of the inspected operating system. You can use it "
11297 "to detect install images, live CDs and similar."
11301 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
11302 msgid "Currently defined formats are:"
11306 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
11307 msgid "\"installed\""
11308 msgstr "\"installed\""
11311 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
11312 msgid "This is an installed operating system."
11313 msgstr "Це встановлена операційна система."
11316 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
11317 msgid "\"installer\""
11321 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
11323 "The disk image being inspected is not an installed operating system, but a "
11324 "I<bootable> install disk, live CD, or similar."
11328 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
11329 msgid "The format of this disk image is not known."
11333 #: ../fish/guestfish-actions.pod:2095
11334 msgid "inspect-get-hostname"
11335 msgstr "inspect-get-hostname"
11338 #: ../fish/guestfish-actions.pod:2097
11341 " inspect-get-hostname root\n"
11344 " inspect-get-hostname корінь\n"
11348 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11350 "This function returns the hostname of the operating system as found by "
11351 "inspection of the guest's configuration files."
11355 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11357 "If the hostname could not be determined, then the string C<unknown> is "
11362 #: ../fish/guestfish-actions.pod:2107
11363 msgid "inspect-get-icon"
11367 #: ../fish/guestfish-actions.pod:2109
11370 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11375 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11377 "This function returns an icon corresponding to the inspected operating "
11378 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
11379 "to PNG if necessary)."
11383 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11385 "If it was not possible to get an icon this function returns a zero-length "
11386 "(non-NULL) buffer. I<Callers must check for this case>."
11390 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11392 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11393 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11394 "this file will be returned. You can disable favicons by passing the "
11395 "optional C<favicon> boolean as false (default is true)."
11399 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11401 "If finding the favicon fails, then we look in other places in the guest for "
11406 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11408 "If the optional C<highquality> boolean is true then only high quality icons "
11409 "are returned, which means only icons of high resolution with an alpha "
11410 "channel. The default (false) is to return any icon we can, even if it is of "
11411 "substandard quality."
11415 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11417 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11418 "before you call this, since it needs to read information from the guest "
11419 "filesystem during the call."
11423 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11425 "B<Security:> The icon data comes from the untrusted guest, and should be "
11426 "treated with caution. PNG files have been known to contain exploits. "
11427 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11428 "trying to process or display the icon."
11432 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11434 "The PNG image returned can be any size. It might not be square. Libguestfs "
11435 "tries to return the largest, highest quality icon available. The "
11436 "application must scale the icon to the required size."
11440 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11442 "Extracting icons from Windows guests requires the external C<wrestool> "
11443 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11444 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
11445 "installed separately."
11449 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11451 "Operating system icons are usually trademarks. Seek legal advice before "
11452 "using trademarks in applications."
11456 #: ../fish/guestfish-actions.pod:2173
11457 msgid "inspect-get-major-version"
11458 msgstr "inspect-get-major-version"
11461 #: ../fish/guestfish-actions.pod:2175
11464 " inspect-get-major-version root\n"
11467 " inspect-get-major-version корінь\n"
11471 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11473 "This returns the major version number of the inspected operating system."
11477 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11479 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11480 "popular public names used by the operating system. Notably the operating "
11481 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11482 "1). You can find out the real versions corresponding to releases of Windows "
11483 "by consulting Wikipedia or MSDN."
11487 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11488 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11489 msgid "If the version could not be determined, then C<0> is returned."
11493 #: ../fish/guestfish-actions.pod:2191
11494 msgid "inspect-get-minor-version"
11495 msgstr "inspect-get-minor-version"
11498 #: ../fish/guestfish-actions.pod:2193
11501 " inspect-get-minor-version root\n"
11504 " inspect-get-minor-version корінь\n"
11508 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11510 "This returns the minor version number of the inspected operating system."
11514 #: ../fish/guestfish-actions.pod:2200
11516 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11517 "get-major-version>."
11521 #: ../fish/guestfish-actions.pod:2203
11522 msgid "inspect-get-mountpoints"
11523 msgstr "inspect-get-mountpoints"
11526 #: ../fish/guestfish-actions.pod:2205
11529 " inspect-get-mountpoints root\n"
11532 " inspect-get-mountpoints корінь\n"
11536 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11538 "This returns a hash of where we think the filesystems associated with this "
11539 "operating system should be mounted. Callers should note that this is at "
11540 "best an educated guess made by reading configuration files such as C</etc/"
11541 "fstab>. I<In particular note> that this may return filesystems which are "
11542 "non-existent or not mountable and callers should be prepared to handle or "
11543 "ignore failures if they try to mount them."
11547 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11549 "Each element in the returned hashtable has a key which is the path of the "
11550 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11551 "mounted there (eg. C</dev/sda1>)."
11555 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11557 "Non-mounted devices such as swap devices are I<not> returned in this list."
11561 #: ../fish/guestfish-actions.pod:2224
11563 "For operating systems like Windows which still use drive letters, this call "
11564 "will only return an entry for the first drive \"mounted on\" C</>. For "
11565 "information about the mapping of drive letters to partitions, see L</inspect-"
11566 "get-drive-mappings>."
11570 #: ../fish/guestfish-actions.pod:2230
11572 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11573 "get-filesystems>."
11577 #: ../fish/guestfish-actions.pod:2233
11578 msgid "inspect-get-package-format"
11579 msgstr "inspect-get-package-format"
11582 #: ../fish/guestfish-actions.pod:2235
11585 " inspect-get-package-format root\n"
11588 " inspect-get-package-format корінь\n"
11592 #: ../fish/guestfish-actions.pod:2237
11594 "This function and L</inspect-get-package-management> return the package "
11595 "format and package management tool used by the inspected operating system. "
11596 "For example for Fedora these functions would return C<rpm> (package format) "
11597 "and C<yum> (package management)."
11601 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11603 "This returns the string C<unknown> if we could not determine the package "
11604 "format I<or> if the operating system does not have a real packaging system "
11609 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11611 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11612 "C<pkgsrc>. Future versions of libguestfs may return other strings."
11616 #: ../fish/guestfish-actions.pod:2253
11617 msgid "inspect-get-package-management"
11618 msgstr "inspect-get-package-management"
11621 #: ../fish/guestfish-actions.pod:2255
11624 " inspect-get-package-management root\n"
11627 " inspect-get-package-management корінь\n"
11631 #: ../fish/guestfish-actions.pod:2257
11633 "L</inspect-get-package-format> and this function return the package format "
11634 "and package management tool used by the inspected operating system. For "
11635 "example for Fedora these functions would return C<rpm> (package format) and "
11636 "C<yum> (package management)."
11640 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11642 "This returns the string C<unknown> if we could not determine the package "
11643 "management tool I<or> if the operating system does not have a real packaging "
11644 "system (eg. Windows)."
11648 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11650 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11651 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
11652 "versions of libguestfs may return other strings."
11656 #: ../fish/guestfish-actions.pod:2274
11657 msgid "inspect-get-product-name"
11658 msgstr "inspect-get-product-name"
11661 #: ../fish/guestfish-actions.pod:2276
11664 " inspect-get-product-name root\n"
11667 " inspect-get-product-name корінь\n"
11671 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11673 "This returns the product name of the inspected operating system. The "
11674 "product name is generally some freeform string which can be displayed to the "
11675 "user, but should not be parsed by programs."
11679 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11681 "If the product name could not be determined, then the string C<unknown> is "
11686 #: ../fish/guestfish-actions.pod:2288
11687 msgid "inspect-get-product-variant"
11691 #: ../fish/guestfish-actions.pod:2290
11694 " inspect-get-product-variant root\n"
11699 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11700 msgid "This returns the product variant of the inspected operating system."
11704 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11706 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11707 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11708 "is usually a string such as C<Client> or C<Server> (other values are "
11709 "possible). This can be used to distinguish consumer and enterprise versions "
11710 "of Windows that have the same version number (for example, Windows 7 and "
11711 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11712 "the latter is C<Server>)."
11716 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11718 "For enterprise Linux guests, in future we intend this to return the product "
11719 "variant such as C<Desktop>, C<Server> and so on. But this is not "
11720 "implemented at present."
11724 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11726 "If the product variant could not be determined, then the string C<unknown> "
11731 #: ../fish/guestfish-actions.pod:2311
11733 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11734 "get-product-name>, L</inspect-get-major-version>."
11738 #: ../fish/guestfish-actions.pod:2315
11739 msgid "inspect-get-roots"
11740 msgstr "inspect-get-roots"
11743 #: ../fish/guestfish-actions.pod:2317
11746 " inspect-get-roots\n"
11749 " inspect-get-roots\n"
11753 #: ../fish/guestfish-actions.pod:2319
11755 "This function is a convenient way to get the list of root devices, as "
11756 "returned from a previous call to L</inspect-os>, but without redoing the "
11757 "whole inspection process."
11761 #: ../fish/guestfish-actions.pod:2323
11763 "This returns an empty list if either no root devices were found or the "
11764 "caller has not called L</inspect-os>."
11768 #: ../fish/guestfish-actions.pod:2328
11769 msgid "inspect-get-type"
11770 msgstr "inspect-get-type"
11773 #: ../fish/guestfish-actions.pod:2330
11776 " inspect-get-type root\n"
11779 " inspect-get-type корінь\n"
11783 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11785 "This returns the type of the inspected operating system. Currently defined "
11790 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11795 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11796 msgid "Any Linux-based operating system."
11800 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11801 msgid "Any Microsoft Windows operating system."
11805 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11806 msgid "\"freebsd\""
11807 msgstr "\"freebsd\""
11810 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11815 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11820 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11825 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11826 msgid "The operating system type could not be determined."
11830 #: ../fish/guestfish-actions.pod:2364
11831 msgid "inspect-get-windows-current-control-set"
11835 #: ../fish/guestfish-actions.pod:2366
11838 " inspect-get-windows-current-control-set root\n"
11843 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
11845 "This returns the Windows CurrentControlSet of the inspected guest. The "
11846 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11850 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
11852 "This call assumes that the guest is Windows and that the Registry could be "
11853 "examined by inspection. If this is not the case then an error is returned."
11857 #: ../fish/guestfish-actions.pod:2377
11858 msgid "inspect-get-windows-systemroot"
11859 msgstr "inspect-get-windows-systemroot"
11862 #: ../fish/guestfish-actions.pod:2379
11865 " inspect-get-windows-systemroot root\n"
11868 " inspect-get-windows-systemroot корінь\n"
11872 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11874 "This returns the Windows systemroot of the inspected guest. The systemroot "
11875 "is a directory path such as C</WINDOWS>."
11879 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11881 "This call assumes that the guest is Windows and that the systemroot could be "
11882 "determined by inspection. If this is not the case then an error is returned."
11886 #: ../fish/guestfish-actions.pod:2390
11887 msgid "inspect-is-live"
11888 msgstr "inspect-is-live"
11891 #: ../fish/guestfish-actions.pod:2392
11894 " inspect-is-live root\n"
11897 " inspect-is-live корінь\n"
11901 #: ../fish/guestfish-actions.pod:2394
11903 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11904 "then this returns true if a live image was detected on the disk."
11908 #: ../fish/guestfish-actions.pod:2400
11909 msgid "inspect-is-multipart"
11910 msgstr "inspect-is-multipart"
11913 #: ../fish/guestfish-actions.pod:2402
11916 " inspect-is-multipart root\n"
11919 " inspect-is-multipart корінь\n"
11923 #: ../fish/guestfish-actions.pod:2404
11925 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11926 "then this returns true if the disk is part of a set."
11930 #: ../fish/guestfish-actions.pod:2410
11931 msgid "inspect-is-netinst"
11932 msgstr "inspect-is-netinst"
11935 #: ../fish/guestfish-actions.pod:2412
11938 " inspect-is-netinst root\n"
11941 " inspect-is-netinst корінь\n"
11945 #: ../fish/guestfish-actions.pod:2414
11947 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11948 "then this returns true if the disk is a network installer, ie. not a self-"
11949 "contained install CD but one which is likely to require network access to "
11950 "complete the install."
11954 #: ../fish/guestfish-actions.pod:2422
11955 msgid "inspect-list-applications"
11956 msgstr "inspect-list-applications"
11959 #: ../fish/guestfish-actions.pod:2424
11962 " inspect-list-applications root\n"
11965 " inspect-list-applications кореневий_каталог\n"
11969 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11970 msgid "Return the list of applications installed in the operating system."
11974 #: ../fish/guestfish-actions.pod:2428
11976 "I<Note:> This call works differently from other parts of the inspection "
11977 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11978 "then mount up the disks, before calling this. Listing applications is a "
11979 "significantly more difficult operation which requires access to the full "
11980 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11981 "are just returning data cached in the libguestfs handle, this call actually "
11982 "reads parts of the mounted filesystems during the call."
11986 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11988 "This returns an empty list if the inspection code was not able to determine "
11989 "the list of applications."
11993 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11994 msgid "The application structure contains the following fields:"
11998 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11999 msgid "C<app_name>"
12000 msgstr "C<app_name>"
12003 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
12005 "The name of the application. For Red Hat-derived and Debian-derived Linux "
12006 "guests, this is the package name."
12010 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
12011 msgid "C<app_display_name>"
12012 msgstr "C<app_display_name>"
12015 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
12017 "The display name of the application, sometimes localized to the install "
12018 "language of the guest operating system."
12022 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
12024 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
12025 "to display something can use C<app_name> instead."
12029 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
12030 msgid "C<app_epoch>"
12031 msgstr "C<app_epoch>"
12034 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
12036 "For package managers which use epochs, this contains the epoch of the "
12037 "package (an integer). If unavailable, this is returned as C<0>."
12041 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
12042 msgid "C<app_version>"
12043 msgstr "C<app_version>"
12046 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
12048 "The version string of the application or package. If unavailable this is "
12049 "returned as an empty string C<\"\">."
12053 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
12054 msgid "C<app_release>"
12055 msgstr "C<app_release>"
12058 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
12060 "The release string of the application or package, for package managers that "
12061 "use this. If unavailable this is returned as an empty string C<\"\">."
12065 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
12066 msgid "C<app_install_path>"
12067 msgstr "C<app_install_path>"
12070 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
12072 "The installation path of the application (on operating systems such as "
12073 "Windows which use installation paths). This path is in the format used by "
12074 "the guest operating system, it is not a libguestfs path."
12078 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
12079 msgid "If unavailable this is returned as an empty string C<\"\">."
12083 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
12084 msgid "C<app_trans_path>"
12085 msgstr "C<app_trans_path>"
12088 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
12090 "The install path translated into a libguestfs path. If unavailable this is "
12091 "returned as an empty string C<\"\">."
12095 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
12096 msgid "C<app_publisher>"
12097 msgstr "C<app_publisher>"
12100 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
12102 "The name of the publisher of the application, for package managers that use "
12103 "this. If unavailable this is returned as an empty string C<\"\">."
12107 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
12109 msgstr "C<app_url>"
12112 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
12114 "The URL (eg. upstream URL) of the application. If unavailable this is "
12115 "returned as an empty string C<\"\">."
12119 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
12120 msgid "C<app_source_package>"
12121 msgstr "C<app_source_package>"
12124 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
12126 "For packaging systems which support this, the name of the source package. "
12127 "If unavailable this is returned as an empty string C<\"\">."
12131 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
12132 msgid "C<app_summary>"
12133 msgstr "C<app_summary>"
12136 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
12138 "A short (usually one line) description of the application or package. If "
12139 "unavailable this is returned as an empty string C<\"\">."
12143 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
12144 msgid "C<app_description>"
12145 msgstr "C<app_description>"
12148 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
12150 "A longer description of the application or package. If unavailable this is "
12151 "returned as an empty string C<\"\">."
12155 #: ../fish/guestfish-actions.pod:2518
12157 msgstr "inspect-os"
12160 #: ../fish/guestfish-actions.pod:2520
12170 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
12172 "This function uses other libguestfs functions and certain heuristics to "
12173 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12174 "for operating systems."
12178 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
12179 msgid "The list returned is empty if no operating systems were found."
12183 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
12185 "If one operating system was found, then this returns a list with a single "
12186 "element, which is the name of the root filesystem of this operating system. "
12187 "It is also possible for this function to return a list containing more than "
12188 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12189 "element being the root filesystem of one of the operating systems."
12193 #: ../fish/guestfish-actions.pod:2535
12195 "You can pass the root string(s) returned to other L</inspect-get-*> "
12196 "functions in order to query further information about each operating system, "
12197 "such as the name and version."
12201 #: ../fish/guestfish-actions.pod:2540
12203 "This function uses other libguestfs features such as L</mount-ro> and L</"
12204 "umount-all> in order to mount and unmount filesystems and look at the "
12205 "contents. This should be called with no disks currently mounted. The "
12206 "function may also use Augeas, so any existing Augeas handle will be closed."
12210 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
12212 "This function cannot decrypt encrypted disks. The caller must do that first "
12213 "(supplying the necessary keys) if the disk is encrypted."
12217 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
12218 #: ../fish/guestfish-actions.pod:2809
12219 msgid "See also L</list-filesystems>."
12220 msgstr "Див. також L</list-filesystems>."
12223 #: ../fish/guestfish-actions.pod:2554
12224 msgid "is-blockdev"
12225 msgstr "is-blockdev"
12228 #: ../fish/guestfish-actions.pod:2556
12231 " is-blockdev path\n"
12234 " is-blockdev шлях\n"
12238 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
12240 "This returns C<true> if and only if there is a block device with the given "
12245 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
12246 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
12247 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
12248 #: ../fish/guestfish-actions.pod:2660
12249 msgid "See also L</stat>."
12250 msgstr "Див. також L</stat>."
12253 #: ../fish/guestfish-actions.pod:2563
12258 #: ../fish/guestfish-actions.pod:2565
12268 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
12270 "This returns true iff this handle is busy processing a command (in the "
12275 #: ../fish/guestfish-actions.pod:2572
12277 msgstr "is-chardev"
12280 #: ../fish/guestfish-actions.pod:2574
12283 " is-chardev path\n"
12286 " is-chardev шлях\n"
12290 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
12292 "This returns C<true> if and only if there is a character device with the "
12293 "given C<path> name."
12297 #: ../fish/guestfish-actions.pod:2581
12302 #: ../fish/guestfish-actions.pod:2583
12312 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
12314 "This returns true iff this handle is being configured (in the C<CONFIG> "
12319 #: ../fish/guestfish-actions.pod:2590
12324 #: ../fish/guestfish-actions.pod:2592
12334 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
12336 "This returns C<true> if and only if there is a directory with the given "
12337 "C<path> name. Note that it returns false for other objects like files."
12341 #: ../fish/guestfish-actions.pod:2600
12346 #: ../fish/guestfish-actions.pod:2602
12356 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
12358 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
12359 "given C<path> name."
12363 #: ../fish/guestfish-actions.pod:2609
12368 #: ../fish/guestfish-actions.pod:2611
12378 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
12380 "This returns C<true> if and only if there is a regular file with the given "
12381 "C<path> name. Note that it returns false for other objects like directories."
12385 #: ../fish/guestfish-actions.pod:2619
12386 msgid "is-launching"
12387 msgstr "is-launching"
12390 #: ../fish/guestfish-actions.pod:2621
12400 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
12402 "This returns true iff this handle is launching the subprocess (in the "
12403 "C<LAUNCHING> state)."
12407 #: ../fish/guestfish-actions.pod:2628
12412 #: ../fish/guestfish-actions.pod:2630
12418 " is-lv пристрій\n"
12422 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
12424 "This command tests whether C<device> is a logical volume, and returns true "
12425 "iff this is the case."
12429 #: ../fish/guestfish-actions.pod:2635
12434 #: ../fish/guestfish-actions.pod:2637
12444 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
12446 "This returns true iff this handle is ready to accept commands (in the "
12451 #: ../fish/guestfish-actions.pod:2644
12456 #: ../fish/guestfish-actions.pod:2646
12459 " is-socket path\n"
12462 " is-socket шлях\n"
12466 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
12468 "This returns C<true> if and only if there is a Unix domain socket with the "
12469 "given C<path> name."
12473 #: ../fish/guestfish-actions.pod:2653
12475 msgstr "is-symlink"
12478 #: ../fish/guestfish-actions.pod:2655
12481 " is-symlink path\n"
12484 " is-symlink шлях\n"
12488 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
12490 "This returns C<true> if and only if there is a symbolic link with the given "
12495 #: ../fish/guestfish-actions.pod:2662
12500 #: ../fish/guestfish-actions.pod:2664
12508 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
12510 "This returns true iff the file exists and the file is empty or it contains "
12515 #: ../fish/guestfish-actions.pod:2669
12516 msgid "is-zero-device"
12520 #: ../fish/guestfish-actions.pod:2671
12523 " is-zero-device device\n"
12528 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
12529 msgid "This returns true iff the device exists and contains all zero bytes."
12533 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
12534 msgid "Note that for large devices this can take a long time to run."
12538 #: ../fish/guestfish-actions.pod:2677
12539 msgid "kill-subprocess"
12540 msgstr "kill-subprocess"
12543 #: ../fish/guestfish-actions.pod:2679
12546 " kill-subprocess\n"
12549 " kill-subprocess\n"
12553 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
12554 msgid "This kills the qemu subprocess. You should never need to call this."
12558 #: ../fish/guestfish-actions.pod:2683
12563 #: ../fish/guestfish-actions.pod:2685
12568 #: ../fish/guestfish-actions.pod:2687
12578 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
12580 "Internally libguestfs is implemented by running a virtual machine using "
12585 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
12587 "You should call this after configuring the handle (eg. adding drives) but "
12588 "before performing any actions."
12592 #: ../fish/guestfish-actions.pod:2695
12597 #: ../fish/guestfish-actions.pod:2697
12600 " lchown owner group path\n"
12603 " lchown власник група шлях\n"
12607 #: ../fish/guestfish-actions.pod:2699
12609 "Change the file owner to C<owner> and group to C<group>. This is like L</"
12610 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12615 #: ../fish/guestfish-actions.pod:2707
12620 #: ../fish/guestfish-actions.pod:2709
12623 " lgetxattr path name\n"
12626 " lgetxattr шлях назва\n"
12630 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
12632 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
12633 "is a symlink, then this call returns an extended attribute from the symlink."
12637 #: ../fish/guestfish-actions.pod:2725
12638 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12639 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12642 #: ../fish/guestfish-actions.pod:2727
12644 msgstr "lgetxattrs"
12647 #: ../fish/guestfish-actions.pod:2729
12650 " lgetxattrs path\n"
12653 " lgetxattrs шлях\n"
12657 #: ../fish/guestfish-actions.pod:2731
12659 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12660 "it returns the extended attributes of the link itself."
12664 #: ../fish/guestfish-actions.pod:2735
12669 #: ../fish/guestfish-actions.pod:2737
12677 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
12679 "List all 9p filesystems attached to the guest. A list of mount tags is "
12684 #: ../fish/guestfish-actions.pod:2742
12685 msgid "list-devices"
12686 msgstr "list-devices"
12689 #: ../fish/guestfish-actions.pod:2744
12699 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
12700 msgid "List all the block devices."
12704 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
12705 msgid "The full block device names are returned, eg. C</dev/sda>."
12709 #: ../fish/guestfish-actions.pod:2752
12710 msgid "list-dm-devices"
12714 #: ../fish/guestfish-actions.pod:2754
12717 " list-dm-devices\n"
12722 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
12723 msgid "List all device mapper devices."
12727 #: ../fish/guestfish-actions.pod:2758
12729 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12730 "previous call to L</luks-open>."
12734 #: ../fish/guestfish-actions.pod:2761
12736 "Device mapper devices which correspond to logical volumes are I<not> "
12737 "returned in this list. Call L</lvs> if you want to list logical volumes."
12741 #: ../fish/guestfish-actions.pod:2765
12742 msgid "list-filesystems"
12743 msgstr "list-filesystems"
12746 #: ../fish/guestfish-actions.pod:2767
12749 " list-filesystems\n"
12752 " list-filesystems\n"
12756 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
12758 "This inspection command looks for filesystems on partitions, block devices "
12759 "and logical volumes, returning a list of devices containing filesystems and "
12764 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12766 "The return value is a hash, where the keys are the devices containing "
12767 "filesystems, and the values are the filesystem types. For example:"
12771 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12774 " \"/dev/sda1\" => \"ntfs\"\n"
12775 " \"/dev/sda2\" => \"ext2\"\n"
12776 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12777 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12782 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
12784 "The value can have the special value \"unknown\", meaning the content of the "
12785 "device is undetermined or empty. \"swap\" means a Linux swap partition."
12789 #: ../fish/guestfish-actions.pod:2786
12791 "This command runs other libguestfs commands, which might include L</mount> "
12792 "and L</umount>, and therefore you should use this soon after launch and only "
12793 "when nothing is mounted."
12797 #: ../fish/guestfish-actions.pod:2790
12799 "Not all of the filesystems returned will be mountable. In particular, swap "
12800 "partitions are returned in the list. Also this command does not check that "
12801 "each filesystem found is valid and mountable, and some filesystems might be "
12802 "mountable but require special options. Filesystems may not all belong to a "
12803 "single logical operating system (use L</inspect-os> to look for OSes)."
12807 #: ../fish/guestfish-actions.pod:2798
12808 msgid "list-partitions"
12809 msgstr "list-partitions"
12812 #: ../fish/guestfish-actions.pod:2800
12815 " list-partitions\n"
12818 " list-partitions\n"
12822 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
12823 msgid "List all the partitions detected on all block devices."
12827 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
12828 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12832 #: ../fish/guestfish-actions.pod:2806
12834 "This does not return logical volumes. For that you will need to call L</"
12839 #: ../fish/guestfish-actions.pod:2811
12844 #: ../fish/guestfish-actions.pod:2813
12854 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
12856 "List the files in C<directory> (relative to the root directory, there is no "
12857 "cwd) in the format of 'ls -la'."
12861 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
12863 "This command is mostly useful for interactive sessions. It is I<not> "
12864 "intended that you try to parse the output string."
12868 #: ../fish/guestfish-actions.pod:2821
12873 #: ../fish/guestfish-actions.pod:2823
12876 " ln target linkname\n"
12879 " ln призначення назва_посилання\n"
12883 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
12884 msgid "This command creates a hard link using the C<ln> command."
12888 #: ../fish/guestfish-actions.pod:2827
12893 #: ../fish/guestfish-actions.pod:2829
12896 " ln-f target linkname\n"
12899 " ln-f призначення назва_посилання\n"
12903 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12905 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12906 "option removes the link (C<linkname>) if it exists already."
12910 #: ../fish/guestfish-actions.pod:2834
12915 #: ../fish/guestfish-actions.pod:2836
12918 " ln-s target linkname\n"
12921 " ln-s призначення назва_посилання\n"
12925 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
12926 msgid "This command creates a symbolic link using the C<ln -s> command."
12930 #: ../fish/guestfish-actions.pod:2840
12935 #: ../fish/guestfish-actions.pod:2842
12938 " ln-sf target linkname\n"
12941 " ln-sf призначення назва_посилання\n"
12945 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12947 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12948 "option removes the link (C<linkname>) if it exists already."
12952 #: ../fish/guestfish-actions.pod:2847
12953 msgid "lremovexattr"
12954 msgstr "lremovexattr"
12957 #: ../fish/guestfish-actions.pod:2849
12960 " lremovexattr xattr path\n"
12965 #: ../fish/guestfish-actions.pod:2851
12967 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12968 "it removes an extended attribute of the link itself."
12972 #: ../fish/guestfish-actions.pod:2855
12977 #: ../fish/guestfish-actions.pod:2857
12987 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
12989 "List the files in C<directory> (relative to the root directory, there is no "
12990 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12994 #: ../fish/guestfish-actions.pod:2863
12996 "This command is mostly useful for interactive sessions. Programs should "
12997 "probably use L</readdir> instead."
13001 #: ../fish/guestfish-actions.pod:2866
13006 #: ../fish/guestfish-actions.pod:2868
13009 " lsetxattr xattr val vallen path\n"
13014 #: ../fish/guestfish-actions.pod:2870
13016 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13017 "sets an extended attribute of the link itself."
13021 #: ../fish/guestfish-actions.pod:2874
13026 #: ../fish/guestfish-actions.pod:2876
13036 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
13037 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
13038 msgid "Returns file information for the given C<path>."
13042 #: ../fish/guestfish-actions.pod:2880
13044 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13045 "the link is stat-ed, not the file it refers to."
13049 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
13050 msgid "This is the same as the C<lstat(2)> system call."
13054 #: ../fish/guestfish-actions.pod:2886
13059 #: ../fish/guestfish-actions.pod:2888
13062 " lstatlist path 'names ...'\n"
13067 #: ../fish/guestfish-actions.pod:2890
13069 "This call allows you to perform the L</lstat> operation on multiple files, "
13070 "where all files are in the directory C<path>. C<names> is the list of files "
13071 "from this directory."
13075 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
13077 "On return you get a list of stat structs, with a one-to-one correspondence "
13078 "to the C<names> list. If any name did not exist or could not be lstat'd, "
13079 "then the C<ino> field of that structure is set to C<-1>."
13083 #: ../fish/guestfish-actions.pod:2899
13085 "This call is intended for programs that want to efficiently list a directory "
13086 "contents without making many round-trips. See also L</lxattrlist> for a "
13087 "similarly efficient call for getting extended attributes. Very long "
13088 "directory listings might cause the protocol message size to be exceeded, "
13089 "causing this call to fail. The caller must split up such requests into "
13090 "smaller groups of names."
13094 #: ../fish/guestfish-actions.pod:2907
13095 msgid "luks-add-key"
13096 msgstr "luks-add-key"
13099 #: ../fish/guestfish-actions.pod:2909
13102 " luks-add-key device keyslot\n"
13107 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
13109 "This command adds a new key on LUKS device C<device>. C<key> is any "
13110 "existing key, and is used to access the device. C<newkey> is the new key to "
13111 "add. C<keyslot> is the key slot that will be replaced."
13115 #: ../fish/guestfish-actions.pod:2916
13117 "Note that if C<keyslot> already contains a key, then this command will "
13118 "fail. You have to use L</luks-kill-slot> first to remove that key."
13122 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
13123 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
13124 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
13126 "This command has one or more key or passphrase parameters. Guestfish will "
13127 "prompt for these separately."
13131 #: ../fish/guestfish-actions.pod:2923
13133 msgstr "luks-close"
13136 #: ../fish/guestfish-actions.pod:2925
13139 " luks-close device\n"
13142 " luks-close пристрій\n"
13146 #: ../fish/guestfish-actions.pod:2927
13148 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13149 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
13150 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13155 #: ../fish/guestfish-actions.pod:2933
13156 msgid "luks-format"
13157 msgstr "luks-format"
13160 #: ../fish/guestfish-actions.pod:2935
13163 " luks-format device keyslot\n"
13168 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
13170 "This command erases existing data on C<device> and formats the device as a "
13171 "LUKS encrypted device. C<key> is the initial key, which is added to key "
13172 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
13176 #: ../fish/guestfish-actions.pod:2945
13177 msgid "luks-format-cipher"
13178 msgstr "luks-format-cipher"
13181 #: ../fish/guestfish-actions.pod:2947
13184 " luks-format-cipher device keyslot cipher\n"
13189 #: ../fish/guestfish-actions.pod:2949
13191 "This command is the same as L</luks-format> but it also allows you to set "
13192 "the C<cipher> used."
13196 #: ../fish/guestfish-actions.pod:2955
13197 msgid "luks-kill-slot"
13198 msgstr "luks-kill-slot"
13201 #: ../fish/guestfish-actions.pod:2957
13204 " luks-kill-slot device keyslot\n"
13209 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
13211 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13212 "device C<device>. C<key> must be one of the I<other> keys."
13216 #: ../fish/guestfish-actions.pod:2966
13221 #: ../fish/guestfish-actions.pod:2968
13224 " luks-open device mapname\n"
13229 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
13231 "This command opens a block device which has been encrypted according to the "
13232 "Linux Unified Key Setup (LUKS) standard."
13236 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
13237 msgid "C<device> is the encrypted block device or partition."
13241 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
13243 "The caller must supply one of the keys associated with the LUKS block "
13244 "device, in the C<key> parameter."
13248 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
13250 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
13251 "writes to this block device are decrypted from and encrypted to the "
13252 "underlying C<device> respectively."
13256 #: ../fish/guestfish-actions.pod:2982
13258 "If this block device contains LVM volume groups, then calling L</vgscan> "
13259 "followed by L</vg-activate-all> will make them visible."
13263 #: ../fish/guestfish-actions.pod:2986
13264 msgid "Use L</list-dm-devices> to list all device mapper devices."
13268 #: ../fish/guestfish-actions.pod:2992
13269 msgid "luks-open-ro"
13270 msgstr "luks-open-ro"
13273 #: ../fish/guestfish-actions.pod:2994
13276 " luks-open-ro device mapname\n"
13281 #: ../fish/guestfish-actions.pod:2996
13283 "This is the same as L</luks-open> except that a read-only mapping is created."
13287 #: ../fish/guestfish-actions.pod:3002
13292 #: ../fish/guestfish-actions.pod:3004
13295 " lvcreate logvol volgroup mbytes\n"
13300 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
13302 "This creates an LVM logical volume called C<logvol> on the volume group "
13303 "C<volgroup>, with C<size> megabytes."
13307 #: ../fish/guestfish-actions.pod:3009
13308 msgid "lvm-canonical-lv-name"
13309 msgstr "lvm-canonical-lv-name"
13312 #: ../fish/guestfish-actions.pod:3011
13315 " lvm-canonical-lv-name lvname\n"
13320 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
13322 "This converts alternative naming schemes for LVs that you might find to the "
13323 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13328 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
13330 "This command returns an error if the C<lvname> parameter does not refer to a "
13335 #: ../fish/guestfish-actions.pod:3020
13336 msgid "See also L</is-lv>."
13337 msgstr "Див. також L</is-lv>."
13340 #: ../fish/guestfish-actions.pod:3022
13341 msgid "lvm-clear-filter"
13342 msgstr "lvm-clear-filter"
13345 #: ../fish/guestfish-actions.pod:3024
13348 " lvm-clear-filter\n"
13351 " lvm-clear-filter\n"
13355 #: ../fish/guestfish-actions.pod:3026
13357 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
13362 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
13363 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
13365 "This command also clears the LVM cache and performs a volume group scan."
13369 #: ../fish/guestfish-actions.pod:3032
13370 msgid "lvm-remove-all"
13371 msgstr "lvm-remove-all"
13374 #: ../fish/guestfish-actions.pod:3034
13377 " lvm-remove-all\n"
13380 " lvm-remove-all\n"
13384 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
13386 "This command removes all LVM logical volumes, volume groups and physical "
13391 #: ../fish/guestfish-actions.pod:3039
13392 msgid "lvm-set-filter"
13393 msgstr "lvm-set-filter"
13396 #: ../fish/guestfish-actions.pod:3041
13399 " lvm-set-filter 'devices ...'\n"
13402 " lvm-set-filter 'пристрої...'\n"
13406 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
13408 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13409 "block devices in the list C<devices>, and will ignore all other attached "
13414 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
13416 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13417 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
13418 "there are two types of duplication possible: either cloned PVs/VGs which "
13419 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13420 "same name. In normal operation you cannot create this situation, but you "
13421 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
13422 "inside the LVM metadata."
13426 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
13427 msgid "You can filter whole block devices or individual partitions."
13431 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
13433 "You cannot use this if any VG is currently in use (eg. contains a mounted "
13434 "filesystem), even if you are not filtering out that VG."
13438 #: ../fish/guestfish-actions.pod:3066
13443 #: ../fish/guestfish-actions.pod:3068
13446 " lvremove device\n"
13449 " lvremove пристрій\n"
13453 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
13455 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13456 "LV, such as C</dev/VG/LV>."
13460 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
13462 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13467 #: ../fish/guestfish-actions.pod:3076
13472 #: ../fish/guestfish-actions.pod:3078
13475 " lvrename logvol newlogvol\n"
13480 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
13481 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13485 #: ../fish/guestfish-actions.pod:3082
13490 #: ../fish/guestfish-actions.pod:3084
13493 " lvresize device mbytes\n"
13498 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
13500 "This resizes (expands or shrinks) an existing LVM logical volume to "
13501 "C<mbytes>. When reducing, data in the reduced part is lost."
13505 #: ../fish/guestfish-actions.pod:3090
13506 msgid "lvresize-free"
13507 msgstr "lvresize-free"
13510 #: ../fish/guestfish-actions.pod:3092
13513 " lvresize-free lv percent\n"
13518 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
13520 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13521 "remaining free space in the volume group. Commonly you would call this with "
13522 "pc = 100 which expands the logical volume as much as possible, using all "
13523 "remaining free space in the volume group."
13527 #: ../fish/guestfish-actions.pod:3100
13532 #: ../fish/guestfish-actions.pod:3102
13542 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
13544 "List all the logical volumes detected. This is the equivalent of the L<lvs"
13549 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
13551 "This returns a list of the logical volume device names (eg. C</dev/"
13552 "VolGroup00/LogVol00>)."
13556 #: ../fish/guestfish-actions.pod:3110
13557 msgid "See also L</lvs-full>, L</list-filesystems>."
13558 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13561 #: ../fish/guestfish-actions.pod:3112
13566 #: ../fish/guestfish-actions.pod:3114
13576 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
13578 "List all the logical volumes detected. This is the equivalent of the L<lvs"
13579 "(8)> command. The \"full\" version includes all fields."
13583 #: ../fish/guestfish-actions.pod:3119
13588 #: ../fish/guestfish-actions.pod:3121
13594 " lvuuid пристрій\n"
13598 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
13599 msgid "This command returns the UUID of the LVM LV C<device>."
13603 #: ../fish/guestfish-actions.pod:3125
13605 msgstr "lxattrlist"
13608 #: ../fish/guestfish-actions.pod:3127
13611 " lxattrlist path 'names ...'\n"
13616 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
13618 "This call allows you to get the extended attributes of multiple files, where "
13619 "all files are in the directory C<path>. C<names> is the list of files from "
13624 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
13626 "On return you get a flat list of xattr structs which must be interpreted "
13627 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
13628 "C<attrval> in this struct is zero-length to indicate there was an error "
13629 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13630 "number (the number of following attributes for this file, which could be C<"
13631 "\"0\">). Then after the first xattr struct are the zero or more attributes "
13632 "for the first named file. This repeats for the second and subsequent files."
13636 #: ../fish/guestfish-actions.pod:3143
13638 "This call is intended for programs that want to efficiently list a directory "
13639 "contents without making many round-trips. See also L</lstatlist> for a "
13640 "similarly efficient call for getting standard stats. Very long directory "
13641 "listings might cause the protocol message size to be exceeded, causing this "
13642 "call to fail. The caller must split up such requests into smaller groups of "
13647 #: ../fish/guestfish-actions.pod:3151
13652 #: ../fish/guestfish-actions.pod:3153
13662 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
13663 msgid "Create a directory named C<path>."
13667 #: ../fish/guestfish-actions.pod:3157
13669 msgstr "mkdir-mode"
13672 #: ../fish/guestfish-actions.pod:3159
13675 " mkdir-mode path mode\n"
13678 " mkdir-mode шлях режим\n"
13682 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
13684 "This command creates a directory, setting the initial permissions of the "
13685 "directory to C<mode>."
13689 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
13691 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13692 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
13697 #: ../fish/guestfish-actions.pod:3168
13698 msgid "See also L</mkdir>, L</umask>"
13699 msgstr "Див. також L</mkdir>, L</umask>"
13702 #: ../fish/guestfish-actions.pod:3170
13707 #: ../fish/guestfish-actions.pod:3172
13717 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
13719 "Create a directory named C<path>, creating any parent directories as "
13720 "necessary. This is like the C<mkdir -p> shell command."
13724 #: ../fish/guestfish-actions.pod:3177
13729 #: ../fish/guestfish-actions.pod:3179
13732 " mkdtemp template\n"
13735 " mkdtemp шаблон\n"
13739 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
13741 "This command creates a temporary directory. The C<template> parameter "
13742 "should be a full pathname for the temporary directory name with the final "
13743 "six characters being \"XXXXXX\"."
13747 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
13749 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13750 "being suitable for Windows filesystems."
13754 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
13755 msgid "The name of the temporary directory that was created is returned."
13759 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
13760 msgid "The temporary directory is created with mode 0700 and is owned by root."
13764 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
13766 "The caller is responsible for deleting the temporary directory and its "
13767 "contents after use."
13771 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
13772 msgid "See also: L<mkdtemp(3)>"
13773 msgstr "Див. також L<mkdtemp(3)>"
13776 #: ../fish/guestfish-actions.pod:3200
13781 #: ../fish/guestfish-actions.pod:3202
13784 " mke2fs-J fstype blocksize device journal\n"
13789 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
13791 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13792 "C<journal>. It is equivalent to the command:"
13796 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
13799 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13802 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
13806 #: ../fish/guestfish-actions.pod:3210
13807 msgid "See also L</mke2journal>."
13808 msgstr "Див. також L</mke2journal>."
13811 #: ../fish/guestfish-actions.pod:3212
13816 #: ../fish/guestfish-actions.pod:3214
13819 " mke2fs-JL fstype blocksize device label\n"
13824 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
13826 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13827 "the journal labeled C<label>."
13831 #: ../fish/guestfish-actions.pod:3219
13832 msgid "See also L</mke2journal-L>."
13833 msgstr "Див. також L</mke2journal-L>."
13836 #: ../fish/guestfish-actions.pod:3221
13841 #: ../fish/guestfish-actions.pod:3223
13844 " mke2fs-JU fstype blocksize device uuid\n"
13849 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
13851 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13852 "the journal with UUID C<uuid>."
13856 #: ../fish/guestfish-actions.pod:3228
13857 msgid "See also L</mke2journal-U>."
13858 msgstr "Див. також L</mke2journal-U>."
13861 #: ../fish/guestfish-actions.pod:3230
13862 msgid "mke2journal"
13863 msgstr "mke2journal"
13866 #: ../fish/guestfish-actions.pod:3232
13869 " mke2journal blocksize device\n"
13874 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
13876 "This creates an ext2 external journal on C<device>. It is equivalent to the "
13881 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
13884 " mke2fs -O journal_dev -b blocksize device\n"
13889 #: ../fish/guestfish-actions.pod:3239
13890 msgid "mke2journal-L"
13891 msgstr "mke2journal-L"
13894 #: ../fish/guestfish-actions.pod:3241
13897 " mke2journal-L blocksize label device\n"
13902 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
13903 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13907 #: ../fish/guestfish-actions.pod:3245
13908 msgid "mke2journal-U"
13909 msgstr "mke2journal-U"
13912 #: ../fish/guestfish-actions.pod:3247
13915 " mke2journal-U blocksize uuid device\n"
13920 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
13921 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13925 #: ../fish/guestfish-actions.pod:3251
13930 #: ../fish/guestfish-actions.pod:3253
13933 " mkfifo mode path\n"
13936 " mkfifo режим шлях\n"
13940 #: ../fish/guestfish-actions.pod:3255
13942 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13943 "is just a convenient wrapper around L</mknod>."
13947 #: ../fish/guestfish-actions.pod:3261
13952 #: ../fish/guestfish-actions.pod:3263
13955 " mkfs fstype device\n"
13958 " mkfs тип_файлової_системи пристрій\n"
13962 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
13964 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13965 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13969 #: ../fish/guestfish-actions.pod:3269
13974 #: ../fish/guestfish-actions.pod:3271
13977 " mkfs-b fstype blocksize device\n"
13982 #: ../fish/guestfish-actions.pod:3273
13984 "This call is similar to L</mkfs>, but it allows you to control the block "
13985 "size of the resulting filesystem. Supported block sizes depend on the "
13986 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13990 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
13991 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
13993 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13998 #: ../fish/guestfish-actions.pod:3281
14000 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14005 #: ../fish/guestfish-actions.pod:3288
14010 #: ../fish/guestfish-actions.pod:3290
14013 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14018 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
14020 "This function creates a filesystem on C<device>. The filesystem type is "
14021 "C<fstype>, for example C<ext3>."
14025 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
14026 msgid "C<blocksize>"
14027 msgstr "C<blocksize>"
14030 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
14032 "The filesystem block size. Supported block sizes depend on the filesystem "
14033 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14038 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
14039 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14043 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
14044 msgid "C<features>"
14045 msgstr "C<features>"
14048 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
14049 msgid "This passes the I<-O> parameter to the external mkfs program."
14053 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
14055 "For certain filesystem types, this allows extra filesystem features to be "
14056 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14060 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
14062 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14067 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
14072 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
14074 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14075 "sets the inode size (only for ext2/3/4 filesystems at present)."
14079 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
14080 msgid "C<sectorsize>"
14081 msgstr "C<sectorsize>"
14084 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
14086 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14087 "sets sector size for ufs filesystem."
14091 #: ../fish/guestfish-actions.pod:3335
14092 msgid "mkmountpoint"
14093 msgstr "mkmountpoint"
14096 #: ../fish/guestfish-actions.pod:3337
14099 " mkmountpoint exemptpath\n"
14104 #: ../fish/guestfish-actions.pod:3339
14106 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14107 "to create extra mountpoints before mounting the first filesystem."
14111 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
14113 "These calls are I<only> necessary in some very limited circumstances, mainly "
14114 "the case where you want to mount a mix of unrelated and/or read-only "
14115 "filesystems together."
14119 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
14121 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14122 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14123 "inside that. You can unpack this as follows in guestfish:"
14127 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
14130 " add-ro Fedora-11-i686-Live.iso\n"
14132 " mkmountpoint /cd\n"
14133 " mkmountpoint /sqsh\n"
14134 " mkmountpoint /ext3fs\n"
14135 " mount /dev/sda /cd\n"
14136 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14137 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14140 " add-ro Fedora-11-i686-Live.iso\n"
14142 " mkmountpoint /cd\n"
14143 " mkmountpoint /sqsh\n"
14144 " mkmountpoint /ext3fs\n"
14145 " mount /dev/sda /cd\n"
14146 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14147 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14151 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
14152 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14156 #: ../fish/guestfish-actions.pod:3363
14158 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
14159 "unexpected errors if you try to mix these calls. It is safest to manually "
14160 "unmount filesystems and remove mountpoints after use."
14164 #: ../fish/guestfish-actions.pod:3367
14166 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14167 "for this to work for manual mountpoints, you must ensure that the innermost "
14168 "mountpoints have the longest pathnames, as in the example code above."
14172 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
14174 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14178 #: ../fish/guestfish-actions.pod:3374
14180 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14181 "L</umount-all> to be called when the handle is closed which can also trigger "
14186 #: ../fish/guestfish-actions.pod:3378
14191 #: ../fish/guestfish-actions.pod:3380
14194 " mknod mode devmajor devminor path\n"
14199 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
14201 "This call creates block or character special devices, or named pipes (FIFOs)."
14205 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
14207 "The C<mode> parameter should be the mode, using the standard constants. "
14208 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14209 "used when creating block and character special devices."
14213 #: ../fish/guestfish-actions.pod:3390
14215 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14216 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14217 "regular file). These constants are available in the standard Linux header "
14218 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14219 "wrappers around this command which bitwise OR in the appropriate constant "
14224 #: ../fish/guestfish-actions.pod:3400
14229 #: ../fish/guestfish-actions.pod:3402
14232 " mknod-b mode devmajor devminor path\n"
14237 #: ../fish/guestfish-actions.pod:3404
14239 "This call creates a block device node called C<path> with mode C<mode> and "
14240 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
14241 "wrapper around L</mknod>."
14245 #: ../fish/guestfish-actions.pod:3410
14250 #: ../fish/guestfish-actions.pod:3412
14253 " mknod-c mode devmajor devminor path\n"
14258 #: ../fish/guestfish-actions.pod:3414
14260 "This call creates a char device node called C<path> with mode C<mode> and "
14261 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
14262 "wrapper around L</mknod>."
14266 #: ../fish/guestfish-actions.pod:3420
14271 #: ../fish/guestfish-actions.pod:3422
14277 " mkswap пристрій\n"
14281 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
14282 msgid "Create a swap partition on C<device>."
14286 #: ../fish/guestfish-actions.pod:3426
14291 #: ../fish/guestfish-actions.pod:3428
14294 " mkswap-L label device\n"
14297 " mkswap-L мітка пристрій\n"
14301 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
14302 msgid "Create a swap partition on C<device> with label C<label>."
14306 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
14308 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14309 "sda>), just to a partition. This appears to be a limitation of the kernel "
14314 #: ../fish/guestfish-actions.pod:3436
14319 #: ../fish/guestfish-actions.pod:3438
14322 " mkswap-U uuid device\n"
14325 " mkswap-U uuid пристрій\n"
14329 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
14330 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14334 #: ../fish/guestfish-actions.pod:3442
14335 msgid "mkswap-file"
14336 msgstr "mkswap-file"
14339 #: ../fish/guestfish-actions.pod:3444
14342 " mkswap-file path\n"
14345 " mkswap-file шлях\n"
14349 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
14350 msgid "Create a swap file."
14351 msgstr "Створити файл резервної пам’яті."
14354 #: ../fish/guestfish-actions.pod:3448
14356 "This command just writes a swap file signature to an existing file. To "
14357 "create the file itself, use something like L</fallocate>."
14361 #: ../fish/guestfish-actions.pod:3451
14366 #: ../fish/guestfish-actions.pod:3453
14369 " modprobe modulename\n"
14372 " modprobe назва_модуля\n"
14376 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
14377 msgid "This loads a kernel module in the appliance."
14381 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
14383 "The kernel module must have been whitelisted when libguestfs was built (see "
14384 "C<appliance/kmod.whitelist.in> in the source)."
14388 #: ../fish/guestfish-actions.pod:3460
14393 #: ../fish/guestfish-actions.pod:3462
14396 " mount device mountpoint\n"
14399 " mount пристрій точка_монтування\n"
14403 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
14405 "Mount a guest disk at a position in the filesystem. Block devices are named "
14406 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
14407 "those block devices contain partitions, they will have the usual names (eg. "
14408 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
14412 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
14414 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14415 "mounted on C</> before others can be mounted. Other filesystems can only be "
14416 "mounted on directories which already exist."
14420 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
14422 "The mounted filesystem is writable, if we have sufficient permissions on the "
14423 "underlying device."
14427 #: ../fish/guestfish-actions.pod:3478
14429 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14430 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
14431 "problems for users. If your program might need to work with older versions "
14432 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14433 "first parameter if you don't want any options)."
14437 #: ../fish/guestfish-actions.pod:3485
14442 #: ../fish/guestfish-actions.pod:3487
14445 " mount-9p mounttag mountpoint [options:..]\n"
14450 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
14452 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14457 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
14459 "If required, C<trans=virtio> will be automatically added to the options. "
14460 "Any other options required can be passed in the optional C<options> "
14465 #: ../fish/guestfish-actions.pod:3498
14467 msgstr "mount-loop"
14470 #: ../fish/guestfish-actions.pod:3500
14473 " mount-loop file mountpoint\n"
14478 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
14480 "This command lets you mount C<file> (a filesystem image in a file) on a "
14481 "mount point. It is entirely equivalent to the command C<mount -o loop file "
14486 #: ../fish/guestfish-actions.pod:3506
14487 msgid "mount-options"
14488 msgstr "mount-options"
14491 #: ../fish/guestfish-actions.pod:3508
14494 " mount-options options device mountpoint\n"
14499 #: ../fish/guestfish-actions.pod:3510
14501 "This is the same as the L</mount> command, but it allows you to set the "
14502 "mount options as for the L<mount(8)> I<-o> flag."
14506 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
14508 "If the C<options> parameter is an empty string, then no options are passed "
14509 "(all options default to whatever the filesystem uses)."
14513 #: ../fish/guestfish-actions.pod:3518
14518 #: ../fish/guestfish-actions.pod:3520
14521 " mount-ro device mountpoint\n"
14524 " mount-ro пристрій точка_монтування\n"
14528 #: ../fish/guestfish-actions.pod:3522
14530 "This is the same as the L</mount> command, but it mounts the filesystem with "
14531 "the read-only (I<-o ro>) flag."
14535 #: ../fish/guestfish-actions.pod:3525
14540 #: ../fish/guestfish-actions.pod:3527
14543 " mount-vfs options vfstype device mountpoint\n"
14548 #: ../fish/guestfish-actions.pod:3529
14550 "This is the same as the L</mount> command, but it allows you to set both the "
14551 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14555 #: ../fish/guestfish-actions.pod:3533
14556 msgid "mountpoints"
14557 msgstr "mountpoints"
14560 #: ../fish/guestfish-actions.pod:3535
14570 #: ../fish/guestfish-actions.pod:3537
14572 "This call is similar to L</mounts>. That call returns a list of devices. "
14573 "This one returns a hash table (map) of device name to directory where the "
14574 "device is mounted."
14578 #: ../fish/guestfish-actions.pod:3541
14583 #: ../fish/guestfish-actions.pod:3543
14593 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
14595 "This returns the list of currently mounted filesystems. It returns the list "
14596 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14600 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
14601 msgid "Some internal mounts are not shown."
14605 #: ../fish/guestfish-actions.pod:3550
14606 msgid "See also: L</mountpoints>"
14607 msgstr "Див. також L</mountpoints>"
14610 #: ../fish/guestfish-actions.pod:3552
14615 #: ../fish/guestfish-actions.pod:3554
14621 " mv джерело призначення\n"
14625 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
14627 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14628 "destination filename or destination directory."
14632 #: ../fish/guestfish-actions.pod:3559
14633 msgid "ntfs-3g-probe"
14634 msgstr "ntfs-3g-probe"
14637 #: ../fish/guestfish-actions.pod:3561
14640 " ntfs-3g-probe true|false device\n"
14645 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
14647 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14648 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
14649 "write, and some cannot be mounted at all)."
14653 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
14655 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
14656 "can be mounted read-write. Set it to false if you want to test if the "
14657 "volume can be mounted read-only."
14661 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
14663 "The return value is an integer which C<0> if the operation would succeed, or "
14664 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14668 #: ../fish/guestfish-actions.pod:3575
14670 msgstr "ntfsresize"
14673 #: ../fish/guestfish-actions.pod:3577
14676 " ntfsresize device\n"
14679 " ntfsresize пристрій\n"
14683 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
14684 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
14686 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14687 "size of the underlying device."
14691 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
14693 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14694 "consistency check (for safety). You have to boot into Windows to perform "
14695 "this check and clear this condition. Furthermore, ntfsresize refuses to "
14696 "resize filesystems which have been marked in this way. So in effect it is "
14697 "not possible to call ntfsresize multiple times on a single filesystem "
14698 "without booting into Windows between each resize."
14702 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
14703 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
14704 msgid "See also L<ntfsresize(8)>."
14705 msgstr "Див. також L<ntfsresize(8)>."
14708 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
14710 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14715 #: ../fish/guestfish-actions.pod:3599
14716 msgid "ntfsresize-opts"
14720 #: ../fish/guestfish-actions.pod:3601
14723 " ntfsresize-opts device [size:N] [force:true|false]\n"
14728 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
14730 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
14731 "resized to fit the container (eg. partition)."
14735 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
14740 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
14742 "If this option is true, then force the resize of the filesystem even if the "
14743 "filesystem is marked as requiring a consistency check."
14747 #: ../fish/guestfish-actions.pod:3620
14749 "After the resize operation, the filesystem is always marked as requiring a "
14750 "consistency check (for safety). You have to boot into Windows to perform "
14751 "this check and clear this condition. If you I<don't> set the C<force> "
14752 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14753 "a single filesystem without booting into Windows between each resize."
14757 #: ../fish/guestfish-actions.pod:3633
14758 msgid "ntfsresize-size"
14759 msgstr "ntfsresize-size"
14762 #: ../fish/guestfish-actions.pod:3635
14765 " ntfsresize-size device size\n"
14770 #: ../fish/guestfish-actions.pod:3637
14772 "This command is the same as L</ntfsresize> except that it allows you to "
14773 "specify the new size (in bytes) explicitly."
14777 #: ../fish/guestfish-actions.pod:3647
14782 #: ../fish/guestfish-actions.pod:3649
14785 " part-add device prlogex startsect endsect\n"
14790 #: ../fish/guestfish-actions.pod:3651
14792 "This command adds a partition to C<device>. If there is no partition table "
14793 "on the device, call L</part-init> first."
14797 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
14799 "The C<prlogex> parameter is the type of partition. Normally you should pass "
14800 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14801 "C<logical>) and C<e> (or C<extended>) partition types."
14805 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
14807 "C<startsect> and C<endsect> are the start and end of the partition in "
14808 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
14809 "from the end of the disk (C<-1> is the last sector)."
14813 #: ../fish/guestfish-actions.pod:3663
14815 "Creating a partition which covers the whole disk is not so easy. Use L</"
14816 "part-disk> to do that."
14820 #: ../fish/guestfish-actions.pod:3666
14825 #: ../fish/guestfish-actions.pod:3668
14828 " part-del device partnum\n"
14833 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
14834 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14838 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
14840 "Note that in the case of MBR partitioning, deleting an extended partition "
14841 "also deletes any logical partitions it contains."
14845 #: ../fish/guestfish-actions.pod:3676
14850 #: ../fish/guestfish-actions.pod:3678
14853 " part-disk device parttype\n"
14856 " part-disk пристрій тип_розділу\n"
14860 #: ../fish/guestfish-actions.pod:3680
14862 "This command is simply a combination of L</part-init> followed by L</part-"
14863 "add> to create a single primary partition covering the whole disk."
14867 #: ../fish/guestfish-actions.pod:3684
14869 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14870 "possible values are described in L</part-init>."
14874 #: ../fish/guestfish-actions.pod:3687
14875 msgid "part-get-bootable"
14876 msgstr "part-get-bootable"
14879 #: ../fish/guestfish-actions.pod:3689
14882 " part-get-bootable device partnum\n"
14887 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
14889 "This command returns true if the partition C<partnum> on C<device> has the "
14890 "bootable flag set."
14894 #: ../fish/guestfish-actions.pod:3694
14895 msgid "See also L</part-set-bootable>."
14896 msgstr "Див. також L</part-set-bootable>."
14899 #: ../fish/guestfish-actions.pod:3696
14900 msgid "part-get-mbr-id"
14901 msgstr "part-get-mbr-id"
14904 #: ../fish/guestfish-actions.pod:3698
14907 " part-get-mbr-id device partnum\n"
14912 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
14914 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14915 "partition C<partnum>."
14919 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
14921 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
14922 "undefined results for other partition table types (see L</part-get-"
14927 #: ../fish/guestfish-actions.pod:3707
14928 msgid "part-get-parttype"
14929 msgstr "part-get-parttype"
14932 #: ../fish/guestfish-actions.pod:3709
14935 " part-get-parttype device\n"
14938 " part-get-parttype пристрій\n"
14942 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
14944 "This command examines the partition table on C<device> and returns the "
14945 "partition table type (format) being used."
14949 #: ../fish/guestfish-actions.pod:3714
14951 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14952 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14953 "possible, although unusual. See L</part-init> for a full list."
14957 #: ../fish/guestfish-actions.pod:3719
14962 #: ../fish/guestfish-actions.pod:3721
14965 " part-init device parttype\n"
14970 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
14972 "This creates an empty partition table on C<device> of one of the partition "
14973 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14974 "(for large disks)."
14978 #: ../fish/guestfish-actions.pod:3727
14980 "Initially there are no partitions. Following this, you should call L</part-"
14981 "add> for each partition required."
14985 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
14986 msgid "Possible values for C<parttype> are:"
14990 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
14995 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
15000 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
15001 msgid "Intel EFI / GPT partition table."
15005 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
15007 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15008 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
15009 "the C<mbr> format."
15013 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
15018 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
15023 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
15025 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15026 "Windows. This partition type will B<only> work for device sizes up to 2 "
15027 "TB. For large disks we recommend using C<gpt>."
15031 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
15033 "Other partition table types that may work but are not supported include:"
15037 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
15042 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
15043 msgid "AIX disk labels."
15044 msgstr "Мітки дисків AIX."
15047 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
15052 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
15057 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
15058 msgid "Amiga \"Rigid Disk Block\" format."
15059 msgstr "Формат \"Rigid Disk Block\" Amiga."
15062 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
15067 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
15068 msgid "BSD disk labels."
15069 msgstr "Мітки дисків BSD."
15072 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
15077 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
15078 msgid "DASD, used on IBM mainframes."
15079 msgstr "DASD, використовувалися у мейнфреймах IBM."
15082 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
15087 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
15088 msgid "MIPS/SGI volumes."
15089 msgstr "Томи MIPS/SGI."
15092 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
15097 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
15098 msgid "Old Mac partition format. Modern Macs use C<gpt>."
15099 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15102 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
15107 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
15108 msgid "NEC PC-98 format, common in Japan apparently."
15109 msgstr "Формат NEC PC-98, поширений у Японії."
15112 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
15117 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
15118 msgid "Sun disk labels."
15119 msgstr "Мітки дисків Sun."
15122 #: ../fish/guestfish-actions.pod:3796
15127 #: ../fish/guestfish-actions.pod:3798
15130 " part-list device\n"
15133 " part-list device\n"
15137 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
15139 "This command parses the partition table on C<device> and returns the list of "
15140 "partitions found."
15144 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
15145 msgid "The fields in the returned structure are:"
15149 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
15150 msgid "B<part_num>"
15151 msgstr "B<part_num>"
15154 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
15155 msgid "Partition number, counting from 1."
15159 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
15160 msgid "B<part_start>"
15161 msgstr "B<part_start>"
15164 #: ../fish/guestfish-actions.pod:3813
15166 "Start of the partition I<in bytes>. To get sectors you have to divide by "
15167 "the device's sector size, see L</blockdev-getss>."
15171 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
15172 msgid "B<part_end>"
15173 msgstr "B<part_end>"
15176 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
15177 msgid "End of the partition in bytes."
15181 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
15182 msgid "B<part_size>"
15183 msgstr "B<part_size>"
15186 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
15187 msgid "Size of the partition in bytes."
15191 #: ../fish/guestfish-actions.pod:3826
15192 msgid "part-set-bootable"
15193 msgstr "part-set-bootable"
15196 #: ../fish/guestfish-actions.pod:3828
15199 " part-set-bootable device partnum true|false\n"
15204 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
15206 "This sets the bootable flag on partition numbered C<partnum> on device "
15207 "C<device>. Note that partitions are numbered from 1."
15211 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
15213 "The bootable flag is used by some operating systems (notably Windows) to "
15214 "determine which partition to boot from. It is by no means universally "
15219 #: ../fish/guestfish-actions.pod:3837
15220 msgid "part-set-mbr-id"
15221 msgstr "part-set-mbr-id"
15224 #: ../fish/guestfish-actions.pod:3839
15227 " part-set-mbr-id device partnum idbyte\n"
15232 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
15234 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15235 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
15236 "documentation are in fact hexadecimal numbers, but usually documented "
15237 "without any leading \"0x\" which might be confusing."
15241 #: ../fish/guestfish-actions.pod:3851
15242 msgid "part-set-name"
15243 msgstr "part-set-name"
15246 #: ../fish/guestfish-actions.pod:3853
15249 " part-set-name device partnum name\n"
15254 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
15256 "This sets the partition name on partition numbered C<partnum> on device "
15257 "C<device>. Note that partitions are numbered from 1."
15261 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
15263 "The partition name can only be set on certain types of partition table. "
15264 "This works on C<gpt> but not on C<mbr> partitions."
15268 #: ../fish/guestfish-actions.pod:3861
15269 msgid "part-to-dev"
15270 msgstr "part-to-dev"
15273 #: ../fish/guestfish-actions.pod:3863
15276 " part-to-dev partition\n"
15279 " part-to-dev розділ\n"
15283 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
15285 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15286 "partition number, returning the device name (eg. \"/dev/sdb\")."
15290 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
15292 "The named partition must exist, for example as a string returned from L</"
15293 "list-partitions>."
15297 #: ../fish/guestfish-actions.pod:3872
15298 msgid "See also L</part-to-partnum>."
15302 #: ../fish/guestfish-actions.pod:3874
15303 msgid "part-to-partnum"
15307 #: ../fish/guestfish-actions.pod:3876
15310 " part-to-partnum partition\n"
15315 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
15317 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15318 "partition number (eg. C<1>)."
15322 #: ../fish/guestfish-actions.pod:3884
15323 msgid "See also L</part-to-dev>."
15327 #: ../fish/guestfish-actions.pod:3886
15328 msgid "ping-daemon"
15329 msgstr "ping-daemon"
15332 #: ../fish/guestfish-actions.pod:3888
15342 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
15344 "This is a test probe into the guestfs daemon running inside the qemu "
15345 "subprocess. Calling this function checks that the daemon responds to the "
15346 "ping message, without affecting the daemon or attached block device(s) in "
15351 #: ../fish/guestfish-actions.pod:3895
15356 #: ../fish/guestfish-actions.pod:3897
15359 " pread path count offset\n"
15364 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
15366 "This command lets you read part of a file. It reads C<count> bytes of the "
15367 "file, starting at C<offset>, from file C<path>."
15371 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
15372 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
15374 "This may read fewer bytes than requested. For further details see the "
15375 "L<pread(2)> system call."
15379 #: ../fish/guestfish-actions.pod:3905
15380 msgid "See also L</pwrite>, L</pread-device>."
15381 msgstr "Див. також L</pwrite>, L</pread-device>."
15384 #: ../fish/guestfish-actions.pod:3910
15385 msgid "pread-device"
15386 msgstr "pread-device"
15389 #: ../fish/guestfish-actions.pod:3912
15392 " pread-device device count offset\n"
15397 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
15399 "This command lets you read part of a file. It reads C<count> bytes of "
15400 "C<device>, starting at C<offset>."
15404 #: ../fish/guestfish-actions.pod:3920
15405 msgid "See also L</pread>."
15406 msgstr "Див. також L</pread>."
15409 #: ../fish/guestfish-actions.pod:3925
15414 #: ../fish/guestfish-actions.pod:3927
15417 " pvcreate device\n"
15420 " pvcreate пристрій\n"
15424 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
15426 "This creates an LVM physical volume on the named C<device>, where C<device> "
15427 "should usually be a partition name such as C</dev/sda1>."
15431 #: ../fish/guestfish-actions.pod:3933
15436 #: ../fish/guestfish-actions.pod:3935
15439 " pvremove device\n"
15442 " pvremove пристрій\n"
15446 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
15448 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15453 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
15455 "The implementation uses the C<pvremove> command which refuses to wipe "
15456 "physical volumes that contain any volume groups, so you have to remove those "
15461 #: ../fish/guestfish-actions.pod:3944
15466 #: ../fish/guestfish-actions.pod:3946
15469 " pvresize device\n"
15472 " pvresize пристрій\n"
15476 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
15478 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15479 "the new size of the underlying device."
15483 #: ../fish/guestfish-actions.pod:3951
15484 msgid "pvresize-size"
15485 msgstr "pvresize-size"
15488 #: ../fish/guestfish-actions.pod:3953
15491 " pvresize-size device size\n"
15496 #: ../fish/guestfish-actions.pod:3955
15498 "This command is the same as L</pvresize> except that it allows you to "
15499 "specify the new size (in bytes) explicitly."
15503 #: ../fish/guestfish-actions.pod:3958
15508 #: ../fish/guestfish-actions.pod:3960
15518 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
15520 "List all the physical volumes detected. This is the equivalent of the L<pvs"
15525 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
15527 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15532 #: ../fish/guestfish-actions.pod:3968
15533 msgid "See also L</pvs-full>."
15534 msgstr "Див. також L</pvs-full>."
15537 #: ../fish/guestfish-actions.pod:3970
15542 #: ../fish/guestfish-actions.pod:3972
15552 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
15554 "List all the physical volumes detected. This is the equivalent of the L<pvs"
15555 "(8)> command. The \"full\" version includes all fields."
15559 #: ../fish/guestfish-actions.pod:3977
15564 #: ../fish/guestfish-actions.pod:3979
15570 " pvuuid пристрій\n"
15574 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
15575 msgid "This command returns the UUID of the LVM PV C<device>."
15579 #: ../fish/guestfish-actions.pod:3983
15584 #: ../fish/guestfish-actions.pod:3985
15587 " pwrite path content offset\n"
15592 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
15594 "This command writes to part of a file. It writes the data buffer C<content> "
15595 "to the file C<path> starting at offset C<offset>."
15599 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
15601 "This command implements the L<pwrite(2)> system call, and like that system "
15602 "call it may not write the full data requested. The return value is the "
15603 "number of bytes that were actually written to the file. This could even be "
15604 "0, although short writes are unlikely for regular files in ordinary "
15609 #: ../fish/guestfish-actions.pod:3996
15610 msgid "See also L</pread>, L</pwrite-device>."
15611 msgstr "Див. також L</pread>, L</pwrite-device>."
15614 #: ../fish/guestfish-actions.pod:4001
15615 msgid "pwrite-device"
15616 msgstr "pwrite-device"
15619 #: ../fish/guestfish-actions.pod:4003
15622 " pwrite-device device content offset\n"
15627 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
15629 "This command writes to part of a device. It writes the data buffer "
15630 "C<content> to C<device> starting at offset C<offset>."
15634 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
15636 "This command implements the L<pwrite(2)> system call, and like that system "
15637 "call it may not write the full data requested (although short writes to disk "
15638 "devices and partitions are probably impossible with standard Linux kernels)."
15642 #: ../fish/guestfish-actions.pod:4013
15643 msgid "See also L</pwrite>."
15644 msgstr "Див. також L</pwrite>."
15647 #: ../fish/guestfish-actions.pod:4018
15652 #: ../fish/guestfish-actions.pod:4020
15655 " read-file path\n"
15658 " read-file шлях\n"
15662 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
15663 msgid "This calls returns the contents of the file C<path> as a buffer."
15667 #: ../fish/guestfish-actions.pod:4025
15669 "Unlike L</cat>, this function can correctly handle files that contain "
15670 "embedded ASCII NUL characters. However unlike L</download>, this function "
15671 "is limited in the total size of file that can be handled."
15675 #: ../fish/guestfish-actions.pod:4033
15677 msgstr "read-lines"
15680 #: ../fish/guestfish-actions.pod:4035
15683 " read-lines path\n"
15686 " read-lines шлях\n"
15690 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
15692 "The file contents are returned as a list of lines. Trailing C<LF> and "
15693 "C<CRLF> character sequences are I<not> returned."
15697 #: ../fish/guestfish-actions.pod:4042
15699 "Note that this function cannot correctly handle binary files (specifically, "
15700 "files containing C<\\0> character which is treated as end of line). For "
15701 "those you need to use the L</read-file> function which has a more complex "
15706 #: ../fish/guestfish-actions.pod:4047
15711 #: ../fish/guestfish-actions.pod:4049
15717 " readdir каталог\n"
15721 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
15722 msgid "This returns the list of directory entries in directory C<dir>."
15726 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
15728 "All entries in the directory are returned, including C<.> and C<..>. The "
15729 "entries are I<not> sorted, but returned in the same order as the underlying "
15734 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
15736 "Also this call returns basic file type information about each file. The "
15737 "C<ftyp> field will contain one of the following characters:"
15741 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
15746 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
15747 msgid "Block special"
15748 msgstr "Блоковий особливий"
15751 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
15756 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
15757 msgid "Char special"
15758 msgstr "Символьний особливий"
15761 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
15766 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
15771 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
15776 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
15777 msgid "FIFO (named pipe)"
15778 msgstr "FIFO (іменований канал)"
15781 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
15786 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
15787 msgid "Symbolic link"
15788 msgstr "Символічне посилання"
15791 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
15796 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
15797 msgid "Regular file"
15798 msgstr "Звичайний файл"
15801 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
15806 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
15811 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
15816 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
15817 msgid "Unknown file type"
15818 msgstr "Невідомий тип файла"
15821 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
15826 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
15828 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15832 #: ../fish/guestfish-actions.pod:4101
15834 "This function is primarily intended for use by programs. To get a simple "
15835 "list of names, use L</ls>. To get a printable directory for human "
15836 "consumption, use L</ll>."
15840 #: ../fish/guestfish-actions.pod:4105
15845 #: ../fish/guestfish-actions.pod:4107
15855 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
15856 msgid "This command reads the target of a symbolic link."
15860 #: ../fish/guestfish-actions.pod:4111
15861 msgid "readlinklist"
15862 msgstr "readlinklist"
15865 #: ../fish/guestfish-actions.pod:4113
15868 " readlinklist path 'names ...'\n"
15873 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
15875 "This call allows you to do a C<readlink> operation on multiple files, where "
15876 "all files are in the directory C<path>. C<names> is the list of files from "
15881 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
15883 "On return you get a list of strings, with a one-to-one correspondence to the "
15884 "C<names> list. Each string is the value of the symbolic link."
15888 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
15890 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15891 "result string is the empty string C<\"\">. However the whole operation is "
15892 "completed even if there were C<readlink(2)> errors, and so you can call this "
15893 "function with names where you don't know if they are symbolic links already "
15894 "(albeit slightly less efficient)."
15898 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
15900 "This call is intended for programs that want to efficiently list a directory "
15901 "contents without making many round-trips. Very long directory listings "
15902 "might cause the protocol message size to be exceeded, causing this call to "
15903 "fail. The caller must split up such requests into smaller groups of names."
15907 #: ../fish/guestfish-actions.pod:4137
15912 #: ../fish/guestfish-actions.pod:4139
15922 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
15924 "Return the canonicalized absolute pathname of C<path>. The returned path "
15925 "has no C<.>, C<..> or symbolic link path elements."
15929 #: ../fish/guestfish-actions.pod:4144
15930 msgid "removexattr"
15931 msgstr "removexattr"
15934 #: ../fish/guestfish-actions.pod:4146
15937 " removexattr xattr path\n"
15942 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
15944 "This call removes the extended attribute named C<xattr> of the file C<path>."
15948 #: ../fish/guestfish-actions.pod:4151
15949 msgid "See also: L</lremovexattr>, L<attr(5)>."
15950 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15953 #: ../fish/guestfish-actions.pod:4153
15958 #: ../fish/guestfish-actions.pod:4155
15961 " resize2fs device\n"
15964 " resize2fs пристрій\n"
15968 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
15970 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15971 "underlying device."
15975 #: ../fish/guestfish-actions.pod:4160
15977 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15978 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15979 "gives an error about this and sometimes not. In any case, it is always safe "
15980 "to call L</e2fsck-f> before calling this function."
15984 #: ../fish/guestfish-actions.pod:4166
15985 msgid "resize2fs-M"
15986 msgstr "resize2fs-M"
15989 #: ../fish/guestfish-actions.pod:4168
15992 " resize2fs-M device\n"
15995 " resize2fs-M пристрій\n"
15999 #: ../fish/guestfish-actions.pod:4170
16001 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16002 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
16007 #: ../fish/guestfish-actions.pod:4174
16009 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16010 "and read the C<Block size> and C<Block count> values. These two numbers, "
16011 "multiplied together, give the resulting size of the minimal filesystem in "
16016 #: ../fish/guestfish-actions.pod:4179
16017 msgid "resize2fs-size"
16018 msgstr "resize2fs-size"
16021 #: ../fish/guestfish-actions.pod:4181
16024 " resize2fs-size device size\n"
16029 #: ../fish/guestfish-actions.pod:4183
16031 "This command is the same as L</resize2fs> except that it allows you to "
16032 "specify the new size (in bytes) explicitly."
16036 #: ../fish/guestfish-actions.pod:4186
16041 #: ../fish/guestfish-actions.pod:4188
16051 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
16052 msgid "Remove the single file C<path>."
16056 #: ../fish/guestfish-actions.pod:4192
16061 #: ../fish/guestfish-actions.pod:4194
16071 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
16073 "Remove the file or directory C<path>, recursively removing the contents if "
16074 "its a directory. This is like the C<rm -rf> shell command."
16078 #: ../fish/guestfish-actions.pod:4200
16083 #: ../fish/guestfish-actions.pod:4202
16093 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
16094 msgid "Remove the single directory C<path>."
16098 #: ../fish/guestfish-actions.pod:4206
16099 msgid "rmmountpoint"
16100 msgstr "rmmountpoint"
16103 #: ../fish/guestfish-actions.pod:4208
16106 " rmmountpoint exemptpath\n"
16111 #: ../fish/guestfish-actions.pod:4210
16113 "This calls removes a mountpoint that was previously created with L</"
16114 "mkmountpoint>. See L</mkmountpoint> for full details."
16118 #: ../fish/guestfish-actions.pod:4214
16119 msgid "scrub-device"
16120 msgstr "scrub-device"
16123 #: ../fish/guestfish-actions.pod:4216
16126 " scrub-device device\n"
16129 " scrub-device пристрій\n"
16133 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
16135 "This command writes patterns over C<device> to make data retrieval more "
16140 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
16141 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
16142 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
16144 "It is an interface to the L<scrub(1)> program. See that manual page for "
16149 #: ../fish/guestfish-actions.pod:4224
16151 msgstr "scrub-file"
16154 #: ../fish/guestfish-actions.pod:4226
16157 " scrub-file file\n"
16160 " scrub-file файл\n"
16164 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
16166 "This command writes patterns over a file to make data retrieval more "
16171 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
16172 msgid "The file is I<removed> after scrubbing."
16176 #: ../fish/guestfish-actions.pod:4236
16177 msgid "scrub-freespace"
16178 msgstr "scrub-freespace"
16181 #: ../fish/guestfish-actions.pod:4238
16184 " scrub-freespace dir\n"
16187 " scrub-freespace каталог\n"
16191 #: ../fish/guestfish-actions.pod:4240
16193 "This command creates the directory C<dir> and then fills it with files until "
16194 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16195 "deletes them. The intention is to scrub any free space on the partition "
16196 "containing C<dir>."
16200 #: ../fish/guestfish-actions.pod:4249
16202 msgstr "set-append"
16205 #: ../fish/guestfish-actions.pod:4251
16210 #: ../fish/guestfish-actions.pod:4253
16213 " set-append append\n"
16218 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
16220 "This function is used to add additional options to the guest kernel command "
16225 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
16227 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16228 "environment variable."
16232 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
16234 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16235 "(libguestfs always adds a few of its own)."
16239 #: ../fish/guestfish-actions.pod:4264
16240 msgid "set-attach-method"
16241 msgstr "set-attach-method"
16244 #: ../fish/guestfish-actions.pod:4266
16245 msgid "attach-method"
16249 #: ../fish/guestfish-actions.pod:4268
16252 " set-attach-method attachmethod\n"
16257 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
16259 "Set the method that libguestfs uses to connect to the back end guestfsd "
16260 "daemon. Possible methods are:"
16264 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
16265 #: ../src/guestfs.pod:2916
16266 msgid "C<appliance>"
16267 msgstr "C<appliance>"
16270 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
16272 "Launch an appliance and connect to it. This is the ordinary method and the "
16277 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
16278 msgid "C<unix:I<path>>"
16279 msgstr "C<unix:I<шлях>>"
16282 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
16283 msgid "Connect to the Unix domain socket I<path>."
16284 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16287 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
16289 "This method lets you connect to an existing daemon or (using virtio-serial) "
16290 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
16291 "RUNNING DAEMONS>."
16295 #: ../fish/guestfish-actions.pod:4290
16296 msgid "set-autosync"
16297 msgstr "set-autosync"
16300 #: ../fish/guestfish-actions.pod:4292
16305 #: ../fish/guestfish-actions.pod:4294
16308 " set-autosync true|false\n"
16311 " set-autosync true|false\n"
16315 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
16317 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
16318 "effort attempt to make filesystems consistent and synchronized when the "
16319 "handle is closed (also if the program exits without closing handles)."
16323 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
16325 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16326 "disabled by default)."
16330 #: ../fish/guestfish-actions.pod:4304
16332 msgstr "set-direct"
16335 #: ../fish/guestfish-actions.pod:4306
16340 #: ../fish/guestfish-actions.pod:4308
16343 " set-direct true|false\n"
16346 " set-direct true|false\n"
16350 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
16352 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16353 "passed directly through to the appliance once it is launched."
16357 #: ../fish/guestfish-actions.pod:4314
16359 "One consequence of this is that log messages aren't caught by the library "
16360 "and handled by L</set-log-message-callback>, but go straight to stdout."
16364 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
16365 msgid "You probably don't want to use this unless you know what you are doing."
16369 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
16370 msgid "The default is disabled."
16374 #: ../fish/guestfish-actions.pod:4323
16375 msgid "set-e2label"
16376 msgstr "set-e2label"
16379 #: ../fish/guestfish-actions.pod:4325
16382 " set-e2label device label\n"
16387 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
16389 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16390 "C<label>. Filesystem labels are limited to 16 characters."
16394 #: ../fish/guestfish-actions.pod:4331
16396 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16397 "label on a filesystem."
16401 #: ../fish/guestfish-actions.pod:4334
16403 msgstr "set-e2uuid"
16406 #: ../fish/guestfish-actions.pod:4336
16409 " set-e2uuid device uuid\n"
16414 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
16416 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16417 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
16418 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16422 #: ../fish/guestfish-actions.pod:4343
16424 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16425 "UUID of a filesystem."
16429 #: ../fish/guestfish-actions.pod:4346
16430 msgid "set-memsize"
16431 msgstr "set-memsize"
16434 #: ../fish/guestfish-actions.pod:4348
16439 #: ../fish/guestfish-actions.pod:4350
16442 " set-memsize memsize\n"
16447 #: ../fish/guestfish-actions.pod:4352
16449 "This sets the memory size in megabytes allocated to the qemu subprocess. "
16450 "This only has any effect if called before L</launch>."
16454 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
16456 "You can also change this by setting the environment variable "
16457 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16461 #: ../fish/guestfish-actions.pod:4363
16462 msgid "set-network"
16463 msgstr "set-network"
16466 #: ../fish/guestfish-actions.pod:4365
16471 #: ../fish/guestfish-actions.pod:4367
16474 " set-network true|false\n"
16477 " set-network true|false\n"
16481 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
16483 "If C<network> is true, then the network is enabled in the libguestfs "
16484 "appliance. The default is false."
16488 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
16490 "This affects whether commands are able to access the network (see L<guestfs"
16491 "(3)/RUNNING COMMANDS>)."
16495 #: ../fish/guestfish-actions.pod:4375
16497 "You must call this before calling L</launch>, otherwise it has no effect."
16501 #: ../fish/guestfish-actions.pod:4378
16506 #: ../fish/guestfish-actions.pod:4382
16509 " set-path searchpath\n"
16514 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
16515 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16519 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
16521 "The default is C<$libdir/guestfs> unless overridden by setting "
16522 "C<LIBGUESTFS_PATH> environment variable."
16526 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
16527 msgid "Setting C<path> to C<NULL> restores the default path."
16531 #: ../fish/guestfish-actions.pod:4391
16536 #: ../fish/guestfish-actions.pod:4393
16541 #: ../fish/guestfish-actions.pod:4395
16544 " set-pgroup true|false\n"
16549 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
16551 "If C<pgroup> is true, child processes are placed into their own process "
16556 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
16558 "The practical upshot of this is that signals like C<SIGINT> (from users "
16559 "pressing C<^C>) won't be received by the child process."
16563 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
16565 "The default for this flag is false, because usually you want C<^C> to kill "
16570 #: ../fish/guestfish-actions.pod:4406
16575 #: ../fish/guestfish-actions.pod:4408
16580 #: ../fish/guestfish-actions.pod:4410
16590 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
16591 msgid "Set the qemu binary that we will use."
16595 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
16597 "The default is chosen when the library was compiled by the configure script."
16601 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
16603 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16608 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
16609 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16613 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
16615 "Note that you should call this function as early as possible after creating "
16616 "the handle. This is because some pre-launch operations depend on testing "
16617 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
16618 "don't retest features, and so you might see inconsistent results. Using the "
16619 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16620 "the qemu binary at the same time as the handle is created."
16624 #: ../fish/guestfish-actions.pod:4430
16625 msgid "set-recovery-proc"
16626 msgstr "set-recovery-proc"
16629 #: ../fish/guestfish-actions.pod:4432
16630 msgid "recovery-proc"
16631 msgstr "recovery-proc"
16634 #: ../fish/guestfish-actions.pod:4434
16637 " set-recovery-proc true|false\n"
16640 " set-recovery-proc true|false\n"
16644 #: ../fish/guestfish-actions.pod:4436
16646 "If this is called with the parameter C<false> then L</launch> does not "
16647 "create a recovery process. The purpose of the recovery process is to stop "
16648 "runaway qemu processes in the case where the main program aborts abruptly."
16652 #: ../fish/guestfish-actions.pod:4441
16654 "This only has any effect if called before L</launch>, and the default is "
16659 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
16661 "About the only time when you would want to disable this is if the main "
16662 "process will fork itself into the background (\"daemonize\" itself). In "
16663 "this case the recovery process thinks that the main program has disappeared "
16664 "and so kills qemu, which is not very helpful."
16668 #: ../fish/guestfish-actions.pod:4450
16669 msgid "set-selinux"
16670 msgstr "set-selinux"
16673 #: ../fish/guestfish-actions.pod:4452
16678 #: ../fish/guestfish-actions.pod:4454
16681 " set-selinux true|false\n"
16684 " set-selinux true|false\n"
16688 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
16690 "This sets the selinux flag that is passed to the appliance at boot time. "
16691 "The default is C<selinux=0> (disabled)."
16695 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
16697 "Note that if SELinux is enabled, it is always in Permissive mode "
16698 "(C<enforcing=0>)."
16702 #: ../fish/guestfish-actions.pod:4465
16707 #: ../fish/guestfish-actions.pod:4467
16712 #: ../fish/guestfish-actions.pod:4469
16720 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
16722 "Change the number of virtual CPUs assigned to the appliance. The default is "
16723 "C<1>. Increasing this may improve performance, though often it has no "
16728 #: ../fish/guestfish-actions.pod:4475
16729 msgid "This function must be called before L</launch>."
16733 #: ../fish/guestfish-actions.pod:4477
16738 #: ../fish/guestfish-actions.pod:4479
16743 #: ../fish/guestfish-actions.pod:4481
16746 " set-trace true|false\n"
16749 " set-trace true|false\n"
16753 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
16755 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16756 "return values are traced."
16760 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
16762 "If you want to trace C API calls into libguestfs (and other libraries) then "
16763 "possibly a better way is to use the external ltrace(1) command."
16767 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
16769 "Command traces are disabled unless the environment variable "
16770 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16774 #: ../fish/guestfish-actions.pod:4493
16776 "Trace messages are normally sent to C<stderr>, unless you register a "
16777 "callback to send them somewhere else (see L</set-event-callback>)."
16781 #: ../fish/guestfish-actions.pod:4497
16782 msgid "set-verbose"
16783 msgstr "set-verbose"
16786 #: ../fish/guestfish-actions.pod:4499
16791 #: ../fish/guestfish-actions.pod:4501
16794 " set-verbose true|false\n"
16797 " set-verbose true|false\n"
16801 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
16802 msgid "If C<verbose> is true, this turns on verbose messages."
16806 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
16808 "Verbose messages are disabled unless the environment variable "
16809 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16813 #: ../fish/guestfish-actions.pod:4508
16815 "Verbose messages are normally sent to C<stderr>, unless you register a "
16816 "callback to send them somewhere else (see L</set-event-callback>)."
16820 #: ../fish/guestfish-actions.pod:4512
16825 #: ../fish/guestfish-actions.pod:4514
16828 " setcon context\n"
16831 " setcon контекст\n"
16835 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
16837 "This sets the SELinux security context of the daemon to the string "
16842 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
16843 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16847 #: ../fish/guestfish-actions.pod:4521
16852 #: ../fish/guestfish-actions.pod:4523
16855 " setxattr xattr val vallen path\n"
16860 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
16862 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16863 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
16867 #: ../fish/guestfish-actions.pod:4529
16868 msgid "See also: L</lsetxattr>, L<attr(5)>."
16869 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16872 #: ../fish/guestfish-actions.pod:4531
16877 #: ../fish/guestfish-actions.pod:4533
16880 " sfdisk device cyls heads sectors 'lines ...'\n"
16885 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
16887 "This is a direct interface to the L<sfdisk(8)> program for creating "
16888 "partitions on block devices."
16892 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
16893 msgid "C<device> should be a block device, for example C</dev/sda>."
16897 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
16899 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16900 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16901 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
16902 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
16903 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16904 "the kernel) cannot work out the right geometry and you will need to tell it."
16908 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
16910 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
16911 "refer to the L<sfdisk(8)> manpage."
16915 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
16917 "To create a single partition occupying the whole disk, you would pass "
16918 "C<lines> as a single element list, when the single element being the string "
16923 #: ../fish/guestfish-actions.pod:4555
16924 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16925 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16928 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
16929 #: ../fish/guestfish-actions.pod:4597
16931 "I<This function is deprecated.> In new code, use the L</part_add> call "
16936 #: ../fish/guestfish-actions.pod:4565
16941 #: ../fish/guestfish-actions.pod:4567
16944 " sfdiskM device 'lines ...'\n"
16949 #: ../fish/guestfish-actions.pod:4569
16951 "This is a simplified interface to the L</sfdisk> command, where partition "
16952 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16953 "you don't need to specify the cyls, heads and sectors parameters which were "
16954 "rarely if ever used anyway."
16958 #: ../fish/guestfish-actions.pod:4575
16959 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16961 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16964 #: ../fish/guestfish-actions.pod:4585
16969 #: ../fish/guestfish-actions.pod:4587
16972 " sfdisk-N device partnum cyls heads sectors line\n"
16977 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
16979 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16980 "(note: C<n> counts from 1)."
16984 #: ../fish/guestfish-actions.pod:4592
16986 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16987 "cyls/heads/sectors parameters."
16991 #: ../fish/guestfish-actions.pod:4595
16992 msgid "See also: L</part-add>"
16993 msgstr "Див. також L</part-add>"
16996 #: ../fish/guestfish-actions.pod:4604
16997 msgid "sfdisk-disk-geometry"
16998 msgstr "sfdisk-disk-geometry"
17001 #: ../fish/guestfish-actions.pod:4606
17004 " sfdisk-disk-geometry device\n"
17007 " sfdisk-disk-geometry пристрій\n"
17011 #: ../fish/guestfish-actions.pod:4608
17013 "This displays the disk geometry of C<device> read from the partition table. "
17014 "Especially in the case where the underlying block device has been resized, "
17015 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17016 "kernel-geometry>)."
17020 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
17021 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
17022 msgid "The result is in human-readable format, and not designed to be parsed."
17026 #: ../fish/guestfish-actions.pod:4616
17027 msgid "sfdisk-kernel-geometry"
17028 msgstr "sfdisk-kernel-geometry"
17031 #: ../fish/guestfish-actions.pod:4618
17034 " sfdisk-kernel-geometry device\n"
17037 " sfdisk-kernel-geometry пристрій\n"
17041 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
17042 msgid "This displays the kernel's idea of the geometry of C<device>."
17046 #: ../fish/guestfish-actions.pod:4625
17051 #: ../fish/guestfish-actions.pod:4627
17054 " sfdisk-l device\n"
17057 " sfdisk-l пристрій\n"
17061 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
17063 "This displays the partition table on C<device>, in the human-readable output "
17064 "of the L<sfdisk(8)> command. It is not intended to be parsed."
17068 #: ../fish/guestfish-actions.pod:4633
17069 msgid "See also: L</part-list>"
17070 msgstr "Див. також L</part-list>"
17073 #: ../fish/guestfish-actions.pod:4635
17075 "I<This function is deprecated.> In new code, use the L</part_list> call "
17080 #: ../fish/guestfish-actions.pod:4642
17085 #: ../fish/guestfish-actions.pod:4644
17095 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
17097 "This call runs a command from the guest filesystem via the guest's C</bin/"
17102 #: ../fish/guestfish-actions.pod:4649
17103 msgid "This is like L</command>, but passes the command to:"
17107 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
17110 " /bin/sh -c \"command\"\n"
17115 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
17117 "Depending on the guest's shell, this usually results in wildcards being "
17118 "expanded, shell expressions being interpolated and so on."
17122 #: ../fish/guestfish-actions.pod:4657
17123 msgid "All the provisos about L</command> apply to this call."
17127 #: ../fish/guestfish-actions.pod:4659
17132 #: ../fish/guestfish-actions.pod:4661
17135 " sh-lines command\n"
17138 " sh-lines команда\n"
17142 #: ../fish/guestfish-actions.pod:4663
17143 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17147 #: ../fish/guestfish-actions.pod:4666
17148 msgid "See also: L</command-lines>"
17149 msgstr "Див. також L</command-lines>"
17152 #: ../fish/guestfish-actions.pod:4668
17157 #: ../fish/guestfish-actions.pod:4670
17163 " sleep час_у_секундах\n"
17167 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
17168 msgid "Sleep for C<secs> seconds."
17172 #: ../fish/guestfish-actions.pod:4674
17177 #: ../fish/guestfish-actions.pod:4676
17187 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
17188 msgid "This is the same as the C<stat(2)> system call."
17192 #: ../fish/guestfish-actions.pod:4682
17197 #: ../fish/guestfish-actions.pod:4684
17207 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
17209 "Returns file system statistics for any mounted file system. C<path> should "
17210 "be a file or directory in the mounted file system (typically it is the mount "
17211 "point itself, but it doesn't need to be)."
17215 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
17216 msgid "This is the same as the C<statvfs(2)> system call."
17220 #: ../fish/guestfish-actions.pod:4692
17225 #: ../fish/guestfish-actions.pod:4694
17235 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
17237 "This runs the L<strings(1)> command on a file and returns the list of "
17238 "printable strings found."
17242 #: ../fish/guestfish-actions.pod:4702
17247 #: ../fish/guestfish-actions.pod:4704
17250 " strings-e encoding path\n"
17253 " strings-e кодування шлях\n"
17257 #: ../fish/guestfish-actions.pod:4706
17259 "This is like the L</strings> command, but allows you to specify the encoding "
17260 "of strings that are looked for in the source file C<path>."
17264 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
17265 msgid "Allowed encodings are:"
17266 msgstr "Можливими кодуваннями є:"
17269 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
17274 #: ../fish/guestfish-actions.pod:4716
17276 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17277 "ISO-8859-X (this is what L</strings> uses)."
17281 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
17286 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
17287 msgid "Single 8-bit-byte characters."
17288 msgstr "Окремі 8-бітові-байтові символи."
17291 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
17296 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
17297 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17301 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
17302 msgid "l (lower case letter L)"
17306 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
17308 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
17309 "examining binaries in Windows guests."
17313 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
17318 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
17319 msgid "32-bit big endian such as UCS-4BE."
17323 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
17328 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
17329 msgid "32-bit little endian such as UCS-4LE."
17333 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
17334 msgid "The returned strings are transcoded to UTF-8."
17338 #: ../fish/guestfish-actions.pod:4748
17339 msgid "swapoff-device"
17340 msgstr "swapoff-device"
17343 #: ../fish/guestfish-actions.pod:4750
17346 " swapoff-device device\n"
17349 " swapoff-device пристрій\n"
17353 #: ../fish/guestfish-actions.pod:4752
17355 "This command disables the libguestfs appliance swap device or partition "
17356 "named C<device>. See L</swapon-device>."
17360 #: ../fish/guestfish-actions.pod:4756
17361 msgid "swapoff-file"
17362 msgstr "swapoff-file"
17365 #: ../fish/guestfish-actions.pod:4758
17368 " swapoff-file file\n"
17371 " swapoff-file файл\n"
17375 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
17376 msgid "This command disables the libguestfs appliance swap on file."
17380 #: ../fish/guestfish-actions.pod:4762
17381 msgid "swapoff-label"
17382 msgstr "swapoff-label"
17385 #: ../fish/guestfish-actions.pod:4764
17388 " swapoff-label label\n"
17391 " swapoff-label мітка\n"
17395 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
17397 "This command disables the libguestfs appliance swap on labeled swap "
17402 #: ../fish/guestfish-actions.pod:4769
17403 msgid "swapoff-uuid"
17404 msgstr "swapoff-uuid"
17407 #: ../fish/guestfish-actions.pod:4771
17410 " swapoff-uuid uuid\n"
17413 " swapoff-uuid uuid\n"
17417 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
17419 "This command disables the libguestfs appliance swap partition with the given "
17424 #: ../fish/guestfish-actions.pod:4776
17425 msgid "swapon-device"
17426 msgstr "swapon-device"
17429 #: ../fish/guestfish-actions.pod:4778
17432 " swapon-device device\n"
17435 " swapon-device пристрій\n"
17439 #: ../fish/guestfish-actions.pod:4780
17441 "This command enables the libguestfs appliance to use the swap device or "
17442 "partition named C<device>. The increased memory is made available for all "
17443 "commands, for example those run using L</command> or L</sh>."
17447 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
17449 "Note that you should not swap to existing guest swap partitions unless you "
17450 "know what you are doing. They may contain hibernation information, or other "
17451 "information that the guest doesn't want you to trash. You also risk leaking "
17452 "information about the host to the guest this way. Instead, attach a new "
17453 "host device to the guest and swap on that."
17457 #: ../fish/guestfish-actions.pod:4792
17458 msgid "swapon-file"
17459 msgstr "swapon-file"
17462 #: ../fish/guestfish-actions.pod:4794
17465 " swapon-file file\n"
17468 " swapon-file файл\n"
17472 #: ../fish/guestfish-actions.pod:4796
17474 "This command enables swap to a file. See L</swapon-device> for other notes."
17478 #: ../fish/guestfish-actions.pod:4799
17479 msgid "swapon-label"
17480 msgstr "swapon-label"
17483 #: ../fish/guestfish-actions.pod:4801
17486 " swapon-label label\n"
17489 " swapon-label мітка\n"
17493 #: ../fish/guestfish-actions.pod:4803
17495 "This command enables swap to a labeled swap partition. See L</swapon-"
17496 "device> for other notes."
17500 #: ../fish/guestfish-actions.pod:4806
17501 msgid "swapon-uuid"
17502 msgstr "swapon-uuid"
17505 #: ../fish/guestfish-actions.pod:4808
17508 " swapon-uuid uuid\n"
17511 " swapon-uuid uuid\n"
17515 #: ../fish/guestfish-actions.pod:4810
17517 "This command enables swap to a swap partition with the given UUID. See L</"
17518 "swapon-device> for other notes."
17522 #: ../fish/guestfish-actions.pod:4813
17527 #: ../fish/guestfish-actions.pod:4815
17537 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
17539 "This syncs the disk, so that any writes are flushed through to the "
17540 "underlying disk image."
17544 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
17546 "You should always call this if you have modified a disk image, before "
17547 "closing the handle."
17551 #: ../fish/guestfish-actions.pod:4823
17556 #: ../fish/guestfish-actions.pod:4825
17566 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
17568 "This command returns up to the last 10 lines of a file as a list of strings."
17572 #: ../fish/guestfish-actions.pod:4833
17577 #: ../fish/guestfish-actions.pod:4835
17580 " tail-n nrlines path\n"
17585 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
17587 "If the parameter C<nrlines> is a positive number, this returns the last "
17588 "C<nrlines> lines of the file C<path>."
17592 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
17594 "If the parameter C<nrlines> is a negative number, this returns lines from "
17595 "the file C<path>, starting with the C<-nrlines>th line."
17599 #: ../fish/guestfish-actions.pod:4848
17604 #: ../fish/guestfish-actions.pod:4850
17607 " tar-in (tarfile|-) directory\n"
17610 " tar-in (файл_tar|-) каталог\n"
17614 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
17616 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17617 "tar file) into C<directory>."
17621 #: ../fish/guestfish-actions.pod:4855
17622 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17626 #: ../fish/guestfish-actions.pod:4860
17631 #: ../fish/guestfish-actions.pod:4862
17634 " tar-out directory (tarfile|-)\n"
17637 " tar-out каталог (файл tar|-)\n"
17641 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
17643 "This command packs the contents of C<directory> and downloads it to local "
17648 #: ../fish/guestfish-actions.pod:4867
17649 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17653 #: ../fish/guestfish-actions.pod:4872
17658 #: ../fish/guestfish-actions.pod:4874
17661 " tgz-in (tarball|-) directory\n"
17664 " tgz-in (архів tar|-) каталог\n"
17668 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
17670 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17671 "tar file) into C<directory>."
17675 #: ../fish/guestfish-actions.pod:4879
17676 msgid "To upload an uncompressed tarball, use L</tar-in>."
17680 #: ../fish/guestfish-actions.pod:4883
17685 #: ../fish/guestfish-actions.pod:4885
17688 " tgz-out directory (tarball|-)\n"
17691 " tgz-out каталог (архів tar|-)\n"
17695 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
17697 "This command packs the contents of C<directory> and downloads it to local "
17702 #: ../fish/guestfish-actions.pod:4890
17703 msgid "To download an uncompressed tarball, use L</tar-out>."
17707 #: ../fish/guestfish-actions.pod:4894
17712 #: ../fish/guestfish-actions.pod:4896
17722 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
17724 "Touch acts like the L<touch(1)> command. It can be used to update the "
17725 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17730 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
17732 "This command only works on regular files, and will fail on other file types "
17733 "such as directories, symbolic links, block special etc."
17737 #: ../fish/guestfish-actions.pod:4905
17742 #: ../fish/guestfish-actions.pod:4907
17752 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
17754 "This command truncates C<path> to a zero-length file. The file must exist "
17759 #: ../fish/guestfish-actions.pod:4912
17760 msgid "truncate-size"
17761 msgstr "truncate-size"
17764 #: ../fish/guestfish-actions.pod:4914
17767 " truncate-size path size\n"
17770 " truncate-size шлях розмір\n"
17774 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
17776 "This command truncates C<path> to size C<size> bytes. The file must exist "
17781 #: ../fish/guestfish-actions.pod:4919
17783 "If the current file size is less than C<size> then the file is extended to "
17784 "the required size with zero bytes. This creates a sparse file (ie. disk "
17785 "blocks are not allocated for the file until you write to it). To create a "
17786 "non-sparse file of zeroes, use L</fallocate64> instead."
17790 #: ../fish/guestfish-actions.pod:4925
17795 #: ../fish/guestfish-actions.pod:4927
17798 " tune2fs-l device\n"
17801 " tune2fs-l пристрій\n"
17805 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
17807 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17812 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
17814 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
17815 "for more details. The list of fields returned isn't clearly defined, and "
17816 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17817 "and the filesystem itself."
17821 #: ../fish/guestfish-actions.pod:4937
17826 #: ../fish/guestfish-actions.pod:4939
17829 " txz-in (tarball|-) directory\n"
17832 " txz-in (архів tar|-) каталог\n"
17836 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
17838 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17839 "tar file) into C<directory>."
17843 #: ../fish/guestfish-actions.pod:4946
17848 #: ../fish/guestfish-actions.pod:4948
17851 " txz-out directory (tarball|-)\n"
17854 " txz-out каталог (архів tar|-)\n"
17858 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
17860 "This command packs the contents of C<directory> and downloads it to local "
17861 "file C<tarball> (as an xz compressed tar archive)."
17865 #: ../fish/guestfish-actions.pod:4955
17870 #: ../fish/guestfish-actions.pod:4957
17880 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
17882 "This function sets the mask used for creating new files and device nodes to "
17887 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
17889 "Typical umask values would be C<022> which creates new files with "
17890 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17891 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17895 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
17897 "The default umask is C<022>. This is important because it means that "
17898 "directories and device nodes will be created with C<0644> or C<0755> mode "
17899 "even if you specify C<0777>."
17903 #: ../fish/guestfish-actions.pod:4971
17904 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17905 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17908 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
17909 msgid "This call returns the previous umask."
17913 #: ../fish/guestfish-actions.pod:4976
17918 #: ../fish/guestfish-actions.pod:4978
17923 #: ../fish/guestfish-actions.pod:4980
17926 " umount pathordevice\n"
17929 " umount шлях_або_пристрій\n"
17933 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
17935 "This unmounts the given filesystem. The filesystem may be specified either "
17936 "by its mountpoint (path) or the device which contains the filesystem."
17940 #: ../fish/guestfish-actions.pod:4986
17942 msgstr "umount-all"
17945 #: ../fish/guestfish-actions.pod:4988
17946 msgid "unmount-all"
17947 msgstr "unmount-all"
17950 #: ../fish/guestfish-actions.pod:4990
17960 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
17961 msgid "This unmounts all mounted filesystems."
17965 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
17966 msgid "Some internal mounts are not unmounted by this call."
17970 #: ../fish/guestfish-actions.pod:4996
17975 #: ../fish/guestfish-actions.pod:4998
17978 " upload (filename|-) remotefilename\n"
17981 " upload (назва_файла|-) назва_віддаленого_файла\n"
17985 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
17986 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
17987 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17991 #: ../fish/guestfish-actions.pod:5005
17992 msgid "See also L</download>."
17993 msgstr "Див. також L</download>."
17996 #: ../fish/guestfish-actions.pod:5009
17997 msgid "upload-offset"
17998 msgstr "upload-offset"
18001 #: ../fish/guestfish-actions.pod:5011
18004 " upload-offset (filename|-) remotefilename offset\n"
18007 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18011 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
18013 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
18014 "The intention is to overwrite parts of existing files or devices, although "
18015 "if a non-existant file is specified then it is created with a \"hole\" "
18016 "before C<offset>. The size of the data written is implicit in the size of "
18017 "the source C<filename>."
18021 #: ../fish/guestfish-actions.pod:5023
18023 "Note that there is no limit on the amount of data that can be uploaded with "
18024 "this call, unlike with L</pwrite>, and this call always writes the full "
18025 "amount unless an error occurs."
18029 #: ../fish/guestfish-actions.pod:5028
18030 msgid "See also L</upload>, L</pwrite>."
18031 msgstr "Див. також L</upload>, L</pwrite>."
18034 #: ../fish/guestfish-actions.pod:5032
18039 #: ../fish/guestfish-actions.pod:5034
18042 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18047 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
18048 msgid "This command sets the timestamps of a file with nanosecond precision."
18052 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
18054 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18059 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
18061 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18062 "nanoseconds from the epoch."
18066 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
18068 "If the C<*nsecs> field contains the special value C<-1> then the "
18069 "corresponding timestamp is set to the current time. (The C<*secs> field is "
18070 "ignored in this case)."
18074 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
18076 "If the C<*nsecs> field contains the special value C<-2> then the "
18077 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
18082 #: ../fish/guestfish-actions.pod:5053
18087 #: ../fish/guestfish-actions.pod:5055
18097 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
18099 "Return the libguestfs version number that the program is linked against."
18103 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
18105 "Note that because of dynamic linking this is not necessarily the version of "
18106 "libguestfs that you compiled against. You can compile the program, and then "
18107 "at runtime dynamically link against a completely different C<libguestfs.so> "
18112 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
18114 "This call was added in version C<1.0.58>. In previous versions of "
18115 "libguestfs there was no way to get the version number. From C code you can "
18116 "use dynamic linker functions to find out if this symbol exists (if it "
18117 "doesn't, then it's an earlier version)."
18121 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
18123 "The call returns a structure with four elements. The first three (C<major>, "
18124 "C<minor> and C<release>) are numbers and correspond to the usual version "
18125 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
18126 "but may be used for distro-specific information."
18130 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
18132 "To construct the original version string: C<$major.$minor.$release$extra>"
18136 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
18137 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18138 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18141 #: ../fish/guestfish-actions.pod:5082
18143 "I<Note:> Don't use this call to test for availability of features. In "
18144 "enterprise distributions we backport features from later versions into "
18145 "earlier versions, making this an unreliable way to test for features. Use "
18146 "L</available> instead."
18150 #: ../fish/guestfish-actions.pod:5088
18155 #: ../fish/guestfish-actions.pod:5090
18158 " vfs-label device\n"
18161 " vfs-label пристрій\n"
18165 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
18166 msgid "This returns the filesystem label of the filesystem on C<device>."
18170 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
18171 msgid "If the filesystem is unlabeled, this returns the empty string."
18175 #: ../fish/guestfish-actions.pod:5097
18176 msgid "To find a filesystem from the label, use L</findfs-label>."
18180 #: ../fish/guestfish-actions.pod:5099
18185 #: ../fish/guestfish-actions.pod:5101
18188 " vfs-type device\n"
18191 " vfs-type пристрій\n"
18195 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
18197 "This command gets the filesystem type corresponding to the filesystem on "
18202 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
18204 "For most filesystems, the result is the name of the Linux VFS module which "
18205 "would be used to mount this filesystem if you mounted it without specifying "
18206 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
18210 #: ../fish/guestfish-actions.pod:5111
18215 #: ../fish/guestfish-actions.pod:5113
18218 " vfs-uuid device\n"
18221 " vfs-uuid пристрій\n"
18225 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
18226 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18230 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
18231 msgid "If the filesystem does not have a UUID, this returns the empty string."
18235 #: ../fish/guestfish-actions.pod:5120
18236 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18240 #: ../fish/guestfish-actions.pod:5122
18241 msgid "vg-activate"
18242 msgstr "vg-activate"
18245 #: ../fish/guestfish-actions.pod:5124
18248 " vg-activate true|false 'volgroups ...'\n"
18253 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
18255 "This command activates or (if C<activate> is false) deactivates all logical "
18256 "volumes in the listed volume groups C<volgroups>."
18260 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
18261 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18265 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
18267 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18268 "activated or deactivated."
18272 #: ../fish/guestfish-actions.pod:5134
18273 msgid "vg-activate-all"
18274 msgstr "vg-activate-all"
18277 #: ../fish/guestfish-actions.pod:5136
18280 " vg-activate-all true|false\n"
18283 " vg-activate-all true|false\n"
18287 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
18289 "This command activates or (if C<activate> is false) deactivates all logical "
18290 "volumes in all volume groups."
18294 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
18295 msgid "This command is the same as running C<vgchange -a y|n>"
18299 #: ../fish/guestfish-actions.pod:5143
18304 #: ../fish/guestfish-actions.pod:5145
18307 " vgcreate volgroup 'physvols ...'\n"
18312 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
18314 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18315 "of physical volumes C<physvols>."
18319 #: ../fish/guestfish-actions.pod:5150
18324 #: ../fish/guestfish-actions.pod:5152
18327 " vglvuuids vgname\n"
18332 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
18334 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18335 "volumes created in this volume group."
18339 #: ../fish/guestfish-actions.pod:5157
18341 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18342 "logical volumes and volume groups."
18346 #: ../fish/guestfish-actions.pod:5160
18347 msgid "See also L</vgpvuuids>."
18348 msgstr "Див. також L</vgpvuuids>."
18351 #: ../fish/guestfish-actions.pod:5162
18356 #: ../fish/guestfish-actions.pod:5164
18359 " vgpvuuids vgname\n"
18364 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
18366 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18367 "volumes that this volume group resides on."
18371 #: ../fish/guestfish-actions.pod:5169
18373 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18374 "physical volumes and volume groups."
18378 #: ../fish/guestfish-actions.pod:5172
18379 msgid "See also L</vglvuuids>."
18380 msgstr "Див. також L</vglvuuids>."
18383 #: ../fish/guestfish-actions.pod:5174
18388 #: ../fish/guestfish-actions.pod:5176
18391 " vgremove vgname\n"
18396 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
18397 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18401 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
18403 "This also forcibly removes all logical volumes in the volume group (if any)."
18407 #: ../fish/guestfish-actions.pod:5183
18412 #: ../fish/guestfish-actions.pod:5185
18415 " vgrename volgroup newvolgroup\n"
18420 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
18421 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18425 #: ../fish/guestfish-actions.pod:5189
18430 #: ../fish/guestfish-actions.pod:5191
18440 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
18442 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18447 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
18449 "This returns a list of just the volume group names that were detected (eg. "
18454 #: ../fish/guestfish-actions.pod:5199
18455 msgid "See also L</vgs-full>."
18456 msgstr "Див. також L</vgs-full>."
18459 #: ../fish/guestfish-actions.pod:5201
18464 #: ../fish/guestfish-actions.pod:5203
18474 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
18476 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18477 "> command. The \"full\" version includes all fields."
18481 #: ../fish/guestfish-actions.pod:5208
18486 #: ../fish/guestfish-actions.pod:5210
18496 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
18498 "This rescans all block devices and rebuilds the list of LVM physical "
18499 "volumes, volume groups and logical volumes."
18503 #: ../fish/guestfish-actions.pod:5215
18508 #: ../fish/guestfish-actions.pod:5217
18516 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
18517 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18521 #: ../fish/guestfish-actions.pod:5221
18526 #: ../fish/guestfish-actions.pod:5223
18536 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
18538 "This command counts the characters in a file, using the C<wc -c> external "
18543 #: ../fish/guestfish-actions.pod:5228
18548 #: ../fish/guestfish-actions.pod:5230
18558 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
18560 "This command counts the lines in a file, using the C<wc -l> external command."
18564 #: ../fish/guestfish-actions.pod:5235
18569 #: ../fish/guestfish-actions.pod:5237
18579 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
18581 "This command counts the words in a file, using the C<wc -w> external command."
18585 #: ../fish/guestfish-actions.pod:5242
18590 #: ../fish/guestfish-actions.pod:5244
18593 " write path content\n"
18596 " write шлях дані\n"
18600 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
18602 "This call creates a file called C<path>. The content of the file is the "
18603 "string C<content> (which can contain any 8 bit data)."
18607 #: ../fish/guestfish-actions.pod:5249
18608 msgid "See also L</write-append>."
18609 msgstr "Див. також L</write-append>."
18612 #: ../fish/guestfish-actions.pod:5254
18613 msgid "write-append"
18617 #: ../fish/guestfish-actions.pod:5256
18620 " write-append path content\n"
18625 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
18627 "This call appends C<content> to the end of file C<path>. If C<path> does "
18628 "not exist, then a new file is created."
18632 #: ../fish/guestfish-actions.pod:5261
18633 msgid "See also L</write>."
18634 msgstr "Див. також L</write>."
18637 #: ../fish/guestfish-actions.pod:5266
18639 msgstr "write-file"
18642 #: ../fish/guestfish-actions.pod:5268
18645 " write-file path content size\n"
18650 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
18652 "This call creates a file called C<path>. The contents of the file is the "
18653 "string C<content> (which can contain any 8 bit data), with length C<size>."
18657 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
18659 "As a special case, if C<size> is C<0> then the length is calculated using "
18660 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18664 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
18666 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18667 "I<not> work, even if the length is specified."
18671 #: ../fish/guestfish-actions.pod:5284
18673 "I<This function is deprecated.> In new code, use the L</write> call instead."
18677 #: ../fish/guestfish-actions.pod:5291
18682 #: ../fish/guestfish-actions.pod:5293
18685 " zegrep regex path\n"
18688 " zegrep формальний_вираз шлях\n"
18692 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
18694 "This calls the external C<zegrep> program and returns the matching lines."
18698 #: ../fish/guestfish-actions.pod:5301
18703 #: ../fish/guestfish-actions.pod:5303
18706 " zegrepi regex path\n"
18711 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
18713 "This calls the external C<zegrep -i> program and returns the matching lines."
18717 #: ../fish/guestfish-actions.pod:5311
18722 #: ../fish/guestfish-actions.pod:5313
18732 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
18733 msgid "This command writes zeroes over the first few blocks of C<device>."
18737 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
18739 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18740 "securely wipe the device). It should be sufficient to remove any partition "
18741 "tables, filesystem superblocks and so on."
18745 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
18746 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
18748 "If blocks are already zero, then this command avoids writing zeroes. This "
18749 "prevents the underlying device from becoming non-sparse or growing "
18754 #: ../fish/guestfish-actions.pod:5325
18755 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18759 #: ../fish/guestfish-actions.pod:5328
18760 msgid "zero-device"
18761 msgstr "zero-device"
18764 #: ../fish/guestfish-actions.pod:5330
18767 " zero-device device\n"
18770 " zero-device пристрій\n"
18774 #: ../fish/guestfish-actions.pod:5332
18776 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
18777 "which just zeroes the first few blocks of a device."
18781 #: ../fish/guestfish-actions.pod:5340
18786 #: ../fish/guestfish-actions.pod:5342
18789 " zerofree device\n"
18792 " zerofree пристрій\n"
18796 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
18798 "This runs the I<zerofree> program on C<device>. This program claims to zero "
18799 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18800 "possible to compress the filesystem more effectively."
18804 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
18805 msgid "You should B<not> run this program if the filesystem is mounted."
18809 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
18811 "It is possible that using this program can damage the filesystem or data on "
18816 #: ../fish/guestfish-actions.pod:5355
18821 #: ../fish/guestfish-actions.pod:5357
18824 " zfgrep pattern path\n"
18827 " zfgrep шаблон шлях\n"
18831 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
18833 "This calls the external C<zfgrep> program and returns the matching lines."
18837 #: ../fish/guestfish-actions.pod:5365
18842 #: ../fish/guestfish-actions.pod:5367
18845 " zfgrepi pattern path\n"
18848 " zfgrepi шаблон шлях\n"
18852 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
18854 "This calls the external C<zfgrep -i> program and returns the matching lines."
18858 #: ../fish/guestfish-actions.pod:5375
18863 #: ../fish/guestfish-actions.pod:5377
18866 " zfile meth path\n"
18869 " zfile метод шлях\n"
18873 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
18875 "This command runs C<file> after first decompressing C<path> using C<method>."
18879 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
18880 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18884 #: ../fish/guestfish-actions.pod:5384
18886 "Since 1.0.63, use L</file> instead which can now process compressed files."
18890 #: ../fish/guestfish-actions.pod:5387
18892 "I<This function is deprecated.> In new code, use the L</file> call instead."
18896 #: ../fish/guestfish-actions.pod:5394
18901 #: ../fish/guestfish-actions.pod:5396
18904 " zgrep regex path\n"
18907 " zgrep формальний_вираз шлях\n"
18911 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
18913 "This calls the external C<zgrep> program and returns the matching lines."
18917 #: ../fish/guestfish-actions.pod:5404
18922 #: ../fish/guestfish-actions.pod:5406
18925 " zgrepi regex path\n"
18928 " zgrepi формальний_вираз шлях\n"
18932 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
18934 "This calls the external C<zgrep -i> program and returns the matching lines."
18938 #: ../fish/guestfish-commands.pod:1
18943 #: ../fish/guestfish-commands.pod:3
18948 #: ../fish/guestfish-commands.pod:5
18951 " alloc filename size\n"
18956 #: ../fish/guestfish-commands.pod:7
18958 "This creates an empty (zeroed) file of the given size, and then adds so it "
18959 "can be further examined."
18963 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18964 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18968 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18969 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18973 #: ../fish/guestfish-commands.pod:14
18975 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18976 "image, see L</PREPARED DISK IMAGES>."
18980 #: ../fish/guestfish-commands.pod:17
18985 #: ../fish/guestfish-commands.pod:19
18988 " copy-in local [local ...] /remotedir\n"
18993 #: ../fish/guestfish-commands.pod:21
18995 "C<copy-in> copies local files or directories recursively into the disk "
18996 "image, placing them in the directory called C</remotedir> (which must "
18997 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18998 "other commands as necessary."
19002 #: ../fish/guestfish-commands.pod:26
19004 "Multiple local files and directories can be specified, but the last "
19005 "parameter must always be a remote directory. Wildcards cannot be used."
19009 #: ../fish/guestfish-commands.pod:30
19014 #: ../fish/guestfish-commands.pod:32
19017 " copy-out remote [remote ...] localdir\n"
19022 #: ../fish/guestfish-commands.pod:34
19024 "C<copy-out> copies remote files or directories recursively out of the disk "
19025 "image, placing them on the host disk in a local directory called C<localdir> "
19026 "(which must exist). This guestfish meta-command turns into a sequence of L</"
19027 "download>, L</tar-out> and other commands as necessary."
19031 #: ../fish/guestfish-commands.pod:40
19033 "Multiple remote files and directories can be specified, but the last "
19034 "parameter must always be a local directory. To download to the current "
19035 "directory, use C<.> as in:"
19039 #: ../fish/guestfish-commands.pod:44
19042 " copy-out /home .\n"
19045 " copy-out /home .\n"
19049 #: ../fish/guestfish-commands.pod:46
19051 "Wildcards cannot be used in the ordinary command, but you can use them with "
19052 "the help of L</glob> like this:"
19056 #: ../fish/guestfish-commands.pod:49
19059 " glob copy-out /home/* .\n"
19062 " glob copy-out /home/* .\n"
19066 #: ../fish/guestfish-commands.pod:51
19071 #: ../fish/guestfish-commands.pod:53
19074 " display filename\n"
19079 #: ../fish/guestfish-commands.pod:55
19081 "Use C<display> (a graphical display program) to display an image file. It "
19082 "downloads the file, and runs C<display> on it."
19086 #: ../fish/guestfish-commands.pod:58
19088 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19089 "environment variable. For example to use the GNOME display program:"
19093 #: ../fish/guestfish-commands.pod:61
19096 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19101 #: ../fish/guestfish-commands.pod:63
19102 msgid "See also L<display(1)>."
19103 msgstr "Див. також L<display(1)>."
19106 #: ../fish/guestfish-commands.pod:65
19111 #: ../fish/guestfish-commands.pod:67
19114 " echo [params ...]\n"
19117 " echo [параметри...]\n"
19121 #: ../fish/guestfish-commands.pod:69
19122 msgid "This echos the parameters to the terminal."
19126 #: ../fish/guestfish-commands.pod:71
19131 #: ../fish/guestfish-commands.pod:73
19136 #: ../fish/guestfish-commands.pod:75
19141 #: ../fish/guestfish-commands.pod:77
19147 " edit назва_файла\n"
19151 #: ../fish/guestfish-commands.pod:79
19153 "This is used to edit a file. It downloads the file, edits it locally using "
19154 "your editor, then uploads the result."
19158 #: ../fish/guestfish-commands.pod:82
19160 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
19161 "or C<emacs> you will get those corresponding editors."
19165 #: ../fish/guestfish-commands.pod:86
19170 #: ../fish/guestfish-commands.pod:88
19173 " glob command args...\n"
19176 " glob команда параметри...\n"
19180 #: ../fish/guestfish-commands.pod:90
19182 "Expand wildcards in any paths in the args list, and run C<command> "
19183 "repeatedly on each matching path."
19187 #: ../fish/guestfish-commands.pod:93
19188 msgid "See L</WILDCARDS AND GLOBBING>."
19189 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19192 #: ../fish/guestfish-commands.pod:95
19197 #: ../fish/guestfish-commands.pod:97
19200 " hexedit <filename|device>\n"
19201 " hexedit <filename|device> <max>\n"
19202 " hexedit <filename|device> <start> <max>\n"
19207 #: ../fish/guestfish-commands.pod:101
19209 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19214 #: ../fish/guestfish-commands.pod:104
19216 "This command works by downloading potentially the whole file or device, "
19217 "editing it locally, then uploading it. If the file or device is large, you "
19218 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19219 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
19220 "usual modifiers allowed such as C<1M> (1 megabyte)."
19224 #: ../fish/guestfish-commands.pod:111
19225 msgid "For example to edit the first few sectors of a disk you might do:"
19229 #: ../fish/guestfish-commands.pod:114
19232 " hexedit /dev/sda 1M\n"
19235 " hexedit /dev/sda 1M\n"
19239 #: ../fish/guestfish-commands.pod:116
19241 "which would allow you to edit anywhere within the first megabyte of the disk."
19245 #: ../fish/guestfish-commands.pod:119
19246 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19250 #: ../fish/guestfish-commands.pod:121
19253 " hexedit /dev/sda1 0x400 0x400\n"
19256 " hexedit /dev/sda1 0x400 0x400\n"
19260 #: ../fish/guestfish-commands.pod:123
19261 msgid "(assuming the superblock is in the standard location)."
19265 #: ../fish/guestfish-commands.pod:125
19267 "This command requires the external L<hexedit(1)> program. You can specify "
19268 "another program to use by setting the C<HEXEDITOR> environment variable."
19272 #: ../fish/guestfish-commands.pod:129
19273 msgid "See also L</hexdump>."
19274 msgstr "Див. також L</hexdump>."
19277 #: ../fish/guestfish-commands.pod:131
19282 #: ../fish/guestfish-commands.pod:133
19290 #: ../fish/guestfish-commands.pod:135
19292 "Change the local directory, ie. the current directory of guestfish itself."
19296 #: ../fish/guestfish-commands.pod:138
19297 msgid "Note that C<!cd> won't do what you might expect."
19301 #: ../fish/guestfish-commands.pod:140
19306 #: ../fish/guestfish-commands.pod:142
19311 #: ../fish/guestfish-commands.pod:144
19321 #: ../fish/guestfish-commands.pod:146
19322 msgid "Opens the manual page for guestfish."
19326 #: ../fish/guestfish-commands.pod:148
19331 #: ../fish/guestfish-commands.pod:150
19336 #: ../fish/guestfish-commands.pod:152
19344 #: ../fish/guestfish-commands.pod:154
19352 #: ../fish/guestfish-commands.pod:156
19353 msgid "This is used to view a file."
19357 #: ../fish/guestfish-commands.pod:158
19359 "The default viewer is C<$PAGER>. However if you use the alternate command "
19360 "C<less> you will get the C<less> command specifically."
19364 #: ../fish/guestfish-commands.pod:161
19369 #: ../fish/guestfish-commands.pod:163
19377 #: ../fish/guestfish-commands.pod:165
19379 "Close and reopen the libguestfs handle. It is not necessary to use this "
19380 "normally, because the handle is closed properly when guestfish exits. "
19381 "However this is occasionally useful for testing."
19385 #: ../fish/guestfish-commands.pod:169
19390 #: ../fish/guestfish-commands.pod:171
19393 " setenv VAR value\n"
19398 #: ../fish/guestfish-commands.pod:173
19399 msgid "Set the environment variable C<VAR> to the string C<value>."
19403 #: ../fish/guestfish-commands.pod:175
19405 "To print the value of an environment variable use a shell command such as:"
19409 #: ../fish/guestfish-commands.pod:178
19417 #: ../fish/guestfish-commands.pod:180
19422 #: ../fish/guestfish-commands.pod:182
19425 " sparse filename size\n"
19430 #: ../fish/guestfish-commands.pod:184
19432 "This creates an empty sparse file of the given size, and then adds so it can "
19433 "be further examined."
19437 #: ../fish/guestfish-commands.pod:187
19439 "In all respects it works the same as the L</alloc> command, except that the "
19440 "image file is allocated sparsely, which means that disk blocks are not "
19441 "assigned to the file until they are needed. Sparse disk files only use "
19442 "space when written to, but they are slower and there is a danger you could "
19443 "run out of real disk space during a write operation."
19447 #: ../fish/guestfish-commands.pod:197
19452 #: ../fish/guestfish-commands.pod:199
19462 #: ../fish/guestfish-commands.pod:201
19464 "This command returns a list of the optional groups known to the daemon, and "
19465 "indicates which ones are supported by this build of the libguestfs appliance."
19469 #: ../fish/guestfish-commands.pod:205
19470 msgid "See also L<guestfs(3)/AVAILABILITY>."
19471 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19474 #: ../fish/guestfish-commands.pod:207
19479 #: ../fish/guestfish-commands.pod:209
19482 " time command args...\n"
19487 #: ../fish/guestfish-commands.pod:211
19489 "Run the command as usual, but print the elapsed time afterwards. This can "
19490 "be useful for benchmarking operations."
19494 #: ../fish/guestfish-commands.pod:214
19499 #: ../fish/guestfish-commands.pod:216
19507 #: ../fish/guestfish-commands.pod:218
19508 msgid "Remove C<VAR> from the environment."
19512 #: ../fish/guestfish.pod:5
19513 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19517 #: ../fish/guestfish.pod:9
19520 " guestfish [--options] [commands]\n"
19525 #: ../fish/guestfish.pod:11
19533 #: ../fish/guestfish.pod:13
19536 " guestfish [--ro|--rw] -a disk.img\n"
19541 #: ../fish/guestfish.pod:15
19544 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19549 #: ../fish/guestfish.pod:17
19552 " guestfish -d libvirt-domain\n"
19557 #: ../fish/guestfish.pod:19
19560 " guestfish [--ro|--rw] -a disk.img -i\n"
19565 #: ../fish/guestfish.pod:21
19568 " guestfish -d libvirt-domain -i\n"
19573 #: ../fish/guestfish.pod:25
19575 "Using guestfish in read/write mode on live virtual machines can be "
19576 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
19577 "option to use guestfish safely if the disk image or virtual machine might be "
19582 #: ../fish/guestfish.pod:32
19584 "Guestfish is a shell and command-line tool for examining and modifying "
19585 "virtual machine filesystems. It uses libguestfs and exposes all of the "
19586 "functionality of the guestfs API, see L<guestfs(3)>."
19590 #: ../fish/guestfish.pod:36
19592 "Guestfish gives you structured access to the libguestfs API, from shell "
19593 "scripts or the command line or interactively. If you want to rescue a "
19594 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19599 #: ../fish/guestfish.pod:43
19600 msgid "As an interactive shell"
19604 #: ../fish/guestfish.pod:45
19612 #: ../fish/guestfish.pod:47
19615 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19616 " editing virtual machine filesystems.\n"
19621 #: ../fish/guestfish.pod:50
19624 " Type: 'help' for a list of commands\n"
19625 " 'man' to read the manual\n"
19626 " 'quit' to quit the shell\n"
19631 #: ../fish/guestfish.pod:54
19634 " ><fs> add-ro disk.img\n"
19636 " ><fs> list-filesystems\n"
19637 " /dev/sda1: ext4\n"
19638 " /dev/vg_guest/lv_root: ext4\n"
19639 " /dev/vg_guest/lv_swap: swap\n"
19640 " ><fs> mount /dev/vg_guest/lv_root /\n"
19641 " ><fs> cat /etc/fstab\n"
19643 " # Created by anaconda\n"
19650 #: ../fish/guestfish.pod:67
19651 msgid "From shell scripts"
19655 #: ../fish/guestfish.pod:69
19656 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19660 #: ../fish/guestfish.pod:71
19663 " guestfish <<_EOF_\n"
19666 " mount /dev/vg_guest/lv_root /\n"
19667 " write /etc/motd \"Welcome, new users\"\n"
19673 #: ../fish/guestfish.pod:78
19674 msgid "List the LVM logical volumes in a disk image:"
19678 #: ../fish/guestfish.pod:80
19681 " guestfish -a disk.img --ro <<_EOF_\n"
19689 #: ../fish/guestfish.pod:85
19690 msgid "List all the filesystems in a disk image:"
19694 #: ../fish/guestfish.pod:87
19697 " guestfish -a disk.img --ro <<_EOF_\n"
19699 " list-filesystems\n"
19705 #: ../fish/guestfish.pod:92
19706 msgid "On one command line"
19710 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19711 msgid "Update C</etc/resolv.conf> in a guest:"
19715 #: ../fish/guestfish.pod:96
19719 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19720 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19725 #: ../fish/guestfish.pod:100
19726 msgid "Edit C</boot/grub/grub.conf> interactively:"
19730 #: ../fish/guestfish.pod:102
19733 " guestfish --rw --add disk.img \\\n"
19734 " --mount /dev/vg_guest/lv_root \\\n"
19735 " --mount /dev/sda1:/boot \\\n"
19736 " edit /boot/grub/grub.conf\n"
19741 #: ../fish/guestfish.pod:107
19742 msgid "Mount disks automatically"
19746 #: ../fish/guestfish.pod:109
19748 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19752 #: ../fish/guestfish.pod:112
19755 " guestfish --ro -a disk.img -i cat /etc/group\n"
19760 #: ../fish/guestfish.pod:114
19763 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19768 #: ../fish/guestfish.pod:116
19769 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19773 #: ../fish/guestfish.pod:118
19776 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19781 #: ../fish/guestfish.pod:120
19782 msgid "As a script interpreter"
19786 #: ../fish/guestfish.pod:122
19787 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19791 #: ../fish/guestfish.pod:124
19794 " #!/usr/bin/guestfish -f\n"
19795 " sparse test1.img 100M\n"
19797 " part-disk /dev/sda mbr\n"
19798 " mkfs ext2 /dev/sda1\n"
19803 #: ../fish/guestfish.pod:130
19804 msgid "Start with a prepared disk"
19808 #: ../fish/guestfish.pod:132
19810 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19811 "single ext2-formatted partition:"
19815 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19818 " guestfish -N fs\n"
19823 #: ../fish/guestfish.pod:137
19824 msgid "To list what is available do:"
19828 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19831 " guestfish -N help | less\n"
19836 #: ../fish/guestfish.pod:141
19837 msgid "Remote control"
19838 msgstr "Дистанційне керування"
19841 #: ../fish/guestfish.pod:143
19844 " eval \"`guestfish --listen`\"\n"
19845 " guestfish --remote add-ro disk.img\n"
19846 " guestfish --remote run\n"
19847 " guestfish --remote lvs\n"
19850 " eval \"`guestfish --listen`\"\n"
19851 " guestfish --remote add-ro disk.img\n"
19852 " guestfish --remote run\n"
19853 " guestfish --remote lvs\n"
19857 #: ../fish/guestfish.pod:154
19858 msgid "Displays general help on options."
19862 #: ../fish/guestfish.pod:158
19863 msgid "B<--cmd-help>"
19864 msgstr "B<--cmd-help>"
19867 #: ../fish/guestfish.pod:160
19868 msgid "Lists all available guestfish commands."
19872 #: ../fish/guestfish.pod:162
19874 msgstr "B<-h команда>"
19877 #: ../fish/guestfish.pod:164
19878 msgid "B<--cmd-help cmd>"
19879 msgstr "B<--cmd-help команда>"
19882 #: ../fish/guestfish.pod:166
19883 msgid "Displays detailed help on a single command C<cmd>."
19887 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19888 msgid "B<-a image>"
19889 msgstr "B<-a образ>"
19892 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19893 msgid "B<--add image>"
19894 msgstr "B<--add образ>"
19897 #: ../fish/guestfish.pod:172
19898 msgid "Add a block device or virtual machine image to the shell."
19902 #: ../fish/guestfish.pod:177
19904 "Using this flag is mostly equivalent to using the C<add> command, with "
19905 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19906 "the I<--format=...> flag was given."
19910 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19912 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19913 "URI to use. The default is to use the default libvirt connection."
19917 #: ../fish/guestfish.pod:189
19922 #: ../fish/guestfish.pod:191
19924 "If using the I<--listen> option and a csh-like shell, use this option. See "
19925 "section L</REMOTE CONTROL AND CSH> below."
19929 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19930 msgid "B<-d libvirt-domain>"
19931 msgstr "B<-d домен-libvirt>"
19934 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19935 msgid "B<--domain libvirt-domain>"
19936 msgstr "B<--domain домен-libvirt>"
19939 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19941 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19942 "used, then any libvirt domain can be used. However in write mode, only "
19943 "libvirt domains which are shut down can be named here."
19947 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19948 msgid "Domain UUIDs can be used instead of names."
19952 #: ../fish/guestfish.pod:204
19954 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19955 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19956 "if the I<--format:...> flag was given."
19960 #: ../fish/guestfish.pod:208
19965 #: ../fish/guestfish.pod:210
19966 msgid "B<--no-dest-paths>"
19967 msgstr "B<--no-dest-paths>"
19970 #: ../fish/guestfish.pod:212
19972 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19973 "to hit the tab key to complete paths on the guest filesystem, but this "
19974 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19975 "allow this feature to be disabled."
19979 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19981 "When prompting for keys and passphrases, guestfish normally turns echoing "
19982 "off so you cannot see what you are typing. If you are not worried about "
19983 "Tempest attacks and there is no one else in the room you can specify this "
19984 "flag to see what you are typing."
19988 #: ../fish/guestfish.pod:224
19990 msgstr "B<-f файл>"
19993 #: ../fish/guestfish.pod:226
19994 msgid "B<--file file>"
19995 msgstr "B<--file файл>"
19998 #: ../fish/guestfish.pod:228
19999 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
20003 #: ../fish/guestfish.pod:231
20006 " #!/usr/bin/guestfish -f\n"
20009 " #!/usr/bin/guestfish -f\n"
20013 #: ../fish/guestfish.pod:244
20016 " guestfish --format=raw -a disk.img\n"
20019 " guestfish --format=raw -a disk.img\n"
20023 #: ../fish/guestfish.pod:248
20026 " guestfish --format=raw -a disk.img --format -a another.img\n"
20029 " guestfish --format=raw -a disk.img --format -a another.img\n"
20033 #: ../fish/guestfish.pod:253
20035 "If you have untrusted raw-format guest disk images, you should use this "
20036 "option to specify the disk format. This avoids a possible security problem "
20037 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
20041 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20042 msgid "B<--inspector>"
20043 msgstr "B<--inspector>"
20046 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20048 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20049 "system and mount filesystems as they would be mounted on the real virtual "
20054 #: ../fish/guestfish.pod:266
20055 msgid "Typical usage is either:"
20059 #: ../fish/guestfish.pod:268
20062 " guestfish -d myguest -i\n"
20065 " guestfish -d myguest -i\n"
20069 #: ../fish/guestfish.pod:270
20070 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20074 #: ../fish/guestfish.pod:272
20077 " guestfish --ro -d myguest -i\n"
20080 " guestfish --ro -d myguest -i\n"
20084 #: ../fish/guestfish.pod:274
20085 msgid "(for active domains, readonly), or specify the block device directly:"
20089 #: ../fish/guestfish.pod:276
20092 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20095 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20099 #: ../fish/guestfish.pod:278
20101 "Note that the command line syntax changed slightly over older versions of "
20102 "guestfish. You can still use the old syntax:"
20106 #: ../fish/guestfish.pod:281
20109 " guestfish [--ro] -i disk.img\n"
20112 " guestfish [--ro] -i disk.img\n"
20116 #: ../fish/guestfish.pod:283
20119 " guestfish [--ro] -i libvirt-domain\n"
20124 #: ../fish/guestfish.pod:285
20126 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20127 "then using other commands to mount the filesystems that were found."
20131 #: ../fish/guestfish.pod:294
20132 msgid "B<--listen>"
20133 msgstr "B<--listen>"
20136 #: ../fish/guestfish.pod:296
20138 "Fork into the background and listen for remote commands. See section L</"
20139 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20143 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20148 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20150 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
20151 "ATTACHING TO RUNNING DAEMONS>)."
20155 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20156 msgid "B<-m dev[:mountpoint[:options]]>"
20157 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20160 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20161 msgid "B<--mount dev[:mountpoint[:options]]>"
20162 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20165 #: ../fish/guestfish.pod:308
20166 msgid "Mount the named partition or logical volume on the given mountpoint."
20170 #: ../fish/guestfish.pod:310
20171 msgid "If the mountpoint is omitted, it defaults to C</>."
20175 #: ../fish/guestfish.pod:312
20176 msgid "You have to mount something on C</> before most commands will work."
20180 #: ../fish/guestfish.pod:314
20182 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20187 #: ../fish/guestfish.pod:317
20189 "If you don't know what filesystems a disk image contains, you can either run "
20190 "guestfish without this option, then list the partitions, filesystems and LVs "
20191 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20192 "commands), or you can use the L<virt-filesystems(1)> program."
20196 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20198 "The third (and rarely used) part of the mount parameter is the list of mount "
20199 "options used to mount the underlying filesystem. If this is not given, then "
20200 "the mount options are either the empty string or C<ro> (the latter if the "
20201 "I<--ro> flag is used). By specifying the mount options, you override this "
20202 "default choice. Probably the only time you would use this is to enable ACLs "
20203 "and/or extended attributes if the filesystem can support them:"
20207 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20210 " -m /dev/sda1:/:acl,user_xattr\n"
20215 #: ../fish/guestfish.pod:333
20216 msgid "Using this flag is equivalent to using the C<mount-options> command."
20220 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20221 #: ../resize/virt-resize.pod:435
20226 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20227 msgid "B<--no-sync>"
20228 msgstr "B<--no-sync>"
20231 #: ../fish/guestfish.pod:339
20233 "Disable autosync. This is enabled by default. See the discussion of "
20234 "autosync in the L<guestfs(3)> manpage."
20238 #: ../fish/guestfish.pod:342
20243 #: ../fish/guestfish.pod:344
20244 msgid "B<--new type>"
20245 msgstr "B<--new тип>"
20248 #: ../fish/guestfish.pod:346
20250 msgstr "B<-N help>"
20253 #: ../fish/guestfish.pod:348
20255 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
20256 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20257 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
20262 #: ../fish/guestfish.pod:353
20263 msgid "B<--progress-bars>"
20264 msgstr "B<--progress-bars>"
20267 #: ../fish/guestfish.pod:355
20268 msgid "Enable progress bars, even when guestfish is used non-interactively."
20272 #: ../fish/guestfish.pod:357
20274 "Progress bars are enabled by default when guestfish is used as an "
20275 "interactive shell."
20279 #: ../fish/guestfish.pod:360
20280 msgid "B<--no-progress-bars>"
20281 msgstr "B<--no-progress-bars>"
20284 #: ../fish/guestfish.pod:362
20285 msgid "Disable progress bars."
20289 #: ../fish/guestfish.pod:364
20290 msgid "B<--remote[=pid]>"
20291 msgstr "B<--remote[=pid]>"
20294 #: ../fish/guestfish.pod:366
20296 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
20297 "CONTROL GUESTFISH OVER A SOCKET> below."
20301 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20302 #: ../rescue/virt-rescue.pod:161
20307 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20308 #: ../rescue/virt-rescue.pod:163
20313 #: ../fish/guestfish.pod:373
20315 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20316 "mounts are done read-only."
20320 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
20322 "The option must always be used if the disk image or virtual machine might be "
20323 "running, and is generally recommended in cases where you don't need write "
20324 "access to the disk."
20328 #: ../fish/guestfish.pod:380
20330 "Note that prepared disk images created with I<-N> are not affected by this "
20331 "option. Also commands like C<add> are not affected - you have to specify "
20332 "the C<readonly:true> option explicitly if you need it."
20336 #: ../fish/guestfish.pod:384
20337 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20341 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20342 #: ../rescue/virt-rescue.pod:173
20343 msgid "B<--selinux>"
20344 msgstr "B<--selinux>"
20347 #: ../fish/guestfish.pod:388
20348 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
20352 #: ../fish/guestfish.pod:394
20354 "Enable very verbose messages. This is particularly useful if you find a bug."
20358 #: ../fish/guestfish.pod:401
20359 msgid "Display the guestfish / libguestfs version number and exit."
20363 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20364 #: ../rescue/virt-rescue.pod:194
20369 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20370 #: ../rescue/virt-rescue.pod:196
20375 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20377 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20378 "mounts are done read-write."
20382 #: ../fish/guestfish.pod:410
20383 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20387 #: ../fish/guestfish.pod:414
20388 msgid "Echo each command before executing it."
20392 #: ../fish/guestfish.pod:418
20393 msgid "COMMANDS ON COMMAND LINE"
20397 #: ../fish/guestfish.pod:420
20399 "Any additional (non-option) arguments are treated as commands to execute."
20403 #: ../fish/guestfish.pod:423
20405 "Commands to execute should be separated by a colon (C<:>), where the colon "
20406 "is a separate parameter. Thus:"
20410 #: ../fish/guestfish.pod:426
20413 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20418 #: ../fish/guestfish.pod:428
20420 "If there are no additional arguments, then we enter a shell, either an "
20421 "interactive shell with a prompt (if the input is a terminal) or a non-"
20422 "interactive shell."
20426 #: ../fish/guestfish.pod:432
20428 "In either command line mode or non-interactive shell, the first command that "
20429 "gives an error causes the whole shell to exit. In interactive mode (with a "
20430 "prompt) if a command fails, you can continue to enter commands."
20434 #: ../fish/guestfish.pod:437
20435 msgid "USING launch (OR run)"
20439 #: ../fish/guestfish.pod:439
20441 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20442 "then launch it, then mount any disks you need, and finally issue actions/"
20443 "commands. So the general order of the day is:"
20447 #: ../fish/guestfish.pod:447
20448 msgid "add or -a/--add"
20452 #: ../fish/guestfish.pod:451
20453 msgid "launch (aka run)"
20457 #: ../fish/guestfish.pod:455
20458 msgid "mount or -m/--mount"
20462 #: ../fish/guestfish.pod:459
20463 msgid "any other commands"
20467 #: ../fish/guestfish.pod:463
20469 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
20470 "guest before mounting or performing any other commands."
20474 #: ../fish/guestfish.pod:466
20476 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20477 "I<--new> options were given then C<run> is done automatically, simply "
20478 "because guestfish can't perform the action you asked for without doing this."
20482 #: ../fish/guestfish.pod:471
20483 msgid "OPENING DISKS FOR READ AND WRITE"
20487 #: ../fish/guestfish.pod:473
20489 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20490 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20491 "I<-i> and I<-m> open disk images read-only or for writing."
20495 #: ../fish/guestfish.pod:478
20497 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20498 "opening disk images supplied on the command line for write. To open a disk "
20499 "image read-only you have to do I<-a image --ro>."
20503 #: ../fish/guestfish.pod:482
20505 "This matters: If you accidentally open a live VM disk image writable then "
20506 "you will cause irreversible disk corruption."
20510 #: ../fish/guestfish.pod:485
20512 "In a future libguestfs we intend to change the default the other way. Disk "
20513 "images will be opened read-only. You will have to either specify "
20514 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20515 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20516 "access for disk images specified by those other command line options."
20520 #: ../fish/guestfish.pod:492
20522 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20523 "which does nothing (it is already the default). However it is highly "
20524 "recommended that you use this option to indicate that you need write access, "
20525 "and prepare your scripts for the day when this option will be required for "
20530 #: ../fish/guestfish.pod:498
20532 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20533 "other libguestfs program apart from guestfish and guestmount."
20537 #: ../fish/guestfish.pod:501
20542 #: ../fish/guestfish.pod:503
20544 "You can quote ordinary parameters using either single or double quotes. For "
20549 #: ../fish/guestfish.pod:506
20552 " add \"file with a space.img\"\n"
20557 #: ../fish/guestfish.pod:508
20560 " rm '/file name'\n"
20565 #: ../fish/guestfish.pod:510
20573 #: ../fish/guestfish.pod:512
20575 "A few commands require a list of strings to be passed. For these, use a "
20576 "whitespace-separated list, enclosed in quotes. Strings containing "
20577 "whitespace to be passed through must be enclosed in single quotes. A "
20578 "literal single quote must be escaped with a backslash."
20582 #: ../fish/guestfish.pod:517
20585 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20586 " command \"/bin/echo 'foo bar'\"\n"
20587 " command \"/bin/echo \\'foo\\'\"\n"
20592 #: ../fish/guestfish.pod:521
20593 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20597 #: ../fish/guestfish.pod:523
20599 "In double-quoted arguments (only) use backslash to insert special characters:"
20603 #: ../fish/guestfish.pod:528
20608 #: ../fish/guestfish.pod:530
20609 msgid "Alert (bell) character."
20610 msgstr "Символ гудка (дзвінка)."
20613 #: ../fish/guestfish.pod:532
20618 #: ../fish/guestfish.pod:534
20619 msgid "Backspace character."
20623 #: ../fish/guestfish.pod:536
20628 #: ../fish/guestfish.pod:538
20629 msgid "Form feed character."
20633 #: ../fish/guestfish.pod:540
20638 #: ../fish/guestfish.pod:542
20639 msgid "Newline character."
20643 #: ../fish/guestfish.pod:544
20648 #: ../fish/guestfish.pod:546
20649 msgid "Carriage return character."
20650 msgstr "Символ повернення каретки."
20653 #: ../fish/guestfish.pod:548
20658 #: ../fish/guestfish.pod:550
20659 msgid "Horizontal tab character."
20660 msgstr "Символ горизонтальної табуляції"
20663 #: ../fish/guestfish.pod:552
20668 #: ../fish/guestfish.pod:554
20669 msgid "Vertical tab character."
20670 msgstr "Символ вертикальної табуляції."
20673 #: ../fish/guestfish.pod:556
20678 #: ../fish/guestfish.pod:558
20679 msgid "A literal double quote character."
20683 #: ../fish/guestfish.pod:560
20688 #: ../fish/guestfish.pod:562
20690 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
20695 #: ../fish/guestfish.pod:565
20700 #: ../fish/guestfish.pod:567
20702 "A character with hex value I<hh>. There must be precisely 2 hex digits."
20706 #: ../fish/guestfish.pod:570
20708 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20713 #: ../fish/guestfish.pod:573
20718 #: ../fish/guestfish.pod:575
20719 msgid "A literal backslash character."
20723 #: ../fish/guestfish.pod:579
20724 msgid "OPTIONAL ARGUMENTS"
20728 #: ../fish/guestfish.pod:581
20730 "Some commands take optional arguments. These arguments appear in this "
20731 "documentation as C<[argname:..]>. You can use them as in these examples:"
20735 #: ../fish/guestfish.pod:585
20738 " add-drive-opts filename\n"
20743 #: ../fish/guestfish.pod:587
20746 " add-drive-opts filename readonly:true\n"
20751 #: ../fish/guestfish.pod:589
20754 " add-drive-opts filename format:qcow2 readonly:false\n"
20759 #: ../fish/guestfish.pod:591
20761 "Each optional argument can appear at most once. All optional arguments must "
20762 "appear after the required ones."
20766 #: ../fish/guestfish.pod:594
20771 #: ../fish/guestfish.pod:596
20773 "This section applies to all commands which can take integers as parameters."
20777 #: ../fish/guestfish.pod:599
20778 msgid "SIZE SUFFIX"
20782 #: ../fish/guestfish.pod:601
20784 "When the command takes a parameter measured in bytes, you can use one of the "
20785 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20789 #: ../fish/guestfish.pod:607
20790 msgid "B<k> or B<K> or B<KiB>"
20791 msgstr "B<k>, B<K> або B<KiB>"
20794 #: ../fish/guestfish.pod:609
20795 msgid "The size in kilobytes (multiplied by 1024)."
20796 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
20799 #: ../fish/guestfish.pod:611
20804 #: ../fish/guestfish.pod:613
20805 msgid "The size in SI 1000 byte units."
20806 msgstr "Розмір у одиницях СІ: 1000 байтів."
20809 #: ../fish/guestfish.pod:615
20810 msgid "B<M> or B<MiB>"
20811 msgstr "B<M> або B<MiB>"
20814 #: ../fish/guestfish.pod:617
20815 msgid "The size in megabytes (multiplied by 1048576)."
20816 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
20819 #: ../fish/guestfish.pod:619
20824 #: ../fish/guestfish.pod:621
20825 msgid "The size in SI 1000000 byte units."
20826 msgstr "Розмір у одиницях СІ: 1000000 байтів."
20829 #: ../fish/guestfish.pod:623
20830 msgid "B<G> or B<GiB>"
20831 msgstr "B<G> або B<GiB>"
20834 #: ../fish/guestfish.pod:625
20835 msgid "The size in gigabytes (multiplied by 2**30)."
20836 msgstr "Розмір у гігабайтах (з множником 2**30)."
20839 #: ../fish/guestfish.pod:627
20844 #: ../fish/guestfish.pod:629
20845 msgid "The size in SI 10**9 byte units."
20846 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20849 #: ../fish/guestfish.pod:631
20850 msgid "B<T> or B<TiB>"
20851 msgstr "B<T> або B<TiB>"
20854 #: ../fish/guestfish.pod:633
20855 msgid "The size in terabytes (multiplied by 2**40)."
20856 msgstr "Розмір у терабайтах (з множником 2**40)."
20859 #: ../fish/guestfish.pod:635
20864 #: ../fish/guestfish.pod:637
20865 msgid "The size in SI 10**12 byte units."
20866 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20869 #: ../fish/guestfish.pod:639
20870 msgid "B<P> or B<PiB>"
20871 msgstr "B<P> або B<PiB>"
20874 #: ../fish/guestfish.pod:641
20875 msgid "The size in petabytes (multiplied by 2**50)."
20876 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20879 #: ../fish/guestfish.pod:643
20884 #: ../fish/guestfish.pod:645
20885 msgid "The size in SI 10**15 byte units."
20886 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20889 #: ../fish/guestfish.pod:647
20890 msgid "B<E> or B<EiB>"
20891 msgstr "B<E> або B<EiB>"
20894 #: ../fish/guestfish.pod:649
20895 msgid "The size in exabytes (multiplied by 2**60)."
20896 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20899 #: ../fish/guestfish.pod:651
20904 #: ../fish/guestfish.pod:653
20905 msgid "The size in SI 10**18 byte units."
20906 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20909 #: ../fish/guestfish.pod:655
20910 msgid "B<Z> or B<ZiB>"
20911 msgstr "B<Z> або B<ZiB>"
20914 #: ../fish/guestfish.pod:657
20915 msgid "The size in zettabytes (multiplied by 2**70)."
20916 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20919 #: ../fish/guestfish.pod:659
20924 #: ../fish/guestfish.pod:661
20925 msgid "The size in SI 10**21 byte units."
20926 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20929 #: ../fish/guestfish.pod:663
20930 msgid "B<Y> or B<YiB>"
20931 msgstr "B<Y> або B<YiB>"
20934 #: ../fish/guestfish.pod:665
20935 msgid "The size in yottabytes (multiplied by 2**80)."
20936 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20939 #: ../fish/guestfish.pod:667
20944 #: ../fish/guestfish.pod:669
20945 msgid "The size in SI 10**24 byte units."
20946 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20949 #: ../fish/guestfish.pod:675
20952 " truncate-size /file 1G\n"
20957 #: ../fish/guestfish.pod:677
20958 msgid "would truncate the file to 1 gigabyte."
20962 #: ../fish/guestfish.pod:679
20964 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20965 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20966 "suffix will probably not do what you expect."
20970 #: ../fish/guestfish.pod:683
20971 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20975 #: ../fish/guestfish.pod:685
20977 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20978 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20982 #: ../fish/guestfish.pod:688
20985 " 1234 decimal number 1234\n"
20986 " 02322 octal number, equivalent to decimal 1234\n"
20987 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20992 #: ../fish/guestfish.pod:692
20994 "When using the C<chmod> command, you almost always want to specify an octal "
20995 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20996 "L<chmod(1)> program):"
21000 #: ../fish/guestfish.pod:696
21003 " chmod 0777 /public # OK\n"
21004 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
21009 #: ../fish/guestfish.pod:699
21011 "Commands that return numbers usually print them in decimal, but some "
21012 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21013 "octal, preceeded by C<0>)."
21017 #: ../fish/guestfish.pod:703
21018 msgid "WILDCARDS AND GLOBBING"
21022 #: ../fish/guestfish.pod:705
21024 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21025 "(globbing) by default. So for example the following will not do what you "
21030 #: ../fish/guestfish.pod:709
21038 #: ../fish/guestfish.pod:711
21040 "Assuming you don't have a directory called literally C</home/*> then the "
21041 "above command will return an error."
21045 #: ../fish/guestfish.pod:714
21046 msgid "To perform wildcard expansion, use the C<glob> command."
21050 #: ../fish/guestfish.pod:716
21053 " glob rm-rf /home/*\n"
21058 #: ../fish/guestfish.pod:718
21060 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21061 "many times), equivalent to:"
21065 #: ../fish/guestfish.pod:721
21068 " rm-rf /home/jim\n"
21069 " rm-rf /home/joe\n"
21070 " rm-rf /home/mary\n"
21075 #: ../fish/guestfish.pod:725
21076 msgid "C<glob> only works on simple guest paths and not on device names."
21080 #: ../fish/guestfish.pod:727
21082 "If you have several parameters, each containing a wildcard, then glob will "
21083 "perform a Cartesian product."
21087 #: ../fish/guestfish.pod:730
21092 #: ../fish/guestfish.pod:732
21094 "Any line which starts with a I<#> character is treated as a comment and "
21095 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
21096 "a command. For example:"
21100 #: ../fish/guestfish.pod:736
21103 " # this is a comment\n"
21104 " # this is a comment\n"
21105 " foo # NOT a comment\n"
21110 #: ../fish/guestfish.pod:740
21111 msgid "Blank lines are also ignored."
21115 #: ../fish/guestfish.pod:742
21116 msgid "RUNNING COMMANDS LOCALLY"
21120 #: ../fish/guestfish.pod:744
21122 "Any line which starts with a I<!> character is treated as a command sent to "
21123 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
21127 #: ../fish/guestfish.pod:748
21131 " tgz-out /remote local/remote-data.tar.gz\n"
21136 #: ../fish/guestfish.pod:751
21138 "will create a directory C<local> on the host, and then export the contents "
21139 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
21140 "(See C<tgz-out>)."
21144 #: ../fish/guestfish.pod:755
21146 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
21147 "effect, due to the way that subprocesses work in Unix."
21151 #: ../fish/guestfish.pod:758
21152 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21156 #: ../fish/guestfish.pod:760
21158 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21159 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21160 "and executed as guestfish commands."
21164 #: ../fish/guestfish.pod:764
21166 "Thus you can use shell script to construct arbitrary guestfish commands "
21167 "which are then parsed by guestfish."
21171 #: ../fish/guestfish.pod:767
21173 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21174 "through C</foo.100>) using guestfish commands alone. However this is simple "
21175 "if we use a shell script to create the guestfish commands for us:"
21179 #: ../fish/guestfish.pod:772
21182 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21187 #: ../fish/guestfish.pod:774
21188 msgid "or with names like C</foo.001>:"
21192 #: ../fish/guestfish.pod:776
21195 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21200 #: ../fish/guestfish.pod:778
21202 "When using guestfish interactively it can be helpful to just run the shell "
21203 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21204 "ordinary I<!> local command), see what guestfish commands it would run, and "
21205 "when you are happy with those prepend the C<E<lt>> character to run the "
21206 "guestfish commands for real."
21210 #: ../fish/guestfish.pod:784
21215 #: ../fish/guestfish.pod:786
21217 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21218 "command (a guestfish command) to the second command (any host command). For "
21223 #: ../fish/guestfish.pod:790
21226 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21231 #: ../fish/guestfish.pod:792
21233 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21234 "program). The above command would list all accounts in the guest filesystem "
21235 "which have UID 0, ie. root accounts including backdoors. Other examples:"
21239 #: ../fish/guestfish.pod:797
21242 " hexdump /bin/ls | head\n"
21243 " list-devices | tail -1\n"
21244 " tgz-out / - | tar ztf -\n"
21249 #: ../fish/guestfish.pod:801
21251 "The space before the pipe symbol is required, any space after the pipe "
21252 "symbol is optional. Everything after the pipe symbol is just passed "
21253 "straight to the host shell, so it can contain redirections, globs and "
21254 "anything else that makes sense on the host side."
21258 #: ../fish/guestfish.pod:806
21260 "To use a literal argument which begins with a pipe symbol, you have to quote "
21265 #: ../fish/guestfish.pod:809
21273 #: ../fish/guestfish.pod:811
21274 msgid "HOME DIRECTORIES"
21278 #: ../fish/guestfish.pod:813
21280 "If a parameter starts with the character C<~> then the tilde may be expanded "
21281 "as a home directory path (either C<~> for the current user's home directory, "
21282 "or C<~user> for another user)."
21286 #: ../fish/guestfish.pod:817
21288 "Note that home directory expansion happens for users known I<on the host>, "
21289 "not in the guest filesystem."
21293 #: ../fish/guestfish.pod:820
21295 "To use a literal argument which begins with a tilde, you have to quote it, "
21300 #: ../fish/guestfish.pod:823
21308 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21309 msgid "ENCRYPTED DISKS"
21310 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21313 #: ../fish/guestfish.pod:827
21315 "Libguestfs has some support for Linux guests encrypted according to the "
21316 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21317 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
21318 "LUKS is supported."
21322 #: ../fish/guestfish.pod:832
21323 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21327 #: ../fish/guestfish.pod:834
21330 " ><fs> vfs-type /dev/sda2\n"
21336 #: ../fish/guestfish.pod:837
21338 "Then open those devices using L</luks-open>. This creates a device-mapper "
21339 "device called C</dev/mapper/luksdev>."
21343 #: ../fish/guestfish.pod:840
21346 " ><fs> luks-open /dev/sda2 luksdev\n"
21347 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21352 #: ../fish/guestfish.pod:843
21354 "Finally you have to tell LVM to scan for volume groups on the newly created "
21359 #: ../fish/guestfish.pod:846
21363 " vg-activate-all true\n"
21368 #: ../fish/guestfish.pod:849
21369 msgid "The logical volume(s) can now be mounted in the usual way."
21373 #: ../fish/guestfish.pod:851
21375 "Before closing a LUKS device you must unmount any logical volumes on it and "
21376 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21377 "one. Then you can close the mapper device:"
21381 #: ../fish/guestfish.pod:855
21384 " vg-activate false /dev/VG\n"
21385 " luks-close /dev/mapper/luksdev\n"
21390 #: ../fish/guestfish.pod:860
21392 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21393 "letters and paths (with some limitations). The following commands are "
21398 #: ../fish/guestfish.pod:864
21401 " file /WINDOWS/system32/config/system.LOG\n"
21406 #: ../fish/guestfish.pod:866
21409 " file win:\\windows\\system32\\config\\system.log\n"
21414 #: ../fish/guestfish.pod:868
21417 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21422 #: ../fish/guestfish.pod:870
21424 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21425 "where the drive is mounted, prepending that to the path, changing all "
21426 "backslash characters to forward slash, then resolving the result using L</"
21427 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
21428 "the parameter might be rewritten like this:"
21432 #: ../fish/guestfish.pod:876
21435 " win:e:\\foo\\bar => /e/FOO/bar\n"
21440 #: ../fish/guestfish.pod:878
21441 msgid "This only works in argument positions that expect a path."
21445 #: ../fish/guestfish.pod:880
21446 msgid "UPLOADING AND DOWNLOADING FILES"
21450 #: ../fish/guestfish.pod:882
21452 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21453 "others which upload from or download to a local file, you can use the "
21454 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
21458 #: ../fish/guestfish.pod:886
21466 #: ../fish/guestfish.pod:888
21468 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21472 #: ../fish/guestfish.pod:891
21475 " tar-out /etc - | tar tf -\n"
21480 #: ../fish/guestfish.pod:893
21482 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21483 "command (see L</PIPES>)."
21487 #: ../fish/guestfish.pod:896
21489 "When using C<-> to read from stdin, the input is read up to the end of "
21490 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
21491 "some arbitrary end marker:"
21495 #: ../fish/guestfish.pod:900
21498 " upload -<<END /foo\n"
21507 #: ../fish/guestfish.pod:906
21509 "Any string of characters can be used instead of C<END>. The end marker must "
21510 "appear on a line of its own, without any preceeding or following characters "
21511 "(not even spaces)."
21515 #: ../fish/guestfish.pod:910
21517 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21518 "upload local files (so-called \"FileIn\" parameters in the generator)."
21522 #: ../fish/guestfish.pod:913
21523 msgid "EXIT ON ERROR BEHAVIOUR"
21527 #: ../fish/guestfish.pod:915
21529 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21530 "taking commands from a human over a tty), and will exit on the first error "
21531 "in non-interactive mode (scripts, commands given on the command line)."
21535 #: ../fish/guestfish.pod:920
21537 "If you prefix a command with a I<-> character, then that command will not "
21538 "cause guestfish to exit, even if that (one) command returns an error."
21542 #: ../fish/guestfish.pod:924
21543 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21547 #: ../fish/guestfish.pod:926
21549 "Guestfish can be remote-controlled over a socket. This is useful "
21550 "particularly in shell scripts where you want to make several different "
21551 "changes to a filesystem, but you don't want the overhead of starting up a "
21552 "guestfish process each time."
21556 #: ../fish/guestfish.pod:931
21557 msgid "Start a guestfish server process using:"
21561 #: ../fish/guestfish.pod:933
21564 " eval \"`guestfish --listen`\"\n"
21569 #: ../fish/guestfish.pod:935
21570 msgid "and then send it commands by doing:"
21574 #: ../fish/guestfish.pod:937
21577 " guestfish --remote cmd [...]\n"
21582 #: ../fish/guestfish.pod:939
21583 msgid "To cause the server to exit, send it the exit command:"
21587 #: ../fish/guestfish.pod:943
21589 "Note that the server will normally exit if there is an error in a command. "
21590 "You can change this in the usual way. See section L</EXIT ON ERROR "
21595 #: ../fish/guestfish.pod:947
21596 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21600 #: ../fish/guestfish.pod:949
21602 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21603 "is how the I<--remote> option knows where to send the commands. You can "
21604 "have several guestfish listener processes running using:"
21608 #: ../fish/guestfish.pod:953
21611 " eval \"`guestfish --listen`\"\n"
21612 " pid1=$GUESTFISH_PID\n"
21613 " eval \"`guestfish --listen`\"\n"
21614 " pid2=$GUESTFISH_PID\n"
21616 " guestfish --remote=$pid1 cmd\n"
21617 " guestfish --remote=$pid2 cmd\n"
21622 #: ../fish/guestfish.pod:961
21623 msgid "REMOTE CONTROL AND CSH"
21627 #: ../fish/guestfish.pod:963
21629 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21634 #: ../fish/guestfish.pod:966
21637 " eval \"`guestfish --listen --csh`\"\n"
21642 #: ../fish/guestfish.pod:968
21643 msgid "REMOTE CONTROL DETAILS"
21647 #: ../fish/guestfish.pod:970
21649 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21650 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21651 "and C<$PID> is the process ID of the server."
21655 #: ../fish/guestfish.pod:974
21656 msgid "Guestfish client and server versions must match exactly."
21660 #: ../fish/guestfish.pod:976
21661 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21665 #: ../fish/guestfish.pod:978
21667 "From Bash, you can use the following code which creates a guestfish "
21668 "instance, correctly quotes the command line, handles failure to start, and "
21669 "cleans up guestfish when the script exits:"
21673 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21681 #: ../fish/guestfish.pod:986
21684 " guestfish[0]=\"guestfish\"\n"
21685 " guestfish[1]=\"--listen\"\n"
21686 " guestfish[2]=\"--ro\"\n"
21687 " guestfish[3]=\"-a\"\n"
21688 " guestfish[4]=\"disk.img\"\n"
21693 #: ../fish/guestfish.pod:992
21696 " GUESTFISH_PID=\n"
21697 " eval $(\"${guestfish[@]}\")\n"
21698 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21699 " echo \"error: guestfish didn't start up, see error messages above\"\n"
21706 #: ../fish/guestfish.pod:999
21709 " cleanup_guestfish ()\n"
21711 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21713 " trap cleanup_guestfish EXIT ERR\n"
21718 #: ../fish/guestfish.pod:1005
21721 " guestfish --remote -- run\n"
21726 #: ../fish/guestfish.pod:1007
21734 #: ../fish/guestfish.pod:1009
21735 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21739 #: ../fish/guestfish.pod:1011
21741 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21742 "context hangs, ie. don't do (note the backquotes):"
21746 #: ../fish/guestfish.pod:1014
21749 " a=`guestfish --remote run`\n"
21754 #: ../fish/guestfish.pod:1016
21756 "Since the C<run> command produces no output on stdout, this is not useful "
21757 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
21762 #: ../fish/guestfish.pod:1020
21763 msgid "PREPARED DISK IMAGES"
21767 #: ../fish/guestfish.pod:1022
21769 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21770 "preformatted disk images that guestfish can make for you to save typing. "
21771 "This is particularly useful for testing purposes. This option is used "
21772 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21773 "can be mixed with I<-a>)."
21777 #: ../fish/guestfish.pod:1028
21779 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21780 "the second and so on. Existing files in the current directory are "
21785 #: ../fish/guestfish.pod:1032
21787 "The type briefly describes how the disk should be sized, partitioned, how "
21788 "filesystem(s) should be created, and how content should be added. "
21789 "Optionally the type can be followed by extra parameters, separated by C<:> "
21790 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
21791 "allocated disk, containing a single partition, with the partition formatted "
21792 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21797 #: ../fish/guestfish.pod:1040
21798 msgid "To list the available types and any extra parameters they take, run:"
21802 #: ../fish/guestfish.pod:1044
21804 "Note that the prepared filesystem is not mounted. You would usually have to "
21805 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21809 #: ../fish/guestfish.pod:1048
21811 "If any I<-N> or I<--new> options are given, the guest is automatically "
21816 #: ../fish/guestfish.pod:1053
21817 msgid "Create a 100MB disk with an ext4-formatted partition:"
21821 #: ../fish/guestfish.pod:1055
21824 " guestfish -N fs:ext4\n"
21829 #: ../fish/guestfish.pod:1057
21830 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21834 #: ../fish/guestfish.pod:1059
21837 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21842 #: ../fish/guestfish.pod:1061
21843 msgid "Create a blank 200MB disk:"
21847 #: ../fish/guestfish.pod:1063
21850 " guestfish -N disk:200M\n"
21855 #: ../fish/guestfish.pod:1065
21856 msgid "PROGRESS BARS"
21860 #: ../fish/guestfish.pod:1067
21862 "Some (not all) long-running commands send progress notification messages as "
21863 "they are running. Guestfish turns these messages into progress bars."
21867 #: ../fish/guestfish.pod:1071
21869 "When a command that supports progress bars takes longer than two seconds to "
21870 "run, and if progress bars are enabled, then you will see one appearing below "
21875 #: ../fish/guestfish.pod:1075
21878 " ><fs> copy-size /large-file /another-file 2048M\n"
21879 " / 10% [#####-----------------------------------------] 00:30\n"
21884 #: ../fish/guestfish.pod:1078
21886 "The spinner on the left hand side moves round once for every progress "
21887 "notification received from the backend. This is a (reasonably) golden "
21888 "assurance that the command is \"doing something\" even if the progress bar "
21889 "is not moving, because the command is able to send the progress "
21890 "notifications. When the bar reaches 100% and the command finishes, the "
21891 "spinner disappears."
21895 #: ../fish/guestfish.pod:1085
21897 "Progress bars are enabled by default when guestfish is used interactively. "
21898 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21899 "and you can disable them completely using I<--no-progress-bars>."
21903 #: ../fish/guestfish.pod:1090
21904 msgid "GUESTFISH COMMANDS"
21908 #: ../fish/guestfish.pod:1092
21910 "The commands in this section are guestfish convenience commands, in other "
21911 "words, they are not part of the L<guestfs(3)> API."
21915 #: ../fish/guestfish.pod:1095
21920 #: ../fish/guestfish.pod:1097
21932 #: ../fish/guestfish.pod:1100
21933 msgid "Without any parameter, this provides general help."
21934 msgstr "Без параметра показує загальну довідкову інформацію."
21937 #: ../fish/guestfish.pod:1102
21938 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21942 #: ../fish/guestfish.pod:1104
21943 msgid "quit | exit"
21947 #: ../fish/guestfish.pod:1106
21948 msgid "This exits guestfish. You can also use C<^D> key."
21952 #: ../fish/guestfish.pod:1108
21953 msgid "@FISH_COMMANDS@"
21957 #: ../fish/guestfish.pod:1110
21962 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21967 #: ../fish/guestfish.pod:1116
21969 "guestfish returns 0 if the commands completed without error, or 1 if there "
21974 #: ../fish/guestfish.pod:1123
21979 #: ../fish/guestfish.pod:1125
21981 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21986 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21987 msgid "FEBOOTSTRAP_KERNEL"
21991 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21992 msgid "FEBOOTSTRAP_MODULES"
21996 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21998 "These two environment variables allow the kernel that libguestfs uses in the "
21999 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22000 "most recent host kernel is chosen. For more information about kernel "
22001 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
22002 "available in febootstrap E<ge> 3.8."
22006 #: ../fish/guestfish.pod:1138
22007 msgid "GUESTFISH_DISPLAY_IMAGE"
22011 #: ../fish/guestfish.pod:1140
22013 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
22014 "If not set, it uses L<display(1)>."
22018 #: ../fish/guestfish.pod:1143
22019 msgid "GUESTFISH_PID"
22023 #: ../fish/guestfish.pod:1145
22025 "Used with the I<--remote> option to specify the remote guestfish process to "
22026 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22030 #: ../fish/guestfish.pod:1149
22035 #: ../fish/guestfish.pod:1151
22037 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
22038 "not specified, the external L<hexedit(1)> program is used."
22042 #: ../fish/guestfish.pod:1155
22047 #: ../fish/guestfish.pod:1157
22049 "If compiled with GNU readline support, various files in the home directory "
22050 "can be used. See L</FILES>."
22054 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
22055 msgid "LIBGUESTFS_APPEND"
22059 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
22060 msgid "Pass additional options to the guest kernel."
22064 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
22065 msgid "LIBGUESTFS_DEBUG"
22066 msgstr "LIBGUESTFS_DEBUG"
22069 #: ../fish/guestfish.pod:1166
22071 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
22072 "effect as using the B<-v> option."
22076 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
22077 msgid "LIBGUESTFS_MEMSIZE"
22078 msgstr "LIBGUESTFS_MEMSIZE"
22081 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
22083 "Set the memory allocated to the qemu process, in megabytes. For example:"
22087 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
22090 " LIBGUESTFS_MEMSIZE=700\n"
22093 " LIBGUESTFS_MEMSIZE=700\n"
22097 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
22098 msgid "LIBGUESTFS_PATH"
22102 #: ../fish/guestfish.pod:1178
22104 "Set the path that guestfish uses to search for kernel and initrd.img. See "
22105 "the discussion of paths in L<guestfs(3)>."
22109 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
22110 msgid "LIBGUESTFS_QEMU"
22114 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
22116 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
22117 "which was found at compile time by the configure script is used."
22121 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
22122 msgid "LIBGUESTFS_TRACE"
22126 #: ../fish/guestfish.pod:1189
22127 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22131 #: ../fish/guestfish.pod:1191
22133 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22136 #: ../fish/guestfish.pod:1193
22138 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
22143 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:235
22144 #: ../src/guestfs.pod:3257
22149 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
22151 "Location of temporary directory, defaults to C</tmp> except for the cached "
22152 "supermin appliance which defaults to C</var/tmp>."
22156 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
22158 "If libguestfs was compiled to use the supermin appliance then the real "
22159 "appliance is cached in this directory, shared between all handles belonging "
22160 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
22161 "use in case C</var/tmp> is not large enough."
22165 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22166 #: ../rescue/virt-rescue.pod:273
22171 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22172 #: ../rescue/virt-rescue.pod:277
22173 msgid "$HOME/.libguestfs-tools.rc"
22177 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22178 #: ../rescue/virt-rescue.pod:279
22179 msgid "/etc/libguestfs-tools.conf"
22183 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22184 #: ../rescue/virt-rescue.pod:281
22186 "This configuration file controls the default read-only or read-write mode "
22187 "(I<--ro> or I<--rw>)."
22191 #: ../fish/guestfish.pod:1220
22192 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22193 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22196 #: ../fish/guestfish.pod:1222
22197 msgid "$HOME/.guestfish"
22201 #: ../fish/guestfish.pod:1224
22203 "If compiled with GNU readline support, then the command history is saved in "
22208 #: ../fish/guestfish.pod:1227
22209 msgid "$HOME/.inputrc"
22213 #: ../fish/guestfish.pod:1229
22214 msgid "/etc/inputrc"
22218 #: ../fish/guestfish.pod:1231
22220 "If compiled with GNU readline support, then these files can be used to "
22221 "configure readline. For further information, please see L<readline(3)/"
22222 "INITIALIZATION FILE>."
22226 #: ../fish/guestfish.pod:1235
22227 msgid "To write rules which only apply to guestfish, use:"
22231 #: ../fish/guestfish.pod:1237
22241 #: ../fish/guestfish.pod:1241
22243 "Variables that you can set in inputrc that change the behaviour of guestfish "
22244 "in useful ways include:"
22248 #: ../fish/guestfish.pod:1246
22249 msgid "completion-ignore-case (default: on)"
22253 #: ../fish/guestfish.pod:1248
22255 "By default, guestfish will ignore case when tab-completing paths on the "
22260 #: ../fish/guestfish.pod:1251
22263 " set completion-ignore-case off\n"
22268 #: ../fish/guestfish.pod:1253
22269 msgid "to make guestfish case sensitive."
22273 #: ../fish/guestfish.pod:1257
22278 #: ../fish/guestfish.pod:1259
22279 msgid "test2.img (etc)"
22283 #: ../fish/guestfish.pod:1261
22285 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22286 "will be created in the file C<test1.img> in the current directory. The "
22287 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
22288 "the same name will be overwritten."
22292 #: ../fish/guestfish.pod:1270
22294 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22295 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22296 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22297 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22298 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22299 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22300 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22304 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3355
22305 #: ../test-tool/libguestfs-test-tool.pod:112
22306 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
22310 #: ../fish/virt-copy-in.pod:5
22312 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22316 #: ../fish/virt-copy-in.pod:9
22319 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22324 #: ../fish/virt-copy-in.pod:11
22327 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22332 #: ../fish/virt-copy-in.pod:15
22334 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22335 "causing disk corruption. The virtual machine must be shut down before you "
22336 "use this command."
22340 #: ../fish/virt-copy-in.pod:21
22342 "C<virt-copy-in> copies files and directories from the local disk into a "
22343 "virtual machine disk image or named libvirt domain."
22347 #: ../fish/virt-copy-in.pod:24
22349 "You can give one of more filenames and directories on the command line. "
22350 "Directories are copied in recursively. The final parameter must be the "
22351 "destination directory in the disk image which must be an absolute path "
22352 "starting with a C</> character."
22356 #: ../fish/virt-copy-in.pod:33
22359 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22364 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22365 msgid "Upload a home directory to a guest:"
22369 #: ../fish/virt-copy-in.pod:37
22372 " virt-copy-in -d MyGuest skel /home\n"
22377 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22378 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22379 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22383 #: ../fish/virt-copy-in.pod:41
22385 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22386 "> C<copy-in> command. For anything more complex than a trivial copy, you "
22387 "are probably better off using guestfish directly."
22391 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22392 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22394 "Since the shell script just passes options straight to guestfish, read "
22395 "L<guestfish(1)> to see the full list of options."
22399 #: ../fish/virt-copy-in.pod:52
22401 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22402 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22406 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22407 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22408 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
22412 #: ../fish/virt-copy-out.pod:5
22414 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22419 #: ../fish/virt-copy-out.pod:9
22422 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22427 #: ../fish/virt-copy-out.pod:11
22430 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22435 #: ../fish/virt-copy-out.pod:15
22437 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22438 "image or named libvirt domain."
22442 #: ../fish/virt-copy-out.pod:18
22444 "You can give one of more filenames and directories on the command line. "
22445 "Directories are copied out recursively."
22449 #: ../fish/virt-copy-out.pod:23
22450 msgid "Download the home directories from a virtual machine:"
22454 #: ../fish/virt-copy-out.pod:25
22458 " virt-copy-out -d MyGuest /home homes\n"
22463 #: ../fish/virt-copy-out.pod:30
22465 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22466 "> C<copy-out> command. For anything more complex than a trivial copy, you "
22467 "are probably better off using guestfish directly."
22471 #: ../fish/virt-copy-out.pod:41
22473 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22474 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22478 #: ../fish/virt-tar-in.pod:5
22479 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22483 #: ../fish/virt-tar-in.pod:9
22486 " virt-tar-in -a disk.img data.tar /destination\n"
22491 #: ../fish/virt-tar-in.pod:11
22494 " virt-tar-in -d domain data.tar /destination\n"
22499 #: ../fish/virt-tar-in.pod:13
22502 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22507 #: ../fish/virt-tar-in.pod:17
22509 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22510 "causing disk corruption. The virtual machine must be shut down before you "
22511 "use this command."
22515 #: ../fish/virt-tar-in.pod:23
22517 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22518 "image or named libvirt domain."
22522 #: ../fish/virt-tar-in.pod:26
22524 "The first parameter is the tar file. Use C<-> to read the tar file from "
22525 "standard input. The second parameter is the absolute target directory to "
22530 #: ../fish/virt-tar-in.pod:34
22533 " virt-tar-in -d MyGuest homes.tar /home\n"
22538 #: ../fish/virt-tar-in.pod:38
22540 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22541 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
22542 "probably better off using guestfish directly."
22546 #: ../fish/virt-tar-in.pod:49
22548 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22549 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22554 #: ../fish/virt-tar-out.pod:5
22556 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22560 #: ../fish/virt-tar-out.pod:9
22563 " virt-tar-out -a disk.img /dir files.tar\n"
22568 #: ../fish/virt-tar-out.pod:11
22571 " virt-tar-out -d domain /dir files.tar\n"
22576 #: ../fish/virt-tar-out.pod:13
22579 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22584 #: ../fish/virt-tar-out.pod:17
22586 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22590 #: ../fish/virt-tar-out.pod:20
22592 "The first parameter is the absolute path of the virtual machine directory. "
22593 "The second parameter is the tar file to write. Use C<-> to write to "
22598 #: ../fish/virt-tar-out.pod:26
22599 msgid "Download the home directories from a guest:"
22603 #: ../fish/virt-tar-out.pod:28
22606 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22611 #: ../fish/virt-tar-out.pod:32
22613 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22614 "> C<tar-out> command. For anything more complex than a trivial copy, you "
22615 "are probably better off using guestfish directly."
22619 #: ../fish/virt-tar-out.pod:43
22621 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22622 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22626 #: ../fuse/guestmount.pod:5
22628 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22632 #: ../fuse/guestmount.pod:9
22635 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22640 #: ../fuse/guestmount.pod:11
22643 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22648 #: ../fuse/guestmount.pod:13
22651 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22656 #: ../fuse/guestmount.pod:17
22658 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22659 "machines. If you do this, you risk disk corruption in the VM."
22663 #: ../fuse/guestmount.pod:22
22665 "The guestmount program can be used to mount virtual machine filesystems and "
22666 "other disk images on the host. It uses libguestfs for access to the guest "
22667 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22668 "a mountable device."
22672 #: ../fuse/guestmount.pod:27
22674 "Along with other options, you have to give at least one device (I<-a> "
22675 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22676 "option) or use the I<-i> inspection option or the I<--live> option. How "
22677 "this works is better explained in the L<guestfish(1)> manual page, or by "
22678 "looking at the examples below."
22682 #: ../fuse/guestmount.pod:33
22684 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
22685 "by you, and the filesystem will not be visible to any other users unless you "
22686 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
22687 "the filesystem, use the C<fusermount -u> command."
22691 #: ../fuse/guestmount.pod:41
22693 "For a typical Windows guest which has its main filesystem on the first "
22698 #: ../fuse/guestmount.pod:44
22701 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22706 #: ../fuse/guestmount.pod:46
22708 "For a typical Linux guest which has a /boot filesystem on the first "
22709 "partition, and the root filesystem on a logical volume:"
22713 #: ../fuse/guestmount.pod:49
22716 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22721 #: ../fuse/guestmount.pod:51
22722 msgid "To get libguestfs to detect guest mountpoints for you:"
22726 #: ../fuse/guestmount.pod:53
22729 " guestmount -a guest.img -i --ro /mnt\n"
22734 #: ../fuse/guestmount.pod:55
22735 msgid "For a libvirt guest called \"Guest\" you could do:"
22739 #: ../fuse/guestmount.pod:57
22742 " guestmount -d Guest -i --ro /mnt\n"
22747 #: ../fuse/guestmount.pod:59
22749 "If you don't know what filesystems are contained in a guest or disk image, "
22750 "use L<virt-filesystems(1)> first:"
22754 #: ../fuse/guestmount.pod:62
22757 " virt-filesystems MyGuest\n"
22762 #: ../fuse/guestmount.pod:64
22764 "If you want to trace the libguestfs calls but without excessive debugging "
22765 "information, we recommend:"
22769 #: ../fuse/guestmount.pod:67
22772 " guestmount [...] --trace /mnt\n"
22777 #: ../fuse/guestmount.pod:69
22778 msgid "If you want to debug the program, we recommend:"
22782 #: ../fuse/guestmount.pod:71
22785 " guestmount [...] --trace --verbose /mnt\n"
22790 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
22791 #: ../resize/virt-resize.pod:621
22796 #: ../fuse/guestmount.pod:75
22797 msgid "Other users cannot see the filesystem by default"
22801 #: ../fuse/guestmount.pod:77
22803 "If you mount a filesystem as one user (eg. root), then other users will not "
22804 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
22805 "option when mounting:"
22809 #: ../fuse/guestmount.pod:81
22812 " sudo guestmount [...] -o allow_other /mnt\n"
22817 #: ../fuse/guestmount.pod:83
22818 msgid "Enabling FUSE"
22822 #: ../fuse/guestmount.pod:85
22824 "On some distros, you may need to add yourself to a special group (eg. "
22825 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
22826 "Debian and derivatives."
22830 #: ../fuse/guestmount.pod:89
22832 "On other distros, no special group is required. It is not necessary on "
22833 "Fedora or Red Hat Enterprise Linux."
22837 #: ../fuse/guestmount.pod:100
22838 msgid "Add a block device or virtual machine image."
22842 #: ../fuse/guestmount.pod:123
22843 msgid "B<--dir-cache-timeout N>"
22844 msgstr "B<--dir-cache-timeout N>"
22847 #: ../fuse/guestmount.pod:125
22849 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22850 "seconds. The readdir cache [actually, there are several semi-independent "
22851 "caches] is populated after a readdir(2) call with the stat and extended "
22852 "attributes of the files in the directory, in anticipation that they will be "
22853 "requested soon after."
22857 #: ../fuse/guestmount.pod:131
22859 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22860 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22861 "requests, only cache existing ones."
22865 #: ../fuse/guestmount.pod:151
22867 "If you have untrusted raw-format guest disk images, you should use this "
22868 "option to specify the disk format. This avoids a possible security problem "
22869 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
22870 "guestfs_add_drive_opts>."
22874 #: ../fuse/guestmount.pod:156
22875 msgid "B<--fuse-help>"
22876 msgstr "B<--fuse-help>"
22879 #: ../fuse/guestmount.pod:158
22880 msgid "Display help on special FUSE options (see I<-o> below)."
22884 #: ../fuse/guestmount.pod:162
22885 msgid "Display brief help and exit."
22889 #: ../fuse/guestmount.pod:186
22891 "Mount the named partition or logical volume on the given mountpoint B<in the "
22892 "guest> (this has nothing to do with mountpoints in the host)."
22896 #: ../fuse/guestmount.pod:189
22898 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
22899 "something on C</>."
22903 #: ../fuse/guestmount.pod:206
22905 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22906 "unmounted. If you specify this option, then we don't attempt to sync the "
22907 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
22911 #: ../fuse/guestmount.pod:211
22912 msgid "B<-o option>"
22913 msgstr "B<-o параметр>"
22916 #: ../fuse/guestmount.pod:213
22917 msgid "B<--option option>"
22918 msgstr "B<--option параметр>"
22921 #: ../fuse/guestmount.pod:215
22922 msgid "Pass extra options to FUSE."
22926 #: ../fuse/guestmount.pod:217
22928 "To get a list of all the extra options supported by FUSE, use the command "
22929 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22930 "of them are a good idea."
22934 #: ../fuse/guestmount.pod:221
22937 " guestmount --fuse-help\n"
22942 #: ../fuse/guestmount.pod:223
22943 msgid "Some potentially useful FUSE options:"
22947 #: ../fuse/guestmount.pod:227
22948 msgid "B<-o allow_other>"
22952 #: ../fuse/guestmount.pod:229
22953 msgid "Allow other users to see the filesystem."
22957 #: ../fuse/guestmount.pod:231
22958 msgid "B<-o attr_timeout=N>"
22959 msgstr "B<-o attr_timeout=N>"
22962 #: ../fuse/guestmount.pod:233
22963 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22967 #: ../fuse/guestmount.pod:235
22968 msgid "B<-o kernel_cache>"
22972 #: ../fuse/guestmount.pod:237
22974 "Allow the kernel to cache files (reduces the number of reads that have to go "
22975 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22976 "afford the extra memory usage."
22980 #: ../fuse/guestmount.pod:241
22981 msgid "B<-o uid=N> B<-o gid=N>"
22982 msgstr "B<-o uid=N> B<-o gid=N>"
22985 #: ../fuse/guestmount.pod:243
22987 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22988 "the chosen values."
22992 #: ../fuse/guestmount.pod:252
22994 "Add devices and mount everything read-only. Also disallow writes and make "
22995 "the disk appear read-only to FUSE."
22999 #: ../fuse/guestmount.pod:255
23001 "This is highly recommended if you are not going to edit the guest disk. If "
23002 "the guest is running and this option is I<not> supplied, then there is a "
23003 "strong risk of disk corruption in the guest. We try to prevent this from "
23004 "happening, but it is not always possible."
23008 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
23009 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23010 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23013 #: ../fuse/guestmount.pod:264
23014 msgid "Enable SELinux support for the guest."
23018 #: ../fuse/guestmount.pod:270
23019 msgid "Enable verbose messages from underlying libguestfs."
23023 #: ../fuse/guestmount.pod:276
23024 msgid "Display the program version and exit."
23028 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23029 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
23030 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23031 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23034 #: ../fuse/guestmount.pod:289
23036 msgstr "B<--trace>"
23039 #: ../fuse/guestmount.pod:291
23040 msgid "Trace libguestfs calls and entry into each FUSE function."
23044 #: ../fuse/guestmount.pod:293
23045 msgid "This also stops the daemon from forking into the background."
23049 #: ../fuse/guestmount.pod:319
23051 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23052 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23055 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23056 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23060 #: ../fuse/guestmount.pod:334
23061 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
23065 #: ../inspector/virt-inspector.pod:5
23067 "virt-inspector - Display operating system version and other information "
23068 "about a virtual machine"
23072 #: ../inspector/virt-inspector.pod:9
23075 " virt-inspector [--options] -d domname\n"
23080 #: ../inspector/virt-inspector.pod:11
23083 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23088 #: ../inspector/virt-inspector.pod:15
23091 " virt-inspector domname\n"
23096 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23099 " virt-inspector disk.img [disk.img ...]\n"
23104 #: ../inspector/virt-inspector.pod:21
23106 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23107 "determine the version of the operating system and other information about "
23108 "the virtual machine."
23112 #: ../inspector/virt-inspector.pod:25
23113 msgid "Virt-inspector produces XML output for feeding into other programs."
23117 #: ../inspector/virt-inspector.pod:27
23119 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23120 "the libvirt domain (see: C<virsh list --all>)."
23124 #: ../inspector/virt-inspector.pod:30
23126 "You can also run virt-inspector directly on disk images from a single "
23127 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
23128 "has several block devices, in which case you should list several I<-a> "
23129 "options one after another, with the first corresponding to the guest's C</"
23130 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23134 #: ../inspector/virt-inspector.pod:37
23136 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23137 "keys and similar."
23141 #: ../inspector/virt-inspector.pod:40
23143 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
23144 "inspect several virtual machines, you have to run virt-inspector several "
23145 "times (for example, from a shell script for-loop)."
23149 #: ../inspector/virt-inspector.pod:45
23151 "Because virt-inspector needs direct access to guest images, it won't "
23152 "normally work over remote libvirt connections."
23156 #: ../inspector/virt-inspector.pod:48
23158 "All of the information available from virt-inspector is also available "
23159 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
23160 "The same information can also be fetched using guestfish or via libguestfs "
23161 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23162 "WITH OTHER PROGRAMMING LANGUAGES>)."
23166 #: ../inspector/virt-inspector.pod:81
23168 "Libvirt is only used if you specify a C<domname> on the command line. If "
23169 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23174 #: ../inspector/virt-inspector.pod:94
23176 "When prompting for keys and passphrases, virt-inspector normally turns "
23177 "echoing off so you cannot see what you are typing. If you are not worried "
23178 "about Tempest attacks and there is no one else in the room you can specify "
23179 "this flag to see what you are typing."
23183 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23184 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23185 #: ../tools/virt-win-reg.pl:144
23187 "Specify the format of disk images given on the command line. If this is "
23188 "omitted then the format is autodetected from the content of the disk image."
23192 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23193 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23194 #: ../tools/virt-win-reg.pl:148
23196 "If disk images are requested from libvirt, then this program asks libvirt "
23197 "for this information. In this case, the value of the format parameter is "
23202 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
23203 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:131
23204 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23205 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23207 "If working with untrusted raw-format guest disk images, you should ensure "
23208 "the format is always specified."
23212 #: ../inspector/virt-inspector.pod:135
23214 #| msgid "B<--parts>"
23215 msgid "B<--xpath> query"
23216 msgstr "B<--parts>"
23219 #: ../inspector/virt-inspector.pod:137
23221 "Perform an XPath query on the XML on stdin, and print the result on stdout. "
23222 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23223 "functions are disabled. See L</XPATH QUERIES> below for some examples."
23227 #: ../inspector/virt-inspector.pod:146
23228 msgid "Previous versions of virt-inspector allowed you to write either:"
23232 #: ../inspector/virt-inspector.pod:152
23235 " virt-inspector guestname\n"
23240 #: ../inspector/virt-inspector.pod:160
23245 #: ../inspector/virt-inspector.pod:162
23247 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23248 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
23249 "just an overview."
23253 #: ../inspector/virt-inspector.pod:166
23255 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23256 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
23257 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23258 "which is vanishingly rare in real world VMs."
23262 #: ../inspector/virt-inspector.pod:171
23263 msgid "E<lt>operatingsystemE<gt>"
23267 #: ../inspector/virt-inspector.pod:173
23269 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23270 "describe the operating system, its architecture, the descriptive \"product "
23271 "name\" string, the type of OS and so on, as in this example:"
23275 #: ../inspector/virt-inspector.pod:177
23278 " <operatingsystems>\n"
23279 " <operatingsystem>\n"
23280 " <root>/dev/sda2</root>\n"
23281 " <name>windows</name>\n"
23282 " <arch>i386</arch>\n"
23283 " <distro>windows</distro>\n"
23284 " <product_name>Windows 7 Enterprise</product_name>\n"
23285 " <product_variant>Client</product_variant>\n"
23286 " <major_version>6</major_version>\n"
23287 " <minor_version>1</minor_version>\n"
23288 " <windows_systemroot>/Windows</windows_systemroot>\n"
23289 " <format>installed</format>\n"
23294 #: ../inspector/virt-inspector.pod:190
23296 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23297 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23298 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23299 "architecture. The other fields are fairly self-explanatory, but because "
23300 "these fields are taken directly from the libguestfs inspection API you can "
23301 "find precise information from L<guestfs(3)/INSPECTION>."
23305 #: ../inspector/virt-inspector.pod:198
23307 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23308 "of view of libguestfs (block devices may have completely different names "
23309 "inside the VM itself)."
23313 #: ../inspector/virt-inspector.pod:202
23314 msgid "E<lt>mountpointsE<gt>"
23318 #: ../inspector/virt-inspector.pod:204
23320 "Un*x-like guests typically have multiple filesystems which are mounted at "
23321 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23322 "element which looks like this:"
23326 #: ../inspector/virt-inspector.pod:208
23329 " <operatingsystems>\n"
23330 " <operatingsystem>\n"
23333 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23334 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23335 " </mountpoints>\n"
23340 #: ../inspector/virt-inspector.pod:216
23342 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23343 "and may have completely different names inside the guest. Only mountable "
23344 "filesystems appear in this list, not things like swap devices."
23348 #: ../inspector/virt-inspector.pod:221
23349 msgid "E<lt>filesystemsE<gt>"
23353 #: ../inspector/virt-inspector.pod:223
23355 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23356 "filesystems belonging to the guest, including swap and empty partitions. "
23357 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23358 "this OS or shared with this OS and other OSes)."
23362 #: ../inspector/virt-inspector.pod:229
23363 msgid "You might see something like this:"
23367 #: ../inspector/virt-inspector.pod:231
23370 " <operatingsystems>\n"
23371 " <operatingsystem>\n"
23374 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23375 " <type>ext4</type>\n"
23376 " <label>Fedora-13-x86_64</label>\n"
23377 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23383 #: ../inspector/virt-inspector.pod:241
23385 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23386 "the label, and the UUID."
23390 #: ../inspector/virt-inspector.pod:244
23391 msgid "E<lt>applicationsE<gt>"
23395 #: ../inspector/virt-inspector.pod:246
23397 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23398 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23403 #: ../inspector/virt-inspector.pod:250
23405 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
23406 "Typical values would be C<rpm> and C<deb>."
23410 #: ../inspector/virt-inspector.pod:253
23412 "E<lt>package_managementE<gt>, if present, describes the package manager. "
23413 "Typical values include C<yum>, C<up2date> and C<apt>"
23417 #: ../inspector/virt-inspector.pod:256
23418 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23422 #: ../inspector/virt-inspector.pod:259
23425 " <operatingsystems>\n"
23426 " <operatingsystem>\n"
23428 " <applications>\n"
23430 " <name>coreutils</name>\n"
23431 " <version>8.5</version>\n"
23432 " <release>1</release>\n"
23433 " </application>\n"
23438 #: ../inspector/virt-inspector.pod:269
23440 "The version and release fields may not be available for some types guests. "
23441 "Other fields are possible, see L<guestfs(3)/"
23442 "guestfs_inspect_list_applications>."
23446 #: ../inspector/virt-inspector.pod:273
23447 msgid "E<lt>drive_mappingsE<gt>"
23451 #: ../inspector/virt-inspector.pod:275
23453 "For operating systems like Windows which use drive letters, virt-inspector "
23454 "is able to find out how drive letters map to filesystems."
23458 #: ../inspector/virt-inspector.pod:279
23461 " <operatingsystems>\n"
23462 " <operatingsystem>\n"
23464 " <drive_mappings>\n"
23465 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23466 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23467 " </drive_mappings>\n"
23472 #: ../inspector/virt-inspector.pod:287
23474 "In the example above, drive C maps to the filesystem on the second partition "
23475 "on the first disk, and drive E maps to the filesystem on the first partition "
23476 "on the second disk."
23480 #: ../inspector/virt-inspector.pod:291
23482 "Note that this only covers permanent local filesystem mappings, not things "
23483 "like network shares. Furthermore NTFS volume mount points may not be listed "
23488 #: ../inspector/virt-inspector.pod:295
23489 msgid "E<lt>iconE<gt>"
23493 #: ../inspector/virt-inspector.pod:297
23495 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
23496 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
23497 "very large and high quality."
23501 #: ../inspector/virt-inspector.pod:301
23504 " <operatingsystems>\n"
23505 " <operatingsystem>\n"
23508 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23509 " [... many lines of base64 data ...]\n"
23515 #: ../inspector/virt-inspector.pod:309
23517 "To display the icon, you have to extract it and convert the base64 data back "
23518 "to a binary file. Use an XPath query or simply an editor to extract the "
23519 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23524 #: ../inspector/virt-inspector.pod:314
23527 " base64 -i -d < icon.data > icon.png\n"
23532 #: ../inspector/virt-inspector.pod:316
23533 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23537 #: ../inspector/virt-inspector.pod:318
23539 "Virt-inspector can detect some operating system installers on install disks, "
23540 "live CDs, bootable USB keys and more."
23544 #: ../inspector/virt-inspector.pod:321
23546 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23547 "fields may be present to indicate a live CD, network installer, or one part "
23548 "of a multipart CD. For example:"
23552 #: ../inspector/virt-inspector.pod:325
23555 " <operatingsystems>\n"
23556 " <operatingsystem>\n"
23557 " <root>/dev/sda</root>\n"
23558 " <name>linux</name>\n"
23559 " <arch>i386</arch>\n"
23560 " <distro>ubuntu</distro>\n"
23561 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
23562 " <major_version>10</major_version>\n"
23563 " <minor_version>10</minor_version>\n"
23564 " <format>installer</format>\n"
23570 #: ../inspector/virt-inspector.pod:337
23571 msgid "XPATH QUERIES"
23575 #: ../inspector/virt-inspector.pod:339
23577 "Virt-inspector includes built in support for running XPath queries. The "
23578 "reason for including XPath support directly in virt-inspector is simply that "
23579 "there are no good and widely available command line programs that can do "
23580 "XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
23581 "available on Red Hat Enterprise Linux."
23585 #: ../inspector/virt-inspector.pod:346
23587 "To perform an XPath query, use the I<--xpath> option. Note that in this "
23588 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23589 "result on stdout. All other inspection features are disabled in this mode."
23593 #: ../inspector/virt-inspector.pod:353
23596 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23598 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23599 " <type>ext4</type>\n"
23605 #: ../inspector/virt-inspector.pod:359
23608 " $ virt-inspector -d Guest | \\\n"
23609 " virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23615 #: ../inspector/virt-inspector.pod:363
23618 " $ virt-inspector -d Guest | \\\n"
23619 " virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23620 " [displays the guest icon, if there is one]\n"
23625 #: ../inspector/virt-inspector.pod:374
23626 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23630 #: ../inspector/virt-inspector.pod:376
23632 "Early versions of libguestfs shipped with a different virt-inspector program "
23633 "written in Perl (the current version is written in C). The XML output of "
23634 "the Perl virt-inspector was different and it could also output in other "
23635 "formats like text."
23639 #: ../inspector/virt-inspector.pod:381
23641 "The old virt-inspector is no longer supported or shipped with libguestfs."
23645 #: ../inspector/virt-inspector.pod:384
23647 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23648 "versions of virt-inspector with different names:"
23652 #: ../inspector/virt-inspector.pod:387
23655 " virt-inspector Old Perl version.\n"
23656 " virt-inspector2 New C version.\n"
23661 #: ../inspector/virt-inspector.pod:397
23663 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23664 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23668 #: ../inspector/virt-inspector.pod:414
23669 msgid "Matthew Booth L<mbooth@redhat.com>"
23673 #: ../java/examples/guestfs-java.pod:5
23674 msgid "guestfs-java - How to use libguestfs from Java"
23678 #: ../java/examples/guestfs-java.pod:9
23681 " import com.redhat.et.libguestfs.*;\n"
23686 #: ../java/examples/guestfs-java.pod:11
23689 " GuestFS g = new GuestFS ();\n"
23690 " g.add_drive_opts (\"disk.img\", null);\n"
23696 #: ../java/examples/guestfs-java.pod:17
23698 "This manual page documents how to call libguestfs from the Java programming "
23699 "language. This page just documents the differences from the C API and gives "
23700 "some examples. If you are not familiar with using libguestfs, you also need "
23701 "to read L<guestfs(3)>."
23705 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23706 msgid "CLOSING THE HANDLE"
23710 #: ../java/examples/guestfs-java.pod:24
23712 "The handle is closed when it is reaped by the garbage collector. Because "
23713 "libguestfs handles include a lot of state, it is also possible to close (and "
23714 "hence free) them explicitly by calling the C<close> method."
23718 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23719 #: ../python/examples/guestfs-python.pod:21
23720 #: ../ruby/examples/guestfs-ruby.pod:22
23725 #: ../java/examples/guestfs-java.pod:31
23727 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23728 "exception. This has a single parameter which is the error message (a "
23733 #: ../java/examples/guestfs-java.pod:35
23734 msgid "Calling any method on a closed handle raises the same exception."
23738 #: ../java/examples/guestfs-java.pod:47
23740 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23741 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23742 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23746 #: ../ocaml/examples/guestfs-ocaml.pod:5
23747 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23751 #: ../ocaml/examples/guestfs-ocaml.pod:9
23752 msgid "Module style:"
23756 #: ../ocaml/examples/guestfs-ocaml.pod:11
23759 " let g = Guestfs.create () in\n"
23760 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23761 " Guestfs.launch g;\n"
23766 #: ../ocaml/examples/guestfs-ocaml.pod:15
23767 msgid "Object-oriented style:"
23771 #: ../ocaml/examples/guestfs-ocaml.pod:17
23774 " let g = new Guestfs.guestfs () in\n"
23775 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23781 #: ../ocaml/examples/guestfs-ocaml.pod:21
23784 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23786 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23791 #: ../ocaml/examples/guestfs-ocaml.pod:27
23793 "This manual page documents how to call libguestfs from the OCaml programming "
23794 "language. This page just documents the differences from the C API and gives "
23795 "some examples. If you are not familiar with using libguestfs, you also need "
23796 "to read L<guestfs(3)>."
23800 #: ../ocaml/examples/guestfs-ocaml.pod:32
23801 msgid "PROGRAMMING STYLES"
23805 #: ../ocaml/examples/guestfs-ocaml.pod:34
23807 "There are two different programming styles supported by the OCaml bindings. "
23808 "You can use a module style, with each C function mapped to an OCaml function:"
23812 #: ../ocaml/examples/guestfs-ocaml.pod:38
23815 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23820 #: ../ocaml/examples/guestfs-ocaml.pod:40
23825 #: ../ocaml/examples/guestfs-ocaml.pod:42
23828 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23833 #: ../ocaml/examples/guestfs-ocaml.pod:44
23835 "Alternately you can use an object-oriented style, calling methods on the "
23836 "class C<Guestfs.guestfs>:"
23840 #: ../ocaml/examples/guestfs-ocaml.pod:47
23843 " method set_verbose : bool -> unit\n"
23848 #: ../ocaml/examples/guestfs-ocaml.pod:49
23850 "The object-oriented style is usually briefer, and the minor performance "
23851 "penalty isn't noticable in the general overhead of performing libguestfs "
23856 #: ../ocaml/examples/guestfs-ocaml.pod:55
23858 "The handle is closed when it is reaped by the garbage collector. Because "
23859 "libguestfs handles include a lot of state, it is also possible to close (and "
23860 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23865 #: ../ocaml/examples/guestfs-ocaml.pod:62
23867 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23868 "exception. This has a single parameter which is the error message (a "
23873 #: ../ocaml/examples/guestfs-ocaml.pod:66
23875 "Calling any function/method on a closed handle raises C<Guestfs."
23876 "Handle_closed>. The single parameter is the name of the function that you "
23881 #: ../ocaml/examples/guestfs-ocaml.pod:80
23883 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23884 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23885 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23889 #: ../perl/examples/guestfs-perl.pod:5
23890 msgid "guestfs-perl - How to use libguestfs from Perl"
23894 #: ../perl/examples/guestfs-perl.pod:9
23897 " use Sys::Guestfs;\n"
23902 #: ../perl/examples/guestfs-perl.pod:11
23905 " my $h = Sys::Guestfs->new ();\n"
23906 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23907 " $h->launch ();\n"
23908 " $h->mount_options ('', '/dev/sda1', '/');\n"
23909 " $h->touch ('/hello');\n"
23915 #: ../perl/examples/guestfs-perl.pod:20
23917 "This manual page documents how to call libguestfs from the Perl programming "
23918 "language. This page just documents the differences from the C API and gives "
23919 "some examples. If you are not familiar with using libguestfs, you also need "
23920 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
23924 #: ../perl/examples/guestfs-perl.pod:26
23929 #: ../perl/examples/guestfs-perl.pod:28
23931 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23936 #: ../perl/examples/guestfs-perl.pod:41
23938 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23939 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23940 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23944 #: ../python/examples/guestfs-python.pod:5
23945 msgid "guestfs-python - How to use libguestfs from Python"
23949 #: ../python/examples/guestfs-python.pod:9
23952 " import guestfs\n"
23953 " g = guestfs.GuestFS ()\n"
23954 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23960 #: ../python/examples/guestfs-python.pod:16
23962 "This manual page documents how to call libguestfs from the Python "
23963 "programming language. This page just documents the differences from the C "
23964 "API and gives some examples. If you are not familiar with using libguestfs, "
23965 "you also need to read L<guestfs(3)>."
23969 #: ../python/examples/guestfs-python.pod:23
23971 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23972 "single string argument which is the error message."
23976 #: ../python/examples/guestfs-python.pod:26
23977 msgid "MORE DOCUMENTATION"
23981 #: ../python/examples/guestfs-python.pod:28
23986 #: ../python/examples/guestfs-python.pod:30
23990 " >>> import guestfs\n"
23991 " >>> help (guestfs)\n"
23996 #: ../python/examples/guestfs-python.pod:44
23998 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23999 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24000 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24004 #: ../rescue/virt-rescue.pod:5
24005 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24009 #: ../rescue/virt-rescue.pod:9
24012 " virt-rescue [--options] -d domname\n"
24017 #: ../rescue/virt-rescue.pod:11
24020 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24025 #: ../rescue/virt-rescue.pod:15
24028 " virt-rescue [--options] domname\n"
24033 #: ../rescue/virt-rescue.pod:17
24036 " virt-rescue [--options] disk.img [disk.img ...]\n"
24041 #: ../rescue/virt-rescue.pod:21
24043 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
24044 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
24045 "you from doing this, but doesn't catch all cases."
24049 #: ../rescue/virt-rescue.pod:25
24051 "However if you use the I<--ro> (read only) option, then you can attach a "
24052 "shell to a live virtual machine. The results might be strange or "
24053 "inconsistent at times but you won't get disk corruption."
24057 #: ../rescue/virt-rescue.pod:31
24059 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24060 "need for a CD. virt-rescue gives you a rescue shell and some simple "
24061 "recovery tools which you can use to examine or rescue a virtual machine or "
24066 #: ../rescue/virt-rescue.pod:36
24068 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24069 "on disk image(s):"
24073 #: ../rescue/virt-rescue.pod:39
24076 " virt-rescue -d GuestName\n"
24081 #: ../rescue/virt-rescue.pod:41
24084 " virt-rescue --ro -a /path/to/disk.img\n"
24089 #: ../rescue/virt-rescue.pod:43
24092 " virt-rescue -a /dev/sdc\n"
24097 #: ../rescue/virt-rescue.pod:45
24098 msgid "For live VMs you I<must> use the --ro option."
24102 #: ../rescue/virt-rescue.pod:47
24104 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24105 "in an interactive bash shell where you can use many ordinary Linux "
24106 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24107 "appliance. You must mount the virtual machine's filesystems by hand. There "
24108 "is an empty directory called C</sysroot> where you can mount filesystems."
24112 #: ../rescue/virt-rescue.pod:54
24114 "In the example below, we list logical volumes, then choose one to mount "
24115 "under C</sysroot>:"
24119 #: ../rescue/virt-rescue.pod:57
24123 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
24124 " lv_root vg_f11x64 -wi-a- 8.83G\n"
24125 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24126 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24127 " ><rescue> ls /sysroot\n"
24132 #: ../rescue/virt-rescue.pod:64
24134 "If you don't know what filesystems are available on the virtual machine then "
24135 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24139 #: ../rescue/virt-rescue.pod:70
24141 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24142 "virtual machine. For example you can use it on a blank file if you want to "
24143 "partition that file (although we would recommend using L<guestfish(1)> "
24144 "instead as it is more suitable for this purpose). You can even use virt-"
24145 "rescue on things like SD cards."
24149 #: ../rescue/virt-rescue.pod:76
24151 "Virt-rescue does not require root. You only need to run it as root if you "
24152 "need root to open the disk image."
24156 #: ../rescue/virt-rescue.pod:79
24158 "This tool is just designed for quick interactive hacking on a virtual "
24159 "machine. For more structured access to a virtual machine disk image, you "
24160 "should use L<guestfs(3)>. To get a structured shell that you can use to "
24161 "make scripted changes to guests, use L<guestfish(1)>."
24165 #: ../rescue/virt-rescue.pod:103
24166 msgid "B<--append kernelopts>"
24167 msgstr "B<--append параметри_ядра>"
24170 #: ../rescue/virt-rescue.pod:105
24171 msgid "Pass additional options to the rescue kernel."
24175 #: ../rescue/virt-rescue.pod:135
24178 " virt-rescue --format=raw -a disk.img\n"
24183 #: ../rescue/virt-rescue.pod:139
24186 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24191 #: ../rescue/virt-rescue.pod:148
24196 #: ../rescue/virt-rescue.pod:150
24197 msgid "B<--memsize MB>"
24198 msgstr "B<--memsize МБ>"
24201 #: ../rescue/virt-rescue.pod:152
24203 "Change the amount of memory allocated to the rescue system. The default is "
24204 "set by libguestfs and is small but adequate for running system tools. The "
24205 "occasional program might need more memory. The parameter is specified in "
24210 #: ../rescue/virt-rescue.pod:157
24211 msgid "B<--network>"
24212 msgstr "B<--network>"
24215 #: ../rescue/virt-rescue.pod:159
24216 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
24220 #: ../rescue/virt-rescue.pod:165
24221 msgid "Open the image read-only."
24225 #: ../rescue/virt-rescue.pod:175
24227 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
24228 "SELINUX> before using this option."
24232 #: ../rescue/virt-rescue.pod:178
24237 #: ../rescue/virt-rescue.pod:180
24238 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24242 #: ../rescue/virt-rescue.pod:198
24244 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24245 "are done read-write."
24249 #: ../rescue/virt-rescue.pod:211
24250 msgid "Previous versions of virt-rescue allowed you to write either:"
24254 #: ../rescue/virt-rescue.pod:213
24257 " virt-rescue disk.img [disk.img ...]\n"
24262 #: ../rescue/virt-rescue.pod:217
24265 " virt-rescue guestname\n"
24270 #: ../rescue/virt-rescue.pod:225
24275 #: ../rescue/virt-rescue.pod:227
24277 "Adding the I<--network> option enables QEMU user networking in the rescue "
24278 "appliance. There are some differences between user networking and ordinary "
24283 #: ../rescue/virt-rescue.pod:233
24284 msgid "ping does not work"
24288 #: ../rescue/virt-rescue.pod:235
24290 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24291 "send the ping packets, and because virt-rescue must be able to run as non-"
24292 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
24293 "The ping command will appear to resolve addresses but will not be able to "
24294 "send or receive any packets. This does not mean that the network is not "
24299 #: ../rescue/virt-rescue.pod:242
24300 msgid "cannot receive connections"
24304 #: ../rescue/virt-rescue.pod:244
24305 msgid "QEMU user networking cannot receive incoming connections."
24309 #: ../rescue/virt-rescue.pod:246
24310 msgid "making TCP connections"
24314 #: ../rescue/virt-rescue.pod:248
24316 "The virt-rescue appliance needs to be small and so does not include many "
24317 "network tools. In particular there is no L<telnet(1)> command. You can "
24318 "make TCP connections from the shell using the magical C</dev/tcp/"
24319 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24323 #: ../rescue/virt-rescue.pod:253
24326 " exec 3<>/dev/tcp/redhat.com/80\n"
24327 " echo \"GET /\" >&3\n"
24333 #: ../rescue/virt-rescue.pod:257
24334 msgid "See L<bash(1)> for more details."
24338 #: ../rescue/virt-rescue.pod:263
24340 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
24341 "ENVIRONMENT VARIABLES> for the complete list."
24345 #: ../rescue/virt-rescue.pod:290
24347 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
24348 "libguestfs.org/>."
24352 #: ../resize/virt-resize.pod:5
24353 msgid "virt-resize - Resize a virtual machine disk"
24357 #: ../resize/virt-resize.pod:9
24360 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24361 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24362 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24367 #: ../resize/virt-resize.pod:15
24369 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24370 "larger or smaller overall, and resizing or deleting any partitions contained "
24375 #: ../resize/virt-resize.pod:19
24377 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
24378 "not> be used on live virtual machines - for consistent results, shut the "
24379 "virtual machine down before resizing it."
24383 #: ../resize/virt-resize.pod:23
24385 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24386 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24390 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24391 #: ../sparsify/virt-sparsify.pod:202 ../src/guestfs.pod:484
24392 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24397 #: ../resize/virt-resize.pod:33
24399 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24400 "fill the extra 5GB of space."
24404 #: ../resize/virt-resize.pod:36
24407 " virt-filesystems --long -h --all -a olddisk\n"
24412 #: ../resize/virt-resize.pod:38
24415 " truncate -r olddisk newdisk\n"
24416 " truncate -s +5G newdisk\n"
24421 #: ../resize/virt-resize.pod:41
24424 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24425 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24430 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24431 #: ../sparsify/virt-sparsify.pod:209 ../src/guestfs.pod:490
24432 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24437 #: ../resize/virt-resize.pod:46
24439 "As above, but make the /boot partition 200MB bigger, while giving the "
24440 "remaining space to /dev/sda2:"
24444 #: ../resize/virt-resize.pod:49
24447 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24448 " olddisk newdisk\n"
24453 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24454 #: ../sparsify/virt-sparsify.pod:215 ../src/guestfs.pod:501
24455 #: ../src/guestfs.pod:1451
24460 #: ../resize/virt-resize.pod:54
24462 "As in the first example, but expand a logical volume as the final step. "
24463 "This is what you would typically use for Linux guests that use LVM:"
24467 #: ../resize/virt-resize.pod:58
24470 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24471 " olddisk newdisk\n"
24476 #: ../resize/virt-resize.pod:61
24481 #: ../resize/virt-resize.pod:63
24483 "As in the first example, but the output format will be qcow2 instead of a "
24488 #: ../resize/virt-resize.pod:66
24491 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24492 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24497 #: ../resize/virt-resize.pod:71
24498 msgid "DETAILED USAGE"
24499 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
24502 #: ../resize/virt-resize.pod:73
24503 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24504 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
24507 #: ../resize/virt-resize.pod:77
24508 msgid "1. Shut down the virtual machine"
24512 #: ../resize/virt-resize.pod:79
24513 msgid "2. Locate input disk image"
24517 #: ../resize/virt-resize.pod:81
24519 "Locate the input disk image (ie. the file or device on the host containing "
24520 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
24521 "dumpxml> like this to find the disk image name:"
24525 #: ../resize/virt-resize.pod:85
24528 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24529 " Found 1 nodes:\n"
24531 " <source dev=\"/dev/vg/lv_guest\" />\n"
24536 #: ../resize/virt-resize.pod:90
24537 msgid "3. Look at current sizing"
24541 #: ../resize/virt-resize.pod:92
24542 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24546 #: ../resize/virt-resize.pod:95
24549 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24550 " Name Type Size Parent\n"
24551 " /dev/sda1 partition 101M /dev/sda\n"
24552 " /dev/sda2 partition 7.9G /dev/sda\n"
24553 " /dev/sda device 8.0G -\n"
24558 #: ../resize/virt-resize.pod:101
24560 "(This example is a virtual machine with an 8 GB disk which we would like to "
24561 "expand up to 10 GB)."
24565 #: ../resize/virt-resize.pod:104
24566 msgid "4. Create output disk"
24570 #: ../resize/virt-resize.pod:106
24572 "Virt-resize cannot do in-place disk modifications. You have to have space "
24573 "to store the resized output disk."
24577 #: ../resize/virt-resize.pod:109
24579 "To store the resized disk image in a file, create a file of a suitable size:"
24583 #: ../resize/virt-resize.pod:112
24586 " # rm -f outdisk\n"
24587 " # truncate -s 10G outdisk\n"
24592 #: ../resize/virt-resize.pod:115
24593 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24597 #: ../resize/virt-resize.pod:117
24600 " # lvcreate -L 10G -n lv_name vg_name\n"
24605 #: ../resize/virt-resize.pod:119
24606 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24610 #: ../resize/virt-resize.pod:121
24613 " # virsh pool-list\n"
24614 " # virsh vol-create-as poolname newvol 10G\n"
24619 #: ../resize/virt-resize.pod:124
24621 msgstr "5. Зміна розміру"
24624 #: ../resize/virt-resize.pod:126
24626 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24627 "file) and the output disk. The output disk is the one created in the "
24632 #: ../resize/virt-resize.pod:130
24635 " # virt-resize indisk outdisk\n"
24640 #: ../resize/virt-resize.pod:132
24642 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24643 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
24644 "larger, then an extra, empty partition is created at the end of the disk "
24645 "covering the extra space. If C<outdisk> is smaller, then it will give an "
24650 #: ../resize/virt-resize.pod:138
24652 "More realistically you'd want to expand existing partitions in the disk "
24653 "image by passing extra options (for the full list see the L</OPTIONS> "
24658 #: ../resize/virt-resize.pod:142
24660 "L</--expand> is the most useful option. It expands the named partition "
24661 "within the disk to fill any extra space:"
24665 #: ../resize/virt-resize.pod:145
24668 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24673 #: ../resize/virt-resize.pod:147
24675 "(In this case, an extra partition is I<not> created at the end of the disk, "
24676 "because there will be no unused space)."
24680 #: ../resize/virt-resize.pod:150
24682 "L</--resize> is the other commonly used option. The following would "
24683 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24684 "rest of the available space:"
24688 #: ../resize/virt-resize.pod:154
24691 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24692 " indisk outdisk\n"
24697 #: ../resize/virt-resize.pod:157
24699 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24700 "if virt-resize knows how, it will resize the contents, the equivalent of "
24701 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24702 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
24703 "filesystems, so you would have to online resize them after booting the guest."
24707 #: ../resize/virt-resize.pod:164
24708 msgid "Other options are covered below."
24712 #: ../resize/virt-resize.pod:166
24714 msgstr "6. Перевірка"
24717 #: ../resize/virt-resize.pod:168
24718 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24722 #: ../resize/virt-resize.pod:170
24723 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24727 #: ../resize/virt-resize.pod:172
24730 " # virsh edit guestname\n"
24735 #: ../resize/virt-resize.pod:174
24737 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24738 "html#elementsDisks>"
24742 #: ../resize/virt-resize.pod:177
24743 msgid "Then start up the domain with the new, resized disk:"
24747 #: ../resize/virt-resize.pod:179
24750 " # virsh start guestname\n"
24755 #: ../resize/virt-resize.pod:181
24757 "and check that it still works. See also the L</NOTES> section below for "
24758 "additional information."
24762 #: ../resize/virt-resize.pod:184
24763 msgid "7. Resize LVs etc inside the guest"
24767 #: ../resize/virt-resize.pod:186
24768 msgid "(This can also be done offline using L<guestfish(1)>)"
24772 #: ../resize/virt-resize.pod:188
24774 "Once the guest has booted you should see the new space available, at least "
24775 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
24776 "may need to resize LVs inside PVs, and also resize filesystem types that "
24777 "virt-resize does not know how to expand."
24781 #: ../resize/virt-resize.pod:195
24782 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24786 #: ../resize/virt-resize.pod:197
24788 "Shrinking is somewhat more complex than expanding, and only an overview is "
24793 #: ../resize/virt-resize.pod:200
24795 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24796 "filesystems). The user has to shrink content before passing the disk image "
24797 "to virt-resize, and virt-resize will check that the content has been shrunk "
24802 #: ../resize/virt-resize.pod:205
24803 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24807 #: ../resize/virt-resize.pod:207
24809 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24810 "steps 3 and 4 above to allocate a new disk image."
24814 #: ../resize/virt-resize.pod:210
24816 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24820 #: ../resize/virt-resize.pod:213
24821 msgid "IGNORING OR DELETING PARTITIONS"
24825 #: ../resize/virt-resize.pod:215
24827 "virt-resize also gives a convenient way to ignore or delete partitions when "
24828 "copying from the input disk to the output disk. Ignoring a partition speeds "
24829 "up the copy where you don't care about the existing contents of a "
24830 "partition. Deleting a partition removes it completely, but note that it "
24831 "also renumbers any partitions after the one which is deleted, which can "
24832 "leave some guests unbootable."
24836 #: ../resize/virt-resize.pod:222
24837 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24841 #: ../resize/virt-resize.pod:224
24843 "If the input disk is in qcow2 format, then you may prefer that the output is "
24844 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
24845 "the fly. The output format is simply determined by the format of the empty "
24846 "output container that you provide. Thus to create qcow2 output, use:"
24850 #: ../resize/virt-resize.pod:230
24853 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24858 #: ../resize/virt-resize.pod:232
24859 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24863 #: ../resize/virt-resize.pod:234
24864 msgid "Similarly, to get non-sparse raw output use:"
24868 #: ../resize/virt-resize.pod:236
24871 " fallocate -l size outdisk\n"
24876 #: ../resize/virt-resize.pod:238
24878 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24879 "dev/zero of=outdisk bs=1M count=..>)"
24883 #: ../resize/virt-resize.pod:241
24884 msgid "LOGICAL PARTITIONS"
24888 #: ../resize/virt-resize.pod:243
24890 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24891 "tables) cannot be resized."
24895 #: ../resize/virt-resize.pod:246
24897 "To understand what is going on, firstly one of the four partitions C</dev/"
24898 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
24899 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
24904 #: ../resize/virt-resize.pod:251
24905 msgid "Logical partitions live inside the extended partition."
24909 #: ../resize/virt-resize.pod:253
24911 "The extended partition can be expanded, but not shrunk (unless you force it, "
24912 "which is not advisable). When the extended partition is copied across, all "
24913 "the logical partitions contained inside are copied over implicitly. Virt-"
24914 "resize does not look inside the extended partition, so it copies the logical "
24915 "partitions blindly."
24919 #: ../resize/virt-resize.pod:259
24921 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24922 "line. Doing so will give an error."
24926 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24927 msgid "Display help."
24931 #: ../resize/virt-resize.pod:270
24932 msgid "B<--align-first auto>"
24936 #: ../resize/virt-resize.pod:272
24937 msgid "B<--align-first never>"
24941 #: ../resize/virt-resize.pod:274
24942 msgid "B<--align-first always>"
24946 #: ../resize/virt-resize.pod:276
24948 "Align the first partition for improved performance (see also the I<--"
24949 "alignment> option)."
24953 #: ../resize/virt-resize.pod:279
24955 "The default is I<--align-first auto> which only aligns the first partition "
24956 "if it is safe to do so. That is, only when we know how to fix the "
24957 "bootloader automatically, and at the moment that can only be done for "
24962 #: ../resize/virt-resize.pod:284
24964 "I<--align-first never> means we never move the first partition. This is the "
24965 "safest option. Try this if the guest does not boot after resizing."
24969 #: ../resize/virt-resize.pod:288
24971 "I<--align-first always> means we always align the first partition (if it "
24972 "needs to be aligned). For some guests this will break the bootloader, "
24973 "making the guest unbootable."
24977 #: ../resize/virt-resize.pod:292
24978 msgid "B<--alignment N>"
24982 #: ../resize/virt-resize.pod:294
24984 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
24985 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24989 #: ../resize/virt-resize.pod:298
24991 "Assuming 512 byte sector size inside the guest, here are some suitable "
24996 #: ../resize/virt-resize.pod:303
24997 msgid "I<--alignment 1> (512 bytes)"
25001 #: ../resize/virt-resize.pod:305
25003 "The partitions would be packed together as closely as possible, but would be "
25004 "completely unaligned. In some cases this can cause very poor performance. "
25005 "See L<virt-alignment-scan(1)> for further details."
25009 #: ../resize/virt-resize.pod:309
25010 msgid "I<--alignment 8> (4K)"
25014 #: ../resize/virt-resize.pod:311
25016 "This would be the minimum acceptable alignment for reasonable performance on "
25021 #: ../resize/virt-resize.pod:314
25022 msgid "I<--alignment 128> (64K)"
25026 #: ../resize/virt-resize.pod:316
25028 "This alignment provides good performance when the host is using high end "
25033 #: ../resize/virt-resize.pod:319
25034 msgid "I<--alignment 2048> (1M)"
25038 #: ../resize/virt-resize.pod:321
25040 "This is the standard alignment used by all newly installed guests since "
25045 #: ../resize/virt-resize.pod:326
25050 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25051 #: ../tools/virt-win-reg.pl:120
25053 msgstr "B<--debug>"
25056 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25057 msgid "Enable debugging messages."
25061 #: ../resize/virt-resize.pod:332
25062 msgid "B<--delete part>"
25063 msgstr "B<--delete розділ>"
25066 #: ../resize/virt-resize.pod:334
25068 "Delete the named partition. It would be more accurate to describe this as "
25069 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25070 "the original disk image is left intact."
25074 #: ../resize/virt-resize.pod:338
25076 "Note that when you delete a partition, then anything contained in the "
25077 "partition is also deleted. Furthermore, this causes any partitions that "
25078 "come after to be I<renumbered>, which can easily make your guest unbootable."
25082 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
25083 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:144
25084 msgid "You can give this option multiple times."
25088 #: ../resize/virt-resize.pod:345
25089 msgid "B<--expand part>"
25090 msgstr "B<--expand розділ>"
25093 #: ../resize/virt-resize.pod:347
25095 "Expand the named partition so it uses up all extra space (space left over "
25096 "after any other resize changes that you request have been done)."
25100 #: ../resize/virt-resize.pod:350
25102 "If virt-resize knows how, it will expand the direct content of the "
25103 "partition. For example, if the partition is an LVM PV, it will expand the "
25104 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
25105 "content it doesn't know about alone."
25109 #: ../resize/virt-resize.pod:355
25110 msgid "Currently virt-resize can resize:"
25114 #: ../resize/virt-resize.pod:361
25115 msgid "ext2, ext3 and ext4 filesystems."
25119 #: ../resize/virt-resize.pod:365
25120 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25124 #: ../resize/virt-resize.pod:367
25126 "The filesystem must have been shut down consistently last time it was used. "
25127 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25128 "consistency check, so at the first boot after resizing Windows will check "
25133 #: ../resize/virt-resize.pod:374
25135 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
25136 "inside the PV, but see the I<--LV-expand> option. The user could also "
25137 "resize LVs as desired after boot."
25141 #: ../resize/virt-resize.pod:380
25142 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25146 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
25147 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25151 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:124
25152 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25153 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25154 msgid "B<--format> raw"
25155 msgstr "B<--format> raw"
25158 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:128
25160 "Specify the format of the input disk image. If this flag is not given then "
25161 "it is auto-detected from the image itself."
25165 #: ../resize/virt-resize.pod:394
25167 "Note that this option I<does not> affect the output format. See L</QCOW2 "
25168 "AND NON-SPARSE RAW FORMATS>."
25172 #: ../resize/virt-resize.pod:397
25173 msgid "B<--ignore part>"
25174 msgstr "B<--ignore розділ>"
25177 #: ../resize/virt-resize.pod:399
25179 "Ignore the named partition. Effectively this means the partition is "
25180 "allocated on the destination disk, but the content is not copied across from "
25181 "the source disk. The content of the partition will be blank (all zero "
25186 #: ../resize/virt-resize.pod:406
25187 msgid "B<--LV-expand logvol>"
25188 msgstr "B<--LV-expand логічний_том>"
25191 #: ../resize/virt-resize.pod:408
25193 "This takes the logical volume and, as a final step, expands it to fill all "
25194 "the space available in its volume group. A typical usage, assuming a Linux "
25195 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25196 "lv_root> would be:"
25200 #: ../resize/virt-resize.pod:413
25203 " virt-resize indisk outdisk \\\n"
25204 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25209 #: ../resize/virt-resize.pod:416
25211 "This would first expand the partition (and PV), and then expand the root "
25212 "device to fill the extra space in the PV."
25216 #: ../resize/virt-resize.pod:419
25218 "The contents of the LV are also resized if virt-resize knows how to do "
25219 "that. You can stop virt-resize from trying to expand the content by using "
25220 "the option I<--no-expand-content>."
25224 #: ../resize/virt-resize.pod:423
25225 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25229 #: ../resize/virt-resize.pod:425
25231 "You can give this option multiple times, I<but> it doesn't make sense to do "
25232 "this unless the logical volumes you specify are all in different volume "
25237 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:146
25238 msgid "B<--machine-readable>"
25242 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:148
25244 "This option is used to make the output more machine friendly when being "
25245 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
25249 #: ../resize/virt-resize.pod:437
25250 msgid "B<--dryrun>"
25251 msgstr "B<--dryrun>"
25254 #: ../resize/virt-resize.pod:439
25255 msgid "Print a summary of what would be done, but don't do anything."
25259 #: ../resize/virt-resize.pod:441
25260 msgid "B<--no-copy-boot-loader>"
25261 msgstr "B<--no-copy-boot-loader>"
25264 #: ../resize/virt-resize.pod:443
25266 "By default, virt-resize copies over some sectors at the start of the disk "
25267 "(up to the beginning of the first partition). Commonly these sectors "
25268 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25269 "in order for the guest to boot correctly."
25273 #: ../resize/virt-resize.pod:448
25275 "If you specify this flag, then this initial copy is not done. You may need "
25276 "to reinstall the boot loader in this case."
25280 #: ../resize/virt-resize.pod:451
25281 msgid "B<--no-extra-partition>"
25282 msgstr "B<--no-extra-partition>"
25285 #: ../resize/virt-resize.pod:453
25287 "By default, virt-resize creates an extra partition if there is any extra, "
25288 "unused space after all resizing has happened. Use this option to prevent "
25289 "the extra partition from being created. If you do this then the extra space "
25290 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25291 "tool in the guest."
25295 #: ../resize/virt-resize.pod:459
25297 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25302 #: ../resize/virt-resize.pod:462
25303 msgid "B<--no-expand-content>"
25304 msgstr "B<--no-expand-content>"
25307 #: ../resize/virt-resize.pod:464
25309 "By default, virt-resize will try to expand the direct contents of "
25310 "partitions, if it knows how (see I<--expand> option above)."
25314 #: ../resize/virt-resize.pod:467
25316 "If you give the I<--no-expand-content> option then virt-resize will not "
25321 #: ../resize/virt-resize.pod:470
25322 msgid "B<--ntfsresize-force>"
25323 msgstr "B<--ntfsresize-force>"
25326 #: ../resize/virt-resize.pod:472
25328 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25329 "the NTFS disk is marked as needing a consistency check. You have to use "
25330 "this option if you want to resize a Windows guest multiple times without "
25331 "booting into Windows between each resize."
25335 #: ../resize/virt-resize.pod:478
25336 msgid "B<--output-format> raw"
25337 msgstr "B<--output-format> raw"
25340 #: ../resize/virt-resize.pod:480
25342 "Specify the format of the output disk image. If this flag is not given then "
25343 "it is auto-detected from the image itself."
25347 #: ../resize/virt-resize.pod:486
25349 "Note that this option I<does not create> the output format. This option "
25350 "just tells libguestfs what it is so it doesn't try to guess it. You still "
25351 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
25352 "SPARSE RAW FORMATS>."
25356 #: ../resize/virt-resize.pod:495
25357 msgid "Don't print the summary."
25361 #: ../resize/virt-resize.pod:497
25362 msgid "B<--resize part=size>"
25363 msgstr "B<--resize розділ=розмір>"
25366 #: ../resize/virt-resize.pod:499
25368 "Resize the named partition (expanding or shrinking it) so that it has the "
25373 #: ../resize/virt-resize.pod:502
25375 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25376 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25377 "size; or as a relative number or percentage. For example:"
25381 #: ../resize/virt-resize.pod:508
25384 " --resize /dev/sda2=10G\n"
25389 #: ../resize/virt-resize.pod:510
25392 " --resize /dev/sda4=90%\n"
25397 #: ../resize/virt-resize.pod:512
25400 " --resize /dev/sda2=+1G\n"
25405 #: ../resize/virt-resize.pod:514
25408 " --resize /dev/sda2=-200M\n"
25413 #: ../resize/virt-resize.pod:516
25416 " --resize /dev/sda1=+128K\n"
25421 #: ../resize/virt-resize.pod:518
25424 " --resize /dev/sda1=+10%\n"
25429 #: ../resize/virt-resize.pod:520
25432 " --resize /dev/sda1=-10%\n"
25437 #: ../resize/virt-resize.pod:522
25439 "You can increase the size of any partition. Virt-resize will expand the "
25440 "direct content of the partition if it knows how (see I<--expand> below)."
25444 #: ../resize/virt-resize.pod:526
25446 "You can only I<decrease> the size of partitions that contain filesystems or "
25447 "PVs which have already been shrunk. Virt-resize will check this has been "
25448 "done before proceeding, or else will print an error (see also I<--resize-"
25453 #: ../resize/virt-resize.pod:533
25454 msgid "B<--resize-force part=size>"
25455 msgstr "B<--resize-force розділ=розмір>"
25458 #: ../resize/virt-resize.pod:535
25460 "This is the same as I<--resize> except that it will let you decrease the "
25461 "size of any partition. Generally this means you will lose any data which "
25462 "was at the end of the partition you shrink, but you may not care about that "
25463 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25464 "as a swap partition)."
25468 #: ../resize/virt-resize.pod:541
25469 msgid "See also the I<--ignore> option."
25473 #: ../resize/virt-resize.pod:543
25474 msgid "B<--shrink part>"
25475 msgstr "B<--shrink розділ>"
25478 #: ../resize/virt-resize.pod:545
25480 "Shrink the named partition until the overall disk image fits in the "
25481 "destination. The named partition B<must> contain a filesystem or PV which "
25482 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25483 "online tools). Virt-resize will check this and give an error if it has not "
25488 #: ../resize/virt-resize.pod:551
25490 "The amount by which the overall disk must be shrunk (after carrying out all "
25491 "other operations requested by the user) is called the \"deficit\". For "
25492 "example, a straight copy (assume no other operations) from a 5GB disk image "
25493 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
25494 "would give an error unless the user specified a partition to shrink and that "
25495 "partition had more than a gigabyte of free space."
25499 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:176
25500 msgid "MACHINE READABLE OUTPUT"
25504 #: ../resize/virt-resize.pod:571
25506 "The I<--machine-readable> option can be used to make the output more machine "
25507 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25512 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:182
25513 msgid "There are two ways to use this option."
25517 #: ../resize/virt-resize.pod:577
25519 "Firstly use the option on its own to query the capabilities of the virt-"
25520 "resize binary. Typical output looks like this:"
25524 #: ../resize/virt-resize.pod:580
25527 " $ virt-resize --machine-readable\n"
25529 " ntfsresize-force\n"
25537 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:192
25539 "A list of features is printed, one per line, and the program exits with "
25544 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:195
25546 "Secondly use the option in conjunction with other options to make the "
25547 "regular program output more machine friendly."
25551 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:198
25552 msgid "At the moment this means:"
25556 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:204
25558 "Progress bar messages can be parsed from stdout by looking for this regular "
25563 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:207
25566 " ^[0-9]+/[0-9]+$\n"
25571 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:211
25573 "The calling program should treat messages sent to stdout (except for "
25574 "progress bar messages) as status messages. They can be logged and/or "
25575 "displayed to the user."
25579 #: ../resize/virt-resize.pod:612
25581 "The calling program should treat messages sent to stderr as error messages. "
25582 "In addition, virt-resize exits with a non-zero status code if there was a "
25587 #: ../resize/virt-resize.pod:618
25589 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25590 "readable> option and will return an error."
25594 #: ../resize/virt-resize.pod:623
25595 msgid "\"Partition 1 does not end on cylinder boundary.\""
25599 #: ../resize/virt-resize.pod:625
25601 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25602 "alignment> parameter). Usually this means the partitions will not be "
25603 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
25604 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25605 "drives. Alignment of partitions to cylinders is not required by any modern "
25606 "operating system."
25610 #: ../resize/virt-resize.pod:632
25611 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25615 #: ../resize/virt-resize.pod:634
25617 "In Windows Vista and later versions, Microsoft switched to using a separate "
25618 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
25619 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
25620 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
25621 "the second partition (ie. C: drive) should work."
25625 #: ../resize/virt-resize.pod:641
25627 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25628 "NTFS partitions have been expanded. This is just a safety check and (unless "
25629 "it find errors) is nothing to worry about."
25633 #: ../resize/virt-resize.pod:645
25634 msgid "GUEST BOOT STUCK AT \"GRUB\""
25638 #: ../resize/virt-resize.pod:647
25640 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25641 "printing C<GRUB> on the console, try reinstalling grub."
25645 #: ../resize/virt-resize.pod:650
25648 " guestfish -i -a newdisk\n"
25649 " ><fs> cat /boot/grub/device.map\n"
25650 " # check the contents of this file are sensible or\n"
25651 " # edit the file if necessary\n"
25652 " ><fs> grub-install / /dev/vda\n"
25658 #: ../resize/virt-resize.pod:657
25660 "For more flexible guest reconfiguration, including if you need to specify "
25661 "other parameters to grub-install, use L<virt-rescue(1)>."
25665 #: ../resize/virt-resize.pod:660
25666 msgid "ALTERNATIVE TOOLS"
25670 #: ../resize/virt-resize.pod:662
25672 "There are several proprietary tools for resizing partitions. We won't "
25673 "mention any here."
25677 #: ../resize/virt-resize.pod:665
25679 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25680 "operations on disk images. They can resize and move partitions, but I don't "
25681 "think they can do anything with the contents, and they certainly don't "
25686 #: ../resize/virt-resize.pod:670
25688 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25689 "but at a much lower level. You will probably end up hand-calculating sector "
25690 "offsets, which is something that virt-resize was designed to avoid. If you "
25691 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25696 #: ../resize/virt-resize.pod:690
25698 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25699 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25700 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25701 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25702 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25706 #: ../ruby/examples/guestfs-ruby.pod:5
25707 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25711 #: ../ruby/examples/guestfs-ruby.pod:9
25714 " require 'guestfs'\n"
25715 " g = Guestfs::Guestfs.new()\n"
25716 " g.add_drive_opts(\"disk.img\",\n"
25717 " :readonly => 1, :format => \"raw\")\n"
25723 #: ../ruby/examples/guestfs-ruby.pod:17
25725 "This manual page documents how to call libguestfs from the Ruby programming "
25726 "language. This page just documents the differences from the C API and gives "
25727 "some examples. If you are not familiar with using libguestfs, you also need "
25728 "to read L<guestfs(3)>."
25732 #: ../ruby/examples/guestfs-ruby.pod:24
25734 "Errors from libguestfs functions are mapped into the C<Error> exception. "
25735 "This has a single parameter which is the error message (a string)."
25739 #: ../ruby/examples/guestfs-ruby.pod:38
25741 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25742 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25743 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25747 #: ../sparsify/virt-sparsify.pod:5
25748 msgid "virt-sparsify - Make a virtual machine disk sparse"
25752 #: ../sparsify/virt-sparsify.pod:9
25755 " virt-sparsify [--options] indisk outdisk\n"
25760 #: ../sparsify/virt-sparsify.pod:13
25762 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25763 "image) sparse a.k.a. thin-provisioned. This means that free space within "
25764 "the disk image can be converted back to free space on the host."
25768 #: ../sparsify/virt-sparsify.pod:18
25770 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25771 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25775 #: ../sparsify/virt-sparsify.pod:21
25777 "Virt-sparsify can also convert between some disk formats, for example "
25778 "converting a raw disk image to a thin-provisioned qcow2 image."
25782 #: ../sparsify/virt-sparsify.pod:24
25784 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25785 "machines. If a virtual machine has more than one attached disk, you must "
25786 "sparsify each one separately."
25790 #: ../sparsify/virt-sparsify.pod:28
25791 msgid "IMPORTANT LIMITATIONS"
25795 #: ../sparsify/virt-sparsify.pod:34
25797 "Virt-sparsify does not do in-place modifications. It copies from a source "
25798 "image to a destination image, leaving the source unchanged. I<Check that "
25799 "the sparsification was successful before deleting the source image>."
25803 #: ../sparsify/virt-sparsify.pod:41
25804 msgid "The virtual machine I<must be shut down> before using this tool."
25808 #: ../sparsify/virt-sparsify.pod:45
25810 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25811 "(1 temporary copy + 1 destination image). This is in the worst case and "
25812 "usually much less space is required."
25816 #: ../sparsify/virt-sparsify.pod:51
25818 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
25822 #: ../sparsify/virt-sparsify.pod:56
25823 msgid "Virt-sparsify cannot handle encrypted disks."
25827 #: ../sparsify/virt-sparsify.pod:60
25829 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
25830 "this space is often used for critical items like bootloaders so it's not "
25835 #: ../sparsify/virt-sparsify.pod:66
25837 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
25838 "to do this unless we can be sure there is no hibernation data, so at the "
25839 "moment swap partitions are ignored."
25843 #: ../sparsify/virt-sparsify.pod:72
25845 "You may also want to read the manual pages for the associated tools L<virt-"
25846 "filesystems(1)> and L<virt-df(1)> before starting."
25850 #: ../sparsify/virt-sparsify.pod:77
25851 msgid "Typical usage is:"
25855 #: ../sparsify/virt-sparsify.pod:79
25858 " virt-sparsify indisk outdisk\n"
25863 #: ../sparsify/virt-sparsify.pod:81
25865 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
25866 "is created, or overwritten if it already exists. The format of the input "
25867 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25871 #: ../sparsify/virt-sparsify.pod:86
25872 msgid "To convert between formats, use the I<--convert> option:"
25876 #: ../sparsify/virt-sparsify.pod:88
25879 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25884 #: ../sparsify/virt-sparsify.pod:90
25886 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25887 "can find within the source disk image. You can get it to ignore (don't zero "
25888 "free space on) certain filesystems by doing:"
25892 #: ../sparsify/virt-sparsify.pod:94
25895 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25900 #: ../sparsify/virt-sparsify.pod:96
25902 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25906 #: ../sparsify/virt-sparsify.pod:107
25907 msgid "B<--convert> raw"
25911 #: ../sparsify/virt-sparsify.pod:109
25912 msgid "B<--convert> qcow2"
25916 #: ../sparsify/virt-sparsify.pod:111
25917 msgid "B<--convert> [other formats]"
25921 #: ../sparsify/virt-sparsify.pod:113
25923 "Use C<output-format> as the format for the destination image. If this is "
25924 "not specified, then the input format is used."
25928 #: ../sparsify/virt-sparsify.pod:116
25930 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25934 #: ../sparsify/virt-sparsify.pod:118
25936 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25937 "C<vmdk>, but support for other formats is reliant on qemu."
25941 #: ../sparsify/virt-sparsify.pod:121
25943 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25944 "sparsify doesn't need to try to guess the input format."
25948 #: ../sparsify/virt-sparsify.pod:126
25949 msgid "B<--format> qcow2"
25953 #: ../sparsify/virt-sparsify.pod:134
25954 msgid "B<--ignore> filesystem"
25958 #: ../sparsify/virt-sparsify.pod:136
25959 msgid "B<--ignore> volgroup"
25963 #: ../sparsify/virt-sparsify.pod:138
25965 "Ignore the named filesystem. Free space on the filesystem will not be "
25966 "zeroed, but existing blocks of zeroes will still be sparsified."
25970 #: ../sparsify/virt-sparsify.pod:141
25972 "In the second form, this ignores the named volume group. Use the volume "
25973 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25977 #: ../sparsify/virt-sparsify.pod:156
25978 msgid "This disables progress bars and other unnecessary output."
25982 #: ../sparsify/virt-sparsify.pod:178
25984 "The I<--machine-readable> option can be used to make the output more machine "
25985 "friendly, which is useful when calling virt-sparsify from other programs, "
25990 #: ../sparsify/virt-sparsify.pod:184
25992 "Firstly use the option on its own to query the capabilities of the virt-"
25993 "sparsify binary. Typical output looks like this:"
25997 #: ../sparsify/virt-sparsify.pod:187
26000 " $ virt-sparsify --machine-readable\n"
26008 #: ../sparsify/virt-sparsify.pod:217
26010 "The calling program should treat messages sent to stderr as error messages. "
26011 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26016 #: ../sparsify/virt-sparsify.pod:223
26018 "All versions of virt-sparsify have supported the I<--machine-readable> "
26023 #: ../sparsify/virt-sparsify.pod:237
26025 "Location of the temporary directory used for the potentially large temporary "
26030 #: ../sparsify/virt-sparsify.pod:240
26032 "You should ensure there is enough free space in the worst case for a full "
26033 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26034 "to another directory that has enough space."
26038 #: ../sparsify/virt-sparsify.pod:244
26039 msgid "This defaults to C</tmp>."
26043 #: ../sparsify/virt-sparsify.pod:248
26045 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26049 #: ../sparsify/virt-sparsify.pod:252
26051 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26052 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26053 "(1)>, L<http://libguestfs.org/>."
26057 #: ../src/guestfs-actions.pod:1
26058 msgid "guestfs_add_cdrom"
26062 #: ../src/guestfs-actions.pod:3
26066 " guestfs_add_cdrom (guestfs_h *g,\n"
26067 " const char *filename);\n"
26072 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26073 #: ../src/guestfs-actions.pod:323
26075 "I<This function is deprecated.> In new code, use the L</"
26076 "guestfs_add_drive_opts> call instead."
26080 #: ../src/guestfs-actions.pod:24
26082 "This call checks for the existence of C<filename>. This stops you from "
26083 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26084 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
26089 #: ../src/guestfs-actions.pod:31
26091 "If you just want to add an ISO file (often you use this as an efficient way "
26092 "to transfer large files into the guest), then you should probably use "
26093 "C<guestfs_add_drive_ro> instead."
26097 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26098 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26099 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26100 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26101 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26102 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26103 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26104 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26105 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26106 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26107 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26108 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26109 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26110 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26111 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26112 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26113 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26114 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26115 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26116 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26117 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26118 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26119 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26120 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26121 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26122 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
26123 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
26124 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
26125 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
26126 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
26127 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
26128 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
26129 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
26130 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
26131 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
26132 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
26133 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
26134 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
26135 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
26136 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
26137 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
26138 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
26139 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
26140 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
26141 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
26142 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
26143 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
26144 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
26145 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
26146 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
26147 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
26148 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
26149 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
26150 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
26151 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
26152 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
26153 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
26154 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
26155 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
26156 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
26157 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
26158 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
26159 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
26160 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
26161 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
26162 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
26163 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
26164 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
26165 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
26166 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
26167 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
26168 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
26169 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
26170 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
26171 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
26172 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
26173 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
26174 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
26175 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
26176 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
26177 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
26178 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
26179 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26180 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
26181 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
26182 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
26183 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
26184 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
26185 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
26186 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
26187 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
26188 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
26189 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
26190 #: ../src/guestfs-actions.pod:8295
26191 msgid "This function returns 0 on success or -1 on error."
26195 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26196 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26197 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26198 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
26199 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
26200 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
26201 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
26202 #: ../src/guestfs-actions.pod:8075
26203 msgid "(Added in 0.3)"
26204 msgstr "(Додано у 0.3)"
26207 #: ../src/guestfs-actions.pod:41
26208 msgid "guestfs_add_domain"
26212 #: ../src/guestfs-actions.pod:43
26216 " guestfs_add_domain (guestfs_h *g,\n"
26217 " const char *dom,\n"
26223 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26224 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26225 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26226 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26227 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26228 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
26229 #: ../src/guestfs-actions.pod:5626
26231 "You may supply a list of optional arguments to this call. Use zero or more "
26232 "of the following pairs of parameters, and terminate the list with C<-1> on "
26233 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
26237 #: ../src/guestfs-actions.pod:53
26240 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26241 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26242 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26243 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26244 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26245 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26250 #: ../src/guestfs-actions.pod:60
26252 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
26253 "It works by connecting to libvirt, requesting the domain and domain XML from "
26254 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26259 #: ../src/guestfs-actions.pod:141
26261 "The other optional parameters are passed directly through to "
26262 "C<guestfs_add_drive_opts>."
26266 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26267 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26268 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26269 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26270 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26271 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26272 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26273 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26274 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26275 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
26276 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
26277 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
26278 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
26279 #: ../src/guestfs-actions.pod:8112
26280 msgid "On error this function returns -1."
26284 #: ../src/guestfs-actions.pod:146
26285 msgid "(Added in 1.7.4)"
26286 msgstr "(Додано у 1.7.4)"
26289 #: ../src/guestfs-actions.pod:148
26290 msgid "guestfs_add_domain_va"
26294 #: ../src/guestfs-actions.pod:150
26298 " guestfs_add_domain_va (guestfs_h *g,\n"
26299 " const char *dom,\n"
26300 " va_list args);\n"
26305 #: ../src/guestfs-actions.pod:155
26306 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26310 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26311 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26312 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26313 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26314 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26315 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26316 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26317 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26318 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26319 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26320 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
26321 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
26322 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
26323 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26324 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26327 #: ../src/guestfs-actions.pod:159
26328 msgid "guestfs_add_domain_argv"
26329 msgstr "guestfs_add_domain_argv"
26332 #: ../src/guestfs-actions.pod:161
26336 " guestfs_add_domain_argv (guestfs_h *g,\n"
26337 " const char *dom,\n"
26338 " const struct guestfs_add_domain_argv *optargs);\n"
26343 #: ../src/guestfs-actions.pod:166
26344 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26348 #: ../src/guestfs-actions.pod:170
26349 msgid "guestfs_add_drive"
26353 #: ../src/guestfs-actions.pod:172
26357 " guestfs_add_drive (guestfs_h *g,\n"
26358 " const char *filename);\n"
26363 #: ../src/guestfs-actions.pod:176
26365 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26366 "optional parameters, so the disk is added writable, with the format being "
26367 "detected automatically."
26371 #: ../src/guestfs-actions.pod:180
26373 "Automatic detection of the format opens you up to a potential security hole "
26374 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
26375 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
26376 "you should think about replacing calls to this function with calls to "
26377 "C<guestfs_add_drive_opts>, and specifying the format."
26381 #: ../src/guestfs-actions.pod:191
26382 msgid "guestfs_add_drive_opts"
26386 #: ../src/guestfs-actions.pod:193
26390 " guestfs_add_drive_opts (guestfs_h *g,\n"
26391 " const char *filename,\n"
26397 #: ../src/guestfs-actions.pod:203
26400 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26401 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26402 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26403 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26408 #: ../src/guestfs-actions.pod:233
26410 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
26411 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
26412 "Possible formats include C<raw> and C<qcow2>."
26416 #: ../src/guestfs-actions.pod:244
26418 "This rarely-used option lets you emulate the behaviour of the deprecated "
26419 "C<guestfs_add_drive_with_if> call (q.v.)"
26423 #: ../src/guestfs-actions.pod:256
26424 msgid "(Added in 1.5.23)"
26425 msgstr "(Додано у 1.5.23)"
26428 #: ../src/guestfs-actions.pod:258
26429 msgid "guestfs_add_drive_opts_va"
26433 #: ../src/guestfs-actions.pod:260
26437 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26438 " const char *filename,\n"
26439 " va_list args);\n"
26444 #: ../src/guestfs-actions.pod:265
26445 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26449 #: ../src/guestfs-actions.pod:269
26450 msgid "guestfs_add_drive_opts_argv"
26454 #: ../src/guestfs-actions.pod:271
26458 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26459 " const char *filename,\n"
26460 " const struct guestfs_add_drive_opts_argv *optargs);\n"
26465 #: ../src/guestfs-actions.pod:276
26466 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26470 #: ../src/guestfs-actions.pod:280
26471 msgid "guestfs_add_drive_ro"
26475 #: ../src/guestfs-actions.pod:282
26479 " guestfs_add_drive_ro (guestfs_h *g,\n"
26480 " const char *filename);\n"
26485 #: ../src/guestfs-actions.pod:286
26487 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26488 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26489 "disk is added read-only, with the format being detected automatically."
26493 #: ../src/guestfs-actions.pod:293
26494 msgid "(Added in 1.0.38)"
26495 msgstr "(Додано у 1.0.38)"
26498 #: ../src/guestfs-actions.pod:295
26499 msgid "guestfs_add_drive_ro_with_if"
26503 #: ../src/guestfs-actions.pod:297
26507 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26508 " const char *filename,\n"
26509 " const char *iface);\n"
26514 #: ../src/guestfs-actions.pod:309
26516 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26517 "QEMU interface emulation to use at run time."
26521 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26522 #: ../src/guestfs-actions.pod:2881
26523 msgid "(Added in 1.0.84)"
26524 msgstr "(Додано у 1.0.84)"
26527 #: ../src/guestfs-actions.pod:316
26528 msgid "guestfs_add_drive_with_if"
26532 #: ../src/guestfs-actions.pod:318
26536 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26537 " const char *filename,\n"
26538 " const char *iface);\n"
26543 #: ../src/guestfs-actions.pod:330
26545 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26546 "QEMU interface emulation to use at run time."
26550 #: ../src/guestfs-actions.pod:337
26551 msgid "guestfs_aug_clear"
26555 #: ../src/guestfs-actions.pod:339
26559 " guestfs_aug_clear (guestfs_h *g,\n"
26560 " const char *augpath);\n"
26565 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26566 msgid "(Added in 1.3.4)"
26567 msgstr "(Додано у 1.3.4)"
26570 #: ../src/guestfs-actions.pod:350
26571 msgid "guestfs_aug_close"
26575 #: ../src/guestfs-actions.pod:352
26579 " guestfs_aug_close (guestfs_h *g);\n"
26584 #: ../src/guestfs-actions.pod:355
26586 "Close the current Augeas handle and free up any resources used by it. After "
26587 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26588 "any other Augeas functions."
26592 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26593 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26594 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26595 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26596 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26597 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26598 #: ../src/guestfs-actions.pod:6311
26599 msgid "(Added in 0.7)"
26600 msgstr "(Додано у 0.7)"
26603 #: ../src/guestfs-actions.pod:364
26604 msgid "guestfs_aug_defnode"
26608 #: ../src/guestfs-actions.pod:366
26611 " struct guestfs_int_bool *\n"
26612 " guestfs_aug_defnode (guestfs_h *g,\n"
26613 " const char *name,\n"
26614 " const char *expr,\n"
26615 " const char *val);\n"
26620 #: ../src/guestfs-actions.pod:375
26622 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26623 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
26624 "containing that single node."
26628 #: ../src/guestfs-actions.pod:383
26630 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26631 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
26635 #: ../src/guestfs-actions.pod:389
26636 msgid "guestfs_aug_defvar"
26640 #: ../src/guestfs-actions.pod:391
26644 " guestfs_aug_defvar (guestfs_h *g,\n"
26645 " const char *name,\n"
26646 " const char *expr);\n"
26651 #: ../src/guestfs-actions.pod:407
26652 msgid "guestfs_aug_get"
26653 msgstr "guestfs_aug_get"
26656 #: ../src/guestfs-actions.pod:409
26660 " guestfs_aug_get (guestfs_h *g,\n"
26661 " const char *augpath);\n"
26665 " guestfs_aug_get (guestfs_h *g,\n"
26666 " const char *augpath);\n"
26670 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26671 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26672 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26673 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26674 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26675 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26676 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26677 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26678 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26679 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26680 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26681 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26682 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26683 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26684 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26685 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
26686 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
26687 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
26688 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
26689 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
26690 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
26691 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
26692 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
26693 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
26695 "This function returns a string, or NULL on error. I<The caller must free "
26696 "the returned string after use>."
26700 #: ../src/guestfs-actions.pod:421
26701 msgid "guestfs_aug_init"
26702 msgstr "guestfs_aug_init"
26705 #: ../src/guestfs-actions.pod:423
26709 " guestfs_aug_init (guestfs_h *g,\n"
26710 " const char *root,\n"
26715 " guestfs_aug_init (guestfs_h *g,\n"
26716 " const char *root,\n"
26721 #: ../src/guestfs-actions.pod:432
26722 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26726 #: ../src/guestfs-actions.pod:457
26728 "This option is only useful when debugging Augeas lenses. Use of this option "
26729 "may require additional memory for the libguestfs appliance. You may need to "
26730 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26731 "C<guestfs_set_memsize>."
26735 #: ../src/guestfs-actions.pod:472
26736 msgid "Do not load the tree in C<guestfs_aug_init>."
26740 #: ../src/guestfs-actions.pod:476
26741 msgid "To close the handle, you can call C<guestfs_aug_close>."
26745 #: ../src/guestfs-actions.pod:484
26746 msgid "guestfs_aug_insert"
26747 msgstr "guestfs_aug_insert"
26750 #: ../src/guestfs-actions.pod:486
26754 " guestfs_aug_insert (guestfs_h *g,\n"
26755 " const char *augpath,\n"
26756 " const char *label,\n"
26761 " guestfs_aug_insert (guestfs_h *g,\n"
26762 " const char *augpath,\n"
26763 " const char *label,\n"
26768 #: ../src/guestfs-actions.pod:504
26769 msgid "guestfs_aug_load"
26770 msgstr "guestfs_aug_load"
26773 #: ../src/guestfs-actions.pod:506
26777 " guestfs_aug_load (guestfs_h *g);\n"
26781 " guestfs_aug_load (guestfs_h *g);\n"
26785 #: ../src/guestfs-actions.pod:518
26786 msgid "guestfs_aug_ls"
26787 msgstr "guestfs_aug_ls"
26790 #: ../src/guestfs-actions.pod:520
26794 " guestfs_aug_ls (guestfs_h *g,\n"
26795 " const char *augpath);\n"
26799 " guestfs_aug_ls (guestfs_h *g,\n"
26800 " const char *augpath);\n"
26804 #: ../src/guestfs-actions.pod:524
26806 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26807 "sorting the resulting nodes into alphabetical order."
26811 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26812 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26813 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26814 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26815 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26816 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26817 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26818 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26819 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26820 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26821 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26822 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
26823 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
26824 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
26825 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
26826 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
26827 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
26828 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
26829 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
26830 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
26831 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
26832 #: ../src/guestfs-actions.pod:8393
26834 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26835 ">), or NULL if there was an error. I<The caller must free the strings and "
26836 "the array after use>."
26840 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26841 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26842 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26843 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
26844 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
26845 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
26846 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
26847 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
26848 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
26849 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
26850 #: ../src/guestfs-actions.pod:8187
26851 msgid "(Added in 0.8)"
26852 msgstr "(Додано у 0.8)"
26855 #: ../src/guestfs-actions.pod:533
26856 msgid "guestfs_aug_match"
26857 msgstr "guestfs_aug_match"
26860 #: ../src/guestfs-actions.pod:535
26864 " guestfs_aug_match (guestfs_h *g,\n"
26865 " const char *augpath);\n"
26869 " guestfs_aug_match (guestfs_h *g,\n"
26870 " const char *augpath);\n"
26874 #: ../src/guestfs-actions.pod:549
26875 msgid "guestfs_aug_mv"
26876 msgstr "guestfs_aug_mv"
26879 #: ../src/guestfs-actions.pod:551
26883 " guestfs_aug_mv (guestfs_h *g,\n"
26884 " const char *src,\n"
26885 " const char *dest);\n"
26889 " guestfs_aug_mv (guestfs_h *g,\n"
26890 " const char *src,\n"
26891 " const char *dest);\n"
26895 #: ../src/guestfs-actions.pod:563
26896 msgid "guestfs_aug_rm"
26897 msgstr "guestfs_aug_rm"
26900 #: ../src/guestfs-actions.pod:565
26904 " guestfs_aug_rm (guestfs_h *g,\n"
26905 " const char *augpath);\n"
26909 " guestfs_aug_rm (guestfs_h *g,\n"
26910 " const char *augpath);\n"
26914 #: ../src/guestfs-actions.pod:577
26915 msgid "guestfs_aug_save"
26916 msgstr "guestfs_aug_save"
26919 #: ../src/guestfs-actions.pod:579
26923 " guestfs_aug_save (guestfs_h *g);\n"
26927 " guestfs_aug_save (guestfs_h *g);\n"
26931 #: ../src/guestfs-actions.pod:584
26933 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26938 #: ../src/guestfs-actions.pod:591
26939 msgid "guestfs_aug_set"
26940 msgstr "guestfs_aug_set"
26943 #: ../src/guestfs-actions.pod:593
26947 " guestfs_aug_set (guestfs_h *g,\n"
26948 " const char *augpath,\n"
26949 " const char *val);\n"
26953 " guestfs_aug_set (guestfs_h *g,\n"
26954 " const char *augpath,\n"
26955 " const char *val);\n"
26959 #: ../src/guestfs-actions.pod:600
26961 "In the Augeas API, it is possible to clear a node by setting the value to "
26962 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26963 "this call. Instead you must use the C<guestfs_aug_clear> call."
26967 #: ../src/guestfs-actions.pod:609
26968 msgid "guestfs_available"
26969 msgstr "guestfs_available"
26972 #: ../src/guestfs-actions.pod:611
26976 " guestfs_available (guestfs_h *g,\n"
26977 " char *const *groups);\n"
26981 " guestfs_available (guestfs_h *g,\n"
26982 " char *const *groups);\n"
26986 #: ../src/guestfs-actions.pod:619
26988 "The libguestfs groups, and the functions that those groups correspond to, "
26989 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26990 "runtime by calling C<guestfs_available_all_groups>."
26994 #: ../src/guestfs-actions.pod:643
26995 msgid "You must call C<guestfs_launch> before calling this function."
26999 #: ../src/guestfs-actions.pod:665
27001 "This call was added in version C<1.0.80>. In previous versions of "
27002 "libguestfs all you could do would be to speculatively execute a command to "
27003 "find out if the daemon implemented it. See also C<guestfs_version>."
27007 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27008 msgid "(Added in 1.0.80)"
27009 msgstr "(Додано у 1.0.80)"
27012 #: ../src/guestfs-actions.pod:676
27013 msgid "guestfs_available_all_groups"
27014 msgstr "guestfs_available_all_groups"
27017 #: ../src/guestfs-actions.pod:678
27021 " guestfs_available_all_groups (guestfs_h *g);\n"
27025 " guestfs_available_all_groups (guestfs_h *g);\n"
27029 #: ../src/guestfs-actions.pod:681
27031 "This command returns a list of all optional groups that this daemon knows "
27032 "about. Note this returns both supported and unsupported groups. To find "
27033 "out which ones the daemon can actually support you have to call "
27034 "C<guestfs_available> on each member of the returned list."
27038 #: ../src/guestfs-actions.pod:687
27039 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27043 #: ../src/guestfs-actions.pod:693
27044 msgid "(Added in 1.3.15)"
27045 msgstr "(Додано у 1.3.15)"
27048 #: ../src/guestfs-actions.pod:695
27049 msgid "guestfs_base64_in"
27050 msgstr "guestfs_base64_in"
27053 #: ../src/guestfs-actions.pod:697
27057 " guestfs_base64_in (guestfs_h *g,\n"
27058 " const char *base64file,\n"
27059 " const char *filename);\n"
27063 " guestfs_base64_in (guestfs_h *g,\n"
27064 " const char *base64file,\n"
27065 " const char *filename);\n"
27069 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27070 msgid "(Added in 1.3.5)"
27071 msgstr "(Додано у 1.3.5)"
27074 #: ../src/guestfs-actions.pod:709
27075 msgid "guestfs_base64_out"
27076 msgstr "guestfs_base64_out"
27079 #: ../src/guestfs-actions.pod:711
27083 " guestfs_base64_out (guestfs_h *g,\n"
27084 " const char *filename,\n"
27085 " const char *base64file);\n"
27089 " guestfs_base64_out (guestfs_h *g,\n"
27090 " const char *filename,\n"
27091 " const char *base64file);\n"
27095 #: ../src/guestfs-actions.pod:723
27096 msgid "guestfs_blockdev_flushbufs"
27097 msgstr "guestfs_blockdev_flushbufs"
27100 #: ../src/guestfs-actions.pod:725
27104 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27105 " const char *device);\n"
27109 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27110 " const char *device);\n"
27114 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27115 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27116 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27117 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27118 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27119 msgid "(Added in 0.9.3)"
27120 msgstr "(Додано у 0.9.3)"
27123 #: ../src/guestfs-actions.pod:738
27124 msgid "guestfs_blockdev_getbsz"
27125 msgstr "guestfs_blockdev_getbsz"
27128 #: ../src/guestfs-actions.pod:740
27132 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27133 " const char *device);\n"
27137 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27138 " const char *device);\n"
27142 #: ../src/guestfs-actions.pod:755
27143 msgid "guestfs_blockdev_getro"
27144 msgstr "guestfs_blockdev_getro"
27147 #: ../src/guestfs-actions.pod:757
27151 " guestfs_blockdev_getro (guestfs_h *g,\n"
27152 " const char *device);\n"
27156 " guestfs_blockdev_getro (guestfs_h *g,\n"
27157 " const char *device);\n"
27161 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27162 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27163 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27164 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27165 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27166 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
27167 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
27168 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
27169 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
27170 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
27171 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
27172 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
27173 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
27174 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
27175 #: ../src/guestfs-actions.pod:5784
27176 msgid "This function returns a C truth value on success or -1 on error."
27180 #: ../src/guestfs-actions.pod:770
27181 msgid "guestfs_blockdev_getsize64"
27182 msgstr "guestfs_blockdev_getsize64"
27185 #: ../src/guestfs-actions.pod:772
27189 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27190 " const char *device);\n"
27194 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27195 " const char *device);\n"
27199 #: ../src/guestfs-actions.pod:778
27200 msgid "See also C<guestfs_blockdev_getsz>."
27204 #: ../src/guestfs-actions.pod:786
27205 msgid "guestfs_blockdev_getss"
27206 msgstr "guestfs_blockdev_getss"
27209 #: ../src/guestfs-actions.pod:788
27213 " guestfs_blockdev_getss (guestfs_h *g,\n"
27214 " const char *device);\n"
27218 " guestfs_blockdev_getss (guestfs_h *g,\n"
27219 " const char *device);\n"
27223 #: ../src/guestfs-actions.pod:795
27225 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27230 #: ../src/guestfs-actions.pod:804
27231 msgid "guestfs_blockdev_getsz"
27232 msgstr "guestfs_blockdev_getsz"
27235 #: ../src/guestfs-actions.pod:806
27239 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27240 " const char *device);\n"
27244 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27245 " const char *device);\n"
27249 #: ../src/guestfs-actions.pod:813
27251 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27252 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27256 #: ../src/guestfs-actions.pod:823
27257 msgid "guestfs_blockdev_rereadpt"
27258 msgstr "guestfs_blockdev_rereadpt"
27261 #: ../src/guestfs-actions.pod:825
27265 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27266 " const char *device);\n"
27270 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27271 " const char *device);\n"
27275 #: ../src/guestfs-actions.pod:837
27276 msgid "guestfs_blockdev_setbsz"
27277 msgstr "guestfs_blockdev_setbsz"
27280 #: ../src/guestfs-actions.pod:839
27284 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27285 " const char *device,\n"
27286 " int blocksize);\n"
27290 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27291 " const char *device,\n"
27292 " int blocksize);\n"
27296 #: ../src/guestfs-actions.pod:855
27297 msgid "guestfs_blockdev_setro"
27298 msgstr "guestfs_blockdev_setro"
27301 #: ../src/guestfs-actions.pod:857
27305 " guestfs_blockdev_setro (guestfs_h *g,\n"
27306 " const char *device);\n"
27310 " guestfs_blockdev_setro (guestfs_h *g,\n"
27311 " const char *device);\n"
27315 #: ../src/guestfs-actions.pod:869
27316 msgid "guestfs_blockdev_setrw"
27317 msgstr "guestfs_blockdev_setrw"
27320 #: ../src/guestfs-actions.pod:871
27324 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27325 " const char *device);\n"
27329 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27330 " const char *device);\n"
27334 #: ../src/guestfs-actions.pod:883
27335 msgid "guestfs_btrfs_filesystem_resize"
27336 msgstr "guestfs_btrfs_filesystem_resize"
27339 #: ../src/guestfs-actions.pod:885
27343 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27344 " const char *mountpoint,\n"
27349 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27350 " const char *mountpoint,\n"
27355 #: ../src/guestfs-actions.pod:895
27358 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27361 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27365 #: ../src/guestfs-actions.pod:918
27366 msgid "(Added in 1.11.17)"
27367 msgstr "(Додано у 1.11.17)"
27370 #: ../src/guestfs-actions.pod:920
27371 msgid "guestfs_btrfs_filesystem_resize_va"
27372 msgstr "guestfs_btrfs_filesystem_resize_va"
27375 #: ../src/guestfs-actions.pod:922
27379 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27380 " const char *mountpoint,\n"
27381 " va_list args);\n"
27385 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27386 " const char *mountpoint,\n"
27387 " va_list args);\n"
27391 #: ../src/guestfs-actions.pod:927
27392 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27396 #: ../src/guestfs-actions.pod:931
27397 msgid "guestfs_btrfs_filesystem_resize_argv"
27398 msgstr "guestfs_btrfs_filesystem_resize_argv"
27401 #: ../src/guestfs-actions.pod:933
27405 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27406 " const char *mountpoint,\n"
27407 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27411 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27412 " const char *mountpoint,\n"
27413 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27417 #: ../src/guestfs-actions.pod:938
27418 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27422 #: ../src/guestfs-actions.pod:942
27423 msgid "guestfs_case_sensitive_path"
27427 #: ../src/guestfs-actions.pod:944
27431 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27432 " const char *path);\n"
27437 #: ../src/guestfs-actions.pod:970
27439 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
27440 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27441 "how the directories were originally created under Windows)."
27445 #: ../src/guestfs-actions.pod:978
27446 msgid "See also C<guestfs_realpath>."
27450 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
27451 msgid "(Added in 1.0.75)"
27452 msgstr "(Додано у 1.0.75)"
27455 #: ../src/guestfs-actions.pod:985
27456 msgid "guestfs_cat"
27460 #: ../src/guestfs-actions.pod:987
27464 " guestfs_cat (guestfs_h *g,\n"
27465 " const char *path);\n"
27470 #: ../src/guestfs-actions.pod:993
27472 "Note that this function cannot correctly handle binary files (specifically, "
27473 "files containing C<\\0> character which is treated as end of string). For "
27474 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27475 "functions which have a more complex interface."
27479 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27480 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
27481 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
27482 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
27483 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
27484 #: ../src/guestfs-actions.pod:8023
27485 msgid "(Added in 0.4)"
27486 msgstr "(Додано у 0.4)"
27489 #: ../src/guestfs-actions.pod:1006
27490 msgid "guestfs_checksum"
27494 #: ../src/guestfs-actions.pod:1008
27498 " guestfs_checksum (guestfs_h *g,\n"
27499 " const char *csumtype,\n"
27500 " const char *path);\n"
27505 #: ../src/guestfs-actions.pod:1054
27506 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27510 #: ../src/guestfs-actions.pod:1056
27511 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27515 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27516 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27517 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27518 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
27519 msgid "(Added in 1.0.2)"
27520 msgstr "(Додано у 1.0.2)"
27523 #: ../src/guestfs-actions.pod:1063
27524 msgid "guestfs_checksum_device"
27528 #: ../src/guestfs-actions.pod:1065
27532 " guestfs_checksum_device (guestfs_h *g,\n"
27533 " const char *csumtype,\n"
27534 " const char *device);\n"
27539 #: ../src/guestfs-actions.pod:1070
27541 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27542 "device named C<device>. For the types of checksums supported see the "
27543 "C<guestfs_checksum> command."
27547 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
27548 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
27549 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
27550 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
27551 #: ../src/guestfs-actions.pod:8035
27552 msgid "(Added in 1.3.2)"
27553 msgstr "(Додано у 1.3.2)"
27556 #: ../src/guestfs-actions.pod:1079
27557 msgid "guestfs_checksums_out"
27561 #: ../src/guestfs-actions.pod:1081
27565 " guestfs_checksums_out (guestfs_h *g,\n"
27566 " const char *csumtype,\n"
27567 " const char *directory,\n"
27568 " const char *sumsfile);\n"
27573 #: ../src/guestfs-actions.pod:1101
27574 msgid "(Added in 1.3.7)"
27575 msgstr "(Додано у 1.3.7)"
27578 #: ../src/guestfs-actions.pod:1103
27579 msgid "guestfs_chmod"
27583 #: ../src/guestfs-actions.pod:1105
27587 " guestfs_chmod (guestfs_h *g,\n"
27589 " const char *path);\n"
27594 #: ../src/guestfs-actions.pod:1123
27595 msgid "guestfs_chown"
27599 #: ../src/guestfs-actions.pod:1125
27603 " guestfs_chown (guestfs_h *g,\n"
27606 " const char *path);\n"
27611 #: ../src/guestfs-actions.pod:1141
27612 msgid "guestfs_command"
27616 #: ../src/guestfs-actions.pod:1143
27620 " guestfs_command (guestfs_h *g,\n"
27621 " char *const *arguments);\n"
27626 #: ../src/guestfs-actions.pod:1152
27628 "The single parameter is an argv-style list of arguments. The first element "
27629 "is the name of the program to run. Subsequent elements are parameters. The "
27630 "list must be non-empty (ie. must contain a program name). Note that the "
27631 "command runs directly, and is I<not> invoked via the shell (see "
27636 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27637 #: ../src/guestfs-actions.pod:2027
27638 msgid "(Added in 0.9.1)"
27639 msgstr "(Додано у 0.9.1)"
27642 #: ../src/guestfs-actions.pod:1185
27643 msgid "guestfs_command_lines"
27647 #: ../src/guestfs-actions.pod:1187
27651 " guestfs_command_lines (guestfs_h *g,\n"
27652 " char *const *arguments);\n"
27657 #: ../src/guestfs-actions.pod:1191
27659 "This is the same as C<guestfs_command>, but splits the result into a list of "
27664 #: ../src/guestfs-actions.pod:1194
27665 msgid "See also: C<guestfs_sh_lines>"
27669 #: ../src/guestfs-actions.pod:1205
27670 msgid "guestfs_compress_device_out"
27674 #: ../src/guestfs-actions.pod:1207
27678 " guestfs_compress_device_out (guestfs_h *g,\n"
27679 " const char *ctype,\n"
27680 " const char *device,\n"
27681 " const char *zdevice,\n"
27687 #: ../src/guestfs-actions.pod:1219
27690 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27695 #: ../src/guestfs-actions.pod:1224
27697 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27698 "C<guestfs_compress_out>."
27702 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27703 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
27704 msgid "(Added in 1.13.15)"
27708 #: ../src/guestfs-actions.pod:1231
27709 msgid "guestfs_compress_device_out_va"
27713 #: ../src/guestfs-actions.pod:1233
27717 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27718 " const char *ctype,\n"
27719 " const char *device,\n"
27720 " const char *zdevice,\n"
27721 " va_list args);\n"
27726 #: ../src/guestfs-actions.pod:1240
27727 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27731 #: ../src/guestfs-actions.pod:1244
27732 msgid "guestfs_compress_device_out_argv"
27736 #: ../src/guestfs-actions.pod:1246
27740 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27741 " const char *ctype,\n"
27742 " const char *device,\n"
27743 " const char *zdevice,\n"
27744 " const struct guestfs_compress_device_out_argv *optargs);\n"
27749 #: ../src/guestfs-actions.pod:1253
27750 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27754 #: ../src/guestfs-actions.pod:1257
27755 msgid "guestfs_compress_out"
27759 #: ../src/guestfs-actions.pod:1259
27763 " guestfs_compress_out (guestfs_h *g,\n"
27764 " const char *ctype,\n"
27765 " const char *file,\n"
27766 " const char *zfile,\n"
27772 #: ../src/guestfs-actions.pod:1271
27775 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27780 #: ../src/guestfs-actions.pod:1290
27781 msgid "guestfs_compress_out_va"
27785 #: ../src/guestfs-actions.pod:1292
27789 " guestfs_compress_out_va (guestfs_h *g,\n"
27790 " const char *ctype,\n"
27791 " const char *file,\n"
27792 " const char *zfile,\n"
27793 " va_list args);\n"
27798 #: ../src/guestfs-actions.pod:1299
27799 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27803 #: ../src/guestfs-actions.pod:1303
27804 msgid "guestfs_compress_out_argv"
27808 #: ../src/guestfs-actions.pod:1305
27812 " guestfs_compress_out_argv (guestfs_h *g,\n"
27813 " const char *ctype,\n"
27814 " const char *file,\n"
27815 " const char *zfile,\n"
27816 " const struct guestfs_compress_out_argv *optargs);\n"
27821 #: ../src/guestfs-actions.pod:1312
27822 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27826 #: ../src/guestfs-actions.pod:1316
27827 msgid "guestfs_config"
27831 #: ../src/guestfs-actions.pod:1318
27835 " guestfs_config (guestfs_h *g,\n"
27836 " const char *qemuparam,\n"
27837 " const char *qemuvalue);\n"
27842 #: ../src/guestfs-actions.pod:1336
27843 msgid "guestfs_copy_device_to_device"
27847 #: ../src/guestfs-actions.pod:1338
27851 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27852 " const char *src,\n"
27853 " const char *dest,\n"
27859 #: ../src/guestfs-actions.pod:1349
27862 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27863 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27864 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27869 #: ../src/guestfs-actions.pod:1353
27871 "The four calls C<guestfs_copy_device_to_device>, "
27872 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27873 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27874 "destination (device|file)."
27878 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27879 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27880 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27881 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27882 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27883 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27884 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27885 #: ../src/guestfs-actions.pod:8271
27887 "This long-running command can generate progress notification messages so "
27888 "that the caller can display a progress bar or indicator. To receive these "
27889 "messages, the caller must register a progress event callback. See L<guestfs"
27890 "(3)/GUESTFS_EVENT_PROGRESS>."
27894 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27895 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27896 #: ../src/guestfs-actions.pod:6042
27898 #| msgid "(Added in 1.3.5)"
27899 msgid "(Added in 1.13.25)"
27900 msgstr "(Додано у 1.3.5)"
27903 #: ../src/guestfs-actions.pod:1381
27904 msgid "guestfs_copy_device_to_device_va"
27908 #: ../src/guestfs-actions.pod:1383
27912 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27913 " const char *src,\n"
27914 " const char *dest,\n"
27915 " va_list args);\n"
27920 #: ../src/guestfs-actions.pod:1389
27921 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27925 #: ../src/guestfs-actions.pod:1393
27926 msgid "guestfs_copy_device_to_device_argv"
27930 #: ../src/guestfs-actions.pod:1395
27934 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27935 " const char *src,\n"
27936 " const char *dest,\n"
27937 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
27942 #: ../src/guestfs-actions.pod:1401
27943 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27947 #: ../src/guestfs-actions.pod:1405
27948 msgid "guestfs_copy_device_to_file"
27952 #: ../src/guestfs-actions.pod:1407
27956 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27957 " const char *src,\n"
27958 " const char *dest,\n"
27964 #: ../src/guestfs-actions.pod:1418
27967 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27968 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27969 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27974 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27975 #: ../src/guestfs-actions.pod:1528
27977 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27981 #: ../src/guestfs-actions.pod:1434
27982 msgid "guestfs_copy_device_to_file_va"
27986 #: ../src/guestfs-actions.pod:1436
27990 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27991 " const char *src,\n"
27992 " const char *dest,\n"
27993 " va_list args);\n"
27998 #: ../src/guestfs-actions.pod:1442
27999 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28003 #: ../src/guestfs-actions.pod:1446
28004 msgid "guestfs_copy_device_to_file_argv"
28008 #: ../src/guestfs-actions.pod:1448
28012 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28013 " const char *src,\n"
28014 " const char *dest,\n"
28015 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
28020 #: ../src/guestfs-actions.pod:1454
28021 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28025 #: ../src/guestfs-actions.pod:1458
28026 msgid "guestfs_copy_file_to_device"
28030 #: ../src/guestfs-actions.pod:1460
28034 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28035 " const char *src,\n"
28036 " const char *dest,\n"
28042 #: ../src/guestfs-actions.pod:1471
28045 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28046 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28047 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28052 #: ../src/guestfs-actions.pod:1487
28053 msgid "guestfs_copy_file_to_device_va"
28057 #: ../src/guestfs-actions.pod:1489
28061 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28062 " const char *src,\n"
28063 " const char *dest,\n"
28064 " va_list args);\n"
28069 #: ../src/guestfs-actions.pod:1495
28070 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28074 #: ../src/guestfs-actions.pod:1499
28075 msgid "guestfs_copy_file_to_device_argv"
28079 #: ../src/guestfs-actions.pod:1501
28083 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28084 " const char *src,\n"
28085 " const char *dest,\n"
28086 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
28091 #: ../src/guestfs-actions.pod:1507
28092 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28096 #: ../src/guestfs-actions.pod:1511
28097 msgid "guestfs_copy_file_to_file"
28101 #: ../src/guestfs-actions.pod:1513
28105 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28106 " const char *src,\n"
28107 " const char *dest,\n"
28113 #: ../src/guestfs-actions.pod:1524
28116 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28117 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28118 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28123 #: ../src/guestfs-actions.pod:1531
28125 "This is B<not> the function you want for copying files. This is for copying "
28126 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
28127 "C<guestfs_mv> for general file copying and moving functions."
28131 #: ../src/guestfs-actions.pod:1545
28132 msgid "guestfs_copy_file_to_file_va"
28136 #: ../src/guestfs-actions.pod:1547
28140 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28141 " const char *src,\n"
28142 " const char *dest,\n"
28143 " va_list args);\n"
28148 #: ../src/guestfs-actions.pod:1553
28149 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28153 #: ../src/guestfs-actions.pod:1557
28154 msgid "guestfs_copy_file_to_file_argv"
28158 #: ../src/guestfs-actions.pod:1559
28162 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28163 " const char *src,\n"
28164 " const char *dest,\n"
28165 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
28170 #: ../src/guestfs-actions.pod:1565
28171 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28175 #: ../src/guestfs-actions.pod:1569
28176 msgid "guestfs_copy_size"
28180 #: ../src/guestfs-actions.pod:1571
28184 " guestfs_copy_size (guestfs_h *g,\n"
28185 " const char *src,\n"
28186 " const char *dest,\n"
28187 " int64_t size);\n"
28192 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28194 "I<This function is deprecated.> In new code, use the L</"
28195 "guestfs_copy_device_to_device> call instead."
28199 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
28200 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
28201 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
28202 msgid "(Added in 1.0.87)"
28203 msgstr "(Додано у 1.0.87)"
28206 #: ../src/guestfs-actions.pod:1599
28211 #: ../src/guestfs-actions.pod:1601
28215 " guestfs_cp (guestfs_h *g,\n"
28216 " const char *src,\n"
28217 " const char *dest);\n"
28222 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28223 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28224 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
28225 #: ../src/guestfs-actions.pod:6056
28226 msgid "(Added in 1.0.18)"
28227 msgstr "(Додано у 1.0.18)"
28230 #: ../src/guestfs-actions.pod:1613
28231 msgid "guestfs_cp_a"
28235 #: ../src/guestfs-actions.pod:1615
28239 " guestfs_cp_a (guestfs_h *g,\n"
28240 " const char *src,\n"
28241 " const char *dest);\n"
28246 #: ../src/guestfs-actions.pod:1627
28251 #: ../src/guestfs-actions.pod:1629
28255 " guestfs_dd (guestfs_h *g,\n"
28256 " const char *src,\n"
28257 " const char *dest);\n"
28262 #: ../src/guestfs-actions.pod:1646
28264 "If the destination is a device, it must be as large or larger than the "
28265 "source file or device, otherwise the copy will fail. This command cannot do "
28266 "partial copies (see C<guestfs_copy_device_to_device>)."
28270 #: ../src/guestfs-actions.pod:1655
28275 #: ../src/guestfs-actions.pod:1657
28279 " guestfs_df (guestfs_h *g);\n"
28284 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28286 "This command is mostly useful for interactive sessions. It is I<not> "
28287 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
28292 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28293 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28294 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28295 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
28296 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
28297 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
28298 #: ../src/guestfs-actions.pod:8114
28299 msgid "(Added in 1.0.54)"
28300 msgstr "(Додано у 1.0.54)"
28303 #: ../src/guestfs-actions.pod:1671
28304 msgid "guestfs_df_h"
28308 #: ../src/guestfs-actions.pod:1673
28312 " guestfs_df_h (guestfs_h *g);\n"
28317 #: ../src/guestfs-actions.pod:1688
28318 msgid "guestfs_dmesg"
28322 #: ../src/guestfs-actions.pod:1690
28326 " guestfs_dmesg (guestfs_h *g);\n"
28331 #: ../src/guestfs-actions.pod:1697
28333 "Another way to get the same information is to enable verbose messages with "
28334 "C<guestfs_set_verbose> or by setting the environment variable "
28335 "C<LIBGUESTFS_DEBUG=1> before running the program."
28339 #: ../src/guestfs-actions.pod:1707
28340 msgid "guestfs_download"
28344 #: ../src/guestfs-actions.pod:1709
28348 " guestfs_download (guestfs_h *g,\n"
28349 " const char *remotefilename,\n"
28350 " const char *filename);\n"
28355 #: ../src/guestfs-actions.pod:1719
28356 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28360 #: ../src/guestfs-actions.pod:1730
28361 msgid "guestfs_download_offset"
28365 #: ../src/guestfs-actions.pod:1732
28369 " guestfs_download_offset (guestfs_h *g,\n"
28370 " const char *remotefilename,\n"
28371 " const char *filename,\n"
28372 " int64_t offset,\n"
28373 " int64_t size);\n"
28378 #: ../src/guestfs-actions.pod:1745
28380 "Note that there is no limit on the amount of data that can be downloaded "
28381 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28382 "full amount unless an error occurs."
28386 #: ../src/guestfs-actions.pod:1750
28387 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28391 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
28392 msgid "(Added in 1.5.17)"
28393 msgstr "(Додано у 1.5.17)"
28396 #: ../src/guestfs-actions.pod:1761
28397 msgid "guestfs_drop_caches"
28401 #: ../src/guestfs-actions.pod:1763
28405 " guestfs_drop_caches (guestfs_h *g,\n"
28406 " int whattodrop);\n"
28411 #: ../src/guestfs-actions.pod:1781
28416 #: ../src/guestfs-actions.pod:1783
28420 " guestfs_du (guestfs_h *g,\n"
28421 " const char *path);\n"
28426 #: ../src/guestfs-actions.pod:1806
28427 msgid "guestfs_e2fsck_f"
28431 #: ../src/guestfs-actions.pod:1808
28435 " guestfs_e2fsck_f (guestfs_h *g,\n"
28436 " const char *device);\n"
28441 #: ../src/guestfs-actions.pod:1816
28443 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
28444 "Normally you should use C<guestfs_fsck>."
28448 #: ../src/guestfs-actions.pod:1821
28449 msgid "(Added in 1.0.29)"
28450 msgstr "(Додано у 1.0.29)"
28453 #: ../src/guestfs-actions.pod:1823
28454 msgid "guestfs_echo_daemon"
28455 msgstr "guestfs_echo_daemon"
28458 #: ../src/guestfs-actions.pod:1825
28462 " guestfs_echo_daemon (guestfs_h *g,\n"
28463 " char *const *words);\n"
28467 " guestfs_echo_daemon (guestfs_h *g,\n"
28468 " char *const *words);\n"
28472 #: ../src/guestfs-actions.pod:1834
28473 msgid "See also C<guestfs_ping_daemon>."
28477 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28478 #: ../src/guestfs-actions.pod:6926
28479 msgid "(Added in 1.0.69)"
28480 msgstr "(Додано у 1.0.69)"
28483 #: ../src/guestfs-actions.pod:1841
28484 msgid "guestfs_egrep"
28485 msgstr "guestfs_egrep"
28488 #: ../src/guestfs-actions.pod:1843
28492 " guestfs_egrep (guestfs_h *g,\n"
28493 " const char *regex,\n"
28494 " const char *path);\n"
28498 " guestfs_egrep (guestfs_h *g,\n"
28499 " const char *regex,\n"
28500 " const char *path);\n"
28504 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28505 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28506 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28507 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28508 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28509 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28510 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
28511 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
28512 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
28513 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
28514 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
28515 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
28516 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
28517 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
28518 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
28519 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
28520 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
28521 msgid "(Added in 1.0.66)"
28522 msgstr "(Додано у 1.0.66)"
28525 #: ../src/guestfs-actions.pod:1860
28526 msgid "guestfs_egrepi"
28527 msgstr "guestfs_egrepi"
28530 #: ../src/guestfs-actions.pod:1862
28534 " guestfs_egrepi (guestfs_h *g,\n"
28535 " const char *regex,\n"
28536 " const char *path);\n"
28541 #: ../src/guestfs-actions.pod:1879
28542 msgid "guestfs_equal"
28546 #: ../src/guestfs-actions.pod:1881
28550 " guestfs_equal (guestfs_h *g,\n"
28551 " const char *file1,\n"
28552 " const char *file2);\n"
28557 #: ../src/guestfs-actions.pod:1895
28558 msgid "guestfs_exists"
28562 #: ../src/guestfs-actions.pod:1897
28566 " guestfs_exists (guestfs_h *g,\n"
28567 " const char *path);\n"
28572 #: ../src/guestfs-actions.pod:1904
28573 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28577 #: ../src/guestfs-actions.pod:1910
28578 msgid "guestfs_fallocate"
28582 #: ../src/guestfs-actions.pod:1912
28586 " guestfs_fallocate (guestfs_h *g,\n"
28587 " const char *path,\n"
28593 #: ../src/guestfs-actions.pod:1917
28595 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28600 #: ../src/guestfs-actions.pod:1936
28601 msgid "guestfs_fallocate64"
28605 #: ../src/guestfs-actions.pod:1938
28609 " guestfs_fallocate64 (guestfs_h *g,\n"
28610 " const char *path,\n"
28616 #: ../src/guestfs-actions.pod:1947
28618 "Note that this call allocates disk blocks for the file. To create a sparse "
28619 "file use C<guestfs_truncate_size> instead."
28623 #: ../src/guestfs-actions.pod:1950
28625 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28626 "oversight it only allowed 30 bit lengths to be specified, effectively "
28627 "limiting the maximum size of files created through that call to 1GB."
28631 #: ../src/guestfs-actions.pod:1961
28632 msgid "(Added in 1.3.17)"
28633 msgstr "(Додано у 1.3.17)"
28636 #: ../src/guestfs-actions.pod:1963
28637 msgid "guestfs_fgrep"
28641 #: ../src/guestfs-actions.pod:1965
28645 " guestfs_fgrep (guestfs_h *g,\n"
28646 " const char *pattern,\n"
28647 " const char *path);\n"
28652 #: ../src/guestfs-actions.pod:1982
28653 msgid "guestfs_fgrepi"
28657 #: ../src/guestfs-actions.pod:1984
28661 " guestfs_fgrepi (guestfs_h *g,\n"
28662 " const char *pattern,\n"
28663 " const char *path);\n"
28668 #: ../src/guestfs-actions.pod:2001
28669 msgid "guestfs_file"
28673 #: ../src/guestfs-actions.pod:2003
28677 " guestfs_file (guestfs_h *g,\n"
28678 " const char *path);\n"
28683 #: ../src/guestfs-actions.pod:2021
28685 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28686 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28690 #: ../src/guestfs-actions.pod:2029
28691 msgid "guestfs_file_architecture"
28695 #: ../src/guestfs-actions.pod:2031
28699 " guestfs_file_architecture (guestfs_h *g,\n"
28700 " const char *filename);\n"
28705 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28706 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28707 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28708 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28709 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28710 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28711 #: ../src/guestfs-actions.pod:4008
28712 msgid "(Added in 1.5.3)"
28713 msgstr "(Додано у 1.5.3)"
28716 #: ../src/guestfs-actions.pod:2141
28717 msgid "guestfs_filesize"
28721 #: ../src/guestfs-actions.pod:2143
28725 " guestfs_filesize (guestfs_h *g,\n"
28726 " const char *file);\n"
28731 #: ../src/guestfs-actions.pod:2149
28733 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28734 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
28735 "devices, use C<guestfs_blockdev_getsize64>."
28739 #: ../src/guestfs-actions.pod:2155
28740 msgid "(Added in 1.0.82)"
28741 msgstr "(Додано у 1.0.82)"
28744 #: ../src/guestfs-actions.pod:2157
28745 msgid "guestfs_fill"
28749 #: ../src/guestfs-actions.pod:2159
28753 " guestfs_fill (guestfs_h *g,\n"
28756 " const char *path);\n"
28761 #: ../src/guestfs-actions.pod:2169
28763 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28764 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
28765 "bytes use C<guestfs_fill_pattern>."
28769 #: ../src/guestfs-actions.pod:2181
28770 msgid "(Added in 1.0.79)"
28771 msgstr "(Додано у 1.0.79)"
28774 #: ../src/guestfs-actions.pod:2183
28775 msgid "guestfs_fill_pattern"
28779 #: ../src/guestfs-actions.pod:2185
28783 " guestfs_fill_pattern (guestfs_h *g,\n"
28784 " const char *pattern,\n"
28786 " const char *path);\n"
28791 #: ../src/guestfs-actions.pod:2191
28793 "This function is like C<guestfs_fill> except that it creates a new file of "
28794 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
28795 "pattern is truncated if necessary to ensure the length of the file is "
28796 "exactly C<len> bytes."
28800 #: ../src/guestfs-actions.pod:2203
28801 msgid "(Added in 1.3.12)"
28802 msgstr "(Додано у 1.3.12)"
28805 #: ../src/guestfs-actions.pod:2205
28806 msgid "guestfs_find"
28810 #: ../src/guestfs-actions.pod:2207
28814 " guestfs_find (guestfs_h *g,\n"
28815 " const char *directory);\n"
28820 #: ../src/guestfs-actions.pod:2223
28822 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28826 #: ../src/guestfs-actions.pod:2236
28827 msgid "See also C<guestfs_find0>."
28831 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
28832 #: ../src/guestfs-actions.pod:6474
28833 msgid "(Added in 1.0.27)"
28834 msgstr "(Додано у 1.0.27)"
28837 #: ../src/guestfs-actions.pod:2247
28838 msgid "guestfs_find0"
28842 #: ../src/guestfs-actions.pod:2249
28846 " guestfs_find0 (guestfs_h *g,\n"
28847 " const char *directory,\n"
28848 " const char *files);\n"
28853 #: ../src/guestfs-actions.pod:2258
28855 "This command works the same way as C<guestfs_find> with the following "
28860 #: ../src/guestfs-actions.pod:2285
28861 msgid "(Added in 1.0.74)"
28862 msgstr "(Додано у 1.0.74)"
28865 #: ../src/guestfs-actions.pod:2287
28866 msgid "guestfs_findfs_label"
28870 #: ../src/guestfs-actions.pod:2289
28874 " guestfs_findfs_label (guestfs_h *g,\n"
28875 " const char *label);\n"
28880 #: ../src/guestfs-actions.pod:2297
28881 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28885 #: ../src/guestfs-actions.pod:2304
28886 msgid "guestfs_findfs_uuid"
28890 #: ../src/guestfs-actions.pod:2306
28894 " guestfs_findfs_uuid (guestfs_h *g,\n"
28895 " const char *uuid);\n"
28900 #: ../src/guestfs-actions.pod:2314
28901 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28905 #: ../src/guestfs-actions.pod:2321
28906 msgid "guestfs_fsck"
28910 #: ../src/guestfs-actions.pod:2323
28914 " guestfs_fsck (guestfs_h *g,\n"
28915 " const char *fstype,\n"
28916 " const char *device);\n"
28921 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28922 msgid "(Added in 1.0.16)"
28923 msgstr "(Додано у 1.0.16)"
28926 #: ../src/guestfs-actions.pod:2360
28927 msgid "guestfs_get_append"
28931 #: ../src/guestfs-actions.pod:2362
28935 " guestfs_get_append (guestfs_h *g);\n"
28940 #: ../src/guestfs-actions.pod:2370
28942 "This function returns a string which may be NULL. There is no way to return "
28943 "an error from this function. The string is owned by the guest handle and "
28944 "must I<not> be freed."
28948 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28949 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28950 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28951 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28952 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28953 msgid "(Added in 1.0.26)"
28954 msgstr "(Додано у 1.0.26)"
28957 #: ../src/guestfs-actions.pod:2376
28958 msgid "guestfs_get_attach_method"
28962 #: ../src/guestfs-actions.pod:2378
28966 " guestfs_get_attach_method (guestfs_h *g);\n"
28971 #: ../src/guestfs-actions.pod:2381
28972 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28976 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28977 msgid "(Added in 1.9.8)"
28978 msgstr "(Додано у 1.9.8)"
28981 #: ../src/guestfs-actions.pod:2388
28982 msgid "guestfs_get_autosync"
28986 #: ../src/guestfs-actions.pod:2390
28990 " guestfs_get_autosync (guestfs_h *g);\n"
28995 #: ../src/guestfs-actions.pod:2399
28996 msgid "guestfs_get_direct"
29000 #: ../src/guestfs-actions.pod:2401
29004 " guestfs_get_direct (guestfs_h *g);\n"
29009 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
29010 msgid "(Added in 1.0.72)"
29011 msgstr "(Додано у 1.0.72)"
29014 #: ../src/guestfs-actions.pod:2410
29015 msgid "guestfs_get_e2label"
29019 #: ../src/guestfs-actions.pod:2412
29023 " guestfs_get_e2label (guestfs_h *g,\n"
29024 " const char *device);\n"
29029 #: ../src/guestfs-actions.pod:2416
29031 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29036 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29037 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
29038 msgid "(Added in 1.0.15)"
29039 msgstr "(Додано у 1.0.15)"
29042 #: ../src/guestfs-actions.pod:2431
29043 msgid "guestfs_get_e2uuid"
29047 #: ../src/guestfs-actions.pod:2433
29051 " guestfs_get_e2uuid (guestfs_h *g,\n"
29052 " const char *device);\n"
29057 #: ../src/guestfs-actions.pod:2437
29059 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29064 #: ../src/guestfs-actions.pod:2452
29065 msgid "guestfs_get_memsize"
29069 #: ../src/guestfs-actions.pod:2454
29073 " guestfs_get_memsize (guestfs_h *g);\n"
29078 #: ../src/guestfs-actions.pod:2460
29080 "If C<guestfs_set_memsize> was not called on this handle, and if "
29081 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29082 "value for memsize."
29086 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
29087 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
29088 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
29089 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
29090 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
29091 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
29092 msgid "(Added in 1.0.55)"
29093 msgstr "(Додано у 1.0.55)"
29096 #: ../src/guestfs-actions.pod:2471
29097 msgid "guestfs_get_network"
29101 #: ../src/guestfs-actions.pod:2473
29105 " guestfs_get_network (guestfs_h *g);\n"
29110 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
29111 msgid "(Added in 1.5.4)"
29112 msgstr "(Додано у 1.5.4)"
29115 #: ../src/guestfs-actions.pod:2482
29116 msgid "guestfs_get_path"
29120 #: ../src/guestfs-actions.pod:2484
29124 " guestfs_get_path (guestfs_h *g);\n"
29129 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29131 "This function returns a string, or NULL on error. The string is owned by "
29132 "the guest handle and must I<not> be freed."
29136 #: ../src/guestfs-actions.pod:2497
29137 msgid "guestfs_get_pgroup"
29141 #: ../src/guestfs-actions.pod:2499
29145 " guestfs_get_pgroup (guestfs_h *g);\n"
29150 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
29151 #: ../src/guestfs-actions.pod:8154
29152 msgid "(Added in 1.11.18)"
29153 msgstr "(Додано у 1.11.18)"
29156 #: ../src/guestfs-actions.pod:2508
29157 msgid "guestfs_get_pid"
29161 #: ../src/guestfs-actions.pod:2510
29165 " guestfs_get_pid (guestfs_h *g);\n"
29170 #: ../src/guestfs-actions.pod:2520
29171 msgid "(Added in 1.0.56)"
29172 msgstr "(Додано у 1.0.56)"
29175 #: ../src/guestfs-actions.pod:2522
29176 msgid "guestfs_get_qemu"
29180 #: ../src/guestfs-actions.pod:2524
29184 " guestfs_get_qemu (guestfs_h *g);\n"
29189 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
29190 msgid "(Added in 1.0.6)"
29191 msgstr "(Додано у 1.0.6)"
29194 #: ../src/guestfs-actions.pod:2537
29195 msgid "guestfs_get_recovery_proc"
29199 #: ../src/guestfs-actions.pod:2539
29203 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29208 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
29209 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
29210 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
29211 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
29212 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
29213 #: ../src/guestfs-actions.pod:7777
29214 msgid "(Added in 1.0.77)"
29215 msgstr "(Додано у 1.0.77)"
29218 #: ../src/guestfs-actions.pod:2548
29219 msgid "guestfs_get_selinux"
29223 #: ../src/guestfs-actions.pod:2550
29227 " guestfs_get_selinux (guestfs_h *g);\n"
29232 #: ../src/guestfs-actions.pod:2553
29234 "This returns the current setting of the selinux flag which is passed to the "
29235 "appliance at boot time. See C<guestfs_set_selinux>."
29239 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29240 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
29241 msgid "(Added in 1.0.67)"
29242 msgstr "(Додано у 1.0.67)"
29245 #: ../src/guestfs-actions.pod:2563
29246 msgid "guestfs_get_smp"
29250 #: ../src/guestfs-actions.pod:2565
29254 " guestfs_get_smp (guestfs_h *g);\n"
29259 #: ../src/guestfs-actions.pod:2574
29260 msgid "guestfs_get_state"
29264 #: ../src/guestfs-actions.pod:2576
29268 " guestfs_get_state (guestfs_h *g);\n"
29273 #: ../src/guestfs-actions.pod:2588
29274 msgid "guestfs_get_trace"
29278 #: ../src/guestfs-actions.pod:2590
29282 " guestfs_get_trace (guestfs_h *g);\n"
29287 #: ../src/guestfs-actions.pod:2599
29288 msgid "guestfs_get_umask"
29292 #: ../src/guestfs-actions.pod:2601
29296 " guestfs_get_umask (guestfs_h *g);\n"
29301 #: ../src/guestfs-actions.pod:2604
29303 "Return the current umask. By default the umask is C<022> unless it has been "
29304 "set by calling C<guestfs_umask>."
29308 #: ../src/guestfs-actions.pod:2611
29309 msgid "guestfs_get_verbose"
29313 #: ../src/guestfs-actions.pod:2613
29317 " guestfs_get_verbose (guestfs_h *g);\n"
29322 #: ../src/guestfs-actions.pod:2622
29323 msgid "guestfs_getcon"
29327 #: ../src/guestfs-actions.pod:2624
29331 " guestfs_getcon (guestfs_h *g);\n"
29336 #: ../src/guestfs-actions.pod:2629
29338 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29342 #: ../src/guestfs-actions.pod:2637
29343 msgid "guestfs_getxattr"
29347 #: ../src/guestfs-actions.pod:2639
29351 " guestfs_getxattr (guestfs_h *g,\n"
29352 " const char *path,\n"
29353 " const char *name,\n"
29354 " size_t *size_r);\n"
29359 #: ../src/guestfs-actions.pod:2645
29361 "Get a single extended attribute from file C<path> named C<name>. This call "
29362 "follows symlinks. If you want to lookup an extended attribute for the "
29363 "symlink itself, use C<guestfs_lgetxattr>."
29367 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29369 "Normally it is better to get all extended attributes from a file in one go "
29370 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
29371 "implementations are buggy and do not provide a way to list out attributes. "
29372 "For these filesystems (notably ntfs-3g) you have to know the names of the "
29373 "extended attributes you want in advance and call this function."
29377 #: ../src/guestfs-actions.pod:2659
29378 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29382 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29383 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29384 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
29385 #: ../src/guestfs-actions.pod:6282
29387 "This function returns a buffer, or NULL on error. The size of the returned "
29388 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
29393 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29394 msgid "(Added in 1.7.24)"
29395 msgstr "(Додано у 1.7.24)"
29398 #: ../src/guestfs-actions.pod:2667
29399 msgid "guestfs_getxattrs"
29403 #: ../src/guestfs-actions.pod:2669
29406 " struct guestfs_xattr_list *\n"
29407 " guestfs_getxattrs (guestfs_h *g,\n"
29408 " const char *path);\n"
29413 #: ../src/guestfs-actions.pod:2679
29414 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29418 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
29419 #: ../src/guestfs-actions.pod:4851
29421 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29422 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
29426 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
29427 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
29428 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
29429 #: ../src/guestfs-actions.pod:8362
29430 msgid "(Added in 1.0.59)"
29431 msgstr "(Додано у 1.0.59)"
29434 #: ../src/guestfs-actions.pod:2687
29435 msgid "guestfs_glob_expand"
29439 #: ../src/guestfs-actions.pod:2689
29443 " guestfs_glob_expand (guestfs_h *g,\n"
29444 " const char *pattern);\n"
29449 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
29450 #: ../src/guestfs-actions.pod:7180
29451 msgid "(Added in 1.0.50)"
29452 msgstr "(Додано у 1.0.50)"
29455 #: ../src/guestfs-actions.pod:2710
29456 msgid "guestfs_grep"
29460 #: ../src/guestfs-actions.pod:2712
29464 " guestfs_grep (guestfs_h *g,\n"
29465 " const char *regex,\n"
29466 " const char *path);\n"
29471 #: ../src/guestfs-actions.pod:2729
29472 msgid "guestfs_grepi"
29476 #: ../src/guestfs-actions.pod:2731
29480 " guestfs_grepi (guestfs_h *g,\n"
29481 " const char *regex,\n"
29482 " const char *path);\n"
29487 #: ../src/guestfs-actions.pod:2748
29488 msgid "guestfs_grub_install"
29492 #: ../src/guestfs-actions.pod:2750
29496 " guestfs_grub_install (guestfs_h *g,\n"
29497 " const char *root,\n"
29498 " const char *device);\n"
29503 #: ../src/guestfs-actions.pod:2793
29504 msgid "(Added in 1.0.17)"
29505 msgstr "(Додано у 1.0.17)"
29508 #: ../src/guestfs-actions.pod:2795
29509 msgid "guestfs_head"
29513 #: ../src/guestfs-actions.pod:2797
29517 " guestfs_head (guestfs_h *g,\n"
29518 " const char *path);\n"
29523 #: ../src/guestfs-actions.pod:2813
29524 msgid "guestfs_head_n"
29528 #: ../src/guestfs-actions.pod:2815
29532 " guestfs_head_n (guestfs_h *g,\n"
29534 " const char *path);\n"
29539 #: ../src/guestfs-actions.pod:2837
29540 msgid "guestfs_hexdump"
29544 #: ../src/guestfs-actions.pod:2839
29548 " guestfs_hexdump (guestfs_h *g,\n"
29549 " const char *path);\n"
29554 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
29555 #: ../src/guestfs-actions.pod:7299
29556 msgid "(Added in 1.0.22)"
29557 msgstr "(Додано у 1.0.22)"
29560 #: ../src/guestfs-actions.pod:2854
29561 msgid "guestfs_initrd_cat"
29565 #: ../src/guestfs-actions.pod:2856
29569 " guestfs_initrd_cat (guestfs_h *g,\n"
29570 " const char *initrdpath,\n"
29571 " const char *filename,\n"
29572 " size_t *size_r);\n"
29577 #: ../src/guestfs-actions.pod:2872
29578 msgid "See also C<guestfs_initrd_list>."
29582 #: ../src/guestfs-actions.pod:2883
29583 msgid "guestfs_initrd_list"
29587 #: ../src/guestfs-actions.pod:2885
29591 " guestfs_initrd_list (guestfs_h *g,\n"
29592 " const char *path);\n"
29597 #: ../src/guestfs-actions.pod:2905
29598 msgid "guestfs_inotify_add_watch"
29602 #: ../src/guestfs-actions.pod:2907
29606 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29607 " const char *path,\n"
29613 #: ../src/guestfs-actions.pod:2926
29614 msgid "guestfs_inotify_close"
29618 #: ../src/guestfs-actions.pod:2928
29622 " guestfs_inotify_close (guestfs_h *g);\n"
29627 #: ../src/guestfs-actions.pod:2939
29628 msgid "guestfs_inotify_files"
29632 #: ../src/guestfs-actions.pod:2941
29636 " guestfs_inotify_files (guestfs_h *g);\n"
29641 #: ../src/guestfs-actions.pod:2944
29643 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29644 "returns a list of pathnames of objects that were touched. The returned "
29645 "pathnames are sorted and deduplicated."
29649 #: ../src/guestfs-actions.pod:2954
29650 msgid "guestfs_inotify_init"
29654 #: ../src/guestfs-actions.pod:2956
29658 " guestfs_inotify_init (guestfs_h *g,\n"
29659 " int maxevents);\n"
29664 #: ../src/guestfs-actions.pod:2964
29666 "C<maxevents> is the maximum number of events which will be queued up between "
29667 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
29668 "passed as C<0>, then the kernel (or previously set) default is used. For "
29669 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
29670 "throws away events, but records the fact that it threw them away by setting "
29671 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29672 "C<guestfs_inotify_read>)."
29676 #: ../src/guestfs-actions.pod:2974
29678 "Before any events are generated, you have to add some watches to the "
29679 "internal watch list. See: C<guestfs_inotify_add_watch>, "
29680 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29684 #: ../src/guestfs-actions.pod:2980
29686 "Queued up events should be read periodically by calling "
29687 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29688 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
29689 "often enough then you risk the internal queue overflowing."
29693 #: ../src/guestfs-actions.pod:2987
29695 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
29696 "This also removes any watches automatically."
29700 #: ../src/guestfs-actions.pod:3000
29701 msgid "guestfs_inotify_read"
29705 #: ../src/guestfs-actions.pod:3002
29708 " struct guestfs_inotify_event_list *\n"
29709 " guestfs_inotify_read (guestfs_h *g);\n"
29714 #: ../src/guestfs-actions.pod:3016
29716 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29717 "there was an error. I<The caller must call "
29718 "C<guestfs_free_inotify_event_list> after use>."
29722 #: ../src/guestfs-actions.pod:3022
29723 msgid "guestfs_inotify_rm_watch"
29727 #: ../src/guestfs-actions.pod:3024
29731 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29737 #: ../src/guestfs-actions.pod:3028
29739 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
29743 #: ../src/guestfs-actions.pod:3035
29744 msgid "guestfs_inspect_get_arch"
29748 #: ../src/guestfs-actions.pod:3037
29752 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29753 " const char *root);\n"
29758 #: ../src/guestfs-actions.pod:3041
29760 "This returns the architecture of the inspected operating system. The "
29761 "possible return values are listed under C<guestfs_file_architecture>."
29765 #: ../src/guestfs-actions.pod:3055
29766 msgid "guestfs_inspect_get_distro"
29770 #: ../src/guestfs-actions.pod:3057
29774 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29775 " const char *root);\n"
29780 #: ../src/guestfs-actions.pod:3157
29781 msgid "guestfs_inspect_get_drive_mappings"
29785 #: ../src/guestfs-actions.pod:3159
29789 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29790 " const char *root);\n"
29795 #: ../src/guestfs-actions.pod:3188
29797 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29798 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29802 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29803 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
29804 #: ../src/guestfs-actions.pod:7601
29806 "This function returns a NULL-terminated array of strings, or NULL if there "
29807 "was an error. The array of strings will always have length C<2n+1>, where "
29808 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
29809 "caller must free the strings and the array after use>."
29813 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29814 msgid "(Added in 1.9.17)"
29815 msgstr "(Додано у 1.9.17)"
29818 #: ../src/guestfs-actions.pod:3200
29819 msgid "guestfs_inspect_get_filesystems"
29823 #: ../src/guestfs-actions.pod:3202
29827 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29828 " const char *root);\n"
29833 #: ../src/guestfs-actions.pod:3214
29835 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29836 "C<guestfs_inspect_get_mountpoints>."
29840 #: ../src/guestfs-actions.pod:3223
29841 msgid "guestfs_inspect_get_format"
29845 #: ../src/guestfs-actions.pod:3225
29849 " guestfs_inspect_get_format (guestfs_h *g,\n"
29850 " const char *root);\n"
29855 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29856 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29857 #: ../src/guestfs-actions.pod:6493
29858 msgid "(Added in 1.9.4)"
29859 msgstr "(Додано у 1.9.4)"
29862 #: ../src/guestfs-actions.pod:3261
29863 msgid "guestfs_inspect_get_hostname"
29867 #: ../src/guestfs-actions.pod:3263
29871 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29872 " const char *root);\n"
29877 #: ../src/guestfs-actions.pod:3278
29878 msgid "(Added in 1.7.9)"
29879 msgstr "(Додано у 1.7.9)"
29882 #: ../src/guestfs-actions.pod:3280
29883 msgid "guestfs_inspect_get_icon"
29887 #: ../src/guestfs-actions.pod:3282
29891 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29892 " const char *root,\n"
29893 " size_t *size_r,\n"
29899 #: ../src/guestfs-actions.pod:3293
29902 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29903 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29908 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29909 #: ../src/guestfs-actions.pod:5425
29910 msgid "(Added in 1.11.12)"
29911 msgstr "(Додано у 1.11.12)"
29914 #: ../src/guestfs-actions.pod:3362
29915 msgid "guestfs_inspect_get_icon_va"
29919 #: ../src/guestfs-actions.pod:3364
29923 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29924 " const char *root,\n"
29925 " size_t *size_r,\n"
29926 " va_list args);\n"
29931 #: ../src/guestfs-actions.pod:3370
29932 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29936 #: ../src/guestfs-actions.pod:3374
29937 msgid "guestfs_inspect_get_icon_argv"
29941 #: ../src/guestfs-actions.pod:3376
29945 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29946 " const char *root,\n"
29947 " size_t *size_r,\n"
29948 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29953 #: ../src/guestfs-actions.pod:3382
29954 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29958 #: ../src/guestfs-actions.pod:3386
29959 msgid "guestfs_inspect_get_major_version"
29963 #: ../src/guestfs-actions.pod:3388
29967 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29968 " const char *root);\n"
29973 #: ../src/guestfs-actions.pod:3410
29974 msgid "guestfs_inspect_get_minor_version"
29978 #: ../src/guestfs-actions.pod:3412
29982 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29983 " const char *root);\n"
29988 #: ../src/guestfs-actions.pod:3421
29990 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29991 "C<guestfs_inspect_get_major_version>."
29995 #: ../src/guestfs-actions.pod:3428
29996 msgid "guestfs_inspect_get_mountpoints"
30000 #: ../src/guestfs-actions.pod:3430
30004 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30005 " const char *root);\n"
30010 #: ../src/guestfs-actions.pod:3451
30012 "For operating systems like Windows which still use drive letters, this call "
30013 "will only return an entry for the first drive \"mounted on\" C</>. For "
30014 "information about the mapping of drive letters to partitions, see "
30015 "C<guestfs_inspect_get_drive_mappings>."
30019 #: ../src/guestfs-actions.pod:3457
30021 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30022 "C<guestfs_inspect_get_filesystems>."
30026 #: ../src/guestfs-actions.pod:3468
30027 msgid "guestfs_inspect_get_package_format"
30031 #: ../src/guestfs-actions.pod:3470
30035 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30036 " const char *root);\n"
30041 #: ../src/guestfs-actions.pod:3474
30043 "This function and C<guestfs_inspect_get_package_management> return the "
30044 "package format and package management tool used by the inspected operating "
30045 "system. For example for Fedora these functions would return C<rpm> (package "
30046 "format) and C<yum> (package management)."
30050 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30051 msgid "(Added in 1.7.5)"
30052 msgstr "(Додано у 1.7.5)"
30055 #: ../src/guestfs-actions.pod:3495
30056 msgid "guestfs_inspect_get_package_management"
30060 #: ../src/guestfs-actions.pod:3497
30064 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30065 " const char *root);\n"
30070 #: ../src/guestfs-actions.pod:3501
30072 "C<guestfs_inspect_get_package_format> and this function return the package "
30073 "format and package management tool used by the inspected operating system. "
30074 "For example for Fedora these functions would return C<rpm> (package format) "
30075 "and C<yum> (package management)."
30079 #: ../src/guestfs-actions.pod:3523
30080 msgid "guestfs_inspect_get_product_name"
30084 #: ../src/guestfs-actions.pod:3525
30088 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30089 " const char *root);\n"
30094 #: ../src/guestfs-actions.pod:3544
30095 msgid "guestfs_inspect_get_product_variant"
30099 #: ../src/guestfs-actions.pod:3546
30103 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30104 " const char *root);\n"
30109 #: ../src/guestfs-actions.pod:3569
30111 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30112 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30116 #: ../src/guestfs-actions.pod:3576
30117 msgid "(Added in 1.9.13)"
30118 msgstr "(Додано у 1.9.13)"
30121 #: ../src/guestfs-actions.pod:3578
30122 msgid "guestfs_inspect_get_roots"
30126 #: ../src/guestfs-actions.pod:3580
30130 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30135 #: ../src/guestfs-actions.pod:3583
30137 "This function is a convenient way to get the list of root devices, as "
30138 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30139 "the whole inspection process."
30143 #: ../src/guestfs-actions.pod:3587
30145 "This returns an empty list if either no root devices were found or the "
30146 "caller has not called C<guestfs_inspect_os>."
30150 #: ../src/guestfs-actions.pod:3596
30151 msgid "(Added in 1.7.3)"
30152 msgstr "(Додано у 1.7.3)"
30155 #: ../src/guestfs-actions.pod:3598
30156 msgid "guestfs_inspect_get_type"
30160 #: ../src/guestfs-actions.pod:3600
30164 " guestfs_inspect_get_type (guestfs_h *g,\n"
30165 " const char *root);\n"
30170 #: ../src/guestfs-actions.pod:3641
30171 msgid "guestfs_inspect_get_windows_current_control_set"
30175 #: ../src/guestfs-actions.pod:3643
30179 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30180 " const char *root);\n"
30185 #: ../src/guestfs-actions.pod:3661
30186 msgid "guestfs_inspect_get_windows_systemroot"
30190 #: ../src/guestfs-actions.pod:3663
30194 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30195 " const char *root);\n"
30200 #: ../src/guestfs-actions.pod:3679
30201 msgid "(Added in 1.5.25)"
30202 msgstr "(Додано у 1.5.25)"
30205 #: ../src/guestfs-actions.pod:3681
30206 msgid "guestfs_inspect_is_live"
30210 #: ../src/guestfs-actions.pod:3683
30214 " guestfs_inspect_is_live (guestfs_h *g,\n"
30215 " const char *root);\n"
30220 #: ../src/guestfs-actions.pod:3687
30222 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30223 "disk), then this returns true if a live image was detected on the disk."
30227 #: ../src/guestfs-actions.pod:3697
30228 msgid "guestfs_inspect_is_multipart"
30232 #: ../src/guestfs-actions.pod:3699
30236 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30237 " const char *root);\n"
30242 #: ../src/guestfs-actions.pod:3703
30244 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30245 "disk), then this returns true if the disk is part of a set."
30249 #: ../src/guestfs-actions.pod:3713
30250 msgid "guestfs_inspect_is_netinst"
30254 #: ../src/guestfs-actions.pod:3715
30258 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30259 " const char *root);\n"
30264 #: ../src/guestfs-actions.pod:3719
30266 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30267 "disk), then this returns true if the disk is a network installer, ie. not a "
30268 "self-contained install CD but one which is likely to require network access "
30269 "to complete the install."
30273 #: ../src/guestfs-actions.pod:3731
30274 msgid "guestfs_inspect_list_applications"
30278 #: ../src/guestfs-actions.pod:3733
30281 " struct guestfs_application_list *\n"
30282 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30283 " const char *root);\n"
30288 #: ../src/guestfs-actions.pod:3739
30290 "I<Note:> This call works differently from other parts of the inspection "
30291 "API. You have to call C<guestfs_inspect_os>, then "
30292 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30293 "this. Listing applications is a significantly more difficult operation "
30294 "which requires access to the full filesystem. Also note that unlike the "
30295 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30296 "the libguestfs handle, this call actually reads parts of the mounted "
30297 "filesystems during the call."
30301 #: ../src/guestfs-actions.pod:3829
30303 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30304 "there was an error. I<The caller must call C<guestfs_free_application_list> "
30309 #: ../src/guestfs-actions.pod:3833
30310 msgid "(Added in 1.7.8)"
30311 msgstr "(Додано у 1.7.8)"
30314 #: ../src/guestfs-actions.pod:3835
30315 msgid "guestfs_inspect_os"
30319 #: ../src/guestfs-actions.pod:3837
30323 " guestfs_inspect_os (guestfs_h *g);\n"
30328 #: ../src/guestfs-actions.pod:3853
30330 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30331 "functions in order to query further information about each operating system, "
30332 "such as the name and version."
30336 #: ../src/guestfs-actions.pod:3858
30338 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30339 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30340 "the contents. This should be called with no disks currently mounted. The "
30341 "function may also use Augeas, so any existing Augeas handle will be closed."
30345 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
30346 #: ../src/guestfs-actions.pod:4283
30347 msgid "See also C<guestfs_list_filesystems>."
30351 #: ../src/guestfs-actions.pod:3878
30352 msgid "guestfs_is_blockdev"
30356 #: ../src/guestfs-actions.pod:3880
30360 " guestfs_is_blockdev (guestfs_h *g,\n"
30361 " const char *path);\n"
30366 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30367 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30368 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30369 #: ../src/guestfs-actions.pod:4048
30370 msgid "See also C<guestfs_stat>."
30374 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30375 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30376 #: ../src/guestfs-actions.pod:4052
30377 msgid "(Added in 1.5.10)"
30378 msgstr "(Додано у 1.5.10)"
30381 #: ../src/guestfs-actions.pod:3893
30382 msgid "guestfs_is_busy"
30386 #: ../src/guestfs-actions.pod:3895
30390 " guestfs_is_busy (guestfs_h *g);\n"
30395 #: ../src/guestfs-actions.pod:3907
30396 msgid "guestfs_is_chardev"
30400 #: ../src/guestfs-actions.pod:3909
30404 " guestfs_is_chardev (guestfs_h *g,\n"
30405 " const char *path);\n"
30410 #: ../src/guestfs-actions.pod:3922
30411 msgid "guestfs_is_config"
30415 #: ../src/guestfs-actions.pod:3924
30419 " guestfs_is_config (guestfs_h *g);\n"
30424 #: ../src/guestfs-actions.pod:3936
30425 msgid "guestfs_is_dir"
30429 #: ../src/guestfs-actions.pod:3938
30433 " guestfs_is_dir (guestfs_h *g,\n"
30434 " const char *path);\n"
30439 #: ../src/guestfs-actions.pod:3952
30440 msgid "guestfs_is_fifo"
30444 #: ../src/guestfs-actions.pod:3954
30448 " guestfs_is_fifo (guestfs_h *g,\n"
30449 " const char *path);\n"
30454 #: ../src/guestfs-actions.pod:3967
30455 msgid "guestfs_is_file"
30459 #: ../src/guestfs-actions.pod:3969
30463 " guestfs_is_file (guestfs_h *g,\n"
30464 " const char *path);\n"
30469 #: ../src/guestfs-actions.pod:3983
30470 msgid "guestfs_is_launching"
30474 #: ../src/guestfs-actions.pod:3985
30478 " guestfs_is_launching (guestfs_h *g);\n"
30483 #: ../src/guestfs-actions.pod:3997
30484 msgid "guestfs_is_lv"
30488 #: ../src/guestfs-actions.pod:3999
30492 " guestfs_is_lv (guestfs_h *g,\n"
30493 " const char *device);\n"
30498 #: ../src/guestfs-actions.pod:4010
30499 msgid "guestfs_is_ready"
30503 #: ../src/guestfs-actions.pod:4012
30507 " guestfs_is_ready (guestfs_h *g);\n"
30512 #: ../src/guestfs-actions.pod:4024
30513 msgid "guestfs_is_socket"
30517 #: ../src/guestfs-actions.pod:4026
30521 " guestfs_is_socket (guestfs_h *g,\n"
30522 " const char *path);\n"
30527 #: ../src/guestfs-actions.pod:4039
30528 msgid "guestfs_is_symlink"
30532 #: ../src/guestfs-actions.pod:4041
30536 " guestfs_is_symlink (guestfs_h *g,\n"
30537 " const char *path);\n"
30542 #: ../src/guestfs-actions.pod:4054
30543 msgid "guestfs_is_zero"
30547 #: ../src/guestfs-actions.pod:4056
30551 " guestfs_is_zero (guestfs_h *g,\n"
30552 " const char *path);\n"
30557 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30558 msgid "(Added in 1.11.8)"
30559 msgstr "(Додано у 1.11.8)"
30562 #: ../src/guestfs-actions.pod:4067
30563 msgid "guestfs_is_zero_device"
30567 #: ../src/guestfs-actions.pod:4069
30571 " guestfs_is_zero_device (guestfs_h *g,\n"
30572 " const char *device);\n"
30577 #: ../src/guestfs-actions.pod:4081
30578 msgid "guestfs_kill_subprocess"
30582 #: ../src/guestfs-actions.pod:4083
30586 " guestfs_kill_subprocess (guestfs_h *g);\n"
30591 #: ../src/guestfs-actions.pod:4092
30592 msgid "guestfs_launch"
30596 #: ../src/guestfs-actions.pod:4094
30600 " guestfs_launch (guestfs_h *g);\n"
30605 #: ../src/guestfs-actions.pod:4112
30606 msgid "guestfs_lchown"
30610 #: ../src/guestfs-actions.pod:4114
30614 " guestfs_lchown (guestfs_h *g,\n"
30617 " const char *path);\n"
30622 #: ../src/guestfs-actions.pod:4120
30624 "Change the file owner to C<owner> and group to C<group>. This is like "
30625 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30626 "changed, not the target."
30630 #: ../src/guestfs-actions.pod:4132
30631 msgid "guestfs_lgetxattr"
30635 #: ../src/guestfs-actions.pod:4134
30639 " guestfs_lgetxattr (guestfs_h *g,\n"
30640 " const char *path,\n"
30641 " const char *name,\n"
30642 " size_t *size_r);\n"
30647 #: ../src/guestfs-actions.pod:4154
30648 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30652 #: ../src/guestfs-actions.pod:4162
30653 msgid "guestfs_lgetxattrs"
30657 #: ../src/guestfs-actions.pod:4164
30660 " struct guestfs_xattr_list *\n"
30661 " guestfs_lgetxattrs (guestfs_h *g,\n"
30662 " const char *path);\n"
30667 #: ../src/guestfs-actions.pod:4168
30669 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30670 "then it returns the extended attributes of the link itself."
30674 #: ../src/guestfs-actions.pod:4178
30675 msgid "guestfs_list_9p"
30679 #: ../src/guestfs-actions.pod:4180
30683 " guestfs_list_9p (guestfs_h *g);\n"
30688 #: ../src/guestfs-actions.pod:4192
30689 msgid "guestfs_list_devices"
30693 #: ../src/guestfs-actions.pod:4194
30697 " guestfs_list_devices (guestfs_h *g);\n"
30702 #: ../src/guestfs-actions.pod:4209
30703 msgid "guestfs_list_dm_devices"
30707 #: ../src/guestfs-actions.pod:4211
30711 " guestfs_list_dm_devices (guestfs_h *g);\n"
30716 #: ../src/guestfs-actions.pod:4216
30718 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30719 "previous call to C<guestfs_luks_open>."
30723 #: ../src/guestfs-actions.pod:4219
30725 "Device mapper devices which correspond to logical volumes are I<not> "
30726 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
30731 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
30732 msgid "(Added in 1.11.15)"
30733 msgstr "(Додано у 1.11.15)"
30736 #: ../src/guestfs-actions.pod:4229
30737 msgid "guestfs_list_filesystems"
30741 #: ../src/guestfs-actions.pod:4231
30745 " guestfs_list_filesystems (guestfs_h *g);\n"
30750 #: ../src/guestfs-actions.pod:4251
30752 "This command runs other libguestfs commands, which might include "
30753 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30754 "soon after launch and only when nothing is mounted."
30758 #: ../src/guestfs-actions.pod:4255
30760 "Not all of the filesystems returned will be mountable. In particular, swap "
30761 "partitions are returned in the list. Also this command does not check that "
30762 "each filesystem found is valid and mountable, and some filesystems might be "
30763 "mountable but require special options. Filesystems may not all belong to a "
30764 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30768 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
30769 msgid "(Added in 1.5.15)"
30770 msgstr "(Додано у 1.5.15)"
30773 #: ../src/guestfs-actions.pod:4271
30774 msgid "guestfs_list_partitions"
30775 msgstr "guestfs_list_partitions"
30778 #: ../src/guestfs-actions.pod:4273
30782 " guestfs_list_partitions (guestfs_h *g);\n"
30786 " guestfs_list_partitions (guestfs_h *g);\n"
30790 #: ../src/guestfs-actions.pod:4280
30792 "This does not return logical volumes. For that you will need to call "
30797 #: ../src/guestfs-actions.pod:4291
30799 msgstr "guestfs_ll"
30802 #: ../src/guestfs-actions.pod:4293
30806 " guestfs_ll (guestfs_h *g,\n"
30807 " const char *directory);\n"
30811 " guestfs_ll (guestfs_h *g,\n"
30812 " const char *directory);\n"
30816 #: ../src/guestfs-actions.pod:4308
30818 msgstr "guestfs_ln"
30821 #: ../src/guestfs-actions.pod:4310
30825 " guestfs_ln (guestfs_h *g,\n"
30826 " const char *target,\n"
30827 " const char *linkname);\n"
30831 " guestfs_ln (guestfs_h *g,\n"
30832 " const char *target,\n"
30833 " const char *linkname);\n"
30837 #: ../src/guestfs-actions.pod:4321
30838 msgid "guestfs_ln_f"
30839 msgstr "guestfs_ln_f"
30842 #: ../src/guestfs-actions.pod:4323
30846 " guestfs_ln_f (guestfs_h *g,\n"
30847 " const char *target,\n"
30848 " const char *linkname);\n"
30852 " guestfs_ln_f (guestfs_h *g,\n"
30853 " const char *target,\n"
30854 " const char *linkname);\n"
30858 #: ../src/guestfs-actions.pod:4335
30859 msgid "guestfs_ln_s"
30860 msgstr "guestfs_ln_s"
30863 #: ../src/guestfs-actions.pod:4337
30867 " guestfs_ln_s (guestfs_h *g,\n"
30868 " const char *target,\n"
30869 " const char *linkname);\n"
30873 " guestfs_ln_s (guestfs_h *g,\n"
30874 " const char *target,\n"
30875 " const char *linkname);\n"
30879 #: ../src/guestfs-actions.pod:4348
30880 msgid "guestfs_ln_sf"
30881 msgstr "guestfs_ln_sf"
30884 #: ../src/guestfs-actions.pod:4350
30888 " guestfs_ln_sf (guestfs_h *g,\n"
30889 " const char *target,\n"
30890 " const char *linkname);\n"
30894 " guestfs_ln_sf (guestfs_h *g,\n"
30895 " const char *target,\n"
30896 " const char *linkname);\n"
30900 #: ../src/guestfs-actions.pod:4362
30901 msgid "guestfs_lremovexattr"
30902 msgstr "guestfs_lremovexattr"
30905 #: ../src/guestfs-actions.pod:4364
30909 " guestfs_lremovexattr (guestfs_h *g,\n"
30910 " const char *xattr,\n"
30911 " const char *path);\n"
30915 " guestfs_lremovexattr (guestfs_h *g,\n"
30916 " const char *xattr,\n"
30917 " const char *path);\n"
30921 #: ../src/guestfs-actions.pod:4369
30923 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30924 "link, then it removes an extended attribute of the link itself."
30928 #: ../src/guestfs-actions.pod:4377
30930 msgstr "guestfs_ls"
30933 #: ../src/guestfs-actions.pod:4379
30937 " guestfs_ls (guestfs_h *g,\n"
30938 " const char *directory);\n"
30942 " guestfs_ls (guestfs_h *g,\n"
30943 " const char *directory);\n"
30947 #: ../src/guestfs-actions.pod:4387
30949 "This command is mostly useful for interactive sessions. Programs should "
30950 "probably use C<guestfs_readdir> instead."
30954 #: ../src/guestfs-actions.pod:4396
30955 msgid "guestfs_lsetxattr"
30956 msgstr "guestfs_lsetxattr"
30959 #: ../src/guestfs-actions.pod:4398
30963 " guestfs_lsetxattr (guestfs_h *g,\n"
30964 " const char *xattr,\n"
30965 " const char *val,\n"
30967 " const char *path);\n"
30971 " guestfs_lsetxattr (guestfs_h *g,\n"
30972 " const char *xattr,\n"
30973 " const char *val,\n"
30975 " const char *path);\n"
30979 #: ../src/guestfs-actions.pod:4405
30981 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30982 "then it sets an extended attribute of the link itself."
30986 #: ../src/guestfs-actions.pod:4413
30987 msgid "guestfs_lstat"
30988 msgstr "guestfs_lstat"
30991 #: ../src/guestfs-actions.pod:4415
30994 " struct guestfs_stat *\n"
30995 " guestfs_lstat (guestfs_h *g,\n"
30996 " const char *path);\n"
30999 " struct guestfs_stat *\n"
31000 " guestfs_lstat (guestfs_h *g,\n"
31001 " const char *path);\n"
31005 #: ../src/guestfs-actions.pod:4421
31007 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31008 "link, then the link is stat-ed, not the file it refers to."
31012 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
31014 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31015 "error. I<The caller must call C<guestfs_free_stat> after use>."
31019 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
31020 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
31021 msgid "(Added in 0.9.2)"
31022 msgstr "(Додано у 0.9.2)"
31025 #: ../src/guestfs-actions.pod:4433
31026 msgid "guestfs_lstatlist"
31027 msgstr "guestfs_lstatlist"
31030 #: ../src/guestfs-actions.pod:4435
31033 " struct guestfs_stat_list *\n"
31034 " guestfs_lstatlist (guestfs_h *g,\n"
31035 " const char *path,\n"
31036 " char *const *names);\n"
31039 " struct guestfs_stat_list *\n"
31040 " guestfs_lstatlist (guestfs_h *g,\n"
31041 " const char *path,\n"
31042 " char *const *names);\n"
31046 #: ../src/guestfs-actions.pod:4440
31048 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31049 "files, where all files are in the directory C<path>. C<names> is the list "
31050 "of files from this directory."
31054 #: ../src/guestfs-actions.pod:4449
31056 "This call is intended for programs that want to efficiently list a directory "
31057 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
31058 "for a similarly efficient call for getting extended attributes. Very long "
31059 "directory listings might cause the protocol message size to be exceeded, "
31060 "causing this call to fail. The caller must split up such requests into "
31061 "smaller groups of names."
31065 #: ../src/guestfs-actions.pod:4457
31067 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31068 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
31072 #: ../src/guestfs-actions.pod:4463
31073 msgid "guestfs_luks_add_key"
31074 msgstr "guestfs_luks_add_key"
31077 #: ../src/guestfs-actions.pod:4465
31081 " guestfs_luks_add_key (guestfs_h *g,\n"
31082 " const char *device,\n"
31083 " const char *key,\n"
31084 " const char *newkey,\n"
31089 " guestfs_luks_add_key (guestfs_h *g,\n"
31090 " const char *device,\n"
31091 " const char *key,\n"
31092 " const char *newkey,\n"
31097 #: ../src/guestfs-actions.pod:4477
31099 "Note that if C<keyslot> already contains a key, then this command will "
31100 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
31104 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
31105 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
31106 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
31108 "This function takes a key or passphrase parameter which could contain "
31109 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
31114 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
31115 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
31116 msgid "(Added in 1.5.2)"
31117 msgstr "(Додано у 1.5.2)"
31120 #: ../src/guestfs-actions.pod:4489
31121 msgid "guestfs_luks_close"
31122 msgstr "guestfs_luks_close"
31125 #: ../src/guestfs-actions.pod:4491
31129 " guestfs_luks_close (guestfs_h *g,\n"
31130 " const char *device);\n"
31134 " guestfs_luks_close (guestfs_h *g,\n"
31135 " const char *device);\n"
31139 #: ../src/guestfs-actions.pod:4495
31141 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31142 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
31143 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31144 "underlying block device."
31148 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
31149 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
31150 #: ../src/guestfs-actions.pod:4713
31151 msgid "(Added in 1.5.1)"
31152 msgstr "(Додано у 1.5.1)"
31155 #: ../src/guestfs-actions.pod:4505
31156 msgid "guestfs_luks_format"
31157 msgstr "guestfs_luks_format"
31160 #: ../src/guestfs-actions.pod:4507
31164 " guestfs_luks_format (guestfs_h *g,\n"
31165 " const char *device,\n"
31166 " const char *key,\n"
31171 " guestfs_luks_format (guestfs_h *g,\n"
31172 " const char *device,\n"
31173 " const char *key,\n"
31178 #: ../src/guestfs-actions.pod:4526
31179 msgid "guestfs_luks_format_cipher"
31180 msgstr "guestfs_luks_format_cipher"
31183 #: ../src/guestfs-actions.pod:4528
31187 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31188 " const char *device,\n"
31189 " const char *key,\n"
31191 " const char *cipher);\n"
31195 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31196 " const char *device,\n"
31197 " const char *key,\n"
31199 " const char *cipher);\n"
31203 #: ../src/guestfs-actions.pod:4535
31205 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31206 "set the C<cipher> used."
31210 #: ../src/guestfs-actions.pod:4546
31211 msgid "guestfs_luks_kill_slot"
31212 msgstr "guestfs_luks_kill_slot"
31215 #: ../src/guestfs-actions.pod:4548
31219 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31220 " const char *device,\n"
31221 " const char *key,\n"
31226 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31227 " const char *device,\n"
31228 " const char *key,\n"
31233 #: ../src/guestfs-actions.pod:4566
31234 msgid "guestfs_luks_open"
31235 msgstr "guestfs_luks_open"
31238 #: ../src/guestfs-actions.pod:4568
31242 " guestfs_luks_open (guestfs_h *g,\n"
31243 " const char *device,\n"
31244 " const char *key,\n"
31245 " const char *mapname);\n"
31249 " guestfs_luks_open (guestfs_h *g,\n"
31250 " const char *device,\n"
31251 " const char *key,\n"
31252 " const char *mapname);\n"
31256 #: ../src/guestfs-actions.pod:4586
31258 "If this block device contains LVM volume groups, then calling "
31259 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31264 #: ../src/guestfs-actions.pod:4590
31265 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31269 #: ../src/guestfs-actions.pod:4601
31270 msgid "guestfs_luks_open_ro"
31271 msgstr "guestfs_luks_open_ro"
31274 #: ../src/guestfs-actions.pod:4603
31278 " guestfs_luks_open_ro (guestfs_h *g,\n"
31279 " const char *device,\n"
31280 " const char *key,\n"
31281 " const char *mapname);\n"
31285 " guestfs_luks_open_ro (guestfs_h *g,\n"
31286 " const char *device,\n"
31287 " const char *key,\n"
31288 " const char *mapname);\n"
31292 #: ../src/guestfs-actions.pod:4609
31294 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31299 #: ../src/guestfs-actions.pod:4620
31300 msgid "guestfs_lvcreate"
31301 msgstr "guestfs_lvcreate"
31304 #: ../src/guestfs-actions.pod:4622
31308 " guestfs_lvcreate (guestfs_h *g,\n"
31309 " const char *logvol,\n"
31310 " const char *volgroup,\n"
31315 " guestfs_lvcreate (guestfs_h *g,\n"
31316 " const char *logvol,\n"
31317 " const char *volgroup,\n"
31322 #: ../src/guestfs-actions.pod:4635
31323 msgid "guestfs_lvm_canonical_lv_name"
31324 msgstr "guestfs_lvm_canonical_lv_name"
31327 #: ../src/guestfs-actions.pod:4637
31331 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31332 " const char *lvname);\n"
31336 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31337 " const char *lvname);\n"
31341 #: ../src/guestfs-actions.pod:4648
31342 msgid "See also C<guestfs_is_lv>."
31346 #: ../src/guestfs-actions.pod:4653
31347 msgid "(Added in 1.5.24)"
31348 msgstr "(Додано у 1.5.24)"
31351 #: ../src/guestfs-actions.pod:4655
31352 msgid "guestfs_lvm_clear_filter"
31353 msgstr "guestfs_lvm_clear_filter"
31356 #: ../src/guestfs-actions.pod:4657
31360 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31364 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31368 #: ../src/guestfs-actions.pod:4660
31370 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
31371 "see every block device."
31375 #: ../src/guestfs-actions.pod:4670
31376 msgid "guestfs_lvm_remove_all"
31377 msgstr "guestfs_lvm_remove_all"
31380 #: ../src/guestfs-actions.pod:4672
31384 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31388 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31392 #: ../src/guestfs-actions.pod:4682
31393 msgid "guestfs_lvm_set_filter"
31394 msgstr "guestfs_lvm_set_filter"
31397 #: ../src/guestfs-actions.pod:4684
31401 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31402 " char *const *devices);\n"
31406 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31407 " char *const *devices);\n"
31411 #: ../src/guestfs-actions.pod:4715
31412 msgid "guestfs_lvremove"
31413 msgstr "guestfs_lvremove"
31416 #: ../src/guestfs-actions.pod:4717
31420 " guestfs_lvremove (guestfs_h *g,\n"
31421 " const char *device);\n"
31425 " guestfs_lvremove (guestfs_h *g,\n"
31426 " const char *device);\n"
31430 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
31431 #: ../src/guestfs-actions.pod:7977
31432 msgid "(Added in 1.0.13)"
31433 msgstr "(Додано у 1.0.13)"
31436 #: ../src/guestfs-actions.pod:4731
31437 msgid "guestfs_lvrename"
31438 msgstr "guestfs_lvrename"
31441 #: ../src/guestfs-actions.pod:4733
31445 " guestfs_lvrename (guestfs_h *g,\n"
31446 " const char *logvol,\n"
31447 " const char *newlogvol);\n"
31451 " guestfs_lvrename (guestfs_h *g,\n"
31452 " const char *logvol,\n"
31453 " const char *newlogvol);\n"
31457 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
31458 msgid "(Added in 1.0.83)"
31459 msgstr "(Додано у 1.0.83)"
31462 #: ../src/guestfs-actions.pod:4744
31463 msgid "guestfs_lvresize"
31464 msgstr "guestfs_lvresize"
31467 #: ../src/guestfs-actions.pod:4746
31471 " guestfs_lvresize (guestfs_h *g,\n"
31472 " const char *device,\n"
31477 " guestfs_lvresize (guestfs_h *g,\n"
31478 " const char *device,\n"
31483 #: ../src/guestfs-actions.pod:4759
31484 msgid "guestfs_lvresize_free"
31485 msgstr "guestfs_lvresize_free"
31488 #: ../src/guestfs-actions.pod:4761
31492 " guestfs_lvresize_free (guestfs_h *g,\n"
31493 " const char *lv,\n"
31498 " guestfs_lvresize_free (guestfs_h *g,\n"
31499 " const char *lv,\n"
31504 #: ../src/guestfs-actions.pod:4774
31505 msgid "(Added in 1.3.3)"
31506 msgstr "(Додано у 1.3.3)"
31509 #: ../src/guestfs-actions.pod:4776
31510 msgid "guestfs_lvs"
31511 msgstr "guestfs_lvs"
31514 #: ../src/guestfs-actions.pod:4778
31518 " guestfs_lvs (guestfs_h *g);\n"
31522 " guestfs_lvs (guestfs_h *g);\n"
31526 #: ../src/guestfs-actions.pod:4787
31527 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31531 #: ../src/guestfs-actions.pod:4795
31532 msgid "guestfs_lvs_full"
31533 msgstr "guestfs_lvs_full"
31536 #: ../src/guestfs-actions.pod:4797
31539 " struct guestfs_lvm_lv_list *\n"
31540 " guestfs_lvs_full (guestfs_h *g);\n"
31543 " struct guestfs_lvm_lv_list *\n"
31544 " guestfs_lvs_full (guestfs_h *g);\n"
31548 #: ../src/guestfs-actions.pod:4803
31550 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31551 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31555 #: ../src/guestfs-actions.pod:4809
31556 msgid "guestfs_lvuuid"
31557 msgstr "guestfs_lvuuid"
31560 #: ../src/guestfs-actions.pod:4811
31564 " guestfs_lvuuid (guestfs_h *g,\n"
31565 " const char *device);\n"
31569 " guestfs_lvuuid (guestfs_h *g,\n"
31570 " const char *device);\n"
31574 #: ../src/guestfs-actions.pod:4822
31575 msgid "guestfs_lxattrlist"
31576 msgstr "guestfs_lxattrlist"
31579 #: ../src/guestfs-actions.pod:4824
31582 " struct guestfs_xattr_list *\n"
31583 " guestfs_lxattrlist (guestfs_h *g,\n"
31584 " const char *path,\n"
31585 " char *const *names);\n"
31588 " struct guestfs_xattr_list *\n"
31589 " guestfs_lxattrlist (guestfs_h *g,\n"
31590 " const char *path,\n"
31591 " char *const *names);\n"
31595 #: ../src/guestfs-actions.pod:4843
31597 "This call is intended for programs that want to efficiently list a directory "
31598 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
31599 "a similarly efficient call for getting standard stats. Very long directory "
31600 "listings might cause the protocol message size to be exceeded, causing this "
31601 "call to fail. The caller must split up such requests into smaller groups of "
31606 #: ../src/guestfs-actions.pod:4857
31607 msgid "guestfs_mkdir"
31608 msgstr "guestfs_mkdir"
31611 #: ../src/guestfs-actions.pod:4859
31615 " guestfs_mkdir (guestfs_h *g,\n"
31616 " const char *path);\n"
31620 " guestfs_mkdir (guestfs_h *g,\n"
31621 " const char *path);\n"
31625 #: ../src/guestfs-actions.pod:4869
31626 msgid "guestfs_mkdir_mode"
31627 msgstr "guestfs_mkdir_mode"
31630 #: ../src/guestfs-actions.pod:4871
31634 " guestfs_mkdir_mode (guestfs_h *g,\n"
31635 " const char *path,\n"
31640 " guestfs_mkdir_mode (guestfs_h *g,\n"
31641 " const char *path,\n"
31646 #: ../src/guestfs-actions.pod:4883
31647 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31651 #: ../src/guestfs-actions.pod:4889
31652 msgid "guestfs_mkdir_p"
31653 msgstr "guestfs_mkdir_p"
31656 #: ../src/guestfs-actions.pod:4891
31660 " guestfs_mkdir_p (guestfs_h *g,\n"
31661 " const char *path);\n"
31665 " guestfs_mkdir_p (guestfs_h *g,\n"
31666 " const char *path);\n"
31670 #: ../src/guestfs-actions.pod:4902
31671 msgid "guestfs_mkdtemp"
31672 msgstr "guestfs_mkdtemp"
31675 #: ../src/guestfs-actions.pod:4904
31679 " guestfs_mkdtemp (guestfs_h *g,\n"
31680 " const char *template);\n"
31684 " guestfs_mkdtemp (guestfs_h *g,\n"
31685 " const char *template);\n"
31689 #: ../src/guestfs-actions.pod:4932
31690 msgid "guestfs_mke2fs_J"
31691 msgstr "guestfs_mke2fs_J"
31694 #: ../src/guestfs-actions.pod:4934
31698 " guestfs_mke2fs_J (guestfs_h *g,\n"
31699 " const char *fstype,\n"
31700 " int blocksize,\n"
31701 " const char *device,\n"
31702 " const char *journal);\n"
31706 " guestfs_mke2fs_J (guestfs_h *g,\n"
31707 " const char *fstype,\n"
31708 " int blocksize,\n"
31709 " const char *device,\n"
31710 " const char *journal);\n"
31714 #: ../src/guestfs-actions.pod:4947
31715 msgid "See also C<guestfs_mke2journal>."
31719 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
31720 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
31721 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
31722 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
31723 msgid "(Added in 1.0.68)"
31724 msgstr "(Додано у 1.0.68)"
31727 #: ../src/guestfs-actions.pod:4953
31728 msgid "guestfs_mke2fs_JL"
31729 msgstr "guestfs_mke2fs_JL"
31732 #: ../src/guestfs-actions.pod:4955
31736 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31737 " const char *fstype,\n"
31738 " int blocksize,\n"
31739 " const char *device,\n"
31740 " const char *label);\n"
31744 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31745 " const char *fstype,\n"
31746 " int blocksize,\n"
31747 " const char *device,\n"
31748 " const char *label);\n"
31752 #: ../src/guestfs-actions.pod:4965
31753 msgid "See also C<guestfs_mke2journal_L>."
31757 #: ../src/guestfs-actions.pod:4971
31758 msgid "guestfs_mke2fs_JU"
31759 msgstr "guestfs_mke2fs_JU"
31762 #: ../src/guestfs-actions.pod:4973
31766 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31767 " const char *fstype,\n"
31768 " int blocksize,\n"
31769 " const char *device,\n"
31770 " const char *uuid);\n"
31774 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31775 " const char *fstype,\n"
31776 " int blocksize,\n"
31777 " const char *device,\n"
31778 " const char *uuid);\n"
31782 #: ../src/guestfs-actions.pod:4983
31783 msgid "See also C<guestfs_mke2journal_U>."
31787 #: ../src/guestfs-actions.pod:4989
31788 msgid "guestfs_mke2journal"
31789 msgstr "guestfs_mke2journal"
31792 #: ../src/guestfs-actions.pod:4991
31796 " guestfs_mke2journal (guestfs_h *g,\n"
31797 " int blocksize,\n"
31798 " const char *device);\n"
31802 " guestfs_mke2journal (guestfs_h *g,\n"
31803 " int blocksize,\n"
31804 " const char *device);\n"
31808 #: ../src/guestfs-actions.pod:5005
31809 msgid "guestfs_mke2journal_L"
31810 msgstr "guestfs_mke2journal_L"
31813 #: ../src/guestfs-actions.pod:5007
31817 " guestfs_mke2journal_L (guestfs_h *g,\n"
31818 " int blocksize,\n"
31819 " const char *label,\n"
31820 " const char *device);\n"
31824 " guestfs_mke2journal_L (guestfs_h *g,\n"
31825 " int blocksize,\n"
31826 " const char *label,\n"
31827 " const char *device);\n"
31831 #: ../src/guestfs-actions.pod:5019
31832 msgid "guestfs_mke2journal_U"
31833 msgstr "guestfs_mke2journal_U"
31836 #: ../src/guestfs-actions.pod:5021
31840 " guestfs_mke2journal_U (guestfs_h *g,\n"
31841 " int blocksize,\n"
31842 " const char *uuid,\n"
31843 " const char *device);\n"
31847 " guestfs_mke2journal_U (guestfs_h *g,\n"
31848 " int blocksize,\n"
31849 " const char *uuid,\n"
31850 " const char *device);\n"
31854 #: ../src/guestfs-actions.pod:5033
31855 msgid "guestfs_mkfifo"
31856 msgstr "guestfs_mkfifo"
31859 #: ../src/guestfs-actions.pod:5035
31863 " guestfs_mkfifo (guestfs_h *g,\n"
31865 " const char *path);\n"
31869 " guestfs_mkfifo (guestfs_h *g,\n"
31871 " const char *path);\n"
31875 #: ../src/guestfs-actions.pod:5040
31877 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31878 "is just a convenient wrapper around C<guestfs_mknod>."
31882 #: ../src/guestfs-actions.pod:5050
31883 msgid "guestfs_mkfs"
31884 msgstr "guestfs_mkfs"
31887 #: ../src/guestfs-actions.pod:5052
31891 " guestfs_mkfs (guestfs_h *g,\n"
31892 " const char *fstype,\n"
31893 " const char *device);\n"
31897 " guestfs_mkfs (guestfs_h *g,\n"
31898 " const char *fstype,\n"
31899 " const char *device);\n"
31903 #: ../src/guestfs-actions.pod:5065
31904 msgid "guestfs_mkfs_b"
31905 msgstr "guestfs_mkfs_b"
31908 #: ../src/guestfs-actions.pod:5067
31912 " guestfs_mkfs_b (guestfs_h *g,\n"
31913 " const char *fstype,\n"
31914 " int blocksize,\n"
31915 " const char *device);\n"
31919 " guestfs_mkfs_b (guestfs_h *g,\n"
31920 " const char *fstype,\n"
31921 " int blocksize,\n"
31922 " const char *device);\n"
31926 #: ../src/guestfs-actions.pod:5073
31928 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31933 #: ../src/guestfs-actions.pod:5080
31935 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31936 "block size of the resulting filesystem. Supported block sizes depend on the "
31937 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31941 #: ../src/guestfs-actions.pod:5092
31942 msgid "guestfs_mkfs_opts"
31943 msgstr "guestfs_mkfs_opts"
31946 #: ../src/guestfs-actions.pod:5094
31950 " guestfs_mkfs_opts (guestfs_h *g,\n"
31951 " const char *fstype,\n"
31952 " const char *device,\n"
31957 " guestfs_mkfs_opts (guestfs_h *g,\n"
31958 " const char *fstype,\n"
31959 " const char *device,\n"
31964 #: ../src/guestfs-actions.pod:5105
31967 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31968 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31969 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31970 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31975 #: ../src/guestfs-actions.pod:5153
31976 msgid "(Added in 1.7.19)"
31977 msgstr "(Додано у 1.7.19)"
31980 #: ../src/guestfs-actions.pod:5155
31981 msgid "guestfs_mkfs_opts_va"
31982 msgstr "guestfs_mkfs_opts_va"
31985 #: ../src/guestfs-actions.pod:5157
31989 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31990 " const char *fstype,\n"
31991 " const char *device,\n"
31992 " va_list args);\n"
31996 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31997 " const char *fstype,\n"
31998 " const char *device,\n"
31999 " va_list args);\n"
32003 #: ../src/guestfs-actions.pod:5163
32004 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32008 #: ../src/guestfs-actions.pod:5167
32009 msgid "guestfs_mkfs_opts_argv"
32010 msgstr "guestfs_mkfs_opts_argv"
32013 #: ../src/guestfs-actions.pod:5169
32017 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32018 " const char *fstype,\n"
32019 " const char *device,\n"
32020 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32024 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32025 " const char *fstype,\n"
32026 " const char *device,\n"
32027 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32031 #: ../src/guestfs-actions.pod:5175
32032 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32036 #: ../src/guestfs-actions.pod:5179
32037 msgid "guestfs_mkmountpoint"
32038 msgstr "guestfs_mkmountpoint"
32041 #: ../src/guestfs-actions.pod:5181
32045 " guestfs_mkmountpoint (guestfs_h *g,\n"
32046 " const char *exemptpath);\n"
32050 " guestfs_mkmountpoint (guestfs_h *g,\n"
32051 " const char *exemptpath);\n"
32055 #: ../src/guestfs-actions.pod:5185
32057 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32058 "that can be used to create extra mountpoints before mounting the first "
32063 #: ../src/guestfs-actions.pod:5209
32065 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
32066 "may get unexpected errors if you try to mix these calls. It is safest to "
32067 "manually unmount filesystems and remove mountpoints after use."
32071 #: ../src/guestfs-actions.pod:5213
32073 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32074 "first, so for this to work for manual mountpoints, you must ensure that the "
32075 "innermost mountpoints have the longest pathnames, as in the example code "
32080 #: ../src/guestfs-actions.pod:5220
32082 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32083 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32084 "can also trigger these issues."
32088 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
32089 #: ../src/guestfs-actions.pod:6559
32090 msgid "(Added in 1.0.62)"
32091 msgstr "(Додано у 1.0.62)"
32094 #: ../src/guestfs-actions.pod:5228
32095 msgid "guestfs_mknod"
32099 #: ../src/guestfs-actions.pod:5230
32103 " guestfs_mknod (guestfs_h *g,\n"
32107 " const char *path);\n"
32112 #: ../src/guestfs-actions.pod:5245
32114 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32115 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32116 "regular file). These constants are available in the standard Linux header "
32117 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32118 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32119 "the appropriate constant for you."
32123 #: ../src/guestfs-actions.pod:5259
32124 msgid "guestfs_mknod_b"
32128 #: ../src/guestfs-actions.pod:5261
32132 " guestfs_mknod_b (guestfs_h *g,\n"
32136 " const char *path);\n"
32141 #: ../src/guestfs-actions.pod:5268
32143 "This call creates a block device node called C<path> with mode C<mode> and "
32144 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
32145 "wrapper around C<guestfs_mknod>."
32149 #: ../src/guestfs-actions.pod:5278
32150 msgid "guestfs_mknod_c"
32154 #: ../src/guestfs-actions.pod:5280
32158 " guestfs_mknod_c (guestfs_h *g,\n"
32162 " const char *path);\n"
32167 #: ../src/guestfs-actions.pod:5287
32169 "This call creates a char device node called C<path> with mode C<mode> and "
32170 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
32171 "wrapper around C<guestfs_mknod>."
32175 #: ../src/guestfs-actions.pod:5297
32176 msgid "guestfs_mkswap"
32180 #: ../src/guestfs-actions.pod:5299
32184 " guestfs_mkswap (guestfs_h *g,\n"
32185 " const char *device);\n"
32190 #: ../src/guestfs-actions.pod:5309
32191 msgid "guestfs_mkswap_L"
32195 #: ../src/guestfs-actions.pod:5311
32199 " guestfs_mkswap_L (guestfs_h *g,\n"
32200 " const char *label,\n"
32201 " const char *device);\n"
32206 #: ../src/guestfs-actions.pod:5326
32207 msgid "guestfs_mkswap_U"
32211 #: ../src/guestfs-actions.pod:5328
32215 " guestfs_mkswap_U (guestfs_h *g,\n"
32216 " const char *uuid,\n"
32217 " const char *device);\n"
32222 #: ../src/guestfs-actions.pod:5339
32223 msgid "guestfs_mkswap_file"
32227 #: ../src/guestfs-actions.pod:5341
32231 " guestfs_mkswap_file (guestfs_h *g,\n"
32232 " const char *path);\n"
32237 #: ../src/guestfs-actions.pod:5347
32239 "This command just writes a swap file signature to an existing file. To "
32240 "create the file itself, use something like C<guestfs_fallocate>."
32244 #: ../src/guestfs-actions.pod:5354
32245 msgid "guestfs_modprobe"
32249 #: ../src/guestfs-actions.pod:5356
32253 " guestfs_modprobe (guestfs_h *g,\n"
32254 " const char *modulename);\n"
32259 #: ../src/guestfs-actions.pod:5369
32260 msgid "guestfs_mount"
32264 #: ../src/guestfs-actions.pod:5371
32268 " guestfs_mount (guestfs_h *g,\n"
32269 " const char *device,\n"
32270 " const char *mountpoint);\n"
32275 #: ../src/guestfs-actions.pod:5390
32277 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
32278 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
32279 "problems for users. If your program might need to work with older versions "
32280 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
32281 "for the first parameter if you don't want any options)."
32285 #: ../src/guestfs-actions.pod:5401
32286 msgid "guestfs_mount_9p"
32290 #: ../src/guestfs-actions.pod:5403
32294 " guestfs_mount_9p (guestfs_h *g,\n"
32295 " const char *mounttag,\n"
32296 " const char *mountpoint,\n"
32302 #: ../src/guestfs-actions.pod:5414
32305 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
32310 #: ../src/guestfs-actions.pod:5427
32311 msgid "guestfs_mount_9p_va"
32315 #: ../src/guestfs-actions.pod:5429
32319 " guestfs_mount_9p_va (guestfs_h *g,\n"
32320 " const char *mounttag,\n"
32321 " const char *mountpoint,\n"
32322 " va_list args);\n"
32327 #: ../src/guestfs-actions.pod:5435
32328 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32332 #: ../src/guestfs-actions.pod:5439
32333 msgid "guestfs_mount_9p_argv"
32337 #: ../src/guestfs-actions.pod:5441
32341 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32342 " const char *mounttag,\n"
32343 " const char *mountpoint,\n"
32344 " const struct guestfs_mount_9p_argv *optargs);\n"
32349 #: ../src/guestfs-actions.pod:5447
32350 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32354 #: ../src/guestfs-actions.pod:5451
32355 msgid "guestfs_mount_loop"
32359 #: ../src/guestfs-actions.pod:5453
32363 " guestfs_mount_loop (guestfs_h *g,\n"
32364 " const char *file,\n"
32365 " const char *mountpoint);\n"
32370 #: ../src/guestfs-actions.pod:5466
32371 msgid "guestfs_mount_options"
32375 #: ../src/guestfs-actions.pod:5468
32379 " guestfs_mount_options (guestfs_h *g,\n"
32380 " const char *options,\n"
32381 " const char *device,\n"
32382 " const char *mountpoint);\n"
32387 #: ../src/guestfs-actions.pod:5474
32389 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32390 "the mount options as for the L<mount(8)> I<-o> flag."
32394 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
32395 #: ../src/guestfs-actions.pod:5515
32396 msgid "(Added in 1.0.10)"
32397 msgstr "(Додано у 1.0.10)"
32400 #: ../src/guestfs-actions.pod:5486
32401 msgid "guestfs_mount_ro"
32405 #: ../src/guestfs-actions.pod:5488
32409 " guestfs_mount_ro (guestfs_h *g,\n"
32410 " const char *device,\n"
32411 " const char *mountpoint);\n"
32416 #: ../src/guestfs-actions.pod:5493
32418 "This is the same as the C<guestfs_mount> command, but it mounts the "
32419 "filesystem with the read-only (I<-o ro>) flag."
32423 #: ../src/guestfs-actions.pod:5500
32424 msgid "guestfs_mount_vfs"
32428 #: ../src/guestfs-actions.pod:5502
32432 " guestfs_mount_vfs (guestfs_h *g,\n"
32433 " const char *options,\n"
32434 " const char *vfstype,\n"
32435 " const char *device,\n"
32436 " const char *mountpoint);\n"
32441 #: ../src/guestfs-actions.pod:5509
32443 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32444 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32449 #: ../src/guestfs-actions.pod:5517
32450 msgid "guestfs_mountpoints"
32454 #: ../src/guestfs-actions.pod:5519
32458 " guestfs_mountpoints (guestfs_h *g);\n"
32463 #: ../src/guestfs-actions.pod:5522
32465 "This call is similar to C<guestfs_mounts>. That call returns a list of "
32466 "devices. This one returns a hash table (map) of device name to directory "
32467 "where the device is mounted."
32471 #: ../src/guestfs-actions.pod:5534
32472 msgid "guestfs_mounts"
32476 #: ../src/guestfs-actions.pod:5536
32480 " guestfs_mounts (guestfs_h *g);\n"
32485 #: ../src/guestfs-actions.pod:5544
32486 msgid "See also: C<guestfs_mountpoints>"
32490 #: ../src/guestfs-actions.pod:5552
32495 #: ../src/guestfs-actions.pod:5554
32499 " guestfs_mv (guestfs_h *g,\n"
32500 " const char *src,\n"
32501 " const char *dest);\n"
32506 #: ../src/guestfs-actions.pod:5566
32507 msgid "guestfs_ntfs_3g_probe"
32511 #: ../src/guestfs-actions.pod:5568
32515 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32517 " const char *device);\n"
32522 #: ../src/guestfs-actions.pod:5587
32523 msgid "(Added in 1.0.43)"
32524 msgstr "(Додано у 1.0.43)"
32527 #: ../src/guestfs-actions.pod:5589
32528 msgid "guestfs_ntfsresize"
32532 #: ../src/guestfs-actions.pod:5591
32536 " guestfs_ntfsresize (guestfs_h *g,\n"
32537 " const char *device);\n"
32542 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
32544 "I<This function is deprecated.> In new code, use the L</"
32545 "guestfs_ntfsresize_opts> call instead."
32549 #: ../src/guestfs-actions.pod:5619
32550 msgid "guestfs_ntfsresize_opts"
32554 #: ../src/guestfs-actions.pod:5621
32558 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32559 " const char *device,\n"
32565 #: ../src/guestfs-actions.pod:5631
32568 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32569 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32574 #: ../src/guestfs-actions.pod:5651
32576 "After the resize operation, the filesystem is always marked as requiring a "
32577 "consistency check (for safety). You have to boot into Windows to perform "
32578 "this check and clear this condition. If you I<don't> set the C<force> "
32579 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32580 "times on a single filesystem without booting into Windows between each "
32585 #: ../src/guestfs-actions.pod:5666
32586 msgid "guestfs_ntfsresize_opts_va"
32590 #: ../src/guestfs-actions.pod:5668
32594 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32595 " const char *device,\n"
32596 " va_list args);\n"
32601 #: ../src/guestfs-actions.pod:5673
32602 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32606 #: ../src/guestfs-actions.pod:5677
32607 msgid "guestfs_ntfsresize_opts_argv"
32611 #: ../src/guestfs-actions.pod:5679
32615 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32616 " const char *device,\n"
32617 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32622 #: ../src/guestfs-actions.pod:5684
32623 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32627 #: ../src/guestfs-actions.pod:5688
32628 msgid "guestfs_ntfsresize_size"
32632 #: ../src/guestfs-actions.pod:5690
32636 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32637 " const char *device,\n"
32638 " int64_t size);\n"
32643 #: ../src/guestfs-actions.pod:5702
32645 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32646 "to specify the new size (in bytes) explicitly."
32650 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
32651 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
32652 #: ../src/guestfs-actions.pod:8134
32653 msgid "(Added in 1.3.14)"
32654 msgstr "(Додано у 1.3.14)"
32657 #: ../src/guestfs-actions.pod:5709
32658 msgid "guestfs_part_add"
32662 #: ../src/guestfs-actions.pod:5711
32666 " guestfs_part_add (guestfs_h *g,\n"
32667 " const char *device,\n"
32668 " const char *prlogex,\n"
32669 " int64_t startsect,\n"
32670 " int64_t endsect);\n"
32675 #: ../src/guestfs-actions.pod:5718
32677 "This command adds a partition to C<device>. If there is no partition table "
32678 "on the device, call C<guestfs_part_init> first."
32682 #: ../src/guestfs-actions.pod:5730
32684 "Creating a partition which covers the whole disk is not so easy. Use "
32685 "C<guestfs_part_disk> to do that."
32689 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
32690 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
32691 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
32692 #: ../src/guestfs-actions.pod:6004
32693 msgid "(Added in 1.0.78)"
32694 msgstr "(Додано у 1.0.78)"
32697 #: ../src/guestfs-actions.pod:5737
32698 msgid "guestfs_part_del"
32702 #: ../src/guestfs-actions.pod:5739
32706 " guestfs_part_del (guestfs_h *g,\n"
32707 " const char *device,\n"
32713 #: ../src/guestfs-actions.pod:5754
32714 msgid "guestfs_part_disk"
32718 #: ../src/guestfs-actions.pod:5756
32722 " guestfs_part_disk (guestfs_h *g,\n"
32723 " const char *device,\n"
32724 " const char *parttype);\n"
32729 #: ../src/guestfs-actions.pod:5761
32731 "This command is simply a combination of C<guestfs_part_init> followed by "
32732 "C<guestfs_part_add> to create a single primary partition covering the whole "
32737 #: ../src/guestfs-actions.pod:5765
32739 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32740 "possible values are described in C<guestfs_part_init>."
32744 #: ../src/guestfs-actions.pod:5772
32745 msgid "guestfs_part_get_bootable"
32749 #: ../src/guestfs-actions.pod:5774
32753 " guestfs_part_get_bootable (guestfs_h *g,\n"
32754 " const char *device,\n"
32760 #: ../src/guestfs-actions.pod:5782
32761 msgid "See also C<guestfs_part_set_bootable>."
32765 #: ../src/guestfs-actions.pod:5788
32766 msgid "guestfs_part_get_mbr_id"
32770 #: ../src/guestfs-actions.pod:5790
32774 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32775 " const char *device,\n"
32781 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
32783 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
32784 "undefined results for other partition table types (see "
32785 "C<guestfs_part_get_parttype>)."
32789 #: ../src/guestfs-actions.pod:5806
32790 msgid "guestfs_part_get_parttype"
32794 #: ../src/guestfs-actions.pod:5808
32798 " guestfs_part_get_parttype (guestfs_h *g,\n"
32799 " const char *device);\n"
32804 #: ../src/guestfs-actions.pod:5815
32806 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32807 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
32808 "possible, although unusual. See C<guestfs_part_init> for a full list."
32812 #: ../src/guestfs-actions.pod:5825
32813 msgid "guestfs_part_init"
32817 #: ../src/guestfs-actions.pod:5827
32821 " guestfs_part_init (guestfs_h *g,\n"
32822 " const char *device,\n"
32823 " const char *parttype);\n"
32828 #: ../src/guestfs-actions.pod:5836
32830 "Initially there are no partitions. Following this, you should call "
32831 "C<guestfs_part_add> for each partition required."
32835 #: ../src/guestfs-actions.pod:5909
32836 msgid "guestfs_part_list"
32837 msgstr "guestfs_part_list"
32840 #: ../src/guestfs-actions.pod:5911
32843 " struct guestfs_partition_list *\n"
32844 " guestfs_part_list (guestfs_h *g,\n"
32845 " const char *device);\n"
32848 " struct guestfs_partition_list *\n"
32849 " guestfs_part_list (guestfs_h *g,\n"
32850 " const char *device);\n"
32854 #: ../src/guestfs-actions.pod:5928
32856 "Start of the partition I<in bytes>. To get sectors you have to divide by "
32857 "the device's sector size, see C<guestfs_blockdev_getss>."
32861 #: ../src/guestfs-actions.pod:5941
32863 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32864 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
32869 #: ../src/guestfs-actions.pod:5947
32870 msgid "guestfs_part_set_bootable"
32874 #: ../src/guestfs-actions.pod:5949
32878 " guestfs_part_set_bootable (guestfs_h *g,\n"
32879 " const char *device,\n"
32881 " int bootable);\n"
32886 #: ../src/guestfs-actions.pod:5966
32887 msgid "guestfs_part_set_mbr_id"
32891 #: ../src/guestfs-actions.pod:5968
32895 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32896 " const char *device,\n"
32903 #: ../src/guestfs-actions.pod:5988
32904 msgid "guestfs_part_set_name"
32908 #: ../src/guestfs-actions.pod:5990
32912 " guestfs_part_set_name (guestfs_h *g,\n"
32913 " const char *device,\n"
32915 " const char *name);\n"
32920 #: ../src/guestfs-actions.pod:6006
32921 msgid "guestfs_part_to_dev"
32925 #: ../src/guestfs-actions.pod:6008
32929 " guestfs_part_to_dev (guestfs_h *g,\n"
32930 " const char *partition);\n"
32935 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
32937 "The named partition must exist, for example as a string returned from "
32938 "C<guestfs_list_partitions>."
32942 #: ../src/guestfs-actions.pod:6019
32943 msgid "See also C<guestfs_part_to_partnum>."
32947 #: ../src/guestfs-actions.pod:6026
32948 msgid "guestfs_part_to_partnum"
32952 #: ../src/guestfs-actions.pod:6028
32956 " guestfs_part_to_partnum (guestfs_h *g,\n"
32957 " const char *partition);\n"
32962 #: ../src/guestfs-actions.pod:6038
32963 msgid "See also C<guestfs_part_to_dev>."
32967 #: ../src/guestfs-actions.pod:6044
32968 msgid "guestfs_ping_daemon"
32972 #: ../src/guestfs-actions.pod:6046
32976 " guestfs_ping_daemon (guestfs_h *g);\n"
32981 #: ../src/guestfs-actions.pod:6058
32982 msgid "guestfs_pread"
32986 #: ../src/guestfs-actions.pod:6060
32990 " guestfs_pread (guestfs_h *g,\n"
32991 " const char *path,\n"
32993 " int64_t offset,\n"
32994 " size_t *size_r);\n"
32999 #: ../src/guestfs-actions.pod:6073
33000 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33004 #: ../src/guestfs-actions.pod:6084
33005 msgid "guestfs_pread_device"
33009 #: ../src/guestfs-actions.pod:6086
33013 " guestfs_pread_device (guestfs_h *g,\n"
33014 " const char *device,\n"
33016 " int64_t offset,\n"
33017 " size_t *size_r);\n"
33022 #: ../src/guestfs-actions.pod:6099
33023 msgid "See also C<guestfs_pread>."
33027 #: ../src/guestfs-actions.pod:6108
33028 msgid "(Added in 1.5.21)"
33029 msgstr "(Додано у 1.5.21)"
33032 #: ../src/guestfs-actions.pod:6110
33033 msgid "guestfs_pvcreate"
33037 #: ../src/guestfs-actions.pod:6112
33041 " guestfs_pvcreate (guestfs_h *g,\n"
33042 " const char *device);\n"
33047 #: ../src/guestfs-actions.pod:6124
33048 msgid "guestfs_pvremove"
33052 #: ../src/guestfs-actions.pod:6126
33056 " guestfs_pvremove (guestfs_h *g,\n"
33057 " const char *device);\n"
33062 #: ../src/guestfs-actions.pod:6141
33063 msgid "guestfs_pvresize"
33067 #: ../src/guestfs-actions.pod:6143
33071 " guestfs_pvresize (guestfs_h *g,\n"
33072 " const char *device);\n"
33077 #: ../src/guestfs-actions.pod:6154
33078 msgid "guestfs_pvresize_size"
33082 #: ../src/guestfs-actions.pod:6156
33086 " guestfs_pvresize_size (guestfs_h *g,\n"
33087 " const char *device,\n"
33088 " int64_t size);\n"
33093 #: ../src/guestfs-actions.pod:6161
33095 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33096 "specify the new size (in bytes) explicitly."
33100 #: ../src/guestfs-actions.pod:6168
33101 msgid "guestfs_pvs"
33105 #: ../src/guestfs-actions.pod:6170
33109 " guestfs_pvs (guestfs_h *g);\n"
33114 #: ../src/guestfs-actions.pod:6179
33115 msgid "See also C<guestfs_pvs_full>."
33119 #: ../src/guestfs-actions.pod:6187
33120 msgid "guestfs_pvs_full"
33124 #: ../src/guestfs-actions.pod:6189
33127 " struct guestfs_lvm_pv_list *\n"
33128 " guestfs_pvs_full (guestfs_h *g);\n"
33133 #: ../src/guestfs-actions.pod:6195
33135 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33136 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33140 #: ../src/guestfs-actions.pod:6201
33141 msgid "guestfs_pvuuid"
33145 #: ../src/guestfs-actions.pod:6203
33149 " guestfs_pvuuid (guestfs_h *g,\n"
33150 " const char *device);\n"
33155 #: ../src/guestfs-actions.pod:6214
33156 msgid "guestfs_pwrite"
33160 #: ../src/guestfs-actions.pod:6216
33164 " guestfs_pwrite (guestfs_h *g,\n"
33165 " const char *path,\n"
33166 " const char *content,\n"
33167 " size_t content_size,\n"
33168 " int64_t offset);\n"
33173 #: ../src/guestfs-actions.pod:6232
33174 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33178 #: ../src/guestfs-actions.pod:6241
33179 msgid "guestfs_pwrite_device"
33183 #: ../src/guestfs-actions.pod:6243
33187 " guestfs_pwrite_device (guestfs_h *g,\n"
33188 " const char *device,\n"
33189 " const char *content,\n"
33190 " size_t content_size,\n"
33191 " int64_t offset);\n"
33196 #: ../src/guestfs-actions.pod:6258
33197 msgid "See also C<guestfs_pwrite>."
33201 #: ../src/guestfs-actions.pod:6265
33202 msgid "(Added in 1.5.20)"
33203 msgstr "(Додано у 1.5.20)"
33206 #: ../src/guestfs-actions.pod:6267
33207 msgid "guestfs_read_file"
33211 #: ../src/guestfs-actions.pod:6269
33215 " guestfs_read_file (guestfs_h *g,\n"
33216 " const char *path,\n"
33217 " size_t *size_r);\n"
33222 #: ../src/guestfs-actions.pod:6277
33224 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
33225 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
33226 "function is limited in the total size of file that can be handled."
33230 #: ../src/guestfs-actions.pod:6289
33231 msgid "(Added in 1.0.63)"
33232 msgstr "(Додано у 1.0.63)"
33235 #: ../src/guestfs-actions.pod:6291
33236 msgid "guestfs_read_lines"
33240 #: ../src/guestfs-actions.pod:6293
33244 " guestfs_read_lines (guestfs_h *g,\n"
33245 " const char *path);\n"
33250 #: ../src/guestfs-actions.pod:6302
33252 "Note that this function cannot correctly handle binary files (specifically, "
33253 "files containing C<\\0> character which is treated as end of line). For "
33254 "those you need to use the C<guestfs_read_file> function which has a more "
33255 "complex interface."
33259 #: ../src/guestfs-actions.pod:6313
33260 msgid "guestfs_readdir"
33264 #: ../src/guestfs-actions.pod:6315
33267 " struct guestfs_dirent_list *\n"
33268 " guestfs_readdir (guestfs_h *g,\n"
33269 " const char *dir);\n"
33274 #: ../src/guestfs-actions.pod:6369
33276 "This function is primarily intended for use by programs. To get a simple "
33277 "list of names, use C<guestfs_ls>. To get a printable directory for human "
33278 "consumption, use C<guestfs_ll>."
33282 #: ../src/guestfs-actions.pod:6373
33284 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
33285 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
33289 #: ../src/guestfs-actions.pod:6379
33290 msgid "guestfs_readlink"
33294 #: ../src/guestfs-actions.pod:6381
33298 " guestfs_readlink (guestfs_h *g,\n"
33299 " const char *path);\n"
33304 #: ../src/guestfs-actions.pod:6392
33305 msgid "guestfs_readlinklist"
33309 #: ../src/guestfs-actions.pod:6394
33313 " guestfs_readlinklist (guestfs_h *g,\n"
33314 " const char *path,\n"
33315 " char *const *names);\n"
33320 #: ../src/guestfs-actions.pod:6427
33321 msgid "guestfs_realpath"
33325 #: ../src/guestfs-actions.pod:6429
33329 " guestfs_realpath (guestfs_h *g,\n"
33330 " const char *path);\n"
33335 #: ../src/guestfs-actions.pod:6441
33336 msgid "guestfs_removexattr"
33340 #: ../src/guestfs-actions.pod:6443
33344 " guestfs_removexattr (guestfs_h *g,\n"
33345 " const char *xattr,\n"
33346 " const char *path);\n"
33351 #: ../src/guestfs-actions.pod:6451
33352 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33356 #: ../src/guestfs-actions.pod:6457
33357 msgid "guestfs_resize2fs"
33361 #: ../src/guestfs-actions.pod:6459
33365 " guestfs_resize2fs (guestfs_h *g,\n"
33366 " const char *device);\n"
33371 #: ../src/guestfs-actions.pod:6466
33373 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33374 "C<device> before calling this command. For unknown reasons C<resize2fs> "
33375 "sometimes gives an error about this and sometimes not. In any case, it is "
33376 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33380 #: ../src/guestfs-actions.pod:6476
33381 msgid "guestfs_resize2fs_M"
33385 #: ../src/guestfs-actions.pod:6478
33389 " guestfs_resize2fs_M (guestfs_h *g,\n"
33390 " const char *device);\n"
33395 #: ../src/guestfs-actions.pod:6482
33397 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33398 "resized to its minimum size. This works like the I<-M> option to the "
33399 "C<resize2fs> command."
33403 #: ../src/guestfs-actions.pod:6486
33405 "To get the resulting size of the filesystem you should call "
33406 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
33407 "These two numbers, multiplied together, give the resulting size of the "
33408 "minimal filesystem in bytes."
33412 #: ../src/guestfs-actions.pod:6495
33413 msgid "guestfs_resize2fs_size"
33417 #: ../src/guestfs-actions.pod:6497
33421 " guestfs_resize2fs_size (guestfs_h *g,\n"
33422 " const char *device,\n"
33423 " int64_t size);\n"
33428 #: ../src/guestfs-actions.pod:6502
33430 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33431 "to specify the new size (in bytes) explicitly."
33435 #: ../src/guestfs-actions.pod:6509
33440 #: ../src/guestfs-actions.pod:6511
33444 " guestfs_rm (guestfs_h *g,\n"
33445 " const char *path);\n"
33450 #: ../src/guestfs-actions.pod:6521
33451 msgid "guestfs_rm_rf"
33455 #: ../src/guestfs-actions.pod:6523
33459 " guestfs_rm_rf (guestfs_h *g,\n"
33460 " const char *path);\n"
33465 #: ../src/guestfs-actions.pod:6535
33466 msgid "guestfs_rmdir"
33470 #: ../src/guestfs-actions.pod:6537
33474 " guestfs_rmdir (guestfs_h *g,\n"
33475 " const char *path);\n"
33480 #: ../src/guestfs-actions.pod:6547
33481 msgid "guestfs_rmmountpoint"
33485 #: ../src/guestfs-actions.pod:6549
33489 " guestfs_rmmountpoint (guestfs_h *g,\n"
33490 " const char *exemptpath);\n"
33495 #: ../src/guestfs-actions.pod:6553
33497 "This calls removes a mountpoint that was previously created with "
33498 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
33502 #: ../src/guestfs-actions.pod:6561
33503 msgid "guestfs_scrub_device"
33507 #: ../src/guestfs-actions.pod:6563
33511 " guestfs_scrub_device (guestfs_h *g,\n"
33512 " const char *device);\n"
33517 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
33518 #: ../src/guestfs-actions.pod:6612
33519 msgid "(Added in 1.0.52)"
33520 msgstr "(Додано у 1.0.52)"
33523 #: ../src/guestfs-actions.pod:6577
33524 msgid "guestfs_scrub_file"
33528 #: ../src/guestfs-actions.pod:6579
33532 " guestfs_scrub_file (guestfs_h *g,\n"
33533 " const char *file);\n"
33538 #: ../src/guestfs-actions.pod:6595
33539 msgid "guestfs_scrub_freespace"
33543 #: ../src/guestfs-actions.pod:6597
33547 " guestfs_scrub_freespace (guestfs_h *g,\n"
33548 " const char *dir);\n"
33553 #: ../src/guestfs-actions.pod:6601
33555 "This command creates the directory C<dir> and then fills it with files until "
33556 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33557 "and deletes them. The intention is to scrub any free space on the partition "
33558 "containing C<dir>."
33562 #: ../src/guestfs-actions.pod:6614
33563 msgid "guestfs_set_append"
33567 #: ../src/guestfs-actions.pod:6616
33571 " guestfs_set_append (guestfs_h *g,\n"
33572 " const char *append);\n"
33577 #: ../src/guestfs-actions.pod:6633
33578 msgid "guestfs_set_attach_method"
33582 #: ../src/guestfs-actions.pod:6635
33586 " guestfs_set_attach_method (guestfs_h *g,\n"
33587 " const char *attachmethod);\n"
33592 #: ../src/guestfs-actions.pod:6663
33593 msgid "guestfs_set_autosync"
33597 #: ../src/guestfs-actions.pod:6665
33601 " guestfs_set_autosync (guestfs_h *g,\n"
33602 " int autosync);\n"
33607 #: ../src/guestfs-actions.pod:6681
33608 msgid "guestfs_set_direct"
33612 #: ../src/guestfs-actions.pod:6683
33616 " guestfs_set_direct (guestfs_h *g,\n"
33622 #: ../src/guestfs-actions.pod:6691
33624 "One consequence of this is that log messages aren't caught by the library "
33625 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33630 #: ../src/guestfs-actions.pod:6704
33631 msgid "guestfs_set_e2label"
33635 #: ../src/guestfs-actions.pod:6706
33639 " guestfs_set_e2label (guestfs_h *g,\n"
33640 " const char *device,\n"
33641 " const char *label);\n"
33646 #: ../src/guestfs-actions.pod:6715
33648 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33649 "the existing label on a filesystem."
33653 #: ../src/guestfs-actions.pod:6722
33654 msgid "guestfs_set_e2uuid"
33658 #: ../src/guestfs-actions.pod:6724
33662 " guestfs_set_e2uuid (guestfs_h *g,\n"
33663 " const char *device,\n"
33664 " const char *uuid);\n"
33669 #: ../src/guestfs-actions.pod:6734
33671 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33672 "the existing UUID of a filesystem."
33676 #: ../src/guestfs-actions.pod:6741
33677 msgid "guestfs_set_memsize"
33681 #: ../src/guestfs-actions.pod:6743
33685 " guestfs_set_memsize (guestfs_h *g,\n"
33691 #: ../src/guestfs-actions.pod:6747
33693 "This sets the memory size in megabytes allocated to the qemu subprocess. "
33694 "This only has any effect if called before C<guestfs_launch>."
33698 #: ../src/guestfs-actions.pod:6762
33699 msgid "guestfs_set_network"
33703 #: ../src/guestfs-actions.pod:6764
33707 " guestfs_set_network (guestfs_h *g,\n"
33713 #: ../src/guestfs-actions.pod:6774
33715 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33720 #: ../src/guestfs-actions.pod:6781
33721 msgid "guestfs_set_path"
33725 #: ../src/guestfs-actions.pod:6783
33729 " guestfs_set_path (guestfs_h *g,\n"
33730 " const char *searchpath);\n"
33735 #: ../src/guestfs-actions.pod:6798
33736 msgid "guestfs_set_pgroup"
33740 #: ../src/guestfs-actions.pod:6800
33744 " guestfs_set_pgroup (guestfs_h *g,\n"
33750 #: ../src/guestfs-actions.pod:6817
33751 msgid "guestfs_set_qemu"
33755 #: ../src/guestfs-actions.pod:6819
33759 " guestfs_set_qemu (guestfs_h *g,\n"
33760 " const char *qemu);\n"
33765 #: ../src/guestfs-actions.pod:6845
33766 msgid "guestfs_set_recovery_proc"
33770 #: ../src/guestfs-actions.pod:6847
33774 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33775 " int recoveryproc);\n"
33780 #: ../src/guestfs-actions.pod:6851
33782 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33783 "not create a recovery process. The purpose of the recovery process is to "
33784 "stop runaway qemu processes in the case where the main program aborts "
33789 #: ../src/guestfs-actions.pod:6856
33791 "This only has any effect if called before C<guestfs_launch>, and the default "
33796 #: ../src/guestfs-actions.pod:6869
33797 msgid "guestfs_set_selinux"
33801 #: ../src/guestfs-actions.pod:6871
33805 " guestfs_set_selinux (guestfs_h *g,\n"
33811 #: ../src/guestfs-actions.pod:6888
33812 msgid "guestfs_set_smp"
33816 #: ../src/guestfs-actions.pod:6890
33820 " guestfs_set_smp (guestfs_h *g,\n"
33826 #: ../src/guestfs-actions.pod:6898
33827 msgid "This function must be called before C<guestfs_launch>."
33831 #: ../src/guestfs-actions.pod:6904
33832 msgid "guestfs_set_trace"
33836 #: ../src/guestfs-actions.pod:6906
33840 " guestfs_set_trace (guestfs_h *g,\n"
33846 #: ../src/guestfs-actions.pod:6920
33848 "Trace messages are normally sent to C<stderr>, unless you register a "
33849 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33853 #: ../src/guestfs-actions.pod:6928
33854 msgid "guestfs_set_verbose"
33858 #: ../src/guestfs-actions.pod:6930
33862 " guestfs_set_verbose (guestfs_h *g,\n"
33868 #: ../src/guestfs-actions.pod:6939
33870 "Verbose messages are normally sent to C<stderr>, unless you register a "
33871 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33875 #: ../src/guestfs-actions.pod:6947
33876 msgid "guestfs_setcon"
33880 #: ../src/guestfs-actions.pod:6949
33884 " guestfs_setcon (guestfs_h *g,\n"
33885 " const char *context);\n"
33890 #: ../src/guestfs-actions.pod:6962
33891 msgid "guestfs_setxattr"
33895 #: ../src/guestfs-actions.pod:6964
33899 " guestfs_setxattr (guestfs_h *g,\n"
33900 " const char *xattr,\n"
33901 " const char *val,\n"
33903 " const char *path);\n"
33908 #: ../src/guestfs-actions.pod:6975
33909 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33913 #: ../src/guestfs-actions.pod:6981
33914 msgid "guestfs_sfdisk"
33918 #: ../src/guestfs-actions.pod:6983
33922 " guestfs_sfdisk (guestfs_h *g,\n"
33923 " const char *device,\n"
33927 " char *const *lines);\n"
33932 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
33933 #: ../src/guestfs-actions.pod:7063
33935 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33940 #: ../src/guestfs-actions.pod:7018
33942 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33946 #: ../src/guestfs-actions.pod:7025
33947 msgid "guestfs_sfdiskM"
33951 #: ../src/guestfs-actions.pod:7027
33955 " guestfs_sfdiskM (guestfs_h *g,\n"
33956 " const char *device,\n"
33957 " char *const *lines);\n"
33962 #: ../src/guestfs-actions.pod:7039
33964 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33965 "partition sizes are specified in megabytes only (rounded to the nearest "
33966 "cylinder) and you don't need to specify the cyls, heads and sectors "
33967 "parameters which were rarely if ever used anyway."
33971 #: ../src/guestfs-actions.pod:7045
33973 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33974 "C<guestfs_part_disk>"
33978 #: ../src/guestfs-actions.pod:7052
33979 msgid "guestfs_sfdisk_N"
33983 #: ../src/guestfs-actions.pod:7054
33987 " guestfs_sfdisk_N (guestfs_h *g,\n"
33988 " const char *device,\n"
33993 " const char *line);\n"
33998 #: ../src/guestfs-actions.pod:7073
34000 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
34001 "for the cyls/heads/sectors parameters."
34005 #: ../src/guestfs-actions.pod:7076
34006 msgid "See also: C<guestfs_part_add>"
34010 #: ../src/guestfs-actions.pod:7082
34011 msgid "guestfs_sfdisk_disk_geometry"
34015 #: ../src/guestfs-actions.pod:7084
34019 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34020 " const char *device);\n"
34025 #: ../src/guestfs-actions.pod:7088
34027 "This displays the disk geometry of C<device> read from the partition table. "
34028 "Especially in the case where the underlying block device has been resized, "
34029 "this can be different from the kernel's idea of the geometry (see "
34030 "C<guestfs_sfdisk_kernel_geometry>)."
34034 #: ../src/guestfs-actions.pod:7101
34035 msgid "guestfs_sfdisk_kernel_geometry"
34039 #: ../src/guestfs-actions.pod:7103
34043 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34044 " const char *device);\n"
34049 #: ../src/guestfs-actions.pod:7117
34050 msgid "guestfs_sfdisk_l"
34054 #: ../src/guestfs-actions.pod:7119
34058 " guestfs_sfdisk_l (guestfs_h *g,\n"
34059 " const char *device);\n"
34064 #: ../src/guestfs-actions.pod:7123
34066 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34071 #: ../src/guestfs-actions.pod:7134
34072 msgid "See also: C<guestfs_part_list>"
34076 #: ../src/guestfs-actions.pod:7141
34081 #: ../src/guestfs-actions.pod:7143
34085 " guestfs_sh (guestfs_h *g,\n"
34086 " const char *command);\n"
34091 #: ../src/guestfs-actions.pod:7150
34092 msgid "This is like C<guestfs_command>, but passes the command to:"
34096 #: ../src/guestfs-actions.pod:7158
34097 msgid "All the provisos about C<guestfs_command> apply to this call."
34101 #: ../src/guestfs-actions.pod:7165
34102 msgid "guestfs_sh_lines"
34106 #: ../src/guestfs-actions.pod:7167
34110 " guestfs_sh_lines (guestfs_h *g,\n"
34111 " const char *command);\n"
34116 #: ../src/guestfs-actions.pod:7171
34118 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34123 #: ../src/guestfs-actions.pod:7174
34124 msgid "See also: C<guestfs_command_lines>"
34128 #: ../src/guestfs-actions.pod:7182
34129 msgid "guestfs_sleep"
34133 #: ../src/guestfs-actions.pod:7184
34137 " guestfs_sleep (guestfs_h *g,\n"
34143 #: ../src/guestfs-actions.pod:7192
34144 msgid "(Added in 1.0.41)"
34145 msgstr "(Додано у 1.0.41)"
34148 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
34149 msgid "guestfs_stat"
34153 #: ../src/guestfs-actions.pod:7196
34156 " struct guestfs_stat *\n"
34157 " guestfs_stat (guestfs_h *g,\n"
34158 " const char *path);\n"
34163 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
34164 msgid "guestfs_statvfs"
34168 #: ../src/guestfs-actions.pod:7212
34171 " struct guestfs_statvfs *\n"
34172 " guestfs_statvfs (guestfs_h *g,\n"
34173 " const char *path);\n"
34178 #: ../src/guestfs-actions.pod:7222
34180 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34181 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
34185 #: ../src/guestfs-actions.pod:7228
34186 msgid "guestfs_strings"
34190 #: ../src/guestfs-actions.pod:7230
34194 " guestfs_strings (guestfs_h *g,\n"
34195 " const char *path);\n"
34200 #: ../src/guestfs-actions.pod:7246
34201 msgid "guestfs_strings_e"
34205 #: ../src/guestfs-actions.pod:7248
34209 " guestfs_strings_e (guestfs_h *g,\n"
34210 " const char *encoding,\n"
34211 " const char *path);\n"
34216 #: ../src/guestfs-actions.pod:7253
34218 "This is like the C<guestfs_strings> command, but allows you to specify the "
34219 "encoding of strings that are looked for in the source file C<path>."
34223 #: ../src/guestfs-actions.pod:7263
34225 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
34226 "ISO-8859-X (this is what C<guestfs_strings> uses)."
34230 #: ../src/guestfs-actions.pod:7301
34231 msgid "guestfs_swapoff_device"
34235 #: ../src/guestfs-actions.pod:7303
34239 " guestfs_swapoff_device (guestfs_h *g,\n"
34240 " const char *device);\n"
34245 #: ../src/guestfs-actions.pod:7307
34247 "This command disables the libguestfs appliance swap device or partition "
34248 "named C<device>. See C<guestfs_swapon_device>."
34252 #: ../src/guestfs-actions.pod:7315
34253 msgid "guestfs_swapoff_file"
34257 #: ../src/guestfs-actions.pod:7317
34261 " guestfs_swapoff_file (guestfs_h *g,\n"
34262 " const char *file);\n"
34267 #: ../src/guestfs-actions.pod:7327
34268 msgid "guestfs_swapoff_label"
34272 #: ../src/guestfs-actions.pod:7329
34276 " guestfs_swapoff_label (guestfs_h *g,\n"
34277 " const char *label);\n"
34282 #: ../src/guestfs-actions.pod:7340
34283 msgid "guestfs_swapoff_uuid"
34287 #: ../src/guestfs-actions.pod:7342
34291 " guestfs_swapoff_uuid (guestfs_h *g,\n"
34292 " const char *uuid);\n"
34297 #: ../src/guestfs-actions.pod:7353
34298 msgid "guestfs_swapon_device"
34302 #: ../src/guestfs-actions.pod:7355
34306 " guestfs_swapon_device (guestfs_h *g,\n"
34307 " const char *device);\n"
34312 #: ../src/guestfs-actions.pod:7359
34314 "This command enables the libguestfs appliance to use the swap device or "
34315 "partition named C<device>. The increased memory is made available for all "
34316 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
34320 #: ../src/guestfs-actions.pod:7375
34321 msgid "guestfs_swapon_file"
34325 #: ../src/guestfs-actions.pod:7377
34329 " guestfs_swapon_file (guestfs_h *g,\n"
34330 " const char *file);\n"
34335 #: ../src/guestfs-actions.pod:7381
34337 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
34342 #: ../src/guestfs-actions.pod:7388
34343 msgid "guestfs_swapon_label"
34347 #: ../src/guestfs-actions.pod:7390
34351 " guestfs_swapon_label (guestfs_h *g,\n"
34352 " const char *label);\n"
34357 #: ../src/guestfs-actions.pod:7394
34359 "This command enables swap to a labeled swap partition. See "
34360 "C<guestfs_swapon_device> for other notes."
34364 #: ../src/guestfs-actions.pod:7401
34365 msgid "guestfs_swapon_uuid"
34369 #: ../src/guestfs-actions.pod:7403
34373 " guestfs_swapon_uuid (guestfs_h *g,\n"
34374 " const char *uuid);\n"
34379 #: ../src/guestfs-actions.pod:7407
34381 "This command enables swap to a swap partition with the given UUID. See "
34382 "C<guestfs_swapon_device> for other notes."
34386 #: ../src/guestfs-actions.pod:7414
34387 msgid "guestfs_sync"
34391 #: ../src/guestfs-actions.pod:7416
34395 " guestfs_sync (guestfs_h *g);\n"
34400 #: ../src/guestfs-actions.pod:7429
34401 msgid "guestfs_tail"
34405 #: ../src/guestfs-actions.pod:7431
34409 " guestfs_tail (guestfs_h *g,\n"
34410 " const char *path);\n"
34415 #: ../src/guestfs-actions.pod:7447
34416 msgid "guestfs_tail_n"
34420 #: ../src/guestfs-actions.pod:7449
34424 " guestfs_tail_n (guestfs_h *g,\n"
34426 " const char *path);\n"
34431 #: ../src/guestfs-actions.pod:7471
34432 msgid "guestfs_tar_in"
34436 #: ../src/guestfs-actions.pod:7473
34440 " guestfs_tar_in (guestfs_h *g,\n"
34441 " const char *tarfile,\n"
34442 " const char *directory);\n"
34447 #: ../src/guestfs-actions.pod:7481
34449 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34453 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
34454 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
34455 msgid "(Added in 1.0.3)"
34456 msgstr "(Додано у 1.0.3)"
34459 #: ../src/guestfs-actions.pod:7488
34460 msgid "guestfs_tar_out"
34464 #: ../src/guestfs-actions.pod:7490
34468 " guestfs_tar_out (guestfs_h *g,\n"
34469 " const char *directory,\n"
34470 " const char *tarfile);\n"
34475 #: ../src/guestfs-actions.pod:7498
34477 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34478 "C<guestfs_txz_out>."
34482 #: ../src/guestfs-actions.pod:7505
34483 msgid "guestfs_tgz_in"
34487 #: ../src/guestfs-actions.pod:7507
34491 " guestfs_tgz_in (guestfs_h *g,\n"
34492 " const char *tarball,\n"
34493 " const char *directory);\n"
34498 #: ../src/guestfs-actions.pod:7515
34499 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34503 #: ../src/guestfs-actions.pod:7521
34504 msgid "guestfs_tgz_out"
34508 #: ../src/guestfs-actions.pod:7523
34512 " guestfs_tgz_out (guestfs_h *g,\n"
34513 " const char *directory,\n"
34514 " const char *tarball);\n"
34519 #: ../src/guestfs-actions.pod:7531
34520 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34524 #: ../src/guestfs-actions.pod:7537
34525 msgid "guestfs_touch"
34529 #: ../src/guestfs-actions.pod:7539
34533 " guestfs_touch (guestfs_h *g,\n"
34534 " const char *path);\n"
34539 #: ../src/guestfs-actions.pod:7554
34540 msgid "guestfs_truncate"
34544 #: ../src/guestfs-actions.pod:7556
34548 " guestfs_truncate (guestfs_h *g,\n"
34549 " const char *path);\n"
34554 #: ../src/guestfs-actions.pod:7567
34555 msgid "guestfs_truncate_size"
34559 #: ../src/guestfs-actions.pod:7569
34563 " guestfs_truncate_size (guestfs_h *g,\n"
34564 " const char *path,\n"
34565 " int64_t size);\n"
34570 #: ../src/guestfs-actions.pod:7577
34572 "If the current file size is less than C<size> then the file is extended to "
34573 "the required size with zero bytes. This creates a sparse file (ie. disk "
34574 "blocks are not allocated for the file until you write to it). To create a "
34575 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34579 #: ../src/guestfs-actions.pod:7587
34580 msgid "guestfs_tune2fs_l"
34584 #: ../src/guestfs-actions.pod:7589
34588 " guestfs_tune2fs_l (guestfs_h *g,\n"
34589 " const char *device);\n"
34594 #: ../src/guestfs-actions.pod:7609
34595 msgid "guestfs_txz_in"
34599 #: ../src/guestfs-actions.pod:7611
34603 " guestfs_txz_in (guestfs_h *g,\n"
34604 " const char *tarball,\n"
34605 " const char *directory);\n"
34610 #: ../src/guestfs-actions.pod:7623
34611 msgid "guestfs_txz_out"
34615 #: ../src/guestfs-actions.pod:7625
34619 " guestfs_txz_out (guestfs_h *g,\n"
34620 " const char *directory,\n"
34621 " const char *tarball);\n"
34626 #: ../src/guestfs-actions.pod:7637
34627 msgid "guestfs_umask"
34631 #: ../src/guestfs-actions.pod:7639
34635 " guestfs_umask (guestfs_h *g,\n"
34641 #: ../src/guestfs-actions.pod:7655
34643 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34644 "C<guestfs_mkdir>."
34648 #: ../src/guestfs-actions.pod:7664
34649 msgid "guestfs_umount"
34653 #: ../src/guestfs-actions.pod:7666
34657 " guestfs_umount (guestfs_h *g,\n"
34658 " const char *pathordevice);\n"
34663 #: ../src/guestfs-actions.pod:7678
34664 msgid "guestfs_umount_all"
34668 #: ../src/guestfs-actions.pod:7680
34672 " guestfs_umount_all (guestfs_h *g);\n"
34677 #: ../src/guestfs-actions.pod:7691
34678 msgid "guestfs_upload"
34682 #: ../src/guestfs-actions.pod:7693
34686 " guestfs_upload (guestfs_h *g,\n"
34687 " const char *filename,\n"
34688 " const char *remotefilename);\n"
34693 #: ../src/guestfs-actions.pod:7703
34694 msgid "See also C<guestfs_download>."
34698 #: ../src/guestfs-actions.pod:7714
34699 msgid "guestfs_upload_offset"
34703 #: ../src/guestfs-actions.pod:7716
34707 " guestfs_upload_offset (guestfs_h *g,\n"
34708 " const char *filename,\n"
34709 " const char *remotefilename,\n"
34710 " int64_t offset);\n"
34715 #: ../src/guestfs-actions.pod:7732
34717 "Note that there is no limit on the amount of data that can be uploaded with "
34718 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34719 "full amount unless an error occurs."
34723 #: ../src/guestfs-actions.pod:7737
34724 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34728 #: ../src/guestfs-actions.pod:7748
34729 msgid "guestfs_utimens"
34733 #: ../src/guestfs-actions.pod:7750
34737 " guestfs_utimens (guestfs_h *g,\n"
34738 " const char *path,\n"
34739 " int64_t atsecs,\n"
34740 " int64_t atnsecs,\n"
34741 " int64_t mtsecs,\n"
34742 " int64_t mtnsecs);\n"
34747 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
34748 msgid "guestfs_version"
34752 #: ../src/guestfs-actions.pod:7781
34755 " struct guestfs_version *\n"
34756 " guestfs_version (guestfs_h *g);\n"
34761 #: ../src/guestfs-actions.pod:7809
34763 "I<Note:> Don't use this call to test for availability of features. In "
34764 "enterprise distributions we backport features from later versions into "
34765 "earlier versions, making this an unreliable way to test for features. Use "
34766 "C<guestfs_available> instead."
34770 #: ../src/guestfs-actions.pod:7815
34772 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34773 "error. I<The caller must call C<guestfs_free_version> after use>."
34777 #: ../src/guestfs-actions.pod:7819
34778 msgid "(Added in 1.0.58)"
34779 msgstr "(Додано у 1.0.58)"
34782 #: ../src/guestfs-actions.pod:7821
34783 msgid "guestfs_vfs_label"
34787 #: ../src/guestfs-actions.pod:7823
34791 " guestfs_vfs_label (guestfs_h *g,\n"
34792 " const char *device);\n"
34797 #: ../src/guestfs-actions.pod:7832
34798 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34802 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
34803 msgid "(Added in 1.3.18)"
34804 msgstr "(Додано у 1.3.18)"
34807 #: ../src/guestfs-actions.pod:7839
34808 msgid "guestfs_vfs_type"
34812 #: ../src/guestfs-actions.pod:7841
34816 " guestfs_vfs_type (guestfs_h *g,\n"
34817 " const char *device);\n"
34822 #: ../src/guestfs-actions.pod:7858
34823 msgid "guestfs_vfs_uuid"
34827 #: ../src/guestfs-actions.pod:7860
34831 " guestfs_vfs_uuid (guestfs_h *g,\n"
34832 " const char *device);\n"
34837 #: ../src/guestfs-actions.pod:7869
34838 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34842 #: ../src/guestfs-actions.pod:7876
34843 msgid "guestfs_vg_activate"
34847 #: ../src/guestfs-actions.pod:7878
34851 " guestfs_vg_activate (guestfs_h *g,\n"
34853 " char *const *volgroups);\n"
34858 #: ../src/guestfs-actions.pod:7895
34859 msgid "guestfs_vg_activate_all"
34863 #: ../src/guestfs-actions.pod:7897
34867 " guestfs_vg_activate_all (guestfs_h *g,\n"
34868 " int activate);\n"
34873 #: ../src/guestfs-actions.pod:7910
34874 msgid "guestfs_vgcreate"
34878 #: ../src/guestfs-actions.pod:7912
34882 " guestfs_vgcreate (guestfs_h *g,\n"
34883 " const char *volgroup,\n"
34884 " char *const *physvols);\n"
34889 #: ../src/guestfs-actions.pod:7924
34890 msgid "guestfs_vglvuuids"
34894 #: ../src/guestfs-actions.pod:7926
34898 " guestfs_vglvuuids (guestfs_h *g,\n"
34899 " const char *vgname);\n"
34904 #: ../src/guestfs-actions.pod:7933
34906 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34907 "associate logical volumes and volume groups."
34911 #: ../src/guestfs-actions.pod:7936
34912 msgid "See also C<guestfs_vgpvuuids>."
34916 #: ../src/guestfs-actions.pod:7944
34917 msgid "guestfs_vgpvuuids"
34921 #: ../src/guestfs-actions.pod:7946
34925 " guestfs_vgpvuuids (guestfs_h *g,\n"
34926 " const char *vgname);\n"
34931 #: ../src/guestfs-actions.pod:7953
34933 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34934 "associate physical volumes and volume groups."
34938 #: ../src/guestfs-actions.pod:7956
34939 msgid "See also C<guestfs_vglvuuids>."
34943 #: ../src/guestfs-actions.pod:7964
34944 msgid "guestfs_vgremove"
34948 #: ../src/guestfs-actions.pod:7966
34952 " guestfs_vgremove (guestfs_h *g,\n"
34953 " const char *vgname);\n"
34958 #: ../src/guestfs-actions.pod:7979
34959 msgid "guestfs_vgrename"
34963 #: ../src/guestfs-actions.pod:7981
34967 " guestfs_vgrename (guestfs_h *g,\n"
34968 " const char *volgroup,\n"
34969 " const char *newvolgroup);\n"
34974 #: ../src/guestfs-actions.pod:7992
34975 msgid "guestfs_vgs"
34979 #: ../src/guestfs-actions.pod:7994
34983 " guestfs_vgs (guestfs_h *g);\n"
34988 #: ../src/guestfs-actions.pod:8003
34989 msgid "See also C<guestfs_vgs_full>."
34993 #: ../src/guestfs-actions.pod:8011
34994 msgid "guestfs_vgs_full"
34998 #: ../src/guestfs-actions.pod:8013
35001 " struct guestfs_lvm_vg_list *\n"
35002 " guestfs_vgs_full (guestfs_h *g);\n"
35007 #: ../src/guestfs-actions.pod:8019
35009 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35010 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35014 #: ../src/guestfs-actions.pod:8025
35015 msgid "guestfs_vgscan"
35019 #: ../src/guestfs-actions.pod:8027
35023 " guestfs_vgscan (guestfs_h *g);\n"
35028 #: ../src/guestfs-actions.pod:8037
35029 msgid "guestfs_vguuid"
35033 #: ../src/guestfs-actions.pod:8039
35037 " guestfs_vguuid (guestfs_h *g,\n"
35038 " const char *vgname);\n"
35043 #: ../src/guestfs-actions.pod:8050
35044 msgid "guestfs_wait_ready"
35048 #: ../src/guestfs-actions.pod:8052
35052 " guestfs_wait_ready (guestfs_h *g);\n"
35057 #: ../src/guestfs-actions.pod:8055
35059 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35064 #: ../src/guestfs-actions.pod:8062
35065 msgid "This function is a no op."
35069 #: ../src/guestfs-actions.pod:8064
35071 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35072 "calling C<guestfs_launch> to wait for the launch to complete. However this "
35073 "is no longer necessary because C<guestfs_launch> now does the waiting."
35077 #: ../src/guestfs-actions.pod:8069
35079 "If you see any calls to this function in code then you can just remove them, "
35080 "unless you want to retain compatibility with older versions of the API."
35084 #: ../src/guestfs-actions.pod:8077
35085 msgid "guestfs_wc_c"
35089 #: ../src/guestfs-actions.pod:8079
35093 " guestfs_wc_c (guestfs_h *g,\n"
35094 " const char *path);\n"
35099 #: ../src/guestfs-actions.pod:8090
35100 msgid "guestfs_wc_l"
35104 #: ../src/guestfs-actions.pod:8092
35108 " guestfs_wc_l (guestfs_h *g,\n"
35109 " const char *path);\n"
35114 #: ../src/guestfs-actions.pod:8103
35115 msgid "guestfs_wc_w"
35119 #: ../src/guestfs-actions.pod:8105
35123 " guestfs_wc_w (guestfs_h *g,\n"
35124 " const char *path);\n"
35129 #: ../src/guestfs-actions.pod:8116
35130 msgid "guestfs_write"
35134 #: ../src/guestfs-actions.pod:8118
35138 " guestfs_write (guestfs_h *g,\n"
35139 " const char *path,\n"
35140 " const char *content,\n"
35141 " size_t content_size);\n"
35146 #: ../src/guestfs-actions.pod:8127
35147 msgid "See also C<guestfs_write_append>."
35151 #: ../src/guestfs-actions.pod:8136
35152 msgid "guestfs_write_append"
35156 #: ../src/guestfs-actions.pod:8138
35160 " guestfs_write_append (guestfs_h *g,\n"
35161 " const char *path,\n"
35162 " const char *content,\n"
35163 " size_t content_size);\n"
35168 #: ../src/guestfs-actions.pod:8147
35169 msgid "See also C<guestfs_write>."
35173 #: ../src/guestfs-actions.pod:8156
35174 msgid "guestfs_write_file"
35175 msgstr "guestfs_write_file"
35178 #: ../src/guestfs-actions.pod:8158
35182 " guestfs_write_file (guestfs_h *g,\n"
35183 " const char *path,\n"
35184 " const char *content,\n"
35189 " guestfs_write_file (guestfs_h *g,\n"
35190 " const char *path,\n"
35191 " const char *content,\n"
35196 #: ../src/guestfs-actions.pod:8164
35198 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
35203 #: ../src/guestfs-actions.pod:8189
35204 msgid "guestfs_zegrep"
35205 msgstr "guestfs_zegrep"
35208 #: ../src/guestfs-actions.pod:8191
35212 " guestfs_zegrep (guestfs_h *g,\n"
35213 " const char *regex,\n"
35214 " const char *path);\n"
35218 " guestfs_zegrep (guestfs_h *g,\n"
35219 " const char *regex,\n"
35220 " const char *path);\n"
35224 #: ../src/guestfs-actions.pod:8208
35225 msgid "guestfs_zegrepi"
35226 msgstr "guestfs_zegrepi"
35229 #: ../src/guestfs-actions.pod:8210
35233 " guestfs_zegrepi (guestfs_h *g,\n"
35234 " const char *regex,\n"
35235 " const char *path);\n"
35239 " guestfs_zegrepi (guestfs_h *g,\n"
35240 " const char *regex,\n"
35241 " const char *path);\n"
35245 #: ../src/guestfs-actions.pod:8227
35246 msgid "guestfs_zero"
35247 msgstr "guestfs_zero"
35250 #: ../src/guestfs-actions.pod:8229
35254 " guestfs_zero (guestfs_h *g,\n"
35255 " const char *device);\n"
35259 " guestfs_zero (guestfs_h *g,\n"
35260 " const char *device);\n"
35264 #: ../src/guestfs-actions.pod:8243
35266 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35267 "C<guestfs_is_zero_device>"
35271 #: ../src/guestfs-actions.pod:8255
35272 msgid "guestfs_zero_device"
35273 msgstr "guestfs_zero_device"
35276 #: ../src/guestfs-actions.pod:8257
35280 " guestfs_zero_device (guestfs_h *g,\n"
35281 " const char *device);\n"
35285 " guestfs_zero_device (guestfs_h *g,\n"
35286 " const char *device);\n"
35290 #: ../src/guestfs-actions.pod:8261
35292 "This command writes zeroes over the entire C<device>. Compare with "
35293 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35297 #: ../src/guestfs-actions.pod:8276
35298 msgid "(Added in 1.3.1)"
35299 msgstr "(Додано у 1.3.1)"
35302 #: ../src/guestfs-actions.pod:8278
35303 msgid "guestfs_zerofree"
35304 msgstr "guestfs_zerofree"
35307 #: ../src/guestfs-actions.pod:8280
35311 " guestfs_zerofree (guestfs_h *g,\n"
35312 " const char *device);\n"
35316 " guestfs_zerofree (guestfs_h *g,\n"
35317 " const char *device);\n"
35321 #: ../src/guestfs-actions.pod:8299
35322 msgid "guestfs_zfgrep"
35323 msgstr "guestfs_zfgrep"
35326 #: ../src/guestfs-actions.pod:8301
35330 " guestfs_zfgrep (guestfs_h *g,\n"
35331 " const char *pattern,\n"
35332 " const char *path);\n"
35336 " guestfs_zfgrep (guestfs_h *g,\n"
35337 " const char *pattern,\n"
35338 " const char *path);\n"
35342 #: ../src/guestfs-actions.pod:8318
35343 msgid "guestfs_zfgrepi"
35344 msgstr "guestfs_zfgrepi"
35347 #: ../src/guestfs-actions.pod:8320
35351 " guestfs_zfgrepi (guestfs_h *g,\n"
35352 " const char *pattern,\n"
35353 " const char *path);\n"
35357 " guestfs_zfgrepi (guestfs_h *g,\n"
35358 " const char *pattern,\n"
35359 " const char *path);\n"
35363 #: ../src/guestfs-actions.pod:8337
35364 msgid "guestfs_zfile"
35365 msgstr "guestfs_zfile"
35368 #: ../src/guestfs-actions.pod:8339
35372 " guestfs_zfile (guestfs_h *g,\n"
35373 " const char *meth,\n"
35374 " const char *path);\n"
35378 " guestfs_zfile (guestfs_h *g,\n"
35379 " const char *meth,\n"
35380 " const char *path);\n"
35384 #: ../src/guestfs-actions.pod:8344
35386 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35391 #: ../src/guestfs-actions.pod:8356
35393 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35398 #: ../src/guestfs-actions.pod:8364
35399 msgid "guestfs_zgrep"
35400 msgstr "guestfs_zgrep"
35403 #: ../src/guestfs-actions.pod:8366
35407 " guestfs_zgrep (guestfs_h *g,\n"
35408 " const char *regex,\n"
35409 " const char *path);\n"
35413 " guestfs_zgrep (guestfs_h *g,\n"
35414 " const char *regex,\n"
35415 " const char *path);\n"
35419 #: ../src/guestfs-actions.pod:8383
35420 msgid "guestfs_zgrepi"
35421 msgstr "guestfs_zgrepi"
35424 #: ../src/guestfs-actions.pod:8385
35428 " guestfs_zgrepi (guestfs_h *g,\n"
35429 " const char *regex,\n"
35430 " const char *path);\n"
35434 " guestfs_zgrepi (guestfs_h *g,\n"
35435 " const char *regex,\n"
35436 " const char *path);\n"
35440 #: ../src/guestfs-availability.pod:3
35445 #: ../src/guestfs-availability.pod:5
35447 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35448 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35449 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35450 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35451 "L</guestfs_aug_save> L</guestfs_aug_set>"
35455 #: ../src/guestfs-availability.pod:21
35460 #: ../src/guestfs-availability.pod:23
35461 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35465 #: ../src/guestfs-availability.pod:26
35470 #: ../src/guestfs-availability.pod:28
35471 msgid "The following functions: L</guestfs_grub_install>"
35475 #: ../src/guestfs-availability.pod:31
35477 msgstr "B<inotify>"
35480 #: ../src/guestfs-availability.pod:33
35482 "The following functions: L</guestfs_inotify_add_watch> L</"
35483 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35484 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35488 #: ../src/guestfs-availability.pod:41
35489 msgid "B<linuxfsuuid>"
35490 msgstr "B<linuxfsuuid>"
35493 #: ../src/guestfs-availability.pod:43
35495 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35496 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35500 #: ../src/guestfs-availability.pod:50
35501 msgid "B<linuxmodules>"
35502 msgstr "B<linuxmodules>"
35505 #: ../src/guestfs-availability.pod:52
35506 msgid "The following functions: L</guestfs_modprobe>"
35510 #: ../src/guestfs-availability.pod:55
35511 msgid "B<linuxxattrs>"
35512 msgstr "B<linuxxattrs>"
35515 #: ../src/guestfs-availability.pod:57
35517 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35518 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35519 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35520 "guestfs_setxattr>"
35524 #: ../src/guestfs-availability.pod:68
35529 #: ../src/guestfs-availability.pod:70
35531 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35532 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35533 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35537 #: ../src/guestfs-availability.pod:79
35542 #: ../src/guestfs-availability.pod:81
35544 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35545 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35546 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35547 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35548 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35549 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35550 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35554 #: ../src/guestfs-availability.pod:104
35559 #: ../src/guestfs-availability.pod:106
35561 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35562 "guestfs_mknod_b> L</guestfs_mknod_c>"
35566 #: ../src/guestfs-availability.pod:112
35571 #: ../src/guestfs-availability.pod:114
35572 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35576 #: ../src/guestfs-availability.pod:117
35577 msgid "B<ntfsprogs>"
35578 msgstr "B<ntfsprogs>"
35581 #: ../src/guestfs-availability.pod:119
35583 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35584 "L</guestfs_ntfsresize_size>"
35588 #: ../src/guestfs-availability.pod:124
35589 msgid "B<realpath>"
35590 msgstr "B<realpath>"
35593 #: ../src/guestfs-availability.pod:126
35594 msgid "The following functions: L</guestfs_realpath>"
35598 #: ../src/guestfs-availability.pod:129
35603 #: ../src/guestfs-availability.pod:131
35605 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35606 "guestfs_scrub_freespace>"
35610 #: ../src/guestfs-availability.pod:136
35612 msgstr "B<selinux>"
35615 #: ../src/guestfs-availability.pod:138
35616 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35620 #: ../src/guestfs-availability.pod:142
35625 #: ../src/guestfs-availability.pod:144
35626 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35630 #: ../src/guestfs-availability.pod:148
35631 msgid "B<zerofree>"
35632 msgstr "B<zerofree>"
35635 #: ../src/guestfs-availability.pod:150
35636 msgid "The following functions: L</guestfs_zerofree>"
35640 #: ../src/guestfs-structs.pod:1
35641 msgid "guestfs_int_bool"
35645 #: ../src/guestfs-structs.pod:3
35648 " struct guestfs_int_bool {\n"
35656 #: ../src/guestfs-structs.pod:8
35659 " struct guestfs_int_bool_list {\n"
35660 " uint32_t len; /* Number of elements in list. */\n"
35661 " struct guestfs_int_bool *val; /* Elements. */\n"
35667 #: ../src/guestfs-structs.pod:13
35670 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35671 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35676 #: ../src/guestfs-structs.pod:16
35677 msgid "guestfs_lvm_pv"
35681 #: ../src/guestfs-structs.pod:18
35684 " struct guestfs_lvm_pv {\n"
35685 " char *pv_name;\n"
35686 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35687 " char pv_uuid[32];\n"
35689 " uint64_t pv_size;\n"
35690 " uint64_t dev_size;\n"
35691 " uint64_t pv_free;\n"
35692 " uint64_t pv_used;\n"
35693 " char *pv_attr;\n"
35694 " int64_t pv_pe_count;\n"
35695 " int64_t pv_pe_alloc_count;\n"
35696 " char *pv_tags;\n"
35697 " uint64_t pe_start;\n"
35698 " int64_t pv_mda_count;\n"
35699 " uint64_t pv_mda_free;\n"
35705 #: ../src/guestfs-structs.pod:36
35708 " struct guestfs_lvm_pv_list {\n"
35709 " uint32_t len; /* Number of elements in list. */\n"
35710 " struct guestfs_lvm_pv *val; /* Elements. */\n"
35716 #: ../src/guestfs-structs.pod:41
35719 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35720 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35725 #: ../src/guestfs-structs.pod:44
35726 msgid "guestfs_lvm_vg"
35730 #: ../src/guestfs-structs.pod:46
35733 " struct guestfs_lvm_vg {\n"
35734 " char *vg_name;\n"
35735 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35736 " char vg_uuid[32];\n"
35738 " char *vg_attr;\n"
35739 " uint64_t vg_size;\n"
35740 " uint64_t vg_free;\n"
35741 " char *vg_sysid;\n"
35742 " uint64_t vg_extent_size;\n"
35743 " int64_t vg_extent_count;\n"
35744 " int64_t vg_free_count;\n"
35745 " int64_t max_lv;\n"
35746 " int64_t max_pv;\n"
35747 " int64_t pv_count;\n"
35748 " int64_t lv_count;\n"
35749 " int64_t snap_count;\n"
35750 " int64_t vg_seqno;\n"
35751 " char *vg_tags;\n"
35752 " int64_t vg_mda_count;\n"
35753 " uint64_t vg_mda_free;\n"
35759 #: ../src/guestfs-structs.pod:69
35762 " struct guestfs_lvm_vg_list {\n"
35763 " uint32_t len; /* Number of elements in list. */\n"
35764 " struct guestfs_lvm_vg *val; /* Elements. */\n"
35770 #: ../src/guestfs-structs.pod:74
35773 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35774 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35779 #: ../src/guestfs-structs.pod:77
35780 msgid "guestfs_lvm_lv"
35784 #: ../src/guestfs-structs.pod:79
35787 " struct guestfs_lvm_lv {\n"
35788 " char *lv_name;\n"
35789 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35790 " char lv_uuid[32];\n"
35791 " char *lv_attr;\n"
35792 " int64_t lv_major;\n"
35793 " int64_t lv_minor;\n"
35794 " int64_t lv_kernel_major;\n"
35795 " int64_t lv_kernel_minor;\n"
35796 " uint64_t lv_size;\n"
35797 " int64_t seg_count;\n"
35799 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35800 " float snap_percent;\n"
35801 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35802 " float copy_percent;\n"
35803 " char *move_pv;\n"
35804 " char *lv_tags;\n"
35805 " char *mirror_log;\n"
35806 " char *modules;\n"
35812 #: ../src/guestfs-structs.pod:101
35815 " struct guestfs_lvm_lv_list {\n"
35816 " uint32_t len; /* Number of elements in list. */\n"
35817 " struct guestfs_lvm_lv *val; /* Elements. */\n"
35823 #: ../src/guestfs-structs.pod:106
35826 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35827 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35832 #: ../src/guestfs-structs.pod:111
35835 " struct guestfs_stat {\n"
35839 " int64_t nlink;\n"
35844 " int64_t blksize;\n"
35845 " int64_t blocks;\n"
35846 " int64_t atime;\n"
35847 " int64_t mtime;\n"
35848 " int64_t ctime;\n"
35854 #: ../src/guestfs-structs.pod:127
35857 " struct guestfs_stat_list {\n"
35858 " uint32_t len; /* Number of elements in list. */\n"
35859 " struct guestfs_stat *val; /* Elements. */\n"
35865 #: ../src/guestfs-structs.pod:132
35868 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35869 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35874 #: ../src/guestfs-structs.pod:137
35877 " struct guestfs_statvfs {\n"
35878 " int64_t bsize;\n"
35879 " int64_t frsize;\n"
35880 " int64_t blocks;\n"
35881 " int64_t bfree;\n"
35882 " int64_t bavail;\n"
35883 " int64_t files;\n"
35884 " int64_t ffree;\n"
35885 " int64_t favail;\n"
35888 " int64_t namemax;\n"
35894 #: ../src/guestfs-structs.pod:151
35897 " struct guestfs_statvfs_list {\n"
35898 " uint32_t len; /* Number of elements in list. */\n"
35899 " struct guestfs_statvfs *val; /* Elements. */\n"
35905 #: ../src/guestfs-structs.pod:156
35908 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35909 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35914 #: ../src/guestfs-structs.pod:159
35915 msgid "guestfs_dirent"
35919 #: ../src/guestfs-structs.pod:161
35922 " struct guestfs_dirent {\n"
35931 #: ../src/guestfs-structs.pod:167
35934 " struct guestfs_dirent_list {\n"
35935 " uint32_t len; /* Number of elements in list. */\n"
35936 " struct guestfs_dirent *val; /* Elements. */\n"
35942 #: ../src/guestfs-structs.pod:172
35945 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35946 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35951 #: ../src/guestfs-structs.pod:177
35954 " struct guestfs_version {\n"
35955 " int64_t major;\n"
35956 " int64_t minor;\n"
35957 " int64_t release;\n"
35964 #: ../src/guestfs-structs.pod:184
35967 " struct guestfs_version_list {\n"
35968 " uint32_t len; /* Number of elements in list. */\n"
35969 " struct guestfs_version *val; /* Elements. */\n"
35975 #: ../src/guestfs-structs.pod:189
35978 " void guestfs_free_version (struct guestfs_free_version *);\n"
35979 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35984 #: ../src/guestfs-structs.pod:192
35985 msgid "guestfs_xattr"
35989 #: ../src/guestfs-structs.pod:194
35992 " struct guestfs_xattr {\n"
35993 " char *attrname;\n"
35994 " /* The next two fields describe a byte array. */\n"
35995 " uint32_t attrval_len;\n"
35996 " char *attrval;\n"
36002 #: ../src/guestfs-structs.pod:201
36005 " struct guestfs_xattr_list {\n"
36006 " uint32_t len; /* Number of elements in list. */\n"
36007 " struct guestfs_xattr *val; /* Elements. */\n"
36013 #: ../src/guestfs-structs.pod:206
36016 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36017 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36022 #: ../src/guestfs-structs.pod:209
36023 msgid "guestfs_inotify_event"
36027 #: ../src/guestfs-structs.pod:211
36030 " struct guestfs_inotify_event {\n"
36031 " int64_t in_wd;\n"
36032 " uint32_t in_mask;\n"
36033 " uint32_t in_cookie;\n"
36034 " char *in_name;\n"
36040 #: ../src/guestfs-structs.pod:218
36043 " struct guestfs_inotify_event_list {\n"
36044 " uint32_t len; /* Number of elements in list. */\n"
36045 " struct guestfs_inotify_event *val; /* Elements. */\n"
36051 #: ../src/guestfs-structs.pod:223
36054 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36055 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36060 #: ../src/guestfs-structs.pod:226
36061 msgid "guestfs_partition"
36065 #: ../src/guestfs-structs.pod:228
36068 " struct guestfs_partition {\n"
36069 " int32_t part_num;\n"
36070 " uint64_t part_start;\n"
36071 " uint64_t part_end;\n"
36072 " uint64_t part_size;\n"
36078 #: ../src/guestfs-structs.pod:235
36081 " struct guestfs_partition_list {\n"
36082 " uint32_t len; /* Number of elements in list. */\n"
36083 " struct guestfs_partition *val; /* Elements. */\n"
36089 #: ../src/guestfs-structs.pod:240
36092 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
36093 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
36098 #: ../src/guestfs-structs.pod:243
36099 msgid "guestfs_application"
36103 #: ../src/guestfs-structs.pod:245
36106 " struct guestfs_application {\n"
36107 " char *app_name;\n"
36108 " char *app_display_name;\n"
36109 " int32_t app_epoch;\n"
36110 " char *app_version;\n"
36111 " char *app_release;\n"
36112 " char *app_install_path;\n"
36113 " char *app_trans_path;\n"
36114 " char *app_publisher;\n"
36115 " char *app_url;\n"
36116 " char *app_source_package;\n"
36117 " char *app_summary;\n"
36118 " char *app_description;\n"
36124 #: ../src/guestfs-structs.pod:260
36127 " struct guestfs_application_list {\n"
36128 " uint32_t len; /* Number of elements in list. */\n"
36129 " struct guestfs_application *val; /* Elements. */\n"
36135 #: ../src/guestfs-structs.pod:265
36138 " void guestfs_free_application (struct guestfs_free_application *);\n"
36139 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
36144 #: ../src/guestfs.pod:5
36145 msgid "guestfs - Library for accessing and modifying virtual machine images"
36147 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
36151 #: ../src/guestfs.pod:11
36154 " guestfs_h *g = guestfs_create ();\n"
36155 " guestfs_add_drive (g, \"guest.img\");\n"
36156 " guestfs_launch (g);\n"
36157 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36158 " guestfs_touch (g, \"/hello\");\n"
36159 " guestfs_umount (g, \"/\");\n"
36160 " guestfs_close (g);\n"
36163 " guestfs_h *g = guestfs_create ();\n"
36164 " guestfs_add_drive (g, \"guest.img\");\n"
36165 " guestfs_launch (g);\n"
36166 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36167 " guestfs_touch (g, \"/hello\");\n"
36168 " guestfs_umount (g, \"/\");\n"
36169 " guestfs_close (g);\n"
36173 #: ../src/guestfs.pod:25
36175 "Libguestfs is a library for accessing and modifying guest disk images. "
36176 "Amongst the things this is good for: making batch configuration changes to "
36177 "guests, getting disk used/free statistics (see also: virt-df), migrating "
36178 "between virtualization systems (see also: virt-p2v), performing partial "
36179 "backups, performing partial guest clones, cloning guests and changing "
36180 "registry/UUID/hostname info, and much else besides."
36184 #: ../src/guestfs.pod:33
36186 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
36187 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
36188 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
36193 #: ../src/guestfs.pod:38
36195 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
36196 "what filesystem is in each LV, etc.). It can also run commands in the "
36197 "context of the guest. Also you can access filesystems over FUSE."
36201 #: ../src/guestfs.pod:43
36203 "Libguestfs is a library that can be linked with C and C++ management "
36204 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
36205 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
36210 #: ../src/guestfs.pod:48
36212 "You don't need to be root to use libguestfs, although obviously you do need "
36213 "enough permissions to access the disk images."
36217 #: ../src/guestfs.pod:51
36219 "Libguestfs is a large API because it can do many things. For a gentle "
36220 "introduction, please read the L</API OVERVIEW> section next."
36224 #: ../src/guestfs.pod:54
36226 "There are also some example programs in the L<guestfs-examples(3)> manual "
36231 #: ../src/guestfs.pod:57
36232 msgid "API OVERVIEW"
36236 #: ../src/guestfs.pod:59
36238 "This section provides a gentler overview of the libguestfs API. We also try "
36239 "to group API calls together, where that may not be obvious from reading "
36240 "about the individual calls in the main section of this manual."
36244 #: ../src/guestfs.pod:64
36249 #: ../src/guestfs.pod:66
36251 "Before you can use libguestfs calls, you have to create a handle. Then you "
36252 "must add at least one disk image to the handle, followed by launching the "
36253 "handle, then performing whatever operations you want, and finally closing "
36254 "the handle. By convention we use the single letter C<g> for the name of the "
36255 "handle variable, although of course you can use any name you want."
36259 #: ../src/guestfs.pod:73
36260 msgid "The general structure of all libguestfs-using programs looks like this:"
36264 #: ../src/guestfs.pod:76
36267 " guestfs_h *g = guestfs_create ();\n"
36270 " guestfs_h *g = guestfs_create ();\n"
36274 #: ../src/guestfs.pod:78
36277 " /* Call guestfs_add_drive additional times if there are\n"
36278 " * multiple disk images.\n"
36280 " guestfs_add_drive (g, \"guest.img\");\n"
36285 #: ../src/guestfs.pod:83
36288 " /* Most manipulation calls won't work until you've launched\n"
36289 " * the handle 'g'. You have to do this _after_ adding drives\n"
36290 " * and _before_ other commands.\n"
36292 " guestfs_launch (g);\n"
36297 #: ../src/guestfs.pod:89
36300 " /* Now you can examine what partitions, LVs etc are available.\n"
36302 " char **partitions = guestfs_list_partitions (g);\n"
36303 " char **logvols = guestfs_lvs (g);\n"
36306 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
36308 " char **partitions = guestfs_list_partitions (g);\n"
36309 " char **logvols = guestfs_lvs (g);\n"
36313 #: ../src/guestfs.pod:94
36316 " /* To access a filesystem in the image, you must mount it.\n"
36318 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36321 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
36323 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36327 #: ../src/guestfs.pod:98
36330 " /* Now you can perform filesystem actions on the guest\n"
36333 " guestfs_touch (g, \"/hello\");\n"
36336 " /* Тепер ви можете виконувати дії з файловою системою на\n"
36337 " * образі диска операційної системи.\n"
36339 " guestfs_touch (g, \"/hello\");\n"
36343 #: ../src/guestfs.pod:103
36346 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
36347 " * it is done automatically when you close the handle. See\n"
36348 " * discussion of autosync in this page.\n"
36350 " guestfs_sync (g);\n"
36355 #: ../src/guestfs.pod:109
36358 " /* Close the handle 'g'. */\n"
36359 " guestfs_close (g);\n"
36362 " /* Закрити дескриптор 'g'. */\n"
36363 " guestfs_close (g);\n"
36367 #: ../src/guestfs.pod:112
36369 "The code above doesn't include any error checking. In real code you should "
36370 "check return values carefully for errors. In general all functions that "
36371 "return integers return C<-1> on error, and all functions that return "
36372 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
36373 "how to handle errors, and consult the documentation for each function call "
36374 "below to see precisely how they return error indications. See L<guestfs-"
36375 "examples(3)> for fully worked examples."
36379 #: ../src/guestfs.pod:121
36380 msgid "DISK IMAGES"
36381 msgstr "ОБРАЗИ ДИСКІВ"
36384 #: ../src/guestfs.pod:123
36386 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36387 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36388 "actual block device, or simply an empty file of zeroes that you have created "
36389 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
36394 #: ../src/guestfs.pod:129
36396 "The call you should use in modern code for adding drives is L</"
36397 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
36398 "specifying that the format is raw, do:"
36402 #: ../src/guestfs.pod:133
36405 " guestfs_add_drive_opts (g, filename,\n"
36406 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36410 " guestfs_add_drive_opts (g, filename,\n"
36411 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36416 #: ../src/guestfs.pod:137
36417 msgid "You can add a disk read-only using:"
36418 msgstr "Ви можете додати диск у режимі лише читання:"
36421 #: ../src/guestfs.pod:139
36424 " guestfs_add_drive_opts (g, filename,\n"
36425 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36426 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36430 " guestfs_add_drive_opts (g, filename,\n"
36431 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36432 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36437 #: ../src/guestfs.pod:144
36439 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
36440 "libguestfs won't modify the file."
36444 #: ../src/guestfs.pod:147
36446 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36447 "by a virtual machine. Adding it read-write will almost certainly cause disk "
36448 "corruption, but adding it read-only is safe."
36452 #: ../src/guestfs.pod:151
36454 "You must add at least one disk image, and you may add multiple disk images. "
36455 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36456 "first one you added), C</dev/sdb> (for the second one you added), etc."
36460 #: ../src/guestfs.pod:156
36462 "Once L</guestfs_launch> has been called you cannot add any more images. You "
36463 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36464 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
36468 #: ../src/guestfs.pod:161
36470 msgstr "МОНТУВАННЯ"
36473 #: ../src/guestfs.pod:163
36475 "Before you can read or write files, create directories and so on in a disk "
36476 "image that contains filesystems, you have to mount those filesystems using "
36477 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
36478 "a disk image contains (for example) one partition with a filesystem on that "
36479 "partition, then you can mount it directly:"
36483 #: ../src/guestfs.pod:170
36486 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36489 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36493 #: ../src/guestfs.pod:172
36495 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36496 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
36497 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
36498 "that these are libguestfs virtual devices, and are nothing to do with host "
36503 #: ../src/guestfs.pod:178
36505 "If you are given a disk image and you don't know what it contains then you "
36506 "have to find out. Libguestfs can do that too: use L</"
36507 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36508 "LVs, and either try mounting each to see what is mountable, or else examine "
36509 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
36510 "filesystems, use L</guestfs_list_filesystems>."
36514 #: ../src/guestfs.pod:186
36516 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36517 "L</INSPECTION> below). But you might find it easier to look at higher level "
36518 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36522 #: ../src/guestfs.pod:191
36524 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
36525 "several other variations of the C<guestfs_mount_*> call."
36529 #: ../src/guestfs.pod:194
36530 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36531 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
36534 #: ../src/guestfs.pod:196
36536 "The majority of the libguestfs API consists of fairly low-level calls for "
36537 "accessing and modifying the files, directories, symlinks etc on mounted "
36538 "filesystems. There are over a hundred such calls which you can find listed "
36539 "in detail below in this man page, and we don't even pretend to cover them "
36540 "all in this overview."
36544 #: ../src/guestfs.pod:202
36546 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36549 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
36550 "точкою монтування."
36553 #: ../src/guestfs.pod:205
36555 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36556 "the file called C<\"etc/passwd\"> then you could do:"
36558 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
36559 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
36563 #: ../src/guestfs.pod:208
36566 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36569 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36573 #: ../src/guestfs.pod:210
36575 "This would return C<data> as a newly allocated buffer containing the full "
36576 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36577 "or C<NULL> if there was an error."
36581 #: ../src/guestfs.pod:214
36583 "As another example, to create a top-level directory on that filesystem "
36584 "called C<\"var\"> you would do:"
36588 #: ../src/guestfs.pod:217
36591 " guestfs_mkdir (g, \"/var\");\n"
36594 " guestfs_mkdir (g, \"/var\");\n"
36598 #: ../src/guestfs.pod:219
36599 msgid "To create a symlink you could do:"
36600 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
36603 #: ../src/guestfs.pod:221
36606 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36607 " \"/etc/rc3.d/S30portmap\");\n"
36610 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36611 " \"/etc/rc3.d/S30portmap\");\n"
36615 #: ../src/guestfs.pod:224
36617 "Libguestfs will reject attempts to use relative paths and there is no "
36618 "concept of a current working directory."
36622 #: ../src/guestfs.pod:227
36624 "Libguestfs can return errors in many situations: for example if the "
36625 "filesystem isn't writable, or if a file or directory that you requested "
36626 "doesn't exist. If you are using the C API (documented here) you have to "
36627 "check for those error conditions after each call. (Other language bindings "
36628 "turn these errors into exceptions)."
36632 #: ../src/guestfs.pod:233
36634 "File writes are affected by the per-handle umask, set by calling L</"
36635 "guestfs_umask> and defaulting to 022. See L</UMASK>."
36639 #: ../src/guestfs.pod:236
36640 msgid "PARTITIONING"
36641 msgstr "ПОДІЛ НА РОЗДІЛИ"
36644 #: ../src/guestfs.pod:238
36646 "Libguestfs contains API calls to read, create and modify partition tables on "
36651 #: ../src/guestfs.pod:241
36653 "In the common case where you want to create a single partition covering the "
36654 "whole disk, you should use the L</guestfs_part_disk> call:"
36658 #: ../src/guestfs.pod:245
36661 " const char *parttype = \"mbr\";\n"
36662 " if (disk_is_larger_than_2TB)\n"
36663 " parttype = \"gpt\";\n"
36664 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36667 " const char *parttype = \"mbr\";\n"
36668 " if (disk_is_larger_than_2TB)\n"
36669 " parttype = \"gpt\";\n"
36670 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36674 #: ../src/guestfs.pod:250
36676 "Obviously this effectively wipes anything that was on that disk image before."
36680 #: ../src/guestfs.pod:253
36685 #: ../src/guestfs.pod:255
36687 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36688 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
36689 "you familiarize yourself with the concepts of physical volumes, volume "
36690 "groups and logical volumes."
36694 #: ../src/guestfs.pod:260
36696 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36697 "tldp.org/HOWTO/LVM-HOWTO/>."
36701 #: ../src/guestfs.pod:263
36702 msgid "DOWNLOADING"
36703 msgstr "ОТРИМАННЯ ДАНИХ"
36706 #: ../src/guestfs.pod:265
36708 "Use L</guestfs_cat> to download small, text only files. This call is "
36709 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36710 "NUL (C<\\0>) characters. However the API is very simple to use."
36714 #: ../src/guestfs.pod:269
36716 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36717 "bit data, since it returns a (pointer, size) pair. However it is still "
36718 "limited to \"small\" files, less than 2 MB."
36722 #: ../src/guestfs.pod:273
36724 "L</guestfs_download> can be used to download any file, with no limits on "
36725 "content or size (even files larger than 4 GB)."
36729 #: ../src/guestfs.pod:276
36731 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36735 #: ../src/guestfs.pod:279
36737 msgstr "ВИВАНТАЖЕННЯ"
36740 #: ../src/guestfs.pod:281
36742 "It's often the case that you want to write a file or files to the disk image."
36746 #: ../src/guestfs.pod:284
36748 "To write a small file with fixed content, use L</guestfs_write>. To create "
36749 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36750 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
36751 "of other functions for creating test files, for example L</guestfs_fill> and "
36752 "L</guestfs_fill_pattern>."
36756 #: ../src/guestfs.pod:290
36758 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
36759 "file content or size (even files larger than 4 GB)."
36763 #: ../src/guestfs.pod:293
36765 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36769 #: ../src/guestfs.pod:295
36771 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36772 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36773 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
36774 "in a predictable way (eg. adding it last after all other drives) then you "
36775 "can get the device name from L</guestfs_list_devices> and mount it directly "
36776 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
36777 "portable between kernel versions, and they don't support labels or UUIDs. "
36778 "If you want to pre-build an image or you need to mount it using a label or "
36779 "UUID, use an ISO image instead."
36783 #: ../src/guestfs.pod:306
36785 msgstr "КОПІЮВАННЯ"
36788 #: ../src/guestfs.pod:308
36790 "There are various different commands for copying between files and devices "
36791 "and in and out of the guest filesystem. These are summarised in the table "
36796 #: ../src/guestfs.pod:314
36797 msgid "B<file> to B<file>"
36798 msgstr "B<файл> у B<файл>"
36801 #: ../src/guestfs.pod:316
36803 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36804 "directories recursively."
36808 #: ../src/guestfs.pod:319
36810 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36814 #: ../src/guestfs.pod:322
36815 msgid "B<file> to B<device>"
36819 #: ../src/guestfs.pod:324
36820 msgid "B<device> to B<file>"
36824 #: ../src/guestfs.pod:326
36825 msgid "B<device> to B<device>"
36829 #: ../src/guestfs.pod:328
36831 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36832 "guestfs_copy_device_to_device>."
36836 #: ../src/guestfs.pod:331
36837 msgid "Example: duplicate the contents of an LV:"
36841 #: ../src/guestfs.pod:333
36844 " guestfs_copy_device_to_device (g,\n"
36845 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36846 " /* -1 marks the end of the list of optional parameters */\n"
36852 #: ../src/guestfs.pod:338
36854 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36855 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
36856 "optional C<size> parameter:"
36860 #: ../src/guestfs.pod:342
36863 " guestfs_copy_device_to_device (g,\n"
36864 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36865 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36871 #: ../src/guestfs.pod:347
36872 msgid "B<file on the host> to B<file or device>"
36876 #: ../src/guestfs.pod:349
36877 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
36881 #: ../src/guestfs.pod:351
36882 msgid "B<file or device> to B<file on the host>"
36886 #: ../src/guestfs.pod:353
36887 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
36891 #: ../src/guestfs.pod:357
36892 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36896 #: ../src/guestfs.pod:359
36898 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36899 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36900 "appears you can only upload and download to files. However many Un*x-like "
36901 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36902 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36903 "and arbitrary file descriptor N."
36907 #: ../src/guestfs.pod:367
36908 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36912 #: ../src/guestfs.pod:370
36915 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36918 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36922 #: ../src/guestfs.pod:372
36923 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36927 #: ../src/guestfs.pod:374
36930 " char devfd[64];\n"
36931 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36932 " guestfs_tar_out (g, \"/\", devfd);\n"
36935 " char devfd[64];\n"
36936 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36937 " guestfs_tar_out (g, \"/\", devfd);\n"
36941 #: ../src/guestfs.pod:378
36942 msgid "LISTING FILES"
36943 msgstr "СПИСКИ ФАЙЛІВ"
36946 #: ../src/guestfs.pod:380
36948 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36949 "L<guestfish(1)>-equivalent command C<ll>)."
36953 #: ../src/guestfs.pod:383
36955 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36956 "programs, as a flat list of strings."
36960 #: ../src/guestfs.pod:386
36962 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36963 "directory, plus additional information about each one. It is more "
36964 "equivalent to using the L<readdir(3)> call on a local filesystem."
36968 #: ../src/guestfs.pod:390
36970 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36974 #: ../src/guestfs.pod:393
36975 msgid "RUNNING COMMANDS"
36976 msgstr "ВИКОНАННЯ КОМАНД"
36979 #: ../src/guestfs.pod:395
36981 "Although libguestfs is primarily an API for manipulating files inside guest "
36982 "images, we also provide some limited facilities for running commands inside "
36987 #: ../src/guestfs.pod:399
36988 msgid "There are many limitations to this:"
36992 #: ../src/guestfs.pod:405
36994 "The kernel version that the command runs under will be different from what "
36999 #: ../src/guestfs.pod:410
37001 "If the command needs to communicate with daemons, then most likely they "
37002 "won't be running."
37006 #: ../src/guestfs.pod:415
37007 msgid "The command will be running in limited memory."
37011 #: ../src/guestfs.pod:419
37013 "The network may not be available unless you enable it (see L</"
37014 "guestfs_set_network>)."
37018 #: ../src/guestfs.pod:424
37019 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37023 #: ../src/guestfs.pod:428
37025 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37029 #: ../src/guestfs.pod:433
37031 "For SELinux guests, you may need to enable SELinux and load policy first. "
37032 "See L</SELINUX> in this manpage."
37036 #: ../src/guestfs.pod:438
37038 "I<Security:> It is not safe to run commands from untrusted, possibly "
37039 "malicious guests. These commands may attempt to exploit your program by "
37040 "sending unexpected output. They could also try to exploit the Linux kernel "
37041 "or qemu provided by the libguestfs appliance. They could use the network "
37042 "provided by the libguestfs appliance to bypass ordinary network partitions "
37043 "and firewalls. They could use the elevated privileges or different SELinux "
37044 "context of your program to their advantage."
37048 #: ../src/guestfs.pod:447
37050 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37051 "(a script which runs when the guest next boots normally), and to have this "
37052 "script run the commands you want in the normal context of the running guest, "
37053 "network security and so on. For information about other security issues, "
37054 "see L</SECURITY>."
37058 #: ../src/guestfs.pod:455
37060 "The two main API calls to run commands are L</guestfs_command> and L</"
37061 "guestfs_sh> (there are also variations)."
37065 #: ../src/guestfs.pod:458
37067 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37068 "shell globs, redirections, etc will work."
37072 #: ../src/guestfs.pod:461
37073 msgid "CONFIGURATION FILES"
37074 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
37077 #: ../src/guestfs.pod:463
37079 "To read and write configuration files in Linux guest filesystems, we "
37080 "strongly recommend using Augeas. For example, Augeas understands how to "
37081 "read and write, say, a Linux shadow password file or X.org configuration "
37082 "file, and so avoids you having to write that code."
37086 #: ../src/guestfs.pod:468
37088 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
37089 "document Augeas itself here because there is excellent documentation on the "
37090 "L<http://augeas.net/> website."
37094 #: ../src/guestfs.pod:472
37096 "If you don't want to use Augeas (you fool!) then try calling L</"
37097 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
37102 #: ../src/guestfs.pod:476
37107 #: ../src/guestfs.pod:478
37109 "We support SELinux guests. To ensure that labeling happens correctly in "
37110 "SELinux guests, you need to enable SELinux and load the guest's policy:"
37114 #: ../src/guestfs.pod:486
37115 msgid "Before launching, do:"
37119 #: ../src/guestfs.pod:488
37122 " guestfs_set_selinux (g, 1);\n"
37125 " guestfs_set_selinux (g, 1);\n"
37129 #: ../src/guestfs.pod:492
37131 "After mounting the guest's filesystem(s), load the policy. This is best "
37132 "done by running the L<load_policy(8)> command in the guest itself:"
37136 #: ../src/guestfs.pod:496
37139 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37142 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37146 #: ../src/guestfs.pod:498
37148 "(Older versions of C<load_policy> require you to specify the name of the "
37153 #: ../src/guestfs.pod:503
37155 "Optionally, set the security context for the API. The correct security "
37156 "context to use can only be known by inspecting the guest. As an example:"
37160 #: ../src/guestfs.pod:507
37163 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37166 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37170 #: ../src/guestfs.pod:511
37171 msgid "This will work for running commands and editing existing files."
37175 #: ../src/guestfs.pod:513
37177 "When new files are created, you may need to label them explicitly, for "
37178 "example by running the external command C<restorecon pathname>."
37182 #: ../src/guestfs.pod:517
37187 #: ../src/guestfs.pod:519
37189 "Certain calls are affected by the current file mode creation mask (the "
37190 "\"umask\"). In particular ones which create files or directories, such as "
37191 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
37192 "either the default mode that the file is created with or modifies the mode "
37197 #: ../src/guestfs.pod:525
37199 "The default umask is C<022>, so files are created with modes such as C<0644> "
37200 "and directories with C<0755>."
37204 #: ../src/guestfs.pod:528
37206 "There are two ways to avoid being affected by umask. Either set umask to 0 "
37207 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
37208 "guestfs_chmod> after creating each file or directory."
37212 #: ../src/guestfs.pod:532
37213 msgid "For more information about umask, see L<umask(2)>."
37217 #: ../src/guestfs.pod:536
37219 "Libguestfs allows you to access Linux guests which have been encrypted using "
37220 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
37221 "standard. This includes nearly all whole disk encryption systems used by "
37222 "modern Linux guests."
37226 #: ../src/guestfs.pod:542
37228 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
37229 "returns the string C<crypto_LUKS>)."
37233 #: ../src/guestfs.pod:545
37235 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
37236 "will require the passphrase!"
37240 #: ../src/guestfs.pod:548
37242 "Opening a LUKS device creates a new device mapper device called C</dev/"
37243 "mapper/mapname> (where C<mapname> is the string you supply to L</"
37244 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
37245 "from and encrypted to the underlying block device respectively."
37249 #: ../src/guestfs.pod:554
37251 "LVM volume groups on the device can be made visible by calling L</"
37252 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
37253 "(s) can now be mounted in the usual way."
37257 #: ../src/guestfs.pod:558
37259 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
37260 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
37261 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
37262 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
37263 "underlying encrypted block device)."
37267 #: ../src/guestfs.pod:565
37272 #: ../src/guestfs.pod:567
37274 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
37275 "contains operating systems, an install CD or a live CD. (These APIs used to "
37276 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
37277 "version 1.5.3 the most frequently used part of this library has been "
37278 "rewritten in C and moved into the core code)."
37282 #: ../src/guestfs.pod:574
37284 "Add all disks belonging to the unknown virtual machine and call L</"
37285 "guestfs_launch> in the usual way."
37289 #: ../src/guestfs.pod:577
37291 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
37292 "and certain heuristics, and returns a list of operating systems that were "
37293 "found. An empty list means none were found. A single element is the root "
37294 "filesystem of the operating system. For dual- or multi-boot guests, "
37295 "multiple roots can be returned, each one corresponding to a separate "
37296 "operating system. (Multi-boot virtual machines are extremely rare in the "
37297 "world of virtualization, but since this scenario can happen, we have built "
37298 "libguestfs to deal with it.)"
37302 #: ../src/guestfs.pod:586
37304 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
37305 "to get additional details about that operating system. For example, call L</"
37306 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
37307 "Windows and Linux-based operating systems respectively."
37311 #: ../src/guestfs.pod:592
37313 "Un*x-like and Linux-based operating systems usually consist of several "
37314 "filesystems which are mounted at boot time (for example, a separate boot "
37315 "partition mounted on C</boot>). The inspection rules are able to detect how "
37316 "filesystems correspond to mount points. Call "
37317 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
37318 "hash table like this example:"
37322 #: ../src/guestfs.pod:599
37325 " /boot => /dev/sda1\n"
37326 " / => /dev/vg_guest/lv_root\n"
37327 " /usr => /dev/vg_guest/lv_usr\n"
37330 " /boot => /dev/sda1\n"
37331 " / => /dev/vg_guest/lv_root\n"
37332 " /usr => /dev/vg_guest/lv_usr\n"
37336 #: ../src/guestfs.pod:603
37338 "The caller can then make calls to L</guestfs_mount_options> to mount the "
37339 "filesystems as suggested."
37343 #: ../src/guestfs.pod:606
37345 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37346 "usr>). Sorting the keys of the hash by length, shortest first, should work."
37350 #: ../src/guestfs.pod:610
37352 "Inspection currently only works for some common operating systems. "
37353 "Contributors are welcome to send patches for other operating systems that we "
37354 "currently cannot detect."
37358 #: ../src/guestfs.pod:614
37360 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
37361 "for more details. The L</guestfs_inspect_os> function just ignores any "
37362 "encrypted devices."
37366 #: ../src/guestfs.pod:618
37368 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37369 "inspection and caches the results in the guest handle. Subsequent calls to "
37370 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37371 "read the disks. If you change the content of the guest disks, you can redo "
37372 "inspection by calling L</guestfs_inspect_os> again. (L</"
37373 "guestfs_inspect_list_applications> works a little differently from the other "
37374 "calls and does read the disks. See documentation for that function for "
37379 #: ../src/guestfs.pod:627
37380 msgid "INSPECTING INSTALL DISKS"
37384 #: ../src/guestfs.pod:629
37386 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37391 #: ../src/guestfs.pod:632
37393 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37394 "system, which currently can be C<installed> (a regular operating system) or "
37395 "C<installer> (some sort of install disk)."
37399 #: ../src/guestfs.pod:636
37401 "Further information is available about the operating system that can be "
37402 "installed using the regular inspection APIs like L</"
37403 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37407 #: ../src/guestfs.pod:641
37409 "Some additional information specific to installer disks is also available "
37410 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37411 "guestfs_inspect_is_multipart> calls."
37415 #: ../src/guestfs.pod:646
37416 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37420 #: ../src/guestfs.pod:648
37422 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
37423 "ntfs-3g.org/> driver."
37427 #: ../src/guestfs.pod:651
37428 msgid "DRIVE LETTERS AND PATHS"
37429 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
37432 #: ../src/guestfs.pod:653
37434 "DOS and Windows still use drive letters, and the filesystems are always "
37435 "treated as case insensitive by Windows itself, and therefore you might find "
37436 "a Windows configuration file referring to a path like C<c:\\windows"
37437 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
37438 "might be referred to as C</WINDOWS/System32>."
37442 #: ../src/guestfs.pod:659
37444 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37445 "L</guestfs_inspect_get_drive_mappings>)"
37449 #: ../src/guestfs.pod:662
37451 "Dealing with separator characters (backslash vs forward slash) is outside "
37452 "the scope of libguestfs, but usually a simple character replacement will "
37457 #: ../src/guestfs.pod:666
37459 "To resolve the case insensitivity of paths, call L</"
37460 "guestfs_case_sensitive_path>."
37464 #: ../src/guestfs.pod:669
37465 msgid "ACCESSING THE WINDOWS REGISTRY"
37466 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
37469 #: ../src/guestfs.pod:671
37471 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37472 "files, through the library C<hivex> which is part of the libguestfs project "
37473 "although ships as a separate tarball. You have to locate and download the "
37474 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
37475 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37476 "reg(1)> for more help on this issue."
37480 #: ../src/guestfs.pod:679
37481 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37482 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
37485 #: ../src/guestfs.pod:681
37487 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37488 "provide something which looks like a Linux symlink. The way it tries to do "
37489 "the rewriting is described here:"
37493 #: ../src/guestfs.pod:685
37495 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37498 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37502 #: ../src/guestfs.pod:687
37504 "The essential problem is that ntfs-3g simply does not have enough "
37505 "information to do a correct job. NTFS links can contain drive letters and "
37506 "references to external device GUIDs that ntfs-3g has no way of resolving. "
37507 "It is almost certainly the case that libguestfs callers should ignore what "
37508 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37512 #: ../src/guestfs.pod:694
37514 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37515 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37516 "attribute, and read the raw reparse data from that (you can find the format "
37517 "documented in various places around the web)."
37521 #: ../src/guestfs.pod:699
37522 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37526 #: ../src/guestfs.pod:701
37528 "There are other useful extended attributes that can be read from ntfs-3g "
37529 "filesystems (using L</guestfs_getxattr>). See:"
37533 #: ../src/guestfs.pod:704
37535 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37537 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37540 #: ../src/guestfs.pod:706
37541 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37542 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
37545 #: ../src/guestfs.pod:708
37547 "Although we don't want to discourage you from using the C API, we will "
37548 "mention here that the same API is also available in other languages."
37552 #: ../src/guestfs.pod:711
37554 "The API is broadly identical in all supported languages. This means that "
37555 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37556 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37557 "OCaml. In other words, a straightforward, predictable isomorphism between "
37562 #: ../src/guestfs.pod:717
37564 "Error messages are automatically transformed into exceptions if the language "
37569 #: ../src/guestfs.pod:720
37571 "We don't try to \"object orientify\" parts of the API in OO languages, "
37572 "although contributors are welcome to write higher level APIs above what we "
37573 "provide in their favourite languages if they wish."
37577 #: ../src/guestfs.pod:726
37582 #: ../src/guestfs.pod:728
37584 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
37585 "identical to the C API. C++ classes and exceptions are not used."
37589 #: ../src/guestfs.pod:732
37594 #: ../src/guestfs.pod:734
37596 "The C# bindings are highly experimental. Please read the warnings at the "
37597 "top of C<csharp/Libguestfs.cs>."
37601 #: ../src/guestfs.pod:737
37606 #: ../src/guestfs.pod:739
37607 msgid "See L<guestfs-erlang(3)>."
37611 #: ../src/guestfs.pod:741
37613 msgstr "B<Haskell>"
37616 #: ../src/guestfs.pod:743
37618 "This is the only language binding that is working but incomplete. Only "
37619 "calls which return simple integers have been bound in Haskell, and we are "
37620 "looking for help to complete this binding."
37624 #: ../src/guestfs.pod:747
37629 #: ../src/guestfs.pod:749
37631 "Full documentation is contained in the Javadoc which is distributed with "
37632 "libguestfs. For examples, see L<guestfs-java(3)>."
37636 #: ../src/guestfs.pod:752
37641 #: ../src/guestfs.pod:754
37642 msgid "See L<guestfs-ocaml(3)>."
37643 msgstr "Див. L<guestfs-ocaml(3)>."
37646 #: ../src/guestfs.pod:756
37651 #: ../src/guestfs.pod:758
37652 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37653 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
37656 #: ../src/guestfs.pod:760
37661 #: ../src/guestfs.pod:762
37663 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37664 "the php-libguestfs package for your distribution."
37668 #: ../src/guestfs.pod:765
37669 msgid "The PHP binding only works correctly on 64 bit machines."
37673 #: ../src/guestfs.pod:767
37678 #: ../src/guestfs.pod:769
37679 msgid "See L<guestfs-python(3)>."
37680 msgstr "Див. L<guestfs-python(3)>."
37683 #: ../src/guestfs.pod:771
37688 #: ../src/guestfs.pod:773
37689 msgid "See L<guestfs-ruby(3)>."
37690 msgstr "Див. L<guestfs-ruby(3)>."
37693 #: ../src/guestfs.pod:775
37694 msgid "B<shell scripts>"
37695 msgstr "B<скрипти оболонки>"
37698 #: ../src/guestfs.pod:777
37699 msgid "See L<guestfish(1)>."
37700 msgstr "Див. L<guestfish(1)>."
37703 #: ../src/guestfs.pod:781
37704 msgid "LIBGUESTFS GOTCHAS"
37708 #: ../src/guestfs.pod:783
37710 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37711 "system [...] that works in the way it is documented but is counterintuitive "
37712 "and almost invites mistakes.\""
37716 #: ../src/guestfs.pod:787
37718 "Since we developed libguestfs and the associated tools, there are several "
37719 "things we would have designed differently, but are now stuck with for "
37720 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
37721 "release, you can expect these to change. Beware of them."
37725 #: ../src/guestfs.pod:795
37726 msgid "Autosync / forgetting to sync."
37730 #: ../src/guestfs.pod:797
37732 "I<Update:> Autosync is enabled by default for all API users starting from "
37733 "libguestfs 1.5.24. This section only applies to older versions."
37737 #: ../src/guestfs.pod:800
37739 "When modifying a filesystem from C or another language, you B<must> unmount "
37740 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37741 "libguestfs handle. You can also call:"
37745 #: ../src/guestfs.pod:804
37748 " guestfs_set_autosync (g, 1);\n"
37751 " guestfs_set_autosync (g, 1);\n"
37755 #: ../src/guestfs.pod:806
37757 "to have the unmount/sync done automatically for you when the handle 'g' is "
37758 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37762 #: ../src/guestfs.pod:810
37764 "If you forget to do this, then it is entirely possible that your changes "
37765 "won't be written out, or will be partially written, or (very rarely) that "
37766 "you'll get disk corruption."
37770 #: ../src/guestfs.pod:814
37772 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
37773 "guestfish scripts that forget to sync will work just fine, which can make "
37774 "this very puzzling if you are trying to debug a problem."
37778 #: ../src/guestfs.pod:818
37779 msgid "Mount option C<-o sync> should not be the default."
37783 #: ../src/guestfs.pod:820
37785 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37786 "libguestfs 1.13.16. This section only applies to older versions."
37790 #: ../src/guestfs.pod:823
37792 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
37793 "However C<-o sync> does not add any reliability benefit, but does have a "
37794 "very large performance impact."
37798 #: ../src/guestfs.pod:827
37800 "The work around is to use L</guestfs_mount_options> and set the mount "
37801 "options that you actually want to use."
37805 #: ../src/guestfs.pod:830
37806 msgid "Read-only should be the default."
37810 #: ../src/guestfs.pod:832
37812 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37813 "specify I<--rw> if you want to make changes to the image."
37817 #: ../src/guestfs.pod:835
37818 msgid "This would reduce the potential to corrupt live VM images."
37822 #: ../src/guestfs.pod:837
37824 "Note that many filesystems change the disk when you just mount and unmount, "
37825 "even if you didn't perform any writes. You need to use L</"
37826 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37830 #: ../src/guestfs.pod:841
37831 msgid "guestfish command line is hard to use."
37835 #: ../src/guestfs.pod:843
37837 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37838 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
37839 "exist, so it fails. In earlier versions of guestfish the error message was "
37840 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
37841 "we should have used C<guestfish -c command> to run commands."
37845 #: ../src/guestfs.pod:850
37846 msgid "guestfish megabyte modifiers don't work right on all commands"
37850 #: ../src/guestfs.pod:852
37852 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37853 "other modifiers). What guestfish actually does is to multiply the number "
37854 "part by the modifier part and pass the result to the C API. However this "
37855 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37856 "expecting some other unit (eg. megabytes)."
37860 #: ../src/guestfs.pod:859
37861 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
37865 #: ../src/guestfs.pod:861
37868 " lvcreate LV VG 100M\n"
37871 " lvcreate LV VG 100M\n"
37875 #: ../src/guestfs.pod:863
37877 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
37878 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37879 "megabytes * megabytes) logical volume. The error message you get from this "
37880 "is also a little obscure."
37884 #: ../src/guestfs.pod:868
37886 "This could be fixed in the generator by specially marking parameters and "
37887 "return values which take bytes or other units."
37891 #: ../src/guestfs.pod:871
37892 msgid "Ambiguity between devices and paths"
37896 #: ../src/guestfs.pod:873
37898 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37899 "sdb2>) and a similar pathname. A file might just happen to be called "
37900 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37904 #: ../src/guestfs.pod:878
37906 "In the current API we usually resolve this ambiguity by having two separate "
37907 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
37908 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37909 "detecting if the path supplied begins with C</dev/>."
37913 #: ../src/guestfs.pod:884
37915 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37916 "make paths/devices into structured names. One way to do this would be to "
37917 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37918 "aspect of grub. Another way would be to use a structured type, equivalent "
37919 "to this OCaml type:"
37923 #: ../src/guestfs.pod:890
37926 " type path = Path of string | Device of int | Partition of int * int\n"
37931 #: ../src/guestfs.pod:892
37932 msgid "which would allow you to pass arguments like:"
37936 #: ../src/guestfs.pod:894
37939 " Path \"/foo/bar\"\n"
37940 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37941 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37942 " Path \"/dev/sdb2\" (* not a device *)\n"
37947 #: ../src/guestfs.pod:899
37949 "As you can see there are still problems to resolve even with this "
37950 "representation. Also consider how it might work in guestfish."
37954 #: ../src/guestfs.pod:904
37955 msgid "KEYS AND PASSPHRASES"
37956 msgstr "КЛЮЧІ І ПАРОЛІ"
37959 #: ../src/guestfs.pod:906
37961 "Certain libguestfs calls take a parameter that contains sensitive key "
37962 "material, passed in as a C string."
37966 #: ../src/guestfs.pod:909
37968 "In the future we would hope to change the libguestfs implementation so that "
37969 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37970 "swap. However this is I<not> done at the moment, because of the complexity "
37971 "of such an implementation."
37975 #: ../src/guestfs.pod:914
37977 "Therefore you should be aware that any key parameter you pass to libguestfs "
37978 "might end up being written out to the swap partition. If this is a concern, "
37979 "scrub the swap partition or don't use libguestfs on encrypted devices."
37983 #: ../src/guestfs.pod:919
37984 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37988 #: ../src/guestfs.pod:921
37990 "All high-level libguestfs actions are synchronous. If you want to use "
37991 "libguestfs asynchronously then you must create a thread."
37995 #: ../src/guestfs.pod:924
37997 "Only use the handle from a single thread. Either use the handle exclusively "
37998 "from one thread, or provide your own mutex so that two threads cannot issue "
37999 "calls on the same handle at the same time."
38003 #: ../src/guestfs.pod:928
38005 "See the graphical program guestfs-browser for one possible architecture for "
38006 "multithreaded programs using libvirt and libguestfs."
38010 #: ../src/guestfs.pod:931
38015 #: ../src/guestfs.pod:933
38017 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38022 #: ../src/guestfs.pod:936
38024 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38025 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38029 #: ../src/guestfs.pod:939
38031 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38032 "to change the directories that libguestfs will search in. The value is a "
38033 "colon-separated list of paths. The current directory is I<not> searched "
38034 "unless the path contains an empty element or C<.>. For example "
38035 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38036 "then C</usr/lib/guestfs>."
38040 #: ../src/guestfs.pod:946
38041 msgid "QEMU WRAPPERS"
38045 #: ../src/guestfs.pod:948
38047 "If you want to compile your own qemu, run qemu from a non-standard location, "
38048 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38053 #: ../src/guestfs.pod:952
38055 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38056 "last command in the shell script (so that qemu replaces the shell and "
38057 "becomes the direct child of the libguestfs-using program). If you don't do "
38058 "this, then the qemu process won't be cleaned up correctly."
38062 #: ../src/guestfs.pod:957
38064 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38069 #: ../src/guestfs.pod:960
38073 " qemudir=/home/rjones/d/qemu\n"
38074 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38078 " qemudir=/home/rjones/d/qemu\n"
38079 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38083 #: ../src/guestfs.pod:964
38085 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
38086 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
38091 #: ../src/guestfs.pod:968
38094 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38097 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38101 #: ../src/guestfs.pod:970
38103 "Note that libguestfs also calls qemu with the -help and -version options in "
38104 "order to determine features."
38108 #: ../src/guestfs.pod:973
38110 "Wrappers can also be used to edit the options passed to qemu. In the "
38111 "following example, the C<-machine ...> option (C<-machine> and the following "
38112 "argument) are removed from the command line and replaced with C<-machine pc,"
38113 "accel=tcg>. The while loop iterates over the options until it finds the "
38114 "right one to remove, putting the remaining options into the C<args> array."
38118 #: ../src/guestfs.pod:982
38122 " while [ $# -gt 0 ]; do\n"
38123 " case \"$1\" in\n"
38127 " args[i]=\"$1\"\n"
38136 #: ../src/guestfs.pod:994
38139 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
38144 #: ../src/guestfs.pod:996
38145 msgid "ATTACHING TO RUNNING DAEMONS"
38146 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
38149 #: ../src/guestfs.pod:998
38151 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
38152 "babies. Use with caution."
38156 #: ../src/guestfs.pod:1001
38158 "I<Note (2):> This section explains how to attach to a running daemon from a "
38159 "low level perspective. For most users, simply using virt tools such as "
38160 "L<guestfish(1)> with the I<--live> option will \"just work\"."
38164 #: ../src/guestfs.pod:1005
38165 msgid "Using guestfs_set_attach_method"
38166 msgstr "За допомогою guestfs_set_attach_method"
38169 #: ../src/guestfs.pod:1007
38171 "By calling L</guestfs_set_attach_method> you can change how the library "
38172 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
38173 "ARCHITECTURE> for some background)."
38177 #: ../src/guestfs.pod:1011
38179 "The normal attach method is C<appliance>, where a small appliance is created "
38180 "containing the daemon, and then the library connects to this."
38184 #: ../src/guestfs.pod:1014
38186 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
38187 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
38188 "daemon over the Unix domain socket."
38192 #: ../src/guestfs.pod:1018
38194 "The normal use for this is to connect to a running virtual machine that "
38195 "contains a C<guestfsd> daemon, and send commands so you can read and write "
38196 "files inside the live virtual machine."
38200 #: ../src/guestfs.pod:1022
38201 msgid "Using guestfs_add_domain with live flag"
38202 msgstr "За допомогою guestfs_add_domain з прапорцем live"
38205 #: ../src/guestfs.pod:1024
38207 "L</guestfs_add_domain> provides some help for getting the correct attach "
38208 "method. If you pass the C<live> option to this function, then (if the "
38209 "virtual machine is running) it will examine the libvirt XML looking for a "
38210 "virtio-serial channel to connect to:"
38214 #: ../src/guestfs.pod:1030
38221 " <channel type='unix'>\n"
38222 " <source mode='bind' path='/path/to/socket'/>\n"
38223 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38234 " <channel type='unix'>\n"
38235 " <source mode='bind' path='/path/to/socket'/>\n"
38236 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38244 #: ../src/guestfs.pod:1042
38246 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
38247 "method to C<unix:/path/to/socket>."
38251 #: ../src/guestfs.pod:1045
38253 "Some of the libguestfs tools (including guestfish) support a I<--live> "
38254 "option which is passed through to L</guestfs_add_domain> thus allowing you "
38255 "to attach to and modify live virtual machines."
38259 #: ../src/guestfs.pod:1049
38261 "The virtual machine needs to have been set up beforehand so that it has the "
38262 "virtio-serial channel and so that guestfsd is running inside it."
38266 #: ../src/guestfs.pod:1053
38267 msgid "ABI GUARANTEE"
38268 msgstr "ГАРАНТІЯ ЩОДО ABI"
38271 #: ../src/guestfs.pod:1055
38273 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
38274 "actions as outlined in this section. Although we will deprecate some "
38275 "actions, for example if they get replaced by newer calls, we will keep the "
38276 "old actions forever. This allows you the developer to program in confidence "
38277 "against the libguestfs API."
38281 #: ../src/guestfs.pod:1061
38282 msgid "BLOCK DEVICE NAMING"
38283 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
38286 #: ../src/guestfs.pod:1063
38288 "In the kernel there is now quite a profusion of schemata for naming block "
38289 "devices (in this context, by I<block device> I mean a physical or virtual "
38290 "hard drive). The original Linux IDE driver used names starting with C</dev/"
38291 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
38292 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
38293 "for the old IDE driver (particularly for SATA devices) those devices also "
38294 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
38295 "paravirtualized drivers. This has created several different naming systems, "
38296 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
38300 #: ../src/guestfs.pod:1075
38302 "As discussed above, libguestfs uses a qemu appliance running an embedded "
38303 "Linux kernel to access block devices. We can run a variety of appliances "
38304 "based on a variety of Linux kernels."
38308 #: ../src/guestfs.pod:1079
38310 "This causes a problem for libguestfs because many API calls use device or "
38311 "partition names. Working scripts and the recipe (example) scripts that we "
38312 "make available over the internet could fail if the naming scheme changes."
38316 #: ../src/guestfs.pod:1084
38318 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
38319 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
38320 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
38321 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
38325 #: ../src/guestfs.pod:1090
38327 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
38328 "L</guestfs_list_partitions> and similar calls return the true names of the "
38329 "devices and partitions as known to the appliance."
38333 #: ../src/guestfs.pod:1095
38334 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
38338 #: ../src/guestfs.pod:1097
38340 "Usually this translation is transparent. However in some (very rare) cases "
38341 "you may need to know the exact algorithm. Such cases include where you use "
38342 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
38343 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
38347 #: ../src/guestfs.pod:1103
38349 "The algorithm is applied only to I<parameters> which are known to be either "
38350 "device or partition names. Return values from functions such as L</"
38351 "guestfs_list_devices> are never changed."
38355 #: ../src/guestfs.pod:1111
38356 msgid "Is the string a parameter which is a device or partition name?"
38360 #: ../src/guestfs.pod:1115
38361 msgid "Does the string begin with C</dev/sd>?"
38362 msgstr "Чи починається рядок з C</dev/sd>?"
38365 #: ../src/guestfs.pod:1119
38367 "Does the named device exist? If so, we use that device. However if I<not> "
38368 "then we continue with this algorithm."
38372 #: ../src/guestfs.pod:1124
38373 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38377 #: ../src/guestfs.pod:1126
38378 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38382 #: ../src/guestfs.pod:1128
38383 msgid "If that named device exists, use it. If not, continue."
38387 #: ../src/guestfs.pod:1132
38388 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38392 #: ../src/guestfs.pod:1134
38393 msgid "If that named device exists, use it. If not, return an error."
38397 #: ../src/guestfs.pod:1138
38398 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38402 #: ../src/guestfs.pod:1140
38404 "Although the standard naming scheme and automatic translation is useful for "
38405 "simple programs and guestfish scripts, for larger programs it is best not to "
38406 "rely on this mechanism."
38410 #: ../src/guestfs.pod:1144
38412 "Where possible for maximum future portability programs using libguestfs "
38413 "should use these future-proof techniques:"
38417 #: ../src/guestfs.pod:1151
38419 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38420 "device names, and then use those names directly."
38424 #: ../src/guestfs.pod:1154
38426 "Since those device names exist by definition, they will never be translated."
38430 #: ../src/guestfs.pod:1159
38432 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38433 "filesystem labels."
38437 #: ../src/guestfs.pod:1166
38439 "This section discusses security implications of using libguestfs, "
38440 "particularly with untrusted or malicious guests or disk images."
38444 #: ../src/guestfs.pod:1169
38445 msgid "GENERAL SECURITY CONSIDERATIONS"
38446 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
38449 #: ../src/guestfs.pod:1171
38451 "Be careful with any files or data that you download from a guest (by "
38452 "\"download\" we mean not just the L</guestfs_download> command but any "
38453 "command that reads files, filenames, directories or anything else from a "
38454 "disk image). An attacker could manipulate the data to fool your program "
38455 "into doing the wrong thing. Consider cases such as:"
38459 #: ../src/guestfs.pod:1181
38460 msgid "the data (file etc) not being present"
38464 #: ../src/guestfs.pod:1185
38465 msgid "being present but empty"
38469 #: ../src/guestfs.pod:1189
38470 msgid "being much larger than normal"
38474 #: ../src/guestfs.pod:1193
38475 msgid "containing arbitrary 8 bit data"
38479 #: ../src/guestfs.pod:1197
38480 msgid "being in an unexpected character encoding"
38484 #: ../src/guestfs.pod:1201
38485 msgid "containing homoglyphs."
38489 #: ../src/guestfs.pod:1205
38490 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38491 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
38494 #: ../src/guestfs.pod:1207
38496 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38497 "(VFS) module can sometimes be escalated into exploits by deliberately "
38498 "creating a malicious, malformed filesystem. These exploits are very severe "
38499 "for two reasons. Firstly there are very many filesystem drivers in the "
38500 "kernel, and many of them are infrequently used and not much developer "
38501 "attention has been paid to the code. Linux userspace helps potential "
38502 "crackers by detecting the filesystem type and automatically choosing the "
38503 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38504 "the administrator. Secondly, a kernel-level exploit is like a local root "
38505 "exploit (worse in some ways), giving immediate and total access to the "
38506 "system right down to the hardware level."
38510 #: ../src/guestfs.pod:1220
38512 "That explains why you should never mount a filesystem from an untrusted "
38513 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
38514 "inside a qemu virtual machine, usually running as a non-root user. The "
38515 "attacker would need to write a filesystem which first exploited the kernel, "
38516 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38517 "the libguestfs protocol, and finally to be as serious as the host kernel "
38518 "exploit it would need to escalate its privileges to root. This multi-step "
38519 "escalation, performed by a static piece of data, is thought to be extremely "
38520 "hard to do, although we never say 'never' about security issues."
38524 #: ../src/guestfs.pod:1231
38526 "In any case callers can reduce the attack surface by forcing the filesystem "
38527 "type when mounting (use L</guestfs_mount_vfs>)."
38531 #: ../src/guestfs.pod:1234
38532 msgid "PROTOCOL SECURITY"
38533 msgstr "ЗАХИСТ ПРОТОКОЛУ"
38536 #: ../src/guestfs.pod:1236
38538 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
38539 "defined upper message size. However a program that uses libguestfs must "
38540 "also take care - for example you can write a program that downloads a binary "
38541 "from a disk image and executes it locally, and no amount of protocol "
38542 "security will save you from the consequences."
38546 #: ../src/guestfs.pod:1242
38547 msgid "INSPECTION SECURITY"
38551 #: ../src/guestfs.pod:1244
38553 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38554 "directly from the guest, and these could contain any 8 bit data. Callers "
38555 "should be careful to escape these before printing them to a structured file "
38556 "(for example, use HTML escaping if creating a web page)."
38560 #: ../src/guestfs.pod:1250
38562 "Guest configuration may be altered in unusual ways by the administrator of "
38563 "the virtual machine, and may not reflect reality (particularly for untrusted "
38564 "or actively malicious guests). For example we parse the hostname from "
38565 "configuration files like C</etc/sysconfig/network> that we find in the "
38566 "guest, but the guest administrator can easily manipulate these files to "
38567 "provide the wrong hostname."
38571 #: ../src/guestfs.pod:1258
38573 "The inspection API parses guest configuration using two external libraries: "
38574 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
38575 "designed to be robust in the face of malicious data, although denial of "
38576 "service attacks are still possible, for example with oversized configuration "
38581 #: ../src/guestfs.pod:1264
38582 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38583 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
38586 #: ../src/guestfs.pod:1266
38588 "Be very cautious about running commands from the guest. By running a "
38589 "command in the guest, you are giving CPU time to a binary that you do not "
38590 "control, under the same user account as the library, albeit wrapped in qemu "
38591 "virtualization. More information and alternatives can be found in the "
38592 "section L</RUNNING COMMANDS>."
38596 #: ../src/guestfs.pod:1272
38597 msgid "CVE-2010-3851"
38598 msgstr "CVE-2010-3851"
38601 #: ../src/guestfs.pod:1274
38602 msgid "https://bugzilla.redhat.com/642934"
38603 msgstr "https://bugzilla.redhat.com/642934"
38606 #: ../src/guestfs.pod:1276
38608 "This security bug concerns the automatic disk format detection that qemu "
38609 "does on disk images."
38613 #: ../src/guestfs.pod:1279
38615 "A raw disk image is just the raw bytes, there is no header. Other disk "
38616 "images like qcow2 contain a special header. Qemu deals with this by looking "
38617 "for one of the known headers, and if none is found then assuming the disk "
38618 "image must be raw."
38622 #: ../src/guestfs.pod:1284
38624 "This allows a guest which has been given a raw disk image to write some "
38625 "other header. At next boot (or when the disk image is accessed by "
38626 "libguestfs) qemu would do autodetection and think the disk image format was, "
38627 "say, qcow2 based on the header written by the guest."
38631 #: ../src/guestfs.pod:1289
38633 "This in itself would not be a problem, but qcow2 offers many features, one "
38634 "of which is to allow a disk image to refer to another image (called the "
38635 "\"backing disk\"). It does this by placing the path to the backing disk "
38636 "into the qcow2 header. This path is not validated and could point to any "
38637 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
38638 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38639 "control of the attacker."
38643 #: ../src/guestfs.pod:1297
38645 "In libguestfs this is rather hard to exploit except under two circumstances:"
38649 #: ../src/guestfs.pod:1304
38650 msgid "You have enabled the network or have opened the disk in write mode."
38654 #: ../src/guestfs.pod:1308
38656 "You are also running untrusted code from the guest (see L</RUNNING "
38661 #: ../src/guestfs.pod:1313
38663 "The way to avoid this is to specify the expected disk format when adding "
38664 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
38665 "should always do this if the disk is raw format, and it's a good idea for "
38670 #: ../src/guestfs.pod:1318
38672 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38673 "format is fetched from libvirt and passed through."
38677 #: ../src/guestfs.pod:1321
38679 "For libguestfs tools, use the I<--format> command line parameter as "
38684 #: ../src/guestfs.pod:1324
38685 msgid "CONNECTION MANAGEMENT"
38686 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38689 #: ../src/guestfs.pod:1326
38690 msgid "guestfs_h *"
38691 msgstr "guestfs_h *"
38694 #: ../src/guestfs.pod:1328
38696 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
38697 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
38698 "handle and release all resources used."
38702 #: ../src/guestfs.pod:1332
38704 "For information on using multiple handles and threads, see the section L</"
38705 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38709 #: ../src/guestfs.pod:1335
38710 msgid "guestfs_create"
38711 msgstr "guestfs_create"
38714 #: ../src/guestfs.pod:1337
38717 " guestfs_h *guestfs_create (void);\n"
38720 " guestfs_h *guestfs_create (void);\n"
38724 #: ../src/guestfs.pod:1339
38725 msgid "Create a connection handle."
38726 msgstr "Створити дескриптор з’єднання."
38729 #: ../src/guestfs.pod:1341
38731 "On success this returns a non-NULL pointer to a handle. On error it returns "
38736 #: ../src/guestfs.pod:1344
38738 "You have to \"configure\" the handle after creating it. This includes "
38739 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38740 "handle at least once."
38744 #: ../src/guestfs.pod:1348
38745 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38749 #: ../src/guestfs.pod:1350
38751 "You may also want to configure error handling for the handle. See the L</"
38752 "ERROR HANDLING> section below."
38756 #: ../src/guestfs.pod:1353
38757 msgid "guestfs_close"
38758 msgstr "guestfs_close"
38761 #: ../src/guestfs.pod:1355
38764 " void guestfs_close (guestfs_h *g);\n"
38767 " void guestfs_close (guestfs_h *g);\n"
38771 #: ../src/guestfs.pod:1357
38772 msgid "This closes the connection handle and frees up all resources used."
38776 #: ../src/guestfs.pod:1359
38778 "If autosync was set on the handle and the handle was launched, then this "
38779 "implicitly calls various functions to unmount filesystems and sync the "
38780 "disk. See L</guestfs_set_autosync> for more details."
38784 #: ../src/guestfs.pod:1363
38785 msgid "If a close callback was set on the handle, then it is called."
38789 #: ../src/guestfs.pod:1365
38790 msgid "ERROR HANDLING"
38791 msgstr "ОБРОБКА ПОМИЛОК"
38794 #: ../src/guestfs.pod:1367
38796 "API functions can return errors. For example, almost all functions that "
38797 "return C<int> will return C<-1> to indicate an error."
38801 #: ../src/guestfs.pod:1370
38803 "Additional information is available for errors: an error message string and "
38804 "optionally an error number (errno) if the thing that failed was a system "
38809 #: ../src/guestfs.pod:1374
38811 "You can get at the additional information about the last error on the handle "
38812 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38813 "up an error handler with L</guestfs_set_error_handler>."
38817 #: ../src/guestfs.pod:1379
38819 "When the handle is created, a default error handler is installed which "
38820 "prints the error message string to C<stderr>. For small short-running "
38821 "command line programs it is sufficient to do:"
38825 #: ../src/guestfs.pod:1383
38828 " if (guestfs_launch (g) == -1)\n"
38829 " exit (EXIT_FAILURE);\n"
38832 " if (guestfs_launch (g) == -1)\n"
38833 " exit (EXIT_FAILURE);\n"
38837 #: ../src/guestfs.pod:1386
38839 "since the default error handler will ensure that an error message has been "
38840 "printed to C<stderr> before the program exits."
38844 #: ../src/guestfs.pod:1389
38846 "For other programs the caller will almost certainly want to install an "
38847 "alternate error handler or do error handling in-line like this:"
38851 #: ../src/guestfs.pod:1392
38854 " /* This disables the default behaviour of printing errors\n"
38856 " guestfs_set_error_handler (g, NULL, NULL);\n"
38861 #: ../src/guestfs.pod:1396
38864 " if (guestfs_launch (g) == -1) {\n"
38865 " /* Examine the error message and print it etc. */\n"
38866 " char *msg = guestfs_last_error (g);\n"
38867 " int errnum = guestfs_last_errno (g);\n"
38868 " fprintf (stderr, \"%s\", msg);\n"
38869 " if (errnum != 0)\n"
38870 " fprintf (stderr, \": %s\", strerror (errnum));\n"
38871 " fprintf (stderr, \"\\n\");\n"
38878 #: ../src/guestfs.pod:1407
38880 "Out of memory errors are handled differently. The default action is to call "
38881 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
38882 "guestfs_set_out_of_memory_handler>."
38886 #: ../src/guestfs.pod:1411
38888 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38889 "because there is no handle if this happens there is no way to get additional "
38890 "error information. However L</guestfs_create> is supposed to be a "
38891 "lightweight operation which can only fail because of insufficient memory (it "
38892 "returns NULL in this case)."
38896 #: ../src/guestfs.pod:1417
38897 msgid "guestfs_last_error"
38898 msgstr "guestfs_last_error"
38901 #: ../src/guestfs.pod:1419
38904 " const char *guestfs_last_error (guestfs_h *g);\n"
38907 " const char *guestfs_last_error (guestfs_h *g);\n"
38911 #: ../src/guestfs.pod:1421
38913 "This returns the last error message that happened on C<g>. If there has not "
38914 "been an error since the handle was created, then this returns C<NULL>."
38918 #: ../src/guestfs.pod:1425
38920 "The lifetime of the returned string is until the next error occurs, or L</"
38921 "guestfs_close> is called."
38925 #: ../src/guestfs.pod:1428
38926 msgid "guestfs_last_errno"
38927 msgstr "guestfs_last_errno"
38930 #: ../src/guestfs.pod:1430
38933 " int guestfs_last_errno (guestfs_h *g);\n"
38936 " int guestfs_last_errno (guestfs_h *g);\n"
38940 #: ../src/guestfs.pod:1432
38941 msgid "This returns the last error number (errno) that happened on C<g>."
38945 #: ../src/guestfs.pod:1434
38946 msgid "If successful, an errno integer not equal to zero is returned."
38950 #: ../src/guestfs.pod:1436
38952 "If no error, this returns 0. This call can return 0 in three situations:"
38956 #: ../src/guestfs.pod:1443
38957 msgid "There has not been any error on the handle."
38961 #: ../src/guestfs.pod:1447
38963 "There has been an error but the errno was meaningless. This corresponds to "
38964 "the case where the error did not come from a failed system call, but for "
38965 "some other reason."
38969 #: ../src/guestfs.pod:1453
38971 "There was an error from a failed system call, but for some reason the errno "
38972 "was not captured and returned. This usually indicates a bug in libguestfs."
38976 #: ../src/guestfs.pod:1459
38978 "Libguestfs tries to convert the errno from inside the applicance into a "
38979 "corresponding errno for the caller (not entirely trivial: the appliance "
38980 "might be running a completely different operating system from the library "
38981 "and error numbers are not standardized across Un*xen). If this could not be "
38982 "done, then the error is translated to C<EINVAL>. In practice this should "
38983 "only happen in very rare circumstances."
38987 #: ../src/guestfs.pod:1467
38988 msgid "guestfs_set_error_handler"
38989 msgstr "guestfs_set_error_handler"
38992 #: ../src/guestfs.pod:1469
38995 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38997 " const char *msg);\n"
38998 " void guestfs_set_error_handler (guestfs_h *g,\n"
38999 " guestfs_error_handler_cb cb,\n"
39000 " void *opaque);\n"
39003 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39005 " const char *msg);\n"
39006 " void guestfs_set_error_handler (guestfs_h *g,\n"
39007 " guestfs_error_handler_cb cb,\n"
39008 " void *opaque);\n"
39012 #: ../src/guestfs.pod:1476
39014 "The callback C<cb> will be called if there is an error. The parameters "
39015 "passed to the callback are an opaque data pointer and the error message "
39020 #: ../src/guestfs.pod:1480
39022 "C<errno> is not passed to the callback. To get that the callback must call "
39023 "L</guestfs_last_errno>."
39027 #: ../src/guestfs.pod:1483
39029 "Note that the message string C<msg> is freed as soon as the callback "
39030 "function returns, so if you want to stash it somewhere you must make your "
39035 #: ../src/guestfs.pod:1487
39036 msgid "The default handler prints messages on C<stderr>."
39040 #: ../src/guestfs.pod:1489
39041 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39045 #: ../src/guestfs.pod:1491
39046 msgid "guestfs_get_error_handler"
39047 msgstr "guestfs_get_error_handler"
39050 #: ../src/guestfs.pod:1493
39053 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39054 " void **opaque_rtn);\n"
39057 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39058 " void **opaque_rtn);\n"
39062 #: ../src/guestfs.pod:1496
39063 msgid "Returns the current error handler callback."
39067 #: ../src/guestfs.pod:1498
39068 msgid "guestfs_set_out_of_memory_handler"
39069 msgstr "guestfs_set_out_of_memory_handler"
39072 #: ../src/guestfs.pod:1500
39075 " typedef void (*guestfs_abort_cb) (void);\n"
39076 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
39077 " guestfs_abort_cb);\n"
39082 #: ../src/guestfs.pod:1504
39084 "The callback C<cb> will be called if there is an out of memory situation. "
39085 "I<Note this callback must not return>."
39089 #: ../src/guestfs.pod:1507
39090 msgid "The default is to call L<abort(3)>."
39094 #: ../src/guestfs.pod:1509
39096 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
39100 #: ../src/guestfs.pod:1512
39101 msgid "guestfs_get_out_of_memory_handler"
39102 msgstr "guestfs_get_out_of_memory_handler"
39105 #: ../src/guestfs.pod:1514
39108 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39111 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39115 #: ../src/guestfs.pod:1516
39116 msgid "This returns the current out of memory handler."
39120 #: ../src/guestfs.pod:1518
39122 msgstr "ВИКЛИКИ API"
39125 #: ../src/guestfs.pod:1522
39130 #: ../src/guestfs.pod:1524
39135 #: ../src/guestfs.pod:1526
39136 msgid "AVAILABILITY"
39137 msgstr "ДОСТУПНІСТЬ"
39140 #: ../src/guestfs.pod:1528
39141 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
39142 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
39145 #: ../src/guestfs.pod:1530
39147 "Using L</guestfs_available> you can test availability of the following "
39148 "groups of functions. This test queries the appliance to see if the "
39149 "appliance you are currently using supports the functionality."
39153 #: ../src/guestfs.pod:1535
39154 msgid "@AVAILABILITY@"
39155 msgstr "@AVAILABILITY@"
39158 #: ../src/guestfs.pod:1537
39159 msgid "GUESTFISH supported COMMAND"
39163 #: ../src/guestfs.pod:1539
39165 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
39166 "prints out the available groups and whether they are supported by this build "
39167 "of libguestfs. Note however that you have to do C<run> first."
39171 #: ../src/guestfs.pod:1544
39172 msgid "SINGLE CALLS AT COMPILE TIME"
39176 #: ../src/guestfs.pod:1546
39178 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
39179 "function, such as:"
39183 #: ../src/guestfs.pod:1549
39186 " #define LIBGUESTFS_HAVE_DD 1\n"
39189 " #define LIBGUESTFS_HAVE_DD 1\n"
39193 #: ../src/guestfs.pod:1551
39194 msgid "if L</guestfs_dd> is available."
39198 #: ../src/guestfs.pod:1553
39200 "Before version 1.5.8, if you needed to test whether a single libguestfs "
39201 "function is available at compile time, we recommended using build tools such "
39202 "as autoconf or cmake. For example in autotools you could use:"
39206 #: ../src/guestfs.pod:1558
39209 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39210 " AC_CHECK_FUNCS([guestfs_dd])\n"
39213 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39214 " AC_CHECK_FUNCS([guestfs_dd])\n"
39218 #: ../src/guestfs.pod:1561
39220 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
39225 #: ../src/guestfs.pod:1564
39226 msgid "SINGLE CALLS AT RUN TIME"
39230 #: ../src/guestfs.pod:1566
39232 "Testing at compile time doesn't guarantee that a function really exists in "
39233 "the library. The reason is that you might be dynamically linked against a "
39234 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
39235 "This situation unfortunately results in a segmentation fault, which is a "
39236 "shortcoming of the C dynamic linking system itself."
39240 #: ../src/guestfs.pod:1573
39242 "You can use L<dlopen(3)> to test if a function is available at run time, as "
39243 "in this example program (note that you still need the compile time check as "
39248 #: ../src/guestfs.pod:1577
39251 " #include <stdio.h>\n"
39252 " #include <stdlib.h>\n"
39253 " #include <unistd.h>\n"
39254 " #include <dlfcn.h>\n"
39255 " #include <guestfs.h>\n"
39258 " #include <stdio.h>\n"
39259 " #include <stdlib.h>\n"
39260 " #include <unistd.h>\n"
39261 " #include <dlfcn.h>\n"
39262 " #include <guestfs.h>\n"
39266 #: ../src/guestfs.pod:1583
39271 " #ifdef LIBGUESTFS_HAVE_DD\n"
39273 " int has_function;\n"
39278 " #ifdef LIBGUESTFS_HAVE_DD\n"
39280 " int has_function;\n"
39284 #: ../src/guestfs.pod:1589
39287 " /* Test if the function guestfs_dd is really available. */\n"
39288 " dl = dlopen (NULL, RTLD_LAZY);\n"
39290 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
39291 " exit (EXIT_FAILURE);\n"
39293 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
39299 #: ../src/guestfs.pod:1598
39302 " if (!has_function)\n"
39303 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
39305 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
39306 " /* Now it's safe to call\n"
39307 " guestfs_dd (g, \"foo\", \"bar\");\n"
39311 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
39318 #: ../src/guestfs.pod:1611
39320 "You may think the above is an awful lot of hassle, and it is. There are "
39321 "other ways outside of the C linking system to ensure that this kind of "
39322 "incompatibility never arises, such as using package versioning:"
39326 #: ../src/guestfs.pod:1616
39329 " Requires: libguestfs >= 1.0.80\n"
39334 #: ../src/guestfs.pod:1618
39335 msgid "CALLS WITH OPTIONAL ARGUMENTS"
39339 #: ../src/guestfs.pod:1620
39341 "A recent feature of the API is the introduction of calls which take optional "
39342 "arguments. In C these are declared 3 ways. The main way is as a call which "
39343 "takes variable arguments (ie. C<...>), as in this example:"
39347 #: ../src/guestfs.pod:1625
39350 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39353 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39357 #: ../src/guestfs.pod:1627
39359 "Call this with a list of optional arguments, terminated by C<-1>. So to "
39360 "call with no optional arguments specified:"
39364 #: ../src/guestfs.pod:1630
39367 " guestfs_add_drive_opts (g, filename, -1);\n"
39370 " guestfs_add_drive_opts (g, filename, -1);\n"
39374 #: ../src/guestfs.pod:1632
39375 msgid "With a single optional argument:"
39379 #: ../src/guestfs.pod:1634
39382 " guestfs_add_drive_opts (g, filename,\n"
39383 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39387 " guestfs_add_drive_opts (g, filename,\n"
39388 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39393 #: ../src/guestfs.pod:1638
39398 #: ../src/guestfs.pod:1640
39401 " guestfs_add_drive_opts (g, filename,\n"
39402 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39403 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39407 " guestfs_add_drive_opts (g, filename,\n"
39408 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39409 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39414 #: ../src/guestfs.pod:1645
39416 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
39421 #: ../src/guestfs.pod:1648
39422 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39426 #: ../src/guestfs.pod:1650
39428 "The second variant has the same name with the suffix C<_va>, which works the "
39429 "same way but takes a C<va_list>. See the C manual for details. For the "
39430 "example function, this is declared:"
39434 #: ../src/guestfs.pod:1654
39437 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39438 " va_list args);\n"
39441 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39442 " va_list args);\n"
39446 #: ../src/guestfs.pod:1657
39447 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39451 #: ../src/guestfs.pod:1659
39453 "The third variant is useful where you need to construct these calls. You "
39454 "pass in a structure where you fill in the optional fields. The structure "
39455 "has a bitmask as the first element which you must set to indicate which "
39456 "fields you have filled in. For our example function the structure and call "
39461 #: ../src/guestfs.pod:1665
39464 " struct guestfs_add_drive_opts_argv {\n"
39465 " uint64_t bitmask;\n"
39467 " const char *format;\n"
39470 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39471 " const struct guestfs_add_drive_opts_argv *optargs);\n"
39474 " struct guestfs_add_drive_opts_argv {\n"
39475 " uint64_t bitmask;\n"
39477 " const char *format;\n"
39480 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39481 " const struct guestfs_add_drive_opts_argv *optargs);\n"
39485 #: ../src/guestfs.pod:1674
39486 msgid "You could call it like this:"
39490 #: ../src/guestfs.pod:1676
39493 " struct guestfs_add_drive_opts_argv optargs = {\n"
39494 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39495 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39496 " .readonly = 1,\n"
39497 " .format = \"qcow2\"\n"
39501 " struct guestfs_add_drive_opts_argv optargs = {\n"
39502 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39503 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39504 " .readonly = 1,\n"
39505 " .format = \"qcow2\"\n"
39510 #: ../src/guestfs.pod:1683
39513 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39516 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39520 #: ../src/guestfs.pod:1691
39521 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39525 #: ../src/guestfs.pod:1696
39526 msgid "You do not need to fill in all fields of the structure."
39530 #: ../src/guestfs.pod:1700
39532 "There must be a one-to-one correspondence between fields of the structure "
39533 "that are filled in, and bits set in the bitmask."
39537 #: ../src/guestfs.pod:1705
39538 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39542 #: ../src/guestfs.pod:1707
39544 "In other languages, optional arguments are expressed in the way that is "
39545 "natural for that language. We refer you to the language-specific "
39546 "documentation for more details on that."
39550 #: ../src/guestfs.pod:1711
39551 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39555 #: ../src/guestfs.pod:1713
39556 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39560 #: ../src/guestfs.pod:1715
39562 "B<Note:> This section documents the generic event mechanism introduced in "
39563 "libguestfs 1.10, which you should use in new code if possible. The old "
39564 "functions C<guestfs_set_log_message_callback>, "
39565 "C<guestfs_set_subprocess_quit_callback>, "
39566 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39567 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39568 "page. Because of the ABI guarantee, the old functions continue to work."
39572 #: ../src/guestfs.pod:1724
39574 "Handles generate events when certain things happen, such as log messages "
39575 "being generated, progress messages during long-running operations, or the "
39576 "handle being closed. The API calls described below let you register a "
39577 "callback to be called when events happen. You can register multiple "
39578 "callbacks (for the same, different or overlapping sets of events), and "
39579 "individually remove callbacks. If callbacks are not removed, then they "
39580 "remain in force until the handle is closed."
39584 #: ../src/guestfs.pod:1732
39586 "In the current implementation, events are only generated synchronously: that "
39587 "means that events (and hence callbacks) can only happen while you are in the "
39588 "middle of making another libguestfs call. The callback is called in the "
39593 #: ../src/guestfs.pod:1737
39595 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39596 "unsigned integers, or a message buffer. Payloads are discussed later on."
39600 #: ../src/guestfs.pod:1741
39601 msgid "CLASSES OF EVENTS"
39605 #: ../src/guestfs.pod:1745
39606 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39610 #: ../src/guestfs.pod:1748
39612 "The callback function will be called while the handle is being closed "
39613 "(synchronously from L</guestfs_close>)."
39617 #: ../src/guestfs.pod:1751
39619 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39620 "handles that are open when the program exits. This means that this callback "
39621 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39622 "problems in higher-level languages (eg. if your HLL interpreter has already "
39623 "been cleaned up by the time this is called, and if your callback then jumps "
39624 "into some HLL function)."
39628 #: ../src/guestfs.pod:1758
39630 "If no callback is registered: the handle is closed without any callback "
39635 #: ../src/guestfs.pod:1761
39636 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39640 #: ../src/guestfs.pod:1764
39642 "The callback function will be called when the child process quits, either "
39643 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
39644 "corresponds to a transition from any state to the CONFIG state)."
39648 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39649 msgid "If no callback is registered: the event is ignored."
39653 #: ../src/guestfs.pod:1770
39654 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39658 #: ../src/guestfs.pod:1773
39660 "The callback function will be called when the child process becomes ready "
39661 "first time after it has been launched. (This corresponds to a transition "
39662 "from LAUNCHING to the READY state)."
39666 #: ../src/guestfs.pod:1779
39667 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39671 #: ../src/guestfs.pod:1782
39673 "Some long-running operations can generate progress messages. If this "
39674 "callback is registered, then it will be called each time a progress message "
39675 "is generated (usually two seconds after the operation started, and three "
39676 "times per second thereafter until it completes, although the frequency may "
39677 "change in future versions)."
39681 #: ../src/guestfs.pod:1788
39683 "The callback receives in the payload four unsigned 64 bit numbers which are "
39684 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39688 #: ../src/guestfs.pod:1791
39690 "The units of C<total> are not defined, although for some operations C<total> "
39691 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39692 "or megabytes), and C<position> may be the portion which has been transferred."
39696 #: ../src/guestfs.pod:1796
39697 msgid "The only defined and stable parts of the API are:"
39701 #: ../src/guestfs.pod:1802
39703 "The callback can display to the user some type of progress bar or indicator "
39704 "which shows the ratio of C<position>:C<total>."
39708 #: ../src/guestfs.pod:1807
39709 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39713 #: ../src/guestfs.pod:1811
39715 "If any progress notification is sent during a call, then a final progress "
39716 "notification is always sent when C<position> = C<total> (I<unless> the call "
39717 "fails with an error)."
39721 #: ../src/guestfs.pod:1815
39723 "This is to simplify caller code, so callers can easily set the progress "
39724 "indicator to \"100%\" at the end of the operation, without requiring special "
39725 "code to detect this case."
39729 #: ../src/guestfs.pod:1821
39731 "For some calls we are unable to estimate the progress of the call, but we "
39732 "can still generate progress messages to indicate activity. This is known as "
39733 "\"pulse mode\", and is directly supported by certain progress bar "
39734 "implementations (eg. GtkProgressBar)."
39738 #: ../src/guestfs.pod:1826
39740 "For these calls, zero or more progress messages are generated with "
39741 "C<position = 0> and C<total = 1>, followed by a final message with "
39742 "C<position = total = 1>."
39746 #: ../src/guestfs.pod:1830
39748 "As noted above, if the call fails with an error then the final message may "
39749 "not be generated."
39753 #: ../src/guestfs.pod:1835
39755 "The callback also receives the procedure number (C<proc_nr>) and serial "
39756 "number (C<serial>) of the call. These are only useful for debugging "
39757 "protocol issues, and the callback can normally ignore them. The callback "
39758 "may want to print these numbers in error messages or debugging messages."
39762 #: ../src/guestfs.pod:1841
39763 msgid "If no callback is registered: progress messages are discarded."
39767 #: ../src/guestfs.pod:1843
39768 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39772 #: ../src/guestfs.pod:1846
39774 "The callback function is called whenever a log message is generated by qemu, "
39775 "the appliance kernel, guestfsd (daemon), or utility programs."
39779 #: ../src/guestfs.pod:1849
39781 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39782 "guestfs_launch>) then additional debug messages are generated."
39786 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39788 "If no callback is registered: the messages are discarded unless the verbose "
39789 "flag is set in which case they are sent to stderr. You can override the "
39790 "printing of verbose messages to stderr by setting up a callback."
39794 #: ../src/guestfs.pod:1857
39795 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39799 #: ../src/guestfs.pod:1860
39801 "The callback function is called whenever a log message is generated by the "
39802 "library part of libguestfs."
39806 #: ../src/guestfs.pod:1863
39808 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39809 "messages are generated."
39813 #: ../src/guestfs.pod:1871
39814 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39818 #: ../src/guestfs.pod:1874
39820 "The callback function is called whenever a trace message is generated. This "
39821 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39825 #: ../src/guestfs.pod:1877
39827 "If no callback is registered: the messages are sent to stderr. You can "
39828 "override the printing of trace messages to stderr by setting up a callback."
39832 #: ../src/guestfs.pod:1881
39833 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39837 #: ../src/guestfs.pod:1884
39839 "The callback function is called whenever a libguestfs function is entered."
39843 #: ../src/guestfs.pod:1887
39845 "The payload is a string which contains the name of the function that we are "
39846 "entering (not including C<guestfs_> prefix)."
39850 #: ../src/guestfs.pod:1890
39852 "Note that libguestfs functions can call themselves, so you may see many "
39853 "events from a single call. A few libguestfs functions do not generate this "
39858 #: ../src/guestfs.pod:1898
39859 msgid "guestfs_set_event_callback"
39863 #: ../src/guestfs.pod:1900
39866 " int guestfs_set_event_callback (guestfs_h *g,\n"
39867 " guestfs_event_callback cb,\n"
39868 " uint64_t event_bitmask,\n"
39870 " void *opaque);\n"
39875 #: ../src/guestfs.pod:1906
39877 "This function registers a callback (C<cb>) for all event classes in the "
39878 "C<event_bitmask>."
39882 #: ../src/guestfs.pod:1909
39884 "For example, to register for all log message events, you could call this "
39885 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
39886 "To register a single callback for all possible classes of events, use "
39887 "C<GUESTFS_EVENT_ALL>."
39891 #: ../src/guestfs.pod:1915
39892 msgid "C<flags> should always be passed as 0."
39896 #: ../src/guestfs.pod:1917
39898 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
39899 "it for any purpose."
39903 #: ../src/guestfs.pod:1920
39905 "The return value is the event handle (an integer) which you can use to "
39906 "delete the callback (see below)."
39910 #: ../src/guestfs.pod:1923
39912 "If there is an error, this function returns C<-1>, and sets the error in the "
39913 "handle in the usual way (see L</guestfs_last_error> etc.)"
39917 #: ../src/guestfs.pod:1926
39919 "Callbacks remain in effect until they are deleted, or until the handle is "
39924 #: ../src/guestfs.pod:1929
39926 "In the case where multiple callbacks are registered for a particular event "
39927 "class, all of the callbacks are called. The order in which multiple "
39928 "callbacks are called is not defined."
39932 #: ../src/guestfs.pod:1933
39933 msgid "guestfs_delete_event_callback"
39937 #: ../src/guestfs.pod:1935
39940 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39945 #: ../src/guestfs.pod:1937
39947 "Delete a callback that was previously registered. C<event_handle> should be "
39948 "the integer that was returned by a previous call to "
39949 "C<guestfs_set_event_callback> on the same handle."
39953 #: ../src/guestfs.pod:1941
39954 msgid "guestfs_event_callback"
39958 #: ../src/guestfs.pod:1943
39961 " typedef void (*guestfs_event_callback) (\n"
39964 " uint64_t event,\n"
39965 " int event_handle,\n"
39967 " const char *buf, size_t buf_len,\n"
39968 " const uint64_t *array, size_t array_len);\n"
39973 #: ../src/guestfs.pod:1952
39975 "This is the type of the event callback function that you have to provide."
39979 #: ../src/guestfs.pod:1955
39981 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39982 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39983 "handle, and C<flags> which in the current API you should ignore."
39987 #: ../src/guestfs.pod:1959
39989 "The remaining parameters contain the event payload (if any). Each event may "
39990 "contain a payload, which usually relates to the event class, but for future "
39991 "proofing your code should be written to handle any payload for any event "
39996 #: ../src/guestfs.pod:1964
39998 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39999 "there is no message buffer). Note that this message buffer can contain "
40000 "arbitrary 8 bit data, including NUL bytes."
40004 #: ../src/guestfs.pod:1968
40006 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
40007 "moment this is only used for progress messages."
40011 #: ../src/guestfs.pod:1971
40012 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40016 #: ../src/guestfs.pod:1973
40018 "One motivation for the generic event API was to allow GUI programs to "
40019 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
40020 "unconditionally to C<stderr>."
40024 #: ../src/guestfs.pod:1977
40026 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40027 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
40028 "messages are not events; you must capture error messages separately)."
40032 #: ../src/guestfs.pod:1982
40034 "Programs have to set up a callback to capture the classes of events of "
40039 #: ../src/guestfs.pod:1985
40043 " guestfs_set_event_callback\n"
40044 " (g, message_callback,\n"
40045 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40046 " GUESTFS_EVENT_TRACE,\n"
40047 " 0, NULL) == -1)\n"
40048 " if (eh == -1) {\n"
40049 " // handle error in the usual way\n"
40055 #: ../src/guestfs.pod:1995
40057 "The callback can then direct messages to the appropriate place. In this "
40058 "example, messages are directed to syslog:"
40062 #: ../src/guestfs.pod:1998
40066 " message_callback (\n"
40069 " uint64_t event,\n"
40070 " int event_handle,\n"
40072 " const char *buf, size_t buf_len,\n"
40073 " const uint64_t *array, size_t array_len)\n"
40075 " const int priority = LOG_USER|LOG_INFO;\n"
40076 " if (buf_len > 0)\n"
40077 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
40083 #: ../src/guestfs.pod:2013
40084 msgid "CANCELLING LONG TRANSFERS"
40088 #: ../src/guestfs.pod:2015
40090 "Some operations can be cancelled by the caller while they are in progress. "
40091 "Currently only operations that involve uploading or downloading data can be "
40092 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
40093 "parameters in the generator)."
40097 #: ../src/guestfs.pod:2020
40098 msgid "guestfs_user_cancel"
40102 #: ../src/guestfs.pod:2022
40105 " void guestfs_user_cancel (guestfs_h *g);\n"
40110 #: ../src/guestfs.pod:2024
40112 "C<guestfs_user_cancel> cancels the current upload or download operation."
40116 #: ../src/guestfs.pod:2027
40118 "Unlike most other libguestfs calls, this function is signal safe and thread "
40119 "safe. You can call it from a signal handler or from another thread, without "
40120 "needing to do any locking."
40124 #: ../src/guestfs.pod:2031
40126 "The transfer that was in progress (if there is one) will stop shortly "
40127 "afterwards, and will return an error. The errno (see L</"
40128 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
40129 "out if the operation was cancelled or failed because of another error."
40133 #: ../src/guestfs.pod:2037
40135 "No cleanup is performed: for example, if a file was being uploaded then "
40136 "after cancellation there may be a partially uploaded file. It is the "
40137 "caller's responsibility to clean up if necessary."
40141 #: ../src/guestfs.pod:2041
40142 msgid "There are two common places that you might call C<guestfs_user_cancel>."
40146 #: ../src/guestfs.pod:2043
40148 "In an interactive text-based program, you might call it from a C<SIGINT> "
40149 "signal handler so that pressing C<^C> cancels the current operation. (You "
40150 "also need to call L</guestfs_set_pgroup> so that child processes don't "
40151 "receive the C<^C> signal)."
40155 #: ../src/guestfs.pod:2048
40157 "In a graphical program, when the main thread is displaying a progress bar "
40158 "with a cancel button, wire up the cancel button to call this function."
40162 #: ../src/guestfs.pod:2052
40163 msgid "PRIVATE DATA AREA"
40167 #: ../src/guestfs.pod:2054
40169 "You can attach named pieces of private data to the libguestfs handle, fetch "
40170 "them by name, and walk over them, for the lifetime of the handle. This is "
40171 "called the private data area and is only available from the C API."
40175 #: ../src/guestfs.pod:2059
40176 msgid "To attach a named piece of data, use the following call:"
40180 #: ../src/guestfs.pod:2061
40183 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40186 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40190 #: ../src/guestfs.pod:2063
40192 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
40193 "pointer (which can be C<NULL>). Any previous item with the same key is "
40198 #: ../src/guestfs.pod:2067
40200 "You can use any C<key> you want, but your key should I<not> start with an "
40201 "underscore character. Keys beginning with an underscore character are "
40202 "reserved for internal libguestfs purposes (eg. for implementing language "
40203 "bindings). It is recommended that you prefix the key with some unique "
40204 "string to avoid collisions with other users."
40208 #: ../src/guestfs.pod:2073
40209 msgid "To retrieve the pointer, use:"
40213 #: ../src/guestfs.pod:2075
40216 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40219 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40223 #: ../src/guestfs.pod:2077
40225 "This function returns C<NULL> if either no data is found associated with "
40226 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
40231 #: ../src/guestfs.pod:2081
40233 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
40234 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
40235 "all. In particular, libguestfs does I<not> try to free the data when the "
40236 "handle is closed. If the data must be freed, then the caller must either "
40237 "free it before calling L</guestfs_close> or must set up a close callback to "
40238 "do it (see L</GUESTFS_EVENT_CLOSE>)."
40242 #: ../src/guestfs.pod:2088
40243 msgid "To walk over all entries, use these two functions:"
40247 #: ../src/guestfs.pod:2090
40250 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
40255 #: ../src/guestfs.pod:2092
40258 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
40263 #: ../src/guestfs.pod:2094
40265 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
40266 "not have any particular meaning -- keys are not returned in any defined "
40267 "order). A pointer to the key is returned in C<*key_rtn> and the "
40268 "corresponding data pointer is returned from the function. C<NULL> is "
40269 "returned if there are no keys stored in the handle."
40273 #: ../src/guestfs.pod:2100
40275 "C<guestfs_next_private> returns the next key, pointer pair. The return "
40276 "value of this function is also C<NULL> is there are no further entries to "
40281 #: ../src/guestfs.pod:2104
40282 msgid "Notes about walking over entries:"
40286 #: ../src/guestfs.pod:2110
40288 "You must not call C<guestfs_set_private> while walking over the entries."
40292 #: ../src/guestfs.pod:2115
40294 "The handle maintains an internal iterator which is reset when you call "
40295 "C<guestfs_first_private>. This internal iterator is invalidated when you "
40296 "call C<guestfs_set_private>."
40300 #: ../src/guestfs.pod:2121
40301 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
40305 #: ../src/guestfs.pod:2123
40308 " guestfs_set_private (g, key, NULL);\n"
40313 #: ../src/guestfs.pod:2125
40314 msgid "then that C<key> is not returned when walking."
40318 #: ../src/guestfs.pod:2129
40320 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
40321 "C<guestfs_next_private> or C<guestfs_set_private>."
40325 #: ../src/guestfs.pod:2135
40327 "The following example code shows how to print all keys and data pointers "
40328 "that are associated with the handle C<g>:"
40332 #: ../src/guestfs.pod:2138
40335 " const char *key;\n"
40336 " void *data = guestfs_first_private (g, &key);\n"
40337 " while (data != NULL)\n"
40339 " printf (\"key = %s, data = %p\\n\", key, data);\n"
40340 " data = guestfs_next_private (g, &key);\n"
40346 #: ../src/guestfs.pod:2146
40348 "More commonly you are only interested in keys that begin with an application-"
40349 "specific prefix C<foo_>. Modify the loop like so:"
40353 #: ../src/guestfs.pod:2149
40356 " const char *key;\n"
40357 " void *data = guestfs_first_private (g, &key);\n"
40358 " while (data != NULL)\n"
40360 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40361 " printf (\"key = %s, data = %p\\n\", key, data);\n"
40362 " data = guestfs_next_private (g, &key);\n"
40368 #: ../src/guestfs.pod:2158
40370 "If you need to modify keys while walking, then you have to jump back to the "
40371 "beginning of the loop. For example, to delete all keys prefixed with "
40376 #: ../src/guestfs.pod:2162
40379 " const char *key;\n"
40382 " data = guestfs_first_private (g, &key);\n"
40383 " while (data != NULL)\n"
40385 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40387 " guestfs_set_private (g, key, NULL);\n"
40388 " /* note that 'key' pointer is now invalid, and so is\n"
40389 " the internal iterator */\n"
40392 " data = guestfs_next_private (g, &key);\n"
40398 #: ../src/guestfs.pod:2178
40400 "Note that the above loop is guaranteed to terminate because the keys are "
40401 "being deleted, but other manipulations of keys within the loop might not "
40402 "terminate unless you also maintain an indication of which keys have been "
40407 #: ../src/guestfs.pod:2183
40412 #: ../src/guestfs.pod:2185
40414 "The libguestfs C library can be probed using systemtap or DTrace. This is "
40415 "true of any library, not just libguestfs. However libguestfs also contains "
40416 "static markers to help in probing internal operations."
40420 #: ../src/guestfs.pod:2189
40421 msgid "You can list all the static markers by doing:"
40425 #: ../src/guestfs.pod:2191
40428 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
40429 " .provider(\"guestfs\").mark(\"*\")'\n"
40434 #: ../src/guestfs.pod:2194
40436 "B<Note:> These static markers are I<not> part of the stable API and may "
40437 "change in future versions."
40441 #: ../src/guestfs.pod:2197
40442 msgid "SYSTEMTAP SCRIPT EXAMPLE"
40446 #: ../src/guestfs.pod:2199
40448 "This script contains examples of displaying both the static markers and some "
40449 "ordinary C entry points:"
40453 #: ../src/guestfs.pod:2202
40461 #: ../src/guestfs.pod:2204
40464 " function display_time () {\n"
40465 " now = gettimeofday_us ();\n"
40468 " delta = now - last;\n"
40474 #: ../src/guestfs.pod:2211
40477 " printf (\"%d (+%d):\", now, delta);\n"
40483 #: ../src/guestfs.pod:2214
40488 " printf (\"ready\\n\");\n"
40494 #: ../src/guestfs.pod:2219
40497 " /* Display all calls to static markers. */\n"
40498 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40499 " .provider(\"guestfs\").mark(\"*\") ? {\n"
40500 " display_time();\n"
40501 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40507 #: ../src/guestfs.pod:2226
40510 " /* Display all calls to guestfs_mkfs* functions. */\n"
40511 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40512 " .function(\"guestfs_mkfs*\") ? {\n"
40513 " display_time();\n"
40514 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40520 #: ../src/guestfs.pod:2233
40522 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40523 "program. Note that you either have to be root, or you have to add yourself "
40524 "to several special stap groups. Consult the systemtap documentation for "
40525 "more information."
40529 #: ../src/guestfs.pod:2238
40532 " # stap /tmp/test.stap\n"
40538 #: ../src/guestfs.pod:2241
40539 msgid "In another terminal, run a guestfish command such as this:"
40543 #: ../src/guestfs.pod:2245
40544 msgid "In the first terminal, stap trace output similar to this is shown:"
40548 #: ../src/guestfs.pod:2247
40551 " 1318248056692655 (+0):\tlaunch_start\n"
40552 " 1318248056692850 (+195): launch_build_appliance_start\n"
40553 " 1318248056818285 (+125435): launch_build_appliance_end\n"
40554 " 1318248056838059 (+19774): launch_run_qemu\n"
40555 " 1318248061071167 (+4233108): launch_end\n"
40556 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40561 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40566 #: ../src/guestfs.pod:2256
40568 "<!-- old anchor for the next section --> <a name="
40569 "\"state_machine_and_low_level_event_api\"/>"
40571 "<!-- old anchor for the next section --> <a name="
40572 "\"state_machine_and_low_level_event_api\"/>"
40575 #: ../src/guestfs.pod:2261
40576 msgid "ARCHITECTURE"
40577 msgstr "АРХІТЕКТУРА"
40580 #: ../src/guestfs.pod:2263
40582 "Internally, libguestfs is implemented by running an appliance (a special "
40583 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
40584 "process of the main program."
40588 #: ../src/guestfs.pod:2267
40591 " ___________________\n"
40593 " | main program |\n"
40595 " | | child process / appliance\n"
40596 " | | __________________________\n"
40598 " +-------------------+ RPC | +-----------------+ |\n"
40599 " | libguestfs <--------------------> guestfsd | |\n"
40600 " | | | +-----------------+ |\n"
40601 " \\___________________/ | | Linux kernel | |\n"
40602 " | +--^--------------+ |\n"
40603 " \\_________|________________/\n"
40605 " _______v______\n"
40608 " | disk image |\n"
40609 " \\______________/\n"
40614 #: ../src/guestfs.pod:2287
40616 "The library, linked to the main program, creates the child process and hence "
40617 "the appliance in the L</guestfs_launch> function."
40621 #: ../src/guestfs.pod:2290
40623 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40624 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40625 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
40626 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
40627 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
40628 "attached to the qemu process which translates device access by the "
40629 "appliance's Linux kernel into accesses to the image."
40633 #: ../src/guestfs.pod:2299
40635 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
40636 "Although the disk image you are attached to might also be used by some "
40637 "virtual machine, libguestfs doesn't know or care about this. (But you will "
40638 "care if both libguestfs's qemu process and your virtual machine are trying "
40639 "to update the disk image at the same time, since these usually results in "
40640 "massive disk corruption)."
40644 #: ../src/guestfs.pod:2306
40645 msgid "STATE MACHINE"
40646 msgstr "СКІНЧЕННИЙ АВТОМАТ"
40649 #: ../src/guestfs.pod:2308
40650 msgid "libguestfs uses a state machine to model the child process:"
40654 #: ../src/guestfs.pod:2310
40658 " guestfs_create\n"
40666 " / | \\ \\ guestfs_launch\n"
40667 " / | _\\__V______\n"
40669 " / | | LAUNCHING |\n"
40670 " / | \\___________/\n"
40672 " / | guestfs_launch\n"
40674 " ______ / __|____V\n"
40675 " / \\ ------> / \\\n"
40676 " | BUSY | | READY |\n"
40677 " \\______/ <------ \\________/\n"
40682 #: ../src/guestfs.pod:2332
40684 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40685 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40686 "(3) alternating between READY and BUSY as commands are issued to, and "
40687 "carried out by, the child process."
40691 #: ../src/guestfs.pod:2337
40693 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40694 "asynchronously at any time (eg. due to some internal error), and that causes "
40695 "the state to transition back to CONFIG."
40699 #: ../src/guestfs.pod:2341
40701 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40702 "issued when in the CONFIG state."
40706 #: ../src/guestfs.pod:2344
40708 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
40709 "L</guestfs_launch> blocks until the child process is READY to accept "
40710 "commands (or until some failure or timeout). L</guestfs_launch> internally "
40711 "moves the state from CONFIG to LAUNCHING while it is running."
40715 #: ../src/guestfs.pod:2350
40717 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40718 "state. These API calls block waiting for the command to be carried out (ie. "
40719 "the state to transition to BUSY and then back to READY). There are no non-"
40720 "blocking versions, and no way to issue more than one command per handle at "
40725 #: ../src/guestfs.pod:2356
40727 "Finally, the child process sends asynchronous messages back to the main "
40728 "program, such as kernel log messages. You can register a callback to "
40729 "receive these messages."
40733 #: ../src/guestfs.pod:2360
40738 #: ../src/guestfs.pod:2362
40739 msgid "APPLIANCE BOOT PROCESS"
40743 #: ../src/guestfs.pod:2364
40745 "This process has evolved and continues to evolve. The description here "
40746 "corresponds only to the current version of libguestfs and is provided for "
40747 "information only."
40751 #: ../src/guestfs.pod:2368
40753 "In order to follow the stages involved below, enable libguestfs debugging "
40754 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40758 #: ../src/guestfs.pod:2373
40759 msgid "Create the appliance"
40763 #: ../src/guestfs.pod:2375
40765 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40766 "initrd and the appliance."
40770 #: ../src/guestfs.pod:2378
40772 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40773 "directory if C<TMPDIR> is set)."
40777 #: ../src/guestfs.pod:2381
40779 "For a complete description of how the appliance is created and cached, read "
40780 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40784 #: ../src/guestfs.pod:2385
40785 msgid "Start qemu and boot the kernel"
40789 #: ../src/guestfs.pod:2387
40790 msgid "qemu is invoked to boot the kernel."
40794 #: ../src/guestfs.pod:2389
40795 msgid "Run the initrd"
40799 #: ../src/guestfs.pod:2391
40801 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
40802 "appliance. The purpose of the initrd is to load enough kernel modules in "
40803 "order that the appliance itself can be mounted and started."
40807 #: ../src/guestfs.pod:2395
40809 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40814 #: ../src/guestfs.pod:2398
40816 "When the initrd has started you will see messages showing that kernel "
40817 "modules are being loaded, similar to this:"
40821 #: ../src/guestfs.pod:2401
40824 " febootstrap: ext2 mini initrd starting up\n"
40825 " febootstrap: mounting /sys\n"
40826 " febootstrap: internal insmod libcrc32c.ko\n"
40827 " febootstrap: internal insmod crc32c-intel.ko\n"
40832 #: ../src/guestfs.pod:2406
40833 msgid "Find and mount the appliance device"
40837 #: ../src/guestfs.pod:2408
40839 "The appliance is a sparse file containing an ext2 filesystem which contains "
40840 "a familiar (although reduced in size) Linux operating system. It would "
40841 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40845 #: ../src/guestfs.pod:2412
40847 "The regular disks being inspected by libguestfs are the first devices "
40848 "exposed by qemu (eg. as C</dev/vda>)."
40852 #: ../src/guestfs.pod:2415
40854 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40855 "there was only one regular disk)."
40859 #: ../src/guestfs.pod:2418
40861 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40862 "and switch root into the appliance, and run C</init> from the appliance."
40866 #: ../src/guestfs.pod:2422
40867 msgid "If this works successfully you will see messages such as:"
40871 #: ../src/guestfs.pod:2424
40874 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40875 " febootstrap: creating /dev/root as block special 252:16\n"
40876 " febootstrap: mounting new root on /root\n"
40877 " febootstrap: chroot\n"
40878 " Starting /init script ...\n"
40883 #: ../src/guestfs.pod:2430
40885 "Note that C<Starting /init script ...> indicates that the appliance's init "
40886 "script is now running."
40890 #: ../src/guestfs.pod:2433
40891 msgid "Initialize the appliance"
40895 #: ../src/guestfs.pod:2435
40897 "The appliance itself now initializes itself. This involves starting certain "
40898 "processes like C<udev>, possibly printing some debug information, and "
40899 "finally running the daemon (C<guestfsd>)."
40903 #: ../src/guestfs.pod:2439
40908 #: ../src/guestfs.pod:2441
40910 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40915 #: ../src/guestfs.pod:2444
40918 " verbose daemon enabled\n"
40923 #: ../src/guestfs.pod:2446
40925 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40926 "connected on the other end to the library."
40930 #: ../src/guestfs.pod:2449
40932 "The daemon connects to this port (and hence to the library) and sends a four "
40933 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40934 "protocol (see below)."
40938 #: ../src/guestfs.pod:2455
40939 msgid "COMMUNICATION PROTOCOL"
40943 #: ../src/guestfs.pod:2457
40945 "Don't rely on using this protocol directly. This section documents how it "
40946 "currently works, but it may change at any time."
40950 #: ../src/guestfs.pod:2460
40952 "The protocol used to talk between the library and the daemon running inside "
40953 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40954 "1014, RFC 1832, RFC 4506)."
40958 #: ../src/guestfs.pod:2464
40960 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40961 "this file is automatically generated)."
40965 #: ../src/guestfs.pod:2467
40967 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40968 "and C<FileOut> parameters, which are handled with very simple request/reply "
40969 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40970 "parameters, which use the same request and reply messages, but they may also "
40971 "be followed by files sent using a chunked encoding."
40975 #: ../src/guestfs.pod:2474
40976 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40980 #: ../src/guestfs.pod:2476
40981 msgid "For ordinary functions, the request message is:"
40985 #: ../src/guestfs.pod:2478
40988 " total length (header + arguments,\n"
40989 " but not including the length word itself)\n"
40990 " struct guestfs_message_header (encoded as XDR)\n"
40991 " struct guestfs_<foo>_args (encoded as XDR)\n"
40996 #: ../src/guestfs.pod:2483
40998 "The total length field allows the daemon to allocate a fixed size buffer "
40999 "into which it slurps the rest of the message. As a result, the total length "
41000 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41001 "effective size of any request is limited to somewhere under this size."
41005 #: ../src/guestfs.pod:2489
41007 "Note also that many functions don't take any arguments, in which case the "
41008 "C<guestfs_I<foo>_args> is completely omitted."
41012 #: ../src/guestfs.pod:2492
41014 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41015 "receiver knows what type of args structure to expect, or none at all."
41019 #: ../src/guestfs.pod:2496
41021 "For functions that take optional arguments, the optional arguments are "
41022 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41023 "arguments. A bitmask in the header indicates which optional arguments are "
41024 "meaningful. The bitmask is also checked to see if it contains bits set "
41025 "which the daemon does not know about (eg. if more optional arguments were "
41026 "added in a later version of the library), and this causes the call to be "
41031 #: ../src/guestfs.pod:2504
41032 msgid "The reply message for ordinary functions is:"
41036 #: ../src/guestfs.pod:2506
41039 " total length (header + ret,\n"
41040 " but not including the length word itself)\n"
41041 " struct guestfs_message_header (encoded as XDR)\n"
41042 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41047 #: ../src/guestfs.pod:2511
41049 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41050 "functions that return no formal return values."
41054 #: ../src/guestfs.pod:2514
41056 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41060 #: ../src/guestfs.pod:2517
41062 "In the case of an error, a flag is set in the header, and the reply message "
41063 "is slightly changed:"
41067 #: ../src/guestfs.pod:2520
41070 " total length (header + error,\n"
41071 " but not including the length word itself)\n"
41072 " struct guestfs_message_header (encoded as XDR)\n"
41073 " struct guestfs_message_error (encoded as XDR)\n"
41078 #: ../src/guestfs.pod:2525
41080 "The C<guestfs_message_error> structure contains the error message as a "
41085 #: ../src/guestfs.pod:2528
41086 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
41090 #: ../src/guestfs.pod:2530
41092 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
41093 "The normal request message is sent (see above). However this is followed by "
41094 "a sequence of file chunks."
41098 #: ../src/guestfs.pod:2534
41101 " total length (header + arguments,\n"
41102 " but not including the length word itself,\n"
41103 " and not including the chunks)\n"
41104 " struct guestfs_message_header (encoded as XDR)\n"
41105 " struct guestfs_<foo>_args (encoded as XDR)\n"
41106 " sequence of chunks for FileIn param #0\n"
41107 " sequence of chunks for FileIn param #1 etc.\n"
41112 #: ../src/guestfs.pod:2542
41113 msgid "The \"sequence of chunks\" is:"
41117 #: ../src/guestfs.pod:2544
41120 " length of chunk (not including length word itself)\n"
41121 " struct guestfs_chunk (encoded as XDR)\n"
41122 " length of chunk\n"
41123 " struct guestfs_chunk (encoded as XDR)\n"
41125 " length of chunk\n"
41126 " struct guestfs_chunk (with data.data_len == 0)\n"
41131 #: ../src/guestfs.pod:2552
41133 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
41134 "is set in the final chunk to indicate either successful completion or early "
41139 #: ../src/guestfs.pod:2556
41141 "At time of writing there are no functions that have more than one FileIn "
41142 "parameter. However this is (theoretically) supported, by sending the "
41143 "sequence of chunks for each FileIn parameter one after another (from left to "
41148 #: ../src/guestfs.pod:2561
41150 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
41151 "transfer. The library does this by sending a chunk with a special flag set "
41152 "to indicate cancellation. When the daemon sees this, it cancels the whole "
41153 "RPC, does I<not> send any reply, and goes back to reading the next request."
41157 #: ../src/guestfs.pod:2567
41159 "The daemon may also cancel. It does this by writing a special word "
41160 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
41161 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
41162 "cancel chunk). The special word is chosen so that even if cancellation "
41163 "happens right at the end of the transfer (after the library has finished "
41164 "writing and has started listening for the reply), the \"spurious\" cancel "
41165 "flag will not be confused with the reply message."
41169 #: ../src/guestfs.pod:2576
41171 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
41172 "limit), and also files where the size is not known in advance (eg. from "
41173 "pipes or sockets). However the chunks are rather small "
41174 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
41175 "to keep much in memory."
41179 #: ../src/guestfs.pod:2582
41180 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
41184 #: ../src/guestfs.pod:2584
41186 "The protocol for FileOut parameters is exactly the same as for FileIn "
41187 "parameters, but with the roles of daemon and library reversed."
41191 #: ../src/guestfs.pod:2587
41194 " total length (header + ret,\n"
41195 " but not including the length word itself,\n"
41196 " and not including the chunks)\n"
41197 " struct guestfs_message_header (encoded as XDR)\n"
41198 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41199 " sequence of chunks for FileOut param #0\n"
41200 " sequence of chunks for FileOut param #1 etc.\n"
41205 #: ../src/guestfs.pod:2595
41206 msgid "INITIAL MESSAGE"
41210 #: ../src/guestfs.pod:2597
41212 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
41213 "which indicates that the guest and daemon is alive. This is what L</"
41214 "guestfs_launch> waits for."
41218 #: ../src/guestfs.pod:2601
41219 msgid "PROGRESS NOTIFICATION MESSAGES"
41223 #: ../src/guestfs.pod:2603
41225 "The daemon may send progress notification messages at any time. These are "
41226 "distinguished by the normal length word being replaced by "
41227 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
41231 #: ../src/guestfs.pod:2607
41233 "The library turns them into progress callbacks (see L</"
41234 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
41239 #: ../src/guestfs.pod:2611
41241 "The daemon self-limits the frequency of progress messages it sends (see "
41242 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
41247 #: ../src/guestfs.pod:2615
41248 msgid "LIBGUESTFS VERSION NUMBERS"
41252 #: ../src/guestfs.pod:2617
41254 "Since April 2010, libguestfs has started to make separate development and "
41255 "stable releases, along with corresponding branches in our git repository. "
41256 "These separate releases can be identified by version number:"
41260 #: ../src/guestfs.pod:2622
41263 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
41264 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
41270 " | `-------- sub-version\n"
41272 " `------ always '1' because we don't change the ABI\n"
41277 #: ../src/guestfs.pod:2633
41278 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
41282 #: ../src/guestfs.pod:2635
41284 "As time passes we cherry pick fixes from the development branch and backport "
41285 "those into the stable branch, the effect being that the stable branch should "
41286 "get more stable and less buggy over time. So the stable releases are ideal "
41287 "for people who don't need new features but would just like the software to "
41292 #: ../src/guestfs.pod:2641
41293 msgid "Our criteria for backporting changes are:"
41297 #: ../src/guestfs.pod:2647
41299 "Documentation changes which don't affect any code are backported unless the "
41300 "documentation refers to a future feature which is not in stable."
41304 #: ../src/guestfs.pod:2653
41306 "Bug fixes which are not controversial, fix obvious problems, and have been "
41307 "well tested are backported."
41311 #: ../src/guestfs.pod:2658
41313 "Simple rearrangements of code which shouldn't affect how it works get "
41314 "backported. This is so that the code in the two branches doesn't get too "
41315 "far out of step, allowing us to backport future fixes more easily."
41319 #: ../src/guestfs.pod:2664
41321 "We I<don't> backport new features, new APIs, new tools etc, except in one "
41322 "exceptional case: the new feature is required in order to implement an "
41323 "important bug fix."
41327 #: ../src/guestfs.pod:2670
41329 "A new stable branch starts when we think the new features in development are "
41330 "substantial and compelling enough over the current stable branch to warrant "
41331 "it. When that happens we create new stable and development versions 1.N.0 "
41332 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
41333 "stable at this point, but by backporting fixes from development, that branch "
41334 "will stabilize over time."
41338 #: ../src/guestfs.pod:2678
41339 msgid "EXTENDING LIBGUESTFS"
41343 #: ../src/guestfs.pod:2680
41344 msgid "ADDING A NEW API ACTION"
41348 #: ../src/guestfs.pod:2682
41350 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
41351 "documentation) are generated, and this makes it easy to extend the "
41356 #: ../src/guestfs.pod:2686
41357 msgid "To add a new API action there are two changes:"
41361 #: ../src/guestfs.pod:2692
41363 "You need to add a description of the call (name, parameters, return type, "
41364 "tests, documentation) to C<generator/generator_actions.ml>."
41368 #: ../src/guestfs.pod:2695
41370 "There are two sorts of API action, depending on whether the call goes "
41371 "through to the daemon in the appliance, or is serviced entirely by the "
41372 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
41373 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
41374 "an example of the latter, since a trace flag is maintained in the handle and "
41375 "all tracing is done on the library side."
41379 #: ../src/guestfs.pod:2703
41381 "Most new actions are of the first type, and get added to the "
41382 "C<daemon_functions> list. Each function has a unique procedure number used "
41383 "in the RPC protocol which is assigned to that action when we publish "
41384 "libguestfs and cannot be reused. Take the latest procedure number and "
41389 #: ../src/guestfs.pod:2709
41391 "For library-only actions of the second type, add to the "
41392 "C<non_daemon_functions> list. Since these functions are serviced by the "
41393 "library and do not travel over the RPC mechanism to the daemon, these "
41394 "functions do not need a procedure number, and so the procedure number is set "
41399 #: ../src/guestfs.pod:2717
41400 msgid "Implement the action (in C):"
41404 #: ../src/guestfs.pod:2719
41406 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
41407 "C<daemon/> directory."
41411 #: ../src/guestfs.pod:2722
41413 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
41414 "(note: double underscore) in the C<src/> directory."
41418 #: ../src/guestfs.pod:2725
41419 msgid "In either case, use another function as an example of what to do."
41423 #: ../src/guestfs.pod:2729
41424 msgid "After making these changes, use C<make> to compile."
41428 #: ../src/guestfs.pod:2731
41430 "Note that you don't need to implement the RPC, language bindings, manual "
41431 "pages or anything else. It's all automatically generated from the OCaml "
41436 #: ../src/guestfs.pod:2735
41437 msgid "ADDING TESTS FOR AN API ACTION"
41441 #: ../src/guestfs.pod:2737
41443 "You can supply zero or as many tests as you want per API call. The tests "
41444 "can either be added as part of the API description (C<generator/"
41445 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41446 "into C<regressions/>. Note that adding a script to C<regressions/> is "
41447 "slower, so if possible use the first method."
41451 #: ../src/guestfs.pod:2743
41453 "The following describes the test environment used when you add an API test "
41454 "in C<generator_actions.ml>."
41458 #: ../src/guestfs.pod:2746
41459 msgid "The test environment has 4 block devices:"
41463 #: ../src/guestfs.pod:2750
41464 msgid "C</dev/sda> 500MB"
41465 msgstr "C</dev/sda> 500 МБ"
41468 #: ../src/guestfs.pod:2752
41469 msgid "General block device for testing."
41473 #: ../src/guestfs.pod:2754
41474 msgid "C</dev/sdb> 50MB"
41475 msgstr "C</dev/sdb> 50 МБ"
41478 #: ../src/guestfs.pod:2756
41480 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41485 #: ../src/guestfs.pod:2759
41486 msgid "C</dev/sdc> 10MB"
41487 msgstr "C</dev/sdc> 10 МБ"
41490 #: ../src/guestfs.pod:2761
41491 msgid "Used in a few tests where two block devices are needed."
41495 #: ../src/guestfs.pod:2763
41496 msgid "C</dev/sdd>"
41497 msgstr "C</dev/sdd>"
41500 #: ../src/guestfs.pod:2765
41501 msgid "ISO with fixed content (see C<images/test.iso>)."
41505 #: ../src/guestfs.pod:2769
41507 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41508 "appliance and block devices are reused between tests. So don't try testing "
41509 "L</guestfs_kill_subprocess> :-x"
41513 #: ../src/guestfs.pod:2773
41515 "Each test starts with an initial scenario, selected using one of the "
41516 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
41517 "initialize the disks mentioned above in a particular way as documented in "
41518 "C<generator_types.ml>. You should not assume anything about the previous "
41519 "contents of other disks that are not initialized."
41523 #: ../src/guestfs.pod:2779
41525 "You can add a prerequisite clause to any individual test. This is a run-"
41526 "time check, which, if it fails, causes the test to be skipped. Useful if "
41527 "testing a command which might not work on all variations of libguestfs "
41528 "builds. A test that has prerequisite of C<Always> means to run "
41533 #: ../src/guestfs.pod:2785
41535 "In addition, packagers can skip individual tests by setting environment "
41536 "variables before running C<make check>."
41540 #: ../src/guestfs.pod:2788
41543 " SKIP_TEST_<CMD>_<NUM>=1\n"
41548 #: ../src/guestfs.pod:2790
41549 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41553 #: ../src/guestfs.pod:2794
41556 " SKIP_TEST_<CMD>=1\n"
41561 #: ../src/guestfs.pod:2796
41562 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41566 #: ../src/guestfs.pod:2798
41567 msgid "Packagers can run only certain tests by setting for example:"
41571 #: ../src/guestfs.pod:2800
41574 " TEST_ONLY=\"vfs_type zerofree\"\n"
41579 #: ../src/guestfs.pod:2802
41581 "See C<capitests/tests.c> for more details of how these environment variables "
41586 #: ../src/guestfs.pod:2805
41587 msgid "DEBUGGING NEW API ACTIONS"
41591 #: ../src/guestfs.pod:2807
41592 msgid "Test new actions work before submitting them."
41596 #: ../src/guestfs.pod:2809
41597 msgid "You can use guestfish to try out new commands."
41601 #: ../src/guestfs.pod:2811
41603 "Debugging the daemon is a problem because it runs inside a minimal "
41604 "environment. However you can fprintf messages in the daemon to stderr, and "
41605 "they will show up if you use C<guestfish -v>."
41609 #: ../src/guestfs.pod:2815
41610 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41614 #: ../src/guestfs.pod:2817
41616 "Our C source code generally adheres to some basic code-formatting "
41617 "conventions. The existing code base is not totally consistent on this "
41618 "front, but we do prefer that contributed code be formatted similarly. In "
41619 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41620 "indentation level, and other than that, follow the K&R style."
41624 #: ../src/guestfs.pod:2823
41626 "If you use Emacs, add the following to one of one of your start-up files (e."
41627 "g., ~/.emacs), to help ensure that you get indentation right:"
41631 #: ../src/guestfs.pod:2826
41634 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41635 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41636 " (add-hook 'find-file-hook\n"
41637 " '(lambda () (if (and buffer-file-name\n"
41638 " (string-match \"/libguestfs\\\\>\"\n"
41639 " (buffer-file-name))\n"
41640 " (not (string-equal mode-name \"Change Log\"))\n"
41641 " (not (string-equal mode-name \"Makefile\")))\n"
41642 " (setq indent-tabs-mode nil))))\n"
41647 #: ../src/guestfs.pod:2836
41650 " ;;; When editing C sources in libguestfs, use this style.\n"
41651 " (defun libguestfs-c-mode ()\n"
41652 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
41654 " (c-set-style \"K&R\")\n"
41655 " (setq c-indent-level 2)\n"
41656 " (setq c-basic-offset 2))\n"
41657 " (add-hook 'c-mode-hook\n"
41658 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41659 " (buffer-file-name))\n"
41660 " (libguestfs-c-mode))))\n"
41665 #: ../src/guestfs.pod:2848
41666 msgid "Enable warnings when compiling (and fix any problems this finds):"
41670 #: ../src/guestfs.pod:2851
41673 " ./configure --enable-gcc-warnings\n"
41676 " ./configure --enable-gcc-warnings\n"
41680 #: ../src/guestfs.pod:2853
41681 msgid "Useful targets are:"
41685 #: ../src/guestfs.pod:2855
41688 " make syntax-check # checks the syntax of the C code\n"
41689 " make check # runs the test suite\n"
41694 #: ../src/guestfs.pod:2858
41695 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41699 #: ../src/guestfs.pod:2860
41701 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41702 "which are used to do shell quoting."
41706 #: ../src/guestfs.pod:2865
41711 #: ../src/guestfs.pod:2867
41713 "Simple shell quoted string. Any spaces or other shell characters are "
41718 #: ../src/guestfs.pod:2870
41723 #: ../src/guestfs.pod:2872
41725 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41730 #: ../src/guestfs.pod:2879
41733 " asprintf (&cmd, \"cat %R\", path);\n"
41736 " asprintf (&cmd, \"cat %R\", path);\n"
41740 #: ../src/guestfs.pod:2881
41741 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41745 #: ../src/guestfs.pod:2883
41747 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41748 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
41749 "they are not passed via the shell (instead, straight to exec). You probably "
41750 "want to use the C<sysroot_path()> function however."
41754 #: ../src/guestfs.pod:2889
41755 msgid "SUBMITTING YOUR NEW API ACTIONS"
41759 #: ../src/guestfs.pod:2891
41761 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41762 "libguestfs> and CC to L<rjones@redhat.com>."
41766 #: ../src/guestfs.pod:2895
41767 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41771 #: ../src/guestfs.pod:2897
41772 msgid "We support i18n (gettext anyhow) in the library."
41776 #: ../src/guestfs.pod:2899
41778 "However many messages come from the daemon, and we don't translate those at "
41779 "the moment. One reason is that the appliance generally has all locale files "
41780 "removed from it, because they take up a lot of space. So we'd have to readd "
41781 "some of those, as well as copying our PO files into the appliance."
41785 #: ../src/guestfs.pod:2905
41787 "Debugging messages are never translated, since they are intended for the "
41792 #: ../src/guestfs.pod:2908
41793 msgid "SOURCE CODE SUBDIRECTORIES"
41797 #: ../src/guestfs.pod:2912
41802 #: ../src/guestfs.pod:2914
41803 msgid "L<virt-alignment-scan(1)> command and documentation."
41807 #: ../src/guestfs.pod:2918
41808 msgid "The libguestfs appliance, build scripts and so on."
41812 #: ../src/guestfs.pod:2920
41813 msgid "C<capitests>"
41814 msgstr "C<capitests>"
41817 #: ../src/guestfs.pod:2922
41818 msgid "Automated tests of the C API."
41822 #: ../src/guestfs.pod:2924
41827 #: ../src/guestfs.pod:2926
41829 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41834 #: ../src/guestfs.pod:2929
41836 msgstr "C<caution>"
41839 #: ../src/guestfs.pod:2931
41841 "Safety and liveness tests of components that libguestfs depends upon (not of "
41842 "libguestfs itself). Mainly this is for qemu and the kernel."
41846 #: ../src/guestfs.pod:2934
41851 #: ../src/guestfs.pod:2936
41853 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
41854 "command and documentation."
41858 #: ../src/guestfs.pod:2939
41860 msgstr "C<contrib>"
41863 #: ../src/guestfs.pod:2941
41864 msgid "Outside contributions, experimental parts."
41868 #: ../src/guestfs.pod:2943
41873 #: ../src/guestfs.pod:2945
41875 "The daemon that runs inside the libguestfs appliance and carries out actions."
41879 #: ../src/guestfs.pod:2948
41884 #: ../src/guestfs.pod:2950
41885 msgid "L<virt-df(1)> command and documentation."
41889 #: ../src/guestfs.pod:2952
41894 #: ../src/guestfs.pod:2954
41895 msgid "L<virt-edit(1)> command and documentation."
41899 #: ../src/guestfs.pod:2956
41900 msgid "C<examples>"
41901 msgstr "C<examples>"
41904 #: ../src/guestfs.pod:2958
41905 msgid "C API example code."
41906 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41909 #: ../src/guestfs.pod:2960
41914 #: ../src/guestfs.pod:2962
41916 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41917 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41918 "L<virt-tar-out(1)>."
41922 #: ../src/guestfs.pod:2966
41927 #: ../src/guestfs.pod:2968
41929 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41933 #: ../src/guestfs.pod:2970
41934 msgid "C<generator>"
41935 msgstr "C<generator>"
41938 #: ../src/guestfs.pod:2972
41940 "The crucially important generator, used to automatically generate large "
41941 "amounts of boilerplate C code for things like RPC and bindings."
41945 #: ../src/guestfs.pod:2975
41950 #: ../src/guestfs.pod:2977
41951 msgid "Files used by the test suite."
41955 #: ../src/guestfs.pod:2979
41956 msgid "Some \"phony\" guest images which we test against."
41960 #: ../src/guestfs.pod:2981
41961 msgid "C<inspector>"
41962 msgstr "C<inspector>"
41965 #: ../src/guestfs.pod:2983
41966 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41970 #: ../src/guestfs.pod:2985
41975 #: ../src/guestfs.pod:2987
41976 msgid "Logo used on the website. The fish is called Arthur by the way."
41980 #: ../src/guestfs.pod:2989
41985 #: ../src/guestfs.pod:2991
41986 msgid "M4 macros used by autoconf."
41990 #: ../src/guestfs.pod:2993
41995 #: ../src/guestfs.pod:2995
41996 msgid "Translations of simple gettext strings."
41997 msgstr "Переклади простих рядків gettext."
42000 #: ../src/guestfs.pod:2997
42002 msgstr "C<po-docs>"
42005 #: ../src/guestfs.pod:2999
42007 "The build infrastructure and PO files for translations of manpages and POD "
42008 "files. Eventually this will be combined with the C<po> directory, but that "
42009 "is rather complicated."
42013 #: ../src/guestfs.pod:3003
42014 msgid "C<regressions>"
42015 msgstr "C<regressions>"
42018 #: ../src/guestfs.pod:3005
42019 msgid "Regression tests."
42020 msgstr "Тести на регресії."
42023 #: ../src/guestfs.pod:3007
42028 #: ../src/guestfs.pod:3009
42029 msgid "L<virt-rescue(1)> command and documentation."
42033 #: ../src/guestfs.pod:3011
42038 #: ../src/guestfs.pod:3013
42039 msgid "L<virt-resize(1)> command and documentation."
42043 #: ../src/guestfs.pod:3015
42044 msgid "C<sparsify>"
42048 #: ../src/guestfs.pod:3017
42049 msgid "L<virt-sparsify(1)> command and documentation."
42053 #: ../src/guestfs.pod:3019
42058 #: ../src/guestfs.pod:3021
42059 msgid "Source code to the C library."
42063 #: ../src/guestfs.pod:3023
42068 #: ../src/guestfs.pod:3025
42070 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
42074 #: ../src/guestfs.pod:3027
42075 msgid "C<test-tool>"
42076 msgstr "C<test-tool>"
42079 #: ../src/guestfs.pod:3029
42081 "Test tool for end users to test if their qemu/kernel combination will work "
42086 #: ../src/guestfs.pod:3032
42091 #: ../src/guestfs.pod:3034
42096 #: ../src/guestfs.pod:3036
42098 msgstr "C<haskell>"
42101 #: ../src/guestfs.pod:3038
42106 #: ../src/guestfs.pod:3040
42111 #: ../src/guestfs.pod:3042
42116 #: ../src/guestfs.pod:3044
42121 #: ../src/guestfs.pod:3046
42126 #: ../src/guestfs.pod:3048
42131 #: ../src/guestfs.pod:3050
42132 msgid "Language bindings."
42133 msgstr "Прив’язки до мов програмування."
42136 #: ../src/guestfs.pod:3054
42137 msgid "MAKING A STABLE RELEASE"
42141 #: ../src/guestfs.pod:3056
42143 "When we make a stable release, there are several steps documented here. See "
42144 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
42149 #: ../src/guestfs.pod:3064
42151 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
42155 #: ../src/guestfs.pod:3069
42156 msgid "Finalize RELEASE-NOTES."
42160 #: ../src/guestfs.pod:3073
42161 msgid "Update ROADMAP."
42165 #: ../src/guestfs.pod:3077
42166 msgid "Run C<src/api-support/update-from-tarballs.sh>."
42170 #: ../src/guestfs.pod:3081
42171 msgid "Push and pull from Transifex."
42175 #: ../src/guestfs.pod:3085
42183 #: ../src/guestfs.pod:3087
42184 msgid "to push the latest POT files to Transifex. Then run:"
42188 #: ../src/guestfs.pod:3089
42196 #: ../src/guestfs.pod:3091
42197 msgid "which is a wrapper to pull the latest translated C<*.po> files."
42201 #: ../src/guestfs.pod:3095
42203 "Create new stable and development directories under L<http://libguestfs.org/"
42208 #: ../src/guestfs.pod:3100
42209 msgid "Create the branch in git:"
42213 #: ../src/guestfs.pod:3102
42216 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
42217 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
42218 " git branch stable-1.XX\n"
42219 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
42224 #: ../src/guestfs.pod:3109
42229 #: ../src/guestfs.pod:3111
42230 msgid "PROTOCOL LIMITS"
42231 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
42234 #: ../src/guestfs.pod:3113
42236 "Internally libguestfs uses a message-based protocol to pass API calls and "
42237 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
42238 "plenty more detail about this). The maximum message size used by the "
42239 "protocol is slightly less than 4 MB. For some API calls you may need to be "
42240 "aware of this limit. The API calls which may be affected are individually "
42241 "documented, with a link back to this section of the documentation."
42245 #: ../src/guestfs.pod:3121
42247 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
42248 "a simple string. Because this string is at some point internally encoded as "
42249 "a message, the maximum size that it can return is slightly under 4 MB. If "
42250 "the requested file is larger than this then you will get an error."
42254 #: ../src/guestfs.pod:3127
42256 "In order to transfer large files into and out of the guest filesystem, you "
42257 "need to use particular calls that support this. The sections L</UPLOADING> "
42258 "and L</DOWNLOADING> document how to do this."
42262 #: ../src/guestfs.pod:3131
42264 "You might also consider mounting the disk image using our FUSE filesystem "
42265 "support (L<guestmount(1)>)."
42269 #: ../src/guestfs.pod:3134
42270 msgid "MAXIMUM NUMBER OF DISKS"
42274 #: ../src/guestfs.pod:3136
42275 msgid "When using virtio disks (the default) the current limit is B<25> disks."
42279 #: ../src/guestfs.pod:3139
42281 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
42282 "slots. However febootstrap only understands disks with names C</dev/vda> "
42283 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
42288 #: ../src/guestfs.pod:3144
42290 "We are working to substantially raise this limit in future versions but it "
42291 "requires complex changes to qemu."
42295 #: ../src/guestfs.pod:3147
42297 "In future versions of libguestfs it should also be possible to \"hot plug\" "
42298 "disks (add and remove disks after calling L</guestfs_launch>). This also "
42299 "requires changes to qemu."
42303 #: ../src/guestfs.pod:3151
42304 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
42308 #: ../src/guestfs.pod:3153
42309 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
42313 #: ../src/guestfs.pod:3155
42315 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
42316 "vda>, and C</dev/vda1> through C</dev/vda15>)."
42320 #: ../src/guestfs.pod:3158
42322 "If you attach a disk with more than 15 partitions, the extra partitions are "
42323 "ignored by libguestfs."
42327 #: ../src/guestfs.pod:3161
42328 msgid "MAXIMUM SIZE OF A DISK"
42332 #: ../src/guestfs.pod:3163
42333 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
42337 #: ../src/guestfs.pod:3165
42339 "We have tested block devices up to 1 exabyte (2**60 or "
42340 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
42345 #: ../src/guestfs.pod:3169
42347 "Although libguestfs probably does not impose any limit, the underlying host "
42348 "storage will. If you store disk images on a host ext4 filesystem, then the "
42349 "maximum size will be limited by the maximum ext4 file size (currently 16 "
42350 "TB). If you store disk images as host logical volumes then you are limited "
42351 "by the maximum size of an LV."
42355 #: ../src/guestfs.pod:3175
42357 "For the hugest disk image files, we recommend using XFS on the host for "
42362 #: ../src/guestfs.pod:3178
42363 msgid "MAXIMUM SIZE OF A PARTITION"
42367 #: ../src/guestfs.pod:3180
42369 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
42370 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
42371 "address a partition located beyond 2 TB on the disk."
42375 #: ../src/guestfs.pod:3184
42377 "It is recommended that you use GPT partitions on disks which are larger than "
42378 "this size. GPT uses 64 bit sector numbers and so can address partitions "
42379 "which are theoretically larger than the largest disk we could support."
42383 #: ../src/guestfs.pod:3189
42384 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
42388 #: ../src/guestfs.pod:3191
42390 "This depends on the filesystem type. libguestfs itself does not impose any "
42391 "known limit. Consult Wikipedia or the filesystem documentation to find out "
42392 "what these limits are."
42396 #: ../src/guestfs.pod:3195
42397 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
42401 #: ../src/guestfs.pod:3197
42403 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
42404 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
42405 "uploads and downloads."
42409 #: ../src/guestfs.pod:3201
42410 msgid "INSPECTION LIMITS"
42414 #: ../src/guestfs.pod:3203
42416 "The inspection code has several arbitrary limits on things like the size of "
42417 "Windows Registry hive it will read, and the length of product name. These "
42418 "are intended to stop a malicious guest from consuming arbitrary amounts of "
42419 "memory and disk space on the host, and should not be reached in practice. "
42420 "See the source code for more information."
42424 #: ../src/guestfs.pod:3229
42426 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
42427 "effect as calling C<guestfs_set_verbose (g, 1)>."
42431 #: ../src/guestfs.pod:3241
42433 "Set the path that libguestfs uses to search for a supermin appliance. See "
42434 "the discussion of paths in section L</PATH> above."
42438 #: ../src/guestfs.pod:3250
42439 msgid "See also L</QEMU WRAPPERS> above."
42443 #: ../src/guestfs.pod:3254
42445 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
42446 "effect as calling C<guestfs_set_trace (g, 1)>."
42450 #: ../src/guestfs.pod:3272
42452 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42453 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42454 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42455 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42456 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42457 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42458 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42459 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
42460 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
42461 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
42465 #: ../src/guestfs.pod:3309
42467 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42468 "(8)>, L<disktype(1)>."
42472 #: ../src/guestfs.pod:3316 ../tools/virt-make-fs.pl:571
42473 #: ../tools/virt-win-reg.pl:772
42478 #: ../src/guestfs.pod:3318
42479 msgid "To get a list of bugs against libguestfs use this link:"
42481 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
42485 #: ../src/guestfs.pod:3320
42487 "L<https://bugzilla.redhat.com/buglist.cgi?"
42488 "component=libguestfs&product=Virtualization+Tools>"
42490 "L<https://bugzilla.redhat.com/buglist.cgi?"
42491 "component=libguestfs&product=Virtualization+Tools>"
42494 #: ../src/guestfs.pod:3322
42495 msgid "To report a new bug against libguestfs use this link:"
42496 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
42499 #: ../src/guestfs.pod:3324
42501 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42502 "component=libguestfs&product=Virtualization+Tools>"
42504 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42505 "component=libguestfs&product=Virtualization+Tools>"
42508 #: ../src/guestfs.pod:3326
42509 msgid "When reporting a bug, please check:"
42513 #: ../src/guestfs.pod:3332
42514 msgid "That the bug hasn't been reported already."
42518 #: ../src/guestfs.pod:3336
42519 msgid "That you are testing a recent version."
42523 #: ../src/guestfs.pod:3340
42524 msgid "Describe the bug accurately, and give a way to reproduce it."
42528 #: ../src/guestfs.pod:3344
42530 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42535 #: ../test-tool/libguestfs-test-tool.pod:5
42536 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42540 #: ../test-tool/libguestfs-test-tool.pod:9
42543 " libguestfs-test-tool [--options]\n"
42548 #: ../test-tool/libguestfs-test-tool.pod:13
42550 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42551 "to check basic libguestfs functionality is working. This is needed because "
42552 "libguestfs occasionally breaks for reasons beyond our control: usually "
42553 "because of changes in the underlying qemu or kernel packages, or the host "
42558 #: ../test-tool/libguestfs-test-tool.pod:19
42559 msgid "If you suspect a problem in libguestfs, then just run:"
42563 #: ../test-tool/libguestfs-test-tool.pod:21
42566 " libguestfs-test-tool\n"
42571 #: ../test-tool/libguestfs-test-tool.pod:23
42572 msgid "It will print lots of diagnostic messages."
42576 #: ../test-tool/libguestfs-test-tool.pod:25
42577 msgid "If it runs to completion successfully, you will see this near the end:"
42581 #: ../test-tool/libguestfs-test-tool.pod:27
42584 " ===== TEST FINISHED OK =====\n"
42589 #: ../test-tool/libguestfs-test-tool.pod:29
42590 msgid "and the test tool will exit with code 0."
42594 #: ../test-tool/libguestfs-test-tool.pod:31
42596 "If it fails (and/or exits with non-zero error code), please paste the "
42597 "I<complete, unedited> output of the test tool into a bug report. More "
42598 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42603 #: ../test-tool/libguestfs-test-tool.pod:42
42604 msgid "Display short usage information and exit."
42608 #: ../test-tool/libguestfs-test-tool.pod:44
42609 msgid "B<--qemu qemu_binary>"
42613 #: ../test-tool/libguestfs-test-tool.pod:46
42615 "If you have downloaded another qemu binary, point this option at the full "
42616 "path of the binary to try it."
42620 #: ../test-tool/libguestfs-test-tool.pod:49
42621 msgid "B<--qemudir qemu_source_dir>"
42625 #: ../test-tool/libguestfs-test-tool.pod:51
42627 "If you have compiled qemu from source, point this option at the source "
42628 "directory to try it."
42632 #: ../test-tool/libguestfs-test-tool.pod:54
42637 #: ../test-tool/libguestfs-test-tool.pod:56
42638 msgid "B<--timeout N>"
42642 #: ../test-tool/libguestfs-test-tool.pod:58
42644 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
42645 "minutes) which does not usually need to be adjusted."
42649 #: ../test-tool/libguestfs-test-tool.pod:63
42650 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42654 #: ../test-tool/libguestfs-test-tool.pod:65
42656 "If you have compiled another version of qemu from source and would like to "
42657 "try that, then you can use the I<--qemudir> option to point to the qemu "
42658 "source directory."
42662 #: ../test-tool/libguestfs-test-tool.pod:69
42664 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42665 "option to point to the binary."
42669 #: ../test-tool/libguestfs-test-tool.pod:72
42671 "Note when using these options, you can ignore the business of qemu wrapper "
42672 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42673 "wrapper script for you if one is needed."
42677 #: ../test-tool/libguestfs-test-tool.pod:76
42678 msgid "TRYING OUT A DIFFERENT KERNEL"
42682 #: ../test-tool/libguestfs-test-tool.pod:78
42684 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42685 "libguestfs tries. You do this by setting the environment variables "
42686 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42690 #: ../test-tool/libguestfs-test-tool.pod:82
42692 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42697 #: ../test-tool/libguestfs-test-tool.pod:85
42698 msgid "SELF-DIAGNOSIS"
42702 #: ../test-tool/libguestfs-test-tool.pod:87
42704 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42705 "produced by libguestfs-test-tool and/or possible errors."
42709 #: ../test-tool/libguestfs-test-tool.pod:92
42711 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42712 "I<1> if there was an error."
42716 #: ../test-tool/libguestfs-test-tool.pod:97
42718 "For the full list of environment variables which may affect libguestfs, "
42719 "please see the L<guestfs(3)> manual page."
42723 #: ../test-tool/libguestfs-test-tool.pod:102
42724 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42728 #: ../tools/virt-list-filesystems.pl:32
42730 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42734 #: ../tools/virt-list-filesystems.pl:36
42737 " virt-list-filesystems [--options] domname\n"
42742 #: ../tools/virt-list-filesystems.pl:38
42745 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42750 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42752 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
42757 #: ../tools/virt-list-filesystems.pl:45
42759 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42760 "are contained in a virtual machine or disk image."
42764 #: ../tools/virt-list-filesystems.pl:49
42766 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42767 "functionality. For more complex cases you should look at the L<guestfish(1)"
42772 #: ../tools/virt-list-filesystems.pl:112
42774 "With this option, C<virt-list-filesystems> displays the type of each "
42775 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42779 #: ../tools/virt-list-filesystems.pl:119
42784 #: ../tools/virt-list-filesystems.pl:123
42786 "Normally we only show mountable filesystems. If this option is given then "
42787 "swap devices are shown too."
42791 #: ../tools/virt-list-filesystems.pl:197
42793 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42794 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42795 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42797 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42798 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42799 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42802 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42803 msgid "Copyright (C) 2009 Red Hat Inc."
42804 msgstr "© Red Hat Inc., 2009"
42807 #: ../tools/virt-list-partitions.pl:32
42809 "virt-list-partitions - List partitions in a virtual machine or disk image"
42813 #: ../tools/virt-list-partitions.pl:36
42816 " virt-list-partitions [--options] domname\n"
42819 " virt-list-partitions [--параметри] назва_домену\n"
42823 #: ../tools/virt-list-partitions.pl:38
42826 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42829 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42833 #: ../tools/virt-list-partitions.pl:45
42835 "C<virt-list-partitions> is a command line tool to list the partitions that "
42836 "are contained in a virtual machine or disk image. It is mainly useful as a "
42837 "first step to using L<virt-resize(1)>."
42841 #: ../tools/virt-list-partitions.pl:50
42843 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42844 "functionality. For more complex cases you should look at the L<guestfish(1)"
42849 #: ../tools/virt-list-partitions.pl:113
42850 msgid "Show sizes in human-readable form (eg. \"1G\")."
42854 #: ../tools/virt-list-partitions.pl:123
42856 "With this option, C<virt-list-partitions> displays the type and size of each "
42857 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42861 #: ../tools/virt-list-partitions.pl:130
42866 #: ../tools/virt-list-partitions.pl:132
42868 msgstr "B<--total>"
42871 #: ../tools/virt-list-partitions.pl:134
42873 "Display the total size of each block device (as a separate row or rows)."
42877 #: ../tools/virt-list-partitions.pl:267
42879 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42880 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42881 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42883 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42884 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42885 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42888 #: ../tools/virt-list-partitions.pl:283
42889 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42890 msgstr "© Red Hat Inc., 2009–2010"
42893 #: ../tools/virt-make-fs.pl:37
42894 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42898 #: ../tools/virt-make-fs.pl:41
42901 " virt-make-fs [--options] input.tar output.img\n"
42906 #: ../tools/virt-make-fs.pl:43
42909 " virt-make-fs [--options] input.tar.gz output.img\n"
42914 #: ../tools/virt-make-fs.pl:45
42917 " virt-make-fs [--options] directory output.img\n"
42922 #: ../tools/virt-make-fs.pl:49
42924 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42925 "archive or some files in a directory. It is similar to tools like L<mkisofs"
42926 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
42927 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42928 "you want to attach these filesystems to existing virtual machines (eg. to "
42929 "import large amounts of read-only data to a VM)."
42933 #: ../tools/virt-make-fs.pl:57
42934 msgid "Basic usage is:"
42938 #: ../tools/virt-make-fs.pl:59
42941 " virt-make-fs input output.img\n"
42946 #: ../tools/virt-make-fs.pl:61
42948 "where C<input> is either a directory containing files that you want to add, "
42949 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42950 "C<output.img> is a disk image. The input type is detected automatically. "
42951 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42952 "extra flags (see L</OPTIONS> below)."
42956 #: ../tools/virt-make-fs.pl:67
42957 msgid "FILESYSTEM TYPE"
42958 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42961 #: ../tools/virt-make-fs.pl:69
42963 "The default filesystem type is C<ext2>. Just about any filesystem type that "
42964 "libguestfs supports can be used (but I<not> read-only formats like "
42965 "ISO9660). Here are some of the more common choices:"
42969 #: ../tools/virt-make-fs.pl:75
42974 #: ../tools/virt-make-fs.pl:77
42976 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
42977 "you are not going to use the filesystem in a way that requires the journal, "
42978 "then this is just wasted overhead."
42982 #: ../tools/virt-make-fs.pl:81
42983 msgid "I<ntfs> or I<vfat>"
42984 msgstr "I<ntfs> або I<vfat>"
42987 #: ../tools/virt-make-fs.pl:83
42988 msgid "Useful if exporting data to a Windows guest."
42992 #: ../tools/virt-make-fs.pl:85
42994 "I<Note for vfat>: The tar archive or local directory must only contain files "
42995 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42996 "program running within libguestfs is unable to change the ownership of non-"
42997 "root files, since vfat itself does not support this."
43001 #: ../tools/virt-make-fs.pl:90
43006 #: ../tools/virt-make-fs.pl:92
43008 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43009 "total filesystem size."
43013 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43014 #: ../tools/virt-make-fs.pl:149
43019 #: ../tools/virt-make-fs.pl:99
43022 " virt-make-fs --type=minix input minixfs.img\n"
43027 #: ../tools/virt-make-fs.pl:101
43028 msgid "TO PARTITION OR NOT TO PARTITION"
43032 #: ../tools/virt-make-fs.pl:103
43033 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43037 #: ../tools/virt-make-fs.pl:105
43039 "Adding a partition can make the disk image more compatible with certain "
43040 "virtualized operating systems which don't expect to see a filesystem "
43041 "directly located on a block device (Linux doesn't care and will happily "
43042 "handle both types)."
43046 #: ../tools/virt-make-fs.pl:110
43048 "On the other hand, if you have a partition table then the output image is no "
43049 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
43050 "directly on a partitioned disk image. (However libguestfs tools such as "
43051 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43055 #: ../tools/virt-make-fs.pl:118
43056 msgid "Add an MBR partition:"
43060 #: ../tools/virt-make-fs.pl:120
43063 " virt-make-fs --partition -- input disk.img\n"
43068 #: ../tools/virt-make-fs.pl:122
43070 "If the output disk image could be terabyte-sized or larger, it's better to "
43071 "use an EFI/GPT-compatible partition table:"
43075 #: ../tools/virt-make-fs.pl:125
43078 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
43083 #: ../tools/virt-make-fs.pl:127
43084 msgid "EXTRA SPACE"
43088 #: ../tools/virt-make-fs.pl:129
43090 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
43091 "the files that it contains, but might have extra space. Depending on how "
43092 "you are going to use the output, you might think this extra space is wasted "
43093 "and want to minimize it, or you might want to leave space so that more files "
43094 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
43095 "but you can use the I<--size> flag to leave space in the filesystem if you "
43100 #: ../tools/virt-make-fs.pl:137
43102 "An alternative way to leave extra space but not make the output image any "
43103 "bigger is to use an alternative disk image format (instead of the default "
43104 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
43105 "image format (check your hypervisor supports this before using it). This "
43106 "allows you to choose a large I<--size> but the extra space won't actually be "
43107 "allocated in the image until you try to store something in it."
43111 #: ../tools/virt-make-fs.pl:145
43113 "Don't forget that you can also use local commands including L<resize2fs(8)> "
43114 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
43115 "to build another image from scratch."
43119 #: ../tools/virt-make-fs.pl:151
43122 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43125 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43129 #: ../tools/virt-make-fs.pl:179
43130 msgid "Enable debugging information."
43131 msgstr "Увімкнути виведення діагностичних даних."
43134 #: ../tools/virt-make-fs.pl:185
43135 msgid "B<--size=E<lt>NE<gt>>"
43136 msgstr "B<--size=E<lt>NE<gt>>"
43139 #: ../tools/virt-make-fs.pl:187
43140 msgid "B<--size=+E<lt>NE<gt>>"
43141 msgstr "B<--size=+E<lt>NE<gt>>"
43144 #: ../tools/virt-make-fs.pl:189
43145 msgid "B<-s E<lt>NE<gt>>"
43146 msgstr "B<-s E<lt>NE<gt>>"
43149 #: ../tools/virt-make-fs.pl:191
43150 msgid "B<-s +E<lt>NE<gt>>"
43151 msgstr "B<-s +E<lt>NE<gt>>"
43154 #: ../tools/virt-make-fs.pl:193
43156 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
43160 #: ../tools/virt-make-fs.pl:196
43162 "If this option is I<not> given, then the output image will be just large "
43163 "enough to contain all the files, with not much wasted space."
43167 #: ../tools/virt-make-fs.pl:199
43169 "To choose a fixed size output disk, specify an absolute number followed by b/"
43170 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43171 "Petabytes or Exabytes. This must be large enough to contain all the input "
43172 "files, else you will get an error."
43176 #: ../tools/virt-make-fs.pl:204
43178 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
43179 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43180 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
43181 "the input files, and (approximately) an extra 200 MB free space."
43185 #: ../tools/virt-make-fs.pl:210
43187 "Note that virt-make-fs estimates free space, and therefore will not produce "
43188 "filesystems containing precisely the free space requested. (It is much more "
43189 "expensive and time-consuming to produce a filesystem which has precisely the "
43190 "desired free space)."
43194 #: ../tools/virt-make-fs.pl:219
43195 msgid "B<--format=E<lt>fmtE<gt>>"
43199 #: ../tools/virt-make-fs.pl:221
43200 msgid "B<-F E<lt>fmtE<gt>>"
43204 #: ../tools/virt-make-fs.pl:223
43205 msgid "Choose the output disk image format."
43209 #: ../tools/virt-make-fs.pl:225
43210 msgid "The default is C<raw> (raw sparse disk image)."
43214 #: ../tools/virt-make-fs.pl:227
43216 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
43217 "that would really make sense here is C<qcow2>."
43221 #: ../tools/virt-make-fs.pl:234
43222 msgid "B<--type=E<lt>fsE<gt>>"
43226 #: ../tools/virt-make-fs.pl:236
43227 msgid "B<-t E<lt>fsE<gt>>"
43231 #: ../tools/virt-make-fs.pl:238
43232 msgid "Choose the output filesystem type."
43236 #: ../tools/virt-make-fs.pl:240
43237 msgid "The default is C<ext2>."
43238 msgstr "Типовим значенням є C<ext2>."
43241 #: ../tools/virt-make-fs.pl:242
43243 "Any filesystem which is supported read-write by libguestfs can be used here."
43247 #: ../tools/virt-make-fs.pl:249
43248 msgid "B<--partition>"
43249 msgstr "B<--partition>"
43252 #: ../tools/virt-make-fs.pl:251
43253 msgid "B<--partition=E<lt>parttypeE<gt>>"
43257 #: ../tools/virt-make-fs.pl:253
43259 "If specified, this flag adds an MBR partition table to the output disk image."
43263 #: ../tools/virt-make-fs.pl:256
43265 "You can change the partition table type, eg. I<--partition=gpt> for large "
43270 #: ../tools/virt-make-fs.pl:259
43272 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
43273 "might consider the next parameter to be the partition type. For example:"
43277 #: ../tools/virt-make-fs.pl:263
43280 " virt-make-fs --partition input.tar output.img\n"
43285 #: ../tools/virt-make-fs.pl:265
43287 "would cause virt-make-fs to think you wanted to use a partition type of "
43288 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
43289 "dash) between options and the input and output arguments:"
43293 #: ../tools/virt-make-fs.pl:269
43296 " virt-make-fs --partition -- input.tar output.img\n"
43301 #: ../tools/virt-make-fs.pl:271
43302 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
43306 #: ../tools/virt-make-fs.pl:559
43308 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43309 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43310 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43312 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43313 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43314 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43317 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
43319 "When reporting bugs, please enable debugging and capture the I<complete> "
43324 #: ../tools/virt-make-fs.pl:576
43327 " export LIBGUESTFS_DEBUG=1\n"
43328 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43331 " export LIBGUESTFS_DEBUG=1\n"
43332 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43336 #: ../tools/virt-make-fs.pl:579
43338 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
43343 #: ../tools/virt-tar.pl:33
43344 msgid "virt-tar - Extract or upload files to a virtual machine"
43348 #: ../tools/virt-tar.pl:37
43351 " virt-tar [--options] -x domname directory tarball\n"
43356 #: ../tools/virt-tar.pl:39
43359 " virt-tar [--options] -u domname tarball directory\n"
43364 #: ../tools/virt-tar.pl:41
43367 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
43372 #: ../tools/virt-tar.pl:43
43375 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
43380 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
43385 #: ../tools/virt-tar.pl:47
43387 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
43388 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
43392 #: ../tools/virt-tar.pl:52
43393 msgid "Download C</home> from the VM into a local tarball:"
43397 #: ../tools/virt-tar.pl:54
43400 " virt-tar -x domname /home home.tar\n"
43405 #: ../tools/virt-tar.pl:56
43408 " virt-tar -zx domname /home home.tar.gz\n"
43413 #: ../tools/virt-tar.pl:58
43414 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
43418 #: ../tools/virt-tar.pl:60
43421 " virt-tar -u domname uploadstuff.tar /tmp\n"
43426 #: ../tools/virt-tar.pl:62
43429 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
43434 #: ../tools/virt-tar.pl:66
43436 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
43437 "virtual machines. If you do this, you risk disk corruption in the VM. "
43438 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
43442 #: ../tools/virt-tar.pl:71
43444 "You can use I<-x> (extract) on live virtual machines, but you might get "
43445 "inconsistent results or errors if there is filesystem activity inside the "
43446 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
43447 "work, but the only way to guarantee consistent results is if the virtual "
43448 "machine is shut down."
43452 #: ../tools/virt-tar.pl:79
43454 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
43455 "parts of a guest filesystem. There are many possibilities: making backups, "
43456 "uploading data files, snooping on guest activity, fixing or customizing "
43461 #: ../tools/virt-tar.pl:84
43463 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
43464 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
43465 "should look at the L<guestfish(1)> tool."
43469 #: ../tools/virt-tar.pl:88
43471 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43472 "its contents (recursively) from the virtual machine into a local tarball. "
43473 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43474 "virtual machine. You cannot use these two options together."
43478 #: ../tools/virt-tar.pl:94
43480 "In addition, you may need to use the I<-z> (gZip) option to enable "
43481 "compression. When uploading, you have to specify I<-z> if the upload file "
43482 "is compressed because virt-tar won't detect this on its own."
43486 #: ../tools/virt-tar.pl:98
43488 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
43489 "example it cannot do PKZip files or bzip2 compression. If you want that "
43490 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
43491 "the L<libguestfs(3)> API)."
43495 #: ../tools/virt-tar.pl:160
43496 msgid "B<--extract>"
43497 msgstr "B<--extract>"
43500 #: ../tools/virt-tar.pl:162
43501 msgid "B<--download>"
43502 msgstr "B<--download>"
43505 #: ../tools/virt-tar.pl:164
43510 #: ../tools/virt-tar.pl:166
43511 msgid "B<--upload>"
43512 msgstr "B<--upload>"
43515 #: ../tools/virt-tar.pl:168
43517 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43522 #: ../tools/virt-tar.pl:171
43524 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
43525 "Please read the L</WARNING> section above before using this option."
43529 #: ../tools/virt-tar.pl:175
43530 msgid "You must specify exactly one of these options."
43534 #: ../tools/virt-tar.pl:181
43539 #: ../tools/virt-tar.pl:183
43544 #: ../tools/virt-tar.pl:185
43545 msgid "Specify that the input or output tarball is gzip-compressed."
43549 #: ../tools/virt-tar.pl:298
43551 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43552 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43553 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43556 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43557 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43558 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43562 #: ../tools/virt-win-reg.pl:37
43564 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43568 #: ../tools/virt-win-reg.pl:41
43571 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43576 #: ../tools/virt-win-reg.pl:43
43579 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43584 #: ../tools/virt-win-reg.pl:45
43587 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43592 #: ../tools/virt-win-reg.pl:47
43595 " virt-win-reg --merge domname [input.reg ...]\n"
43600 #: ../tools/virt-win-reg.pl:49
43603 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43608 #: ../tools/virt-win-reg.pl:53
43610 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43611 "virtual machines. If you do this, you I<will> get irreversible disk "
43612 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
43613 "but doesn't catch all cases."
43617 #: ../tools/virt-win-reg.pl:58
43619 "Modifying the Windows Registry is an inherently risky operation. The format "
43620 "is deliberately obscure and undocumented, and Registry changes can leave the "
43621 "system unbootable. Therefore when using the I<--merge> option, make sure "
43622 "you have a reliable backup first."
43626 #: ../tools/virt-win-reg.pl:65
43628 "This program can export and merge Windows Registry entries from a Windows "
43633 #: ../tools/virt-win-reg.pl:68
43635 "The first parameter is the libvirt guest name or the raw disk image of a "
43640 #: ../tools/virt-win-reg.pl:71
43642 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43643 "exported (recursively). For example:"
43647 #: ../tools/virt-win-reg.pl:74
43650 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43653 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43657 #: ../tools/virt-win-reg.pl:76
43659 "You can also display single values from within registry keys, for example:"
43663 #: ../tools/virt-win-reg.pl:79
43666 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43667 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43668 " Windows 7 Enterprise\n"
43671 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43672 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43673 " Windows 7 Enterprise\n"
43677 #: ../tools/virt-win-reg.pl:83
43679 "With I<--merge>, you can merge a textual regedit file into the Windows "
43684 #: ../tools/virt-win-reg.pl:86
43687 " $ virt-win-reg --merge Windows7 changes.reg\n"
43690 " $ virt-win-reg --merge Windows7 changes.reg\n"
43694 #: ../tools/virt-win-reg.pl:90
43696 "This program is only meant for simple access to the registry. If you want "
43697 "to do complicated things with the registry, we suggest you download the "
43698 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43699 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43700 "L<hivexregedit(1)>."
43704 #: ../tools/virt-win-reg.pl:159
43706 msgstr "B<--merge>"
43709 #: ../tools/virt-win-reg.pl:161
43711 "In merge mode, this merges a textual regedit file into the Windows Registry "
43712 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
43713 "displays or exports Registry entries instead."
43717 #: ../tools/virt-win-reg.pl:165
43719 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43720 "result in disk corruption. However exporting (without this flag) is always "
43725 #: ../tools/virt-win-reg.pl:173
43726 msgid "B<--encoding> UTF-16LE|ASCII"
43727 msgstr "B<--encoding> UTF-16LE|ASCII"
43730 #: ../tools/virt-win-reg.pl:175
43732 "When merging (only), you may need to specify the encoding for strings to be "
43733 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
43734 "(3)/ENCODING STRINGS>."
43738 #: ../tools/virt-win-reg.pl:179
43740 "The default is to use UTF-16LE, which should work with recent versions of "
43745 #: ../tools/virt-win-reg.pl:186
43746 msgid "B<--unsafe-printable-strings>"
43747 msgstr "B<--unsafe-printable-strings>"
43750 #: ../tools/virt-win-reg.pl:188
43752 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43753 "instead of hex sequences. Remove the final zero codepoint from strings if "
43758 #: ../tools/virt-win-reg.pl:192
43760 "This is unsafe and does not preserve the fidelity of strings in the original "
43761 "Registry for various reasons:"
43765 #: ../tools/virt-win-reg.pl:199
43767 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
43768 "other encodings will be corrupted by this transformation."
43772 #: ../tools/virt-win-reg.pl:204
43774 "Assumes that everything which has type 1 or 2 is really a string and that "
43775 "everything else is not a string, but the type field in real Registries is "
43780 #: ../tools/virt-win-reg.pl:210
43782 "Loses information about whether a zero codepoint followed the string in the "
43787 #: ../tools/virt-win-reg.pl:215
43789 "This all happens because the Registry itself contains no information about "
43790 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43794 #: ../tools/virt-win-reg.pl:219
43796 "You should only use this option for quick hacking and debugging of the "
43797 "Registry contents, and I<never> use it if the output is going to be passed "
43798 "into another program or stored in another Registry."
43802 #: ../tools/virt-win-reg.pl:556
43803 msgid "SUPPORTED SYSTEMS"
43804 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43807 #: ../tools/virt-win-reg.pl:558
43809 "The program currently supports Windows NT-derived guests starting with "
43810 "Windows XP through to at least Windows 7."
43814 #: ../tools/virt-win-reg.pl:561
43815 msgid "The following Registry keys are supported:"
43819 #: ../tools/virt-win-reg.pl:565
43820 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43821 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43824 #: ../tools/virt-win-reg.pl:567
43825 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43826 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43829 #: ../tools/virt-win-reg.pl:569
43830 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43831 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43834 #: ../tools/virt-win-reg.pl:571
43835 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43836 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43839 #: ../tools/virt-win-reg.pl:573
43840 msgid "C<HKEY_USERS\\.DEFAULT>"
43841 msgstr "C<HKEY_USERS\\.DEFAULT>"
43844 #: ../tools/virt-win-reg.pl:575
43845 msgid "C<HKEY_USERS\\I<SID>>"
43846 msgstr "C<HKEY_USERS\\I<SID>>"
43849 #: ../tools/virt-win-reg.pl:577
43850 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43854 #: ../tools/virt-win-reg.pl:579
43855 msgid "C<HKEY_USERS\\I<username>>"
43856 msgstr "C<HKEY_USERS\\I<користувач>>"
43859 #: ../tools/virt-win-reg.pl:581
43861 "where I<username> is a local user name (this is a libguestfs extension)."
43865 #: ../tools/virt-win-reg.pl:585
43867 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43872 #: ../tools/virt-win-reg.pl:588
43874 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43875 "supported (there is no \"current user\")."
43879 #: ../tools/virt-win-reg.pl:591
43884 #: ../tools/virt-win-reg.pl:593
43886 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43887 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43888 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43889 "Windows-style line endings, you may need to reencode the whole file before "
43890 "or after processing."
43894 #: ../tools/virt-win-reg.pl:599
43896 "To reencode a file from Windows format to Linux (before processing it with "
43897 "the I<--merge> option), you would do something like this:"
43901 #: ../tools/virt-win-reg.pl:602
43904 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43907 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43911 #: ../tools/virt-win-reg.pl:604
43913 "To go in the opposite direction, after exporting and before sending the file "
43914 "to a Windows user, do something like this:"
43918 #: ../tools/virt-win-reg.pl:607
43921 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43924 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43928 #: ../tools/virt-win-reg.pl:609
43929 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43933 #: ../tools/virt-win-reg.pl:611
43935 "If you are unsure about the current encoding, use the L<file(1)> command. "
43936 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43937 "style (CRLF) line endings, like this:"
43941 #: ../tools/virt-win-reg.pl:615
43944 " $ file software.reg\n"
43945 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43946 " with CRLF line terminators\n"
43951 #: ../tools/virt-win-reg.pl:619
43952 msgid "This file would need conversion before you could I<--merge> it."
43956 #: ../tools/virt-win-reg.pl:621
43957 msgid "CurrentControlSet etc."
43961 #: ../tools/virt-win-reg.pl:623
43963 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43964 "Registry at the level of the hive file, and therefore you cannot modify "
43969 #: ../tools/virt-win-reg.pl:627
43971 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43972 "circumstances it might refer to another control set. The way to find out is "
43973 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43977 #: ../tools/virt-win-reg.pl:631
43980 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43981 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43982 " \"Current\"=dword:00000001\n"
43983 " \"Default\"=dword:00000001\n"
43984 " \"Failed\"=dword:00000000\n"
43985 " \"LastKnownGood\"=dword:00000002\n"
43988 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43989 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43990 " \"Current\"=dword:00000001\n"
43991 " \"Default\"=dword:00000001\n"
43992 " \"Failed\"=dword:00000000\n"
43993 " \"LastKnownGood\"=dword:00000002\n"
43997 #: ../tools/virt-win-reg.pl:638
43998 msgid "\"Current\" is the one which Windows will choose when it boots."
44002 #: ../tools/virt-win-reg.pl:640
44004 "Similarly, other C<Current...> keys in the path may need to be replaced."
44008 #: ../tools/virt-win-reg.pl:643
44009 msgid "DELETING REGISTRY KEYS AND VALUES"
44013 #: ../tools/virt-win-reg.pl:645
44014 msgid "To delete a whole registry key, use the syntax:"
44018 #: ../tools/virt-win-reg.pl:647
44021 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44026 #: ../tools/virt-win-reg.pl:649
44027 msgid "To delete a single value within a key, use the syntax:"
44031 #: ../tools/virt-win-reg.pl:651
44034 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44040 #: ../tools/virt-win-reg.pl:654
44041 msgid "WINDOWS TIPS"
44045 #: ../tools/virt-win-reg.pl:656
44047 "Note that some of these tips modify the guest disk image. The guest I<must> "
44048 "be shut off, else you will get disk corruption."
44052 #: ../tools/virt-win-reg.pl:659
44053 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44057 #: ../tools/virt-win-reg.pl:661
44059 "Prepare a DOS batch script, VBScript or executable. Upload this using "
44060 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
44061 "is uploaded into C<C:\\>:"
44065 #: ../tools/virt-win-reg.pl:665
44068 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44071 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44075 #: ../tools/virt-win-reg.pl:667
44076 msgid "Prepare a regedit file containing the registry change:"
44080 #: ../tools/virt-win-reg.pl:669
44083 " cat > test.reg <<'EOF'\n"
44084 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44085 " \"Test\"=\"c:\\\\test.bat\"\n"
44089 " cat > test.reg <<'EOF'\n"
44090 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44091 " \"Test\"=\"c:\\\\test.bat\"\n"
44096 #: ../tools/virt-win-reg.pl:674
44098 "In this example we use the key C<RunOnce> which means that the script will "
44099 "run precisely once when the first user logs in. If you want it to run every "
44100 "time a user logs in, replace C<RunOnce> with C<Run>."
44104 #: ../tools/virt-win-reg.pl:678
44105 msgid "Now update the registry:"
44106 msgstr "Оновіть регістр:"
44109 #: ../tools/virt-win-reg.pl:680
44112 " virt-win-reg --merge WindowsGuest test.reg\n"
44117 #: ../tools/virt-win-reg.pl:682
44118 msgid "INSTALLING A SERVICE"
44122 #: ../tools/virt-win-reg.pl:684
44124 "This section assumes you are familiar with Windows services, and you either "
44125 "have a program which handles the Windows Service Control Protocol directly "
44126 "or you want to run any program using a service wrapper like SrvAny or the "
44131 #: ../tools/virt-win-reg.pl:689
44133 "First upload the program and optionally the service wrapper. In this case "
44134 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
44138 #: ../tools/virt-win-reg.pl:693
44141 " guestfish -i -d WindowsGuest <<EOF\n"
44142 " upload rhsrvany.exe /rhsrvany.exe\n"
44143 " upload test.exe /test.exe\n"
44147 " guestfish -i -d WindowsGuest <<EOF\n"
44148 " upload rhsrvany.exe /rhsrvany.exe\n"
44149 " upload test.exe /test.exe\n"
44154 #: ../tools/virt-win-reg.pl:698
44156 "Prepare a regedit file containing the registry changes. In this example, "
44157 "the first registry change is needed for the service itself or the service "
44158 "wrapper (if used). The second registry change is only needed because I am "
44159 "using the RHSrvAny service wrapper."
44163 #: ../tools/virt-win-reg.pl:703
44166 " cat > service.reg <<'EOF'\n"
44167 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44168 " \"Type\"=dword:00000010\n"
44169 " \"Start\"=dword:00000002\n"
44170 " \"ErrorControl\"=dword:00000001\n"
44171 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44172 " \"DisplayName\"=\"RHSrvAny\"\n"
44173 " \"ObjectName\"=\"NetworkService\"\n"
44176 " cat > service.reg <<'EOF'\n"
44177 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44178 " \"Type\"=dword:00000010\n"
44179 " \"Start\"=dword:00000002\n"
44180 " \"ErrorControl\"=dword:00000001\n"
44181 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44182 " \"DisplayName\"=\"RHSrvAny\"\n"
44183 " \"ObjectName\"=\"NetworkService\"\n"
44187 #: ../tools/virt-win-reg.pl:712
44190 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44191 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44192 " \"PWD\"=\"c:\\\\Temp\"\n"
44196 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44197 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44198 " \"PWD\"=\"c:\\\\Temp\"\n"
44203 #: ../tools/virt-win-reg.pl:723
44205 "For use of C<ControlSet001> see the section above in this manual page. You "
44206 "may need to adjust this according to the control set that is in use by the "
44211 #: ../tools/virt-win-reg.pl:729
44213 "C<\"ObjectName\"> controls the privileges that the service will have. An "
44214 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
44215 "privileged account."
44219 #: ../tools/virt-win-reg.pl:735
44221 "For the meaning of the magic numbers, see this Microsoft KB article: "
44222 "L<http://support.microsoft.com/kb/103000>."
44226 #: ../tools/virt-win-reg.pl:740
44227 msgid "Update the registry:"
44228 msgstr "Оновіть регістр:"
44231 #: ../tools/virt-win-reg.pl:742
44234 " virt-win-reg --merge WindowsGuest service.reg\n"
44239 #: ../tools/virt-win-reg.pl:746
44241 "Be careful when passing parameters containing C<\\> (backslash) in the "
44242 "shell. Usually you will have to use 'single quotes' or double backslashes "
44243 "(but not both) to protect them from the shell."
44247 #: ../tools/virt-win-reg.pl:750
44248 msgid "Paths and value names are case-insensitive."
44252 #: ../tools/virt-win-reg.pl:759
44254 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44255 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44256 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44258 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44259 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44260 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44263 #: ../tools/virt-win-reg.pl:777
44266 " export LIBGUESTFS_DEBUG=1\n"
44267 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
44272 #: ../tools/virt-win-reg.pl:780
44274 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."